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 +0,0 @@
1
- {"version":3,"file":"onekijs-ui.esm.js","sources":["../src/components/button/component.tsx","../src/utils/color.ts","../src/utils/formatter.ts","../src/utils/style.ts","../src/styles/background.ts","../src/styles/spacing.ts","../src/styles/typography.ts","../src/components/button/style.ts","../src/components/button/index.tsx","../src/utils/event.ts","../src/utils/popper.ts","../src/components/dropdown/components/DropdownComponent.tsx","../src/styles/size.ts","../src/styles/border.ts","../src/styles/overflow.ts","../src/styles/transition.ts","../src/styles/effects.ts","../src/components/dropdown/style.ts","../src/components/dropdown/index.tsx","../src/components/icon/LoadingIcon.tsx","../src/components/select/components/SelectIconComponent.tsx","../src/components/select/components/SelectInputComponent.tsx","../src/components/list/components/ListItemComponent.tsx","../src/components/list/utils.ts","../src/components/list/components/StandardListComponent.tsx","../src/components/list/components/VirtualListComponent.tsx","../src/components/list/components/ListComponent.tsx","../src/components/select/components/SelectOptionComponent.tsx","../src/components/select/components/SelectOptionsComponent.tsx","../src/components/select/components/SelectComponent.tsx","../src/styles/alignment.ts","../src/styles/display.ts","../src/styles/interactivity.ts","../src/styles/table.ts","../src/components/select/style.ts","../src/components/select/index.tsx","../src/components/list/style.ts","../src/components/list/index.tsx","../src/styles/theme.ts","../src/styles/animation.ts","../src/styles/flex.ts","../src/styles/fragmentation.ts","../src/styles/grid.ts","../src/styles/image.ts","../src/styles/list.ts","../src/styles/position.ts","../src/styles/svg.ts","../src/styles/transform.ts"],"sourcesContent":["import React, { FC } from 'react';\nimport { ButtonProps } from './typings';\n\nconst ButtonComponent: FC<ButtonProps> = (props) => {\n return <button {...props} />;\n};\n\nexport default ButtonComponent;\n","export const deriveColor = (color: string, gap: number, dark: boolean, newColorValue?: string): string => {\n const [colorValue, weight] = color.split('-');\n newColorValue = newColorValue || colorValue;\n if (weight === undefined) {\n return newColorValue;\n }\n return `${newColorValue}-${parseInt(weight) + (dark ? -gap : gap)}`;\n};\n\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nexport const hexToRgb = (hex: string): { r: number; g: number; b: number } | null => {\n const shorthandRegex = /^#?([a-f\\d])([a-f\\d])([a-f\\d])$/i;\n hex = hex.replace(shorthandRegex, function (_m, r, g, b) {\n return r + r + g + g + b + b;\n });\n\n const result = /^#?([a-f\\d]{2})([a-f\\d]{2})([a-f\\d]{2})$/i.exec(hex);\n return result\n ? {\n r: parseInt(result[1], 16),\n g: parseInt(result[2], 16),\n b: parseInt(result[3], 16),\n }\n : null;\n};\n\n// https://stackoverflow.com/questions/5623838/rgb-to-hex-and-hex-to-rgb\nexport const rgbToHex = (r: number, g: number, b: number): string => {\n return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);\n};\n","import { AnonymousObject, get } from 'onekijs-core';\nimport { Formatter } from '../styles/typings';\nimport { hexToRgb } from './color';\n\nexport const booleanFormatter: Formatter<boolean> = (value): '0' | '1' => (value ? '1' : '0');\n\nexport const themeFormatter = (category: string): Formatter<string | number> => {\n return (value, theme) => {\n return get(theme, `${category}.${value}`, String(value));\n };\n};\n\nexport const colorFormatter = (key: string, opacityKey?: string): Formatter<string> => {\n return (value, theme) => {\n if (Object.keys(theme.kind).includes(value)) {\n value = theme.kind[value];\n }\n let result = '';\n value = get(theme, `colors.${value}`, String(value));\n if (opacityKey) {\n result = `--${opacityKey}: 1;`;\n }\n result = `${result}${key}: ${value}`;\n if (opacityKey) {\n const rgb = hexToRgb(value);\n if (rgb) {\n result = `${result};${key}: rgba(${rgb.r},${rgb.g},${rgb.b},var(--${opacityKey}))`;\n }\n }\n result += ';';\n\n return result;\n };\n};\n\nexport const enumFormatter = <T>(values: AnonymousObject): Formatter<T> => {\n return (value) => {\n if (Object.keys(values).includes(String(value))) {\n return String(values[String(value)]);\n }\n return String(value);\n };\n};\n\nexport const pxFormatter: Formatter<string | number> = (value) => {\n if (typeof value === 'string') {\n return value;\n }\n if (value === 0) {\n return '0';\n }\n return `${value}px`;\n};\n","/* eslint-disable prettier/prettier */\nimport { AnonymousObject, lcfirst, toKebabCase } from 'onekijs-core';\nimport { css, FlattenInterpolation, ThemeProps } from 'styled-components';\nimport { CssProperty, Formatter, Theme } from '../styles/typings';\nimport { themeFormatter } from './formatter';\n\nconst formatValue = <T>(value: T, theme: Theme, formatter?: Formatter<T>): string => {\n if (formatter) {\n return formatter(value, theme);\n }\n return String(value);\n};\n\nconst isPseudoClass = (candidate: string): boolean => {\n return [\n 'active',\n 'any-link',\n 'checked',\n 'blank',\n 'default',\n 'defined',\n 'dir',\n 'disabled',\n 'empty',\n 'enabled',\n 'first',\n 'first-child',\n 'first-of-type',\n 'fullscreen',\n 'focus',\n 'focus-visible',\n 'focus-within',\n 'has',\n 'host',\n 'host-context',\n 'hover',\n 'indeterminate',\n 'in-range',\n 'invalid',\n 'is',\n 'matches',\n 'any',\n 'lang',\n 'last-child',\n 'last-of-type',\n 'left',\n 'link',\n 'not',\n 'nth-child',\n 'nth-last-child',\n 'nth-last-of-type',\n 'nth-of-type',\n 'only-child',\n 'only-of-type',\n 'optional',\n 'out-of-range',\n 'placeholder-shown',\n 'read-only',\n 'read-write',\n 'required',\n 'right',\n 'root',\n 'scope',\n 'target',\n 'valid',\n 'visited',\n 'where',\n ].includes(candidate);\n};\n\nconst isPseudoElement = (candidate: string): boolean => {\n return [\n 'after',\n 'backdrop',\n 'before',\n 'cue',\n 'cue-region',\n 'first-letter',\n 'first-line',\n 'grammar-error',\n 'marker',\n 'part',\n 'placeholder',\n 'selection',\n 'slotted',\n 'spelling-error',\n ].includes(candidate);\n};\n\nexport const toCss = <T>(\n property: string | null,\n formatter: Formatter<T> | undefined,\n value: T,\n variants: AnonymousObject,\n): FlattenInterpolation<ThemeProps<any>> => {\n let result = css`\n ${property === null ? '' : property + ': '}${(props) => formatValue(value, props.theme, formatter)};\n`;\n\n const responsives: AnonymousObject = {\n all: {},\n sm: {},\n md: {},\n lg: {},\n xl: {},\n };\n\n Object.keys(variants).forEach((variant) => {\n const media = variant.substring(0, 2);\n if (responsives[media]) {\n const pseudo = lcfirst(variant.substring(2)) || 'all';\n responsives[media][pseudo] = variants[variant];\n } else {\n responsives['all'][variant] = variants[variant];\n }\n });\n\n Object.keys(responsives).forEach((media) => {\n if (media !== 'all' && Object.keys(responsives[media]).length > 0) {\n result = result.concat(css`\n ${(props) => `@media (min-width: ${props.theme.breakpoints[media]}) {`}\n `);\n }\n Object.keys(responsives[media]).forEach((pseudo) => {\n pseudo = toKebabCase(pseudo);\n if (isPseudoClass(pseudo)) {\n result = result.concat(css`\n &:${pseudo} {\n ${property === null ? '' : property + ': '}${(props) =>\n formatValue(responsives[media][pseudo], props.theme, formatter)};\n }\n `);\n } else if (isPseudoElement(pseudo)) {\n result = result.concat(css`\n &::${pseudo} {\n ${property === null ? '' : property + ': '}${(props) =>\n formatValue(responsives[media][pseudo], props.theme, formatter)};\n }\n `);\n } else if (pseudo === 'all') {\n result = result.concat(css`\n ${property === null ? '' : property + ': '}${(props) =>\n formatValue(responsives[media][pseudo], props.theme, formatter)};;\n `);\n }\n });\n if (media !== 'all' && Object.keys(responsives[media]).length > 0) {\n result = result.concat(['}']);\n }\n });\n\n return result;\n};\n\nexport const cssProperty = <T>(property: string | null, formatter?: Formatter<T>): CssProperty<T> => {\n return (value: T, variants: AnonymousObject = {}): FlattenInterpolation<ThemeProps<any>> => {\n return toCss(property, formatter, value, variants);\n };\n};\n\nexport const preflight = (): FlattenInterpolation<ThemeProps<any>> => {\n return css`\n *,\n ::after,\n ::before {\n box-sizing: border-box;\n border-style: solid;\n border-width: 0;\n }\n ${toCss('font-family', themeFormatter('font.families'), 'sans', {})}\n button, input, optgroup, select, textarea {\n font-family: inherit;\n font-size: 100%;\n margin: 0;\n line-height: 1.15;\n }\n `;\n};\n\nexport const addClassname = (classname: string, existing?: string, after = true): string => {\n if (existing) {\n return after ? `${existing} ${classname}` : `${classname} ${existing}`;\n }\n return classname;\n};\n","import {\n BackgroundAttachmentProperty,\n BackgroundColorProperty,\n BackgroundPositionProperty,\n BackgroundRepeatProperty,\n BackgroundSizeProperty,\n OpacityProperty,\n BackgroundClipProperty,\n BackgroundImageProperty,\n BackgroundOriginProperty,\n} from 'csstype';\nimport { colorFormatter } from '../utils/formatter';\nimport { cssProperty } from '../utils/style';\nimport { ColorPropertyTheme, TLength } from './typings';\n\nexport const backgroundColor = cssProperty<ColorPropertyTheme | BackgroundColorProperty>(\n null,\n colorFormatter('background-color', 'background-opacity'),\n);\n\nexport const backgroundAttachment = cssProperty<BackgroundAttachmentProperty>('background-attachment');\n\nexport const backgroundClip = cssProperty<BackgroundClipProperty>('background-clip');\n\nexport const backgroundImage = cssProperty<BackgroundImageProperty>('background-image');\n\nexport const backgroundOpacity = cssProperty<OpacityProperty>('--background-opacity');\n\nexport const backgroundOrigin = cssProperty<BackgroundOriginProperty>('background-origin');\n\nexport const backgroundPosition = cssProperty<BackgroundPositionProperty<TLength>>('background-position');\n\nexport const backgroundRepeat = cssProperty<BackgroundRepeatProperty>('background-repeat');\n\nexport const backgroundSize = cssProperty<BackgroundSizeProperty<TLength>>('background-size');\n","import {\n MarginBottomProperty,\n MarginLeftProperty,\n MarginProperty,\n MarginRightProperty,\n MarginTopProperty,\n PaddingBottomProperty,\n PaddingLeftProperty,\n PaddingProperty,\n PaddingRightProperty,\n PaddingTopProperty,\n} from 'csstype';\nimport { themeFormatter } from '../utils/formatter';\nimport { cssProperty, toCss } from '../utils/style';\nimport { SpacingPropertyTheme, TLength, CssProperty } from './typings';\n\nexport const padding = cssProperty<SpacingPropertyTheme | PaddingProperty<TLength>>(\n 'padding',\n themeFormatter('spacings'),\n);\n\nexport const paddingY: CssProperty<SpacingPropertyTheme | PaddingProperty<TLength>> = (value, variants = {}) => {\n return toCss('padding-top', themeFormatter('spacings'), value, variants).concat(\n toCss('padding-bottom', themeFormatter('spacings'), value, variants),\n );\n};\n\nexport const paddingX: CssProperty<SpacingPropertyTheme | PaddingProperty<TLength>> = (value, variants = {}) => {\n return toCss('padding-left', themeFormatter('spacings'), value, variants).concat(\n toCss('padding-right', themeFormatter('spacings'), value, variants),\n );\n};\n\nexport const paddingLeft = cssProperty<SpacingPropertyTheme | PaddingLeftProperty<TLength>>(\n 'padding-left',\n themeFormatter('spacings'),\n);\n\nexport const paddingRight = cssProperty<SpacingPropertyTheme | PaddingRightProperty<TLength>>(\n 'padding-right',\n themeFormatter('spacings'),\n);\n\nexport const paddingTop = cssProperty<SpacingPropertyTheme | PaddingTopProperty<TLength>>(\n 'padding-top',\n themeFormatter('spacings'),\n);\n\nexport const paddingBottom = cssProperty<SpacingPropertyTheme | PaddingBottomProperty<TLength>>(\n 'padding-bottom',\n themeFormatter('spacings'),\n);\n\nexport const margin = cssProperty<SpacingPropertyTheme | MarginProperty<TLength>>('margin', themeFormatter('spacings'));\n\nexport const marginY: CssProperty<SpacingPropertyTheme | MarginProperty<TLength>> = (value, variants = {}) => {\n return toCss('margin-top', themeFormatter('spacings'), value, variants).concat(\n toCss('margin-bottom', themeFormatter('spacings'), value, variants),\n );\n};\n\nexport const marginX: CssProperty<SpacingPropertyTheme | MarginProperty<TLength>> = (value, variants = {}) => {\n return toCss('margin-left', themeFormatter('spacings'), value, variants).concat(\n toCss('margin-right', themeFormatter('spacings'), value, variants),\n );\n};\n\nexport const marginLeft = cssProperty<SpacingPropertyTheme | MarginLeftProperty<TLength>>(\n 'margin-left',\n themeFormatter('spacings'),\n);\n\nexport const marginRight = cssProperty<SpacingPropertyTheme | MarginRightProperty<TLength>>(\n 'margin-right',\n themeFormatter('spacings'),\n);\n\nexport const marginTop = cssProperty<SpacingPropertyTheme | MarginTopProperty<TLength>>(\n 'margin-top',\n themeFormatter('spacings'),\n);\n\nexport const marginBottom = cssProperty<SpacingPropertyTheme | MarginBottomProperty<TLength>>(\n 'margin-bottom',\n themeFormatter('spacings'),\n);\n","import {\n ColorProperty,\n FontFamilyProperty,\n FontFeatureSettingsProperty,\n FontKerningProperty,\n FontLanguageOverrideProperty,\n FontOpticalSizingProperty,\n FontProperty,\n FontSizeAdjustProperty,\n FontSizeProperty,\n FontStretchProperty,\n FontStyleProperty,\n FontSynthesisProperty,\n FontVariantAlternatesProperty,\n FontVariantCapsProperty,\n FontVariantEastAsianProperty,\n FontVariantLigaturesProperty,\n FontVariantNumericProperty,\n FontVariantPositionProperty,\n FontVariantProperty,\n FontVariationSettingsProperty,\n FontWeightProperty,\n GlobalsString,\n HyphensProperty,\n LetterSpacingProperty,\n LineHeightProperty,\n LineHeightStepProperty,\n OpacityProperty,\n OverflowWrapProperty,\n TextAlignProperty,\n TextDecorationColorProperty,\n TextDecorationLineProperty,\n TextDecorationProperty,\n TextDecorationStyleProperty,\n TextDecorationThicknessProperty,\n TextEmphasisColorProperty,\n TextEmphasisProperty,\n TextEmphasisStyleProperty,\n TextIndentProperty,\n TextJustifyProperty,\n TextOverflowProperty,\n TextShadowProperty,\n TextTransformProperty,\n TextUnderlinePositionProperty,\n WhiteSpaceProperty,\n WordBreakProperty,\n WordSpacingProperty,\n} from 'csstype';\nimport { colorFormatter, themeFormatter } from '../utils/formatter';\nimport { cssProperty } from '../utils/style';\nimport {\n ColorPropertyTheme,\n FontFamilyPropertyTheme,\n FontSizePropertyTheme,\n FontWeightPropertyTheme,\n Formatter,\n LetterSpacingPropertyTheme,\n LineHeightPropertyTheme,\n TLength,\n} from './typings';\n\nexport const color = cssProperty<ColorPropertyTheme | ColorProperty>(null, colorFormatter('color', 'text-opacity'));\n\nexport const font = cssProperty<FontProperty>('font');\n\nexport const fontFamily = cssProperty<FontFamilyPropertyTheme | FontFamilyProperty>(\n 'font-family',\n themeFormatter('font.families'),\n);\n\nexport const fontFeatureSettings = cssProperty<FontFeatureSettingsProperty>('font-feature-settings');\n\nexport const fontKerning = cssProperty<FontKerningProperty>('font-kerning');\n\nexport const fontLanguageOverride = cssProperty<FontLanguageOverrideProperty>('font-language-override');\n\nexport const fontOpticalSizing = cssProperty<FontOpticalSizingProperty>('font-optical-sizing');\n\nexport const fontSize = cssProperty<FontSizePropertyTheme | FontSizeProperty<TLength>>(\n 'font-size',\n themeFormatter('font.sizes'),\n);\n\nexport const fontSizeAdjust = cssProperty<FontSizeAdjustProperty>('font-size-adjust');\n\nexport const fontStretch = cssProperty<FontStretchProperty>('font-stetch');\n\n// normal; italic; oblique; oblique XXdeg;\nexport const fontStyle = cssProperty<FontStyleProperty>('font-style');\n\nexport const fontSynthesis = cssProperty<FontSynthesisProperty>('font-synthesis');\n\nexport const fontVariant = cssProperty<FontVariantProperty>('font-variant');\n\nexport const fontVariantAlternates = cssProperty<FontVariantAlternatesProperty>('font-variant-alternates');\n\nexport const fontVariantCaps = cssProperty<FontVariantCapsProperty>('font-variant-caps');\n\nexport const fontVariantEastAsian = cssProperty<FontVariantEastAsianProperty>('font-variant-east-asian');\n\nexport const fontVariantLigatures = cssProperty<FontVariantLigaturesProperty>('font-variant-ligatures');\n\nexport const fontVariantNumeric = cssProperty<FontVariantNumericProperty>('font-variant-numeric');\n\nexport const fontVariantPosition = cssProperty<FontVariantPositionProperty>('font-variant-position');\n\nexport const fontVariationSettings = cssProperty<FontVariationSettingsProperty>('font-variation-settings');\n\nexport const fontWeight = cssProperty<FontWeightPropertyTheme | FontWeightProperty>(\n 'font-weight',\n themeFormatter('font.weights'),\n);\n\nexport const hyphens = cssProperty<HyphensProperty>('hyphens');\n\nexport const letterSpacing = cssProperty<LetterSpacingPropertyTheme | LetterSpacingProperty<TLength>>(\n 'letter-spacing',\n themeFormatter('font.spacings'),\n);\n\nexport const lineHeight = cssProperty<LineHeightPropertyTheme | LineHeightProperty<TLength>>(\n 'line-height',\n themeFormatter('font.lineHeights'),\n);\n\nexport const lineHeightStep = cssProperty<LineHeightStepProperty<TLength>>('line-height-step');\n\nexport const overflowWrap = cssProperty<OverflowWrapProperty>('overflow-wrap');\n\n// left; center; right; justify\nexport const textAlign = cssProperty<TextAlignProperty>('text-align');\n\nexport const textDecoration = cssProperty<TextDecorationProperty<TLength>>('text-decoration');\n\nexport const textDecorationColor = cssProperty<TextDecorationColorProperty>(\n null,\n colorFormatter('text-decoration-color'),\n);\n\nexport const textDecorationLine = cssProperty<TextDecorationLineProperty>('text-decoration-line');\nexport const textDecorationStyle = cssProperty<TextDecorationStyleProperty>('text-decoration-style');\nexport const textDecorationThickness = cssProperty<TextDecorationThicknessProperty<TLength>>(\n 'text-decoration-thickness',\n);\n\nexport const textEmphasis = cssProperty<TextEmphasisProperty>('text-emphasis');\n\nexport const textEmphasisColor = cssProperty<TextEmphasisColorProperty>(null, colorFormatter('text-emphasis'));\n\nexport const textEmphasisPosition = cssProperty<GlobalsString>('text-emphasis-position');\n\nexport const textEmphasisStyle = cssProperty<TextEmphasisStyleProperty>('text-emphasis-style');\n\nexport const textIdent = cssProperty<TextIndentProperty<TLength>>('text-ident');\n\nexport const textJustify = cssProperty<TextJustifyProperty>('text-justify');\n\n// float between 0 and 1\nexport const textOpacity = cssProperty<OpacityProperty>('--text-opacity');\n\nexport const textOverflow = cssProperty<TextOverflowProperty>('text-overflow');\n\nexport const textTransform = cssProperty<TextTransformProperty>('text-transform');\n\nexport const textShadow = cssProperty<TextShadowProperty>('text-shadow');\n\nexport const textUnderlineOffset = cssProperty<TextUnderlinePositionProperty>('text-underline-offset');\n\nexport const textUnderlinePosition = cssProperty<TextUnderlinePositionProperty>('text-underline-position');\n\nexport const whiteSpace = cssProperty<WhiteSpaceProperty>('white-space');\n\n// normal; words; all; truncate\nconst wordBreakFormatter: Formatter<WordBreakProperty | 'normal' | 'words' | 'all' | 'truncate'> = (value) => {\n if (value === 'normal') {\n return 'word-break: normal;overflow-wrap: normal';\n }\n if (value === 'words') {\n return 'overflow-wrap: break-word';\n }\n if (value === 'all') {\n return 'word-break: break-all';\n }\n if (value === 'truncate') {\n return 'overflow: hidden;text-overflow: ellipsis;white-space: nowrap';\n }\n return `word-break: ${value}`;\n};\nexport const wordBreak = cssProperty<WordBreakProperty | 'normal' | 'words' | 'all' | 'truncate'>(\n null,\n wordBreakFormatter,\n);\n\nexport const wordSpacing = cssProperty<WordSpacingProperty<TLength>>('word-spacing');\n","import { css } from 'styled-components';\nimport { backgroundColor } from '../../styles/background';\nimport { paddingX, paddingY } from '../../styles/spacing';\nimport { ComponentStyle } from '../../styles/typings';\nimport { color, fontWeight } from '../../styles/typography';\nimport { ButtonProps } from './typings';\n\nconst buttonStyle: ComponentStyle<ButtonProps> = ({ kind = 'primary', theme }) => {\n const t = theme.button[kind];\n return css`\n ${backgroundColor(t.backgroundColor, {\n hover: t.hoverBackgroundColor,\n })}\n ${color(t.color)}\n ${fontWeight(t.fontWeight)}\n ${paddingX(t.paddingX)}\n ${paddingY(t.paddingY)}\n `;\n};\n\nexport default buttonStyle;\n","import styled from 'styled-components';\nimport ButtonComponent from './component';\nimport buttonStyle from './style';\n\nconst Button = styled(ButtonComponent)`\n ${buttonStyle}\n`;\n\nexport default Button;\n","import { useEffect } from 'react';\n\nexport const useClickOutside = (\n ref: React.MutableRefObject<HTMLElement> | HTMLElement | null,\n onClickOutside: (e: MouseEvent) => void,\n): void => {\n useEffect(() => {\n function handleClickOutside(event: MouseEvent) {\n const element = ref && !(ref instanceof HTMLElement) ? ref.current : ref;\n if (element && !element.contains(event.target as Node)) {\n onClickOutside(event);\n }\n }\n\n // Bind the event listener\n document.addEventListener('mousedown', handleClickOutside);\n return () => {\n // Unbind the event listener on clean up\n document.removeEventListener('mousedown', handleClickOutside);\n };\n }, [ref, onClickOutside]);\n};\n","import { Modifier } from '@popperjs/core';\n\nconst refWidth = (type: string): Partial<Modifier<string, Record<string, unknown>>> => {\n return {\n name: 'sameWidth',\n enabled: true,\n phase: 'beforeWrite',\n requires: ['computeStyles'],\n fn: ({ state }) => {\n state.styles.popper.width = `${state.rects.reference.width}px`;\n },\n effect: ({ state }) => {\n (state.elements.popper.style as any)[type] = `${state.elements.reference.getBoundingClientRect().width}px`;\n },\n } as Partial<Modifier<string, Record<string, unknown>>>;\n};\n\nexport const sameWidthPopperModifier = refWidth('width');\nexport const minWidthPopperModifier = refWidth('minWidth');\nexport const maxWidthPopperModifier = refWidth('maxWidth');\n","import React, { FC, useState } from 'react';\nimport { DropdownProps } from '../typings';\nimport { sameWidthPopperModifier } from '../../../utils/popper';\nimport { usePopper } from 'react-popper';\nimport { CSSTransition } from 'react-transition-group';\n\nconst DropdownComponent: FC<DropdownProps> = ({ className, refElement, open, children }) => {\n const [popperElement, setPopperElement] = useState<HTMLElement | null>(null);\n const { styles, attributes } = usePopper(refElement, popperElement, {\n modifiers: [sameWidthPopperModifier],\n });\n\n return (\n <CSSTransition\n in={open}\n timeout={500}\n classNames=\"o-dropdown\"\n mountOnEnter={true}\n appear={true}\n unmountOnExit={true}\n >\n <div\n style={styles.popper}\n {...attributes.popper}\n ref={setPopperElement}\n key=\"dropdown-container\"\n className={className}\n >\n {children}\n </div>\n </CSSTransition>\n );\n};\n\nexport default DropdownComponent;\n","import {\n OverscrollBehaviorBlockProperty,\n OverscrollBehaviorInlineProperty,\n OverscrollBehaviorProperty,\n OverscrollBehaviorXProperty,\n OverscrollBehaviorYProperty,\n} from 'csstype';\nimport { cssProperty } from '../utils/style';\nimport { Formatter, SizeProperty, Theme } from './typings';\nimport { pxFormatter } from '../utils/formatter';\n\nconst sizeFormatter = (type: 'width' | 'height', value: SizeProperty, theme: Theme) => {\n console.log(\"theme\", theme);\n if (theme.sizes[value] !== undefined) {\n return theme.sizes[value];\n }\n if (value === 'auto') return 'auto';\n if (value === 'none') return 'none';\n if (value === 'full') return '100%';\n if (value === 'screen') return type === 'height' ? '100vh' : '100vw';\n\n if (value.toString().includes('/')) {\n const [time, div] = value\n .toString()\n .split('/')\n .map((x) => parseInt(x));\n return `${(100 * time) / div}%`;\n }\n return pxFormatter(value, theme);\n};\n\nconst widthFormatter: Formatter<SizeProperty> = (value, theme) => {\n return sizeFormatter('width', value, theme);\n};\n\nconst heightFormatter: Formatter<SizeProperty> = (value, theme) => {\n return sizeFormatter('height', value, theme);\n};\n\n// spacing or fraction or auto or full or screen\nexport const width = cssProperty<SizeProperty>('width', widthFormatter);\n\n// spacing or fraction or auto or full or screen\nexport const minWidth = cssProperty<SizeProperty>('min-width', widthFormatter);\n\nexport const maxWidth = cssProperty<SizeProperty>('max-width', widthFormatter);\n\nexport const height = cssProperty<SizeProperty>('height', heightFormatter);\n\nexport const minHeight = cssProperty<SizeProperty>('min-height', heightFormatter);\n\nexport const maxHeight = cssProperty<SizeProperty>('max-height', heightFormatter);\n\nexport const overscrollBehavior = cssProperty<OverscrollBehaviorProperty>('overscroll-behavior');\n\nexport const overscrollBehaviorBlock = cssProperty<OverscrollBehaviorBlockProperty>('overscroll-behavior-block');\n\nexport const overscrollBehaviorInline = cssProperty<OverscrollBehaviorInlineProperty>('overscroll-behavior-inline');\n\nexport const overscrollBehaviorX = cssProperty<OverscrollBehaviorXProperty>('overscroll-behavior-x');\n\nexport const overscrollBehaviorY = cssProperty<OverscrollBehaviorYProperty>('overscroll-behavior-y');\n","import {\n BorderBottomColorProperty,\n BorderBottomLeftRadiusProperty,\n BorderBottomProperty,\n BorderBottomRightRadiusProperty,\n BorderBottomStyleProperty,\n BorderBottomWidthProperty,\n BorderColorProperty,\n BorderImageOutsetProperty,\n BorderImageProperty,\n BorderImageRepeatProperty,\n BorderImageSliceProperty,\n BorderImageSourceProperty,\n BorderImageWidthProperty,\n BorderLeftColorProperty,\n BorderLeftProperty,\n BorderLeftStyleProperty,\n BorderLeftWidthProperty,\n BorderProperty,\n BorderRadiusProperty,\n BorderRightColorProperty,\n BorderRightProperty,\n BorderRightStyleProperty,\n BorderRightWidthProperty,\n BorderStyleProperty,\n BorderTopColorProperty,\n BorderTopLeftRadiusProperty,\n BorderTopProperty,\n BorderTopRightRadiusProperty,\n BorderTopStyleProperty,\n BorderTopWidthProperty,\n BorderWidthProperty,\n BoxShadowProperty,\n OpacityProperty,\n} from 'csstype';\nimport { colorFormatter, pxFormatter, themeFormatter } from '../utils/formatter';\nimport { cssProperty } from '../utils/style';\nimport { ColorPropertyTheme, RadiusPropertyTheme, ShadowPropertyTheme, TLength } from './typings';\n\nexport const border = cssProperty<BorderProperty<TLength>>('border');\nexport const borderTop = cssProperty<BorderTopProperty<TLength>>('border-top');\nexport const borderBottom = cssProperty<BorderBottomProperty<TLength>>('border-bottom');\nexport const borderLeft = cssProperty<BorderLeftProperty<TLength>>('border-left');\nexport const borderRight = cssProperty<BorderRightProperty<TLength>>('border-right');\n\nexport const borderColor = cssProperty<ColorPropertyTheme | BorderColorProperty>(\n null,\n colorFormatter('border-color', 'border-opacity'),\n);\nexport const borderTopColor = cssProperty<ColorPropertyTheme | BorderTopColorProperty>(\n null,\n colorFormatter('border-top-color', 'border-top-opacity'),\n);\nexport const borderBottomColor = cssProperty<ColorPropertyTheme | BorderBottomColorProperty>(\n null,\n colorFormatter('border-bottom-color', 'border-bottom-opacity'),\n);\nexport const borderLeftColor = cssProperty<ColorPropertyTheme | BorderLeftColorProperty>(\n null,\n colorFormatter('border-left-color', 'border-left-opacity'),\n);\nexport const borderRightColor = cssProperty<ColorPropertyTheme | BorderRightColorProperty>(\n null,\n colorFormatter('border-right-color', 'border-right-opacity'),\n);\n\nexport const borderImage = cssProperty<BorderImageProperty>('border-image');\nexport const borderImageOutset = cssProperty<BorderImageOutsetProperty<TLength>>('border-image-outset');\nexport const borderImageRepeat = cssProperty<BorderImageRepeatProperty>('border-image-repeat');\nexport const borderImageSlice = cssProperty<BorderImageSliceProperty>('border-image-slice');\nexport const borderImageSource = cssProperty<BorderImageSourceProperty>('border-image-source');\nexport const borderImageWidth = cssProperty<BorderImageWidthProperty<TLength>>('border-image-width');\n\nexport const borderOpacity = cssProperty<OpacityProperty>('--border-opacity');\nexport const borderTopOpacity = cssProperty<OpacityProperty>('--border-top-opacity');\nexport const borderBottomOpacity = cssProperty<OpacityProperty>('-border-bottom-opacity');\nexport const borderLeftOpacity = cssProperty<OpacityProperty>('--border-left-opacity');\nexport const borderRightOpacity = cssProperty<OpacityProperty>('--border-right-opacity');\n\nexport const borderRadius = cssProperty<RadiusPropertyTheme | BorderRadiusProperty<TLength>>(\n 'border-radius',\n themeFormatter('radius'),\n);\nexport const borderTopLeftRadius = cssProperty<BorderTopLeftRadiusProperty<TLength>>(\n 'border-top-left-radius',\n themeFormatter('radius'),\n);\nexport const borderBottomRadius = cssProperty<BorderBottomLeftRadiusProperty<TLength>>(\n 'border-bottom-left-radius',\n themeFormatter('radius'),\n);\nexport const borderLeftRadius = cssProperty<BorderTopRightRadiusProperty<TLength>>(\n 'border-top-right-radius',\n themeFormatter('radius'),\n);\nexport const borderRightRadius = cssProperty<BorderBottomRightRadiusProperty<TLength>>(\n 'border-bottom-right-radius',\n themeFormatter('radius'),\n);\n\nexport const borderStyle = cssProperty<BorderStyleProperty>('border-style');\nexport const borderTopStyle = cssProperty<BorderTopStyleProperty>('border-top-style');\nexport const borderBottomStyle = cssProperty<BorderBottomStyleProperty>('border-bottom-style');\nexport const borderLeftStyle = cssProperty<BorderLeftStyleProperty>('border-left-style');\nexport const borderRightStyle = cssProperty<BorderRightStyleProperty>('border-right-style');\n\nexport const borderWidth = cssProperty<number | BorderWidthProperty<TLength>>('border-width', pxFormatter);\nexport const borderTopWidth = cssProperty<number | BorderTopWidthProperty<TLength>>('border-top-width', pxFormatter);\nexport const borderBottomWidth = cssProperty<number | BorderBottomWidthProperty<TLength>>(\n 'border-bottom-width',\n pxFormatter,\n);\nexport const borderLeftWidth = cssProperty<number | BorderLeftWidthProperty<TLength>>('border-left-width', pxFormatter);\nexport const borderRightWidth = cssProperty<number | BorderRightWidthProperty<TLength>>(\n 'border-right-width',\n pxFormatter,\n);\n\nexport const boxShadow = cssProperty<ShadowPropertyTheme | BoxShadowProperty>('box-shadow', themeFormatter('shadow'));\n","import { cssProperty } from '../utils/style';\nimport {\n OverflowProperty,\n OverflowXProperty,\n OverflowYProperty,\n OverflowBlockProperty,\n OverflowInlineProperty,\n} from 'csstype';\n\n// auto; hidden; visible; scroll;\nexport const overflow = cssProperty<OverflowProperty>('overflow');\n\nexport const overflowBlock = cssProperty<OverflowBlockProperty>('overflow-block');\n\nexport const overflowInline = cssProperty<OverflowInlineProperty>('overflow-inline');\n\n// auto; hidden; visible; scroll;\nexport const overflowX = cssProperty<OverflowXProperty>('overflow-x');\n\n// auto; hidden; visible; scroll;\nexport const overflowY = cssProperty<OverflowYProperty>('overflow-y');\n","import {\n GlobalsString,\n TransitionProperty,\n TransitionPropertyProperty,\n TransitionTimingFunctionProperty,\n} from 'csstype';\nimport { cssProperty } from '../utils/style';\n\nexport const transition = cssProperty<TransitionProperty>('transition');\nexport const transitionDelay = cssProperty<GlobalsString>('transition-delay');\nexport const transitionDuration = cssProperty<GlobalsString>('transition-duration');\nexport const transitionProperty = cssProperty<TransitionPropertyProperty>('transition-property');\nexport const transitionTimingFunction = cssProperty<TransitionTimingFunctionProperty>('transition-timing-function');\n","import { OpacityProperty } from 'csstype';\nimport { cssProperty } from '../utils/style';\n\nexport const opacity = cssProperty<OpacityProperty>('opacity');\n","import { css } from 'styled-components';\nimport { ComponentStyle } from '../../styles/typings';\nimport { preflight } from '../../utils/style';\nimport { DropdownProps } from './typings';\nimport { width, height } from '../../styles/size';\nimport { borderRadius, borderColor, boxShadow } from '../../styles/border';\nimport { overflowY } from '../../styles/overflow';\nimport { backgroundColor } from '../../styles/background';\nimport { transitionDuration, transitionProperty, transitionTimingFunction } from '../../styles/transition';\nimport { opacity } from '../../styles/effects';\n\nconst dropdownStyle: ComponentStyle<DropdownProps> = () => {\n return css`\n ${preflight()}\n ${width(64)}\n ${borderRadius('default')}\n ${borderColor('gray-200')}\n ${boxShadow('default')}\n ${overflowY('auto')}\n ${height('200px')}\n ${backgroundColor('white')}\n &.o-dropdown-enter {\n ${opacity(0)}\n }\n &.o-dropdown-enter-active {\n ${transitionDuration('.5s')}\n ${transitionProperty('opacity')}\n ${transitionTimingFunction('ease-in-out')} \n ${opacity(1)}\n } \n &.o-dropdown-exit-active {\n ${transitionDuration('.5s')}\n ${transitionProperty('opacity')}\n ${transitionTimingFunction('ease-in-out')} \n ${opacity(0)}\n } \n \n `;\n};\n\nexport default dropdownStyle;\n","import styled from 'styled-components';\nimport DropdownComponent from './components/DropdownComponent';\nimport dropdownStyle from './style';\n\nconst Dropdown = styled(DropdownComponent)`\n ${dropdownStyle}\n`;\n\nexport default Dropdown;\n","import React, { FC } from 'react';\nimport styled, { keyframes } from 'styled-components';\n\nconst IconComponent: FC<React.InputHTMLAttributes<HTMLDivElement>> = ({ className }) => {\n return (\n <div className={className}>\n <svg className=\"o-icon-loading-svg\" viewBox=\"0 0 100 100\" xmlns=\"http://www.w3.org/2000/svg\">\n <circle className=\"o-icon-loading-svg-circle\" cx=\"50\" cy=\"50\" r=\"45\" />\n </svg>\n </div>\n );\n};\n\nconst iconKeyFrame = keyframes`\n 0% {\n transform: rotateZ(0deg);\n }\n 100% {\n transform: rotateZ(360deg);\n }\n`;\n\nconst iconCircleKeyFrame = keyframes`\n 0%, 25% {\n stroke-dashoffset: 280;\n transform: rotate(0);\n }\n\n 50%, 75% {\n stroke-dashoffset: 75;\n transform: rotate(45deg);\n }\n\n 100% {\n stroke-dashoffset: 280;\n transform: rotate(360deg);\n }\n`;\n\nexport default styled(IconComponent)`\n height: 100%;\n margin-left: auto;\n margin-right: auto;\n position: relative;\n top: 50%;\n transform: translateY(-50%);\n width: 100%;\n\n .o-icon-loading-svg {\n animation: 2s linear infinite both ${iconKeyFrame};\n }\n\n .o-icon-loading-svg-circle {\n animation: 1.4s ease-in-out infinite both ${iconCircleKeyFrame};\n fill: transparent;\n stroke: currentColor;\n stroke-dasharray: 285;\n stroke-linecap: round;\n stroke-width: 10px;\n transform-origin: 50% 50%;\n }\n`;\n","import React, { FC } from 'react';\nimport { SelectIconProps } from '../typings';\nimport LoadingIcon from '../../icon/LoadingIcon';\n\nconst SelectIconComponent: FC<SelectIconProps> = ({ onIconClick, open, loading }) => {\n if (!loading) {\n return (\n <div className=\"o-select-icon-container\" onClick={onIconClick}>\n <button className=\"o-select-icon\">\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"100%\"\n height=\"100%\"\n fill=\"none\"\n viewBox=\"0 0 24 24\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n transform={`rotate(${open ? '0' : '180'})`}\n className=\"o-select-arrow-svg\"\n >\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n </button>\n </div>\n );\n } else {\n return (\n <div className=\"o-select-icon-container\" onClick={onIconClick}>\n <div className=\"o-select-icon\">\n <LoadingIcon />\n </div>\n </div>\n );\n }\n};\n\nexport default SelectIconComponent;\n","import { useIsomorphicLayoutEffect } from 'onekijs-core';\nimport React, { FC, useCallback, useRef, useMemo } from 'react';\nimport { SelectInputProps } from '../typings';\nimport SelectIconComponent from './SelectIconComponent';\n\nconst SelectInputComponent: FC<SelectInputProps> = ({\n onIconClick,\n open,\n placeholder,\n loading,\n IconComponent = SelectIconComponent,\n onFocus,\n onBlur,\n onChange,\n value,\n focus,\n}) => {\n const inputRef = useRef<HTMLInputElement>(null);\n const partialValueRef = useRef('');\n const proxifyRef = useRef(true);\n const proxyValue =\n value === undefined || !proxifyRef.current ? (focus ? partialValueRef.current : '') : String(value);\n\n const handleChange = useCallback(\n (e: React.ChangeEvent<HTMLInputElement>) => {\n const input = inputRef.current;\n if (input) {\n const currentSelectionStart = input.selectionStart;\n const currentSelectionEnd = input.selectionEnd;\n if (currentSelectionStart && currentSelectionStart !== currentSelectionEnd) {\n partialValueRef.current = input.value.substring(0, currentSelectionStart);\n } else {\n partialValueRef.current = input.value;\n }\n }\n if (onChange) {\n e.target.value = partialValueRef.current;\n onChange(e);\n }\n },\n [onChange],\n );\n\n const handleKeyDown = useCallback((e: React.KeyboardEvent<HTMLInputElement>) => {\n const input = inputRef.current;\n if (!input) return;\n if (e.keyCode === 8 || e.keyCode === 46) {\n proxifyRef.current = false;\n } else {\n const currentSelectionStart = input.selectionStart;\n const currentSelectionEnd = input.selectionEnd;\n if (currentSelectionStart === currentSelectionEnd && currentSelectionStart === input.value.length) {\n proxifyRef.current = true;\n }\n }\n }, []);\n\n useIsomorphicLayoutEffect(() => {\n const input = inputRef.current;\n if (input && focus) {\n if (value !== undefined && String(value).startsWith(partialValueRef.current) && proxifyRef.current) {\n input.setSelectionRange(partialValueRef.current.length, String(value).length);\n }\n }\n });\n\n const className = useMemo(() => {\n const result = ['o-select-input-container'];\n if (focus) {\n result.push('o-select-input-focus');\n }\n return result.join(' ');\n }, [focus]);\n\n return (\n <div className={className}>\n <div className=\"o-select-input-marker\" />\n <input\n ref={inputRef}\n placeholder={placeholder}\n className=\"o-select-input\"\n onFocus={onFocus}\n onBlur={onBlur}\n onChange={handleChange}\n onKeyDown={handleKeyDown}\n value={proxyValue}\n />\n <IconComponent onIconClick={onIconClick} open={open} loading={loading} />\n </div>\n );\n};\n\nexport default SelectInputComponent;\n","import React, { FC } from 'react';\nimport { ListItemProps } from '../typings';\nimport { LoadingStatus } from 'onekijs-core';\n\nconst ListItemComponent: FC<ListItemProps> = React.memo(({ item }) => {\n return (\n <div className=\"o-list-item\">\n {item.data === undefined && item.meta?.loadingStatus === LoadingStatus.Loading ? 'loading' : item.text}\n </div>\n );\n});\n\nListItemComponent.displayName = 'ListItemComponent';\n\nexport default ListItemComponent;\n","import { Collection, CollectionStatus, ItemMeta, LoadingStatus, Item, isCollection } from 'onekijs-core';\n\n// export const adapt = <T, M extends ItemMeta>(\n// item: Item<T, M>,\n// meta: ItemMeta,\n// adapter?: ListItemAdapter<T, M>,\n// ): ListItem<T, M> => {\n// const loading = isLoading(meta);\n// const deprecated = isDeprecated(meta);\n// const result: ListItem<T> = { loading, deprecated, item };\n\n// let adaptee;\n// if (item !== undefined) {\n// if (adapter) {\n// adaptee = adapter(item);\n// } else if (['string', 'number', 'boolean'].includes(typeof item)) {\n// adaptee = {\n// id: item,\n// text: String(item),\n// };\n// } else {\n// adaptee = {\n// id: (item as any).id,\n// text: (item as any).text,\n// };\n// }\n// } else {\n// adaptee = {\n// id: undefined,\n// text: undefined,\n// };\n// }\n// Object.assign(result, adaptee);\n// return result;\n// };\n\n// export const canFetchMore = (data: any[] | Collection<any>): boolean => {\n// if (\n// isCollection(data) &&\n// ![ListStatus.Loading, ListStatus.PartialLoading, ListStatus.Deprecated, ListStatus.PartialDeprecated].includes(\n// getListStatus(data),\n// )\n// ) {\n// return data.total === undefined;\n// }\n// return false;\n// };\n\nexport const emptyListItem: Item<any, ItemMeta> = {};\n\nexport const canFetchMore = (collection: any[] | Collection<unknown, ItemMeta>): boolean => {\n return (\n isCollection(collection) && (collection as Collection<unknown, ItemMeta>).status === LoadingStatus.PartialLoaded\n );\n};\n\nexport const getListStatus = (collection: any[] | Collection<unknown, ItemMeta>): CollectionStatus => {\n if (isCollection(collection)) {\n return (collection as Collection<unknown, ItemMeta>).status;\n }\n return LoadingStatus.Loaded;\n};\n","import React, { FC, useEffect } from 'react';\nimport { LoadingStatus } from 'onekijs-core';\nimport { addClassname } from '../../../utils/style';\nimport { StandardListProps } from '../typings';\nimport ListItemComponent from './ListItemComponent';\nimport { emptyListItem } from '../utils';\n\nconst StandardListComponent: FC<StandardListProps> = ({\n className,\n collection,\n ItemComponent = ListItemComponent,\n onItemClick,\n onItemMouseOver,\n}) => {\n const items = collection.items ?? [];\n\n useEffect(() => {\n if (collection.status === LoadingStatus.NotInitialized) {\n return collection.load();\n }\n }, [collection]);\n\n return (\n <div className={addClassname('o-list', className)}>\n {items.map((item: any, index: number) => {\n return (\n <ItemComponent\n key={`item-${index}`}\n index={index}\n item={item || emptyListItem}\n onClick={onItemClick}\n onMouseOver={onItemMouseOver}\n />\n );\n })}\n </div>\n );\n};\n\nexport default StandardListComponent;\n","import React, { FC, useCallback, useEffect, useMemo, useRef } from 'react';\nimport { useVirtual } from 'react-virtual';\nimport { CollectionStatus, Item, ItemMeta, LoadingStatus, useIsomorphicLayoutEffect, toCollectionItem } from 'onekijs-core';\nimport { addClassname } from '../../../utils/style';\nimport { VirtualListProps } from '../typings';\nimport { canFetchMore, getListStatus, emptyListItem } from '../utils';\nimport ListItemComponent from './ListItemComponent';\n\nconst defaultHeight = 200;\nconst defaultItemHeight = 21;\nconst defaultPreload = 100;\nconst defaultIncrement = 100;\n\nconst VirtualistComponent: FC<VirtualListProps> = ({\n className,\n collection,\n height = defaultHeight,\n ItemComponent = ListItemComponent,\n itemHeight = defaultItemHeight,\n preload = defaultPreload,\n increment = defaultIncrement,\n onItemClick,\n onItemMouseOver,\n}) => {\n const parentRef = useRef(null);\n\n const estimatedItemHeight = useCallback(\n (index: number) => {\n if (typeof itemHeight === 'function') {\n return itemHeight(index) || defaultItemHeight;\n }\n return defaultItemHeight;\n },\n [itemHeight],\n );\n\n const memo = useMemo(() => {\n const result: {\n items: (Item<any, ItemMeta> | undefined)[];\n status: CollectionStatus;\n } = {\n items: [],\n status: getListStatus(collection),\n };\n\n if (result.status === LoadingStatus.NotInitialized) {\n result.items = Array(preload).fill(toCollectionItem(undefined, collection.getAdapter()));\n } else {\n result.items = collection.items || [];\n }\n return result;\n }, [collection, preload]);\n\n const { totalSize, virtualItems, scrollToIndex } = useVirtual({\n size: memo.items.length,\n estimateSize: estimatedItemHeight,\n parentRef,\n });\n\n useIsomorphicLayoutEffect(() => {\n const offset = collection.getOffset() || 0;\n const firstVirualItem = virtualItems[0];\n const firstVirualItemIndex = firstVirualItem ? firstVirualItem.index : 0;\n if (\n collection.status !== LoadingStatus.Loading &&\n collection.status !== LoadingStatus.Deprecated &&\n offset === 0 &&\n firstVirualItemIndex !== 0\n ) {\n scrollToIndex(0);\n }\n }, [collection]);\n\n useEffect(() => {\n if (collection.status === LoadingStatus.NotInitialized) {\n collection.load(preload);\n } else if (canFetchMore(collection)) {\n const lastVirtualItem = virtualItems[virtualItems.length - 1];\n const lastVirtualItemIndex = lastVirtualItem ? lastVirtualItem.index : 0;\n if (lastVirtualItemIndex >= memo.items.length - preload / 2) {\n collection.load(increment, (collection.items as any[]).length);\n }\n }\n }, [collection, preload, virtualItems, increment, memo]);\n\n return (\n <div\n ref={parentRef}\n className={addClassname('o-list', className)}\n style={{\n maxHeight: `${typeof height === 'string' ? height : `${height}px`}`,\n overflow: 'auto',\n }}\n >\n <div\n className=\"o-list-virtualizer\"\n style={{\n height: `${totalSize}px`,\n width: '100%',\n position: 'relative',\n }}\n >\n {virtualItems.map(({ index, measureRef, start }) => {\n const listItem = memo.items[index];\n return (\n <div\n className=\"o-list-virtual-item\"\n key={`virtual-item-${index}`}\n ref={measureRef}\n style={{\n position: 'absolute',\n top: 0,\n left: 0,\n width: '100%',\n minHeight: '20px',\n transform: `translateY(${start}px)`,\n }}\n >\n <ItemComponent\n key={`item-${index}`}\n index={index}\n item={listItem || emptyListItem}\n onClick={onItemClick}\n onMouseOver={onItemMouseOver}\n />\n </div>\n );\n })}\n </div>\n </div>\n );\n};\n\nexport default VirtualistComponent;\n","import { omit, useCollection } from 'onekijs-core';\nimport React, { FC } from 'react';\nimport { ListProps, StandardListProps, ListInternalProps } from '../typings';\nimport StandardListComponent from './StandardListComponent';\nimport VirtualistComponent from './VirtualListComponent';\n\nconst ListComponent: FC<ListProps> = (props) => {\n const { items, ...listInternalProps } = props;\n if (Array.isArray(items)) {\n return <ListDataComponent {...listInternalProps} items={items} />;\n } else {\n return <ListInternalComponent {...listInternalProps} collection={items} />;\n }\n};\n\nconst ListDataComponent: FC<Omit<ListProps, 'items'> & { items: any[] }> = (props) => {\n const { items, ...listInternalProps } = props;\n const collection = useCollection(items);\n return <ListInternalComponent {...listInternalProps} collection={collection} />;\n};\n\nconst ListInternalComponent: FC<ListInternalProps> = (props) => {\n if (props.height) {\n return <VirtualistComponent {...props} />;\n } else {\n const standardProps: StandardListProps = omit(props, ['itemHeight', 'height', 'preload']);\n return <StandardListComponent {...standardProps} />;\n }\n};\n\nexport default ListComponent;\n","import React, { FC, useMemo } from 'react';\nimport { SelectOptionProps } from '../typings';\nimport { LoadingStatus } from 'onekijs-core';\n\nconst SelectOptionComponent: FC<SelectOptionProps> = React.memo(({ item, index, onClick, onMouseOver }) => {\n const { data, text, meta } = item;\n let content = '';\n let clickable = !!onClick;\n let hoverable = !!onMouseOver;\n if (data === undefined && meta?.loadingStatus === LoadingStatus.Loading) {\n content = 'loading';\n clickable = false;\n hoverable = false;\n } else {\n content = text || '';\n if (meta?.selected) {\n content += ' *';\n }\n }\n const classNames = useMemo(() => {\n const classNames = ['o-select-option'];\n if (clickable) {\n classNames.push('o-select-option-clickable');\n }\n if (hoverable) {\n classNames.push('o-select-option-hoverable');\n }\n return classNames.join(' ');\n }, [clickable, hoverable]);\n\n return (\n <div\n className={classNames}\n onClick={() => clickable && onClick && onClick(item, index)}\n onMouseOver={() => hoverable && onMouseOver && onMouseOver(item, index)}\n >\n {data === undefined && meta?.loadingStatus === LoadingStatus.Loading ? 'loading' : content}\n </div>\n );\n});\n\nSelectOptionComponent.displayName = 'SelectOptionComponent';\n\nexport default SelectOptionComponent;\n","import React, { FC } from 'react';\nimport ListComponent from '../../list/components/ListComponent';\nimport { SelectOptionsProps } from '../typings';\nimport SelectOptionComponent from './SelectOptionComponent';\n\nconst SelectOptionsComponent: FC<SelectOptionsProps> = ({\n search,\n ItemComponent = SelectOptionComponent,\n ...listProps\n}) => {\n return <ListComponent className=\"o-select-options\" ItemComponent={ItemComponent} height=\"100%\" {...listProps} />;\n};\n\nexport default SelectOptionsComponent;\n","import { AnonymousObject, get } from 'onekijs-core';\nimport React, { FC, useCallback, useMemo, useRef, useState, useEffect } from 'react';\nimport { LoadingStatus, Item, useCollection, toCollectionItem } from 'onekijs-core';\nimport { useClickOutside } from '../../../utils/event';\nimport Dropdown from '../../dropdown';\nimport { SelectInternalProps, SelectOptionMeta, SelectOptionHandler, SelectProps } from '../typings';\nimport SelectInputComponent from './SelectInputComponent';\nimport SelectOptionsComponent from './SelectOptionsComponent';\n\nconst SelectComponent: FC<SelectProps<any>> = (props) => {\n const { items, ...selectInternalProps } = props;\n if (Array.isArray(items)) {\n return <SelectDataComponent {...selectInternalProps} items={items} />;\n } else {\n return <SelectInternalComponent {...selectInternalProps} collection={items} />;\n }\n};\n\nconst SelectDataComponent: FC<Omit<SelectProps, 'items'> & { items: any[] }> = (props) => {\n const { items, ...selectInternalProps } = props;\n const collection = useCollection(items);\n return <SelectInternalComponent {...selectInternalProps} collection={collection} />;\n};\n\nconst SelectInternalComponent: FC<SelectInternalProps> = ({\n className,\n placeholder,\n collection,\n InputComponent = SelectInputComponent,\n autoFocus,\n value,\n onChange,\n}) => {\n const [open, setOpen] = useState(false);\n const [focus, setFocus] = useState(!!autoFocus);\n const stateRef = useRef<AnonymousObject>({});\n const previousValueRef = useRef<Item<any, SelectOptionMeta>>();\n\n const loading = useMemo(() => {\n return collection.status === LoadingStatus.Loading || collection.status === LoadingStatus.PartialLoading;\n }, [collection]);\n\n const delayOpen = useMemo(() => {\n return loading && !open;\n }, [open, loading]);\n\n const [containerRef, setContainerRef] = useState<HTMLElement | null>(null);\n\n const onBlur = useCallback(() => {\n if (!stateRef.current.keepFocus) {\n setFocus(false);\n setOpen(false);\n }\n }, []);\n\n useClickOutside(containerRef, () => {\n onBlur();\n });\n\n const onInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {\n if (!open) {\n setOpen(true);\n }\n collection.search(e.target.value);\n };\n\n const selectedItem = useMemo(() => {\n if (!focus) {\n return toCollectionItem(value, collection.getAdapter());\n } else {\n if (collection.getSearch()) {\n return get(collection, 'items.0');\n } else {\n return toCollectionItem(value, collection.getAdapter());\n }\n }\n }, [collection, value, focus]);\n\n const onSelect: SelectOptionHandler = useCallback(\n (item) => {\n if (onChange) {\n onChange(item.data);\n }\n setOpen(false);\n collection.clearSearch();\n },\n [onChange, collection],\n );\n\n useEffect(() => {\n if (value !== previousValueRef.current) {\n const item = toCollectionItem(value, collection.getAdapter());\n const previousItem = toCollectionItem(previousValueRef.current, collection.getAdapter());\n collection.setMeta(previousItem, 'selected', false);\n collection.setMeta(item, 'selected', true);\n }\n previousValueRef.current = value;\n }, [value, collection]);\n\n return (\n <div\n className={className}\n ref={setContainerRef}\n onClick={() => setFocus(true)}\n onMouseDown={() => (stateRef.current.keepFocus = true)}\n onMouseUp={() => (stateRef.current.keepFocus = false)}\n >\n <InputComponent\n placeholder={placeholder}\n onIconClick={() => !delayOpen && setOpen(!open)}\n open={open && !delayOpen}\n loading={loading}\n onChange={onInputChange}\n value={selectedItem.text}\n focus={focus}\n onFocus={() => setFocus(true)}\n onBlur={onBlur}\n />\n <Dropdown refElement={containerRef} open={open}>\n <SelectOptionsComponent items={collection} onItemClick={onSelect} />\n </Dropdown>\n </div>\n );\n};\n\nexport default SelectComponent;\n","import {\n AlignContentProperty,\n AlignItemsProperty,\n AlignSelfProperty,\n ColumnGapProperty,\n GapProperty,\n JustifyContentProperty,\n JustifySelfProperty,\n PlaceContentProperty,\n PlaceItemsProperty,\n PlaceSelfProperty,\n RowGapProperty,\n} from 'csstype';\nimport { themeFormatter } from '../utils/formatter';\nimport { cssProperty, toCss } from '../utils/style';\nimport { CssProperty, SpacingPropertyTheme, TLength } from './typings';\n\n// flex-start; center; flex-end; space-between; space-around;\nexport const alignContent = cssProperty<AlignContentProperty>('align-content');\n\n// stretch; flex-start; center; flex-end; baseline;\nexport const alignItems = cssProperty<AlignItemsProperty>('align-items');\n\n// auto; flex-start; center; flex-end; stretch;\nexport const alignSelf = cssProperty<AlignSelfProperty>('align-self');\n\n// theme.spacings\nexport const columnGap: CssProperty<SpacingPropertyTheme | ColumnGapProperty<TLength>> = (value, variants = {}) => {\n return toCss('column-gap', themeFormatter('spacings'), value, variants).concat(\n toCss('grid-column-gap', themeFormatter('spacings'), value, variants),\n );\n};\n\n// theme.spacings\nexport const gap: CssProperty<SpacingPropertyTheme | GapProperty<TLength>> = (value, variants = {}) => {\n return toCss('gap', themeFormatter('spacings'), value, variants).concat(\n toCss('grid-gap', themeFormatter('spacings'), value, variants),\n );\n};\n\n// flex-start; center; flex-end; space-between; space-around;\nexport const justifyContent = cssProperty<JustifyContentProperty>('justify-content');\n\nexport const justifySelf = cssProperty<JustifySelfProperty>('justify-self');\n\nexport const placeContent = cssProperty<PlaceContentProperty>('place-content');\n\nexport const placeItems = cssProperty<PlaceItemsProperty>('place-items');\n\nexport const placeSelf = cssProperty<PlaceSelfProperty>('place-self');\n\n// theme.spacings\nexport const rowGap: CssProperty<SpacingPropertyTheme | RowGapProperty<TLength>> = (value, variants = {}) => {\n return toCss('row-gap', themeFormatter('spacings'), value, variants).concat(\n toCss('grid-row-gap', themeFormatter('spacings'), value, variants),\n );\n};\n","import { DisplayProperty, ZoomProperty } from 'csstype';\nimport { css, FlattenInterpolation, ThemeProps } from 'styled-components';\nimport { cssProperty } from '../utils/style';\nimport { CssProperty, Formatter } from './typings';\n\n// row; row-reverse; column; column-reverse\nexport const container: CssProperty<never> = () => {\n let result: FlattenInterpolation<ThemeProps<any>> = css`width: 100%'`;\n ['sm', 'md', 'lg', 'xl'].forEach((media) => {\n result = result.concat(css`\n ${(props) => `@media (min-width: ${props.theme.breakpoints[media]}) {\n max-width: ${props.theme.breakpoints[media]};\n }`}\n `);\n });\n return result;\n};\n\n// none; block; flow-root; inline-block; inline; flex; inline-flex; grid;\n// inline-grid; table; table-caption; table-cell; table-column;\n// table-column-group; table-footer-group; table-header-group; table-row;\nexport const display = cssProperty<DisplayProperty>('display');\n\n// boolean\nconst visibleFormatter: Formatter<boolean> = (value) => (value ? 'visible' : 'hidden');\nexport const visibility = cssProperty<boolean>('visibility', visibleFormatter);\n\nexport const zoom = cssProperty<ZoomProperty>('zoom');\n","import {\n AppearanceProperty,\n CursorProperty,\n OutlineProperty,\n PointerEventsProperty,\n ResizeProperty,\n UserSelectProperty,\n AspectRatioProperty,\n BoxSizingProperty,\n CaretColorProperty,\n OutlineColorProperty,\n OutlineOffsetProperty,\n OutlineStyleProperty,\n OutlineWidthProperty,\n TouchActionProperty,\n} from 'csstype';\nimport { cssProperty } from '../utils/style';\nimport { TLength } from './typings';\nimport { colorFormatter, pxFormatter } from '../utils/formatter';\n\nexport const appearance = cssProperty<AppearanceProperty>('appearance');\n\nexport const aspectRatio = cssProperty<AspectRatioProperty>('aspect-ratio');\n\nexport const boxSizing = cssProperty<BoxSizingProperty>('box-sizing');\n\nexport const caretColor = cssProperty<CaretColorProperty>(null, colorFormatter('caret-color'));\n\nexport const cursor = cssProperty<CursorProperty>('cursor');\n\nexport const outline = cssProperty<OutlineProperty<TLength>>('outline');\n\nexport const outlineColor = cssProperty<OutlineColorProperty>(null, colorFormatter('outline-color'));\n\nexport const outlineOffset = cssProperty<OutlineOffsetProperty<TLength>>('outline-offset');\n\nexport const outlineStyle = cssProperty<OutlineStyleProperty>('outline-style');\n\nexport const outlineWidth = cssProperty<OutlineWidthProperty<TLength>>('outline', pxFormatter);\n\nexport const pointerEvents = cssProperty<PointerEventsProperty>('pointer-events');\n\nexport const resize = cssProperty<ResizeProperty>('resize');\n\nexport const touchAction = cssProperty<TouchActionProperty>('touch-action');\n\nexport const userSelect = cssProperty<UserSelectProperty>('user-select');\n","import {\n BorderCollapseProperty,\n BorderSpacingProperty,\n CaptionSideProperty,\n EmptyCellsProperty,\n TableLayoutProperty,\n VerticalAlignProperty,\n} from 'csstype';\nimport { pxFormatter } from '../utils/formatter';\nimport { cssProperty } from '../utils/style';\nimport { TLength } from './typings';\n\nexport const borderCollapse = cssProperty<BorderCollapseProperty>('border-collapse');\n\nexport const borderSpacing = cssProperty<BorderSpacingProperty<TLength>>('border-spacing', pxFormatter);\n\nexport const captionSide = cssProperty<CaptionSideProperty>('caption-side');\n\nexport const emptyCells = cssProperty<EmptyCellsProperty>('empty-cells');\n\nexport const tableLayout = cssProperty<TableLayoutProperty>('table-layout');\n\nexport const verticalAlign = cssProperty<VerticalAlignProperty<TLength>>('vertical-align');\n","import { css } from 'styled-components';\nimport { alignItems } from '../../styles/alignment';\nimport { backgroundColor } from '../../styles/background';\nimport { borderBottomWidth, borderColor, borderRadius, borderWidth } from '../../styles/border';\nimport { display } from '../../styles/display';\nimport { appearance, cursor, outline } from '../../styles/interactivity';\nimport { height, width } from '../../styles/size';\nimport { margin, marginY, padding, paddingX, paddingY } from '../../styles/spacing';\nimport { verticalAlign } from '../../styles/table';\nimport { transitionDuration, transitionProperty, transitionTimingFunction } from '../../styles/transition';\nimport { ComponentStyle } from '../../styles/typings';\nimport { color } from '../../styles/typography';\nimport { preflight } from '../../utils/style';\nimport { SelectProps } from './typings';\n\nconst selectStyle: ComponentStyle<SelectProps> = () => {\n return css`\n ${preflight()}\n ${width('100%')}\n .o-select-input-container {\n ${marginY(2)}\n ${padding(1)}\n ${backgroundColor('white')}\n ${display('flex')}\n ${borderWidth(1)}\n ${borderColor('gray-200')}\n ${borderRadius('default')}\n &.o-select-input-focus {\n ${borderColor('primary')}\n ${borderWidth(2)}\n }\n }\n .o-select-input {\n ${paddingY(1)}\n ${paddingX(2)}\n ${appearance('none')}\n ${outline('none')}\n ${width('full')}\n ${color('gray-800', { placeholder: 'gray-400' })}\n }\n .o-select-icon-container {\n ${color('primary')}\n ${cursor('pointer')}\n ${width(8)}\n ${paddingY(1)}\n ${paddingX(1)}\n ${display('flex')}\n ${alignItems('center')}\n ${borderColor('gray-200')}\n }\n .o-select-icon {\n ${color('primary')}\n ${cursor('pointer')}\n ${width(4)}\n ${height(4)}\n ${outline('none', { focus: 'none' })}\n ${backgroundColor('transparent')}\n ${padding(0)}\n }\n .o-select-arrow-svg {\n ${display('block')}\n ${verticalAlign('middle')}\n ${margin('px')}\n ${transitionDuration('.5s')}\n ${transitionProperty('all')}\n ${transitionTimingFunction('ease-in-out')}\n }\n .o-select-option {\n ${width('full')}\n ${borderColor('gray-100')}\n ${borderBottomWidth(1)}\n &.o-select-option-clickable {\n ${cursor('pointer')}\n }\n &.o-select-option-hoverable {\n ${backgroundColor('transparent', { hover: 'teal-100' })}\n } \n }\n `;\n};\n\nexport default selectStyle;\n","import styled from 'styled-components';\nimport SelectComponent from './components/SelectComponent';\nimport selectStyle from './style';\n\nconst Select = styled(SelectComponent)`\n ${selectStyle}\n`;\n\nexport default Select;\n\n/*\n<!-- component -->\n<style>\n .top-100 {top: 100%}\n .bottom-100 {bottom: 100%}\n .max-h-select {\n max-height: 300px;\n }\n</style>\n<div class=\"flex flex-col items-center\">\n <div class=\"w-full md:w-1/2 flex flex-col items-center h-64\">\n <div class=\"w-full px-4\">\n <div class=\"flex flex-col items-center relative\">\n <div class=\"w-full\">\n <div class=\"my-2 p-1 bg-white flex border border-gray-200 rounded\">\n <div class=\"flex flex-auto flex-wrap\"></div>\n <input placeholder=\"Search by position\" class=\"p-1 px-2 appearance-none outline-none w-full text-gray-800\">\n <div class=\"text-gray-300 w-8 py-1 pl-2 pr-1 border-l flex items-center border-gray-200\">\n <button class=\"cursor-pointer w-6 h-6 text-gray-600 outline-none focus:outline-none\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"100%\" height=\"100%\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" class=\"feather feather-chevron-up w-4 h-4\">\n <polyline points=\"18 15 12 9 6 15\"></polyline>\n </svg>\n </button>\n </div>\n </div>\n </div>\n <div class=\"absolute shadow bg-white top-100 z-40 w-full lef-0 rounded max-h-select overflow-y-auto svelte-5uyqqj\">\n <div class=\"flex flex-col w-full\">\n <div class=\"cursor-pointer w-full border-gray-100 rounded-t border-b hover:bg-teal-100\">\n <div class=\"flex w-full items-center p-2 pl-2 border-transparent border-l-2 relative hover:border-teal-100\">\n <div class=\"w-6 flex flex-col items-center\">\n <div class=\"flex relative w-5 h-5 bg-orange-500 justify-center items-center m-1 mr-2 w-4 h-4 mt-1 rounded-full \"><img class=\"rounded-full\" alt=\"A\" src=\"https://randomuser.me/api/portraits/men/62.jpg\"> </div>\n </div>\n <div class=\"w-full items-center flex\">\n <div class=\"mx-2 -mt-1 \">Jack jhon\n <div class=\"text-xs truncate w-full normal-case font-normal -mt-1 text-gray-500\">CEO &amp; managin director</div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"cursor-pointer w-full border-gray-100 border-b hover:bg-teal-100\">\n <div class=\"flex w-full items-center p-2 pl-2 border-transparent border-l-2 relative hover:border-teal-100\">\n <div class=\"w-6 flex flex-col items-center\">\n <div class=\"flex relative w-5 h-5 bg-orange-500 justify-center items-center m-1 mr-2 w-4 h-4 mt-1 rounded-full \"><img class=\"rounded-full\" alt=\"A\" src=\"https://randomuser.me/api/portraits/women/62.jpg\"> </div>\n </div>\n <div class=\"w-full items-center flex\">\n <div class=\"mx-2 -mt-1 \">Liza Blue\n <div class=\"text-xs truncate w-full normal-case font-normal -mt-1 text-gray-500\">COO &amp; co-founder</div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"cursor-pointer w-full border-gray-100 border-b hover:bg-teal-100\">\n <div class=\"flex w-full items-center p-2 pl-2 border-transparent border-l-2 relative hover:border-teal-100\">\n <div class=\"w-6 flex flex-col items-center\">\n <div class=\"flex relative w-5 h-5 bg-orange-500 justify-center items-center m-1 mr-2 w-4 h-4 mt-1 rounded-full \"><img class=\"rounded-full\" alt=\"A\" src=\"https://randomuser.me/api/portraits/men/65.jpg\"> </div>\n </div>\n <div class=\"w-full items-center flex\">\n <div class=\"mx-2 -mt-1 w-1/2 \">Brian White\n <div class=\"text-xs truncate w-full normal-case font-normal -mt-1 text-gray-500\">CTO &amp; technical manager</div>\n </div>\n <div class=\"w-1/2 flex\">\n <div class=\"flex justify-center items-center m-1 font-medium py-1 px-2 bg-white rounded-full text-teal-700 bg-teal-100 border border-teal-300 \">\n <div class=\"text-xs font-normal leading-none max-w-full flex-initial\">Hiring!</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"cursor-pointer w-full border-gray-100 rounded-b hover:bg-teal-100\">\n <div class=\"flex w-full items-center p-2 pl-2 border-transparent border-l-2 relative hover:border-teal-100\">\n <div class=\"w-6 flex flex-col items-center\">\n <div class=\"flex relative w-5 h-5 bg-orange-500 justify-center items-center m-1 mr-2 w-4 h-4 mt-1 rounded-full \"><img class=\"rounded-full\" alt=\"A\" src=\"https://randomuser.me/api/portraits/men/85.jpg\"> </div>\n </div>\n <div class=\"w-full items-center flex\">\n <div class=\"mx-2 -mt-1 \">Eric Dripper\n <div class=\"text-xs truncate w-full normal-case font-normal -mt-1 text-gray-500\">CMO &amp; marketing manager</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n</div>\n*/\n","import { ComponentStyle } from '../../styles/typings';\nimport { ListProps } from './typings';\nimport { css } from 'styled-components';\nimport { preflight } from '../../utils/style';\n\nconst listStyle: ComponentStyle<ListProps> = () => {\n return css`\n ${preflight()}\n `;\n};\n\nexport default listStyle;\n","import styled from 'styled-components';\nimport ListComponent from './components/ListComponent';\nimport listStyle from './style';\n\nconst List = styled(ListComponent)`\n ${listStyle}\n`;\n\nexport default List;\n","import { get } from 'onekijs-core';\nimport { deriveColor } from '../utils/color';\nimport { Theme } from './typings';\n\nexport const theme = (customTheme = {}): Theme => {\n const theme: Theme = Object.assign(\n {\n dark: false,\n breakpoints: {\n sm: '640px',\n md: '768px',\n lg: '1024px',\n xl: '1280px',\n },\n colors: {\n transparent: 'transparent',\n current: 'currentColor',\n black: '#000',\n white: '#fff',\n 'gray-100': '#f7fafc',\n 'gray-200': '#edf2f7',\n 'gray-300': '#e2e8f0',\n 'gray-400': '#cbd5e0',\n 'gray-500': '#a0aec0',\n 'gray-600': '#718096',\n 'gray-700': '#4a5568',\n 'gray-800': '#2d3748',\n 'gray-900': '#1a202c',\n 'red-100': '#fff5f5',\n 'red-200': '#fed7d7',\n 'red-300': '#feb2b2',\n 'red-400': '#fc8181',\n 'red-500': '#f56565',\n 'red-600': '#e53e3e',\n 'red-700': '#c53030',\n 'red-800': '#9b2c2c',\n 'red-900': '#742a2a',\n 'orange-100': '#fffaf0',\n 'orange-200': '#feebc8',\n 'orange-300': '#fbd38d',\n 'orange-400': '#f6ad55',\n 'orange-500': '#ed8936',\n 'orange-600': '#dd6b20',\n 'orange-700': '#c05621',\n 'orange-800': '#9c4221',\n 'orange-900': '#7b341e',\n 'yellow-100': '#fffff0',\n 'yellow-200': '#fefcbf',\n 'yellow-300': '#faf089',\n 'yellow-400': '#f6e05e',\n 'yellow-500': '#ecc94b',\n 'yellow-600': '#d69e2e',\n 'yellow-700': '#b7791f',\n 'yellow-800': '#975a16',\n 'yellow-900': '#744210',\n 'green-100': '#f0fff4',\n 'green-200': '#c6f6d5',\n 'green-300': '#9ae6b4',\n 'green-400': '#68d391',\n 'green-500': '#48bb78',\n 'green-600': '#38a169',\n 'green-700': '#2f855a',\n 'green-800': '#276749',\n 'green-900': '#22543d',\n 'teal-100': '#e6fffa',\n 'teal-200': '#b2f5ea',\n 'teal-300': '#81e6d9',\n 'teal-400': '#4fd1c5',\n 'teal-500': '#38b2ac',\n 'teal-600': '#319795',\n 'teal-700': '#2c7a7b',\n 'teal-800': '#285e61',\n 'teal-900': '#234e52',\n 'blue-100': '#ebf8ff',\n 'blue-200': '#bee3f8',\n 'blue-300': '#90cdf4',\n 'blue-400': '#63b3ed',\n 'blue-500': '#4299e1',\n 'blue-600': '#3182ce',\n 'blue-700': '#2b6cb0',\n 'blue-800': '#2c5282',\n 'blue-900': '#2a4365',\n 'indigo-100': '#ebf4ff',\n 'indigo-200': '#c3dafe',\n 'indigo-300': '#a3bffa',\n 'indigo-400': '#7f9cf5',\n 'indigo-500': '#667eea',\n 'indigo-600': '#5a67d8',\n 'indigo-700': '#4c51bf',\n 'indigo-800': '#434190',\n 'indigo-900': '#3c366b',\n 'purple-100': '#faf5ff',\n 'purple-200': '#e9d8fd',\n 'purple-300': '#d6bcfa',\n 'purple-400': '#b794f4',\n 'purple-500': '#9f7aea',\n 'purple-600': '#805ad5',\n 'purple-700': '#6b46c1',\n 'purple-800': '#553c9a',\n 'purple-900': '#44337a',\n 'pink-100': '#fff5f7',\n 'pink-200': '#fed7e2',\n 'pink-300': '#fbb6ce',\n 'pink-400': '#f687b3',\n 'pink-500': '#ed64a6',\n 'pink-600': '#d53f8c',\n 'pink-700': '#b83280',\n 'pink-800': '#97266d',\n 'pink-900': '#702459',\n },\n font: {\n families: {\n sans:\n 'system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, \"Noto Sans\", sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"',\n serif: 'Georgia, Cambria, \"Times New Roman\", Times, serif',\n mono: 'Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace',\n },\n lineHeights: {\n none: 1,\n tight: 1.25,\n snug: 1.375,\n normal: 1.5,\n relaxed: 1.625,\n loose: 2,\n 3: '.75rem',\n 4: '1rem',\n 5: '1.25rem',\n 6: '1.5rem',\n 7: '1.75rem',\n 8: '2rem',\n 9: '2.25rem',\n 10: '2.5rem',\n },\n sizes: {\n xs: '.75rem',\n sm: '.875rem',\n base: '1rem',\n lg: '1.125rem',\n xl: '1.25rem',\n '2xl': '1.5rem',\n '3xl': '1.875rem',\n '4xl': '2.25rem',\n '5xl': '3rem',\n '6xl': '4rem',\n },\n spacings: {\n tighte: '-0.05em',\n tight: '-0.025em',\n normal: 0,\n wide: '0.025em',\n wider: '0.05em',\n widest: '0.1em',\n },\n weights: {\n hairline: 100,\n thin: 200,\n light: 300,\n normal: 400,\n medium: 500,\n semibold: 600,\n bold: 700,\n extrabold: 800,\n black: 900,\n },\n },\n kind: {\n primary: 'blue-500',\n danger: 'red-500',\n success: 'green-500',\n warning: 'orange-500',\n secondary: 'gray-500',\n },\n radius: {\n none: '0',\n sm: '0.125rem',\n default: '0.25rem',\n md: '0.375rem',\n lg: '0.5rem',\n full: '9999px',\n },\n shadow: {\n xs: '0 0 0 1px rgba(0, 0, 0, 0.05)',\n sm: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',\n default: '0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)',\n md: ' 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',\n lg: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',\n xl: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',\n '2xl': '0 25px 50px -12px rgba(0, 0, 0, 0.25)',\n inner: 'inset 0 2px 4px 0 rgba(0, 0, 0, 0.06)',\n outline: '0 0 0 3px rgba(66, 153, 225, 0.5)',\n none: 'none',\n },\n spacings: {\n 0: '0',\n 1: '0.25rem',\n 2: '0.5rem',\n 3: '0.75rem',\n 4: '1rem',\n 5: '1.25rem',\n 6: '1.5rem',\n 8: '2rem',\n 10: '2.5rem',\n 12: '3rem',\n 16: '4rem',\n 20: '5rem',\n 24: '6rem',\n 32: '8rem',\n 40: '10rem',\n 48: '12rem',\n 56: '14rem',\n 64: '16rem',\n px: '1px',\n },\n sizes: {\n 0: '0',\n 1: '0.25rem',\n 2: '0.5rem',\n 3: '0.75rem',\n 4: '1rem',\n 5: '1.25rem',\n 6: '1.5rem',\n 8: '2rem',\n 10: '2.5rem',\n 12: '3rem',\n 16: '4rem',\n 20: '5rem',\n 24: '6rem',\n 32: '8rem',\n 40: '10rem',\n 48: '12rem',\n 56: '14rem',\n 64: '16rem',\n px: '1px',\n xs: '20rem',\n sm: '24rem',\n md: '28rem',\n lg: '32rem',\n xl: '36rem',\n '2xl': '42rem',\n '3xl': '48rem',\n '4xl': '56rem',\n '5xl': '64rem',\n '6xl': '72rem',\n 'screen-sm': '640px',\n 'screen-md': '768px',\n 'screen-lg': '1024px',\n 'screen-xl': '1280px',\n },\n\n button: {},\n },\n customTheme,\n );\n\n Object.keys(theme.kind).forEach((kind) => {\n theme.button[kind] = {\n backgroundColor: get(theme, `button.${kind}.backgroundColor`, theme.kind[kind]),\n color: get(theme, `button.${kind}.color`, 'white'),\n fontWeight: get(theme, `button.${kind}.fontWeight`, 'bold'),\n paddingY: get(theme, `button.${kind}.paddingY`, 2),\n paddingX: get(theme, `button.${kind}.paddingX`, 4),\n };\n });\n\n Object.keys(theme.kind).forEach((kind) => {\n theme.button[kind].hoverBackgroundColor = get(\n theme,\n `button.${kind}.hoverBackgroundColor`,\n deriveColor(theme.button[kind].backgroundColor, 200, theme.dark),\n );\n });\n\n return theme;\n};\n","import {\n AnimationDirectionProperty,\n AnimationFillModeProperty,\n AnimationIterationCountProperty,\n AnimationNameProperty,\n AnimationProperty,\n AnimationTimingFunctionProperty,\n GlobalsString,\n} from 'csstype';\nimport { cssProperty } from '../utils/style';\n\nexport const animation = cssProperty<AnimationProperty>('animation');\nexport const animationDelay = cssProperty<GlobalsString>('animation-delay');\nexport const animationDirection = cssProperty<AnimationDirectionProperty>('animation-direction');\nexport const animationDuration = cssProperty<GlobalsString>('animation-duration');\nexport const animationFillMode = cssProperty<AnimationFillModeProperty>('animation-fill-mode');\nexport const animationIterationCount = cssProperty<AnimationIterationCountProperty>('animation-iteration-count');\nexport const animationName = cssProperty<AnimationNameProperty>('animation-name');\nexport const animationPlayState = cssProperty<AnimationPlayState>('animation-play-state');\nexport const animationTimingFunction = cssProperty<AnimationTimingFunctionProperty>('animation-timing-function');\n","import { FlexBasisProperty, FlexDirectionProperty, FlexProperty, FlexWrapProperty, Globals } from 'csstype';\nimport { booleanFormatter, enumFormatter } from '../utils/formatter';\nimport { cssProperty } from '../utils/style';\nimport { TLength } from './typings';\n\n// initial; 1; auto; none;\nconst flexValues = {\n initial: '0 1 auto',\n 1: '1 1 0%',\n auto: '1 1 auto',\n none: 'none',\n};\nconst flexFormatter = enumFormatter<FlexProperty<TLength>>(flexValues);\nexport const flex = cssProperty<FlexProperty<TLength>>('flex', flexFormatter);\n\n// row; row-reverse; column; column-reverse\nexport const flexBasis = cssProperty<FlexBasisProperty<TLength>>('flex-basic');\n\n// row; row-reverse; column; column-reverse\nexport const flexDirection = cssProperty<FlexDirectionProperty>('flex-direction');\n\n// true; false\nexport const flexGrow = cssProperty<boolean>('flex-grow', booleanFormatter);\n\n// true; false\nexport const flexShrink = cssProperty<boolean>('flex-shrink', booleanFormatter);\n\n// nowrap; wrap; wrap-reverse;\nexport const flexWrap = cssProperty<FlexWrapProperty>('flex-wrap');\n\n// first; last; none; 1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12\nconst orderValues = {\n first: '-9999',\n last: '9999',\n none: '0',\n};\nconst orderFormatter = enumFormatter<Globals | number | 'first' | 'last' | 'none'>(orderValues);\nexport const order = cssProperty<Globals | number | 'first' | 'last' | 'none'>('order', orderFormatter);\n","import { BreakAfterProperty, BreakBeforeProperty, BreakInsideProperty, GlobalsNumber } from 'csstype';\nimport { cssProperty } from '../utils/style';\n\nexport const breakAfter = cssProperty<BreakAfterProperty>('break-after');\n\nexport const breakBefore = cssProperty<BreakBeforeProperty>('break-before');\n\nexport const breakInside = cssProperty<BreakInsideProperty>('break-inside');\n\nexport const orphans = cssProperty<GlobalsNumber>('orphans');\n\nexport const widows = cssProperty<GlobalsNumber>('widows');\n","import {\n ColumnCountProperty,\n ColumnFillProperty,\n ColumnRuleColorProperty,\n ColumnRuleProperty,\n ColumnRuleStyleProperty,\n ColumnRuleWidthProperty,\n ColumnSpanProperty,\n ColumnsProperty,\n ColumnWidthProperty,\n GridAutoColumnsProperty,\n GridAutoFlowProperty,\n GridAutoRowsProperty,\n GridColumnEndProperty,\n GridColumnProperty,\n GridColumnStartProperty,\n GridProperty,\n GridRowEndProperty,\n GridRowProperty,\n GridRowStartProperty,\n GridTemplateAreasProperty,\n GridTemplateColumnsProperty,\n GridTemplateProperty,\n GridTemplateRowsProperty,\n} from 'csstype';\nimport { colorFormatter, pxFormatter } from '../utils/formatter';\nimport { cssProperty } from '../utils/style';\nimport { columnGap, gap, rowGap } from './alignment';\nimport { ColorPropertyTheme, TLength } from './typings';\n\nexport const columnCount = cssProperty<ColumnCountProperty>('column-count');\n\nexport const columnFill = cssProperty<ColumnFillProperty>('column-fill');\n\nexport const columnRule = cssProperty<ColumnRuleProperty<TLength>>('column-rule');\n\nexport const columnRuleColor = cssProperty<ColorPropertyTheme | ColumnRuleColorProperty>(\n null,\n colorFormatter('column-rule-color'),\n);\n\nexport const columnRuleStyle = cssProperty<ColumnRuleStyleProperty>('column-rule-style');\n\nexport const columnRuleWidth = cssProperty<ColumnRuleWidthProperty<TLength>>('column-rule-width', pxFormatter);\n\nexport const columnSpan = cssProperty<ColumnSpanProperty>('column-span');\n\nexport const columnWidth = cssProperty<ColumnWidthProperty<TLength>>('column-width', pxFormatter);\n\nexport const columns = cssProperty<ColumnsProperty<TLength>>('columns');\n\nexport const grid = cssProperty<GridProperty>('grid');\n\nexport const gridAutoColumns = cssProperty<GridAutoColumnsProperty<TLength>>('grid-auto-columns');\n\nexport const gridAutoFlow = cssProperty<GridAutoFlowProperty>('grid-auto-flow');\n\nexport const gridAutoRows = cssProperty<GridAutoRowsProperty<TLength>>('grid-auto-rows');\n\nexport const gridColumn = cssProperty<GridColumnProperty>('grid-column');\n\nexport const gridColumnEnd = cssProperty<GridColumnEndProperty>('grid-column-start');\n\nexport const gridColumnGap = columnGap;\n\nexport const gridColumnStart = cssProperty<GridColumnStartProperty>('grid-column-start');\n\nexport const gridGap = gap;\n\nexport const gridRow = cssProperty<GridRowProperty>('grid-row');\n\nexport const gridRowEnd = cssProperty<GridRowEndProperty>('grid-row-end');\n\nexport const gridRowGap = rowGap;\n\nexport const gridRowStart = cssProperty<GridRowStartProperty>('grid-row-start');\n\nexport const gridTemplate = cssProperty<GridTemplateProperty>('grid-template');\n\nexport const gridTemplateAreas = cssProperty<GridTemplateAreasProperty>('grid-template-areas');\n\nexport const gridTemplateColumns = cssProperty<GridTemplateColumnsProperty<TLength>>('grid-template-columns');\n\nexport const gridTemplateRows = cssProperty<GridTemplateRowsProperty<TLength>>('grid-template-rows');\n","import { cssProperty } from '../utils/style';\nimport { ObjectFitProperty, ObjectPositionProperty, ImageRenderingProperty } from 'csstype';\nimport { TLength } from './typings';\n\nexport const imageRendering = cssProperty<ImageRenderingProperty>('image-rendering');\n\n// contain; cover; fill; none; scale-down;\nexport const objectFit = cssProperty<ObjectFitProperty>('object-fit');\n\n// bottom; center; left; right; top; left-bottom; right-bottom; left-top; right-top;\nexport const objectPosition = cssProperty<ObjectPositionProperty<TLength>>('object-position');\n","import { ListStyleImageProperty, ListStylePositionProperty, ListStyleProperty, ListStyleTypeProperty } from 'csstype';\nimport { cssProperty } from '../utils/style';\n\nexport const listStyle = cssProperty<ListStyleProperty>('list-style');\n\nexport const listStyleImage = cssProperty<ListStyleImageProperty>('list-style-image');\n\n// inside; outside\nexport const listStylePosition = cssProperty<ListStylePositionProperty>('list-style-position');\n\n// disc; circle; square; decimal; georgian; cjk-ideographic; kannada; any string\nexport const listStyleType = cssProperty<ListStyleTypeProperty>('list-style-type');\n","import { ClearProperty, FloatProperty, LeftProperty, PositionProperty, RightProperty, TopProperty } from 'csstype';\nimport { cssProperty } from '../utils/style';\nimport { TLength } from './typings';\n\n// left; right; both; none;\nexport const clear = cssProperty<ClearProperty>('clear');\n\n// right; left; none;\nexport const float = cssProperty<FloatProperty>('float');\n\n// integer\nexport const left = cssProperty<LeftProperty<TLength>>('left');\n\n// static; fixed; absolute; relative; sticky;\nexport const position = cssProperty<PositionProperty>('position');\n\n// integer\nexport const right = cssProperty<RightProperty<TLength>>('right');\n\n// integer\nexport const top = cssProperty<TopProperty<TLength>>('top');\n\n// auto or integer\nexport const zIndex = cssProperty('z-index');\n","import { cssProperty } from '../utils/style';\nimport { FillProperty, StrokeProperty, StrokeWidthProperty } from 'csstype';\nimport { TLength } from './typings';\n\nexport const fill = cssProperty<FillProperty>('fill');\n\nexport const stroke = cssProperty<StrokeProperty>('stroke');\n\nexport const strokeWidth = cssProperty<StrokeWidthProperty<TLength>>('stroke-width');\n","import {\n PerspectiveOriginProperty,\n PerspectiveProperty,\n RotateProperty,\n ScaleProperty,\n TransformOriginProperty,\n TransformProperty,\n} from 'csstype';\nimport { cssProperty } from '../utils/style';\nimport { TLength } from './typings';\n\nexport const perspective = cssProperty<PerspectiveProperty<TLength>>('perspective');\n\nexport const perspectiveOrigin = cssProperty<PerspectiveOriginProperty<TLength>>('perspective-origin');\n\nexport const rotate = cssProperty<RotateProperty>('rotate');\n\nexport const scale = cssProperty<ScaleProperty>('scale');\n\nexport const transform = cssProperty<TransformProperty>('transform');\n\nexport const transformOrigin = cssProperty<TransformOriginProperty<TLength>>('transform-origin');\n"],"names":["ButtonComponent","props","React","deriveColor","color","gap","dark","newColorValue","split","colorValue","weight","undefined","parseInt","hexToRgb","hex","shorthandRegex","replace","_m","r","g","b","result","exec","rgbToHex","toString","slice","booleanFormatter","value","themeFormatter","category","theme","get","String","colorFormatter","key","opacityKey","Object","keys","kind","includes","rgb","enumFormatter","values","pxFormatter","formatValue","formatter","isPseudoClass","candidate","isPseudoElement","toCss","property","variants","css","responsives","all","sm","md","lg","xl","forEach","variant","media","substring","pseudo","lcfirst","length","concat","breakpoints","toKebabCase","cssProperty","preflight","addClassname","classname","existing","after","backgroundColor","backgroundAttachment","backgroundClip","backgroundImage","backgroundOpacity","backgroundOrigin","backgroundPosition","backgroundRepeat","backgroundSize","padding","paddingY","paddingX","paddingLeft","paddingRight","paddingTop","paddingBottom","margin","marginY","marginX","marginLeft","marginRight","marginTop","marginBottom","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontOpticalSizing","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontSynthesis","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontVariationSettings","fontWeight","hyphens","letterSpacing","lineHeight","lineHeightStep","overflowWrap","textAlign","textDecoration","textDecorationColor","textDecorationLine","textDecorationStyle","textDecorationThickness","textEmphasis","textEmphasisColor","textEmphasisPosition","textEmphasisStyle","textIdent","textJustify","textOpacity","textOverflow","textTransform","textShadow","textUnderlineOffset","textUnderlinePosition","whiteSpace","wordBreakFormatter","wordBreak","wordSpacing","buttonStyle","t","button","hover","hoverBackgroundColor","Button","styled","useClickOutside","ref","onClickOutside","useEffect","handleClickOutside","event","element","HTMLElement","current","contains","target","document","addEventListener","removeEventListener","refWidth","type","name","enabled","phase","requires","fn","state","styles","popper","width","rects","reference","effect","elements","style","getBoundingClientRect","sameWidthPopperModifier","minWidthPopperModifier","maxWidthPopperModifier","DropdownComponent","className","refElement","open","children","useState","popperElement","setPopperElement","usePopper","modifiers","attributes","CSSTransition","timeout","classNames","mountOnEnter","appear","unmountOnExit","sizeFormatter","console","log","sizes","map","x","time","div","widthFormatter","heightFormatter","minWidth","maxWidth","height","minHeight","maxHeight","overscrollBehavior","overscrollBehaviorBlock","overscrollBehaviorInline","overscrollBehaviorX","overscrollBehaviorY","border","borderTop","borderBottom","borderLeft","borderRight","borderColor","borderTopColor","borderBottomColor","borderLeftColor","borderRightColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderOpacity","borderTopOpacity","borderBottomOpacity","borderLeftOpacity","borderRightOpacity","borderRadius","borderTopLeftRadius","borderBottomRadius","borderLeftRadius","borderRightRadius","borderStyle","borderTopStyle","borderBottomStyle","borderLeftStyle","borderRightStyle","borderWidth","borderTopWidth","borderBottomWidth","borderLeftWidth","borderRightWidth","boxShadow","overflow","overflowBlock","overflowInline","overflowX","overflowY","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","opacity","dropdownStyle","Dropdown","IconComponent","viewBox","xmlns","cx","cy","iconKeyFrame","keyframes","iconCircleKeyFrame","SelectIconComponent","onIconClick","loading","onClick","fill","stroke","strokeWidth","strokeLinecap","strokeLinejoin","transform","points","LoadingIcon","SelectInputComponent","placeholder","onFocus","onBlur","onChange","focus","inputRef","useRef","partialValueRef","proxifyRef","proxyValue","handleChange","useCallback","e","input","currentSelectionStart","selectionStart","currentSelectionEnd","selectionEnd","handleKeyDown","keyCode","useIsomorphicLayoutEffect","startsWith","setSelectionRange","useMemo","push","join","onKeyDown","ListItemComponent","memo","item","data","meta","loadingStatus","LoadingStatus","Loading","text","displayName","emptyListItem","canFetchMore","collection","isCollection","status","PartialLoaded","getListStatus","Loaded","StandardListComponent","ItemComponent","onItemClick","onItemMouseOver","items","NotInitialized","load","index","onMouseOver","defaultHeight","defaultItemHeight","defaultPreload","defaultIncrement","VirtualistComponent","itemHeight","preload","increment","parentRef","estimatedItemHeight","Array","toCollectionItem","getAdapter","useVirtual","size","estimateSize","totalSize","virtualItems","scrollToIndex","offset","getOffset","firstVirualItem","firstVirualItemIndex","Deprecated","lastVirtualItem","lastVirtualItemIndex","position","measureRef","start","listItem","top","left","ListComponent","listInternalProps","isArray","ListDataComponent","ListInternalComponent","useCollection","standardProps","omit","SelectOptionComponent","content","clickable","hoverable","selected","SelectOptionsComponent","listProps","SelectComponent","selectInternalProps","SelectDataComponent","SelectInternalComponent","InputComponent","autoFocus","setOpen","setFocus","stateRef","previousValueRef","PartialLoading","delayOpen","containerRef","setContainerRef","keepFocus","onInputChange","search","selectedItem","getSearch","onSelect","clearSearch","previousItem","setMeta","onMouseDown","onMouseUp","alignContent","alignItems","alignSelf","columnGap","justifyContent","justifySelf","placeContent","placeItems","placeSelf","rowGap","container","display","visibleFormatter","visibility","zoom","appearance","aspectRatio","boxSizing","caretColor","cursor","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","pointerEvents","resize","touchAction","userSelect","borderCollapse","borderSpacing","captionSide","emptyCells","tableLayout","verticalAlign","selectStyle","Select","listStyle","List","customTheme","assign","colors","transparent","black","white","families","sans","serif","mono","lineHeights","none","tight","snug","normal","relaxed","loose","xs","base","spacings","tighte","wide","wider","widest","weights","hairline","thin","light","medium","semibold","bold","extrabold","primary","danger","success","warning","secondary","radius","full","shadow","inner","px","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","flexValues","initial","auto","flexFormatter","flex","flexBasis","flexDirection","flexGrow","flexShrink","flexWrap","orderValues","first","last","orderFormatter","order","breakAfter","breakBefore","breakInside","orphans","widows","columnCount","columnFill","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","grid","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","imageRendering","objectFit","objectPosition","listStyleImage","listStylePosition","listStyleType","clear","float","right","zIndex","perspective","perspectiveOrigin","rotate","scale","transformOrigin"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG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A+B,cAA/B,CAA/B;;ICGMif,WAAW,gBAAGjf,WAAW,CAA+B,aAA/B,CAA/B;AAEP,IAAakf,iBAAiB,gBAAGlf,WAAW,CAAqC,oBAArC,CAArC;AAEP,IAAamf,MAAM,gBAAGnf,WAAW,CAAiB,QAAjB,CAA1B;AAEP,IAAaof,KAAK,gBAAGpf,WAAW,CAAgB,OAAhB,CAAzB;AAEP,IAAa6N,SAAS,gBAAG7N,WAAW,CAAoB,WAApB,CAA7B;AAEP,IAAaqf,eAAe,gBAAGrf,WAAW,CAAmC,kBAAnC,CAAnC;;;;"}
@@ -1,2 +0,0 @@
1
- import { Theme } from './typings';
2
- export declare const theme: (customTheme?: {}) => Theme;
package/jest.config.js DELETED
@@ -1,188 +0,0 @@
1
- // For a detailed explanation regarding each configuration property, visit:
2
- // https://jestjs.io/docs/en/configuration.html
3
-
4
- module.exports = {
5
- // All imported modules in your tests should be mocked automatically
6
- // automock: false,
7
-
8
- // Stop running tests after `n` failures
9
- // bail: 0,
10
-
11
- // Respect "browser" field in package.json when resolving modules
12
- // browser: false,
13
-
14
- // The directory where Jest should store its cached dependency information
15
- // cacheDirectory: "/tmp/jest_rs",
16
-
17
- // Automatically clear mock calls and instances between every test
18
- clearMocks: true,
19
-
20
- // Indicates whether the coverage information should be collected while executing the test
21
- // collectCoverage: false,
22
-
23
- // An array of glob patterns indicating a set of files for which coverage information should be collected
24
- // collectCoverageFrom: null,
25
-
26
- // The directory where Jest should output its coverage files
27
- // coverageDirectory: null,
28
-
29
- // An array of regexp pattern strings used to skip coverage collection
30
- // coveragePathIgnorePatterns: [
31
- // "/node_modules/"
32
- // ],
33
-
34
- // A list of reporter names that Jest uses when writing coverage reports
35
- // coverageReporters: [
36
- // "json",
37
- // "text",
38
- // "lcov",
39
- // "clover"
40
- // ],
41
-
42
- // An object that configures minimum threshold enforcement for coverage results
43
- // coverageThreshold: null,
44
-
45
- // A path to a custom dependency extractor
46
- // dependencyExtractor: null,
47
-
48
- // Make calling deprecated APIs throw helpful error messages
49
- // errorOnDeprecated: false,
50
-
51
- // Force coverage collection from ignored files using an array of glob patterns
52
- // forceCoverageMatch: [],
53
-
54
- // A path to a module which exports an async function that is triggered once before all test suites
55
- // globalSetup: null,
56
-
57
- // A path to a module which exports an async function that is triggered once after all test suites
58
- // globalTeardown: null,
59
-
60
- // A set of global variables that need to be available in all test environments
61
- // globals: {},
62
-
63
- // The maximum amount of workers used to run your tests. Can be specified as % or a number. E.g. maxWorkers: 10% will use 10% of your CPU amount + 1 as the maximum worker number. maxWorkers: 2 will use a maximum of 2 workers.
64
- // maxWorkers: "50%",
65
-
66
- // An array of directory names to be searched recursively up from the requiring module's location
67
- // moduleDirectories: [
68
- // "node_modules"
69
- // ],
70
-
71
- // An array of file extensions your modules use
72
- // moduleFileExtensions: [
73
- // "js",
74
- // "json",
75
- // "jsx",
76
- // "ts",
77
- // "tsx",
78
- // "node"
79
- // ],
80
-
81
- // A map from regular expressions to module names that allow to stub out resources with a single module
82
- // moduleNameMapper: {},
83
-
84
- // An array of regexp pattern strings, matched against all module paths before considered 'visible' to the module loader
85
- // modulePathIgnorePatterns: [],
86
-
87
- // Activates notifications for test results
88
- // notify: false,
89
-
90
- // An enum that specifies notification mode. Requires { notify: true }
91
- // notifyMode: "failure-change",
92
-
93
- // A preset that is used as a base for Jest's configuration
94
- // preset: null,
95
-
96
- // Run tests from one or more projects
97
- // projects: null,
98
-
99
- // Use this configuration option to add custom reporters to Jest
100
- // reporters: undefined,
101
-
102
- // Automatically reset mock state between every test
103
- // resetMocks: false,
104
-
105
- // Reset the module registry before running each individual test
106
- // resetModules: false,
107
-
108
- // A path to a custom resolver
109
- // resolver: null,
110
-
111
- // Automatically restore mock state between every test
112
- // restoreMocks: false,
113
-
114
- // The root directory that Jest should scan for tests and modules within
115
- // rootDir: null,
116
-
117
- // A list of paths to directories that Jest should use to search for files in
118
- // roots: [
119
- // "<rootDir>"
120
- // ],
121
-
122
- // Allows you to use a custom runner instead of Jest's default test runner
123
- // runner: "jest-runner",
124
-
125
- // The paths to modules that run some code to configure or set up the testing environment before each test
126
- setupFiles: ['./src/__tests__/setup.ts'],
127
-
128
- // A list of paths to modules that run some code to configure or set up the testing framework before each test
129
- setupFilesAfterEnv: ['./src/__tests__/setupTests.ts'],
130
-
131
- // A list of paths to snapshot serializer modules Jest should use for snapshot testing
132
- // snapshotSerializers: [],
133
-
134
- // The test environment that will be used for testing
135
- testEnvironment: 'jest-environment-jsdom-fourteen',
136
-
137
- // Options that will be passed to the testEnvironment
138
- // testEnvironmentOptions: {},
139
-
140
- // Adds a location field to test results
141
- // testLocationInResults: false,
142
-
143
- // The glob patterns Jest uses to detect test files
144
- // testMatch: [
145
- // "**/__tests__/**/*.[jt]s?(x)",
146
- // "**/?(*.)+(spec|test).[tj]s?(x)"
147
- // ],
148
-
149
- // An array of regexp pattern strings that are matched against all test paths, matched tests are skipped
150
- // testPathIgnorePatterns: [
151
- // "/node_modules/"
152
- // ],
153
-
154
- // The regexp pattern or array of patterns that Jest uses to detect test files
155
- // testRegex: [],
156
-
157
- // This option allows the use of a custom results processor
158
- // testResultsProcessor: null,
159
-
160
- // This option allows use of a custom test runner
161
- // testRunner: "jasmine2",
162
-
163
- // This option sets the URL for the jsdom environment. It is reflected in properties such as location.href
164
- testURL: 'http://localhost',
165
-
166
- // Setting this value to "fake" allows the use of fake timers for functions such as "setTimeout"
167
- // timers: "real",
168
-
169
- // A map from regular expressions to paths to transformers
170
- // transform: null,
171
-
172
- // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
173
- // transformIgnorePatterns: [
174
- // "/node_modules/"
175
- // ],
176
-
177
- // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
178
- // unmockedModulePathPatterns: undefined,
179
-
180
- // Indicates whether each individual test should be reported during the run
181
- // verbose: null,
182
-
183
- // An array of regexp patterns that are matched against all source file paths before re-running tests in watch mode
184
- // watchPathIgnorePatterns: [],
185
-
186
- // Whether to use watchman for file crawling
187
- // watchman: true,
188
- };
package/postcss.config.js DELETED
@@ -1,3 +0,0 @@
1
- module.exports = {
2
- plugins: [require('tailwindcss')],
3
- };