@luzmo/lucero 0.0.4 → 0.0.6

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 (373) hide show
  1. package/components/accordion/accordion-item.d.ts +24 -0
  2. package/components/accordion/accordion.d.ts +42 -0
  3. package/components/accordion/index.cjs +43 -0
  4. package/components/accordion/index.d.ts +10 -0
  5. package/{lib → components}/accordion/index.js +10 -11
  6. package/components/action-bar/action-bar.d.ts +42 -0
  7. package/components/action-bar/index.cjs +39 -0
  8. package/components/action-bar/index.d.ts +7 -0
  9. package/{lib → components}/action-bar/index.js +9 -10
  10. package/components/action-button/action-button.d.ts +81 -0
  11. package/components/action-button/index.cjs +24 -0
  12. package/components/action-button/index.d.ts +7 -0
  13. package/{lib → components}/action-button/index.js +6 -7
  14. package/components/action-group/action-group.d.ts +50 -0
  15. package/{lib → components}/action-group/index.cjs +1 -1
  16. package/components/action-group/index.d.ts +7 -0
  17. package/{lib → components}/action-group/index.js +1 -1
  18. package/{lib/action-group-BoIH8s8R.js → components/action-group-B7oQXv30.js} +11 -12
  19. package/components/action-group-C8YUQzt8.cjs +20 -0
  20. package/components/action-menu/action-menu.d.ts +40 -0
  21. package/{lib → components}/action-menu/index.cjs +5 -5
  22. package/components/action-menu/index.d.ts +7 -0
  23. package/{lib → components}/action-menu/index.js +10 -11
  24. package/{lib/async-directive-FGzMycjH.js → components/async-directive-BhRGSTWB.js} +1 -1
  25. package/{lib/async-directive-CV2MII86.cjs → components/async-directive-_65ULPLK.cjs} +1 -1
  26. package/components/avatar/avatar.d.ts +31 -0
  27. package/components/avatar/index.cjs +24 -0
  28. package/components/avatar/index.d.ts +7 -0
  29. package/{lib → components}/avatar/index.js +13 -14
  30. package/components/base-CxUap9HL.js +665 -0
  31. package/components/base-rtxi7uaR.cjs +40 -0
  32. package/components/button/button-base.d.ts +44 -0
  33. package/components/button/button.d.ts +59 -0
  34. package/components/button/clear-button.d.ts +22 -0
  35. package/components/button/close-button.d.ts +24 -0
  36. package/components/button/index.cjs +20 -0
  37. package/components/button/index.d.ts +13 -0
  38. package/{lib → components}/button/index.js +11 -12
  39. package/{lib/button-base-DgtT6sU5.js → components/button-base-CgrTYVgq.js} +11 -12
  40. package/components/button-base-DjqSZyn2.cjs +25 -0
  41. package/components/button-group/button-group.d.ts +19 -0
  42. package/components/button-group/index.cjs +18 -0
  43. package/components/button-group/index.d.ts +7 -0
  44. package/{lib → components}/button-group/index.js +7 -8
  45. package/components/checkbox/checkbox-base.d.ts +9 -0
  46. package/components/checkbox/checkbox-mixin.d.ts +14 -0
  47. package/components/checkbox/checkbox.d.ts +54 -0
  48. package/components/checkbox/index.cjs +25 -0
  49. package/components/checkbox/index.d.ts +7 -0
  50. package/{lib → components}/checkbox/index.js +5 -6
  51. package/{lib/checkbox-mixin-DegQlk5C.js → components/checkbox-mixin-BRluTF9s.js} +15 -16
  52. package/{lib/checkbox-mixin-H0Hm-VLk.cjs → components/checkbox-mixin-iB-0ivgo.cjs} +3 -3
  53. package/{lib/clear-button-Ap5H3UyH.js → components/clear-button-CyLF5dx_.js} +6 -7
  54. package/components/clear-button-DFXE6MLx.cjs +18 -0
  55. package/components/close-button-CcD-aVqh.cjs +18 -0
  56. package/{lib/close-button-CGISEF33.js → components/close-button-CzpdWCWI.js} +8 -9
  57. package/components/color-area/color-area.d.ts +67 -0
  58. package/components/color-area/index.cjs +80 -0
  59. package/components/color-area/index.d.ts +7 -0
  60. package/{lib → components}/color-area/index.js +9 -10
  61. package/components/color-field/color-field.d.ts +20 -0
  62. package/components/color-field/index.cjs +23 -0
  63. package/components/color-field/index.d.ts +7 -0
  64. package/{lib → components}/color-field/index.js +2 -3
  65. package/components/color-handle/color-handle.d.ts +13 -0
  66. package/components/color-handle/index.cjs +24 -0
  67. package/components/color-handle/index.d.ts +7 -0
  68. package/{lib → components}/color-handle/index.js +2 -3
  69. package/components/color-loupe/color-loupe.d.ts +7 -0
  70. package/{lib → components}/color-loupe/index.cjs +1 -1
  71. package/components/color-loupe/index.d.ts +7 -0
  72. package/{lib → components}/color-loupe/index.js +1 -1
  73. package/components/color-loupe-BN3k1ACF.cjs +56 -0
  74. package/{lib/color-loupe-DBEApMDT.js → components/color-loupe-CD-dhmB1.js} +3 -4
  75. package/components/color-menu/color-menu.d.ts +54 -0
  76. package/components/color-menu/index.cjs +86 -0
  77. package/components/color-menu/index.d.ts +7 -0
  78. package/{lib → components}/color-menu/index.js +9 -10
  79. package/components/color-picker/color-picker.d.ts +39 -0
  80. package/components/color-picker/index.cjs +48 -0
  81. package/components/color-picker/index.d.ts +7 -0
  82. package/{lib → components}/color-picker/index.js +33 -34
  83. package/components/color-slider/color-slider.d.ts +57 -0
  84. package/components/color-slider/index.cjs +57 -0
  85. package/components/color-slider/index.d.ts +7 -0
  86. package/{lib → components}/color-slider/index.js +5 -6
  87. package/{lib/directive-helpers-C2vOfhFx.cjs → components/directive-helpers-C3pAxRR3.cjs} +1 -1
  88. package/{lib/directive-helpers-BLDZnGQv.js → components/directive-helpers-D0vm0gvF.js} +1 -1
  89. package/components/divider/divider.d.ts +24 -0
  90. package/components/divider/index.cjs +18 -0
  91. package/components/divider/index.d.ts +7 -0
  92. package/{lib → components}/divider/index.js +5 -6
  93. package/components/field-group/field-group.d.ts +24 -0
  94. package/{lib → components}/field-group/index.cjs +1 -1
  95. package/components/field-group/index.d.ts +7 -0
  96. package/{lib → components}/field-group/index.js +1 -1
  97. package/{lib/field-group-CBWafIUV.js → components/field-group-DAImvhSF.js} +2 -3
  98. package/components/field-group-d5Hkb8UW.cjs +23 -0
  99. package/components/field-label/field-label.d.ts +50 -0
  100. package/{lib → components}/field-label/index.cjs +1 -1
  101. package/components/field-label/index.d.ts +7 -0
  102. package/{lib → components}/field-label/index.js +1 -1
  103. package/components/field-label-D1zKXSG6.cjs +25 -0
  104. package/{lib/field-label-BK_tk8vP.js → components/field-label-DY9iRmRI.js} +14 -15
  105. package/{lib/focusable-DbUg-3Vp.js → components/focusable-Bze9xE25.js} +1 -1
  106. package/{lib/focusable-Dv_6CFaY.cjs → components/focusable-DyyBr-J-.cjs} +1 -1
  107. package/components/icon/icon-base.d.ts +11 -0
  108. package/components/icon/icon.d.ts +12 -0
  109. package/components/icon/index.cjs +18 -0
  110. package/components/icon/index.d.ts +7 -0
  111. package/{lib → components}/icon/index.js +4 -5
  112. package/{lib/if-defined-Cv6xanXh.cjs → components/if-defined-C-8FyBSN.cjs} +2 -2
  113. package/{lib/if-defined-CYpcjGCb.js → components/if-defined-XzWkhMhg.js} +1 -1
  114. package/{lib/index-yNcLzjhM.cjs → components/index-CNtoBntg.cjs} +15 -15
  115. package/{lib/index-ovT-qVzf.js → components/index-Ci6Jnhu4.js} +8 -9
  116. package/components/index.cjs +27 -0
  117. package/{lib/legend-position → components}/index.js +150 -28
  118. package/components/infield-button/index.cjs +22 -0
  119. package/components/infield-button/index.d.ts +7 -0
  120. package/{lib → components}/infield-button/index.js +3 -4
  121. package/components/infield-button/infield-button.d.ts +25 -0
  122. package/components/label/index.cjs +18 -0
  123. package/components/label/index.d.ts +7 -0
  124. package/{lib → components}/label/index.js +1 -2
  125. package/components/label/label.d.ts +7 -0
  126. package/components/legend-position/index.d.ts +7 -0
  127. package/components/legend-position/legend-position.d.ts +10 -0
  128. package/{lib/like-anchor-K8W0QYwC.cjs → components/like-anchor-DKuw8fJA.cjs} +4 -4
  129. package/{lib/like-anchor-cDeGGeHh.js → components/like-anchor-DnsAwo_O.js} +8 -9
  130. package/{lib/manage-help-text-2mSEy-AD.js → components/manage-help-text-B-FXFXgT.js} +8 -8
  131. package/{lib/manage-help-text-iOk-zmy8.cjs → components/manage-help-text-I5aYDAKT.cjs} +3 -3
  132. package/{lib → components}/menu/index.cjs +1 -1
  133. package/components/menu/index.d.ts +16 -0
  134. package/{lib → components}/menu/index.js +1 -1
  135. package/components/menu/menu-divider.d.ts +14 -0
  136. package/components/menu/menu-group.d.ts +17 -0
  137. package/components/menu/menu-item.d.ts +125 -0
  138. package/components/menu/menu.d.ts +119 -0
  139. package/components/multi-language-field/index.cjs +39 -0
  140. package/components/multi-language-field/index.d.ts +7 -0
  141. package/{lib → components}/multi-language-field/index.js +6 -7
  142. package/components/multi-language-field/multi-language-field.d.ts +41 -0
  143. package/components/number-field/index.cjs +57 -0
  144. package/components/number-field/index.d.ts +7 -0
  145. package/{lib → components}/number-field/index.js +23 -24
  146. package/components/number-field/number-field.d.ts +113 -0
  147. package/{lib/observe-slot-text-BmsCNJig.cjs → components/observe-slot-text-DeSKIzvP.cjs} +1 -1
  148. package/{lib/observe-slot-text-BoFRF-VI.js → components/observe-slot-text-DrM71me1.js} +1 -1
  149. package/components/overlay/abstract-overlay.d.ts +72 -0
  150. package/components/overlay/click-controller.d.ts +14 -0
  151. package/components/overlay/events.d.ts +23 -0
  152. package/components/overlay/full-size-plugin.d.ts +12 -0
  153. package/components/overlay/hover-controller.d.ts +20 -0
  154. package/components/overlay/index.cjs +73 -0
  155. package/components/overlay/index.d.ts +22 -0
  156. package/{lib → components}/overlay/index.js +53 -36
  157. package/components/overlay/interaction-controller.d.ts +38 -0
  158. package/components/overlay/loader.d.ts +4 -0
  159. package/components/overlay/longpress-controller.d.ts +21 -0
  160. package/components/overlay/overlay-dialog.d.ts +4 -0
  161. package/components/overlay/overlay-events.d.ts +11 -0
  162. package/components/overlay/overlay-no-popover.d.ts +4 -0
  163. package/components/overlay/overlay-popover.d.ts +4 -0
  164. package/components/overlay/overlay-stack.d.ts +44 -0
  165. package/components/overlay/overlay-timer.d.ts +21 -0
  166. package/components/overlay/overlay-trigger-directive.d.ts +26 -0
  167. package/components/overlay/overlay-trigger.d.ts +53 -0
  168. package/components/overlay/overlay-types.d.ts +50 -0
  169. package/components/overlay/overlay.d.ts +464 -0
  170. package/components/overlay/placement-controller.d.ts +157 -0
  171. package/components/overlay/slottable-request-directive.d.ts +17 -0
  172. package/components/overlay/slottable-request-event.d.ts +12 -0
  173. package/components/overlay/strategies.d.ts +8 -0
  174. package/components/overlay/virtual-trigger.d.ts +7 -0
  175. package/{lib/overlay-C7QKFqRc.js → components/overlay-C2Cck0Az.js} +53 -43
  176. package/components/overlay-dn6Xe_vz.cjs +47 -0
  177. package/{lib/pending-state-D5KTK4_1.js → components/pending-state--XOfTjzE.js} +2 -2
  178. package/{lib/pending-state-Dbc2HIM2.cjs → components/pending-state-BeJ7iP-O.cjs} +2 -2
  179. package/components/picker/desktop-controller.d.ts +7 -0
  180. package/{lib → components}/picker/index.cjs +1 -1
  181. package/components/picker/index.d.ts +7 -0
  182. package/{lib → components}/picker/index.js +2 -2
  183. package/components/picker/interaction-controller.d.ts +43 -0
  184. package/components/picker/mobile-controller.d.ts +9 -0
  185. package/components/picker/picker.d.ts +154 -0
  186. package/components/picker/strategies.d.ts +6 -0
  187. package/components/picker-8cOc-jjh.cjs +127 -0
  188. package/components/picker-BZAWrSDk.js +655 -0
  189. package/{lib → components}/popover/index.cjs +1 -1
  190. package/components/popover/index.d.ts +7 -0
  191. package/{lib → components}/popover/index.js +1 -1
  192. package/components/popover/popover.d.ts +29 -0
  193. package/components/popover-CCzs4VH8.cjs +30 -0
  194. package/{lib/popover-ZRVxogyp.js → components/popover-D0EliN0L.js} +7 -8
  195. package/{lib → components}/progress-circle/index.cjs +1 -1
  196. package/components/progress-circle/index.d.ts +7 -0
  197. package/{lib → components}/progress-circle/index.js +1 -1
  198. package/components/progress-circle/progress-circle.d.ts +35 -0
  199. package/components/progress-circle-DYSSkjlY.cjs +33 -0
  200. package/{lib/progress-circle-DpXiqW6a.js → components/progress-circle-_-9sAlMM.js} +5 -6
  201. package/components/radio/index.cjs +22 -0
  202. package/components/radio/index.d.ts +10 -0
  203. package/{lib → components}/radio/index.js +10 -11
  204. package/components/radio/radio-group.d.ts +27 -0
  205. package/components/radio/radio.d.ts +39 -0
  206. package/components/search/index.cjs +45 -0
  207. package/components/search/index.d.ts +7 -0
  208. package/{lib → components}/search/index.js +3 -4
  209. package/components/search/search.d.ts +27 -0
  210. package/{lib/sized-mixin-BSYHt8nT.cjs → components/sized-mixin-BAI6NiE2.cjs} +1 -1
  211. package/{lib/sized-mixin-Dl0KoEcV.js → components/sized-mixin-DcJTTohI.js} +1 -1
  212. package/components/slider/index.cjs +18 -0
  213. package/components/slider/index.d.ts +7 -0
  214. package/{lib → components}/slider/index.js +5 -6
  215. package/components/slider/slider.d.ts +24 -0
  216. package/{lib/state-BAO-13Bs.js → components/state-D8vot9IB.js} +1 -1
  217. package/{lib/state-DReJ3hB6.cjs → components/state-WWHLNMRG.cjs} +1 -1
  218. package/{lib/streaming-listener-DLo0wkMc.js → components/streaming-listener-BbmNyKWO.js} +2 -2
  219. package/components/streaming-listener-C2A7ZJZP.cjs +18 -0
  220. package/{lib/style-map-BqvQDFJt.js → components/style-map-CoBJRbvu.js} +1 -1
  221. package/{lib/style-map-BjBGQ_u3.cjs → components/style-map-DH0jkl7s.cjs} +2 -2
  222. package/components/swatch/index.cjs +49 -0
  223. package/components/swatch/index.d.ts +10 -0
  224. package/{lib → components}/swatch/index.js +9 -10
  225. package/components/swatch/swatch-group.d.ts +41 -0
  226. package/components/swatch/swatch.d.ts +40 -0
  227. package/components/switch/index.cjs +22 -0
  228. package/components/switch/index.d.ts +7 -0
  229. package/{lib → components}/switch/index.js +6 -7
  230. package/components/switch/switch.d.ts +27 -0
  231. package/components/tags/index.cjs +32 -0
  232. package/components/tags/index.d.ts +10 -0
  233. package/{lib → components}/tags/index.js +17 -18
  234. package/components/tags/tag.d.ts +29 -0
  235. package/components/tags/tags.d.ts +28 -0
  236. package/components/text-field/help-text-manager.d.ts +19 -0
  237. package/components/text-field/help-text.d.ts +20 -0
  238. package/components/text-field/index.cjs +21 -0
  239. package/components/text-field/index.d.ts +14 -0
  240. package/{lib → components}/text-field/index.js +9 -9
  241. package/components/text-field/manage-help-text.d.ts +13 -0
  242. package/components/text-field/text-field.d.ts +142 -0
  243. package/{lib/text-field-DPk332j9.js → components/text-field-05QNK_Lj.js} +28 -30
  244. package/{lib/text-field-C6Aa7XOb.cjs → components/text-field-BU7yxiOR.cjs} +15 -15
  245. package/components/toast/index.cjs +51 -0
  246. package/components/toast/index.d.ts +7 -0
  247. package/{lib → components}/toast/index.js +2 -3
  248. package/components/toast/toast.d.ts +77 -0
  249. package/components/tooltip/index.cjs +45 -0
  250. package/components/tooltip/index.d.ts +8 -0
  251. package/{lib → components}/tooltip/index.js +10 -11
  252. package/components/tooltip/tooltip-directive.d.ts +5 -0
  253. package/components/tooltip/tooltip.d.ts +55 -0
  254. package/components/unit-input/index.cjs +43 -0
  255. package/components/unit-input/index.d.ts +7 -0
  256. package/{lib → components}/unit-input/index.js +5 -6
  257. package/components/unit-input/unit-input.d.ts +33 -0
  258. package/index.d.ts +39 -0
  259. package/package.json +139 -101
  260. package/utils/base.d.ts +16 -0
  261. package/utils/condition-attribute-with-id.d.ts +2 -0
  262. package/utils/first-focusable-in.d.ts +3 -0
  263. package/utils/focus-visible.d.ts +29 -0
  264. package/utils/focusable-selectors.d.ts +2 -0
  265. package/utils/focusable.d.ts +58 -0
  266. package/utils/get-css-variable.d.ts +1 -0
  267. package/utils/get-label-from-slot.d.ts +1 -0
  268. package/utils/like-anchor.d.ts +23 -0
  269. package/utils/observe-slot-presence.d.ts +12 -0
  270. package/utils/observe-slot-text.d.ts +11 -0
  271. package/utils/platform.d.ts +10 -0
  272. package/utils/random-id.d.ts +1 -0
  273. package/utils/reactive-controllers/color.d.ts +54 -0
  274. package/utils/reactive-controllers/dependency-manger.d.ts +26 -0
  275. package/utils/reactive-controllers/element-resolution.d.ts +23 -0
  276. package/utils/reactive-controllers/focus-group.d.ts +62 -0
  277. package/utils/reactive-controllers/language-resolution.d.ts +11 -0
  278. package/utils/reactive-controllers/match-media.d.ts +13 -0
  279. package/utils/reactive-controllers/pending-state.d.ts +41 -0
  280. package/utils/reactive-controllers/roving-tabindex.d.ts +19 -0
  281. package/utils/reparent-child.d.ts +4 -0
  282. package/utils/sized-mixin.d.ts +17 -0
  283. package/utils/streaming-listener.d.ts +48 -0
  284. package/lib/accordion/index.cjs +0 -43
  285. package/lib/action-bar/index.cjs +0 -39
  286. package/lib/action-button/index.cjs +0 -24
  287. package/lib/action-group-D4MxBrq8.cjs +0 -20
  288. package/lib/avatar/index.cjs +0 -24
  289. package/lib/base-BCmA9Wxv.cjs +0 -30
  290. package/lib/base-nYalvNMy.js +0 -390
  291. package/lib/button/index.cjs +0 -20
  292. package/lib/button-base-B0iB_JTv.cjs +0 -25
  293. package/lib/button-group/index.cjs +0 -18
  294. package/lib/checkbox/index.cjs +0 -25
  295. package/lib/clear-button-D0djuaLb.cjs +0 -18
  296. package/lib/close-button-BrfeZvjk.cjs +0 -18
  297. package/lib/color-area/index.cjs +0 -80
  298. package/lib/color-field/index.cjs +0 -23
  299. package/lib/color-handle/index.cjs +0 -24
  300. package/lib/color-loupe-BICpNqFs.cjs +0 -56
  301. package/lib/color-menu/index.cjs +0 -86
  302. package/lib/color-picker/index.cjs +0 -48
  303. package/lib/color-slider/index.cjs +0 -57
  304. package/lib/divider/index.cjs +0 -18
  305. package/lib/field-group-TUFvhJkk.cjs +0 -23
  306. package/lib/field-label-BrJaeORz.cjs +0 -25
  307. package/lib/icon/index.cjs +0 -18
  308. package/lib/index.cjs +0 -18
  309. package/lib/index.js +0 -133
  310. package/lib/infield-button/index.cjs +0 -22
  311. package/lib/label/index.cjs +0 -18
  312. package/lib/legend-position/index.cjs +0 -27
  313. package/lib/lit-html-B3ugcwD9.js +0 -248
  314. package/lib/lit-html-p4Oxv2-5.cjs +0 -24
  315. package/lib/multi-language-field/index.cjs +0 -39
  316. package/lib/number-field/index.cjs +0 -57
  317. package/lib/overlay/index.cjs +0 -73
  318. package/lib/overlay-DScraBAi.cjs +0 -47
  319. package/lib/picker--2OCYWnV.js +0 -657
  320. package/lib/picker-B9W7Haf4.cjs +0 -127
  321. package/lib/popover-CVbjhSnx.cjs +0 -30
  322. package/lib/progress-circle-CiJoS8J7.cjs +0 -33
  323. package/lib/radio/index.cjs +0 -22
  324. package/lib/search/index.cjs +0 -45
  325. package/lib/slider/index.cjs +0 -18
  326. package/lib/streaming-listener-Bw4jE33f.cjs +0 -18
  327. package/lib/swatch/index.cjs +0 -49
  328. package/lib/switch/index.cjs +0 -22
  329. package/lib/tags/index.cjs +0 -32
  330. package/lib/text-field/index.cjs +0 -21
  331. package/lib/toast/index.cjs +0 -51
  332. package/lib/tooltip/index.cjs +0 -45
  333. package/lib/unit-input/index.cjs +0 -43
  334. /package/{lib → components}/base-BjTwmyRF.cjs +0 -0
  335. /package/{lib → components}/base-D76d76ww.js +0 -0
  336. /package/{lib → components}/color-Bg3tYsAQ.js +0 -0
  337. /package/{lib → components}/color-DphK4hwx.cjs +0 -0
  338. /package/{lib → components}/condition-attribute-with-id-DrQYZzFS.cjs +0 -0
  339. /package/{lib → components}/condition-attribute-with-id-Dv4lSRbe.js +0 -0
  340. /package/{lib → components}/dependency-manger-C5HCkMMB.cjs +0 -0
  341. /package/{lib → components}/dependency-manger-CEXvGQUV.js +0 -0
  342. /package/{lib → components}/directive-C7oCP5Bh.cjs +0 -0
  343. /package/{lib → components}/directive-oAbCiebi.js +0 -0
  344. /package/{lib → components}/divider.module-CXMNveQc.cjs +0 -0
  345. /package/{lib → components}/divider.module-DwOuLGU3.js +0 -0
  346. /package/{lib → components}/element-resolution-BvRLGqIU.cjs +0 -0
  347. /package/{lib → components}/element-resolution-FCUT-wql.js +0 -0
  348. /package/{lib → components}/focus-group-DHeTq18L.js +0 -0
  349. /package/{lib → components}/focus-group-DnxZUBhQ.cjs +0 -0
  350. /package/{lib → components}/focus-visible-B0P9aY_G.cjs +0 -0
  351. /package/{lib → components}/focus-visible-DBlJGoEW.js +0 -0
  352. /package/{lib → components}/focusable-selectors-B4YgbghQ.js +0 -0
  353. /package/{lib → components}/focusable-selectors-BgFlyFcY.cjs +0 -0
  354. /package/{lib → components}/index-C1chwzNp.js +0 -0
  355. /package/{lib → components}/index-DCKCHDTt.cjs +0 -0
  356. /package/{lib → components}/mutation-controller-DH7YOCyj.js +0 -0
  357. /package/{lib → components}/mutation-controller-DkOMCW-c.cjs +0 -0
  358. /package/{lib → components}/platform-CQzYNWKq.cjs +0 -0
  359. /package/{lib → components}/platform-DQYMG7JI.js +0 -0
  360. /package/{lib → components}/query-BL-TJj7K.cjs +0 -0
  361. /package/{lib → components}/query-D_KR_GUc.js +0 -0
  362. /package/{lib → components}/query-assigned-elements-DjfhL1cl.js +0 -0
  363. /package/{lib → components}/query-assigned-elements-DsKsfk7G.cjs +0 -0
  364. /package/{lib → components}/query-assigned-nodes-BcKWmGzy.cjs +0 -0
  365. /package/{lib → components}/query-assigned-nodes-C76XVPWY.js +0 -0
  366. /package/{lib → components}/random-id-ByCz1xaq.js +0 -0
  367. /package/{lib → components}/random-id-CqvckpWe.cjs +0 -0
  368. /package/{lib → components}/roving-tabindex-By_fCy_e.cjs +0 -0
  369. /package/{lib → components}/roving-tabindex-DOg4z6ZU.js +0 -0
  370. /package/{lib → components}/slottable-request-event-BfUUt1Mh.cjs +0 -0
  371. /package/{lib → components}/slottable-request-event-DggLA4Rx.js +0 -0
  372. /package/{lib → components}/when-CDK1Tt5Y.js +0 -0
  373. /package/{lib → components}/when-CDZyJPvd.cjs +0 -0
@@ -0,0 +1,51 @@
1
+ /*! * Lucero - The design system for Luzmo.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ * This license allows users with a current active Luzmo account to use Lucero.
7
+ * This license terminates automatically if a user no longer has an active Luzmo account.
8
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ * SOFTWARE.
17
+ * */
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../base-rtxi7uaR.cjs");require("../close-button-CcD-aVqh.cjs");const d=require("../focus-visible-B0P9aY_G.cjs"),u=require("@luzmo/icons"),v="@media (forced-colors: active){:host{--highcontrast-toast-border-color: ButtonText;border:var(--luzmo-toast-border-width, var(--toast-border-width)) solid var(--highcontrast-toast-border-color, transparent)}}:host{box-sizing:border-box;min-block-size:var(--luzmo-toast-block-size, var(--toast-block-size));max-inline-size:var(--luzmo-toast-max-inline-size, var(--toast-max-inline-size));border-radius:var(--luzmo-toast-corner-radius, var(--toast-corner-radius));font-size:var(--luzmo-toast-font-size, var(--toast-font-size));font-weight:var(--luzmo-toast-font-weight, var(--toast-font-weight));-webkit-font-smoothing:antialiased;background-color:var(--highcontrast-toast-background-color-default, var(--luzmo-toast-background-color-default, var(--toast-background-color-default)));color:var(--highcontrast-toast-background-color-default, var(--luzmo-toast-background-color-default, var(--toast-background-color-default)));overflow-wrap:anywhere;flex-direction:row;align-items:stretch;padding-inline-start:var(--luzmo-toast-spacing-start-edge-to-text-and-icon, var(--toast-spacing-start-edge-to-text-and-icon));display:inline-flex}:host([variant=negative]){background-color:var(--highcontrast-toast-negative-background-color-default, var(--luzmo-toast-negative-background-color-default, var(--toast-negative-background-color-default)))}:host([variant=negative]),:host([variant=negative]) .closeButton:focus-visible:not(:active){color:var(--highcontrast-toast-negative-background-color-default, var(--luzmo-toast-negative-background-color-default, var(--toast-negative-background-color-default)))}:host([variant=info]){background-color:var(--highcontrast-toast-informative-background-color-default, var(--luzmo-toast-informative-background-color-default, var(--toast-informative-background-color-default)))}:host([variant=info]),:host([variant=info]) .closeButton:focus-visible:not(:active){color:var(--highcontrast-toast-informative-background-color-default, var(--luzmo-toast-informative-background-color-default, var(--toast-informative-background-color-default)))}:host([variant=positive]){background-color:var(--highcontrast-toast-positive-background-color-default, var(--luzmo-toast-positive-background-color-default, var(--toast-positive-background-color-default)))}:host([variant=positive]),:host([variant=positive]) .closeButton:focus-visible:not(:active){color:var(--highcontrast-toast-positive-background-color-default, var(--luzmo-toast-positive-background-color-default, var(--toast-positive-background-color-default)))}.type{flex-grow:0;flex-shrink:0;margin-block-start:var(--luzmo-toast-spacing-top-edge-to-icon, var(--toast-spacing-top-edge-to-icon));margin-inline-start:0;margin-inline-end:var(--luzmo-toast-spacing-icon-to-text, var(--toast-spacing-icon-to-text))}.content,.type{color:var(--highcontrast-toast-text-and-icon-color, var(--luzmo-toast-text-and-icon-color, var(--toast-text-and-icon-color)))}.content{box-sizing:border-box;line-height:var(--luzmo-toast-line-height, var(--toast-line-height));text-align:start;flex:auto;padding-block-start:calc(var(--luzmo-toast-spacing-top-edge-to-text, var(--toast-spacing-top-edge-to-text)) - var(--luzmo-toast-spacing-block-start, var(--toast-spacing-block-start)));padding-block-end:calc(var(--luzmo-toast-spacing-bottom-edge-to-text, var(--toast-spacing-bottom-edge-to-text)) - var(--luzmo-toast-spacing-block-end, var(--toast-spacing-block-end)));padding-inline-start:0;padding-inline-end:var(--luzmo-toast-spacing-text-to-action-button-horizontal, var(--toast-spacing-text-to-action-button-horizontal));display:inline-block}.content:lang(ja),.content:lang(ko),.content:lang(zh){line-height:var(--luzmo-toast-line-height-cjk, var(--toast-line-height-cjk))}.buttons{border-inline-start-color:var(--luzmo-toast-divider-color, var(--toast-divider-color));flex:none;align-items:flex-start;margin-block-start:var(--luzmo-toast-spacing-top-edge-to-divider, var(--toast-spacing-top-edge-to-divider));margin-block-end:var(--luzmo-toast-spacing-bottom-edge-to-divider, var(--toast-spacing-bottom-edge-to-divider));padding-inline-end:var(--luzmo-toast-spacing-close-button, var(--toast-spacing-close-button));display:flex}.buttons .luzmo-CloseButton{align-self:flex-start}.body{flex-wrap:wrap;flex:auto;align-self:center;align-items:center;padding-block-start:var(--luzmo-toast-spacing-block-start, var(--toast-spacing-block-start));padding-block-end:var(--luzmo-toast-spacing-block-end, var(--toast-spacing-block-end));display:flex}.body ::slotted([slot=action]){margin-inline-start:auto;margin-inline-end:var(--luzmo-toast-spacing-text-and-action-button-to-divider, var(--toast-spacing-text-and-action-button-to-divider))}.body ::slotted([slot=action]:dir(rtl)),:host([dir=rtl]) .body ::slotted([slot=action]){margin-inline-end:var(--luzmo-toast-spacing-text-and-action-button-to-divider, var(--toast-spacing-text-and-action-button-to-divider))}.body+.buttons{border-inline-start-style:solid;border-inline-start-width:1px;padding-inline-start:var(--luzmo-toast-spacing-close-button, var(--toast-spacing-close-button))}:host{--toast-background-color-default: rgb(80, 80, 80);--toast-font-weight: var(--luzmo-font-weight);--toast-font-size: var(--luzmo-font-size);--toast-corner-radius: var(--luzmo-border-radius);--toast-block-size: var(--luzmo-component-height);--toast-max-inline-size: 360px;--toast-border-width: var(--luzmo-border-width);--toast-line-height: var(--luzmo-line-height);--toast-line-height-cjk: 1.5;--toast-spacing-icon-to-text: calc( var(--luzmo-spacing-2) + var(--luzmo-spacing-1) );--toast-spacing-start-edge-to-text-and-icon: var(--luzmo-spacing-5);--toast-spacing-text-and-action-button-to-divider: var(--luzmo-spacing-5);--toast-spacing-top-edge-to-divider: var(--luzmo-spacing-3);--toast-spacing-bottom-edge-to-divider: var(--luzmo-spacing-3);--toast-spacing-top-edge-to-icon: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--toast-spacing-text-to-action-button-horizontal: var(--luzmo-spacing-5);--toast-spacing-close-button: var(--luzmo-spacing-3);--toast-spacing-block-start: var(--luzmo-spacing-3);--toast-spacing-block-end: var(--luzmo-spacing-3);--toast-spacing-top-edge-to-text: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--toast-spacing-bottom-edge-to-text: calc( var(--luzmo-spacing-4) + var(--luzmo-spacing-1) );--toast-negative-background-color-default: var(--luzmo-color-negative);--toast-positive-background-color-default: var(--luzmo-color-positive);--toast-informative-background-color-default: var(--luzmo-color-informative);--toast-text-and-icon-color: rgb(255, 255, 255);--toast-divider-color: rgba(255, 255, 255, .2)}:host{--overlay-animation-distance: var(--spacing-100);--overlay-animation-duration: var(--animation-duration-100);opacity:0;pointer-events:none;transition:transform var(--overlay-animation-duration) ease-in-out,opacity var(--overlay-animation-duration) ease-in-out,visibility 0s linear var(--overlay-animation-duration);visibility:hidden}:host([open]){opacity:1;pointer-events:auto;transition-delay:0s;visibility:visible}:host([variant=error]),:host([variant=warning]){background-color:var(--highcontrast-toast-negative-background-color-default, var(--luzmo-toast-negative-background-color-default, var(--toast-negative-background-color-default)))}:host([variant=negative]),:host([variant=negative]) .closeButton:focus-visible:not(:active),:host([variant=warning]),:host([variant=warning]) .closeButton:focus-visible:not(:active){color:var(--highcontrast-toast-negative-background-color-default, var(--luzmo-toast-negative-background-color-default, var(--toast-negative-background-color-default)))}";var g=Object.defineProperty,h=Object.getOwnPropertyDescriptor,s=(r,t,a,n)=>{for(var i=n>1?void 0:n?h(t,a):t,l=r.length-1,c;l>=0;l--)(c=r[l])&&(i=(n?c(t,a,i):c(i))||i);return n&&i&&g(t,a,i),i};const m=["negative","positive","info"];class e extends d.FocusVisiblePolyfillMixin(o.LuzmoElement){constructor(){super(...arguments),this.open=!1,this._timeout=null,this._variant="",this.countdownStart=0,this.nextCount=-1,this.doCountdown=t=>{this.countdownStart||(this.countdownStart=performance.now()),t-this.countdownStart>this._timeout?(this.shouldClose(),this.countdownStart=0):this.countdown()},this.countdown=()=>{cancelAnimationFrame(this.nextCount),this.nextCount=requestAnimationFrame(this.doCountdown)},this.holdCountdown=()=>{this.stopCountdown(),this.addEventListener("focusout",this.resumeCountdown)},this.resumeCountdown=()=>{this.removeEventListener("focusout",this.holdCountdown),this.countdown()}}static get styles(){return[o.r(v)]}set timeout(t){const n=typeof t!==null&&t>0?Math.max(6e3,t):null,i=this.timeout;n&&this.countdownStart&&(this.countdownStart=performance.now()),this._timeout=n,this.requestUpdate("timeout",i)}get timeout(){return this._timeout}set variant(t){if(t===this.variant)return;const a=this.variant;m.includes(t)?(this.setAttribute("variant",t),this._variant=t):(this.removeAttribute("variant"),this._variant=""),this.requestUpdate("variant",a)}get variant(){return this._variant}renderIcon(t,a){switch(t){case"info":return o.x`
19
+ <luzmo-icon
20
+ .icon=${u.luzmoInfoCircleOutline}
21
+ label=${a||"Information"}
22
+ class="type"
23
+ ></luzmo-icon>
24
+ `;case"negative":return o.x`
25
+ <luzmo-icon
26
+ .icon=${u.luzmoAlertOutline}
27
+ label=${a||"Error"}
28
+ class="type"
29
+ ></luzmo-icon>
30
+ `;case"positive":return o.x`
31
+ <luzmo-icon
32
+ .icon=${u.luzmoCheckCircleOutline}
33
+ label=${a||"Success"}
34
+ class="type"
35
+ ></luzmo-icon>
36
+ `;default:return o.x``}}startCountdown(){this.countdown(),this.addEventListener("focusin",this.holdCountdown)}stopCountdown(){cancelAnimationFrame(this.nextCount),this.countdownStart=0}shouldClose(){this.dispatchEvent(new CustomEvent("close",{composed:!0,bubbles:!0,cancelable:!0}))&&this.close()}close(){this.open=!1}render(){return o.x`
37
+ ${this.renderIcon(this.variant,this.iconLabel)}
38
+ <div class="body" role="alert">
39
+ <div class="content">
40
+ <slot></slot>
41
+ </div>
42
+ <slot name="action"></slot>
43
+ </div>
44
+ <div class="buttons">
45
+ <luzmo-close-button
46
+ @click=${this.shouldClose}
47
+ label="Close"
48
+ static-color="white"
49
+ ></luzmo-close-button>
50
+ </div>
51
+ `}updated(t){super.updated(t),t.has("open")&&(this.open?this.timeout&&this.startCountdown():this.timeout&&this.stopCountdown()),t.has("timeout")&&(this.timeout!==null&&this.open?this.startCountdown():this.stopCountdown())}}s([o.n({type:Boolean,reflect:!0})],e.prototype,"open",2);s([o.n({type:Number})],e.prototype,"timeout",1);s([o.n({type:String})],e.prototype,"variant",1);s([o.n({type:String,attribute:"icon-label"})],e.prototype,"iconLabel",2);customElements.get("luzmo-toast")||customElements.define("luzmo-toast",e);exports.LuzmoToast=e;
@@ -0,0 +1,7 @@
1
+ import { LuzmoToast } from './toast';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-toast': LuzmoToast;
5
+ }
6
+ }
7
+ export { LuzmoToast } from './toast';
@@ -15,9 +15,8 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { L as m, n as l } from "../base-nYalvNMy.js";
19
- import { unsafeCSS as g, html as i } from "lit";
20
- import "../close-button-CGISEF33.js";
18
+ import { L as m, r as g, x as i, n as l } from "../base-CxUap9HL.js";
19
+ import "../close-button-CzpdWCWI.js";
21
20
  import { F as v } from "../focus-visible-DBlJGoEW.js";
22
21
  import { luzmoCheckCircleOutline as p, luzmoAlertOutline as z, luzmoInfoCircleOutline as b } from "@luzmo/icons";
23
22
  const d = () => {
@@ -0,0 +1,77 @@
1
+ import { CSSResultArray, PropertyValues, TemplateResult } from 'lit';
2
+ import { LuzmoElement } from '../../utils/base';
3
+ import '../button/close-button';
4
+ export declare const toastVariants: ToastVariants[];
5
+ export type ToastVariants = 'negative' | 'positive' | 'info' | '';
6
+ declare const LuzmoToast_base: typeof LuzmoElement;
7
+ /**
8
+ * @element luzmo-toast
9
+ *
10
+ * @slot - The toast content
11
+ * @slot action - button element surfacing an action in the Toast
12
+ *
13
+ * @fires close - Announces that the Toast has been closed by the user or by its timeout.
14
+ */
15
+ export declare class LuzmoToast extends LuzmoToast_base {
16
+ static get styles(): CSSResultArray;
17
+ /**
18
+ * The `open` property indicates whether the toast is visible or hidden.
19
+ *
20
+ * @param {Boolean} open
21
+ */
22
+ open: boolean;
23
+ /**
24
+ * When a timeout is provided, it represents the number of milliseconds from when
25
+ * the Toast was placed on the page before it will automatically dismiss itself.
26
+ *
27
+ * Accessibility concerns require that a Toast is available for at least 6000ms
28
+ * before being dismissed, so any timeout of less than 6000ms will be raised to
29
+ * that baseline.
30
+ *
31
+ * It is suggested that messages longer than 120 words should receive an additional
32
+ * 1000ms in their timeout for each additional 120 words in the message.
33
+ *
34
+ * For example, a message with 240 words should have a timeout of 7000ms,
35
+ * and a message with 360 words should have a timeout of 8000ms.
36
+ *
37
+ * @param timeout
38
+ * @default null
39
+ */
40
+ set timeout(timeout: number | null);
41
+ get timeout(): number | null;
42
+ private _timeout;
43
+ /**
44
+ * The variant applies specific styling when set to `negative`, `positive`, `info`, `error`, or `warning`.
45
+ *
46
+ * The variants `error` and `warning` are deprecated and should be replaced with `negative`.
47
+ *
48
+ * `variant` attribute is removed when not matching one of the above.
49
+ *
50
+ * @param variant
51
+ */
52
+ set variant(variant: ToastVariants);
53
+ get variant(): ToastVariants;
54
+ private _variant;
55
+ /**
56
+ * The `iconLabel` property is used to set the `label` attribute on the icon element. This is used to provide a text alternative for the icon to ensure accessibility.
57
+ *
58
+ * If the `iconLabel` property is not set, the icon will use the `variant` to dynamically set the `label`.
59
+ *
60
+ * @param {String} iconLabel
61
+ */
62
+ iconLabel?: string;
63
+ private renderIcon;
64
+ private countdownStart;
65
+ private nextCount;
66
+ private doCountdown;
67
+ private countdown;
68
+ private holdCountdown;
69
+ private resumeCountdown;
70
+ private startCountdown;
71
+ private stopCountdown;
72
+ private shouldClose;
73
+ close(): void;
74
+ protected render(): TemplateResult;
75
+ protected updated(changes: PropertyValues): void;
76
+ }
77
+ export {};
@@ -0,0 +1,45 @@
1
+ /*! * Lucero - The design system for Luzmo.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ * This license allows users with a current active Luzmo account to use Lucero.
7
+ * This license terminates automatically if a user no longer has an active Luzmo account.
8
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ * SOFTWARE.
17
+ * */
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../base-rtxi7uaR.cjs"),m=require("../query-BL-TJj7K.cjs"),u=require("../if-defined-C-8FyBSN.cjs"),c=require("../focusable-selectors-BgFlyFcY.cjs"),h=require("../dependency-manger-C5HCkMMB.cjs"),z=require("../sized-mixin-BAI6NiE2.cjs"),d="#tooltip{pointer-events:none;visibility:hidden;opacity:0;transition:transform .13s ease-in-out,opacity .13s ease-in-out,visibility 0s linear .13s;transition:transform var(--luzmo-overlay-animation-duration, .13s) ease-in-out,opacity var(--luzmo-overlay-animation-duration, .13s) ease-in-out,visibility 0s linear var(--luzmo-overlay-animation-duration, .13s)}:host([open]) #tooltip{pointer-events:auto;visibility:visible;opacity:1;transition-delay:0s;transition-delay:var(--luzmo-overlay-animation-duration-opened, 0s)}@media (forced-colors: active){#tooltip{border:1px solid rgba(0,0,0,0)}#tip{--highcontrast-tooltip-background-color-default: CanvasText;--highcontrast-tooltip-background-color-informative: CanvasText;--highcontrast-tooltip-background-color-positive: CanvasText;--highcontrast-tooltip-background-color-negative: CanvasText;forced-color-adjust:none}}#tooltip{box-sizing:border-box;vertical-align:top;inline-size:auto;padding-inline:var(--luzmo-tooltip-spacing-inline, .688rem);border-radius:var(--luzmo-tooltip-border-radius, .313rem);block-size:auto;min-block-size:var(--luzmo-tooltip-height, 1.875rem);max-inline-size:var(--luzmo-tooltip-max-inline-size, 12.5rem);background-color:var(--highcontrast-tooltip-background-color-default, var(--luzmo-tooltip-background-color-default, rgb(109, 109, 109)));color:var(--luzmo-tooltip-content-color, white);font-size:var(--luzmo-tooltip-font-size, var(--tooltip-font-size, .938rem));font-weight:var(--luzmo-tooltip-font-weight, 400);line-height:var(--luzmo-tooltip-line-height, 1.3);word-break:break-word;-webkit-font-smoothing:antialiased;cursor:default;-webkit-user-select:none;user-select:none;flex-direction:row;align-items:center;display:inline-flex;position:relative}:host(:lang(ja)) #tooltip,:host(:lang(ko)) #tooltip,:host(:lang(zh)) #tooltip{line-height:var(--luzmo-tooltip-cjk-line-height, 1.5)}#tooltip p{margin:0}:host([variant=info]) #tooltip{background-color:var(--highcontrast-tooltip-background-color-informative, var(--luzmo-tooltip-background-color-informative, rgb(2, 101, 220)))}:host([variant=positive]) #tooltip{background-color:var(--highcontrast-tooltip-background-color-positive, var(--luzmo-tooltip-background-color-positive, rgb(0, 122, 77)))}:host([variant=negative]) #tooltip{background-color:var(--highcontrast-tooltip-background-color-negative, var(--luzmo-tooltip-background-color-negative, rgb(211, 21, 16)))}#tip{block-size:var(--luzmo-tooltip-tip-square-size, .625rem);inline-size:var(--luzmo-tooltip-tip-square-size, .625rem);inset-block-start:100%;background-color:var(--highcontrast-tooltip-background-color-default, var(--luzmo-tooltip-background-color-default, rgb(109, 109, 109)));clip-path:polygon(0 calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset, .5px)),50% var(--luzmo-tooltip-tip-height-percentage, 50%),100% calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset, .5px)));position:absolute;left:50%;transform:translate(-50%)}:host([variant=info]) #tooltip #tip{background-color:var(--highcontrast-tooltip-background-color-informative, var(--luzmo-tooltip-background-color-informative, rgb(2, 101, 220)))}:host([variant=positive]) #tooltip #tip{background-color:var(--highcontrast-tooltip-background-color-positive, var(--luzmo-tooltip-background-color-positive, rgb(0, 122, 77)))}:host([variant=negative]) #tooltip #tip{background-color:var(--highcontrast-tooltip-background-color-negative, var(--luzmo-tooltip-background-color-negative, rgb(211, 21, 16)))}:host([placement*=top]) #tooltip #tip,.luzmo-Tooltip--top-end #tip,.luzmo-Tooltip--top-left #tip,.luzmo-Tooltip--top-right #tip,.luzmo-Tooltip--top-start #tip{inset-block-start:100%}:host([placement*=bottom]) #tooltip #tip,.luzmo-Tooltip--bottom-end #tip,.luzmo-Tooltip--bottom-left #tip,.luzmo-Tooltip--bottom-right #tip,.luzmo-Tooltip--bottom-start #tip{clip-path:polygon(50% calc(100% - var(--luzmo-tooltip-tip-height-percentage, 50%)),0 calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset, .5px)),100% calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset, .5px)));inset-block:auto 100%}.luzmo-Tooltip--bottom-end #tip,.luzmo-Tooltip--bottom-left #tip,.luzmo-Tooltip--bottom-right #tip,.luzmo-Tooltip--bottom-start #tip,.luzmo-Tooltip--top-end #tip,.luzmo-Tooltip--top-left #tip,.luzmo-Tooltip--top-right #tip,.luzmo-Tooltip--top-start #tip{transform:none}.luzmo-Tooltip--bottom-left #tip,.luzmo-Tooltip--top-left #tip{inset-inline-start:var(--luzmo-tooltip-pointer-corner-spacing, .313rem)}.luzmo-Tooltip--bottom-right #tip,.luzmo-Tooltip--top-right #tip{inset-inline:auto var(--luzmo-tooltip-pointer-corner-spacing, .313rem)}.luzmo-Tooltip--bottom-start #tip,.luzmo-Tooltip--top-start #tip{inset-inline:var(--luzmo-tooltip-pointer-corner-spacing, .313rem) auto}.luzmo-Tooltip--bottom-start #tip:dir(rtl),.luzmo-Tooltip--top-start #tip:dir(rtl),:host([dir=rtl]) .luzmo-Tooltip--bottom-start #tip,:host([dir=rtl]) .luzmo-Tooltip--top-start #tip{right:var(--luzmo-tooltip-pointer-corner-spacing, .313rem);left:auto}.luzmo-Tooltip--bottom-end #tip,.luzmo-Tooltip--top-end #tip{inset-inline:auto var(--luzmo-tooltip-pointer-corner-spacing, .313rem)}.luzmo-Tooltip--bottom-end #tip:dir(rtl),.luzmo-Tooltip--top-end #tip:dir(rtl),:host([dir=rtl]) .luzmo-Tooltip--bottom-end #tip,:host([dir=rtl]) .luzmo-Tooltip--top-end #tip{left:var(--luzmo-tooltip-pointer-corner-spacing, .313rem);right:auto}.luzmo-Tooltip--end #tip,.luzmo-Tooltip--end-bottom #tip,.luzmo-Tooltip--end-top #tip,:host([placement*=left]) #tooltip #tip,.luzmo-Tooltip--left-bottom #tip,.luzmo-Tooltip--left-top #tip,:host([placement*=right]) #tooltip #tip,.luzmo-Tooltip--right-bottom #tip,.luzmo-Tooltip--right-top #tip,.luzmo-Tooltip--start #tip,.luzmo-Tooltip--start-bottom #tip,.luzmo-Tooltip--start-top #tip{inset-block-start:50%;transform:translateY(-50%)}.luzmo-Tooltip--end-bottom #tip,.luzmo-Tooltip--end-top #tip,.luzmo-Tooltip--left-bottom #tip,.luzmo-Tooltip--left-top #tip,.luzmo-Tooltip--right-bottom #tip,.luzmo-Tooltip--right-top #tip,.luzmo-Tooltip--start-bottom #tip,.luzmo-Tooltip--start-top #tip{inset-block-start:auto;transform:none}.luzmo-Tooltip--end #tip,.luzmo-Tooltip--end-bottom #tip,.luzmo-Tooltip--end-top #tip,:host([placement*=right]) #tooltip #tip,.luzmo-Tooltip--right-bottom #tip,.luzmo-Tooltip--right-top #tip{clip-path:polygon(calc(100% - var(--luzmo-tooltip-tip-height-percentage, 50%)) 50%,calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset, .5px)) 100%,calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset, .5px)) 0);inset-inline:auto 100%}:host([placement*=left]) #tooltip #tip,.luzmo-Tooltip--left-bottom #tip,.luzmo-Tooltip--left-top #tip,.luzmo-Tooltip--start #tip,.luzmo-Tooltip--start-bottom #tip,.luzmo-Tooltip--start-top #tip{clip-path:polygon(calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset, .5px)) 0,calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset, .5px)) 100%,var(--luzmo-tooltip-tip-height-percentage, 50%) 50%);inset-inline-start:100%}.luzmo-Tooltip--end-top #tip,.luzmo-Tooltip--left-top #tip,.luzmo-Tooltip--right-top #tip,.luzmo-Tooltip--start-top #tip{inset-block-start:var(--luzmo-tooltip-pointer-corner-spacing, .313rem)}.luzmo-Tooltip--end-bottom #tip,.luzmo-Tooltip--left-bottom #tip,.luzmo-Tooltip--right-bottom #tip,.luzmo-Tooltip--start-bottom #tip{inset-block-end:var(--luzmo-tooltip-pointer-corner-spacing, .313rem)}.luzmo-Tooltip--end #tip:dir(rtl),.luzmo-Tooltip--end-bottom #tip:dir(rtl),.luzmo-Tooltip--end-top #tip:dir(rtl),:host([placement*=left]) #tooltip #tip:dir(rtl),.luzmo-Tooltip--left-bottom #tip:dir(rtl),.luzmo-Tooltip--left-top #tip:dir(rtl),:host([dir=rtl]) .luzmo-Tooltip--end #tip,:host([dir=rtl]) .luzmo-Tooltip--end-bottom #tip,:host([dir=rtl]) .luzmo-Tooltip--end-top #tip,:host([dir=rtl][placement*=left]) #tooltip #tip,:host([dir=rtl]) .luzmo-Tooltip--left-bottom #tip,:host([dir=rtl]) .luzmo-Tooltip--left-top #tip{clip-path:polygon(calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset, .5px)) 0,calc(0% - var(--luzmo-tooltip-tip-antialiasing-inset, .5px)) 100%,var(--luzmo-tooltip-tip-height-percentage, 50%) 50%);left:100%;right:auto}:host([placement*=right]) #tooltip #tip:dir(rtl),.luzmo-Tooltip--right-bottom #tip:dir(rtl),.luzmo-Tooltip--right-top #tip:dir(rtl),.luzmo-Tooltip--start #tip:dir(rtl),.luzmo-Tooltip--start-bottom #tip:dir(rtl),.luzmo-Tooltip--start-top #tip:dir(rtl),:host([dir=rtl][placement*=right]) #tooltip #tip,:host([dir=rtl]) .luzmo-Tooltip--right-bottom #tip,:host([dir=rtl]) .luzmo-Tooltip--right-top #tip,:host([dir=rtl]) .luzmo-Tooltip--start #tip,:host([dir=rtl]) .luzmo-Tooltip--start-bottom #tip,:host([dir=rtl]) .luzmo-Tooltip--start-top #tip{clip-path:polygon(var(--luzmo-tooltip-tip-height-percentage, 50%) 50%,calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset, .5px)) 100%,calc(100% + var(--luzmo-tooltip-tip-antialiasing-inset, .5px)) 0);left:auto;right:100%}::slotted([slot=icon]){inline-size:var(--luzmo-tooltip-icon-width, 1.125rem);block-size:var(--luzmo-tooltip-icon-height, 1.125rem);flex-shrink:0;align-self:flex-start;margin-block-start:var(--luzmo-tooltip-icon-spacing-block-start, .313rem);margin-inline-start:calc(var(--luzmo-tooltip-icon-spacing-inline-start, .563rem) - var(--luzmo-tooltip-spacing-inline, .688rem));margin-inline-end:var(--luzmo-tooltip-icon-spacing-inline-end, .563rem)}#label{line-height:var(--luzmo-tooltip-line-height, 1.3);margin-block-start:var(--luzmo-tooltip-spacing-block-start, .313rem);margin-block-end:var(--luzmo-tooltip-spacing-block-end, .375rem)}#tooltip,:host([placement*=top]) #tooltip,.luzmo-Tooltip--top-end,.luzmo-Tooltip--top-left,.luzmo-Tooltip--top-right,.luzmo-Tooltip--top-start{margin-block-end:calc(var(--luzmo-tooltip-tip-block-size, .313rem) + var(--luzmo-tooltip-margin, 0rem))}:host([open]) .luzmo-Tooltip--top-end,:host([open]) .luzmo-Tooltip--top-left,:host([open]) .luzmo-Tooltip--top-right,:host([open]) .luzmo-Tooltip--top-start,:host([placement*=top][open]) #tooltip,:host([open]) #tooltip{transform:translateY(calc(var(--luzmo-tooltip-animation-distance, .313rem) * -1))}:host([placement*=bottom]) #tooltip,.luzmo-Tooltip--bottom-end,.luzmo-Tooltip--bottom-left,.luzmo-Tooltip--bottom-right,.luzmo-Tooltip--bottom-start{margin-block-start:calc(var(--luzmo-tooltip-tip-block-size, .313rem) + var(--luzmo-tooltip-margin, 0rem))}:host([open]) .luzmo-Tooltip--bottom-end,:host([open]) .luzmo-Tooltip--bottom-left,:host([open]) .luzmo-Tooltip--bottom-right,:host([open]) .luzmo-Tooltip--bottom-start,:host([placement*=bottom][open]) #tooltip{transform:translateY(var(--luzmo-tooltip-animation-distance, .313rem))}:host([placement*=right]) #tooltip,.luzmo-Tooltip--right-bottom,.luzmo-Tooltip--right-top{margin-left:calc(var(--luzmo-tooltip-tip-block-size, .313rem) + var(--luzmo-tooltip-margin, 0rem))}:host([open]) .luzmo-Tooltip--right-bottom,:host([open]) .luzmo-Tooltip--right-top,:host([placement*=right][open]) #tooltip{transform:translate(var(--luzmo-tooltip-animation-distance, .313rem))}:host([placement*=left]) #tooltip,.luzmo-Tooltip--left-bottom,.luzmo-Tooltip--left-top{margin-right:calc(var(--luzmo-tooltip-tip-block-size, .313rem) + var(--luzmo-tooltip-margin, 0rem))}:host([open]) .luzmo-Tooltip--left-bottom,:host([open]) .luzmo-Tooltip--left-top,:host([placement*=left][open]) #tooltip{transform:translate(calc(var(--luzmo-tooltip-animation-distance, .313rem) * -1))}.luzmo-Tooltip--start,.luzmo-Tooltip--start-bottom,.luzmo-Tooltip--start-top{margin-inline-end:calc(var(--luzmo-tooltip-tip-block-size, .313rem) + var(--luzmo-tooltip-margin, 0rem))}:host([open]) .luzmo-Tooltip--start-bottom,:host([open]) .luzmo-Tooltip--start-top,:host([open]) .luzmo-Tooltip--start{transform:translate(calc(var(--luzmo-tooltip-animation-distance, .313rem) * -1))}:host([open]) .luzmo-Tooltip--start-bottom:dir(rtl),:host([open]) .luzmo-Tooltip--start-top:dir(rtl),:host([open]) .luzmo-Tooltip--start:dir(rtl),:host([dir=rtl][open]) .luzmo-Tooltip--start-bottom,:host([dir=rtl][open]) .luzmo-Tooltip--start-top,:host([dir=rtl][open]) .luzmo-Tooltip--start{transform:translate(var(--luzmo-tooltip-animation-distance, .313rem))}.luzmo-Tooltip--end,.luzmo-Tooltip--end-bottom,.luzmo-Tooltip--end-top{margin-inline-start:calc(var(--luzmo-tooltip-tip-block-size, .313rem) + var(--luzmo-tooltip-margin, 0rem))}:host([open]) .luzmo-Tooltip--end-bottom,:host([open]) .luzmo-Tooltip--end-top,:host([open]) .luzmo-Tooltip--end{transform:translate(var(--luzmo-tooltip-animation-distance, .313rem))}:host([open]) .luzmo-Tooltip--end-bottom:dir(rtl),:host([open]) .luzmo-Tooltip--end-top:dir(rtl),:host([open]) .luzmo-Tooltip--end:dir(rtl),:host([dir=rtl][open]) .luzmo-Tooltip--end-bottom,:host([dir=rtl][open]) .luzmo-Tooltip--end-top,:host([dir=rtl][open]) .luzmo-Tooltip--end{transform:translate(calc(var(--luzmo-tooltip-animation-distance, .313rem) * -1))}:host{--luzmo-tooltip-background-color-default: rgb(0, 0, 0);--tooltip-font-size: var(--luzmo-font-size)}:host([size=s]){--tooltip-font-size: var(--luzmo-font-size-s)}:host([size=m]){--tooltip-font-size: var(--luzmo-font-size-m)}:host([size=l]){--tooltip-font-size: var(--luzmo-font-size-l)}:host([size=xl]){--tooltip-font-size: var(--luzmo-font-size-xl)}:host{display:contents;white-space:initial}#tooltip{inline-size:max-content}#tip{clip-path:polygon(0 -5%,50% 50%,100% -5%);width:.625rem!important;height:.625rem!important}#tip[style]{transform:none!important}:host(:not([placement*=top])) #tooltip{margin-bottom:0}:host([placement*=top]) #tooltip #tip{inset-block-start:100%}:host([placement*=bottom]) #tooltip #tip{inset-block-end:100%;clip-path:polygon(50% 50%,0 105%,100% 105%);top:auto}:host([placement*=left]) #tooltip #tip,:host([placement*=right]) #tooltip #tip{inset-block-start:50%;transform:translateY(-50%)}:host([placement*=right]) #tooltip #tip{clip-path:polygon(50% 50%,105% 100%,105% 0);inset-inline:calc(var(--luzmo-tooltip-tip-block-size, .313rem) * -2) 100%}:host([placement*=left]) #tooltip #tip{clip-path:polygon(-5% 0,-5% 100%,50% 50%);inset-inline-start:100%}luzmo-overlay:not(:defined){display:none}";var g=Object.defineProperty,b=Object.getOwnPropertyDescriptor,r=(n,t,o,i)=>{for(var p=i>1?void 0:i?b(t,o):t,a=n.length-1,s;a>=0;a--)(s=n[a])&&(p=(i?s(t,o,p):s(p))||p);return i&&p&&g(t,o,p),p};class v extends HTMLElement{constructor(){super(),this._open=!1,this._placement="top",this.addEventListener("luzmo-opened",this.redispatchEvent),this.addEventListener("luzmo-closed",this.redispatchEvent)}redispatchEvent(t){t.stopPropagation(),this.tooltip.dispatchEvent(new CustomEvent(t.type,{bubbles:t.bubbles,composed:t.composed,detail:t.detail}))}get tooltip(){return this.getRootNode().host}static get observedAttributes(){return["open","placement"]}attributeChangedCallback(t,o,i){switch(t){case"open":{this.open=i!==null;break}case"placement":{this.placement=i;break}}}set open(t){this._open=t;const{tooltip:o}=this;o&&(o.open=t)}get open(){return this._open}set placement(t){this._placement=t;const{tooltip:o}=this;o&&(o.placement=t)}get placement(){return this._placement}get tipElement(){return this.tooltip.tipElement}}customElements.get("luzmo-tooltip-openable")||customElements.define("luzmo-tooltip-openable",v);class e extends z.SizedMixin(l.LuzmoElement,{defaultSize:"s"}){constructor(){super(...arguments),this.delayed=!1,this.dependencyManager=new h.DependencyManagerController(this),this.disabled=!1,this.selfManaged=!1,this.offset=0,this.open=!1,this._variant="",this.handleOpenOverlay=()=>{this.open=!0},this.handleCloseOverlay=()=>{this.open=!1}}static get styles(){return[l.r(d)]}get variant(){return this._variant}set variant(t){if(t!==this.variant){if(["info","positive","negative"].includes(t)){this.setAttribute("variant",t),this._variant=t;return}this.removeAttribute("variant"),this._variant=""}}forwardTransitionEvent(t){this.dispatchEvent(new TransitionEvent(t.type,{bubbles:!0,composed:!0,propertyName:t.propertyName}))}get triggerElement(){var p;let t=this.assignedSlot||this,o=t.getRootNode();if(o===document)return null;let i=t.parentElement||o.host||o;for(;!((p=i==null?void 0:i.matches)!=null&&p.call(i,c.focusableSelector));){if(t=i.assignedSlot||i,o=t.getRootNode(),o===document)return null;i=t.parentElement||o.host||o}return i}render(){const t=l.x`
19
+ <luzmo-tooltip-openable
20
+ id="tooltip"
21
+ placement=${u.o(this.placement)}
22
+ @transitionrun=${this.forwardTransitionEvent}
23
+ @transitionend=${this.forwardTransitionEvent}
24
+ @transitioncancel=${this.forwardTransitionEvent}
25
+ >
26
+ <slot name="icon"></slot>
27
+ <span id="label"><slot></slot></span>
28
+ <span id="tip" aria-hidden="true"></span>
29
+ </luzmo-tooltip-openable>
30
+ `;return this.selfManaged?(this.dependencyManager.add("luzmo-overlay"),Promise.resolve().then(()=>require("../overlay/index.cjs")),l.x`
31
+ <luzmo-overlay
32
+ ?open=${this.open&&!this.disabled&&this.dependencyManager.loaded}
33
+ ?delayed=${this.delayed}
34
+ ?disabled=${this.disabled}
35
+ offset=${this.offset}
36
+ .placement=${this.placement}
37
+ type="hint"
38
+ .tipPadding=${this.tipPadding}
39
+ .triggerInteraction=${"hover"}
40
+ @luzmo-opened=${this.handleOpenOverlay}
41
+ @luzmo-closed=${this.handleCloseOverlay}
42
+ >
43
+ ${t}
44
+ </luzmo-overlay>
45
+ `):t}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{if(!this.selfManaged)return;const t=this.overlayElement;if(t){const o=this.triggerElement;t.triggerElement=o}})}}r([l.n({type:Boolean})],e.prototype,"delayed",2);r([l.n({type:Boolean})],e.prototype,"disabled",2);r([l.n({type:Boolean,attribute:"self-managed"})],e.prototype,"selfManaged",2);r([l.n({type:Number})],e.prototype,"offset",2);r([l.n({type:Boolean,reflect:!0})],e.prototype,"open",2);r([m.e("luzmo-overlay")],e.prototype,"overlayElement",2);r([l.n({reflect:!0})],e.prototype,"placement",2);r([m.e("#tip")],e.prototype,"tipElement",2);r([l.n({type:Number})],e.prototype,"tipPadding",2);r([l.n({type:String})],e.prototype,"variant",1);customElements.get("luzmo-tooltip")||customElements.define("luzmo-tooltip",e);exports.Tooltip=e;
@@ -0,0 +1,8 @@
1
+ export * from './tooltip';
2
+ import { Tooltip } from './tooltip';
3
+ declare global {
4
+ interface HTMLElementTagNameMap {
5
+ 'luzmo-tooltip': Tooltip;
6
+ }
7
+ }
8
+ export { Tooltip } from './tooltip';
@@ -15,13 +15,12 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { L as z, n } from "../base-nYalvNMy.js";
19
- import { f as d } from "../focusable-selectors-B4YgbghQ.js";
20
- import { D as h } from "../dependency-manger-CEXvGQUV.js";
21
- import { S as g } from "../sized-mixin-Dl0KoEcV.js";
22
- import { unsafeCSS as b, html as s } from "lit";
18
+ import { L as z, r as d, x as s, n } from "../base-CxUap9HL.js";
23
19
  import { e as u } from "../query-D_KR_GUc.js";
24
- import { o as f } from "../if-defined-CYpcjGCb.js";
20
+ import { o as h } from "../if-defined-XzWkhMhg.js";
21
+ import { f as g } from "../focusable-selectors-B4YgbghQ.js";
22
+ import { D as b } from "../dependency-manger-CEXvGQUV.js";
23
+ import { S as f } from "../sized-mixin-DcJTTohI.js";
25
24
  const c = () => {
26
25
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
27
26
  const p = document.createElement("style");
@@ -95,16 +94,16 @@ class x extends HTMLElement {
95
94
  }
96
95
  }
97
96
  customElements.get("luzmo-tooltip-openable") || customElements.define("luzmo-tooltip-openable", x);
98
- class i extends g(z, { defaultSize: "s" }) {
97
+ class i extends f(z, { defaultSize: "s" }) {
99
98
  constructor() {
100
- super(...arguments), this.delayed = !1, this.dependencyManager = new h(this), this.disabled = !1, this.selfManaged = !1, this.offset = 0, this.open = !1, this._variant = "", this.handleOpenOverlay = () => {
99
+ super(...arguments), this.delayed = !1, this.dependencyManager = new b(this), this.disabled = !1, this.selfManaged = !1, this.offset = 0, this.open = !1, this._variant = "", this.handleOpenOverlay = () => {
101
100
  this.open = !0;
102
101
  }, this.handleCloseOverlay = () => {
103
102
  this.open = !1;
104
103
  };
105
104
  }
106
105
  static get styles() {
107
- return [b(v)];
106
+ return [d(v)];
108
107
  }
109
108
  get variant() {
110
109
  return this._variant;
@@ -134,7 +133,7 @@ class i extends g(z, { defaultSize: "s" }) {
134
133
  return null;
135
134
  let l = o.parentElement || t.host || /* c8 ignore next 1 */
136
135
  t;
137
- for (; !((e = l == null ? void 0 : l.matches) != null && e.call(l, d)); ) {
136
+ for (; !((e = l == null ? void 0 : l.matches) != null && e.call(l, g)); ) {
138
137
  if (o = l.assignedSlot || l, t = o.getRootNode(), t === document)
139
138
  return null;
140
139
  l = o.parentElement || t.host || /* c8 ignore next 1 */
@@ -146,7 +145,7 @@ class i extends g(z, { defaultSize: "s" }) {
146
145
  const o = s`
147
146
  <luzmo-tooltip-openable
148
147
  id="tooltip"
149
- placement=${f(this.placement)}
148
+ placement=${h(this.placement)}
150
149
  @transitionrun=${this.forwardTransitionEvent}
151
150
  @transitionend=${this.forwardTransitionEvent}
152
151
  @transitioncancel=${this.forwardTransitionEvent}
@@ -0,0 +1,5 @@
1
+ import { TemplateResult } from 'lit';
2
+ import { OverlayTriggerOptions, trigger } from '../overlay/overlay-trigger-directive';
3
+ export declare const tooltip: (tooltipContent: () => TemplateResult, options?: Partial<OverlayTriggerOptions & {
4
+ variant: string;
5
+ }>) => ReturnType<typeof trigger>;
@@ -0,0 +1,55 @@
1
+ import { CSSResultArray, TemplateResult } from 'lit';
2
+ import { LuzmoElement } from '../../utils/base';
3
+ import { Overlay } from '../overlay';
4
+ import { Placement } from '../overlay/overlay-types';
5
+ declare const Tooltip_base: typeof LuzmoElement & {
6
+ new (...args: any[]): import("../../utils/sized-mixin").SizedElementInterface;
7
+ prototype: import("../../utils/sized-mixin").SizedElementInterface;
8
+ };
9
+ /**
10
+ * @element luzmo-tooltip
11
+ *
12
+ * @slot icon - the icon element appearing at the start of the label
13
+ * @slot - the text label of the Tooltip
14
+ */
15
+ export declare class Tooltip extends Tooltip_base {
16
+ static get styles(): CSSResultArray;
17
+ /**
18
+ * A Tooltip that is `delayed` will its Overlay wait until a warm-up period of
19
+ * 1000ms has completed before opening. Once the warmup period has completed, all
20
+ * subsequent Overlays will open immediately. When no Overlays are opened, a
21
+ * cooldown period of 1000ms will begin. Once the cooldown has completed, the next
22
+ * Overlay to be opened will be subject to the warm-up period if provided that option.
23
+ */
24
+ delayed: boolean;
25
+ private dependencyManager;
26
+ /**
27
+ * Whether to prevent a self-managed Tooltip from responding to user input.
28
+ */
29
+ disabled: boolean;
30
+ /**
31
+ * Automatically bind to the parent element of the assigned `slot` or the parent element of the `luzmo-tooltip`.
32
+ * Without this, you must provide your own `overlay-trigger`.
33
+ */
34
+ selfManaged: boolean;
35
+ offset: number;
36
+ open: boolean;
37
+ overlayElement?: Overlay;
38
+ /**
39
+ * @type {"top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end"}
40
+ * @attr
41
+ */
42
+ placement?: Placement;
43
+ tipElement: HTMLSpanElement;
44
+ tipPadding?: number;
45
+ private _variant;
46
+ get variant(): string;
47
+ set variant(variant: string);
48
+ private handleOpenOverlay;
49
+ protected handleCloseOverlay: () => void;
50
+ protected forwardTransitionEvent(event: TransitionEvent): void;
51
+ private get triggerElement();
52
+ render(): TemplateResult;
53
+ connectedCallback(): void;
54
+ }
55
+ export {};
@@ -0,0 +1,43 @@
1
+ /*! * Lucero - The design system for Luzmo.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Lucero (“Luzmo Design System”) must be used according to the Luzmo Terms of Service.
6
+ * This license allows users with a current active Luzmo account to use Lucero.
7
+ * This license terminates automatically if a user no longer has an active Luzmo account.
8
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
9
+ *
10
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
11
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
12
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
13
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
14
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
15
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
+ * SOFTWARE.
17
+ * */
18
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../base-rtxi7uaR.cjs"),h=require("../state-WWHLNMRG.cjs"),d=require("@luzmo/icons"),x=require("../style-map-DH0jkl7s.cjs"),z="*,*:before,*:after{box-sizing:border-box}:host{display:flex;flex:1 1 auto}svg{height:.75em}.unit-input-container{width:100%;position:relative;display:flex;height:1.875rem;box-sizing:border-box;border-radius:var(--luzmo-border-radius)}.unit-input-container input{box-sizing:border-box;min-width:0;width:100%;line-height:1.6rem;color:var(--luzmo-font-color);padding-left:var(--luzmo-spacing-3);padding-right:var(--luzmo-spacing-5);outline:none;border:var(--luzmo-border-width) solid var(--luzmo-border-color);border-radius:var(--luzmo-border-radius);background:transparent;font-weight:400;text-align:right;transition:border .2s ease-in-out}.unit-input-container input:focus{border:var(--luzmo-border-width) solid var(--luzmo-primary);background:var(--luzmo-background-color-hover)}.unit-input-container input:focus~.ticks{border:var(--luzmo-border-width) solid var(--luzmo-primary)}.unit-input-container input:focus~.ticks .tick-up{border-bottom:var(--luzmo-border-width) solid var(--luzmo-primary)}.unit-input-container .unit{position:absolute;box-sizing:border-box;display:flex;align-items:center;justify-content:center;right:1.125rem;color:var(--luzmo-font-color-disabled);padding:0 var(--luzmo-spacing-2);height:100%;cursor:default;-webkit-user-select:none;user-select:none;z-index:2;font-size:80%}.unit-input-container .ticks{position:absolute;display:flex;flex-direction:column;top:0;bottom:0;right:0;width:var(--luzmo-unit-input-tick-width, 1rem);-webkit-user-select:none;user-select:none;z-index:3;border:var(--luzmo-border-width) solid var(--luzmo-border-color);border-top-right-radius:var(--luzmo-border-radius);border-bottom-right-radius:var(--luzmo-border-radius);overflow:hidden;background-color:var(--luzmo-background-color-hover)}.unit-input-container .ticks>div{flex:1 1 auto;display:flex;justify-content:center;align-items:center;overflow:hidden;color:var(--luzmo-font-color);transition:all .2s ease-in-out;cursor:pointer;position:relative}.unit-input-container .ticks>div:hover{color:var(--luzmo-font-color-hard);background:var(--background-color-alt-2)}.unit-input-container .ticks>div.disabled,.unit-input-container .ticks>div.disabled:hover{cursor:not-allowed;color:var(--luzmo-font-color-disabled)!important;background-color:var(--luzmo-background-color)}.unit-input-container .ticks>div.tick-up{border-bottom:var(--luzmo-border-width) solid var(--luzmo-border-color)}.unit-input-container.with-unit input{padding-right:2.25rem}.unit-input-container.has-error input{border-color:var(--luzmo-color-negative, red)!important}.unit-input-container.has-error .ticks{border-color:var(--luzmo-color-negative, red)!important;background-color:var(--luzmo-color-negative, red)!important}.unit-input-container.has-error .tick-up,.unit-input-container.has-error .tick-down{border-color:var(--luzmo-color-negative, red)!important;background-color:var(--luzmo-color-negative, red)!important;color:#fff!important}";var w=Object.defineProperty,s=(m,t,e,i)=>{for(var n=void 0,a=m.length-1,u;a>=0;a--)(u=m[a])&&(n=u(t,e,n)||n);return n&&w(t,e,n),n};const l={min:-99999999999,max:99999999999,step:1,default:0,debounce:250},p=class p extends o.LuzmoElement{constructor(){super(),this.isDecimal=!1,this.disabled=!1,this.readOnly=!1,this.inputWidth="",this.debounce=l.debounce,this.errors=[],this.setValue=t=>{this.waitForUpdate=!0,this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))},this.debounce||0)},this.setCorrectInitialValues()}transformToNumber(t,e){let i=t;return i=this.isDecimal?Number.parseFloat(t+""):Number.parseInt(t+"",10),i=Number.isNaN(i)?Number(e):Number(i),i}onInput(t){let e=new RegExp(/[^0-9+-]/g);this.isDecimal&&(e=new RegExp(/[^0-9.,+-]/g));const i=t.target.value.replace(e,"").replaceAll(",",".");t.target.value=i,this.errors=[];const n=this.isDecimal?Number.parseFloat(i+""):Number.parseInt(i+"",10);Number.isNaN(n)&&this.errors.push("Not a number"),n<this.min&&this.errors.length===0&&this.errors.push("Value is lower than minimum"),n>this.max&&this.errors.length===0&&this.errors.push("Value is higher than maximum"),this.errors.length===0?(this.validValue=n,this.value=this.validValue,this.setValue(this.value),this.setErrorStatus(!1)):this.setErrorStatus(!0)}setErrorStatus(t){var e,i;t?(e=this.renderRoot.querySelector(".unit-input-container"))==null||e.classList.add("has-error"):(this.errors=[],(i=this.renderRoot.querySelector(".unit-input-container"))==null||i.classList.remove("has-error"))}setDisabledUpDownStatus(){this.value===this.min?this.renderRoot.querySelector(".tick-down").classList.add("disabled"):this.renderRoot.querySelector(".tick-down").classList.remove("disabled"),this.value===this.max?this.renderRoot.querySelector(".tick-up").classList.add("disabled"):this.renderRoot.querySelector(".tick-up").classList.remove("disabled")}createAndSetValidValue(t){let e=this.validValue?this.transformToNumber(t,this.validValue):this.transformToNumber(t,this.default);this.max<e&&(e=this.max),this.min>e&&(e=this.min),this.validValue=e,this.value=e}setCorrectInitialValues(){this.min=this.transformToNumber(this.min,l.min),this.max=this.transformToNumber(this.max,l.max),this.step=Math.abs(this.transformToNumber(this.step,l.step)),this.min>this.max&&(this.min=this.max),this.max<this.min+this.step&&(this.max=this.min+this.step),this.default=this.transformToNumber(this.default,l.default),this.createAndSetValidValue(this.value)}onKeydown(t){!this.disabled&&(t.key==="ArrowUp"||t.key==="ArrowDown")&&this.applyStep(t,t.key==="ArrowUp")}applyStep(t,e){var i,n,a,u,b,f;if(!this.disabled){t.preventDefault();const v=((a=(n=(i=this.validValue.toString())==null?void 0:i.split("."))==null?void 0:n[1])==null?void 0:a.length)??0,g=((f=(b=(u=this.step.toString())==null?void 0:u.split("."))==null?void 0:b[1])==null?void 0:f.length)??0,y=Math.max(v,g);let c=this.validValue+(e?this.step:-this.step);c=Number.parseFloat(c.toFixed(y)),this.createAndSetValidValue(c),this.setErrorStatus(!1),this.renderRoot.querySelector("input").value=this.validValue+"",this.setValue(this.validValue),this.setDisabledUpDownStatus()}}setPaddingRightOfInput(){const t=this.renderRoot.querySelector(".unit"),e=this.renderRoot.querySelector(".ticks"),i=this.unit?`calc(${t==null?void 0:t.offsetWidth}px + ${e==null?void 0:e.offsetWidth}px)`:`calc(${e==null?void 0:e.offsetWidth}px + var(--luzmo-spacing-3))`;this.renderRoot.querySelector("input").style.paddingRight=i}updated(t){t.has("value")&&(this.setCorrectInitialValues(),this.waitForUpdate?this.waitForUpdate=!1:this.renderRoot.querySelector("input").value=this.value+"",this.setPaddingRightOfInput())}render(){return o.x`
19
+ <div style=${x.o(this.inputWidth?{width:this.inputWidth}:{})}>
20
+ <input
21
+ .min=${String(this.min)}
22
+ .max=${String(this.max)}
23
+ @input=${this.onInput}
24
+ @keydown=${this.onKeydown}
25
+ />
26
+ ${this.unit?o.x`<div class="unit">${this.unit}</div>`:""}
27
+ <div class="ticks">
28
+ <div
29
+ class="tick-up"
30
+ @click=${{handleEvent:t=>this.applyStep(t,!0)}}
31
+ >
32
+ ${d.luzmoIcon(d.luzmoAngleUp)}
33
+ </div>
34
+
35
+ <div
36
+ class="tick-down"
37
+ @click=${{handleEvent:t=>this.applyStep(t,!1)}}
38
+ >
39
+ ${d.luzmoIcon(d.luzmoAngleDown)}
40
+ </div>
41
+ </div>
42
+ </div>
43
+ `}};p.styles=o.r(z);let r=p;s([o.n({type:Number,reflect:!0,attribute:"value"})],r.prototype,"value");s([o.n({type:Number,reflect:!0,attribute:"default"})],r.prototype,"default");s([o.n({type:String,reflect:!0,attribute:"placeholder"})],r.prototype,"placeholder");s([o.n({type:String,reflect:!0,attribute:"unit"})],r.prototype,"unit");s([o.n({type:Number,reflect:!0,attribute:"min"})],r.prototype,"min");s([o.n({type:Number,reflect:!0,attribute:"max"})],r.prototype,"max");s([o.n({type:Number,reflect:!0,attribute:"step"})],r.prototype,"step");s([o.n({type:Boolean,reflect:!0,attribute:"isDecimal"})],r.prototype,"isDecimal");s([o.n({type:Boolean,reflect:!0,attribute:"disabled"})],r.prototype,"disabled");s([o.n({type:Boolean,reflect:!0,attribute:"readOnly"})],r.prototype,"readOnly");s([o.n({type:String,reflect:!0,attribute:"inputWidth"})],r.prototype,"inputWidth");s([o.n({type:Number,reflect:!0,attribute:"debounce"})],r.prototype,"debounce");s([h.r()],r.prototype,"errors");s([h.r()],r.prototype,"validValue");s([h.r()],r.prototype,"waitForUpdate");customElements.get("luzmo-unit-input")||customElements.define("luzmo-unit-input",r);exports.LuzmoUnitInput=r;
@@ -0,0 +1,7 @@
1
+ import { LuzmoUnitInput } from './unit-input';
2
+ declare global {
3
+ interface HTMLElementTagNameMap {
4
+ 'luzmo-unit-input': LuzmoUnitInput;
5
+ }
6
+ }
7
+ export { LuzmoUnitInput } from './unit-input';
@@ -15,11 +15,10 @@
15
15
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
16
16
  * SOFTWARE.
17
17
  * */
18
- import { unsafeCSS as w, html as f } from "lit";
19
- import { L as k, n as u } from "../base-nYalvNMy.js";
20
- import { r as m } from "../state-BAO-13Bs.js";
18
+ import { L as w, r as k, x as f, n as u } from "../base-CxUap9HL.js";
19
+ import { r as m } from "../state-D8vot9IB.js";
21
20
  import { luzmoIcon as z, luzmoAngleUp as S, luzmoAngleDown as V } from "@luzmo/icons";
22
- import { o as N } from "../style-map-BqvQDFJt.js";
21
+ import { o as N } from "../style-map-CoBJRbvu.js";
23
22
  const y = () => {
24
23
  if (typeof document < "u" && !document.querySelector("style[data-luzmo-vars]")) {
25
24
  const s = document.createElement("style");
@@ -39,7 +38,7 @@ const d = {
39
38
  step: 1,
40
39
  default: 0,
41
40
  debounce: 250
42
- }, p = class p extends k {
41
+ }, p = class p extends w {
43
42
  constructor() {
44
43
  super(), this.isDecimal = !1, this.disabled = !1, this.readOnly = !1, this.inputWidth = "", this.debounce = d.debounce, this.errors = [], this.setValue = (o) => {
45
44
  this.waitForUpdate = !0, this.debounceTimeout && clearTimeout(this.debounceTimeout), this.debounceTimeout = setTimeout(() => {
@@ -131,7 +130,7 @@ const d = {
131
130
  `;
132
131
  }
133
132
  };
134
- p.styles = w(R);
133
+ p.styles = k(R);
135
134
  let r = p;
136
135
  i([
137
136
  u({ type: Number, reflect: !0, attribute: "value" })
@@ -0,0 +1,33 @@
1
+ import { LuzmoElement } from '../../utils/base';
2
+ export declare class LuzmoUnitInput extends LuzmoElement {
3
+ static styles: import("lit").CSSResult;
4
+ value: number;
5
+ default: number;
6
+ placeholder: string;
7
+ unit: string;
8
+ min: number;
9
+ max: number;
10
+ step: number;
11
+ isDecimal: boolean;
12
+ disabled: boolean;
13
+ readOnly: boolean;
14
+ inputWidth: string;
15
+ debounce: number;
16
+ debounceTimeout: any;
17
+ errors: string[];
18
+ validValue: number;
19
+ waitForUpdate: boolean;
20
+ private transformToNumber;
21
+ private onInput;
22
+ private setErrorStatus;
23
+ setDisabledUpDownStatus(): void;
24
+ private createAndSetValidValue;
25
+ private setCorrectInitialValues;
26
+ private onKeydown;
27
+ private applyStep;
28
+ private setValue;
29
+ private setPaddingRightOfInput;
30
+ constructor();
31
+ protected updated(changedProperties: Map<string, any>): void;
32
+ render(): import("lit-html").TemplateResult<1>;
33
+ }
package/index.d.ts ADDED
@@ -0,0 +1,39 @@
1
+ export * from './components/accordion';
2
+ export * from './components/action-bar';
3
+ export * from './components/action-button';
4
+ export * from './components/action-group';
5
+ export * from './components/action-menu';
6
+ export * from './components/avatar';
7
+ export * from './components/button';
8
+ export * from './components/button-group';
9
+ export * from './components/checkbox';
10
+ export * from './components/color-area';
11
+ export * from './components/color-field';
12
+ export * from './components/color-handle';
13
+ export * from './components/color-loupe';
14
+ export * from './components/color-menu';
15
+ export * from './components/color-picker';
16
+ export * from './components/color-slider';
17
+ export * from './components/divider';
18
+ export * from './components/field-group';
19
+ export * from './components/field-label';
20
+ export * from './components/icon';
21
+ export * from './components/infield-button';
22
+ export * from './components/label';
23
+ export * from './components/legend-position';
24
+ export * from './components/menu';
25
+ export * from './components/multi-language-field';
26
+ export * from './components/number-field';
27
+ export * from './components/overlay';
28
+ export * from './components/picker';
29
+ export * from './components/popover';
30
+ export * from './components/progress-circle';
31
+ export * from './components/radio';
32
+ export * from './components/search';
33
+ export * from './components/slider';
34
+ export * from './components/swatch';
35
+ export * from './components/switch';
36
+ export * from './components/tags';
37
+ export * from './components/text-field';
38
+ export * from './components/tooltip';
39
+ export * from './components/unit-input';