@heymantle/litho 0.0.3 → 0.0.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 (353) hide show
  1. package/dist/cjs/components/ActionList.js +50 -16
  2. package/dist/cjs/components/AnnouncementBar.js +10 -3
  3. package/dist/cjs/components/AppProvider.js +10 -1
  4. package/dist/cjs/components/Autocomplete.js +33 -11
  5. package/dist/cjs/components/Badge.js +2 -1
  6. package/dist/cjs/components/Banner.js +35 -31
  7. package/dist/cjs/components/Box.js +5 -3
  8. package/dist/cjs/components/Button.js +34 -12
  9. package/dist/cjs/components/Card.js +5 -45
  10. package/dist/cjs/components/Checkbox.js +16 -6
  11. package/dist/cjs/components/ChoiceList.js +7 -4
  12. package/dist/cjs/components/ColorField.js +8 -3
  13. package/dist/cjs/components/DatePicker.js +13 -8
  14. package/dist/cjs/components/DropZone.js +33 -18
  15. package/dist/cjs/components/EmptyState.js +15 -7
  16. package/dist/cjs/components/Filters.js +32 -20
  17. package/dist/cjs/components/FooterHelp.js +7 -2
  18. package/dist/cjs/components/Form.js +18 -3
  19. package/dist/cjs/components/Frame.js +40 -15
  20. package/dist/cjs/components/FrameSaveBar.js +21 -12
  21. package/dist/cjs/components/Layout.js +3 -3
  22. package/dist/cjs/components/LayoutSection.js +2 -2
  23. package/dist/cjs/components/Link.js +6 -2
  24. package/dist/cjs/components/List.js +1 -0
  25. package/dist/cjs/components/Listbox.js +9 -4
  26. package/dist/cjs/components/Modal.js +26 -17
  27. package/dist/cjs/components/Navigation.js +30 -20
  28. package/dist/cjs/components/Page.js +8 -3
  29. package/dist/cjs/components/Pagination.js +11 -4
  30. package/dist/cjs/components/Pane.js +118 -35
  31. package/dist/cjs/components/Popover.js +59 -6
  32. package/dist/cjs/components/RangeSlider.js +11 -4
  33. package/dist/cjs/components/ResourceList.js +9 -3
  34. package/dist/cjs/components/Select.js +2 -0
  35. package/dist/cjs/components/Table.js +32 -19
  36. package/dist/cjs/components/Text.js +8 -5
  37. package/dist/cjs/components/TextField.js +23 -13
  38. package/dist/cjs/components/Thumbnail.js +7 -2
  39. package/dist/cjs/components/TimePicker.js +7 -2
  40. package/dist/cjs/components/Tip.js +10 -4
  41. package/dist/cjs/components/Tooltip.js +16 -8
  42. package/dist/cjs/components/TopBar.js +17 -9
  43. package/dist/cjs/dev/verify-publish.js +37 -4
  44. package/dist/cjs/postcss.config.js +21 -0
  45. package/dist/cjs/stories/ActionList.stories.js +365 -0
  46. package/dist/cjs/stories/AnnouncementBar.stories.js +244 -0
  47. package/dist/cjs/stories/Autocomplete.stories.js +871 -0
  48. package/dist/cjs/stories/Badge.stories.js +183 -0
  49. package/dist/cjs/stories/Banner.stories.js +201 -0
  50. package/dist/cjs/stories/Box.stories.js +599 -0
  51. package/dist/cjs/stories/Button.stories.js +325 -0
  52. package/dist/cjs/stories/ButtonGroup.stories.js +404 -0
  53. package/dist/cjs/stories/Card.stories.js +278 -0
  54. package/dist/cjs/stories/Checkbox.stories.js +266 -0
  55. package/dist/cjs/stories/ChoiceList.stories.js +884 -0
  56. package/dist/cjs/stories/Collapsible.stories.js +905 -0
  57. package/dist/cjs/stories/ColorField.stories.js +883 -0
  58. package/dist/cjs/stories/ContextualSaveBar.stories.js +970 -0
  59. package/dist/cjs/stories/DatePicker.stories.js +584 -0
  60. package/dist/cjs/stories/Divider.stories.js +759 -0
  61. package/dist/cjs/stories/DropZone.stories.js +1205 -0
  62. package/dist/cjs/stories/EmptyState.stories.js +296 -0
  63. package/dist/cjs/stories/Filters.stories.js +1353 -0
  64. package/dist/cjs/stories/FooterHelp.stories.js +869 -0
  65. package/dist/cjs/stories/Form.stories.js +940 -0
  66. package/dist/cjs/stories/Grid.stories.js +1199 -0
  67. package/dist/cjs/stories/HorizontalStack.stories.js +1064 -0
  68. package/dist/cjs/stories/Icon.stories.js +596 -0
  69. package/dist/cjs/stories/Image.stories.js +883 -0
  70. package/dist/cjs/stories/InlineError.stories.js +710 -0
  71. package/dist/cjs/stories/Label.stories.js +665 -0
  72. package/dist/cjs/stories/Layout.stories.js +685 -0
  73. package/dist/cjs/stories/LayoutSection.stories.js +1267 -0
  74. package/dist/cjs/stories/Link.stories.js +423 -0
  75. package/dist/cjs/stories/List.stories.js +1031 -0
  76. package/dist/cjs/stories/Listbox.stories.js +820 -0
  77. package/dist/cjs/stories/Loading.stories.js +900 -0
  78. package/dist/cjs/stories/Modal.stories.js +363 -0
  79. package/dist/cjs/stories/Navigation.stories.js +605 -0
  80. package/dist/cjs/stories/Page.stories.js +318 -0
  81. package/dist/cjs/stories/Pagination.stories.js +438 -0
  82. package/dist/cjs/stories/Pane.stories.js +1535 -0
  83. package/dist/cjs/stories/Popover.stories.js +637 -0
  84. package/dist/cjs/stories/PopoverManager.stories.js +1225 -0
  85. package/dist/cjs/stories/ProgressBar.stories.js +506 -0
  86. package/dist/cjs/stories/RadioButton.stories.js +642 -0
  87. package/dist/cjs/stories/RadioButtonCard.stories.js +816 -0
  88. package/dist/cjs/stories/RangeSlider.stories.js +892 -0
  89. package/dist/cjs/stories/ResourceList.stories.js +1067 -0
  90. package/dist/cjs/stories/Select.stories.js +413 -0
  91. package/dist/cjs/stories/SkeletonText.stories.js +776 -0
  92. package/dist/cjs/stories/Spinner.stories.js +396 -0
  93. package/dist/cjs/stories/Table.stories.js +628 -0
  94. package/dist/cjs/stories/Tabs.stories.js +723 -0
  95. package/dist/cjs/stories/Tag.stories.js +620 -0
  96. package/dist/cjs/stories/Text.stories.js +262 -0
  97. package/dist/cjs/stories/TextField.stories.js +377 -0
  98. package/dist/cjs/stories/Thumbnail.stories.js +859 -0
  99. package/dist/cjs/stories/TimePicker.stories.js +966 -0
  100. package/dist/cjs/stories/Tip.stories.js +753 -0
  101. package/dist/cjs/stories/Tooltip.stories.js +357 -0
  102. package/dist/cjs/stories/TopBar.stories.js +155 -0
  103. package/dist/cjs/stories/VerticalStack.stories.js +1287 -0
  104. package/dist/cjs/tailwind.config.js +17 -0
  105. package/dist/cjs/utilities/transformers.js +66 -0
  106. package/dist/cjs/vite.config.js +35 -0
  107. package/dist/esm/components/ActionList.js +41 -12
  108. package/dist/esm/components/AnnouncementBar.js +3 -1
  109. package/dist/esm/components/AppProvider.js +10 -1
  110. package/dist/esm/components/Autocomplete.js +21 -4
  111. package/dist/esm/components/Badge.js +2 -2
  112. package/dist/esm/components/Banner.js +20 -21
  113. package/dist/esm/components/Box.js +5 -4
  114. package/dist/esm/components/Button.js +24 -7
  115. package/dist/esm/components/Card.js +5 -4
  116. package/dist/esm/components/Checkbox.js +6 -1
  117. package/dist/esm/components/ChoiceList.js +7 -4
  118. package/dist/esm/components/ColorField.js +1 -1
  119. package/dist/esm/components/DatePicker.js +6 -1
  120. package/dist/esm/components/DropZone.js +14 -4
  121. package/dist/esm/components/EmptyState.js +4 -1
  122. package/dist/esm/components/Filters.js +10 -3
  123. package/dist/esm/components/FooterHelp.js +1 -1
  124. package/dist/esm/components/Form.js +18 -3
  125. package/dist/esm/components/Frame.js +18 -6
  126. package/dist/esm/components/FrameSaveBar.js +10 -6
  127. package/dist/esm/components/InlineError.js +1 -1
  128. package/dist/esm/components/Layout.js +4 -4
  129. package/dist/esm/components/LayoutSection.js +2 -2
  130. package/dist/esm/components/Link.js +6 -2
  131. package/dist/esm/components/List.js +1 -0
  132. package/dist/esm/components/Listbox.js +4 -4
  133. package/dist/esm/components/Modal.js +8 -4
  134. package/dist/esm/components/Navigation.js +16 -11
  135. package/dist/esm/components/Page.js +9 -4
  136. package/dist/esm/components/Pagination.js +3 -1
  137. package/dist/esm/components/Pane.js +114 -36
  138. package/dist/esm/components/Popover.js +18 -6
  139. package/dist/esm/components/RangeSlider.js +3 -1
  140. package/dist/esm/components/ResourceList.js +2 -1
  141. package/dist/esm/components/Select.js +2 -0
  142. package/dist/esm/components/Table.js +16 -3
  143. package/dist/esm/components/Text.js +8 -6
  144. package/dist/esm/components/TextField.js +6 -1
  145. package/dist/esm/components/Thumbnail.js +1 -1
  146. package/dist/esm/components/TimePicker.js +1 -1
  147. package/dist/esm/components/Tip.js +3 -2
  148. package/dist/esm/components/Tooltip.js +4 -1
  149. package/dist/esm/components/TopBar.js +7 -4
  150. package/dist/esm/dev/verify-publish.js +37 -4
  151. package/dist/esm/postcss.config.js +6 -0
  152. package/dist/esm/stories/ActionList.stories.js +327 -0
  153. package/dist/esm/stories/AnnouncementBar.stories.js +212 -0
  154. package/dist/esm/stories/Autocomplete.stories.js +833 -0
  155. package/dist/esm/stories/Badge.stories.js +138 -0
  156. package/dist/esm/stories/Banner.stories.js +159 -0
  157. package/dist/esm/stories/Box.stories.js +558 -0
  158. package/dist/esm/stories/Button.stories.js +277 -0
  159. package/dist/esm/stories/ButtonGroup.stories.js +357 -0
  160. package/dist/esm/stories/Card.stories.js +240 -0
  161. package/dist/esm/stories/Checkbox.stories.js +219 -0
  162. package/dist/esm/stories/ChoiceList.stories.js +834 -0
  163. package/dist/esm/stories/Collapsible.stories.js +867 -0
  164. package/dist/esm/stories/ColorField.stories.js +842 -0
  165. package/dist/esm/stories/ContextualSaveBar.stories.js +938 -0
  166. package/dist/esm/stories/DatePicker.stories.js +537 -0
  167. package/dist/esm/stories/Divider.stories.js +715 -0
  168. package/dist/esm/stories/DropZone.stories.js +1161 -0
  169. package/dist/esm/stories/EmptyState.stories.js +246 -0
  170. package/dist/esm/stories/Filters.stories.js +1315 -0
  171. package/dist/esm/stories/FooterHelp.stories.js +813 -0
  172. package/dist/esm/stories/Form.stories.js +905 -0
  173. package/dist/esm/stories/Grid.stories.js +1152 -0
  174. package/dist/esm/stories/HorizontalStack.stories.js +1011 -0
  175. package/dist/esm/stories/Icon.stories.js +555 -0
  176. package/dist/esm/stories/Image.stories.js +836 -0
  177. package/dist/esm/stories/InlineError.stories.js +666 -0
  178. package/dist/esm/stories/Label.stories.js +612 -0
  179. package/dist/esm/stories/Layout.stories.js +647 -0
  180. package/dist/esm/stories/LayoutSection.stories.js +1226 -0
  181. package/dist/esm/stories/Link.stories.js +379 -0
  182. package/dist/esm/stories/List.stories.js +975 -0
  183. package/dist/esm/stories/Listbox.stories.js +776 -0
  184. package/dist/esm/stories/Loading.stories.js +850 -0
  185. package/dist/esm/stories/Modal.stories.js +322 -0
  186. package/dist/esm/stories/Navigation.stories.js +567 -0
  187. package/dist/esm/stories/Page.stories.js +276 -0
  188. package/dist/esm/stories/Pagination.stories.js +394 -0
  189. package/dist/esm/stories/Pane.stories.js +1497 -0
  190. package/dist/esm/stories/Popover.stories.js +605 -0
  191. package/dist/esm/stories/PopoverManager.stories.js +1193 -0
  192. package/dist/esm/stories/ProgressBar.stories.js +465 -0
  193. package/dist/esm/stories/RadioButton.stories.js +598 -0
  194. package/dist/esm/stories/RadioButtonCard.stories.js +772 -0
  195. package/dist/esm/stories/RangeSlider.stories.js +845 -0
  196. package/dist/esm/stories/ResourceList.stories.js +1029 -0
  197. package/dist/esm/stories/Select.stories.js +363 -0
  198. package/dist/esm/stories/SkeletonText.stories.js +717 -0
  199. package/dist/esm/stories/Spinner.stories.js +355 -0
  200. package/dist/esm/stories/Table.stories.js +584 -0
  201. package/dist/esm/stories/Tabs.stories.js +685 -0
  202. package/dist/esm/stories/Tag.stories.js +573 -0
  203. package/dist/esm/stories/Text.stories.js +217 -0
  204. package/dist/esm/stories/TextField.stories.js +332 -0
  205. package/dist/esm/stories/Thumbnail.stories.js +806 -0
  206. package/dist/esm/stories/TimePicker.stories.js +910 -0
  207. package/dist/esm/stories/Tip.stories.js +706 -0
  208. package/dist/esm/stories/Tooltip.stories.js +313 -0
  209. package/dist/esm/stories/TopBar.stories.js +114 -0
  210. package/dist/esm/stories/VerticalStack.stories.js +1240 -0
  211. package/dist/esm/tailwind.config.js +7 -0
  212. package/dist/esm/utilities/transformers.js +47 -0
  213. package/dist/esm/vite.config.js +20 -0
  214. package/dist/types/components/ActionList.d.ts +122 -0
  215. package/dist/types/components/ActionList.d.ts.map +1 -0
  216. package/dist/types/components/AnnouncementBar.d.ts +21 -0
  217. package/dist/types/components/AnnouncementBar.d.ts.map +1 -0
  218. package/dist/types/components/AppProvider.d.ts +61 -0
  219. package/dist/types/components/AppProvider.d.ts.map +1 -0
  220. package/dist/types/components/Autocomplete.d.ts +130 -0
  221. package/dist/types/components/Autocomplete.d.ts.map +1 -0
  222. package/dist/types/components/Badge.d.ts +21 -0
  223. package/dist/types/components/Badge.d.ts.map +1 -0
  224. package/dist/types/components/Banner.d.ts +78 -0
  225. package/dist/types/components/Banner.d.ts.map +1 -0
  226. package/dist/types/components/Box.d.ts +70 -0
  227. package/dist/types/components/Box.d.ts.map +1 -0
  228. package/dist/types/components/Button.d.ts +123 -0
  229. package/dist/types/components/Button.d.ts.map +1 -0
  230. package/dist/types/components/ButtonGroup.d.ts +26 -0
  231. package/dist/types/components/ButtonGroup.d.ts.map +1 -0
  232. package/dist/types/components/Card.d.ts +139 -0
  233. package/dist/types/components/Card.d.ts.map +1 -0
  234. package/dist/types/components/Checkbox.d.ts +56 -0
  235. package/dist/types/components/Checkbox.d.ts.map +1 -0
  236. package/dist/types/components/ChoiceList.d.ts +69 -0
  237. package/dist/types/components/ChoiceList.d.ts.map +1 -0
  238. package/dist/types/components/Collapsible.d.ts +17 -0
  239. package/dist/types/components/Collapsible.d.ts.map +1 -0
  240. package/dist/types/components/ColorField.d.ts +36 -0
  241. package/dist/types/components/ColorField.d.ts.map +1 -0
  242. package/dist/types/components/ContextualSaveBar.d.ts +22 -0
  243. package/dist/types/components/ContextualSaveBar.d.ts.map +1 -0
  244. package/dist/types/components/DatePicker.d.ts +66 -0
  245. package/dist/types/components/DatePicker.d.ts.map +1 -0
  246. package/dist/types/components/Divider.d.ts +21 -0
  247. package/dist/types/components/Divider.d.ts.map +1 -0
  248. package/dist/types/components/DropZone.d.ts +108 -0
  249. package/dist/types/components/DropZone.d.ts.map +1 -0
  250. package/dist/types/components/EmptyState.d.ts +52 -0
  251. package/dist/types/components/EmptyState.d.ts.map +1 -0
  252. package/dist/types/components/Filters.d.ts +166 -0
  253. package/dist/types/components/Filters.d.ts.map +1 -0
  254. package/dist/types/components/FooterHelp.d.ts +21 -0
  255. package/dist/types/components/FooterHelp.d.ts.map +1 -0
  256. package/dist/types/components/Form.d.ts +39 -0
  257. package/dist/types/components/Form.d.ts.map +1 -0
  258. package/dist/types/components/Frame.d.ts +51 -0
  259. package/dist/types/components/Frame.d.ts.map +1 -0
  260. package/dist/types/components/FrameSaveBar.d.ts +8 -0
  261. package/dist/types/components/FrameSaveBar.d.ts.map +1 -0
  262. package/dist/types/components/Grid.d.ts +39 -0
  263. package/dist/types/components/Grid.d.ts.map +1 -0
  264. package/dist/types/components/HorizontalStack.d.ts +36 -0
  265. package/dist/types/components/HorizontalStack.d.ts.map +1 -0
  266. package/dist/types/components/Icon.d.ts +43 -0
  267. package/dist/types/components/Icon.d.ts.map +1 -0
  268. package/dist/types/components/Image.d.ts +45 -0
  269. package/dist/types/components/Image.d.ts.map +1 -0
  270. package/dist/types/components/InlineError.d.ts +22 -0
  271. package/dist/types/components/InlineError.d.ts.map +1 -0
  272. package/dist/types/components/Label.d.ts +28 -0
  273. package/dist/types/components/Label.d.ts.map +1 -0
  274. package/dist/types/components/Layout.d.ts +44 -0
  275. package/dist/types/components/Layout.d.ts.map +1 -0
  276. package/dist/types/components/LayoutSection.d.ts +24 -0
  277. package/dist/types/components/LayoutSection.d.ts.map +1 -0
  278. package/dist/types/components/Link.d.ts +38 -0
  279. package/dist/types/components/Link.d.ts.map +1 -0
  280. package/dist/types/components/List.d.ts +33 -0
  281. package/dist/types/components/List.d.ts.map +1 -0
  282. package/dist/types/components/Listbox.d.ts +34 -0
  283. package/dist/types/components/Listbox.d.ts.map +1 -0
  284. package/dist/types/components/Loading.d.ts +13 -0
  285. package/dist/types/components/Loading.d.ts.map +1 -0
  286. package/dist/types/components/Modal.d.ts +75 -0
  287. package/dist/types/components/Modal.d.ts.map +1 -0
  288. package/dist/types/components/Navigation.d.ts +105 -0
  289. package/dist/types/components/Navigation.d.ts.map +1 -0
  290. package/dist/types/components/Page.d.ts +59 -0
  291. package/dist/types/components/Page.d.ts.map +1 -0
  292. package/dist/types/components/Pagination.d.ts +39 -0
  293. package/dist/types/components/Pagination.d.ts.map +1 -0
  294. package/dist/types/components/Pane.d.ts +11 -0
  295. package/dist/types/components/Pane.d.ts.map +1 -0
  296. package/dist/types/components/Popover.d.ts +56 -0
  297. package/dist/types/components/Popover.d.ts.map +1 -0
  298. package/dist/types/components/PopoverManager.d.ts +3 -0
  299. package/dist/types/components/PopoverManager.d.ts.map +1 -0
  300. package/dist/types/components/ProgressBar.d.ts +24 -0
  301. package/dist/types/components/ProgressBar.d.ts.map +1 -0
  302. package/dist/types/components/RadioButton.d.ts +39 -0
  303. package/dist/types/components/RadioButton.d.ts.map +1 -0
  304. package/dist/types/components/RadioButtonCard.d.ts +41 -0
  305. package/dist/types/components/RadioButtonCard.d.ts.map +1 -0
  306. package/dist/types/components/RangeSlider.d.ts +44 -0
  307. package/dist/types/components/RangeSlider.d.ts.map +1 -0
  308. package/dist/types/components/ResourceList.d.ts +54 -0
  309. package/dist/types/components/ResourceList.d.ts.map +1 -0
  310. package/dist/types/components/Select.d.ts +48 -0
  311. package/dist/types/components/Select.d.ts.map +1 -0
  312. package/dist/types/components/SkeletonText.d.ts +28 -0
  313. package/dist/types/components/SkeletonText.d.ts.map +1 -0
  314. package/dist/types/components/Spinner.d.ts +18 -0
  315. package/dist/types/components/Spinner.d.ts.map +1 -0
  316. package/dist/types/components/Table.d.ts +197 -0
  317. package/dist/types/components/Table.d.ts.map +1 -0
  318. package/dist/types/components/Tabs.d.ts +41 -0
  319. package/dist/types/components/Tabs.d.ts.map +1 -0
  320. package/dist/types/components/Tag.d.ts +26 -0
  321. package/dist/types/components/Tag.d.ts.map +1 -0
  322. package/dist/types/components/Text.d.ts +32 -0
  323. package/dist/types/components/Text.d.ts.map +1 -0
  324. package/dist/types/components/TextField.d.ts +109 -0
  325. package/dist/types/components/TextField.d.ts.map +1 -0
  326. package/dist/types/components/Thumbnail.d.ts +18 -0
  327. package/dist/types/components/Thumbnail.d.ts.map +1 -0
  328. package/dist/types/components/TimePicker.d.ts +3 -0
  329. package/dist/types/components/TimePicker.d.ts.map +1 -0
  330. package/dist/types/components/Tip.d.ts +23 -0
  331. package/dist/types/components/Tip.d.ts.map +1 -0
  332. package/dist/types/components/Tooltip.d.ts +84 -0
  333. package/dist/types/components/Tooltip.d.ts.map +1 -0
  334. package/dist/types/components/TopBar.d.ts +43 -0
  335. package/dist/types/components/TopBar.d.ts.map +1 -0
  336. package/dist/types/components/VerticalStack.d.ts +27 -0
  337. package/dist/types/components/VerticalStack.d.ts.map +1 -0
  338. package/dist/types/index.d.ts +62 -0
  339. package/dist/types/index.d.ts.map +1 -0
  340. package/dist/types/styles/Table.d.ts +1570 -0
  341. package/dist/types/styles/Table.d.ts.map +1 -0
  342. package/dist/types/utilities/dates.d.ts +46 -0
  343. package/dist/types/utilities/dates.d.ts.map +1 -0
  344. package/dist/types/utilities/transformers.d.ts +4 -0
  345. package/dist/types/utilities/transformers.d.ts.map +1 -0
  346. package/dist/types/utilities/useIndexResourceState.d.ts +21 -0
  347. package/dist/types/utilities/useIndexResourceState.d.ts.map +1 -0
  348. package/dist/types/utilities/useMounted.d.ts +2 -0
  349. package/dist/types/utilities/useMounted.d.ts.map +1 -0
  350. package/dist/types/utilities/useTableScrollState.d.ts +29 -0
  351. package/dist/types/utilities/useTableScrollState.d.ts.map +1 -0
  352. package/index.css +6 -0
  353. package/package.json +37 -6
@@ -0,0 +1,883 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: Object.getOwnPropertyDescriptor(all, name).get
9
+ });
10
+ }
11
+ _export(exports, {
12
+ get CustomZIndex () {
13
+ return CustomZIndex;
14
+ },
15
+ get Default () {
16
+ return Default;
17
+ },
18
+ get DesignSystemColors () {
19
+ return DesignSystemColors;
20
+ },
21
+ get MultipleColorFields () {
22
+ return MultipleColorFields;
23
+ },
24
+ get ProductCustomization () {
25
+ return ProductCustomization;
26
+ },
27
+ get ResponsiveBehavior () {
28
+ return ResponsiveBehavior;
29
+ },
30
+ get WithPresetColors () {
31
+ return WithPresetColors;
32
+ },
33
+ get default () {
34
+ return _default;
35
+ }
36
+ });
37
+ var _jsxruntime = require("react/jsx-runtime");
38
+ var _react = require("react");
39
+ var _ColorField = /*#__PURE__*/ _interop_require_default(require("../components/ColorField.js"));
40
+ var _Text = /*#__PURE__*/ _interop_require_default(require("../components/Text.js"));
41
+ var _Card = /*#__PURE__*/ _interop_require_default(require("../components/Card.js"));
42
+ var _Button = /*#__PURE__*/ _interop_require_default(require("../components/Button.js"));
43
+ var _VerticalStack = /*#__PURE__*/ _interop_require_default(require("../components/VerticalStack.js"));
44
+ var _HorizontalStack = /*#__PURE__*/ _interop_require_default(require("../components/HorizontalStack.js"));
45
+ var _Box = /*#__PURE__*/ _interop_require_default(require("../components/Box.js"));
46
+ var _Grid = /*#__PURE__*/ _interop_require_default(require("../components/Grid.js"));
47
+ var _transformers = require("../utilities/transformers.js");
48
+ function _array_like_to_array(arr, len) {
49
+ if (len == null || len > arr.length) len = arr.length;
50
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
51
+ return arr2;
52
+ }
53
+ function _array_with_holes(arr) {
54
+ if (Array.isArray(arr)) return arr;
55
+ }
56
+ function _define_property(obj, key, value) {
57
+ if (key in obj) {
58
+ Object.defineProperty(obj, key, {
59
+ value: value,
60
+ enumerable: true,
61
+ configurable: true,
62
+ writable: true
63
+ });
64
+ } else {
65
+ obj[key] = value;
66
+ }
67
+ return obj;
68
+ }
69
+ function _interop_require_default(obj) {
70
+ return obj && obj.__esModule ? obj : {
71
+ default: obj
72
+ };
73
+ }
74
+ function _iterable_to_array_limit(arr, i) {
75
+ var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
76
+ if (_i == null) return;
77
+ var _arr = [];
78
+ var _n = true;
79
+ var _d = false;
80
+ var _s, _e;
81
+ try {
82
+ for(_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true){
83
+ _arr.push(_s.value);
84
+ if (i && _arr.length === i) break;
85
+ }
86
+ } catch (err) {
87
+ _d = true;
88
+ _e = err;
89
+ } finally{
90
+ try {
91
+ if (!_n && _i["return"] != null) _i["return"]();
92
+ } finally{
93
+ if (_d) throw _e;
94
+ }
95
+ }
96
+ return _arr;
97
+ }
98
+ function _non_iterable_rest() {
99
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
100
+ }
101
+ function _object_spread(target) {
102
+ for(var i = 1; i < arguments.length; i++){
103
+ var source = arguments[i] != null ? arguments[i] : {};
104
+ var ownKeys = Object.keys(source);
105
+ if (typeof Object.getOwnPropertySymbols === "function") {
106
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
107
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
108
+ }));
109
+ }
110
+ ownKeys.forEach(function(key) {
111
+ _define_property(target, key, source[key]);
112
+ });
113
+ }
114
+ return target;
115
+ }
116
+ function ownKeys(object, enumerableOnly) {
117
+ var keys = Object.keys(object);
118
+ if (Object.getOwnPropertySymbols) {
119
+ var symbols = Object.getOwnPropertySymbols(object);
120
+ if (enumerableOnly) {
121
+ symbols = symbols.filter(function(sym) {
122
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
123
+ });
124
+ }
125
+ keys.push.apply(keys, symbols);
126
+ }
127
+ return keys;
128
+ }
129
+ function _object_spread_props(target, source) {
130
+ source = source != null ? source : {};
131
+ if (Object.getOwnPropertyDescriptors) {
132
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
133
+ } else {
134
+ ownKeys(Object(source)).forEach(function(key) {
135
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
136
+ });
137
+ }
138
+ return target;
139
+ }
140
+ function _sliced_to_array(arr, i) {
141
+ return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
142
+ }
143
+ function _unsupported_iterable_to_array(o, minLen) {
144
+ if (!o) return;
145
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
146
+ var n = Object.prototype.toString.call(o).slice(8, -1);
147
+ if (n === "Object" && o.constructor) n = o.constructor.name;
148
+ if (n === "Map" || n === "Set") return Array.from(n);
149
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
150
+ }
151
+ var _default = {
152
+ title: "Litho/ColorField",
153
+ component: _ColorField.default,
154
+ parameters: {
155
+ layout: "padded",
156
+ docs: {
157
+ description: {
158
+ component: "A ColorField component that provides an intuitive color picker interface using SketchPicker. It displays the selected color with a preview swatch and hex value, and opens a color picker when clicked."
159
+ }
160
+ }
161
+ },
162
+ args: {
163
+ label: "Primary Color",
164
+ name: "primary",
165
+ value: "#3366cc"
166
+ },
167
+ tags: [
168
+ "autodocs"
169
+ ],
170
+ argTypes: {
171
+ label: {
172
+ control: "text",
173
+ description: "Label displayed above the color value"
174
+ },
175
+ name: {
176
+ control: "text",
177
+ description: "Name of the color field, used as a key"
178
+ },
179
+ value: {
180
+ control: "color",
181
+ description: "Currently selected color value (hex string or CSS variable)"
182
+ },
183
+ onChange: {
184
+ control: false,
185
+ description: "Callback function called when color changes"
186
+ },
187
+ zIndexOverride: {
188
+ control: "number",
189
+ description: "Custom z-index for the color picker popover"
190
+ },
191
+ presetColors: {
192
+ control: "object",
193
+ description: "Array of preset colors shown in the picker"
194
+ }
195
+ }
196
+ };
197
+ var Default = {
198
+ render: function(args) {
199
+ var _useState = _sliced_to_array((0, _react.useState)(args.value), 2), color = _useState[0], setColor = _useState[1];
200
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Card.default, {
201
+ title: "Color Selection",
202
+ padded: true,
203
+ maxInlineSize: "300",
204
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, _object_spread_props(_object_spread({}, args), {
205
+ value: color,
206
+ onChange: setColor
207
+ }))
208
+ });
209
+ },
210
+ parameters: {
211
+ docs: {
212
+ source: {
213
+ transform: _transformers.transformStorySource
214
+ }
215
+ }
216
+ }
217
+ };
218
+ var WithPresetColors = {
219
+ render: function() {
220
+ var _useState = _sliced_to_array((0, _react.useState)("#e74c3c"), 2), color = _useState[0], setColor = _useState[1];
221
+ var brandColors = [
222
+ "#e74c3c",
223
+ "#3498db",
224
+ "#2ecc71",
225
+ "#f39c12",
226
+ "#9b59b6",
227
+ "#1abc9c",
228
+ "#34495e",
229
+ "#95a5a6"
230
+ ];
231
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Card.default, {
232
+ title: "Brand Color Picker",
233
+ padded: true,
234
+ maxInlineSize: "300",
235
+ children: [
236
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
237
+ label: "Brand Color",
238
+ name: "brand",
239
+ value: color,
240
+ onChange: setColor,
241
+ presetColors: brandColors
242
+ }),
243
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
244
+ paddingBlockStart: "4",
245
+ padding: "2",
246
+ background: "subdued",
247
+ borderRadius: "default",
248
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Text.default, {
249
+ variant: "bodySm",
250
+ children: [
251
+ "Selected: ",
252
+ color
253
+ ]
254
+ })
255
+ })
256
+ ]
257
+ });
258
+ },
259
+ parameters: {
260
+ docs: {
261
+ source: {
262
+ transform: _transformers.transformStorySource
263
+ },
264
+ description: {
265
+ story: "Color field with preset brand colors for quick selection."
266
+ }
267
+ }
268
+ }
269
+ };
270
+ var MultipleColorFields = {
271
+ render: function() {
272
+ var _useState = _sliced_to_array((0, _react.useState)({
273
+ primary: "#3498db",
274
+ secondary: "#2ecc71",
275
+ accent: "#e74c3c",
276
+ background: "#ecf0f1"
277
+ }), 2), colors = _useState[0], setColors = _useState[1];
278
+ var updateColor = function(name, newColor) {
279
+ setColors(function(prev) {
280
+ return _object_spread_props(_object_spread({}, prev), _define_property({}, name, newColor));
281
+ });
282
+ };
283
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Card.default, {
284
+ title: "Theme Color Configuration",
285
+ padded: true,
286
+ maxInlineSize: "400",
287
+ children: [
288
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_VerticalStack.default, {
289
+ gap: "6",
290
+ children: [
291
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
292
+ label: "Primary Color",
293
+ name: "primary",
294
+ value: colors.primary,
295
+ onChange: function(color) {
296
+ return updateColor("primary", color);
297
+ }
298
+ }),
299
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
300
+ label: "Secondary Color",
301
+ name: "secondary",
302
+ value: colors.secondary,
303
+ onChange: function(color) {
304
+ return updateColor("secondary", color);
305
+ }
306
+ }),
307
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
308
+ label: "Accent Color",
309
+ name: "accent",
310
+ value: colors.accent,
311
+ onChange: function(color) {
312
+ return updateColor("accent", color);
313
+ }
314
+ }),
315
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
316
+ label: "Background Color",
317
+ name: "background",
318
+ value: colors.background,
319
+ onChange: function(color) {
320
+ return updateColor("background", color);
321
+ }
322
+ })
323
+ ]
324
+ }),
325
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
326
+ paddingBlockStart: "8",
327
+ padding: "4",
328
+ borderWidth: "025",
329
+ borderColor: "border",
330
+ borderRadius: "default",
331
+ children: [
332
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
333
+ variant: "headingSm",
334
+ children: "Color Preview"
335
+ }),
336
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
337
+ paddingBlockStart: "4",
338
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Grid.default, {
339
+ columns: 2,
340
+ gap: "2",
341
+ children: Object.entries(colors).map(function(param) {
342
+ var _param = _sliced_to_array(param, 2), name = _param[0], color = _param[1];
343
+ return /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
344
+ padding: "2",
345
+ borderRadius: "default",
346
+ style: {
347
+ backgroundColor: color,
348
+ textAlign: "center",
349
+ color: name === "background" ? "#333" : "#fff"
350
+ },
351
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
352
+ variant: "bodySm",
353
+ style: {
354
+ color: name === "background" ? "#333" : "#fff",
355
+ textTransform: "capitalize"
356
+ },
357
+ children: name
358
+ })
359
+ }, name);
360
+ })
361
+ })
362
+ })
363
+ ]
364
+ })
365
+ ]
366
+ });
367
+ },
368
+ parameters: {
369
+ docs: {
370
+ source: {
371
+ transform: _transformers.transformStorySource
372
+ },
373
+ description: {
374
+ story: "Multiple color fields for comprehensive theme configuration."
375
+ }
376
+ }
377
+ }
378
+ };
379
+ var DesignSystemColors = {
380
+ render: function() {
381
+ var _useState = _sliced_to_array((0, _react.useState)({
382
+ primary: "#007ace",
383
+ success: "#28a745",
384
+ warning: "#ffc107",
385
+ danger: "#dc3545",
386
+ info: "#17a2b8"
387
+ }), 2), designColors = _useState[0], setDesignColors = _useState[1];
388
+ var updateDesignColor = function(name, newColor) {
389
+ setDesignColors(function(prev) {
390
+ return _object_spread_props(_object_spread({}, prev), _define_property({}, name, newColor));
391
+ });
392
+ };
393
+ var resetToDefaults = function() {
394
+ setDesignColors({
395
+ primary: "#007ace",
396
+ success: "#28a745",
397
+ warning: "#ffc107",
398
+ danger: "#dc3545",
399
+ info: "#17a2b8"
400
+ });
401
+ };
402
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_HorizontalStack.default, {
403
+ gap: "8",
404
+ children: [
405
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Card.default, {
406
+ title: "Design System Colors",
407
+ padded: true,
408
+ maxInlineSize: "350",
409
+ children: [
410
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_VerticalStack.default, {
411
+ gap: "6",
412
+ children: [
413
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
414
+ label: "Primary",
415
+ name: "primary",
416
+ value: designColors.primary,
417
+ onChange: function(color) {
418
+ return updateDesignColor("primary", color);
419
+ }
420
+ }),
421
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
422
+ label: "Success",
423
+ name: "success",
424
+ value: designColors.success,
425
+ onChange: function(color) {
426
+ return updateDesignColor("success", color);
427
+ }
428
+ }),
429
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
430
+ label: "Warning",
431
+ name: "warning",
432
+ value: designColors.warning,
433
+ onChange: function(color) {
434
+ return updateDesignColor("warning", color);
435
+ }
436
+ }),
437
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
438
+ label: "Danger",
439
+ name: "danger",
440
+ value: designColors.danger,
441
+ onChange: function(color) {
442
+ return updateDesignColor("danger", color);
443
+ }
444
+ }),
445
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
446
+ label: "Info",
447
+ name: "info",
448
+ value: designColors.info,
449
+ onChange: function(color) {
450
+ return updateDesignColor("info", color);
451
+ }
452
+ })
453
+ ]
454
+ }),
455
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
456
+ paddingBlockStart: "8",
457
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Button.default, {
458
+ onClick: resetToDefaults,
459
+ size: "slim",
460
+ children: "Reset to Defaults"
461
+ })
462
+ })
463
+ ]
464
+ }),
465
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Card.default, {
466
+ title: "Component Preview",
467
+ padded: true,
468
+ style: {
469
+ flex: 1
470
+ },
471
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_VerticalStack.default, {
472
+ gap: "4",
473
+ children: [
474
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
475
+ padding: "4",
476
+ borderRadius: "default",
477
+ style: {
478
+ backgroundColor: designColors.primary,
479
+ textAlign: "center"
480
+ },
481
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
482
+ color: "text-inverse",
483
+ children: "Primary Button"
484
+ })
485
+ }),
486
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
487
+ padding: "3",
488
+ borderRadius: "default",
489
+ style: {
490
+ backgroundColor: designColors.success,
491
+ textAlign: "center"
492
+ },
493
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
494
+ color: "text-inverse",
495
+ children: "Success Message"
496
+ })
497
+ }),
498
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
499
+ padding: "3",
500
+ borderRadius: "default",
501
+ style: {
502
+ backgroundColor: designColors.warning,
503
+ textAlign: "center"
504
+ },
505
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
506
+ style: {
507
+ color: "#333"
508
+ },
509
+ children: "Warning Alert"
510
+ })
511
+ }),
512
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
513
+ padding: "3",
514
+ borderRadius: "default",
515
+ style: {
516
+ backgroundColor: designColors.danger,
517
+ textAlign: "center"
518
+ },
519
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
520
+ color: "text-inverse",
521
+ children: "Error Message"
522
+ })
523
+ }),
524
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
525
+ padding: "3",
526
+ background: "info",
527
+ borderRadius: "default",
528
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
529
+ color: "text-inverse",
530
+ children: "Info Notification"
531
+ })
532
+ })
533
+ ]
534
+ })
535
+ })
536
+ ]
537
+ });
538
+ },
539
+ parameters: {
540
+ docs: {
541
+ source: {
542
+ transform: _transformers.transformStorySource
543
+ },
544
+ description: {
545
+ story: "Design system color configuration with live component preview."
546
+ }
547
+ }
548
+ }
549
+ };
550
+ var CustomZIndex = {
551
+ render: function() {
552
+ var _useState = _sliced_to_array((0, _react.useState)("#9c27b0"), 2), color = _useState[0], setColor = _useState[1];
553
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
554
+ children: [
555
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Card.default, {
556
+ title: "High Z-Index Color Picker",
557
+ padded: true,
558
+ maxInlineSize: "300",
559
+ children: [
560
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
561
+ variant: "bodySm",
562
+ children: "This color picker has a custom z-index of 9999 to ensure it appears above other elements."
563
+ }),
564
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
565
+ label: "Overlay Color",
566
+ name: "overlay",
567
+ value: color,
568
+ onChange: setColor,
569
+ zIndexOverride: 9999
570
+ })
571
+ ]
572
+ }),
573
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
574
+ paddingBlockStart: "4",
575
+ padding: "4",
576
+ background: "subdued",
577
+ borderRadius: "default",
578
+ style: {
579
+ position: "relative",
580
+ zIndex: 100
581
+ },
582
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
583
+ children: "This content has z-index: 100, but the color picker above will still appear on top when opened due to its custom z-index override."
584
+ })
585
+ })
586
+ ]
587
+ });
588
+ },
589
+ parameters: {
590
+ docs: {
591
+ source: {
592
+ transform: _transformers.transformStorySource
593
+ },
594
+ description: {
595
+ story: "Color field with custom z-index for complex layering scenarios."
596
+ }
597
+ }
598
+ }
599
+ };
600
+ var ProductCustomization = {
601
+ render: function() {
602
+ var _useState = _sliced_to_array((0, _react.useState)({
603
+ frame: "#2c3e50",
604
+ lens: "#3498db",
605
+ temple: "#e74c3c"
606
+ }), 2), productColors = _useState[0], setProductColors = _useState[1];
607
+ var updateProductColor = function(part, color) {
608
+ setProductColors(function(prev) {
609
+ return _object_spread_props(_object_spread({}, prev), _define_property({}, part, color));
610
+ });
611
+ };
612
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_HorizontalStack.default, {
613
+ gap: "8",
614
+ children: [
615
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Card.default, {
616
+ title: "Customize Your Sunglasses",
617
+ padded: true,
618
+ maxInlineSize: "300",
619
+ children: [
620
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_VerticalStack.default, {
621
+ gap: "6",
622
+ children: [
623
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
624
+ label: "Frame Color",
625
+ name: "frame",
626
+ value: productColors.frame,
627
+ onChange: function(color) {
628
+ return updateProductColor("frame", color);
629
+ },
630
+ presetColors: [
631
+ "#2c3e50",
632
+ "#34495e",
633
+ "#95a5a6",
634
+ "#ecf0f1"
635
+ ]
636
+ }),
637
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
638
+ label: "Lens Color",
639
+ name: "lens",
640
+ value: productColors.lens,
641
+ onChange: function(color) {
642
+ return updateProductColor("lens", color);
643
+ },
644
+ presetColors: [
645
+ "#3498db",
646
+ "#2ecc71",
647
+ "#f39c12",
648
+ "#9b59b6"
649
+ ]
650
+ }),
651
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
652
+ label: "Temple Color",
653
+ name: "temple",
654
+ value: productColors.temple,
655
+ onChange: function(color) {
656
+ return updateProductColor("temple", color);
657
+ },
658
+ presetColors: [
659
+ "#e74c3c",
660
+ "#e67e22",
661
+ "#f1c40f",
662
+ "#1abc9c"
663
+ ]
664
+ })
665
+ ]
666
+ }),
667
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Box.default, {
668
+ paddingBlockStart: "8",
669
+ padding: "4",
670
+ background: "subdued",
671
+ borderRadius: "default",
672
+ children: [
673
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
674
+ variant: "headingSm",
675
+ children: "Configuration"
676
+ }),
677
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
678
+ paddingBlockStart: "2",
679
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)(_VerticalStack.default, {
680
+ gap: "1",
681
+ children: [
682
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Text.default, {
683
+ variant: "bodySm",
684
+ children: [
685
+ "Frame: ",
686
+ productColors.frame
687
+ ]
688
+ }),
689
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Text.default, {
690
+ variant: "bodySm",
691
+ children: [
692
+ "Lens: ",
693
+ productColors.lens
694
+ ]
695
+ }),
696
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Text.default, {
697
+ variant: "bodySm",
698
+ children: [
699
+ "Temple: ",
700
+ productColors.temple
701
+ ]
702
+ })
703
+ ]
704
+ })
705
+ })
706
+ ]
707
+ })
708
+ ]
709
+ }),
710
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Card.default, {
711
+ title: "Product Preview",
712
+ padded: true,
713
+ style: {
714
+ flex: 1
715
+ },
716
+ children: [
717
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_HorizontalStack.default, {
718
+ align: "center",
719
+ blockAlign: "center",
720
+ style: {
721
+ minHeight: "200px"
722
+ },
723
+ children: /*#__PURE__*/ (0, _jsxruntime.jsxs)("div", {
724
+ style: {
725
+ position: "relative",
726
+ width: "200px",
727
+ height: "80px"
728
+ },
729
+ children: [
730
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
731
+ style: {
732
+ position: "absolute",
733
+ top: "20px",
734
+ left: "20px",
735
+ width: "60px",
736
+ height: "40px",
737
+ backgroundColor: productColors.lens,
738
+ borderRadius: "50%",
739
+ border: "3px solid ".concat(productColors.frame)
740
+ }
741
+ }),
742
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
743
+ style: {
744
+ position: "absolute",
745
+ top: "20px",
746
+ right: "20px",
747
+ width: "60px",
748
+ height: "40px",
749
+ backgroundColor: productColors.lens,
750
+ borderRadius: "50%",
751
+ border: "3px solid ".concat(productColors.frame)
752
+ }
753
+ }),
754
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
755
+ style: {
756
+ position: "absolute",
757
+ top: "37px",
758
+ left: "83px",
759
+ width: "34px",
760
+ height: "6px",
761
+ backgroundColor: productColors.frame,
762
+ borderRadius: "3px"
763
+ }
764
+ }),
765
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
766
+ style: {
767
+ position: "absolute",
768
+ top: "37px",
769
+ left: "0px",
770
+ width: "20px",
771
+ height: "6px",
772
+ backgroundColor: productColors.temple,
773
+ borderRadius: "3px"
774
+ }
775
+ }),
776
+ /*#__PURE__*/ (0, _jsxruntime.jsx)("div", {
777
+ style: {
778
+ position: "absolute",
779
+ top: "37px",
780
+ right: "0px",
781
+ width: "20px",
782
+ height: "6px",
783
+ backgroundColor: productColors.temple,
784
+ borderRadius: "3px"
785
+ }
786
+ })
787
+ ]
788
+ })
789
+ }),
790
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
791
+ paddingBlockStart: "4",
792
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
793
+ variant: "bodySm",
794
+ alignment: "center",
795
+ children: "Live preview updates as you change colors"
796
+ })
797
+ })
798
+ ]
799
+ })
800
+ ]
801
+ });
802
+ },
803
+ parameters: {
804
+ docs: {
805
+ source: {
806
+ transform: _transformers.transformStorySource
807
+ },
808
+ description: {
809
+ story: "Product customization interface with real-time color preview."
810
+ }
811
+ }
812
+ }
813
+ };
814
+ var ResponsiveBehavior = {
815
+ render: function() {
816
+ var _useState = _sliced_to_array((0, _react.useState)("#8e44ad"), 2), color = _useState[0], setColor = _useState[1];
817
+ return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Card.default, {
818
+ title: "Responsive Color Picker",
819
+ padded: true,
820
+ children: [
821
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
822
+ paddingBlockEnd: "6",
823
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
824
+ children: "The color picker automatically adjusts its position based on available space and screen size."
825
+ })
826
+ }),
827
+ /*#__PURE__*/ (0, _jsxruntime.jsxs)(_Grid.default, {
828
+ columns: {
829
+ xs: 1,
830
+ md: 3
831
+ },
832
+ gap: "4",
833
+ children: [
834
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
835
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
836
+ label: "Mobile Optimized",
837
+ name: "mobile",
838
+ value: color,
839
+ onChange: setColor
840
+ })
841
+ }),
842
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_HorizontalStack.default, {
843
+ align: "center",
844
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
845
+ label: "Center Positioned",
846
+ name: "center",
847
+ value: color,
848
+ onChange: setColor
849
+ })
850
+ }),
851
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_HorizontalStack.default, {
852
+ align: "end",
853
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_ColorField.default, {
854
+ label: "Right Aligned",
855
+ name: "right",
856
+ value: color,
857
+ onChange: setColor
858
+ })
859
+ })
860
+ ]
861
+ }),
862
+ /*#__PURE__*/ (0, _jsxruntime.jsx)(_Box.default, {
863
+ paddingBlockStart: "6",
864
+ children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_Text.default, {
865
+ variant: "bodySm",
866
+ tone: "subdued",
867
+ children: "Try opening the color pickers above on different screen sizes to see how they adapt."
868
+ })
869
+ })
870
+ ]
871
+ });
872
+ },
873
+ parameters: {
874
+ docs: {
875
+ source: {
876
+ transform: _transformers.transformStorySource
877
+ },
878
+ description: {
879
+ story: "Demonstrates responsive behavior across different positions and screen sizes."
880
+ }
881
+ }
882
+ }
883
+ };