@vonage/vivid 3.0.0-next.2 → 3.0.0-next.20
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 +49 -4
- package/accordion/index.js +61 -0
- package/accordion-item/index.js +120 -0
- package/action-group/index.js +34 -0
- package/badge/index.js +24 -22
- package/banner/index.js +148 -0
- package/breadcrumb/index.js +102 -0
- package/breadcrumb-item/index.js +14 -9
- package/button/index.js +36 -663
- package/calendar/index.js +1526 -0
- package/card/index.js +139 -0
- package/elevation/index.js +8 -15
- package/fab/index.js +94 -0
- package/focus/index.js +20 -3
- package/icon/index.js +38 -5
- package/index.d.ts +1 -0
- package/index.js +43 -12
- package/layout/index.js +5 -5
- 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 +3 -0
- package/lib/action-group/action-group.d.ts +9 -0
- package/lib/action-group/action-group.template.d.ts +4 -0
- package/lib/action-group/index.d.ts +2 -0
- package/lib/badge/badge.d.ts +8 -8
- package/lib/badge/index.d.ts +1 -1
- package/lib/banner/banner.d.ts +20 -0
- package/lib/banner/banner.template.d.ts +6 -0
- package/lib/banner/index.d.ts +2 -0
- package/lib/breadcrumb/breadcrumb.d.ts +3 -0
- package/lib/breadcrumb/index.d.ts +2 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +3 -3
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +0 -1
- package/lib/breadcrumb-item/index.d.ts +1 -0
- package/lib/button/button.d.ts +9 -8
- package/lib/button/index.d.ts +2 -19
- package/lib/calendar/calendar.d.ts +11 -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 +3 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/card/card.template.d.ts +4 -0
- package/lib/card/index.d.ts +5 -0
- package/lib/components.d.ts +19 -3
- package/lib/elevation/elevation.d.ts +1 -1
- package/lib/elevation/index.d.ts +1 -1
- package/lib/enums.d.ts +14 -7
- package/lib/fab/fab.d.ts +10 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/index.d.ts +1 -1
- package/lib/icon/icon.d.ts +4 -5
- package/lib/layout/index.d.ts +1 -1
- package/lib/layout/layout.d.ts +3 -3
- 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/popup/index.d.ts +4 -0
- package/lib/popup/popup.d.ts +17 -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/side-drawer/index.d.ts +2 -0
- package/lib/side-drawer/side-drawer.d.ts +8 -0
- package/lib/side-drawer/side-drawer.template.d.ts +4 -0
- package/lib/sidenav-item/sidenav-item.d.ts +4 -5
- package/lib/text/index.d.ts +2 -0
- package/lib/text/text.d.ts +10 -0
- package/lib/text/text.template.d.ts +4 -0
- package/lib/text-anchor/text-anchor.d.ts +4 -1
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +20 -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/note/index.js +65 -0
- package/package.json +33 -6
- package/popup/index.js +2106 -0
- package/progress/index.js +99 -0
- package/progress-ring/index.js +82 -0
- package/shared/_has.js +58 -0
- package/shared/affix.js +10 -25
- package/shared/anchor.js +11 -4
- package/shared/aria-global.js +20 -20
- package/shared/base-progress.js +70 -0
- package/shared/breadcrumb-item.js +25 -0
- package/shared/button.js +195 -0
- package/shared/enums.js +79 -0
- package/shared/es.object.assign.js +69 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +468 -0
- package/shared/icon.js +1435 -0
- package/shared/index.js +4940 -1426
- package/shared/object-set-prototype-of.js +1030 -0
- package/shared/patterns/affix.d.ts +3 -4
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/index.d.ts +1 -0
- package/shared/slotted.js +119 -0
- package/shared/text-anchor.js +12 -0
- package/shared/text-anchor.template.js +14 -19
- package/shared/web.dom-collections.iterator.js +46 -1051
- package/shared/when.js +15 -0
- package/side-drawer/index.js +82 -0
- package/sidenav-item/index.js +17 -57
- package/styles/themes/dark.css +16 -4
- package/styles/themes/light.css +16 -4
- package/text/index.js +46 -0
- package/text-anchor/index.js +7 -2
- package/text-field/index.js +389 -0
- package/tooltip/index.js +66 -0
- package/shared/index2.js +0 -4911
- package/shared/index3.js +0 -21
package/card/index.js
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
import '../elevation/index.js';
|
|
2
|
+
import '../icon/index.js';
|
|
3
|
+
import '../button/index.js';
|
|
4
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, o as observable, h as html, d as designSystem } from '../shared/index.js';
|
|
5
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
6
|
+
import { s as slotted } from '../shared/slotted.js';
|
|
7
|
+
import { w as when } from '../shared/when.js';
|
|
8
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
9
|
+
import '../shared/icon.js';
|
|
10
|
+
import '../shared/object-set-prototype-of.js';
|
|
11
|
+
import '../shared/_has.js';
|
|
12
|
+
import '../focus/index.js';
|
|
13
|
+
import '../shared/focus.js';
|
|
14
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
15
|
+
import '../shared/affix.js';
|
|
16
|
+
import '../shared/button.js';
|
|
17
|
+
import '../shared/apply-mixins.js';
|
|
18
|
+
import '../shared/focus2.js';
|
|
19
|
+
import '../shared/aria-global.js';
|
|
20
|
+
|
|
21
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n:host {\n display: block;\n}\n@supports ((block-size: -moz-fit-content) or (block-size: fit-content)) and ((inline-size: -moz-fit-content) or (inline-size: fit-content)) {\n :host {\n block-size: -moz-fit-content;\n block-size: fit-content;\n inline-size: -moz-fit-content;\n inline-size: fit-content;\n }\n}\n\n.control {\n block-size: 100%;\n border-radius: 6px;\n}\n\n.wrapper {\n display: flex;\n overflow: hidden;\n flex-flow: column;\n block-size: inherit;\n border-radius: inherit;\n color: var(--vvd-color-on-canvas);\n}\n\n.content {\n display: flex;\n flex-flow: column;\n padding: 1.5rem;\n}\n.content-container {\n display: flex;\n gap: 0.5rem;\n}\n\n.header {\n display: flex;\n flex: 1;\n align-items: flex-start;\n gap: 0.5rem;\n}\n.header-content {\n flex: 1;\n}\n.header-title, .header-subheading {\n /* stylelint-disable value-no-vendor-prefix */\n display: -webkit-box;\n /* stylelint-enable value-no-vendor-prefix */\n overflow: hidden;\n -webkit-box-orient: vertical;\n}\n.header-title {\n font: 500 condensed 20px / 28px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n -webkit-line-clamp: var(--heading-line-clamp);\n}\n.header-subheading {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n -webkit-line-clamp: var(--subheading-line-clamp);\n}\n.hide-header .header {\n display: none;\n}\n\n.header-subheading,\n.text {\n font: 400 ultra-condensed 14px / 20px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n color: var(--vvd-color-neutral-70);\n}\n\n.text {\n padding-right: 8px;\n margin-top: 12px;\n}\n\n.footer {\n display: inline-flex;\n flex-direction: column;\n align-items: flex-end;\n padding-bottom: 1.5rem;\n margin-top: auto;\n padding-inline: 1.5rem;\n}\n.hide-footer .footer {\n display: none;\n}\n\n::slotted([slot=graphic i]),\n.icon {\n flex-shrink: 0;\n align-self: baseline;\n margin-block-start: 4px;\n}\n\n.icon {\n font-size: 20px;\n}\n\n::slotted([slot=meta i]) {\n flex-shrink: 0;\n align-self: flex-start;\n margin-block-start: -0.5rem;\n margin-inline-end: -0.5rem;\n margin-inline-start: auto;\n}\n\nvwc-elevation {\n block-size: inherit;\n}\nvwc-elevation::part(base) {\n block-size: inherit;\n}";
|
|
22
|
+
styleInject(css_248z);
|
|
23
|
+
|
|
24
|
+
class Card extends FoundationElement {}
|
|
25
|
+
|
|
26
|
+
__decorate([attr, __metadata("design:type", String)], Card.prototype, "heading", void 0);
|
|
27
|
+
|
|
28
|
+
__decorate([attr, __metadata("design:type", String)], Card.prototype, "subheading", void 0);
|
|
29
|
+
|
|
30
|
+
__decorate([attr, __metadata("design:type", String)], Card.prototype, "text", void 0);
|
|
31
|
+
|
|
32
|
+
__decorate([attr, __metadata("design:type", String)], Card.prototype, "icon", void 0);
|
|
33
|
+
|
|
34
|
+
__decorate([attr, __metadata("design:type", Number)], Card.prototype, "elevation", void 0);
|
|
35
|
+
|
|
36
|
+
__decorate([observable, __metadata("design:type", Array)], Card.prototype, "footerSlottedContent", void 0);
|
|
37
|
+
|
|
38
|
+
__decorate([observable, __metadata("design:type", Array)], Card.prototype, "graphicSlottedContent", void 0);
|
|
39
|
+
|
|
40
|
+
__decorate([observable, __metadata("design:type", Array)], Card.prototype, "hasMetaSlottedContent", void 0);
|
|
41
|
+
|
|
42
|
+
let _2 = t => t,
|
|
43
|
+
_t,
|
|
44
|
+
_t2,
|
|
45
|
+
_t3,
|
|
46
|
+
_t4,
|
|
47
|
+
_t5,
|
|
48
|
+
_t6,
|
|
49
|
+
_t7,
|
|
50
|
+
_t8;
|
|
51
|
+
|
|
52
|
+
const getClasses = _ => classNames('control', ['hide-footer', !_.footerSlottedContent || !_.footerSlottedContent.length], ['hide-header', shouldHideHeader(_)]);
|
|
53
|
+
|
|
54
|
+
function renderHeaderIcon() {
|
|
55
|
+
return html(_t || (_t = _2`
|
|
56
|
+
<vwc-icon class="icon" inline type="${0}"></vwc-icon>`), x => x.icon);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function heading() {
|
|
60
|
+
return html(_t2 || (_t2 = _2`
|
|
61
|
+
<div class="header-title">${0}</div>
|
|
62
|
+
`), x => x.heading);
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
function subheading() {
|
|
66
|
+
return html(_t3 || (_t3 = _2`
|
|
67
|
+
<div class="header-subheading">${0}</div>
|
|
68
|
+
`), x => x.subheading);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function headerContent() {
|
|
72
|
+
return html(_t4 || (_t4 = _2`
|
|
73
|
+
<div class="header-content">
|
|
74
|
+
${0}
|
|
75
|
+
${0}
|
|
76
|
+
</div>
|
|
77
|
+
`), when(x => x.heading, heading()), when(x => x.subheading, subheading()));
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
function renderHeader() {
|
|
81
|
+
return html(_t5 || (_t5 = _2`
|
|
82
|
+
<header class="header">
|
|
83
|
+
<slot name="graphic" ${0}>${0}</slot>
|
|
84
|
+
${0}
|
|
85
|
+
</header>`), slotted('graphicSlottedContent'), when(x => x.icon, renderHeaderIcon()), when(x => x.heading || x.subheading, headerContent()));
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
function shouldHideHeader(card) {
|
|
89
|
+
return !card.heading && !card.subheading && !card.icon && (!card.graphicSlottedContent || !card.graphicSlottedContent.length);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
function renderMetaSlot() {
|
|
93
|
+
return html(_t6 || (_t6 = _2`
|
|
94
|
+
<slot name="meta" ${0}></slot>
|
|
95
|
+
`), slotted('metaSlottedContent'));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function text() {
|
|
99
|
+
return html(_t7 || (_t7 = _2`
|
|
100
|
+
<div class="text">${0}</div>
|
|
101
|
+
`), x => x.text);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
const CardTemplate = () => html(_t8 || (_t8 = _2`
|
|
105
|
+
<vwc-elevation dp=${0}>
|
|
106
|
+
<div class="${0}">
|
|
107
|
+
<div class="wrapper">
|
|
108
|
+
<div class="vwc-card-media">
|
|
109
|
+
<slot name="media"></slot>
|
|
110
|
+
</div>
|
|
111
|
+
<div class="content">
|
|
112
|
+
<slot name="content">
|
|
113
|
+
<div class="content-container">
|
|
114
|
+
${0}
|
|
115
|
+
${0}
|
|
116
|
+
</div>
|
|
117
|
+
${0}
|
|
118
|
+
</slot>
|
|
119
|
+
</div>
|
|
120
|
+
<div class="footer">
|
|
121
|
+
<slot name="footer" ${0}></slot>
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
125
|
+
</vwc-elevation>
|
|
126
|
+
`), x => {
|
|
127
|
+
var _a;
|
|
128
|
+
|
|
129
|
+
return (_a = x.elevation) !== null && _a !== void 0 ? _a : '4';
|
|
130
|
+
}, getClasses, renderHeader(), renderMetaSlot(), when(x => x.text, text()), slotted('footerSlottedContent'));
|
|
131
|
+
|
|
132
|
+
const vividCard = Card.compose({
|
|
133
|
+
baseName: 'card',
|
|
134
|
+
template: CardTemplate,
|
|
135
|
+
styles: css_248z
|
|
136
|
+
});
|
|
137
|
+
designSystem.register(vividCard());
|
|
138
|
+
|
|
139
|
+
export { vividCard };
|
package/elevation/index.js
CHANGED
|
@@ -1,19 +1,12 @@
|
|
|
1
|
-
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/
|
|
2
|
-
import '../shared/web.dom-collections.iterator.js';
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
3
2
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
4
3
|
import { c as classNames } from '../shared/class-names.js';
|
|
5
4
|
|
|
6
|
-
class Elevation extends FoundationElement {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.dp = 2;
|
|
10
|
-
}
|
|
5
|
+
class Elevation extends FoundationElement {}
|
|
11
6
|
|
|
12
|
-
|
|
7
|
+
__decorate([attr, __metadata("design:type", Number)], Elevation.prototype, "dp", void 0);
|
|
13
8
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var css_248z = ".dp-0:not(.dp-2):not(.dp-4):not(.dp-8):not(.dp-12):not(.dp-16):not(.dp-24) {\n background-color: var(--vvd-color-surface-0dp);\n filter: var(--vvd-shadow-surface-0dp);\n}\n\n.dp-2:not(.dp-0):not(.dp-4):not(.dp-8):not(.dp-12):not(.dp-16):not(.dp-24) {\n background-color: var(--vvd-color-surface-2dp);\n filter: var(--vvd-shadow-surface-2dp);\n}\n\n.dp-4:not(.dp-0):not(.dp-2):not(.dp-8):not(.dp-12):not(.dp-16):not(.dp-24) {\n background-color: var(--vvd-color-surface-4dp);\n filter: var(--vvd-shadow-surface-4dp);\n}\n\n.dp-8:not(.dp-0):not(.dp-2):not(.dp-4):not(.dp-12):not(.dp-16):not(.dp-24) {\n background-color: var(--vvd-color-surface-8dp);\n filter: var(--vvd-shadow-surface-8dp);\n}\n\n.dp-12:not(.dp-0):not(.dp-2):not(.dp-4):not(.dp-8):not(.dp-16):not(.dp-24) {\n background-color: var(--vvd-color-surface-12dp);\n filter: var(--vvd-shadow-surface-12dp);\n}\n\n.dp-16:not(.dp-0):not(.dp-2):not(.dp-4):not(.dp-8):not(.dp-12):not(.dp-24) {\n background-color: var(--vvd-color-surface-16dp);\n filter: var(--vvd-shadow-surface-16dp);\n}\n\n.dp-24:not(.dp-0):not(.dp-2):not(.dp-4):not(.dp-8):not(.dp-12):not(.dp-16) {\n background-color: var(--vvd-color-surface-24dp);\n filter: var(--vvd-shadow-surface-24dp);\n}\n\n.control {\n --elevation-border-radius: 6px;\n border-radius: var(--elevation-border-radius);\n}";
|
|
9
|
+
var css_248z = ".control.dp-0 {\n --_elevation-fill: var(--vvd-color-surface-0dp);\n --_elevation-shadow: var(--vvd-shadow-surface-0dp);\n}\n.control.dp-4 {\n --_elevation-fill: var(--vvd-color-surface-4dp);\n --_elevation-shadow: var(--vvd-shadow-surface-4dp);\n}\n.control.dp-8 {\n --_elevation-fill: var(--vvd-color-surface-8dp);\n --_elevation-shadow: var(--vvd-shadow-surface-8dp);\n}\n.control.dp-12 {\n --_elevation-fill: var(--vvd-color-surface-12dp);\n --_elevation-shadow: var(--vvd-shadow-surface-12dp);\n}\n.control.dp-16 {\n --_elevation-fill: var(--vvd-color-surface-16dp);\n --_elevation-shadow: var(--vvd-shadow-surface-16dp);\n}\n.control.dp-24 {\n --_elevation-fill: var(--vvd-color-surface-24dp);\n --_elevation-shadow: var(--vvd-shadow-surface-24dp);\n}\n.control:not(.dp-0, .dp-4, .dp-8, .dp-12, .dp-16, .dp-24) {\n --_elevation-fill: var(--vvd-color-surface-2dp);\n --_elevation-shadow: var(--vvd-shadow-surface-2dp);\n}\n.control ::slotted(*) {\n background-color: var(--_elevation-fill);\n filter: var(--_elevation-shadow);\n}";
|
|
17
10
|
styleInject(css_248z);
|
|
18
11
|
|
|
19
12
|
let _ = t => t,
|
|
@@ -24,15 +17,15 @@ const getClasses = ({
|
|
|
24
17
|
}) => classNames('control', [`dp-${dp}`, Boolean(dp)]);
|
|
25
18
|
|
|
26
19
|
const elevationTemplate = () => html(_t || (_t = _`
|
|
27
|
-
<div class="${0}">
|
|
20
|
+
<div class="${0}" part="base">
|
|
28
21
|
<slot></slot>
|
|
29
22
|
</div>`), getClasses);
|
|
30
23
|
|
|
31
|
-
const
|
|
24
|
+
const vividElevation = Elevation.compose({
|
|
32
25
|
baseName: 'elevation',
|
|
33
26
|
template: elevationTemplate,
|
|
34
27
|
styles: css_248z
|
|
35
28
|
});
|
|
36
|
-
designSystem.register(
|
|
29
|
+
designSystem.register(vividElevation());
|
|
37
30
|
|
|
38
|
-
export {
|
|
31
|
+
export { vividElevation };
|
package/fab/index.js
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
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 { s as styleInject } from '../shared/style-inject.es.js';
|
|
5
|
+
import { A as AffixIconWithTrailing, a as affixIconTemplateFactory } from '../shared/affix.js';
|
|
6
|
+
import { B as Button } from '../shared/button.js';
|
|
7
|
+
import { a as applyMixins } from '../shared/apply-mixins.js';
|
|
8
|
+
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
9
|
+
import { r as ref } from '../shared/aria-global.js';
|
|
10
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
11
|
+
import '../shared/icon.js';
|
|
12
|
+
import '../shared/object-set-prototype-of.js';
|
|
13
|
+
import '../shared/_has.js';
|
|
14
|
+
import '../shared/when.js';
|
|
15
|
+
import '../shared/focus.js';
|
|
16
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
17
|
+
|
|
18
|
+
var css_248z = "/*\n Do not edit directly\n Generated on Wed, 27 Apr 2022 11:58:36 GMT\n*/\n.control {\n font: 600 ultra-condensed 16px / 24px SpeziaWebVariable;\n letter-spacing: 0px;\n text-decoration: none;\n text-transform: none;\n --_fab-block-size: 48px;\n position: relative;\n display: inline-flex;\n box-sizing: border-box;\n align-items: center;\n border: 0 none;\n background-color: var(--_appearance-color-fill);\n block-size: var(--_fab-block-size);\n border-radius: 24px;\n color: var(--_appearance-color-text);\n column-gap: var(--fab-icon-gap);\n filter: var(--_elevation-shadow);\n outline: 0 none;\n vertical-align: middle;\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n --_connotation-color-on-primary: var(--vvd-color-on-cta);\n --_connotation-color-primary-increment: var(--vvd-color-cta-70);\n --_connotation-color-contrast: var(--vvd-color-cta-90);\n --_connotation-color-fierce: var(--vvd-color-cta-80);\n --_connotation-color-firm: var(--vvd-color-cta-70);\n}\n.control:not(.connotation-cta) {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n --_connotation-color-on-primary: var(--vvd-color-canvas);\n --_connotation-color-primary-increment: var(--vvd-color-neutral-90);\n --_connotation-color-contrast: var(--vvd-color-neutral-90);\n --_connotation-color-fierce: var(--vvd-color-neutral-80);\n --_connotation-color-firm: var(--vvd-color-on-canvas);\n}\n.control {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:hover, .hover):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-primary-increment);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-50);\n --_appearance-color-fill: var(--vvd-color-neutral-30);\n --_appearance-color-outline: transaprent;\n}\n.control:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-on-primary);\n --_appearance-color-fill: var(--_connotation-color-fierce);\n --_appearance-color-outline: transaprent;\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):active {\n --_elevation-fill: var(--vvd-color-surface-8dp);\n --_elevation-shadow: var(--vvd-shadow-surface-8dp);\n}\n\n/* Icon */\n.icon {\n font-size: 24px;\n}\n.icon-trailing .icon {\n order: 1;\n}\n\n:not(:focus) .focus-indicator {\n display: none;\n}";
|
|
19
|
+
styleInject(css_248z);
|
|
20
|
+
|
|
21
|
+
class Fab extends Button {}
|
|
22
|
+
|
|
23
|
+
__decorate([attr, __metadata("design:type", String)], Fab.prototype, "connotation", void 0);
|
|
24
|
+
|
|
25
|
+
__decorate([attr, __metadata("design:type", String)], Fab.prototype, "label", void 0);
|
|
26
|
+
|
|
27
|
+
applyMixins(Fab, AffixIconWithTrailing);
|
|
28
|
+
|
|
29
|
+
let _ = t => t,
|
|
30
|
+
_t;
|
|
31
|
+
|
|
32
|
+
const getClasses = ({
|
|
33
|
+
connotation,
|
|
34
|
+
icon,
|
|
35
|
+
label,
|
|
36
|
+
iconTrailing,
|
|
37
|
+
disabled
|
|
38
|
+
}) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], ['icon-only', !label && !!icon], ['icon-trailing', iconTrailing], ['disabled', disabled]);
|
|
39
|
+
|
|
40
|
+
const FabTemplate = context => {
|
|
41
|
+
const affixIconTemplate = affixIconTemplateFactory(context);
|
|
42
|
+
const focusTemplate = focusTemplateFactory(context);
|
|
43
|
+
return html(_t || (_t = _`
|
|
44
|
+
<button
|
|
45
|
+
class="${0} "
|
|
46
|
+
?autofocus="${0}"
|
|
47
|
+
?disabled="${0}"
|
|
48
|
+
form="${0}"
|
|
49
|
+
formaction="${0}"
|
|
50
|
+
formenctype="${0}"
|
|
51
|
+
formmethod="${0}"
|
|
52
|
+
formnovalidate="${0}"
|
|
53
|
+
formtarget="${0}"
|
|
54
|
+
name="${0}"
|
|
55
|
+
type="${0}"
|
|
56
|
+
value="${0}"
|
|
57
|
+
aria-atomic="${0}"
|
|
58
|
+
aria-busy="${0}"
|
|
59
|
+
aria-controls="${0}"
|
|
60
|
+
aria-current="${0}"
|
|
61
|
+
aria-describedby="${0}"
|
|
62
|
+
aria-details="${0}"
|
|
63
|
+
aria-disabled="${0}"
|
|
64
|
+
aria-errormessage="${0}"
|
|
65
|
+
aria-expanded="${0}"
|
|
66
|
+
aria-flowto="${0}"
|
|
67
|
+
aria-haspopup="${0}"
|
|
68
|
+
aria-hidden="${0}"
|
|
69
|
+
aria-invalid="${0}"
|
|
70
|
+
aria-keyshortcuts="${0}"
|
|
71
|
+
aria-label="${0}"
|
|
72
|
+
aria-labelledby="${0}"
|
|
73
|
+
aria-live="${0}"
|
|
74
|
+
aria-owns="${0}"
|
|
75
|
+
aria-pressed="${0}"
|
|
76
|
+
aria-relevant="${0}"
|
|
77
|
+
aria-roledescription="${0}"
|
|
78
|
+
${0}
|
|
79
|
+
>
|
|
80
|
+
${0}
|
|
81
|
+
${0}
|
|
82
|
+
${0}
|
|
83
|
+
</button>
|
|
84
|
+
`), 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);
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const vividFab = Fab.compose({
|
|
88
|
+
baseName: 'fab',
|
|
89
|
+
template: FabTemplate,
|
|
90
|
+
styles: css_248z
|
|
91
|
+
});
|
|
92
|
+
designSystem.register(vividFab());
|
|
93
|
+
|
|
94
|
+
export { vividFab };
|
package/focus/index.js
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
import '../shared/
|
|
2
|
-
|
|
3
|
-
import '../shared/style-inject.es.js';
|
|
1
|
+
import { h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { F as Focus } from '../shared/focus.js';
|
|
3
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
4
|
+
|
|
5
|
+
var css_248z = ":host {\n display: contents;\n border-radius: inherit;\n}\n\n.control {\n position: absolute;\n box-sizing: border-box;\n border-radius: inherit;\n box-shadow: inset 0 0 0 2px var(--focus-stroke-color, var(--vvd-color-on-canvas)), inset 0 0 0 3px var(--focus-stroke-gap-color, currentColor);\n inset: 0;\n}";
|
|
6
|
+
styleInject(css_248z);
|
|
7
|
+
|
|
8
|
+
let _ = t => t,
|
|
9
|
+
_t;
|
|
10
|
+
const focusTemplate = () => html(_t || (_t = _`
|
|
11
|
+
<span class="control"></span>`));
|
|
12
|
+
|
|
13
|
+
const vividFocus = Focus.compose({
|
|
14
|
+
baseName: 'focus',
|
|
15
|
+
template: focusTemplate,
|
|
16
|
+
styles: css_248z
|
|
17
|
+
});
|
|
18
|
+
designSystem.register(vividFocus());
|
|
19
|
+
|
|
20
|
+
export { vividFocus };
|
package/icon/index.js
CHANGED
|
@@ -1,5 +1,38 @@
|
|
|
1
|
-
import '../shared/
|
|
2
|
-
|
|
3
|
-
import '../shared/
|
|
4
|
-
import '../shared/
|
|
5
|
-
import '../shared/class-names.js';
|
|
1
|
+
import { h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
|
+
import { I as Icon } from '../shared/icon.js';
|
|
4
|
+
import { w as when } from '../shared/when.js';
|
|
5
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
6
|
+
import '../shared/object-set-prototype-of.js';
|
|
7
|
+
import '../shared/_has.js';
|
|
8
|
+
|
|
9
|
+
var css_248z = ":host {\n display: inline-block;\n vertical-align: sub;\n}\n\n.control {\n display: flex;\n margin: unset;\n color: currentColor;\n contain: strict;\n}\n.control.connotation-accent {\n --_connotation-color-primary: var(--vvd-color-on-canvas);\n}\n.control.connotation-announcement {\n --_connotation-color-primary: var(--vvd-color-announcement);\n}\n.control.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta);\n}\n.control.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success);\n}\n.control.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert);\n}\n.control.connotation-info {\n --_connotation-color-primary: var(--vvd-color-info);\n}\n\n.control[class*=connotation] {\n color: var(--_connotation-color-basis);\n}\n\nsvg {\n margin: auto;\n block-size: inherit;\n inline-size: inherit;\n}\n\n/* Size */\n.control:not(.size-small):not(.size-medium):not(.size-large) {\n block-size: 1em;\n inline-size: 1em;\n}\n\n.control.size-small {\n block-size: 16px;\n inline-size: 16px;\n}\n\n.control.size-medium {\n block-size: 24px;\n inline-size: 24px;\n}\n\n.control.size-large {\n block-size: 32px;\n inline-size: 32px;\n}";
|
|
10
|
+
styleInject(css_248z);
|
|
11
|
+
|
|
12
|
+
let _ = t => t,
|
|
13
|
+
_t,
|
|
14
|
+
_t2;
|
|
15
|
+
|
|
16
|
+
const getClasses = ({
|
|
17
|
+
connotation,
|
|
18
|
+
size
|
|
19
|
+
}) => classNames('control', [`connotation-${connotation}`, Boolean(connotation)], [`size-${size}`, Boolean(size)]);
|
|
20
|
+
|
|
21
|
+
const iconTemplate = () => html(_t || (_t = _`
|
|
22
|
+
<figure class="${0}">
|
|
23
|
+
${0}
|
|
24
|
+
</figure>
|
|
25
|
+
`), getClasses, when(x => isValidString(x.svg), x => html(_t2 || (_t2 = _`${0}`), x.svg)));
|
|
26
|
+
|
|
27
|
+
function isValidString(value) {
|
|
28
|
+
return typeof value === 'string' && value.length > 0;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const vividIcon = Icon.compose({
|
|
32
|
+
baseName: 'icon',
|
|
33
|
+
template: iconTemplate,
|
|
34
|
+
styles: css_248z
|
|
35
|
+
});
|
|
36
|
+
designSystem.register(vividIcon());
|
|
37
|
+
|
|
38
|
+
export { vividIcon };
|
package/index.d.ts
CHANGED
package/index.js
CHANGED
|
@@ -1,16 +1,47 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
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 { vividBadge } from './badge/index.js';
|
|
5
|
+
export { vividBanner } from './banner/index.js';
|
|
6
|
+
export { vividBreadcrumb } from './breadcrumb/index.js';
|
|
7
|
+
export { vividBreadcrumbItem } from './breadcrumb-item/index.js';
|
|
3
8
|
export { vividButton } from './button/index.js';
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
export { vividCalendar } from './calendar/index.js';
|
|
10
|
+
export { vividCard } from './card/index.js';
|
|
11
|
+
export { vividElevation } from './elevation/index.js';
|
|
12
|
+
export { vividFab } from './fab/index.js';
|
|
13
|
+
export { vividIcon } from './icon/index.js';
|
|
14
|
+
export { vividLayout } from './layout/index.js';
|
|
15
|
+
export { vividNote } from './note/index.js';
|
|
16
|
+
export { vividPopup } from './popup/index.js';
|
|
17
|
+
export { vividProgress } from './progress/index.js';
|
|
18
|
+
export { vividProgressRing } from './progress-ring/index.js';
|
|
19
|
+
export { vividSideDrawer } from './side-drawer/index.js';
|
|
20
|
+
export { vividSidenavItem } from './sidenav-item/index.js';
|
|
21
|
+
export { vividText } from './text/index.js';
|
|
22
|
+
export { vividTextfield } from './text-field/index.js';
|
|
23
|
+
export { vividTooltip } from './tooltip/index.js';
|
|
24
|
+
export { d as designSystem, p as provideVividDesignSystem } from './shared/index.js';
|
|
25
|
+
import './shared/style-inject.es.js';
|
|
26
|
+
import './shared/class-names.js';
|
|
10
27
|
import './shared/web.dom-collections.iterator.js';
|
|
11
|
-
import './shared/
|
|
28
|
+
import './shared/object-set-prototype-of.js';
|
|
29
|
+
import './shared/affix.js';
|
|
30
|
+
import './shared/icon.js';
|
|
31
|
+
import './shared/_has.js';
|
|
12
32
|
import './shared/apply-mixins.js';
|
|
33
|
+
import './shared/when.js';
|
|
34
|
+
import './shared/enums.js';
|
|
35
|
+
import './text-anchor/index.js';
|
|
36
|
+
import './shared/text-anchor.js';
|
|
37
|
+
import './shared/anchor.js';
|
|
13
38
|
import './shared/aria-global.js';
|
|
14
|
-
import './shared/
|
|
15
|
-
import './
|
|
16
|
-
import './shared/
|
|
39
|
+
import './shared/text-anchor.template.js';
|
|
40
|
+
import './focus/index.js';
|
|
41
|
+
import './shared/focus.js';
|
|
42
|
+
import './shared/button.js';
|
|
43
|
+
import './shared/focus2.js';
|
|
44
|
+
import './shared/breadcrumb-item.js';
|
|
45
|
+
import './shared/slotted.js';
|
|
46
|
+
import './shared/es.object.assign.js';
|
|
47
|
+
import './shared/base-progress.js';
|
package/layout/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/
|
|
1
|
+
import { F as FoundationElement, _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
2
|
import { s as styleInject } from '../shared/style-inject.es.js';
|
|
3
3
|
import { c as classNames } from '../shared/class-names.js';
|
|
4
4
|
|
|
@@ -25,7 +25,7 @@ __decorate([attr({
|
|
|
25
25
|
attribute: 'auto-sizing'
|
|
26
26
|
}), __metadata("design:type", String)], Layout.prototype, "autoSizing", void 0);
|
|
27
27
|
|
|
28
|
-
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-
|
|
28
|
+
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(10rem, 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(20rem, 1fr)));\n}\n.control.column-basis-large {\n grid-template-columns: var(--layout-grid-template-columns, repeat(var(--_auto-sizing), minmax(30rem, 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:not(.column-spacing-small):not(.column-spacing-medium):not(.column-spacing-large), .control.column-spacing-medium {\n gap: 24px;\n}\n.control.column-spacing-large {\n gap: 32px;\n}\n.control.gutters-small {\n margin: 16px;\n}\n.control.gutters-medium {\n margin: 24px;\n}\n.control.gutters-large {\n margin: 32px;\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}";
|
|
29
29
|
styleInject(css_248z);
|
|
30
30
|
|
|
31
31
|
let _ = t => t,
|
|
@@ -43,11 +43,11 @@ const layoutTemplate = () => html(_t || (_t = _`
|
|
|
43
43
|
<slot></slot>
|
|
44
44
|
</div>`), getClasses);
|
|
45
45
|
|
|
46
|
-
const
|
|
46
|
+
const vividLayout = Layout.compose({
|
|
47
47
|
baseName: 'layout',
|
|
48
48
|
template: layoutTemplate,
|
|
49
49
|
styles: css_248z
|
|
50
50
|
});
|
|
51
|
-
designSystem.register(
|
|
51
|
+
designSystem.register(vividLayout());
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
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,3 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
import '../icon';
|
|
3
|
+
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,9 @@
|
|
|
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
|
+
}
|
|
9
|
+
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>>;
|
package/lib/badge/badge.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { FoundationElement } from '@microsoft/fast-foundation';
|
|
2
|
-
import {
|
|
3
|
-
import type { Appearance, Connotation,
|
|
4
|
-
declare type BadgeConnotation = Extract<Connotation, Connotation.
|
|
5
|
-
declare type BadgeAppearance = Extract<Appearance, Appearance.Filled | Appearance.
|
|
2
|
+
import { AffixIconWithTrailing } from '../../shared/patterns/affix';
|
|
3
|
+
import type { Appearance, Connotation, Density, Shape } from '../enums.js';
|
|
4
|
+
declare type BadgeConnotation = Extract<Connotation, Connotation.Accent | Connotation.CTA | Connotation.Success | Connotation.Alert | Connotation.Warning | Connotation.Info>;
|
|
5
|
+
declare type BadgeAppearance = Extract<Appearance, Appearance.Filled | Appearance.Duotone | Appearance.Subtle>;
|
|
6
6
|
declare type BadgeShape = Extract<Shape, Shape.Rounded | Shape.Pill>;
|
|
7
|
-
declare type
|
|
7
|
+
declare type BadgeDensity = Extract<Density, Density.Condensed | Density.Normal | Density.Extended>;
|
|
8
8
|
export declare class Badge extends FoundationElement {
|
|
9
9
|
connotation?: BadgeConnotation;
|
|
10
10
|
shape?: BadgeShape;
|
|
11
11
|
appearance?: BadgeAppearance;
|
|
12
|
-
|
|
13
|
-
text
|
|
12
|
+
density?: BadgeDensity;
|
|
13
|
+
text?: string;
|
|
14
14
|
}
|
|
15
|
-
export interface Badge extends
|
|
15
|
+
export interface Badge extends AffixIconWithTrailing {
|
|
16
16
|
}
|
|
17
17
|
export {};
|
package/lib/badge/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import '../icon';
|
|
2
2
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
-
export declare const
|
|
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.Info | 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,6 @@
|
|
|
1
|
+
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
|
+
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
|
+
import '../button';
|
|
4
|
+
import '../text-anchor';
|
|
5
|
+
import type { Banner } from './banner';
|
|
6
|
+
export declare const BannerTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<Banner>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
|
+
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,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>>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class BreadcrumbItem extends
|
|
3
|
-
|
|
1
|
+
import { BreadcrumbItem as FastBreadcrumbItem } from '@microsoft/fast-foundation';
|
|
2
|
+
export declare class BreadcrumbItem extends FastBreadcrumbItem {
|
|
3
|
+
text?: string;
|
|
4
4
|
constructor();
|
|
5
5
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { ViewTemplate } from '@microsoft/fast-element';
|
|
2
2
|
import type { ElementDefinitionContext, FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
3
3
|
import type { BreadcrumbItem } from './breadcrumb-item';
|
|
4
|
-
import '../icon';
|
|
5
4
|
export declare const BreadcrumbItemTemplate: (context: ElementDefinitionContext, definition: FoundationElementDefinition) => ViewTemplate<BreadcrumbItem>;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
+
import '../icon';
|
|
1
2
|
import type { FoundationElementDefinition } from '@microsoft/fast-foundation';
|
|
2
3
|
export declare const vividBreadcrumbItem: (overrideDefinition?: import("@microsoft/fast-foundation").OverrideFoundationElementDefinition<FoundationElementDefinition> | undefined) => import("@microsoft/fast-foundation").FoundationElementRegistry<FoundationElementDefinition, import("@microsoft/fast-element").Constructable<import("@microsoft/fast-foundation").FoundationElement>>;
|