@luzmo/lucero 0.0.4 → 0.0.8

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 (378) hide show
  1. package/components/accordion/accordion-item.d.ts +24 -0
  2. package/components/accordion/accordion.d.ts +42 -0
  3. package/components/accordion/index.cjs +43 -0
  4. package/components/accordion/index.d.ts +10 -0
  5. package/{lib → components}/accordion/index.js +10 -11
  6. package/components/action-bar/action-bar.d.ts +42 -0
  7. package/components/action-bar/index.cjs +39 -0
  8. package/components/action-bar/index.d.ts +7 -0
  9. package/{lib → components}/action-bar/index.js +9 -10
  10. package/components/action-button/action-button.d.ts +81 -0
  11. package/components/action-button/index.cjs +24 -0
  12. package/components/action-button/index.d.ts +7 -0
  13. package/{lib → components}/action-button/index.js +6 -7
  14. package/components/action-group/action-group.d.ts +50 -0
  15. package/{lib → components}/action-group/index.cjs +1 -1
  16. package/components/action-group/index.d.ts +7 -0
  17. package/{lib → components}/action-group/index.js +1 -1
  18. package/components/action-group-Uimj-MJP.cjs +20 -0
  19. package/{lib/action-group-BoIH8s8R.js → components/action-group-enfc-YnW.js} +11 -12
  20. package/components/action-menu/action-menu.d.ts +40 -0
  21. package/{lib → components}/action-menu/index.cjs +5 -5
  22. package/components/action-menu/index.d.ts +7 -0
  23. package/{lib → components}/action-menu/index.js +10 -11
  24. package/{lib/async-directive-FGzMycjH.js → components/async-directive-DWRUSKKF.js} +1 -1
  25. package/{lib/async-directive-CV2MII86.cjs → components/async-directive-D_Ter1F8.cjs} +1 -1
  26. package/components/avatar/avatar.d.ts +31 -0
  27. package/components/avatar/index.cjs +24 -0
  28. package/components/avatar/index.d.ts +7 -0
  29. package/{lib → components}/avatar/index.js +13 -14
  30. package/components/base-B7Pfl2if.cjs +40 -0
  31. package/components/base-CawdqE7p.js +666 -0
  32. package/components/button/button-base.d.ts +44 -0
  33. package/components/button/button.d.ts +59 -0
  34. package/components/button/clear-button.d.ts +22 -0
  35. package/components/button/close-button.d.ts +24 -0
  36. package/components/button/index.cjs +20 -0
  37. package/components/button/index.d.ts +13 -0
  38. package/{lib → components}/button/index.js +11 -12
  39. package/{lib/button-base-DgtT6sU5.js → components/button-base-B7v4eeRh.js} +13 -12
  40. package/components/button-base-DmjYs2s9.cjs +25 -0
  41. package/components/button-group/button-group.d.ts +19 -0
  42. package/components/button-group/index.cjs +18 -0
  43. package/components/button-group/index.d.ts +7 -0
  44. package/{lib → components}/button-group/index.js +7 -8
  45. package/components/checkbox/checkbox-base.d.ts +9 -0
  46. package/components/checkbox/checkbox-mixin.d.ts +14 -0
  47. package/components/checkbox/checkbox.d.ts +54 -0
  48. package/components/checkbox/index.cjs +25 -0
  49. package/components/checkbox/index.d.ts +7 -0
  50. package/{lib → components}/checkbox/index.js +5 -6
  51. package/{lib/checkbox-mixin-DegQlk5C.js → components/checkbox-mixin-BFGTmw17.js} +15 -16
  52. package/{lib/checkbox-mixin-H0Hm-VLk.cjs → components/checkbox-mixin-DUhXwD46.cjs} +3 -3
  53. package/{lib/clear-button-Ap5H3UyH.js → components/clear-button-DgZmX5RX.js} +9 -10
  54. package/components/clear-button-KdrF2jaV.cjs +18 -0
  55. package/{lib/close-button-CGISEF33.js → components/close-button-CFHQnbsK.js} +7 -8
  56. package/components/close-button-DVGUppyd.cjs +18 -0
  57. package/components/color-area/color-area.d.ts +67 -0
  58. package/components/color-area/index.cjs +80 -0
  59. package/components/color-area/index.d.ts +7 -0
  60. package/{lib → components}/color-area/index.js +11 -11
  61. package/components/color-field/color-field.d.ts +20 -0
  62. package/components/color-field/index.cjs +23 -0
  63. package/components/color-field/index.d.ts +7 -0
  64. package/{lib → components}/color-field/index.js +2 -3
  65. package/components/color-handle/color-handle.d.ts +13 -0
  66. package/components/color-handle/index.cjs +24 -0
  67. package/components/color-handle/index.d.ts +7 -0
  68. package/{lib → components}/color-handle/index.js +2 -3
  69. package/components/color-loupe/color-loupe.d.ts +7 -0
  70. package/{lib → components}/color-loupe/index.cjs +1 -1
  71. package/components/color-loupe/index.d.ts +7 -0
  72. package/{lib → components}/color-loupe/index.js +1 -1
  73. package/{lib/color-loupe-DBEApMDT.js → components/color-loupe-DxcqXoJ6.js} +3 -4
  74. package/components/color-loupe-SskbNeMp.cjs +56 -0
  75. package/components/color-menu/color-menu.d.ts +54 -0
  76. package/components/color-menu/index.cjs +86 -0
  77. package/components/color-menu/index.d.ts +7 -0
  78. package/{lib → components}/color-menu/index.js +9 -10
  79. package/components/color-picker/color-picker.d.ts +39 -0
  80. package/components/color-picker/index.cjs +48 -0
  81. package/components/color-picker/index.d.ts +7 -0
  82. package/{lib → components}/color-picker/index.js +33 -34
  83. package/components/color-slider/color-slider.d.ts +57 -0
  84. package/components/color-slider/index.cjs +57 -0
  85. package/components/color-slider/index.d.ts +7 -0
  86. package/{lib → components}/color-slider/index.js +6 -6
  87. package/{lib/directive-helpers-C2vOfhFx.cjs → components/directive-helpers-TkFq2eZF.cjs} +1 -1
  88. package/{lib/directive-helpers-BLDZnGQv.js → components/directive-helpers-nlQRAaQt.js} +1 -1
  89. package/components/divider/divider.d.ts +24 -0
  90. package/components/divider/index.cjs +18 -0
  91. package/components/divider/index.d.ts +7 -0
  92. package/{lib → components}/divider/index.js +6 -7
  93. package/components/field-group/field-group.d.ts +24 -0
  94. package/{lib → components}/field-group/index.cjs +1 -1
  95. package/components/field-group/index.d.ts +7 -0
  96. package/{lib → components}/field-group/index.js +1 -1
  97. package/{lib/field-group-CBWafIUV.js → components/field-group-DAhrTCfl.js} +2 -3
  98. package/components/field-group-DSY2HUoj.cjs +23 -0
  99. package/components/field-label/field-label.d.ts +50 -0
  100. package/{lib → components}/field-label/index.cjs +1 -1
  101. package/components/field-label/index.d.ts +7 -0
  102. package/{lib → components}/field-label/index.js +2 -2
  103. package/{lib/field-label-BK_tk8vP.js → components/field-label-CAFfGxEL.js} +15 -16
  104. package/components/field-label-CjsQ3ujK.cjs +25 -0
  105. package/{lib/focusable-Dv_6CFaY.cjs → components/focusable-DGWL1v1p.cjs} +1 -1
  106. package/{lib/focusable-DbUg-3Vp.js → components/focusable-cj2QhwDT.js} +1 -1
  107. package/components/icon/icon-base.d.ts +11 -0
  108. package/components/icon/icon.d.ts +12 -0
  109. package/components/icon/index.cjs +18 -0
  110. package/components/icon/index.d.ts +7 -0
  111. package/{lib → components}/icon/index.js +4 -5
  112. package/{lib/if-defined-Cv6xanXh.cjs → components/if-defined-B56xGmAg.cjs} +2 -2
  113. package/{lib/if-defined-CYpcjGCb.js → components/if-defined-BSAr_4u4.js} +1 -1
  114. package/{lib/index-ovT-qVzf.js → components/index-CMvLpPKD.js} +8 -9
  115. package/{lib/index-yNcLzjhM.cjs → components/index-DnWavOZD.cjs} +15 -15
  116. package/components/index.cjs +18 -0
  117. package/{lib → components}/index.js +131 -90
  118. package/components/infield-button/index.cjs +22 -0
  119. package/components/infield-button/index.d.ts +7 -0
  120. package/{lib → components}/infield-button/index.js +3 -4
  121. package/components/infield-button/infield-button.d.ts +25 -0
  122. package/components/label/index.cjs +18 -0
  123. package/components/label/index.d.ts +7 -0
  124. package/{lib → components}/label/index.js +1 -2
  125. package/components/label/label.d.ts +7 -0
  126. package/components/language-resolution-8yZa5r_P.js +53 -0
  127. package/components/language-resolution-DJzmyzZq.cjs +18 -0
  128. package/{lib/like-anchor-K8W0QYwC.cjs → components/like-anchor-Bmabl9ra.cjs} +4 -4
  129. package/{lib/like-anchor-cDeGGeHh.js → components/like-anchor-QBlvwFfT.js} +8 -9
  130. package/{lib/manage-help-text-2mSEy-AD.js → components/manage-help-text-Cozl9Sgn.js} +8 -8
  131. package/{lib/manage-help-text-iOk-zmy8.cjs → components/manage-help-text-OHXDgxyj.cjs} +3 -3
  132. package/{lib → components}/menu/index.cjs +1 -1
  133. package/components/menu/index.d.ts +16 -0
  134. package/{lib → components}/menu/index.js +1 -1
  135. package/components/menu/menu-divider.d.ts +14 -0
  136. package/components/menu/menu-group.d.ts +17 -0
  137. package/components/menu/menu-item.d.ts +125 -0
  138. package/components/menu/menu.d.ts +119 -0
  139. package/components/multi-language-field/index.cjs +39 -0
  140. package/components/multi-language-field/index.d.ts +7 -0
  141. package/{lib → components}/multi-language-field/index.js +6 -7
  142. package/components/multi-language-field/multi-language-field.d.ts +41 -0
  143. package/components/number-field/index.cjs +57 -0
  144. package/components/number-field/index.d.ts +7 -0
  145. package/{lib → components}/number-field/index.js +24 -24
  146. package/components/number-field/number-field.d.ts +113 -0
  147. package/{lib/observe-slot-text-BmsCNJig.cjs → components/observe-slot-text-CrYB2Pj-.cjs} +1 -1
  148. package/{lib/observe-slot-text-BoFRF-VI.js → components/observe-slot-text-ggb4kKgY.js} +1 -1
  149. package/components/overlay/abstract-overlay.d.ts +72 -0
  150. package/components/overlay/click-controller.d.ts +14 -0
  151. package/components/overlay/events.d.ts +23 -0
  152. package/components/overlay/full-size-plugin.d.ts +12 -0
  153. package/components/overlay/hover-controller.d.ts +20 -0
  154. package/components/overlay/index.cjs +73 -0
  155. package/components/overlay/index.d.ts +22 -0
  156. package/{lib → components}/overlay/index.js +55 -38
  157. package/components/overlay/interaction-controller.d.ts +38 -0
  158. package/components/overlay/loader.d.ts +4 -0
  159. package/components/overlay/longpress-controller.d.ts +21 -0
  160. package/components/overlay/overlay-dialog.d.ts +4 -0
  161. package/components/overlay/overlay-events.d.ts +11 -0
  162. package/components/overlay/overlay-no-popover.d.ts +4 -0
  163. package/components/overlay/overlay-popover.d.ts +4 -0
  164. package/components/overlay/overlay-stack.d.ts +44 -0
  165. package/components/overlay/overlay-timer.d.ts +21 -0
  166. package/components/overlay/overlay-trigger-directive.d.ts +26 -0
  167. package/components/overlay/overlay-trigger.d.ts +53 -0
  168. package/components/overlay/overlay-types.d.ts +50 -0
  169. package/components/overlay/overlay.d.ts +464 -0
  170. package/components/overlay/placement-controller.d.ts +157 -0
  171. package/components/overlay/slottable-request-directive.d.ts +17 -0
  172. package/components/overlay/slottable-request-event.d.ts +12 -0
  173. package/components/overlay/strategies.d.ts +8 -0
  174. package/components/overlay/virtual-trigger.d.ts +7 -0
  175. package/{lib/overlay-C7QKFqRc.js → components/overlay-CJ9by37f.js} +94 -84
  176. package/components/overlay-Deh6Ki6I.cjs +47 -0
  177. package/{lib/pending-state-Dbc2HIM2.cjs → components/pending-state-Do522lTd.cjs} +2 -2
  178. package/{lib/pending-state-D5KTK4_1.js → components/pending-state-TJj1x9xn.js} +2 -2
  179. package/components/picker/desktop-controller.d.ts +7 -0
  180. package/{lib → components}/picker/index.cjs +1 -1
  181. package/components/picker/index.d.ts +7 -0
  182. package/{lib → components}/picker/index.js +2 -2
  183. package/components/picker/interaction-controller.d.ts +43 -0
  184. package/components/picker/mobile-controller.d.ts +9 -0
  185. package/components/picker/picker.d.ts +154 -0
  186. package/components/picker/strategies.d.ts +6 -0
  187. package/components/picker-833Apxe4.js +655 -0
  188. package/components/picker-DDx8ii73.cjs +127 -0
  189. package/{lib/platform-DQYMG7JI.js → components/platform-BM-uMWpX.js} +34 -19
  190. package/components/platform-BiXhwqk3.cjs +18 -0
  191. package/{lib → components}/popover/index.cjs +1 -1
  192. package/components/popover/index.d.ts +7 -0
  193. package/{lib → components}/popover/index.js +2 -2
  194. package/components/popover/popover.d.ts +29 -0
  195. package/components/popover-BGOgXaka.cjs +30 -0
  196. package/{lib/popover-ZRVxogyp.js → components/popover-DlkzrLpl.js} +8 -9
  197. package/{lib → components}/progress-circle/index.cjs +1 -1
  198. package/components/progress-circle/index.d.ts +7 -0
  199. package/{lib → components}/progress-circle/index.js +1 -1
  200. package/components/progress-circle/progress-circle.d.ts +35 -0
  201. package/{lib/progress-circle-DpXiqW6a.js → components/progress-circle-Be24kv6B.js} +5 -6
  202. package/components/progress-circle-NNbCMK2i.cjs +33 -0
  203. package/components/radio/index.cjs +22 -0
  204. package/components/radio/index.d.ts +10 -0
  205. package/{lib → components}/radio/index.js +10 -11
  206. package/components/radio/radio-group.d.ts +27 -0
  207. package/components/radio/radio.d.ts +39 -0
  208. package/components/search/index.cjs +45 -0
  209. package/components/search/index.d.ts +7 -0
  210. package/{lib → components}/search/index.js +3 -4
  211. package/components/search/search.d.ts +27 -0
  212. package/{lib/sized-mixin-Dl0KoEcV.js → components/sized-mixin-BxMraZLS.js} +1 -1
  213. package/{lib/sized-mixin-BSYHt8nT.cjs → components/sized-mixin-D9LkrMjb.cjs} +1 -1
  214. package/components/slider/index.cjs +18 -0
  215. package/components/slider/index.d.ts +7 -0
  216. package/{lib → components}/slider/index.js +5 -6
  217. package/components/slider/slider.d.ts +24 -0
  218. package/{lib/state-DReJ3hB6.cjs → components/state-C5I1gP3G.cjs} +1 -1
  219. package/{lib/state-BAO-13Bs.js → components/state-CYxk12SV.js} +1 -1
  220. package/{lib/streaming-listener-DLo0wkMc.js → components/streaming-listener-CCalHg57.js} +18 -52
  221. package/components/streaming-listener-KVex1WWB.cjs +18 -0
  222. package/{lib/style-map-BqvQDFJt.js → components/style-map-Ct2LiEds.js} +1 -1
  223. package/{lib/style-map-BjBGQ_u3.cjs → components/style-map-uMq-yDJ3.cjs} +2 -2
  224. package/components/swatch/index.cjs +49 -0
  225. package/components/swatch/index.d.ts +10 -0
  226. package/{lib → components}/swatch/index.js +9 -10
  227. package/components/swatch/swatch-group.d.ts +41 -0
  228. package/components/swatch/swatch.d.ts +40 -0
  229. package/components/switch/index.cjs +22 -0
  230. package/components/switch/index.d.ts +7 -0
  231. package/{lib → components}/switch/index.js +6 -7
  232. package/components/switch/switch.d.ts +27 -0
  233. package/components/tags/index.cjs +32 -0
  234. package/components/tags/index.d.ts +10 -0
  235. package/{lib → components}/tags/index.js +17 -18
  236. package/components/tags/tag.d.ts +29 -0
  237. package/components/tags/tags.d.ts +28 -0
  238. package/components/text-field/help-text-manager.d.ts +19 -0
  239. package/components/text-field/help-text.d.ts +20 -0
  240. package/components/text-field/index.cjs +21 -0
  241. package/components/text-field/index.d.ts +14 -0
  242. package/{lib → components}/text-field/index.js +9 -9
  243. package/components/text-field/manage-help-text.d.ts +13 -0
  244. package/components/text-field/text-field.d.ts +142 -0
  245. package/{lib/text-field-C6Aa7XOb.cjs → components/text-field-5_ev9way.cjs} +15 -15
  246. package/{lib/text-field-DPk332j9.js → components/text-field-CvKSS59x.js} +28 -30
  247. package/components/toast/index.cjs +51 -0
  248. package/components/toast/index.d.ts +7 -0
  249. package/{lib → components}/toast/index.js +2 -3
  250. package/components/toast/toast.d.ts +77 -0
  251. package/components/tooltip/index.cjs +45 -0
  252. package/components/tooltip/index.d.ts +8 -0
  253. package/{lib → components}/tooltip/index.js +13 -12
  254. package/components/tooltip/tooltip-directive.d.ts +5 -0
  255. package/components/tooltip/tooltip.d.ts +55 -0
  256. package/components/unit-input/index.cjs +43 -0
  257. package/components/unit-input/index.d.ts +7 -0
  258. package/{lib → components}/unit-input/index.js +5 -6
  259. package/components/unit-input/unit-input.d.ts +33 -0
  260. package/components/utils.cjs +18 -0
  261. package/components/utils.js +42 -0
  262. package/custom-elements.json +1 -0
  263. package/index.d.ts +40 -0
  264. package/package.json +141 -103
  265. package/utils/base.d.ts +16 -0
  266. package/utils/condition-attribute-with-id.d.ts +2 -0
  267. package/utils/first-focusable-in.d.ts +3 -0
  268. package/utils/focus-visible.d.ts +29 -0
  269. package/utils/focusable-selectors.d.ts +2 -0
  270. package/utils/focusable.d.ts +58 -0
  271. package/utils/get-css-variable.d.ts +1 -0
  272. package/utils/get-label-from-slot.d.ts +1 -0
  273. package/utils/index.d.ts +6 -0
  274. package/utils/like-anchor.d.ts +23 -0
  275. package/utils/observe-slot-presence.d.ts +12 -0
  276. package/utils/observe-slot-text.d.ts +11 -0
  277. package/utils/platform.d.ts +10 -0
  278. package/utils/random-id.d.ts +1 -0
  279. package/utils/reactive-controllers/color.d.ts +54 -0
  280. package/utils/reactive-controllers/dependency-manger.d.ts +26 -0
  281. package/utils/reactive-controllers/element-resolution.d.ts +23 -0
  282. package/utils/reactive-controllers/focus-group.d.ts +62 -0
  283. package/utils/reactive-controllers/language-resolution.d.ts +11 -0
  284. package/utils/reactive-controllers/match-media.d.ts +13 -0
  285. package/utils/reactive-controllers/pending-state.d.ts +41 -0
  286. package/utils/reactive-controllers/roving-tabindex.d.ts +19 -0
  287. package/utils/reparent-child.d.ts +4 -0
  288. package/utils/sized-mixin.d.ts +17 -0
  289. package/utils/streaming-listener.d.ts +48 -0
  290. package/lib/accordion/index.cjs +0 -43
  291. package/lib/action-bar/index.cjs +0 -39
  292. package/lib/action-button/index.cjs +0 -24
  293. package/lib/action-group-D4MxBrq8.cjs +0 -20
  294. package/lib/avatar/index.cjs +0 -24
  295. package/lib/base-BCmA9Wxv.cjs +0 -30
  296. package/lib/base-nYalvNMy.js +0 -390
  297. package/lib/button/index.cjs +0 -20
  298. package/lib/button-base-B0iB_JTv.cjs +0 -25
  299. package/lib/button-group/index.cjs +0 -18
  300. package/lib/checkbox/index.cjs +0 -25
  301. package/lib/clear-button-D0djuaLb.cjs +0 -18
  302. package/lib/close-button-BrfeZvjk.cjs +0 -18
  303. package/lib/color-area/index.cjs +0 -80
  304. package/lib/color-field/index.cjs +0 -23
  305. package/lib/color-handle/index.cjs +0 -24
  306. package/lib/color-loupe-BICpNqFs.cjs +0 -56
  307. package/lib/color-menu/index.cjs +0 -86
  308. package/lib/color-picker/index.cjs +0 -48
  309. package/lib/color-slider/index.cjs +0 -57
  310. package/lib/divider/index.cjs +0 -18
  311. package/lib/field-group-TUFvhJkk.cjs +0 -23
  312. package/lib/field-label-BrJaeORz.cjs +0 -25
  313. package/lib/icon/index.cjs +0 -18
  314. package/lib/index.cjs +0 -18
  315. package/lib/infield-button/index.cjs +0 -22
  316. package/lib/label/index.cjs +0 -18
  317. package/lib/legend-position/index.cjs +0 -27
  318. package/lib/legend-position/index.js +0 -85
  319. package/lib/lit-html-B3ugcwD9.js +0 -248
  320. package/lib/lit-html-p4Oxv2-5.cjs +0 -24
  321. package/lib/multi-language-field/index.cjs +0 -39
  322. package/lib/number-field/index.cjs +0 -57
  323. package/lib/overlay/index.cjs +0 -73
  324. package/lib/overlay-DScraBAi.cjs +0 -47
  325. package/lib/picker--2OCYWnV.js +0 -657
  326. package/lib/picker-B9W7Haf4.cjs +0 -127
  327. package/lib/platform-CQzYNWKq.cjs +0 -18
  328. package/lib/popover-CVbjhSnx.cjs +0 -30
  329. package/lib/progress-circle-CiJoS8J7.cjs +0 -33
  330. package/lib/radio/index.cjs +0 -22
  331. package/lib/search/index.cjs +0 -45
  332. package/lib/slider/index.cjs +0 -18
  333. package/lib/streaming-listener-Bw4jE33f.cjs +0 -18
  334. package/lib/swatch/index.cjs +0 -49
  335. package/lib/switch/index.cjs +0 -22
  336. package/lib/tags/index.cjs +0 -32
  337. package/lib/text-field/index.cjs +0 -21
  338. package/lib/toast/index.cjs +0 -51
  339. package/lib/tooltip/index.cjs +0 -45
  340. package/lib/unit-input/index.cjs +0 -43
  341. /package/{lib → components}/base-BjTwmyRF.cjs +0 -0
  342. /package/{lib → components}/base-D76d76ww.js +0 -0
  343. /package/{lib → components}/color-Bg3tYsAQ.js +0 -0
  344. /package/{lib → components}/color-DphK4hwx.cjs +0 -0
  345. /package/{lib → components}/condition-attribute-with-id-DrQYZzFS.cjs +0 -0
  346. /package/{lib → components}/condition-attribute-with-id-Dv4lSRbe.js +0 -0
  347. /package/{lib → components}/dependency-manger-C5HCkMMB.cjs +0 -0
  348. /package/{lib → components}/dependency-manger-CEXvGQUV.js +0 -0
  349. /package/{lib → components}/directive-C7oCP5Bh.cjs +0 -0
  350. /package/{lib → components}/directive-oAbCiebi.js +0 -0
  351. /package/{lib → components}/divider.module-CXMNveQc.cjs +0 -0
  352. /package/{lib → components}/divider.module-DwOuLGU3.js +0 -0
  353. /package/{lib → components}/element-resolution-BvRLGqIU.cjs +0 -0
  354. /package/{lib → components}/element-resolution-FCUT-wql.js +0 -0
  355. /package/{lib → components}/focus-group-DHeTq18L.js +0 -0
  356. /package/{lib → components}/focus-group-DnxZUBhQ.cjs +0 -0
  357. /package/{lib → components}/focus-visible-B0P9aY_G.cjs +0 -0
  358. /package/{lib → components}/focus-visible-DBlJGoEW.js +0 -0
  359. /package/{lib → components}/focusable-selectors-B4YgbghQ.js +0 -0
  360. /package/{lib → components}/focusable-selectors-BgFlyFcY.cjs +0 -0
  361. /package/{lib → components}/index-C1chwzNp.js +0 -0
  362. /package/{lib → components}/index-DCKCHDTt.cjs +0 -0
  363. /package/{lib → components}/mutation-controller-DH7YOCyj.js +0 -0
  364. /package/{lib → components}/mutation-controller-DkOMCW-c.cjs +0 -0
  365. /package/{lib → components}/query-BL-TJj7K.cjs +0 -0
  366. /package/{lib → components}/query-D_KR_GUc.js +0 -0
  367. /package/{lib → components}/query-assigned-elements-DjfhL1cl.js +0 -0
  368. /package/{lib → components}/query-assigned-elements-DsKsfk7G.cjs +0 -0
  369. /package/{lib → components}/query-assigned-nodes-BcKWmGzy.cjs +0 -0
  370. /package/{lib → components}/query-assigned-nodes-C76XVPWY.js +0 -0
  371. /package/{lib → components}/random-id-ByCz1xaq.js +0 -0
  372. /package/{lib → components}/random-id-CqvckpWe.cjs +0 -0
  373. /package/{lib → components}/roving-tabindex-By_fCy_e.cjs +0 -0
  374. /package/{lib → components}/roving-tabindex-DOg4z6ZU.js +0 -0
  375. /package/{lib → components}/slottable-request-event-BfUUt1Mh.cjs +0 -0
  376. /package/{lib → components}/slottable-request-event-DggLA4Rx.js +0 -0
  377. /package/{lib → components}/when-CDK1Tt5Y.js +0 -0
  378. /package/{lib → components}/when-CDZyJPvd.cjs +0 -0
@@ -15,46 +15,14 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { nothing as d } from "lit";
19
- import { f as l } from "./async-directive-FGzMycjH.js";
20
- import { e as o } from "./directive-oAbCiebi.js";
21
- const m = Symbol(
22
- "language resolver updated"
23
- );
24
- class v {
25
- constructor(e) {
26
- this.language = document.documentElement.lang || navigator.language, this.host = e, this.host.addController(this);
27
- }
28
- hostConnected() {
29
- this.resolveLanguage();
30
- }
31
- hostDisconnected() {
32
- var e;
33
- (e = this.unsubscribe) == null || e.call(this);
34
- }
35
- resolveLanguage() {
36
- const e = new CustomEvent(
37
- "luzmo-language-context",
38
- {
39
- bubbles: !0,
40
- composed: !0,
41
- detail: {
42
- callback: (t, s) => {
43
- const n = this.language;
44
- this.language = t, this.unsubscribe = s, this.host.requestUpdate(m, n);
45
- }
46
- },
47
- cancelable: !0
48
- }
49
- );
50
- this.host.dispatchEvent(e);
51
- }
52
- }
53
- const i = ["", () => {
18
+ import { E as a } from "./base-CawdqE7p.js";
19
+ import { f as d } from "./async-directive-DWRUSKKF.js";
20
+ import { e as m } from "./directive-oAbCiebi.js";
21
+ const s = ["", () => {
54
22
  }];
55
- class u extends l {
23
+ class l extends d {
56
24
  constructor() {
57
- super(...arguments), this.start = i, this.streamInside = i, this.end = i, this.streamOutside = i, this.state = "off", this.handleStart = (e) => {
25
+ super(...arguments), this.start = s, this.streamInside = s, this.end = s, this.streamOutside = s, this.state = "off", this.handleStart = (e) => {
58
26
  this.clearStream(), this.callHandler(this.start[1], e), !e.defaultPrevented && (this.removeListeners(), this.addListeners("on"));
59
27
  }, this.handleInside = (e) => {
60
28
  this.handleStream(this.streamInside[1], e);
@@ -67,18 +35,18 @@ class u extends l {
67
35
  /* c8 ignore next 4 */
68
36
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
69
37
  render(e) {
70
- return d;
38
+ return a;
71
39
  }
72
40
  update(e, [
73
41
  {
74
42
  start: t,
75
- end: s,
76
- streamInside: n = i,
77
- streamOutside: h = i
43
+ end: i,
44
+ streamInside: n = s,
45
+ streamOutside: h = s
78
46
  }
79
47
  ]) {
80
48
  var r;
81
- this.element !== e.element && (this.element = e.element, this.removeListeners()), this.host = ((r = e.options) == null ? void 0 : r.host) || this.element, this.start = t, this.end = s, this.streamInside = n, this.streamOutside = h, this.addListeners();
49
+ this.element !== e.element && (this.element = e.element, this.removeListeners()), this.host = ((r = e.options) == null ? void 0 : r.host) || this.element, this.start = t, this.end = i, this.streamInside = n, this.streamOutside = h, this.addListeners();
82
50
  }
83
51
  addListeners(e) {
84
52
  this.state = e || this.state, this.state === "off" ? (this.addListener(this.streamOutside[0], this.handleOutside), this.addListener(this.start[0], this.handleStart)) : this.state === "on" && (this.addListener(this.streamInside[0], this.handleInside), this.addListener(this.end[0], this.handleEnd));
@@ -95,13 +63,13 @@ class u extends l {
95
63
  this.stream != null && (cancelAnimationFrame(this.stream), this.stream = void 0);
96
64
  }
97
65
  addListener(e, t) {
98
- Array.isArray(e) ? e.map((s) => {
99
- this.element.addEventListener(s, t);
66
+ Array.isArray(e) ? e.map((i) => {
67
+ this.element.addEventListener(i, t);
100
68
  }) : this.element.addEventListener(e, t);
101
69
  }
102
70
  removeListener(e, t) {
103
- Array.isArray(e) ? e.map((s) => {
104
- this.element.removeEventListener(s, t);
71
+ Array.isArray(e) ? e.map((i) => {
72
+ this.element.removeEventListener(i, t);
105
73
  }) : this.element.removeEventListener(e, t);
106
74
  }
107
75
  removeListeners() {
@@ -115,11 +83,9 @@ class u extends l {
115
83
  this.addListeners();
116
84
  }
117
85
  }
118
- const f = o(
119
- u
86
+ const u = m(
87
+ l
120
88
  );
121
89
  export {
122
- v as L,
123
- m as l,
124
- f as s
90
+ u as s
125
91
  };
@@ -0,0 +1,18 @@
1
+ /*! * Lucero - The design system for Luzmo.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ * This license allows users with a current active Luzmo account to use Lucero.
7
+ * This license terminates automatically if a user no longer has an active Luzmo account.
8
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ * SOFTWARE.
17
+ * */
18
+ "use strict";const a=require("./base-B7Pfl2if.cjs"),d=require("./async-directive-D_Ter1F8.cjs"),m=require("./directive-C7oCP5Bh.cjs"),s=["",()=>{}];class l extends d.f{constructor(){super(...arguments),this.start=s,this.streamInside=s,this.end=s,this.streamOutside=s,this.state="off",this.handleStart=e=>{this.clearStream(),this.callHandler(this.start[1],e),!e.defaultPrevented&&(this.removeListeners(),this.addListeners("on"))},this.handleInside=e=>{this.handleStream(this.streamInside[1],e)},this.handleEnd=e=>{this.clearStream(),this.callHandler(this.end[1],e),this.removeListeners(),this.addListeners("off")},this.handleOutside=e=>{this.handleStream(this.streamOutside[1],e)}}render(e){return a.E}update(e,[{start:t,end:i,streamInside:n=s,streamOutside:h=s}]){var r;this.element!==e.element&&(this.element=e.element,this.removeListeners()),this.host=((r=e.options)==null?void 0:r.host)||this.element,this.start=t,this.end=i,this.streamInside=n,this.streamOutside=h,this.addListeners()}addListeners(e){this.state=e||this.state,this.state==="off"?(this.addListener(this.streamOutside[0],this.handleOutside),this.addListener(this.start[0],this.handleStart)):this.state==="on"&&(this.addListener(this.streamInside[0],this.handleInside),this.addListener(this.end[0],this.handleEnd))}callHandler(e,t){typeof e=="function"?e.call(this.host,t):e.handleEvent(t)}handleStream(e,t){this.stream||(this.callHandler(e,t),this.stream=requestAnimationFrame(()=>{this.stream=void 0}))}clearStream(){this.stream!=null&&(cancelAnimationFrame(this.stream),this.stream=void 0)}addListener(e,t){Array.isArray(e)?e.map(i=>{this.element.addEventListener(i,t)}):this.element.addEventListener(e,t)}removeListener(e,t){Array.isArray(e)?e.map(i=>{this.element.removeEventListener(i,t)}):this.element.removeEventListener(e,t)}removeListeners(){this.removeListener(this.start[0],this.handleStart),this.removeListener(this.streamInside[0],this.handleInside),this.removeListener(this.end[0],this.handleEnd),this.removeListener(this.streamOutside[0],this.handleOutside)}disconnected(){this.removeListeners()}reconnected(){this.addListeners()}}const o=m.e(l);exports.streamingListener=o;
@@ -15,7 +15,7 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { T as l } from "./lit-html-B3ugcwD9.js";
18
+ import { T as l } from "./base-CawdqE7p.js";
19
19
  import { e as u, i as c, t as d } from "./directive-oAbCiebi.js";
20
20
  /**
21
21
  * @license
@@ -15,8 +15,8 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- "use strict";const c=require("./lit-html-p4Oxv2-5.cjs"),o=require("./directive-C7oCP5Bh.cjs");/**
18
+ "use strict";const u=require("./base-B7Pfl2if.cjs"),o=require("./directive-C7oCP5Bh.cjs");/**
19
19
  * @license
20
20
  * Copyright 2018 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */const l="important",u=" !"+l,d=o.e(class extends o.i{constructor(n){var t;if(super(n),n.type!==o.t.ATTRIBUTE||n.name!=="style"||((t=n.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((t,s)=>{const e=n[s];return e==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(n,[t]){const{style:s}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)t[e]==null&&(this.ft.delete(e),e.includes("-")?s.removeProperty(e):s[e]=null);for(const e in t){const r=t[e];if(r!=null){this.ft.add(e);const i=typeof r=="string"&&r.endsWith(u);e.includes("-")||i?s.setProperty(e,i?r.slice(0,-11):r,i?l:""):s[e]=r}}return c.T}});exports.o=d;
22
+ */const c="important",l=" !"+c,d=o.e(class extends o.i{constructor(n){var t;if(super(n),n.type!==o.t.ATTRIBUTE||n.name!=="style"||((t=n.strings)==null?void 0:t.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(n){return Object.keys(n).reduce((t,s)=>{const e=n[s];return e==null?t:t+`${s=s.includes("-")?s:s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${e};`},"")}update(n,[t]){const{style:s}=n.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(const e of this.ft)t[e]==null&&(this.ft.delete(e),e.includes("-")?s.removeProperty(e):s[e]=null);for(const e in t){const r=t[e];if(r!=null){this.ft.add(e);const i=typeof r=="string"&&r.endsWith(l);e.includes("-")||i?s.setProperty(e,i?r.slice(0,-11):r,i?c:""):s[e]=r}}return u.T}});exports.o=d;
@@ -0,0 +1,49 @@
1
+ /*! * Lucero - The design system for Luzmo.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ * This license allows users with a current active Luzmo account to use Lucero.
7
+ * This license terminates automatically if a user no longer has an active Luzmo account.
8
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ * SOFTWARE.
17
+ * */
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("@luzmo/icons"),r=require("../base-B7Pfl2if.cjs"),w=require("../if-defined-B56xGmAg.cjs"),b=require("../when-CDZyJPvd.cjs"),g=require("../focusable-DGWL1v1p.cjs"),p=require("../sized-mixin-D9LkrMjb.cjs"),v=require("../mutation-controller-DkOMCW-c.cjs"),m=require("../query-assigned-elements-DsKsfk7G.cjs"),z=require("../roving-tabindex-By_fCy_e.cjs"),x='@media (forced-colors: active){:host{--highcontrast-swatch-disabled-icon-color: GrayText;--highcontrast-swatch-focus-indicator-color: ButtonText;--highcontrast-swatch-background-color-selected: Background;--highcontrast-swatch-border-color-selected: Highlight;--highcontrast-swatch-border-color: ButtonText;--highcontrast-swatch-fill-foreground-color: ButtonText}.fill{forced-color-adjust:none}:host([disabled]){--highcontrast-swatch-border-color: GrayText}}:host{box-sizing:border-box;inline-size:var(--luzmo-swatch-size, var(--swatch-size));block-size:var(--luzmo-swatch-size, var(--swatch-size));-webkit-user-select:none;user-select:none;outline:none;justify-content:center;align-items:center;display:flex;position:relative}.disabled-icon{inline-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size));block-size:var(--luzmo-swatch-disabled-icon-size, var(--swatch-disabled-icon-size))}:host,:host:before{border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius))}:host([selected]){background-color:var(--highcontrast-swatch-background-color-selected, var(--luzmo-swatch-inner-border-color-selected, var(--swatch-inner-border-color-selected)))}:host([selected]) .fill:before{box-shadow:none;border-radius:0}:host([selected]):before{opacity:1}:host .is-image .fill:before{background-color:initial}:host([mixed-value]) .fill{background:none;background:var(--picked-color, transparent)}:host([mixed-value]) .mixed-value-icon{color:var(--swatch-dash-icon-color);display:block}:host([nothing]) .fill{background-color:initial;background-color:var(--picked-color, transparent);background-image:none}:host([nothing]) .fill:after{inline-size:var(--luzmo-swatch-slash-thickness, var(--swatch-slash-thickness));content:"";block-size:200%;background:var(--highcontrast-swatch-fill-foreground-color, var(--luzmo-swatch-slash-icon-color, var(--swatch-slash-icon-color)));position:absolute;transform:rotate(-45deg)}:host([nothing][shape=rectangle]) .fill:after{transform:rotate(-25deg)}:host([disabled]) .disabled-icon{display:block}:host:before{content:"";border-width:var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected));border-style:solid;border-color:var(--highcontrast-swatch-border-color-selected, var(--luzmo-swatch-border-color-selected, var(--swatch-border-color-selected)));opacity:0;pointer-events:none;position:absolute;top:0;right:0;bottom:0;left:0}:host:after{content:"";inset:calc(var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)) * -2);opacity:0;border-width:var(--luzmo-swatch-focus-indicator-width, var(--swatch-focus-indicator-width));border-style:solid;border-color:var(--highcontrast-swatch-focus-indicator-color, var(--luzmo-swatch-focus-indicator-color, var(--swatch-focus-indicator-color)));border-radius:var(--luzmo-swatch-focus-indicator-border-radius, var(--swatch-focus-indicator-border-radius));transition:opacity var(--luzmo-animation-duration) ease-in-out;position:absolute}:host(:focus-visible):after{opacity:1}.fill{inline-size:100%;block-size:100%;box-sizing:border-box;border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));justify-content:center;align-items:center;display:flex;position:relative;overflow:hidden}.fill:before{content:"";z-index:0;box-sizing:border-box;box-shadow:inset 0 0 0 var(--luzmo-swatch-border-thickness, var(--swatch-border-thickness)) var(--highcontrast-swatch-border-color, var(--luzmo-swatch-border-color, var(--swatch-border-color)));border-radius:var(--luzmo-swatch-border-radius, var(--swatch-border-radius));position:absolute;top:0;right:0;bottom:0;left:0}:host([border=none]) .fill:before,.fill:before{background-color:initial;background-color:var(--picked-color, transparent)}:host([border=none]) .fill:before{box-shadow:none}.mixed-value-icon{pointer-events:none;color:#0000;color:var(--picked-color, transparent);display:none}.disabled-icon{z-index:1;pointer-events:none;color:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));stroke:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)));display:none;position:relative}.disabled-icon path:first-child{fill:var(--highcontrast-swatch-disabled-icon-color, var(--luzmo-swatch-disabled-icon-color, var(--swatch-disabled-icon-color)))}.disabled-icon path:last-child{fill:var(--luzmo-swatch-icon-border-color, var(--swatch-icon-border-color))}:host([shape=rectangle]){inline-size:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2)}:host([rounding=none]),:host([rounding=none]) .fill,:host([rounding=none]) .fill:before,:host([rounding=none][selected]) .fill,:host([rounding=none][selected]) .fill:before,:host([rounding=none]):after,:host([rounding=none]):before{border-radius:0}:host([rounding=full][selected]:not([shape=rectangle])) .fill,:host([rounding=full][selected]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])),:host([rounding=full]:not([shape=rectangle])) .fill,:host([rounding=full]:not([shape=rectangle])) .fill:before,:host([rounding=full]:not([shape=rectangle])):after,:host([rounding=full]:not([shape=rectangle])):before{border-radius:100%}:host([selected]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)));height:calc(var(--luzmo-swatch-size, var(--swatch-size)) - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}:host([selected][shape=rectangle]) .fill{width:calc(var(--luzmo-swatch-size, var(--swatch-size)) * 2 - 2 * var(--luzmo-swatch-border-thickness-selected, var(--swatch-border-thickness-selected)) + -2 * var(--luzmo-swatch-focus-indicator-gap, var(--swatch-focus-indicator-gap)))}::slotted([slot=image]){object-fit:contain;inline-size:100%;block-size:100%;transition:width var(--luzmo-animation-duration) ease-in-out,height var(--luzmo-animation-duration) ease-in-out}:host([size=xl]){--swatch-size: var(--luzmo-component-height-xl);--swatch-disabled-icon-size: 24px;--swatch-slash-thickness: 6px}:host([size=l]){--swatch-size: var(--luzmo-component-height-l);--swatch-disabled-icon-size: 20px;--swatch-slash-thickness: 5px}:host([size=s]){--swatch-size: var(--luzmo-component-height-s);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 3px}:host([size=xs]){--swatch-size: var(--luzmo-component-height-xs);--swatch-disabled-icon-size: 16px;--swatch-slash-thickness: 2px}:host([size=xxs]){--swatch-size: var(--luzmo-component-height-xxs);--swatch-disabled-icon-size: 14px;--swatch-slash-thickness: 2px}:host{--swatch-size: var(--luzmo-component-height);--swatch-disabled-icon-size: 18px;--swatch-slash-thickness: 4px}:host{--swatch-border-radius: var(--luzmo-border-radius-s);--swatch-focus-indicator-border-radius: var(--luzmo-border-radius-s);--swatch-border-thickness: var(--luzmo-border-width);--swatch-border-thickness-selected: var(--luzmo-border-width);--swatch-focus-indicator-width: var(--luzmo-indicator-width);--swatch-focus-indicator-gap: var(--luzmo-indicator-gap);--swatch-border-color: var(--luzmo-border-color-down);--swatch-icon-border-color: var(--luzmo-border-color);--swatch-border-color-selected: var(--luzmo-border-color-full-down);--swatch-inner-border-color-selected: var(--luzmo-background-color);--swatch-disabled-icon-color: rgb(255, 255, 255);--swatch-dash-icon-color: var(--luzmo-font-color);--swatch-slash-icon-color: var(--luzmo-color-negative);--swatch-focus-indicator-color: var(--luzmo-primary)}.fill:before{background:var(--picked-color, transparent)}:host([border=none]) .fill:before{background:var(--picked-color, transparent)}:host .is-image .fill:before{background:#0000}:host .opacity-checkerboard{background:repeating-conic-gradient(var(--luzmo-swatch-checkerboard-light, rgb(255, 255, 255)) 0 25%,var(--luzmo-swatch-checkerboard-dark, rgb(230, 230, 230)) 0 50%) var(--luzmo-swatch-checkerboard-position, left top)/calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2) calc(var(--luzmo-swatch-checkerboard-size, 8px) * 2)}';var y=Object.defineProperty,k=Object.getOwnPropertyDescriptor,c=(h,e,t,o)=>{for(var s=o>1?void 0:o?k(e,t):e,i=h.length-1,a;i>=0;i--)(a=h[i])&&(s=(o?a(e,t,s):a(s))||s);return o&&s&&y(e,t,s),s};class l extends p.SizedMixin(g.Focusable,{validSizes:["xxs","xs","s","m","l","xl"],noDefaultSize:!0}){constructor(){super(...arguments),this.color="",this.label="",this.mixedValue=!1,this.nothing=!1,this.role="button",this.selected=!1,this.readonly=!1,this.renderDisabled=()=>r.x`
19
+ <svg
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ class="disabled-icon"
22
+ viewBox="0 0 20 20"
23
+ >
24
+ <path
25
+ d="M9.889,1a8.889,8.889,0,1,0,8.889,8.889A8.889,8.889,0,0,0,9.889,1Zm6.667,8.889a6.635,6.635,0,0,1-1.233,3.863l-9.3-9.3A6.667,6.667,0,0,1,16.556,9.889Zm-13.333,0A6.636,6.636,0,0,1,4.455,6.026l9.3,9.3A6.667,6.667,0,0,1,3.222,9.889Z"
26
+ stroke="none"
27
+ fill="var(--swatch-disabled-icon-color)"
28
+ />
29
+ <path
30
+ d="M 9.888889312744141 1 C 4.979689598083496 1 1 4.979689598083496 1 9.888889312744141 C 1 14.7980899810791 4.979689598083496 18.77777862548828 9.888889312744141 18.77777862548828 C 14.7980899810791 18.77777862548828 18.77777862548828 14.7980899810791 18.77777862548828 9.888889312744141 C 18.77777862548828 4.979689598083496 14.7980899810791 1 9.888889312744141 1 M 15.32277870178223 13.75166893005371 L 6.02610969543457 4.454998970031738 C 8.059318542480469 3.009572982788086 10.72937774658203 2.820217132568359 12.9462194442749 3.964249610900879 C 15.16304969787598 5.10828971862793 16.55568885803223 7.394259452819824 16.5555591583252 9.888889312744141 C 16.55776977539062 11.27357959747314 16.126708984375 12.62425994873047 15.32277870178223 13.75166893005371 M 9.888258934020996 16.55648612976074 C 8.843273162841797 16.55648612976074 7.794573783874512 16.31111145019531 6.831318855285645 15.8139591217041 C 4.614439010620117 14.66977882385254 3.221879959106445 12.38361930847168 3.222219467163086 9.888889312744141 C 3.220088958740234 8.504219055175781 3.651140213012695 7.153559684753418 4.454998970031738 6.02610969543457 L 13.75166893005371 15.32333946228027 C 12.60186290740967 16.14075088500977 11.24825286865234 16.55648612976074 9.888258934020996 16.55648612976074 M 9.888889312744141 0 C 15.34163951873779 0 19.77777862548828 4.436139106750488 19.77777862548828 9.888889312744141 C 19.77777862548828 15.34163951873779 15.34163951873779 19.77777862548828 9.888889312744141 19.77777862548828 C 4.436139106750488 19.77777862548828 0 15.34163951873779 0 9.888889312744141 C 0 4.436139106750488 4.436139106750488 0 9.888889312744141 0 Z M 15.10232830047607 12.11699867248535 C 15.40205764770508 11.41858959197998 15.55679702758789 10.66494941711426 15.5555591583252 9.89048957824707 C 15.5556697845459 7.759209632873535 14.38009929656982 5.829549789428711 12.48761940002441 4.852889060974121 C 11.68764972686768 4.440059661865234 10.78924942016602 4.22184944152832 9.889529228210449 4.22184944152832 C 9.114802360534668 4.22184944152832 8.360831260681152 4.377038955688477 7.661839485168457 4.676509857177734 L 15.10232830047607 12.11699867248535 Z M 12.11597919464111 15.10181331634521 L 4.675475120544434 7.660861015319824 C 4.375750541687012 8.359296798706055 4.221027374267578 9.112875938415527 4.222219467163086 9.887349128723145 C 4.221929550170898 12.01874923706055 5.397418975830078 13.94855880737305 7.289958953857422 14.92533874511719 C 8.08997917175293 15.3382396697998 8.988459587097168 15.55648994445801 9.888258934020996 15.55648994445801 C 10.66298007965088 15.55648994445801 11.41698551177979 15.40128421783447 12.11597919464111 15.10181331634521 Z"
31
+ stroke="none"
32
+ fill="var(--swatch-disabled-icon-stroke-color)"
33
+ />
34
+ </svg>
35
+ `,this.renderMixedValue=()=>u.luzmoIcon(u.luzmoDash)}static get styles(){return[r.r(x)]}get value(){return this._value||this.color||this.label}set value(e){if(e===this._value)return;const t=this.value;this._value=e,this.requestUpdate("value",t)}get focusElement(){return this}toggle(e){this.readonly||(this.selected=e??!this.selected)}handleClick(){if(this.disabled||this.mixedValue)return;this.toggle(),this.dispatchEvent(new Event("change",{cancelable:!0,bubbles:!0}))||this.toggle()}handleKeydown(e){const{code:t}=e;switch(t){case"Space":{e.preventDefault(),this.addEventListener("keyup",this.handleKeyup);break}}}handleKeypress(e){const{code:t}=e;switch(t){case"Enter":case"NumpadEnter":{this.click();break}}}handleKeyup(e){const{code:t}=e;switch(t){case"Space":{this.removeEventListener("keyup",this.handleKeyup),this.click();break}}}render(){return r.x`
36
+ <div
37
+ class="opacity-checkerboard fill"
38
+ style=${w.o(this.color?`--picked-color: ${this.color}`:void 0)}
39
+ >
40
+ <slot name="image"></slot>
41
+ ${b.n(this.disabled,this.renderDisabled)}
42
+ ${b.n(this.mixedValue,this.renderMixedValue)}
43
+ </div>
44
+ `}willUpdate(e){var t;if(this.getAttribute("role")||this.setAttribute("role","button"),(e.has("selected")||e.has("role"))&&!this.readonly){const o=this.role==="button"?"aria-pressed":"aria-checked",s=this.role==="button"?"aria-checked":"aria-pressed";e.has("role")&&this.removeAttribute(s),this.setAttribute(o,this.selected?"true":"false")}(e.has("label")||e.has("color")||e.has("mixedValue"))&&(this.label!==this.color&&((t=this.label)!=null&&t.length)?this.setAttribute("aria-label",this.label):this.color?this.setAttribute("aria-label",this.color):this.mixedValue?this.setAttribute("aria-label","Mixed"):this.removeAttribute("aria-label"))}firstUpdated(e){super.firstUpdated(e),this.addEventListener("click",this.handleClick),this.addEventListener("keydown",this.handleKeydown),this.addEventListener("keypress",this.handleKeypress),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0")}}c([r.n({reflect:!0})],l.prototype,"border",2);c([r.n()],l.prototype,"color",2);c([r.n()],l.prototype,"label",2);c([r.n({type:Boolean,reflect:!0,attribute:"mixed-value"})],l.prototype,"mixedValue",2);c([r.n({type:Boolean,reflect:!0})],l.prototype,"nothing",2);c([r.n({reflect:!0})],l.prototype,"role",2);c([r.n({reflect:!0})],l.prototype,"rounding",2);c([r.n({type:Boolean,reflect:!0})],l.prototype,"selected",2);c([r.n({type:Boolean,reflect:!0})],l.prototype,"readonly",2);c([r.n({reflect:!0})],l.prototype,"shape",2);c([r.n()],l.prototype,"value",1);const S=":host{justify-content:flex-start;align-items:flex-start;gap:var(--luzmo-swatch-group-spacing-regular, var(--swatch-group-spacing-regular));flex-flow:wrap;display:inline-flex}:host([density=compact]){gap:var(--luzmo-swatch-group-spacing-compact, var(--swatch-group-spacing-compact))}:host([density=spacious]){gap:var(--luzmo-swatch-group-spacing-spacious, var(--swatch-group-spacing-spacious))}:host{--swatch-group-spacing-compact: 2px;--swatch-group-spacing-regular: 4px;--swatch-group-spacing-spacious: 8px}";var C=Object.defineProperty,A=Object.getOwnPropertyDescriptor,d=(h,e,t,o)=>{for(var s=o>1?void 0:o?A(e,t):e,i=h.length-1,a;i>=0;i--)(a=h[i])&&(s=(o?a(e,t,s):a(s))||s);return o&&s&&C(e,t,s),s};class n extends p.SizedMixin(r.LuzmoElement,{validSizes:["xs","s","m","l"],noDefaultSize:!0}){constructor(){super(),this._selected=[],this.selectedSet=new Set,this.rovingTabindexController=new z.RovingTabindexController(this,{focusInIndex:e=>{let t=-1;const o=e.findIndex((s,i)=>(!e[t]&&!s.disabled&&(t=i),s.selected&&!s.disabled));return e[o]?o:t},elements:()=>this.swatches,isFocusableElement:e=>!e.disabled}),this.manageChange=async()=>{const e=new Set;this.selectedSet=new Set(this.selected),await Promise.all(this.swatches.map(t=>t.updateComplete)),this.swatches.forEach(t=>{e.add(t.value),t.selected&&this.selectedSet.add(t.value)}),this.selectedSet.forEach(t=>{e.has(t)||this.selectedSet.delete(t)}),this._selected=[...this.selectedSet],this.rovingTabindexController.clearElementCache()},new v.s(this,{config:{attributes:!0,childList:!0,subtree:!0},callback:()=>{this.manageChange()}})}static get styles(){return[r.r(S)]}get selected(){return this._selected}set selected(e){if(e===this.selected)return;const t=this.selected;this._selected=e,this.requestUpdate("selected",t)}focus(e){this.rovingTabindexController.focus(e)}handleChange(e){e.stopPropagation();const t=this.selected;if(!this.selects){e.preventDefault();return}if(this.selects==="single"){const{target:s}=e;if(s.tabIndex=0,s.selected=!0,this.selectedSet.has(s.value))return;this.selectedSet.clear(),this.selectedSet.add(s.value),this.rovingTabindexController.elements.forEach(i=>{i!==s&&(i.selected=!1)})}else if(this.selects==="multiple"){const{target:s}=e;s.selected?this.selectedSet.add(s.value):this.selectedSet.delete(s.value)}this._selected=[...this.selectedSet],this.dispatchEvent(new Event("change",{cancelable:!0,bubbles:!0}))||(this._selected=t,e.preventDefault())}getPassthroughSwatchActions(e){const t={};e.has("selects")&&(this.selects||e.get("selects")!==void 0)&&(t.selects=this.selects),e.has("border")&&(this.border||e.get("border")!==void 0)&&(t.border=this.border),e.has("rounding")&&(this.rounding||e.get("rounding")!==void 0)&&(t.rounding=this.rounding),e.has("size")&&(this.size!=="m"||e.get("size")!==void 0)&&(t.size=this.size),e.has("shape")&&(this.shape||e.get("shape")!==void 0)&&(t.shape=this.shape);const o=[];return Object.keys(t).length>0&&o.push(s=>{"border"in t&&(s.border=t.border),"rounding"in t&&(s.rounding=t.rounding),"shape"in t&&(s.shape=t.shape),"size"in t&&(s.size=t.size)}),o}getSelectionSwatchActions(e){const t=[];if(!e.has("selects"))return t;this.selects?this.setAttribute("role",this.selects==="single"?"radiogroup":"group"):this.removeAttribute("role");const o={single:"radio",multiple:"checkbox"},s=this.selects?o[this.selects]:"button";return t.push(i=>{i.setAttribute("role",s)}),t}render(){return r.x`
45
+ <slot
46
+ @change=${this.handleChange}
47
+ @slotchange=${this.manageChange}
48
+ ></slot>
49
+ `}willUpdate(e){const t=[...this.getPassthroughSwatchActions(e),...this.getSelectionSwatchActions(e)];let o=new Set(this.selected);const s=new Set;e.has("selected")&&t.push(a=>{s.add(a.value),a.selected=!!(o.has(a.value)||!this.hasUpdated&&a.selected)});const i=()=>{o=new Set(this.selected),this.swatches.forEach(a=>{t.forEach(f=>{f(a)})}),e.has("selected")&&(this._selected=[...o.values()].filter(a=>s.has(a)))};this.hasUpdated?i():this.renderRoot.addEventListener("slotchange",()=>{requestAnimationFrame(i)},{once:!0})}}d([r.n({reflect:!0})],n.prototype,"border",2);d([r.n({reflect:!0})],n.prototype,"density",2);d([r.n({reflect:!0})],n.prototype,"rounding",2);d([r.n({type:Array})],n.prototype,"selected",1);d([r.n()],n.prototype,"selects",2);d([r.n({reflect:!0})],n.prototype,"shape",2);d([m.o({flatten:!0})],n.prototype,"swatches",2);customElements.get("luzmo-swatch")||customElements.define("luzmo-swatch",l);customElements.get("luzmo-swatch-group")||customElements.define("luzmo-swatch-group",n);exports.LuzmoSwatch=l;exports.LuzmoSwatchGroup=n;
@@ -0,0 +1,10 @@
1
+ import { LuzmoSwatch } from './swatch';
2
+ import { LuzmoSwatchGroup } from './swatch-group';
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ 'luzmo-swatch': LuzmoSwatch;
6
+ 'luzmo-swatch-group': LuzmoSwatchGroup;
7
+ }
8
+ }
9
+ export { LuzmoSwatch } from './swatch';
10
+ export { LuzmoSwatchGroup } from './swatch-group';
@@ -16,12 +16,11 @@
16
16
  * SOFTWARE.
17
17
  * */
18
18
  import { luzmoIcon as z, luzmoDash as v } from "@luzmo/icons";
19
- import { F as w } from "../focusable-DbUg-3Vp.js";
20
- import { S as m } from "../sized-mixin-Dl0KoEcV.js";
21
- import { html as u, unsafeCSS as p } from "lit";
22
- import { n as l, L as x } from "../base-nYalvNMy.js";
23
- import { o as y } from "../if-defined-CYpcjGCb.js";
19
+ import { x as u, r as m, n as l, a as w } from "../base-CawdqE7p.js";
20
+ import { o as x } from "../if-defined-BSAr_4u4.js";
24
21
  import { n as b } from "../when-CDK1Tt5Y.js";
22
+ import { F as y } from "../focusable-cj2QhwDT.js";
23
+ import { S as p } from "../sized-mixin-BxMraZLS.js";
25
24
  import { s as k } from "../mutation-controller-DH7YOCyj.js";
26
25
  import { o as S } from "../query-assigned-elements-DjfhL1cl.js";
27
26
  import { R as C } from "../roving-tabindex-DOg4z6ZU.js";
@@ -38,7 +37,7 @@ var E = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, n = (c, e, o
38
37
  (i = c[s]) && (t = (r ? i(e, o, t) : i(t)) || t);
39
38
  return r && t && E(e, o, t), t;
40
39
  };
41
- class a extends m(w, {
40
+ class a extends p(y, {
42
41
  validSizes: ["xxs", "xs", "s", "m", "l", "xl"],
43
42
  noDefaultSize: !0
44
43
  }) {
@@ -63,7 +62,7 @@ class a extends m(w, {
63
62
  `, this.renderMixedValue = () => z(v);
64
63
  }
65
64
  static get styles() {
66
- return [p(A)];
65
+ return [m(A)];
67
66
  }
68
67
  get value() {
69
68
  return this._value || this.color || this.label;
@@ -122,7 +121,7 @@ class a extends m(w, {
122
121
  return u`
123
122
  <div
124
123
  class="opacity-checkerboard fill"
125
- style=${y(
124
+ style=${x(
126
125
  this.color ? `--picked-color: ${this.color}` : void 0
127
126
  )}
128
127
  >
@@ -183,7 +182,7 @@ var L = Object.defineProperty, M = Object.getOwnPropertyDescriptor, h = (c, e, o
183
182
  (i = c[s]) && (t = (r ? i(e, o, t) : i(t)) || t);
184
183
  return r && t && L(e, o, t), t;
185
184
  };
186
- class d extends m(x, {
185
+ class d extends p(w, {
187
186
  validSizes: ["xs", "s", "m", "l"],
188
187
  noDefaultSize: !0
189
188
  }) {
@@ -215,7 +214,7 @@ class d extends m(x, {
215
214
  });
216
215
  }
217
216
  static get styles() {
218
- return [p(D)];
217
+ return [m(D)];
219
218
  }
220
219
  get selected() {
221
220
  return this._selected;
@@ -0,0 +1,41 @@
1
+ import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
2
+ import { LuzmoElement } from '../../utils/base';
3
+ import { RovingTabindexController } from '../../utils/reactive-controllers/roving-tabindex';
4
+ import { ElementSize } from '../../utils/sized-mixin';
5
+ import type { LuzmoSwatch, SwatchBorder, SwatchRounding, SwatchShape } from './swatch';
6
+ export type SwatchGroupSizes = Exclude<ElementSize, 'xxs' | 'xl' | 'xxl'>;
7
+ export type SwatchSelects = 'single' | 'multiple' | undefined;
8
+ declare const LuzmoSwatchGroup_base: typeof LuzmoElement & {
9
+ new (...args: any[]): import("../..").SizedElementInterface;
10
+ prototype: import("../..").SizedElementInterface;
11
+ };
12
+ /**
13
+ * @element luzmo-swatch-group
14
+ *
15
+ * @slot - Swatch elements to manage as a group
16
+ */
17
+ export declare class LuzmoSwatchGroup extends LuzmoSwatchGroup_base {
18
+ static get styles(): CSSResultArray;
19
+ border: SwatchBorder;
20
+ density: 'compact' | 'spacious' | undefined;
21
+ rounding: SwatchRounding;
22
+ get selected(): string[];
23
+ set selected(selected: string[]);
24
+ private _selected;
25
+ selects: SwatchSelects;
26
+ private selectedSet;
27
+ shape: SwatchShape;
28
+ swatches: LuzmoSwatch[];
29
+ constructor();
30
+ rovingTabindexController: RovingTabindexController<LuzmoSwatch>;
31
+ focus(options?: FocusOptions): void;
32
+ protected handleChange(event: Event & {
33
+ target: LuzmoSwatch;
34
+ }): void;
35
+ private manageChange;
36
+ private getPassthroughSwatchActions;
37
+ private getSelectionSwatchActions;
38
+ protected render(): TemplateResult;
39
+ protected willUpdate(changes: PropertyValues<this>): void;
40
+ }
41
+ export {};
@@ -0,0 +1,40 @@
1
+ import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
2
+ import { Focusable } from '../../utils/focusable';
3
+ export type SwatchBorder = 'none' | 'light' | undefined;
4
+ export type SwatchRounding = 'none' | 'full' | undefined;
5
+ export type SwatchShape = 'rectangle' | undefined;
6
+ declare const LuzmoSwatch_base: typeof Focusable & {
7
+ new (...args: any[]): import("../..").SizedElementInterface;
8
+ prototype: import("../..").SizedElementInterface;
9
+ };
10
+ /**
11
+ * @element luzmo-swatch
12
+ */
13
+ export declare class LuzmoSwatch extends LuzmoSwatch_base {
14
+ static get styles(): CSSResultArray;
15
+ border: SwatchBorder;
16
+ color: string;
17
+ label: string;
18
+ mixedValue: boolean;
19
+ nothing: boolean;
20
+ role: string;
21
+ rounding: SwatchRounding;
22
+ selected: boolean;
23
+ readonly: boolean;
24
+ shape: SwatchShape;
25
+ get value(): string;
26
+ set value(value: string);
27
+ private _value?;
28
+ get focusElement(): HTMLElement;
29
+ toggle(force?: boolean): void;
30
+ private handleClick;
31
+ protected handleKeydown(event: KeyboardEvent): void;
32
+ private handleKeypress;
33
+ protected handleKeyup(event: KeyboardEvent): void;
34
+ protected renderDisabled: () => TemplateResult;
35
+ protected renderMixedValue: () => TemplateResult;
36
+ protected render(): TemplateResult;
37
+ protected willUpdate(changes: PropertyValues): void;
38
+ protected firstUpdated(changes: PropertyValues): void;
39
+ }
40
+ export {};
@@ -0,0 +1,22 @@
1
+ /*! * Lucero - The design system for Luzmo.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ * This license allows users with a current active Luzmo account to use Lucero.
7
+ * This license terminates automatically if a user no longer has an active Luzmo account.
8
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ * SOFTWARE.
17
+ * */
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../base-B7Pfl2if.cjs"),d=require("../sized-mixin-D9LkrMjb.cjs"),n=require("../focusable-DGWL1v1p.cjs"),u=require("../checkbox-mixin-DUhXwD46.cjs");class w extends u.checkboxMixin(n.Focusable){get focusElement(){return this.inputElement}}const s=':host{--switch-focus-indicator-width: var(--luzmo-focus-indicator-width, var(--luzmo-indicator-width));min-block-size:var(--luzmo-switch-height, var(--switch-min-height));--switch-track-height: var(--switch-control-height);max-inline-size:100%;vertical-align:top;align-items:flex-start;display:inline-flex;position:relative}#input{box-sizing:border-box;inline-size:100%;block-size:100%;opacity:0;z-index:1;cursor:pointer;margin:0;padding:0;position:absolute;inset-block-start:0;inset-inline-start:0}:host([checked]) #input+#switch:before{transform:translate(calc(var(--luzmo-switch-control-width, var(--switch-control-width)) - 100%))}:host([checked]) #input+#switch:dir(rtl):before,:host([dir=rtl][checked]) #input+#switch:before{transform:translate(calc((var(--luzmo-switch-control-width, var(--switch-control-width)) - 100%) * -1))}:host([disabled]) #input{cursor:not-allowed}#input:focus-visible+#switch:after{margin:calc(var(--luzmo-focus-indicator-gap, var(--switch-focus-indicator-gap)) * -1)}#label{color:var(--highcontrast-switch-label-color-default, var(--luzmo-switch-label-color-default, var(--switch-label-color-default)));margin-inline:var(--luzmo-switch-control-label-spacing, var(--switch-control-label-spacing));font-size:var(--luzmo-switch-font-size, var(--switch-font-size));line-height:var(--luzmo-switch-line-height, 1.3);transition:color calc(var(--luzmo-animation-duration) * 2) ease-in-out;margin-block-start:var(--luzmo-switch-spacing-top-to-label, var(--switch-spacing-top-to-label));margin-block-end:0}#switch{box-sizing:border-box;inline-size:var(--luzmo-switch-control-width, var(--switch-control-width));margin-block:calc(var(--luzmo-switch-height, var(--switch-min-height)) - var(--luzmo-switch-control-height, var(--switch-control-height)) - var(--luzmo-switch-spacing-top-to-control, var(--switch-spacing-top-to-control)));vertical-align:middle;transition:background var(--luzmo-animation-duration) ease-in-out,border var(--luzmo-animation-duration) ease-in-out;block-size:var(--luzmo-switch-track-height, var(--switch-track-height));border-radius:calc(var(--luzmo-switch-control-height, var(--switch-control-height)) / 2);flex-grow:0;flex-shrink:0;margin-inline:0;display:inline-block;position:relative;inset-inline:0}#switch:before{box-sizing:border-box;transition:background var(--luzmo-animation-duration) ease-in-out,border var(--luzmo-animation-duration) ease-in-out,transform var(--luzmo-animation-duration) ease-in-out,box-shadow var(--luzmo-animation-duration) ease-in-out;inline-size:var(--luzmo-switch-control-height, var(--switch-control-height));block-size:var(--luzmo-switch-control-height, var(--switch-control-height));box-shadow:var(--luzmo-switch-control-box-shadow, var(--switch-control-box-shadow));border-width:var(--luzmo-switch-border-width, var(--luzmo-switch-border-width, var(--luzmo-border-width)));border-radius:calc(var(--luzmo-switch-control-height, var(--switch-control-height)) / 2);border-style:solid}#switch:after,#switch:before{content:"";display:block;position:absolute;inset-block-start:0;inset-inline-start:0}#switch:after{border-radius:calc(var(--luzmo-switch-control-height, var(--switch-control-height)) / 2 + var(--luzmo-focus-indicator-gap, var(--switch-focus-indicator-gap)) * 2);transition:opacity var(--luzmo-animation-duration) ease-out,margin var(--luzmo-animation-duration) ease-out;margin:0;inset-block-end:0;inset-inline-end:0}#switch{background-color:var(--highcontrast-switch-background-color, var(--luzmo-switch-background-color, var(--switch-background-color)))}#switch:before{background-color:var(--highcontrast-switch-handle-background-color, var(--luzmo-switch-handle-background-color, var(--switch-handle-background-color)));border-color:var(--highcontrast-switch-handle-border-color-default, var(--luzmo-switch-handle-border-color-default, var(--switch-handle-border-color-default)))}:host(:active) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-down, var(--luzmo-switch-handle-border-color-down, var(--switch-handle-border-color-down)))}:host(:active) #input~#label{color:var(--highcontrast-switch-label-color-down, var(--luzmo-switch-label-color-down, var(--switch-label-color-down)))}:host(:active[checked]) #input:enabled+#switch{background-color:var(--highcontrast-switch-background-color-selected-down, var(--luzmo-switch-background-color-selected-down, var(--switch-background-color-selected-down)))}:host(:active[checked]) #input:enabled+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-down, var(--luzmo-switch-handle-border-color-selected-down, var(--switch-handle-border-color-selected-down)))}#input:focus-visible+#switch:after{box-shadow:0 0 0 var(--luzmo-switch-focus-indicator-width, var(--luzmo-focus-indicator-width, var(--switch-focus-indicator-width))) var(--highcontrast-switch-focus-indicator-color, var(--luzmo-switch-focus-indicator-color, var(--switch-focus-indicator-color)))}#input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-focus, var(--luzmo-switch-handle-border-color-focus, var(--switch-handle-border-color-focus)))}:host([checked]) #input:focus-visible+#switch{background-color:var(--highcontrast-switch-background-color-selected-focus, var(--luzmo-switch-background-color-selected-focus, var(--switch-background-color-selected-focus)))}:host([checked]) #input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-focus, var(--luzmo-switch-handle-border-color-selected-focus, var(--switch-handle-border-color-selected-focus)))}#input:focus-visible~#label{color:var(--highcontrast-switch-label-color-focus, var(--luzmo-switch-label-color-focus, var(--switch-label-color-focus)))}@media (hover: hover){:host(:hover) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-hover, var(--luzmo-switch-handle-border-color-hover, var(--switch-handle-border-color-hover)));box-shadow:var(--luzmo-switch-control-box-shadow, var(--switch-control-box-shadow, none));background-color:var(--highcontrast-switch-background-color-hover, var(--luzmo-switch-background-color-hover, var(--switch-background-color-hover, var(--luzmo-background-color-hover))))}:host(:hover) #input~#label{color:var(--highcontrast-switch-label-color-hover, var(--luzmo-switch-label-color-hover, var(--switch-label-color-hover)))}:host([checked]:hover) #input:enabled+#switch{background-color:var(--highcontrast-switch-background-color-selected-hover, var(--luzmo-switch-background-color-selected-hover, var(--switch-background-color-selected-hover)))}:host([checked]:hover) #input:enabled+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-hover, var(--luzmo-switch-handle-border-color-selected-hover, var(--switch-handle-border-color-selected-hover)))}:host([disabled]:hover) #input+#switch{background-color:var(--highcontrast-switch-background-color-disabled, var(--luzmo-switch-background-color-disabled, var(--switch-background-color-disabled)))}:host([disabled]:hover) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled]:hover) #input~#label{color:var(--highcontrast-switch-label-color-disabled, var(--luzmo-switch-label-color-disabled, var(--switch-label-color-disabled)))}:host([disabled][checked]:hover) #input+#switch{background-color:var(--highcontrast-switch-background-color-selected-disabled, var(--luzmo-switch-background-color-selected-disabled, var(--switch-background-color-selected-disabled)))}:host([disabled][checked]:hover) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled][checked]:hover) #input~#label{color:var(--highcontrast-switch-label-color-disabled, var(--luzmo-switch-label-color-disabled, var(--switch-label-color-disabled)))}:host(:hover) #input:focus-visible+#switch:after{box-shadow:0 0 0 var(--luzmo-switch-focus-indicator-width, var(--luzmo-focus-indicator-width, var(--switch-focus-indicator-width))) var(--highcontrast-switch-focus-indicator-color, var(--luzmo-switch-focus-indicator-color, var(--switch-focus-indicator-color)))}:host(:hover) #input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-focus, var(--luzmo-switch-handle-border-color-focus, var(--switch-handle-border-color-focus)))}:host([checked]:hover) #input:focus-visible+#switch{background-color:var(--highcontrast-switch-background-color-selected-focus, var(--luzmo-switch-background-color-selected-focus, var(--switch-background-color-selected-focus)))}:host([checked]:hover) #input:focus-visible+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-focus, var(--luzmo-switch-handle-border-color-selected-focus, var(--switch-handle-border-color-selected-focus)))}:host(:hover) #input:focus-visible~#label{color:var(--highcontrast-switch-label-color-focus, var(--luzmo-switch-label-color-focus, var(--switch-label-color-focus)))}}:host([checked]) #input+#switch{background-color:var(--highcontrast-switch-background-color-selected-default, var(--luzmo-switch-background-color-selected-default, var(--switch-background-color-selected-default)))}:host([checked]) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-selected-default, var(--luzmo-switch-handle-border-color-selected-default, var(--switch-handle-border-color-selected-default)))}:host([disabled]) #input+#switch{background-color:var(--highcontrast-switch-background-color-disabled, var(--luzmo-switch-background-color-disabled, var(--switch-background-color-disabled)))}:host([disabled]) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled][checked]) #input+#switch{background-color:var(--highcontrast-switch-background-color-selected-disabled, var(--luzmo-switch-background-color-selected-disabled, var(--switch-background-color-selected-disabled)))}:host([disabled][checked]) #input+#switch:before{border-color:var(--highcontrast-switch-handle-border-color-disabled, var(--luzmo-switch-handle-border-color-disabled, var(--switch-handle-border-color-disabled)))}:host([disabled]) #input~#label{color:var(--highcontrast-switch-label-color-disabled, var(--luzmo-switch-label-color-disabled, var(--switch-label-color-disabled)))}@media (forced-colors: active){:host{--highcontrast-switch-label-color-default: ButtonText;--highcontrast-switch-label-color-hover: ButtonText;--highcontrast-switch-label-color-down: ButtonText;--highcontrast-switch-label-color-focus: ButtonText;--highcontrast-switch-label-color-disabled: GrayText;--highcontrast-switch-handle-background-color: ButtonFace;--highcontrast-switch-handle-border-color-default: ButtonText;--highcontrast-switch-handle-border-color-hover: Highlight;--highcontrast-switch-handle-border-color-down: Highlight;--highcontrast-switch-handle-border-color-focus: Highlight;--highcontrast-switch-handle-border-color-disabled: Highlight;--highcontrast-switch-handle-border-color-selected-default: Highlight;--highcontrast-switch-handle-border-color-selected-hover: Highlight;--highcontrast-switch-handle-border-color-selected-down: Highlight;--highcontrast-switch-handle-border-color-selected-focus: Highlight;--highcontrast-switch-background-color: ButtonFace;--highcontrast-switch-background-color-selected-default: Highlight;--highcontrast-switch-background-color-selected-hover: Highlight;--highcontrast-switch-background-color-selected-down: Highlight;--highcontrast-switch-background-color-selected-focus: Highlight;--highcontrast-switch-background-color-selected-disabled: Highlight;--highcontrast-switch-focus-indicator-color: ButtonText;forced-color-adjust:none}#input:not(:checked)+#switch{box-shadow:inset 0 0 0 1px ButtonText}}@media (forced-colors: active) and (hover: hover){:host(:hover) #input:not(:checked)+#switch{box-shadow:inset 0 0 0 1px Highlight}:host([disabled][checked]:hover) #input+#switch{background-color:GrayText;box-shadow:inset 0 0 0 1px GrayText}:host([disabled][checked]:hover) #input+#switch:before{background-color:ButtonFace;border-color:GrayText}}@media (forced-colors: active){:host([disabled]) #input:not(:checked)+#switch{background-color:ButtonFace;box-shadow:inset 0 0 0 1px GrayText}:host([disabled]) #input:not(:checked)+#switch:before{background-color:ButtonFace;border-color:GrayText}:host([disabled][checked]) #input+#switch{background-color:GrayText;box-shadow:inset 0 0 0 1px GrayText}:host([disabled][checked]) #input+#switch:before{background-color:ButtonFace;border-color:GrayText}:host([disabled]) #input~#label{color:GrayText}}:host{--switch-handle-border-color-default: var(--luzmo-color-selected);--switch-handle-border-color-hover: var(--luzmo-color-selected-hover);--switch-handle-border-color-down: var(--luzmo-color-selected-down);--switch-handle-border-color-focus: var(--luzmo-color-selected-focus);--switch-handle-border-color-selected-default: var(--luzmo-color-selected-hover);--switch-handle-border-color-selected-hover: var(--luzmo-color-selected-down);--switch-handle-border-color-selected-down: var(--luzmo-color-selected-hard-down);--switch-handle-border-color-selected-focus: var(--luzmo-color-selected-down);--switch-focus-indicator-gap: var(--luzmo-indicator-gap);--switch-label-color-default: var(--luzmo-color-selected-hard);--switch-label-color-hover: var(--luzmo-color-selected-hard-hover);--switch-label-color-down: var(--luzmo-color-selected-hard-down);--switch-label-color-focus: var(--luzmo-color-selected-hard-focus);--switch-label-color-disabled: var(--luzmo-color-disabled);--switch-background-color: var(--luzmo-border-color);--switch-background-color-disabled: var(--luzmo-background-color-disabled);--switch-background-color-selected-disabled: var(--luzmo-color-disabled);--switch-background-color-selected-default: var(--luzmo-color-selected-hover);--switch-background-color-selected-hover: var(--luzmo-color-selected-down);--switch-background-color-selected-down: var(--luzmo-color-selected-hard-down);--switch-background-color-selected-focus: var(--luzmo-color-selected-down);--switch-focus-indicator-width: var(luzmo-indicator-width);--switch-focus-indicator-color: var(--luzmo-primary);--switch-handle-background-color: var(--luzmo-background-color);--switch-handle-border-color-disabled: var(--luzmo-color-disabled);--switch-spacing-top-to-control: calc((var(--switch-min-height) - var(--switch-control-height)) / 2)}:host([disabled]){--switch-label-color-default: var(--luzmo-color-disabled)}:host([emphasized]){--switch-background-color-selected-default: var(--luzmo-primary);--switch-background-color-selected-hover: var(--luzmo-primary-hover);--switch-background-color-selected-down: var(--luzmo-primary-down);--switch-background-color-selected-focus: var(--luzmo-primary-focus);--switch-handle-border-color-selected-default: var(--luzmo-primary);--switch-handle-border-color-selected-hover: var(--luzmo-primary-hover);--switch-handle-border-color-selected-down: var(--luzmo-primary-down);--switch-handle-border-color-selected-focus: var(--luzmo-primary-focus)}:host([size=s]){--switch-min-height: 24px;--switch-control-width: 23px;--switch-control-height: var(--luzmo-font-size-s);--switch-control-label-spacing: var(--luzmo-spacing-3);--switch-spacing-top-to-label: 4px;--switch-font-size: var(--luzmo-font-size-s)}:host{--switch-min-height: 32px;--switch-control-width: 26px;--switch-control-height: var(--luzmo-font-size);--switch-control-label-spacing: calc(var(--luzmo-spacing-3) + var(--luzmo-spacing-1));--switch-spacing-top-to-label: 6px;--switch-font-size: var(--luzmo-font-size)}:host([size=l]){--switch-min-height: 40px;--switch-control-width: 28px;--switch-control-height: var(--luzmo-font-size-l);--switch-control-label-spacing: var(--luzmo-spacing-4);--switch-spacing-top-to-label: 9px;--switch-font-size: var(--luzmo-font-size-l)}:host([size=xl]){--switch-min-height: 48px;--switch-control-width: 32px;--switch-control-height: var(--luzmo-font-size-xl);--switch-control-label-spacing: calc(var(--luzmo-spacing-4) + var(--luzmo-spacing-1));--switch-spacing-top-to-label: 12px;--switch-font-size: var(--luzmo-font-size-xl)}:host([disabled]){pointer-events:none}:host([thumb=overflow]){--luzmo-switch-border-width: 0px;--switch-control-width: calc(var(--switch-control-height) * 2);--switch-control-box-shadow: 0 .125rem .25rem rgba(var(--luzmo-border-color-rgb), .2), inset 0 0 0 .0625rem rgba(var(--luzmo-border-color-rgb), .2)}:host([thumb=overflow]) #switch{margin-top:calc((var(--luzmo-switch-min-height, var(--switch-min-height)) - var(--luzmo-switch-track-height, var(--switch-track-height))) / 2)}:host([thumb=overflow]) #switch:before{inset-block-start:calc(-1 * (var(--luzmo-switch-control-height, var(--switch-control-height)) - var(--luzmo-switch-track-height, var(--switch-track-height))) / 2)}:host([thumb=overflow][size=s]){--switch-track-height: 10px;--switch-control-height: 16px;--switch-focus-indicator-gap: 5px}:host([thumb=overflow]){--switch-track-height: 10px;--switch-control-height: 18px;--switch-focus-indicator-gap: 6px}:host([thumb=overflow][size=l]){--switch-track-height: 12px;--switch-control-height: 20px;--switch-focus-indicator-gap: 7px}:host([thumb=overflow][size=xl]){--switch-track-height: 12px;--switch-control-height: 22px;--switch-focus-indicator-gap: 8px}';var b=Object.defineProperty,h=(t,o,l,v)=>{for(var r=void 0,i=t.length-1,a;i>=0;i--)(a=t[i])&&(r=a(o,l,r)||r);return r&&b(o,l,r),r};class e extends d.SizedMixin(w){constructor(){super(...arguments),this.emphasized=!1,this.thumb="overflow"}static get styles(){return window.hasOwnProperty("ShadyDOM")?[c.r(s)]:[c.r(s)]}render(){return c.x`
19
+ ${super.render()}
20
+ <span id="switch"></span>
21
+ <label id="label" for="input"><slot></slot></label>
22
+ `}firstUpdated(o){super.firstUpdated(o),this.inputElement.setAttribute("role","switch")}updated(o){o.has("checked")&&this.inputElement.setAttribute("aria-checked",this.checked?"true":"false")}}h([c.n({type:Boolean,reflect:!0})],e.prototype,"emphasized");h([c.n({type:String,reflect:!0})],e.prototype,"thumb");customElements.get("luzmo-switch")||customElements.define("luzmo-switch",e);exports.LuzmoSwitch=e;
@@ -0,0 +1,7 @@
1
+ import { LuzmoSwitch } from './switch';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-switch': LuzmoSwitch;
5
+ }
6
+ }
7
+ export { LuzmoSwitch } from './switch';
@@ -15,11 +15,10 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { S as u } from "../sized-mixin-Dl0KoEcV.js";
19
- import { unsafeCSS as a, html as b } from "lit";
20
- import { n as h } from "../base-nYalvNMy.js";
21
- import { F as w } from "../focusable-DbUg-3Vp.js";
22
- import { C as m } from "../checkbox-mixin-DegQlk5C.js";
18
+ import { r as a, x as u, n as h } from "../base-CawdqE7p.js";
19
+ import { S as b } from "../sized-mixin-BxMraZLS.js";
20
+ import { F as w } from "../focusable-cj2QhwDT.js";
21
+ import { c as m } from "../checkbox-mixin-BFGTmw17.js";
23
22
  const n = () => {
24
23
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
25
24
  const o = document.createElement("style");
@@ -38,7 +37,7 @@ var g = Object.defineProperty, d = (o, r, l, z) => {
38
37
  (i = o[e]) && (c = i(r, l, c) || c);
39
38
  return c && g(r, l, c), c;
40
39
  };
41
- class t extends u(v) {
40
+ class t extends b(v) {
42
41
  constructor() {
43
42
  super(...arguments), this.emphasized = !1, this.thumb = "overflow";
44
43
  }
@@ -46,7 +45,7 @@ class t extends u(v) {
46
45
  return window.hasOwnProperty("ShadyDOM") ? [a(s)] : [a(s)];
47
46
  }
48
47
  render() {
49
- return b`
48
+ return u`
50
49
  ${super.render()}
51
50
  <span id="switch"></span>
52
51
  <label id="label" for="input"><slot></slot></label>
@@ -0,0 +1,27 @@
1
+ import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
2
+ import { CheckboxBase } from './../checkbox/checkbox-base';
3
+ declare const LuzmoSwitch_base: typeof CheckboxBase & {
4
+ new (...args: any[]): import("../..").SizedElementInterface;
5
+ prototype: import("../..").SizedElementInterface;
6
+ };
7
+ /**
8
+ * @element luzmo-switch
9
+ *
10
+ * @slot - text label of the Switch
11
+ * @fires change - Announces a change in the `checked` property of a Switch
12
+ */
13
+ export declare class LuzmoSwitch extends LuzmoSwitch_base {
14
+ static get styles(): CSSResultArray;
15
+ /**
16
+ * Deliver the Switch with additional visual emphasis.
17
+ */
18
+ emphasized: boolean;
19
+ /**
20
+ * Whether the thumb is within the Switch or overflows it.
21
+ */
22
+ thumb?: 'overflow' | 'within';
23
+ protected render(): TemplateResult;
24
+ protected firstUpdated(changes: PropertyValues): void;
25
+ protected updated(changes: PropertyValues): void;
26
+ }
27
+ export {};