@vonage/vivid 5.16.0 → 5.17.0

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 (317) hide show
  1. package/accordion/index.cjs +1 -1
  2. package/accordion/index.js +1 -1
  3. package/accordion-item/index.cjs +1 -1
  4. package/accordion-item/index.js +1 -1
  5. package/action-group/index.cjs +3 -3
  6. package/action-group/index.js +5 -5
  7. package/alert/index.cjs +3 -3
  8. package/alert/index.js +17 -17
  9. package/audio-player/index.cjs +16 -16
  10. package/audio-player/index.js +27 -27
  11. package/avatar/index.cjs +2 -2
  12. package/avatar/index.js +6 -6
  13. package/badge/index.cjs +2 -2
  14. package/badge/index.js +6 -6
  15. package/banner/index.cjs +3 -3
  16. package/banner/index.js +15 -15
  17. package/bundled/base-color-picker.cjs +2 -2
  18. package/bundled/base-color-picker.js +5 -5
  19. package/bundled/button.cjs +1 -1
  20. package/bundled/button.js +2 -2
  21. package/bundled/calendar-picker.template.cjs +2 -2
  22. package/bundled/calendar-picker.template.js +498 -498
  23. package/bundled/definition10.cjs +18 -30
  24. package/bundled/definition10.js +53 -155
  25. package/bundled/definition11.cjs +10 -19
  26. package/bundled/definition11.js +25 -74
  27. package/bundled/definition12.cjs +72 -18
  28. package/bundled/definition12.js +171 -107
  29. package/bundled/definition13.cjs +18 -17
  30. package/bundled/definition13.js +45 -65
  31. package/bundled/definition14.cjs +5 -10
  32. package/bundled/definition14.js +9 -27
  33. package/bundled/definition15.cjs +17 -71
  34. package/bundled/definition15.js +64 -181
  35. package/bundled/definition16.cjs +12 -4
  36. package/bundled/definition16.js +79 -14
  37. package/bundled/definition17.cjs +19 -13
  38. package/bundled/definition17.js +119 -70
  39. package/bundled/definition18.cjs +87 -12
  40. package/bundled/definition18.js +409 -52
  41. package/bundled/definition19.cjs +5 -87
  42. package/bundled/definition19.js +14 -422
  43. package/bundled/definition2.cjs +3 -3
  44. package/bundled/definition2.js +27 -27
  45. package/bundled/definition20.cjs +30 -5
  46. package/bundled/definition20.js +159 -9
  47. package/bundled/definition21.cjs +28 -19
  48. package/bundled/definition21.js +164 -47
  49. package/bundled/definition22.cjs +38 -23
  50. package/bundled/definition22.js +64 -82
  51. package/bundled/definition3.cjs +1 -1
  52. package/bundled/definition3.js +15 -15
  53. package/bundled/definition4.cjs +23 -38
  54. package/bundled/definition4.js +82 -64
  55. package/bundled/definition5.cjs +2 -2
  56. package/bundled/definition5.js +5 -5
  57. package/bundled/definition6.cjs +2 -2
  58. package/bundled/definition6.js +24 -24
  59. package/bundled/definition9.cjs +12 -30
  60. package/bundled/definition9.js +55 -148
  61. package/bundled/divider.cjs +1 -1
  62. package/bundled/divider.js +5 -5
  63. package/bundled/listbox.cjs +1 -1
  64. package/bundled/listbox.js +1 -1
  65. package/bundled/mixins.cjs +4 -4
  66. package/bundled/mixins.js +43 -43
  67. package/bundled/picker-field.template.cjs +7 -7
  68. package/bundled/picker-field.template.js +14 -14
  69. package/bundled/slider.template.cjs +7 -7
  70. package/bundled/slider.template.js +12 -12
  71. package/bundled/slottable-request.cjs +1 -1
  72. package/bundled/slottable-request.js +8 -38
  73. package/bundled/time-selection-picker.template.cjs +4 -4
  74. package/bundled/time-selection-picker.template.js +35 -35
  75. package/bundled/vivid-element.cjs +1 -1
  76. package/bundled/vivid-element.js +1 -1
  77. package/calendar/index.cjs +11 -11
  78. package/calendar/index.js +30 -237
  79. package/calendar-event/index.cjs +3 -3
  80. package/calendar-event/index.js +4 -4
  81. package/card/index.cjs +14 -11
  82. package/card/index.js +16 -13
  83. package/checkbox/index.cjs +1 -1
  84. package/checkbox/index.js +1 -1
  85. package/color-picker/definition.cjs +1 -1
  86. package/color-picker/definition.js +1 -1
  87. package/color-picker/index.cjs +6 -6
  88. package/color-picker/index.js +24 -24
  89. package/combobox/definition.cjs +1 -1
  90. package/combobox/definition.js +1 -1
  91. package/combobox/index.cjs +9 -8
  92. package/combobox/index.js +32 -28
  93. package/contextual-help/definition.cjs +1 -1
  94. package/contextual-help/definition.js +1 -1
  95. package/contextual-help/index.cjs +1 -1
  96. package/contextual-help/index.js +1 -1
  97. package/custom-elements.json +1027 -615
  98. package/data-grid/definition.js +1 -1
  99. package/data-grid/index.cjs +17 -17
  100. package/data-grid/index.js +261 -264
  101. package/date-picker/index.cjs +1 -1
  102. package/date-picker/index.js +12 -12
  103. package/date-range-picker/index.cjs +1 -1
  104. package/date-range-picker/index.js +7 -7
  105. package/date-time-picker/index.cjs +4 -4
  106. package/date-time-picker/index.js +24 -24
  107. package/dial-pad/index.cjs +3 -2
  108. package/dial-pad/index.js +6 -5
  109. package/dialog/index.cjs +4 -4
  110. package/dialog/index.js +5 -5
  111. package/divider/index.cjs +1 -1
  112. package/divider/index.js +1 -1
  113. package/fab/index.cjs +3 -3
  114. package/fab/index.js +8 -8
  115. package/file-picker/index.cjs +16 -13
  116. package/file-picker/index.js +31 -28
  117. package/header/index.cjs +4 -4
  118. package/header/index.js +5 -5
  119. package/index.cjs +24 -21
  120. package/index.js +11 -11
  121. package/lib/combobox/combobox.d.ts +0 -3
  122. package/lib/date-time-picker/date-time-picker.d.ts +0 -4
  123. package/lib/dial-pad/dial-pad.d.ts +6 -2
  124. package/lib/dialog/dialog.d.ts +0 -1
  125. package/lib/menu/menu.d.ts +0 -1
  126. package/lib/option/option.d.ts +0 -1
  127. package/lib/rich-text-editor/rte/exports.d.ts +1 -0
  128. package/lib/rich-text-editor/rte/features/alignment.d.ts +1 -1
  129. package/lib/rich-text-editor/rte/features/character-count.d.ts +21 -0
  130. package/lib/rich-text-editor/rte/features/font-size-picker.d.ts +1 -1
  131. package/lib/rich-text-editor/rte/features/internal/basic-text-blocks.d.ts +1 -1
  132. package/lib/rich-text-editor/rte/features/keyboard-shortcuts.d.ts +1 -1
  133. package/lib/rich-text-editor/rte/features/text-color-picker.d.ts +1 -1
  134. package/lib/rich-text-editor/rte/public-interface.d.ts +6 -0
  135. package/lib/searchable-select/option-tag.d.ts +0 -1
  136. package/lib/table/definition.d.ts +2 -1
  137. package/lib/table/table-header-cell.d.ts +3 -0
  138. package/lib/table/table-sorting-button.d.ts +415 -0
  139. package/lib/table/table-sorting-button.template.d.ts +3 -0
  140. package/locales/de-DE.cjs +4 -178
  141. package/locales/de-DE.js +2 -179
  142. package/locales/en-GB.cjs +4 -9
  143. package/locales/en-GB.js +2 -10
  144. package/locales/en-US.cjs +268 -2
  145. package/locales/en-US.js +265 -1
  146. package/locales/ja-JP.cjs +4 -171
  147. package/locales/ja-JP.js +2 -172
  148. package/locales/zh-CN.cjs +4 -172
  149. package/locales/zh-CN.js +2 -173
  150. package/menu/index.cjs +1 -1
  151. package/menu/index.js +1 -1
  152. package/menu-item/index.cjs +1 -1
  153. package/menu-item/index.js +1 -1
  154. package/nav-disclosure/index.cjs +3 -3
  155. package/nav-disclosure/index.js +8 -8
  156. package/nav-item/index.cjs +1 -1
  157. package/nav-item/index.js +7 -7
  158. package/note/index.cjs +2 -2
  159. package/note/index.js +6 -6
  160. package/number-field/index.cjs +4 -4
  161. package/number-field/index.js +31 -31
  162. package/option/definition.cjs +1 -1
  163. package/option/definition.js +1 -1
  164. package/option/index.cjs +1 -1
  165. package/option/index.js +1 -1
  166. package/package.json +7 -8
  167. package/pagination/index.cjs +3 -3
  168. package/pagination/index.js +15 -15
  169. package/popover/index.cjs +4 -4
  170. package/popover/index.js +5 -5
  171. package/progress/index.cjs +2 -2
  172. package/progress/index.js +5 -5
  173. package/radio/index.cjs +1 -1
  174. package/radio/index.js +1 -1
  175. package/radio-group/index.cjs +4 -4
  176. package/radio-group/index.js +10 -10
  177. package/range-slider/index.cjs +4 -4
  178. package/range-slider/index.js +17 -17
  179. package/rich-text-editor/definition.cjs +1 -0
  180. package/rich-text-editor/definition.js +2 -2
  181. package/rich-text-editor/index.cjs +13 -13
  182. package/rich-text-editor/index.js +1886 -1829
  183. package/rich-text-view/index.cjs +1 -1
  184. package/rich-text-view/index.js +8 -8
  185. package/searchable-select/index.cjs +12 -12
  186. package/searchable-select/index.js +25 -25
  187. package/select/index.cjs +1 -1
  188. package/select/index.js +1 -1
  189. package/selectable-box/index.cjs +7 -7
  190. package/selectable-box/index.js +11 -11
  191. package/shared/foundation/test-utilities/fixture.d.ts +1 -1
  192. package/shared/patterns/linkable.d.ts +1 -1
  193. package/simple-color-picker/index.cjs +3 -3
  194. package/simple-color-picker/index.js +10 -10
  195. package/split-button/index.cjs +5 -5
  196. package/split-button/index.js +10 -10
  197. package/status/index.cjs +2 -2
  198. package/status/index.js +12 -12
  199. package/switch/index.cjs +3 -3
  200. package/switch/index.js +5 -5
  201. package/tab/index.cjs +1 -1
  202. package/tab/index.js +1 -1
  203. package/tab-panel/index.cjs +1 -1
  204. package/tab-panel/index.js +1 -1
  205. package/table/definition.cjs +17 -14
  206. package/table/definition.js +3 -2
  207. package/table/index.cjs +19 -10
  208. package/table/index.js +69 -21
  209. package/tabs/index.cjs +2 -2
  210. package/tabs/index.js +4 -4
  211. package/tag/index.cjs +7 -7
  212. package/tag/index.js +9 -9
  213. package/tag-group/index.cjs +3 -3
  214. package/tag-group/index.js +5 -5
  215. package/text-area/index.cjs +2 -2
  216. package/text-area/index.js +12 -12
  217. package/text-field/definition.cjs +1 -1
  218. package/text-field/definition.js +1 -1
  219. package/text-field/index.cjs +1 -1
  220. package/text-field/index.js +1 -1
  221. package/time-picker/index.cjs +1 -1
  222. package/time-picker/index.js +1 -1
  223. package/toggletip/definition.cjs +1 -1
  224. package/toggletip/definition.js +1 -1
  225. package/toggletip/index.cjs +1 -1
  226. package/toggletip/index.js +1 -1
  227. package/tooltip/definition.cjs +1 -1
  228. package/tooltip/definition.js +1 -1
  229. package/tooltip/index.cjs +1 -1
  230. package/tooltip/index.js +1 -1
  231. package/tree-item/index.cjs +1 -1
  232. package/tree-item/index.js +1 -1
  233. package/tree-view/index.cjs +3 -3
  234. package/tree-view/index.js +17 -17
  235. package/unbundled/button.cjs +2 -2
  236. package/unbundled/button.js +2 -2
  237. package/unbundled/calendar-picker.template.cjs +4347 -9
  238. package/unbundled/calendar-picker.template.js +4345 -7
  239. package/unbundled/chunk.cjs +0 -22
  240. package/unbundled/definition13.cjs +1 -8
  241. package/unbundled/definition13.js +1 -8
  242. package/unbundled/definition14.cjs +2 -2
  243. package/unbundled/definition14.js +2 -2
  244. package/unbundled/definition2.cjs +1 -1
  245. package/unbundled/definition2.js +1 -1
  246. package/unbundled/definition21.cjs +1 -2
  247. package/unbundled/definition21.js +1 -2
  248. package/unbundled/definition22.cjs +7 -2
  249. package/unbundled/definition22.js +7 -2
  250. package/unbundled/definition24.cjs +98 -979
  251. package/unbundled/definition24.js +93 -974
  252. package/unbundled/definition25.cjs +37 -322
  253. package/unbundled/definition25.js +33 -318
  254. package/unbundled/definition26.cjs +317 -91
  255. package/unbundled/definition26.js +313 -87
  256. package/unbundled/definition27.cjs +94 -192
  257. package/unbundled/definition27.js +91 -183
  258. package/unbundled/definition28.cjs +387 -395
  259. package/unbundled/definition28.js +387 -395
  260. package/unbundled/definition29.cjs +189 -110
  261. package/unbundled/definition29.js +180 -107
  262. package/unbundled/definition30.cjs +520 -36
  263. package/unbundled/definition30.js +519 -35
  264. package/unbundled/definition32.cjs +477 -477
  265. package/unbundled/definition32.js +475 -475
  266. package/unbundled/definition33.cjs +87 -2
  267. package/unbundled/definition33.js +77 -4
  268. package/unbundled/definition35.cjs +2 -2
  269. package/unbundled/definition35.js +2 -2
  270. package/unbundled/definition36.cjs +1 -1
  271. package/unbundled/definition36.js +1 -1
  272. package/unbundled/definition37.cjs +6 -2
  273. package/unbundled/definition37.js +6 -2
  274. package/unbundled/definition38.cjs +7 -5
  275. package/unbundled/definition38.js +7 -5
  276. package/unbundled/definition39.cjs +1 -0
  277. package/unbundled/definition39.js +1 -0
  278. package/unbundled/definition42.cjs +22 -11
  279. package/unbundled/definition42.js +22 -11
  280. package/unbundled/definition49.cjs +3 -3
  281. package/unbundled/definition49.js +3 -3
  282. package/unbundled/definition56.cjs +437 -9506
  283. package/unbundled/definition56.js +340 -9415
  284. package/unbundled/definition57.cjs +5 -5
  285. package/unbundled/definition57.js +5 -5
  286. package/unbundled/definition58.cjs +4 -3
  287. package/unbundled/definition58.js +2 -1
  288. package/unbundled/definition59.cjs +4 -3
  289. package/unbundled/definition59.js +4 -3
  290. package/unbundled/definition62.cjs +2 -2
  291. package/unbundled/definition62.js +2 -2
  292. package/unbundled/definition64.cjs +1 -1
  293. package/unbundled/definition64.js +1 -1
  294. package/unbundled/definition71.cjs +2 -2
  295. package/unbundled/definition71.js +2 -2
  296. package/unbundled/definition72.cjs +1 -2
  297. package/unbundled/definition72.js +1 -2
  298. package/unbundled/definition75.cjs +3 -51711
  299. package/unbundled/definition75.js +1 -51711
  300. package/unbundled/listbox.cjs +1 -1
  301. package/unbundled/listbox.js +1 -1
  302. package/unbundled/localized.cjs +2 -2
  303. package/unbundled/localized.js +1 -1
  304. package/unbundled/picker-field.template.cjs +1 -1
  305. package/unbundled/picker-field.template.js +1 -1
  306. package/unbundled/slottable-request.cjs +2 -3168
  307. package/unbundled/slottable-request.js +3 -3097
  308. package/unbundled/time-selection-picker.template.cjs +1 -1
  309. package/unbundled/time-selection-picker.template.js +1 -1
  310. package/unbundled/vivid-element.cjs +1 -1
  311. package/unbundled/vivid-element.js +1 -1
  312. package/video-player/index.cjs +3 -3
  313. package/video-player/index.js +9 -9
  314. package/vivid.api.json +220 -282
  315. package/unbundled/chunk.js +0 -33
  316. package/unbundled/en-US.cjs +0 -447
  317. package/unbundled/en-US.js +0 -443
@@ -1,425 +1,17 @@
1
- import { t as e } from "./localized.js";
2
- import { E as t, O as n, T as r, d as i, l as a, o, s, w as c } from "./vivid-element.js";
3
- import { t as l } from "./ref.js";
4
- import { t as u } from "./when.js";
5
- import { t as d } from "./slotted.js";
6
- import { t as f } from "./definition2.js";
7
- import { t as p } from "./decorate.js";
8
- import { t as m } from "./listbox.js";
9
- import { t as h } from "./class-names.js";
10
- import { a as g, i as _, o as v, s as y, t as b } from "./key-codes.js";
11
- import { t as x } from "./numbers.js";
12
- import { t as S } from "./strings.js";
13
- import { a as C, i as w, n as T } from "./affix.js";
14
- import { n as E } from "./form-associated.js";
15
- import { t as D } from "./form-element.js";
16
- import { t as O } from "./with-success-text.js";
17
- import { t as k } from "./with-error-text.js";
18
- import { t as A } from "./with-contextual-help.js";
19
- import { i as j, r as M, t as N } from "./definition6.js";
20
- import { t as P } from "./dialog.js";
21
- import { i as F, t as I } from "./definition8.js";
22
- import { n as L, t as ee } from "./host-semantics.js";
23
- import { a as R, n as z } from "./mixins.js";
24
- import { r as B, t as V } from "./definition12.js";
25
- //#region src/lib/select/select.ts
26
- var H = class extends z(A(k(O(e(D(ee(T(E(m))))))))) {
27
- constructor(...e) {
28
- super(...e), this.proxy = document.createElement("select"), this.activeIndex = -1, this.rangeStartIndex = -1, this.open = !1, this.listboxId = S("listbox-"), this.maxHeight = 0, this.fixedDropdown = !1, this._feedbackWrapper = null, this._isResetting = !1, this.clearable = !1, this._isClearButtonFocused = !1;
29
- }
30
- get activeOption() {
31
- return this.options[this.activeIndex];
32
- }
33
- get checkedOptions() {
34
- return this.options.filter((e) => e.checked);
35
- }
36
- get firstSelectedOptionIndex() {
37
- return this.options.indexOf(this.firstSelectedOption);
38
- }
39
- activeIndexChanged(e, t) {
40
- this._activeDescendant = this.options[t]?.id ?? "", this.focusAndScrollOptionIntoView();
41
- }
42
- checkActiveIndex() {
43
- let e = this.activeOption;
44
- /* v8 ignore else -- @preserve */
45
- e && (e.checked = !0);
46
- }
47
- checkFirstOption(e) {
48
- let t = this.getNextSelectableIndex(0);
49
- t !== -1 && (e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.options.forEach((e, n) => {
50
- e.checked = x(n, t, this.rangeStartIndex + 1) && !e.disabled;
51
- })) : this.uncheckAllOptions(), this.activeIndex = t, this.checkActiveIndex());
52
- }
53
- checkLastOption(e) {
54
- let t = this.getPreviousSelectableIndex(this.length - 1);
55
- t !== -1 && (e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.options.forEach((e, n) => {
56
- e.checked = x(n, this.rangeStartIndex, t + 1) && !e.disabled;
57
- })) : this.uncheckAllOptions(), this.activeIndex = t, this.checkActiveIndex());
58
- }
59
- checkNextOption(e) {
60
- let t = this.getNextSelectableIndex(this.activeIndex + 1);
61
- t !== -1 && (e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.options.forEach((e, n) => {
62
- e.checked = x(n, this.rangeStartIndex, t + 1) && !e.disabled;
63
- })) : this.uncheckAllOptions(), this.activeIndex = t, this.checkActiveIndex());
64
- }
65
- checkPreviousOption(e) {
66
- let t = this.getPreviousSelectableIndex(this.activeIndex - 1);
67
- t !== -1 && (e ? (this.rangeStartIndex === -1 && (this.rangeStartIndex = this.activeIndex), this.checkedOptions.length === 1 && (this.rangeStartIndex += 1), this.options.forEach((e, n) => {
68
- e.checked = x(n, t, this.rangeStartIndex + 1) && !e.disabled;
69
- })) : this.uncheckAllOptions(), this.activeIndex = t, this.checkActiveIndex());
70
- }
71
- focusAndScrollOptionIntoView() {
72
- super.focusAndScrollOptionIntoView(this.activeOption);
73
- }
74
- focusinHandler(e) {
75
- if (!this.multiple) return super.focusinHandler(e);
76
- !this.shouldSkipFocus && e.target === e.currentTarget && (this.uncheckAllOptions(), this.activeIndex === -1 && (this.activeIndex = this.firstSelectedOptionIndex === -1 ? 0 : this.firstSelectedOptionIndex), this.checkActiveIndex(), this.setSelectedOptions(), this.focusAndScrollOptionIntoView()), this.shouldSkipFocus = !1;
77
- }
78
- setSelectedOptions() {
79
- if (!this.multiple) {
80
- super.setSelectedOptions();
81
- return;
82
- }
83
- /* v8 ignore else -- @preserve */
84
- this.$fastController.isConnected && this.options && (this.selectedOptions = this.options.filter((e) => e.selected), this.focusAndScrollOptionIntoView());
85
- }
86
- toggleSelectedForAllCheckedOptions() {
87
- let e = this.checkedOptions.filter((e) => !e.disabled), t = !e.every((e) => e.selected);
88
- e.forEach((e) => e.selected = t), this.selectedIndex = this.options.indexOf(e[e.length - 1]), this.setSelectedOptions(), this.updateValue(!0);
89
- }
90
- typeaheadBufferChanged(e, t) {
91
- if (!this.multiple) {
92
- super.typeaheadBufferChanged(e, t);
93
- return;
94
- }
95
- /* v8 ignore if -- @preserve */
96
- if (this.$fastController.isConnected) {
97
- let e = this.getTypeaheadMatches(), t = this.options.indexOf(e[0]);
98
- t > -1 && (this.activeIndex = t, this.uncheckAllOptions(), this.checkActiveIndex()), this.typeaheadExpired = !1;
99
- }
100
- }
101
- uncheckAllOptions(e = !1) {
102
- /* v8 ignore else -- @preserve */
103
- this.options.forEach((e) => e.checked = !1), e || (this.rangeStartIndex = -1);
104
- }
105
- openChanged(e, t) {
106
- if (!this.collapsible) return;
107
- if (this.open) {
108
- this.focusAndScrollOptionIntoView(), this.indexWhenOpened = this.selectedIndex, n.enqueue(() => this.focus());
109
- return;
110
- }
111
- let r = e === !0 && t === !1, i = this.indexWhenOpened !== this.selectedIndex;
112
- r && i && this.updateValue(!0);
113
- }
114
- get collapsible() {
115
- return !this.multiple;
116
- }
117
- valueChanged(e, t) {
118
- let n = this.options.findIndex((e) => e.value === t), r = this._validSelectedIndex(n), i = this.options[r]?.value ?? "";
119
- this.selectedIndex !== r && (this.selectedIndex = r), t === i && (super.valueChanged(e, t), this.updateDisplayValue());
120
- }
121
- updateValue(e) {
122
- this.$fastController.isConnected && (this.value = this.firstSelectedOption?.value ?? ""), e && (this.$emit("input"), this.$emit("change", this, {
123
- bubbles: !0,
124
- composed: void 0
125
- }));
126
- }
127
- selectedIndexChanged(e, t) {
128
- super.selectedIndexChanged(e, t), this.updateValue();
129
- }
130
- clickHandler(e) {
131
- if (this.disabled || this._isFromContextualHelp(e)) return;
132
- let t = e.target.closest("option,[role=option],[data-vvd-component=option]");
133
- if (!(t && t.disabled)) return this.multiple ? (this.uncheckAllOptions(), this.activeIndex = this.options.indexOf(t), this.checkActiveIndex(), this.toggleSelectedForAllCheckedOptions()) : super.clickHandler(e), this.collapsible && (this.open = !this.open), !0;
134
- }
135
- focusoutHandler(e) {
136
- if (this.multiple && this.uncheckAllOptions(), !this.open) return !0;
137
- let t = e.relatedTarget;
138
- if (this.isSameNode(t)) {
139
- this.focus();
140
- return;
141
- }
142
- /* v8 ignore else -- @preserve */
143
- this.options.includes(t) || (this.open = !1, this.indexWhenOpened !== this.selectedIndex && this.updateValue(!0));
144
- }
145
- handleChange(e, t) {
146
- super.handleChange(e, t), t === "value" && this.updateValue();
147
- }
148
- mousedownHandler(e) {
149
- return e.offsetX >= 0 && e.offsetX <= this.listbox.scrollWidth ? super.mousedownHandler(e) : this.collapsible;
150
- }
151
- multipleChanged(e, t) {
152
- /* v8 ignore if -- @preserve */
153
- this.options.forEach((e) => {
154
- e.checked = t ? !1 : void 0;
155
- }), this.setSelectedOptions(), this.proxy && (this.proxy.multiple = t);
156
- }
157
- selectedOptionsChanged(e, t) {
158
- super.selectedOptionsChanged(e, t), this.options.forEach((e, t) => {
159
- let n = this.proxy.options.item(t);
160
- n && (n.selected = e.selected);
161
- });
162
- }
163
- setProxyOptions() {
164
- /* v8 ignore else -- @preserve */
165
- this.proxy instanceof HTMLSelectElement && this.options && (this.proxy.length = 0, this.options.forEach((e) => {
166
- let t = e.proxy || (e instanceof HTMLOptionElement ? e.cloneNode() : null);
167
- t && this.proxy.options.add(t);
168
- }));
169
- }
170
- multipleKeydownHandler(e) {
171
- if (this.disabled) return;
172
- let { key: t, shiftKey: n } = e;
173
- switch (this.shouldSkipFocus = !1, t) {
174
- case y:
175
- this.checkFirstOption(n);
176
- return;
177
- case b:
178
- this.checkNextOption(n);
179
- return;
180
- case _:
181
- this.checkPreviousOption(n);
182
- return;
183
- case "End":
184
- this.checkLastOption(n);
185
- return;
186
- case "Tab":
187
- this.focusAndScrollOptionIntoView();
188
- return;
189
- case v:
190
- this.uncheckAllOptions(), this.checkActiveIndex();
191
- return;
192
- case " ":
193
- /* v8 ignore else -- @preserve */
194
- if (e.preventDefault(), this.typeaheadExpired) {
195
- this.toggleSelectedForAllCheckedOptions();
196
- return;
197
- }
198
- default:
199
- /* v8 ignore else -- @preserve */
200
- t.length === 1 && this.handleTypeAhead(`${t}`);
201
- return;
202
- }
203
- }
204
- keydownHandler(e) {
205
- let t = this.selectedIndex;
206
- switch (this.multiple ? this.multipleKeydownHandler(e) : super.keydownHandler(e), e.key) {
207
- case " ":
208
- e.preventDefault(), this.collapsible && this.typeaheadExpired && (this.open = !this.open);
209
- break;
210
- case y:
211
- case "End":
212
- e.preventDefault();
213
- break;
214
- case g:
215
- e.preventDefault(), this.open = !this.open;
216
- break;
217
- case v:
218
- this.collapsible && this.open && (e.preventDefault(), this.open = !1);
219
- break;
220
- case "Tab": return this.collapsible && this.open && (e.preventDefault(), this.open = !1), !0;
221
- }
222
- return this.collapsible && !this.open && this.selectedIndex !== t && this.updateValue(!0), !(e.key === "ArrowDown" || e.key === "ArrowUp");
223
- }
224
- connectedCallback() {
225
- super.connectedCallback(), this.addEventListener("focusout", this.focusoutHandler), this.addEventListener("contentchange", this.updateDisplayValue);
226
- }
227
- disconnectedCallback() {
228
- this.removeEventListener("focusout", this.focusoutHandler), this.removeEventListener("contentchange", this.updateDisplayValue), super.disconnectedCallback();
229
- }
230
- updateDisplayValue() {
231
- this.collapsible && c.notify(this, "displayValue");
232
- }
233
- get displayValue() {
234
- return c.track(this, "displayValue"), this.firstSelectedOption?.getAttribute("label") ?? this.firstSelectedOption?.text ?? this.placeholder ?? "";
235
- }
236
- _newDefaultSelectedIndex(e, t, n) {
237
- let r = super._newDefaultSelectedIndex(e, t, n);
238
- if (r === null && n === -1 && !this.placeholder) {
239
- let e = this.getNextSelectableIndex(0);
240
- if (e !== -1) return e;
241
- }
242
- return r;
243
- }
244
- _isDefaultSelected(e) {
245
- return super._isDefaultSelected(e) || e.value === this.initialValue || !this._isResetting && e.value === this.value;
246
- }
247
- slottedOptionsChanged(e, t) {
248
- this.options.forEach((e) => {
249
- c.getNotifier(e).unsubscribe(this, "value");
250
- }), super.slottedOptionsChanged(e, t), this.options.forEach((e) => {
251
- c.getNotifier(e).subscribe(this, "value");
252
- }), this.setProxyOptions(), this.updateValue();
253
- let n = this.getAttribute("scale") || this.scale;
254
- t.forEach((e) => {
255
- n && (e.setAttribute("scale", n), e.scale = n);
256
- }), this.proxy.value = this.value, this.validate();
257
- }
258
- formResetCallback() {
259
- this.setProxyOptions(), this._isResetting = !0, this.selectedIndex = this._newDefaultSelectedIndex([], this.options, -1) ?? -1, this._isResetting = !1;
260
- }
261
- get _shouldShowClearButton() {
262
- return this.clearable ? this.multiple ? this.selectedOptions?.length > 0 : this.value !== "" : !1;
263
- }
264
- _onClearButtonFocus() {
265
- this._isClearButtonFocused = !0, this.activeIndex = -1, this.uncheckAllOptions();
266
- }
267
- _onClearButtonBlur() {
268
- this._isClearButtonFocused = !1;
269
- }
270
- get _shouldShowLabelWrapper() {
271
- return !!(this.label || this._hasContextualHelp || this.multiple && this._shouldShowClearButton);
272
- }
273
- _onClearButtonClick() {
274
- this.multiple ? this.selectedOptions?.forEach((e) => {
275
- /* v8 ignore else -- @preserve */
276
- e.disabled || (e.selected = !1);
277
- }) : this.selectedIndex = -1, this.updateValue(!0);
278
- }
279
- };
280
- p([r], H.prototype, "activeIndex", void 0), p([a({ mode: "boolean" })], H.prototype, "multiple", void 0), p([a({
281
- attribute: "open",
282
- mode: "boolean"
283
- })], H.prototype, "open", void 0), p([t], H.prototype, "collapsible", null), p([r], H.prototype, "control", void 0), p([r], H.prototype, "maxHeight", void 0), p([r], H.prototype, "_anchor", void 0), p([a()], H.prototype, "scale", void 0), p([a], H.prototype, "appearance", void 0), p([a], H.prototype, "shape", void 0), p([a({
284
- mode: "boolean",
285
- attribute: "fixed-dropdown"
286
- })], H.prototype, "fixedDropdown", void 0), p([a], H.prototype, "placeholder", void 0), p([r], H.prototype, "_feedbackWrapper", void 0), p([r], H.prototype, "metaSlottedContent", void 0), p([a({ mode: "boolean" })], H.prototype, "clearable", void 0), p([r], H.prototype, "_isClearButtonFocused", void 0);
1
+ import { d as e, o as t, s as n } from "./vivid-element.js";
2
+ import { t as r } from "./class-names.js";
3
+ import { n as i } from "./host-semantics.js";
4
+ import { n as a, t as o } from "./divider.js";
287
5
  //#endregion
288
- //#region src/lib/select/select.scss?inline
289
- var U = ".label-wrapper{align-items:center;gap:var(--label-wrapper-gap,4px);flex-direction:row;display:flex}.label-wrapper[hidden]{display:none}.label:not(slot),.label::slotted(label){flex:0 auto}.chevron{font:var(--vvd-typography-base-extended);flex-shrink:0;transition:transform .2s;display:flex;transform:rotate(0)}:host([data-expanded=true]) .chevron,:host([open]) .chevron{transform:rotate(180deg)}:host(:focus-visible){outline:none}:host{--_low-ink-color:var(--vvd-color-neutral-600);--focus-stroke-gap-color:transparent;flex-direction:column;gap:4px;display:inline-flex}:host([disabled]){--_low-ink-color:var(--vvd-color-neutral-400);cursor:not-allowed}.label{color:var(--vvd-color-canvas-text);font:var(--vvd-typography-base)}.control{--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-500)}.control.appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}@media (hover:hover){.control:hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.control:hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}}.control.hover:where(:not(.disabled,:disabled,.readonly)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-canvas);--_appearance-color-outline:var(--vvd-color-neutral-700)}.control.hover:where(:not(.disabled,:disabled,.readonly)).appearance-ghost{--_appearance-color-text:var(--_connotation-color-firm);--_appearance-color-fill:var(--_connotation-color-faint);--_appearance-color-outline:transparent}.control:disabled{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.control:disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.control.disabled{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:var(--vvd-color-neutral-100);--_appearance-color-outline:var(--vvd-color-neutral-300)}.control.disabled.appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-300);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.control.readonly:where(:not(.disabled,:disabled)){--_appearance-color-text:var(--vvd-color-canvas-text);--_appearance-color-fill:var(--vvd-color-neutral-200);--_appearance-color-outline:var(--vvd-color-neutral-400)}.control.readonly:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:var(--vvd-color-neutral-600);--_appearance-color-fill:transparent;--_appearance-color-outline:transparent}.control.error:where(:not(.disabled,:disabled)){--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:var(--vvd-color-alert-500)}.control.error:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-alert-50);--_appearance-color-outline:transparent}.control.success:where(:not(.disabled,:disabled)){--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:var(--vvd-color-success-500)}.control.success:where(:not(.disabled,:disabled)).appearance-ghost{--_appearance-color-text:notSet;--_appearance-color-fill:var(--vvd-color-success-50);--_appearance-color-outline:transparent}.control{--_connotation-color-primary:var(--vvd-select-accent-primary,var(--vvd-color-canvas-text));--_connotation-color-primary-text:var(--vvd-select-accent-primary-text,var(--vvd-color-canvas));--_connotation-color-primary-increment:var(--vvd-select-accent-primary-increment,var(--vvd-color-neutral-800));--_connotation-color-intermediate:var(--vvd-select-accent-intermediate,var(--vvd-color-neutral-500));--_connotation-color-faint:var(--vvd-select-accent-faint,var(--vvd-color-neutral-50));--_connotation-color-soft:var(--vvd-select-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-firm:var(--vvd-select-accent-firm,var(--vvd-color-canvas-text));--_connotation-color-fierce:var(--vvd-select-accent-fierce,var(--vvd-color-neutral-700));border-radius:var(--_select-control-border-radius);block-size:var(--_select-block-size);padding-inline:var(--_select-padding-inline);--_select-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2);--_select-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)));--_select-padding-inline:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);color:var(--_appearance-color-text);font:var(--vvd-typography-base);justify-content:space-between;align-items:center;gap:8px;transition:box-shadow .2s,background-color .2s;display:flex}.control.size-condensed{--_select-icon-size:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2))) / 2.5);--_select-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8));--_select-padding-inline:calc(calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16)) / 2)}.control.size-condensed:not(.shape-pill){--_select-control-border-radius:4px}.control-wrapper{position:relative}.control:not(.disabled){cursor:pointer}.control.disabled{pointer-events:none}.control:not(.shape-pill){--_select-control-border-radius:8px}.control.shape-pill{--_select-control-border-radius:24px}.listbox{max-height:var(--select-height,408px);flex-direction:column;gap:2px;padding:4px;display:flex;overflow-y:auto}:host([multiple]:focus-visible) .listbox{box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));border-radius:8px}.selected-value{white-space:nowrap;flex-grow:1;align-items:center;column-gap:12px;display:flex;overflow:hidden}.selected-value .text{text-overflow:ellipsis;max-inline-size:100%;overflow:hidden}.control.shows-placeholder .selected-value .text{color:var(--vvd-color-neutral-600)}.selected-value slot[name=icon]{flex:0 0 var(--_select-icon-size);font-size:var(--_select-icon-size);line-height:1}.control.has-meta .selected-value{padding-inline-end:8px}.feedback-wrapper{display:contents}::part(popup-base){inline-size:max-content;min-inline-size:var(--_select-fixed-width,100%)}:host([multiple]) ::part(popup-base){position:static}@supports selector(:has(*)){:host(:focus-within) .control:not(.has-activedescendant,:has(.clear-button:focus)){--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}@supports not selector(:has(*)){:host(:focus-within) .control:not(.has-activedescendant){--focus-stroke-gap-color:transparent;box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px))}}:host(:not([multiple])) ::slotted([data-vvd-component=option][current-selected]){box-shadow:0 0 0 4px color-mix(in srgb, var(--focus-stroke-color,var(--vvd-color-cta-500)), transparent 85%), inset 0 0 0 3px var(--focus-stroke-gap-color,currentColor);outline:1px solid var(--focus-stroke-color,var(--vvd-color-cta-500));outline-offset:calc(-1px - var(--focus-inset,0px));--focus-stroke-gap-color:transparent;border-radius:8px}:host([multiple]) .clear-button{margin-inline-start:auto}:host([multiple][clearable]) .label-wrapper{min-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}", W = ({ shape: e, disabled: t, appearance: n, metaSlottedContent: r, errorValidationMessage: i, successText: a, placeholder: o, value: s, scale: c, _activeDescendant: l, open: u }) => h(["has-activedescendant", !!l && u], ["disabled", t], [`appearance-${n}`, !!n], [`shape-${e}`, !!e], ["has-meta", !!r?.length], ["error", !!i], ["success", !!a], ["shows-placeholder", !!o && !s], [`size-${c}`, !!c]);
290
- function G() {
291
- return i` <label
292
- for="${(e) => e.multiple ? null : "control"}"
293
- class="label"
294
- id="label"
295
- >
296
- ${(e) => e.label}
297
- </label>`;
298
- }
299
- function K(e) {
300
- let t = e.tagFor(B);
301
- return i`
302
- <${t} text="${(e) => e.placeholder}" hidden disabled>
303
- </${t}>`;
304
- }
305
- function q(e) {
306
- let t = e.tagFor(j);
307
- return i`
308
- <${t}
309
- aria-label="${(e) => e.locale.select.clearButtonLabel}"
310
- aria-hidden="${(e) => e._isClearButtonFocused ? "false" : "true"}"
311
- @click="${(e, t) => {
312
- e._onClearButtonClick(), t.event.stopPropagation();
313
- }}"
314
- @mousedown="${() => !1}"
315
- @keydown="${(e, t) => (t.event.key === "Tab" && e._onClearButtonBlur(), t.event.stopPropagation(), !0)}"
316
- @focusin="${(e, t) => {
317
- t.event.stopPropagation(), e._onClearButtonFocus();
318
- }}"
319
- @focusout="${(e) => e._onClearButtonBlur()}"
320
- ?disabled="${(e) => e.disabled}"
321
- :shape="${(e) => e.shape}"
322
- size="super-condensed"
323
- icon="close-line"
324
- appearance="ghost-light"
325
- class="clear-button"
326
- tabindex="0"
327
- ></${t}>
328
- `;
329
- }
330
- function J(e) {
331
- let t = C(e), n = M(e);
332
- return i` <div
333
- class="control ${W}"
334
- ${l("_anchor")}
335
- id="control"
336
- ?disabled="${(e) => e.disabled}"
337
- >
338
- <div class="selected-value">
339
- ${(e) => t(e.icon, w.Slot)}
340
- <span class="text">${(e) => e.displayValue}</span>
341
- <slot name="meta" ${d("metaSlottedContent")}></slot>
342
- </div>
343
- ${u((e) => e._shouldShowClearButton, q(e))}
344
- ${n}
345
- </div>`;
346
- }
347
- function Y(e) {
348
- return e.open && e.fixedDropdown ? `--_select-fixed-width: ${Math.round(e.getBoundingClientRect().width)}px` : null;
349
- }
350
- function X(e) {
351
- let t = e.tagFor(F);
352
- return i`
353
- <div class="label-wrapper" ?hidden=${(e) => !e._shouldShowLabelWrapper}>
354
- ${u((e) => e.label, G())}
355
- ${u((e) => e.multiple && e._shouldShowClearButton, q(e))}
356
- <slot name="contextual-help" ${d("_contextualHelpSlottedContent")}></slot>
357
- </div>
358
- <div class="control-wrapper">
359
- ${u((e) => !e.multiple, J(e))}
360
- <${t} class="popup"
361
- style="${Y}"
362
- ?open="${(e) => e.collapsible ? e.open : !0}"
363
- :anchor="${(e) => e._anchor}"
364
- placement="bottom-start"
365
- strategy="${(e) => e.fixedDropdown ? null : "absolute"}">
366
- <div class="listbox"
367
- id="${(e) => e.listboxId}"
368
- role="listbox"
369
- aria-multiselectable="${(e) => e.multiple}"
370
- aria-label="${(e) => e.multiple && !e.label && e.ariaLabel ? e.ariaLabel : null}"
371
- aria-labelledby="${(e) => e.multiple && e.label ? "label" : null}"
372
- ?disabled="${(e) => e.disabled}"
373
- ?hidden="${(e) => e.collapsible ? !e.open : !1}"
374
- ${l("listbox")}>
375
- ${u((e) => e.placeholder, K(e))}
376
- <slot
377
- ${d({
378
- filter: m.slottedOptionFilter,
379
- flatten: !0,
380
- property: "slottedOptions"
381
- })}>
382
- </slot>
383
- </div>
384
- </${t}>
385
- </div>
386
- `;
387
- }
388
- function Z(e) {
389
- return (t, n) => n.event.composedPath().includes(t._feedbackWrapper) ? !0 : e(t, n.event);
390
- }
391
- //#endregion
392
- //#region src/lib/select/definition.ts
393
- var Q = o("select", H, (e) => i`
394
- <template
395
- ${L({
396
- role: "combobox",
397
- ariaLabel: (e) => e.ariaLabel ?? e.label,
398
- ariaHasPopup: (e) => e.collapsible ? "listbox" : "false",
399
- ariaExpanded: (e) => e.open,
400
- ariaDisabled: (e) => e.disabled
6
+ //#region src/lib/divider/definition.ts
7
+ var s = t("divider", o, e`<template
8
+ ${i({
9
+ role: (e) => e.role || a.separator,
10
+ ariaHidden: !0,
11
+ ariaOrientation: ({ role: e, orientation: t }) => e === a.presentation ? null : t
401
12
  })}
402
- aria-controls="${(e) => e.listboxId}"
403
- aria-activedescendant="${(e) => e.open ? e._activeDescendant : null}"
404
- aria-describedby="${(e) => e._feedbackDescribedBy}"
405
- tabindex="${(e) => e.disabled ? null : "0"}"
406
- @click="${Z((e, t) => e.clickHandler(t))}"
407
- @focusin="${Z((e, t) => e.focusinHandler(t))}"
408
- @focusout="${Z((e, t) => e.focusoutHandler(t))}"
409
- @keydown="${Z((e, t) => (e.open && P(t), e.keydownHandler(t)))}"
410
- @mousedown="${Z((e, t) => e.mousedownHandler(t))}"
411
- >
412
- ${X(e)}
413
- <div class="feedback-wrapper" ${l("_feedbackWrapper")}>
414
- ${(t) => t._getFeedbackTemplate(e)}
415
- </div>
416
- </template>
417
- `, [
418
- I,
419
- f,
420
- V,
421
- N,
422
- R
423
- ], { styles: U }), $ = s(Q);
13
+ >
14
+ <span class="${({ orientation: e, appearance: t }) => r("base", [`${e}`, !!e], [`appearance-${t}`, !!t])}"></span
15
+ ></template>`, [], { styles: ":host{display:block}.base{--_connotation-color-soft:var(--vvd-divider-accent-soft,var(--vvd-color-neutral-100));--_connotation-color-dim:var(--vvd-divider-accent-dim,var(--vvd-color-neutral-200));display:block}.base:not(.vertical){block-size:1px;inline-size:100%}.base.vertical{block-size:100%;inline-size:1px}.base.appearance-ghost{background-color:var(--_connotation-color-dim)}.base.appearance-subtle{background-color:var(--_connotation-color-soft)}" }), c = n(s);
424
16
  //#endregion
425
- export { Q as n, H as r, $ as t };
17
+ export { c as n, s as t };
@@ -1,4 +1,4 @@
1
- const e=require(`./vivid-element.cjs`),t=require(`./when.cjs`),n=require(`./definition.cjs`),r=require(`./decorate.cjs`),i=require(`./class-names.cjs`);var a=`:host{vertical-align:sub;display:inline-block}.control.connotation-accent{--_connotation-color-primary:var(--vvd-icon-accent-primary,var(--vvd-color-canvas-text))}.control.connotation-announcement{--_connotation-color-primary:var(--vvd-icon-announcement-primary,var(--vvd-color-announcement-500))}.control.connotation-cta{--_connotation-color-primary:var(--vvd-icon-cta-primary,var(--vvd-color-cta-500))}.control.connotation-success{--_connotation-color-primary:var(--vvd-icon-success-primary,var(--vvd-color-success-500))}.control.connotation-warning{--_connotation-color-primary:var(--vvd-icon-warning-primary,var(--vvd-color-warning-300))}.control.connotation-alert{--_connotation-color-primary:var(--vvd-icon-alert-primary,var(--vvd-color-alert-500))}.control.connotation-information{--_connotation-color-primary:var(--vvd-icon-information-primary,var(--vvd-color-information-500))}.control.size--6{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)) - 1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 20))}.control.size--4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 12))}.control.size--2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8))}.control.size--1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 4))}.control.size-0{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)))}.control.size-1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 4))}.control.size-2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8))}.control.size-3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 12))}.control.size-4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 16))}.control.size-5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 20))}.control:not(.size--6,.size--5,.size--4,.size--3,.size--2,.size--1,.size-0,.size-1,.size-2,.size-3,.size-4,.size-5){--_icon-block-size:1em}.control{margin:unset;block-size:var(--_icon-block-size);color:currentColor;contain:strict;inline-size:var(--_icon-block-size);display:flex}.control[class*=connotation]{color:var(--_connotation-color-primary)}slot,svg,::slotted(:where(svg,img)){block-size:inherit;inline-size:inherit;margin:auto}`,o=`4.9.0`,s=`https://icon.resources.vonage.com`,c=o;`${s}${c}`;var l={toView(e){return e===void 0?null:e.toString()},fromView(e){if(typeof e==`string`&&(e=parseFloat(e.toString())),typeof e==`number`)return isNaN(e)||!isFinite(e)?void 0:e}},u=`<svg width="80%" height="80%" viewBox="0 0 64 64">
1
+ const e=require(`./vivid-element.cjs`),t=require(`./when.cjs`),n=require(`./definition.cjs`),r=require(`./decorate.cjs`),i=require(`./class-names.cjs`);var a=`4.10.0`,o=`https://icon.resources.vonage.com`,s=a;`${o}${s}`;var c={toView(e){return e===void 0?null:e.toString()},fromView(e){if(typeof e==`string`&&(e=parseFloat(e.toString())),typeof e==`number`)return isNaN(e)||!isFinite(e)?void 0:e}},l=`<svg width="80%" height="80%" viewBox="0 0 64 64">
2
2
  <g>
3
3
  <g stroke-width="6" stroke-linecap="round" fill="none">
4
4
  <path stroke="currentColor" d="M4,32 c0,15,12,28,28,28c8,0,16-4,21-9">
@@ -9,7 +9,7 @@ const e=require(`./vivid-element.cjs`),t=require(`./when.cjs`),n=require(`./defi
9
9
  </animateTransform>
10
10
  </g>
11
11
  </g>
12
- </svg>`,d=500,f=2e3,p=(e,t)=>[s,`v${t}`,e].join(`/`),m=({ok:e,headers:t})=>{if(!e||t.get(`content-type`)!==`image/svg+xml`)throw Error(`Something went wrong`)},h=e=>(m(e),e.text()),g=(e,t)=>fetch(p(`${e}.svg`,c),{signal:t}).then(h),_=e=>(e??``).trim(),v=new Map,y=(e,t)=>{let n=_(e);if(!n)return Promise.resolve(``);let r=v.get(n);if(r&&!r.signal?.aborted)return r.promise;let i=g(n,t).then(e=>{let r=v.get(n);if(r&&r.promise===i&&t.aborted)throw v.delete(n),t.reason??new DOMException(`Aborted`,`AbortError`);return e}).catch(e=>{let t=v.get(n);throw t&&t.promise===i&&v.delete(n),e});return v.set(n,{promise:i,signal:t}),i},b=class extends e.t{constructor(...e){super(...e),this.iconLoaded=!1}#e=0;#t=null;async nameChanged(){let e=++this.#e;this.#t&&this.#t.abort(),this.#t=new AbortController,this._svg=void 0,this.iconLoaded=!1;let t=setTimeout(()=>{this.#e===e&&(this._svg=u,t=setTimeout(()=>{this.#e===e&&this._svg===u&&(this._svg=void 0)},f))},d);try{let t=await y(this.name,this.#t.signal);this.#e===e&&(this._svg=t)}catch{this.#e===e&&(this._svg=void 0)}finally{this.#e===e&&(clearTimeout(t),this.iconLoaded=!0)}}};r.t([e.l],b.prototype,`connotation`,void 0),r.t([e.l({converter:l})],b.prototype,`size`,void 0),r.t([e.T],b.prototype,`_svg`,void 0),r.t([e.T],b.prototype,`iconLoaded`,void 0),r.t([e.l],b.prototype,`label`,void 0),r.t([e.l],b.prototype,`name`,void 0);var x=({connotation:e,size:t})=>i.t(`control`,[`connotation-${e}`,!!e],[`size-${t}`,typeof t==`number`]),S=e.o(`icon`,b,r=>{let i=r.tagFor(n.r),a=e=>!e.label||e.label.trim().length===0;return e.d`
12
+ </svg>`,u=500,d=2e3,f=(e,t)=>[o,`v${t}`,e].join(`/`),p=({ok:e,headers:t})=>{if(!e||t.get(`content-type`)!==`image/svg+xml`)throw Error(`Something went wrong`)},m=e=>(p(e),e.text()),h=(e,t)=>fetch(f(`${e}.svg`,s),{signal:t}).then(m),g=e=>(e??``).trim(),_=new Map,v=(e,t)=>{let n=g(e);if(!n)return Promise.resolve(``);let r=_.get(n);if(r&&!r.signal?.aborted)return r.promise;let i=h(n,t).then(e=>{let r=_.get(n);if(r&&r.promise===i&&t.aborted)throw _.delete(n),t.reason??new DOMException(`Aborted`,`AbortError`);return e}).catch(e=>{let t=_.get(n);throw t&&t.promise===i&&_.delete(n),e});return _.set(n,{promise:i,signal:t}),i},y=class extends e.t{constructor(...e){super(...e),this.iconLoaded=!1}#e=0;#t=null;async nameChanged(){let e=++this.#e;this.#t&&this.#t.abort(),this.#t=new AbortController,this._svg=void 0,this.iconLoaded=!1;let t=setTimeout(()=>{this.#e===e&&(this._svg=l,t=setTimeout(()=>{this.#e===e&&this._svg===l&&(this._svg=void 0)},d))},u);try{let t=await v(this.name,this.#t.signal);this.#e===e&&(this._svg=t)}catch{this.#e===e&&(this._svg=void 0)}finally{this.#e===e&&(clearTimeout(t),this.iconLoaded=!0)}}};r.t([e.l],y.prototype,`connotation`,void 0),r.t([e.l({converter:c})],y.prototype,`size`,void 0),r.t([e.T],y.prototype,`_svg`,void 0),r.t([e.T],y.prototype,`iconLoaded`,void 0),r.t([e.l],y.prototype,`label`,void 0),r.t([e.l],y.prototype,`name`,void 0);var b=`:host{vertical-align:sub;display:inline-block}.control.connotation-accent{--_connotation-color-primary:var(--vvd-icon-accent-primary,var(--vvd-color-canvas-text))}.control.connotation-announcement{--_connotation-color-primary:var(--vvd-icon-announcement-primary,var(--vvd-color-announcement-500))}.control.connotation-cta{--_connotation-color-primary:var(--vvd-icon-cta-primary,var(--vvd-color-cta-500))}.control.connotation-success{--_connotation-color-primary:var(--vvd-icon-success-primary,var(--vvd-color-success-500))}.control.connotation-warning{--_connotation-color-primary:var(--vvd-icon-warning-primary,var(--vvd-color-warning-300))}.control.connotation-alert{--_connotation-color-primary:var(--vvd-icon-alert-primary,var(--vvd-color-alert-500))}.control.connotation-information{--_connotation-color-primary:var(--vvd-icon-information-primary,var(--vvd-color-information-500))}.control.size--6{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)) - 1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 20))}.control.size--4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 12))}.control.size--2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8))}.control.size--1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 4))}.control.size-0{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)))}.control.size-1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 4))}.control.size-2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8))}.control.size-3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 12))}.control.size-4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 16))}.control.size-5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 20))}.control:not(.size--6,.size--5,.size--4,.size--3,.size--2,.size--1,.size-0,.size-1,.size-2,.size-3,.size-4,.size-5){--_icon-block-size:1em}.control{margin:unset;block-size:var(--_icon-block-size);color:currentColor;contain:strict;inline-size:var(--_icon-block-size);display:flex}.control[class*=connotation]{color:var(--_connotation-color-primary)}slot,svg,::slotted(:where(svg,img)){block-size:inherit;inline-size:inherit;margin:auto}`,x=({connotation:e,size:t})=>i.t(`control`,[`connotation-${e}`,!!e],[`size-${t}`,typeof t==`number`]),S=e.o(`icon`,y,r=>{let i=r.tagFor(n.r),a=e=>!e.label||e.label.trim().length===0;return e.d`
13
13
  <figure
14
14
  class="${x}"
15
15
  ?aria-hidden="${e=>a(e)}"
@@ -20,4 +20,4 @@ const e=require(`./vivid-element.cjs`),t=require(`./when.cjs`),n=require(`./defi
20
20
  </slot>
21
21
  <${i} class="label">${e=>e?.label}</${i}>
22
22
  </figure>
23
- `},[n.n],{styles:a}),C=e.s(S);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return S}});
23
+ `},[n.n],{styles:b}),C=e.s(S);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return C}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return y}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return S}});
@@ -3,42 +3,42 @@ import { t as o } from "./when.js";
3
3
  import { n as s, r as c } from "./definition.js";
4
4
  import { t as l } from "./decorate.js";
5
5
  import { t as u } from "./class-names.js";
6
- //#region src/lib/icon/icon.scss?inline
7
- var d = ":host{vertical-align:sub;display:inline-block}.control.connotation-accent{--_connotation-color-primary:var(--vvd-icon-accent-primary,var(--vvd-color-canvas-text))}.control.connotation-announcement{--_connotation-color-primary:var(--vvd-icon-announcement-primary,var(--vvd-color-announcement-500))}.control.connotation-cta{--_connotation-color-primary:var(--vvd-icon-cta-primary,var(--vvd-color-cta-500))}.control.connotation-success{--_connotation-color-primary:var(--vvd-icon-success-primary,var(--vvd-color-success-500))}.control.connotation-warning{--_connotation-color-primary:var(--vvd-icon-warning-primary,var(--vvd-color-warning-300))}.control.connotation-alert{--_connotation-color-primary:var(--vvd-icon-alert-primary,var(--vvd-color-alert-500))}.control.connotation-information{--_connotation-color-primary:var(--vvd-icon-information-primary,var(--vvd-color-information-500))}.control.size--6{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)) - 1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 20))}.control.size--4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 12))}.control.size--2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8))}.control.size--1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 4))}.control.size-0{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)))}.control.size-1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 4))}.control.size-2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8))}.control.size-3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 12))}.control.size-4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 16))}.control.size-5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 20))}.control:not(.size--6,.size--5,.size--4,.size--3,.size--2,.size--1,.size-0,.size-1,.size-2,.size-3,.size-4,.size-5){--_icon-block-size:1em}.control{margin:unset;block-size:var(--_icon-block-size);color:currentColor;contain:strict;inline-size:var(--_icon-block-size);display:flex}.control[class*=connotation]{color:var(--_connotation-color-primary)}slot,svg,::slotted(:where(svg,img)){block-size:inherit;inline-size:inherit;margin:auto}", f = "4.9.0", p = "https://icon.resources.vonage.com", m = f;
8
- `${p}${m}`;
6
+ //#region ../icons/dist/index.mjs
7
+ var d = "4.10.0", f = "https://icon.resources.vonage.com", p = d;
8
+ `${f}${p}`;
9
9
  //#endregion
10
10
  //#region src/shared/utils/numberConverter.ts
11
- var h = {
11
+ var m = {
12
12
  toView(e) {
13
13
  return e === void 0 ? null : e.toString();
14
14
  },
15
15
  fromView(e) {
16
16
  if (typeof e == "string" && (e = parseFloat(e.toString())), typeof e == "number") return isNaN(e) || !isFinite(e) ? void 0 : e;
17
17
  }
18
- }, g = "<svg width=\"80%\" height=\"80%\" viewBox=\"0 0 64 64\">\n <g>\n <g stroke-width=\"6\" stroke-linecap=\"round\" fill=\"none\">\n <path stroke=\"currentColor\" d=\"M4,32 c0,15,12,28,28,28c8,0,16-4,21-9\">\n </path>\n <path d=\"M60,32 C60,16,47.464,4,32,4S4,16,4,32\">\n </path>\n <animateTransform values=\"0,32,32;360,32,32\" attributeName=\"transform\" type=\"rotate\" repeatCount=\"indefinite\" dur=\"750ms\">\n </animateTransform>\n </g>\n </g>\n</svg>", _ = 500, v = 2e3, y = (e, t) => [
19
- p,
18
+ }, h = "<svg width=\"80%\" height=\"80%\" viewBox=\"0 0 64 64\">\n <g>\n <g stroke-width=\"6\" stroke-linecap=\"round\" fill=\"none\">\n <path stroke=\"currentColor\" d=\"M4,32 c0,15,12,28,28,28c8,0,16-4,21-9\">\n </path>\n <path d=\"M60,32 C60,16,47.464,4,32,4S4,16,4,32\">\n </path>\n <animateTransform values=\"0,32,32;360,32,32\" attributeName=\"transform\" type=\"rotate\" repeatCount=\"indefinite\" dur=\"750ms\">\n </animateTransform>\n </g>\n </g>\n</svg>", g = 500, _ = 2e3, v = (e, t) => [
19
+ f,
20
20
  `v${t}`,
21
21
  e
22
- ].join("/"), b = ({ ok: e, headers: t }) => {
22
+ ].join("/"), y = ({ ok: e, headers: t }) => {
23
23
  if (!e || t.get("content-type") !== "image/svg+xml") throw Error("Something went wrong");
24
- }, x = (e) => (b(e), e.text()), S = (e, t) => fetch(y(`${e}.svg`, m), { signal: t }).then(x), C = (e) => (e ?? "").trim(), w = /* @__PURE__ */ new Map(), T = (e, t) => {
25
- let n = C(e);
24
+ }, b = (e) => (y(e), e.text()), x = (e, t) => fetch(v(`${e}.svg`, p), { signal: t }).then(b), S = (e) => (e ?? "").trim(), C = /* @__PURE__ */ new Map(), w = (e, t) => {
25
+ let n = S(e);
26
26
  if (!n) return Promise.resolve("");
27
- let r = w.get(n);
27
+ let r = C.get(n);
28
28
  if (r && !r.signal?.aborted) return r.promise;
29
- let i = S(n, t).then((e) => {
30
- let r = w.get(n);
31
- if (r && r.promise === i && t.aborted) throw w.delete(n), t.reason ?? new DOMException("Aborted", "AbortError");
29
+ let i = x(n, t).then((e) => {
30
+ let r = C.get(n);
31
+ if (r && r.promise === i && t.aborted) throw C.delete(n), t.reason ?? new DOMException("Aborted", "AbortError");
32
32
  return e;
33
33
  }).catch((e) => {
34
- let t = w.get(n);
35
- throw t && t.promise === i && w.delete(n), e;
34
+ let t = C.get(n);
35
+ throw t && t.promise === i && C.delete(n), e;
36
36
  });
37
- return w.set(n, {
37
+ return C.set(n, {
38
38
  promise: i,
39
39
  signal: t
40
40
  }), i;
41
- }, E = class extends a {
41
+ }, T = class extends a {
42
42
  constructor(...e) {
43
43
  super(...e), this.iconLoaded = !1;
44
44
  }
@@ -49,13 +49,13 @@ var h = {
49
49
  this.#t && this.#t.abort(), this.#t = new AbortController(), this._svg = void 0, this.iconLoaded = !1;
50
50
  let t = setTimeout(() => {
51
51
  /* v8 ignore else -- @preserve */
52
- this.#e === e && (this._svg = g, t = setTimeout(() => {
52
+ this.#e === e && (this._svg = h, t = setTimeout(() => {
53
53
  /* v8 ignore else -- @preserve */
54
- this.#e === e && this._svg === g && (this._svg = void 0);
55
- }, v));
56
- }, _);
54
+ this.#e === e && this._svg === h && (this._svg = void 0);
55
+ }, _));
56
+ }, g);
57
57
  try {
58
- let t = await T(this.name, this.#t.signal);
58
+ let t = await w(this.name, this.#t.signal);
59
59
  /* v8 ignore else -- @preserve */
60
60
  this.#e === e && (this._svg = t);
61
61
  } catch {
@@ -65,10 +65,10 @@ var h = {
65
65
  }
66
66
  }
67
67
  };
68
- l([n], E.prototype, "connotation", void 0), l([n({ converter: h })], E.prototype, "size", void 0), l([e], E.prototype, "_svg", void 0), l([e], E.prototype, "iconLoaded", void 0), l([n], E.prototype, "label", void 0), l([n], E.prototype, "name", void 0);
68
+ l([n], T.prototype, "connotation", void 0), l([n({ converter: m })], T.prototype, "size", void 0), l([e], T.prototype, "_svg", void 0), l([e], T.prototype, "iconLoaded", void 0), l([n], T.prototype, "label", void 0), l([n], T.prototype, "name", void 0);
69
69
  //#endregion
70
- //#region src/lib/icon/icon.template.ts
71
- var D = ({ connotation: e, size: t }) => u("control", [`connotation-${e}`, !!e], [`size-${t}`, typeof t == "number"]), O = r("icon", E, (e) => {
70
+ //#region src/lib/icon/icon.scss?inline
71
+ var E = ":host{vertical-align:sub;display:inline-block}.control.connotation-accent{--_connotation-color-primary:var(--vvd-icon-accent-primary,var(--vvd-color-canvas-text))}.control.connotation-announcement{--_connotation-color-primary:var(--vvd-icon-announcement-primary,var(--vvd-color-announcement-500))}.control.connotation-cta{--_connotation-color-primary:var(--vvd-icon-cta-primary,var(--vvd-color-cta-500))}.control.connotation-success{--_connotation-color-primary:var(--vvd-icon-success-primary,var(--vvd-color-success-500))}.control.connotation-warning{--_connotation-color-primary:var(--vvd-icon-warning-primary,var(--vvd-color-warning-300))}.control.connotation-alert{--_connotation-color-primary:var(--vvd-icon-alert-primary,var(--vvd-color-alert-500))}.control.connotation-information{--_connotation-color-primary:var(--vvd-icon-information-primary,var(--vvd-color-information-500))}.control.size--6{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)) - 1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 20))}.control.size--4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 16))}.control.size--3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 12))}.control.size--2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 8))}.control.size--1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) - 4))}.control.size-0{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2)))}.control.size-1{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 4))}.control.size-2{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 8))}.control.size-3{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 12))}.control.size-4{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 16))}.control.size-5{--_icon-block-size:calc(1px * (40 + 4 * clamp(-1, var(--vvd-size-density,0), 2) + 20))}.control:not(.size--6,.size--5,.size--4,.size--3,.size--2,.size--1,.size-0,.size-1,.size-2,.size-3,.size-4,.size-5){--_icon-block-size:1em}.control{margin:unset;block-size:var(--_icon-block-size);color:currentColor;contain:strict;inline-size:var(--_icon-block-size);display:flex}.control[class*=connotation]{color:var(--_connotation-color-primary)}slot,svg,::slotted(:where(svg,img)){block-size:inherit;inline-size:inherit;margin:auto}", D = ({ connotation: e, size: t }) => u("control", [`connotation-${e}`, !!e], [`size-${t}`, typeof t == "number"]), O = r("icon", T, (e) => {
72
72
  let n = e.tagFor(c), r = (e) => !e.label || e.label.trim().length === 0;
73
73
  return t`
74
74
  <figure
@@ -82,6 +82,6 @@ var D = ({ connotation: e, size: t }) => u("control", [`connotation-${e}`, !!e],
82
82
  <${n} class="label">${(e) => e?.label}</${n}>
83
83
  </figure>
84
84
  `;
85
- }, [s], { styles: d }), k = i(O);
85
+ }, [s], { styles: E }), k = i(O);
86
86
  //#endregion
87
- export { k as n, E as r, O as t };
87
+ export { k as n, T as r, O as t };