@vonage/vivid 3.49.0-preview.1 → 3.50.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 (205) 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/alert/index.cjs +2 -2
  6. package/alert/index.js +2 -2
  7. package/appearance-ui/index.cjs +1 -1
  8. package/appearance-ui/index.js +1 -1
  9. package/audio-player/index.cjs +1 -1
  10. package/audio-player/index.js +1 -1
  11. package/banner/index.cjs +1 -1
  12. package/banner/index.js +1 -1
  13. package/breadcrumb-item/index.cjs +1 -1
  14. package/breadcrumb-item/index.js +1 -1
  15. package/button/index.cjs +1 -1
  16. package/button/index.js +1 -1
  17. package/card/index.cjs +1 -1
  18. package/card/index.js +1 -1
  19. package/checkbox/index.cjs +1 -2
  20. package/checkbox/index.js +1 -2
  21. package/combobox/index.cjs +3 -3
  22. package/combobox/index.js +3 -3
  23. package/custom-elements.json +859 -146
  24. package/date-picker/index.cjs +4 -3
  25. package/date-picker/index.js +4 -3
  26. package/date-range-picker/index.cjs +3 -2
  27. package/date-range-picker/index.js +3 -2
  28. package/dialog/index.cjs +2 -2
  29. package/dialog/index.js +2 -2
  30. package/elevation/index.cjs +1 -1
  31. package/elevation/index.js +1 -1
  32. package/fab/index.cjs +1 -1
  33. package/fab/index.js +1 -1
  34. package/file-picker/index.cjs +1 -1
  35. package/file-picker/index.js +1 -1
  36. package/focus/index.cjs +1 -1
  37. package/focus/index.js +1 -1
  38. package/header/index.cjs +1 -1
  39. package/header/index.js +1 -1
  40. package/index.cjs +21 -16
  41. package/index.js +10 -8
  42. package/lib/components.d.ts +1 -0
  43. package/lib/time-picker/definition.d.ts +3 -0
  44. package/lib/time-picker/locale.d.ts +12 -0
  45. package/lib/time-picker/time/picker.d.ts +9 -0
  46. package/lib/time-picker/time/presentationTime.d.ts +5 -0
  47. package/lib/time-picker/time/time.d.ts +15 -0
  48. package/lib/time-picker/time-picker.d.ts +16 -0
  49. package/lib/time-picker/time-picker.form-associated.d.ts +10 -0
  50. package/lib/time-picker/time-picker.template.d.ts +4 -0
  51. package/listbox/index.cjs +2 -2
  52. package/listbox/index.js +2 -2
  53. package/locales/en-GB.cjs +15 -0
  54. package/locales/en-GB.js +15 -0
  55. package/locales/en-US.cjs +15 -0
  56. package/locales/en-US.js +15 -0
  57. package/locales/ja-JP.cjs +15 -0
  58. package/locales/ja-JP.js +15 -0
  59. package/locales/zh-CN.cjs +15 -0
  60. package/locales/zh-CN.js +15 -0
  61. package/menu/index.cjs +3 -3
  62. package/menu/index.js +3 -3
  63. package/menu-item/index.cjs +1 -1
  64. package/menu-item/index.js +1 -1
  65. package/nav-disclosure/index.cjs +1 -1
  66. package/nav-disclosure/index.js +1 -1
  67. package/nav-item/index.cjs +1 -1
  68. package/nav-item/index.js +1 -1
  69. package/number-field/index.cjs +1 -1
  70. package/number-field/index.js +1 -1
  71. package/option/index.cjs +1 -1
  72. package/option/index.js +1 -1
  73. package/package.json +1 -1
  74. package/pagination/index.cjs +1 -1
  75. package/pagination/index.js +1 -1
  76. package/popup/index.cjs +3 -3
  77. package/popup/index.js +3 -3
  78. package/radio/index.cjs +1 -2
  79. package/radio/index.js +1 -2
  80. package/select/index.cjs +3 -3
  81. package/select/index.js +3 -3
  82. package/selectable-box/index.cjs +2 -2
  83. package/selectable-box/index.js +2 -2
  84. package/shared/date-picker/date-picker-base.d.ts +2 -2
  85. package/shared/definition.cjs +1 -1
  86. package/shared/definition.js +1 -1
  87. package/shared/definition11.cjs +1 -1
  88. package/shared/definition11.js +1 -1
  89. package/shared/definition14.cjs +1 -1
  90. package/shared/definition14.js +1 -1
  91. package/shared/definition15.cjs +2 -5
  92. package/shared/definition15.js +2 -5
  93. package/shared/definition16.cjs +3 -3
  94. package/shared/definition16.js +3 -3
  95. package/shared/definition18.cjs +2 -2
  96. package/shared/definition18.js +2 -2
  97. package/shared/definition19.cjs +2 -2
  98. package/shared/definition19.js +2 -2
  99. package/shared/definition20.cjs +1 -1
  100. package/shared/definition20.js +1 -1
  101. package/shared/definition23.cjs +1 -1
  102. package/shared/definition23.js +1 -1
  103. package/shared/definition24.cjs +1 -1
  104. package/shared/definition24.js +1 -1
  105. package/shared/definition25.cjs +1 -1
  106. package/shared/definition25.js +1 -1
  107. package/shared/definition28.cjs +1 -1
  108. package/shared/definition28.js +1 -1
  109. package/shared/definition29.cjs +1 -1
  110. package/shared/definition29.js +1 -1
  111. package/shared/definition3.cjs +1 -1
  112. package/shared/definition3.js +1 -1
  113. package/shared/definition30.cjs +1 -1
  114. package/shared/definition30.js +1 -1
  115. package/shared/definition31.cjs +1 -1
  116. package/shared/definition31.js +1 -1
  117. package/shared/definition34.cjs +1 -1
  118. package/shared/definition34.js +1 -1
  119. package/shared/definition35.cjs +1 -1
  120. package/shared/definition35.js +1 -1
  121. package/shared/definition4.cjs +4 -2
  122. package/shared/definition4.js +4 -2
  123. package/shared/definition40.cjs +3 -6
  124. package/shared/definition40.js +3 -6
  125. package/shared/definition41.cjs +3 -3
  126. package/shared/definition41.js +3 -3
  127. package/shared/definition42.cjs +1 -1
  128. package/shared/definition42.js +1 -1
  129. package/shared/definition44.cjs +1 -1
  130. package/shared/definition44.js +1 -1
  131. package/shared/definition45.cjs +1 -1
  132. package/shared/definition45.js +1 -1
  133. package/shared/definition46.cjs +2 -2
  134. package/shared/definition46.js +2 -2
  135. package/shared/definition48.cjs +1 -1
  136. package/shared/definition48.js +1 -1
  137. package/shared/definition5.cjs +1 -1
  138. package/shared/definition5.js +1 -1
  139. package/shared/definition51.cjs +1 -1
  140. package/shared/definition51.js +1 -1
  141. package/shared/definition52.cjs +2 -2
  142. package/shared/definition52.js +2 -2
  143. package/shared/definition53.cjs +3 -3
  144. package/shared/definition53.js +3 -3
  145. package/shared/definition54.cjs +769 -91
  146. package/shared/definition54.js +768 -90
  147. package/shared/definition55.cjs +76 -58
  148. package/shared/definition55.js +75 -57
  149. package/shared/definition56.cjs +100 -71
  150. package/shared/definition56.js +99 -70
  151. package/shared/definition57.cjs +80 -291
  152. package/shared/definition57.js +81 -292
  153. package/shared/definition58.cjs +303 -13
  154. package/shared/definition58.js +302 -13
  155. package/shared/definition59.cjs +11 -42
  156. package/shared/definition59.js +11 -41
  157. package/shared/definition60.cjs +23 -1782
  158. package/shared/definition60.js +22 -1781
  159. package/shared/definition61.cjs +1810 -0
  160. package/shared/definition61.js +1806 -0
  161. package/shared/definition9.cjs +1 -1
  162. package/shared/definition9.js +1 -1
  163. package/shared/localization/Locale.d.ts +2 -0
  164. package/shared/patterns/index.d.ts +1 -0
  165. package/shared/patterns/trapped-focus.d.ts +4 -0
  166. package/shared/presentationDate.cjs +11 -25
  167. package/shared/presentationDate.js +11 -25
  168. package/shared/text-field.cjs +1 -1
  169. package/shared/text-field.js +1 -1
  170. package/shared/trapped-focus.cjs +29 -0
  171. package/shared/trapped-focus.js +27 -0
  172. package/slider/index.cjs +1 -1
  173. package/slider/index.js +1 -1
  174. package/split-button/index.cjs +1 -1
  175. package/split-button/index.js +1 -1
  176. package/style.css +1 -1
  177. package/styles/core/all.css +1 -1
  178. package/styles/core/theme.css +1 -1
  179. package/styles/core/typography.css +1 -1
  180. package/styles/tokens/theme-dark.css +4 -4
  181. package/styles/tokens/theme-light.css +4 -4
  182. package/styles/tokens/vivid-2-compat.css +1 -1
  183. package/switch/index.cjs +1 -1
  184. package/switch/index.js +1 -1
  185. package/tab/index.cjs +1 -1
  186. package/tab/index.js +1 -1
  187. package/tabs/index.cjs +1 -1
  188. package/tabs/index.js +1 -1
  189. package/tag/index.cjs +1 -1
  190. package/tag/index.js +1 -1
  191. package/text-area/index.cjs +1 -1
  192. package/text-area/index.js +1 -1
  193. package/text-field/index.cjs +1 -1
  194. package/text-field/index.js +1 -1
  195. package/time-picker/index.cjs +38 -0
  196. package/time-picker/index.js +36 -0
  197. package/toggletip/index.cjs +4 -4
  198. package/toggletip/index.js +4 -4
  199. package/tooltip/index.cjs +4 -4
  200. package/tooltip/index.js +4 -4
  201. package/tree-item/index.cjs +2 -2
  202. package/tree-item/index.js +2 -2
  203. package/tree-view/index.cjs +1 -1
  204. package/tree-view/index.js +1 -1
  205. package/vivid.api.json +105 -0
@@ -1,51 +1,20 @@
1
1
  'use strict';
2
2
 
3
3
  const index = require('./index.cjs');
4
- const classNames = require('./class-names.cjs');
4
+ const focus = require('./focus.cjs');
5
5
 
6
- var __defProp = Object.defineProperty;
7
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
8
- var __decorateClass = (decorators, target, key, kind) => {
9
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
10
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
11
- if (decorator = decorators[i])
12
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
13
- if (kind && result)
14
- __defProp(target, key, result);
15
- return result;
16
- };
17
- class Elevation extends index.FoundationElement {
18
- }
19
- __decorateClass([
20
- index.attr
21
- ], Elevation.prototype, "dp", 2);
22
- __decorateClass([
23
- index.attr({ attribute: "no-shadow", mode: "boolean" })
24
- ], Elevation.prototype, "noShadow", 2);
6
+ const styles = ":host{display:contents;border-radius:inherit}.control{position:absolute;z-index:1;box-sizing:border-box;border-radius:inherit;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);inset:var(--focus-inset, 0);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:-2px}\n";
25
7
 
26
- const styles = ":host{display:contents}.control{display:contents}.control.dp-0{--_elevation-fill: var(--vvd-color-surface-0dp);--_elevation-shadow: var(--vvd-shadow-surface-0dp)}.control.dp-4{--_elevation-fill: var(--vvd-color-surface-4dp);--_elevation-shadow: var(--vvd-shadow-surface-4dp)}.control.dp-8{--_elevation-fill: var(--vvd-color-surface-8dp);--_elevation-shadow: var(--vvd-shadow-surface-8dp)}.control.dp-12{--_elevation-fill: var(--vvd-color-surface-12dp);--_elevation-shadow: var(--vvd-shadow-surface-12dp)}.control.dp-16{--_elevation-fill: var(--vvd-color-surface-16dp);--_elevation-shadow: var(--vvd-shadow-surface-16dp)}.control.dp-24{--_elevation-fill: var(--vvd-color-surface-24dp);--_elevation-shadow: var(--vvd-shadow-surface-24dp)}.control:not(.dp-0,.dp-4,.dp-8,.dp-12,.dp-16,.dp-24){--_elevation-fill: var(--vvd-color-surface-2dp);--_elevation-shadow: var(--vvd-shadow-surface-2dp)}.control ::slotted(*){position:relative;isolation:isolate}.control ::slotted(*):before{position:absolute;z-index:-1;background:var(--_elevation-fill);block-size:100%;border-radius:inherit;content:\"\";filter:var(--_elevation-shadow);inline-size:100%;inset-block-start:0;inset-inline-start:0;transition:background-color .15s linear,filter .15s linear}.control.no-shadow ::slotted(*):before{filter:none}\n";
8
+ const focusTemplate = () => index.html`
9
+ <span class="control"></span>`;
27
10
 
28
- const getClasses = ({
29
- dp,
30
- noShadow
31
- }) => classNames.classNames(
32
- "control",
33
- [`dp-${dp}`, Boolean(dp)],
34
- ["no-shadow", Boolean(noShadow)]
35
- );
36
- const elevationTemplate = () => index.html`
37
- <div class="${getClasses}" part="base">
38
- <slot></slot>
39
- </div>`;
40
-
41
- const elevationDefinition = Elevation.compose({
42
- baseName: "elevation",
43
- template: elevationTemplate,
11
+ const focusDefinition = focus.Focus.compose({
12
+ baseName: "focus",
13
+ template: focusTemplate,
44
14
  styles
45
15
  });
46
- const elevationRegistries = [elevationDefinition()];
47
- const registerElevation = index.registerFactory(elevationRegistries);
16
+ const focusRegistries = [focusDefinition()];
17
+ const registerFocus = index.registerFactory(focusRegistries);
48
18
 
49
- exports.Elevation = Elevation;
50
- exports.elevationRegistries = elevationRegistries;
51
- exports.registerElevation = registerElevation;
19
+ exports.focusRegistries = focusRegistries;
20
+ exports.registerFocus = registerFocus;
@@ -1,47 +1,17 @@
1
- import { a as attr, F as FoundationElement, h as html, r as registerFactory } from './index.js';
2
- import { c as classNames } from './class-names.js';
1
+ import { h as html, r as registerFactory } from './index.js';
2
+ import { F as Focus } from './focus.js';
3
3
 
4
- var __defProp = Object.defineProperty;
5
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __decorateClass = (decorators, target, key, kind) => {
7
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
8
- for (var i = decorators.length - 1, decorator; i >= 0; i--)
9
- if (decorator = decorators[i])
10
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
11
- if (kind && result)
12
- __defProp(target, key, result);
13
- return result;
14
- };
15
- class Elevation extends FoundationElement {
16
- }
17
- __decorateClass([
18
- attr
19
- ], Elevation.prototype, "dp", 2);
20
- __decorateClass([
21
- attr({ attribute: "no-shadow", mode: "boolean" })
22
- ], Elevation.prototype, "noShadow", 2);
4
+ const styles = ":host{display:contents;border-radius:inherit}.control{position:absolute;z-index:1;box-sizing:border-box;border-radius:inherit;box-shadow:inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);inset:var(--focus-inset, 0);outline:2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));outline-offset:-2px}\n";
23
5
 
24
- const styles = ":host{display:contents}.control{display:contents}.control.dp-0{--_elevation-fill: var(--vvd-color-surface-0dp);--_elevation-shadow: var(--vvd-shadow-surface-0dp)}.control.dp-4{--_elevation-fill: var(--vvd-color-surface-4dp);--_elevation-shadow: var(--vvd-shadow-surface-4dp)}.control.dp-8{--_elevation-fill: var(--vvd-color-surface-8dp);--_elevation-shadow: var(--vvd-shadow-surface-8dp)}.control.dp-12{--_elevation-fill: var(--vvd-color-surface-12dp);--_elevation-shadow: var(--vvd-shadow-surface-12dp)}.control.dp-16{--_elevation-fill: var(--vvd-color-surface-16dp);--_elevation-shadow: var(--vvd-shadow-surface-16dp)}.control.dp-24{--_elevation-fill: var(--vvd-color-surface-24dp);--_elevation-shadow: var(--vvd-shadow-surface-24dp)}.control:not(.dp-0,.dp-4,.dp-8,.dp-12,.dp-16,.dp-24){--_elevation-fill: var(--vvd-color-surface-2dp);--_elevation-shadow: var(--vvd-shadow-surface-2dp)}.control ::slotted(*){position:relative;isolation:isolate}.control ::slotted(*):before{position:absolute;z-index:-1;background:var(--_elevation-fill);block-size:100%;border-radius:inherit;content:\"\";filter:var(--_elevation-shadow);inline-size:100%;inset-block-start:0;inset-inline-start:0;transition:background-color .15s linear,filter .15s linear}.control.no-shadow ::slotted(*):before{filter:none}\n";
6
+ const focusTemplate = () => html`
7
+ <span class="control"></span>`;
25
8
 
26
- const getClasses = ({
27
- dp,
28
- noShadow
29
- }) => classNames(
30
- "control",
31
- [`dp-${dp}`, Boolean(dp)],
32
- ["no-shadow", Boolean(noShadow)]
33
- );
34
- const elevationTemplate = () => html`
35
- <div class="${getClasses}" part="base">
36
- <slot></slot>
37
- </div>`;
38
-
39
- const elevationDefinition = Elevation.compose({
40
- baseName: "elevation",
41
- template: elevationTemplate,
9
+ const focusDefinition = Focus.compose({
10
+ baseName: "focus",
11
+ template: focusTemplate,
42
12
  styles
43
13
  });
44
- const elevationRegistries = [elevationDefinition()];
45
- const registerElevation = registerFactory(elevationRegistries);
14
+ const focusRegistries = [focusDefinition()];
15
+ const registerFocus = registerFactory(focusRegistries);
46
16
 
47
- export { Elevation as E, elevationRegistries as e, registerElevation as r };
17
+ export { focusRegistries as f, registerFocus as r };