@fluentui/web-components 3.0.0-beta.70 → 3.0.0-beta.71
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/CHANGELOG.md +11 -2
- package/dist/dts/avatar/avatar.d.ts +1 -1
- package/dist/dts/menu-item/menu-item.styles.d.ts +0 -5
- package/dist/dts/styles/states/index.d.ts +439 -95
- package/dist/dts/utils/element-internals.d.ts +15 -0
- package/dist/esm/avatar/avatar.styles.js +32 -31
- package/dist/esm/avatar/avatar.styles.js.map +1 -1
- package/dist/esm/checkbox/checkbox.styles.js +1 -6
- package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
- package/dist/esm/counter-badge/counter-badge.styles.js +1 -6
- package/dist/esm/counter-badge/counter-badge.styles.js.map +1 -1
- package/dist/esm/field/field.styles.js +1 -66
- package/dist/esm/field/field.styles.js.map +1 -1
- package/dist/esm/image/image.styles.js +8 -8
- package/dist/esm/image/image.styles.js.map +1 -1
- package/dist/esm/label/label.styles.js +4 -5
- package/dist/esm/label/label.styles.js.map +1 -1
- package/dist/esm/link/link.styles.js +3 -3
- package/dist/esm/link/link.styles.js.map +1 -1
- package/dist/esm/menu-item/menu-item.styles.js +1 -6
- package/dist/esm/menu-item/menu-item.styles.js.map +1 -1
- package/dist/esm/styles/states/index.js +437 -97
- package/dist/esm/styles/states/index.js.map +1 -1
- package/dist/esm/text/text.styles.js +20 -39
- package/dist/esm/text/text.styles.js.map +1 -1
- package/dist/esm/utils/element-internals.js +20 -0
- package/dist/esm/utils/element-internals.js.map +1 -1
- package/dist/web-components.d.ts +1 -1
- package/dist/web-components.js +130 -78
- package/dist/web-components.min.js +274 -274
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/styles/states/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/styles/states/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-element';
|
|
2
2
|
import { display } from '../utils/index.js';
|
|
3
3
|
import { fontFamilyBase, fontFamilyMonospace, fontFamilyNumeric, fontSizeBase100, fontSizeBase200, fontSizeBase300, fontSizeBase400, fontSizeBase500, fontSizeBase600, fontSizeHero1000, fontSizeHero700, fontSizeHero800, fontSizeHero900, fontWeightBold, fontWeightMedium, fontWeightRegular, fontWeightSemibold, lineHeightBase100, lineHeightBase200, lineHeightBase300, lineHeightBase400, lineHeightBase500, lineHeightBase600, lineHeightHero1000, lineHeightHero700, lineHeightHero800, lineHeightHero900, } from '../theme/design-tokens.js';
|
|
4
|
-
|
|
5
|
-
* Selector for the `nowrap` state.
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
const nowrapState = css.partial `:is([state--nowrap], :state(nowrap))`;
|
|
9
|
-
/**
|
|
10
|
-
* Selector for the `truncate` state.
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
const truncateState = css.partial `:is([state--truncate], :state(truncate))`;
|
|
14
|
-
/**
|
|
15
|
-
* Selector for the `underline` state.
|
|
16
|
-
* @public
|
|
17
|
-
*/
|
|
18
|
-
const underlineState = css.partial `:is([state--underline], :state(underline))`;
|
|
19
|
-
/**
|
|
20
|
-
* Selector for the `strikethrough` state.
|
|
21
|
-
* @public
|
|
22
|
-
*/
|
|
23
|
-
const strikethroughState = css.partial `:is([state--strikethrough], :state(strikethrough))`;
|
|
4
|
+
import { blockState, boldState, centerState, endState, italicState, justifyState, mediumState, monospaceState, nowrapState, numericState, semiboldState, size1000State, size100State, size200State, size400State, size500State, size600State, size700State, size800State, size900State, strikethroughState, truncateState, underlineState, } from '../styles/states/index.js';
|
|
24
5
|
/** Text styles
|
|
25
6
|
* @public
|
|
26
7
|
*/
|
|
@@ -45,10 +26,10 @@ export const styles = css `
|
|
|
45
26
|
:host(${truncateState}) ::slotted(*) {
|
|
46
27
|
text-overflow: ellipsis;
|
|
47
28
|
}
|
|
48
|
-
:host(
|
|
29
|
+
:host(${blockState}) {
|
|
49
30
|
display: block;
|
|
50
31
|
}
|
|
51
|
-
:host(
|
|
32
|
+
:host(${italicState}) {
|
|
52
33
|
font-style: italic;
|
|
53
34
|
}
|
|
54
35
|
:host(${underlineState}) {
|
|
@@ -60,64 +41,64 @@ export const styles = css `
|
|
|
60
41
|
:host(${underlineState}${strikethroughState}) {
|
|
61
42
|
text-decoration-line: line-through underline;
|
|
62
43
|
}
|
|
63
|
-
:host(
|
|
44
|
+
:host(${size100State}) {
|
|
64
45
|
font-size: ${fontSizeBase100};
|
|
65
46
|
line-height: ${lineHeightBase100};
|
|
66
47
|
}
|
|
67
|
-
:host(
|
|
48
|
+
:host(${size200State}) {
|
|
68
49
|
font-size: ${fontSizeBase200};
|
|
69
50
|
line-height: ${lineHeightBase200};
|
|
70
51
|
}
|
|
71
|
-
:host(
|
|
52
|
+
:host(${size400State}) {
|
|
72
53
|
font-size: ${fontSizeBase400};
|
|
73
54
|
line-height: ${lineHeightBase400};
|
|
74
55
|
}
|
|
75
|
-
:host(
|
|
56
|
+
:host(${size500State}) {
|
|
76
57
|
font-size: ${fontSizeBase500};
|
|
77
58
|
line-height: ${lineHeightBase500};
|
|
78
59
|
}
|
|
79
|
-
:host(
|
|
60
|
+
:host(${size600State}) {
|
|
80
61
|
font-size: ${fontSizeBase600};
|
|
81
62
|
line-height: ${lineHeightBase600};
|
|
82
63
|
}
|
|
83
|
-
:host(
|
|
64
|
+
:host(${size700State}) {
|
|
84
65
|
font-size: ${fontSizeHero700};
|
|
85
66
|
line-height: ${lineHeightHero700};
|
|
86
67
|
}
|
|
87
|
-
:host(
|
|
68
|
+
:host(${size800State}) {
|
|
88
69
|
font-size: ${fontSizeHero800};
|
|
89
70
|
line-height: ${lineHeightHero800};
|
|
90
71
|
}
|
|
91
|
-
:host(
|
|
72
|
+
:host(${size900State}) {
|
|
92
73
|
font-size: ${fontSizeHero900};
|
|
93
74
|
line-height: ${lineHeightHero900};
|
|
94
75
|
}
|
|
95
|
-
:host(
|
|
76
|
+
:host(${size1000State}) {
|
|
96
77
|
font-size: ${fontSizeHero1000};
|
|
97
78
|
line-height: ${lineHeightHero1000};
|
|
98
79
|
}
|
|
99
|
-
:host(
|
|
80
|
+
:host(${monospaceState}) {
|
|
100
81
|
font-family: ${fontFamilyMonospace};
|
|
101
82
|
}
|
|
102
|
-
:host(
|
|
83
|
+
:host(${numericState}) {
|
|
103
84
|
font-family: ${fontFamilyNumeric};
|
|
104
85
|
}
|
|
105
|
-
:host(
|
|
86
|
+
:host(${mediumState}) {
|
|
106
87
|
font-weight: ${fontWeightMedium};
|
|
107
88
|
}
|
|
108
|
-
:host(
|
|
89
|
+
:host(${semiboldState}) {
|
|
109
90
|
font-weight: ${fontWeightSemibold};
|
|
110
91
|
}
|
|
111
|
-
:host(
|
|
92
|
+
:host(${boldState}) {
|
|
112
93
|
font-weight: ${fontWeightBold};
|
|
113
94
|
}
|
|
114
|
-
:host(
|
|
95
|
+
:host(${centerState}) {
|
|
115
96
|
text-align: center;
|
|
116
97
|
}
|
|
117
|
-
:host(
|
|
98
|
+
:host(${endState}) {
|
|
118
99
|
text-align: end;
|
|
119
100
|
}
|
|
120
|
-
:host(
|
|
101
|
+
:host(${justifyState}) {
|
|
121
102
|
text-align: justify;
|
|
122
103
|
}
|
|
123
104
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.styles.js","sourceRoot":"","sources":["../../../src/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"text.styles.js","sourceRoot":"","sources":["../../../src/text/text.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACL,cAAc,EACd,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,UAAU,EACV,SAAS,EACT,WAAW,EACX,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,WAAW,EACX,cAAc,EACd,WAAW,EACX,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,cAAc,GACf,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,QAAQ,CAAC;;;;mBAIF,cAAc;iBAChB,eAAe;mBACb,iBAAiB;mBACjB,iBAAiB;;;;UAI1B,WAAW;UACX,WAAW;;;;UAIX,aAAa;UACb,aAAa;;;UAGb,UAAU;;;UAGV,WAAW;;;UAGX,cAAc;;;UAGd,kBAAkB;;;UAGlB,cAAc,GAAG,kBAAkB;;;UAGnC,YAAY;iBACL,eAAe;mBACb,iBAAiB;;UAE1B,YAAY;iBACL,eAAe;mBACb,iBAAiB;;UAE1B,YAAY;iBACL,eAAe;mBACb,iBAAiB;;UAE1B,YAAY;iBACL,eAAe;mBACb,iBAAiB;;UAE1B,YAAY;iBACL,eAAe;mBACb,iBAAiB;;UAE1B,YAAY;iBACL,eAAe;mBACb,iBAAiB;;UAE1B,YAAY;iBACL,eAAe;mBACb,iBAAiB;;UAE1B,YAAY;iBACL,eAAe;mBACb,iBAAiB;;UAE1B,aAAa;iBACN,gBAAgB;mBACd,kBAAkB;;UAE3B,cAAc;mBACL,mBAAmB;;UAE5B,YAAY;mBACH,iBAAiB;;UAE1B,WAAW;mBACF,gBAAgB;;UAEzB,aAAa;mBACJ,kBAAkB;;UAE3B,SAAS;mBACA,cAAc;;UAEvB,WAAW;;;UAGX,QAAQ;;;UAGR,YAAY;;;;;;;;;;;;CAYrB,CAAC"}
|
|
@@ -3,6 +3,26 @@
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export const CustomStatesSetSupported = CSS.supports('selector(:state(g))');
|
|
6
|
+
/**
|
|
7
|
+
* Map to store the state values.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
const statesMap = new Map();
|
|
11
|
+
/**
|
|
12
|
+
* Returns a string that represents a CSS custom state selector.
|
|
13
|
+
*
|
|
14
|
+
* @param state - the state value.
|
|
15
|
+
* @returns a string that represents a CSS state selector, or a custom attribute selector if the browser does not
|
|
16
|
+
* support Custom States.
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export function stateSelector(state) {
|
|
21
|
+
var _a;
|
|
22
|
+
return ((_a = statesMap.get(state)) !== null && _a !== void 0 ? _a : statesMap
|
|
23
|
+
.set(state, CustomStatesSetSupported ? `:state(${state})` : `[state--${state}]`)
|
|
24
|
+
.get(state));
|
|
25
|
+
}
|
|
6
26
|
/**
|
|
7
27
|
* This function is used to toggle a state on the control. If the browser supports Custom States, the state is toggled
|
|
8
28
|
* on the `ElementInternals.states` set. If the browser does not support Custom States, the state is toggled on the host
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element-internals.js","sourceRoot":"","sources":["../../../src/utils/element-internals.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"element-internals.js","sourceRoot":"","sources":["../../../src/utils/element-internals.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,GAAG,CAAC,QAAQ,CAAC,qBAAqB,CAAC,CAAC;AAE5E;;;GAGG;AACH,MAAM,SAAS,GAAG,IAAI,GAAG,EAAiC,CAAC;AAE3D;;;;;;;;GAQG;AACH,MAAM,UAAU,aAAa,CAAmB,KAAQ;;IACtD,OAAO,CAAC,MAAA,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,mCAC1B,SAAS;SACN,GAAG,CAAC,KAAK,EAAE,wBAAwB,CAAC,CAAC,CAAC,UAAU,KAAK,GAAG,CAAC,CAAC,CAAC,WAAW,KAAK,GAAG,CAAC;SAC/E,GAAG,CAAC,KAAK,CAAC,CAAqB,CAAC;AACvC,CAAC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,WAAW,CAAC,gBAAkC,EAAE,KAAa,EAAE,KAAe;IAC5F,IAAI,CAAC,wBAAwB,EAAE;QAC7B,gBAAgB,CAAC,UAAW,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,KAAK,EAAE,EAAE,KAAK,CAAC,CAAC;QAC5E,OAAO;KACR;IACD,mCAAmC;IACnC,IAAI,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,CAAC,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE;QAChD,mCAAmC;QACnC,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO;KACR;IACD,mCAAmC;IACnC,gBAAgB,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACxC,CAAC"}
|
package/dist/web-components.d.ts
CHANGED
|
@@ -460,7 +460,7 @@ export declare class Avatar extends BaseAvatar {
|
|
|
460
460
|
/**
|
|
461
461
|
* An array of the available Avatar named colors
|
|
462
462
|
*/
|
|
463
|
-
static colors: ("anchor" | "
|
|
463
|
+
static colors: ("anchor" | "beige" | "blue" | "brass" | "brown" | "cornflower" | "cranberry" | "dark-green" | "dark-red" | "forest" | "gold" | "grape" | "lavender" | "light-teal" | "lilac" | "magenta" | "marigold" | "mink" | "navy" | "peach" | "pink" | "platinum" | "plum" | "pumpkin" | "purple" | "red" | "royal-blue" | "seafoam" | "steel" | "teal")[];
|
|
464
464
|
connectedCallback(): void;
|
|
465
465
|
disconnectedCallback(): void;
|
|
466
466
|
}
|
package/dist/web-components.js
CHANGED
|
@@ -4338,6 +4338,10 @@ function applyMixins(derivedCtor, ...baseCtors) {
|
|
|
4338
4338
|
}
|
|
4339
4339
|
|
|
4340
4340
|
const CustomStatesSetSupported = CSS.supports("selector(:state(g))");
|
|
4341
|
+
const statesMap = /* @__PURE__ */new Map();
|
|
4342
|
+
function stateSelector(state) {
|
|
4343
|
+
return statesMap.get(state) ?? statesMap.set(state, CustomStatesSetSupported ? `:state(${state})` : `[state--${state}]`).get(state);
|
|
4344
|
+
}
|
|
4341
4345
|
function toggleState(elementInternals, state, force) {
|
|
4342
4346
|
if (!CustomStatesSetSupported) {
|
|
4343
4347
|
elementInternals.shadowRoot.host.toggleAttribute(`state--${state}`, force);
|
|
@@ -4450,58 +4454,126 @@ __decorateClass$v([attr({
|
|
|
4450
4454
|
})], AccordionItem.prototype, "block", 2);
|
|
4451
4455
|
applyMixins(AccordionItem, StartEnd);
|
|
4452
4456
|
|
|
4453
|
-
const
|
|
4454
|
-
const
|
|
4455
|
-
const
|
|
4456
|
-
const
|
|
4457
|
-
const
|
|
4458
|
-
const
|
|
4459
|
-
const
|
|
4460
|
-
const
|
|
4461
|
-
const
|
|
4462
|
-
const
|
|
4463
|
-
const
|
|
4464
|
-
const
|
|
4465
|
-
const
|
|
4466
|
-
const
|
|
4467
|
-
const
|
|
4468
|
-
const
|
|
4469
|
-
const
|
|
4470
|
-
const
|
|
4471
|
-
const
|
|
4472
|
-
|
|
4473
|
-
const
|
|
4474
|
-
const
|
|
4475
|
-
const
|
|
4476
|
-
const
|
|
4477
|
-
const
|
|
4478
|
-
const
|
|
4479
|
-
const
|
|
4480
|
-
const
|
|
4481
|
-
const
|
|
4482
|
-
const
|
|
4483
|
-
const
|
|
4484
|
-
const
|
|
4485
|
-
const
|
|
4486
|
-
|
|
4487
|
-
const
|
|
4488
|
-
const
|
|
4489
|
-
const
|
|
4490
|
-
const
|
|
4491
|
-
const
|
|
4492
|
-
|
|
4493
|
-
|
|
4494
|
-
const
|
|
4495
|
-
const
|
|
4496
|
-
const
|
|
4497
|
-
|
|
4498
|
-
const
|
|
4499
|
-
const
|
|
4500
|
-
const
|
|
4501
|
-
const
|
|
4502
|
-
const
|
|
4503
|
-
const
|
|
4504
|
-
|
|
4457
|
+
const alignEndState = stateSelector("align-end");
|
|
4458
|
+
const alignStartState = stateSelector("align-start");
|
|
4459
|
+
const anchorState = stateSelector("anchor");
|
|
4460
|
+
const autoResizeState = stateSelector("auto-resize");
|
|
4461
|
+
const badInputState = stateSelector("bad-input");
|
|
4462
|
+
const beigeState = stateSelector("beige");
|
|
4463
|
+
const blockState = stateSelector("block");
|
|
4464
|
+
const blueState = stateSelector("blue");
|
|
4465
|
+
const boldState = stateSelector("bold");
|
|
4466
|
+
const borderedState = stateSelector("bordered");
|
|
4467
|
+
const brandState = stateSelector("brand");
|
|
4468
|
+
const brassState = stateSelector("brass");
|
|
4469
|
+
const brownState = stateSelector("brown");
|
|
4470
|
+
const centerState = stateSelector("center");
|
|
4471
|
+
const checkedState = stateSelector("checked");
|
|
4472
|
+
const circularState = stateSelector("circular");
|
|
4473
|
+
const cornflowerState = stateSelector("cornflower");
|
|
4474
|
+
const cranberryState = stateSelector("cranberry");
|
|
4475
|
+
const customErrorState = stateSelector("custom-error");
|
|
4476
|
+
const dangerState = stateSelector("danger");
|
|
4477
|
+
const darkGreenState = stateSelector("dark-green");
|
|
4478
|
+
const darkRedState = stateSelector("dark-red");
|
|
4479
|
+
const disabledState = stateSelector("disabled");
|
|
4480
|
+
const displayShadowState = stateSelector("display-shadow");
|
|
4481
|
+
const dotState = stateSelector("dot");
|
|
4482
|
+
const endState = stateSelector("end");
|
|
4483
|
+
const errorState = stateSelector("error");
|
|
4484
|
+
const expandedState = stateSelector("expanded");
|
|
4485
|
+
const extraLargeState = stateSelector("extra-large");
|
|
4486
|
+
const extraSmallState = stateSelector("extra-small");
|
|
4487
|
+
const filledDarkerState = stateSelector("filled-darker");
|
|
4488
|
+
const filledLighterState = stateSelector("filled-lighter");
|
|
4489
|
+
const fitCenterState = stateSelector("fit-center");
|
|
4490
|
+
const fitContainState = stateSelector("fit-contain");
|
|
4491
|
+
const fitCoverState = stateSelector("fit-cover");
|
|
4492
|
+
const fitNoneState = stateSelector("fit-none");
|
|
4493
|
+
const focusVisibleState = stateSelector("focus-visible");
|
|
4494
|
+
const forestState = stateSelector("forest");
|
|
4495
|
+
const ghostState = stateSelector("ghost");
|
|
4496
|
+
const goldState = stateSelector("gold");
|
|
4497
|
+
const grapeState = stateSelector("grape");
|
|
4498
|
+
const hasMessageState = stateSelector("has-message");
|
|
4499
|
+
const hugeState = stateSelector("huge");
|
|
4500
|
+
const iconOnlyState = stateSelector("icon");
|
|
4501
|
+
const importantState = stateSelector("important");
|
|
4502
|
+
const indeterminateState = stateSelector("indeterminate");
|
|
4503
|
+
const informativeState = stateSelector("informative");
|
|
4504
|
+
const inlineState = stateSelector("inline");
|
|
4505
|
+
const insetState = stateSelector("inset");
|
|
4506
|
+
const invertedState = stateSelector("inverted");
|
|
4507
|
+
const italicState = stateSelector("italic");
|
|
4508
|
+
const justifyState = stateSelector("justify");
|
|
4509
|
+
const largeState = stateSelector("large");
|
|
4510
|
+
const lavenderState = stateSelector("lavender");
|
|
4511
|
+
const lightTealState = stateSelector("light-teal");
|
|
4512
|
+
const lilacState = stateSelector("lilac");
|
|
4513
|
+
const magentaState = stateSelector("magenta");
|
|
4514
|
+
const marigoldState = stateSelector("marigold");
|
|
4515
|
+
const mediumState = stateSelector("medium");
|
|
4516
|
+
const minkState = stateSelector("mink");
|
|
4517
|
+
const monospaceState = stateSelector("monospace");
|
|
4518
|
+
const multiLineState = stateSelector("multiline");
|
|
4519
|
+
const navyState = stateSelector("navy");
|
|
4520
|
+
const neutralState = stateSelector("neutral");
|
|
4521
|
+
const nowrapState = stateSelector("nowrap");
|
|
4522
|
+
const numericState = stateSelector("numeric");
|
|
4523
|
+
const outlineState = stateSelector("outline");
|
|
4524
|
+
const patternMismatchState = stateSelector("pattern-mismatch");
|
|
4525
|
+
const peachState = stateSelector("peach");
|
|
4526
|
+
const pinkState = stateSelector("pink");
|
|
4527
|
+
const platinumState = stateSelector("platinum");
|
|
4528
|
+
const plumState = stateSelector("plum");
|
|
4529
|
+
const pressedState = stateSelector("pressed");
|
|
4530
|
+
const primaryState = stateSelector("primary");
|
|
4531
|
+
const pumpkinState = stateSelector("pumpkin");
|
|
4532
|
+
const purpleState = stateSelector("purple");
|
|
4533
|
+
const rangeOverflowState = stateSelector("range-overflow");
|
|
4534
|
+
const rangeUnderflowState = stateSelector("range-underflow");
|
|
4535
|
+
const redState = stateSelector("red");
|
|
4536
|
+
const resizeBothState = stateSelector("resize-both");
|
|
4537
|
+
const resizeHorizontalState = stateSelector("resize-horizontal");
|
|
4538
|
+
const resizeVerticalState = stateSelector("resize-vertical");
|
|
4539
|
+
const roundedState = stateSelector("rounded");
|
|
4540
|
+
const royalBlueState = stateSelector("royal-blue");
|
|
4541
|
+
const seafoamState = stateSelector("seafoam");
|
|
4542
|
+
const semiboldState = stateSelector("semibold");
|
|
4543
|
+
const severeState = stateSelector("severe");
|
|
4544
|
+
const shadowState = stateSelector("shadow");
|
|
4545
|
+
const size1000State = stateSelector("size-1000");
|
|
4546
|
+
const size100State = stateSelector("size-100");
|
|
4547
|
+
const size200State = stateSelector("size-200");
|
|
4548
|
+
const size400State = stateSelector("size-400");
|
|
4549
|
+
const size500State = stateSelector("size-500");
|
|
4550
|
+
const size600State = stateSelector("size-600");
|
|
4551
|
+
const size700State = stateSelector("size-700");
|
|
4552
|
+
const size800State = stateSelector("size-800");
|
|
4553
|
+
const size900State = stateSelector("size-900");
|
|
4554
|
+
const smallState = stateSelector("small");
|
|
4555
|
+
const squareState = stateSelector("square");
|
|
4556
|
+
const steelState = stateSelector("steel");
|
|
4557
|
+
const stepMismatchState = stateSelector("step-mismatch");
|
|
4558
|
+
const strikethroughState = stateSelector("strikethrough");
|
|
4559
|
+
const strongState = stateSelector("strong");
|
|
4560
|
+
const submenuState = stateSelector("submenu");
|
|
4561
|
+
const subtleState = stateSelector("subtle");
|
|
4562
|
+
const successState = stateSelector("success");
|
|
4563
|
+
const tealState = stateSelector("teal");
|
|
4564
|
+
const tintState = stateSelector("tint");
|
|
4565
|
+
const tinyState = stateSelector("tiny");
|
|
4566
|
+
const tooLongState = stateSelector("too-long");
|
|
4567
|
+
const tooShortState = stateSelector("too-short");
|
|
4568
|
+
const transparentState = stateSelector("transparent");
|
|
4569
|
+
const truncateState = stateSelector("truncate");
|
|
4570
|
+
const typeMismatchState = stateSelector("type-mismatch");
|
|
4571
|
+
const underlineState = stateSelector("underline");
|
|
4572
|
+
const userInvalidState = stateSelector("user-invalid");
|
|
4573
|
+
const validState = stateSelector("valid");
|
|
4574
|
+
const valueMissingState = stateSelector("value-missing");
|
|
4575
|
+
const verticalState = stateSelector("vertical");
|
|
4576
|
+
const warningState = stateSelector("warning");
|
|
4505
4577
|
|
|
4506
4578
|
const colorNeutralForeground1 = "var(--colorNeutralForeground1)";
|
|
4507
4579
|
const colorNeutralForeground1Hover = "var(--colorNeutralForeground1Hover)";
|
|
@@ -5382,7 +5454,7 @@ const animations = {
|
|
|
5382
5454
|
nullEasing: curveLinear
|
|
5383
5455
|
};
|
|
5384
5456
|
const styles$w = css`
|
|
5385
|
-
${display("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin}) ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick}) ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host(
|
|
5457
|
+
${display("inline-flex")} :host{position:relative;align-items:center;justify-content:center;flex-shrink:0;width:32px;height:32px;font-family:${fontFamilyBase};font-weight:${fontWeightSemibold};font-size:${fontSizeBase300};border-radius:${borderRadiusCircular};color:${colorNeutralForeground3};background-color:${colorNeutralBackground6};contain:layout style}.default-icon,::slotted(svg){width:20px;height:20px;font-size:20px}::slotted(img){box-sizing:border-box;width:100%;height:100%;border-radius:${borderRadiusCircular}}::slotted([slot='badge']){position:absolute;bottom:0;right:0;box-shadow:0 0 0 ${strokeWidthThin}) ${colorNeutralBackground1}}:host([size='64']) ::slotted([slot='badge']),:host([size='72']) ::slotted([slot='badge']),:host([size='96']) ::slotted([slot='badge']),:host([size='120']) ::slotted([slot='badge']),:host([size='128']) ::slotted([slot='badge']){box-shadow:0 0 0 ${strokeWidthThick}) ${colorNeutralBackground1}}:host([size='16']),:host([size='20']),:host([size='24']){font-size:${fontSizeBase100};font-weight:${fontWeightRegular}}:host([size='16']){width:16px;height:16px}:host([size='20']){width:20px;height:20px}:host([size='24']){width:24px;height:24px}:host([size='16']) .default-icon,:host([size='16']) ::slotted(svg){width:12px;height:12px;font-size:12px}:host([size='20']) .default-icon,:host([size='24']) .default-icon,:host([size='20']) ::slotted(svg),:host([size='24']) ::slotted(svg){width:16px;height:16px;font-size:16px}:host([size='28']){width:28px;height:28px;font-size:${fontSizeBase200}}:host([size='36']){width:36px;height:36px}:host([size='40']){width:40px;height:40px}:host([size='48']),:host([size='56']){font-size:${fontSizeBase400}}:host([size='48']){width:48px;height:48px}:host([size='48']) .default-icon,:host([size='48']) ::slotted(svg){width:24px;height:24px;font-size:24px}:host([size='56']){width:56px;height:56px}:host([size='56']) .default-icon,:host([size='56']) ::slotted(svg){width:28px;height:28px;font-size:28px}:host([size='64']),:host([size='72']),:host([size='96']){font-size:${fontSizeBase500}}:host([size='64']) .default-icon,:host([size='72']) .default-icon,:host([size='64']) ::slotted(svg),:host([size='72']) ::slotted(svg){width:32px;height:32px;font-size:32px}:host([size='64']){width:64px;height:64px}:host([size='72']){width:72px;height:72px}:host([size='96']){width:96px;height:96px}:host([size='96']) .default-icon,:host([size='120']) .default-icon,:host([size='128']) .default-icon,:host([size='96']) ::slotted(svg),:host([size='120']) ::slotted(svg),:host([size='128']) ::slotted(svg){width:48px;height:48px;font-size:48px}:host([size='120']),:host([size='128']){font-size:${fontSizeBase600}}:host([size='120']){width:120px;height:120px}:host([size='128']){width:128px;height:128px}:host([shape='square']){border-radius:${borderRadiusMedium}}:host([shape='square'][size='20']),:host([shape='square'][size='24']){border-radius:${borderRadiusSmall}}:host([shape='square'][size='56']),:host([shape='square'][size='64']),:host([shape='square'][size='72']){border-radius:${borderRadiusLarge}}:host([shape='square'][size='96']),:host([shape='square'][size='120']),:host([shape='square'][size='128']){border-radius:${borderRadiusXLarge}}:host(${brandState}){color:${colorNeutralForegroundStaticInverted};background-color:${colorBrandBackgroundStatic}}:host(${darkRedState}){color:${colorPaletteDarkRedForeground2};background-color:${colorPaletteDarkRedBackground2}}:host(${cranberryState}){color:${colorPaletteCranberryForeground2};background-color:${colorPaletteCranberryBackground2}}:host(${redState}){color:${colorPaletteRedForeground2};background-color:${colorPaletteRedBackground2}}:host(${pumpkinState}){color:${colorPalettePumpkinForeground2};background-color:${colorPalettePumpkinBackground2}}:host(${peachState}){color:${colorPalettePeachForeground2};background-color:${colorPalettePeachBackground2}}:host(${marigoldState}){color:${colorPaletteMarigoldForeground2};background-color:${colorPaletteMarigoldBackground2}}:host(${goldState}){color:${colorPaletteGoldForeground2};background-color:${colorPaletteGoldBackground2}}:host(${brassState}){color:${colorPaletteBrassForeground2};background-color:${colorPaletteBrassBackground2}}:host(${brownState}){color:${colorPaletteBrownForeground2};background-color:${colorPaletteBrownBackground2}}:host(${forestState}){color:${colorPaletteForestForeground2};background-color:${colorPaletteForestBackground2}}:host(${seafoamState}){color:${colorPaletteSeafoamForeground2};background-color:${colorPaletteSeafoamBackground2}}:host(${darkGreenState}){color:${colorPaletteDarkGreenForeground2};background-color:${colorPaletteDarkGreenBackground2}}:host(${lightTealState}){color:${colorPaletteLightTealForeground2};background-color:${colorPaletteLightTealBackground2}}:host(${tealState}){color:${colorPaletteTealForeground2};background-color:${colorPaletteTealBackground2}}:host(${steelState}){color:${colorPaletteSteelForeground2};background-color:${colorPaletteSteelBackground2}}:host(${blueState}){color:${colorPaletteBlueForeground2};background-color:${colorPaletteBlueBackground2}}:host(${royalBlueState}){color:${colorPaletteRoyalBlueForeground2};background-color:${colorPaletteRoyalBlueBackground2}}:host(${cornflowerState}){color:${colorPaletteCornflowerForeground2};background-color:${colorPaletteCornflowerBackground2}}:host(${navyState}){color:${colorPaletteNavyForeground2};background-color:${colorPaletteNavyBackground2}}:host(${lavenderState}){color:${colorPaletteLavenderForeground2};background-color:${colorPaletteLavenderBackground2}}:host(${purpleState}){color:${colorPalettePurpleForeground2};background-color:${colorPalettePurpleBackground2}}:host(${grapeState}){color:${colorPaletteGrapeForeground2};background-color:${colorPaletteGrapeBackground2}}:host(${lilacState}){color:${colorPaletteLilacForeground2};background-color:${colorPaletteLilacBackground2}}:host(${pinkState}){color:${colorPalettePinkForeground2};background-color:${colorPalettePinkBackground2}}:host(${magentaState}){color:${colorPaletteMagentaForeground2};background-color:${colorPaletteMagentaBackground2}}:host(${plumState}){color:${colorPalettePlumForeground2};background-color:${colorPalettePlumBackground2}}:host(${beigeState}){color:${colorPaletteBeigeForeground2};background-color:${colorPaletteBeigeBackground2}}:host(${minkState}){color:${colorPaletteMinkForeground2};background-color:${colorPaletteMinkBackground2}}:host(${platinumState}){color:${colorPalettePlatinumForeground2};background-color:${colorPalettePlatinumBackground2}}:host(${anchorState}){color:${colorPaletteAnchorForeground2};background-color:${colorPaletteAnchorBackground2}}:host([active]){transform:perspective(1px);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastEase},${animations.nullEasing}}:host([active])::before{content:'';position:absolute;top:0;left:0;bottom:0;right:0;border-radius:inherit;transition-property:margin,opacity;transition-duration:${durationUltraSlow}),${durationSlower};transition-delay:${animations.fastEase}),${animations.nullEasing})}:host([active])::before{box-shadow:${shadow8};border-style:solid;border-color:${colorBrandBackgroundStatic}}:host([active][appearance='shadow'])::before{border-style:none;border-color:none}:host([active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThick});border-width:${strokeWidthThick}}:host([size='56'][active]:not([appearance='shadow']))::before,:host([size='64'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThicker});border-width:${strokeWidthThicker}}:host([size='72'][active]:not([appearance='shadow']))::before,:host([size='96'][active]:not([appearance='shadow']))::before,:host([size='120'][active]:not([appearance='shadow']))::before,:host([size='128'][active]:not([appearance='shadow']))::before{margin:calc(-2 * ${strokeWidthThickest});border-width:${strokeWidthThickest}}:host([size='20'][active][appearance])::before,:host([size='24'][active][appearance])::before,:host([size='28'][active][appearance])::before{box-shadow:${shadow4}}:host([size='56'][active][appearance])::before,:host([size='64'][active][appearance])::before{box-shadow:${shadow16}}:host([size='72'][active][appearance])::before,:host([size='96'][active][appearance])::before,:host([size='120'][active][appearance])::before,:host([size='128'][active][appearance])::before{box-shadow:${shadow28}}:host([active][appearance='ring'])::before{box-shadow:none}:host([active='inactive']){opacity:0.8;transform:scale(0.875);transition-property:transform,opacity;transition-duration:${durationUltraSlow},${durationFaster};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}:host([active='inactive'])::before{margin:0;opacity:0;transition-property:margin,opacity;transition-duration:${durationUltraSlow},${durationSlower};transition-delay:${animations.fastOutSlowInMin},${animations.nullEasing}}@media screen and (prefers-reduced-motion:reduce){:host([active]){transition-duration:0.01ms}:host([active])::before{transition-duration:0.01ms;transition-delay:0.01ms}}`;
|
|
5386
5458
|
|
|
5387
5459
|
const defaultIconTemplate = html`<svg width="1em" height="1em" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" class="default-icon" fill="currentcolor" aria-hidden="true"><path d="M10 2a4 4 0 100 8 4 4 0 000-8zM7 6a3 3 0 116 0 3 3 0 01-6 0zm-2 5a2 2 0 00-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0010 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0017 13a2 2 0 00-2-2H5zm-1 2a1 1 0 011-1h10a1 1 0 011 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0110 17a8.16 8.16 0 01-4.33-1.05A3.36 3.36 0 014 13z"></path></svg>`;
|
|
5388
5460
|
function avatarTemplate() {
|
|
@@ -6626,7 +6698,6 @@ __decorateClass$p([observable], Checkbox.prototype, "indeterminate", 2);
|
|
|
6626
6698
|
__decorateClass$p([attr], Checkbox.prototype, "shape", 2);
|
|
6627
6699
|
__decorateClass$p([attr], Checkbox.prototype, "size", 2);
|
|
6628
6700
|
|
|
6629
|
-
const indeterminateState = css.partial`:is([state--indeterminate], :state(indeterminate))`;
|
|
6630
6701
|
const styles$u = css`
|
|
6631
6702
|
${display("inline-flex")}
|
|
6632
6703
|
|
|
@@ -6809,7 +6880,6 @@ __decorateClass$o([attr({
|
|
|
6809
6880
|
})], CounterBadge.prototype, "dot", 2);
|
|
6810
6881
|
applyMixins(CounterBadge, StartEnd);
|
|
6811
6882
|
|
|
6812
|
-
const dotState = css.partial`:is([state--dot], :state(dot))`;
|
|
6813
6883
|
const styles$s = css`
|
|
6814
6884
|
:host(${roundedState}){border-radius:${borderRadiusMedium}}:host(${roundedState}${tinyState}),:host(${roundedState}${extraSmallState}),:host(${roundedState}${smallState}){border-radius:${borderRadiusSmall}}${badgeSizeStyles}
|
|
6815
6885
|
${badgeFilledStyles}
|
|
@@ -7464,19 +7534,6 @@ __decorateClass$j([attr({
|
|
|
7464
7534
|
attribute: "label-position"
|
|
7465
7535
|
})], Field.prototype, "labelPosition", 2);
|
|
7466
7536
|
|
|
7467
|
-
const focusVisibleState = css.partial`:is([state--focus-visible], :state(focus-visible))`;
|
|
7468
|
-
const badInputState = css.partial`:is([state--${ValidationFlags.badInput}], :state(${ValidationFlags.badInput}))`;
|
|
7469
|
-
const customErrorState = css.partial`:is([state--${ValidationFlags.customError}], :state(${ValidationFlags.customError}))`;
|
|
7470
|
-
const patternMismatchState = css.partial`:is([state--${ValidationFlags.patternMismatch}], :state(${ValidationFlags.patternMismatch}))`;
|
|
7471
|
-
const rangeOverflowState = css.partial`:is([state--${ValidationFlags.rangeOverflow}], :state(${ValidationFlags.rangeOverflow}))`;
|
|
7472
|
-
const rangeUnderflowState = css.partial`:is([state--${ValidationFlags.rangeUnderflow}], :state(${ValidationFlags.rangeUnderflow}))`;
|
|
7473
|
-
const stepMismatchState = css.partial`:is([state--${ValidationFlags.stepMismatch}], :state(${ValidationFlags.stepMismatch}))`;
|
|
7474
|
-
const tooLongState = css.partial`:is([state--${ValidationFlags.tooLong}], :state(${ValidationFlags.tooLong}))`;
|
|
7475
|
-
const tooShortState = css.partial`:is([state--${ValidationFlags.tooShort}], :state(${ValidationFlags.tooShort}))`;
|
|
7476
|
-
const typeMismatchState = css.partial`:is([state--${ValidationFlags.typeMismatch}], :state(${ValidationFlags.typeMismatch}))`;
|
|
7477
|
-
const validState = css.partial`:is([state-${ValidationFlags.valid}], :state(${ValidationFlags.valid}))`;
|
|
7478
|
-
const valueMissingState = css.partial`:is([state--${ValidationFlags.valueMissing}], :state(${ValidationFlags.valueMissing}))`;
|
|
7479
|
-
const hasMessageState = css.partial`:is([state--has-message], :state(has-message))`;
|
|
7480
7537
|
const styles$m = css`
|
|
7481
7538
|
${display("inline-grid")}
|
|
7482
7539
|
|
|
@@ -7589,7 +7646,7 @@ __decorateClass$i([attr], Image.prototype, "shape", 2);
|
|
|
7589
7646
|
const template$m = html`<slot></slot>`;
|
|
7590
7647
|
|
|
7591
7648
|
const styles$l = css`
|
|
7592
|
-
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(
|
|
7649
|
+
:host{contain:content}:host ::slotted(img){box-sizing:border-box;min-height:8px;min-width:8px;display:inline-block}:host(${blockState}) ::slotted(img){width:100%;height:auto}:host(${borderedState}) ::slotted(img){border:${strokeWidthThin} solid ${colorNeutralStroke2}}:host(${fitNoneState}) ::slotted(img){object-fit:none;object-position:top left;height:100%;width:100%}:host(${fitCenterState}) ::slotted(img){object-fit:none;object-position:center;height:100%;width:100%}:host(${fitContainState}) ::slotted(img){object-fit:contain;object-position:center;height:100%;width:100%}:host(${fitCoverState}) ::slotted(img){object-fit:cover;object-position:center;height:100%;width:100%}:host(${shadowState}) ::slotted(img){box-shadow:${shadow4}}:host(${circularState}) ::slotted(img){border-radius:${borderRadiusCircular}}:host(${roundedState}) ::slotted(img){border-radius:${borderRadiusMedium}}`;
|
|
7593
7650
|
|
|
7594
7651
|
const definition$m = Image.compose({
|
|
7595
7652
|
name: `${FluentDesignSystem.prefix}-image`,
|
|
@@ -7666,7 +7723,7 @@ __decorateClass$h([attr({
|
|
|
7666
7723
|
const styles$k = css`
|
|
7667
7724
|
${display("inline-flex")}
|
|
7668
7725
|
|
|
7669
|
-
:host{color:${colorNeutralForeground1};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};user-select:none}.asterisk{color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}:host(${smallState}){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${largeState}){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${largeState})
|
|
7726
|
+
:host{color:${colorNeutralForeground1};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};user-select:none}.asterisk{color:${colorPaletteRedForeground1};margin-inline-start:${spacingHorizontalXS}}:host(${smallState}){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${largeState}){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(:is(${largeState},${semiboldState})){font-weight:${fontWeightSemibold}}:host(${disabledState}),:host(${disabledState}) .asterisk{color:${colorNeutralForegroundDisabled}}`;
|
|
7670
7727
|
|
|
7671
7728
|
function labelTemplate() {
|
|
7672
7729
|
return html`<slot></slot><span part="asterisk" class="asterisk" ?hidden="${x => !x.required}">*</span>`;
|
|
@@ -7724,7 +7781,7 @@ __decorateClass$g([attr({
|
|
|
7724
7781
|
const styles$j = css`
|
|
7725
7782
|
${display("inline")}
|
|
7726
7783
|
|
|
7727
|
-
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};overflow:inherit;text-align:start;text-decoration:none;text-decoration-
|
|
7784
|
+
:host{position:relative;box-sizing:border-box;background-color:transparent;color:${colorBrandForegroundLink};cursor:pointer;font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};overflow:inherit;text-align:start;text-decoration:none;text-decoration-thickness:${strokeWidthThin};text-overflow:inherit;user-select:text}:host(:is(:hover,:focus-visible)){outline:none;text-decoration-line:underline}@media (hover:hover){:host(:hover){color:${colorBrandForegroundLinkHover}}:host(:active){color:${colorBrandForegroundLinkPressed}}:host(${subtleState}:hover){color:${colorNeutralForeground2LinkHover}}:host(${subtleState}:active){color:${colorNeutralForeground2LinkPressed}}}:host(${subtleState}){color:${colorNeutralForeground2Link}}:host-context(:is(h1,h2,h3,h4,h5,h6,p,fluent-text)),:host(${inlineState}){font:inherit;text-decoration:underline}:host(:not([href])){color:inherit;text-decoration:none}::slotted(a){position:absolute;inset:0}`.withBehaviors(forcedColorsStylesheetBehavior(css`
|
|
7728
7785
|
:host{color:LinkText}`));
|
|
7729
7786
|
|
|
7730
7787
|
function anchorTemplate() {
|
|
@@ -7988,7 +8045,6 @@ __decorateClass$f([observable], MenuItem.prototype, "slottedSubmenu", 2);
|
|
|
7988
8045
|
__decorateClass$f([observable], MenuItem.prototype, "submenu", 2);
|
|
7989
8046
|
applyMixins(MenuItem, StartEnd);
|
|
7990
8047
|
|
|
7991
|
-
const submenuState = css.partial`:is([state--submenu], :state(submenu))`;
|
|
7992
8048
|
const styles$i = css`
|
|
7993
8049
|
${display("grid")}
|
|
7994
8050
|
|
|
@@ -12083,7 +12139,7 @@ applyMixins(TextInput, StartEnd);
|
|
|
12083
12139
|
const styles$2 = css`
|
|
12084
12140
|
${display("block")}
|
|
12085
12141
|
|
|
12086
|
-
:host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host(${outlineState}:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host(${smallState}) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host(${smallState}) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host(${smallState}) ::slotted([slot='start']),:host(${smallState}) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host(${largeState}) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host(${largeState}) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host(${largeState}) ::slotted([slot='start']),:host(${largeState}) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host(${underlineState
|
|
12142
|
+
:host{font-family:${fontFamilyBase};font-size:${fontSizeBase300};font-weight:${fontWeightRegular};line-height:${lineHeightBase300};max-width:400px}.label{display:flex;color:${colorNeutralForeground1};padding-bottom:${spacingVerticalXS};flex-shrink:0;padding-inline-end:${spacingHorizontalXS}}.label[hidden],:host(:empty) .label{display:none}.root{align-items:center;background-color:${colorNeutralBackground1};border:${strokeWidthThin} solid ${colorNeutralStroke1};border-bottom-color:${colorNeutralStrokeAccessible};border-radius:${borderRadiusMedium};box-sizing:border-box;height:32px;display:inline-flex;flex-direction:row;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalMNudge};position:relative;width:100%}:has(.control:user-invalid){border-color:${colorPaletteRedBorder2}}.root::after{box-sizing:border-box;content:'';position:absolute;left:-1px;bottom:0px;right:-1px;height:max(2px,${borderRadiusMedium});border-radius:0 0 ${borderRadiusMedium} ${borderRadiusMedium};border-bottom:2px solid ${colorCompoundBrandStroke};clip-path:inset(calc(100% - 2px) 1px 0px);transform:scaleX(0);transition-property:transform;transition-duration:${durationUltraFast};transition-delay:${curveAccelerateMid}}.control{width:100%;height:100%;box-sizing:border-box;color:${colorNeutralForeground1};border-radius:${borderRadiusMedium};background:${colorTransparentBackground};font-family:${fontFamilyBase};font-weight:${fontWeightRegular};font-size:${fontSizeBase300};border:none;vertical-align:center}.control:focus-visible{outline:0;border:0}.control::placeholder{color:${colorNeutralForeground4}}:host ::slotted([slot='start']),:host ::slotted([slot='end']){display:flex;align-items:center;justify-content:center;color:${colorNeutralForeground3};font-size:${fontSizeBase500}}:host ::slotted([slot='start']){padding-right:${spacingHorizontalXXS}}:host ::slotted([slot='end']){padding-left:${spacingHorizontalXXS};gap:${spacingHorizontalXS}}:host(:hover) .root{border-color:${colorNeutralStroke1Hover};border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(:active) .root{border-color:${colorNeutralStroke1Pressed}}:host(:focus-within) .root{outline:transparent solid 2px;border-bottom:0}:host(:focus-within) .root::after{transform:scaleX(1);transition-property:transform;transition-duration:${durationNormal};transition-delay:${curveDecelerateMid}}:host(:focus-within:active) .root:after{border-bottom-color:${colorCompoundBrandStrokePressed}}:host(${outlineState}:focus-within) .root{border:${strokeWidthThin} solid ${colorNeutralStroke1}}:host(:focus-within) .control{color:${colorNeutralForeground1}}:host([disabled]) .root{background:${colorTransparentBackground};border:${strokeWidthThin} solid ${colorNeutralStrokeDisabled}}:host([disabled]) .control::placeholder,:host([disabled]) ::slotted([slot='start']),:host([disabled]) ::slotted([slot='end']){color:${colorNeutralForegroundDisabled}}::selection{color:${colorNeutralForegroundInverted};background-color:${colorNeutralBackgroundInverted}}:host(${smallState}) .control{font-size:${fontSizeBase200};font-weight:${fontWeightRegular};line-height:${lineHeightBase200}}:host(${smallState}) .root{height:24px;gap:${spacingHorizontalXXS};padding:0 ${spacingHorizontalSNudge}}:host(${smallState}) ::slotted([slot='start']),:host(${smallState}) ::slotted([slot='end']){font-size:${fontSizeBase400}}:host(${largeState}) .control{font-size:${fontSizeBase400};font-weight:${fontWeightRegular};line-height:${lineHeightBase400}}:host(${largeState}) .root{height:40px;gap:${spacingHorizontalS};padding:0 ${spacingHorizontalM}}:host(${largeState}) ::slotted([slot='start']),:host(${largeState}) ::slotted([slot='end']){font-size:${fontSizeBase600}}:host(${underlineState}) .root{background:${colorTransparentBackground};border:0;border-radius:0;border-bottom:${strokeWidthThin} solid ${colorNeutralStrokeAccessible}}:host(${underlineState}:hover) .root{border-bottom-color:${colorNeutralStrokeAccessibleHover}}:host(${underlineState}:active) .root{border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState}:focus-within) .root{border:0;border-bottom-color:${colorNeutralStrokeAccessiblePressed}}:host(${underlineState}[disabled]) .root{border-bottom-color:${colorNeutralStrokeDisabled}}:host(${filledLighterState}) .root,:host(${filledDarkerState}) .root{border:${strokeWidthThin} solid ${colorTransparentStroke};box-shadow:${shadow2}}:host(${filledLighterState}) .root{background:${colorNeutralBackground1}}:host(${filledDarkerState}) .root{background:${colorNeutralBackground3}}:host(${filledLighterState}:hover) .root,:host(${filledDarkerState}:hover) .root{border-color:${colorTransparentStrokeInteractive}}:host(${filledLighterState}:active) .root,:host(${filledDarkerState}:active) .root{border-color:${colorTransparentStrokeInteractive};background:${colorNeutralBackground3}}`;
|
|
12087
12143
|
|
|
12088
12144
|
function textInputTemplate(options = {}) {
|
|
12089
12145
|
return html`<template @beforeinput="${(x, c) => x.beforeinputHandler(c.event)}" @focusin="${(x, c) => x.focusinHandler(c.event)}" @keydown="${(x, c) => x.keydownHandler(c.event)}"><label part="label" for="control" class="label" ${ref("controlLabel")}><slot ${slotted({
|
|
@@ -12233,14 +12289,10 @@ __decorateClass$1([attr], Text.prototype, "font", 2);
|
|
|
12233
12289
|
__decorateClass$1([attr], Text.prototype, "weight", 2);
|
|
12234
12290
|
__decorateClass$1([attr], Text.prototype, "align", 2);
|
|
12235
12291
|
|
|
12236
|
-
const nowrapState = css.partial`:is([state--nowrap], :state(nowrap))`;
|
|
12237
|
-
const truncateState = css.partial`:is([state--truncate], :state(truncate))`;
|
|
12238
|
-
const underlineState = css.partial`:is([state--underline], :state(underline))`;
|
|
12239
|
-
const strikethroughState = css.partial`:is([state--strikethrough], :state(strikethrough))`;
|
|
12240
12292
|
const styles$1 = css`
|
|
12241
12293
|
${display("inline")}
|
|
12242
12294
|
|
|
12243
|
-
:host{contain:content;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start}:host(${nowrapState}),:host(${nowrapState}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${truncateState}),:host(${truncateState}) ::slotted(*){text-overflow:ellipsis}:host(
|
|
12295
|
+
:host{contain:content;font-family:${fontFamilyBase};font-size:${fontSizeBase300};line-height:${lineHeightBase300};font-weight:${fontWeightRegular};text-align:start}:host(${nowrapState}),:host(${nowrapState}) ::slotted(*){white-space:nowrap;overflow:hidden}:host(${truncateState}),:host(${truncateState}) ::slotted(*){text-overflow:ellipsis}:host(${blockState}){display:block}:host(${italicState}){font-style:italic}:host(${underlineState}){text-decoration-line:underline}:host(${strikethroughState}){text-decoration-line:line-through}:host(${underlineState}${strikethroughState}){text-decoration-line:line-through underline}:host(${size100State}){font-size:${fontSizeBase100};line-height:${lineHeightBase100}}:host(${size200State}){font-size:${fontSizeBase200};line-height:${lineHeightBase200}}:host(${size400State}){font-size:${fontSizeBase400};line-height:${lineHeightBase400}}:host(${size500State}){font-size:${fontSizeBase500};line-height:${lineHeightBase500}}:host(${size600State}){font-size:${fontSizeBase600};line-height:${lineHeightBase600}}:host(${size700State}){font-size:${fontSizeHero700};line-height:${lineHeightHero700}}:host(${size800State}){font-size:${fontSizeHero800};line-height:${lineHeightHero800}}:host(${size900State}){font-size:${fontSizeHero900};line-height:${lineHeightHero900}}:host(${size1000State}){font-size:${fontSizeHero1000};line-height:${lineHeightHero1000}}:host(${monospaceState}){font-family:${fontFamilyMonospace}}:host(${numericState}){font-family:${fontFamilyNumeric}}:host(${mediumState}){font-weight:${fontWeightMedium}}:host(${semiboldState}){font-weight:${fontWeightSemibold}}:host(${boldState}){font-weight:${fontWeightBold}}:host(${centerState}){text-align:center}:host(${endState}){text-align:end}:host(${justifyState}){text-align:justify}::slotted(*){font:inherit;line-height:inherit;text-decoration-line:inherit;text-align:inherit;text-decoration-line:inherit;margin:0}`;
|
|
12244
12296
|
|
|
12245
12297
|
const template$1 = html`<slot></slot>`;
|
|
12246
12298
|
|