@vonage/vivid 2.36.3 → 3.0.0-next.100
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 +144 -0
- package/accordion/index.js +52 -0
- package/accordion-item/index.js +118 -0
- package/action-group/index.js +41 -0
- package/avatar/index.js +61 -0
- package/badge/index.js +51 -0
- package/banner/index.js +128 -0
- package/breadcrumb/index.js +103 -0
- package/breadcrumb-item/index.js +59 -0
- package/button/index.js +24 -0
- package/calendar/index.js +1526 -0
- package/calendar-event/index.js +112 -0
- package/card/index.js +114 -0
- package/checkbox/index.js +179 -0
- package/dialog/index.js +230 -0
- package/divider/index.js +4 -0
- package/elevation/index.js +3 -0
- package/fab/index.js +100 -0
- package/focus/index.js +18 -0
- package/header/index.js +61 -0
- package/icon/index.js +36 -0
- package/index.d.ts +2 -0
- package/index.js +76 -64
- package/layout/index.js +43 -0
- package/lib/accordion/accordion.d.ts +9 -0
- package/lib/accordion/accordion.template.d.ts +4 -0
- package/lib/accordion/index.d.ts +2 -0
- package/lib/accordion-item/accordion-item.d.ts +13 -0
- package/lib/accordion-item/accordion-item.template.d.ts +4 -0
- package/lib/accordion-item/index.d.ts +4 -0
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/action-group/action-group.template.d.ts +4 -0
- package/lib/action-group/index.d.ts +2 -0
- package/lib/avatar/avatar.d.ts +15 -0
- package/lib/avatar/avatar.template.d.ts +4 -0
- package/lib/avatar/index.d.ts +3 -0
- package/lib/badge/badge.d.ts +15 -0
- package/lib/badge/badge.template.d.ts +4 -0
- package/lib/badge/index.d.ts +3 -0
- package/lib/banner/banner.d.ts +20 -0
- package/lib/banner/banner.template.d.ts +4 -0
- package/lib/banner/index.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb/index.d.ts +2 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -0
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +4 -0
- package/lib/breadcrumb-item/index.d.ts +4 -0
- package/lib/button/button.d.ts +18 -0
- package/lib/button/button.template.d.ts +4 -0
- package/lib/button/index.d.ts +4 -0
- package/lib/calendar/calendar.d.ts +13 -0
- package/lib/calendar/calendar.template.d.ts +4 -0
- package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
- package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
- package/lib/calendar/index.d.ts +2 -0
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/card/card.template.d.ts +4 -0
- package/lib/card/index.d.ts +4 -0
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/index.d.ts +4 -0
- package/lib/components.d.ts +38 -0
- package/lib/dialog/dialog.d.ts +20 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/elevation/elevation.d.ts +5 -0
- package/lib/elevation/elevation.template.d.ts +4 -0
- package/lib/elevation/index.d.ts +2 -0
- package/lib/enums.d.ts +59 -0
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/focus.d.ts +3 -0
- package/lib/focus/focus.template.d.ts +4 -0
- package/lib/focus/index.d.ts +2 -0
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +3 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.placeholder.d.ts +1 -0
- package/lib/icon/icon.template.d.ts +4 -0
- package/lib/icon/index.d.ts +2 -0
- package/lib/layout/index.d.ts +2 -0
- package/lib/layout/layout.d.ts +16 -0
- package/lib/layout/layout.template.d.ts +4 -0
- package/lib/listbox/index.d.ts +4 -0
- package/lib/listbox/listbox.d.ts +9 -0
- package/lib/listbox/listbox.template.d.ts +4 -0
- package/lib/listbox-option/index.d.ts +4 -0
- package/lib/listbox-option/listbox-option.d.ts +9 -0
- package/lib/listbox-option/listbox-option.template.d.ts +4 -0
- package/lib/menu/index.d.ts +12 -0
- package/lib/menu/menu.d.ts +10 -0
- package/lib/menu/menu.template.d.ts +3 -0
- package/lib/menu-item/index.d.ts +3 -0
- package/lib/menu-item/menu-item.d.ts +7 -0
- package/lib/menu-item/menu-item.template.d.ts +5 -0
- package/lib/nav/index.d.ts +2 -0
- package/lib/nav/nav.d.ts +3 -0
- package/lib/nav/nav.template.d.ts +4 -0
- package/lib/nav-disclosure/index.d.ts +4 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
- package/lib/nav-item/index.d.ts +4 -0
- package/lib/nav-item/nav-item.d.ts +6 -0
- package/lib/nav-item/nav-item.template.d.ts +4 -0
- package/lib/note/index.d.ts +2 -0
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/number-field/index.d.ts +4 -0
- package/lib/number-field/number-field.d.ts +14 -0
- package/lib/number-field/number-field.template.d.ts +4 -0
- package/lib/popup/index.d.ts +4 -0
- package/lib/popup/popup.d.ts +18 -0
- package/lib/popup/popup.template.d.ts +4 -0
- package/lib/progress/index.d.ts +2 -0
- package/lib/progress/progress.d.ts +9 -0
- package/lib/progress/progress.template.d.ts +5 -0
- package/lib/progress-ring/index.d.ts +2 -0
- package/lib/progress-ring/progress-ring.d.ts +7 -0
- package/lib/progress-ring/progress-ring.template.d.ts +4 -0
- package/lib/radio/index.d.ts +3 -0
- package/lib/radio/radio.d.ts +4 -0
- package/lib/radio/radio.template.d.ts +4 -0
- package/lib/radio-group/index.d.ts +10 -0
- package/lib/radio-group/radio-group.d.ts +4 -0
- package/lib/radio-group/radio-group.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +2 -0
- package/lib/side-drawer/side-drawer.d.ts +9 -0
- package/lib/side-drawer/side-drawer.template.d.ts +4 -0
- package/lib/slider/index.d.ts +3 -0
- package/lib/slider/slider.d.ts +4 -0
- package/lib/slider/slider.template.d.ts +4 -0
- package/lib/switch/index.d.ts +4 -0
- package/lib/switch/switch.d.ts +7 -0
- package/lib/switch/switch.template.d.ts +4 -0
- package/lib/text-anchor/index.d.ts +2 -0
- package/lib/text-anchor/text-anchor.d.ts +7 -0
- package/lib/text-anchor/text-anchor.template.d.ts +4 -0
- package/lib/text-area/index.d.ts +4 -0
- package/lib/text-area/text-area.d.ts +9 -0
- package/lib/text-area/text-area.template.d.ts +4 -0
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +14 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/tooltip/tooltip.d.ts +8 -0
- package/lib/tooltip/tooltip.template.d.ts +4 -0
- package/listbox/index.js +1090 -0
- package/listbox-option/index.js +22 -0
- package/menu/index.js +371 -0
- package/menu-item/index.js +21 -0
- package/nav/index.js +17 -0
- package/nav-disclosure/index.js +82 -0
- package/nav-item/index.js +46 -0
- package/note/index.js +59 -0
- package/number-field/index.js +461 -0
- package/package.json +65 -323
- package/popup/index.js +27 -0
- package/progress/index.js +97 -0
- package/progress-ring/index.js +76 -0
- package/radio/index.js +47 -0
- package/radio-group/index.js +435 -0
- package/shared/_has.js +58 -0
- package/shared/affix.js +24 -0
- package/shared/anchor.js +86 -0
- package/shared/apply-mixins.js +23 -0
- package/shared/aria-global.js +72 -0
- package/shared/aria.js +9 -0
- package/shared/base-progress.js +70 -0
- package/shared/breadcrumb-item.js +25 -0
- package/shared/button.js +200 -0
- package/shared/calendar-event.js +19 -0
- package/shared/class-names.js +15 -0
- package/shared/design-system/index.d.ts +3 -0
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/direction.js +20 -0
- package/shared/dom.js +8 -0
- package/shared/enums.js +70 -0
- package/shared/es.object.assign.js +69 -0
- package/shared/es.regexp.to-string.js +59 -0
- package/shared/export.js +1017 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +466 -0
- package/shared/form-elements.js +331 -0
- package/shared/icon.js +1361 -0
- package/shared/index.js +5027 -0
- package/shared/index2.js +107 -0
- package/shared/index3.js +31 -0
- package/shared/index4.js +77 -0
- package/shared/index5.js +261 -0
- package/shared/index6.js +1525 -0
- package/shared/index7.js +349 -0
- package/shared/iterators.js +61 -0
- package/shared/key-codes.js +97 -0
- package/shared/numbers.js +25 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/affix.d.ts +9 -0
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/form-elements/form-elements.d.ts +28 -0
- package/shared/patterns/form-elements/index.d.ts +1 -0
- package/shared/patterns/index.d.ts +3 -0
- package/shared/radio.js +127 -0
- package/shared/ref.js +41 -0
- package/shared/slotted.js +119 -0
- package/shared/start-end.js +50 -0
- package/shared/string-trim.js +40 -0
- package/shared/text-anchor.js +10 -0
- package/shared/text-anchor.template.js +55 -0
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +472 -0
- package/shared/when.js +15 -0
- package/side-drawer/index.js +89 -0
- package/slider/index.js +596 -0
- package/styles/core/all.css +75 -0
- package/styles/core/theme.css +11 -0
- package/styles/core/typography.css +69 -0
- package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
- package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
- package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
- package/styles/fonts/spezia.css +20 -0
- package/styles/tokens/theme-dark.css +230 -0
- package/styles/tokens/theme-light.css +230 -0
- package/switch/index.js +153 -0
- package/text-anchor/index.js +28 -0
- package/text-area/index.js +289 -0
- package/text-field/index.js +130 -0
- package/tooltip/index.js +65 -0
package/fab/index.js
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import '../icon/index.js';
|
|
2
|
+
import '../focus/index.js';
|
|
3
|
+
import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
4
|
+
import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from '../shared/affix.js';
|
|
5
|
+
import { B as Button } from '../shared/button.js';
|
|
6
|
+
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
7
|
+
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
8
|
+
import { r as ref } from '../shared/ref.js';
|
|
9
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
10
|
+
import '../shared/icon.js';
|
|
11
|
+
import '../shared/export.js';
|
|
12
|
+
import '../shared/iterators.js';
|
|
13
|
+
import '../shared/to-string.js';
|
|
14
|
+
import '../shared/string-trim.js';
|
|
15
|
+
import '../shared/_has.js';
|
|
16
|
+
import '../shared/when.js';
|
|
17
|
+
import '../shared/focus.js';
|
|
18
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
19
|
+
import '../shared/object-keys.js';
|
|
20
|
+
import '../shared/form-associated.js';
|
|
21
|
+
import '../shared/key-codes.js';
|
|
22
|
+
import '../shared/aria-global.js';
|
|
23
|
+
import '../shared/start-end.js';
|
|
24
|
+
|
|
25
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 15 Nov 2022 13:39:19 GMT\n */\n.control {\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n border: 0 none;\n background: var(--_appearance-color-fill, var(--_elevation-fill));\n block-size: var(--_fab-block-size);\n border-radius: var(--_fab-border-radius);\n color: var(--_appearance-color-text, var(--vvd-color-canvas-text));\n column-gap: var(--fab-icon-gap);\n filter: var(--_elevation-shadow);\n font: var(--vvd-typography-base-bold);\n transition: background-color 0.15s linear, filter 0.15s linear;\n vertical-align: middle;\n /* Size */\n}\n.control.connotation-accent {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-800);\n --_connotation-color-contrast: var(--vvd-color-neutral-800);\n --_connotation-color-fierce: var(--vvd-color-neutral-700);\n --_connotation-color-firm: var(--vvd-color-canvas-text);\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n --_connotation-color-primary-text: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-cta-600);\n --_connotation-color-contrast: var(--vvd-color-cta-800);\n --_connotation-color-fierce: var(--vvd-color-cta-700);\n --_connotation-color-firm: var(--vvd-color-cta-600);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transparent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-primary-increment);\n --_appearance-color-outline: transparent;\n}\n.control:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: var(--vvd-color-neutral-200);\n --_appearance-color-outline: transparent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary-text);\n --_appearance-color-fill: var(--_connotation-color-fierce);\n --_appearance-color-outline: transparent;\n}\n@supports selector(:focus-visible) {\n .control:focus {\n outline: none;\n }\n}\n@supports (user-select: none) {\n .control {\n user-select: none;\n }\n}\n.control.size-Expanded {\n --_fab-border-radius: 30px;\n --_fab-block-size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) + 16));\n}\n.control:not(.size-expanded) {\n --_fab-border-radius: 24px;\n --_fab-block-size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1)));\n}\n.control.icon-only {\n border-radius: 50%;\n padding-inline: 0;\n place-content: center;\n}\n@supports (aspect-ratio: 1) {\n .control.icon-only {\n aspect-ratio: 1;\n }\n}\n@supports not (aspect-ratio: 1) {\n .control.icon-only {\n inline-size: var(--_fab-block-size);\n }\n}\n.control:not(.icon-only) {\n --fab-icon-gap: 10px;\n padding-inline: 20px;\n}\n.control:disabled {\n --_elevation-fill: var(--vvd-color-surface-0dp);\n --_elevation-shadow: var(--vvd-shadow-surface-0dp);\n cursor: not-allowed;\n}\n.control:not(:disabled) {\n --_elevation-fill: var(--vvd-color-surface-4dp);\n --_elevation-shadow: var(--vvd-shadow-surface-4dp);\n cursor: pointer;\n}\n.control:not(:disabled):hover {\n --_elevation-fill: var(--vvd-color-surface-12dp);\n --_elevation-shadow: var(--vvd-shadow-surface-12dp);\n}\n.control:not(:disabled):active {\n --_elevation-fill: var(--vvd-color-surface-24dp);\n --_elevation-shadow: var(--vvd-shadow-surface-24dp);\n}\n\n/* Icon */\n.icon-trailing .icon {\n order: 1;\n}\n.size-expanded .icon {\n font-size: 24px;\n}\n.icon:not(.size-expanded) .icon {\n font-size: 20px;\n}\n\n:not(:focus-visible) .focus-indicator {\n display: none;\n}";
|
|
26
|
+
|
|
27
|
+
class Fab extends Button {}
|
|
28
|
+
__decorate([attr, __metadata("design:type", String)], Fab.prototype, "connotation", void 0);
|
|
29
|
+
__decorate([attr, __metadata("design:type", String)], Fab.prototype, "size", void 0);
|
|
30
|
+
__decorate([attr, __metadata("design:type", String)], Fab.prototype, "label", void 0);
|
|
31
|
+
applyMixins(Fab, AffixIconWithTrailing);
|
|
32
|
+
|
|
33
|
+
let _ = t => t,
|
|
34
|
+
_t;
|
|
35
|
+
const getClasses = ({
|
|
36
|
+
connotation,
|
|
37
|
+
size,
|
|
38
|
+
icon,
|
|
39
|
+
label,
|
|
40
|
+
iconTrailing,
|
|
41
|
+
disabled
|
|
42
|
+
}) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], [`size-${size}`, Boolean(size)], ['icon-only', !label && !!icon], ['icon-trailing', iconTrailing], ['disabled', disabled]);
|
|
43
|
+
const FabTemplate = context => {
|
|
44
|
+
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
45
|
+
const focusTemplate = focusTemplateFactory(context);
|
|
46
|
+
return html(_t || (_t = _`
|
|
47
|
+
<button
|
|
48
|
+
class="${0} "
|
|
49
|
+
?autofocus="${0}"
|
|
50
|
+
?disabled="${0}"
|
|
51
|
+
form="${0}"
|
|
52
|
+
formaction="${0}"
|
|
53
|
+
formenctype="${0}"
|
|
54
|
+
formmethod="${0}"
|
|
55
|
+
formnovalidate="${0}"
|
|
56
|
+
formtarget="${0}"
|
|
57
|
+
name="${0}"
|
|
58
|
+
type="${0}"
|
|
59
|
+
value="${0}"
|
|
60
|
+
aria-atomic="${0}"
|
|
61
|
+
aria-busy="${0}"
|
|
62
|
+
aria-controls="${0}"
|
|
63
|
+
aria-current="${0}"
|
|
64
|
+
aria-describedby="${0}"
|
|
65
|
+
aria-details="${0}"
|
|
66
|
+
aria-disabled="${0}"
|
|
67
|
+
aria-errormessage="${0}"
|
|
68
|
+
aria-expanded="${0}"
|
|
69
|
+
aria-flowto="${0}"
|
|
70
|
+
aria-haspopup="${0}"
|
|
71
|
+
aria-hidden="${0}"
|
|
72
|
+
aria-invalid="${0}"
|
|
73
|
+
aria-keyshortcuts="${0}"
|
|
74
|
+
aria-label="${0}"
|
|
75
|
+
aria-labelledby="${0}"
|
|
76
|
+
aria-live="${0}"
|
|
77
|
+
aria-owns="${0}"
|
|
78
|
+
aria-pressed="${0}"
|
|
79
|
+
aria-relevant="${0}"
|
|
80
|
+
aria-roledescription="${0}"
|
|
81
|
+
${0}
|
|
82
|
+
>
|
|
83
|
+
${0}
|
|
84
|
+
${0}
|
|
85
|
+
${0}
|
|
86
|
+
</button>
|
|
87
|
+
`), getClasses, x => x.autofocus, x => x.disabled, x => x.formId, x => x.formaction, x => x.formenctype, x => x.formmethod, x => x.formnovalidate, x => x.formtarget, x => x.name, x => x.type, x => x.value, x => x.ariaAtomic, x => x.ariaBusy, x => x.ariaControls, x => x.ariaCurrent, x => x.ariaDescribedby, x => x.ariaDetails, x => x.ariaDisabled, x => x.ariaErrormessage, x => x.ariaExpanded, x => x.ariaFlowto, x => x.ariaHaspopup, x => x.ariaHidden, x => x.ariaInvalid, x => x.ariaKeyshortcuts, x => x.ariaLabel, x => x.ariaLabelledby, x => x.ariaLive, x => x.ariaOwns, x => x.ariaPressed, x => x.ariaRelevant, x => x.ariaRoledescription, ref('control'), () => focusTemplate, x => affixIconTemplate(x.icon), x => x.label);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const vividFab = Fab.compose({
|
|
91
|
+
baseName: 'fab',
|
|
92
|
+
template: FabTemplate,
|
|
93
|
+
styles: css_248z,
|
|
94
|
+
shadowOptions: {
|
|
95
|
+
delegatesFocus: true
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
designSystem.register(vividFab());
|
|
99
|
+
|
|
100
|
+
export { vividFab };
|
package/focus/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { F as Focus } from '../shared/focus.js';
|
|
3
|
+
|
|
4
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 15 Nov 2022 13:39:19 GMT\n */\n:host {\n display: contents;\n border-radius: inherit;\n}\n\n.control {\n position: absolute;\n z-index: 1;\n box-sizing: border-box;\n border-radius: inherit;\n box-shadow: inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);\n inset: var(--focus-inset, 0);\n outline: 2px solid var(--focus-stroke-color, var(--vvd-color-canvas-text));\n outline-offset: -2px;\n}";
|
|
5
|
+
|
|
6
|
+
let _ = t => t,
|
|
7
|
+
_t;
|
|
8
|
+
const focusTemplate = () => html(_t || (_t = _`
|
|
9
|
+
<span class="control"></span>`));
|
|
10
|
+
|
|
11
|
+
const vividFocus = Focus.compose({
|
|
12
|
+
baseName: 'focus',
|
|
13
|
+
template: focusTemplate,
|
|
14
|
+
styles: css_248z
|
|
15
|
+
});
|
|
16
|
+
designSystem.register(vividFocus());
|
|
17
|
+
|
|
18
|
+
export { vividFocus };
|
package/header/index.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { E as Elevation } from '../shared/index3.js';
|
|
2
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
4
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
5
|
+
import '../shared/export.js';
|
|
6
|
+
import '../shared/object-keys.js';
|
|
7
|
+
import '../shared/iterators.js';
|
|
8
|
+
|
|
9
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 15 Nov 2022 13:39:19 GMT\n */\n.base {\n z-index: 1;\n block-size: calc(calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1))) + calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) - 16)));\n font: var(--vvd-typography-heading-4);\n inline-size: 100%;\n}\n.base .header-content {\n display: inline-flex;\n align-items: center;\n column-gap: 4px;\n}\n\n.container {\n display: flex;\n box-sizing: border-box;\n justify-content: space-between;\n block-size: inherit;\n color: var(--vvd-color-canvas-text);\n column-gap: 12px;\n padding-block: 8px;\n padding-inline: 16px;\n}\n.container[part~=vvd-theme-alternate] {\n background-color: var(--vvd-color-canvas);\n color: var(--vvd-color-canvas-text);\n color-scheme: var(--vvd-color-scheme);\n}\n\n.app-content {\n --vvd-header-block-size: calc(calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1))) + calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) - 16)));\n}";
|
|
10
|
+
|
|
11
|
+
class Header extends FoundationElement {
|
|
12
|
+
constructor() {
|
|
13
|
+
super(...arguments);
|
|
14
|
+
this.elevationShadow = false;
|
|
15
|
+
this.alternate = false;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
__decorate([attr({
|
|
19
|
+
attribute: 'elevation-shadow',
|
|
20
|
+
mode: 'boolean'
|
|
21
|
+
}), __metadata("design:type", Object)], Header.prototype, "elevationShadow", void 0);
|
|
22
|
+
__decorate([attr({
|
|
23
|
+
mode: 'boolean'
|
|
24
|
+
}), __metadata("design:type", Object)], Header.prototype, "alternate", void 0);
|
|
25
|
+
|
|
26
|
+
let _ = t => t,
|
|
27
|
+
_t;
|
|
28
|
+
const getPartAlternate = ({
|
|
29
|
+
alternate
|
|
30
|
+
}) => classNames(['vvd-theme-alternate', Boolean(alternate)]);
|
|
31
|
+
const headerTemplate = context => {
|
|
32
|
+
const elevationTag = context.tagFor(Elevation);
|
|
33
|
+
return html(_t || (_t = _`
|
|
34
|
+
<${0} dp="4" ?no-shadow=${0}>
|
|
35
|
+
<header class="base" part="base">
|
|
36
|
+
<!-- a container is needed to distinguish the surface background color of the
|
|
37
|
+
element from its shadow when applying elevation with alternate -->
|
|
38
|
+
<div class="container" part="${0}">
|
|
39
|
+
<section class="header-content">
|
|
40
|
+
<slot></slot>
|
|
41
|
+
</section>
|
|
42
|
+
<section class="header-content">
|
|
43
|
+
<slot name="action-items"></slot>
|
|
44
|
+
</section>
|
|
45
|
+
</div>
|
|
46
|
+
</header>
|
|
47
|
+
</${0}>
|
|
48
|
+
<div class="app-content">
|
|
49
|
+
<slot name="app-content"></slot>
|
|
50
|
+
</div>
|
|
51
|
+
`), elevationTag, x => !x.elevationShadow, getPartAlternate, elevationTag);
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
const vividHeader = Header.compose({
|
|
55
|
+
baseName: 'header',
|
|
56
|
+
template: headerTemplate,
|
|
57
|
+
styles: css_248z
|
|
58
|
+
});
|
|
59
|
+
designSystem.register(vividHeader());
|
|
60
|
+
|
|
61
|
+
export { vividHeader };
|
package/icon/index.js
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { I as Icon } from '../shared/icon.js';
|
|
3
|
+
import { w as when } from '../shared/when.js';
|
|
4
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
5
|
+
import '../shared/export.js';
|
|
6
|
+
import '../shared/iterators.js';
|
|
7
|
+
import '../shared/to-string.js';
|
|
8
|
+
import '../shared/string-trim.js';
|
|
9
|
+
import '../shared/_has.js';
|
|
10
|
+
|
|
11
|
+
var css_248z = ":host {\n display: inline-block;\n vertical-align: sub;\n}\n\n.control {\n display: flex;\n margin: unset;\n block-size: var(--_icon-block-size);\n color: currentColor;\n contain: strict;\n inline-size: var(--_icon-block-size);\n}\n.control.connotation-accent {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n}\n.control.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement-500);\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.control.connotation-information {\n --_connotation-color-primary: var(--vvd-color-information-500);\n}\n\n.control[class*=connotation] {\n color: var(--_connotation-color-primary);\n}\n\nsvg {\n margin: auto;\n block-size: inherit;\n inline-size: inherit;\n}\n\n/* Size */\n.control:not(.size-condensed):not(.size-normal):not(.size-expanded) {\n --_icon-block-size: 1em;\n}\n\n.control.size-condensed {\n --_icon-block-size: calc(calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1))) - calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) - 16)));\n}\n\n.control.size-normal {\n --_icon-block-size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) - 16));\n}\n\n.control.size-expanded {\n --_icon-block-size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) - 8));\n}";
|
|
12
|
+
|
|
13
|
+
let _ = t => t,
|
|
14
|
+
_t,
|
|
15
|
+
_t2;
|
|
16
|
+
const getClasses = ({
|
|
17
|
+
connotation,
|
|
18
|
+
size
|
|
19
|
+
}) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], [`size-${size}`, Boolean(size)]);
|
|
20
|
+
const iconTemplate = () => html(_t || (_t = _`
|
|
21
|
+
<figure class="${0}">
|
|
22
|
+
${0}
|
|
23
|
+
</figure>
|
|
24
|
+
`), getClasses, when(x => isValidString(x.svg), x => html(_t2 || (_t2 = _`${0}`), x.svg)));
|
|
25
|
+
function isValidString(value) {
|
|
26
|
+
return typeof value === 'string' && value.length > 0;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
const vividIcon = Icon.compose({
|
|
30
|
+
baseName: 'icon',
|
|
31
|
+
template: iconTemplate,
|
|
32
|
+
styles: css_248z
|
|
33
|
+
});
|
|
34
|
+
designSystem.register(vividIcon());
|
|
35
|
+
|
|
36
|
+
export { vividIcon };
|
package/index.d.ts
ADDED
package/index.js
CHANGED
|
@@ -1,64 +1,76 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export {
|
|
29
|
-
export {
|
|
30
|
-
export {
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
1
|
+
export { vividAccordion } from './accordion/index.js';
|
|
2
|
+
export { vividAccordionItem } from './accordion-item/index.js';
|
|
3
|
+
export { vividActionGroup } from './action-group/index.js';
|
|
4
|
+
export { vividAvatar } from './avatar/index.js';
|
|
5
|
+
export { vividBadge } from './badge/index.js';
|
|
6
|
+
export { vividBanner } from './banner/index.js';
|
|
7
|
+
export { vividBreadcrumb } from './breadcrumb/index.js';
|
|
8
|
+
export { vividBreadcrumbItem } from './breadcrumb-item/index.js';
|
|
9
|
+
export { v as vividButton } from './shared/index2.js';
|
|
10
|
+
export { vividCalendar } from './calendar/index.js';
|
|
11
|
+
export { vividCalendarEvent } from './calendar-event/index.js';
|
|
12
|
+
export { vividCard } from './card/index.js';
|
|
13
|
+
export { vividCheckbox } from './checkbox/index.js';
|
|
14
|
+
export { v as vividElevation } from './shared/index3.js';
|
|
15
|
+
export { vividDialog } from './dialog/index.js';
|
|
16
|
+
export { v as vividDivider } from './shared/index4.js';
|
|
17
|
+
export { vividFab } from './fab/index.js';
|
|
18
|
+
export { vividIcon } from './icon/index.js';
|
|
19
|
+
export { vividLayout } from './layout/index.js';
|
|
20
|
+
export { vividListbox } from './listbox/index.js';
|
|
21
|
+
export { v as vividListboxOption } from './shared/index5.js';
|
|
22
|
+
export { vividMenu } from './menu/index.js';
|
|
23
|
+
export { v as vividMenuItem } from './shared/index7.js';
|
|
24
|
+
export { vividNav } from './nav/index.js';
|
|
25
|
+
export { vividNavDisclosure } from './nav-disclosure/index.js';
|
|
26
|
+
export { vividNavItem } from './nav-item/index.js';
|
|
27
|
+
export { vividNote } from './note/index.js';
|
|
28
|
+
export { v as vividPopup } from './shared/index6.js';
|
|
29
|
+
export { vividProgress } from './progress/index.js';
|
|
30
|
+
export { vividProgressRing } from './progress-ring/index.js';
|
|
31
|
+
export { vividRadio } from './radio/index.js';
|
|
32
|
+
export { vividRadioGroup } from './radio-group/index.js';
|
|
33
|
+
export { vividSideDrawer } from './side-drawer/index.js';
|
|
34
|
+
export { vividSlider } from './slider/index.js';
|
|
35
|
+
export { vividSwitch } from './switch/index.js';
|
|
36
|
+
export { vividTextfield } from './text-field/index.js';
|
|
37
|
+
export { vividTextArea } from './text-area/index.js';
|
|
38
|
+
export { vividTooltip } from './tooltip/index.js';
|
|
39
|
+
export { d as designSystem, p as provideVividDesignSystem } from './shared/index.js';
|
|
40
|
+
import './shared/class-names.js';
|
|
41
|
+
import './focus/index.js';
|
|
42
|
+
import './shared/focus.js';
|
|
43
|
+
import './shared/web.dom-collections.iterator.js';
|
|
44
|
+
import './shared/export.js';
|
|
45
|
+
import './shared/object-keys.js';
|
|
46
|
+
import './shared/iterators.js';
|
|
47
|
+
import './shared/affix.js';
|
|
48
|
+
import './shared/icon.js';
|
|
49
|
+
import './shared/to-string.js';
|
|
50
|
+
import './shared/string-trim.js';
|
|
51
|
+
import './shared/_has.js';
|
|
52
|
+
import './shared/apply-mixins.js';
|
|
53
|
+
import './shared/focus2.js';
|
|
54
|
+
import './shared/when.js';
|
|
55
|
+
import './shared/enums.js';
|
|
56
|
+
import './shared/button.js';
|
|
57
|
+
import './shared/form-associated.js';
|
|
58
|
+
import './shared/key-codes.js';
|
|
59
|
+
import './shared/aria-global.js';
|
|
60
|
+
import './shared/start-end.js';
|
|
61
|
+
import './shared/ref.js';
|
|
62
|
+
import './shared/slotted.js';
|
|
63
|
+
import './shared/breadcrumb-item.js';
|
|
64
|
+
import './shared/anchor.js';
|
|
65
|
+
import './shared/text-anchor.template.js';
|
|
66
|
+
import './shared/calendar-event.js';
|
|
67
|
+
import './shared/es.object.assign.js';
|
|
68
|
+
import './shared/aria.js';
|
|
69
|
+
import './shared/numbers.js';
|
|
70
|
+
import './shared/dom.js';
|
|
71
|
+
import './shared/direction.js';
|
|
72
|
+
import './shared/text-anchor.js';
|
|
73
|
+
import './shared/base-progress.js';
|
|
74
|
+
import './shared/radio.js';
|
|
75
|
+
import './shared/es.regexp.to-string.js';
|
|
76
|
+
import './shared/form-elements.js';
|
package/layout/index.js
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
3
|
+
|
|
4
|
+
var AUTO_SIZING;
|
|
5
|
+
(function (AUTO_SIZING) {
|
|
6
|
+
AUTO_SIZING["Fit"] = "fit";
|
|
7
|
+
AUTO_SIZING["Fill"] = "fill";
|
|
8
|
+
})(AUTO_SIZING || (AUTO_SIZING = {}));
|
|
9
|
+
class Layout extends FoundationElement {}
|
|
10
|
+
__decorate([attr, __metadata("design:type", String)], Layout.prototype, "gutters", void 0);
|
|
11
|
+
__decorate([attr({
|
|
12
|
+
attribute: 'column-basis'
|
|
13
|
+
}), __metadata("design:type", String)], Layout.prototype, "columnBasis", void 0);
|
|
14
|
+
__decorate([attr({
|
|
15
|
+
attribute: 'column-spacing'
|
|
16
|
+
}), __metadata("design:type", String)], Layout.prototype, "columnSpacing", void 0);
|
|
17
|
+
__decorate([attr({
|
|
18
|
+
attribute: 'auto-sizing'
|
|
19
|
+
}), __metadata("design:type", String)], Layout.prototype, "autoSizing", void 0);
|
|
20
|
+
|
|
21
|
+
var css_248z = "/* #region SIZEs */\n/* #region BASES */\n/* #region SPACES */\n.control {\n display: grid;\n grid-auto-rows: min-content;\n}\n.control.column-basis-small {\n grid-template-columns: var(--layout-grid-template-columns, repeat(var(--_auto-sizing), minmax(160px, 1fr)));\n}\n.control:not(.column-basis-small):not(.column-basis-medium):not(.column-basis-large):not(.column-basis-block), .control.column-basis-medium {\n grid-template-columns: var(--layout-grid-template-columns, repeat(var(--_auto-sizing), minmax(320px, 1fr)));\n}\n.control.column-basis-large {\n grid-template-columns: var(--layout-grid-template-columns, repeat(var(--_auto-sizing), minmax(380px, 1fr)));\n}\n.control.column-basis-block {\n grid-template-columns: var(--layout-grid-template-columns, repeat(var(--_auto-sizing), minmax(1fr, 1fr)));\n}\n.control.column-spacing-small {\n gap: 16px;\n}\n.control.column-spacing-small-inline {\n gap: 0 16px;\n}\n.control.column-spacing-small-block {\n gap: 16px 0;\n}\n.control:not(.column-spacing-small):not(.column-spacing-small-inline):not(.column-spacing-small-block):not(.column-spacing-medium):not(.column-spacing-medium-inline):not(.column-spacing-medium-block):not(.column-spacing-large):not(.column-spacing-large-inline):not(.column-spacing-large-block), .control.column-spacing-medium {\n gap: 24px;\n}\n.control.column-spacing-medium-inline {\n gap: 0 24px;\n}\n.control.column-spacing-medium-block {\n gap: 24px 0;\n}\n.control.column-spacing-large {\n gap: 32px;\n}\n.control.column-spacing-large-inline {\n gap: 0 32px;\n}\n.control.column-spacing-large-block {\n gap: 32px 0;\n}\n.control.gutters-small {\n margin: 16px;\n}\n.control.gutters-small-inline {\n margin: 0 16px;\n}\n.control.gutters-small-block {\n margin: 16px 0;\n}\n.control.gutters-medium {\n margin: 24px;\n}\n.control.gutters-medium-inline {\n margin: 0 24px;\n}\n.control.gutters-medium-block {\n margin: 24px 0;\n}\n.control.gutters-large {\n margin: 32px;\n}\n.control.gutters-large-inline {\n margin: 0 32px;\n}\n.control.gutters-large-block {\n margin: 32px 0;\n}\n.control.auto-sizing-fill {\n --_auto-sizing: auto-fill;\n}\n.control:not(.auto-sizing-fill):not(.auto-sizing-fit), .control.auto-sizing-fit {\n --_auto-sizing: auto-fit;\n}";
|
|
22
|
+
|
|
23
|
+
let _ = t => t,
|
|
24
|
+
_t;
|
|
25
|
+
const getClasses = ({
|
|
26
|
+
columnBasis,
|
|
27
|
+
gutters,
|
|
28
|
+
columnSpacing,
|
|
29
|
+
autoSizing
|
|
30
|
+
}) => classNames('control', [`column-basis-${columnBasis}`, Boolean(columnBasis)], [`gutters-${gutters}`, Boolean(gutters)], [`column-spacing-${columnSpacing}`, Boolean(columnSpacing)], [`auto-sizing-${autoSizing}`, Boolean(autoSizing)]);
|
|
31
|
+
const layoutTemplate = () => html(_t || (_t = _`
|
|
32
|
+
<div class="${0}">
|
|
33
|
+
<slot></slot>
|
|
34
|
+
</div>`), getClasses);
|
|
35
|
+
|
|
36
|
+
const vividLayout = Layout.compose({
|
|
37
|
+
baseName: 'layout',
|
|
38
|
+
template: layoutTemplate,
|
|
39
|
+
styles: css_248z
|
|
40
|
+
});
|
|
41
|
+
designSystem.register(vividLayout());
|
|
42
|
+
|
|
43
|
+
export { vividLayout };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Accordion } from './accordion';
|
|
4
|
+
export declare const AccordionTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Accordion>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividAccordion: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { AffixIconWithTrailing } from '../../shared/patterns/affix';
|
|
3
|
+
export declare class AccordionItem extends FoundationElement {
|
|
4
|
+
heading?: string;
|
|
5
|
+
headingLevel?: 2 | 3 | 4 | 5 | 6;
|
|
6
|
+
noIndicator: boolean;
|
|
7
|
+
meta?: string;
|
|
8
|
+
open: boolean;
|
|
9
|
+
attributeChangedCallback(name: string, oldValue: string, newValue: string): void;
|
|
10
|
+
private emitEvent;
|
|
11
|
+
}
|
|
12
|
+
export interface AccordionItem extends AffixIconWithTrailing {
|
|
13
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { AccordionItem } from './accordion-item';
|
|
4
|
+
export declare const AccordionItemTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<AccordionItem>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import '../icon';
|
|
2
|
+
import '../focus';
|
|
3
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
4
|
+
export declare const vividAccordionItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Appearance, Shape } from '../enums.js';
|
|
3
|
+
export declare type ActionGroupAppearance = Extract<Appearance, Appearance.Filled | Appearance.Outlined | Appearance.Ghost>;
|
|
4
|
+
declare type ActionGroupShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
5
|
+
export declare class ActionGroup extends FoundationElement {
|
|
6
|
+
shape?: ActionGroupShape;
|
|
7
|
+
appearance?: ActionGroupAppearance;
|
|
8
|
+
tight: boolean;
|
|
9
|
+
}
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { ActionGroup } from './action-group';
|
|
4
|
+
export declare const ActionGroupTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<ActionGroup>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividActionGroup: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import type { Appearance, Connotation, Shape, Size } from '../enums.js';
|
|
3
|
+
export declare type AvatarConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA>;
|
|
4
|
+
export declare type AvatarAppearance = Extract<Appearance, Appearance.Filled | Appearance.Outlined>;
|
|
5
|
+
declare type AvatarShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
6
|
+
declare type AvatarSize = Extract<Size, Size.Condensed | Size.Normal | Size.Expanded>;
|
|
7
|
+
export declare class Avatar extends FoundationElement {
|
|
8
|
+
connotation?: AvatarConnotation;
|
|
9
|
+
shape?: AvatarShape;
|
|
10
|
+
appearance?: AvatarAppearance;
|
|
11
|
+
size?: AvatarSize;
|
|
12
|
+
icon?: string;
|
|
13
|
+
name?: string;
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Avatar } from './avatar';
|
|
4
|
+
export declare const AvatarTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Avatar>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '../icon';
|
|
2
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
export declare const vividAvatar: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { AffixIconWithTrailing } from '../../shared/patterns/affix';
|
|
3
|
+
import type { Appearance, Connotation, Shape } from '../enums.js';
|
|
4
|
+
declare type BadgeConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA | Connotation.Success | Connotation.Alert | Connotation.Warning | Connotation.Information>;
|
|
5
|
+
declare type BadgeAppearance = Extract<Appearance, Appearance.Filled | Appearance.Duotone | Appearance.Subtle>;
|
|
6
|
+
declare type BadgeShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
7
|
+
export declare class Badge extends FoundationElement {
|
|
8
|
+
connotation?: BadgeConnotation;
|
|
9
|
+
shape?: BadgeShape;
|
|
10
|
+
appearance?: BadgeAppearance;
|
|
11
|
+
text?: string;
|
|
12
|
+
}
|
|
13
|
+
export interface Badge extends AffixIconWithTrailing {
|
|
14
|
+
}
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Badge } from './badge';
|
|
4
|
+
export declare const badgeTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Badge>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '../icon';
|
|
2
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
export declare const vividBadge: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
+
import { Connotation } from '../enums';
|
|
3
|
+
import { AffixIcon } from '../../shared/patterns/affix';
|
|
4
|
+
export declare type BannerConnotation = Connotation.Information | Connotation.Announcement | Connotation.Success | Connotation.Warning | Connotation.Alert;
|
|
5
|
+
export declare class Banner extends FoundationElement {
|
|
6
|
+
#private;
|
|
7
|
+
actionHref: string | undefined;
|
|
8
|
+
actionText: string | undefined;
|
|
9
|
+
removable: boolean;
|
|
10
|
+
ariaLive: any;
|
|
11
|
+
role: string | undefined;
|
|
12
|
+
text: string | undefined;
|
|
13
|
+
connotation: BannerConnotation | undefined;
|
|
14
|
+
get conditionedIcon(): string;
|
|
15
|
+
connectedCallback(): void;
|
|
16
|
+
disconnectedCallback(): void;
|
|
17
|
+
remove(): void;
|
|
18
|
+
}
|
|
19
|
+
export interface Banner extends AffixIcon {
|
|
20
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Banner } from './banner';
|
|
4
|
+
export declare const BannerTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Banner>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import '../button';
|
|
2
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
export declare const vividBanner: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { FoundationElementTemplate } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { Breadcrumb } from './breadcrumb';
|
|
4
|
+
export declare const breadcrumbTemplate: FoundationElementTemplate<ViewTemplate<Breadcrumb>>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare const vividBreadcrumb: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import type { BreadcrumbItem } from './breadcrumb-item';
|
|
4
|
+
export declare const BreadcrumbItemTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<BreadcrumbItem>;
|