semi-bot dca5a3fc32 v2.0.2 4 years ago
..
_portal f76bd5879d feat: init 4 years ago
anchor 8c05e210aa fix: radius and group typo (#92) 4 years ago
autoComplete f76bd5879d feat: init 4 years ago
avatar f76bd5879d feat: init 4 years ago
backtop f76bd5879d feat: init 4 years ago
badge f76bd5879d feat: init 4 years ago
banner f76bd5879d feat: init 4 years ago
base 3f1e99ae84 docs: add reference of typography utils, add inspired source of form & F/A 4 years ago
breadcrumb f76bd5879d feat: init 4 years ago
button f76bd5879d feat: init 4 years ago
calendar f76bd5879d feat: init 4 years ago
card f76bd5879d feat: init 4 years ago
cascader f76bd5879d feat: init 4 years ago
checkbox 8c05e210aa fix: radius and group typo (#92) 4 years ago
collapse f76bd5879d feat: init 4 years ago
collapsible f76bd5879d feat: init 4 years ago
datePicker 9a16b9026a fix(datepicker): type=month can not select some date in US timeZone (#173) 4 years ago
descriptions f76bd5879d feat: init 4 years ago
dropdown f76bd5879d feat: init 4 years ago
empty f76bd5879d feat: init 4 years ago
form 6766109e15 fix: #67 adjust label margin-right of label in Form.InputGroup, sass token -form_label_posLeft-marginRight reset to 0 4 years ago
grid f76bd5879d feat: init 4 years ago
icons f76bd5879d feat: init 4 years ago
input f76bd5879d feat: init 4 years ago
inputNumber f76bd5879d feat: init 4 years ago
keyframes f76bd5879d feat: init 4 years ago
layout f76bd5879d feat: init 4 years ago
list f76bd5879d feat: init 4 years ago
modal f76bd5879d feat: init 4 years ago
navigation f76bd5879d feat: init 4 years ago
notification f76bd5879d feat: init 4 years ago
overflowList f76bd5879d feat: init 4 years ago
pagination f76bd5879d feat: init 4 years ago
popconfirm f76bd5879d feat: init 4 years ago
popover f76bd5879d feat: init 4 years ago
progress f76bd5879d feat: init 4 years ago
radio f76bd5879d feat: init 4 years ago
rating f76bd5879d feat: init 4 years ago
scripts f76bd5879d feat: init 4 years ago
scrollList f76bd5879d feat: init 4 years ago
select f76bd5879d feat: init 4 years ago
sideSheet f76bd5879d feat: init 4 years ago
skeleton f76bd5879d feat: init 4 years ago
slider 76be18db4f Release (#104) 4 years ago
space f76bd5879d feat: init 4 years ago
spin f76bd5879d feat: init 4 years ago
steps f76bd5879d feat: init 4 years ago
switch 81f421ec49 style: [switch] add token $color-switch_disabled-bg-hover/ $color-switch_disabled-bg-active, close #115 (#185) 4 years ago
table f76bd5879d feat: init 4 years ago
tabs f76bd5879d feat: init 4 years ago
tag f76bd5879d feat: init 4 years ago
tagInput f76bd5879d feat: init 4 years ago
timePicker f76bd5879d feat: init 4 years ago
timeline f76bd5879d feat: init 4 years ago
toast af923aff14 fix(toast): update TypeScript definition of Toast (#168) 4 years ago
tooltip f76bd5879d feat: init 4 years ago
transfer f76bd5879d feat: init 4 years ago
tree ad3850dd1d docs: update license and add reference of some code from external librarys 4 years ago
treeSelect 76be18db4f Release (#104) 4 years ago
typography f76bd5879d feat: init 4 years ago
upload f76bd5879d feat: init 4 years ago
utils d1f4b308d9 fix(tooltip): Event callback was not remove correctly (#192) 4 years ago
README.md d8893466dc fix: semi-foundation/README.md gammar optimize (#165) 4 years ago
babel.config.js f76bd5879d feat: init 4 years ago
gulpfile.js f76bd5879d feat: init 4 years ago
package.json dca5a3fc32 v2.0.2 4 years ago
tsconfig.json f76bd5879d feat: init 4 years ago

README.md

The infrastructure layer is used to build modern component libraries.

Semi UI adopts a set of cross-front-end framework technical solutions to split the JavaScript of each component into two parts: Foundation and Adapter. This allows us to reuse Foundation code across frameworks by only re-implementing the adapter, e.g, React and Vue. Quickly build common component libraries on different platforms.

  • Foundation

    Foundation contains the business logic that best represents Semi Design without actually referencing any DOM elements. Foundation delegates Adapter methods for any logic that requires DOM manipulation

  • Adapter

    Adapter is an interface that has all the methods needed by Foundation to implement Semi Design business logic. Adapter can have many implementations, allowing interoperability with different frameworks.

Directory Structure

  ├── semi-foundation         // Foundation and Stylesheet of component
  │   ├── utils
  │   └── tooltip
  │       ├── constants.js    // Constant definition, including numbers, strings, cssClass
  │       ├── foundation.js   // Core foundation
  │       ├── tooltip.scss    // Stylesheet
  │       ├── mixin.scss      // Scss mixin
  │       ├── rtl.scss        // Rtl 
  │       ├── variables.scss  // Scss variable

Related documents

Technical solutions

image

License

MIT