@luzmo/lucero 1.0.1-alpha.15 → 1.0.1-alpha.16

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/accordion/index.cjs +183 -6
  2. package/components/accordion/index.js +136 -88
  3. package/components/action-bar/index.cjs +85 -4
  4. package/components/action-bar/index.js +72 -50
  5. package/components/action-button/index.cjs +205 -3
  6. package/components/action-button/index.js +167 -93
  7. package/components/action-group/index.cjs +7 -1
  8. package/components/action-group/index.js +12 -8
  9. package/components/action-group-DHp8RHDf.js +392 -0
  10. package/components/action-group-MPf19RPV.cjs +391 -0
  11. package/components/action-menu/index.cjs +91 -11
  12. package/components/action-menu/index.js +66 -47
  13. package/components/avatar/index.cjs +63 -3
  14. package/components/avatar/index.js +54 -42
  15. package/components/base-COw9n7UR.cjs +119 -0
  16. package/components/base-DmeVy0cq.js +120 -0
  17. package/components/button/index.cjs +134 -2
  18. package/components/button/index.js +106 -72
  19. package/components/button-base-7Ak55xFd.cjs +206 -0
  20. package/components/button-base-C3kf6BTK.js +207 -0
  21. package/components/button-group/index.cjs +45 -1
  22. package/components/button-group/index.js +37 -25
  23. package/components/calendar/index.cjs +632 -1
  24. package/components/calendar/index.js +637 -7
  25. package/components/checkbox/index.cjs +111 -4
  26. package/components/checkbox/index.js +98 -53
  27. package/components/checkbox-mixin-8cL-vfDy.js +84 -0
  28. package/components/checkbox-mixin-CE7dJj3J.cjs +83 -0
  29. package/components/clear-button-Co6oKSgl.js +59 -0
  30. package/components/clear-button-X_HDY2eH.cjs +58 -0
  31. package/components/close-button-DPBK6Kpu.cjs +59 -0
  32. package/components/close-button-Miw9ZjoJ.js +60 -0
  33. package/components/color-area/index.cjs +440 -13
  34. package/components/color-area/index.js +322 -187
  35. package/components/color-controller-BjDZaxhX.js +491 -0
  36. package/components/color-controller-C3c_vb2P.cjs +490 -0
  37. package/components/color-field/index.cjs +95 -2
  38. package/components/color-field/index.js +77 -41
  39. package/components/color-handle/index.cjs +64 -3
  40. package/components/color-handle/index.js +58 -37
  41. package/components/color-loupe/index.cjs +7 -1
  42. package/components/color-loupe/index.js +12 -8
  43. package/components/color-loupe-BQqNR8YD.cjs +88 -0
  44. package/components/color-loupe-B_DDFv8l.js +89 -0
  45. package/components/color-menu/index.cjs +217 -12
  46. package/components/color-menu/index.js +187 -93
  47. package/components/color-palette/index.cjs +89 -1
  48. package/components/color-palette/index.js +78 -51
  49. package/components/color-palette-group/index.cjs +259 -3
  50. package/components/color-palette-group/index.js +193 -105
  51. package/components/color-picker/index.cjs +114 -6
  52. package/components/color-picker/index.js +92 -72
  53. package/components/color-slider/index.cjs +585 -1
  54. package/components/color-slider/index.js +590 -7
  55. package/components/{directive-oAbCiebi.js → condition-attribute-with-id-Cn815e9W.js} +22 -22
  56. package/components/condition-attribute-with-id-DEc2Yjne.cjs +43 -0
  57. package/components/date-time-picker/index.cjs +1357 -31
  58. package/components/date-time-picker/index.js +951 -637
  59. package/components/dependency-manger-CcIE1uvQ.cjs +63 -0
  60. package/components/{dependency-manger-CEXvGQUV.js → dependency-manger-XHpQjFgK.js} +24 -14
  61. package/components/divider/index.cjs +54 -1
  62. package/components/divider/index.js +49 -30
  63. package/components/divider.module-Cm5LcDRV.cjs +20 -0
  64. package/components/divider.module-DauH6k2_.js +21 -0
  65. package/components/element-resolution-DCsrhGZO.cjs +112 -0
  66. package/components/element-resolution-nMlmW4Jy.js +113 -0
  67. package/components/field-group/index.cjs +7 -1
  68. package/components/field-group/index.js +12 -8
  69. package/components/field-group-DNmY8W9v.cjs +86 -0
  70. package/components/field-group-DVdAWCQF.js +87 -0
  71. package/components/field-label/index.cjs +7 -1
  72. package/components/field-label/index.js +12 -8
  73. package/components/field-label-CKH9EXpR.cjs +156 -0
  74. package/components/field-label-Dpsecoc6.js +157 -0
  75. package/components/focus-group-BqDAk9Is.js +337 -0
  76. package/components/focus-group-DFzOlalL.cjs +336 -0
  77. package/components/focus-visible-B-B8-P9R.cjs +104 -0
  78. package/components/focus-visible-BUPRWlsh.js +105 -0
  79. package/components/focusable-BPrTcZPd.cjs +262 -0
  80. package/components/focusable-ChCLg1k4.js +263 -0
  81. package/components/{directive-C7oCP5Bh.cjs → focusable-selectors-D0t_5P7C.cjs} +16 -5
  82. package/components/{focusable-selectors-B4YgbghQ.js → focusable-selectors-IltOAOd9.js} +7 -4
  83. package/components/icon/index.cjs +90 -1
  84. package/components/icon/index.js +74 -46
  85. package/components/index.cjs +174 -1
  86. package/components/index.js +174 -172
  87. package/components/infield-button/index.cjs +46 -2
  88. package/components/infield-button/index.js +41 -30
  89. package/components/label/index.cjs +37 -1
  90. package/components/label/index.js +36 -24
  91. package/components/{language-resolution-8yZa5r_P.js → language-resolution-BSGJAWiQ.js} +21 -16
  92. package/components/language-resolution-iN9EImbb.cjs +57 -0
  93. package/components/like-anchor-D62faRNG.cjs +79 -0
  94. package/components/like-anchor-v3cJ9RWM.js +80 -0
  95. package/components/manage-help-text-BYx84zZR.cjs +125 -0
  96. package/components/manage-help-text-DOuMTGht.js +126 -0
  97. package/components/menu/index.cjs +1297 -29
  98. package/components/menu/index.js +954 -499
  99. package/components/multi-language-field/index.cjs +132 -2
  100. package/components/multi-language-field/index.js +118 -88
  101. package/components/number-field/index.cjs +613 -10
  102. package/components/number-field/index.js +442 -243
  103. package/components/observe-slot-presence-9AwLGUQ_.cjs +78 -0
  104. package/components/observe-slot-presence-DcMdoumP.js +79 -0
  105. package/components/observe-slot-text-CSofZeeF.cjs +104 -0
  106. package/components/observe-slot-text-CjnkkBPn.js +105 -0
  107. package/components/options/index.cjs +693 -60
  108. package/components/options/index.js +519 -953
  109. package/components/overlay/index.cjs +367 -21
  110. package/components/overlay/index.js +273 -189
  111. package/components/overlay-CN8ISP1F.js +2485 -0
  112. package/components/overlay-LViy9VWM.cjs +2484 -0
  113. package/components/{pending-state-DTX7ggyF.js → pending-state-CXbe-Xul.js} +28 -13
  114. package/components/pending-state-e4RbXe9u.cjs +75 -0
  115. package/components/picker/index.cjs +9 -1
  116. package/components/picker/index.js +15 -11
  117. package/components/picker-DNde3awt.cjs +672 -0
  118. package/components/picker-PfUAF05y.js +673 -0
  119. package/components/picker-button/index.cjs +56 -4
  120. package/components/picker-button/index.js +45 -34
  121. package/components/platform-CxDar3Dn.cjs +68 -0
  122. package/components/platform-Cxn0WbyT.js +69 -0
  123. package/components/popover/index.cjs +7 -1
  124. package/components/popover/index.js +12 -8
  125. package/components/popover-BkbYhl3i.js +74 -0
  126. package/components/popover-BkgUf0kL.cjs +74 -0
  127. package/components/progress-circle/index.cjs +7 -1
  128. package/components/progress-circle/index.js +12 -8
  129. package/components/progress-circle-Hu_ivPHf.js +133 -0
  130. package/components/progress-circle-_Etqsj9f.cjs +132 -0
  131. package/components/radio/index.cjs +244 -2
  132. package/components/radio/index.js +192 -110
  133. package/components/{when-CDK1Tt5Y.js → random-id-BE6HA503.cjs} +7 -10
  134. package/components/{random-id-ByCz1xaq.js → random-id-BEc6QIUL.js} +3 -3
  135. package/components/roving-tabindex-AsmAh2In.cjs +95 -0
  136. package/components/roving-tabindex-DPF9NmrH.js +96 -0
  137. package/components/search/index.cjs +115 -8
  138. package/components/search/index.js +96 -66
  139. package/components/select/index.cjs +720 -51
  140. package/components/select/index.js +563 -347
  141. package/components/sized-mixin-DmkrNdWB.js +80 -0
  142. package/components/sized-mixin-UaTVa-AE.cjs +79 -0
  143. package/components/slider/index.cjs +119 -1
  144. package/components/slider/index.js +100 -1113
  145. package/components/{condition-attribute-with-id-Dv4lSRbe.js → slottable-request-event-CANixJnR.cjs} +15 -13
  146. package/components/{slottable-request-event-DggLA4Rx.js → slottable-request-event-D9WzrdWv.js} +12 -9
  147. package/components/strategies-DlMlaSJR.cjs +317 -0
  148. package/components/strategies-DlPQoTFE.js +318 -0
  149. package/components/streaming-listener-D4sHaMub.cjs +145 -0
  150. package/components/streaming-listener-cAz5zJyk.js +146 -0
  151. package/components/swatch/index.cjs +436 -7
  152. package/components/swatch/index.js +350 -205
  153. package/components/switch/index.cjs +61 -2
  154. package/components/switch/index.js +51 -34
  155. package/components/tabs/index.cjs +693 -26
  156. package/components/tabs/index.js +521 -388
  157. package/components/tags/index.cjs +201 -4
  158. package/components/tags/index.js +152 -87
  159. package/components/text-field/index.cjs +49 -3
  160. package/components/text-field/index.js +44 -30
  161. package/components/text-field-11tcnftU.cjs +338 -0
  162. package/components/text-field-Chi9J2Cz.js +339 -0
  163. package/components/text-field.module-CMBS0jSL.js +21 -0
  164. package/components/text-field.module-DIJdV_sA.cjs +20 -0
  165. package/components/toast/index.cjs +177 -12
  166. package/components/toast/index.js +145 -73
  167. package/components/tooltip/index.cjs +221 -6
  168. package/components/tooltip/index.js +155 -131
  169. package/components/tooltip/tooltip.d.ts +1 -12
  170. package/components/unit-input/index.cjs +232 -8
  171. package/components/unit-input/index.js +201 -108
  172. package/components/utils.cjs +25 -1
  173. package/components/utils.js +22 -22
  174. package/custom-elements.json +1 -1
  175. package/package.json +1 -1
  176. package/components/NumberFormatter-DewVDY5w.cjs +0 -18
  177. package/components/NumberFormatter-DgOUVrge.js +0 -136
  178. package/components/NumberParser-Dik4a0h-.cjs +0 -18
  179. package/components/NumberParser-ci9J5EKv.js +0 -173
  180. package/components/action-group-DBImibFn.js +0 -258
  181. package/components/action-group-DJGMcRHb.cjs +0 -20
  182. package/components/async-directive-BX1T1e1_.cjs +0 -22
  183. package/components/async-directive-BfcqVjDp.js +0 -82
  184. package/components/base-BjTwmyRF.cjs +0 -22
  185. package/components/base-CBCg3yyw.cjs +0 -40
  186. package/components/base-D76d76ww.js +0 -26
  187. package/components/base-WsynuqaS.js +0 -677
  188. package/components/button-base-DbkDzb71.js +0 -144
  189. package/components/button-base-XgPLmwP-.cjs +0 -25
  190. package/components/checkbox-mixin-BDN0dBtS.cjs +0 -27
  191. package/components/checkbox-mixin-Do7EgtpQ.js +0 -70
  192. package/components/class-map-Di1D_rCm.cjs +0 -22
  193. package/components/class-map-NbVXqBU0.js +0 -51
  194. package/components/clear-button-BbVqNU-g.js +0 -53
  195. package/components/clear-button-DYdeFsS8.cjs +0 -18
  196. package/components/close-button-CpfKibqg.cjs +0 -18
  197. package/components/close-button-DzOZZmkY.js +0 -51
  198. package/components/color-controller-B0uX6Zso.js +0 -3230
  199. package/components/color-controller-CoUL5f9K.cjs +0 -18
  200. package/components/color-loupe-CaA_Lfkk.cjs +0 -56
  201. package/components/color-loupe-CmMsXbjT.js +0 -81
  202. package/components/condition-attribute-with-id-DrQYZzFS.cjs +0 -18
  203. package/components/dependency-manger-C5HCkMMB.cjs +0 -18
  204. package/components/directive-helpers-Cm6gitnu.js +0 -62
  205. package/components/directive-helpers-DyIRTWwA.cjs +0 -22
  206. package/components/divider.module-DDvBo9zo.cjs +0 -18
  207. package/components/divider.module-DoQWQEIJ.js +0 -21
  208. package/components/element-resolution-BvRLGqIU.cjs +0 -18
  209. package/components/element-resolution-FCUT-wql.js +0 -91
  210. package/components/field-group-DXfBWrkO.js +0 -66
  211. package/components/field-group-DkGst3r5.cjs +0 -23
  212. package/components/field-label-CZ2zzChK.js +0 -106
  213. package/components/field-label-mO1AkUgR.cjs +0 -25
  214. package/components/flow-D-0MTYCm.js +0 -527
  215. package/components/flow-DM3dNAKs.cjs +0 -30
  216. package/components/focus-group-DHeTq18L.js +0 -218
  217. package/components/focus-group-DnxZUBhQ.cjs +0 -18
  218. package/components/focus-visible-B0P9aY_G.cjs +0 -18
  219. package/components/focus-visible-DBlJGoEW.js +0 -74
  220. package/components/focusable-BxtpnzWp.js +0 -153
  221. package/components/focusable-EbipgXRh.cjs +0 -18
  222. package/components/focusable-selectors-BgFlyFcY.cjs +0 -18
  223. package/components/if-defined-C9YGdo33.cjs +0 -22
  224. package/components/if-defined-DOaE2coe.js +0 -27
  225. package/components/index-BQoI8AD3.cjs +0 -113
  226. package/components/index-BwxgAdzi.cjs +0 -57
  227. package/components/index-Cb9zsiz6.js +0 -1490
  228. package/components/index-HjQa8tew.js +0 -1174
  229. package/components/language-resolution-DJzmyzZq.cjs +0 -18
  230. package/components/like-anchor-Bvn_vLQ8.js +0 -69
  231. package/components/like-anchor-sod1C1fR.cjs +0 -32
  232. package/components/luzmo-icons-D47EGj-3.cjs +0 -29
  233. package/components/luzmo-icons-NEyaMpEM.js +0 -229
  234. package/components/manage-help-text-DhgARkZX.cjs +0 -30
  235. package/components/manage-help-text-syYnjKGL.js +0 -92
  236. package/components/mutation-controller-DH7YOCyj.js +0 -52
  237. package/components/mutation-controller-DkOMCW-c.cjs +0 -22
  238. package/components/observe-slot-presence-CmVi0zTc.js +0 -68
  239. package/components/observe-slot-presence-bc9chhsi.cjs +0 -18
  240. package/components/observe-slot-text-BPfIQQtz.js +0 -87
  241. package/components/observe-slot-text-Ceb7SvYT.cjs +0 -18
  242. package/components/overlay-Cig9r6uU.js +0 -2747
  243. package/components/overlay-KSKMzzkh.cjs +0 -47
  244. package/components/pending-state-CaH1si5b.cjs +0 -26
  245. package/components/picker-CAYj4hBD.js +0 -461
  246. package/components/picker-apS0Zrly.cjs +0 -123
  247. package/components/platform-BM-uMWpX.js +0 -69
  248. package/components/platform-BiXhwqk3.cjs +0 -18
  249. package/components/popover-DjX0aAnY.js +0 -67
  250. package/components/popover-KFfO0IYL.cjs +0 -30
  251. package/components/progress-circle-BvRJNuNo.cjs +0 -33
  252. package/components/progress-circle-DXH9z8-6.js +0 -97
  253. package/components/query-BL-TJj7K.cjs +0 -22
  254. package/components/query-D_KR_GUc.js +0 -51
  255. package/components/query-assigned-elements-DjfhL1cl.js +0 -36
  256. package/components/query-assigned-elements-DsKsfk7G.cjs +0 -22
  257. package/components/query-assigned-nodes-BcKWmGzy.cjs +0 -22
  258. package/components/query-assigned-nodes-C76XVPWY.js +0 -36
  259. package/components/random-id-CqvckpWe.cjs +0 -18
  260. package/components/roving-tabindex-By_fCy_e.cjs +0 -18
  261. package/components/roving-tabindex-DOg4z6ZU.js +0 -66
  262. package/components/sized-mixin-CPxE5C96.cjs +0 -18
  263. package/components/sized-mixin-D4ACoVUr.js +0 -63
  264. package/components/slottable-request-event-BfUUt1Mh.cjs +0 -18
  265. package/components/state-D8JEtYqe.cjs +0 -22
  266. package/components/state-Deh-vKYE.js +0 -29
  267. package/components/strategies-9indNIEb.js +0 -195
  268. package/components/strategies-BACP6MhR.cjs +0 -18
  269. package/components/streaming-listener-B00MvALi.cjs +0 -18
  270. package/components/streaming-listener-CP-JE6Fa.js +0 -91
  271. package/components/style-map-CeilmSgs.cjs +0 -22
  272. package/components/style-map-IgqIKvlE.js +0 -53
  273. package/components/text-field-BYF2RHY8.cjs +0 -85
  274. package/components/text-field-PYafEYeO.js +0 -314
  275. package/components/text-field.module-C2KVUJcX.js +0 -21
  276. package/components/text-field.module-DXhFA9G-.cjs +0 -18
  277. package/components/when-CDZyJPvd.cjs +0 -22
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luzmo/lucero",
3
- "version": "1.0.1-alpha.15",
3
+ "version": "1.0.1-alpha.16",
4
4
  "homepage": "https://luzmo.com",
5
5
  "description": "Lucero - The design system for Luzmo",
6
6
  "type": "module",
@@ -1,18 +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";let f=new Map,u=!1;try{u=new Intl.NumberFormat("de-DE",{signDisplay:"exceptZero"}).resolvedOptions().signDisplay==="exceptZero"}catch{}let l=!1;try{l=new Intl.NumberFormat("de-DE",{style:"unit",unit:"degree"}).resolvedOptions().style==="unit"}catch{}const c={degree:{narrow:{default:"°","ja-JP":" 度","zh-TW":"度","sl-SI":" °"}}};class p{format(t){let e="";if(!u&&this.options.signDisplay!=null?e=d(this.numberFormatter,this.options.signDisplay,t):e=this.numberFormatter.format(t),this.options.style==="unit"&&!l){var i;let{unit:a,unitDisplay:s="short",locale:n}=this.resolvedOptions();if(!a)return e;let o=(i=c[a])===null||i===void 0?void 0:i[s];e+=o[n]||o.default}return e}formatToParts(t){return this.numberFormatter.formatToParts(t)}formatRange(t,e){if(typeof this.numberFormatter.formatRange=="function")return this.numberFormatter.formatRange(t,e);if(e<t)throw new RangeError("End date must be >= start date");return`${this.format(t)} – ${this.format(e)}`}formatRangeToParts(t,e){if(typeof this.numberFormatter.formatRangeToParts=="function")return this.numberFormatter.formatRangeToParts(t,e);if(e<t)throw new RangeError("End date must be >= start date");let i=this.numberFormatter.formatToParts(t),a=this.numberFormatter.formatToParts(e);return[...i.map(s=>({...s,source:"startRange"})),{type:"literal",value:" – ",source:"shared"},...a.map(s=>({...s,source:"endRange"}))]}resolvedOptions(){let t=this.numberFormatter.resolvedOptions();return!u&&this.options.signDisplay!=null&&(t={...t,signDisplay:this.options.signDisplay}),!l&&this.options.style==="unit"&&(t={...t,style:"unit",unit:this.options.unit,unitDisplay:this.options.unitDisplay}),t}constructor(t,e={}){this.numberFormatter=m(t,e),this.options=e}}function m(r,t={}){let{numberingSystem:e}=t;if(e&&r.includes("-nu-")&&(r.includes("-u-")||(r+="-u-"),r+=`-nu-${e}`),t.style==="unit"&&!l){var i;let{unit:n,unitDisplay:o="short"}=t;if(!n)throw new Error('unit option must be provided with style: "unit"');if(!(!((i=c[n])===null||i===void 0)&&i[o]))throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);t={...t,style:"decimal"}}let a=r+(t?Object.entries(t).sort((n,o)=>n[0]<o[0]?-1:1).join():"");if(f.has(a))return f.get(a);let s=new Intl.NumberFormat(r,t);return f.set(a,s),s}function d(r,t,e){if(t==="auto")return r.format(e);if(t==="never")return r.format(Math.abs(e));{let i=!1;if(t==="always"?i=e>0||Object.is(e,0):t==="exceptZero"&&(Object.is(e,-0)||Object.is(e,0)?e=Math.abs(e):i=e>0),i){let a=r.format(-e),s=r.format(e),n=a.replace(s,"").replace(/\u200e|\u061C/,"");return[...n].length!==1&&console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"),a.replace(s,"!!!").replace(n,"+").replace("!!!",s)}else return r.format(e)}}exports.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5=p;
@@ -1,136 +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
- let u = /* @__PURE__ */ new Map(), f = !1;
19
- try {
20
- f = new Intl.NumberFormat("de-DE", {
21
- signDisplay: "exceptZero"
22
- }).resolvedOptions().signDisplay === "exceptZero";
23
- } catch {
24
- }
25
- let l = !1;
26
- try {
27
- l = new Intl.NumberFormat("de-DE", {
28
- style: "unit",
29
- unit: "degree"
30
- }).resolvedOptions().style === "unit";
31
- } catch {
32
- }
33
- const c = {
34
- degree: {
35
- narrow: {
36
- default: "°",
37
- "ja-JP": " 度",
38
- "zh-TW": "度",
39
- "sl-SI": " °"
40
- }
41
- }
42
- };
43
- class d {
44
- /** Formats a number value as a string, according to the locale and options provided to the constructor. */
45
- format(t) {
46
- let e = "";
47
- if (!f && this.options.signDisplay != null ? e = m(this.numberFormatter, this.options.signDisplay, t) : e = this.numberFormatter.format(t), this.options.style === "unit" && !l) {
48
- var i;
49
- let { unit: a, unitDisplay: s = "short", locale: n } = this.resolvedOptions();
50
- if (!a) return e;
51
- let o = (i = c[a]) === null || i === void 0 ? void 0 : i[s];
52
- e += o[n] || o.default;
53
- }
54
- return e;
55
- }
56
- /** Formats a number to an array of parts such as separators, digits, punctuation, and more. */
57
- formatToParts(t) {
58
- return this.numberFormatter.formatToParts(t);
59
- }
60
- /** Formats a number range as a string. */
61
- formatRange(t, e) {
62
- if (typeof this.numberFormatter.formatRange == "function") return this.numberFormatter.formatRange(t, e);
63
- if (e < t) throw new RangeError("End date must be >= start date");
64
- return `${this.format(t)} – ${this.format(e)}`;
65
- }
66
- /** Formats a number range as an array of parts. */
67
- formatRangeToParts(t, e) {
68
- if (typeof this.numberFormatter.formatRangeToParts == "function") return this.numberFormatter.formatRangeToParts(t, e);
69
- if (e < t) throw new RangeError("End date must be >= start date");
70
- let i = this.numberFormatter.formatToParts(t), a = this.numberFormatter.formatToParts(e);
71
- return [
72
- ...i.map((s) => ({
73
- ...s,
74
- source: "startRange"
75
- })),
76
- {
77
- type: "literal",
78
- value: " – ",
79
- source: "shared"
80
- },
81
- ...a.map((s) => ({
82
- ...s,
83
- source: "endRange"
84
- }))
85
- ];
86
- }
87
- /** Returns the resolved formatting options based on the values passed to the constructor. */
88
- resolvedOptions() {
89
- let t = this.numberFormatter.resolvedOptions();
90
- return !f && this.options.signDisplay != null && (t = {
91
- ...t,
92
- signDisplay: this.options.signDisplay
93
- }), !l && this.options.style === "unit" && (t = {
94
- ...t,
95
- style: "unit",
96
- unit: this.options.unit,
97
- unitDisplay: this.options.unitDisplay
98
- }), t;
99
- }
100
- constructor(t, e = {}) {
101
- this.numberFormatter = p(t, e), this.options = e;
102
- }
103
- }
104
- function p(r, t = {}) {
105
- let { numberingSystem: e } = t;
106
- if (e && r.includes("-nu-") && (r.includes("-u-") || (r += "-u-"), r += `-nu-${e}`), t.style === "unit" && !l) {
107
- var i;
108
- let { unit: n, unitDisplay: o = "short" } = t;
109
- if (!n) throw new Error('unit option must be provided with style: "unit"');
110
- if (!(!((i = c[n]) === null || i === void 0) && i[o])) throw new Error(`Unsupported unit ${n} with unitDisplay = ${o}`);
111
- t = {
112
- ...t,
113
- style: "decimal"
114
- };
115
- }
116
- let a = r + (t ? Object.entries(t).sort((n, o) => n[0] < o[0] ? -1 : 1).join() : "");
117
- if (u.has(a)) return u.get(a);
118
- let s = new Intl.NumberFormat(r, t);
119
- return u.set(a, s), s;
120
- }
121
- function m(r, t, e) {
122
- if (t === "auto") return r.format(e);
123
- if (t === "never") return r.format(Math.abs(e));
124
- {
125
- let i = !1;
126
- if (t === "always" ? i = e > 0 || Object.is(e, 0) : t === "exceptZero" && (Object.is(e, -0) || Object.is(e, 0) ? e = Math.abs(e) : i = e > 0), i) {
127
- let a = r.format(-e), s = r.format(e), n = a.replace(s, "").replace(/\u200e|\u061C/, "");
128
- return [
129
- ...n
130
- ].length !== 1 && console.warn("@react-aria/i18n polyfill for NumberFormat signDisplay: Unsupported case"), a.replace(s, "!!!").replace(n, "+").replace("!!!", s);
131
- } else return r.format(e);
132
- }
133
- }
134
- export {
135
- d as $
136
- };
@@ -1,18 +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";const V=require("./NumberFormatter-DewVDY5w.cjs"),A=new RegExp("^.*\\(.*\\).*$"),C=["latn","arab","hanidec","deva","beng"];class N{parse(i){return g(this.locale,this.options,i).parse(i)}isValidPartialNumber(i,e,t){return g(this.locale,this.options,i).isValidPartialNumber(i,e,t)}getNumberingSystem(i){return g(this.locale,this.options,i).options.numberingSystem}constructor(i,e={}){this.locale=i,this.options=e}}const y=new Map;function g(r,i,e){let t=$(r,i);if(!r.includes("-nu-")&&!t.isValidPartialNumber(e)){for(let n of C)if(n!==t.options.numberingSystem){let l=$(r+(r.includes("-u-")?"-nu-":"-u-nu-")+n,i);if(l.isValidPartialNumber(e))return l}}return t}function $(r,i){let e=r+(i?Object.entries(i).sort((n,l)=>n[0]<l[0]?-1:1).join():""),t=y.get(e);return t||(t=new j(r,i),y.set(e,t)),t}class j{parse(i){let e=this.sanitize(i);if(this.symbols.group&&(e=c(e,this.symbols.group,"")),this.symbols.decimal&&(e=e.replace(this.symbols.decimal,".")),this.symbols.minusSign&&(e=e.replace(this.symbols.minusSign,"-")),e=e.replace(this.symbols.numeral,this.symbols.index),this.options.style==="percent"){let o=e.indexOf("-");e=e.replace("-","");let a=e.indexOf(".");a===-1&&(a=e.length),e=e.replace(".",""),a-2===0?e=`0.${e}`:a-2===-1?e=`0.0${e}`:a-2===-2?e="0.00":e=`${e.slice(0,a-2)}.${e.slice(a-2)}`,o>-1&&(e=`-${e}`)}let t=e?+e:NaN;if(isNaN(t))return NaN;if(this.options.style==="percent"){var n,l;let o={...this.options,style:"decimal",minimumFractionDigits:Math.min(((n=this.options.minimumFractionDigits)!==null&&n!==void 0?n:0)+2,20),maximumFractionDigits:Math.min(((l=this.options.maximumFractionDigits)!==null&&l!==void 0?l:0)+2,20)};return new N(this.locale,o).parse(new V.$488c6ddbf4ef74c2$export$cc77c4ff7e8673c5(this.locale,o).format(t))}return this.options.currencySign==="accounting"&&A.test(i)&&(t=-1*t),t}sanitize(i){return i=i.replace(this.symbols.literals,""),this.symbols.minusSign&&(i=i.replace("-",this.symbols.minusSign)),this.options.numberingSystem==="arab"&&(this.symbols.decimal&&(i=i.replace(",",this.symbols.decimal),i=i.replace("،",this.symbols.decimal)),this.symbols.group&&(i=c(i,".",this.symbols.group))),this.options.locale==="fr-FR"&&this.symbols.group&&(i=c(i," ",this.symbols.group),i=c(i,/\u00A0/g,this.symbols.group)),i}isValidPartialNumber(i,e=-1/0,t=1/0){return i=this.sanitize(i),this.symbols.minusSign&&i.startsWith(this.symbols.minusSign)&&e<0?i=i.slice(this.symbols.minusSign.length):this.symbols.plusSign&&i.startsWith(this.symbols.plusSign)&&t>0&&(i=i.slice(this.symbols.plusSign.length)),this.symbols.group&&i.startsWith(this.symbols.group)||this.symbols.decimal&&i.indexOf(this.symbols.decimal)>-1&&this.options.maximumFractionDigits===0?!1:(this.symbols.group&&(i=c(i,this.symbols.group,"")),i=i.replace(this.symbols.numeral,""),this.symbols.decimal&&(i=i.replace(this.symbols.decimal,"")),i.length===0)}constructor(i,e={}){this.locale=i,this.formatter=new Intl.NumberFormat(i,e),this.options=this.formatter.resolvedOptions(),this.symbols=W(i,this.formatter,this.options,e);var t,n;this.options.style==="percent"&&(((t=this.options.minimumFractionDigits)!==null&&t!==void 0?t:0)>18||((n=this.options.maximumFractionDigits)!==null&&n!==void 0?n:0)>18)&&console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.")}}const S=new Set(["decimal","fraction","integer","minusSign","plusSign","group"]),T=[0,4,2,1,11,20,3,7,100,21,.1,1.1];function W(r,i,e,t){var n,l,o,a;let d=new Intl.NumberFormat(r,{...e,minimumSignificantDigits:1,maximumSignificantDigits:21,roundingIncrement:1,roundingPriority:"auto",roundingMode:"halfExpand"}),u=d.formatToParts(-10000.111),x=d.formatToParts(10000.111),w=T.map(s=>d.formatToParts(s));var p;let F=(p=(n=u.find(s=>s.type==="minusSign"))===null||n===void 0?void 0:n.value)!==null&&p!==void 0?p:"-",h=(l=x.find(s=>s.type==="plusSign"))===null||l===void 0?void 0:l.value;!h&&((t==null?void 0:t.signDisplay)==="exceptZero"||(t==null?void 0:t.signDisplay)==="always")&&(h="+");let D=(o=new Intl.NumberFormat(r,{...e,minimumFractionDigits:2,maximumFractionDigits:2}).formatToParts(.001).find(s=>s.type==="decimal"))===null||o===void 0?void 0:o.value,I=(a=u.find(s=>s.type==="group"))===null||a===void 0?void 0:a.value,E=u.filter(s=>!S.has(s.type)).map(s=>P(s.value)),R=w.flatMap(s=>s.filter(m=>!S.has(m.type)).map(m=>P(m.value))),f=[...new Set([...E,...R])].sort((s,m)=>m.length-s.length),_=f.length===0?new RegExp("[\\p{White_Space}]","gu"):new RegExp(`${f.join("|")}|[\\p{White_Space}]`,"gu"),b=[...new Intl.NumberFormat(e.locale,{useGrouping:!1}).format(9876543210)].reverse(),v=new Map(b.map((s,m)=>[s,m])),M=new RegExp(`[${b.join("")}]`,"g");return{minusSign:F,plusSign:h,decimal:D,group:I,literals:_,numeral:M,index:s=>String(v.get(s))}}function c(r,i,e){return r.replaceAll?r.replaceAll(i,e):r.split(i).join(e)}function P(r){return r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}exports.$6c7bd7858deea686$export$cd11ab140839f11d=N;
@@ -1,173 +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 { $ as M } from "./NumberFormatter-DgOUVrge.js";
19
- const V = new RegExp("^.*\\(.*\\).*$"), A = [
20
- "latn",
21
- "arab",
22
- "hanidec",
23
- "deva",
24
- "beng"
25
- ];
26
- class C {
27
- /**
28
- * Parses the given string to a number. Returns NaN if a valid number could not be parsed.
29
- */
30
- parse(i) {
31
- return g(this.locale, this.options, i).parse(i);
32
- }
33
- /**
34
- * Returns whether the given string could potentially be a valid number. This should be used to
35
- * validate user input as the user types. If a `minValue` or `maxValue` is provided, the validity
36
- * of the minus/plus sign characters can be checked.
37
- */
38
- isValidPartialNumber(i, e, t) {
39
- return g(this.locale, this.options, i).isValidPartialNumber(i, e, t);
40
- }
41
- /**
42
- * Returns a numbering system for which the given string is valid in the current locale.
43
- * If no numbering system could be detected, the default numbering system for the current
44
- * locale is returned.
45
- */
46
- getNumberingSystem(i) {
47
- return g(this.locale, this.options, i).options.numberingSystem;
48
- }
49
- constructor(i, e = {}) {
50
- this.locale = i, this.options = e;
51
- }
52
- }
53
- const y = /* @__PURE__ */ new Map();
54
- function g(r, i, e) {
55
- let t = $(r, i);
56
- if (!r.includes("-nu-") && !t.isValidPartialNumber(e)) {
57
- for (let n of A) if (n !== t.options.numberingSystem) {
58
- let l = $(r + (r.includes("-u-") ? "-nu-" : "-u-nu-") + n, i);
59
- if (l.isValidPartialNumber(e)) return l;
60
- }
61
- }
62
- return t;
63
- }
64
- function $(r, i) {
65
- let e = r + (i ? Object.entries(i).sort((n, l) => n[0] < l[0] ? -1 : 1).join() : ""), t = y.get(e);
66
- return t || (t = new j(r, i), y.set(e, t)), t;
67
- }
68
- class j {
69
- parse(i) {
70
- let e = this.sanitize(i);
71
- if (this.symbols.group && (e = c(e, this.symbols.group, "")), this.symbols.decimal && (e = e.replace(this.symbols.decimal, ".")), this.symbols.minusSign && (e = e.replace(this.symbols.minusSign, "-")), e = e.replace(this.symbols.numeral, this.symbols.index), this.options.style === "percent") {
72
- let o = e.indexOf("-");
73
- e = e.replace("-", "");
74
- let a = e.indexOf(".");
75
- a === -1 && (a = e.length), e = e.replace(".", ""), a - 2 === 0 ? e = `0.${e}` : a - 2 === -1 ? e = `0.0${e}` : a - 2 === -2 ? e = "0.00" : e = `${e.slice(0, a - 2)}.${e.slice(a - 2)}`, o > -1 && (e = `-${e}`);
76
- }
77
- let t = e ? +e : NaN;
78
- if (isNaN(t)) return NaN;
79
- if (this.options.style === "percent") {
80
- var n, l;
81
- let o = {
82
- ...this.options,
83
- style: "decimal",
84
- minimumFractionDigits: Math.min(((n = this.options.minimumFractionDigits) !== null && n !== void 0 ? n : 0) + 2, 20),
85
- maximumFractionDigits: Math.min(((l = this.options.maximumFractionDigits) !== null && l !== void 0 ? l : 0) + 2, 20)
86
- };
87
- return new C(this.locale, o).parse(new M(this.locale, o).format(t));
88
- }
89
- return this.options.currencySign === "accounting" && V.test(i) && (t = -1 * t), t;
90
- }
91
- sanitize(i) {
92
- return i = i.replace(this.symbols.literals, ""), this.symbols.minusSign && (i = i.replace("-", this.symbols.minusSign)), this.options.numberingSystem === "arab" && (this.symbols.decimal && (i = i.replace(",", this.symbols.decimal), i = i.replace("،", this.symbols.decimal)), this.symbols.group && (i = c(i, ".", this.symbols.group))), this.options.locale === "fr-FR" && this.symbols.group && (i = c(i, " ", this.symbols.group), i = c(i, /\u00A0/g, this.symbols.group)), i;
93
- }
94
- isValidPartialNumber(i, e = -1 / 0, t = 1 / 0) {
95
- return i = this.sanitize(i), this.symbols.minusSign && i.startsWith(this.symbols.minusSign) && e < 0 ? i = i.slice(this.symbols.minusSign.length) : this.symbols.plusSign && i.startsWith(this.symbols.plusSign) && t > 0 && (i = i.slice(this.symbols.plusSign.length)), this.symbols.group && i.startsWith(this.symbols.group) || this.symbols.decimal && i.indexOf(this.symbols.decimal) > -1 && this.options.maximumFractionDigits === 0 ? !1 : (this.symbols.group && (i = c(i, this.symbols.group, "")), i = i.replace(this.symbols.numeral, ""), this.symbols.decimal && (i = i.replace(this.symbols.decimal, "")), i.length === 0);
96
- }
97
- constructor(i, e = {}) {
98
- this.locale = i, this.formatter = new Intl.NumberFormat(i, e), this.options = this.formatter.resolvedOptions(), this.symbols = W(i, this.formatter, this.options, e);
99
- var t, n;
100
- this.options.style === "percent" && (((t = this.options.minimumFractionDigits) !== null && t !== void 0 ? t : 0) > 18 || ((n = this.options.maximumFractionDigits) !== null && n !== void 0 ? n : 0) > 18) && console.warn("NumberParser cannot handle percentages with greater than 18 decimal places, please reduce the number in your options.");
101
- }
102
- }
103
- const S = /* @__PURE__ */ new Set([
104
- "decimal",
105
- "fraction",
106
- "integer",
107
- "minusSign",
108
- "plusSign",
109
- "group"
110
- ]), T = [
111
- 0,
112
- 4,
113
- 2,
114
- 1,
115
- 11,
116
- 20,
117
- 3,
118
- 7,
119
- 100,
120
- 21,
121
- 0.1,
122
- 1.1
123
- ];
124
- function W(r, i, e, t) {
125
- var n, l, o, a;
126
- let u = new Intl.NumberFormat(r, {
127
- ...e,
128
- // Resets so we get the full range of symbols
129
- minimumSignificantDigits: 1,
130
- maximumSignificantDigits: 21,
131
- roundingIncrement: 1,
132
- roundingPriority: "auto",
133
- roundingMode: "halfExpand"
134
- }), d = u.formatToParts(-10000.111), N = u.formatToParts(10000.111), x = T.map((s) => u.formatToParts(s));
135
- var p;
136
- let w = (p = (n = d.find((s) => s.type === "minusSign")) === null || n === void 0 ? void 0 : n.value) !== null && p !== void 0 ? p : "-", h = (l = N.find((s) => s.type === "plusSign")) === null || l === void 0 ? void 0 : l.value;
137
- !h && ((t == null ? void 0 : t.signDisplay) === "exceptZero" || (t == null ? void 0 : t.signDisplay) === "always") && (h = "+");
138
- let F = (o = new Intl.NumberFormat(r, {
139
- ...e,
140
- minimumFractionDigits: 2,
141
- maximumFractionDigits: 2
142
- }).formatToParts(1e-3).find((s) => s.type === "decimal")) === null || o === void 0 ? void 0 : o.value, D = (a = d.find((s) => s.type === "group")) === null || a === void 0 ? void 0 : a.value, I = d.filter((s) => !S.has(s.type)).map((s) => P(s.value)), E = x.flatMap((s) => s.filter((m) => !S.has(m.type)).map((m) => P(m.value))), f = [
143
- .../* @__PURE__ */ new Set([
144
- ...I,
145
- ...E
146
- ])
147
- ].sort((s, m) => m.length - s.length), R = f.length === 0 ? new RegExp("[\\p{White_Space}]", "gu") : new RegExp(`${f.join("|")}|[\\p{White_Space}]`, "gu"), b = [
148
- ...new Intl.NumberFormat(e.locale, {
149
- useGrouping: !1
150
- }).format(9876543210)
151
- ].reverse(), _ = new Map(b.map((s, m) => [
152
- s,
153
- m
154
- ])), v = new RegExp(`[${b.join("")}]`, "g");
155
- return {
156
- minusSign: w,
157
- plusSign: h,
158
- decimal: F,
159
- group: D,
160
- literals: R,
161
- numeral: v,
162
- index: (s) => String(_.get(s))
163
- };
164
- }
165
- function c(r, i, e) {
166
- return r.replaceAll ? r.replaceAll(i, e) : r.split(i).join(e);
167
- }
168
- function P(r) {
169
- return r.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
170
- }
171
- export {
172
- C as $
173
- };
@@ -1,258 +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 { a as d, r as p, x as g, n as c } from "./base-WsynuqaS.js";
19
- import { s as h } from "./mutation-controller-DH7YOCyj.js";
20
- import { e as b } from "./query-D_KR_GUc.js";
21
- import { R as m } from "./roving-tabindex-DOg4z6ZU.js";
22
- import { S as v } from "./sized-mixin-D4ACoVUr.js";
23
- const z = ":host{gap:var(--luzmo-action-group-horizontal-spacing-regular, var(--action-group-horizontal-spacing-regular));flex-wrap:wrap;display:flex}::slotted(*){flex-shrink:0}::slotted(:focus-visible){z-index:3}:host(:not([vertical]):not([compact])) ::slotted(*){flex-shrink:0}:host([vertical]){gap:var(--luzmo-action-group-vertical-spacing-regular, var(--action-group-vertical-spacing-regular));flex-direction:column;display:inline-flex}:host([compact]){gap:var(--luzmo-action-group-gap-size-compact, var(--action-group-gap-size-compact))}:host([compact]:not([quiet])){flex-wrap:nowrap}:host([compact]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset));z-index:0;position:relative}:host([compact]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0px 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-start-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact]:not([quiet])) ::slotted(:not(:first-child)){--luzmo-actionbutton-focus-indicator-border-radius: 0px;margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact))}:host([compact]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius: 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0px;border-start-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-inline-start:var(--luzmo-action-group-horizontal-spacing-compact, var(--action-group-horizontal-spacing-compact));margin-inline-end:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset))}:host([compact]:not([quiet])) ::slotted([selected]){z-index:1}@media (hover: hover){:host([compact]:not([quiet])) ::slotted(:hover){z-index:2}}:host([compact]:not([quiet])) ::slotted(:focus-visible){z-index:3}:host([compact]:not([quiet])[vertical]){gap:var(--luzmo-action-group-gap-size-compact, var(--action-group-gap-size-compact))}:host([compact][vertical]:not([quiet])) ::slotted(*){border-radius:var(--luzmo-action-group-border-radius-reset, var(--action-group-border-radius-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-actionbutton-focus-indicator-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0px 0px;border-start-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-start-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-inline-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:not(:first-child)){margin-block-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset));margin-block-end:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-inline-start:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset));margin-inline-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-actionbutton-focus-indicator-border-radius: 0px 0px var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-end-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));border-end-start-radius:var(--luzmo-action-group-border-radius, var(--action-group-border-radius));margin-block-start:var(--luzmo-action-group-vertical-spacing-compact, var(--action-group-vertical-spacing-compact));margin-block-end:var(--luzmo-action-group-button-spacing-reset, var(--action-group-button-spacing-reset))}:host([justified]) ::slotted(*){flex:1}:host{--action-group-gap-size-compact: 0px;--action-group-horizontal-spacing-compact: -1px;--action-group-vertical-spacing-compact: -1px;--action-group-button-spacing-reset: 0px;--action-group-border-radius-reset: 0px;--action-group-border-radius: var(--luzmo-border-radius);--action-group-horizontal-spacing-regular: var(--luzmo-spacing-3);--action-group-vertical-spacing-regular: var(--luzmo-spacing-3)}:host([size=xs]),:host([size=s]){--action-group-horizontal-spacing-regular: var(--luzmo-spacing-2);--action-group-vertical-spacing-regular: var(--luzmo-spacing-2)}:host,:host([size=l]),:host([size=xl]){--action-group-horizontal-spacing-regular: var(--luzmo-spacing-3);--action-group-vertical-spacing-regular: var(--luzmo-spacing-3)}:host([dir][compact][vertical]) ::slotted(:nth-child(n)){margin-right:0;margin-left:0}:host([justified]) ::slotted(:not([role])),:host([vertical]) ::slotted(:not([role])){display:flex;flex-direction:column;align-items:stretch}:host([compact]:not([quiet])) ::slotted(:not([role])){--overriden-border-radius: 0;--luzmo-action-button-border-radius: var(--overriden-border-radius)}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):first-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:not([role]):last-child){--overriden-border-radius: 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):first-child){--overriden-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:not([role]):last-child){--overriden-border-radius: var( --luzmo-action-group-border-radius, var(--action-group-border-radius) ) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([compact]:not([quiet])) ::slotted(*){--luzmo-action-button-focus-ring-border-radius: 0}:host([compact][vertical]:not([quiet])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0 0}:host([compact][vertical]:not([quiet])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:first-child){--luzmo-action-button-focus-ring-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=ltr][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) var(--luzmo-action-group-border-radius, var(--action-group-border-radius)) 0}:host([dir=rtl][compact]:not([quiet],[vertical])) ::slotted(:last-child){--luzmo-action-button-focus-ring-border-radius: var(--luzmo-border-radius) 0 0 var(--luzmo-action-group-border-radius, var(--action-group-border-radius))}";
24
- var f = Object.defineProperty, x = Object.getOwnPropertyDescriptor, s = (n, t, r, e) => {
25
- for (var o = e > 1 ? void 0 : e ? x(t, r) : t, a = n.length - 1, i; a >= 0; a--)
26
- (i = n[a]) && (o = (e ? i(t, r, o) : i(o)) || o);
27
- return e && o && f(t, r, o), o;
28
- };
29
- const l = [];
30
- class u extends v(d, {
31
- validSizes: ["xs", "s", "m", "l", "xl"],
32
- noDefaultSize: !0
33
- }) {
34
- constructor() {
35
- super(), this._buttons = [], this._buttonSelector = "luzmo-action-button, luzmo-action-menu", this.rovingTabindexController = new m(
36
- this,
37
- {
38
- focusInIndex: (t) => {
39
- let r = -1;
40
- const e = t.findIndex((o, a) => (!t[r] && !o.disabled && (r = a), o.selected && !o.disabled));
41
- return t[e] ? e : r;
42
- },
43
- elements: () => this.buttons,
44
- isFocusableElement: (t) => !t.disabled
45
- }
46
- ), this.compact = !1, this.emphasized = !1, this.justified = !1, this.label = "", this.quiet = !1, this.vertical = !1, this._selected = l, this.hasManaged = !1, this.manageButtons = () => {
47
- if (!this.slotElement)
48
- return;
49
- const r = this.slotElement.assignedElements({
50
- flatten: !0
51
- }).reduce((e, o) => {
52
- if (o.matches(this._buttonSelector))
53
- e.push(o);
54
- else {
55
- const a = [
56
- ...o.querySelectorAll(`:scope > ${this._buttonSelector}`)
57
- ];
58
- e.push(...a);
59
- }
60
- return e;
61
- }, []);
62
- if (this.buttons = r, this.selects || !this.hasManaged) {
63
- const e = [];
64
- this.buttons.forEach((o) => {
65
- o.selected && e.push(o.value);
66
- }), this.setSelected([...this.selected, ...e]);
67
- }
68
- this.manageChildren(), this.manageSelects(), this.hasManaged = !0;
69
- }, new h(this, {
70
- config: {
71
- childList: !0,
72
- subtree: !0
73
- },
74
- callback: () => {
75
- this.manageButtons();
76
- },
77
- skipInitial: !0
78
- });
79
- }
80
- static get styles() {
81
- return [p(z)];
82
- }
83
- set buttons(t) {
84
- t !== this.buttons && (this._buttons = t, this.rovingTabindexController.clearElementCache());
85
- }
86
- get buttons() {
87
- return this._buttons;
88
- }
89
- set selected(t) {
90
- this.requestUpdate("selected", this._selected), this._selected = t, this.updateComplete.then(() => {
91
- this.applySelects(), this.manageChildren();
92
- });
93
- }
94
- get selected() {
95
- return this._selected;
96
- }
97
- dispatchChange(t) {
98
- this.dispatchEvent(
99
- new Event("change", {
100
- bubbles: !0,
101
- composed: !0,
102
- cancelable: !0
103
- })
104
- ) || (this.setSelected(t), this.buttons.map((e) => {
105
- e.selected = this.selected.includes(e.value);
106
- }));
107
- }
108
- setSelected(t, r) {
109
- if (t === this.selected)
110
- return;
111
- const e = this.selected;
112
- this.requestUpdate("selected", e), this._selected = t, r && this.dispatchChange(e);
113
- }
114
- focus(t) {
115
- this.rovingTabindexController.focus(t);
116
- }
117
- deselectSelectedButtons() {
118
- this.buttons.forEach((t) => {
119
- t.selected && (t.selected = !1, t.tabIndex = -1, t.setAttribute(
120
- this.selects ? "aria-checked" : (
121
- /* c8 ignore */
122
- "aria-pressed"
123
- ),
124
- "false"
125
- ));
126
- });
127
- }
128
- handleActionButtonChange(t) {
129
- t.stopPropagation(), t.preventDefault();
130
- }
131
- handleClick(t) {
132
- const r = t.target;
133
- if (r.value !== void 0)
134
- switch (this.selects) {
135
- case "single": {
136
- this.deselectSelectedButtons(), r.selected = !0, r.tabIndex = 0, r.setAttribute("aria-checked", "true"), this.setSelected([r.value], !0);
137
- break;
138
- }
139
- case "multiple": {
140
- const e = [...this.selected];
141
- r.selected = !r.selected, r.setAttribute("aria-checked", r.selected ? "true" : "false"), r.selected ? e.push(r.value) : e.splice(this.selected.indexOf(r.value), 1), this.setSelected(e, !0), this.buttons.forEach((o) => {
142
- o.tabIndex = -1;
143
- }), r.tabIndex = 0;
144
- break;
145
- }
146
- }
147
- }
148
- async applySelects() {
149
- await this.manageSelects(!0);
150
- }
151
- async manageSelects(t) {
152
- if (this.buttons.length === 0)
153
- return;
154
- const r = this.buttons;
155
- switch (this.selects) {
156
- case "single": {
157
- this.setAttribute("role", "radiogroup");
158
- const e = [], o = r.map(async (i) => {
159
- await i.updateComplete, i.setAttribute("role", "radio"), i.setAttribute(
160
- "aria-checked",
161
- i.selected ? "true" : "false"
162
- ), i.selected && e.push(i);
163
- });
164
- if (t)
165
- break;
166
- await Promise.all(o);
167
- const a = e.map((i) => i.value);
168
- this.setSelected(a || l);
169
- break;
170
- }
171
- case "multiple": {
172
- this.getAttribute("role") === "radiogroup" && this.removeAttribute("role");
173
- const e = [], o = r.map(async (i) => {
174
- await i.updateComplete, i.setAttribute("role", "checkbox"), i.setAttribute(
175
- "aria-checked",
176
- i.selected ? "true" : "false"
177
- ), i.selected && e.push(i.value);
178
- });
179
- if (t)
180
- break;
181
- await Promise.all(o);
182
- const a = e.length > 0 ? e : l;
183
- this.setSelected(a);
184
- break;
185
- }
186
- default:
187
- if (this.selected.length > 0) {
188
- const e = [], o = r.map(async (a) => {
189
- await a.updateComplete, a.setAttribute("role", "button"), a.selected ? (a.setAttribute("aria-pressed", "true"), e.push(a)) : a.removeAttribute("aria-pressed");
190
- });
191
- if (t)
192
- break;
193
- await Promise.all(o), this.setSelected(e.map((a) => a.value));
194
- } else {
195
- this.buttons.forEach((e) => {
196
- e.setAttribute("role", "button");
197
- });
198
- break;
199
- }
200
- }
201
- this.hasAttribute("role") || this.setAttribute("role", "toolbar");
202
- }
203
- render() {
204
- return g`
205
- <slot role="presentation" @slotchange=${this.manageButtons}></slot>
206
- `;
207
- }
208
- firstUpdated(t) {
209
- super.firstUpdated(t), this.addEventListener("click", this.handleClick);
210
- }
211
- updated(t) {
212
- super.updated(t), t.has("selects") && (this.manageSelects(), this.manageChildren(), this.selects ? this.renderRoot.addEventListener(
213
- "change",
214
- this.handleActionButtonChange
215
- ) : this.renderRoot.removeEventListener(
216
- "change",
217
- this.handleActionButtonChange
218
- )), (t.has("quiet") || t.has("emphasized") || t.has("size") || t.has("staticColor")) && this.manageChildren(t), t.has("label") && (this.label || t.get("label") !== void 0) && (this.label.length > 0 ? this.setAttribute("aria-label", this.label) : this.removeAttribute("aria-label"));
219
- }
220
- manageChildren(t) {
221
- this.buttons.forEach((r) => {
222
- (this.quiet || t != null && t.get("quiet")) && (r.quiet = this.quiet), (this.emphasized || t != null && t.get("emphasized")) && (r.emphasized = this.emphasized), (this.staticColor || t != null && t.get("staticColor")) && (r.staticColor = this.staticColor), (this.selects || !this.hasManaged) && (r.selected = this.selected.includes(r.value)), this.size && (this.size !== "m" || (t == null ? void 0 : t.get("size")) !== void 0) && (r.size = this.size);
223
- });
224
- }
225
- }
226
- s([
227
- c({ type: Boolean, reflect: !0 })
228
- ], u.prototype, "compact", 2);
229
- s([
230
- c({ type: Boolean, reflect: !0 })
231
- ], u.prototype, "emphasized", 2);
232
- s([
233
- c({ type: Boolean, reflect: !0 })
234
- ], u.prototype, "justified", 2);
235
- s([
236
- c({ type: String })
237
- ], u.prototype, "label", 2);
238
- s([
239
- c({ type: Boolean, reflect: !0 })
240
- ], u.prototype, "quiet", 2);
241
- s([
242
- c({ type: String })
243
- ], u.prototype, "selects", 2);
244
- s([
245
- c({ reflect: !0, attribute: "static-color" })
246
- ], u.prototype, "staticColor", 2);
247
- s([
248
- c({ type: Boolean, reflect: !0 })
249
- ], u.prototype, "vertical", 2);
250
- s([
251
- c({ type: Array })
252
- ], u.prototype, "selected", 1);
253
- s([
254
- b("slot")
255
- ], u.prototype, "slotElement", 2);
256
- export {
257
- u as L
258
- };