@vonage/vivid 3.0.0-next.45 → 3.0.0-next.46
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 +21 -0
- package/checkbox/index.js +1 -4
- package/index.js +2 -1
- package/lib/components.d.ts +1 -0
- package/lib/menu/index.d.ts +11 -0
- package/lib/menu/menu.d.ts +7 -0
- package/lib/menu/menu.template.d.ts +3 -0
- package/menu/index.js +661 -0
- package/package.json +3 -2
- package/popup/index.js +13 -2109
- package/shared/form-associated.js +10 -1
- package/shared/icon.js +1 -1
- package/shared/index3.js +2109 -0
- package/tooltip/index.js +1 -1
package/README.md
CHANGED
|
@@ -108,3 +108,24 @@ This project is licensed under the Apache 2.0 License - see the [LICENSE.md](LIC
|
|
|
108
108
|
- [Fast](https://www.fast.design) - to extend element classes and compile code to native web components
|
|
109
109
|
- [Typescript](https://www.typescriptlang.org) - for ergonomic and type-safe code
|
|
110
110
|
- [Sass](https://sass-lang.com) - for styles authoring extensibility and consistency
|
|
111
|
+
|
|
112
|
+
## Quickstart
|
|
113
|
+
|
|
114
|
+
Global content delivery networks can help quickly integrate content within html pages, fetching content from an URL, skipping local builds entirely.
|
|
115
|
+
Such practice is often used when working on POCs or reproduction environments.
|
|
116
|
+
Tools like [UNPKG](https://unpkg.com), [jsDeliver](https://www.jsdelivr.com), [Skypack](https://www.skypack.dev) etc' are bound to deliver any content registered in the npm registry.
|
|
117
|
+
|
|
118
|
+
The following snippet fully renders a Vivid button component
|
|
119
|
+
|
|
120
|
+
```html
|
|
121
|
+
<!-- import spezia font -->
|
|
122
|
+
<link rel="stylesheet" href="https://unpkg.com/@vonage/vivid@next/styles/fonts/spezia.css">
|
|
123
|
+
|
|
124
|
+
<!-- import light theme style tokens -->
|
|
125
|
+
<link rel="stylesheet" href="https://unpkg.com/@vonage/vivid@next/styles/themes/light.css">
|
|
126
|
+
|
|
127
|
+
<!-- import Vivid button component -->
|
|
128
|
+
<script type="module" src="https://unpkg.com/@vonage/vivid@next/button/index.js"></script>
|
|
129
|
+
|
|
130
|
+
<vwc-button label="Click me" appearance="filled" connotation="cta"></vwc-button>
|
|
131
|
+
```
|
package/checkbox/index.js
CHANGED
|
@@ -166,10 +166,7 @@ const CheckboxTemplate = context => {
|
|
|
166
166
|
const vividCheckbox = Checkbox.compose({
|
|
167
167
|
baseName: 'checkbox',
|
|
168
168
|
template: CheckboxTemplate,
|
|
169
|
-
styles: css_248z
|
|
170
|
-
shadowOptions: {
|
|
171
|
-
delegatesFocus: true
|
|
172
|
-
}
|
|
169
|
+
styles: css_248z
|
|
173
170
|
});
|
|
174
171
|
designSystem.register(vividCheckbox());
|
|
175
172
|
|
package/index.js
CHANGED
|
@@ -13,8 +13,9 @@ export { v as vividElevation } from './shared/index2.js';
|
|
|
13
13
|
export { vividFab } from './fab/index.js';
|
|
14
14
|
export { vividIcon } from './icon/index.js';
|
|
15
15
|
export { vividLayout } from './layout/index.js';
|
|
16
|
+
export { vividMenu } from './menu/index.js';
|
|
16
17
|
export { vividNote } from './note/index.js';
|
|
17
|
-
export { vividPopup } from './
|
|
18
|
+
export { v as vividPopup } from './shared/index3.js';
|
|
18
19
|
export { vividProgress } from './progress/index.js';
|
|
19
20
|
export { vividProgressRing } from './progress-ring/index.js';
|
|
20
21
|
export { vividSideDrawer } from './side-drawer/index.js';
|
package/lib/components.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import '../popup';
|
|
2
|
+
import { Menu } from './menu';
|
|
3
|
+
export declare const vividMenu: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<{
|
|
4
|
+
baseName: string;
|
|
5
|
+
template: any;
|
|
6
|
+
styles: import("@microsoft/fast-element").ComposableStyles;
|
|
7
|
+
}> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<{
|
|
8
|
+
baseName: string;
|
|
9
|
+
template: any;
|
|
10
|
+
styles: import("@microsoft/fast-element").ComposableStyles;
|
|
11
|
+
}, typeof Menu>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type ElementViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
export declare const MenuTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ElementViewTemplate;
|