@vonage/vivid 3.0.0-next.45 → 3.0.0-next.48

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 CHANGED
@@ -52,6 +52,10 @@ The folder contains the following files:
52
52
 
53
53
  - `fonts/spezia.css` - Loads the *Spezia* variable font and specifies its font face definition. *Spezia* is Vonage's branded font and is required by most Vivid components
54
54
 
55
+ - Typography
56
+
57
+ - `typography/desktop.css` - Defines the typography for desktop devices
58
+
55
59
  - Themes - only one theme can apply at a time. thus, only one is required to be loaded
56
60
 
57
61
  - `themes/light.css` - Light theme
@@ -61,8 +65,9 @@ The folder contains the following files:
61
65
  Note: scss users can simply [forward](https://sass-lang.com/documentation/at-rules/forward) the styles to their scss project:
62
66
 
63
67
  ```css
64
- @forward 'node_modules/@vonage/vivid/styles/fonts/spezia';
65
- @forward 'node_modules/@vonage/vivid/styles/themes/light';
68
+ @forward 'node_modules/@vonage/vivid/styles/fonts/spezia.css';
69
+ @forward 'node_modules/@vonage/vivid/styles/typography/desktop.css';
70
+ @forward 'node_modules/@vonage/vivid/styles/themes/light.css';
66
71
  ```
67
72
 
68
73
  ## Support
@@ -108,3 +113,24 @@ This project is licensed under the Apache 2.0 License - see the [LICENSE.md](LIC
108
113
  - [Fast](https://www.fast.design) - to extend element classes and compile code to native web components
109
114
  - [Typescript](https://www.typescriptlang.org) - for ergonomic and type-safe code
110
115
  - [Sass](https://sass-lang.com) - for styles authoring extensibility and consistency
116
+
117
+ ## Quickstart
118
+
119
+ Global content delivery networks can help quickly integrate content within html pages, fetching content from an URL, skipping local builds entirely.
120
+ Such practice is often used when working on POCs or reproduction environments.
121
+ 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.
122
+
123
+ The following snippet fully renders a Vivid button component
124
+
125
+ ```html
126
+ <!-- import spezia font -->
127
+ <link rel="stylesheet" href="https://unpkg.com/@vonage/vivid@next/styles/fonts/spezia.css">
128
+
129
+ <!-- import light theme style tokens -->
130
+ <link rel="stylesheet" href="https://unpkg.com/@vonage/vivid@next/styles/themes/light.css">
131
+
132
+ <!-- import Vivid button component -->
133
+ <script type="module" src="https://unpkg.com/@vonage/vivid@next/button/index.js"></script>
134
+
135
+ <vwc-button label="Click me" appearance="filled" connotation="cta"></vwc-button>
136
+ ```
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,15 +13,15 @@ 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 './popup/index.js';
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';
21
22
  export { vividNav } from './nav/index.js';
22
23
  export { vividNavItem } from './nav-item/index.js';
23
24
  export { vividNavDisclosure } from './nav-disclosure/index.js';
24
- export { vividText } from './text/index.js';
25
25
  export { vividTextfield } from './text-field/index.js';
26
26
  export { vividTooltip } from './tooltip/index.js';
27
27
  export { vividCheckbox } from './checkbox/index.js';
@@ -13,6 +13,7 @@ export * from './elevation';
13
13
  export * from './fab';
14
14
  export * from './icon';
15
15
  export * from './layout';
16
+ export * from './menu';
16
17
  export * from './note';
17
18
  export * from './popup';
18
19
  export * from './progress';
@@ -21,7 +22,6 @@ export * from './side-drawer';
21
22
  export * from './nav';
22
23
  export * from './nav-item';
23
24
  export * from './nav-disclosure';
24
- export * from './text';
25
25
  export * from './text-field';
26
26
  export * from './tooltip';
27
27
  export * from './checkbox';
@@ -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,7 @@
1
+ import { Menu as FastMenu } from '@microsoft/fast-foundation';
2
+ import type { Placement } from '@floating-ui/dom';
3
+ export declare class Menu extends FastMenu {
4
+ open: boolean;
5
+ placement?: Placement;
6
+ anchor?: string;
7
+ }
@@ -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;