@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.
- package/README.md +31 -14
- package/banner/index.js +2 -0
- package/breadcrumb/index.js +1 -1
- package/breadcrumb-item/index.js +1 -1
- package/button/index.js +2 -0
- package/calendar/index.js +1 -1
- package/calendar-event/index.js +1 -1
- package/card/index.js +2 -2
- package/checkbox/index.js +1 -1
- package/combobox/index.js +6 -4
- package/custom-elements.json +302 -0
- package/data-grid/index.js +1 -1
- package/dialog/index.js +4 -2
- package/divider/index.js +1 -1
- package/elevation/index.js +1 -1
- package/fab/index.js +1 -1
- package/header/index.js +2 -2
- package/index.js +26 -26
- package/layout/index.js +1 -1
- package/lib/accordion-item/accordion-item.d.ts +3 -0
- package/lib/action-group/action-group.d.ts +2 -0
- package/lib/button/button.d.ts +1 -0
- package/lib/button/button.template.d.ts +1 -1
- package/lib/select/select.d.ts +2 -3
- package/listbox/index.js +2 -2
- package/menu/index.js +6 -4
- package/menu-item/index.js +1 -1
- package/nav/index.js +1 -1
- package/nav-disclosure/index.js +1 -1
- package/nav-item/index.js +1 -1
- package/note/index.js +1 -1
- package/number-field/index.js +4 -2
- package/option/index.js +1 -1
- package/package.json +1 -1
- package/popup/index.js +4 -2
- package/progress/index.js +1 -1
- package/progress-ring/index.js +1 -1
- package/select/index.js +5 -3
- package/shared/definition.js +1 -1
- package/shared/definition10.js +69 -91
- package/shared/definition11.js +91 -40
- package/shared/definition12.js +31 -755
- package/shared/definition13.js +754 -93
- package/shared/definition14.js +100 -103
- package/shared/definition15.js +106 -24
- package/shared/definition16.js +24 -164
- package/shared/definition17.js +108 -663
- package/shared/definition18.js +667 -1533
- package/shared/definition19.js +1545 -223
- package/shared/definition2.js +8 -7
- package/shared/definition20.js +183 -964
- package/shared/definition21.js +1037 -222
- package/shared/definition22.js +226 -67
- package/shared/definition23.js +68 -77
- package/shared/definition24.js +76 -47
- package/shared/definition25.js +46 -32
- package/shared/definition26.js +35 -49
- package/shared/definition27.js +48 -344
- package/shared/definition28.js +273 -282
- package/shared/definition29.js +356 -14
- package/shared/definition30.js +13 -67
- package/shared/definition31.js +65 -21
- package/shared/definition32.js +21 -39
- package/shared/definition33.js +31 -432
- package/shared/definition34.js +432 -76
- package/shared/definition35.js +76 -59
- package/shared/definition36.js +3 -3
- package/shared/definition37.js +1 -1
- package/shared/definition38.js +7 -6
- package/shared/definition39.js +1 -1
- package/shared/definition4.js +1 -1
- package/shared/definition41.js +1 -1
- package/shared/definition42.js +1 -1
- package/shared/definition44.js +1 -1
- package/shared/definition45.js +1 -1
- package/shared/definition47.js +2 -2
- package/shared/definition48.js +1 -1
- package/shared/definition5.js +10 -3
- package/shared/definition6.js +1 -1
- package/shared/definition7.js +1 -1
- package/shared/definition8.js +1 -1
- package/shared/definition9.js +14 -4
- package/shared/form-elements.js +1 -1
- package/shared/icon.js +1 -1
- package/shared/listbox.js +1 -1
- package/shared/patterns/form-elements/form-elements.d.ts +2 -2
- package/shared/text-field.js +1 -1
- package/styles/core/all.css +1 -1
- package/styles/core/theme.css +1 -1
- package/styles/core/typography.css +1 -1
- package/styles/tokens/theme-dark.css +4 -4
- package/styles/tokens/theme-light.css +4 -4
- 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
|

|
|
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**,
|
|
38
|
+
To **include the tokens**, you must load theme css:
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
<vwc-note connotation="warning" icon="warning-solid" headline="Only one theme is required to be loaded."></vwc-note>
|
|
39
41
|
|
|
40
|
-
|
|
42
|
+
```js
|
|
43
|
+
'node_modules/@vonage/vivid/styles/tokens/theme-light.css';
|
|
44
|
+
```
|
|
41
45
|
|
|
42
|
-
|
|
46
|
+
**Or**
|
|
43
47
|
|
|
44
|
-
|
|
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
|
|
69
|
-
Learn how to load fonts into your application
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
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';
|
package/breadcrumb/index.js
CHANGED
package/breadcrumb-item/index.js
CHANGED
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
package/calendar-event/index.js
CHANGED
package/card/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerCard } from '../shared/
|
|
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/
|
|
10
|
+
import '../shared/definition16.js';
|
|
11
11
|
import '../shared/slotted.js';
|
|
12
12
|
|
|
13
13
|
registerCard();
|
package/checkbox/index.js
CHANGED
package/combobox/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerCombobox } from '../shared/
|
|
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/
|
|
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/
|
|
25
|
+
import '../shared/definition16.js';
|
|
24
26
|
import '../shared/es.object.assign.js';
|
|
25
|
-
import '../shared/
|
|
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';
|