onekijs-ui 0.9.2 → 0.15.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/accordion/AccordionService.d.ts +7 -0
- package/dist/components/accordion/components/AccordionComponent.d.ts +16 -0
- package/dist/components/accordion/components/AccordionContainer.d.ts +4 -0
- package/dist/components/accordion/components/AccordionPanel.d.ts +4 -0
- package/dist/components/accordion/components/AccordionPanelTitle.d.ts +4 -0
- package/dist/components/accordion/hooks/useAccordionPanel.d.ts +3 -0
- package/dist/components/accordion/hooks/useAccordionService.d.ts +5 -0
- package/dist/components/accordion/hooks/useAccordionState.d.ts +4 -0
- package/dist/components/accordion/index.d.ts +16 -0
- package/dist/components/accordion/style.d.ts +3 -0
- package/dist/components/accordion/typings.d.ts +45 -0
- package/dist/components/button/DropdownButton.d.ts +3 -0
- package/dist/components/button/SubmitButton.d.ts +4 -0
- package/dist/components/button/components/ButtonComponent.d.ts +4 -0
- package/dist/components/button/components/DropdownButtonComponent.d.ts +4 -0
- package/dist/components/button/index.d.ts +3 -3
- package/dist/components/button/style.d.ts +5 -4
- package/dist/components/button/typings.d.ts +19 -4
- package/dist/components/card/FormCard.d.ts +4 -0
- package/dist/components/card/components/CardComponent.d.ts +4 -0
- package/dist/components/card/components/CardTitle.d.ts +4 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/card/style.d.ts +3 -0
- package/dist/components/card/typings.d.ts +24 -0
- package/dist/components/checkbox/FormCheckbox.d.ts +4 -0
- package/dist/components/checkbox/components/CheckboxComponent.d.ts +4 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/checkbox/style.d.ts +4 -0
- package/dist/components/checkbox/typings.d.ts +14 -0
- package/dist/components/dashboard/DashboardService.d.ts +27 -0
- package/dist/components/dashboard/components/DashboardBody.d.ts +5 -0
- package/dist/components/dashboard/components/DashboardComponent.d.ts +7 -0
- package/dist/components/dashboard/components/DashboardContainer.d.ts +5 -0
- package/dist/components/dashboard/components/DashboardFooter.d.ts +2 -0
- package/dist/components/dashboard/components/DashboardHeader.d.ts +2 -0
- package/dist/components/dashboard/components/DashboardLeft.d.ts +2 -0
- package/dist/components/dashboard/components/DashboardOverlay.d.ts +6 -0
- package/dist/components/dashboard/components/DashboardRight.d.ts +2 -0
- package/dist/components/dashboard/components/DashboardToggler.d.ts +5 -0
- package/dist/components/dashboard/hoc/dashboardHorizontalPanel.d.ts +4 -0
- package/dist/components/dashboard/hoc/dashboardVerticalPanel.d.ts +4 -0
- package/dist/components/dashboard/hooks/useDashboard.d.ts +5 -0
- package/dist/components/dashboard/hooks/useDashboardService.d.ts +5 -0
- package/dist/components/dashboard/hooks/useDashboardState.d.ts +5 -0
- package/dist/components/dashboard/index.d.ts +4 -0
- package/dist/components/dashboard/typings.d.ts +96 -0
- package/dist/components/dashboard/utils/dashboardArea.d.ts +3 -0
- package/dist/components/dashboard/utils/dashboardLength.d.ts +5 -0
- package/dist/components/dropdown/components/DropdownComponent.d.ts +4 -4
- package/dist/components/dropdown/hooks/useDropdown.d.ts +5 -0
- package/dist/components/dropdown/index.d.ts +2 -3
- package/dist/components/dropdown/style.d.ts +4 -4
- package/dist/components/dropdown/typings.d.ts +24 -5
- package/dist/components/field/FieldDescription.d.ts +3 -0
- package/dist/components/field/FieldHelp.d.ts +3 -0
- package/dist/components/field/FieldLayout.d.ts +2 -0
- package/dist/components/field/components/FieldDescriptionComponent.d.ts +4 -0
- package/dist/components/field/components/FieldHelpComponent.d.ts +4 -0
- package/dist/components/field/components/FieldLayoutComponent.d.ts +4 -0
- package/dist/components/field/hooks/useFieldLayout.d.ts +4 -0
- package/dist/components/field/style.d.ts +5 -0
- package/dist/components/field/typings.d.ts +53 -0
- package/dist/components/field/util.d.ts +9 -0
- package/dist/components/grid/Col.d.ts +4 -0
- package/dist/components/grid/Row.d.ts +4 -0
- package/dist/components/grid/style.d.ts +4 -0
- package/dist/components/grid/typings.d.ts +33 -0
- package/dist/components/icon/CloseAllIcon.d.ts +4 -0
- package/dist/components/icon/CrossIcon.d.ts +3 -0
- package/dist/components/icon/FileIcon.d.ts +4 -0
- package/dist/components/icon/FolderIcon.d.ts +4 -0
- package/dist/components/icon/LoadingIcon.d.ts +4 -3
- package/dist/components/icon/MenuIcon.d.ts +4 -0
- package/dist/components/icon/RemoveIcon.d.ts +4 -0
- package/dist/components/icon/SearchIcon.d.ts +4 -0
- package/dist/components/icon/TogglerIcon.d.ts +4 -0
- package/dist/components/icon/typings.d.ts +14 -0
- package/dist/components/input/FormInput.d.ts +4 -0
- package/dist/components/input/components/InputComponent.d.ts +4 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/style.d.ts +4 -0
- package/dist/components/input/typings.d.ts +14 -0
- package/dist/components/label/components/LabelComponent.d.ts +4 -0
- package/dist/components/label/index.d.ts +3 -0
- package/dist/components/label/style.d.ts +4 -0
- package/dist/components/label/typings.d.ts +16 -0
- package/dist/components/list/components/ArrayListComponent.d.ts +4 -0
- package/dist/components/list/components/CollectionListComponent.d.ts +4 -0
- package/dist/components/list/components/ListBodyComponent.d.ts +4 -0
- package/dist/components/list/components/ListComponent.d.ts +4 -4
- package/dist/components/list/components/ListItemComponent.d.ts +6 -4
- package/dist/components/list/components/LoadingItem.d.ts +5 -0
- package/dist/components/list/components/StandardListComponent.d.ts +4 -4
- package/dist/components/list/components/VirtualListComponent.d.ts +4 -4
- package/dist/components/list/hooks/useListController.d.ts +4 -0
- package/dist/components/list/hooks/useListService.d.ts +5 -0
- package/dist/components/list/hooks/useListState.d.ts +5 -0
- package/dist/components/list/hooks/useListView.d.ts +22 -0
- package/dist/components/list/index.d.ts +3 -3
- package/dist/components/list/style.d.ts +4 -4
- package/dist/components/list/typings.d.ts +121 -35
- package/dist/components/list/utils.d.ts +3 -4
- package/dist/components/modal/components/ModalComponent.d.ts +4 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/style.d.ts +3 -0
- package/dist/components/modal/typings.d.ts +19 -0
- package/dist/components/properties/components/PropertiesComponent.d.ts +4 -0
- package/dist/components/properties/components/Property.d.ts +4 -0
- package/dist/components/properties/hooks/usePropertiesContext.d.ts +5 -0
- package/dist/components/properties/index.d.ts +3 -0
- package/dist/components/properties/style.d.ts +3 -0
- package/dist/components/properties/typings.d.ts +26 -0
- package/dist/components/resizer/ResizerService.d.ts +17 -0
- package/dist/components/resizer/components/ResizerComponent.d.ts +4 -0
- package/dist/components/resizer/components/ResizerHorizontalSplitter.d.ts +4 -0
- package/dist/components/resizer/components/ResizerVerticalSplitter.d.ts +4 -0
- package/dist/components/resizer/index.d.ts +2 -0
- package/dist/components/resizer/style.d.ts +4 -0
- package/dist/components/resizer/typings.d.ts +34 -0
- package/dist/components/select/FormSelect.d.ts +4 -0
- package/dist/components/select/SelectService.d.ts +5 -0
- package/dist/components/select/components/ArraySelectComponent.d.ts +4 -0
- package/dist/components/select/components/ControllerSelectComponent.d.ts +4 -0
- package/dist/components/select/components/SelectComponent.d.ts +4 -4
- package/dist/components/select/components/SelectIconComponent.d.ts +4 -4
- package/dist/components/select/components/SelectInputComponent.d.ts +4 -4
- package/dist/components/select/components/SelectNotFoundComponent.d.ts +4 -0
- package/dist/components/select/components/SelectOptionComponent.d.ts +6 -4
- package/dist/components/select/components/SelectTokenComponent.d.ts +4 -0
- package/dist/components/select/components/SelectTokensComponent.d.ts +4 -0
- package/dist/components/select/hooks/useSelectConfig.d.ts +4 -0
- package/dist/components/select/hooks/useSelectController.d.ts +6 -0
- package/dist/components/select/index.d.ts +3 -3
- package/dist/components/select/style.d.ts +4 -4
- package/dist/components/select/typings.d.ts +95 -37
- package/dist/components/tab/TabsService.d.ts +24 -0
- package/dist/components/tab/components/ControlledTabsComponent.d.ts +4 -0
- package/dist/components/tab/components/Tab.d.ts +4 -0
- package/dist/components/tab/components/TabTitle.d.ts +4 -0
- package/dist/components/tab/components/TabsComponent.d.ts +4 -0
- package/dist/components/tab/components/TabsContainer.d.ts +4 -0
- package/dist/components/tab/components/UncontrolledTabsComponent.d.ts +4 -0
- package/dist/components/tab/hooks/useTab.d.ts +5 -0
- package/dist/components/tab/hooks/useTabsController.d.ts +3 -0
- package/dist/components/tab/hooks/useTabsService.d.ts +5 -0
- package/dist/components/tab/hooks/useTabsState.d.ts +4 -0
- package/dist/components/tab/index.d.ts +2 -0
- package/dist/components/tab/style.d.ts +3 -0
- package/dist/components/tab/typings.d.ts +54 -0
- package/dist/components/table/FormTable.d.ts +4 -0
- package/dist/components/table/TableService.d.ts +18 -0
- package/dist/components/table/columns/useCheckboxColumn.d.ts +3 -0
- package/dist/components/table/columns/useColumn.d.ts +3 -0
- package/dist/components/table/columns/useInputColumn.d.ts +3 -0
- package/dist/components/table/columns/useLinkColumn.d.ts +3 -0
- package/dist/components/table/columns/useSelectColumn.d.ts +3 -0
- package/dist/components/table/components/ArrayTableComponent.d.ts +4 -0
- package/dist/components/table/components/ControllerTableComponent.d.ts +4 -0
- package/dist/components/table/components/FormTableComponent.d.ts +4 -0
- package/dist/components/table/components/TableBodyCellComponent.d.ts +4 -0
- package/dist/components/table/components/TableBodyComponent.d.ts +4 -0
- package/dist/components/table/components/TableBodyRowComponent.d.ts +4 -0
- package/dist/components/table/components/TableComponent.d.ts +4 -0
- package/dist/components/table/components/TableFooterCellComponent.d.ts +4 -0
- package/dist/components/table/components/TableFooterComponent.d.ts +4 -0
- package/dist/components/table/components/TableHeaderComponent.d.ts +4 -0
- package/dist/components/table/components/TableHeaderFilterComponent.d.ts +4 -0
- package/dist/components/table/components/TableHeaderTitleComponent.d.ts +5 -0
- package/dist/components/table/components/TableLoadingComponent.d.ts +3 -0
- package/dist/components/table/components/TableLoadingRowComponent.d.ts +3 -0
- package/dist/components/table/components/TableNotFoundComponent.d.ts +4 -0
- package/dist/components/table/components/TableSortComponent.d.ts +4 -0
- package/dist/components/table/components/cells/CheckboxCellComponent.d.ts +4 -0
- package/dist/components/table/components/cells/DefaultCellComponent.d.ts +4 -0
- package/dist/components/table/components/cells/ExpandedCellComponent.d.ts +4 -0
- package/dist/components/table/components/cells/InputCellComponent.d.ts +4 -0
- package/dist/components/table/components/cells/SelectCellComponent.d.ts +6 -0
- package/dist/components/table/components/filters/TableInputFilterComponent.d.ts +4 -0
- package/dist/components/table/components/hoc/linkCellComponent.d.ts +4 -0
- package/dist/components/table/hooks/useFormTableContext.d.ts +5 -0
- package/dist/components/table/hooks/useTableColumns.d.ts +3 -0
- package/dist/components/table/hooks/useTableConfig.d.ts +4 -0
- package/dist/components/table/hooks/useTableController.d.ts +5 -0
- package/dist/components/table/hooks/useTableInitialState.d.ts +3 -0
- package/dist/components/table/hooks/useTableItems.d.ts +3 -0
- package/dist/components/table/hooks/useTableService.d.ts +5 -0
- package/dist/components/table/hooks/useTableState.d.ts +4 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/style.d.ts +3 -0
- package/dist/components/table/typings.d.ts +218 -0
- package/dist/components/table/util.d.ts +5 -0
- package/dist/components/tag/components/TagComponent.d.ts +4 -0
- package/dist/components/tag/index.d.ts +2 -0
- package/dist/components/tag/style.d.ts +3 -0
- package/dist/components/tag/typings.d.ts +16 -0
- package/dist/components/tooltip/components/TooltipComponent.d.ts +4 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/style.d.ts +4 -0
- package/dist/components/tooltip/typings.d.ts +10 -0
- package/dist/components/tree/TreeService.d.ts +23 -0
- package/dist/components/tree/components/ArrayTreeComponent.d.ts +4 -0
- package/dist/components/tree/components/ControllerTreeComponent.d.ts +4 -0
- package/dist/components/tree/components/TreeBodyComponent.d.ts +4 -0
- package/dist/components/tree/components/TreeComponent.d.ts +4 -0
- package/dist/components/tree/components/TreeItemComponent.d.ts +6 -0
- package/dist/components/tree/components/TreeListComponent.d.ts +4 -0
- package/dist/components/tree/components/VirtualTreeBodyComponent.d.ts +4 -0
- package/dist/components/tree/components/VirtualTreeListComponent.d.ts +4 -0
- package/dist/components/tree/hooks/useTreeConfig.d.ts +4 -0
- package/dist/components/tree/hooks/useTreeController.d.ts +5 -0
- package/dist/components/tree/hooks/useTreeInitialState.d.ts +5 -0
- package/dist/components/tree/hooks/useTreeItems.d.ts +3 -0
- package/dist/components/tree/hooks/useTreeService.d.ts +5 -0
- package/dist/components/tree/hooks/useTreeState.d.ts +4 -0
- package/dist/components/tree/index.d.ts +3 -0
- package/dist/components/tree/style.d.ts +3 -0
- package/dist/components/tree/typings.d.ts +87 -0
- package/dist/components/wizard/WizardModal.d.ts +2 -0
- package/dist/components/wizard/WizardService.d.ts +17 -0
- package/dist/components/wizard/components/ControlledWizardComponent.d.ts +4 -0
- package/dist/components/wizard/components/Step.d.ts +4 -0
- package/dist/components/wizard/components/StepTitle.d.ts +4 -0
- package/dist/components/wizard/components/UncontrolledWizardComponent.d.ts +4 -0
- package/dist/components/wizard/components/WizardComponent.d.ts +4 -0
- package/dist/components/wizard/components/WizardContainer.d.ts +4 -0
- package/dist/components/wizard/components/WizardModalComponent.d.ts +4 -0
- package/dist/components/wizard/hooks/useStep.d.ts +5 -0
- package/dist/components/wizard/hooks/useWizardController.d.ts +3 -0
- package/dist/components/wizard/hooks/useWizardService.d.ts +5 -0
- package/dist/components/wizard/hooks/useWizardState.d.ts +4 -0
- package/dist/components/wizard/index.d.ts +2 -0
- package/dist/components/wizard/style.d.ts +4 -0
- package/dist/components/wizard/typings.d.ts +41 -0
- package/dist/index.d.ts +167 -33
- package/dist/index.js +9945 -5
- package/dist/index.js.map +1 -0
- package/dist/index.module.js +9546 -0
- package/dist/index.module.js.map +1 -0
- package/dist/styles/alignment.d.ts +13 -13
- package/dist/styles/animation.d.ts +10 -9
- package/dist/styles/background.d.ts +11 -11
- package/dist/styles/border.d.ts +39 -39
- package/dist/styles/display.d.ts +6 -5
- package/dist/styles/effects.d.ts +2 -2
- package/dist/styles/flex.d.ts +9 -9
- package/dist/styles/fragmentation.d.ts +6 -6
- package/dist/styles/grid.d.ts +28 -28
- package/dist/styles/icon.d.ts +4 -0
- package/dist/styles/image.d.ts +5 -5
- package/dist/styles/interactivity.d.ts +16 -16
- package/dist/styles/list.d.ts +5 -5
- package/dist/styles/overflow.d.ts +6 -6
- package/dist/styles/position.d.ts +10 -9
- package/dist/styles/size.d.ts +12 -13
- package/dist/styles/spacing.d.ts +16 -16
- package/dist/styles/svg.d.ts +5 -4
- package/dist/styles/table.d.ts +8 -8
- package/dist/styles/transform.d.ts +8 -8
- package/dist/styles/transition.d.ts +5 -5
- package/dist/styles/typings.d.ts +528 -20
- package/dist/styles/typography.d.ts +49 -49
- package/dist/theme/base.d.ts +4 -0
- package/dist/theme/tailwind.d.ts +5 -0
- package/dist/utils/color.d.ts +10 -7
- package/dist/utils/dom.d.ts +9 -0
- package/dist/utils/event.d.ts +2 -1
- package/dist/utils/formatter.d.ts +7 -7
- package/dist/utils/popper.d.ts +4 -4
- package/dist/utils/size.d.ts +3 -0
- package/dist/utils/style.d.ts +9 -7
- package/package.json +36 -24
- package/src/components/accordion/AccordionService.ts +36 -0
- package/src/components/accordion/components/AccordionComponent.tsx +37 -0
- package/src/components/accordion/components/AccordionContainer.tsx +11 -0
- package/src/components/accordion/components/AccordionPanel.tsx +74 -0
- package/src/components/accordion/components/AccordionPanelTitle.tsx +14 -0
- package/src/components/accordion/hooks/useAccordionPanel.ts +19 -0
- package/src/components/accordion/hooks/useAccordionService.ts +11 -0
- package/src/components/accordion/hooks/useAccordionState.ts +7 -0
- package/src/components/accordion/index.ts +23 -0
- package/src/components/accordion/style.ts +72 -0
- package/src/components/accordion/typings.ts +50 -0
- package/src/components/button/DropdownButton.tsx +9 -0
- package/src/components/button/SubmitButton.tsx +58 -0
- package/src/components/button/components/ButtonComponent.tsx +24 -0
- package/src/components/button/components/DropdownButtonComponent.tsx +82 -0
- package/src/components/button/index.tsx +1 -1
- package/src/components/button/style.ts +84 -8
- package/src/components/button/typings.ts +19 -2
- package/src/components/card/FormCard.tsx +24 -0
- package/src/components/card/components/CardComponent.tsx +83 -0
- package/src/components/card/components/CardTitle.tsx +14 -0
- package/src/components/card/index.tsx +9 -0
- package/src/components/card/style.ts +68 -0
- package/src/components/card/typings.ts +28 -0
- package/src/components/checkbox/FormCheckbox.tsx +26 -0
- package/src/components/checkbox/components/CheckboxComponent.tsx +42 -0
- package/src/components/checkbox/index.tsx +9 -0
- package/src/components/checkbox/style.ts +103 -0
- package/src/components/checkbox/typings.ts +18 -0
- package/src/components/dashboard/DashboardService.ts +412 -0
- package/src/components/dashboard/components/DashboardBody.tsx +138 -0
- package/src/components/dashboard/components/DashboardComponent.tsx +36 -0
- package/src/components/dashboard/components/DashboardContainer.tsx +64 -0
- package/src/components/dashboard/components/DashboardFooter.tsx +4 -0
- package/src/components/dashboard/components/DashboardHeader.tsx +4 -0
- package/src/components/dashboard/components/DashboardLeft.tsx +4 -0
- package/src/components/dashboard/components/DashboardOverlay.tsx +29 -0
- package/src/components/dashboard/components/DashboardRight.tsx +4 -0
- package/src/components/dashboard/components/DashboardToggler.tsx +17 -0
- package/src/components/dashboard/hoc/dashboardHorizontalPanel.tsx +145 -0
- package/src/components/dashboard/hoc/dashboardVerticalPanel.tsx +148 -0
- package/src/components/dashboard/hooks/useDashboard.tsx +21 -0
- package/src/components/dashboard/hooks/useDashboardService.ts +11 -0
- package/src/components/dashboard/hooks/useDashboardState.ts +11 -0
- package/src/components/dashboard/index.tsx +13 -0
- package/src/components/dashboard/typings.ts +124 -0
- package/src/components/dashboard/utils/dashboardArea.ts +27 -0
- package/src/components/dashboard/utils/dashboardLength.ts +42 -0
- package/src/components/dropdown/components/DropdownComponent.tsx +201 -23
- package/src/components/dropdown/hooks/useDropdown.tsx +21 -0
- package/src/components/dropdown/style.ts +10 -28
- package/src/components/dropdown/typings.ts +26 -4
- package/src/components/field/FieldDescription.tsx +9 -0
- package/src/components/field/FieldHelp.tsx +9 -0
- package/src/components/field/FieldLayout.tsx +9 -0
- package/src/components/field/components/FieldDescriptionComponent.tsx +14 -0
- package/src/components/field/components/FieldHelpComponent.tsx +22 -0
- package/src/components/field/components/FieldLayoutComponent.tsx +174 -0
- package/src/components/field/hooks/useFieldLayout.ts +36 -0
- package/src/components/field/style.ts +59 -0
- package/src/components/field/typings.ts +67 -0
- package/src/components/field/util.ts +47 -0
- package/src/components/grid/Col.tsx +33 -0
- package/src/components/grid/Row.tsx +35 -0
- package/src/components/grid/style.ts +93 -0
- package/src/components/grid/typings.ts +35 -0
- package/src/components/icon/CloseAllIcon.tsx +38 -0
- package/src/components/icon/CrossIcon.tsx +30 -0
- package/src/components/icon/FileIcon.tsx +36 -0
- package/src/components/icon/FolderIcon.tsx +36 -0
- package/src/components/icon/LoadingIcon.tsx +26 -23
- package/src/components/icon/MenuIcon.tsx +34 -0
- package/src/components/icon/RemoveIcon.tsx +36 -0
- package/src/components/icon/SearchIcon.tsx +38 -0
- package/src/components/icon/TogglerIcon.tsx +126 -0
- package/src/components/icon/typings.ts +15 -0
- package/src/components/input/FormInput.tsx +26 -0
- package/src/components/input/components/InputComponent.tsx +46 -0
- package/src/components/input/index.tsx +9 -0
- package/src/components/input/style.ts +85 -0
- package/src/components/input/typings.ts +17 -0
- package/src/components/label/components/LabelComponent.tsx +39 -0
- package/src/components/label/index.tsx +9 -0
- package/src/components/label/style.ts +64 -0
- package/src/components/label/typings.ts +17 -0
- package/src/components/list/components/ArrayListComponent.tsx +11 -0
- package/src/components/list/components/CollectionListComponent.tsx +77 -0
- package/src/components/list/components/ListBodyComponent.tsx +250 -0
- package/src/components/list/components/ListComponent.tsx +11 -25
- package/src/components/list/components/ListItemComponent.tsx +16 -4
- package/src/components/list/components/LoadingItem.tsx +24 -0
- package/src/components/list/components/StandardListComponent.tsx +23 -21
- package/src/components/list/components/VirtualListComponent.tsx +93 -110
- package/src/components/list/hooks/useListController.ts +19 -0
- package/src/components/list/hooks/useListService.ts +15 -0
- package/src/components/list/hooks/useListState.ts +10 -0
- package/src/components/list/hooks/useListView.tsx +103 -0
- package/src/components/list/typings.ts +162 -24
- package/src/components/list/utils.ts +17 -55
- package/src/components/modal/components/ModalComponent.tsx +132 -0
- package/src/components/modal/index.tsx +9 -0
- package/src/components/modal/style.ts +135 -0
- package/src/components/modal/typings.ts +20 -0
- package/src/components/properties/components/PropertiesComponent.tsx +44 -0
- package/src/components/properties/components/Property.tsx +40 -0
- package/src/components/properties/hooks/usePropertiesContext.ts +10 -0
- package/src/components/properties/index.tsx +9 -0
- package/src/components/properties/style.ts +17 -0
- package/src/components/properties/typings.ts +30 -0
- package/src/components/resizer/ResizerService.ts +96 -0
- package/src/components/resizer/components/ResizerComponent.tsx +28 -0
- package/src/components/resizer/components/ResizerHorizontalSplitter.tsx +38 -0
- package/src/components/resizer/components/ResizerVerticalSplitter.tsx +37 -0
- package/src/components/resizer/index.tsx +9 -0
- package/src/components/resizer/style.ts +51 -0
- package/src/components/resizer/typings.ts +40 -0
- package/src/components/select/FormSelect.tsx +26 -0
- package/src/components/select/SelectService.ts +9 -0
- package/src/components/select/components/ArraySelectComponent.tsx +11 -0
- package/src/components/select/components/ControllerSelectComponent.tsx +441 -0
- package/src/components/select/components/SelectComponent.tsx +13 -121
- package/src/components/select/components/SelectIconComponent.tsx +4 -4
- package/src/components/select/components/SelectInputComponent.tsx +220 -76
- package/src/components/select/components/SelectNotFoundComponent.tsx +14 -0
- package/src/components/select/components/SelectOptionComponent.tsx +54 -20
- package/src/components/select/components/SelectTokenComponent.tsx +25 -0
- package/src/components/select/components/SelectTokensComponent.tsx +50 -0
- package/src/components/select/hooks/useSelectConfig.ts +7 -0
- package/src/components/select/hooks/useSelectController.ts +21 -0
- package/src/components/select/index.tsx +0 -89
- package/src/components/select/style.ts +336 -47
- package/src/components/select/typings.ts +130 -24
- package/src/components/tab/TabsService.ts +192 -0
- package/src/components/tab/components/ControlledTabsComponent.tsx +18 -0
- package/src/components/tab/components/Tab.tsx +55 -0
- package/src/components/tab/components/TabTitle.tsx +18 -0
- package/src/components/tab/components/TabsComponent.tsx +15 -0
- package/src/components/tab/components/TabsContainer.tsx +36 -0
- package/src/components/tab/components/UncontrolledTabsComponent.tsx +13 -0
- package/src/components/tab/hooks/useTab.ts +18 -0
- package/src/components/tab/hooks/useTabsController.ts +15 -0
- package/src/components/tab/hooks/useTabsService.ts +11 -0
- package/src/components/tab/hooks/useTabsState.ts +7 -0
- package/src/components/tab/index.tsx +9 -0
- package/src/components/tab/style.ts +78 -0
- package/src/components/tab/typings.ts +59 -0
- package/src/components/table/FormTable.tsx +38 -0
- package/src/components/table/TableService.ts +123 -0
- package/src/components/table/columns/useCheckboxColumn.ts +24 -0
- package/src/components/table/columns/useColumn.ts +23 -0
- package/src/components/table/columns/useInputColumn.ts +24 -0
- package/src/components/table/columns/useLinkColumn.ts +19 -0
- package/src/components/table/columns/useSelectColumn.ts +26 -0
- package/src/components/table/components/ArrayTableComponent.tsx +14 -0
- package/src/components/table/components/ControllerTableComponent.tsx +167 -0
- package/src/components/table/components/FormTableComponent.tsx +143 -0
- package/src/components/table/components/TableBodyCellComponent.tsx +36 -0
- package/src/components/table/components/TableBodyComponent.tsx +96 -0
- package/src/components/table/components/TableBodyRowComponent.tsx +125 -0
- package/src/components/table/components/TableComponent.tsx +17 -0
- package/src/components/table/components/TableFooterCellComponent.tsx +28 -0
- package/src/components/table/components/TableFooterComponent.tsx +34 -0
- package/src/components/table/components/TableHeaderComponent.tsx +81 -0
- package/src/components/table/components/TableHeaderFilterComponent.tsx +31 -0
- package/src/components/table/components/TableHeaderTitleComponent.tsx +62 -0
- package/src/components/table/components/TableLoadingComponent.tsx +18 -0
- package/src/components/table/components/TableLoadingRowComponent.tsx +21 -0
- package/src/components/table/components/TableNotFoundComponent.tsx +14 -0
- package/src/components/table/components/TableSortComponent.tsx +29 -0
- package/src/components/table/components/cells/CheckboxCellComponent.tsx +42 -0
- package/src/components/table/components/cells/DefaultCellComponent.tsx +9 -0
- package/src/components/table/components/cells/ExpandedCellComponent.tsx +16 -0
- package/src/components/table/components/cells/InputCellComponent.tsx +27 -0
- package/src/components/table/components/cells/SelectCellComponent.tsx +41 -0
- package/src/components/table/components/filters/TableInputFilterComponent.tsx +134 -0
- package/src/components/table/components/hoc/linkCellComponent.tsx +15 -0
- package/src/components/table/hooks/useFormTableContext.ts +10 -0
- package/src/components/table/hooks/useTableColumns.ts +9 -0
- package/src/components/table/hooks/useTableConfig.ts +7 -0
- package/src/components/table/hooks/useTableController.ts +26 -0
- package/src/components/table/hooks/useTableInitialState.ts +22 -0
- package/src/components/table/hooks/useTableItems.ts +9 -0
- package/src/components/table/hooks/useTableService.ts +10 -0
- package/src/components/table/hooks/useTableState.ts +7 -0
- package/src/components/table/index.tsx +9 -0
- package/src/components/table/style.ts +248 -0
- package/src/components/table/typings.ts +322 -0
- package/src/components/table/util.ts +52 -0
- package/src/components/tag/components/TagComponent.tsx +15 -0
- package/src/components/tag/index.tsx +9 -0
- package/src/components/tag/style.ts +62 -0
- package/src/components/tag/typings.ts +17 -0
- package/src/components/tooltip/components/TooltipComponent.tsx +38 -0
- package/src/components/tooltip/index.tsx +9 -0
- package/src/components/tooltip/style.ts +153 -0
- package/src/components/tooltip/typings.ts +10 -0
- package/src/components/tree/TreeService.ts +392 -0
- package/src/components/tree/components/ArrayTreeComponent.tsx +14 -0
- package/src/components/tree/components/ControllerTreeComponent.tsx +72 -0
- package/src/components/tree/components/TreeBodyComponent.tsx +25 -0
- package/src/components/tree/components/TreeComponent.tsx +17 -0
- package/src/components/tree/components/TreeItemComponent.tsx +100 -0
- package/src/components/tree/components/TreeListComponent.tsx +198 -0
- package/src/components/tree/components/VirtualTreeBodyComponent.tsx +34 -0
- package/src/components/tree/components/VirtualTreeListComponent.tsx +287 -0
- package/src/components/tree/hooks/useTreeConfig.ts +7 -0
- package/src/components/tree/hooks/useTreeController.ts +33 -0
- package/src/components/tree/hooks/useTreeInitialState.ts +12 -0
- package/src/components/tree/hooks/useTreeItems.ts +9 -0
- package/src/components/tree/hooks/useTreeService.ts +10 -0
- package/src/components/tree/hooks/useTreeState.ts +7 -0
- package/src/components/tree/index.tsx +9 -0
- package/src/components/tree/style.ts +57 -0
- package/src/components/tree/typings.ts +126 -0
- package/src/components/wizard/WizardModal.ts +9 -0
- package/src/components/wizard/WizardService.ts +123 -0
- package/src/components/wizard/components/ControlledWizardComponent.tsx +22 -0
- package/src/components/wizard/components/Step.tsx +82 -0
- package/src/components/wizard/components/StepTitle.tsx +26 -0
- package/src/components/wizard/components/UncontrolledWizardComponent.tsx +13 -0
- package/src/components/wizard/components/WizardComponent.tsx +15 -0
- package/src/components/wizard/components/WizardContainer.tsx +134 -0
- package/src/components/wizard/components/WizardModalComponent.tsx +15 -0
- package/src/components/wizard/hooks/useStep.ts +18 -0
- package/src/components/wizard/hooks/useWizardController.ts +27 -0
- package/src/components/wizard/hooks/useWizardService.ts +11 -0
- package/src/components/wizard/hooks/useWizardState.ts +7 -0
- package/src/components/wizard/index.tsx +9 -0
- package/src/components/wizard/style.ts +159 -0
- package/src/components/wizard/typings.ts +53 -0
- package/src/fonts.d.ts +1 -0
- package/src/index.ts +269 -9
- package/src/styles/border.ts +8 -11
- package/src/styles/flex.ts +3 -3
- package/src/styles/icon.ts +14 -0
- package/src/styles/position.ts +13 -2
- package/src/styles/size.ts +19 -13
- package/src/styles/svg.ts +4 -3
- package/src/styles/typings.ts +587 -63
- package/src/theme/base.tsx +507 -0
- package/src/theme/tailwind.tsx +112 -0
- package/src/utils/color.ts +35 -1
- package/src/utils/dom.ts +32 -0
- package/src/utils/event.ts +25 -4
- package/src/utils/formatter.ts +7 -10
- package/src/utils/popper.ts +1 -1
- package/src/utils/size.ts +12 -0
- package/src/utils/style.ts +6 -9
- package/src/vendor/reactVirtual.d.ts +76 -0
- package/src/vendor/reactVirtual.js +463 -0
- package/src/vendor/useIsomorphicLayoutEffect.js +3 -0
- package/src/vendor/useRect.js +49 -0
- package/CHANGELOG.md +0 -136
- package/dist/__tests__/mocks/handlers.d.ts +0 -1
- package/dist/__tests__/mocks/responses.d.ts +0 -4
- package/dist/__tests__/mocks/server.d.ts +0 -7
- package/dist/__tests__/setup.d.ts +0 -1
- package/dist/__tests__/setupTests.d.ts +0 -1
- package/dist/__tests__/utils/timeout.d.ts +0 -4
- package/dist/components/button/component.d.ts +0 -4
- package/dist/components/select/components/SelectOptionsComponent.d.ts +0 -4
- package/dist/onekijs-ui.cjs.development.js +0 -2115
- package/dist/onekijs-ui.cjs.development.js.map +0 -1
- package/dist/onekijs-ui.cjs.production.min.js +0 -2
- package/dist/onekijs-ui.cjs.production.min.js.map +0 -1
- package/dist/onekijs-ui.esm.js +0 -1853
- package/dist/onekijs-ui.esm.js.map +0 -1
- package/dist/styles/theme.d.ts +0 -2
- package/jest.config.js +0 -188
- package/postcss.config.js +0 -3
- package/src/__tests__/mocks/handlers.ts +0 -60
- package/src/__tests__/mocks/responses.ts +0 -7
- package/src/__tests__/mocks/server.ts +0 -4
- package/src/__tests__/setup.ts +0 -1
- package/src/__tests__/setupTests.ts +0 -12
- package/src/__tests__/utils/timeout.ts +0 -27
- package/src/components/button/component.tsx +0 -8
- package/src/components/select/components/SelectOptionsComponent.tsx +0 -14
- package/src/styles/index.css +0 -5
- package/src/styles/tailwind.css +0 -86923
- package/src/styles/theme.ts +0 -274
- package/src/utils/query.ts.old +0 -148
- package/tailwind.config.js +0 -8
- package/tsconfig.json +0 -37
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { css } from 'styled-components';
|
|
2
|
+
import { alignItems, justifyContent } from '../../styles/alignment';
|
|
3
|
+
import { backgroundColor } from '../../styles/background';
|
|
4
|
+
import {
|
|
5
|
+
borderBottomColor,
|
|
6
|
+
borderBottomStyle,
|
|
7
|
+
borderBottomWidth,
|
|
8
|
+
borderLeftColor,
|
|
9
|
+
borderLeftStyle,
|
|
10
|
+
borderLeftWidth,
|
|
11
|
+
borderRightColor,
|
|
12
|
+
borderRightStyle,
|
|
13
|
+
borderRightWidth,
|
|
14
|
+
} from '../../styles/border';
|
|
15
|
+
import { display } from '../../styles/display';
|
|
16
|
+
import { flexDirection, flexGrow } from '../../styles/flex';
|
|
17
|
+
import { cursor } from '../../styles/interactivity';
|
|
18
|
+
import { marginLeft, padding, paddingBottom, paddingLeft, paddingRight, paddingTop } from '../../styles/spacing';
|
|
19
|
+
import { ComponentStyle } from '../../styles/typings';
|
|
20
|
+
import { color, fontSize, fontWeight, lineHeight, textDecoration } from '../../styles/typography';
|
|
21
|
+
import { WizardModalProps, WizardProps } from './typings';
|
|
22
|
+
|
|
23
|
+
export const wizardStyle: ComponentStyle<WizardProps> = ({ layout = 'vertical', theme }) => {
|
|
24
|
+
const t = theme.wizard;
|
|
25
|
+
const stepBorderWidthFn = layout === 'horizontal' ? borderBottomWidth : borderLeftWidth;
|
|
26
|
+
const stepBorderStyleFn = layout === 'horizontal' ? borderBottomStyle : borderLeftStyle;
|
|
27
|
+
const stepBorderColorFn = layout === 'horizontal' ? borderBottomColor : borderLeftColor;
|
|
28
|
+
const wizardBorderWidthFn = layout === 'horizontal' ? borderBottomWidth : borderRightWidth;
|
|
29
|
+
const wizardBorderStyleFn = layout === 'horizontal' ? borderBottomStyle : borderRightStyle;
|
|
30
|
+
const wizardBorderColorFn = layout === 'horizontal' ? borderBottomColor : borderRightColor;
|
|
31
|
+
return css`
|
|
32
|
+
${display('flex')}
|
|
33
|
+
${flexDirection(layout === 'horizontal' ? 'column' : 'row')}
|
|
34
|
+
.o-wizard-step-panel {
|
|
35
|
+
${display('flex')}
|
|
36
|
+
${flexDirection(layout === 'horizontal' ? 'row' : 'column')}
|
|
37
|
+
${alignItems(layout === 'horizontal' ? 'flex-end' : 'stretch')}
|
|
38
|
+
${wizardBorderStyleFn(t.stepsBorderStyle)}
|
|
39
|
+
${wizardBorderWidthFn(t.stepsBorderWidth)}
|
|
40
|
+
${wizardBorderColorFn(t.stepsBorderColor)}
|
|
41
|
+
${paddingRight(t.stepsPaddingRight)}
|
|
42
|
+
${paddingTop(t.stepsPaddingTop)}
|
|
43
|
+
${paddingLeft(t.stepsPaddingLeft)}
|
|
44
|
+
${paddingBottom(t.stepsPaddingBottom)}
|
|
45
|
+
${backgroundColor(t.stepsBgColor)}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.o-step {
|
|
49
|
+
${paddingRight(t.paddingRight)}
|
|
50
|
+
${paddingTop(t.paddingTop)}
|
|
51
|
+
${paddingLeft(t.paddingLeft)}
|
|
52
|
+
${paddingBottom(t.paddingBottom)}
|
|
53
|
+
${stepBorderStyleFn(t.borderStyle)}
|
|
54
|
+
${stepBorderWidthFn(t.borderWidth)}
|
|
55
|
+
${stepBorderColorFn(t.borderColor)}
|
|
56
|
+
${fontWeight(t.fontWeight)}
|
|
57
|
+
${fontSize(t.fontSize)}
|
|
58
|
+
${color(t.fontColor)}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.o-step-active {
|
|
62
|
+
${stepBorderColorFn(t.activeBorderColor)}
|
|
63
|
+
${color(t.activeFontColor)}
|
|
64
|
+
${fontWeight(t.activeFontWeight)}
|
|
65
|
+
${fontSize(t.activeFontSize)}
|
|
66
|
+
${backgroundColor(t.activeBgColor)}
|
|
67
|
+
&.o-step-enabled {
|
|
68
|
+
${cursor('default')}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&.o-step-warning {
|
|
72
|
+
${stepBorderColorFn(t.warningBorderColor)}
|
|
73
|
+
${color(t.warningFontColor)}
|
|
74
|
+
${backgroundColor(t.warningBgColor)}
|
|
75
|
+
}
|
|
76
|
+
&.o-step-error {
|
|
77
|
+
${stepBorderColorFn(t.errorBorderColor)}
|
|
78
|
+
${color(t.errorFontColor)}
|
|
79
|
+
${backgroundColor(t.errorBgColor)}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.o-step-inactive {
|
|
84
|
+
&.o-step-success,
|
|
85
|
+
&.o-step-touched {
|
|
86
|
+
${stepBorderColorFn(t.successBorderColor)}
|
|
87
|
+
${color(t.successFontColor)}
|
|
88
|
+
}
|
|
89
|
+
&.o-step-warning {
|
|
90
|
+
${stepBorderColorFn(t.warningBorderColor)}
|
|
91
|
+
${color(t.warningFontColor)}
|
|
92
|
+
}
|
|
93
|
+
&.o-step-error {
|
|
94
|
+
${stepBorderColorFn(t.errorBorderColor)}
|
|
95
|
+
${color(t.errorFontColor)}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.o-step-enabled {
|
|
100
|
+
${cursor(t.cursor)}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.o-step-disabled,
|
|
104
|
+
.o-step-untouched {
|
|
105
|
+
${cursor('default')}
|
|
106
|
+
${stepBorderColorFn(t.disabledBorderColor)}
|
|
107
|
+
${color(t.disabledFontColor)}
|
|
108
|
+
${fontWeight(t.disabledFontWeight)}
|
|
109
|
+
${fontSize(t.disabledFontSize)}
|
|
110
|
+
${backgroundColor(t.disabledBgColor)}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.o-step-disabled {
|
|
114
|
+
${cursor('not-allowed')}
|
|
115
|
+
${textDecoration('line-through')}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.o-wizard-content-panel {
|
|
119
|
+
${display('flex')}
|
|
120
|
+
${flexDirection('column')}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.o-wizard-content {
|
|
124
|
+
${flexGrow(1)}
|
|
125
|
+
${padding('lg')}
|
|
126
|
+
${paddingRight('3xl')}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.o-wizard-control {
|
|
130
|
+
${display('flex')}
|
|
131
|
+
${justifyContent('flex-end')}
|
|
132
|
+
${padding('lg')}
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.o-wizard-control-button {
|
|
136
|
+
${marginLeft('sm')}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.o-wizard-title {
|
|
140
|
+
${fontSize('2xl')}
|
|
141
|
+
${fontWeight('light')}
|
|
142
|
+
${color('black')}
|
|
143
|
+
${lineHeight('4xl')}
|
|
144
|
+
${paddingBottom('md')}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.o-step-content-title {
|
|
148
|
+
${fontSize('2xl')}
|
|
149
|
+
${fontWeight('light')}
|
|
150
|
+
${color('black')}
|
|
151
|
+
${lineHeight('4xl')}
|
|
152
|
+
${paddingBottom('md')}
|
|
153
|
+
}
|
|
154
|
+
`;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export const wizardModalStyle: ComponentStyle<WizardModalProps> = () => {
|
|
158
|
+
return css``;
|
|
159
|
+
};
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { AnyFunction, FCC } from 'onekijs-framework';
|
|
2
|
+
import { ReactNode } from 'react';
|
|
3
|
+
import { GridSize } from '../grid/typings';
|
|
4
|
+
import { ModalProps } from '../modal/typings';
|
|
5
|
+
import { TabProps, TabsProps, TabsState, TabState, TabTitleProps } from '../tab/typings';
|
|
6
|
+
import { WizardService } from './WizardService';
|
|
7
|
+
|
|
8
|
+
export type ControlledWizardProps = WizardProps & {
|
|
9
|
+
controller: WizardService;
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
export type StepProps = TabProps & {
|
|
13
|
+
optional?: boolean;
|
|
14
|
+
showTitle?: boolean;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export type StepState = TabState & {
|
|
18
|
+
optional: boolean;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export type StepTitleProps<M extends StepState = StepState> = TabTitleProps<M> & {
|
|
22
|
+
index: number;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type UseWizardController = (props: WizardProps) => WizardService;
|
|
26
|
+
|
|
27
|
+
export type WizardModalProps<M extends StepState = StepState> = ModalProps & WizardProps<M>;
|
|
28
|
+
|
|
29
|
+
export type WizardProps<M extends StepState = StepState> = Omit<
|
|
30
|
+
TabsProps,
|
|
31
|
+
'controller' | 'Component' | 'TitleComponent'
|
|
32
|
+
> & {
|
|
33
|
+
cancelLabel?: string;
|
|
34
|
+
controller?: WizardService;
|
|
35
|
+
Component?: FCC<Omit<WizardProps, 'Component'>>;
|
|
36
|
+
doneLabel?: string;
|
|
37
|
+
forwardOnly?: boolean;
|
|
38
|
+
nextLabel?: string;
|
|
39
|
+
previousLabel?: string;
|
|
40
|
+
stepSize?: GridSize;
|
|
41
|
+
onCancel?: AnyFunction;
|
|
42
|
+
onDone?: AnyFunction;
|
|
43
|
+
onNext?: (currentStep: M, nextStep: M) => boolean;
|
|
44
|
+
onPrevious?: (currentStep: M, previousStep: M) => boolean;
|
|
45
|
+
title?: ReactNode;
|
|
46
|
+
TitleComponent?: React.FC<StepTitleProps>;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type WizardState<M extends StepState = StepState> = TabsState<M> &
|
|
50
|
+
Pick<WizardProps<M>, 'onCancel' | 'onDone' | 'onNext' | 'onPrevious'> & {
|
|
51
|
+
forwardOnly?: boolean;
|
|
52
|
+
submitting?: boolean;
|
|
53
|
+
};
|
package/src/fonts.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
declare module '*.ttf';
|
package/src/index.ts
CHANGED
|
@@ -1,21 +1,277 @@
|
|
|
1
|
+
export { default as Accordion } from './components/accordion';
|
|
2
|
+
export { default as AccordionComponent } from './components/accordion/components/AccordionComponent';
|
|
3
|
+
export { default as AccordionContainer } from './components/accordion/components/AccordionContainer';
|
|
4
|
+
export { default as AccordionPanel } from './components/accordion/components/AccordionPanel';
|
|
5
|
+
export { accordionStyle } from './components/accordion/style';
|
|
6
|
+
export {
|
|
7
|
+
AccordionPanelProps,
|
|
8
|
+
AccordionPanelState,
|
|
9
|
+
AccordionPanelTitleProps,
|
|
10
|
+
AccordionProps,
|
|
11
|
+
AccordionState,
|
|
12
|
+
} from './components/accordion/typings';
|
|
1
13
|
export { default as Button } from './components/button';
|
|
14
|
+
export { default as DropdownButton } from './components/button/DropdownButton';
|
|
15
|
+
export { default as buttonStyle, dropdownButtonStyle } from './components/button/style';
|
|
16
|
+
export { default as SubmitButton } from './components/button/SubmitButton';
|
|
17
|
+
export { ButtonProps, DropDownButtonProps, SubmitButtonProps } from './components/button/typings';
|
|
18
|
+
export { default as Card } from './components/card';
|
|
19
|
+
export { default as CardComponent } from './components/card/components/CardComponent';
|
|
20
|
+
export { default as CardTitle } from './components/card/components/CardTitle';
|
|
21
|
+
export { default as FormCard } from './components/card/FormCard';
|
|
22
|
+
export { cardStyle } from './components/card/style';
|
|
23
|
+
export { CardProps, CardTitleProps, FormCardProps } from './components/card/typings';
|
|
24
|
+
export { default as Checkbox } from './components/checkbox';
|
|
25
|
+
export { default as CheckboxComponent } from './components/checkbox/components/CheckboxComponent';
|
|
26
|
+
export { default as FormCheckbox } from './components/checkbox/FormCheckbox';
|
|
27
|
+
export { default as checkboxStyle } from './components/checkbox/style';
|
|
28
|
+
export { CheckboxProps, FormCheckboxProps } from './components/checkbox/typings';
|
|
29
|
+
export { default as Dashboard } from './components/dashboard';
|
|
30
|
+
export { default as DashboardBody } from './components/dashboard/components/DashboardBody';
|
|
31
|
+
export { default as DashboardContainer } from './components/dashboard/components/DashboardContainer';
|
|
32
|
+
export { default as DashboardFooter } from './components/dashboard/components/DashboardFooter';
|
|
33
|
+
export { default as DashboardHeader } from './components/dashboard/components/DashboardHeader';
|
|
34
|
+
export { default as DashboardLeft } from './components/dashboard/components/DashboardLeft';
|
|
35
|
+
export { dashboardOverlayStyle, default as DashboardOverlay } from './components/dashboard/components/DashboardOverlay';
|
|
36
|
+
export { default as DashboardRight } from './components/dashboard/components/DashboardRight';
|
|
37
|
+
export { default as DashboardToggler } from './components/dashboard/components/DashboardToggler';
|
|
38
|
+
export { DashboardService } from './components/dashboard/DashboardService';
|
|
39
|
+
export { default as useDashboard } from './components/dashboard/hooks/useDashboard';
|
|
40
|
+
export {
|
|
41
|
+
DashboardServiceContext,
|
|
42
|
+
default as useDashboardService,
|
|
43
|
+
} from './components/dashboard/hooks/useDashboardService';
|
|
44
|
+
export { DashboardStateContext, default as useDashboardState } from './components/dashboard/hooks/useDashboardState';
|
|
45
|
+
export {
|
|
46
|
+
DashboardArea,
|
|
47
|
+
DashboardBodyComponentProps,
|
|
48
|
+
DashboardBodyPanel,
|
|
49
|
+
DashboardBodyPanelProps,
|
|
50
|
+
DashboardContainerProps,
|
|
51
|
+
DashboardHorizontalArea,
|
|
52
|
+
DashboardHorizontalPanel,
|
|
53
|
+
DashboardHorizontalPanelProps,
|
|
54
|
+
DashboardOverlayProps,
|
|
55
|
+
DashboardProps,
|
|
56
|
+
DashboardSize,
|
|
57
|
+
DashboardState,
|
|
58
|
+
DashboardTogglerProps,
|
|
59
|
+
DashboardVerticalArea,
|
|
60
|
+
DashboardVerticalPanel,
|
|
61
|
+
DashboardVerticalPanelProps,
|
|
62
|
+
} from './components/dashboard/typings';
|
|
63
|
+
export { default as Dropdown } from './components/dropdown';
|
|
64
|
+
export { default as DropdownComponent } from './components/dropdown/components/DropdownComponent';
|
|
65
|
+
export { default as useDropdown } from './components/dropdown/hooks/useDropdown';
|
|
66
|
+
export { default as dropdownStyle } from './components/dropdown/style';
|
|
67
|
+
export { default as FieldDescriptionComponent } from './components/field/components/FieldDescriptionComponent';
|
|
68
|
+
export { default as FieldHelpComponent } from './components/field/components/FieldHelpComponent';
|
|
69
|
+
export { default as FieldLayoutComponent } from './components/field/components/FieldLayoutComponent';
|
|
70
|
+
export { default as FieldDescription } from './components/field/FieldDescription';
|
|
71
|
+
export { default as FieldHelp } from './components/field/FieldHelp';
|
|
72
|
+
export { default as FieldLayout } from './components/field/FieldLayout';
|
|
73
|
+
export { default as useFieldLayout } from './components/field/hooks/useFieldLayout';
|
|
74
|
+
export {
|
|
75
|
+
FieldComponentProps,
|
|
76
|
+
FieldDescriptionProps,
|
|
77
|
+
FieldHelpProps,
|
|
78
|
+
FieldLayoutProps,
|
|
79
|
+
UseFieldLayoutProps,
|
|
80
|
+
} from './components/field/typings';
|
|
81
|
+
export { default as Col } from './components/grid/Col';
|
|
82
|
+
export { default as Row } from './components/grid/Row';
|
|
83
|
+
export { colStyle, rowStyle } from './components/grid/style';
|
|
84
|
+
export { ColProps, GridSize, RowProps } from './components/grid/typings';
|
|
85
|
+
export { default as CloseAllIcon } from './components/icon/CloseAllIcon';
|
|
86
|
+
export { default as CrossIcon } from './components/icon/CrossIcon';
|
|
87
|
+
export { default as FileIcon } from './components/icon/FileIcon';
|
|
88
|
+
export { default as FolderIcon } from './components/icon/FolderIcon';
|
|
89
|
+
export { default as LoadingIcon } from './components/icon/LoadingIcon';
|
|
90
|
+
export { default as MenuIcon } from './components/icon/MenuIcon';
|
|
91
|
+
export { default as SearchIcon } from './components/icon/SearchIcon';
|
|
92
|
+
export { default as TogglerIcon } from './components/icon/TogglerIcon';
|
|
93
|
+
export { default as Input } from './components/input';
|
|
94
|
+
export { default as InputComponent } from './components/input/components/InputComponent';
|
|
95
|
+
export { default as FormInput } from './components/input/FormInput';
|
|
96
|
+
export { FormInputProps, InputProps } from './components/input/typings';
|
|
97
|
+
export { default as Label } from './components/label';
|
|
98
|
+
export { default as List } from './components/list';
|
|
99
|
+
export { default as ListItemComponent, ListItemContent } from './components/list/components/ListItemComponent';
|
|
100
|
+
export { default as LoadingItem } from './components/list/components/LoadingItem';
|
|
101
|
+
export { default as useListController } from './components/list/hooks/useListController';
|
|
102
|
+
export {
|
|
103
|
+
ArrayListProps,
|
|
104
|
+
CollectionListProps,
|
|
105
|
+
ListBodyProps,
|
|
106
|
+
ListCollection,
|
|
107
|
+
ListFooterProps,
|
|
108
|
+
ListHeaderProps,
|
|
109
|
+
ListItem,
|
|
110
|
+
ListItemAdaptee,
|
|
111
|
+
ListItemAdapter,
|
|
112
|
+
ListItemHandler,
|
|
113
|
+
ListItemProps,
|
|
114
|
+
ListItems,
|
|
115
|
+
ListProps,
|
|
116
|
+
ListState,
|
|
117
|
+
ListStatus,
|
|
118
|
+
UseListOptions,
|
|
119
|
+
VirtualItem,
|
|
120
|
+
} from './components/list/typings';
|
|
121
|
+
export { default as Modal } from './components/modal';
|
|
122
|
+
export { default as ModalComponent } from './components/modal/components/ModalComponent';
|
|
123
|
+
export { modalStyle } from './components/modal/style';
|
|
124
|
+
export { ModalProps } from './components/modal/typings';
|
|
125
|
+
export { default as Properties } from './components/properties';
|
|
126
|
+
export { default as PropertiesComponent } from './components/properties/components/PropertiesComponent';
|
|
127
|
+
export { default as Property } from './components/properties/components/Property';
|
|
128
|
+
export { propertiesStyle } from './components/properties/style';
|
|
129
|
+
export { PropertiesContext, PropertiesList, PropertiesProps, PropertyProps } from './components/properties/typings';
|
|
2
130
|
export { default as Select } from './components/select';
|
|
131
|
+
export { default as ArraySelectComponent } from './components/select/components/ArraySelectComponent';
|
|
132
|
+
export { default as ControllerSelectComponent } from './components/select/components/ControllerSelectComponent';
|
|
3
133
|
export { default as SelectComponent } from './components/select/components/SelectComponent';
|
|
4
|
-
export { default as
|
|
134
|
+
export { default as SelectIconComponent } from './components/select/components/SelectIconComponent';
|
|
135
|
+
export { default as SelectInputComponent } from './components/select/components/SelectInputComponent';
|
|
136
|
+
export { default as SelectOptionComponent } from './components/select/components/SelectOptionComponent';
|
|
137
|
+
export { default as SelectTokensComponent } from './components/select/components/SelectTokensComponent';
|
|
138
|
+
export { default as FormSelect } from './components/select/FormSelect';
|
|
139
|
+
export { default as useSelectController } from './components/select/hooks/useSelectController';
|
|
5
140
|
export {
|
|
6
|
-
|
|
141
|
+
FormSelectProps,
|
|
7
142
|
SelectIconProps,
|
|
8
143
|
SelectInputProps,
|
|
144
|
+
SelectItem,
|
|
145
|
+
SelectItemAdapter as SelectAdapter,
|
|
146
|
+
SelectOptionHandler,
|
|
9
147
|
SelectOptionProps,
|
|
10
|
-
|
|
148
|
+
SelectOptionSelectionHandler,
|
|
11
149
|
SelectProps,
|
|
12
|
-
|
|
13
|
-
|
|
150
|
+
SelectTokenProps,
|
|
151
|
+
SelectTokensProps,
|
|
14
152
|
} from './components/select/typings';
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
|
|
18
|
-
export
|
|
153
|
+
export { default as Tabs } from './components/tab';
|
|
154
|
+
export { default as Tab } from './components/tab/components/Tab';
|
|
155
|
+
export { default as TabTitle } from './components/tab/components/TabTitle';
|
|
156
|
+
export {
|
|
157
|
+
ControlledTabsProps,
|
|
158
|
+
TabProps,
|
|
159
|
+
TabsProps,
|
|
160
|
+
TabsState,
|
|
161
|
+
TabState,
|
|
162
|
+
TabTitleProps,
|
|
163
|
+
UseTabsController,
|
|
164
|
+
} from './components/tab/typings';
|
|
165
|
+
export { default as Table } from './components/table';
|
|
166
|
+
export { default as useCheckboxColumn } from './components/table/columns/useCheckboxColumn';
|
|
167
|
+
export { default as useColumn } from './components/table/columns/useColumn';
|
|
168
|
+
export { default as useInputColumn } from './components/table/columns/useInputColumn';
|
|
169
|
+
export { default as useLinkColumn } from './components/table/columns/useLinkColumn';
|
|
170
|
+
export { default as useSelectColumn } from './components/table/columns/useSelectColumn';
|
|
171
|
+
export { default as FormTable } from './components/table/FormTable';
|
|
172
|
+
export { default as useFormTableContext } from './components/table/hooks/useFormTableContext';
|
|
173
|
+
export { default as useTableController } from './components/table/hooks/useTableController';
|
|
174
|
+
export {
|
|
175
|
+
ArrayTableProps,
|
|
176
|
+
Cell,
|
|
177
|
+
CheckboxColumn,
|
|
178
|
+
ControllerTableProps,
|
|
179
|
+
FormTableContext,
|
|
180
|
+
FormTableProps,
|
|
181
|
+
InputColumn,
|
|
182
|
+
SelectColumn,
|
|
183
|
+
TableBodyCellProps,
|
|
184
|
+
TableBodyProps,
|
|
185
|
+
TableBodyRowProps,
|
|
186
|
+
TableColumn,
|
|
187
|
+
TableColumnComputedWidth,
|
|
188
|
+
TableColumnSpec,
|
|
189
|
+
TableColumnsState,
|
|
190
|
+
TableColumnWidth,
|
|
191
|
+
TableConfig,
|
|
192
|
+
TableController,
|
|
193
|
+
TableExpandedProps,
|
|
194
|
+
TableFooterCellProps,
|
|
195
|
+
TableFooterProps,
|
|
196
|
+
TableHeaderCellProps,
|
|
197
|
+
TableHeaderProps,
|
|
198
|
+
TableItem,
|
|
199
|
+
TableItemAdaptee,
|
|
200
|
+
TableItemAdapter,
|
|
201
|
+
TableItems,
|
|
202
|
+
TableNotFoundProps,
|
|
203
|
+
TableProps,
|
|
204
|
+
TableRowHandler,
|
|
205
|
+
TableSortProps,
|
|
206
|
+
TableState,
|
|
207
|
+
UseCheckboxColumnOptions,
|
|
208
|
+
UseInputColumnOptions,
|
|
209
|
+
UseLinkColumnOptions,
|
|
210
|
+
UseSelectColumnOptions,
|
|
211
|
+
UseTableOptions,
|
|
212
|
+
} from './components/table/typings';
|
|
213
|
+
export { default as Tag } from './components/tag';
|
|
214
|
+
export { default as TagComponent } from './components/tag/components/TagComponent';
|
|
215
|
+
export { tagStyle } from './components/tag/style';
|
|
216
|
+
export { TagProps } from './components/tag/typings';
|
|
217
|
+
export { default as Tooltip } from './components/tooltip';
|
|
218
|
+
export { default as Tree } from './components/tree';
|
|
219
|
+
export { default as ArrayTreeComponent } from './components/tree/components/ArrayTreeComponent';
|
|
220
|
+
export { default as ControllerTreeComponent } from './components/tree/components/ControllerTreeComponent';
|
|
221
|
+
export { default as TreeBodyComponent } from './components/tree/components/TreeBodyComponent';
|
|
222
|
+
export { default as TreeComponent } from './components/tree/components/TreeComponent';
|
|
223
|
+
export {
|
|
224
|
+
default as TreeItemComponent,
|
|
225
|
+
TreeItemContent,
|
|
226
|
+
TreeItemToggler,
|
|
227
|
+
} from './components/tree/components/TreeItemComponent';
|
|
228
|
+
export { default as TreeListComponent } from './components/tree/components/TreeListComponent';
|
|
229
|
+
export { default as VirtualTreeBodyComponent } from './components/tree/components/VirtualTreeBodyComponent';
|
|
230
|
+
export { default as VirtualTreeListComponent } from './components/tree/components/VirtualTreeListComponent';
|
|
231
|
+
export { TreeConfigContext, useTreeConfig } from './components/tree/hooks/useTreeConfig';
|
|
232
|
+
export { default as useTreeController } from './components/tree/hooks/useTreeController';
|
|
233
|
+
export { default as useTreeInitialState } from './components/tree/hooks/useTreeInitialState';
|
|
234
|
+
export { default as useTreeService, TreeServiceContext } from './components/tree/hooks/useTreeService';
|
|
235
|
+
export { TreeStateContext, useTreeState } from './components/tree/hooks/useTreeState';
|
|
236
|
+
export { default as TreeService } from './components/tree/TreeService';
|
|
237
|
+
export {
|
|
238
|
+
ArrayTreeProps,
|
|
239
|
+
ControllerTreeProps,
|
|
240
|
+
TreeConfig,
|
|
241
|
+
TreeController,
|
|
242
|
+
TreeItem,
|
|
243
|
+
TreeItemAdaptee,
|
|
244
|
+
TreeItemAdapter,
|
|
245
|
+
TreeItemHandler,
|
|
246
|
+
TreeItemProps,
|
|
247
|
+
TreeItemToggleProps,
|
|
248
|
+
TreeListProps,
|
|
249
|
+
TreeProps,
|
|
250
|
+
TreeState,
|
|
251
|
+
UseTreeOptions,
|
|
252
|
+
VirtualTreeListProps,
|
|
253
|
+
} from './components/tree/typings';
|
|
254
|
+
export { default as Wizard } from './components/wizard';
|
|
255
|
+
export { default as ControlledWizardComponent } from './components/wizard/components/ControlledWizardComponent';
|
|
256
|
+
export { default as Step } from './components/wizard/components/Step';
|
|
257
|
+
export { default as StepTitle } from './components/wizard/components/StepTitle';
|
|
258
|
+
export { default as UncontrolledWizardComponent } from './components/wizard/components/UncontrolledWizardComponent';
|
|
259
|
+
export { default as WizardComponent } from './components/wizard/components/WizardComponent';
|
|
260
|
+
export { default as WizardContainer } from './components/wizard/components/WizardContainer';
|
|
261
|
+
export { default as WizardModalComponent } from './components/wizard/components/WizardModalComponent';
|
|
262
|
+
export { wizardModalStyle, wizardStyle } from './components/wizard/style';
|
|
263
|
+
export {
|
|
264
|
+
ControlledWizardProps,
|
|
265
|
+
StepProps,
|
|
266
|
+
StepState,
|
|
267
|
+
StepTitleProps,
|
|
268
|
+
UseWizardController,
|
|
269
|
+
WizardModalProps,
|
|
270
|
+
WizardProps,
|
|
271
|
+
WizardState,
|
|
272
|
+
} from './components/wizard/typings';
|
|
273
|
+
export { default as WizardModal } from './components/wizard/WizardModal';
|
|
274
|
+
export { WizardService } from './components/wizard/WizardService';
|
|
19
275
|
export * from './styles/alignment';
|
|
20
276
|
export * from './styles/animation';
|
|
21
277
|
export * from './styles/background';
|
|
@@ -25,6 +281,7 @@ export * from './styles/effects';
|
|
|
25
281
|
export * from './styles/flex';
|
|
26
282
|
export * from './styles/fragmentation';
|
|
27
283
|
export * from './styles/grid';
|
|
284
|
+
export * from './styles/icon';
|
|
28
285
|
export * from './styles/image';
|
|
29
286
|
export * from './styles/interactivity';
|
|
30
287
|
export * from './styles/list';
|
|
@@ -36,7 +293,10 @@ export * from './styles/svg';
|
|
|
36
293
|
export * from './styles/table';
|
|
37
294
|
export * from './styles/transform';
|
|
38
295
|
export * from './styles/transition';
|
|
296
|
+
export * from './styles/typings';
|
|
39
297
|
export * from './styles/typography';
|
|
298
|
+
export { baseTheme, BaseTheme } from './theme/base';
|
|
299
|
+
export { tailwindPalette, tailwindTheme, TailwindTheme } from './theme/tailwind';
|
|
40
300
|
export * from './utils/color';
|
|
41
301
|
export * from './utils/event';
|
|
42
302
|
export * from './utils/formatter';
|
package/src/styles/border.ts
CHANGED
|
@@ -3,7 +3,6 @@ import {
|
|
|
3
3
|
BorderBottomLeftRadiusProperty,
|
|
4
4
|
BorderBottomProperty,
|
|
5
5
|
BorderBottomRightRadiusProperty,
|
|
6
|
-
BorderBottomStyleProperty,
|
|
7
6
|
BorderBottomWidthProperty,
|
|
8
7
|
BorderColorProperty,
|
|
9
8
|
BorderImageOutsetProperty,
|
|
@@ -14,20 +13,17 @@ import {
|
|
|
14
13
|
BorderImageWidthProperty,
|
|
15
14
|
BorderLeftColorProperty,
|
|
16
15
|
BorderLeftProperty,
|
|
17
|
-
BorderLeftStyleProperty,
|
|
18
16
|
BorderLeftWidthProperty,
|
|
19
17
|
BorderProperty,
|
|
20
18
|
BorderRadiusProperty,
|
|
21
19
|
BorderRightColorProperty,
|
|
22
20
|
BorderRightProperty,
|
|
23
|
-
BorderRightStyleProperty,
|
|
24
21
|
BorderRightWidthProperty,
|
|
25
22
|
BorderStyleProperty,
|
|
26
23
|
BorderTopColorProperty,
|
|
27
24
|
BorderTopLeftRadiusProperty,
|
|
28
25
|
BorderTopProperty,
|
|
29
26
|
BorderTopRightRadiusProperty,
|
|
30
|
-
BorderTopStyleProperty,
|
|
31
27
|
BorderTopWidthProperty,
|
|
32
28
|
BorderWidthProperty,
|
|
33
29
|
BoxShadowProperty,
|
|
@@ -85,24 +81,25 @@ export const borderTopLeftRadius = cssProperty<BorderTopLeftRadiusProperty<TLeng
|
|
|
85
81
|
'border-top-left-radius',
|
|
86
82
|
themeFormatter('radius'),
|
|
87
83
|
);
|
|
88
|
-
|
|
84
|
+
|
|
85
|
+
export const borderBottomLeftRadius = cssProperty<BorderBottomLeftRadiusProperty<TLength>>(
|
|
89
86
|
'border-bottom-left-radius',
|
|
90
87
|
themeFormatter('radius'),
|
|
91
88
|
);
|
|
92
|
-
export const
|
|
89
|
+
export const borderTopRightRadius = cssProperty<BorderTopRightRadiusProperty<TLength>>(
|
|
93
90
|
'border-top-right-radius',
|
|
94
91
|
themeFormatter('radius'),
|
|
95
92
|
);
|
|
96
|
-
export const
|
|
93
|
+
export const borderBottomRightRadius = cssProperty<BorderBottomRightRadiusProperty<TLength>>(
|
|
97
94
|
'border-bottom-right-radius',
|
|
98
95
|
themeFormatter('radius'),
|
|
99
96
|
);
|
|
100
97
|
|
|
101
98
|
export const borderStyle = cssProperty<BorderStyleProperty>('border-style');
|
|
102
|
-
export const borderTopStyle = cssProperty<
|
|
103
|
-
export const borderBottomStyle = cssProperty<
|
|
104
|
-
export const borderLeftStyle = cssProperty<
|
|
105
|
-
export const borderRightStyle = cssProperty<
|
|
99
|
+
export const borderTopStyle = cssProperty<BorderStyleProperty>('border-top-style');
|
|
100
|
+
export const borderBottomStyle = cssProperty<BorderStyleProperty>('border-bottom-style');
|
|
101
|
+
export const borderLeftStyle = cssProperty<BorderStyleProperty>('border-left-style');
|
|
102
|
+
export const borderRightStyle = cssProperty<BorderStyleProperty>('border-right-style');
|
|
106
103
|
|
|
107
104
|
export const borderWidth = cssProperty<number | BorderWidthProperty<TLength>>('border-width', pxFormatter);
|
|
108
105
|
export const borderTopWidth = cssProperty<number | BorderTopWidthProperty<TLength>>('border-top-width', pxFormatter);
|
package/src/styles/flex.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FlexBasisProperty, FlexDirectionProperty, FlexProperty, FlexWrapProperty, Globals } from 'csstype';
|
|
2
|
-
import {
|
|
2
|
+
import { enumFormatter } from '../utils/formatter';
|
|
3
3
|
import { cssProperty } from '../utils/style';
|
|
4
4
|
import { TLength } from './typings';
|
|
5
5
|
|
|
@@ -20,10 +20,10 @@ export const flexBasis = cssProperty<FlexBasisProperty<TLength>>('flex-basic');
|
|
|
20
20
|
export const flexDirection = cssProperty<FlexDirectionProperty>('flex-direction');
|
|
21
21
|
|
|
22
22
|
// true; false
|
|
23
|
-
export const flexGrow = cssProperty<
|
|
23
|
+
export const flexGrow = cssProperty<number>('flex-grow');
|
|
24
24
|
|
|
25
25
|
// true; false
|
|
26
|
-
export const flexShrink = cssProperty<
|
|
26
|
+
export const flexShrink = cssProperty<number>('flex-shrink');
|
|
27
27
|
|
|
28
28
|
// nowrap; wrap; wrap-reverse;
|
|
29
29
|
export const flexWrap = cssProperty<FlexWrapProperty>('flex-wrap');
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { FontSizeProperty } from 'csstype';
|
|
2
|
+
import { themeFormatter } from '../utils/formatter';
|
|
3
|
+
import { cssProperty } from '../utils/style';
|
|
4
|
+
import { FontSizePropertyTheme, TLength } from './typings';
|
|
5
|
+
|
|
6
|
+
export const iconWidth = cssProperty<FontSizePropertyTheme | FontSizeProperty<TLength>>(
|
|
7
|
+
'width',
|
|
8
|
+
themeFormatter('font.sizes'),
|
|
9
|
+
);
|
|
10
|
+
|
|
11
|
+
export const iconHeight = cssProperty<FontSizePropertyTheme | FontSizeProperty<TLength>>(
|
|
12
|
+
'height',
|
|
13
|
+
themeFormatter('font.sizes'),
|
|
14
|
+
);
|
package/src/styles/position.ts
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ClearProperty,
|
|
3
|
+
FloatProperty,
|
|
4
|
+
LeftProperty,
|
|
5
|
+
PositionProperty,
|
|
6
|
+
RightProperty,
|
|
7
|
+
TopProperty,
|
|
8
|
+
ZIndexProperty,
|
|
9
|
+
} from 'csstype';
|
|
2
10
|
import { cssProperty } from '../utils/style';
|
|
3
11
|
import { TLength } from './typings';
|
|
4
12
|
|
|
@@ -20,5 +28,8 @@ export const right = cssProperty<RightProperty<TLength>>('right');
|
|
|
20
28
|
// integer
|
|
21
29
|
export const top = cssProperty<TopProperty<TLength>>('top');
|
|
22
30
|
|
|
31
|
+
// integer
|
|
32
|
+
export const bottom = cssProperty<TopProperty<TLength>>('bottom');
|
|
33
|
+
|
|
23
34
|
// auto or integer
|
|
24
|
-
export const zIndex = cssProperty('z-index');
|
|
35
|
+
export const zIndex = cssProperty<ZIndexProperty>('z-index');
|