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.
Files changed (555) hide show
  1. package/dist/components/accordion/AccordionService.d.ts +7 -0
  2. package/dist/components/accordion/components/AccordionComponent.d.ts +16 -0
  3. package/dist/components/accordion/components/AccordionContainer.d.ts +4 -0
  4. package/dist/components/accordion/components/AccordionPanel.d.ts +4 -0
  5. package/dist/components/accordion/components/AccordionPanelTitle.d.ts +4 -0
  6. package/dist/components/accordion/hooks/useAccordionPanel.d.ts +3 -0
  7. package/dist/components/accordion/hooks/useAccordionService.d.ts +5 -0
  8. package/dist/components/accordion/hooks/useAccordionState.d.ts +4 -0
  9. package/dist/components/accordion/index.d.ts +16 -0
  10. package/dist/components/accordion/style.d.ts +3 -0
  11. package/dist/components/accordion/typings.d.ts +45 -0
  12. package/dist/components/button/DropdownButton.d.ts +3 -0
  13. package/dist/components/button/SubmitButton.d.ts +4 -0
  14. package/dist/components/button/components/ButtonComponent.d.ts +4 -0
  15. package/dist/components/button/components/DropdownButtonComponent.d.ts +4 -0
  16. package/dist/components/button/index.d.ts +3 -3
  17. package/dist/components/button/style.d.ts +5 -4
  18. package/dist/components/button/typings.d.ts +19 -4
  19. package/dist/components/card/FormCard.d.ts +4 -0
  20. package/dist/components/card/components/CardComponent.d.ts +4 -0
  21. package/dist/components/card/components/CardTitle.d.ts +4 -0
  22. package/dist/components/card/index.d.ts +2 -0
  23. package/dist/components/card/style.d.ts +3 -0
  24. package/dist/components/card/typings.d.ts +24 -0
  25. package/dist/components/checkbox/FormCheckbox.d.ts +4 -0
  26. package/dist/components/checkbox/components/CheckboxComponent.d.ts +4 -0
  27. package/dist/components/checkbox/index.d.ts +3 -0
  28. package/dist/components/checkbox/style.d.ts +4 -0
  29. package/dist/components/checkbox/typings.d.ts +14 -0
  30. package/dist/components/dashboard/DashboardService.d.ts +27 -0
  31. package/dist/components/dashboard/components/DashboardBody.d.ts +5 -0
  32. package/dist/components/dashboard/components/DashboardComponent.d.ts +7 -0
  33. package/dist/components/dashboard/components/DashboardContainer.d.ts +5 -0
  34. package/dist/components/dashboard/components/DashboardFooter.d.ts +2 -0
  35. package/dist/components/dashboard/components/DashboardHeader.d.ts +2 -0
  36. package/dist/components/dashboard/components/DashboardLeft.d.ts +2 -0
  37. package/dist/components/dashboard/components/DashboardOverlay.d.ts +6 -0
  38. package/dist/components/dashboard/components/DashboardRight.d.ts +2 -0
  39. package/dist/components/dashboard/components/DashboardToggler.d.ts +5 -0
  40. package/dist/components/dashboard/hoc/dashboardHorizontalPanel.d.ts +4 -0
  41. package/dist/components/dashboard/hoc/dashboardVerticalPanel.d.ts +4 -0
  42. package/dist/components/dashboard/hooks/useDashboard.d.ts +5 -0
  43. package/dist/components/dashboard/hooks/useDashboardService.d.ts +5 -0
  44. package/dist/components/dashboard/hooks/useDashboardState.d.ts +5 -0
  45. package/dist/components/dashboard/index.d.ts +4 -0
  46. package/dist/components/dashboard/typings.d.ts +96 -0
  47. package/dist/components/dashboard/utils/dashboardArea.d.ts +3 -0
  48. package/dist/components/dashboard/utils/dashboardLength.d.ts +5 -0
  49. package/dist/components/dropdown/components/DropdownComponent.d.ts +4 -4
  50. package/dist/components/dropdown/hooks/useDropdown.d.ts +5 -0
  51. package/dist/components/dropdown/index.d.ts +2 -3
  52. package/dist/components/dropdown/style.d.ts +4 -4
  53. package/dist/components/dropdown/typings.d.ts +24 -5
  54. package/dist/components/field/FieldDescription.d.ts +3 -0
  55. package/dist/components/field/FieldHelp.d.ts +3 -0
  56. package/dist/components/field/FieldLayout.d.ts +2 -0
  57. package/dist/components/field/components/FieldDescriptionComponent.d.ts +4 -0
  58. package/dist/components/field/components/FieldHelpComponent.d.ts +4 -0
  59. package/dist/components/field/components/FieldLayoutComponent.d.ts +4 -0
  60. package/dist/components/field/hooks/useFieldLayout.d.ts +4 -0
  61. package/dist/components/field/style.d.ts +5 -0
  62. package/dist/components/field/typings.d.ts +53 -0
  63. package/dist/components/field/util.d.ts +9 -0
  64. package/dist/components/grid/Col.d.ts +4 -0
  65. package/dist/components/grid/Row.d.ts +4 -0
  66. package/dist/components/grid/style.d.ts +4 -0
  67. package/dist/components/grid/typings.d.ts +33 -0
  68. package/dist/components/icon/CloseAllIcon.d.ts +4 -0
  69. package/dist/components/icon/CrossIcon.d.ts +3 -0
  70. package/dist/components/icon/FileIcon.d.ts +4 -0
  71. package/dist/components/icon/FolderIcon.d.ts +4 -0
  72. package/dist/components/icon/LoadingIcon.d.ts +4 -3
  73. package/dist/components/icon/MenuIcon.d.ts +4 -0
  74. package/dist/components/icon/RemoveIcon.d.ts +4 -0
  75. package/dist/components/icon/SearchIcon.d.ts +4 -0
  76. package/dist/components/icon/TogglerIcon.d.ts +4 -0
  77. package/dist/components/icon/typings.d.ts +14 -0
  78. package/dist/components/input/FormInput.d.ts +4 -0
  79. package/dist/components/input/components/InputComponent.d.ts +4 -0
  80. package/dist/components/input/index.d.ts +3 -0
  81. package/dist/components/input/style.d.ts +4 -0
  82. package/dist/components/input/typings.d.ts +14 -0
  83. package/dist/components/label/components/LabelComponent.d.ts +4 -0
  84. package/dist/components/label/index.d.ts +3 -0
  85. package/dist/components/label/style.d.ts +4 -0
  86. package/dist/components/label/typings.d.ts +16 -0
  87. package/dist/components/list/components/ArrayListComponent.d.ts +4 -0
  88. package/dist/components/list/components/CollectionListComponent.d.ts +4 -0
  89. package/dist/components/list/components/ListBodyComponent.d.ts +4 -0
  90. package/dist/components/list/components/ListComponent.d.ts +4 -4
  91. package/dist/components/list/components/ListItemComponent.d.ts +6 -4
  92. package/dist/components/list/components/LoadingItem.d.ts +5 -0
  93. package/dist/components/list/components/StandardListComponent.d.ts +4 -4
  94. package/dist/components/list/components/VirtualListComponent.d.ts +4 -4
  95. package/dist/components/list/hooks/useListController.d.ts +4 -0
  96. package/dist/components/list/hooks/useListService.d.ts +5 -0
  97. package/dist/components/list/hooks/useListState.d.ts +5 -0
  98. package/dist/components/list/hooks/useListView.d.ts +22 -0
  99. package/dist/components/list/index.d.ts +3 -3
  100. package/dist/components/list/style.d.ts +4 -4
  101. package/dist/components/list/typings.d.ts +121 -35
  102. package/dist/components/list/utils.d.ts +3 -4
  103. package/dist/components/modal/components/ModalComponent.d.ts +4 -0
  104. package/dist/components/modal/index.d.ts +2 -0
  105. package/dist/components/modal/style.d.ts +3 -0
  106. package/dist/components/modal/typings.d.ts +19 -0
  107. package/dist/components/properties/components/PropertiesComponent.d.ts +4 -0
  108. package/dist/components/properties/components/Property.d.ts +4 -0
  109. package/dist/components/properties/hooks/usePropertiesContext.d.ts +5 -0
  110. package/dist/components/properties/index.d.ts +3 -0
  111. package/dist/components/properties/style.d.ts +3 -0
  112. package/dist/components/properties/typings.d.ts +26 -0
  113. package/dist/components/resizer/ResizerService.d.ts +17 -0
  114. package/dist/components/resizer/components/ResizerComponent.d.ts +4 -0
  115. package/dist/components/resizer/components/ResizerHorizontalSplitter.d.ts +4 -0
  116. package/dist/components/resizer/components/ResizerVerticalSplitter.d.ts +4 -0
  117. package/dist/components/resizer/index.d.ts +2 -0
  118. package/dist/components/resizer/style.d.ts +4 -0
  119. package/dist/components/resizer/typings.d.ts +34 -0
  120. package/dist/components/select/FormSelect.d.ts +4 -0
  121. package/dist/components/select/SelectService.d.ts +5 -0
  122. package/dist/components/select/components/ArraySelectComponent.d.ts +4 -0
  123. package/dist/components/select/components/ControllerSelectComponent.d.ts +4 -0
  124. package/dist/components/select/components/SelectComponent.d.ts +4 -4
  125. package/dist/components/select/components/SelectIconComponent.d.ts +4 -4
  126. package/dist/components/select/components/SelectInputComponent.d.ts +4 -4
  127. package/dist/components/select/components/SelectNotFoundComponent.d.ts +4 -0
  128. package/dist/components/select/components/SelectOptionComponent.d.ts +6 -4
  129. package/dist/components/select/components/SelectTokenComponent.d.ts +4 -0
  130. package/dist/components/select/components/SelectTokensComponent.d.ts +4 -0
  131. package/dist/components/select/hooks/useSelectConfig.d.ts +4 -0
  132. package/dist/components/select/hooks/useSelectController.d.ts +6 -0
  133. package/dist/components/select/index.d.ts +3 -3
  134. package/dist/components/select/style.d.ts +4 -4
  135. package/dist/components/select/typings.d.ts +95 -37
  136. package/dist/components/tab/TabsService.d.ts +24 -0
  137. package/dist/components/tab/components/ControlledTabsComponent.d.ts +4 -0
  138. package/dist/components/tab/components/Tab.d.ts +4 -0
  139. package/dist/components/tab/components/TabTitle.d.ts +4 -0
  140. package/dist/components/tab/components/TabsComponent.d.ts +4 -0
  141. package/dist/components/tab/components/TabsContainer.d.ts +4 -0
  142. package/dist/components/tab/components/UncontrolledTabsComponent.d.ts +4 -0
  143. package/dist/components/tab/hooks/useTab.d.ts +5 -0
  144. package/dist/components/tab/hooks/useTabsController.d.ts +3 -0
  145. package/dist/components/tab/hooks/useTabsService.d.ts +5 -0
  146. package/dist/components/tab/hooks/useTabsState.d.ts +4 -0
  147. package/dist/components/tab/index.d.ts +2 -0
  148. package/dist/components/tab/style.d.ts +3 -0
  149. package/dist/components/tab/typings.d.ts +54 -0
  150. package/dist/components/table/FormTable.d.ts +4 -0
  151. package/dist/components/table/TableService.d.ts +18 -0
  152. package/dist/components/table/columns/useCheckboxColumn.d.ts +3 -0
  153. package/dist/components/table/columns/useColumn.d.ts +3 -0
  154. package/dist/components/table/columns/useInputColumn.d.ts +3 -0
  155. package/dist/components/table/columns/useLinkColumn.d.ts +3 -0
  156. package/dist/components/table/columns/useSelectColumn.d.ts +3 -0
  157. package/dist/components/table/components/ArrayTableComponent.d.ts +4 -0
  158. package/dist/components/table/components/ControllerTableComponent.d.ts +4 -0
  159. package/dist/components/table/components/FormTableComponent.d.ts +4 -0
  160. package/dist/components/table/components/TableBodyCellComponent.d.ts +4 -0
  161. package/dist/components/table/components/TableBodyComponent.d.ts +4 -0
  162. package/dist/components/table/components/TableBodyRowComponent.d.ts +4 -0
  163. package/dist/components/table/components/TableComponent.d.ts +4 -0
  164. package/dist/components/table/components/TableFooterCellComponent.d.ts +4 -0
  165. package/dist/components/table/components/TableFooterComponent.d.ts +4 -0
  166. package/dist/components/table/components/TableHeaderComponent.d.ts +4 -0
  167. package/dist/components/table/components/TableHeaderFilterComponent.d.ts +4 -0
  168. package/dist/components/table/components/TableHeaderTitleComponent.d.ts +5 -0
  169. package/dist/components/table/components/TableLoadingComponent.d.ts +3 -0
  170. package/dist/components/table/components/TableLoadingRowComponent.d.ts +3 -0
  171. package/dist/components/table/components/TableNotFoundComponent.d.ts +4 -0
  172. package/dist/components/table/components/TableSortComponent.d.ts +4 -0
  173. package/dist/components/table/components/cells/CheckboxCellComponent.d.ts +4 -0
  174. package/dist/components/table/components/cells/DefaultCellComponent.d.ts +4 -0
  175. package/dist/components/table/components/cells/ExpandedCellComponent.d.ts +4 -0
  176. package/dist/components/table/components/cells/InputCellComponent.d.ts +4 -0
  177. package/dist/components/table/components/cells/SelectCellComponent.d.ts +6 -0
  178. package/dist/components/table/components/filters/TableInputFilterComponent.d.ts +4 -0
  179. package/dist/components/table/components/hoc/linkCellComponent.d.ts +4 -0
  180. package/dist/components/table/hooks/useFormTableContext.d.ts +5 -0
  181. package/dist/components/table/hooks/useTableColumns.d.ts +3 -0
  182. package/dist/components/table/hooks/useTableConfig.d.ts +4 -0
  183. package/dist/components/table/hooks/useTableController.d.ts +5 -0
  184. package/dist/components/table/hooks/useTableInitialState.d.ts +3 -0
  185. package/dist/components/table/hooks/useTableItems.d.ts +3 -0
  186. package/dist/components/table/hooks/useTableService.d.ts +5 -0
  187. package/dist/components/table/hooks/useTableState.d.ts +4 -0
  188. package/dist/components/table/index.d.ts +3 -0
  189. package/dist/components/table/style.d.ts +3 -0
  190. package/dist/components/table/typings.d.ts +218 -0
  191. package/dist/components/table/util.d.ts +5 -0
  192. package/dist/components/tag/components/TagComponent.d.ts +4 -0
  193. package/dist/components/tag/index.d.ts +2 -0
  194. package/dist/components/tag/style.d.ts +3 -0
  195. package/dist/components/tag/typings.d.ts +16 -0
  196. package/dist/components/tooltip/components/TooltipComponent.d.ts +4 -0
  197. package/dist/components/tooltip/index.d.ts +2 -0
  198. package/dist/components/tooltip/style.d.ts +4 -0
  199. package/dist/components/tooltip/typings.d.ts +10 -0
  200. package/dist/components/tree/TreeService.d.ts +23 -0
  201. package/dist/components/tree/components/ArrayTreeComponent.d.ts +4 -0
  202. package/dist/components/tree/components/ControllerTreeComponent.d.ts +4 -0
  203. package/dist/components/tree/components/TreeBodyComponent.d.ts +4 -0
  204. package/dist/components/tree/components/TreeComponent.d.ts +4 -0
  205. package/dist/components/tree/components/TreeItemComponent.d.ts +6 -0
  206. package/dist/components/tree/components/TreeListComponent.d.ts +4 -0
  207. package/dist/components/tree/components/VirtualTreeBodyComponent.d.ts +4 -0
  208. package/dist/components/tree/components/VirtualTreeListComponent.d.ts +4 -0
  209. package/dist/components/tree/hooks/useTreeConfig.d.ts +4 -0
  210. package/dist/components/tree/hooks/useTreeController.d.ts +5 -0
  211. package/dist/components/tree/hooks/useTreeInitialState.d.ts +5 -0
  212. package/dist/components/tree/hooks/useTreeItems.d.ts +3 -0
  213. package/dist/components/tree/hooks/useTreeService.d.ts +5 -0
  214. package/dist/components/tree/hooks/useTreeState.d.ts +4 -0
  215. package/dist/components/tree/index.d.ts +3 -0
  216. package/dist/components/tree/style.d.ts +3 -0
  217. package/dist/components/tree/typings.d.ts +87 -0
  218. package/dist/components/wizard/WizardModal.d.ts +2 -0
  219. package/dist/components/wizard/WizardService.d.ts +17 -0
  220. package/dist/components/wizard/components/ControlledWizardComponent.d.ts +4 -0
  221. package/dist/components/wizard/components/Step.d.ts +4 -0
  222. package/dist/components/wizard/components/StepTitle.d.ts +4 -0
  223. package/dist/components/wizard/components/UncontrolledWizardComponent.d.ts +4 -0
  224. package/dist/components/wizard/components/WizardComponent.d.ts +4 -0
  225. package/dist/components/wizard/components/WizardContainer.d.ts +4 -0
  226. package/dist/components/wizard/components/WizardModalComponent.d.ts +4 -0
  227. package/dist/components/wizard/hooks/useStep.d.ts +5 -0
  228. package/dist/components/wizard/hooks/useWizardController.d.ts +3 -0
  229. package/dist/components/wizard/hooks/useWizardService.d.ts +5 -0
  230. package/dist/components/wizard/hooks/useWizardState.d.ts +4 -0
  231. package/dist/components/wizard/index.d.ts +2 -0
  232. package/dist/components/wizard/style.d.ts +4 -0
  233. package/dist/components/wizard/typings.d.ts +41 -0
  234. package/dist/index.d.ts +167 -33
  235. package/dist/index.js +9945 -5
  236. package/dist/index.js.map +1 -0
  237. package/dist/index.module.js +9546 -0
  238. package/dist/index.module.js.map +1 -0
  239. package/dist/styles/alignment.d.ts +13 -13
  240. package/dist/styles/animation.d.ts +10 -9
  241. package/dist/styles/background.d.ts +11 -11
  242. package/dist/styles/border.d.ts +39 -39
  243. package/dist/styles/display.d.ts +6 -5
  244. package/dist/styles/effects.d.ts +2 -2
  245. package/dist/styles/flex.d.ts +9 -9
  246. package/dist/styles/fragmentation.d.ts +6 -6
  247. package/dist/styles/grid.d.ts +28 -28
  248. package/dist/styles/icon.d.ts +4 -0
  249. package/dist/styles/image.d.ts +5 -5
  250. package/dist/styles/interactivity.d.ts +16 -16
  251. package/dist/styles/list.d.ts +5 -5
  252. package/dist/styles/overflow.d.ts +6 -6
  253. package/dist/styles/position.d.ts +10 -9
  254. package/dist/styles/size.d.ts +12 -13
  255. package/dist/styles/spacing.d.ts +16 -16
  256. package/dist/styles/svg.d.ts +5 -4
  257. package/dist/styles/table.d.ts +8 -8
  258. package/dist/styles/transform.d.ts +8 -8
  259. package/dist/styles/transition.d.ts +5 -5
  260. package/dist/styles/typings.d.ts +528 -20
  261. package/dist/styles/typography.d.ts +49 -49
  262. package/dist/theme/base.d.ts +4 -0
  263. package/dist/theme/tailwind.d.ts +5 -0
  264. package/dist/utils/color.d.ts +10 -7
  265. package/dist/utils/dom.d.ts +9 -0
  266. package/dist/utils/event.d.ts +2 -1
  267. package/dist/utils/formatter.d.ts +7 -7
  268. package/dist/utils/popper.d.ts +4 -4
  269. package/dist/utils/size.d.ts +3 -0
  270. package/dist/utils/style.d.ts +9 -7
  271. package/package.json +36 -24
  272. package/src/components/accordion/AccordionService.ts +36 -0
  273. package/src/components/accordion/components/AccordionComponent.tsx +37 -0
  274. package/src/components/accordion/components/AccordionContainer.tsx +11 -0
  275. package/src/components/accordion/components/AccordionPanel.tsx +74 -0
  276. package/src/components/accordion/components/AccordionPanelTitle.tsx +14 -0
  277. package/src/components/accordion/hooks/useAccordionPanel.ts +19 -0
  278. package/src/components/accordion/hooks/useAccordionService.ts +11 -0
  279. package/src/components/accordion/hooks/useAccordionState.ts +7 -0
  280. package/src/components/accordion/index.ts +23 -0
  281. package/src/components/accordion/style.ts +72 -0
  282. package/src/components/accordion/typings.ts +50 -0
  283. package/src/components/button/DropdownButton.tsx +9 -0
  284. package/src/components/button/SubmitButton.tsx +58 -0
  285. package/src/components/button/components/ButtonComponent.tsx +24 -0
  286. package/src/components/button/components/DropdownButtonComponent.tsx +82 -0
  287. package/src/components/button/index.tsx +1 -1
  288. package/src/components/button/style.ts +84 -8
  289. package/src/components/button/typings.ts +19 -2
  290. package/src/components/card/FormCard.tsx +24 -0
  291. package/src/components/card/components/CardComponent.tsx +83 -0
  292. package/src/components/card/components/CardTitle.tsx +14 -0
  293. package/src/components/card/index.tsx +9 -0
  294. package/src/components/card/style.ts +68 -0
  295. package/src/components/card/typings.ts +28 -0
  296. package/src/components/checkbox/FormCheckbox.tsx +26 -0
  297. package/src/components/checkbox/components/CheckboxComponent.tsx +42 -0
  298. package/src/components/checkbox/index.tsx +9 -0
  299. package/src/components/checkbox/style.ts +103 -0
  300. package/src/components/checkbox/typings.ts +18 -0
  301. package/src/components/dashboard/DashboardService.ts +412 -0
  302. package/src/components/dashboard/components/DashboardBody.tsx +138 -0
  303. package/src/components/dashboard/components/DashboardComponent.tsx +36 -0
  304. package/src/components/dashboard/components/DashboardContainer.tsx +64 -0
  305. package/src/components/dashboard/components/DashboardFooter.tsx +4 -0
  306. package/src/components/dashboard/components/DashboardHeader.tsx +4 -0
  307. package/src/components/dashboard/components/DashboardLeft.tsx +4 -0
  308. package/src/components/dashboard/components/DashboardOverlay.tsx +29 -0
  309. package/src/components/dashboard/components/DashboardRight.tsx +4 -0
  310. package/src/components/dashboard/components/DashboardToggler.tsx +17 -0
  311. package/src/components/dashboard/hoc/dashboardHorizontalPanel.tsx +145 -0
  312. package/src/components/dashboard/hoc/dashboardVerticalPanel.tsx +148 -0
  313. package/src/components/dashboard/hooks/useDashboard.tsx +21 -0
  314. package/src/components/dashboard/hooks/useDashboardService.ts +11 -0
  315. package/src/components/dashboard/hooks/useDashboardState.ts +11 -0
  316. package/src/components/dashboard/index.tsx +13 -0
  317. package/src/components/dashboard/typings.ts +124 -0
  318. package/src/components/dashboard/utils/dashboardArea.ts +27 -0
  319. package/src/components/dashboard/utils/dashboardLength.ts +42 -0
  320. package/src/components/dropdown/components/DropdownComponent.tsx +201 -23
  321. package/src/components/dropdown/hooks/useDropdown.tsx +21 -0
  322. package/src/components/dropdown/style.ts +10 -28
  323. package/src/components/dropdown/typings.ts +26 -4
  324. package/src/components/field/FieldDescription.tsx +9 -0
  325. package/src/components/field/FieldHelp.tsx +9 -0
  326. package/src/components/field/FieldLayout.tsx +9 -0
  327. package/src/components/field/components/FieldDescriptionComponent.tsx +14 -0
  328. package/src/components/field/components/FieldHelpComponent.tsx +22 -0
  329. package/src/components/field/components/FieldLayoutComponent.tsx +174 -0
  330. package/src/components/field/hooks/useFieldLayout.ts +36 -0
  331. package/src/components/field/style.ts +59 -0
  332. package/src/components/field/typings.ts +67 -0
  333. package/src/components/field/util.ts +47 -0
  334. package/src/components/grid/Col.tsx +33 -0
  335. package/src/components/grid/Row.tsx +35 -0
  336. package/src/components/grid/style.ts +93 -0
  337. package/src/components/grid/typings.ts +35 -0
  338. package/src/components/icon/CloseAllIcon.tsx +38 -0
  339. package/src/components/icon/CrossIcon.tsx +30 -0
  340. package/src/components/icon/FileIcon.tsx +36 -0
  341. package/src/components/icon/FolderIcon.tsx +36 -0
  342. package/src/components/icon/LoadingIcon.tsx +26 -23
  343. package/src/components/icon/MenuIcon.tsx +34 -0
  344. package/src/components/icon/RemoveIcon.tsx +36 -0
  345. package/src/components/icon/SearchIcon.tsx +38 -0
  346. package/src/components/icon/TogglerIcon.tsx +126 -0
  347. package/src/components/icon/typings.ts +15 -0
  348. package/src/components/input/FormInput.tsx +26 -0
  349. package/src/components/input/components/InputComponent.tsx +46 -0
  350. package/src/components/input/index.tsx +9 -0
  351. package/src/components/input/style.ts +85 -0
  352. package/src/components/input/typings.ts +17 -0
  353. package/src/components/label/components/LabelComponent.tsx +39 -0
  354. package/src/components/label/index.tsx +9 -0
  355. package/src/components/label/style.ts +64 -0
  356. package/src/components/label/typings.ts +17 -0
  357. package/src/components/list/components/ArrayListComponent.tsx +11 -0
  358. package/src/components/list/components/CollectionListComponent.tsx +77 -0
  359. package/src/components/list/components/ListBodyComponent.tsx +250 -0
  360. package/src/components/list/components/ListComponent.tsx +11 -25
  361. package/src/components/list/components/ListItemComponent.tsx +16 -4
  362. package/src/components/list/components/LoadingItem.tsx +24 -0
  363. package/src/components/list/components/StandardListComponent.tsx +23 -21
  364. package/src/components/list/components/VirtualListComponent.tsx +93 -110
  365. package/src/components/list/hooks/useListController.ts +19 -0
  366. package/src/components/list/hooks/useListService.ts +15 -0
  367. package/src/components/list/hooks/useListState.ts +10 -0
  368. package/src/components/list/hooks/useListView.tsx +103 -0
  369. package/src/components/list/typings.ts +162 -24
  370. package/src/components/list/utils.ts +17 -55
  371. package/src/components/modal/components/ModalComponent.tsx +132 -0
  372. package/src/components/modal/index.tsx +9 -0
  373. package/src/components/modal/style.ts +135 -0
  374. package/src/components/modal/typings.ts +20 -0
  375. package/src/components/properties/components/PropertiesComponent.tsx +44 -0
  376. package/src/components/properties/components/Property.tsx +40 -0
  377. package/src/components/properties/hooks/usePropertiesContext.ts +10 -0
  378. package/src/components/properties/index.tsx +9 -0
  379. package/src/components/properties/style.ts +17 -0
  380. package/src/components/properties/typings.ts +30 -0
  381. package/src/components/resizer/ResizerService.ts +96 -0
  382. package/src/components/resizer/components/ResizerComponent.tsx +28 -0
  383. package/src/components/resizer/components/ResizerHorizontalSplitter.tsx +38 -0
  384. package/src/components/resizer/components/ResizerVerticalSplitter.tsx +37 -0
  385. package/src/components/resizer/index.tsx +9 -0
  386. package/src/components/resizer/style.ts +51 -0
  387. package/src/components/resizer/typings.ts +40 -0
  388. package/src/components/select/FormSelect.tsx +26 -0
  389. package/src/components/select/SelectService.ts +9 -0
  390. package/src/components/select/components/ArraySelectComponent.tsx +11 -0
  391. package/src/components/select/components/ControllerSelectComponent.tsx +441 -0
  392. package/src/components/select/components/SelectComponent.tsx +13 -121
  393. package/src/components/select/components/SelectIconComponent.tsx +4 -4
  394. package/src/components/select/components/SelectInputComponent.tsx +220 -76
  395. package/src/components/select/components/SelectNotFoundComponent.tsx +14 -0
  396. package/src/components/select/components/SelectOptionComponent.tsx +54 -20
  397. package/src/components/select/components/SelectTokenComponent.tsx +25 -0
  398. package/src/components/select/components/SelectTokensComponent.tsx +50 -0
  399. package/src/components/select/hooks/useSelectConfig.ts +7 -0
  400. package/src/components/select/hooks/useSelectController.ts +21 -0
  401. package/src/components/select/index.tsx +0 -89
  402. package/src/components/select/style.ts +336 -47
  403. package/src/components/select/typings.ts +130 -24
  404. package/src/components/tab/TabsService.ts +192 -0
  405. package/src/components/tab/components/ControlledTabsComponent.tsx +18 -0
  406. package/src/components/tab/components/Tab.tsx +55 -0
  407. package/src/components/tab/components/TabTitle.tsx +18 -0
  408. package/src/components/tab/components/TabsComponent.tsx +15 -0
  409. package/src/components/tab/components/TabsContainer.tsx +36 -0
  410. package/src/components/tab/components/UncontrolledTabsComponent.tsx +13 -0
  411. package/src/components/tab/hooks/useTab.ts +18 -0
  412. package/src/components/tab/hooks/useTabsController.ts +15 -0
  413. package/src/components/tab/hooks/useTabsService.ts +11 -0
  414. package/src/components/tab/hooks/useTabsState.ts +7 -0
  415. package/src/components/tab/index.tsx +9 -0
  416. package/src/components/tab/style.ts +78 -0
  417. package/src/components/tab/typings.ts +59 -0
  418. package/src/components/table/FormTable.tsx +38 -0
  419. package/src/components/table/TableService.ts +123 -0
  420. package/src/components/table/columns/useCheckboxColumn.ts +24 -0
  421. package/src/components/table/columns/useColumn.ts +23 -0
  422. package/src/components/table/columns/useInputColumn.ts +24 -0
  423. package/src/components/table/columns/useLinkColumn.ts +19 -0
  424. package/src/components/table/columns/useSelectColumn.ts +26 -0
  425. package/src/components/table/components/ArrayTableComponent.tsx +14 -0
  426. package/src/components/table/components/ControllerTableComponent.tsx +167 -0
  427. package/src/components/table/components/FormTableComponent.tsx +143 -0
  428. package/src/components/table/components/TableBodyCellComponent.tsx +36 -0
  429. package/src/components/table/components/TableBodyComponent.tsx +96 -0
  430. package/src/components/table/components/TableBodyRowComponent.tsx +125 -0
  431. package/src/components/table/components/TableComponent.tsx +17 -0
  432. package/src/components/table/components/TableFooterCellComponent.tsx +28 -0
  433. package/src/components/table/components/TableFooterComponent.tsx +34 -0
  434. package/src/components/table/components/TableHeaderComponent.tsx +81 -0
  435. package/src/components/table/components/TableHeaderFilterComponent.tsx +31 -0
  436. package/src/components/table/components/TableHeaderTitleComponent.tsx +62 -0
  437. package/src/components/table/components/TableLoadingComponent.tsx +18 -0
  438. package/src/components/table/components/TableLoadingRowComponent.tsx +21 -0
  439. package/src/components/table/components/TableNotFoundComponent.tsx +14 -0
  440. package/src/components/table/components/TableSortComponent.tsx +29 -0
  441. package/src/components/table/components/cells/CheckboxCellComponent.tsx +42 -0
  442. package/src/components/table/components/cells/DefaultCellComponent.tsx +9 -0
  443. package/src/components/table/components/cells/ExpandedCellComponent.tsx +16 -0
  444. package/src/components/table/components/cells/InputCellComponent.tsx +27 -0
  445. package/src/components/table/components/cells/SelectCellComponent.tsx +41 -0
  446. package/src/components/table/components/filters/TableInputFilterComponent.tsx +134 -0
  447. package/src/components/table/components/hoc/linkCellComponent.tsx +15 -0
  448. package/src/components/table/hooks/useFormTableContext.ts +10 -0
  449. package/src/components/table/hooks/useTableColumns.ts +9 -0
  450. package/src/components/table/hooks/useTableConfig.ts +7 -0
  451. package/src/components/table/hooks/useTableController.ts +26 -0
  452. package/src/components/table/hooks/useTableInitialState.ts +22 -0
  453. package/src/components/table/hooks/useTableItems.ts +9 -0
  454. package/src/components/table/hooks/useTableService.ts +10 -0
  455. package/src/components/table/hooks/useTableState.ts +7 -0
  456. package/src/components/table/index.tsx +9 -0
  457. package/src/components/table/style.ts +248 -0
  458. package/src/components/table/typings.ts +322 -0
  459. package/src/components/table/util.ts +52 -0
  460. package/src/components/tag/components/TagComponent.tsx +15 -0
  461. package/src/components/tag/index.tsx +9 -0
  462. package/src/components/tag/style.ts +62 -0
  463. package/src/components/tag/typings.ts +17 -0
  464. package/src/components/tooltip/components/TooltipComponent.tsx +38 -0
  465. package/src/components/tooltip/index.tsx +9 -0
  466. package/src/components/tooltip/style.ts +153 -0
  467. package/src/components/tooltip/typings.ts +10 -0
  468. package/src/components/tree/TreeService.ts +392 -0
  469. package/src/components/tree/components/ArrayTreeComponent.tsx +14 -0
  470. package/src/components/tree/components/ControllerTreeComponent.tsx +72 -0
  471. package/src/components/tree/components/TreeBodyComponent.tsx +25 -0
  472. package/src/components/tree/components/TreeComponent.tsx +17 -0
  473. package/src/components/tree/components/TreeItemComponent.tsx +100 -0
  474. package/src/components/tree/components/TreeListComponent.tsx +198 -0
  475. package/src/components/tree/components/VirtualTreeBodyComponent.tsx +34 -0
  476. package/src/components/tree/components/VirtualTreeListComponent.tsx +287 -0
  477. package/src/components/tree/hooks/useTreeConfig.ts +7 -0
  478. package/src/components/tree/hooks/useTreeController.ts +33 -0
  479. package/src/components/tree/hooks/useTreeInitialState.ts +12 -0
  480. package/src/components/tree/hooks/useTreeItems.ts +9 -0
  481. package/src/components/tree/hooks/useTreeService.ts +10 -0
  482. package/src/components/tree/hooks/useTreeState.ts +7 -0
  483. package/src/components/tree/index.tsx +9 -0
  484. package/src/components/tree/style.ts +57 -0
  485. package/src/components/tree/typings.ts +126 -0
  486. package/src/components/wizard/WizardModal.ts +9 -0
  487. package/src/components/wizard/WizardService.ts +123 -0
  488. package/src/components/wizard/components/ControlledWizardComponent.tsx +22 -0
  489. package/src/components/wizard/components/Step.tsx +82 -0
  490. package/src/components/wizard/components/StepTitle.tsx +26 -0
  491. package/src/components/wizard/components/UncontrolledWizardComponent.tsx +13 -0
  492. package/src/components/wizard/components/WizardComponent.tsx +15 -0
  493. package/src/components/wizard/components/WizardContainer.tsx +134 -0
  494. package/src/components/wizard/components/WizardModalComponent.tsx +15 -0
  495. package/src/components/wizard/hooks/useStep.ts +18 -0
  496. package/src/components/wizard/hooks/useWizardController.ts +27 -0
  497. package/src/components/wizard/hooks/useWizardService.ts +11 -0
  498. package/src/components/wizard/hooks/useWizardState.ts +7 -0
  499. package/src/components/wizard/index.tsx +9 -0
  500. package/src/components/wizard/style.ts +159 -0
  501. package/src/components/wizard/typings.ts +53 -0
  502. package/src/fonts.d.ts +1 -0
  503. package/src/index.ts +269 -9
  504. package/src/styles/border.ts +8 -11
  505. package/src/styles/flex.ts +3 -3
  506. package/src/styles/icon.ts +14 -0
  507. package/src/styles/position.ts +13 -2
  508. package/src/styles/size.ts +19 -13
  509. package/src/styles/svg.ts +4 -3
  510. package/src/styles/typings.ts +587 -63
  511. package/src/theme/base.tsx +507 -0
  512. package/src/theme/tailwind.tsx +112 -0
  513. package/src/utils/color.ts +35 -1
  514. package/src/utils/dom.ts +32 -0
  515. package/src/utils/event.ts +25 -4
  516. package/src/utils/formatter.ts +7 -10
  517. package/src/utils/popper.ts +1 -1
  518. package/src/utils/size.ts +12 -0
  519. package/src/utils/style.ts +6 -9
  520. package/src/vendor/reactVirtual.d.ts +76 -0
  521. package/src/vendor/reactVirtual.js +463 -0
  522. package/src/vendor/useIsomorphicLayoutEffect.js +3 -0
  523. package/src/vendor/useRect.js +49 -0
  524. package/CHANGELOG.md +0 -136
  525. package/dist/__tests__/mocks/handlers.d.ts +0 -1
  526. package/dist/__tests__/mocks/responses.d.ts +0 -4
  527. package/dist/__tests__/mocks/server.d.ts +0 -7
  528. package/dist/__tests__/setup.d.ts +0 -1
  529. package/dist/__tests__/setupTests.d.ts +0 -1
  530. package/dist/__tests__/utils/timeout.d.ts +0 -4
  531. package/dist/components/button/component.d.ts +0 -4
  532. package/dist/components/select/components/SelectOptionsComponent.d.ts +0 -4
  533. package/dist/onekijs-ui.cjs.development.js +0 -2115
  534. package/dist/onekijs-ui.cjs.development.js.map +0 -1
  535. package/dist/onekijs-ui.cjs.production.min.js +0 -2
  536. package/dist/onekijs-ui.cjs.production.min.js.map +0 -1
  537. package/dist/onekijs-ui.esm.js +0 -1853
  538. package/dist/onekijs-ui.esm.js.map +0 -1
  539. package/dist/styles/theme.d.ts +0 -2
  540. package/jest.config.js +0 -188
  541. package/postcss.config.js +0 -3
  542. package/src/__tests__/mocks/handlers.ts +0 -60
  543. package/src/__tests__/mocks/responses.ts +0 -7
  544. package/src/__tests__/mocks/server.ts +0 -4
  545. package/src/__tests__/setup.ts +0 -1
  546. package/src/__tests__/setupTests.ts +0 -12
  547. package/src/__tests__/utils/timeout.ts +0 -27
  548. package/src/components/button/component.tsx +0 -8
  549. package/src/components/select/components/SelectOptionsComponent.tsx +0 -14
  550. package/src/styles/index.css +0 -5
  551. package/src/styles/tailwind.css +0 -86923
  552. package/src/styles/theme.ts +0 -274
  553. package/src/utils/query.ts.old +0 -148
  554. package/tailwind.config.js +0 -8
  555. package/tsconfig.json +0 -37
@@ -1,13 +1,580 @@
1
- import { Globals } from 'csstype';
2
- import { AnonymousObject } from 'onekijs-core';
3
- import { FlattenInterpolation, ThemedStyledProps, ThemeProps } from 'styled-components';
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 CssProperty<T> = (value: T, variants?: AnonymousObject) => FlattenInterpolation<ThemeProps<any>>;
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 type Theme = AnonymousObject;
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 SizeProperty =
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 ColorPropertyTheme = string;
59
- export type SpacingPropertyTheme =
60
- | 0
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 KindTheme = 'primary' | 'danger' | 'success' | 'info' | 'warning' | 'secondary';
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<ThemeProps<T>>;
642
+ ) => FlattenInterpolation<SytledThemeProps<T>>;