@luzmo/lucero 1.0.1-alpha.17 → 1.0.1-alpha.19

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 (277) hide show
  1. package/components/NumberFormatter-DewVDY5w.cjs +18 -0
  2. package/components/NumberFormatter-DgOUVrge.js +136 -0
  3. package/components/NumberParser-Dik4a0h-.cjs +18 -0
  4. package/components/NumberParser-ci9J5EKv.js +173 -0
  5. package/components/accordion/index.cjs +6 -183
  6. package/components/accordion/index.js +88 -136
  7. package/components/action-bar/index.cjs +4 -85
  8. package/components/action-bar/index.js +50 -72
  9. package/components/action-button/index.cjs +3 -205
  10. package/components/action-button/index.js +93 -167
  11. package/components/action-group/index.cjs +1 -7
  12. package/components/action-group/index.js +8 -12
  13. package/components/action-group-C54IxNZk.cjs +20 -0
  14. package/components/action-group-C9dsPJg-.js +258 -0
  15. package/components/action-menu/index.cjs +11 -91
  16. package/components/action-menu/index.js +47 -66
  17. package/components/async-directive-BwIAw5tB.js +82 -0
  18. package/components/async-directive-DLz6JB0v.cjs +22 -0
  19. package/components/avatar/index.cjs +3 -63
  20. package/components/avatar/index.js +42 -54
  21. package/components/{focusable-selectors-D0t_5P7C.cjs → base-BjTwmyRF.cjs} +5 -16
  22. package/components/base-CFWO09N1.js +684 -0
  23. package/components/base-Cy0MQrPT.cjs +40 -0
  24. package/components/base-D76d76ww.js +26 -0
  25. package/components/button/index.cjs +2 -134
  26. package/components/button/index.js +72 -106
  27. package/components/button-base-B8bWcklV.js +144 -0
  28. package/components/button-base-tf95Lyl4.cjs +25 -0
  29. package/components/button-group/index.cjs +1 -45
  30. package/components/button-group/index.js +25 -37
  31. package/components/calendar/index.cjs +1 -632
  32. package/components/calendar/index.js +7 -637
  33. package/components/checkbox/index.cjs +4 -111
  34. package/components/checkbox/index.js +53 -98
  35. package/components/checkbox-mixin-BOTvuPEu.js +70 -0
  36. package/components/checkbox-mixin-BVPpXtsq.cjs +27 -0
  37. package/components/class-map-CGfNk3Ee.js +51 -0
  38. package/components/class-map-D-Y-hsN5.cjs +22 -0
  39. package/components/clear-button-CuPbWwZY.cjs +18 -0
  40. package/components/clear-button-DzZ5ulBW.js +53 -0
  41. package/components/close-button-BTo4yrFR.cjs +18 -0
  42. package/components/close-button-CuQdsez5.js +51 -0
  43. package/components/color-area/index.cjs +13 -440
  44. package/components/color-area/index.js +187 -322
  45. package/components/color-controller-B0uX6Zso.js +3230 -0
  46. package/components/color-controller-CoUL5f9K.cjs +18 -0
  47. package/components/color-field/index.cjs +2 -95
  48. package/components/color-field/index.js +41 -77
  49. package/components/color-handle/index.cjs +3 -64
  50. package/components/color-handle/index.js +37 -58
  51. package/components/color-loupe/index.cjs +1 -7
  52. package/components/color-loupe/index.js +8 -12
  53. package/components/color-loupe-CrM2DVY3.cjs +56 -0
  54. package/components/color-loupe-DmQe3SpP.js +81 -0
  55. package/components/color-menu/index.cjs +12 -217
  56. package/components/color-menu/index.js +93 -187
  57. package/components/color-palette/index.cjs +1 -89
  58. package/components/color-palette/index.js +51 -78
  59. package/components/color-palette-group/index.cjs +3 -259
  60. package/components/color-palette-group/index.js +105 -193
  61. package/components/color-picker/index.cjs +6 -114
  62. package/components/color-picker/index.js +72 -92
  63. package/components/color-slider/index.cjs +1 -585
  64. package/components/color-slider/index.js +7 -590
  65. package/components/condition-attribute-with-id-DrQYZzFS.cjs +18 -0
  66. package/components/condition-attribute-with-id-Dv4lSRbe.js +31 -0
  67. package/components/date-time-picker/index.cjs +31 -1357
  68. package/components/date-time-picker/index.js +637 -951
  69. package/components/{dependency-manger-XHpQjFgK.js → dependency-manger-CO-VPlqq.js} +14 -24
  70. package/components/dependency-manger-uthev62E.cjs +18 -0
  71. package/components/directive-C7oCP5Bh.cjs +22 -0
  72. package/components/directive-helpers-D4KMv2dC.js +62 -0
  73. package/components/directive-helpers-t-TVum7J.cjs +22 -0
  74. package/components/{slottable-request-event-CANixJnR.cjs → directive-oAbCiebi.js} +25 -14
  75. package/components/divider/index.cjs +1 -54
  76. package/components/divider/index.js +30 -49
  77. package/components/divider.module-DDvBo9zo.cjs +18 -0
  78. package/components/divider.module-DoQWQEIJ.js +21 -0
  79. package/components/element-resolution-BvRLGqIU.cjs +18 -0
  80. package/components/element-resolution-FCUT-wql.js +91 -0
  81. package/components/field-group/index.cjs +1 -7
  82. package/components/field-group/index.js +8 -12
  83. package/components/field-group-5WQMBOk4.cjs +23 -0
  84. package/components/field-group-D4B0IOdA.js +66 -0
  85. package/components/field-label/index.cjs +1 -7
  86. package/components/field-label/index.js +8 -12
  87. package/components/field-label-DxmPiC5p.js +106 -0
  88. package/components/field-label-Dz9kisdW.cjs +25 -0
  89. package/components/flow-D-0MTYCm.js +527 -0
  90. package/components/flow-DM3dNAKs.cjs +30 -0
  91. package/components/focus-group-DHeTq18L.js +218 -0
  92. package/components/focus-group-DnxZUBhQ.cjs +18 -0
  93. package/components/focus-visible-BvScGDCE.js +74 -0
  94. package/components/focus-visible-D4BXb5RB.cjs +18 -0
  95. package/components/focusable-B_KwfEec.cjs +18 -0
  96. package/components/focusable-C5JjRZmT.js +153 -0
  97. package/components/{focusable-selectors-IltOAOd9.js → focusable-selectors-B4YgbghQ.js} +4 -7
  98. package/components/focusable-selectors-BgFlyFcY.cjs +18 -0
  99. package/components/icon/index.cjs +1 -90
  100. package/components/icon/index.js +46 -74
  101. package/components/if-defined-DULpqYwi.js +27 -0
  102. package/components/if-defined-DaXWqfzc.cjs +22 -0
  103. package/components/index-CNK8wHXu.cjs +57 -0
  104. package/components/index-Cf6G4q52.js +1490 -0
  105. package/components/index-D3ICqC7S.js +1174 -0
  106. package/components/index-hqVbNKYy.cjs +113 -0
  107. package/components/index.cjs +1 -174
  108. package/components/index.js +172 -174
  109. package/components/infield-button/index.cjs +2 -46
  110. package/components/infield-button/index.js +30 -41
  111. package/components/label/index.cjs +1 -37
  112. package/components/label/index.js +24 -36
  113. package/components/{language-resolution-BSGJAWiQ.js → language-resolution-B-wjV5bb.js} +17 -21
  114. package/components/language-resolution-EUER43cg.cjs +18 -0
  115. package/components/like-anchor-Bu3pXbjT.cjs +32 -0
  116. package/components/like-anchor-DCFJN0LV.js +69 -0
  117. package/components/luzmo-icons-CiSek5iM.js +229 -0
  118. package/components/luzmo-icons-CtA-TJPd.cjs +29 -0
  119. package/components/manage-help-text-CHfMLzSa.js +92 -0
  120. package/components/manage-help-text-DNqdEkTA.cjs +30 -0
  121. package/components/menu/index.cjs +29 -1297
  122. package/components/menu/index.js +499 -954
  123. package/components/multi-language-field/index.cjs +2 -132
  124. package/components/multi-language-field/index.js +88 -118
  125. package/components/mutation-controller-DH7YOCyj.js +52 -0
  126. package/components/mutation-controller-DkOMCW-c.cjs +22 -0
  127. package/components/number-field/index.cjs +10 -613
  128. package/components/number-field/index.js +243 -442
  129. package/components/observe-slot-presence-CmVi0zTc.js +68 -0
  130. package/components/observe-slot-presence-bc9chhsi.cjs +18 -0
  131. package/components/observe-slot-text-C3moTjwy.js +87 -0
  132. package/components/observe-slot-text-D2VAEFSd.cjs +18 -0
  133. package/components/options/index.cjs +60 -693
  134. package/components/options/index.js +953 -519
  135. package/components/overlay/index.cjs +21 -367
  136. package/components/overlay/index.js +189 -273
  137. package/components/overlay-B3ajDLLq.cjs +47 -0
  138. package/components/overlay-CUKs69yr.js +2745 -0
  139. package/components/{pending-state-CXbe-Xul.js → pending-state-B2wWssTo.js} +13 -28
  140. package/components/pending-state-bJr-nEJl.cjs +26 -0
  141. package/components/picker/index.cjs +1 -9
  142. package/components/picker/index.js +11 -15
  143. package/components/picker-C0LvseZe.cjs +123 -0
  144. package/components/picker-W1qNmtsh.js +461 -0
  145. package/components/picker-button/index.cjs +4 -56
  146. package/components/picker-button/index.js +34 -45
  147. package/components/{condition-attribute-with-id-Cn815e9W.js → platform-BM-uMWpX.js} +49 -24
  148. package/components/platform-BiXhwqk3.cjs +18 -0
  149. package/components/popover/index.cjs +1 -7
  150. package/components/popover/index.js +8 -12
  151. package/components/popover-fwJeZHMQ.cjs +30 -0
  152. package/components/popover-iD8f5Jkp.js +67 -0
  153. package/components/progress-circle/index.cjs +1 -7
  154. package/components/progress-circle/index.js +8 -12
  155. package/components/progress-circle-DZxaMe8L.cjs +33 -0
  156. package/components/progress-circle-USIIU1up.js +97 -0
  157. package/components/query-BL-TJj7K.cjs +22 -0
  158. package/components/query-D_KR_GUc.js +51 -0
  159. package/components/query-assigned-elements-DjfhL1cl.js +36 -0
  160. package/components/query-assigned-elements-DsKsfk7G.cjs +22 -0
  161. package/components/query-assigned-nodes-BcKWmGzy.cjs +22 -0
  162. package/components/query-assigned-nodes-C76XVPWY.js +36 -0
  163. package/components/radio/index.cjs +2 -244
  164. package/components/radio/index.js +110 -192
  165. package/components/{random-id-BEc6QIUL.js → random-id-ByCz1xaq.js} +3 -3
  166. package/components/random-id-CqvckpWe.cjs +18 -0
  167. package/components/roving-tabindex-By_fCy_e.cjs +18 -0
  168. package/components/roving-tabindex-DOg4z6ZU.js +66 -0
  169. package/components/search/index.cjs +8 -115
  170. package/components/search/index.js +66 -96
  171. package/components/select/index.cjs +51 -720
  172. package/components/select/index.js +347 -563
  173. package/components/sized-mixin-CJbBHWRQ.js +63 -0
  174. package/components/sized-mixin-WPHH0a_D.cjs +18 -0
  175. package/components/slider/index.cjs +1 -119
  176. package/components/slider/index.js +1113 -100
  177. package/components/slottable-request-event-BfUUt1Mh.cjs +18 -0
  178. package/components/{slottable-request-event-D9WzrdWv.js → slottable-request-event-DggLA4Rx.js} +9 -12
  179. package/components/state-DwIwYPvt.js +29 -0
  180. package/components/state-vf0PJN3_.cjs +22 -0
  181. package/components/strategies-C6HsQpU2.cjs +18 -0
  182. package/components/strategies-CUMLHtQI.js +195 -0
  183. package/components/streaming-listener-BQ68fKMa.js +91 -0
  184. package/components/streaming-listener-DeGQYM-9.cjs +18 -0
  185. package/components/style-map-Bnhf_mVZ.js +53 -0
  186. package/components/style-map-DuMd5xlY.cjs +22 -0
  187. package/components/swatch/index.cjs +7 -436
  188. package/components/swatch/index.js +205 -350
  189. package/components/switch/index.cjs +2 -61
  190. package/components/switch/index.js +34 -51
  191. package/components/tabs/index.cjs +26 -693
  192. package/components/tabs/index.js +388 -521
  193. package/components/tags/index.cjs +4 -201
  194. package/components/tags/index.js +87 -152
  195. package/components/text-field/index.cjs +3 -49
  196. package/components/text-field/index.js +30 -44
  197. package/components/text-field-BkFPYo7S.cjs +85 -0
  198. package/components/text-field-C2n3rzCK.js +314 -0
  199. package/components/text-field.module-C2KVUJcX.js +21 -0
  200. package/components/text-field.module-DXhFA9G-.cjs +18 -0
  201. package/components/toast/index.cjs +12 -177
  202. package/components/toast/index.js +73 -145
  203. package/components/tooltip/index.cjs +6 -221
  204. package/components/tooltip/index.js +131 -155
  205. package/components/tooltip/tooltip.d.ts +12 -1
  206. package/components/unit-input/index.cjs +8 -232
  207. package/components/unit-input/index.js +108 -201
  208. package/components/utils.cjs +1 -25
  209. package/components/utils.js +22 -22
  210. package/components/{random-id-BE6HA503.cjs → when-CDK1Tt5Y.js} +10 -7
  211. package/components/when-CDZyJPvd.cjs +22 -0
  212. package/custom-elements.json +1 -1
  213. package/package.json +1 -1
  214. package/components/action-group-DHp8RHDf.js +0 -392
  215. package/components/action-group-MPf19RPV.cjs +0 -391
  216. package/components/base-COw9n7UR.cjs +0 -119
  217. package/components/base-DmeVy0cq.js +0 -120
  218. package/components/button-base-7Ak55xFd.cjs +0 -206
  219. package/components/button-base-C3kf6BTK.js +0 -207
  220. package/components/checkbox-mixin-8cL-vfDy.js +0 -84
  221. package/components/checkbox-mixin-CE7dJj3J.cjs +0 -83
  222. package/components/clear-button-Co6oKSgl.js +0 -59
  223. package/components/clear-button-X_HDY2eH.cjs +0 -58
  224. package/components/close-button-DPBK6Kpu.cjs +0 -59
  225. package/components/close-button-Miw9ZjoJ.js +0 -60
  226. package/components/color-controller-BjDZaxhX.js +0 -491
  227. package/components/color-controller-C3c_vb2P.cjs +0 -490
  228. package/components/color-loupe-BQqNR8YD.cjs +0 -88
  229. package/components/color-loupe-B_DDFv8l.js +0 -89
  230. package/components/condition-attribute-with-id-DEc2Yjne.cjs +0 -43
  231. package/components/dependency-manger-CcIE1uvQ.cjs +0 -63
  232. package/components/divider.module-Cm5LcDRV.cjs +0 -20
  233. package/components/divider.module-DauH6k2_.js +0 -21
  234. package/components/element-resolution-DCsrhGZO.cjs +0 -112
  235. package/components/element-resolution-nMlmW4Jy.js +0 -113
  236. package/components/field-group-DNmY8W9v.cjs +0 -86
  237. package/components/field-group-DVdAWCQF.js +0 -87
  238. package/components/field-label-CKH9EXpR.cjs +0 -156
  239. package/components/field-label-Dpsecoc6.js +0 -157
  240. package/components/focus-group-BqDAk9Is.js +0 -337
  241. package/components/focus-group-DFzOlalL.cjs +0 -336
  242. package/components/focus-visible-B-B8-P9R.cjs +0 -104
  243. package/components/focus-visible-BUPRWlsh.js +0 -105
  244. package/components/focusable-BPrTcZPd.cjs +0 -262
  245. package/components/focusable-ChCLg1k4.js +0 -263
  246. package/components/language-resolution-iN9EImbb.cjs +0 -57
  247. package/components/like-anchor-D62faRNG.cjs +0 -79
  248. package/components/like-anchor-v3cJ9RWM.js +0 -80
  249. package/components/manage-help-text-BYx84zZR.cjs +0 -125
  250. package/components/manage-help-text-DOuMTGht.js +0 -126
  251. package/components/observe-slot-presence-9AwLGUQ_.cjs +0 -78
  252. package/components/observe-slot-presence-DcMdoumP.js +0 -79
  253. package/components/observe-slot-text-CSofZeeF.cjs +0 -104
  254. package/components/observe-slot-text-CjnkkBPn.js +0 -105
  255. package/components/overlay-CN8ISP1F.js +0 -2485
  256. package/components/overlay-LViy9VWM.cjs +0 -2484
  257. package/components/pending-state-e4RbXe9u.cjs +0 -75
  258. package/components/picker-DNde3awt.cjs +0 -672
  259. package/components/picker-PfUAF05y.js +0 -673
  260. package/components/platform-CxDar3Dn.cjs +0 -68
  261. package/components/platform-Cxn0WbyT.js +0 -69
  262. package/components/popover-BkbYhl3i.js +0 -74
  263. package/components/popover-BkgUf0kL.cjs +0 -74
  264. package/components/progress-circle-Hu_ivPHf.js +0 -133
  265. package/components/progress-circle-_Etqsj9f.cjs +0 -132
  266. package/components/roving-tabindex-AsmAh2In.cjs +0 -95
  267. package/components/roving-tabindex-DPF9NmrH.js +0 -96
  268. package/components/sized-mixin-DmkrNdWB.js +0 -80
  269. package/components/sized-mixin-UaTVa-AE.cjs +0 -79
  270. package/components/strategies-DlMlaSJR.cjs +0 -317
  271. package/components/strategies-DlPQoTFE.js +0 -318
  272. package/components/streaming-listener-D4sHaMub.cjs +0 -145
  273. package/components/streaming-listener-cAz5zJyk.js +0 -146
  274. package/components/text-field-11tcnftU.cjs +0 -338
  275. package/components/text-field-Chi9J2Cz.js +0 -339
  276. package/components/text-field.module-CMBS0jSL.js +0 -21
  277. package/components/text-field.module-DIJdV_sA.cjs +0 -20
@@ -1,80 +0,0 @@
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
- import { html } from "lit";
19
- import { property } from "lit/decorators.js";
20
- import { ifDefined } from "lit/directives/if-defined.js";
21
- var __defProp = Object.defineProperty;
22
- var __decorateClass = (decorators, target, key, kind) => {
23
- var result = void 0;
24
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
25
- if (decorator = decorators[i])
26
- result = decorator(target, key, result) || result;
27
- if (result) __defProp(target, key, result);
28
- return result;
29
- };
30
- function LikeAnchor(constructor) {
31
- class LikeAnchorElement extends constructor {
32
- renderAnchor({
33
- id,
34
- className,
35
- ariaHidden,
36
- labelledby,
37
- tabindex,
38
- // prettier-ignore
39
- anchorContent = html`<slot></slot>`
40
- }) {
41
- return html`
42
- <a
43
- id=${id}
44
- class=${ifDefined(className)}
45
- href=${ifDefined(this.href)}
46
- download=${ifDefined(this.download)}
47
- target=${ifDefined(this.target)}
48
- aria-label=${ifDefined(this.label)}
49
- aria-labelledby=${ifDefined(labelledby)}
50
- aria-hidden=${ifDefined(ariaHidden ? "true" : void 0)}
51
- tabindex=${ifDefined(tabindex)}
52
- referrerpolicy=${ifDefined(this.referrerpolicy)}
53
- rel=${ifDefined(this.rel)}
54
- >${anchorContent}</a>
55
- `;
56
- }
57
- }
58
- __decorateClass([
59
- property()
60
- ], LikeAnchorElement.prototype, "download");
61
- __decorateClass([
62
- property()
63
- ], LikeAnchorElement.prototype, "label");
64
- __decorateClass([
65
- property()
66
- ], LikeAnchorElement.prototype, "href");
67
- __decorateClass([
68
- property()
69
- ], LikeAnchorElement.prototype, "target");
70
- __decorateClass([
71
- property()
72
- ], LikeAnchorElement.prototype, "referrerpolicy");
73
- __decorateClass([
74
- property()
75
- ], LikeAnchorElement.prototype, "rel");
76
- return LikeAnchorElement;
77
- }
78
- export {
79
- LikeAnchor as L
80
- };
@@ -1,125 +0,0 @@
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";
19
- const lit = require("lit");
20
- const ifDefined_js = require("lit/directives/if-defined.js");
21
- const conditionAttributeWithId = require("./condition-attribute-with-id-DEc2Yjne.cjs");
22
- const randomId = require("./random-id-BE6HA503.cjs");
23
- class HelpTextManager {
24
- constructor(host, { mode } = { mode: "internal" }) {
25
- this.mode = "internal";
26
- this.handleSlotchange = ({
27
- target
28
- }) => {
29
- this.handleHelpText(target);
30
- this.handleNegativeHelpText(target);
31
- };
32
- this.host = host;
33
- this.id = `luzmo-help-text-${randomId.randomID()}`;
34
- this.mode = mode;
35
- }
36
- get isInternal() {
37
- return this.mode === "internal";
38
- }
39
- render(negative) {
40
- return lit.html`
41
- <div
42
- id=${ifDefined_js.ifDefined(this.isInternal ? this.id : void 0)}
43
- aria-live="assertive"
44
- >
45
- <slot
46
- name=${negative ? "negative-help-text" : `pass-through-help-text-${randomId.randomID()}`}
47
- @slotchange=${this.handleSlotchange}
48
- >
49
- <slot name="help-text"></slot>
50
- </slot>
51
- </div>
52
- `;
53
- }
54
- addId() {
55
- const id = this.helpTextElement ? this.helpTextElement.id : this.id;
56
- this.conditionId = conditionAttributeWithId.conditionAttributeWithId(
57
- this.host,
58
- "aria-describedby",
59
- id
60
- );
61
- if (this.host.hasAttribute("tabindex")) {
62
- this.previousTabindex = Number.parseFloat(
63
- this.host.getAttribute("tabindex")
64
- );
65
- }
66
- this.host.tabIndex = 0;
67
- }
68
- removeId() {
69
- if (this.conditionId) {
70
- this.conditionId();
71
- delete this.conditionId;
72
- }
73
- if (this.helpTextElement) {
74
- return;
75
- }
76
- if (this.previousTabindex) {
77
- this.host.tabIndex = this.previousTabindex;
78
- } else {
79
- this.host.removeAttribute("tabindex");
80
- }
81
- }
82
- handleHelpText(target) {
83
- if (this.isInternal) {
84
- return;
85
- }
86
- if (this.helpTextElement && this.helpTextElement.id === this.id) {
87
- this.helpTextElement.removeAttribute("id");
88
- }
89
- this.removeId();
90
- const assignedElements = target.assignedElements();
91
- const nextHelpTextElement = assignedElements[0];
92
- this.helpTextElement = nextHelpTextElement;
93
- if (nextHelpTextElement) {
94
- if (!nextHelpTextElement.id) {
95
- nextHelpTextElement.id = this.id;
96
- }
97
- this.addId();
98
- }
99
- }
100
- handleNegativeHelpText(target) {
101
- if (target.name !== "negative-help-text") {
102
- return;
103
- }
104
- const assignedElements = target.assignedElements();
105
- assignedElements.forEach(
106
- (el) => el.variant = "negative"
107
- );
108
- }
109
- }
110
- function ManageHelpText(constructor, { mode } = { mode: "internal" }) {
111
- class HelpTextElement extends constructor {
112
- constructor() {
113
- super(...arguments);
114
- this.helpTextManager = new HelpTextManager(this, { mode });
115
- }
116
- get helpTextId() {
117
- return this.helpTextManager.id;
118
- }
119
- renderHelpText(negative) {
120
- return this.helpTextManager.render(negative);
121
- }
122
- }
123
- return HelpTextElement;
124
- }
125
- exports.ManageHelpText = ManageHelpText;
@@ -1,126 +0,0 @@
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
- import { html } from "lit";
19
- import { ifDefined } from "lit/directives/if-defined.js";
20
- import { c as conditionAttributeWithId } from "./condition-attribute-with-id-Cn815e9W.js";
21
- import { r as randomID } from "./random-id-BEc6QIUL.js";
22
- class HelpTextManager {
23
- constructor(host, { mode } = { mode: "internal" }) {
24
- this.mode = "internal";
25
- this.handleSlotchange = ({
26
- target
27
- }) => {
28
- this.handleHelpText(target);
29
- this.handleNegativeHelpText(target);
30
- };
31
- this.host = host;
32
- this.id = `luzmo-help-text-${randomID()}`;
33
- this.mode = mode;
34
- }
35
- get isInternal() {
36
- return this.mode === "internal";
37
- }
38
- render(negative) {
39
- return html`
40
- <div
41
- id=${ifDefined(this.isInternal ? this.id : void 0)}
42
- aria-live="assertive"
43
- >
44
- <slot
45
- name=${negative ? "negative-help-text" : `pass-through-help-text-${randomID()}`}
46
- @slotchange=${this.handleSlotchange}
47
- >
48
- <slot name="help-text"></slot>
49
- </slot>
50
- </div>
51
- `;
52
- }
53
- addId() {
54
- const id = this.helpTextElement ? this.helpTextElement.id : this.id;
55
- this.conditionId = conditionAttributeWithId(
56
- this.host,
57
- "aria-describedby",
58
- id
59
- );
60
- if (this.host.hasAttribute("tabindex")) {
61
- this.previousTabindex = Number.parseFloat(
62
- this.host.getAttribute("tabindex")
63
- );
64
- }
65
- this.host.tabIndex = 0;
66
- }
67
- removeId() {
68
- if (this.conditionId) {
69
- this.conditionId();
70
- delete this.conditionId;
71
- }
72
- if (this.helpTextElement) {
73
- return;
74
- }
75
- if (this.previousTabindex) {
76
- this.host.tabIndex = this.previousTabindex;
77
- } else {
78
- this.host.removeAttribute("tabindex");
79
- }
80
- }
81
- handleHelpText(target) {
82
- if (this.isInternal) {
83
- return;
84
- }
85
- if (this.helpTextElement && this.helpTextElement.id === this.id) {
86
- this.helpTextElement.removeAttribute("id");
87
- }
88
- this.removeId();
89
- const assignedElements = target.assignedElements();
90
- const nextHelpTextElement = assignedElements[0];
91
- this.helpTextElement = nextHelpTextElement;
92
- if (nextHelpTextElement) {
93
- if (!nextHelpTextElement.id) {
94
- nextHelpTextElement.id = this.id;
95
- }
96
- this.addId();
97
- }
98
- }
99
- handleNegativeHelpText(target) {
100
- if (target.name !== "negative-help-text") {
101
- return;
102
- }
103
- const assignedElements = target.assignedElements();
104
- assignedElements.forEach(
105
- (el) => el.variant = "negative"
106
- );
107
- }
108
- }
109
- function ManageHelpText(constructor, { mode } = { mode: "internal" }) {
110
- class HelpTextElement extends constructor {
111
- constructor() {
112
- super(...arguments);
113
- this.helpTextManager = new HelpTextManager(this, { mode });
114
- }
115
- get helpTextId() {
116
- return this.helpTextManager.id;
117
- }
118
- renderHelpText(negative) {
119
- return this.helpTextManager.render(negative);
120
- }
121
- }
122
- return HelpTextElement;
123
- }
124
- export {
125
- ManageHelpText as M
126
- };
@@ -1,78 +0,0 @@
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";
19
- const mutationController_js = require("@lit-labs/observers/mutation-controller.js");
20
- const slotContentIsPresent = Symbol("slotContentIsPresent");
21
- function ObserveSlotPresence(constructor, lightDomSelector) {
22
- var _a, _b;
23
- const lightDomSelectors = Array.isArray(lightDomSelector) ? lightDomSelector : [lightDomSelector];
24
- class SlotPresenceObservingElement extends (_b = constructor, _a = slotContentIsPresent, _b) {
25
- constructor(...args) {
26
- super(args);
27
- this[_a] = /* @__PURE__ */ new Map();
28
- this.managePresenceObservedSlot = () => {
29
- let changes = false;
30
- lightDomSelectors.forEach((selector) => {
31
- const nextValue = !!this.querySelector(`:scope > ${selector}`);
32
- const previousValue = this[slotContentIsPresent].get(selector) || false;
33
- changes = changes || previousValue !== nextValue;
34
- this[slotContentIsPresent].set(
35
- selector,
36
- !!this.querySelector(`:scope > ${selector}`)
37
- );
38
- });
39
- if (changes) {
40
- this.updateComplete.then(() => {
41
- this.requestUpdate();
42
- });
43
- }
44
- };
45
- new mutationController_js.MutationController(this, {
46
- config: {
47
- childList: true,
48
- subtree: true
49
- },
50
- callback: () => {
51
- this.managePresenceObservedSlot();
52
- }
53
- });
54
- this.managePresenceObservedSlot();
55
- }
56
- /**
57
- * @private
58
- */
59
- get slotContentIsPresent() {
60
- if (lightDomSelectors.length === 1) {
61
- return this[slotContentIsPresent].get(lightDomSelectors[0]) || false;
62
- }
63
- throw new Error(
64
- "Multiple selectors provided to `ObserveSlotPresence` use `getSlotContentPresence(selector: string)` instead."
65
- );
66
- }
67
- getSlotContentPresence(selector) {
68
- if (this[slotContentIsPresent].has(selector)) {
69
- return this[slotContentIsPresent].get(selector) || false;
70
- }
71
- throw new Error(
72
- `The provided selector \`${selector}\` is not being observed.`
73
- );
74
- }
75
- }
76
- return SlotPresenceObservingElement;
77
- }
78
- exports.ObserveSlotPresence = ObserveSlotPresence;
@@ -1,79 +0,0 @@
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
- import { MutationController } from "@lit-labs/observers/mutation-controller.js";
19
- const slotContentIsPresent = Symbol("slotContentIsPresent");
20
- function ObserveSlotPresence(constructor, lightDomSelector) {
21
- var _a, _b;
22
- const lightDomSelectors = Array.isArray(lightDomSelector) ? lightDomSelector : [lightDomSelector];
23
- class SlotPresenceObservingElement extends (_b = constructor, _a = slotContentIsPresent, _b) {
24
- constructor(...args) {
25
- super(args);
26
- this[_a] = /* @__PURE__ */ new Map();
27
- this.managePresenceObservedSlot = () => {
28
- let changes = false;
29
- lightDomSelectors.forEach((selector) => {
30
- const nextValue = !!this.querySelector(`:scope > ${selector}`);
31
- const previousValue = this[slotContentIsPresent].get(selector) || false;
32
- changes = changes || previousValue !== nextValue;
33
- this[slotContentIsPresent].set(
34
- selector,
35
- !!this.querySelector(`:scope > ${selector}`)
36
- );
37
- });
38
- if (changes) {
39
- this.updateComplete.then(() => {
40
- this.requestUpdate();
41
- });
42
- }
43
- };
44
- new MutationController(this, {
45
- config: {
46
- childList: true,
47
- subtree: true
48
- },
49
- callback: () => {
50
- this.managePresenceObservedSlot();
51
- }
52
- });
53
- this.managePresenceObservedSlot();
54
- }
55
- /**
56
- * @private
57
- */
58
- get slotContentIsPresent() {
59
- if (lightDomSelectors.length === 1) {
60
- return this[slotContentIsPresent].get(lightDomSelectors[0]) || false;
61
- }
62
- throw new Error(
63
- "Multiple selectors provided to `ObserveSlotPresence` use `getSlotContentPresence(selector: string)` instead."
64
- );
65
- }
66
- getSlotContentPresence(selector) {
67
- if (this[slotContentIsPresent].has(selector)) {
68
- return this[slotContentIsPresent].get(selector) || false;
69
- }
70
- throw new Error(
71
- `The provided selector \`${selector}\` is not being observed.`
72
- );
73
- }
74
- }
75
- return SlotPresenceObservingElement;
76
- }
77
- export {
78
- ObserveSlotPresence as O
79
- };
@@ -1,104 +0,0 @@
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";
19
- const mutationController_js = require("@lit-labs/observers/mutation-controller.js");
20
- const decorators_js = require("lit/decorators.js");
21
- var __defProp = Object.defineProperty;
22
- var __decorateClass = (decorators, target, key, kind) => {
23
- var result = void 0;
24
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
25
- if (decorator = decorators[i])
26
- result = decorator(target, key, result) || result;
27
- if (result) __defProp(target, key, result);
28
- return result;
29
- };
30
- const assignedNodesList = Symbol("assignedNodes");
31
- function ObserveSlotText(constructor, slotName, excludedSelectors = []) {
32
- var _a, _b;
33
- const notExcluded = (el) => (selector) => el.matches(selector);
34
- class SlotTextObservingElement extends (_b = constructor, _a = assignedNodesList, _b) {
35
- constructor(...args) {
36
- super(args);
37
- this.slotHasContent = false;
38
- new mutationController_js.MutationController(this, {
39
- config: {
40
- characterData: true,
41
- subtree: true
42
- },
43
- callback: (mutationsList) => {
44
- for (const mutation of mutationsList) {
45
- if (mutation.type === "characterData") {
46
- this.manageTextObservedSlot();
47
- return;
48
- }
49
- }
50
- }
51
- });
52
- }
53
- manageTextObservedSlot() {
54
- if (!this[assignedNodesList]) {
55
- return;
56
- }
57
- const assignedNodes = [...this[assignedNodesList]].filter(
58
- (currentNode) => {
59
- const node = currentNode;
60
- if (node.tagName) {
61
- return !excludedSelectors.some(notExcluded(node));
62
- }
63
- return node.textContent ? node.textContent.trim() : false;
64
- }
65
- );
66
- this.slotHasContent = assignedNodes.length > 0;
67
- }
68
- update(changedProperties) {
69
- if (!this.hasUpdated) {
70
- const { childNodes } = this;
71
- const textNodes = [...childNodes].filter((currentNode) => {
72
- const node = currentNode;
73
- if (node.tagName) {
74
- const excluded = excludedSelectors.some(notExcluded(node));
75
- return excluded ? false : (
76
- // Confirm it would exist in a targeted slot if there was one supplied.
77
- slotName ? node.getAttribute("slot") === slotName : !node.hasAttribute("slot")
78
- );
79
- }
80
- return node.textContent ? node.textContent.trim() : false;
81
- });
82
- this.slotHasContent = textNodes.length > 0;
83
- }
84
- super.update(changedProperties);
85
- }
86
- firstUpdated(changedProperties) {
87
- super.firstUpdated(changedProperties);
88
- this.updateComplete.then(() => {
89
- this.manageTextObservedSlot();
90
- });
91
- }
92
- }
93
- __decorateClass([
94
- decorators_js.property({ type: Boolean, attribute: false })
95
- ], SlotTextObservingElement.prototype, "slotHasContent");
96
- __decorateClass([
97
- decorators_js.queryAssignedNodes({
98
- slot: slotName,
99
- flatten: true
100
- })
101
- ], SlotTextObservingElement.prototype, _a);
102
- return SlotTextObservingElement;
103
- }
104
- exports.ObserveSlotText = ObserveSlotText;
@@ -1,105 +0,0 @@
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
- import { MutationController } from "@lit-labs/observers/mutation-controller.js";
19
- import { property, queryAssignedNodes } from "lit/decorators.js";
20
- var __defProp = Object.defineProperty;
21
- var __decorateClass = (decorators, target, key, kind) => {
22
- var result = void 0;
23
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
24
- if (decorator = decorators[i])
25
- result = decorator(target, key, result) || result;
26
- if (result) __defProp(target, key, result);
27
- return result;
28
- };
29
- const assignedNodesList = Symbol("assignedNodes");
30
- function ObserveSlotText(constructor, slotName, excludedSelectors = []) {
31
- var _a, _b;
32
- const notExcluded = (el) => (selector) => el.matches(selector);
33
- class SlotTextObservingElement extends (_b = constructor, _a = assignedNodesList, _b) {
34
- constructor(...args) {
35
- super(args);
36
- this.slotHasContent = false;
37
- new MutationController(this, {
38
- config: {
39
- characterData: true,
40
- subtree: true
41
- },
42
- callback: (mutationsList) => {
43
- for (const mutation of mutationsList) {
44
- if (mutation.type === "characterData") {
45
- this.manageTextObservedSlot();
46
- return;
47
- }
48
- }
49
- }
50
- });
51
- }
52
- manageTextObservedSlot() {
53
- if (!this[assignedNodesList]) {
54
- return;
55
- }
56
- const assignedNodes = [...this[assignedNodesList]].filter(
57
- (currentNode) => {
58
- const node = currentNode;
59
- if (node.tagName) {
60
- return !excludedSelectors.some(notExcluded(node));
61
- }
62
- return node.textContent ? node.textContent.trim() : false;
63
- }
64
- );
65
- this.slotHasContent = assignedNodes.length > 0;
66
- }
67
- update(changedProperties) {
68
- if (!this.hasUpdated) {
69
- const { childNodes } = this;
70
- const textNodes = [...childNodes].filter((currentNode) => {
71
- const node = currentNode;
72
- if (node.tagName) {
73
- const excluded = excludedSelectors.some(notExcluded(node));
74
- return excluded ? false : (
75
- // Confirm it would exist in a targeted slot if there was one supplied.
76
- slotName ? node.getAttribute("slot") === slotName : !node.hasAttribute("slot")
77
- );
78
- }
79
- return node.textContent ? node.textContent.trim() : false;
80
- });
81
- this.slotHasContent = textNodes.length > 0;
82
- }
83
- super.update(changedProperties);
84
- }
85
- firstUpdated(changedProperties) {
86
- super.firstUpdated(changedProperties);
87
- this.updateComplete.then(() => {
88
- this.manageTextObservedSlot();
89
- });
90
- }
91
- }
92
- __decorateClass([
93
- property({ type: Boolean, attribute: false })
94
- ], SlotTextObservingElement.prototype, "slotHasContent");
95
- __decorateClass([
96
- queryAssignedNodes({
97
- slot: slotName,
98
- flatten: true
99
- })
100
- ], SlotTextObservingElement.prototype, _a);
101
- return SlotTextObservingElement;
102
- }
103
- export {
104
- ObserveSlotText as O
105
- };