@chotot/clad-ui 3.0.0-next.3 → 3.0.0-next.4

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 (541) hide show
  1. package/CHANGELOG.md +675 -0
  2. package/README.md +156 -156
  3. package/dist/brand/ChototLogoText.d.ts +5 -0
  4. package/dist/brand/CtC2C.d.ts +5 -0
  5. package/dist/brand/CtProperty.d.ts +5 -0
  6. package/dist/brand/CtVehicle.d.ts +5 -0
  7. package/dist/brand/Tot.d.ts +5 -0
  8. package/dist/brand/index.d.ts +5 -0
  9. package/dist/chunk-Bmb41Sf3.cjs +1 -0
  10. package/dist/clad-ui.cjs +2 -0
  11. package/dist/clad-ui.d.ts +2 -0
  12. package/dist/clad-ui.es.js +9000 -4224
  13. package/dist/components/Announcer/Announcer.d.ts +3 -54
  14. package/dist/components/Announcer/announcer.styles.d.ts +39 -0
  15. package/dist/components/Announcer/index.d.ts +2 -0
  16. package/dist/components/Announcer/types.d.ts +41 -0
  17. package/dist/components/Badge/Badge.d.ts +2 -44
  18. package/dist/components/Badge/badge.styles.d.ts +57 -0
  19. package/dist/components/Badge/index.d.ts +4 -0
  20. package/dist/components/Badge/types.d.ts +33 -0
  21. package/dist/components/Box/Box.d.ts +7 -99
  22. package/dist/components/Box/index.d.ts +2 -0
  23. package/dist/components/Box/types.d.ts +89 -0
  24. package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts +3 -5
  25. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +3 -17
  26. package/dist/components/Breadcrumbs/breadcrumbs.styles.d.ts +2 -0
  27. package/dist/components/Breadcrumbs/index.d.ts +3 -0
  28. package/dist/components/Breadcrumbs/types.d.ts +18 -0
  29. package/dist/components/Button/Button.d.ts +3 -76
  30. package/dist/components/Button/ButtonLink.d.ts +2 -3
  31. package/dist/components/Button/GhostButton.d.ts +3 -47
  32. package/dist/components/Button/IconButton.d.ts +2 -10
  33. package/dist/components/Button/button.styles.d.ts +242 -0
  34. package/dist/components/Button/constant.d.ts +1 -2
  35. package/dist/components/Button/index.d.ts +5 -0
  36. package/dist/components/Button/types.d.ts +72 -0
  37. package/dist/components/Checkbox/Checkbox.d.ts +3 -46
  38. package/dist/components/Checkbox/checkbox.styles.d.ts +27 -0
  39. package/dist/components/Checkbox/index.d.ts +2 -0
  40. package/dist/components/Checkbox/types.d.ts +40 -0
  41. package/dist/components/Chip/Chip.d.ts +3 -70
  42. package/dist/components/Chip/chip.styles.d.ts +66 -0
  43. package/dist/components/Chip/index.d.ts +2 -0
  44. package/dist/components/Chip/types.d.ts +22 -0
  45. package/dist/components/CurrencyInput/CurrencyInput.d.ts +3 -39
  46. package/dist/components/CurrencyInput/currency-input.styles.d.ts +21 -0
  47. package/dist/components/CurrencyInput/index.d.ts +5 -0
  48. package/dist/components/CurrencyInput/types.d.ts +96 -0
  49. package/dist/components/CurrencyInput/utils.d.ts +18 -0
  50. package/dist/components/DatePicker/DatePicker.d.ts +2 -138
  51. package/dist/components/DatePicker/DateTimePicker.d.ts +2 -137
  52. package/dist/components/DatePicker/date-picker.styles.d.ts +9 -0
  53. package/dist/components/DatePicker/date-time-picker.styles.d.ts +10 -0
  54. package/dist/components/DatePicker/index.d.ts +4 -0
  55. package/dist/components/DatePicker/types.d.ts +286 -0
  56. package/dist/components/Drawer/Drawer.d.ts +36 -0
  57. package/dist/components/Drawer/Drawer.pw.fixtures.d.ts +9 -0
  58. package/dist/components/Drawer/index.d.ts +3 -0
  59. package/dist/components/Drawer/types.d.ts +191 -0
  60. package/dist/components/Dropdown/Dropdown.d.ts +3 -94
  61. package/dist/components/Dropdown/dropdown.styles.d.ts +18 -0
  62. package/dist/components/Dropdown/index.d.ts +4 -0
  63. package/dist/components/Dropdown/types.d.ts +89 -0
  64. package/dist/components/EmptyState/EmptyState.d.ts +4 -0
  65. package/dist/components/EmptyState/empty-state.styles.d.ts +3 -0
  66. package/dist/components/EmptyState/index.d.ts +2 -0
  67. package/dist/components/EmptyState/types.d.ts +55 -0
  68. package/dist/components/Grid/Col.d.ts +4 -35
  69. package/dist/components/Grid/Grid.d.ts +8 -55
  70. package/dist/components/Grid/Grid.pw.fixtures.d.ts +3 -0
  71. package/dist/components/Grid/index.d.ts +3 -0
  72. package/dist/components/Grid/types.d.ts +66 -0
  73. package/dist/components/Input/Input.d.ts +3 -116
  74. package/dist/components/Input/index.d.ts +2 -0
  75. package/dist/components/Input/input.styles.d.ts +24 -0
  76. package/dist/components/Input/types.d.ts +55 -0
  77. package/dist/components/InputGroup/InputGroup.d.ts +4 -0
  78. package/dist/components/InputGroup/index.d.ts +4 -0
  79. package/dist/components/InputGroup/input-group.styles.d.ts +18 -0
  80. package/dist/components/InputGroup/types.d.ts +20 -0
  81. package/dist/components/LegacyDialog/DialogMainIcon.d.ts +3 -0
  82. package/dist/components/LegacyDialog/LegacyDialog.d.ts +5 -0
  83. package/dist/components/LegacyDialog/index.d.ts +3 -0
  84. package/dist/{patterns/LegacyDialog/LegacyDialog.d.ts → components/LegacyDialog/types.d.ts} +2 -10
  85. package/dist/components/LegacyPopup/LegacyPopup.d.ts +6 -0
  86. package/dist/components/LegacyPopup/index.d.ts +2 -0
  87. package/dist/{patterns/LegacyPopup/LegacyPopup.d.ts → components/LegacyPopup/types.d.ts} +4 -15
  88. package/dist/components/MultiSearchDropdown/MultiSearchDropdown.d.ts +10 -0
  89. package/dist/components/MultiSearchDropdown/index.d.ts +4 -0
  90. package/dist/components/MultiSearchDropdown/multi-search-dropdown.styles.d.ts +18 -0
  91. package/dist/{patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts → components/MultiSearchDropdown/types.d.ts} +6 -19
  92. package/dist/components/Pagination/PageItem.d.ts +3 -21
  93. package/dist/components/Pagination/Pagination.d.ts +2 -46
  94. package/dist/components/Pagination/index.d.ts +5 -0
  95. package/dist/components/Pagination/pagination.styles.d.ts +37 -0
  96. package/dist/components/Pagination/types.d.ts +66 -0
  97. package/dist/components/Popover/Popover.d.ts +4 -44
  98. package/dist/components/Popover/Popover.pw.fixtures.d.ts +6 -0
  99. package/dist/components/Popover/index.d.ts +2 -0
  100. package/dist/components/Popover/popover.styles.d.ts +1 -0
  101. package/dist/components/Popover/types.d.ts +44 -0
  102. package/dist/components/Popup/Popup.d.ts +31 -0
  103. package/dist/components/Popup/Popup.pw.fixtures.d.ts +5 -0
  104. package/dist/components/Popup/index.d.ts +3 -0
  105. package/dist/components/Popup/types.d.ts +145 -0
  106. package/dist/components/RadioButton/RadioButton.d.ts +3 -51
  107. package/dist/components/RadioButton/index.d.ts +4 -0
  108. package/dist/components/RadioButton/radio-button.styles.d.ts +27 -0
  109. package/dist/components/RadioButton/types.d.ts +46 -0
  110. package/dist/components/RangeInput/RangeInput.d.ts +4 -0
  111. package/dist/components/RangeInput/index.d.ts +3 -0
  112. package/dist/components/RangeInput/range-input.styles.d.ts +1 -0
  113. package/dist/{patterns/RangeInput/RangeInput.d.ts → components/RangeInput/types.d.ts} +1 -4
  114. package/dist/components/RowItem/RowItem.d.ts +8 -76
  115. package/dist/components/RowItem/index.d.ts +2 -0
  116. package/dist/components/RowItem/rowitem.styles.d.ts +36 -0
  117. package/dist/components/RowItem/types.d.ts +66 -0
  118. package/dist/components/SearchInput/SearchInput.d.ts +5 -0
  119. package/dist/components/SearchInput/index.d.ts +3 -0
  120. package/dist/components/SearchInput/search-input.styles.d.ts +18 -0
  121. package/dist/{patterns/SearchInput/SearchInput.d.ts → components/SearchInput/types.d.ts} +19 -25
  122. package/dist/components/Searchbar/Searchbar.d.ts +3 -0
  123. package/dist/components/Searchbar/index.d.ts +3 -0
  124. package/dist/components/Searchbar/searchbar.styles.d.ts +1 -0
  125. package/dist/{patterns/Searchbar/Searchbar.d.ts → components/Searchbar/types.d.ts} +6 -9
  126. package/dist/components/ShapeIcon/ShapeIcon.d.ts +3 -53
  127. package/dist/components/ShapeIcon/index.d.ts +2 -0
  128. package/dist/components/ShapeIcon/shape-icon.styles.d.ts +156 -0
  129. package/dist/components/ShapeIcon/types.d.ts +5 -0
  130. package/dist/components/Slider/Slider.d.ts +3 -57
  131. package/dist/components/Slider/index.d.ts +3 -0
  132. package/dist/components/Slider/slider.styles.d.ts +1 -0
  133. package/dist/components/Slider/types.d.ts +59 -0
  134. package/dist/components/Snack/Snack.d.ts +4 -48
  135. package/dist/components/Snack/index.d.ts +3 -0
  136. package/dist/components/Snack/snack.styles.d.ts +21 -0
  137. package/dist/components/Snack/types.d.ts +48 -0
  138. package/dist/components/Tabs/Tab.d.ts +3 -67
  139. package/dist/components/Tabs/Tabs.d.ts +14 -61
  140. package/dist/components/Tabs/index.d.ts +4 -0
  141. package/dist/components/Tabs/tabs.styles.d.ts +59 -0
  142. package/dist/components/Tabs/types.d.ts +97 -0
  143. package/dist/components/TagCloud/TagCloud.d.ts +11 -0
  144. package/dist/components/TagCloud/index.d.ts +2 -0
  145. package/dist/components/TagCloud/tagcloud.styles.d.ts +18 -0
  146. package/dist/components/TagCloud/types.d.ts +26 -0
  147. package/dist/components/TextArea/TextArea.d.ts +3 -100
  148. package/dist/components/TextArea/index.d.ts +4 -0
  149. package/dist/components/TextArea/text-area.styles.d.ts +21 -0
  150. package/dist/components/TextArea/types.d.ts +98 -0
  151. package/dist/components/TextLabel/TextLabel.d.ts +3 -35
  152. package/dist/components/TextLabel/index.d.ts +2 -0
  153. package/dist/components/TextLabel/textlabel.styles.d.ts +51 -0
  154. package/dist/components/TextLabel/types.d.ts +32 -0
  155. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts +3 -41
  156. package/dist/components/ToggleSwitch/index.d.ts +4 -0
  157. package/dist/components/ToggleSwitch/toggle-switch.styles.d.ts +39 -0
  158. package/dist/components/ToggleSwitch/types.d.ts +33 -0
  159. package/dist/components/Tooltip/Tooltip.d.ts +4 -98
  160. package/dist/components/Tooltip/Tooltip.pw.fixtures.d.ts +1 -0
  161. package/dist/components/Tooltip/index.d.ts +2 -0
  162. package/dist/components/Tooltip/tooltip.styles.d.ts +18 -0
  163. package/dist/components/Tooltip/types.d.ts +24 -0
  164. package/dist/forge/index.cjs +0 -0
  165. package/dist/forge/index.d.ts +8 -0
  166. package/dist/forge/index.es.js +0 -0
  167. package/dist/icons.cjs +1 -0
  168. package/dist/icons.d.ts +1 -0
  169. package/dist/icons.es.js +1 -0
  170. package/dist/index.d.ts +82 -71
  171. package/dist/styles.css +2 -0
  172. package/dist/{utils/types.d.ts → types/index.d.ts} +0 -1
  173. package/dist/typography/BodyAnnotation.d.ts +8 -6
  174. package/dist/typography/BodyCaption.d.ts +8 -6
  175. package/dist/typography/BodyPage.d.ts +8 -6
  176. package/dist/typography/BodySection.d.ts +8 -6
  177. package/dist/typography/DisplayAnnotation.d.ts +8 -6
  178. package/dist/typography/DisplayCaption.d.ts +8 -6
  179. package/dist/typography/DisplayPage.d.ts +8 -6
  180. package/dist/typography/DisplayPrice.d.ts +21 -0
  181. package/dist/typography/DisplaySection.d.ts +8 -6
  182. package/dist/typography/HeaderAnnotation.d.ts +8 -6
  183. package/dist/typography/HeaderCaption.d.ts +8 -6
  184. package/dist/typography/HeaderPage.d.ts +8 -6
  185. package/dist/typography/HeaderSection.d.ts +8 -6
  186. package/dist/typography/LabelAnnotation.d.ts +8 -6
  187. package/dist/typography/LabelCaption.d.ts +8 -6
  188. package/dist/typography/LabelPage.d.ts +8 -6
  189. package/dist/typography/LabelSection.d.ts +8 -6
  190. package/dist/typography/NoteCaption.d.ts +8 -6
  191. package/dist/typography/NotePage.d.ts +8 -6
  192. package/dist/typography/NoteSection.d.ts +8 -6
  193. package/dist/typography/TaglineAnnotation.d.ts +8 -6
  194. package/dist/typography/TaglineCaption.d.ts +8 -6
  195. package/dist/typography/TaglineFootext.d.ts +8 -6
  196. package/dist/typography/TaglineSection.d.ts +8 -6
  197. package/dist/typography/index.d.ts +25 -24
  198. package/dist/utils/_inlineCreatePortal.d.ts +0 -1
  199. package/dist/utils/bundleCss.cjs +1 -0
  200. package/dist/utils/bundleCss.d.ts +6 -0
  201. package/dist/utils/bundleCss.es.js +18 -0
  202. package/dist/utils/cleanHtml.d.ts +4 -7
  203. package/dist/utils/cn.d.ts +5 -0
  204. package/dist/utils/createUniversalPortal.d.ts +4 -14
  205. package/dist/utils/floating.d.ts +52 -0
  206. package/dist/utils/getBreakpointsValues.d.ts +4 -9
  207. package/dist/utils/sizes.d.ts +28 -0
  208. package/dist/utils/storyStyles.d.ts +21 -0
  209. package/dist/utils/themeTokens.d.ts +327 -0
  210. package/dist/utils/{scrollLock/useBodyScrollLock.d.ts → useBodyScrollLock.d.ts} +0 -1
  211. package/dist/utils/useScrollTop.d.ts +8 -0
  212. package/package.json +98 -104
  213. package/scripts/postinstall.cjs +180 -0
  214. package/skills/clad-ui/SKILL.md +109 -0
  215. package/skills/clad-ui/agents/openai.yaml +4 -0
  216. package/skills/clad-ui/references/components-display-layout.md +295 -0
  217. package/skills/clad-ui/references/components-inputs.md +449 -0
  218. package/skills/clad-ui/references/components-overlays-nav.md +314 -0
  219. package/skills/clad-ui/references/tokens.md +134 -0
  220. package/skills/clad-ui-feedback/SKILL.md +128 -0
  221. package/skills/migrate-clad-ui-v3/SKILL.md +123 -0
  222. package/skills/migrate-clad-ui-v3/agents/openai.yaml +4 -0
  223. package/skills/migrate-clad-ui-v3/references/component-api-changes.md +139 -0
  224. package/skills/migrate-clad-ui-v3/references/token-and-linaria-mapping.md +186 -0
  225. package/src/styles/base/base.css +440 -0
  226. package/src/styles/components/announcer.css +182 -0
  227. package/src/styles/components/badge.css +102 -0
  228. package/src/styles/components/box.css +61 -0
  229. package/src/styles/components/breadcrumbs.css +75 -0
  230. package/src/styles/components/button.css +527 -0
  231. package/src/styles/components/checkbox.css +115 -0
  232. package/src/styles/components/chip.css +155 -0
  233. package/src/styles/components/currency-input.css +146 -0
  234. package/src/styles/components/date-picker.css +305 -0
  235. package/src/styles/components/date-time-picker.css +64 -0
  236. package/src/styles/components/drawer.css +496 -0
  237. package/src/styles/components/dropdown.css +186 -0
  238. package/src/styles/components/empty-state.css +30 -0
  239. package/src/styles/components/grid.css +212 -0
  240. package/src/styles/components/index.css +36 -0
  241. package/src/styles/components/input-group.css +85 -0
  242. package/src/styles/components/input.css +255 -0
  243. package/src/styles/components/legacy-dialog.css +129 -0
  244. package/src/styles/components/legacy-popup.css +209 -0
  245. package/src/styles/components/multi-search-dropdown.css +240 -0
  246. package/src/styles/components/pagination.css +68 -0
  247. package/src/styles/components/popover.css +8 -0
  248. package/src/styles/components/popup.css +331 -0
  249. package/src/styles/components/radio-button.css +130 -0
  250. package/src/styles/components/range-input.css +40 -0
  251. package/src/styles/components/rowitem.css +75 -0
  252. package/src/styles/components/search-input.css +89 -0
  253. package/src/styles/components/searchbar.css +46 -0
  254. package/src/styles/components/shape-icon.css +199 -0
  255. package/src/styles/components/slider.css +232 -0
  256. package/src/styles/components/snack.css +144 -0
  257. package/src/styles/components/tabs.css +128 -0
  258. package/src/styles/components/tagcloud.css +50 -0
  259. package/src/styles/components/text-area.css +176 -0
  260. package/src/styles/components/textlabel.css +75 -0
  261. package/src/styles/components/toggle-switch.css +147 -0
  262. package/src/styles/components/tooltip.css +93 -0
  263. package/src/styles/index.css +10 -0
  264. package/src/styles/preset.css +6 -0
  265. package/src/styles/theme/colors/base.css +108 -0
  266. package/src/styles/theme/colors/semantic.css +135 -0
  267. package/src/styles/theme/index.css +57 -0
  268. package/src/styles/theme/typography/base.css +53 -0
  269. package/src/styles/theme/typography/semantic.css +176 -0
  270. package/src/styles/theme/variables.css +83 -0
  271. package/ai/clad-ui-helper.js +0 -267
  272. package/ai/knowledge-base/README.md +0 -154
  273. package/ai/knowledge-base/clad-ui-database.json +0 -9378
  274. package/ai/knowledge-base/component-categories.json +0 -616
  275. package/ai/knowledge-base/components/metadata/charts-axis.json +0 -31
  276. package/ai/knowledge-base/components/metadata/charts-barchart.json +0 -57
  277. package/ai/knowledge-base/components/metadata/charts-basechart.tsx.json +0 -31
  278. package/ai/knowledge-base/components/metadata/charts-chartshared.json +0 -31
  279. package/ai/knowledge-base/components/metadata/charts-linechart.json +0 -189
  280. package/ai/knowledge-base/components/metadata/charts-piechart.json +0 -57
  281. package/ai/knowledge-base/components/metadata/components-announcer.json +0 -215
  282. package/ai/knowledge-base/components/metadata/components-badge.json +0 -168
  283. package/ai/knowledge-base/components/metadata/components-box.json +0 -348
  284. package/ai/knowledge-base/components/metadata/components-breadcrumbs.json +0 -75
  285. package/ai/knowledge-base/components/metadata/components-button.json +0 -187
  286. package/ai/knowledge-base/components/metadata/components-checkbox.json +0 -161
  287. package/ai/knowledge-base/components/metadata/components-chip.json +0 -266
  288. package/ai/knowledge-base/components/metadata/components-currencyinput.json +0 -136
  289. package/ai/knowledge-base/components/metadata/components-datepicker.json +0 -87
  290. package/ai/knowledge-base/components/metadata/components-dropdown.json +0 -282
  291. package/ai/knowledge-base/components/metadata/components-grid.json +0 -92
  292. package/ai/knowledge-base/components/metadata/components-input.json +0 -432
  293. package/ai/knowledge-base/components/metadata/components-pagination.json +0 -111
  294. package/ai/knowledge-base/components/metadata/components-popover.json +0 -63
  295. package/ai/knowledge-base/components/metadata/components-radiobutton.json +0 -170
  296. package/ai/knowledge-base/components/metadata/components-rowitem.json +0 -281
  297. package/ai/knowledge-base/components/metadata/components-shapeicon.json +0 -139
  298. package/ai/knowledge-base/components/metadata/components-slider.json +0 -177
  299. package/ai/knowledge-base/components/metadata/components-snack.json +0 -181
  300. package/ai/knowledge-base/components/metadata/components-tabs.json +0 -169
  301. package/ai/knowledge-base/components/metadata/components-textarea.json +0 -285
  302. package/ai/knowledge-base/components/metadata/components-textlabel.json +0 -129
  303. package/ai/knowledge-base/components/metadata/components-toggleswitch.json +0 -134
  304. package/ai/knowledge-base/components/metadata/components-tooltip.json +0 -291
  305. package/ai/knowledge-base/components/metadata/patterns-drawer.json +0 -310
  306. package/ai/knowledge-base/components/metadata/patterns-emptystate.json +0 -106
  307. package/ai/knowledge-base/components/metadata/patterns-inputgroup.json +0 -105
  308. package/ai/knowledge-base/components/metadata/patterns-legacydialog.json +0 -177
  309. package/ai/knowledge-base/components/metadata/patterns-legacypopup.json +0 -236
  310. package/ai/knowledge-base/components/metadata/patterns-multisearchdropdown.json +0 -249
  311. package/ai/knowledge-base/components/metadata/patterns-popup.json +0 -268
  312. package/ai/knowledge-base/components/metadata/patterns-rangeinput.json +0 -105
  313. package/ai/knowledge-base/components/metadata/patterns-searchbar.json +0 -150
  314. package/ai/knowledge-base/components/metadata/patterns-searchinput.json +0 -312
  315. package/ai/knowledge-base/components/metadata/patterns-tagcloud.json +0 -244
  316. package/ai/knowledge-base/components/metadata/summaries.json +0 -610
  317. package/ai/knowledge-base/design-tokens/tokens.json +0 -483
  318. package/ai/knowledge-base/patterns/documentation.json +0 -131
  319. package/ai/knowledge-base/prompts/common-system-prompt.md +0 -592
  320. package/ai/knowledge-base/prompts/figma-system-prompt.md +0 -396
  321. package/ai/knowledge-base/search-index/icons/asset-icons.json +0 -1
  322. package/ai/knowledge-base/search-index/icons/collection.json +0 -5
  323. package/ai/knowledge-base/search-index/icons/system-icons.json +0 -1
  324. package/ai/knowledge-base/search-index/search-index.json +0 -899
  325. package/ai/knowledge-base/validation-rules/component-rules.json +0 -658
  326. package/ai/skill/SKILL.md +0 -103
  327. package/dist/components/Announcer/Announcer.d.ts.map +0 -1
  328. package/dist/components/Announcer/Announcer.styles.d.ts +0 -30
  329. package/dist/components/Announcer/Announcer.styles.d.ts.map +0 -1
  330. package/dist/components/Badge/Badge.d.ts.map +0 -1
  331. package/dist/components/Badge/Badge.styles.d.ts +0 -26
  332. package/dist/components/Badge/Badge.styles.d.ts.map +0 -1
  333. package/dist/components/Box/Box.d.ts.map +0 -1
  334. package/dist/components/Box/Box.styles.d.ts +0 -21
  335. package/dist/components/Box/Box.styles.d.ts.map +0 -1
  336. package/dist/components/Breadcrumbs/BreadcrumbItem.d.ts.map +0 -1
  337. package/dist/components/Breadcrumbs/Breadcrumbs.d.ts.map +0 -1
  338. package/dist/components/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -10
  339. package/dist/components/Breadcrumbs/Breadcrumbs.styles.d.ts.map +0 -1
  340. package/dist/components/Button/Button.d.ts.map +0 -1
  341. package/dist/components/Button/Button.styles.d.ts +0 -3
  342. package/dist/components/Button/Button.styles.d.ts.map +0 -1
  343. package/dist/components/Button/ButtonLink.d.ts.map +0 -1
  344. package/dist/components/Button/GhostButton.d.ts.map +0 -1
  345. package/dist/components/Button/GhostButton.styles.d.ts +0 -3
  346. package/dist/components/Button/GhostButton.styles.d.ts.map +0 -1
  347. package/dist/components/Button/IconButton.d.ts.map +0 -1
  348. package/dist/components/Button/constant.d.ts.map +0 -1
  349. package/dist/components/Checkbox/Checkbox.d.ts.map +0 -1
  350. package/dist/components/Checkbox/Checkbox.styles.d.ts +0 -5
  351. package/dist/components/Checkbox/Checkbox.styles.d.ts.map +0 -1
  352. package/dist/components/Chip/Chip.d.ts.map +0 -1
  353. package/dist/components/Chip/Chip.styles.d.ts +0 -13
  354. package/dist/components/Chip/Chip.styles.d.ts.map +0 -1
  355. package/dist/components/CurrencyInput/CurrencyInput.d.ts.map +0 -1
  356. package/dist/components/CurrencyInput/CurrencyInput.styles.d.ts +0 -27
  357. package/dist/components/CurrencyInput/CurrencyInput.styles.d.ts.map +0 -1
  358. package/dist/components/CurrencyInput/utils/_cleanValue.d.ts +0 -12
  359. package/dist/components/CurrencyInput/utils/_cleanValue.d.ts.map +0 -1
  360. package/dist/components/CurrencyInput/utils/_formatValue.d.ts +0 -6
  361. package/dist/components/CurrencyInput/utils/_formatValue.d.ts.map +0 -1
  362. package/dist/components/DatePicker/DatePicker.d.ts.map +0 -1
  363. package/dist/components/DatePicker/DateTimePicker.d.ts.map +0 -1
  364. package/dist/components/DatePicker/DateTimePicker.styles.d.ts +0 -61
  365. package/dist/components/DatePicker/DateTimePicker.styles.d.ts.map +0 -1
  366. package/dist/components/Dropdown/Dropdown.d.ts.map +0 -1
  367. package/dist/components/Dropdown/Dropdown.styles.d.ts +0 -11
  368. package/dist/components/Dropdown/Dropdown.styles.d.ts.map +0 -1
  369. package/dist/components/Grid/Col.d.ts.map +0 -1
  370. package/dist/components/Grid/Grid.d.ts.map +0 -1
  371. package/dist/components/Grid/Grid.styles.d.ts +0 -33
  372. package/dist/components/Grid/Grid.styles.d.ts.map +0 -1
  373. package/dist/components/Input/Input.d.ts.map +0 -1
  374. package/dist/components/Input/Input.styles.d.ts +0 -36
  375. package/dist/components/Input/Input.styles.d.ts.map +0 -1
  376. package/dist/components/Pagination/PageItem.d.ts.map +0 -1
  377. package/dist/components/Pagination/Pagination.d.ts.map +0 -1
  378. package/dist/components/Pagination/Pagination.style.d.ts +0 -7
  379. package/dist/components/Pagination/Pagination.style.d.ts.map +0 -1
  380. package/dist/components/Popover/Popover.d.ts.map +0 -1
  381. package/dist/components/Popover/Popover.styles.d.ts +0 -4
  382. package/dist/components/Popover/Popover.styles.d.ts.map +0 -1
  383. package/dist/components/RadioButton/RadioButton.d.ts.map +0 -1
  384. package/dist/components/RadioButton/RadioButton.styles.d.ts +0 -12
  385. package/dist/components/RadioButton/RadioButton.styles.d.ts.map +0 -1
  386. package/dist/components/RowItem/RowItem.d.ts.map +0 -1
  387. package/dist/components/RowItem/RowItem.styles.d.ts +0 -33
  388. package/dist/components/RowItem/RowItem.styles.d.ts.map +0 -1
  389. package/dist/components/ShapeIcon/ShapeIcon.d.ts.map +0 -1
  390. package/dist/components/ShapeIcon/ShapeIcon.styles.d.ts +0 -15
  391. package/dist/components/ShapeIcon/ShapeIcon.styles.d.ts.map +0 -1
  392. package/dist/components/Slider/Slider.d.ts.map +0 -1
  393. package/dist/components/Slider/Slider.styles.d.ts +0 -24
  394. package/dist/components/Slider/Slider.styles.d.ts.map +0 -1
  395. package/dist/components/Snack/Snack.d.ts.map +0 -1
  396. package/dist/components/Snack/Snack.styles.d.ts +0 -20
  397. package/dist/components/Snack/Snack.styles.d.ts.map +0 -1
  398. package/dist/components/Tabs/Tab.d.ts.map +0 -1
  399. package/dist/components/Tabs/Tabs.d.ts.map +0 -1
  400. package/dist/components/Tabs/Tabs.styles.d.ts +0 -43
  401. package/dist/components/Tabs/Tabs.styles.d.ts.map +0 -1
  402. package/dist/components/TextArea/TextArea.d.ts.map +0 -1
  403. package/dist/components/TextArea/TextArea.styles.d.ts +0 -19
  404. package/dist/components/TextArea/TextArea.styles.d.ts.map +0 -1
  405. package/dist/components/TextLabel/TextLabel.d.ts.map +0 -1
  406. package/dist/components/TextLabel/TextLabel.styles.d.ts +0 -10
  407. package/dist/components/TextLabel/TextLabel.styles.d.ts.map +0 -1
  408. package/dist/components/ToggleSwitch/ToggleSwitch.d.ts.map +0 -1
  409. package/dist/components/ToggleSwitch/ToggleSwitch.styles.d.ts +0 -22
  410. package/dist/components/ToggleSwitch/ToggleSwitch.styles.d.ts.map +0 -1
  411. package/dist/components/Tooltip/Tooltip.d.ts.map +0 -1
  412. package/dist/components/Tooltip/Tooltip.styles.d.ts +0 -33
  413. package/dist/components/Tooltip/Tooltip.styles.d.ts.map +0 -1
  414. package/dist/components/index.d.ts +0 -62
  415. package/dist/components/index.d.ts.map +0 -1
  416. package/dist/css/baseline.d.ts +0 -15
  417. package/dist/css/baseline.d.ts.map +0 -1
  418. package/dist/index.d.ts.map +0 -1
  419. package/dist/patterns/Drawer/Drawer.d.ts +0 -110
  420. package/dist/patterns/Drawer/Drawer.d.ts.map +0 -1
  421. package/dist/patterns/Drawer/Drawer.styles.d.ts +0 -39
  422. package/dist/patterns/Drawer/Drawer.styles.d.ts.map +0 -1
  423. package/dist/patterns/EmptyState/EmptyState.d.ts +0 -36
  424. package/dist/patterns/EmptyState/EmptyState.d.ts.map +0 -1
  425. package/dist/patterns/EmptyState/EmptyState.styles.d.ts +0 -4
  426. package/dist/patterns/EmptyState/EmptyState.styles.d.ts.map +0 -1
  427. package/dist/patterns/InputGroup/InputGroup.d.ts +0 -26
  428. package/dist/patterns/InputGroup/InputGroup.d.ts.map +0 -1
  429. package/dist/patterns/InputGroup/InputGroup.styles.d.ts +0 -8
  430. package/dist/patterns/InputGroup/InputGroup.styles.d.ts.map +0 -1
  431. package/dist/patterns/LegacyDialog/DialogMainIcon.d.ts +0 -2
  432. package/dist/patterns/LegacyDialog/DialogMainIcon.d.ts.map +0 -1
  433. package/dist/patterns/LegacyDialog/LegacyDialog.d.ts.map +0 -1
  434. package/dist/patterns/LegacyDialog/LegacyDialog.styles.d.ts +0 -13
  435. package/dist/patterns/LegacyDialog/LegacyDialog.styles.d.ts.map +0 -1
  436. package/dist/patterns/LegacyPopup/LegacyPopup.d.ts.map +0 -1
  437. package/dist/patterns/LegacyPopup/LegacyPopup.styles.d.ts +0 -27
  438. package/dist/patterns/LegacyPopup/LegacyPopup.styles.d.ts.map +0 -1
  439. package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts.map +0 -1
  440. package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts +0 -26
  441. package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts.map +0 -1
  442. package/dist/patterns/Popup/Popup.d.ts +0 -92
  443. package/dist/patterns/Popup/Popup.d.ts.map +0 -1
  444. package/dist/patterns/Popup/Popup.styles.d.ts +0 -41
  445. package/dist/patterns/Popup/Popup.styles.d.ts.map +0 -1
  446. package/dist/patterns/RangeInput/RangeInput.d.ts.map +0 -1
  447. package/dist/patterns/RangeInput/RangeInput.styles.d.ts +0 -5
  448. package/dist/patterns/RangeInput/RangeInput.styles.d.ts.map +0 -1
  449. package/dist/patterns/SearchInput/SearchInput.d.ts.map +0 -1
  450. package/dist/patterns/SearchInput/SearchInput.styles.d.ts +0 -10
  451. package/dist/patterns/SearchInput/SearchInput.styles.d.ts.map +0 -1
  452. package/dist/patterns/Searchbar/Searchbar.d.ts.map +0 -1
  453. package/dist/patterns/Searchbar/Searchbar.styles.d.ts +0 -3
  454. package/dist/patterns/Searchbar/Searchbar.styles.d.ts.map +0 -1
  455. package/dist/patterns/TagCloud/TagCloud.d.ts +0 -76
  456. package/dist/patterns/TagCloud/TagCloud.d.ts.map +0 -1
  457. package/dist/patterns/TagCloud/TagCloud.styles.d.ts +0 -15
  458. package/dist/patterns/TagCloud/TagCloud.styles.d.ts.map +0 -1
  459. package/dist/patterns/TagCloud/TagCloudMultiActive.d.ts +0 -25
  460. package/dist/patterns/TagCloud/TagCloudMultiActive.d.ts.map +0 -1
  461. package/dist/patterns/TagCloud/TagCloudSingleActive.d.ts +0 -22
  462. package/dist/patterns/TagCloud/TagCloudSingleActive.d.ts.map +0 -1
  463. package/dist/patterns/index.d.ts +0 -23
  464. package/dist/patterns/index.d.ts.map +0 -1
  465. package/dist/theme/chotot.d.ts +0 -1371
  466. package/dist/theme/chotot.d.ts.map +0 -1
  467. package/dist/theme/ct-job.d.ts +0 -826
  468. package/dist/theme/ct-job.d.ts.map +0 -1
  469. package/dist/theme/ct-pty.d.ts +0 -826
  470. package/dist/theme/ct-pty.d.ts.map +0 -1
  471. package/dist/theme/ct-veh.d.ts +0 -591
  472. package/dist/theme/ct-veh.d.ts.map +0 -1
  473. package/dist/theme/index.d.ts +0 -5
  474. package/dist/theme/index.d.ts.map +0 -1
  475. package/dist/theme/mudah.d.ts +0 -248
  476. package/dist/theme/mudah.d.ts.map +0 -1
  477. package/dist/theme/types.d.ts +0 -58
  478. package/dist/theme/types.d.ts.map +0 -1
  479. package/dist/theme-chotot.css +0 -2
  480. package/dist/theme-job.css +0 -2
  481. package/dist/theme-pty.css +0 -2
  482. package/dist/theme-veh.css +0 -2
  483. package/dist/typography/BodyAnnotation.d.ts.map +0 -1
  484. package/dist/typography/BodyCaption.d.ts.map +0 -1
  485. package/dist/typography/BodyPage.d.ts.map +0 -1
  486. package/dist/typography/BodySection.d.ts.map +0 -1
  487. package/dist/typography/DisplayAnnotation.d.ts.map +0 -1
  488. package/dist/typography/DisplayCaption.d.ts.map +0 -1
  489. package/dist/typography/DisplayPage.d.ts.map +0 -1
  490. package/dist/typography/DisplaySection.d.ts.map +0 -1
  491. package/dist/typography/HeaderAnnotation.d.ts.map +0 -1
  492. package/dist/typography/HeaderCaption.d.ts.map +0 -1
  493. package/dist/typography/HeaderPage.d.ts.map +0 -1
  494. package/dist/typography/HeaderSection.d.ts.map +0 -1
  495. package/dist/typography/LabelAnnotation.d.ts.map +0 -1
  496. package/dist/typography/LabelCaption.d.ts.map +0 -1
  497. package/dist/typography/LabelPage.d.ts.map +0 -1
  498. package/dist/typography/LabelSection.d.ts.map +0 -1
  499. package/dist/typography/NoteCaption.d.ts.map +0 -1
  500. package/dist/typography/NotePage.d.ts.map +0 -1
  501. package/dist/typography/NoteSection.d.ts.map +0 -1
  502. package/dist/typography/TaglineAnnotation.d.ts.map +0 -1
  503. package/dist/typography/TaglineCaption.d.ts.map +0 -1
  504. package/dist/typography/TaglineFootext.d.ts.map +0 -1
  505. package/dist/typography/TaglineSection.d.ts.map +0 -1
  506. package/dist/typography/index.d.ts.map +0 -1
  507. package/dist/utils/_inlineCreatePortal.d.ts.map +0 -1
  508. package/dist/utils/_normalizeArrowKey.d.ts +0 -10
  509. package/dist/utils/_normalizeArrowKey.d.ts.map +0 -1
  510. package/dist/utils/_simulateChangeEvent.d.ts +0 -25
  511. package/dist/utils/_simulateChangeEvent.d.ts.map +0 -1
  512. package/dist/utils/cleanHtml.d.ts.map +0 -1
  513. package/dist/utils/createUniversalPortal.d.ts.map +0 -1
  514. package/dist/utils/cx.d.ts +0 -22
  515. package/dist/utils/cx.d.ts.map +0 -1
  516. package/dist/utils/getBreakpointsValues.d.ts.map +0 -1
  517. package/dist/utils/index.d.ts +0 -7
  518. package/dist/utils/index.d.ts.map +0 -1
  519. package/dist/utils/noop.d.ts +0 -9
  520. package/dist/utils/noop.d.ts.map +0 -1
  521. package/dist/utils/scrollLock/index.d.ts +0 -7
  522. package/dist/utils/scrollLock/index.d.ts.map +0 -1
  523. package/dist/utils/scrollLock/scrollLock.styles.d.ts +0 -6
  524. package/dist/utils/scrollLock/scrollLock.styles.d.ts.map +0 -1
  525. package/dist/utils/scrollLock/useBodyScrollLock.d.ts.map +0 -1
  526. package/dist/utils/scrollTop.d.ts +0 -8
  527. package/dist/utils/scrollTop.d.ts.map +0 -1
  528. package/dist/utils/sx.d.ts +0 -174
  529. package/dist/utils/sx.d.ts.map +0 -1
  530. package/dist/utils/types.d.ts.map +0 -1
  531. package/theme/__snapshots__/chotot.spec.js.snap +0 -519
  532. package/theme/__snapshots__/mudah.spec.js.snap +0 -161
  533. package/theme/chotot.js +0 -1336
  534. package/theme/chotot.spec.js +0 -72
  535. package/theme/ct-job.js +0 -92
  536. package/theme/ct-pty.js +0 -92
  537. package/theme/ct-veh.js +0 -92
  538. package/theme/index.ts +0 -10
  539. package/theme/mudah.js +0 -333
  540. package/theme/mudah.spec.js +0 -9
  541. package/theme/types.ts +0 -61
@@ -0,0 +1,89 @@
1
+ import { CladSize } from '../../utils/sizes';
2
+ import { DropdownVariants } from './dropdown.styles';
3
+ import type * as React from 'react';
4
+ export interface DropdownOption {
5
+ value: string;
6
+ label: string;
7
+ icon?: React.ReactElement;
8
+ }
9
+ export interface DropdownProps extends DropdownVariants {
10
+ /**
11
+ * Custom class to override dropdown's style.
12
+ */
13
+ className?: string;
14
+ /**
15
+ * Dropdown name
16
+ */
17
+ name?: string;
18
+ /**
19
+ * Dropdown label
20
+ */
21
+ label?: string;
22
+ /**
23
+ * Dropdown ref (implement with useRef() hooks)
24
+ */
25
+ inputRef?: React.RefObject<HTMLSelectElement> | React.RefCallback<HTMLSelectElement>;
26
+ /**
27
+ * The Dropdown content value
28
+ */
29
+ value?: number | string;
30
+ /**
31
+ * Callback when user click / tap on the input
32
+ */
33
+ onClick?: React.MouseEventHandler<HTMLDivElement>;
34
+ /**
35
+ * Callback when user input
36
+ */
37
+ onChange?: React.ChangeEventHandler<HTMLSelectElement>;
38
+ /**
39
+ * Callback when user blur
40
+ */
41
+ onBlur?: React.FocusEventHandler<HTMLSelectElement>;
42
+ /**
43
+ * Callback when user focus
44
+ */
45
+ onFocus?: () => void;
46
+ /**
47
+ * Disabled dropdown
48
+ */
49
+ disabled?: boolean;
50
+ /**
51
+ * Whether this input is required or not
52
+ */
53
+ required?: boolean;
54
+ /**
55
+ * The id of dropdown.
56
+ */
57
+ id?: string;
58
+ /**
59
+ * Prompt a helptext below dropdown (useful when implemented with form validation)
60
+ */
61
+ helptext?: string;
62
+ /**
63
+ * Custom helptext className
64
+ */
65
+ helptextClassName?: string;
66
+ /**
67
+ * Dropdown options (`{ value: string, label: string, icon?: ReactElement }[]`)
68
+ */
69
+ options?: DropdownOption[];
70
+ /**
71
+ * Dropdown width
72
+ * @default 'full'
73
+ */
74
+ width?: CladSize;
75
+ /**
76
+ * Maximum height of menu
77
+ * @default '$sm'
78
+ */
79
+ menuMaxHeight?: CladSize;
80
+ /**
81
+ * Icon to be displayed on the left side of the dropdown
82
+ */
83
+ icon?: React.ReactElement;
84
+ /**
85
+ * Padding for icon (default is 28px). Available when icon is provided.
86
+ * @default 28
87
+ */
88
+ paddingForIcon?: number;
89
+ }
@@ -0,0 +1,4 @@
1
+ import { EmptyStateProps } from './types';
2
+ declare const EmptyState: import('../../types').InternalForwardRefRenderFunction<"div", EmptyStateProps>;
3
+ export { EmptyState };
4
+ export default EmptyState;
@@ -0,0 +1,3 @@
1
+ import { VariantProps } from 'tailwind-variants/lite';
2
+ export declare const emptyStateVariants: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, "empty-state", {} | {}, undefined, import('tailwind-variants').TVReturnTypeLike<unknown, undefined>>;
3
+ export type EmptyStateVariants = VariantProps<typeof emptyStateVariants>;
@@ -0,0 +1,2 @@
1
+ export { EmptyState } from './EmptyState';
2
+ export type { EmptyStateProps, EmptyStateType } from './types';
@@ -0,0 +1,55 @@
1
+ import { ReactNode, MouseEventHandler } from 'react';
2
+ import { HTMLCladUIProps, ReactRef } from '../../types';
3
+ import { EmptyStateVariants } from './empty-state.styles';
4
+ /**
5
+ * The preset empty-state scenarios. Each preset ships a default title,
6
+ * description, button label and cover image. `other` renders nothing by
7
+ * default and is meant to be fully customized via props.
8
+ */
9
+ export type EmptyStateType = 'maintenance' | 'keywordNoResult' | 'filterNoResult' | 'noAvailable' | 'grantAccess' | 'notFound' | 'notFoundWhite' | 'disconnection' | 'working' | 'waitingCv' | 'noReward' | 'other';
10
+ export type EmptyStateProps = HTMLCladUIProps<'div'> & EmptyStateVariants & {
11
+ /**
12
+ * The preset scenario to render. Determines the default title,
13
+ * description, button label and cover image.
14
+ */
15
+ type: EmptyStateType;
16
+ /**
17
+ * Click handler for the action button.
18
+ */
19
+ onButtonClick?: MouseEventHandler<HTMLButtonElement>;
20
+ /**
21
+ * Overrides the preset title.
22
+ */
23
+ title?: string;
24
+ /**
25
+ * Overrides the preset cover image URL.
26
+ */
27
+ coverImage?: string;
28
+ /**
29
+ * Overrides the preset description. Accepts plain text or rich content.
30
+ */
31
+ description?: ReactNode;
32
+ /**
33
+ * Overrides the preset action-button label.
34
+ */
35
+ buttonLabel?: string;
36
+ /**
37
+ * Whether to display the title heading.
38
+ * @default true
39
+ */
40
+ showTitle?: boolean;
41
+ /**
42
+ * Whether to display the description text.
43
+ * @default true
44
+ */
45
+ showDescription?: boolean;
46
+ /**
47
+ * Whether to display the action button.
48
+ * @default true
49
+ */
50
+ showButton?: boolean;
51
+ /**
52
+ * Ref to the DOM node.
53
+ */
54
+ ref?: ReactRef<HTMLDivElement | null>;
55
+ };
@@ -1,38 +1,7 @@
1
+ import { ColProps } from './types';
1
2
  import * as React from 'react';
2
- declare const getWidthByPctFromSpan: (span: any) => string;
3
- declare const getSpans: (span: any, defaultValue: any) => string[];
4
- /**
5
- * Col component mimic flexbox item
6
- *
7
- * `✅ Stable`
8
- */
9
- export interface ColProps {
10
- /**
11
- * [Responsive Prop] Column span
12
- */
13
- span?: number[] | number;
14
- /**
15
- * [Responsive Prop] Increase the left margin of a column by span
16
- */
17
- offset?: number[] | number;
18
- /**
19
- * Column vertical alignment
20
- */
21
- align?: 'center' | 'end' | 'initial' | 'start';
22
- /**
23
- * Order in grid
24
- */
25
- order?: 'first' | 'initial' | 'last' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
26
- /**
27
- * Column classname
28
- */
29
- className?: string;
30
- /**
31
- * Content inside column
32
- */
33
- children: React.ReactNode;
34
- }
3
+ export declare const getWidthByPctFromSpan: (span: unknown) => string;
4
+ export declare const getSpans: (span: Array<number | string | null | undefined> | number | string | null | undefined, defaultValue: number | string) => string[];
35
5
  declare const Col: React.FC<ColProps>;
36
- export { getWidthByPctFromSpan, getSpans };
6
+ export { Col };
37
7
  export default Col;
38
- //# sourceMappingURL=Col.d.ts.map
@@ -1,58 +1,11 @@
1
+ import { GridProps } from './types';
1
2
  import * as React from 'react';
2
- declare const getWidthByPctFromRowCols: (rowCols: any) => string;
3
- declare const getColWidths: (span: any, defaultValue: any) => string[];
4
- declare const getSpaceValue: (key: any) => number;
5
- declare const getGutters: (gutter: any, defaultValue: any) => number[];
6
- declare const getSizesValue: (key: any) => any;
7
- declare const getContainerWidths: (width: any, defaultValue: any) => any[];
8
- declare const keysOfSizes: readonly string[];
9
- declare const keysOfSpace: readonly string[];
10
- type Size = (typeof keysOfSizes)[number];
11
- type Space = (typeof keysOfSpace)[number];
12
- export type GridProps = {
13
- /**
14
- * [Responsive Prop] Width of the grid
15
- */
16
- width?: Size | Size[];
17
- /**
18
- * Vertical alignment (flexbox `align-items`)
19
- */
20
- align?: 'center' | 'end' | 'initial' | 'start';
21
- /**
22
- * Horizontal alignment (flexbox `justify-content`)
23
- */
24
- justify?: 'around' | 'between' | 'center' | 'end' | 'initial' | 'start';
25
- /**
26
- * [Responsive Prop] Uniformed number of column per row. **Do not override span prop in \<Col \/\>**.
27
- */
28
- rowCols?: number[] | number;
29
- /**
30
- * [Responsive Prop] The gaps (gutters) between columns
31
- */
32
- gutter?: Space | Space[];
33
- /**
34
- * [Responsive Prop] Horizontal gutters
35
- */
36
- gutterx?: Space | Space[];
37
- /**
38
- * [Responsive Prop] Vertical gutters.
39
- */
40
- guttery?: Space | Space[];
41
- /**
42
- * Grid classname
43
- */
44
- className?: string;
45
- /**
46
- * Columns nested inside Grid
47
- */
48
- children: React.ReactNode;
49
- };
50
- /**
51
- * Grid component mimic flexbox container
52
- *
53
- * `✅ Stable`
54
- */
3
+ export declare const getWidthByPctFromRowCols: (rowCols: unknown) => string;
4
+ export declare const getColWidths: (span: Array<number | string | null | undefined> | number | string | null | undefined, defaultValue: number | string) => string[];
5
+ export declare const getSpaceValue: (key: unknown) => number;
6
+ export declare const getGutters: (gutter: Array<string | number | null | undefined> | string | number | null | undefined, defaultValue: number | string) => number[];
7
+ export declare const getSizesValue: (key: unknown) => string;
8
+ export declare const getContainerWidths: (width: Array<string | number | null | undefined> | string | number | null | undefined, defaultValue: string) => string[];
55
9
  declare const Grid: React.FC<GridProps>;
56
- export { getWidthByPctFromRowCols, getColWidths, getSpaceValue, getGutters, getSizesValue, getContainerWidths, };
10
+ export { Grid };
57
11
  export default Grid;
58
- //# sourceMappingURL=Grid.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { default as React } from 'react';
2
+ export declare const GridSpansAndOffsets: React.FC;
3
+ export declare const GridRowColsAndOrder: React.FC;
@@ -0,0 +1,3 @@
1
+ export { Grid, getWidthByPctFromRowCols, getColWidths, getSpaceValue, getGutters, getSizesValue, getContainerWidths, } from './Grid';
2
+ export { Col, getWidthByPctFromSpan, getSpans } from './Col';
3
+ export type { GridProps, ColProps } from './types';
@@ -0,0 +1,66 @@
1
+ import { SizeToken, SpaceToken } from '../../utils/themeTokens';
2
+ import type * as React from 'react';
3
+ export interface GridProps {
4
+ /**
5
+ * [Responsive Prop] Width of the grid
6
+ */
7
+ width?: SizeToken | Array<SizeToken | null | undefined> | null;
8
+ /**
9
+ * Vertical alignment (flexbox `align-items`)
10
+ */
11
+ align?: 'center' | 'end' | 'initial' | 'start';
12
+ /**
13
+ * Horizontal alignment (flexbox `justify-content`)
14
+ */
15
+ justify?: 'around' | 'between' | 'center' | 'end' | 'initial' | 'start';
16
+ /**
17
+ * [Responsive Prop] Uniformed number of column per row. **Do not override span prop in \<Col \/\>**.
18
+ */
19
+ rowCols?: Array<number | string | null | undefined> | number | string | null;
20
+ /**
21
+ * [Responsive Prop] The gaps (gutters) between columns
22
+ */
23
+ gutter?: SpaceToken | Array<SpaceToken | null | undefined> | null;
24
+ /**
25
+ * [Responsive Prop] Horizontal gutters
26
+ */
27
+ gutterx?: SpaceToken | Array<SpaceToken | null | undefined> | null;
28
+ /**
29
+ * [Responsive Prop] Vertical gutters.
30
+ */
31
+ guttery?: SpaceToken | Array<SpaceToken | null | undefined> | null;
32
+ /**
33
+ * Grid classname
34
+ */
35
+ className?: string;
36
+ /**
37
+ * Columns nested inside Grid
38
+ */
39
+ children?: React.ReactNode;
40
+ }
41
+ export interface ColProps {
42
+ /**
43
+ * [Responsive Prop] Column span
44
+ */
45
+ span?: Array<number | string | null | undefined> | number | string | null;
46
+ /**
47
+ * [Responsive Prop] Increase the left margin of a column by span
48
+ */
49
+ offset?: Array<number | string | null | undefined> | number | string | null;
50
+ /**
51
+ * Column vertical alignment
52
+ */
53
+ align?: 'center' | 'end' | 'initial' | 'start';
54
+ /**
55
+ * Order in grid
56
+ */
57
+ order?: 'first' | 'initial' | 'last' | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
58
+ /**
59
+ * Column classname
60
+ */
61
+ className?: string;
62
+ /**
63
+ * Content inside column
64
+ */
65
+ children?: React.ReactNode;
66
+ }
@@ -1,117 +1,4 @@
1
- import { Sizes } from '../../theme/chotot.js';
2
- import * as React from 'react';
3
- export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
4
- /**
5
- * Input name
6
- */
7
- name?: string;
8
- /**
9
- * The type of input
10
- */
11
- type?: 'email' | 'number' | 'password' | 'tel' | 'text';
12
- /**
13
- * Input label
14
- */
15
- label?: string;
16
- /**
17
- * Input ref (implement with useRef() hooks)
18
- */
19
- inputRef?: React.RefObject<HTMLInputElement> | React.RefCallback<HTMLInputElement>;
20
- /**
21
- * The input content value
22
- */
23
- value?: number | string;
24
- /**
25
- * Callback when user input
26
- */
27
- onChange?: React.ChangeEventHandler<HTMLInputElement>;
28
- /**
29
- * Callback when user blur
30
- */
31
- onBlur?: React.FocusEventHandler<HTMLInputElement>;
32
- /**
33
- * Callback when keydown
34
- */
35
- onKeyDown?: React.KeyboardEventHandler<HTMLInputElement>;
36
- /**
37
- * Callback when keyup
38
- */
39
- onKeyUp?: React.KeyboardEventHandler<HTMLInputElement>;
40
- /**
41
- * Callback when user focus
42
- */
43
- onFocus?: React.FocusEventHandler<HTMLInputElement>;
44
- /**
45
- * Callback when user focus
46
- */
47
- onClear?: React.MouseEventHandler<HTMLInputElement>;
48
- /**
49
- * Disabled input
50
- */
51
- disabled?: boolean;
52
- /**
53
- * Whether this input is required or not
54
- */
55
- required?: boolean;
56
- /**
57
- * The id of input
58
- */
59
- id?: string;
60
- /**
61
- * If allow to remove input content with clear icon
62
- * @default true
63
- */
64
- allowClear?: boolean;
65
- /**
66
- * Input status (useful when implemented with form validation)
67
- */
68
- status?: 'default' | 'error' | 'success';
69
- /**
70
- * Prompt a helptext below input (useful when implemented with form validation)
71
- */
72
- helptext?: string;
73
- /**
74
- * Custom helptext
75
- */
76
- helptextClassName?: string;
77
- /**
78
- * Show entered password
79
- */
80
- showPassword?: boolean;
81
- /**
82
- * Show an icon that contains tooltip
83
- */
84
- tooltip?: string;
85
- /**
86
- * Enumerated attribute that hints at the type of data that might be entered by the user
87
- */
88
- inputMode?: 'decimal' | 'email' | 'none' | 'numeric' | 'search' | 'tel' | 'text' | 'url';
89
- /**
90
- * Input width
91
- */
92
- width?: Sizes;
93
- /**
94
- * Maximum number of characters allowed. 0, null and undefined mean no limitation
95
- */
96
- characterLimit?: number;
97
- /**
98
- * Show validation icon (status = 'error' or 'success')
99
- */
100
- showValidationIcon?: boolean;
101
- /**
102
- * Icon on the left
103
- */
104
- icon?: React.ReactNode;
105
- /**
106
- * Input placeholder
107
- */
108
- placeholder?: string;
109
- }
110
- /**
111
- * Text Input component that has floating label, caption, and info tooltip.
112
- *
113
- * `✅ Stable`
114
- */
115
- declare const Input: React.FC<InputProps>;
1
+ import { InputProps } from './types';
2
+ declare const Input: import('../../types').InternalForwardRefRenderFunction<"input", InputProps>;
3
+ export { Input };
116
4
  export default Input;
117
- //# sourceMappingURL=Input.d.ts.map
@@ -0,0 +1,2 @@
1
+ export { Input } from './Input';
2
+ export type { InputProps } from './types';
@@ -0,0 +1,24 @@
1
+ import { VariantProps } from 'tailwind-variants/lite';
2
+ export declare const inputVariants: import('tailwind-variants').TVReturnType<{
3
+ status: {
4
+ default: "";
5
+ warning: "input--warning";
6
+ error: "input--error";
7
+ success: "";
8
+ };
9
+ }, undefined, "input", {
10
+ status: {
11
+ default: "";
12
+ warning: "input--warning";
13
+ error: "input--error";
14
+ success: "";
15
+ };
16
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
17
+ status: {
18
+ default: "";
19
+ warning: "input--warning";
20
+ error: "input--error";
21
+ success: "";
22
+ };
23
+ }, undefined>>;
24
+ export type InputVariants = VariantProps<typeof inputVariants>;
@@ -0,0 +1,55 @@
1
+ import { ReactNode } from 'react';
2
+ import { HTMLCladUIProps } from '../../types';
3
+ import { CladSize } from '../../utils/sizes';
4
+ import { InputVariants } from './input.styles';
5
+ export type InputProps = Omit<HTMLCladUIProps<'input'>, 'size' | 'children' | 'as' | 'width'> & InputVariants & {
6
+ /**
7
+ * Container width token (e.g. 'full', 'xxxl', 'buttonMaxWidth').
8
+ * @default 'full'
9
+ */
10
+ width?: CladSize;
11
+ /**
12
+ * Floating label text.
13
+ */
14
+ label?: string;
15
+ /**
16
+ * Help text shown below the input.
17
+ */
18
+ helptext?: string;
19
+ /**
20
+ * Custom className for the helptext element.
21
+ */
22
+ helptextClassName?: string;
23
+ /**
24
+ * Show a clear (×) button when the input has a value. Defaults to true.
25
+ */
26
+ allowClear?: boolean;
27
+ /**
28
+ * For type="password": show a hide/reveal toggle button.
29
+ */
30
+ showPassword?: boolean;
31
+ /**
32
+ * Tooltip text shown on (i) icon hover.
33
+ */
34
+ tooltip?: string;
35
+ /**
36
+ * Maximum number of characters. 0 / undefined = no limit.
37
+ */
38
+ characterLimit?: number;
39
+ /**
40
+ * Show a validation icon (error or success) inside the input.
41
+ */
42
+ showValidationIcon?: boolean;
43
+ /**
44
+ * Icon element rendered on the left side of the input.
45
+ */
46
+ icon?: ReactNode;
47
+ /**
48
+ * Callback fired when the clear button is clicked.
49
+ */
50
+ onClear?: React.MouseEventHandler<HTMLButtonElement>;
51
+ /**
52
+ * Mutable ref object or callback ref pointing to the underlying <input> element.
53
+ */
54
+ inputRef?: React.RefObject<HTMLInputElement | null> | React.RefCallback<HTMLInputElement>;
55
+ };
@@ -0,0 +1,4 @@
1
+ import { InputGroupProps } from './types';
2
+ import type * as React from 'react';
3
+ export declare const InputGroup: React.FC<InputGroupProps>;
4
+ export default InputGroup;
@@ -0,0 +1,4 @@
1
+ export { default, InputGroup } from './InputGroup';
2
+ export { inputGroupVariants } from './input-group.styles';
3
+ export type { InputGroupVariants } from './input-group.styles';
4
+ export type { InputGroupProps } from './types';
@@ -0,0 +1,18 @@
1
+ import { VariantProps } from 'tailwind-variants/lite';
2
+ export declare const inputGroupVariants: import('tailwind-variants').TVReturnType<{
3
+ status: {
4
+ default: "";
5
+ error: "error";
6
+ };
7
+ }, undefined, "input-group", {
8
+ status: {
9
+ default: "";
10
+ error: "error";
11
+ };
12
+ }, undefined, import('tailwind-variants').TVReturnTypeLike<{
13
+ status: {
14
+ default: "";
15
+ error: "error";
16
+ };
17
+ }, undefined>>;
18
+ export type InputGroupVariants = VariantProps<typeof inputGroupVariants>;
@@ -0,0 +1,20 @@
1
+ import { InputGroupVariants } from './input-group.styles';
2
+ import type * as React from 'react';
3
+ export type InputGroupProps = InputGroupVariants & {
4
+ /**
5
+ * Input group content
6
+ */
7
+ children: React.ReactNode;
8
+ /**
9
+ * Prompt a helptext below input group (useful when implemented with form validation)
10
+ */
11
+ helptext?: string;
12
+ /**
13
+ * Custom helptext className
14
+ */
15
+ helptextClassName?: string;
16
+ /**
17
+ * Custom class name
18
+ */
19
+ className?: string;
20
+ };
@@ -0,0 +1,3 @@
1
+ import * as React from 'react';
2
+ export declare const DialogMainIcon: React.FC;
3
+ export default DialogMainIcon;
@@ -0,0 +1,5 @@
1
+ import { LegacyDialogProps } from './types';
2
+ import * as React from 'react';
3
+ declare const LegacyDialog: React.FC<LegacyDialogProps>;
4
+ export { LegacyDialog };
5
+ export default LegacyDialog;
@@ -0,0 +1,3 @@
1
+ export { LegacyDialog } from './LegacyDialog';
2
+ export { DialogMainIcon } from './DialogMainIcon';
3
+ export type { LegacyDialogProps } from './types';
@@ -1,4 +1,4 @@
1
- import * as React from 'react';
1
+ import type * as React from 'react';
2
2
  export interface LegacyDialogProps {
3
3
  /**
4
4
  * Dialog className (can be used to add more styles to mainIcon by targeting `main-icon` class in case of using a custom string)
@@ -11,7 +11,7 @@ export interface LegacyDialogProps {
11
11
  /**
12
12
  * Dialog content
13
13
  */
14
- children: React.ReactNode;
14
+ children?: React.ReactNode;
15
15
  /**
16
16
  * Dialog max-width on desktop
17
17
  */
@@ -41,11 +41,3 @@ export interface LegacyDialogProps {
41
41
  */
42
42
  onButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
43
43
  }
44
- /**
45
- * Dialog informs users about critical information or require decisions.
46
- *
47
- * `✅ Stable`
48
- */
49
- declare const LegacyDialog: React.FC<LegacyDialogProps>;
50
- export default LegacyDialog;
51
- //# sourceMappingURL=LegacyDialog.d.ts.map
@@ -0,0 +1,6 @@
1
+ import { LegacyPopupProps } from './types';
2
+ import * as React from 'react';
3
+ export declare const getSpaces: (value: Array<string | number | null | undefined> | string | number | null | undefined, defaultValue: string) => string[];
4
+ declare const LegacyPopup: React.FC<LegacyPopupProps>;
5
+ export { LegacyPopup };
6
+ export default LegacyPopup;
@@ -0,0 +1,2 @@
1
+ export { LegacyPopup, getSpaces } from './LegacyPopup';
2
+ export type { LegacyPopupProps } from './types';