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
package/src/styles/typings.ts
CHANGED
|
@@ -1,13 +1,580 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import {
|
|
2
|
+
AppearanceProperty,
|
|
3
|
+
BackgroundColorProperty,
|
|
4
|
+
BorderBottomStyleProperty,
|
|
5
|
+
BorderColorProperty,
|
|
6
|
+
BorderRadiusProperty,
|
|
7
|
+
BorderStyleProperty,
|
|
8
|
+
BorderWidthProperty,
|
|
9
|
+
BoxShadowProperty,
|
|
10
|
+
ColorProperty,
|
|
11
|
+
CursorProperty,
|
|
12
|
+
FontSizeProperty,
|
|
13
|
+
FontWeightProperty,
|
|
14
|
+
Globals,
|
|
15
|
+
HeightProperty,
|
|
16
|
+
LetterSpacingProperty,
|
|
17
|
+
LineHeightProperty,
|
|
18
|
+
MarginProperty,
|
|
19
|
+
OpacityProperty,
|
|
20
|
+
OutlineProperty,
|
|
21
|
+
PaddingProperty,
|
|
22
|
+
TextDecorationProperty,
|
|
23
|
+
TextOverflowProperty,
|
|
24
|
+
TextTransformProperty,
|
|
25
|
+
WhiteSpaceProperty,
|
|
26
|
+
WidthProperty,
|
|
27
|
+
ZIndexProperty,
|
|
28
|
+
} from 'csstype';
|
|
29
|
+
import { AnonymousObject } from 'onekijs-framework';
|
|
30
|
+
import {
|
|
31
|
+
FlattenInterpolation,
|
|
32
|
+
GlobalStyleComponent,
|
|
33
|
+
ThemedStyledProps,
|
|
34
|
+
ThemeProps as SytledThemeProps,
|
|
35
|
+
} from 'styled-components';
|
|
4
36
|
|
|
5
|
-
export type
|
|
37
|
+
export type TshirtSize = 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
38
|
+
|
|
39
|
+
export type CssProperty<T> = (value: T, variants?: AnonymousObject) => FlattenInterpolation<SytledThemeProps<any>>;
|
|
6
40
|
export type Formatter<T> = (value: T, theme: Theme) => string;
|
|
7
41
|
export type Media = 'all' | 'sm' | 'md' | 'lg' | 'xl';
|
|
8
|
-
export
|
|
42
|
+
export enum ColorKeys {
|
|
43
|
+
white = 'white',
|
|
44
|
+
lightest = 'lightest',
|
|
45
|
+
lighter = 'lighter',
|
|
46
|
+
light = 'light',
|
|
47
|
+
dark = 'dark',
|
|
48
|
+
darker = 'darker',
|
|
49
|
+
darkest = 'darkest',
|
|
50
|
+
black = 'black',
|
|
51
|
+
success = 'success',
|
|
52
|
+
info = 'info',
|
|
53
|
+
warning = 'warning',
|
|
54
|
+
danger = 'danger',
|
|
55
|
+
primary = 'primary',
|
|
56
|
+
secondary = 'secondary',
|
|
57
|
+
blue = 'blue',
|
|
58
|
+
red = 'red',
|
|
59
|
+
purple = 'purple',
|
|
60
|
+
pink = 'pink',
|
|
61
|
+
indigo = 'indigo',
|
|
62
|
+
teal = 'teal',
|
|
63
|
+
orange = 'orange',
|
|
64
|
+
yellow = 'yellow',
|
|
65
|
+
green = 'green',
|
|
66
|
+
lightblue = 'lightblue',
|
|
67
|
+
lightred = 'lightred',
|
|
68
|
+
lightpurple = 'lightpurple',
|
|
69
|
+
lightpink = 'lightpink',
|
|
70
|
+
lightindigo = 'lightindigo',
|
|
71
|
+
lightteal = 'lightteal',
|
|
72
|
+
lightorange = 'lightorange',
|
|
73
|
+
lightyellow = 'lightyellow',
|
|
74
|
+
lightgreen = 'lightgreen',
|
|
75
|
+
background = 'background',
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export enum DashboardKeys {
|
|
79
|
+
left = 'left',
|
|
80
|
+
right = 'right',
|
|
81
|
+
header = 'header',
|
|
82
|
+
footer = 'footer',
|
|
83
|
+
body = 'body',
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export enum BreakpointKeys {
|
|
87
|
+
xs = 'xs',
|
|
88
|
+
sm = 'sm',
|
|
89
|
+
md = 'md',
|
|
90
|
+
lg = 'lg',
|
|
91
|
+
xl = 'xl',
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export enum SpacingKeys {
|
|
95
|
+
none = 'none',
|
|
96
|
+
'2xs' = '2xs',
|
|
97
|
+
xs = 'xs',
|
|
98
|
+
sm = 'sm',
|
|
99
|
+
md = 'md',
|
|
100
|
+
lg = 'lg',
|
|
101
|
+
xl = 'xl',
|
|
102
|
+
'2xl' = '2xl',
|
|
103
|
+
'3xl' = '3xl',
|
|
104
|
+
'4xl' = '4xl',
|
|
105
|
+
'5xl' = '5xl',
|
|
106
|
+
'6xl' = '6xl',
|
|
107
|
+
'7xl' = '7xl',
|
|
108
|
+
'8xl' = '8xl',
|
|
109
|
+
'9xl' = '9xl',
|
|
110
|
+
'10xl' = '10xl',
|
|
111
|
+
'11xl' = '11xl',
|
|
112
|
+
'12xl' = '12xl',
|
|
113
|
+
'13xl' = '13xl',
|
|
114
|
+
px = 'px',
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export enum TshirtKeys {
|
|
118
|
+
xsmall = 'xsmall',
|
|
119
|
+
small = 'small',
|
|
120
|
+
medium = 'medium',
|
|
121
|
+
large = 'large',
|
|
122
|
+
xlarge = 'xlarge',
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export enum FontWeightKeys {
|
|
126
|
+
hairline = 'hairline',
|
|
127
|
+
thin = 'thin',
|
|
128
|
+
light = 'light',
|
|
129
|
+
normal = 'normal',
|
|
130
|
+
medium = 'medium',
|
|
131
|
+
semibold = 'semibold',
|
|
132
|
+
bold = 'bold',
|
|
133
|
+
extrabold = 'extrabold',
|
|
134
|
+
black = 'black',
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export enum FontFamiliesKeys {
|
|
138
|
+
sans = 'sans',
|
|
139
|
+
serif = 'serif',
|
|
140
|
+
mono = 'mono',
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export enum FontLineHeightKeys {
|
|
144
|
+
none = 'none',
|
|
145
|
+
xs = 'xs',
|
|
146
|
+
sm = 'sm',
|
|
147
|
+
md = 'md',
|
|
148
|
+
lg = 'lg',
|
|
149
|
+
xl = 'xl',
|
|
150
|
+
'2xl' = '2xl',
|
|
151
|
+
'3xl' = '3xl',
|
|
152
|
+
'4xl' = '4xl',
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export enum FontSizeKeys {
|
|
156
|
+
'2xs' = '2xs',
|
|
157
|
+
xs = 'xs',
|
|
158
|
+
sm = 'sm',
|
|
159
|
+
md = 'md',
|
|
160
|
+
lg = 'lg',
|
|
161
|
+
xl = 'xl',
|
|
162
|
+
'2xl' = '2xl',
|
|
163
|
+
'3xl' = '3xl',
|
|
164
|
+
'4xl' = '4xl',
|
|
165
|
+
'5xl' = '5xl',
|
|
166
|
+
'6xl' = '6xl',
|
|
167
|
+
default = 'default',
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export enum FontSpacingKeys {
|
|
171
|
+
xs = 'xs',
|
|
172
|
+
sm = 'sm',
|
|
173
|
+
md = 'md',
|
|
174
|
+
lg = 'lg',
|
|
175
|
+
xl = 'xl',
|
|
176
|
+
'2xl' = '2xl',
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export enum RadiusKeys {
|
|
180
|
+
none = 'none',
|
|
181
|
+
'2xs' = '2xs',
|
|
182
|
+
xs = 'xs',
|
|
183
|
+
sm = 'sm',
|
|
184
|
+
md = 'md',
|
|
185
|
+
lg = 'lg',
|
|
186
|
+
xl = 'xl',
|
|
187
|
+
full = 'full',
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
export enum ShadowKeys {
|
|
191
|
+
default = 'default',
|
|
192
|
+
xs = 'xs',
|
|
193
|
+
sm = 'sm',
|
|
194
|
+
md = 'md',
|
|
195
|
+
lg = 'lg',
|
|
196
|
+
xl = 'xl',
|
|
197
|
+
'2xl' = '2xl',
|
|
198
|
+
'inner' = 'inner',
|
|
199
|
+
'outline' = 'outline',
|
|
200
|
+
'none' = 'none',
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export enum SizeKeys {
|
|
204
|
+
'zero' = 0,
|
|
205
|
+
'one' = 1,
|
|
206
|
+
'two' = 2,
|
|
207
|
+
'three' = 3,
|
|
208
|
+
'four' = 4,
|
|
209
|
+
'five' = 5,
|
|
210
|
+
'six' = 6,
|
|
211
|
+
'eight' = 8,
|
|
212
|
+
'ten' = 10,
|
|
213
|
+
'twelve' = 12,
|
|
214
|
+
'sixteen' = 16,
|
|
215
|
+
'twenty' = 20,
|
|
216
|
+
'twenty_four' = 24,
|
|
217
|
+
'thirty_two' = 32,
|
|
218
|
+
'fourty' = 40,
|
|
219
|
+
'fourty_eight' = 48,
|
|
220
|
+
'fifty_six' = 56,
|
|
221
|
+
'sixty_four' = 64,
|
|
222
|
+
'px' = 'px',
|
|
223
|
+
xs = 'xs',
|
|
224
|
+
sm = 'sm',
|
|
225
|
+
md = 'md',
|
|
226
|
+
lg = 'lg',
|
|
227
|
+
xl = 'xl',
|
|
228
|
+
'2xl' = '2xl',
|
|
229
|
+
'3xl' = '3xl',
|
|
230
|
+
'4xl' = '4xl',
|
|
231
|
+
'5xl' = '5xl',
|
|
232
|
+
'6xl' = '6xl',
|
|
233
|
+
'screen-sm' = 'screen-sm',
|
|
234
|
+
'screen-md' = 'screen-md',
|
|
235
|
+
'screen-lg' = 'screen-lg',
|
|
236
|
+
'screen-xl' = 'screen-xl',
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
export type Theme = {
|
|
240
|
+
GlobalStyles: GlobalStyleComponent<any, any>;
|
|
241
|
+
breakpoints: {
|
|
242
|
+
[k in BreakpointKeys]: string;
|
|
243
|
+
};
|
|
244
|
+
colors: {
|
|
245
|
+
[k in ColorKeys]: string;
|
|
246
|
+
};
|
|
247
|
+
spacings: {
|
|
248
|
+
[k in SpacingKeys]: string;
|
|
249
|
+
};
|
|
250
|
+
palette: Palette;
|
|
251
|
+
font: {
|
|
252
|
+
families: {
|
|
253
|
+
[k in FontFamiliesKeys]: string;
|
|
254
|
+
};
|
|
255
|
+
lineHeights: {
|
|
256
|
+
[k in FontLineHeightKeys]: number;
|
|
257
|
+
};
|
|
258
|
+
sizes: {
|
|
259
|
+
[k in FontSizeKeys]: string | 0;
|
|
260
|
+
};
|
|
261
|
+
spacings: {
|
|
262
|
+
[k in FontSpacingKeys]: string | 0;
|
|
263
|
+
};
|
|
264
|
+
weights: {
|
|
265
|
+
[k in FontWeightKeys]: number;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
radius: {
|
|
269
|
+
[k in RadiusKeys]: string | 0;
|
|
270
|
+
};
|
|
271
|
+
shadow: {
|
|
272
|
+
[k in ShadowKeys]: string;
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
sizes: {
|
|
276
|
+
[k in SizeKeys]: string | 0;
|
|
277
|
+
};
|
|
278
|
+
|
|
279
|
+
buttons: {
|
|
280
|
+
[k in ColorKeys]: {
|
|
281
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
282
|
+
bgColorFlat: ColorPropertyTheme | BackgroundColorProperty;
|
|
283
|
+
bgColorOutline: ColorPropertyTheme | BackgroundColorProperty;
|
|
284
|
+
borderColor: ColorPropertyTheme | BorderColorProperty;
|
|
285
|
+
borderColorFlat: ColorPropertyTheme | BackgroundColorProperty;
|
|
286
|
+
borderColorOutline: ColorPropertyTheme | BackgroundColorProperty;
|
|
287
|
+
borderRadius: RadiusPropertyTheme | string;
|
|
288
|
+
borderStyle: BorderStyleProperty;
|
|
289
|
+
borderWidth: BorderWidthProperty<TLength>;
|
|
290
|
+
color: ColorPropertyTheme | ColorProperty;
|
|
291
|
+
colorFlat: ColorPropertyTheme | BackgroundColorProperty;
|
|
292
|
+
colorOutline: ColorPropertyTheme | BackgroundColorProperty;
|
|
293
|
+
cursor: CursorProperty;
|
|
294
|
+
cursorDisabled: CursorProperty;
|
|
295
|
+
fontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
296
|
+
fontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
297
|
+
hoverBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
298
|
+
hoverBgColorFlat: ColorPropertyTheme | BackgroundColorProperty;
|
|
299
|
+
hoverBgColorOutline: ColorPropertyTheme | BackgroundColorProperty;
|
|
300
|
+
hoverBorderColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
301
|
+
hoverBorderColorFlat: ColorPropertyTheme | BackgroundColorProperty;
|
|
302
|
+
hoverBorderColorOutline: ColorPropertyTheme | BackgroundColorProperty;
|
|
303
|
+
hoverColor: ColorPropertyTheme | ColorProperty;
|
|
304
|
+
hoverColorFlat: ColorPropertyTheme | BackgroundColorProperty;
|
|
305
|
+
hoverColorOutline: ColorPropertyTheme | BackgroundColorProperty;
|
|
306
|
+
letterSpacing: LetterSpacingPropertyTheme | LetterSpacingProperty<TLength>;
|
|
307
|
+
lineHeight: LineHeightPropertyTheme | LineHeightProperty<TLength>;
|
|
308
|
+
opacity: OpacityProperty;
|
|
309
|
+
opacityDisabled: OpacityProperty;
|
|
310
|
+
paddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
311
|
+
paddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
312
|
+
textOverflow: TextOverflowProperty;
|
|
313
|
+
textTransform: TextTransformProperty;
|
|
314
|
+
whiteSpace: WhiteSpaceProperty;
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
fieldLayout: {
|
|
319
|
+
marginY: MarginProperty<TLength> | SpacingPropertyTheme;
|
|
320
|
+
helperMarginLeft: MarginProperty<TLength> | SpacingPropertyTheme;
|
|
321
|
+
helperMarginRight: MarginProperty<TLength> | SpacingPropertyTheme;
|
|
322
|
+
helperColor: ColorProperty | ColorPropertyTheme;
|
|
323
|
+
descriptionFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
324
|
+
descriptionColor: ColorProperty | ColorPropertyTheme;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
table: {
|
|
328
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
329
|
+
shadow: ShadowPropertyTheme | BoxShadowProperty;
|
|
330
|
+
thPaddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
331
|
+
thPaddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
332
|
+
thBorderBottomWidth: number | BorderWidthProperty<TLength>;
|
|
333
|
+
thBorderBottomColor: ColorPropertyTheme | BorderColorProperty;
|
|
334
|
+
thBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
335
|
+
thFontWeigth: FontWeightPropertyTheme | FontWeightProperty;
|
|
336
|
+
thFontColor: ColorPropertyTheme | ColorProperty;
|
|
337
|
+
thFontCase: TextTransformProperty;
|
|
338
|
+
thFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
339
|
+
thLetterSpacing: LetterSpacingPropertyTheme | LetterSpacingProperty<TLength>;
|
|
340
|
+
thFilterInputBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
341
|
+
thFilterInputFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
342
|
+
thFilterInputPaddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
343
|
+
thFilterInputPaddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
344
|
+
tdFontColor: ColorPropertyTheme | ColorProperty;
|
|
345
|
+
tdPaddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
346
|
+
tdPaddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
347
|
+
tdBorderBottomColor: ColorPropertyTheme | BorderColorProperty;
|
|
348
|
+
tdBorderBottomWidth: number | BorderWidthProperty<TLength>;
|
|
349
|
+
tdBorderBottomStyle: BorderBottomStyleProperty;
|
|
350
|
+
tdStripBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
351
|
+
tdHoverBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
352
|
+
tdHoverFontColor: ColorPropertyTheme | ColorProperty;
|
|
353
|
+
tdExpandedBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
354
|
+
loadingRowBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
355
|
+
loadingRowMinHeight: SizePropertyTheme | HeightProperty<TLength>;
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
input: {
|
|
359
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
360
|
+
width: SizePropertyTheme | WidthProperty<TLength>;
|
|
361
|
+
borderWidth: number | BorderWidthProperty<TLength>;
|
|
362
|
+
borderColor: ColorPropertyTheme | BorderColorProperty;
|
|
363
|
+
borderRadius: RadiusPropertyTheme | string;
|
|
364
|
+
borderStyle: BorderBottomStyleProperty;
|
|
365
|
+
borderFocusColor: ColorPropertyTheme | BorderColorProperty;
|
|
366
|
+
borderFocusWidth: number | BorderWidthProperty<TLength>;
|
|
367
|
+
paddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
368
|
+
paddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
369
|
+
xsPaddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
370
|
+
xsPaddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
371
|
+
xsFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
372
|
+
smPaddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
373
|
+
smPaddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
374
|
+
smFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
375
|
+
mdPaddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
376
|
+
mdPaddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
377
|
+
mdFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
378
|
+
lgPaddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
379
|
+
lgPaddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
380
|
+
lgFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
381
|
+
xlPaddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
382
|
+
xlPaddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
383
|
+
xlFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
384
|
+
appearance: AppearanceProperty;
|
|
385
|
+
outline: OutlineProperty<TLength>;
|
|
386
|
+
fontColor: ColorPropertyTheme | ColorProperty;
|
|
387
|
+
placeholderColor: ColorPropertyTheme | ColorProperty;
|
|
388
|
+
};
|
|
389
|
+
|
|
390
|
+
checkbox: {
|
|
391
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
392
|
+
color: ColorPropertyTheme | BackgroundColorProperty;
|
|
393
|
+
};
|
|
394
|
+
|
|
395
|
+
label: {
|
|
396
|
+
fontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
397
|
+
fontCase: TextTransformProperty;
|
|
398
|
+
fontColor: ColorPropertyTheme | ColorProperty;
|
|
399
|
+
fontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
400
|
+
letterSpacing: LetterSpacingPropertyTheme | LetterSpacingProperty<TLength>;
|
|
401
|
+
requiredColor: ColorPropertyTheme | ColorProperty;
|
|
402
|
+
requiredWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
403
|
+
requiredMarginLeft: SpacingPropertyTheme | MarginProperty<TLength>;
|
|
404
|
+
helperIconColor: ColorPropertyTheme | ColorProperty;
|
|
405
|
+
helperMarginLeft: SpacingPropertyTheme | MarginProperty<TLength>;
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
link: {
|
|
409
|
+
fontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
410
|
+
fontColor: ColorPropertyTheme | ColorProperty;
|
|
411
|
+
textDecoration: TextDecorationProperty<TLength>;
|
|
412
|
+
fontWeightHover: FontWeightPropertyTheme | FontWeightProperty;
|
|
413
|
+
fontColorHover: ColorPropertyTheme | ColorProperty;
|
|
414
|
+
textDecorationHover: TextDecorationProperty<TLength>;
|
|
415
|
+
};
|
|
416
|
+
|
|
417
|
+
tooltip: {
|
|
418
|
+
[k in ColorKeys]: {
|
|
419
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
420
|
+
color: ColorPropertyTheme | ColorProperty;
|
|
421
|
+
linkColor: ColorPropertyTheme | ColorProperty;
|
|
422
|
+
borderColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
423
|
+
borderRadius: BorderRadiusProperty<TLength> | RadiusPropertyTheme;
|
|
424
|
+
borderStyle: BorderStyleProperty;
|
|
425
|
+
borderWidth: BorderWidthProperty<TLength>;
|
|
426
|
+
boxShadow: ShadowPropertyTheme | BoxShadowProperty;
|
|
427
|
+
padding: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
428
|
+
fontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
429
|
+
};
|
|
430
|
+
};
|
|
431
|
+
|
|
432
|
+
accordion: {
|
|
433
|
+
fontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
434
|
+
fontColor: ColorPropertyTheme | ColorProperty;
|
|
435
|
+
activeFontColor: ColorPropertyTheme | ColorProperty;
|
|
436
|
+
hoverFontColor: ColorPropertyTheme | ColorProperty;
|
|
437
|
+
fontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
438
|
+
togglerIconWidth: WidthProperty<TLength> | IconSizePropertyTheme;
|
|
439
|
+
togglerIconHeight: WidthProperty<TLength> | IconSizePropertyTheme;
|
|
440
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
441
|
+
activeBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
442
|
+
hoverBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
443
|
+
borderColor: ColorPropertyTheme | BorderColorProperty;
|
|
444
|
+
borderRadius: BorderRadiusProperty<TLength> | RadiusPropertyTheme;
|
|
445
|
+
borderStyle: BorderStyleProperty;
|
|
446
|
+
borderWidth: BorderWidthProperty<TLength>;
|
|
447
|
+
paddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
448
|
+
paddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
449
|
+
};
|
|
450
|
+
|
|
451
|
+
tab: {
|
|
452
|
+
activeBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
453
|
+
activeBorderColor: ColorPropertyTheme | BorderColorProperty;
|
|
454
|
+
activeBorderStyle: BorderStyleProperty;
|
|
455
|
+
activeBorderWidth: BorderWidthProperty<TLength>;
|
|
456
|
+
activeFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
457
|
+
activeFontColor: ColorPropertyTheme | ColorProperty;
|
|
458
|
+
activeFontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
459
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
460
|
+
borderColor: ColorPropertyTheme | BorderColorProperty;
|
|
461
|
+
borderRadius: BorderRadiusProperty<TLength> | RadiusPropertyTheme;
|
|
462
|
+
borderStyle: BorderStyleProperty;
|
|
463
|
+
borderWidth: BorderWidthProperty<TLength>;
|
|
464
|
+
cursor: CursorProperty;
|
|
465
|
+
fontColor: ColorPropertyTheme | ColorProperty;
|
|
466
|
+
fontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
467
|
+
fontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
468
|
+
hoverBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
469
|
+
hoverBorderColor: ColorPropertyTheme | BorderColorProperty;
|
|
470
|
+
hoverBorderStyle: BorderStyleProperty;
|
|
471
|
+
hoverBorderWidth: BorderWidthProperty<TLength>;
|
|
472
|
+
hoverFontColor: ColorPropertyTheme | ColorProperty;
|
|
473
|
+
marginBefore: SpacingPropertyTheme | MarginProperty<TLength>;
|
|
474
|
+
marginAfter: SpacingPropertyTheme | MarginProperty<TLength>;
|
|
475
|
+
paddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
476
|
+
paddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
477
|
+
};
|
|
478
|
+
|
|
479
|
+
wizard: {
|
|
480
|
+
activeBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
481
|
+
activeBorderColor: ColorPropertyTheme | BorderColorProperty;
|
|
482
|
+
activeFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
483
|
+
activeFontColor: ColorPropertyTheme | ColorProperty;
|
|
484
|
+
activeFontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
485
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
486
|
+
borderColor: ColorPropertyTheme | BorderColorProperty;
|
|
487
|
+
borderRadius: BorderRadiusProperty<TLength> | RadiusPropertyTheme;
|
|
488
|
+
borderStyle: BorderStyleProperty;
|
|
489
|
+
borderWidth: BorderWidthProperty<TLength>;
|
|
490
|
+
cursor: CursorProperty;
|
|
491
|
+
disabledBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
492
|
+
disabledBorderColor: ColorPropertyTheme | BorderColorProperty;
|
|
493
|
+
disabledFontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
494
|
+
disabledFontColor: ColorPropertyTheme | ColorProperty;
|
|
495
|
+
disabledFontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
496
|
+
errorBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
497
|
+
errorBorderColor: ColorPropertyTheme | BorderColorProperty;
|
|
498
|
+
errorFontColor: ColorPropertyTheme | ColorProperty;
|
|
499
|
+
fontColor: ColorPropertyTheme | ColorProperty;
|
|
500
|
+
fontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
501
|
+
fontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
502
|
+
hoverBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
503
|
+
hoverBorderColor: ColorPropertyTheme | BorderColorProperty;
|
|
504
|
+
hoverBorderStyle: BorderStyleProperty;
|
|
505
|
+
hoverBorderWidth: BorderWidthProperty<TLength>;
|
|
506
|
+
hoverFontColor: ColorPropertyTheme | ColorProperty;
|
|
507
|
+
marginBefore: SpacingPropertyTheme | MarginProperty<TLength>;
|
|
508
|
+
marginAfter: SpacingPropertyTheme | MarginProperty<TLength>;
|
|
509
|
+
paddingRight: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
510
|
+
paddingLeft: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
511
|
+
paddingTop: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
512
|
+
paddingBottom: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
513
|
+
stepsBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
514
|
+
stepsBorderColor: ColorPropertyTheme | BorderColorProperty;
|
|
515
|
+
stepsBorderStyle: BorderStyleProperty;
|
|
516
|
+
stepsBorderWidth: BorderWidthProperty<TLength>;
|
|
517
|
+
stepsPaddingTop: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
518
|
+
stepsPaddingBottom: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
519
|
+
stepsPaddingLeft: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
520
|
+
stepsPaddingRight: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
521
|
+
successBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
522
|
+
successBorderColor: ColorPropertyTheme | BorderColorProperty;
|
|
523
|
+
successFontColor: ColorPropertyTheme | ColorProperty;
|
|
524
|
+
warningBgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
525
|
+
warningBorderColor: ColorPropertyTheme | BorderColorProperty;
|
|
526
|
+
warningFontColor: ColorPropertyTheme | ColorProperty;
|
|
527
|
+
};
|
|
528
|
+
|
|
529
|
+
card: {
|
|
530
|
+
borderColor: ColorPropertyTheme | BorderColorProperty;
|
|
531
|
+
borderRadius: BorderRadiusProperty<TLength> | RadiusPropertyTheme;
|
|
532
|
+
borderStyle: BorderStyleProperty;
|
|
533
|
+
borderWidth: BorderWidthProperty<TLength>;
|
|
534
|
+
shadow: ShadowPropertyTheme | BoxShadowProperty;
|
|
535
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
536
|
+
fontColor: ColorPropertyTheme | ColorProperty;
|
|
537
|
+
fontSize: FontSizePropertyTheme | FontSizeProperty<TLength>;
|
|
538
|
+
fontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
539
|
+
fontCase: 'uppercase';
|
|
540
|
+
paddingX: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
541
|
+
paddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
542
|
+
letterSpacing: LetterSpacingPropertyTheme | LetterSpacingProperty<TLength>;
|
|
543
|
+
iconColor: ColorPropertyTheme | ColorProperty;
|
|
544
|
+
iconWidth: SizePropertyTheme | WidthProperty<TLength>;
|
|
545
|
+
iconHeight: SizePropertyTheme | HeightProperty<TLength>;
|
|
546
|
+
marginTop: SpacingPropertyTheme | MarginProperty<TLength>;
|
|
547
|
+
titleBorderBottomWidth: BorderWidthProperty<TLength>;
|
|
548
|
+
};
|
|
549
|
+
|
|
550
|
+
properties: {
|
|
551
|
+
fontWeight: FontWeightPropertyTheme | FontWeightProperty;
|
|
552
|
+
paddingY: SpacingPropertyTheme | PaddingProperty<TLength>;
|
|
553
|
+
};
|
|
554
|
+
|
|
555
|
+
dashboard: {
|
|
556
|
+
[k in DashboardKeys]: {
|
|
557
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
558
|
+
};
|
|
559
|
+
};
|
|
560
|
+
|
|
561
|
+
modal: {
|
|
562
|
+
bgColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
563
|
+
maskColor: ColorPropertyTheme | BackgroundColorProperty;
|
|
564
|
+
maskOpacity: OpacityProperty;
|
|
565
|
+
zIndex: ZIndexProperty;
|
|
566
|
+
xsmallSize: SizePropertyTheme | HeightProperty<TLength>;
|
|
567
|
+
smallSize: SizePropertyTheme | HeightProperty<TLength>;
|
|
568
|
+
mediumSize: SizePropertyTheme | HeightProperty<TLength>;
|
|
569
|
+
largeSize: SizePropertyTheme | HeightProperty<TLength>;
|
|
570
|
+
xlargeSize: SizePropertyTheme | HeightProperty<TLength>;
|
|
571
|
+
boxShadow: ShadowPropertyTheme | BoxShadowProperty;
|
|
572
|
+
borderRadius: RadiusPropertyTheme | string;
|
|
573
|
+
};
|
|
574
|
+
};
|
|
575
|
+
export type Palette = AnonymousObject; //TODO create a actual type
|
|
9
576
|
export type TLength = string | 0;
|
|
10
|
-
export type
|
|
577
|
+
export type SizePropertyTheme =
|
|
11
578
|
| Globals
|
|
12
579
|
| TLength
|
|
13
580
|
| '-moz-max-content'
|
|
@@ -55,64 +622,21 @@ export type SizeProperty =
|
|
|
55
622
|
| 'screen-lg'
|
|
56
623
|
| 'screen-xl';
|
|
57
624
|
|
|
58
|
-
export type
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
| 1
|
|
62
|
-
| 2
|
|
63
|
-
| 3
|
|
64
|
-
| 4
|
|
65
|
-
| 5
|
|
66
|
-
| 6
|
|
67
|
-
| 8
|
|
68
|
-
| 10
|
|
69
|
-
| 12
|
|
70
|
-
| 16
|
|
71
|
-
| 20
|
|
72
|
-
| 24
|
|
73
|
-
| 32
|
|
74
|
-
| 40
|
|
75
|
-
| 48
|
|
76
|
-
| 56
|
|
77
|
-
| 64
|
|
78
|
-
| 'px';
|
|
79
|
-
export type FontFamilyPropertyTheme = 'mono' | 'sans' | 'serif';
|
|
80
|
-
export type FontSizePropertyTheme = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | '6xl';
|
|
81
|
-
export type FontWeightPropertyTheme =
|
|
82
|
-
| 'hairline'
|
|
83
|
-
| 'thin'
|
|
84
|
-
| 'light'
|
|
85
|
-
| 'normal'
|
|
86
|
-
| 'medium'
|
|
87
|
-
| 'semibold'
|
|
88
|
-
| 'bold'
|
|
89
|
-
| 'extrabold'
|
|
90
|
-
| 'black';
|
|
91
|
-
|
|
92
|
-
export type LineHeightPropertyTheme =
|
|
93
|
-
| 'none'
|
|
94
|
-
| 'tight'
|
|
95
|
-
| 'snug'
|
|
96
|
-
| 'normal'
|
|
97
|
-
| 'relaxed'
|
|
98
|
-
| 'loose'
|
|
99
|
-
| 3
|
|
100
|
-
| 4
|
|
101
|
-
| 5
|
|
102
|
-
| 6
|
|
103
|
-
| 7
|
|
104
|
-
| 8
|
|
105
|
-
| 9
|
|
106
|
-
| 10;
|
|
107
|
-
|
|
108
|
-
export type LetterSpacingPropertyTheme = 'tighte' | 'tight' | 'normal' | 'wide' | 'wider' | 'widest';
|
|
109
|
-
|
|
110
|
-
export type RadiusPropertyTheme = 'none' | 'sm' | 'default' | 'md' | 'lg' | 'full';
|
|
111
|
-
|
|
112
|
-
export type ShadowPropertyTheme = 'xs' | 'sm' | 'default' | 'md' | 'lg' | 'xl' | '2xl' | 'inner' | 'outline' | 'none';
|
|
625
|
+
export type ThemeProps = {
|
|
626
|
+
theme?: Partial<Theme>;
|
|
627
|
+
};
|
|
113
628
|
|
|
114
|
-
export type
|
|
629
|
+
export type ColorPropertyTheme = keyof typeof ColorKeys;
|
|
630
|
+
export type SpacingPropertyTheme = keyof typeof SpacingKeys;
|
|
631
|
+
export type FontFamilyPropertyTheme = keyof typeof FontFamiliesKeys;
|
|
632
|
+
export type FontSizePropertyTheme = keyof typeof FontSizeKeys;
|
|
633
|
+
export type IconSizePropertyTheme = keyof typeof FontSizeKeys;
|
|
634
|
+
export type FontWeightPropertyTheme = keyof typeof FontWeightKeys | number;
|
|
635
|
+
export type LineHeightPropertyTheme = keyof typeof FontLineHeightKeys | 4 | 5 | 6 | 7 | 8 | 9 | 10;
|
|
636
|
+
export type LetterSpacingPropertyTheme = keyof typeof FontSpacingKeys;
|
|
637
|
+
export type RadiusPropertyTheme = keyof typeof RadiusKeys;
|
|
638
|
+
export type ShadowPropertyTheme = keyof typeof ShadowKeys;
|
|
115
639
|
|
|
116
640
|
export type ComponentStyle<P, T extends Theme = Theme> = (
|
|
117
641
|
propsWithTheme: ThemedStyledProps<P, T>,
|
|
118
|
-
) => FlattenInterpolation<
|
|
642
|
+
) => FlattenInterpolation<SytledThemeProps<T>>;
|