@vonage/vivid 4.14.0 → 4.14.1

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 (207) hide show
  1. package/custom-elements.json +130 -23
  2. package/lib/elevation/elevation.d.ts +1 -0
  3. package/lib/radio/radio.form-associated.d.ts +2 -0
  4. package/lib/tabs/tabs.d.ts +0 -5
  5. package/lib/text-anchor/text-anchor.d.ts +2 -2
  6. package/lib/tree-item/tree-item.d.ts +2 -2
  7. package/lib/tree-view/tree-view.d.ts +2 -2
  8. package/listbox/index.cjs +4 -4
  9. package/listbox/index.js +1 -1
  10. package/package.json +1 -1
  11. package/shared/affix.cjs +8 -8
  12. package/shared/affix.js +1 -1
  13. package/shared/anchor.cjs +10 -10
  14. package/shared/anchor.js +1 -1
  15. package/shared/anchored.cjs +6 -6
  16. package/shared/anchored.js +1 -1
  17. package/shared/apply-mixins.cjs +3 -3
  18. package/shared/apply-mixins.js +1 -1
  19. package/shared/apply-mixins2.cjs +3 -3
  20. package/shared/apply-mixins2.js +1 -1
  21. package/shared/applyMixinsWithObservables.cjs +3 -3
  22. package/shared/applyMixinsWithObservables.js +1 -1
  23. package/shared/aria-global.cjs +20 -20
  24. package/shared/aria-global.js +1 -1
  25. package/shared/aria-global2.cjs +40 -40
  26. package/shared/aria-global2.js +2 -2
  27. package/shared/base-progress.cjs +7 -8
  28. package/shared/base-progress.js +2 -3
  29. package/shared/breadcrumb-item.cjs +2 -3
  30. package/shared/breadcrumb-item.js +1 -2
  31. package/shared/button.cjs +10 -11
  32. package/shared/button.js +1 -2
  33. package/shared/calendar-event.cjs +7 -8
  34. package/shared/calendar-event.js +1 -2
  35. package/shared/children.cjs +2 -2
  36. package/shared/children.js +1 -1
  37. package/shared/definition.cjs +14 -15
  38. package/shared/definition.js +1 -2
  39. package/shared/definition10.cjs +5 -6
  40. package/shared/definition10.js +1 -2
  41. package/shared/definition11.cjs +29 -29
  42. package/shared/definition11.js +1 -1
  43. package/shared/definition12.cjs +6 -6
  44. package/shared/definition12.js +1 -1
  45. package/shared/definition13.cjs +13 -14
  46. package/shared/definition13.js +1 -2
  47. package/shared/definition14.cjs +23 -24
  48. package/shared/definition14.js +1 -2
  49. package/shared/definition15.cjs +15 -16
  50. package/shared/definition15.js +1 -2
  51. package/shared/definition16.cjs +20 -19
  52. package/shared/definition16.js +3 -2
  53. package/shared/definition17.cjs +53 -54
  54. package/shared/definition17.js +1 -2
  55. package/shared/definition18.cjs +4 -4
  56. package/shared/definition18.js +1 -1
  57. package/shared/definition19.cjs +12 -12
  58. package/shared/definition19.js +1 -1
  59. package/shared/definition2.cjs +6 -7
  60. package/shared/definition2.js +1 -2
  61. package/shared/definition20.cjs +20 -21
  62. package/shared/definition20.js +1 -2
  63. package/shared/definition21.cjs +27 -28
  64. package/shared/definition21.js +3 -4
  65. package/shared/definition22.cjs +5 -6
  66. package/shared/definition22.js +1 -2
  67. package/shared/definition23.cjs +10 -11
  68. package/shared/definition23.js +1 -2
  69. package/shared/definition24.cjs +8 -8
  70. package/shared/definition24.js +2 -2
  71. package/shared/definition25.cjs +13 -14
  72. package/shared/definition25.js +1 -2
  73. package/shared/definition26.cjs +5 -6
  74. package/shared/definition26.js +1 -2
  75. package/shared/definition27.cjs +11 -12
  76. package/shared/definition27.js +1 -2
  77. package/shared/definition28.cjs +9 -10
  78. package/shared/definition28.js +2 -3
  79. package/shared/definition29.cjs +44 -45
  80. package/shared/definition29.js +2 -3
  81. package/shared/definition3.cjs +8 -9
  82. package/shared/definition3.js +1 -2
  83. package/shared/definition30.cjs +9 -10
  84. package/shared/definition30.js +1 -2
  85. package/shared/definition31.cjs +5 -5
  86. package/shared/definition31.js +1 -1
  87. package/shared/definition32.cjs +3 -4
  88. package/shared/definition32.js +1 -2
  89. package/shared/definition33.cjs +6 -7
  90. package/shared/definition33.js +1 -2
  91. package/shared/definition34.cjs +50 -52
  92. package/shared/definition34.js +2 -4
  93. package/shared/definition35.cjs +24 -25
  94. package/shared/definition35.js +1 -2
  95. package/shared/definition36.cjs +15 -16
  96. package/shared/definition36.js +1 -2
  97. package/shared/definition37.cjs +9 -9
  98. package/shared/definition37.js +1 -1
  99. package/shared/definition38.cjs +10 -10
  100. package/shared/definition38.js +1 -1
  101. package/shared/definition39.cjs +12 -13
  102. package/shared/definition39.js +1 -2
  103. package/shared/definition4.cjs +19 -20
  104. package/shared/definition4.js +1 -2
  105. package/shared/definition40.cjs +61 -13
  106. package/shared/definition40.js +52 -4
  107. package/shared/definition41.cjs +29 -30
  108. package/shared/definition41.js +1 -2
  109. package/shared/definition42.cjs +53 -54
  110. package/shared/definition42.js +2 -3
  111. package/shared/definition43.cjs +31 -31
  112. package/shared/definition43.js +1 -1
  113. package/shared/definition44.cjs +14 -15
  114. package/shared/definition44.js +1 -2
  115. package/shared/definition45.cjs +9 -10
  116. package/shared/definition45.js +1 -2
  117. package/shared/definition46.cjs +26 -27
  118. package/shared/definition46.js +1 -2
  119. package/shared/definition47.cjs +17 -18
  120. package/shared/definition47.js +1 -2
  121. package/shared/definition48.cjs +9 -10
  122. package/shared/definition48.js +1 -2
  123. package/shared/definition49.cjs +3 -4
  124. package/shared/definition49.js +1 -2
  125. package/shared/definition5.cjs +30 -31
  126. package/shared/definition5.js +1 -2
  127. package/shared/definition50.cjs +12 -13
  128. package/shared/definition50.js +1 -2
  129. package/shared/definition51.cjs +87 -72
  130. package/shared/definition51.js +56 -41
  131. package/shared/definition52.cjs +4 -5
  132. package/shared/definition52.js +1 -2
  133. package/shared/definition53.cjs +15 -16
  134. package/shared/definition53.js +1 -2
  135. package/shared/definition54.cjs +20 -21
  136. package/shared/definition54.js +1 -2
  137. package/shared/definition55.cjs +5 -5
  138. package/shared/definition55.js +1 -1
  139. package/shared/definition56.cjs +18 -19
  140. package/shared/definition56.js +1 -2
  141. package/shared/definition57.cjs +10 -11
  142. package/shared/definition57.js +1 -2
  143. package/shared/definition58.cjs +7 -8
  144. package/shared/definition58.js +1 -2
  145. package/shared/definition59.cjs +16 -17
  146. package/shared/definition59.js +2 -3
  147. package/shared/definition6.cjs +11 -12
  148. package/shared/definition6.js +1 -2
  149. package/shared/definition60.cjs +9 -10
  150. package/shared/definition60.js +2 -3
  151. package/shared/definition61.cjs +27 -30
  152. package/shared/definition61.js +17 -20
  153. package/shared/definition62.cjs +12 -9
  154. package/shared/definition62.js +8 -5
  155. package/shared/definition63.cjs +13 -14
  156. package/shared/definition63.js +1 -2
  157. package/shared/definition7.cjs +9 -10
  158. package/shared/definition7.js +1 -2
  159. package/shared/definition8.cjs +14 -15
  160. package/shared/definition8.js +1 -2
  161. package/shared/definition9.cjs +7 -7
  162. package/shared/definition9.js +1 -1
  163. package/shared/form-associated.cjs +14 -14
  164. package/shared/form-associated.js +1 -1
  165. package/shared/form-associated2.cjs +10 -10
  166. package/shared/form-associated2.js +1 -1
  167. package/shared/form-elements.cjs +13 -13
  168. package/shared/form-elements.js +1 -1
  169. package/shared/foundation/progress/base-progress.d.ts +2 -2
  170. package/shared/key-codes2.cjs +1416 -3
  171. package/shared/key-codes2.js +1413 -2
  172. package/shared/listbox.cjs +12 -13
  173. package/shared/listbox.js +1 -2
  174. package/shared/listbox2.cjs +59 -60
  175. package/shared/listbox2.js +2 -3
  176. package/shared/localized.cjs +2 -2
  177. package/shared/localized.js +1 -1
  178. package/shared/presentationDate.cjs +42 -43
  179. package/shared/presentationDate.js +1 -2
  180. package/shared/ref.cjs +2 -2
  181. package/shared/ref.js +1 -1
  182. package/shared/repeat.cjs +15 -15
  183. package/shared/repeat.js +1 -1
  184. package/shared/slider.template.cjs +4 -4
  185. package/shared/slider.template.js +1 -1
  186. package/shared/slotted.cjs +4 -4
  187. package/shared/slotted.js +1 -1
  188. package/shared/text-anchor.cjs +5 -6
  189. package/shared/text-anchor.js +2 -3
  190. package/shared/text-anchor.template.cjs +2 -2
  191. package/shared/text-anchor.template.js +1 -1
  192. package/shared/text-field2.cjs +23 -24
  193. package/shared/text-field2.js +1 -2
  194. package/shared/vivid-element.cjs +2610 -2
  195. package/shared/vivid-element.js +2591 -2
  196. package/styles/core/all.css +40 -1
  197. package/styles/core/theme.css +40 -1
  198. package/styles/core/typography.css +1 -1
  199. package/styles/tokens/theme-dark.css +25 -4
  200. package/styles/tokens/theme-light.css +25 -4
  201. package/styles/tokens/vivid-2-compat.css +1 -1
  202. package/text-anchor/index.cjs +3 -3
  203. package/text-anchor/index.js +1 -1
  204. package/shared/defineVividComponent.cjs +0 -2612
  205. package/shared/defineVividComponent.js +0 -2592
  206. package/shared/foundation-element.cjs +0 -1417
  207. package/shared/foundation-element.js +0 -1414
@@ -2803,6 +2803,7 @@
2803
2803
  "type": {
2804
2804
  "text": "string"
2805
2805
  },
2806
+ "description": "Specifies extra information about the button. This information is typically used by browsers to display a tooltip.",
2806
2807
  "default": "''"
2807
2808
  },
2808
2809
  {
@@ -3226,7 +3227,7 @@
3226
3227
  "type": {
3227
3228
  "text": "boolean"
3228
3229
  },
3229
- "description": "Determines if the element should receive document focus on page load.",
3230
+ "description": "Specifies extra information about the button. This information is typically used by browsers to display a tooltip.",
3230
3231
  "fieldName": "title",
3231
3232
  "default": "''",
3232
3233
  "inheritedFrom": {
@@ -8150,6 +8151,13 @@
8150
8151
  },
8151
8152
  "description": "toggles the elevation's shadow.",
8152
8153
  "privacy": "public"
8154
+ },
8155
+ {
8156
+ "kind": "field",
8157
+ "name": "notRelative",
8158
+ "type": {
8159
+ "text": "boolean | undefined"
8160
+ }
8153
8161
  }
8154
8162
  ],
8155
8163
  "attributes": [
@@ -8168,6 +8176,13 @@
8168
8176
  },
8169
8177
  "description": "toggles the elevation's shadow.",
8170
8178
  "fieldName": "noShadow"
8179
+ },
8180
+ {
8181
+ "name": "not-relative",
8182
+ "type": {
8183
+ "text": "boolean | undefined"
8184
+ },
8185
+ "fieldName": "notRelative"
8171
8186
  }
8172
8187
  ],
8173
8188
  "superclass": {
@@ -13583,6 +13598,29 @@
13583
13598
  {
13584
13599
  "kind": "field",
13585
13600
  "name": "proxy"
13601
+ },
13602
+ {
13603
+ "kind": "field",
13604
+ "name": "#radioSiblings",
13605
+ "privacy": "private",
13606
+ "type": {
13607
+ "text": "_Radio[]"
13608
+ },
13609
+ "readonly": true
13610
+ },
13611
+ {
13612
+ "kind": "field",
13613
+ "name": "#validateValueMissingWithSiblings",
13614
+ "privacy": "private"
13615
+ },
13616
+ {
13617
+ "kind": "field",
13618
+ "name": "#syncSiblingsRequiredValidationStatus",
13619
+ "privacy": "private"
13620
+ },
13621
+ {
13622
+ "kind": "field",
13623
+ "name": "validate"
13586
13624
  }
13587
13625
  ],
13588
13626
  "mixins": [
@@ -13727,6 +13765,45 @@
13727
13765
  "name": "FormAssociatedRadio",
13728
13766
  "module": "libs/components/src/lib/radio/radio.form-associated.ts"
13729
13767
  }
13768
+ },
13769
+ {
13770
+ "kind": "field",
13771
+ "name": "#radioSiblings",
13772
+ "privacy": "private",
13773
+ "type": {
13774
+ "text": "_Radio[]"
13775
+ },
13776
+ "readonly": true,
13777
+ "inheritedFrom": {
13778
+ "name": "FormAssociatedRadio",
13779
+ "module": "libs/components/src/lib/radio/radio.form-associated.ts"
13780
+ }
13781
+ },
13782
+ {
13783
+ "kind": "field",
13784
+ "name": "#validateValueMissingWithSiblings",
13785
+ "privacy": "private",
13786
+ "inheritedFrom": {
13787
+ "name": "FormAssociatedRadio",
13788
+ "module": "libs/components/src/lib/radio/radio.form-associated.ts"
13789
+ }
13790
+ },
13791
+ {
13792
+ "kind": "field",
13793
+ "name": "#syncSiblingsRequiredValidationStatus",
13794
+ "privacy": "private",
13795
+ "inheritedFrom": {
13796
+ "name": "FormAssociatedRadio",
13797
+ "module": "libs/components/src/lib/radio/radio.form-associated.ts"
13798
+ }
13799
+ },
13800
+ {
13801
+ "kind": "field",
13802
+ "name": "validate",
13803
+ "inheritedFrom": {
13804
+ "name": "FormAssociatedRadio",
13805
+ "module": "libs/components/src/lib/radio/radio.form-associated.ts"
13806
+ }
13730
13807
  }
13731
13808
  ],
13732
13809
  "events": [
@@ -13770,6 +13847,14 @@
13770
13847
  },
13771
13848
  "description": "When true, the control will be immutable by user interaction. See https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly | readonly HTML attribute for more information.",
13772
13849
  "fieldName": "readOnly"
13850
+ },
13851
+ {
13852
+ "name": "name",
13853
+ "type": {
13854
+ "text": "string"
13855
+ },
13856
+ "description": "The name of the radio. See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname | name attribute for more info.",
13857
+ "fieldName": "name"
13773
13858
  }
13774
13859
  ],
13775
13860
  "superclass": {
@@ -18374,6 +18459,11 @@
18374
18459
  "description": "The id of the active tab",
18375
18460
  "privacy": "public"
18376
18461
  },
18462
+ {
18463
+ "kind": "field",
18464
+ "name": "#isLastTabSelectedAfterRemove",
18465
+ "privacy": "private"
18466
+ },
18377
18467
  {
18378
18468
  "kind": "field",
18379
18469
  "name": "activeindicator",
@@ -18505,18 +18595,13 @@
18505
18595
  "privacy": "private"
18506
18596
  },
18507
18597
  {
18508
- "kind": "method",
18509
- "name": "isHorizontal",
18510
- "privacy": "private",
18511
- "return": {
18512
- "type": {
18513
- "text": "boolean"
18514
- }
18515
- }
18598
+ "kind": "field",
18599
+ "name": "#isHorizontal",
18600
+ "privacy": "private"
18516
18601
  },
18517
18602
  {
18518
18603
  "kind": "field",
18519
- "name": "handleTabKeyDown",
18604
+ "name": "#handleTabKeyDown",
18520
18605
  "privacy": "private"
18521
18606
  },
18522
18607
  {
@@ -18562,7 +18647,7 @@
18562
18647
  },
18563
18648
  {
18564
18649
  "kind": "field",
18565
- "name": "moveToTabByIndex",
18650
+ "name": "#moveToTabByIndex",
18566
18651
  "privacy": "private"
18567
18652
  },
18568
18653
  {
@@ -18623,6 +18708,16 @@
18623
18708
  "kind": "method",
18624
18709
  "name": "#updateScrollStatus"
18625
18710
  },
18711
+ {
18712
+ "kind": "field",
18713
+ "name": "#shouldMoveIndicator",
18714
+ "privacy": "private",
18715
+ "readonly": true
18716
+ },
18717
+ {
18718
+ "kind": "method",
18719
+ "name": "#patchIndicatorStyleTransition"
18720
+ },
18626
18721
  {
18627
18722
  "kind": "field",
18628
18723
  "name": "#resizeObserver",
@@ -18663,13 +18758,25 @@
18663
18758
  },
18664
18759
  {
18665
18760
  "kind": "method",
18666
- "name": "handleActiveIndicatorPosition",
18667
- "privacy": "private"
18761
+ "name": "#handleActiveIndicatorPosition",
18762
+ "parameters": [
18763
+ {
18764
+ "name": "animate",
18765
+ "default": "true"
18766
+ }
18767
+ ]
18668
18768
  },
18669
18769
  {
18670
18770
  "kind": "method",
18671
- "name": "animateActiveIndicator",
18672
- "privacy": "private"
18771
+ "name": "#animateActiveIndicator",
18772
+ "parameters": [
18773
+ {
18774
+ "name": "animate",
18775
+ "type": {
18776
+ "text": "boolean"
18777
+ }
18778
+ }
18779
+ ]
18673
18780
  }
18674
18781
  ],
18675
18782
  "events": [
@@ -19311,8 +19418,8 @@
19311
19418
  }
19312
19419
  ],
19313
19420
  "superclass": {
19314
- "name": "FoundationElement",
19315
- "package": "@microsoft/fast-foundation"
19421
+ "name": "VividElement",
19422
+ "module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
19316
19423
  },
19317
19424
  "vividComponent": {
19318
19425
  "name": "text-anchor"
@@ -21382,8 +21489,8 @@
21382
21489
  }
21383
21490
  ],
21384
21491
  "superclass": {
21385
- "name": "FoundationElement",
21386
- "package": "@microsoft/fast-foundation"
21492
+ "name": "VividElement",
21493
+ "module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
21387
21494
  },
21388
21495
  "vividComponent": {
21389
21496
  "public": true,
@@ -21596,8 +21703,8 @@
21596
21703
  }
21597
21704
  ],
21598
21705
  "superclass": {
21599
- "name": "FoundationElement",
21600
- "package": "@microsoft/fast-foundation"
21706
+ "name": "VividElement",
21707
+ "module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
21601
21708
  },
21602
21709
  "vividComponent": {
21603
21710
  "public": true,
@@ -23596,8 +23703,8 @@
23596
23703
  }
23597
23704
  ],
23598
23705
  "superclass": {
23599
- "name": "FoundationElement",
23600
- "package": "@microsoft/fast-foundation"
23706
+ "name": "VividElement",
23707
+ "module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
23601
23708
  }
23602
23709
  }
23603
23710
  ],
@@ -2,4 +2,5 @@ import { VividElement } from '../../shared/foundation/vivid-element/vivid-elemen
2
2
  export declare class Elevation extends VividElement {
3
3
  dp?: 0 | 2 | 4 | 8 | 12 | 16 | 24;
4
4
  noShadow?: boolean;
5
+ notRelative?: boolean;
5
6
  }
@@ -6,6 +6,8 @@ interface _Radio extends CheckableFormAssociated {
6
6
  }
7
7
  declare const FormAssociatedRadio_base: typeof _Radio;
8
8
  export declare class FormAssociatedRadio extends FormAssociatedRadio_base {
9
+ #private;
9
10
  proxy: HTMLInputElement;
11
+ validate: (anchor?: HTMLElement) => void;
10
12
  }
11
13
  export {};
@@ -25,12 +25,9 @@ export declare class Tabs extends VividElement {
25
25
  private getTabPanelIds;
26
26
  private setComponent;
27
27
  private handleTabClick;
28
- private isHorizontal;
29
- private handleTabKeyDown;
30
28
  adjust(adjustment: number): void;
31
29
  private adjustForward;
32
30
  private adjustBackward;
33
- private moveToTabByIndex;
34
31
  private focusTab;
35
32
  tablist?: HTMLElement;
36
33
  connotation?: TabsConnotation;
@@ -39,6 +36,4 @@ export declare class Tabs extends VividElement {
39
36
  tabsLayout?: 'align-start' | 'stretch';
40
37
  connectedCallback(): void;
41
38
  disconnectedCallback(): void;
42
- private handleActiveIndicatorPosition;
43
- private animateActiveIndicator;
44
39
  }
@@ -1,10 +1,10 @@
1
- import { FoundationElement } from '@microsoft/fast-foundation';
2
1
  import { Appearance, Connotation } from '../enums';
3
2
  import { AffixIcon } from '../../shared/patterns/affix';
4
3
  import { Anchor } from '../../shared/foundation/anchor/anchor';
4
+ import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
5
5
  export type TextAnchorConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA>;
6
6
  export type TextAnchorAppearance = Extract<Appearance, Appearance.Ghost | Appearance.GhostLight>;
7
- export declare class TextAnchor extends FoundationElement {
7
+ export declare class TextAnchor extends VividElement {
8
8
  text?: string;
9
9
  connotation?: TextAnchorConnotation;
10
10
  appearance?: TextAnchorAppearance;
@@ -1,7 +1,7 @@
1
- import { FoundationElement } from '@microsoft/fast-foundation';
2
1
  import { AffixIcon } from '../../shared/patterns/affix';
2
+ import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
3
3
  export declare function isTreeItemElement(el: Element): el is HTMLElement;
4
- export declare class TreeItem extends FoundationElement {
4
+ export declare class TreeItem extends VividElement {
5
5
  text?: string;
6
6
  expanded: boolean;
7
7
  expandedChanged(): void;
@@ -1,7 +1,7 @@
1
- import { FoundationElement } from '@microsoft/fast-foundation';
2
1
  import { TreeItem } from '../tree-item/tree-item.js';
2
+ import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
3
3
  export declare function getDisplayedNodes(rootNode: HTMLElement, selector: string): HTMLElement[];
4
- export declare class TreeView extends FoundationElement {
4
+ export declare class TreeView extends VividElement {
5
5
  renderCollapsedNodes: boolean;
6
6
  currentSelected: HTMLElement | TreeItem | null;
7
7
  slottedTreeItemsChanged(): void;
package/listbox/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const definition = require('../shared/definition35.cjs');
4
- const defineVividComponent = require('../shared/defineVividComponent.cjs');
4
+ const vividElement = require('../shared/vivid-element.cjs');
5
5
  const listbox = require('../shared/listbox2.cjs');
6
6
  const slotted = require('../shared/slotted.cjs');
7
7
  const classNames = require('../shared/class-names.cjs');
@@ -13,7 +13,7 @@ const getClasses = ({ appearance, shape, disabled, orientation }) => classNames.
13
13
  [`shape-${shape}`, Boolean(shape) && orientation === "horizontal"],
14
14
  [`orientation-${orientation}`, Boolean(orientation)]
15
15
  );
16
- const ListboxTemplate = defineVividComponent.html`
16
+ const ListboxTemplate = vividElement.html`
17
17
  <template
18
18
  aria-activedescendant="${(x) => x.ariaActiveDescendant}"
19
19
  aria-multiselectable="${(x) => x.ariaMultiSelectable}"
@@ -40,7 +40,7 @@ const ListboxTemplate = defineVividComponent.html`
40
40
 
41
41
  const styles = ":host{display:inline-block;inline-size:fit-content}:host(:focus-within){outline:none}:host([disabled]){cursor:not-allowed}.base{--_connotation-color-intermediate: var(--vvd-listbox-accent-intermediate, var(--vvd-color-neutral-500));--_connotation-color-primary: var(--vvd-listbox-accent-primary, var(--vvd-color-canvas-text));--_connotation-color-soft: var(--vvd-listbox-accent-soft, var(--vvd-color-neutral-100))}.base{--_appearance-color-text: var(--vvd-color-canvas-text);--_appearance-color-fill: var(--vvd-color-canvas);--_appearance-color-outline: var(--_connotation-color-intermediate)}.base.appearance-ghost{--_appearance-color-text: var(--_connotation-color-firm);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base:where(.disabled,: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)}.base:where(.disabled,:disabled).appearance-ghost{--_appearance-color-text: var(--vvd-color-neutral-300);--_appearance-color-fill: transparent;--_appearance-color-outline: transparent}.base{display:inline-flex;box-sizing:border-box;padding:4px;border-radius:var(--_listbox-border-radius);background-color:var(--_appearance-color-fill);box-shadow:inset 0 0 0 1px var(--_appearance-color-outline);contain:paint;gap:4px;inline-size:100%}.base:not(.orientation-horizontal){flex-direction:column}.base:not(.shape-pill){--_listbox-border-radius: 8px}.base.shape-pill{--_listbox-border-radius: 24px}:host(:focus-within) .base{--focus-stroke-gap-color: transparent;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:calc(-2px - var(--focus-inset, 0px))}::slotted([role=option]){border-radius:var(--_listbox-border-radius);contain:content}.base.disabled ::slotted([role=option]){--_option-appearance-color-text: var(--_appearance-color-outline);pointer-events:none}";
42
42
 
43
- const listboxDefinition = defineVividComponent.defineVividComponent(
43
+ const listboxDefinition = vividElement.defineVividComponent(
44
44
  "listbox",
45
45
  listbox.Listbox,
46
46
  ListboxTemplate,
@@ -49,6 +49,6 @@ const listboxDefinition = defineVividComponent.defineVividComponent(
49
49
  styles
50
50
  }
51
51
  );
52
- const registerListbox = defineVividComponent.createRegisterFunction(listboxDefinition);
52
+ const registerListbox = vividElement.createRegisterFunction(listboxDefinition);
53
53
 
54
54
  registerListbox();
package/listbox/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { l as listboxOptionDefinition } from '../shared/definition35.js';
2
- import { h as html, f as createRegisterFunction, d as defineVividComponent } from '../shared/defineVividComponent.js';
2
+ import { h as html, f as createRegisterFunction, d as defineVividComponent } from '../shared/vivid-element.js';
3
3
  import { L as ListboxElement, a as Listbox } from '../shared/listbox2.js';
4
4
  import { s as slotted } from '../shared/slotted.js';
5
5
  import { c as classNames } from '../shared/class-names.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/vivid",
3
- "version": "4.14.0",
3
+ "version": "4.14.1",
4
4
  "type": "module",
5
5
  "module": "./index.js",
6
6
  "main": "./index.cjs",
package/shared/affix.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  const definition = require('./definition27.cjs');
4
4
  const slotted = require('./slotted.cjs');
5
- const defineVividComponent = require('./defineVividComponent.cjs');
5
+ const vividElement = require('./vivid-element.cjs');
6
6
 
7
7
  var __defProp = Object.defineProperty;
8
8
  var __decorateClass = (decorators, target, key, kind) => {
@@ -16,10 +16,10 @@ var __decorateClass = (decorators, target, key, kind) => {
16
16
  class AffixIcon {
17
17
  }
18
18
  __decorateClass([
19
- defineVividComponent.attr
19
+ vividElement.attr
20
20
  ], AffixIcon.prototype, "icon");
21
21
  __decorateClass([
22
- defineVividComponent.attr({ mode: "fromView" })
22
+ vividElement.attr({ mode: "fromView" })
23
23
  ], AffixIcon.prototype, "iconSlottedContent");
24
24
  class AffixIconWithTrailing extends AffixIcon {
25
25
  constructor() {
@@ -28,7 +28,7 @@ class AffixIconWithTrailing extends AffixIcon {
28
28
  }
29
29
  }
30
30
  __decorateClass([
31
- defineVividComponent.attr({
31
+ vividElement.attr({
32
32
  mode: "boolean",
33
33
  attribute: "icon-trailing"
34
34
  })
@@ -45,7 +45,7 @@ const affixIconTemplateFactory = (context) => {
45
45
  const iconTag = context.tagFor(definition.Icon);
46
46
  return (icon, slottedState = IconWrapper.Span, ariaHidden = IconAriaHidden.Hidden) => {
47
47
  if (!icon && !slottedState) {
48
- return defineVividComponent.html`<slot
48
+ return vividElement.html`<slot
49
49
  name="icon"
50
50
  aria-hidden="${() => ariaHidden}"
51
51
  ${slotted.slotted("iconSlottedContent")}
@@ -54,10 +54,10 @@ const affixIconTemplateFactory = (context) => {
54
54
  if (!icon && slottedState) {
55
55
  return null;
56
56
  }
57
- const iconTemplate = defineVividComponent.html`<${iconTag} :name="${() => icon}"></${iconTag}>`;
58
- return slottedState ? defineVividComponent.html`<span class="icon" aria-hidden="${() => ariaHidden}"
57
+ const iconTemplate = vividElement.html`<${iconTag} :name="${() => icon}"></${iconTag}>`;
58
+ return slottedState ? vividElement.html`<span class="icon" aria-hidden="${() => ariaHidden}"
59
59
  >${iconTemplate}</span
60
- >` : defineVividComponent.html`<slot name="icon" aria-hidden="${() => ariaHidden}"
60
+ >` : vividElement.html`<slot name="icon" aria-hidden="${() => ariaHidden}"
61
61
  >${iconTemplate}</slot
62
62
  >`;
63
63
  };
package/shared/affix.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { I as Icon } from './definition27.js';
2
2
  import { s as slotted } from './slotted.js';
3
- import { a as attr, h as html } from './defineVividComponent.js';
3
+ import { a as attr, h as html } from './vivid-element.js';
4
4
 
5
5
  var __defProp = Object.defineProperty;
6
6
  var __decorateClass = (decorators, target, key, kind) => {
package/shared/anchor.cjs CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  const ariaGlobal = require('./aria-global.cjs');
4
4
  const applyMixins = require('./apply-mixins.cjs');
5
- const defineVividComponent = require('./defineVividComponent.cjs');
5
+ const vividElement = require('./vivid-element.cjs');
6
6
 
7
7
  var __defProp = Object.defineProperty;
8
8
  var __decorateClass = (decorators, target, key, kind) => {
@@ -17,41 +17,41 @@ class Anchor {
17
17
  }
18
18
  // @ts-expect-error Type is incorrectly non-optional
19
19
  __decorateClass([
20
- defineVividComponent.attr
20
+ vividElement.attr
21
21
  ], Anchor.prototype, "download");
22
22
  // @ts-expect-error Type is incorrectly non-optional
23
23
  __decorateClass([
24
- defineVividComponent.attr
24
+ vividElement.attr
25
25
  ], Anchor.prototype, "href");
26
26
  // @ts-expect-error Type is incorrectly non-optional
27
27
  __decorateClass([
28
- defineVividComponent.attr
28
+ vividElement.attr
29
29
  ], Anchor.prototype, "hreflang");
30
30
  // @ts-expect-error Type is incorrectly non-optional
31
31
  __decorateClass([
32
- defineVividComponent.attr
32
+ vividElement.attr
33
33
  ], Anchor.prototype, "ping");
34
34
  // @ts-expect-error Type is incorrectly non-optional
35
35
  __decorateClass([
36
- defineVividComponent.attr
36
+ vividElement.attr
37
37
  ], Anchor.prototype, "referrerpolicy");
38
38
  // @ts-expect-error Type is incorrectly non-optional
39
39
  __decorateClass([
40
- defineVividComponent.attr
40
+ vividElement.attr
41
41
  ], Anchor.prototype, "rel");
42
42
  // @ts-expect-error Type is incorrectly non-optional
43
43
  __decorateClass([
44
- defineVividComponent.attr
44
+ vividElement.attr
45
45
  ], Anchor.prototype, "target");
46
46
  // @ts-expect-error Type is incorrectly non-optional
47
47
  __decorateClass([
48
- defineVividComponent.attr
48
+ vividElement.attr
49
49
  ], Anchor.prototype, "type");
50
50
  class DelegatesARIALink {
51
51
  }
52
52
  // @ts-expect-error Type is incorrectly non-optional
53
53
  __decorateClass([
54
- defineVividComponent.attr({ attribute: "aria-expanded" })
54
+ vividElement.attr({ attribute: "aria-expanded" })
55
55
  ], DelegatesARIALink.prototype, "ariaExpanded");
56
56
  applyMixins.applyMixins(DelegatesARIALink, ariaGlobal.ARIAGlobalStatesAndProperties);
57
57
  applyMixins.applyMixins(Anchor, DelegatesARIALink);
package/shared/anchor.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { A as ARIAGlobalStatesAndProperties } from './aria-global.js';
2
2
  import { a as applyMixins } from './apply-mixins.js';
3
- import { a as attr } from './defineVividComponent.js';
3
+ import { a as attr } from './vivid-element.js';
4
4
 
5
5
  var __defProp = Object.defineProperty;
6
6
  var __decorateClass = (decorators, target, key, kind) => {
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const defineVividComponent = require('./defineVividComponent.cjs');
3
+ const vividElement = require('./vivid-element.cjs');
4
4
  const slotted = require('./slotted.cjs');
5
5
 
6
6
  var __defProp = Object.defineProperty;
@@ -27,7 +27,7 @@ function anchored(constructor) {
27
27
  const isOccupied = Boolean(
28
28
  this._slottedAnchor && this._slottedAnchor.length > 0
29
29
  );
30
- defineVividComponent.DOM.setBooleanAttribute(
30
+ vividElement.DOM.setBooleanAttribute(
31
31
  this,
32
32
  "slotted-anchor",
33
33
  isOccupied
@@ -79,17 +79,17 @@ function anchored(constructor) {
79
79
  }
80
80
  }
81
81
  __decorateClass([
82
- defineVividComponent.attr
82
+ vividElement.attr
83
83
  ], Decorated.prototype, "anchor");
84
84
  __decorateClass([
85
- defineVividComponent.observable
85
+ vividElement.observable
86
86
  ], Decorated.prototype, "_slottedAnchor");
87
87
  __decorateClass([
88
- defineVividComponent.observable
88
+ vividElement.observable
89
89
  ], Decorated.prototype, "_anchorEl");
90
90
  return Decorated;
91
91
  }
92
- const anchorSlotTemplateFactory = () => defineVividComponent.html`<slot name="anchor" ${slotted.slotted("_slottedAnchor")}></slot>`;
92
+ const anchorSlotTemplateFactory = () => vividElement.html`<slot name="anchor" ${slotted.slotted("_slottedAnchor")}></slot>`;
93
93
 
94
94
  exports.anchorSlotTemplateFactory = anchorSlotTemplateFactory;
95
95
  exports.anchored = anchored;
@@ -1,4 +1,4 @@
1
- import { h as html, a as attr, o as observable, D as DOM } from './defineVividComponent.js';
1
+ import { h as html, a as attr, o as observable, D as DOM } from './vivid-element.js';
2
2
  import { s as slotted } from './slotted.js';
3
3
 
4
4
  var __defProp = Object.defineProperty;
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const defineVividComponent = require('./defineVividComponent.cjs');
3
+ const vividElement = require('./vivid-element.cjs');
4
4
 
5
5
  function applyMixins(derivedCtor, ...baseCtors) {
6
- const derivedAttributes = defineVividComponent.AttributeConfiguration.locate(derivedCtor);
6
+ const derivedAttributes = vividElement.AttributeConfiguration.locate(derivedCtor);
7
7
  baseCtors.forEach((baseCtor) => {
8
8
  Object.getOwnPropertyNames(baseCtor.prototype).forEach((name) => {
9
9
  if (name !== "constructor") {
@@ -15,7 +15,7 @@ function applyMixins(derivedCtor, ...baseCtors) {
15
15
  );
16
16
  }
17
17
  });
18
- const baseAttributes = defineVividComponent.AttributeConfiguration.locate(baseCtor);
18
+ const baseAttributes = vividElement.AttributeConfiguration.locate(baseCtor);
19
19
  baseAttributes.forEach((x) => derivedAttributes.push(x));
20
20
  });
21
21
  }
@@ -1,4 +1,4 @@
1
- import { A as AttributeConfiguration } from './defineVividComponent.js';
1
+ import { A as AttributeConfiguration } from './vivid-element.js';
2
2
 
3
3
  function applyMixins(derivedCtor, ...baseCtors) {
4
4
  const derivedAttributes = AttributeConfiguration.locate(derivedCtor);
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const defineVividComponent = require('./defineVividComponent.cjs');
3
+ const vividElement = require('./vivid-element.cjs');
4
4
 
5
5
  /**
6
6
  * Apply mixins to a constructor.
@@ -8,7 +8,7 @@ const defineVividComponent = require('./defineVividComponent.cjs');
8
8
  * @public
9
9
  */
10
10
  function applyMixins(derivedCtor, ...baseCtors) {
11
- const derivedAttributes = defineVividComponent.AttributeConfiguration.locate(derivedCtor);
11
+ const derivedAttributes = vividElement.AttributeConfiguration.locate(derivedCtor);
12
12
  baseCtors.forEach(baseCtor => {
13
13
  Object.getOwnPropertyNames(baseCtor.prototype).forEach(name => {
14
14
  if (name !== "constructor") {
@@ -17,7 +17,7 @@ function applyMixins(derivedCtor, ...baseCtors) {
17
17
  Object.getOwnPropertyDescriptor(baseCtor.prototype, name));
18
18
  }
19
19
  });
20
- const baseAttributes = defineVividComponent.AttributeConfiguration.locate(baseCtor);
20
+ const baseAttributes = vividElement.AttributeConfiguration.locate(baseCtor);
21
21
  baseAttributes.forEach(x => derivedAttributes.push(x));
22
22
  });
23
23
  }
@@ -1,4 +1,4 @@
1
- import { A as AttributeConfiguration } from './defineVividComponent.js';
1
+ import { A as AttributeConfiguration } from './vivid-element.js';
2
2
 
3
3
  /**
4
4
  * Apply mixins to a constructor.
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  const applyMixins = require('./apply-mixins2.cjs');
4
- const defineVividComponent = require('./defineVividComponent.cjs');
4
+ const vividElement = require('./vivid-element.cjs');
5
5
 
6
6
  function applyMixinsWithObservables(derivedCtor, ...baseCtors) {
7
7
  applyMixins.applyMixins(derivedCtor, ...baseCtors);
8
8
  baseCtors.forEach((baseCtor) => {
9
- defineVividComponent.Observable.getAccessors(baseCtor.prototype).forEach((accessor) => {
10
- defineVividComponent.Observable.defineProperty(derivedCtor.prototype, accessor.name);
9
+ vividElement.Observable.getAccessors(baseCtor.prototype).forEach((accessor) => {
10
+ vividElement.Observable.defineProperty(derivedCtor.prototype, accessor.name);
11
11
  });
12
12
  });
13
13
  }