@fluentui/web-components 3.0.0-beta.31 → 3.0.0-beta.33

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.
Files changed (50) hide show
  1. package/CHANGELOG.md +27 -2
  2. package/dist/dts/anchor-button/anchor-button.d.ts +1 -1
  3. package/dist/dts/checkbox/checkbox.d.ts +13 -1
  4. package/dist/dts/divider/divider.d.ts +18 -0
  5. package/dist/dts/image/image.d.ts +36 -0
  6. package/dist/dts/label/label.d.ts +24 -0
  7. package/dist/dts/link/link.d.ts +12 -0
  8. package/dist/dts/progress-bar/progress-bar.d.ts +18 -0
  9. package/dist/dts/spinner/spinner.d.ts +13 -1
  10. package/dist/dts/styles/states/index.d.ts +65 -0
  11. package/dist/dts/text-input/text-input.d.ts +12 -0
  12. package/dist/esm/anchor-button/anchor-button.js.map +1 -1
  13. package/dist/esm/checkbox/checkbox.js +26 -0
  14. package/dist/esm/checkbox/checkbox.js.map +1 -1
  15. package/dist/esm/checkbox/checkbox.styles.js +6 -5
  16. package/dist/esm/checkbox/checkbox.styles.js.map +1 -1
  17. package/dist/esm/divider/divider.js +47 -2
  18. package/dist/esm/divider/divider.js.map +1 -1
  19. package/dist/esm/divider/divider.styles.js +31 -30
  20. package/dist/esm/divider/divider.styles.js.map +1 -1
  21. package/dist/esm/image/image.js +68 -0
  22. package/dist/esm/image/image.js.map +1 -1
  23. package/dist/esm/image/image.styles.js +10 -9
  24. package/dist/esm/image/image.styles.js.map +1 -1
  25. package/dist/esm/label/label.js +41 -0
  26. package/dist/esm/label/label.js.map +1 -1
  27. package/dist/esm/label/label.styles.js +7 -6
  28. package/dist/esm/label/label.styles.js.map +1 -1
  29. package/dist/esm/link/link.js +22 -0
  30. package/dist/esm/link/link.js.map +1 -1
  31. package/dist/esm/link/link.styles.js +5 -4
  32. package/dist/esm/link/link.styles.js.map +1 -1
  33. package/dist/esm/progress-bar/progress-bar.js +40 -0
  34. package/dist/esm/progress-bar/progress-bar.js.map +1 -1
  35. package/dist/esm/progress-bar/progress-bar.styles.js +7 -6
  36. package/dist/esm/progress-bar/progress-bar.styles.js.map +1 -1
  37. package/dist/esm/spinner/spinner.js +27 -0
  38. package/dist/esm/spinner/spinner.js.map +1 -1
  39. package/dist/esm/spinner/spinner.styles.js +9 -8
  40. package/dist/esm/spinner/spinner.styles.js.map +1 -1
  41. package/dist/esm/styles/states/index.js +65 -0
  42. package/dist/esm/styles/states/index.js.map +1 -1
  43. package/dist/esm/text-input/text-input.js +27 -0
  44. package/dist/esm/text-input/text-input.js.map +1 -1
  45. package/dist/esm/text-input/text-input.styles.js +23 -22
  46. package/dist/esm/text-input/text-input.styles.js.map +1 -1
  47. package/dist/web-components.d.ts +147 -3
  48. package/dist/web-components.js +307 -15
  49. package/dist/web-components.min.js +277 -277
  50. package/package.json +5 -2
package/CHANGELOG.md CHANGED
@@ -1,12 +1,37 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Tue, 18 Jun 2024 04:05:24 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 21 Jun 2024 04:06:50 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.0.0-beta.33](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.33)
8
+
9
+ Fri, 21 Jun 2024 04:06:50 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.32..@fluentui/web-components_v3.0.0-beta.33)
11
+
12
+ ### Changes
13
+
14
+ - feat: make fast-element a peer dependencies of the web-components package ([PR #31772](https://github.com/microsoft/fluentui/pull/31772) by 13071055+chrisdholt@users.noreply.github.com)
15
+
16
+ ## [3.0.0-beta.32](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.32)
17
+
18
+ Wed, 19 Jun 2024 04:07:31 GMT
19
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.31..@fluentui/web-components_v3.0.0-beta.32)
20
+
21
+ ### Changes
22
+
23
+ - feat: update progress bar to use element internals custom states for visual states ([PR #31739](https://github.com/microsoft/fluentui/pull/31739) by 13071055+chrisdholt@users.noreply.github.com)
24
+ - feat: update divider to use custom states ([PR #31735](https://github.com/microsoft/fluentui/pull/31735) by 13071055+chrisdholt@users.noreply.github.com)
25
+ - feat: update link to use Element Internals custom states for presentational attributes ([PR #31752](https://github.com/microsoft/fluentui/pull/31752) by 13071055+chrisdholt@users.noreply.github.com)
26
+ - feat: update checkbox to use Element Internals custom states for presentational attributes ([PR #31756](https://github.com/microsoft/fluentui/pull/31756) by 13071055+chrisdholt@users.noreply.github.com)
27
+ - feat: update text input to use Element Internals custom states for presentational attributes ([PR #31753](https://github.com/microsoft/fluentui/pull/31753) by 13071055+chrisdholt@users.noreply.github.com)
28
+ - update image to use element internals custom states for visual states ([PR #31737](https://github.com/microsoft/fluentui/pull/31737) by 13071055+chrisdholt@users.noreply.github.com)
29
+ - feat: update spinner to use Element Internals for presentational styling ([PR #31741](https://github.com/microsoft/fluentui/pull/31741) by 13071055+chrisdholt@users.noreply.github.com)
30
+ - update label to use element internals custom states for styling ([PR #31738](https://github.com/microsoft/fluentui/pull/31738) by 13071055+chrisdholt@users.noreply.github.com)
31
+
7
32
  ## [3.0.0-beta.31](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-beta.31)
8
33
 
9
- Tue, 18 Jun 2024 04:05:24 GMT
34
+ Tue, 18 Jun 2024 04:05:31 GMT
10
35
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-beta.30..@fluentui/web-components_v3.0.0-beta.31)
11
36
 
12
37
  ### Changes
@@ -30,7 +30,7 @@ export declare class BaseAnchor extends FASTElement {
30
30
  *
31
31
  * @internal
32
32
  */
33
- protected elementInternals: ElementInternals;
33
+ elementInternals: ElementInternals;
34
34
  /**
35
35
  * The proxy anchor element
36
36
  * @internal
@@ -289,7 +289,13 @@ export declare class Checkbox extends BaseCheckbox {
289
289
  * @remarks
290
290
  * HTML Attribute: `shape`
291
291
  */
292
- shape: CheckboxShape;
292
+ shape?: CheckboxShape;
293
+ /**
294
+ * Handles changes to shape attribute custom states
295
+ * @param prev - the previous state
296
+ * @param next - the next state
297
+ */
298
+ shapeChanged(prev: CheckboxShape | undefined, next: CheckboxShape | undefined): void;
293
299
  /**
294
300
  * Indicates the size of the checkbox.
295
301
  *
@@ -298,4 +304,10 @@ export declare class Checkbox extends BaseCheckbox {
298
304
  * HTML Attribute: `size`
299
305
  */
300
306
  size?: CheckboxSize;
307
+ /**
308
+ * Handles changes to size attribute custom states
309
+ * @param prev - the previous state
310
+ * @param next - the next state
311
+ */
312
+ sizeChanged(prev: CheckboxSize | undefined, next: CheckboxSize | undefined): void;
301
313
  }
@@ -35,18 +35,36 @@ export declare class Divider extends FASTElement {
35
35
  * Determines the alignment of the content within the divider. Select from start or end. When not specified, the content will be aligned to the center.
36
36
  */
37
37
  alignContent?: DividerAlignContent;
38
+ /**
39
+ * Handles changes to align-content attribute custom states
40
+ * @param prev - the previous state
41
+ * @param next - the next state
42
+ */
43
+ alignContentChanged(prev: DividerAlignContent | undefined, next: DividerAlignContent | undefined): void;
38
44
  /**
39
45
  * @public
40
46
  * @remarks
41
47
  * A divider can have one of the preset appearances. Select from strong, brand, subtle. When not specified, the divider has its default appearance.
42
48
  */
43
49
  appearance?: DividerAppearance;
50
+ /**
51
+ * Handles changes to appearance attribute custom states
52
+ * @param prev - the previous state
53
+ * @param next - the next state
54
+ */
55
+ appearanceChanged(prev: DividerAppearance | undefined, next: DividerAppearance | undefined): void;
44
56
  /**
45
57
  * @public
46
58
  * @remarks
47
59
  * Adds padding to the beginning and end of the divider.
48
60
  */
49
61
  inset?: boolean;
62
+ /**
63
+ * Handles changes to inset custom states
64
+ * @param prev - the previous state
65
+ * @param next - the next state
66
+ */
67
+ insetChanged(prev: boolean, next: boolean): void;
50
68
  connectedCallback(): void;
51
69
  /**
52
70
  * Sets the element's internal role when the role attribute changes.
@@ -5,6 +5,12 @@ import { ImageFit, ImageShape } from './image.options.js';
5
5
  * @public
6
6
  */
7
7
  export declare class Image extends FASTElement {
8
+ /**
9
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
10
+ *
11
+ * @internal
12
+ */
13
+ elementInternals: ElementInternals;
8
14
  /**
9
15
  * Image layout
10
16
  *
@@ -13,6 +19,12 @@ export declare class Image extends FASTElement {
13
19
  * HTML attribute: block.
14
20
  */
15
21
  block?: boolean;
22
+ /**
23
+ * Handles changes to block custom states
24
+ * @param prev - the previous state
25
+ * @param next - the next state
26
+ */
27
+ blockChanged(prev: boolean, next: boolean): void;
16
28
  /**
17
29
  * Image border
18
30
  *
@@ -21,6 +33,12 @@ export declare class Image extends FASTElement {
21
33
  * HTML attribute: border.
22
34
  */
23
35
  bordered?: boolean;
36
+ /**
37
+ * Handles changes to bordered custom states
38
+ * @param prev - the previous state
39
+ * @param next - the next state
40
+ */
41
+ borderedChanged(prev: boolean, next: boolean): void;
24
42
  /**
25
43
  * Image shadow
26
44
  *
@@ -29,6 +47,12 @@ export declare class Image extends FASTElement {
29
47
  * HTML attribute: shadow.
30
48
  */
31
49
  shadow?: boolean;
50
+ /**
51
+ * Handles changes to shadow custom states
52
+ * @param prev - the previous state
53
+ * @param next - the next state
54
+ */
55
+ shadowChanged(prev: boolean, next: boolean): void;
32
56
  /**
33
57
  * Image fit
34
58
  *
@@ -37,6 +61,12 @@ export declare class Image extends FASTElement {
37
61
  * HTML attribute: fit.
38
62
  */
39
63
  fit?: ImageFit;
64
+ /**
65
+ * Handles changes to fit attribute custom states
66
+ * @param prev - the previous state
67
+ * @param next - the next state
68
+ */
69
+ fitChanged(prev: ImageFit | undefined, next: ImageFit | undefined): void;
40
70
  /**
41
71
  * Image shape
42
72
  *
@@ -45,4 +75,10 @@ export declare class Image extends FASTElement {
45
75
  * HTML attribute: shape.
46
76
  */
47
77
  shape?: ImageShape;
78
+ /**
79
+ * Handles changes to shape attribute custom states
80
+ * @param prev - the previous state
81
+ * @param next - the next state
82
+ */
83
+ shapeChanged(prev: ImageShape | undefined, next: ImageShape | undefined): void;
48
84
  }
@@ -5,6 +5,12 @@ import { LabelSize, LabelWeight } from './label.options.js';
5
5
  * @public
6
6
  */
7
7
  export declare class Label extends FASTElement {
8
+ /**
9
+ * The internal {@link https://developer.mozilla.org/docs/Web/API/ElementInternals | `ElementInternals`} instance for the component.
10
+ *
11
+ * @internal
12
+ */
13
+ elementInternals: ElementInternals;
8
14
  /**
9
15
  * Specifies font size of a label
10
16
  *
@@ -13,6 +19,12 @@ export declare class Label extends FASTElement {
13
19
  * HTML Attribute: size
14
20
  */
15
21
  size?: LabelSize;
22
+ /**
23
+ * Handles changes to size attribute custom states
24
+ * @param prev - the previous state
25
+ * @param next - the next state
26
+ */
27
+ sizeChanged(prev: LabelSize | undefined, next: LabelSize | undefined): void;
16
28
  /**
17
29
  * Specifies font weight of a label
18
30
  *
@@ -21,6 +33,12 @@ export declare class Label extends FASTElement {
21
33
  * HTML Attribute: weight
22
34
  */
23
35
  weight?: LabelWeight;
36
+ /**
37
+ * Handles changes to weight attribute custom states
38
+ * @param prev - the previous state
39
+ * @param next - the next state
40
+ */
41
+ weightChanged(prev: LabelWeight | undefined, next: LabelWeight | undefined): void;
24
42
  /**
25
43
  * Specifies styles for label when associated input is disabled
26
44
  *
@@ -29,6 +47,12 @@ export declare class Label extends FASTElement {
29
47
  * HTML Attribute: disabled
30
48
  */
31
49
  disabled: boolean;
50
+ /**
51
+ * Handles changes to disabled attribute custom states
52
+ * @param prev - the previous state
53
+ * @param next - the next state
54
+ */
55
+ disabledChanged(prev: boolean | undefined, next: boolean | undefined): void;
32
56
  /**
33
57
  * Specifies styles for label when associated input is a required field
34
58
  *
@@ -19,6 +19,12 @@ export declare class Link extends BaseAnchor {
19
19
  * HTML Attribute: `appearance`
20
20
  */
21
21
  appearance?: LinkAppearance | undefined;
22
+ /**
23
+ * Handles changes to appearance attribute custom states
24
+ * @param prev - the previous state
25
+ * @param next - the next state
26
+ */
27
+ appearanceChanged(prev: LinkAppearance | undefined, next: LinkAppearance | undefined): void;
22
28
  /**
23
29
  * The link is inline with text
24
30
  * In chromium browsers, if the link is contained within a semantic
@@ -30,4 +36,10 @@ export declare class Link extends BaseAnchor {
30
36
  * HTML Attribute: `inline`
31
37
  */
32
38
  inline: boolean;
39
+ /**
40
+ * Handles changes to inline attribute custom states
41
+ * @param prev - the previous state
42
+ * @param next - the next state
43
+ */
44
+ inlineChanged(prev: boolean, next: boolean): void;
33
45
  }
@@ -20,18 +20,36 @@ export declare class ProgressBar extends FASTElement {
20
20
  * HTML Attribute: `thickness`
21
21
  */
22
22
  thickness?: ProgressBarThickness;
23
+ /**
24
+ * Handles changes to thickness attribute custom states
25
+ * @param prev - the previous state
26
+ * @param next - the next state
27
+ */
28
+ thicknessChanged(prev: ProgressBarThickness | undefined, next: ProgressBarThickness | undefined): void;
23
29
  /**
24
30
  * The shape of the progress bar
25
31
  * @public
26
32
  * HTML Attribute: `shape`
27
33
  */
28
34
  shape?: ProgressBarShape;
35
+ /**
36
+ * Handles changes to shape attribute custom states
37
+ * @param prev - the previous state
38
+ * @param next - the next state
39
+ */
40
+ shapeChanged(prev: ProgressBarShape | undefined, next: ProgressBarShape | undefined): void;
29
41
  /**
30
42
  * The validation state of the progress bar
31
43
  * @public
32
44
  * HTML Attribute: `validation-state`
33
45
  */
34
46
  validationState: ProgressBarValidationState | null;
47
+ /**
48
+ * Handles changes to validation-state attribute custom states
49
+ * @param prev - the previous state
50
+ * @param next - the next state
51
+ */
52
+ validationStateChanged(prev: ProgressBarValidationState | undefined, next: ProgressBarValidationState | undefined): void;
35
53
  /**
36
54
  * The value of the progress
37
55
  * @internal
@@ -10,7 +10,7 @@ export declare class Spinner extends FASTElement {
10
10
  *
11
11
  * @internal
12
12
  */
13
- protected elementInternals: ElementInternals;
13
+ elementInternals: ElementInternals;
14
14
  /**
15
15
  * The size of the spinner
16
16
  *
@@ -19,6 +19,12 @@ export declare class Spinner extends FASTElement {
19
19
  * HTML Attribute: size
20
20
  */
21
21
  size?: SpinnerSize;
22
+ /**
23
+ * Handles changes to size attribute custom states
24
+ * @param prev - the previous state
25
+ * @param next - the next state
26
+ */
27
+ sizeChanged(prev: SpinnerSize | undefined, next: SpinnerSize | undefined): void;
22
28
  /**
23
29
  * The appearance of the spinner
24
30
  * @public
@@ -26,5 +32,11 @@ export declare class Spinner extends FASTElement {
26
32
  * HTML Attribute: appearance
27
33
  */
28
34
  appearance?: SpinnerAppearance;
35
+ /**
36
+ * Handles changes to appearance attribute custom states
37
+ * @param prev - the previous state
38
+ * @param next - the next state
39
+ */
40
+ appearanceChanged(prev: SpinnerAppearance | undefined, next: SpinnerAppearance | undefined): void;
29
41
  constructor();
30
42
  }
@@ -1,8 +1,23 @@
1
+ /**
2
+ * Selector for the `filled-lighter` state.
3
+ * @public
4
+ */
5
+ export declare const filledLighterState: import("@microsoft/fast-element").CSSDirective;
6
+ /**
7
+ * Selector for the `filled-darker` state.
8
+ * @public
9
+ */
10
+ export declare const filledDarkerState: import("@microsoft/fast-element").CSSDirective;
1
11
  /**
2
12
  * Selector for the `ghost` state.
3
13
  * @public
4
14
  */
5
15
  export declare const ghostState: import("@microsoft/fast-element").CSSDirective;
16
+ /**
17
+ * Selector for the `inverted` state.
18
+ * @public
19
+ */
20
+ export declare const invertedState: import("@microsoft/fast-element").CSSDirective;
6
21
  /**
7
22
  * Selector for the `primary` state.
8
23
  * @public
@@ -13,6 +28,11 @@ export declare const primaryState: import("@microsoft/fast-element").CSSDirectiv
13
28
  * @public
14
29
  */
15
30
  export declare const outlineState: import("@microsoft/fast-element").CSSDirective;
31
+ /**
32
+ * Selector for the `strong` state.
33
+ * @public
34
+ */
35
+ export declare const strongState: import("@microsoft/fast-element").CSSDirective;
16
36
  /**
17
37
  * Selector for the `subtle` state.
18
38
  * @public
@@ -23,6 +43,11 @@ export declare const subtleState: import("@microsoft/fast-element").CSSDirective
23
43
  * @public
24
44
  */
25
45
  export declare const tintState: import("@microsoft/fast-element").CSSDirective;
46
+ /**
47
+ * Selector for the `underline` state.
48
+ * @public
49
+ */
50
+ export declare const underlineState: import("@microsoft/fast-element").CSSDirective;
26
51
  /**
27
52
  * Selector for the `transparent` state.
28
53
  * @public
@@ -68,6 +93,26 @@ export declare const largeState: import("@microsoft/fast-element").CSSDirective;
68
93
  * @public
69
94
  */
70
95
  export declare const extraLargeState: import("@microsoft/fast-element").CSSDirective;
96
+ /**
97
+ * Selector for the `huge` state.
98
+ * @public
99
+ */
100
+ export declare const hugeState: import("@microsoft/fast-element").CSSDirective;
101
+ /**
102
+ * Selector for the `alignment` start state.
103
+ * @public
104
+ */
105
+ export declare const alignStartState: import("@microsoft/fast-element").CSSDirective;
106
+ /**
107
+ * Selector for the `alignment` end state.
108
+ * @public
109
+ */
110
+ export declare const alignEndState: import("@microsoft/fast-element").CSSDirective;
111
+ /**
112
+ * Selector for the `inset` state.
113
+ * @public
114
+ */
115
+ export declare const insetState: import("@microsoft/fast-element").CSSDirective;
71
116
  /**
72
117
  * Selector for the `iconOnly` state.
73
118
  * @public
@@ -78,6 +123,16 @@ export declare const iconOnlyState: import("@microsoft/fast-element").CSSDirecti
78
123
  * @public
79
124
  */
80
125
  export declare const pressedState: import("@microsoft/fast-element").CSSDirective;
126
+ /**
127
+ * Selector for the `brand` state.
128
+ * @public
129
+ */
130
+ export declare const brandState: import("@microsoft/fast-element").CSSDirective;
131
+ /**
132
+ * Selector for the `error` state.
133
+ * @public
134
+ */
135
+ export declare const errorState: import("@microsoft/fast-element").CSSDirective;
81
136
  /**
82
137
  * Selector for the `danger` state.
83
138
  * @public
@@ -108,3 +163,13 @@ export declare const successState: import("@microsoft/fast-element").CSSDirectiv
108
163
  * @public
109
164
  */
110
165
  export declare const warningState: import("@microsoft/fast-element").CSSDirective;
166
+ /**
167
+ * Selector for the `vertical` state.
168
+ * @public
169
+ */
170
+ export declare const verticalState: import("@microsoft/fast-element").CSSDirective;
171
+ /**
172
+ * Selector for the `horizontal` state.
173
+ * @public
174
+ */
175
+ export declare const horizontalState: import("@microsoft/fast-element").CSSDirective;
@@ -23,6 +23,12 @@ export declare class TextInput extends FASTElement {
23
23
  * HTML Attribute: `appearance`
24
24
  */
25
25
  appearance?: TextInputAppearance;
26
+ /**
27
+ * Handles changes to appearance attribute custom states
28
+ * @param prev - the previous state
29
+ * @param next - the next state
30
+ */
31
+ appearanceChanged(prev: TextInputAppearance | undefined, next: TextInputAppearance | undefined): void;
26
32
  /**
27
33
  * Indicates the element's autocomplete state.
28
34
  * @see The {@link https://developer.mozilla.org/docs/Web/HTML/Attributes/autocomplete | `autocomplete`} attribute
@@ -49,6 +55,12 @@ export declare class TextInput extends FASTElement {
49
55
  * HTML Attribute: `control-size`
50
56
  */
51
57
  controlSize?: TextInputControlSize;
58
+ /**
59
+ * Handles changes to `control-size` attribute custom states
60
+ * @param prev - the previous state
61
+ * @param next - the next state
62
+ */
63
+ controlSizeChanged(prev: TextInputControlSize | undefined, next: TextInputControlSize | undefined): void;
52
64
  /**
53
65
  * The default slotted content. This is the content that appears in the text field label.
54
66
  *
@@ -1 +1 @@
1
- {"version":3,"file":"anchor-button.js","sourceRoot":"","sources":["../../../src/anchor-button/anchor-button.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EACL,gBAAgB,GAKjB,MAAM,4BAA4B,CAAC;AAQpC;;;;;;;;;;;GAWG;AACH,MAAM,OAAO,UAAW,SAAQ,WAAW;IA6GzC;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wB7C;IADC,IAAI;0CAC0B;AAwB/B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8CACjB;AAoBnC,WAAW,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC"}
@@ -372,6 +372,32 @@ __decorate([
372
372
  attr({ mode: 'boolean' })
373
373
  ], BaseCheckbox.prototype, "required", void 0);
374
374
  export class Checkbox extends BaseCheckbox {
375
+ /**
376
+ * Handles changes to shape attribute custom states
377
+ * @param prev - the previous state
378
+ * @param next - the next state
379
+ */
380
+ shapeChanged(prev, next) {
381
+ if (prev) {
382
+ toggleState(this.elementInternals, prev, false);
383
+ }
384
+ if (next) {
385
+ toggleState(this.elementInternals, next, true);
386
+ }
387
+ }
388
+ /**
389
+ * Handles changes to size attribute custom states
390
+ * @param prev - the previous state
391
+ * @param next - the next state
392
+ */
393
+ sizeChanged(prev, next) {
394
+ if (prev) {
395
+ toggleState(this.elementInternals, prev, false);
396
+ }
397
+ if (next) {
398
+ toggleState(this.elementInternals, next, true);
399
+ }
400
+ }
375
401
  }
376
402
  __decorate([
377
403
  attr
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../src/checkbox/checkbox.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAG5D;;;;;;;;;;GAUG;AACH,MAAM,OAAO,YAAa,SAAQ,WAAW;IAY3C;;;;OAIG;IACH,IAAW,OAAO;QAChB,UAAU,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;QAClC,OAAO,IAAI,CAAC,QAAQ,CAAC;IACvB,CAAC;IAED,IAAW,OAAO,CAAC,KAAc;QAC/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QAEtB,IAAI,CAAC,Y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SAAS,EAAE,CAAC;8CACO;AAWjC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC;mDACE;AAQ9B;IADC,UAAU;mDACoB;AAoB/B;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;oDAChB;AAqBhC;IADC,IAAI,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC;kDACZ;AAqBnC;IADC,IAAI;0CACgB;AAUrB;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;8CACP;AA0TrB,MAAM,OAAO,QAAS,SAAQ,YAAY;IAWxC;;;;OAIG;IACI,YAAY,CAAC,IAA+B,EAAE,IAA+B;QAClF,IAAI,IAAI,EAAE;YACR,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;SACjD;QACD,IAAI,IAAI,EAAE;YACR,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAChD;IACH,CAAC;IAYD;;;;OAIG;IACI,WAAW,CAAC,IAA8B,EAAE,IAA8B;QAC/E,IAAI,IAAI,EAAE;YACR,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,KAAK,CAAC,CAAC;SACjD;QACD,IAAI,IAAI,EAAE;YACR,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;SAChD;IACH,CAAC;CACF;AAvCC;IADC,IAAI;uCACwB;AAwB7B;IADC,IAAI;sCACsB"}
@@ -2,6 +2,7 @@ import { css } from '@microsoft/fast-element';
2
2
  import { borderRadiusCircular, borderRadiusMedium, borderRadiusSmall, colorCompoundBrandBackground, colorCompoundBrandBackgroundHover, colorCompoundBrandBackgroundPressed, colorCompoundBrandStroke, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralBackground1, colorNeutralBackgroundDisabled, colorNeutralForegroundInverted, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorNeutralStrokeDisabled, colorStrokeFocus2, colorTransparentStroke, strokeWidthThick, strokeWidthThin, } from '../theme/design-tokens.js';
3
3
  import { forcedColorsStylesheetBehavior } from '../utils/behaviors/match-media-stylesheet-behavior.js';
4
4
  import { display } from '../utils/display.js';
5
+ import { circularState, largeState } from '../styles/states/index.js';
5
6
  /**
6
7
  * Selector for the `checked` state.
7
8
  * @public
@@ -109,17 +110,17 @@ export const styles = css `
109
110
  inset: 0;
110
111
  }
111
112
 
112
- :host([size='large']) {
113
+ :host(${largeState}) {
113
114
  --size: 20px;
114
115
  }
115
116
 
116
- :host([size='large']) ::slotted([slot='checked-indicator']),
117
- :host([size='large']) .checked-indicator {
117
+ :host(${largeState}) ::slotted([slot='checked-indicator']),
118
+ :host(${largeState}) .checked-indicator {
118
119
  width: 16px;
119
120
  }
120
121
 
121
- :host([shape='circular']),
122
- :host([shape='circular']) .indeterminate-indicator {
122
+ :host(${circularState}),
123
+ :host(${circularState}) .indeterminate-indicator {
123
124
  border-radius: ${borderRadiusCircular};
124
125
  }
125
126
 
@@ -1 +1 @@
1
- {"version":3,"file":"checkbox.styles.js","sourceRoot":"","sources":["../../../src/checkbox/checkbox.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,iBAAiB,EACjB,4BAA4B,EAC5B,iCAAiC,EACjC,mCAAmC,EACnC,wBAAwB,EACxB,6BAA6B,EAC7B,+BAA+B,EAC/B,uBAAuB,EACvB,8BAA8B,EAC9B,8BAA8B,EAC9B,4BAA4B,EAC5B,iCAAiC,EACjC,mCAAmC,EACnC,0BAA0B,EAC1B,iBAAiB,EACjB,sBAAsB,EACtB,gBAAgB,EAChB,eAAe,GAChB,M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wB;;;UAGlC,YAAY;UACZ,kBAAkB;wBACJ,4BAA4B;;;UAG1C,kBAAkB;qBACP,iBAAiB;;;;;;UAM5B,UAAU;;;;UAIV,UAAU;UACV,UAAU;;;;UAIV,aAAa;UACb,aAAa;qBACF,oBAAoB;;;;oBAIrB,YAAY;wBACR,8BAA8B;oBAClC,0BAA0B;;;;;;;oBAO1B,kBAAkB;wBACd,0BAA0B;;;oBAG9B,YAAY;aACnB,0BAA0B;;CAEtC,CAAC,aAAa,CACb,8BAA8B,CAAC,GAAG,CAAA;;;;;;;;;;YAUxB,YAAY;;;;;;;;;;YAUZ,YAAY;YACZ,kBAAkB;;;;YAIlB,YAAY;YACZ,kBAAkB;;;;;;;;sBAQR,kBAAkB;;;;;sBAKlB,YAAY;;;GAG/B,CAAC,CACH,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { attr, FASTElement } from '@microsoft/fast-element';
3
+ import { toggleState } from '../utils/element-internals.js';
3
4
  import { DividerOrientation, DividerRole } from './divider.options.js';
4
5
  /**
5
6
  * A Divider Custom HTML Element.
@@ -16,6 +17,46 @@ export class Divider extends FASTElement {
16
17
  * @internal
17
18
  */
18
19
  this.elementInternals = this.attachInternals();
20
+ /**
21
+ * @public
22
+ * @remarks
23
+ * Adds padding to the beginning and end of the divider.
24
+ */
25
+ this.inset = false;
26
+ }
27
+ /**
28
+ * Handles changes to align-content attribute custom states
29
+ * @param prev - the previous state
30
+ * @param next - the next state
31
+ */
32
+ alignContentChanged(prev, next) {
33
+ if (prev) {
34
+ toggleState(this.elementInternals, `align-${prev}`, false);
35
+ }
36
+ if (next) {
37
+ toggleState(this.elementInternals, `align-${next}`, true);
38
+ }
39
+ }
40
+ /**
41
+ * Handles changes to appearance attribute custom states
42
+ * @param prev - the previous state
43
+ * @param next - the next state
44
+ */
45
+ appearanceChanged(prev, next) {
46
+ if (prev) {
47
+ toggleState(this.elementInternals, `${prev}`, false);
48
+ }
49
+ if (next) {
50
+ toggleState(this.elementInternals, `${next}`, true);
51
+ }
52
+ }
53
+ /**
54
+ * Handles changes to inset custom states
55
+ * @param prev - the previous state
56
+ * @param next - the next state
57
+ */
58
+ insetChanged(prev, next) {
59
+ toggleState(this.elementInternals, 'inset', next);
19
60
  }
20
61
  connectedCallback() {
21
62
  var _a, _b;
@@ -48,8 +89,12 @@ export class Divider extends FASTElement {
48
89
  * @internal
49
90
  */
50
91
  orientationChanged(previous, next) {
51
- if (this.$fastController.isConnected) {
52
- this.elementInternals.ariaOrientation = this.role !== DividerRole.presentation ? next : null;
92
+ this.elementInternals.ariaOrientation = this.role !== DividerRole.presentation ? next : null;
93
+ if (previous) {
94
+ toggleState(this.elementInternals, `${previous}`, false);
95
+ }
96
+ if (next) {
97
+ toggleState(this.elementInternals, `${next}`, true);
53
98
  }
54
99
  }
55
100
  }