@vonage/vivid 3.5.0 → 3.7.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 (93) hide show
  1. package/README.md +31 -14
  2. package/banner/index.js +2 -0
  3. package/breadcrumb/index.js +1 -1
  4. package/breadcrumb-item/index.js +1 -1
  5. package/button/index.js +2 -0
  6. package/calendar/index.js +1 -1
  7. package/calendar-event/index.js +1 -1
  8. package/card/index.js +2 -2
  9. package/checkbox/index.js +1 -1
  10. package/combobox/index.js +6 -4
  11. package/custom-elements.json +302 -0
  12. package/data-grid/index.js +1 -1
  13. package/dialog/index.js +4 -2
  14. package/divider/index.js +1 -1
  15. package/elevation/index.js +1 -1
  16. package/fab/index.js +1 -1
  17. package/header/index.js +2 -2
  18. package/index.js +26 -26
  19. package/layout/index.js +1 -1
  20. package/lib/accordion-item/accordion-item.d.ts +3 -0
  21. package/lib/action-group/action-group.d.ts +2 -0
  22. package/lib/button/button.d.ts +1 -0
  23. package/lib/button/button.template.d.ts +1 -1
  24. package/lib/select/select.d.ts +2 -3
  25. package/listbox/index.js +2 -2
  26. package/menu/index.js +6 -4
  27. package/menu-item/index.js +1 -1
  28. package/nav/index.js +1 -1
  29. package/nav-disclosure/index.js +1 -1
  30. package/nav-item/index.js +1 -1
  31. package/note/index.js +1 -1
  32. package/number-field/index.js +4 -2
  33. package/option/index.js +1 -1
  34. package/package.json +1 -1
  35. package/popup/index.js +4 -2
  36. package/progress/index.js +1 -1
  37. package/progress-ring/index.js +1 -1
  38. package/select/index.js +5 -3
  39. package/shared/definition.js +1 -1
  40. package/shared/definition10.js +69 -91
  41. package/shared/definition11.js +91 -40
  42. package/shared/definition12.js +31 -755
  43. package/shared/definition13.js +754 -93
  44. package/shared/definition14.js +100 -103
  45. package/shared/definition15.js +106 -24
  46. package/shared/definition16.js +24 -164
  47. package/shared/definition17.js +108 -663
  48. package/shared/definition18.js +667 -1533
  49. package/shared/definition19.js +1545 -223
  50. package/shared/definition2.js +8 -7
  51. package/shared/definition20.js +183 -964
  52. package/shared/definition21.js +1037 -222
  53. package/shared/definition22.js +226 -67
  54. package/shared/definition23.js +68 -77
  55. package/shared/definition24.js +76 -47
  56. package/shared/definition25.js +46 -32
  57. package/shared/definition26.js +35 -49
  58. package/shared/definition27.js +48 -344
  59. package/shared/definition28.js +273 -282
  60. package/shared/definition29.js +356 -14
  61. package/shared/definition30.js +13 -67
  62. package/shared/definition31.js +65 -21
  63. package/shared/definition32.js +21 -39
  64. package/shared/definition33.js +31 -432
  65. package/shared/definition34.js +432 -76
  66. package/shared/definition35.js +76 -59
  67. package/shared/definition36.js +3 -3
  68. package/shared/definition37.js +1 -1
  69. package/shared/definition38.js +7 -6
  70. package/shared/definition39.js +1 -1
  71. package/shared/definition4.js +1 -1
  72. package/shared/definition41.js +1 -1
  73. package/shared/definition42.js +1 -1
  74. package/shared/definition44.js +1 -1
  75. package/shared/definition45.js +1 -1
  76. package/shared/definition47.js +2 -2
  77. package/shared/definition48.js +1 -1
  78. package/shared/definition5.js +10 -3
  79. package/shared/definition6.js +1 -1
  80. package/shared/definition7.js +1 -1
  81. package/shared/definition8.js +1 -1
  82. package/shared/definition9.js +14 -4
  83. package/shared/form-elements.js +1 -1
  84. package/shared/icon.js +1 -1
  85. package/shared/listbox.js +1 -1
  86. package/shared/patterns/form-elements/form-elements.d.ts +2 -2
  87. package/shared/text-field.js +1 -1
  88. package/styles/core/all.css +1 -1
  89. package/styles/core/theme.css +1 -1
  90. package/styles/core/typography.css +1 -1
  91. package/styles/tokens/theme-dark.css +4 -4
  92. package/styles/tokens/theme-light.css +4 -4
  93. package/tooltip/index.js +4 -2
package/README.md CHANGED
@@ -5,6 +5,7 @@ Essential UI **web components** for building modern web applications, bound to p
5
5
 
6
6
  ![image](https://user-images.githubusercontent.com/10883919/189522882-968358df-ee7c-4256-b61b-550cf369a087.png)
7
7
 
8
+ ---
8
9
  ## Installation
9
10
 
10
11
  To integrate Vivid components into your project, run:
@@ -29,19 +30,24 @@ And include in HTML:
29
30
 
30
31
  For a full list of components and API, explore the [components docs](https://vivid.deno.dev) 📚.
31
32
 
33
+ ---
32
34
  ## Prerequisite
33
35
 
34
36
  ### Tokens
35
37
 
36
- To **include the tokens**, its css files must be loaded into the project from the `node_modules/@vonage/vivid/styles/tokens` folder.
38
+ To **include the tokens**, you must load theme css:
37
39
 
38
- Tokens folder contains the following files:
40
+ <vwc-note connotation="warning" icon="warning-solid" headline="Only one theme is required to be loaded."></vwc-note>
39
41
 
40
- - `theme-light.css` - Light theme
42
+ ```js
43
+ 'node_modules/@vonage/vivid/styles/tokens/theme-light.css';
44
+ ```
41
45
 
42
- - `theme-dark.css` - Dark theme
46
+ **Or**
43
47
 
44
- Only one theme is required to be loaded.
48
+ ```js
49
+ 'node_modules/@vonage/vivid/styles/tokens/theme-dark.css';
50
+ ```
45
51
 
46
52
  #### About tokens
47
53
 
@@ -65,20 +71,19 @@ You can also add it to any wrapping element if you would like to scope the style
65
71
 
66
72
  ### Fonts (Prerequisite)
67
73
 
68
- Vivid uses `Montserrat` and `Roboto Mono` Google fonts.
69
- Learn how to load fonts into your application [with google-fonts](https://fonts.google.com/knowledge/using_type/using_web_fonts_from_a_font_delivery_service#loading-web-fonts)
74
+ Vivid uses **Montserrat** and **Roboto Mono** Google fonts.
75
+ Learn how to load fonts into your application with [google-fonts](https://fonts.google.com/knowledge/using_type/using_web_fonts_from_a_font_delivery_service#loading-web-fonts)
70
76
 
71
- #### Vonage authors
77
+ Unless explicitly stated otherwise, **Vonage** products should use the brand specified font families by **Spezia**. Vonage teams may review guidelines at the [Spezia webfont kit](https://github.com/Vonage/spezia-webfont-kit).
72
78
 
73
- Unless explicitly stated otherwise, *Vonage* products should use the brand specified font families by `Spezia`.
74
- Vonage teams may review guidelines at the [Spezia webfont kit](https://github.com/Vonage/spezia-webfont-kit).
75
-
76
- 💡 For more information check out [Vonage Authors](/getting-started/vonage-authors)
79
+ 💡 For more information check out [vonage fonts](/getting-started/fonts-and-tokens)
77
80
 
81
+ ---
78
82
  ## Advanced Usage
79
83
 
80
- For further information on **core application styles** & **scoped elements** check out [advanced usage](/getting-started/advanced)
84
+ 💡 For more information on **core application styles** & **scoped elements** check out [advanced usage](/getting-started/advanced)
81
85
 
86
+ ---
82
87
  ## CDN - Quickstart
83
88
 
84
89
  Global content delivery networks can help quickly integrate content within html pages, fetching content from an URL, skipping local builds entirely.
@@ -104,16 +109,19 @@ The following snippet fully renders a Vivid button component
104
109
  </div>
105
110
  ```
106
111
 
112
+ ---
107
113
  ## Support Matrix
108
114
 
109
115
  This library is supported on 2 recent versions of major browsers (Chrome, Firefox, Safari, Edge).
110
116
 
117
+ ---
111
118
  ## Support
112
119
 
113
120
  This library is open source, developed and maintained by the [Vonage Vivid teams](https://github.com/orgs/Vonage/teams/vivid/teams).
114
121
 
115
122
  For any questions, please open a [bug report](https://github.com/Vonage/vivid-3/issues/new?assignees=yonatankra%2C+rachelbt%2C+rinaok%2C+yinonov&labels=bug&template=bug_report.yml&title=%5BYOUR+TITLE%5D%3A+Brief+description) or [feature request](https://github.com/Vonage/vivid-3/issues/new?assignees=yonatankra%2C+rachelbt%2C+rinaok%2C+yinonov&labels=Feature+request&template=feature_request.yml&title=%5BYOUR+TITLE%5D%3A+Brief+description).
116
123
 
124
+ ---
117
125
  ## Roadmap
118
126
 
119
127
  - View [components status](https://github.com/orgs/Vonage/projects/6)
@@ -121,19 +129,22 @@ For any questions, please open a [bug report](https://github.com/Vonage/vivid-3/
121
129
  - [What's on our plate](https://github.com/orgs/Vonage/projects/3/views/7)
122
130
 
123
131
  - See the [open issues](https://github.com/vonage/vivid-3/issues) for a full list of proposed features (and known issues).
124
-
132
+ ---
125
133
  ## Contributing
126
134
 
127
135
  Please read [CONTRIBUTING.md](https://github.com/Vonage/vivid-3/blob/main/.github/CONTRIBUTING.md) for details on our code of conduct, and the process for submitting pull requests to us.
128
136
 
137
+ ---
129
138
  ## Versioning
130
139
 
131
140
  We use [SemVer](http://semver.org/) for versioning. For the versions available, see the [npm page](https://www.npmjs.com/package/@vonage/vivid).
132
141
 
142
+ ---
133
143
  ## Authors
134
144
 
135
145
  See also the list of [contributors](https://github.com/Vonage/vivid-3/graphs/contributors) who participated in this project.
136
146
 
147
+ ---
137
148
  ## License
138
149
 
139
150
  This project is licensed under the Apache 2.0 License - see the [LICENSE.md](https://github.com/Vonage/vivid-3/blob/main/LICENSE.md) file for details
@@ -144,8 +155,14 @@ This project is licensed under the Apache 2.0 License - see the [LICENSE.md](htt
144
155
  - Inspiration
145
156
  - etc -->
146
157
 
158
+ ---
147
159
  ## Built With ♡ And
148
160
 
149
161
  - [Fast](https://www.fast.design) - to extend element classes and compile code to native web components
150
162
  - [Typescript](https://www.typescriptlang.org) - for ergonomic and type-safe code
151
163
  - [Sass](https://sass-lang.com) - for styles authoring extensibility and consistency
164
+
165
+ ---
166
+ ## Have questions?
167
+
168
+ Still looking for answers, ask us in [#ask-vivid](https://vonage.slack.com/archives/C013F0YKH99) slack channel.
package/banner/index.js CHANGED
@@ -10,6 +10,8 @@ import '../shared/class-names.js';
10
10
  import '../shared/when.js';
11
11
  import '../shared/definition4.js';
12
12
  import '../shared/focus.js';
13
+ import '../shared/definition10.js';
14
+ import '../shared/base-progress.js';
13
15
  import '../shared/affix.js';
14
16
  import '../shared/button.js';
15
17
  import '../shared/apply-mixins.js';
@@ -1,4 +1,4 @@
1
- import { r as registerBreadcrumb } from '../shared/definition10.js';
1
+ import { r as registerBreadcrumb } from '../shared/definition11.js';
2
2
  import '../shared/index.js';
3
3
  import '../shared/slotted.js';
4
4
  import '../shared/breadcrumb-item.js';
@@ -1,4 +1,4 @@
1
- import { r as registerBreadcrumbItem } from '../shared/definition11.js';
1
+ import { r as registerBreadcrumbItem } from '../shared/definition12.js';
2
2
  import '../shared/index.js';
3
3
  import '../shared/definition3.js';
4
4
  import '../shared/icon.js';
package/button/index.js CHANGED
@@ -9,6 +9,8 @@ import '../shared/class-names.js';
9
9
  import '../shared/when.js';
10
10
  import '../shared/definition4.js';
11
11
  import '../shared/focus.js';
12
+ import '../shared/definition10.js';
13
+ import '../shared/base-progress.js';
12
14
  import '../shared/affix.js';
13
15
  import '../shared/button.js';
14
16
  import '../shared/apply-mixins.js';
package/calendar/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as registerCalendar } from '../shared/definition12.js';
1
+ import { r as registerCalendar } from '../shared/definition13.js';
2
2
  import '../shared/index.js';
3
3
  import '../shared/calendar-event.js';
4
4
  import '../shared/es.object.assign.js';
@@ -1,4 +1,4 @@
1
- import { r as registerCalendarEvent } from '../shared/definition13.js';
1
+ import { r as registerCalendarEvent } from '../shared/definition14.js';
2
2
  import '../shared/index.js';
3
3
  import '../shared/calendar-event.js';
4
4
  import '../shared/es.object.assign.js';
package/card/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as registerCard } from '../shared/definition14.js';
1
+ import { r as registerCard } from '../shared/definition15.js';
2
2
  import '../shared/index.js';
3
3
  import '../shared/definition3.js';
4
4
  import '../shared/icon.js';
@@ -7,7 +7,7 @@ import '../shared/string-trim.js';
7
7
  import '../shared/_has.js';
8
8
  import '../shared/class-names.js';
9
9
  import '../shared/when.js';
10
- import '../shared/definition15.js';
10
+ import '../shared/definition16.js';
11
11
  import '../shared/slotted.js';
12
12
 
13
13
  registerCard();
package/checkbox/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as registerCheckbox } from '../shared/definition16.js';
1
+ import { r as registerCheckbox } from '../shared/definition17.js';
2
2
  import '../shared/index.js';
3
3
  import '../shared/definition3.js';
4
4
  import '../shared/icon.js';
package/combobox/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { r as registerCombobox } from '../shared/definition17.js';
1
+ import { r as registerCombobox } from '../shared/definition18.js';
2
2
  import '../shared/index.js';
3
3
  import '../shared/definition3.js';
4
4
  import '../shared/icon.js';
@@ -7,10 +7,12 @@ import '../shared/string-trim.js';
7
7
  import '../shared/_has.js';
8
8
  import '../shared/class-names.js';
9
9
  import '../shared/when.js';
10
- import '../shared/definition18.js';
10
+ import '../shared/definition19.js';
11
11
  import '../shared/definition9.js';
12
12
  import '../shared/definition4.js';
13
13
  import '../shared/focus.js';
14
+ import '../shared/definition10.js';
15
+ import '../shared/base-progress.js';
14
16
  import '../shared/affix.js';
15
17
  import '../shared/button.js';
16
18
  import '../shared/apply-mixins.js';
@@ -20,9 +22,9 @@ import '../shared/aria-global.js';
20
22
  import '../shared/start-end.js';
21
23
  import '../shared/ref.js';
22
24
  import '../shared/focus2.js';
23
- import '../shared/definition15.js';
25
+ import '../shared/definition16.js';
24
26
  import '../shared/es.object.assign.js';
25
- import '../shared/definition19.js';
27
+ import '../shared/definition20.js';
26
28
  import '../shared/dom.js';
27
29
  import '../shared/form-elements.js';
28
30
  import '../shared/text-field.js';