@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 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 './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';
@@ -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';
@@ -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;