@vonage/vivid 4.21.1 → 4.22.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 (63) hide show
  1. package/custom-elements.json +175 -116
  2. package/index.cjs +1 -1
  3. package/index.js +2 -2
  4. package/lib/audio-player/audio-player.d.ts +2 -1
  5. package/lib/calendar/calendar.d.ts +3 -1
  6. package/lib/enums.d.ts +0 -4
  7. package/lib/file-picker/file-picker.d.ts +3 -2
  8. package/lib/option/option.d.ts +2 -0
  9. package/lib/rich-text-editor/rich-text-editor.d.ts +4 -3
  10. package/lib/searchable-select/option-tag.d.ts +3 -1
  11. package/lib/tabs/definition.d.ts +1 -0
  12. package/lib/tabs/tabs.d.ts +6 -1
  13. package/lib/video-player/video-player.d.ts +3 -1
  14. package/package.json +1 -1
  15. package/shared/definition15.cjs +1 -1
  16. package/shared/definition15.js +1 -1
  17. package/shared/definition16.cjs +1 -1
  18. package/shared/definition16.js +1 -1
  19. package/shared/definition19.cjs +3 -0
  20. package/shared/definition19.js +3 -0
  21. package/shared/definition26.cjs +8 -0
  22. package/shared/definition26.js +8 -0
  23. package/shared/definition28.cjs +1 -1
  24. package/shared/definition28.js +1 -1
  25. package/shared/definition3.cjs +1 -1
  26. package/shared/definition3.js +1 -1
  27. package/shared/definition30.cjs +1 -0
  28. package/shared/definition30.js +1 -0
  29. package/shared/definition35.cjs +1 -1
  30. package/shared/definition35.js +1 -1
  31. package/shared/definition4.cjs +1 -1
  32. package/shared/definition4.js +1 -1
  33. package/shared/definition41.cjs +1 -1
  34. package/shared/definition41.js +1 -1
  35. package/shared/definition43.cjs +105 -52
  36. package/shared/definition43.js +105 -52
  37. package/shared/definition44.cjs +18 -4
  38. package/shared/definition44.js +18 -4
  39. package/shared/definition45.cjs +3 -3
  40. package/shared/definition45.js +3 -3
  41. package/shared/definition50.cjs +1 -1
  42. package/shared/definition50.js +1 -1
  43. package/shared/definition53.cjs +5 -0
  44. package/shared/definition53.js +5 -1
  45. package/shared/definition56.cjs +1 -1
  46. package/shared/definition56.js +1 -1
  47. package/shared/enums.cjs +0 -6
  48. package/shared/enums.js +1 -6
  49. package/shared/option.cjs +3 -0
  50. package/shared/option.js +3 -0
  51. package/shared/single-value-picker.cjs +3 -0
  52. package/shared/single-value-picker.js +3 -0
  53. package/shared/text-field.cjs +1 -1
  54. package/shared/text-field.js +1 -1
  55. package/shared/vivid-element.cjs +1 -1
  56. package/shared/vivid-element.js +1 -1
  57. package/styles/core/all.css +1 -1
  58. package/styles/core/theme.css +1 -1
  59. package/styles/core/typography.css +1 -1
  60. package/styles/tokens/theme-dark.css +4 -4
  61. package/styles/tokens/theme-light.css +4 -4
  62. package/styles/tokens/vivid-2-compat.css +1 -1
  63. package/vivid.api.json +161 -56
@@ -1309,7 +1309,7 @@
1309
1309
  "kind": "field",
1310
1310
  "name": "skipBy",
1311
1311
  "type": {
1312
- "text": "MediaSkipBy | undefined"
1312
+ "text": "AudioPlayerMediaSkipBy | undefined"
1313
1313
  },
1314
1314
  "description": "Allows the audio to skip back or forward",
1315
1315
  "privacy": "public"
@@ -1504,7 +1504,7 @@
1504
1504
  {
1505
1505
  "name": "skip-by",
1506
1506
  "type": {
1507
- "text": "MediaSkipBy | undefined"
1507
+ "text": "AudioPlayerMediaSkipBy | undefined"
1508
1508
  },
1509
1509
  "description": "Allows the audio to skip back or forward",
1510
1510
  "fieldName": "skipBy"
@@ -4047,7 +4047,7 @@
4047
4047
  "kind": "field",
4048
4048
  "name": "stickyMode",
4049
4049
  "type": {
4050
- "text": "Sticky"
4050
+ "text": "CalendarSticky"
4051
4051
  },
4052
4052
  "description": "Sticky header and sticky column options",
4053
4053
  "privacy": "public"
@@ -4180,7 +4180,7 @@
4180
4180
  {
4181
4181
  "name": "sticky-mode",
4182
4182
  "type": {
4183
- "text": "Sticky"
4183
+ "text": "CalendarSticky"
4184
4184
  },
4185
4185
  "description": "Sticky header and sticky column options",
4186
4186
  "fieldName": "stickyMode"
@@ -10589,6 +10589,16 @@
10589
10589
  "privacy": "public",
10590
10590
  "readonly": true
10591
10591
  },
10592
+ {
10593
+ "kind": "field",
10594
+ "name": "rejectedFiles",
10595
+ "type": {
10596
+ "text": "File[]"
10597
+ },
10598
+ "description": "Files that have been rejected by the file picker for failing validation.",
10599
+ "privacy": "public",
10600
+ "readonly": true
10601
+ },
10592
10602
  {
10593
10603
  "kind": "method",
10594
10604
  "name": "#syncSingleFileState"
@@ -12338,6 +12348,7 @@
12338
12348
  "type": {
12339
12349
  "text": "boolean"
12340
12350
  },
12351
+ "default": "false",
12341
12352
  "description": "The checked value of the element.",
12342
12353
  "privacy": "public"
12343
12354
  },
@@ -12510,6 +12521,7 @@
12510
12521
  "type": {
12511
12522
  "text": "boolean"
12512
12523
  },
12524
+ "default": "false",
12513
12525
  "description": "The checked value of the element.",
12514
12526
  "fieldName": "checked"
12515
12527
  },
@@ -14402,6 +14414,15 @@
14402
14414
  "name": "_hasMatchedText",
14403
14415
  "readonly": true
14404
14416
  },
14417
+ {
14418
+ "kind": "field",
14419
+ "name": "tagConnotation",
14420
+ "type": {
14421
+ "text": "OptionTagConnotation | undefined"
14422
+ },
14423
+ "description": "When displayed as a tag, the connotation of the tag.",
14424
+ "privacy": "public"
14425
+ },
14405
14426
  {
14406
14427
  "kind": "field",
14407
14428
  "name": "proxy",
@@ -14496,6 +14517,14 @@
14496
14517
  "description": "Text to highlighted as matching a search query.",
14497
14518
  "fieldName": "matchedText"
14498
14519
  },
14520
+ {
14521
+ "name": "tag-connotation",
14522
+ "type": {
14523
+ "text": "OptionTagConnotation | undefined"
14524
+ },
14525
+ "description": "When displayed as a tag, the connotation of the tag.",
14526
+ "fieldName": "tagConnotation"
14527
+ },
14499
14528
  {
14500
14529
  "name": "icon-trailing",
14501
14530
  "type": {
@@ -17118,7 +17147,7 @@
17118
17147
  "declarations": [
17119
17148
  {
17120
17149
  "kind": "variable",
17121
- "name": "RichTextEditorTextSizes",
17150
+ "name": "RichTextEditorTextBlocks",
17122
17151
  "type": {
17123
17152
  "text": "{\n\ttitle: 'h2',\n\tsubtitle: 'h3',\n\tbody: 'p',\n}"
17124
17153
  },
@@ -17184,15 +17213,6 @@
17184
17213
  "kind": "method",
17185
17214
  "name": "selectionEndChanged"
17186
17215
  },
17187
- {
17188
- "kind": "field",
17189
- "name": "#selectionChangedByUser",
17190
- "privacy": "private",
17191
- "type": {
17192
- "text": "boolean"
17193
- },
17194
- "default": "false"
17195
- },
17196
17216
  {
17197
17217
  "kind": "field",
17198
17218
  "name": "#handleSelectionChange",
@@ -17210,10 +17230,10 @@
17210
17230
  },
17211
17231
  {
17212
17232
  "kind": "method",
17213
- "name": "setTextSize",
17233
+ "name": "setTextBlock",
17214
17234
  "parameters": [
17215
17235
  {
17216
- "name": "size",
17236
+ "name": "blockType",
17217
17237
  "type": {
17218
17238
  "text": "'title' | 'subtitle' | 'body'"
17219
17239
  }
@@ -17232,6 +17252,10 @@
17232
17252
  }
17233
17253
  ]
17234
17254
  },
17255
+ {
17256
+ "kind": "method",
17257
+ "name": "focus"
17258
+ },
17235
17259
  {
17236
17260
  "kind": "field",
17237
17261
  "name": "VIVID_VERSION",
@@ -17278,9 +17302,9 @@
17278
17302
  "exports": [
17279
17303
  {
17280
17304
  "kind": "js",
17281
- "name": "RichTextEditorTextSizes",
17305
+ "name": "RichTextEditorTextBlocks",
17282
17306
  "declaration": {
17283
- "name": "RichTextEditorTextSizes",
17307
+ "name": "RichTextEditorTextBlocks",
17284
17308
  "module": "libs/components/src/lib/rich-text-editor/rich-text-editor.ts"
17285
17309
  }
17286
17310
  },
@@ -17344,6 +17368,10 @@
17344
17368
  "description": "",
17345
17369
  "name": "OptionTag",
17346
17370
  "cssProperties": [
17371
+ {
17372
+ "name": "--vvd-option-tag-cta-contrast",
17373
+ "default": "var(--vvd-color-cta-800)"
17374
+ },
17347
17375
  {
17348
17376
  "name": "--vvd-option-tag-accent-contrast",
17349
17377
  "default": "var(--vvd-color-neutral-800)"
@@ -17357,6 +17385,13 @@
17357
17385
  "text": "OptionTagShape | undefined"
17358
17386
  }
17359
17387
  },
17388
+ {
17389
+ "kind": "field",
17390
+ "name": "connotation",
17391
+ "type": {
17392
+ "text": "OptionTagConnotation | undefined"
17393
+ }
17394
+ },
17360
17395
  {
17361
17396
  "kind": "field",
17362
17397
  "name": "label",
@@ -21252,6 +21287,14 @@
21252
21287
  }
21253
21288
  ],
21254
21289
  "exports": [
21290
+ {
21291
+ "kind": "js",
21292
+ "name": "TabsGutters",
21293
+ "declaration": {
21294
+ "name": "TabsGutters",
21295
+ "module": "./tabs"
21296
+ }
21297
+ },
21255
21298
  {
21256
21299
  "kind": "js",
21257
21300
  "name": "registerTabs",
@@ -21290,6 +21333,14 @@
21290
21333
  },
21291
21334
  "default": "'--_tabs-tablist-column'"
21292
21335
  },
21336
+ {
21337
+ "kind": "variable",
21338
+ "name": "TabsGutters",
21339
+ "type": {
21340
+ "text": "{\n\tNone: 'none',\n\tSmall: 'small',\n}"
21341
+ },
21342
+ "default": "{\n\tNone: 'none',\n\tSmall: 'small',\n}"
21343
+ },
21293
21344
  {
21294
21345
  "kind": "variable",
21295
21346
  "name": "TabsOrientation",
@@ -21766,6 +21817,14 @@
21766
21817
  "module": "libs/components/src/lib/tabs/tabs.ts"
21767
21818
  }
21768
21819
  },
21820
+ {
21821
+ "kind": "js",
21822
+ "name": "TabsGutters",
21823
+ "declaration": {
21824
+ "name": "TabsGutters",
21825
+ "module": "libs/components/src/lib/tabs/tabs.ts"
21826
+ }
21827
+ },
21769
21828
  {
21770
21829
  "kind": "js",
21771
21830
  "name": "TabsOrientation",
@@ -25295,7 +25354,7 @@
25295
25354
  "kind": "field",
25296
25355
  "name": "skipBy",
25297
25356
  "type": {
25298
- "text": "MediaSkipBy"
25357
+ "text": "VideoPlayerMediaSkipBy"
25299
25358
  },
25300
25359
  "description": "Allows the video to loop back to the beginning when finished",
25301
25360
  "privacy": "public"
@@ -25432,7 +25491,7 @@
25432
25491
  {
25433
25492
  "name": "skip-by",
25434
25493
  "type": {
25435
- "text": "MediaSkipBy"
25494
+ "text": "VideoPlayerMediaSkipBy"
25436
25495
  },
25437
25496
  "description": "Allows the video to loop back to the beginning when finished",
25438
25497
  "fieldName": "skipBy"
@@ -25618,6 +25677,102 @@
25618
25677
  }
25619
25678
  ]
25620
25679
  },
25680
+ {
25681
+ "kind": "javascript-module",
25682
+ "path": "libs/components/src/lib/rich-text-editor/menubar/definition.ts",
25683
+ "declarations": [
25684
+ {
25685
+ "kind": "variable",
25686
+ "name": "menuBarDefinition"
25687
+ },
25688
+ {
25689
+ "kind": "variable",
25690
+ "name": "registerMenuBar",
25691
+ "description": "Registers the menubar element with the design system.",
25692
+ "parameters": [
25693
+ {
25694
+ "description": "the prefix to use for the component name",
25695
+ "name": "prefix"
25696
+ }
25697
+ ]
25698
+ }
25699
+ ],
25700
+ "exports": [
25701
+ {
25702
+ "kind": "js",
25703
+ "name": "menuBarDefinition",
25704
+ "declaration": {
25705
+ "name": "menuBarDefinition",
25706
+ "module": "libs/components/src/lib/rich-text-editor/menubar/definition.ts"
25707
+ }
25708
+ },
25709
+ {
25710
+ "kind": "js",
25711
+ "name": "registerMenuBar",
25712
+ "declaration": {
25713
+ "name": "registerMenuBar",
25714
+ "module": "libs/components/src/lib/rich-text-editor/menubar/definition.ts"
25715
+ }
25716
+ }
25717
+ ]
25718
+ },
25719
+ {
25720
+ "kind": "javascript-module",
25721
+ "path": "libs/components/src/lib/rich-text-editor/menubar/menubar.ts",
25722
+ "declarations": [
25723
+ {
25724
+ "kind": "class",
25725
+ "description": "",
25726
+ "name": "MenuBar",
25727
+ "members": [
25728
+ {
25729
+ "kind": "field",
25730
+ "name": "menuItems",
25731
+ "type": {
25732
+ "text": "string | undefined"
25733
+ }
25734
+ },
25735
+ {
25736
+ "kind": "field",
25737
+ "name": "VIVID_VERSION",
25738
+ "static": true,
25739
+ "default": "__PACKAGE_VERSION__",
25740
+ "description": "The current version of the Vivid library, which is useful for debugging.\nIt can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.",
25741
+ "type": {
25742
+ "text": "string"
25743
+ },
25744
+ "inheritedFrom": {
25745
+ "name": "VividElement",
25746
+ "module": "libs/components/src/shared/foundation/vivid-element/vivid-element.ts"
25747
+ }
25748
+ }
25749
+ ],
25750
+ "attributes": [
25751
+ {
25752
+ "name": "menu-items",
25753
+ "type": {
25754
+ "text": "string | undefined"
25755
+ },
25756
+ "fieldName": "menuItems"
25757
+ }
25758
+ ],
25759
+ "superclass": {
25760
+ "name": "VividElement",
25761
+ "module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
25762
+ }
25763
+ }
25764
+ ],
25765
+ "exports": [
25766
+ {
25767
+ "kind": "js",
25768
+ "name": "MenuBar",
25769
+ "declaration": {
25770
+ "name": "MenuBar",
25771
+ "module": "libs/components/src/lib/rich-text-editor/menubar/menubar.ts"
25772
+ }
25773
+ }
25774
+ ]
25775
+ },
25621
25776
  {
25622
25777
  "kind": "javascript-module",
25623
25778
  "path": "libs/components/src/lib/rich-text-editor/facades/prose-mirror-vivid.schema.ts",
@@ -25792,102 +25947,6 @@
25792
25947
  }
25793
25948
  ]
25794
25949
  },
25795
- {
25796
- "kind": "javascript-module",
25797
- "path": "libs/components/src/lib/rich-text-editor/menubar/definition.ts",
25798
- "declarations": [
25799
- {
25800
- "kind": "variable",
25801
- "name": "menuBarDefinition"
25802
- },
25803
- {
25804
- "kind": "variable",
25805
- "name": "registerMenuBar",
25806
- "description": "Registers the menubar element with the design system.",
25807
- "parameters": [
25808
- {
25809
- "description": "the prefix to use for the component name",
25810
- "name": "prefix"
25811
- }
25812
- ]
25813
- }
25814
- ],
25815
- "exports": [
25816
- {
25817
- "kind": "js",
25818
- "name": "menuBarDefinition",
25819
- "declaration": {
25820
- "name": "menuBarDefinition",
25821
- "module": "libs/components/src/lib/rich-text-editor/menubar/definition.ts"
25822
- }
25823
- },
25824
- {
25825
- "kind": "js",
25826
- "name": "registerMenuBar",
25827
- "declaration": {
25828
- "name": "registerMenuBar",
25829
- "module": "libs/components/src/lib/rich-text-editor/menubar/definition.ts"
25830
- }
25831
- }
25832
- ]
25833
- },
25834
- {
25835
- "kind": "javascript-module",
25836
- "path": "libs/components/src/lib/rich-text-editor/menubar/menubar.ts",
25837
- "declarations": [
25838
- {
25839
- "kind": "class",
25840
- "description": "",
25841
- "name": "MenuBar",
25842
- "members": [
25843
- {
25844
- "kind": "field",
25845
- "name": "menuItems",
25846
- "type": {
25847
- "text": "string | undefined"
25848
- }
25849
- },
25850
- {
25851
- "kind": "field",
25852
- "name": "VIVID_VERSION",
25853
- "static": true,
25854
- "default": "__PACKAGE_VERSION__",
25855
- "description": "The current version of the Vivid library, which is useful for debugging.\nIt can be accessed from any Vivid element via `<el>.constructor.VIVID_VERSION`.",
25856
- "type": {
25857
- "text": "string"
25858
- },
25859
- "inheritedFrom": {
25860
- "name": "VividElement",
25861
- "module": "libs/components/src/shared/foundation/vivid-element/vivid-element.ts"
25862
- }
25863
- }
25864
- ],
25865
- "attributes": [
25866
- {
25867
- "name": "menu-items",
25868
- "type": {
25869
- "text": "string | undefined"
25870
- },
25871
- "fieldName": "menuItems"
25872
- }
25873
- ],
25874
- "superclass": {
25875
- "name": "VividElement",
25876
- "module": "/libs/components/src/shared/foundation/vivid-element/vivid-element"
25877
- }
25878
- }
25879
- ],
25880
- "exports": [
25881
- {
25882
- "kind": "js",
25883
- "name": "MenuBar",
25884
- "declaration": {
25885
- "name": "MenuBar",
25886
- "module": "libs/components/src/lib/rich-text-editor/menubar/menubar.ts"
25887
- }
25888
- }
25889
- ]
25890
- },
25891
25950
  {
25892
25951
  "kind": "javascript-module",
25893
25952
  "path": "libs/components/src/shared/foundation/anchor/anchor.ts",
package/index.cjs CHANGED
@@ -86,7 +86,6 @@ exports.Role = enums.Role;
86
86
  exports.Shape = enums.Shape;
87
87
  exports.Size = enums.Size;
88
88
  exports.Sticky = enums.Sticky;
89
- exports.TabsGutters = enums.TabsGutters;
90
89
  exports.setLocale = localized.setLocale;
91
90
  exports.VwcAccordionItemElement = definition.AccordionItem;
92
91
  exports.accordionItemDefinition = definition.accordionItemDefinition;
@@ -283,6 +282,7 @@ exports.tabPanelDefinition = definition$O.tabPanelDefinition;
283
282
  exports.VwcTabElement = definition$P.Tab;
284
283
  exports.registerTab = definition$P.registerTab;
285
284
  exports.tabDefinition = definition$P.tabDefinition;
285
+ exports.TabsGutters = definition$Q.TabsGutters;
286
286
  exports.VwcTabsElement = definition$Q.Tabs;
287
287
  exports.registerTabs = definition$Q.registerTabs;
288
288
  exports.tabsDefinition = definition$Q.tabsDefinition;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- export { A as Appearance, c as AriaLive, C as Connotation, a as ConnotationDecorative, I as IconDecoration, L as LayoutSize, M as MediaSkipBy, P as Position, R as Role, S as Shape, b as Size, d as Sticky, T as TabsGutters } from './shared/enums.js';
1
+ export { A as Appearance, c as AriaLive, C as Connotation, a as ConnotationDecorative, I as IconDecoration, L as LayoutSize, M as MediaSkipBy, P as Position, R as Role, S as Shape, b as Size, d as Sticky } from './shared/enums.js';
2
2
  export { s as setLocale } from './shared/localized.js';
3
3
  export { A as VwcAccordionItemElement, a as accordionItemDefinition, r as registerAccordionItem } from './shared/definition.js';
4
4
  export { A as AccordionExpandMode, b as VwcAccordionElement, a as accordionDefinition, r as registerAccordion } from './shared/definition2.js';
@@ -55,7 +55,7 @@ export { S as VwcSplitButtonElement, r as registerSplitButton, s as splitButtonD
55
55
  export { S as VwcSwitchElement, r as registerSwitch, s as switchDefinition } from './shared/definition50.js';
56
56
  export { T as VwcTabPanelElement, r as registerTabPanel, t as tabPanelDefinition } from './shared/definition51.js';
57
57
  export { T as VwcTabElement, r as registerTab, t as tabDefinition } from './shared/definition52.js';
58
- export { T as VwcTabsElement, r as registerTabs, t as tabsDefinition } from './shared/definition53.js';
58
+ export { a as TabsGutters, T as VwcTabsElement, r as registerTabs, t as tabsDefinition } from './shared/definition53.js';
59
59
  export { T as VwcTagGroupElement, r as registerTagGroup, t as tagGroupDefinition } from './shared/definition54.js';
60
60
  export { T as VwcTagElement, r as registerTag, t as tagDefinition } from './shared/definition55.js';
61
61
  export { T as VwcTextAreaElement, r as registerTextArea, t as textAreaDefinition } from './shared/definition56.js';
@@ -3,6 +3,7 @@ import { MediaSkipBy } from '../enums';
3
3
  import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
4
4
  import type { ExtractFromEnum } from '../../shared/utils/enums';
5
5
  export type AudioPlayerConnotation = ExtractFromEnum<Connotation, Connotation.Accent | Connotation.CTA>;
6
+ export type AudioPlayerMediaSkipBy = ExtractFromEnum<MediaSkipBy, MediaSkipBy.Zero | MediaSkipBy.Five | MediaSkipBy.Ten | MediaSkipBy.Thirty>;
6
7
  export declare const SKIP_DIRECTIONS: {
7
8
  FORWARD: number;
8
9
  BACKWARD: number;
@@ -349,7 +350,7 @@ export declare class AudioPlayer extends AudioPlayer_base {
349
350
  srcChanged(): void;
350
351
  disabled: boolean;
351
352
  notime: boolean;
352
- skipBy?: MediaSkipBy;
353
+ skipBy?: AudioPlayerMediaSkipBy;
353
354
  playbackRates: string | null;
354
355
  get paused(): boolean;
355
356
  set paused(_: boolean);
@@ -1,12 +1,14 @@
1
1
  import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
2
2
  import { Sticky } from '../enums';
3
+ import type { ExtractFromEnum } from '../../shared/utils/enums';
4
+ export type CalendarSticky = ExtractFromEnum<Sticky, Sticky.None | Sticky.Header | Sticky.Column | Sticky.All>;
3
5
  export declare class Calendar extends VividElement {
4
6
  #private;
5
7
  datetime?: Date | string;
6
8
  startDay?: 'sunday' | 'monday';
7
9
  locales?: string | string[] | undefined;
8
10
  hour12: boolean;
9
- stickyMode: Sticky;
11
+ stickyMode: CalendarSticky;
10
12
  getEventContext: (this: Calendar, e: KeyboardEvent | MouseEvent) => import("./helpers/calendar.event-context").CalendarEventContext | null;
11
13
  private getCalendarEventContainingCell;
12
14
  private arrowKeysInteractions;
package/lib/enums.d.ts CHANGED
@@ -51,10 +51,6 @@ export declare enum LayoutSize {
51
51
  Medium = "medium",
52
52
  Large = "large"
53
53
  }
54
- export declare enum TabsGutters {
55
- None = "none",
56
- Small = "small"
57
- }
58
54
  export declare enum Position {
59
55
  Top = "TOP",
60
56
  Bottom = "BOTTOM",
@@ -1,8 +1,8 @@
1
1
  import Dropzone from 'dropzone';
2
- import type { Size } from '../enums';
3
- import { type ErrorText, type FormElement, FormElementHelperText } from '../../shared/patterns';
4
2
  import type { Locale } from '../../shared/localization/Locale';
3
+ import { type ErrorText, type FormElement, FormElementHelperText } from '../../shared/patterns';
5
4
  import type { ExtractFromEnum } from '../../shared/utils/enums';
5
+ import type { Size } from '../enums';
6
6
  import { FormAssociatedFilePicker } from './file-picker.form-associated';
7
7
  export type FilePickerSize = ExtractFromEnum<Size, Size.Normal | Size.Expanded>;
8
8
  declare const FilePicker_base: {
@@ -334,6 +334,7 @@ declare const FilePicker_base: {
334
334
  export declare class FilePicker extends FilePicker_base {
335
335
  #private;
336
336
  get files(): File[];
337
+ get rejectedFiles(): File[];
337
338
  singleFile: boolean;
338
339
  singleFileChanged(): void;
339
340
  maxFiles?: number;
@@ -1,4 +1,5 @@
1
1
  import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
2
+ import type { OptionTagConnotation } from '../searchable-select/option-tag';
2
3
  export declare function isListboxOption(el: Element): el is ListboxOption;
3
4
  declare const ListboxOption_base: {
4
5
  new (...args: any[]): {
@@ -352,6 +353,7 @@ export declare class ListboxOption extends ListboxOption_base {
352
353
  get form(): HTMLFormElement | null;
353
354
  matchedText?: string;
354
355
  get _hasMatchedText(): boolean;
356
+ tagConnotation?: OptionTagConnotation;
355
357
  constructor(text?: string, value?: string, defaultSelected?: boolean, selected?: boolean);
356
358
  }
357
359
  export {};
@@ -3,12 +3,12 @@ export interface RichTextEditorSelection {
3
3
  start: number;
4
4
  end?: number;
5
5
  }
6
- export declare const RichTextEditorTextSizes: {
6
+ export declare const RichTextEditorTextBlocks: {
7
7
  readonly title: "h2";
8
8
  readonly subtitle: "h3";
9
9
  readonly body: "p";
10
10
  };
11
- export type RichTextEditorTextSizes = keyof typeof RichTextEditorTextSizes;
11
+ export type RichTextEditorTextBlocks = keyof typeof RichTextEditorTextBlocks;
12
12
  export declare class RichTextEditor extends VividElement {
13
13
  #private;
14
14
  get value(): string;
@@ -19,6 +19,7 @@ export declare class RichTextEditor extends VividElement {
19
19
  selectionEndChanged(): void;
20
20
  constructor();
21
21
  connectedCallback(): void;
22
- setTextSize(size: 'title' | 'subtitle' | 'body'): void;
22
+ setTextBlock(blockType: 'title' | 'subtitle' | 'body'): void;
23
23
  setSelectionDecoration(decoration: string): void;
24
+ focus(): void;
24
25
  }
@@ -1,7 +1,8 @@
1
1
  import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
2
- import { Shape } from '../enums';
2
+ import { Connotation, Shape } from '../enums';
3
3
  import type { ExtractFromEnum } from '../../shared/utils/enums';
4
4
  export type OptionTagShape = ExtractFromEnum<Shape, Shape.Rounded | Shape.Pill>;
5
+ export type OptionTagConnotation = ExtractFromEnum<Connotation, Connotation.Accent | Connotation.CTA>;
5
6
  declare const OptionTag_base: {
6
7
  new (...args: any[]): {
7
8
  readonly locale: import("../shared/localization/Locale").Locale;
@@ -330,6 +331,7 @@ declare const OptionTag_base: {
330
331
  } & typeof VividElement;
331
332
  export declare class OptionTag extends OptionTag_base {
332
333
  shape?: OptionTagShape;
334
+ connotation?: OptionTagConnotation;
333
335
  label?: string;
334
336
  removable: boolean;
335
337
  disabled: boolean;
@@ -1,3 +1,4 @@
1
1
  import { Tabs } from './tabs';
2
+ export { TabsGutters } from './tabs';
2
3
  export declare const registerTabs: (prefix?: string) => void;
3
4
  export { Tabs as VwcTabsElement };
@@ -1,9 +1,14 @@
1
- import type { Connotation, TabsGutters } from '../enums.js';
1
+ import type { Connotation } from '../enums.js';
2
2
  import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
3
3
  import type { ExtractFromEnum } from '../../shared/utils/enums';
4
4
  export declare const ACTIVE_TAB_WIDTH = "--_tabs-active-tab-inline-size";
5
5
  export declare const TABLIST_COLUMN = "--_tabs-tablist-column";
6
6
  export type TabsConnotation = ExtractFromEnum<Connotation, Connotation.Accent | Connotation.CTA>;
7
+ export declare const TabsGutters: {
8
+ readonly None: "none";
9
+ readonly Small: "small";
10
+ };
11
+ export type TabsGutters = typeof TabsGutters[keyof typeof TabsGutters];
7
12
  export declare const TabsOrientation: {
8
13
  readonly vertical: "vertical";
9
14
  readonly horizontal: "horizontal";
@@ -1,5 +1,7 @@
1
1
  import { MediaSkipBy } from '../enums';
2
2
  import { VividElement } from '../../shared/foundation/vivid-element/vivid-element';
3
+ import type { ExtractFromEnum } from '../../shared/utils/enums';
4
+ export type VideoPlayerMediaSkipBy = ExtractFromEnum<MediaSkipBy, MediaSkipBy.Zero | MediaSkipBy.Five | MediaSkipBy.Ten | MediaSkipBy.Thirty>;
3
5
  export declare const DEFAULT_PLAYBACK_RATES = "0.5, 1, 1.5, 2";
4
6
  declare const VideoPlayer_base: {
5
7
  new (...args: any[]): {
@@ -334,7 +336,7 @@ export declare class VideoPlayer extends VideoPlayer_base {
334
336
  autoplay: boolean;
335
337
  loop: boolean;
336
338
  playbackRates: string;
337
- skipBy: MediaSkipBy;
339
+ skipBy: VideoPlayerMediaSkipBy;
338
340
  connectedCallback(): void;
339
341
  disconnectedCallback(): void;
340
342
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vonage/vivid",
3
- "version": "4.21.1",
3
+ "version": "4.22.0",
4
4
  "type": "module",
5
5
  "module": "./index.js",
6
6
  "main": "./index.cjs",