atomicuilibrary 0.1.0 → 0.1.3

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 (618) hide show
  1. package/dist/cjs/category-section.cjs.entry.js +2 -2
  2. package/dist/cjs/dom-BvBb0kmW.js +267 -0
  3. package/dist/cjs/exploration-project-tailwind.cjs.js +2 -2
  4. package/dist/cjs/{index-ClkOYpT8.js → index-C32cWsm5.js} +1 -1
  5. package/dist/cjs/layout-manager.cjs.entry.js +3 -3
  6. package/dist/cjs/library-card.cjs.entry.js +2 -2
  7. package/dist/cjs/lm-container_2.cjs.entry.js +2 -2
  8. package/dist/cjs/lm-panel_3.cjs.entry.js +4 -4
  9. package/dist/cjs/loader.cjs.js +2 -2
  10. package/dist/cjs/my-component.cjs.entry.js +1 -1
  11. package/dist/cjs/my-step.cjs.entry.js +2 -2
  12. package/dist/cjs/nav-bar.cjs.entry.js +4 -4
  13. package/dist/cjs/smart-step.cjs.entry.js +3 -3
  14. package/dist/cjs/timeline-item.cjs.entry.js +2 -2
  15. package/dist/cjs/ui-accordion_11.cjs.entry.js +132 -50
  16. package/dist/cjs/ui-advanced-data-table.cjs.entry.js +2 -2
  17. package/dist/cjs/ui-anchor.cjs.entry.js +2 -2
  18. package/dist/cjs/ui-animate-on-scroll.cjs.entry.js +3 -3
  19. package/dist/cjs/ui-aside-panel.cjs.entry.js +10 -11
  20. package/dist/cjs/ui-avatar-group_5.cjs.entry.js +1694 -0
  21. package/dist/cjs/ui-breadcrumb-item.cjs.entry.js +3 -3
  22. package/dist/cjs/ui-breadcrumb.cjs.entry.js +1 -1
  23. package/dist/cjs/ui-callout-banner.cjs.entry.js +2 -2
  24. package/dist/cjs/ui-card.cjs.entry.js +4 -3
  25. package/dist/cjs/ui-carousel.cjs.entry.js +1 -1
  26. package/dist/cjs/ui-checkbox.cjs.entry.js +3 -3
  27. package/dist/cjs/ui-code-editor.cjs.entry.js +2 -2
  28. package/dist/cjs/ui-code-preview.cjs.entry.js +2 -2
  29. package/dist/cjs/ui-color-picker.cjs.entry.js +256 -22
  30. package/dist/cjs/ui-command-palette.cjs.entry.js +1 -1
  31. package/dist/cjs/ui-dialog-box.cjs.entry.js +85 -11
  32. package/dist/cjs/ui-dialog-content.cjs.entry.js +1 -1
  33. package/dist/cjs/ui-dialog-footer_2.cjs.entry.js +1 -1
  34. package/dist/cjs/ui-divider.cjs.entry.js +1 -1
  35. package/dist/cjs/ui-dock-host.cjs.entry.js +4 -4
  36. package/dist/cjs/ui-dock.cjs.entry.js +2 -2
  37. package/dist/cjs/ui-drag-drop.cjs.entry.js +2 -2
  38. package/dist/cjs/ui-dropdown_2.cjs.entry.js +104 -34
  39. package/dist/cjs/ui-empty-state.cjs.entry.js +2 -2
  40. package/dist/cjs/ui-fab-item.cjs.entry.js +2 -2
  41. package/dist/cjs/ui-fab.cjs.entry.js +4 -4
  42. package/dist/cjs/ui-file-upload.cjs.entry.js +143 -44
  43. package/dist/cjs/ui-horizontal-nav.cjs.entry.js +2 -2
  44. package/dist/cjs/ui-knob.cjs.entry.js +1 -1
  45. package/dist/cjs/ui-label.cjs.entry.js +473 -0
  46. package/dist/cjs/ui-library.cjs.entry.js +2 -2
  47. package/dist/cjs/ui-list-group_2.cjs.entry.js +349 -60
  48. package/dist/cjs/ui-list.cjs.entry.js +76 -42
  49. package/dist/cjs/ui-masonry.cjs.entry.js +1 -1
  50. package/dist/cjs/ui-meter-group.cjs.entry.js +5 -4
  51. package/dist/cjs/ui-navigation-item.cjs.entry.js +5 -5
  52. package/dist/cjs/ui-number-input.cjs.entry.js +7 -3
  53. package/dist/cjs/ui-otp-input.cjs.entry.js +5 -5
  54. package/dist/cjs/{ui-pagination_4.cjs.entry.js → ui-pagination_3.cjs.entry.js} +35 -506
  55. package/dist/cjs/ui-panel.cjs.entry.js +1 -1
  56. package/dist/cjs/ui-pattern-input.cjs.entry.js +46 -11
  57. package/dist/cjs/ui-progress.cjs.entry.js +66 -9
  58. package/dist/cjs/ui-range-slider.cjs.entry.js +2 -2
  59. package/dist/cjs/ui-resizable-panel.cjs.entry.js +2 -2
  60. package/dist/cjs/ui-scroll-top.cjs.entry.js +1 -1
  61. package/dist/cjs/ui-smart-context-menu.cjs.entry.js +1 -1
  62. package/dist/cjs/ui-smart-stepper.cjs.entry.js +2 -2
  63. package/dist/cjs/ui-snackbar.cjs.entry.js +1 -1
  64. package/dist/cjs/ui-speed-dial.cjs.entry.js +1 -1
  65. package/dist/cjs/ui-speedometer.cjs.entry.js +28 -17
  66. package/dist/cjs/ui-splitter.cjs.entry.js +1 -1
  67. package/dist/cjs/ui-step.cjs.entry.js +2 -2
  68. package/dist/cjs/ui-stepper.cjs.entry.js +1 -1
  69. package/dist/cjs/ui-switch.cjs.entry.js +14 -13
  70. package/dist/cjs/ui-tabs.cjs.entry.js +2 -2
  71. package/dist/cjs/ui-tag.cjs.entry.js +58 -13
  72. package/dist/cjs/ui-timeline.cjs.entry.js +10 -2
  73. package/dist/cjs/ui-timer.cjs.entry.js +2 -2
  74. package/dist/cjs/ui-toolbar.cjs.entry.js +2 -2
  75. package/dist/cjs/ui-tooltip.cjs.entry.js +4 -4
  76. package/dist/cjs/ui-top-bar.cjs.entry.js +1 -1
  77. package/dist/cjs/ui-transfer-list.cjs.entry.js +6 -6
  78. package/dist/cjs/ui-tree.cjs.entry.js +30 -15
  79. package/dist/cjs/ui-workspace-manager.cjs.entry.js +2 -2
  80. package/dist/collection/assets/js/component-config.js +1 -0
  81. package/dist/collection/assets/js/demo-loader.js +2 -0
  82. package/dist/collection/assets/js/demos/about-demo.js +13 -13
  83. package/dist/collection/assets/js/demos/accordion-demo.js +66 -66
  84. package/dist/collection/assets/js/demos/advanced-data-table-demo.js +102 -102
  85. package/dist/collection/assets/js/demos/anchor-demo.js +27 -28
  86. package/dist/collection/assets/js/demos/animate-on-scroll-demo.js +12 -12
  87. package/dist/collection/assets/js/demos/aside-panel-demo.js +51 -51
  88. package/dist/collection/assets/js/demos/avatar-demo.js +433 -95
  89. package/dist/collection/assets/js/demos/badge-demo.js +51 -52
  90. package/dist/collection/assets/js/demos/breadcrumb-demo.js +7 -7
  91. package/dist/collection/assets/js/demos/button-demo.js +117 -107
  92. package/dist/collection/assets/js/demos/button-toggle-demo.js +199 -96
  93. package/dist/collection/assets/js/demos/callout-banner-demo.js +23 -23
  94. package/dist/collection/assets/js/demos/card-demo.js +23 -22
  95. package/dist/collection/assets/js/demos/carousel-demo.js +632 -360
  96. package/dist/collection/assets/js/demos/checkbox-demo.js +124 -7
  97. package/dist/collection/assets/js/demos/color-picker-demo.js +394 -100
  98. package/dist/collection/assets/js/demos/command-palette-demo.js +182 -65
  99. package/dist/collection/assets/js/demos/complex-form-demo.js +5 -5
  100. package/dist/collection/assets/js/demos/context-menu-demo.js +43 -43
  101. package/dist/collection/assets/js/demos/dialog-demo-temp.js +3 -3
  102. package/dist/collection/assets/js/demos/dialog-demo.js +336 -230
  103. package/dist/collection/assets/js/demos/divider-demo.js +59 -62
  104. package/dist/collection/assets/js/demos/dock-demo.js +12 -12
  105. package/dist/collection/assets/js/demos/dock-host-init.js +31 -31
  106. package/dist/collection/assets/js/demos/documentation-demo.js +34 -34
  107. package/dist/collection/assets/js/demos/drag-drop-demo.js +2 -2
  108. package/dist/collection/assets/js/demos/dropdown-demo.js +140 -136
  109. package/dist/collection/assets/js/demos/dropdown-subtitle-demo.js +2 -2
  110. package/dist/collection/assets/js/demos/empty-state-demo.js +294 -78
  111. package/dist/collection/assets/js/demos/fab-demo.js +95 -11
  112. package/dist/collection/assets/js/demos/file-upload-demo.js +641 -171
  113. package/dist/collection/assets/js/demos/home-components.js +2 -2
  114. package/dist/collection/assets/js/demos/horizontal-nav-demo.js +6 -6
  115. package/dist/collection/assets/js/demos/icon-demo.js +17 -17
  116. package/dist/collection/assets/js/demos/input-demo.js +147 -143
  117. package/dist/collection/assets/js/demos/knob-demo.js +29 -30
  118. package/dist/collection/assets/js/demos/label-demo.js +697 -0
  119. package/dist/collection/assets/js/demos/layout-manager-demo.js +55 -55
  120. package/dist/collection/assets/js/demos/list-demo.js +185 -122
  121. package/dist/collection/assets/js/demos/loader-demo.js +48 -48
  122. package/dist/collection/assets/js/demos/masonry-demo.js +568 -140
  123. package/dist/collection/assets/js/demos/meter-group-demo.js +14 -16
  124. package/dist/collection/assets/js/demos/multi-level-context-menu-demo.js +25 -25
  125. package/dist/collection/assets/js/demos/my-profile-demo.js +27 -27
  126. package/dist/collection/assets/js/demos/nav-bar-demo.js +1 -1
  127. package/dist/collection/assets/js/demos/number-input-demo.js +262 -211
  128. package/dist/collection/assets/js/demos/pagination-demo.js +29 -29
  129. package/dist/collection/assets/js/demos/panel-demo.js +18 -25
  130. package/dist/collection/assets/js/demos/pattern-input-demo.js +278 -40
  131. package/dist/collection/assets/js/demos/popover-demo.js +240 -149
  132. package/dist/collection/assets/js/demos/progress-demo.js +170 -156
  133. package/dist/collection/assets/js/demos/radio-demo.js +73 -12
  134. package/dist/collection/assets/js/demos/range-slider-demo.js +33 -33
  135. package/dist/collection/assets/js/demos/rating-demo.js +19 -19
  136. package/dist/collection/assets/js/demos/scroll-top-demo.js +8 -9
  137. package/dist/collection/assets/js/demos/skeleton-demo.js +110 -52
  138. package/dist/collection/assets/js/demos/skeleton-performance-demo.js +2 -2
  139. package/dist/collection/assets/js/demos/smart-dialog-demo.js +12 -12
  140. package/dist/collection/assets/js/demos/smart-menu-demo.js +17 -17
  141. package/dist/collection/assets/js/demos/snackbar-demo.js +53 -53
  142. package/dist/collection/assets/js/demos/speed-dial-demo.js +14 -14
  143. package/dist/collection/assets/js/demos/speedometer-demo.js +40 -32
  144. package/dist/collection/assets/js/demos/split-button-demo.js +2 -2
  145. package/dist/collection/assets/js/demos/splitter-demo.js +14 -14
  146. package/dist/collection/assets/js/demos/stack-demo.js +27 -27
  147. package/dist/collection/assets/js/demos/stepper-demo.js +49 -49
  148. package/dist/collection/assets/js/demos/switch-demo.js +561 -125
  149. package/dist/collection/assets/js/demos/tabs-demo.js +22 -22
  150. package/dist/collection/assets/js/demos/tag-demo.js +62 -62
  151. package/dist/collection/assets/js/demos/theme-selector-demo.js +27 -27
  152. package/dist/collection/assets/js/demos/timeline-demo.js +10 -10
  153. package/dist/collection/assets/js/demos/timeline-playground.js +2 -2
  154. package/dist/collection/assets/js/demos/timer-demo.js +10 -10
  155. package/dist/collection/assets/js/demos/toolbar-demo.js +17 -17
  156. package/dist/collection/assets/js/demos/tooltip-demo.js +92 -90
  157. package/dist/collection/assets/js/demos/top-bar-demo.js +6 -6
  158. package/dist/collection/assets/js/demos/transfer-list-demo.js +20 -20
  159. package/dist/collection/assets/js/demos/tree-demo.js +50 -66
  160. package/dist/collection/assets/js/demos/workspace-manager-demo.js +20 -20
  161. package/dist/collection/collection-manifest.json +1 -2
  162. package/dist/collection/components/accordion/accordion.css +275 -9
  163. package/dist/collection/components/accordion/accordion.js +7 -6
  164. package/dist/collection/components/advanced-data-table/advanced-data-table.css +5 -5
  165. package/dist/collection/components/advanced-data-table/advanced-data-table.js +2 -2
  166. package/dist/collection/components/anchor/anchor.css +1 -0
  167. package/dist/collection/components/animate-on-scroll/animate-on-scroll.js +2 -2
  168. package/dist/collection/components/aside-panel/aside-panel.css +2 -2
  169. package/dist/collection/components/aside-panel/aside-panel.js +10 -11
  170. package/dist/collection/components/avatar/avatar.css +6 -6
  171. package/dist/collection/components/avatar/avatar.js +63 -11
  172. package/dist/collection/components/badge/badge.css +27 -17
  173. package/dist/collection/components/badge/badge.js +6 -3
  174. package/dist/collection/components/breadcrumb/breadcrumb-item.js +2 -2
  175. package/dist/collection/components/button/button.css +1 -0
  176. package/dist/collection/components/button/button.js +3 -3
  177. package/dist/collection/components/button-toggle/button-toggle.js +2 -2
  178. package/dist/collection/components/button-toggle-group/button-toggle-group.css +161 -14
  179. package/dist/collection/components/button-toggle-group/button-toggle-group.js +2 -2
  180. package/dist/collection/components/callout-banner/callout-banner.css +75 -0
  181. package/dist/collection/components/callout-banner/callout-banner.js +1 -1
  182. package/dist/collection/components/card/card.css +221 -9
  183. package/dist/collection/components/card/card.js +3 -2
  184. package/dist/collection/components/checkbox/checkbox.js +3 -3
  185. package/dist/collection/components/code-editor/code-editor.js +1 -1
  186. package/dist/collection/components/code-preview/ui-code-preview.js +1 -1
  187. package/dist/collection/components/color-picker/color-picker.css +110 -6
  188. package/dist/collection/components/color-picker/color-picker.js +302 -26
  189. package/dist/collection/components/context-menu/context-menu.css +9 -9
  190. package/dist/collection/components/dialog-box/dialog-box.js +116 -14
  191. package/dist/collection/components/dialog-header/dialog-header.js +1 -1
  192. package/dist/collection/components/dock/dock.css +116 -3
  193. package/dist/collection/components/dock-host/ui-dock-host.js +3 -3
  194. package/dist/collection/components/drag-drop/drag-drop.js +1 -1
  195. package/dist/collection/components/dropdown/dropdown.css +101 -8
  196. package/dist/collection/components/dropdown/dropdown.js +94 -28
  197. package/dist/collection/components/empty-state/empty-state.js +1 -1
  198. package/dist/collection/components/fab/fab.css +87 -15
  199. package/dist/collection/components/fab/fab.js +3 -3
  200. package/dist/collection/components/fab-item/fab-item.js +1 -1
  201. package/dist/collection/components/file-upload/file-upload.css +1362 -31
  202. package/dist/collection/components/file-upload/file-upload.js +171 -50
  203. package/dist/collection/components/horizontal-nav/horizontal-nav.css +9 -9
  204. package/dist/collection/components/horizontal-nav/horizontal-nav.js +2 -2
  205. package/dist/collection/components/icon/icon.js +1 -1
  206. package/dist/collection/components/input/input.css +9 -0
  207. package/dist/collection/components/input/input.js +20 -9
  208. package/dist/collection/components/label/label.css +583 -0
  209. package/dist/collection/components/label/label.js +1669 -0
  210. package/dist/collection/components/layout-manager/layout-manager.js +1 -1
  211. package/dist/collection/components/layout-manager/lm-floating-window/lm-floating-window.js +1 -1
  212. package/dist/collection/components/layout-manager/lm-panel/lm-panel.js +1 -1
  213. package/dist/collection/components/layout-manager/lm-splitter/lm-splitter.js +1 -1
  214. package/dist/collection/components/layout-manager/lm-tabs/lm-tabs.js +1 -1
  215. package/dist/collection/components/library/category-section.js +1 -1
  216. package/dist/collection/components/library/library-card.js +1 -1
  217. package/dist/collection/components/library/library.js +1 -1
  218. package/dist/collection/components/list/list.css +46 -5
  219. package/dist/collection/components/list/list.js +76 -42
  220. package/dist/collection/components/list-group/list-group.css +0 -2
  221. package/dist/collection/components/list-group/list-group.js +11 -5
  222. package/dist/collection/components/list-item/list-item.css +403 -131
  223. package/dist/collection/components/list-item/list-item.js +345 -61
  224. package/dist/collection/components/loader/loader.css +1 -1
  225. package/dist/collection/components/loader/loader.js +2 -2
  226. package/dist/collection/components/meter-group/meter-group.css +5 -0
  227. package/dist/collection/components/meter-group/meter-group.js +3 -2
  228. package/dist/collection/components/my-step/my-step.js +1 -1
  229. package/dist/collection/components/nav-bar/nav-bar.css +4 -4
  230. package/dist/collection/components/nav-bar/nav-bar.js +6 -6
  231. package/dist/collection/components/number-input/number-input.js +6 -2
  232. package/dist/collection/components/otp-input/otp-input.css +10 -0
  233. package/dist/collection/components/otp-input/otp-input.js +3 -3
  234. package/dist/collection/components/pagination/pagination.js +1 -1
  235. package/dist/collection/components/pattern-input/pattern-input.css +0 -1
  236. package/dist/collection/components/pattern-input/pattern-input.js +44 -9
  237. package/dist/collection/components/popover/popover.css +35 -7
  238. package/dist/collection/components/popover/popover.js +64 -9
  239. package/dist/collection/components/progress/progress.css +176 -32
  240. package/dist/collection/components/progress/progress.js +66 -8
  241. package/dist/collection/components/radio/radio.css +2 -0
  242. package/dist/collection/components/radio/radio.js +2 -2
  243. package/dist/collection/components/range-slider/range-slider.css +284 -31
  244. package/dist/collection/components/range-slider/range-slider.js +5 -5
  245. package/dist/collection/components/rating/rating.css +151 -65
  246. package/dist/collection/components/rating/rating.js +31 -13
  247. package/dist/collection/components/resizable-panel/resizable-panel.js +1 -1
  248. package/dist/collection/components/skeleton/skeleton-loader.css +144 -44
  249. package/dist/collection/components/skeleton/skeleton-loader.js +11 -7
  250. package/dist/collection/components/smart-stepper/smart-step.js +2 -2
  251. package/dist/collection/components/smart-stepper/smart-stepper.js +1 -1
  252. package/dist/collection/components/speedometer/speedometer.css +26 -6
  253. package/dist/collection/components/speedometer/speedometer.js +26 -15
  254. package/dist/collection/components/stack/stack.js +2 -2
  255. package/dist/collection/components/step/step.js +1 -1
  256. package/dist/collection/components/stepper/stepper.js +1 -1
  257. package/dist/collection/components/switch/switch.css +367 -8
  258. package/dist/collection/components/switch/switch.js +13 -12
  259. package/dist/collection/components/tag/tag.css +38 -12
  260. package/dist/collection/components/tag/tag.js +58 -13
  261. package/dist/collection/components/tag-group/tag-group.css +0 -1
  262. package/dist/collection/components/tag-group/tag-group.js +3 -3
  263. package/dist/collection/components/timeline/timeline.css +380 -317
  264. package/dist/collection/components/timeline/timeline.js +8 -0
  265. package/dist/collection/components/timeline-item/timeline-item.js +1 -1
  266. package/dist/collection/components/timer/timer.js +1 -1
  267. package/dist/collection/components/toggle-group/toggle-group.css +7 -3
  268. package/dist/collection/components/toggle-group/toggle-group.js +7 -3
  269. package/dist/collection/components/toolbar/toolbar.js +1 -1
  270. package/dist/collection/components/tooltip/tooltip.js +4 -4
  271. package/dist/collection/components/top-bar/top-bar.js +2 -2
  272. package/dist/collection/components/transfer-list/transfer-list.css +13 -13
  273. package/dist/collection/components/transfer-list/transfer-list.js +4 -4
  274. package/dist/collection/components/tree/tree.css +35 -21
  275. package/dist/collection/components/tree/tree.js +28 -13
  276. package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.css +34 -16
  277. package/dist/collection/components/ui-navigation-bar/navigation-bar/navigation-bar.js +46 -11
  278. package/dist/collection/components/ui-navigation-bar/navigation-item.css +7 -7
  279. package/dist/collection/components/ui-navigation-bar/navigation-item.js +3 -3
  280. package/dist/collection/utils/dom.js +151 -151
  281. package/dist/components/avatar-group.js +1 -1
  282. package/dist/components/avatar.js +1 -1
  283. package/dist/components/badge.js +1 -1
  284. package/dist/components/button-toggle.js +1 -1
  285. package/dist/components/button.js +1 -0
  286. package/dist/components/category-section2.js +1 -1
  287. package/dist/components/checkbox.js +1 -1
  288. package/dist/components/context-menu.js +1 -1
  289. package/dist/components/dialog-header.js +1 -1
  290. package/dist/components/dom.js +1 -1
  291. package/dist/components/dropdown.js +1 -1
  292. package/dist/components/icon.js +2 -2
  293. package/dist/components/input.js +1 -1
  294. package/dist/components/layout-manager.js +1 -1
  295. package/dist/components/library-card2.js +1 -1
  296. package/dist/components/list-group.js +1 -1
  297. package/dist/components/list-item.js +1 -1
  298. package/dist/components/lm-container2.js +1 -1
  299. package/dist/components/lm-floating-window2.js +1 -1
  300. package/dist/components/lm-panel2.js +1 -1
  301. package/dist/components/lm-splitter2.js +1 -1
  302. package/dist/components/lm-tabs2.js +1 -1
  303. package/dist/components/loader.js +1 -1
  304. package/dist/components/my-step.js +1 -1
  305. package/dist/components/nav-bar.js +1 -1
  306. package/dist/components/pagination.js +1 -1
  307. package/dist/components/popover.js +1 -0
  308. package/dist/components/radio.js +1 -1
  309. package/dist/components/range-slider.js +1 -1
  310. package/dist/components/rating.js +1 -1
  311. package/dist/components/resizable-panel.js +1 -1
  312. package/dist/components/skeleton-loader.js +1 -1
  313. package/dist/components/smart-step.js +1 -1
  314. package/dist/components/stack.js +1 -1
  315. package/dist/components/switch.js +1 -1
  316. package/dist/components/tag-group.js +1 -1
  317. package/dist/components/tag.js +1 -1
  318. package/dist/components/timeline-item.js +1 -1
  319. package/dist/components/toggle-group.js +1 -1
  320. package/dist/components/tooltip.js +1 -1
  321. package/dist/components/ui-accordion.js +1 -1
  322. package/dist/components/ui-advanced-data-table.js +1 -1
  323. package/dist/components/ui-anchor.js +1 -1
  324. package/dist/components/ui-animate-on-scroll.js +1 -1
  325. package/dist/components/ui-aside-panel.js +1 -1
  326. package/dist/components/ui-badge.js +1 -1
  327. package/dist/components/ui-breadcrumb-item.js +1 -1
  328. package/dist/components/ui-breadcrumb.js +1 -1
  329. package/dist/components/ui-button-toggle-group.js +1 -1
  330. package/dist/components/ui-button.js +1 -1
  331. package/dist/components/ui-callout-banner.js +1 -1
  332. package/dist/components/ui-card.js +1 -1
  333. package/dist/components/ui-carousel.js +1 -1
  334. package/dist/components/ui-code-editor.js +1 -1
  335. package/dist/components/ui-code-preview.js +1 -1
  336. package/dist/components/ui-color-picker.js +1 -1
  337. package/dist/components/ui-command-palette.js +1 -1
  338. package/dist/components/ui-dialog-box.js +1 -1
  339. package/dist/components/ui-dock-host.js +1 -1
  340. package/dist/components/ui-dock.js +1 -1
  341. package/dist/components/ui-drag-drop.js +1 -1
  342. package/dist/components/ui-empty-state.js +1 -1
  343. package/dist/components/ui-fab-item.js +1 -1
  344. package/dist/components/ui-fab.js +1 -1
  345. package/dist/components/ui-file-upload.js +1 -1
  346. package/dist/components/ui-horizontal-nav.js +1 -1
  347. package/dist/components/ui-knob.js +1 -1
  348. package/dist/components/{ui-color-controller.d.ts → ui-label.d.ts} +4 -4
  349. package/dist/components/ui-label.js +1 -0
  350. package/dist/components/ui-library.js +1 -1
  351. package/dist/components/ui-list.js +1 -1
  352. package/dist/components/ui-masonry.js +1 -1
  353. package/dist/components/ui-meter-group.js +1 -1
  354. package/dist/components/ui-navigation-bar.js +1 -1
  355. package/dist/components/ui-navigation-item.js +1 -1
  356. package/dist/components/ui-number-input.js +1 -1
  357. package/dist/components/ui-otp-input.js +1 -1
  358. package/dist/components/ui-panel.js +1 -1
  359. package/dist/components/ui-pattern-input.js +1 -1
  360. package/dist/components/ui-popover.js +1 -1
  361. package/dist/components/ui-progress.js +1 -1
  362. package/dist/components/ui-scroll-top.js +1 -1
  363. package/dist/components/ui-smart-stepper.js +1 -1
  364. package/dist/components/ui-snackbar.js +1 -1
  365. package/dist/components/ui-speed-dial.js +1 -1
  366. package/dist/components/ui-speedometer.js +1 -1
  367. package/dist/components/ui-splitter.js +1 -1
  368. package/dist/components/ui-step.js +1 -1
  369. package/dist/components/ui-stepper.js +1 -1
  370. package/dist/components/ui-tabs.js +1 -1
  371. package/dist/components/ui-timeline.js +1 -1
  372. package/dist/components/ui-timer.js +1 -1
  373. package/dist/components/ui-toolbar.js +1 -1
  374. package/dist/components/ui-top-bar.js +1 -1
  375. package/dist/components/ui-transfer-list.js +1 -1
  376. package/dist/components/ui-tree.js +1 -1
  377. package/dist/components/ui-workspace-manager.js +1 -1
  378. package/dist/esm/category-section.entry.js +2 -2
  379. package/dist/esm/dom-DFBTWhGw.js +262 -0
  380. package/dist/esm/exploration-project-tailwind.js +3 -3
  381. package/dist/esm/{index-DUsoYu9r.js → index-Dqu2zaH1.js} +1 -1
  382. package/dist/esm/layout-manager.entry.js +3 -3
  383. package/dist/esm/library-card.entry.js +2 -2
  384. package/dist/esm/lm-container_2.entry.js +2 -2
  385. package/dist/esm/lm-panel_3.entry.js +4 -4
  386. package/dist/esm/loader.js +3 -3
  387. package/dist/esm/my-component.entry.js +1 -1
  388. package/dist/esm/my-step.entry.js +2 -2
  389. package/dist/esm/nav-bar.entry.js +4 -4
  390. package/dist/esm/smart-step.entry.js +3 -3
  391. package/dist/esm/timeline-item.entry.js +2 -2
  392. package/dist/esm/ui-accordion_11.entry.js +132 -50
  393. package/dist/esm/ui-advanced-data-table.entry.js +2 -2
  394. package/dist/esm/ui-anchor.entry.js +2 -2
  395. package/dist/esm/ui-animate-on-scroll.entry.js +3 -3
  396. package/dist/esm/ui-aside-panel.entry.js +10 -11
  397. package/dist/esm/ui-avatar-group_5.entry.js +1688 -0
  398. package/dist/esm/ui-breadcrumb-item.entry.js +3 -3
  399. package/dist/esm/ui-breadcrumb.entry.js +1 -1
  400. package/dist/esm/ui-callout-banner.entry.js +2 -2
  401. package/dist/esm/ui-card.entry.js +4 -3
  402. package/dist/esm/ui-carousel.entry.js +1 -1
  403. package/dist/esm/ui-checkbox.entry.js +3 -3
  404. package/dist/esm/ui-code-editor.entry.js +2 -2
  405. package/dist/esm/ui-code-preview.entry.js +2 -2
  406. package/dist/esm/ui-color-picker.entry.js +256 -22
  407. package/dist/esm/ui-command-palette.entry.js +1 -1
  408. package/dist/esm/ui-dialog-box.entry.js +85 -11
  409. package/dist/esm/ui-dialog-content.entry.js +1 -1
  410. package/dist/esm/ui-dialog-footer_2.entry.js +1 -1
  411. package/dist/esm/ui-divider.entry.js +1 -1
  412. package/dist/esm/ui-dock-host.entry.js +4 -4
  413. package/dist/esm/ui-dock.entry.js +2 -2
  414. package/dist/esm/ui-drag-drop.entry.js +2 -2
  415. package/dist/esm/ui-dropdown_2.entry.js +104 -34
  416. package/dist/esm/ui-empty-state.entry.js +2 -2
  417. package/dist/esm/ui-fab-item.entry.js +2 -2
  418. package/dist/esm/ui-fab.entry.js +4 -4
  419. package/dist/esm/ui-file-upload.entry.js +143 -44
  420. package/dist/esm/ui-horizontal-nav.entry.js +2 -2
  421. package/dist/esm/ui-knob.entry.js +1 -1
  422. package/dist/esm/ui-label.entry.js +471 -0
  423. package/dist/esm/ui-library.entry.js +2 -2
  424. package/dist/esm/ui-list-group_2.entry.js +349 -60
  425. package/dist/esm/ui-list.entry.js +76 -42
  426. package/dist/esm/ui-masonry.entry.js +1 -1
  427. package/dist/esm/ui-meter-group.entry.js +5 -4
  428. package/dist/esm/ui-navigation-item.entry.js +5 -5
  429. package/dist/esm/ui-number-input.entry.js +7 -3
  430. package/dist/esm/ui-otp-input.entry.js +5 -5
  431. package/dist/esm/{ui-pagination_4.entry.js → ui-pagination_3.entry.js} +36 -506
  432. package/dist/esm/ui-panel.entry.js +1 -1
  433. package/dist/esm/ui-pattern-input.entry.js +46 -11
  434. package/dist/esm/ui-progress.entry.js +66 -9
  435. package/dist/esm/ui-range-slider.entry.js +2 -2
  436. package/dist/esm/ui-resizable-panel.entry.js +2 -2
  437. package/dist/esm/ui-scroll-top.entry.js +1 -1
  438. package/dist/esm/ui-smart-context-menu.entry.js +1 -1
  439. package/dist/esm/ui-smart-stepper.entry.js +2 -2
  440. package/dist/esm/ui-snackbar.entry.js +1 -1
  441. package/dist/esm/ui-speed-dial.entry.js +1 -1
  442. package/dist/esm/ui-speedometer.entry.js +28 -17
  443. package/dist/esm/ui-splitter.entry.js +1 -1
  444. package/dist/esm/ui-step.entry.js +2 -2
  445. package/dist/esm/ui-stepper.entry.js +1 -1
  446. package/dist/esm/ui-switch.entry.js +14 -13
  447. package/dist/esm/ui-tabs.entry.js +2 -2
  448. package/dist/esm/ui-tag.entry.js +58 -13
  449. package/dist/esm/ui-timeline.entry.js +10 -2
  450. package/dist/esm/ui-timer.entry.js +2 -2
  451. package/dist/esm/ui-toolbar.entry.js +2 -2
  452. package/dist/esm/ui-tooltip.entry.js +4 -4
  453. package/dist/esm/ui-top-bar.entry.js +1 -1
  454. package/dist/esm/ui-transfer-list.entry.js +6 -6
  455. package/dist/esm/ui-tree.entry.js +30 -15
  456. package/dist/esm/ui-workspace-manager.entry.js +2 -2
  457. package/dist/exploration-project-tailwind/exploration-project-tailwind.css +1 -1
  458. package/dist/exploration-project-tailwind/exploration-project-tailwind.esm.js +1 -1
  459. package/dist/exploration-project-tailwind/{p-7ba2258a.entry.js → p-024a299a.entry.js} +1 -1
  460. package/dist/exploration-project-tailwind/p-0a71896a.entry.js +1 -0
  461. package/dist/exploration-project-tailwind/{p-35296877.entry.js → p-0cdeb8d8.entry.js} +1 -1
  462. package/dist/exploration-project-tailwind/{p-a42fdc33.entry.js → p-139cefbc.entry.js} +1 -1
  463. package/dist/exploration-project-tailwind/{p-036d2a44.entry.js → p-198c83e5.entry.js} +1 -1
  464. package/dist/exploration-project-tailwind/p-236f47b1.entry.js +1 -0
  465. package/dist/exploration-project-tailwind/{p-81ebba11.entry.js → p-25530d0d.entry.js} +1 -1
  466. package/dist/exploration-project-tailwind/{p-41cd6bf0.entry.js → p-298f2057.entry.js} +1 -1
  467. package/dist/exploration-project-tailwind/{p-85e36111.entry.js → p-2b5a8e3e.entry.js} +1 -1
  468. package/dist/exploration-project-tailwind/{p-e8c6d395.entry.js → p-2b6aa7bc.entry.js} +1 -1
  469. package/dist/exploration-project-tailwind/{p-70bacda8.entry.js → p-2cfba753.entry.js} +1 -1
  470. package/dist/exploration-project-tailwind/{p-cbee2607.entry.js → p-2fe22958.entry.js} +1 -1
  471. package/dist/exploration-project-tailwind/{p-20ecc116.entry.js → p-3012e780.entry.js} +1 -1
  472. package/dist/exploration-project-tailwind/p-321c3f46.entry.js +1 -0
  473. package/dist/exploration-project-tailwind/{p-8b57fe4e.entry.js → p-3ab43638.entry.js} +1 -1
  474. package/dist/exploration-project-tailwind/p-3ad7e47e.entry.js +1 -0
  475. package/dist/exploration-project-tailwind/p-3b1ca826.entry.js +1 -0
  476. package/dist/exploration-project-tailwind/p-3ee8ddae.entry.js +1 -0
  477. package/dist/exploration-project-tailwind/{p-e22317c1.entry.js → p-3efb44c8.entry.js} +1 -1
  478. package/dist/exploration-project-tailwind/{p-36861546.entry.js → p-42e3bc28.entry.js} +1 -1
  479. package/dist/exploration-project-tailwind/p-4360331a.entry.js +1 -0
  480. package/dist/exploration-project-tailwind/{p-2f961934.entry.js → p-443de32b.entry.js} +1 -1
  481. package/dist/exploration-project-tailwind/{p-898dd0fa.entry.js → p-44d15451.entry.js} +1 -1
  482. package/dist/exploration-project-tailwind/{p-4288c158.entry.js → p-46071679.entry.js} +1 -1
  483. package/dist/exploration-project-tailwind/{p-a3f465d9.entry.js → p-497d6182.entry.js} +1 -1
  484. package/dist/exploration-project-tailwind/p-4ad8c55c.entry.js +1 -0
  485. package/dist/exploration-project-tailwind/{p-4aaa8e40.entry.js → p-4c46ac0b.entry.js} +1 -1
  486. package/dist/exploration-project-tailwind/{p-98e91da5.entry.js → p-5042ddaa.entry.js} +1 -1
  487. package/dist/exploration-project-tailwind/p-60190e0e.entry.js +1 -0
  488. package/dist/exploration-project-tailwind/p-60530874.entry.js +1 -0
  489. package/dist/exploration-project-tailwind/{p-200241f8.entry.js → p-6108565d.entry.js} +1 -1
  490. package/dist/exploration-project-tailwind/{p-fb4aca69.entry.js → p-62889cfe.entry.js} +1 -1
  491. package/dist/exploration-project-tailwind/{p-c02284ea.entry.js → p-66f71613.entry.js} +1 -1
  492. package/dist/exploration-project-tailwind/{p-7889bfc4.entry.js → p-67c440b2.entry.js} +1 -1
  493. package/dist/exploration-project-tailwind/{p-c1c8ac28.entry.js → p-6f09503f.entry.js} +1 -1
  494. package/dist/exploration-project-tailwind/p-721bdbc3.entry.js +1 -0
  495. package/dist/exploration-project-tailwind/p-747b02ea.entry.js +1 -0
  496. package/dist/exploration-project-tailwind/{p-c6fd72e1.entry.js → p-754cb046.entry.js} +1 -1
  497. package/dist/exploration-project-tailwind/{p-97af03cc.entry.js → p-7ed3bba2.entry.js} +1 -1
  498. package/dist/exploration-project-tailwind/{p-d59da767.entry.js → p-864cebb7.entry.js} +1 -1
  499. package/dist/exploration-project-tailwind/{p-4d73c143.entry.js → p-96ee3196.entry.js} +1 -1
  500. package/dist/exploration-project-tailwind/{p-54965530.entry.js → p-97086868.entry.js} +1 -1
  501. package/dist/exploration-project-tailwind/{p-d114a347.entry.js → p-9c5ced88.entry.js} +1 -1
  502. package/dist/exploration-project-tailwind/p-9d3044d4.entry.js +1 -0
  503. package/dist/exploration-project-tailwind/p-9e079be6.entry.js +1 -0
  504. package/dist/exploration-project-tailwind/{p-790556f0.entry.js → p-9e4c45f5.entry.js} +1 -1
  505. package/dist/exploration-project-tailwind/p-9eee7394.entry.js +1 -0
  506. package/dist/exploration-project-tailwind/p-DFBTWhGw.js +1 -0
  507. package/dist/exploration-project-tailwind/p-Dqu2zaH1.js +2 -0
  508. package/dist/exploration-project-tailwind/p-a7bdedc2.entry.js +1 -0
  509. package/dist/exploration-project-tailwind/{p-c87aeab6.entry.js → p-a8ec29de.entry.js} +1 -1
  510. package/dist/exploration-project-tailwind/{p-6ddbee42.entry.js → p-ae617f62.entry.js} +1 -1
  511. package/dist/exploration-project-tailwind/{p-05a436d3.entry.js → p-aef76052.entry.js} +1 -1
  512. package/dist/exploration-project-tailwind/p-b5f043fa.entry.js +1 -0
  513. package/dist/exploration-project-tailwind/p-b637b91b.entry.js +1 -0
  514. package/dist/exploration-project-tailwind/{p-d2e45c5e.entry.js → p-bc49a088.entry.js} +1 -1
  515. package/dist/exploration-project-tailwind/{p-6b838549.entry.js → p-bd9a631f.entry.js} +1 -1
  516. package/dist/exploration-project-tailwind/{p-e8ba0c95.entry.js → p-bf4b6767.entry.js} +1 -1
  517. package/dist/exploration-project-tailwind/p-c0fa400e.entry.js +1 -0
  518. package/dist/exploration-project-tailwind/{p-8578b616.entry.js → p-c4f3d990.entry.js} +1 -1
  519. package/dist/exploration-project-tailwind/p-c68ddb2f.entry.js +1 -0
  520. package/dist/exploration-project-tailwind/p-c79574c4.entry.js +1 -0
  521. package/dist/exploration-project-tailwind/p-c840098d.entry.js +1 -0
  522. package/dist/exploration-project-tailwind/{p-a1ad32a2.entry.js → p-c8663cbe.entry.js} +1 -1
  523. package/dist/exploration-project-tailwind/p-cb6e38a6.entry.js +1 -0
  524. package/dist/exploration-project-tailwind/p-cb9f2df1.entry.js +1 -0
  525. package/dist/exploration-project-tailwind/p-cfe8b696.entry.js +1 -0
  526. package/dist/exploration-project-tailwind/p-d00e13ae.entry.js +1 -0
  527. package/dist/exploration-project-tailwind/{p-c4ba7e52.entry.js → p-d01ed934.entry.js} +1 -1
  528. package/dist/exploration-project-tailwind/{p-aa85ff78.entry.js → p-d4e57d94.entry.js} +1 -1
  529. package/dist/exploration-project-tailwind/{p-ccb5c737.entry.js → p-d5bd3a3f.entry.js} +1 -1
  530. package/dist/exploration-project-tailwind/{p-45482d86.entry.js → p-d987cebe.entry.js} +1 -1
  531. package/dist/exploration-project-tailwind/p-d9ae77c0.entry.js +1 -0
  532. package/dist/exploration-project-tailwind/p-e9bae5c7.entry.js +1 -0
  533. package/dist/exploration-project-tailwind/p-f516fabc.entry.js +1 -0
  534. package/dist/exploration-project-tailwind/p-f68e2794.entry.js +1 -0
  535. package/dist/exploration-project-tailwind/{p-d30e24bd.entry.js → p-fa034f69.entry.js} +1 -1
  536. package/dist/types/components/aside-panel/aside-panel.d.ts +0 -3
  537. package/dist/types/components/avatar/avatar.d.ts +3 -0
  538. package/dist/types/components/avatar/types.d.ts +2 -0
  539. package/dist/types/components/badge/badge.d.ts +1 -0
  540. package/dist/types/components/color-picker/color-picker.d.ts +35 -2
  541. package/dist/types/components/dialog-box/dialog-box.d.ts +10 -0
  542. package/dist/types/components/dropdown/dropdown.d.ts +5 -0
  543. package/dist/types/components/file-upload/file-upload.d.ts +23 -6
  544. package/dist/types/components/label/label.d.ts +290 -0
  545. package/dist/types/components/label/types.d.ts +39 -0
  546. package/dist/types/components/list/list.d.ts +2 -1
  547. package/dist/types/components/list-group/list-group.d.ts +1 -0
  548. package/dist/types/components/list-item/list-item.d.ts +45 -17
  549. package/dist/types/components/pattern-input/pattern-input.d.ts +6 -0
  550. package/dist/types/components/popover/popover.d.ts +3 -0
  551. package/dist/types/components/progress/progress.d.ts +7 -0
  552. package/dist/types/components/range-slider/range-slider.d.ts +2 -2
  553. package/dist/types/components/rating/rating.d.ts +1 -0
  554. package/dist/types/components/skeleton/skeleton-loader.d.ts +1 -1
  555. package/dist/types/components/speedometer/speedometer.d.ts +1 -0
  556. package/dist/types/components/tag/tag.d.ts +4 -0
  557. package/dist/types/components/tree/tree.d.ts +1 -0
  558. package/dist/types/components/ui-navigation-bar/navigation-bar/navigation-bar.d.ts +1 -1
  559. package/dist/types/components.d.ts +742 -425
  560. package/dist/types/types/common.d.ts +2 -2
  561. package/dist/types/types/common.type.d.ts +2 -0
  562. package/dist/types/utils/dom.d.ts +4 -4
  563. package/package.json +4 -5
  564. package/dist/cjs/dom-oP1E4Rd3.js +0 -267
  565. package/dist/cjs/ui-avatar-group_3.cjs.entry.js +0 -634
  566. package/dist/cjs/ui-color-controller.cjs.entry.js +0 -150
  567. package/dist/cjs/ui-popover.cjs.entry.js +0 -517
  568. package/dist/cjs/ui-smart-location-dropdown.cjs.entry.js +0 -565
  569. package/dist/collection/components/color-controller/color-controller.css +0 -108
  570. package/dist/collection/components/color-controller/color-controller.js +0 -224
  571. package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.css +0 -357
  572. package/dist/collection/components/smart-location-dropdown/smart-location-dropdown.js +0 -1190
  573. package/dist/components/ui-color-controller.js +0 -1
  574. package/dist/components/ui-smart-location-dropdown.d.ts +0 -11
  575. package/dist/components/ui-smart-location-dropdown.js +0 -1
  576. package/dist/esm/dom-BMFah5q3.js +0 -262
  577. package/dist/esm/ui-avatar-group_3.entry.js +0 -630
  578. package/dist/esm/ui-color-controller.entry.js +0 -148
  579. package/dist/esm/ui-popover.entry.js +0 -515
  580. package/dist/esm/ui-smart-location-dropdown.entry.js +0 -563
  581. package/dist/exploration-project-tailwind/p-06f0c679.entry.js +0 -1
  582. package/dist/exploration-project-tailwind/p-0d31c9e9.entry.js +0 -1
  583. package/dist/exploration-project-tailwind/p-148e81df.entry.js +0 -1
  584. package/dist/exploration-project-tailwind/p-16bdd162.entry.js +0 -1
  585. package/dist/exploration-project-tailwind/p-2347d21b.entry.js +0 -1
  586. package/dist/exploration-project-tailwind/p-3d381f75.entry.js +0 -1
  587. package/dist/exploration-project-tailwind/p-4417a9d8.entry.js +0 -1
  588. package/dist/exploration-project-tailwind/p-44742ddd.entry.js +0 -1
  589. package/dist/exploration-project-tailwind/p-47e2a7ee.entry.js +0 -1
  590. package/dist/exploration-project-tailwind/p-4bef8bed.entry.js +0 -1
  591. package/dist/exploration-project-tailwind/p-4efd63ce.entry.js +0 -1
  592. package/dist/exploration-project-tailwind/p-5c835d90.entry.js +0 -1
  593. package/dist/exploration-project-tailwind/p-61717490.entry.js +0 -1
  594. package/dist/exploration-project-tailwind/p-717dad1f.entry.js +0 -1
  595. package/dist/exploration-project-tailwind/p-71d95bb1.entry.js +0 -1
  596. package/dist/exploration-project-tailwind/p-9bd14f69.entry.js +0 -1
  597. package/dist/exploration-project-tailwind/p-9fc06ff0.entry.js +0 -1
  598. package/dist/exploration-project-tailwind/p-BMFah5q3.js +0 -1
  599. package/dist/exploration-project-tailwind/p-DUsoYu9r.js +0 -2
  600. package/dist/exploration-project-tailwind/p-a27f59d2.entry.js +0 -1
  601. package/dist/exploration-project-tailwind/p-a7b07cf4.entry.js +0 -1
  602. package/dist/exploration-project-tailwind/p-bd89d060.entry.js +0 -1
  603. package/dist/exploration-project-tailwind/p-c63c522e.entry.js +0 -1
  604. package/dist/exploration-project-tailwind/p-c69dd43e.entry.js +0 -1
  605. package/dist/exploration-project-tailwind/p-d6ce9721.entry.js +0 -1
  606. package/dist/exploration-project-tailwind/p-dc92a343.entry.js +0 -1
  607. package/dist/exploration-project-tailwind/p-debede45.entry.js +0 -1
  608. package/dist/exploration-project-tailwind/p-e76318c7.entry.js +0 -1
  609. package/dist/exploration-project-tailwind/p-ea51c5d8.entry.js +0 -1
  610. package/dist/exploration-project-tailwind/p-eab5ad36.entry.js +0 -1
  611. package/dist/exploration-project-tailwind/p-f0bc5d7e.entry.js +0 -1
  612. package/dist/exploration-project-tailwind/p-f1beee72.entry.js +0 -1
  613. package/dist/exploration-project-tailwind/p-f543392f.entry.js +0 -1
  614. package/dist/exploration-project-tailwind/p-f61cfb7c.entry.js +0 -1
  615. package/dist/types/components/color-controller/color-controller.d.ts +0 -24
  616. package/dist/types/components/smart-location-dropdown/smart-location-dropdown.d.ts +0 -119
  617. package/dist/types/components/smart-location-dropdown/types.d.ts +0 -37
  618. /package/dist/collection/components/{smart-location-dropdown → label}/types.js +0 -0
@@ -1,117 +1,411 @@
1
1
  export function initColorPickerDemo() {
2
- const container = document.getElementById('color-picker');
3
- if (!container) return;
4
-
5
- container.innerHTML = `
6
- <div class="demo-wrapper">
7
- <div class="demo-header-section" style="margin-bottom: 24px;">
8
- <h2 class="demo-section-title">Color Picker</h2>
9
- <p class="demo-section-subtitle">Enterprise-grade color selection with alpha support, multi-format inputs, and validation.</p>
2
+ const section = document.getElementById('color-picker');
3
+ if (!section) return;
4
+
5
+ section.innerHTML = `
6
+ <p style="margin-top: 0; opacity: 0.7; font-size: 14px; margin-bottom: 24px;">Enterprise-grade color selection with alpha support, multi-format inputs, swatch palettes, and live preview.</p>
7
+ <div class="demo-controls" style="margin: 20px 0; display: flex; gap: 10px; flex-wrap: wrap;">
8
+ <ui-button data-demo="basic" variant="outline">Basic</ui-button>
9
+ <ui-button data-demo="formats" variant="outline">Formats</ui-button>
10
+ <ui-button data-demo="formatPicker" variant="outline">🎨 Format Picker</ui-button>
11
+ <ui-button data-demo="inline" variant="outline">Inline Preview</ui-button>
12
+ <ui-button data-demo="swatches" variant="outline">Swatches</ui-button>
13
+ <ui-button data-demo="states" variant="outline">States &amp; Sizes</ui-button>
14
+ <ui-button data-demo="compact" variant="outline">Compact Trigger</ui-button>
15
+ </div>
16
+ <div id="colorPickerContainer" style="margin-top: 20px;"></div>
17
+ `;
18
+
19
+ const container = section.querySelector('#colorPickerContainer');
20
+
21
+ const showBasic = () => {
22
+ container.innerHTML = `
23
+ <div class="demo-block">
24
+ <h3>Basic Color Picker</h3>
25
+ <p style="font-size:13px;color:var(--text-secondary,#64748b);margin-bottom:24px;">Standard color picker with swatch palette, hex input, and recent colors. Drop-in ready for any form.</p>
26
+
27
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Default Pickers</h4>
28
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;margin-bottom:32px;">
29
+ <ui-color-picker label="Primary Color" value="#10b981"></ui-color-picker>
30
+ <ui-color-picker label="Accent Color" value="#8b5cf6"></ui-color-picker>
31
+ <ui-color-picker label="Warning Color" value="#f59e0b"></ui-color-picker>
32
+ </div>
33
+
34
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">With Eye Dropper &amp; Color Name</h4>
35
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;margin-bottom:32px;">
36
+ <ui-color-picker label="Eye Dropper" value="#3b82f6" show-eye-dropper="true"></ui-color-picker>
37
+ <ui-color-picker label="Named Colors" value="#ef4444" show-color-name="true"></ui-color-picker>
38
+ <ui-color-picker label="Recent Colors" value="#06b6d4" show-recent="true"></ui-color-picker>
39
+ </div>
40
+
41
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Alpha Channel</h4>
42
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;">
43
+ <ui-color-picker label="With Alpha" value="#ef444480" show-alpha="true" format="rgba"></ui-color-picker>
44
+ <ui-color-picker label="HSLA Format" value="#8b5cf6" show-alpha="true" format="hsla"></ui-color-picker>
45
+ </div>
10
46
  </div>
47
+ `;
48
+ };
11
49
 
12
- <div class="demo-sections-container" style="display: flex; flex-direction: column; gap: 32px;">
13
- <div class="demo-block">
14
- <h3 style="margin-bottom: 16px; color: var(--text-primary);">Basic Selection</h3>
15
- <div style="display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-start;">
16
- <ui-color-picker label="Primary Color" value="#10b981"></ui-color-picker>
17
- <ui-color-picker label="Success Color" value="#22c55e"></ui-color-picker>
18
- <ui-color-picker label="Accent Color" value="#8b5cf6"></ui-color-picker>
19
- </div>
20
- </div>
21
-
22
- <div class="demo-block">
23
- <h3 style="margin-bottom: 16px; color: var(--text-primary);">Extended Features</h3>
24
- <div style="display: flex; gap: 24px; flex-wrap: wrap;">
25
- <ui-color-picker label="With Alpha Channel" value="#ef4444" show-alpha="true" format="rgba"></ui-color-picker>
26
- <ui-color-picker label="No Swatches" value="#06b6d4" show-swatches="false"></ui-color-picker>
27
- <ui-color-picker label="No Hex Input" value="#f59e0b" show-hex="false"></ui-color-picker>
28
- </div>
29
- </div>
30
-
31
- <div class="demo-block">
32
- <h3 style="margin-bottom: 8px; color: var(--text-primary);">Multi-Format Input Variant</h3>
33
- <p style="font-size: 14px; color: var(--text-secondary); margin-bottom: 20px;">
34
- The <code>variant="input"</code> Displays all format channels (HEX, RGB, HSL) in a single integrated panel.
35
- </p>
36
- <div style="display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start;">
37
- <ui-color-picker
38
- label="Interactive Channels"
39
- variant="input"
40
- inline="true"
41
- show-hex="true"
42
- show-rgb="true"
43
- show-rgba="true"
44
- show-hsl="true"
45
- show-hsla="true"
46
- show-alpha="true"
47
- value="#10b981"
48
- ></ui-color-picker>
49
-
50
- <div style="flex: 1; min-width: 280px; padding: 24px; background: var(--bg-secondary); border-radius: 16px; border: 1px solid var(--border-default);">
51
- <h4 style="margin: 0 0 12px 0; font-size: 12px; color: var(--text-tertiary); text-transform: uppercase; letter-spacing: 0.5px;">Technical Details</h4>
52
- <ul style="font-size: 13px; color: var(--text-secondary); padding-left: 18px; margin: 0; line-height: 1.6;">
53
- <li>Individual channel validation with real-time feedback.</li>
54
- <li>Hashless HEX input for cleaner interaction.</li>
55
- <li>Direct attribute binding for all color spaces.</li>
56
- <li>Responsive layout handles multi-channel flow.</li>
57
- </ul>
58
- </div>
50
+ const showFormats = () => {
51
+ container.innerHTML = `
52
+ <div class="demo-block">
53
+ <h3>Color Formats</h3>
54
+ <p style="font-size:13px;color:var(--text-secondary,#64748b);margin-bottom:24px;">Toggle individual format channels. The <code>variant="input"</code> mode shows all enabled channels simultaneously in an integrated panel.</p>
55
+
56
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Selective Channels</h4>
57
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;margin-bottom:32px;">
58
+ <ui-color-picker label="HEX Only" value="#10b981" show-rgb="false" show-hsl="false"></ui-color-picker>
59
+ <ui-color-picker label="RGB + Hex" value="#3b82f6" show-hsl="false"></ui-color-picker>
60
+ <ui-color-picker label="HSL Full" value="#8b5cf6" show-hex="false" show-rgb="false" show-hsl="true"></ui-color-picker>
61
+ </div>
62
+
63
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Multi-Channel Input Variant</h4>
64
+ <div style="display:flex;gap:32px;flex-wrap:wrap;align-items:flex-start;">
65
+ <ui-color-picker
66
+ label="All Channels"
67
+ variant="input"
68
+ inline="true"
69
+ show-hex="true"
70
+ show-rgb="true"
71
+ show-rgba="true"
72
+ show-hsl="true"
73
+ show-hsla="true"
74
+ show-alpha="true"
75
+ value="#10b981"
76
+ ></ui-color-picker>
77
+ <div style="flex:1;min-width:240px;padding:20px;background:var(--bg-secondary,#f8fafc);border-radius:12px;border:1px solid var(--border-default,#e5e7eb);">
78
+ <h4 style="margin:0 0 10px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Format Details</h4>
79
+ <ul style="font-size:13px;color:var(--text-secondary,#64748b);padding-left:18px;margin:0;line-height:1.8;">
80
+ <li>Per-channel validation with real-time feedback</li>
81
+ <li>Hashless HEX input for cleaner interaction</li>
82
+ <li>Direct attribute binding for all color spaces</li>
83
+ <li>Gradient support via <code>show-gradient</code></li>
84
+ </ul>
59
85
  </div>
60
86
  </div>
87
+ </div>
88
+ `;
89
+ };
61
90
 
62
- <div class="demo-block">
63
- <h3 style="margin-bottom: 16px; color: var(--text-primary);">Live Preview Engine</h3>
64
- <div style="display: flex; gap: 32px; flex-wrap: wrap; align-items: flex-start;">
65
- <div>
66
- <ui-color-picker id="cp-inline" inline="true" value="#10b981"></ui-color-picker>
67
- </div>
68
- <div style="width: 240px; padding: 24px; background: var(--bg-secondary); border-radius: 16px; border: 1px solid var(--border-default); display: flex; flex-direction: column; gap: 16px; align-items: center;">
69
- <div id="cp-preview-box" style="width: 100%; height: 100px; border-radius: 12px; background: #10b981; box-shadow: 0 8px 24px rgba(16, 185, 129, 0.25);"></div>
70
- <div style="font-family: monospace; font-size: 14px; font-weight: 700; color: var(--text-primary);" id="cp-preview-hex">#10B981</div>
71
- <div id="cp-preview-text" style="width: 100%; padding: 12px; border-radius: 8px; background: #10b981; color: white; font-weight: 800; text-align: center; font-size: 13px;">SAMPLE TEXT</div>
72
- </div>
91
+ const showFormatPicker = () => {
92
+ container.innerHTML = `
93
+ <div class="demo-block">
94
+ <h3>Format Picker</h3>
95
+ <p style="font-size:13px;color:var(--text-secondary,#64748b);margin-bottom:24px;"
96
+ >Use the <code>formats</code> prop to specify exactly which color formats the user can see and edit.
97
+ Accepts a comma-separated string any combination of
98
+ <code>hex</code>, <code>rgb</code>, <code>rgba</code>, <code>hsl</code>, <code>hsla</code>.</p>
99
+
100
+ <!-- 1. One card per individual format -->
101
+ <h4 style="margin:0 0 12px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">Single-Format Pickers</h4>
102
+ <div style="display:flex;gap:20px;flex-wrap:wrap;align-items:flex-start;margin-bottom:36px;">
103
+
104
+ <div style="display:flex;flex-direction:column;gap:8px;align-items:center;">
105
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">HEX</span>
106
+ <ui-color-picker value="#10b981" formats="hex" show-swatches="false" show-recent="false" show-color-name="false"></ui-color-picker>
107
+ </div>
108
+
109
+ <div style="display:flex;flex-direction:column;gap:8px;align-items:center;">
110
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">RGB</span>
111
+ <ui-color-picker value="#3b82f6" formats="rgb" show-swatches="false" show-recent="false" show-color-name="false"></ui-color-picker>
112
+ </div>
113
+
114
+ <div style="display:flex;flex-direction:column;gap:8px;align-items:center;">
115
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">RGBA</span>
116
+ <ui-color-picker value="#8b5cf6" formats="rgba" show-alpha="true" show-swatches="false" show-recent="false" show-color-name="false"></ui-color-picker>
117
+ </div>
118
+
119
+ <div style="display:flex;flex-direction:column;gap:8px;align-items:center;">
120
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">HSL</span>
121
+ <ui-color-picker value="#f59e0b" formats="hsl" show-swatches="false" show-recent="false" show-color-name="false"></ui-color-picker>
122
+ </div>
123
+
124
+ <div style="display:flex;flex-direction:column;gap:8px;align-items:center;">
125
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">HSLA</span>
126
+ <ui-color-picker value="#ef4444" formats="hsla" show-alpha="true" show-swatches="false" show-recent="false" show-color-name="false"></ui-color-picker>
127
+ </div>
128
+ </div>
129
+
130
+ <!-- 2. Multi-format combos -->
131
+ <h4 style="margin:0 0 12px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">Multi-Format Combos</h4>
132
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;margin-bottom:36px;">
133
+
134
+ <div style="display:flex;flex-direction:column;gap:8px;">
135
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">HEX + RGB</span>
136
+ <ui-color-picker value="#06b6d4" formats="hex,rgb" show-swatches="false" show-recent="false"></ui-color-picker>
137
+ </div>
138
+
139
+ <div style="display:flex;flex-direction:column;gap:8px;">
140
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">HEX + HSL</span>
141
+ <ui-color-picker value="#22c55e" formats="hex,hsl" show-swatches="false" show-recent="false"></ui-color-picker>
142
+ </div>
143
+
144
+ <div style="display:flex;flex-direction:column;gap:8px;">
145
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">All 5 Formats</span>
146
+ <ui-color-picker value="#6366f1" formats="hex,rgb,rgba,hsl,hsla" show-alpha="true" show-swatches="true"></ui-color-picker>
73
147
  </div>
74
148
  </div>
75
149
 
76
- <div class="demo-block">
77
- <h3 style="margin-bottom: 16px; color: var(--text-primary);">States & Interaction</h3>
78
- <div style="display: flex; gap: 24px; flex-wrap: wrap;">
79
- <ui-color-picker label="Disabled State" value="#64748b" disabled="true"></ui-color-picker>
80
- <ui-color-picker label="Read Only (Value)" value="#3b82f6" disabled="true"></ui-color-picker>
150
+ <!-- 3. Interactive format chooser -->
151
+ <h4 style="margin:0 0 12px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">Interactive Format Chooser</h4>
152
+ <p style="font-size:13px;color:var(--text-secondary,#64748b);margin-bottom:16px;">Toggle which formats appear in the picker below.</p>
153
+ <div style="display:flex;gap:10px;flex-wrap:wrap;margin-bottom:20px;" id="formatToggles">
154
+ <button data-fmt="hex" class="fmt-btn fmt-active" style="padding:6px 14px;border-radius:8px;border:2px solid #10b981;background:#10b98120;color:#065f46;font-size:12px;font-weight:700;cursor:pointer;transition:all .15s;">HEX</button>
155
+ <button data-fmt="rgb" class="fmt-btn" style="padding:6px 14px;border-radius:8px;border:2px solid #e2e8f0;background:transparent;color:var(--text-secondary,#64748b);font-size:12px;font-weight:700;cursor:pointer;transition:all .15s;">RGB</button>
156
+ <button data-fmt="rgba" class="fmt-btn" style="padding:6px 14px;border-radius:8px;border:2px solid #e2e8f0;background:transparent;color:var(--text-secondary,#64748b);font-size:12px;font-weight:700;cursor:pointer;transition:all .15s;">RGBA</button>
157
+ <button data-fmt="hsl" class="fmt-btn" style="padding:6px 14px;border-radius:8px;border:2px solid #e2e8f0;background:transparent;color:var(--text-secondary,#64748b);font-size:12px;font-weight:700;cursor:pointer;transition:all .15s;">HSL</button>
158
+ <button data-fmt="hsla" class="fmt-btn" style="padding:6px 14px;border-radius:8px;border:2px solid #e2e8f0;background:transparent;color:var(--text-secondary,#64748b);font-size:12px;font-weight:700;cursor:pointer;transition:all .15s;">HSLA</button>
159
+ </div>
160
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;">
161
+ <ui-color-picker id="cpFormatChooser" value="#3b82f6" formats="hex" show-alpha="true" show-swatches="true"></ui-color-picker>
162
+ <div style="min-width:200px;padding:16px 20px;background:var(--bg-secondary,#f8fafc);border-radius:12px;border:1px solid var(--border-default,#e5e7eb);font-size:13px;">
163
+ <div style="font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;font-size:11px;margin-bottom:10px;">Active formats</div>
164
+ <code id="cpActiveFormats" style="display:block;padding:8px 12px;background:var(--bg-tertiary,#f1f5f9);border-radius:8px;font-size:13px;color:var(--text-primary,#1e293b);word-break:break-all;">hex</code>
165
+ <div style="margin-top:16px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;font-size:11px;margin-bottom:8px;">Usage</div>
166
+ <code id="cpUsageSnippet" style="display:block;padding:8px 12px;background:var(--bg-tertiary,#f1f5f9);border-radius:8px;font-size:12px;color:var(--text-primary,#1e293b);word-break:break-all;">formats="hex"</code>
81
167
  </div>
82
168
  </div>
83
169
  </div>
84
- </div>
170
+ `;
85
171
 
86
- <style>
87
- .demo-block {
88
- background: var(--bg-primary);
89
- padding: 32px;
90
- border-radius: 24px;
91
- border: 1px solid var(--border-default);
92
- box-shadow: var(--shadow-sm);
93
- }
94
- .demo-section-title { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); margin: 0; }
95
- .demo-section-subtitle { font-size: 1rem; color: var(--text-secondary); margin-top: 4px; }
96
- </style>
97
- `;
172
+ // Wire up the toggle buttons
173
+ const active = new Set(['hex']);
174
+ const picker = container.querySelector('#cpFormatChooser');
175
+ const display = container.querySelector('#cpActiveFormats');
176
+ const snippet = container.querySelector('#cpUsageSnippet');
177
+
178
+ const updatePicker = () => {
179
+ const fmts = [...active].join(',') || 'hex';
180
+ if (picker) picker.setAttribute('formats', fmts);
181
+ if (display) display.textContent = fmts;
182
+ if (snippet) snippet.textContent = `formats="${fmts}"`;
183
+ };
98
184
 
99
- const inlinePicker = container.querySelector('#cp-inline');
100
- const previewBox = container.querySelector('#cp-preview-box');
101
- const previewHex = container.querySelector('#cp-preview-hex');
102
- const previewText = container.querySelector('#cp-preview-text');
103
-
104
- if (inlinePicker) {
105
- inlinePicker.addEventListener('colorChange', e => {
106
- const color = e.detail;
107
- if (previewBox) {
108
- previewBox.style.background = color;
109
- previewBox.style.boxShadow = `0 8px 24px ${color}40`;
110
- }
111
- if (previewHex) previewHex.textContent = color.toUpperCase();
112
- if (previewText) {
113
- previewText.style.background = color;
114
- }
185
+ container.querySelectorAll('.fmt-btn').forEach(btn => {
186
+ btn.addEventListener('click', () => {
187
+ const fmt = btn.getAttribute('data-fmt');
188
+ if (active.has(fmt)) {
189
+ if (active.size === 1) return; // keep at least one format
190
+ active.delete(fmt);
191
+ btn.style.border = '2px solid #e2e8f0';
192
+ btn.style.background = 'transparent';
193
+ btn.style.color = 'var(--text-secondary,#64748b)';
194
+ } else {
195
+ active.add(fmt);
196
+ btn.style.border = '2px solid #10b981';
197
+ btn.style.background = '#10b98120';
198
+ btn.style.color = '#065f46';
199
+ }
200
+ updatePicker();
201
+ });
202
+ });
203
+ };
204
+
205
+ const showInline = () => {
206
+ container.innerHTML = `
207
+ <div class="demo-block">
208
+ <h3>Inline Preview Engine</h3>
209
+ <p style="font-size:13px;color:var(--text-secondary,#64748b);margin-bottom:24px;">Use <code>inline="true"</code> to embed the picker directly in the page. The live preview below updates as you pick a color.</p>
210
+
211
+ <div style="display:flex;gap:32px;flex-wrap:wrap;align-items:flex-start;">
212
+ <ui-color-picker id="cp-inline" inline="true" value="#10b981" show-alpha="true" show-swatches="true" show-recent="true"></ui-color-picker>
213
+
214
+ <div style="min-width:220px;padding:24px;background:var(--bg-secondary,#f8fafc);border-radius:16px;border:1px solid var(--border-default,#e5e7eb);display:flex;flex-direction:column;gap:16px;align-items:center;">
215
+ <div id="cp-preview-box" style="width:100%;height:100px;border-radius:12px;background:#10b981;box-shadow:0 8px 24px #10b98140;transition:background 0.2s,box-shadow 0.2s;"></div>
216
+ <div style="font-family:monospace;font-size:15px;font-weight:700;color:var(--text-primary,#111827);" id="cp-preview-hex">#10B981</div>
217
+ <div id="cp-preview-swatch" style="width:100%;display:flex;gap:6px;flex-wrap:wrap;justify-content:center;"></div>
218
+ <div id="cp-preview-text" style="width:100%;padding:10px;border-radius:8px;background:#10b981;color:white;font-weight:800;text-align:center;font-size:13px;transition:background 0.2s;">SAMPLE TEXT</div>
219
+ </div>
220
+ </div>
221
+ </div>
222
+ `;
223
+ const inlinePicker = container.querySelector('#cp-inline');
224
+ const previewBox = container.querySelector('#cp-preview-box');
225
+ const previewHex = container.querySelector('#cp-preview-hex');
226
+ const previewText = container.querySelector('#cp-preview-text');
227
+
228
+ if (inlinePicker) {
229
+ inlinePicker.addEventListener('colorChange', e => {
230
+ const color = e.detail;
231
+ if (previewBox) {
232
+ previewBox.style.background = color;
233
+ previewBox.style.boxShadow = `0 8px 24px ${color}40`;
234
+ }
235
+ if (previewHex) previewHex.textContent = color.toUpperCase();
236
+ if (previewText) previewText.style.background = color;
237
+ });
238
+ }
239
+ };
240
+
241
+ const showSwatches = () => {
242
+ container.innerHTML = `
243
+ <div class="demo-block">
244
+ <h3>Custom Swatch Palettes</h3>
245
+ <p style="font-size:13px;color:var(--text-secondary,#64748b);margin-bottom:24px;">Pass a <code>swatches</code> attribute with a JSON array of hex colors to define brand palettes. Set <code>show-swatches="false"</code> to hide the default swatches.</p>
246
+
247
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Brand Palette</h4>
248
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;margin-bottom:32px;">
249
+ <ui-color-picker
250
+ label="Brand Colors"
251
+ value="#6366f1"
252
+ swatches='["#6366f1","#8b5cf6","#a855f7","#ec4899","#f43f5e","#f97316","#eab308","#22c55e","#10b981","#06b6d4","#3b82f6","#1d4ed8"]'
253
+ ></ui-color-picker>
254
+ </div>
255
+
256
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Neutral Palette</h4>
257
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;margin-bottom:32px;">
258
+ <ui-color-picker
259
+ label="Grayscale"
260
+ value="#475569"
261
+ swatches='["#f8fafc","#f1f5f9","#e2e8f0","#cbd5e1","#94a3b8","#64748b","#475569","#334155","#1e293b","#0f172a","#020617"]'
262
+ ></ui-color-picker>
263
+ </div>
264
+
265
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">No Swatches</h4>
266
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;">
267
+ <ui-color-picker label="Swatches Hidden" value="#06b6d4" show-swatches="false"></ui-color-picker>
268
+ </div>
269
+ </div>
270
+ `;
271
+ };
272
+
273
+ const showStates = () => {
274
+ container.innerHTML = `
275
+ <div class="demo-block">
276
+ <h3>States &amp; Sizes</h3>
277
+ <p style="font-size:13px;color:var(--text-secondary,#64748b);margin-bottom:24px;">The color picker supports <code>disabled</code> state and multiple <code>size</code> variants.</p>
278
+
279
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Disabled State</h4>
280
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;margin-bottom:32px;">
281
+ <ui-color-picker label="Disabled" value="#64748b" disabled="true"></ui-color-picker>
282
+ <ui-color-picker label="Disabled with Alpha" value="#3b82f680" disabled="true" show-alpha="true" format="rgba"></ui-color-picker>
283
+ </div>
284
+
285
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Sizes</h4>
286
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;margin-bottom:32px;">
287
+ <div>
288
+ <div style="font-size:11px;text-transform:uppercase;color:var(--text-secondary,#64748b);font-weight:600;margin-bottom:8px;">Small</div>
289
+ <ui-color-picker label="Small" value="#10b981" size="sm"></ui-color-picker>
290
+ </div>
291
+ <div>
292
+ <div style="font-size:11px;text-transform:uppercase;color:var(--text-secondary,#64748b);font-weight:600;margin-bottom:8px;">Medium (Default)</div>
293
+ <ui-color-picker label="Medium" value="#8b5cf6" size="md"></ui-color-picker>
294
+ </div>
295
+ <div>
296
+ <div style="font-size:11px;text-transform:uppercase;color:var(--text-secondary,#64748b);font-weight:600;margin-bottom:8px;">Large</div>
297
+ <ui-color-picker label="Large" value="#f59e0b" size="lg"></ui-color-picker>
298
+ </div>
299
+ </div>
300
+
301
+ <h4 style="margin:0 0 8px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Required &amp; Named</h4>
302
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;">
303
+ <ui-color-picker label="Required Field" value="#ef4444" required="true" name="brand-color"></ui-color-picker>
304
+ </div>
305
+ </div>
306
+ `;
307
+ };
308
+
309
+ const showCompact = () => {
310
+ container.innerHTML = `
311
+ <div class="demo-block">
312
+ <h3>Compact Trigger</h3>
313
+ <p style="font-size:13px;color:var(--text-secondary,#64748b);margin-bottom:24px;">Add <code>compact</code> to render a swatch-only button — no hex label, no arrow. Perfect for toolbars, property panels, and table cells where space is tight.</p>
314
+
315
+ <h4 style="margin:0 0 12px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Sizes</h4>
316
+ <div style="display:flex;gap:20px;flex-wrap:wrap;align-items:center;margin-bottom:32px;">
317
+ <div style="display:flex;flex-direction:column;gap:8px;align-items:center;">
318
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">sm</span>
319
+ <ui-color-picker value="#10b981" compact size="sm"></ui-color-picker>
320
+ </div>
321
+ <div style="display:flex;flex-direction:column;gap:8px;align-items:center;">
322
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">md</span>
323
+ <ui-color-picker value="#6366f1" compact size="md"></ui-color-picker>
324
+ </div>
325
+ <div style="display:flex;flex-direction:column;gap:8px;align-items:center;">
326
+ <span style="font-size:11px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;">lg</span>
327
+ <ui-color-picker value="#f59e0b" compact size="lg"></ui-color-picker>
328
+ </div>
329
+ </div>
330
+
331
+ <h4 style="margin:0 0 12px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Toolbar Use-case</h4>
332
+ <p style="font-size:13px;color:var(--text-secondary,#64748b);margin-bottom:16px;">Compact pickers sit naturally beside other toolbar controls without expanding the row height.</p>
333
+ <div style="display:inline-flex;align-items:center;gap:6px;padding:8px 12px;border:1px solid var(--border-default,#e5e7eb);border-radius:10px;background:var(--bg-primary,#fff);margin-bottom:32px;">
334
+ <ui-button variant="ghost" size="sm" icon-only icon="bold" icon-library="lucide"></ui-button>
335
+ <ui-button variant="ghost" size="sm" icon-only icon="italic" icon-library="lucide"></ui-button>
336
+ <ui-button variant="ghost" size="sm" icon-only icon="underline" icon-library="lucide"></ui-button>
337
+ <div style="width:1px;height:18px;background:var(--border-default,#e5e7eb);margin:0 2px;"></div>
338
+ <div style="display:flex;flex-direction:column;gap:2px;align-items:center;">
339
+ <span style="font-size:9px;color:var(--text-muted,#9ca3af);line-height:1;">Text</span>
340
+ <ui-color-picker id="cpToolbarText" value="#111827" compact size="sm"></ui-color-picker>
341
+ </div>
342
+ <div style="display:flex;flex-direction:column;gap:2px;align-items:center;">
343
+ <span style="font-size:9px;color:var(--text-muted,#9ca3af);line-height:1;">Fill</span>
344
+ <ui-color-picker id="cpToolbarFill" value="#fef9c3" compact size="sm"></ui-color-picker>
345
+ </div>
346
+ </div>
347
+
348
+ <h4 style="margin:0 0 12px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Disabled State</h4>
349
+ <div style="display:flex;gap:20px;flex-wrap:wrap;align-items:center;margin-bottom:32px;">
350
+ <ui-color-picker value="#64748b" compact disabled></ui-color-picker>
351
+ <ui-color-picker value="#64748b" compact disabled size="lg"></ui-color-picker>
352
+ </div>
353
+
354
+ <h4 style="margin:0 0 12px;font-size:12px;font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:0.05em;">Live Output</h4>
355
+ <div style="display:flex;gap:24px;flex-wrap:wrap;align-items:flex-start;">
356
+ <ui-color-picker id="cpCompactLive" value="#3b82f6" compact show-alpha="true"></ui-color-picker>
357
+ <div style="padding:16px 20px;background:var(--bg-secondary,#f8fafc);border-radius:12px;border:1px solid var(--border-default,#e5e7eb);font-size:13px;min-width:180px;">
358
+ <div style="font-weight:700;color:var(--text-secondary,#64748b);text-transform:uppercase;letter-spacing:.05em;font-size:11px;margin-bottom:10px;">Selected value</div>
359
+ <div style="display:flex;align-items:center;gap:10px;">
360
+ <div id="cpCompactSwatch" style="width:28px;height:28px;border-radius:6px;background:#3b82f6;border:1px solid rgba(0,0,0,.1);flex-shrink:0;"></div>
361
+ <code id="cpCompactValue" style="font-size:14px;font-weight:700;color:var(--text-primary,#1e293b);">#3b82f6</code>
362
+ </div>
363
+ </div>
364
+ </div>
365
+ </div>
366
+ `;
367
+
368
+ const livePicker = container.querySelector('#cpCompactLive');
369
+ const liveSwatch = container.querySelector('#cpCompactSwatch');
370
+ const liveValue = container.querySelector('#cpCompactValue');
371
+ if (livePicker) {
372
+ livePicker.addEventListener('colorChange', e => {
373
+ const c = e.detail;
374
+ if (liveSwatch) liveSwatch.style.background = c;
375
+ if (liveValue) liveValue.textContent = c;
376
+ });
377
+ }
378
+ };
379
+
380
+ const demoMap = {
381
+ basic: showBasic,
382
+ formats: showFormats,
383
+ formatPicker: showFormatPicker,
384
+ inline: showInline,
385
+ swatches: showSwatches,
386
+ states: showStates,
387
+ compact: showCompact,
388
+ };
389
+
390
+ const nav = section.querySelector('.demo-controls');
391
+ if (nav) {
392
+ nav.querySelectorAll('ui-button').forEach(btn => {
393
+ btn.addEventListener('click', () => {
394
+ const demo = btn.getAttribute('data-demo');
395
+ if (demoMap[demo]) demoMap[demo]();
396
+ nav.querySelectorAll('ui-button').forEach(b => {
397
+ b.variant = b.getAttribute('data-demo') === demo ? 'solid' : 'outline';
398
+ b.color = b.getAttribute('data-demo') === demo ? 'primary' : 'none';
399
+ });
400
+ });
115
401
  });
116
402
  }
403
+
404
+ setTimeout(() => {
405
+ showBasic();
406
+ nav?.querySelectorAll('ui-button').forEach(b => {
407
+ b.variant = b.getAttribute('data-demo') === 'basic' ? 'solid' : 'outline';
408
+ b.color = b.getAttribute('data-demo') === 'basic' ? 'primary' : 'none';
409
+ });
410
+ }, 50);
117
411
  }