@fluentui/web-components 3.0.0-alpha.19 → 3.0.0-alpha.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.
Files changed (47) hide show
  1. package/CHANGELOG.json +16 -1
  2. package/CHANGELOG.md +11 -2
  3. package/dist/dts/index.d.ts +2 -0
  4. package/dist/dts/radio/define.d.ts +1 -0
  5. package/dist/dts/radio/index.d.ts +4 -0
  6. package/dist/dts/radio/radio.d.ts +7 -0
  7. package/dist/dts/radio/radio.definition.d.ts +10 -0
  8. package/dist/dts/radio/radio.styles.d.ts +4 -0
  9. package/dist/dts/radio/radio.template.d.ts +3 -0
  10. package/dist/dts/radio-group/define.d.ts +1 -0
  11. package/dist/dts/radio-group/index.d.ts +5 -0
  12. package/dist/dts/radio-group/radio-group.d.ts +15 -0
  13. package/dist/dts/radio-group/radio-group.definition.d.ts +10 -0
  14. package/dist/dts/radio-group/radio-group.styles.d.ts +4 -0
  15. package/dist/dts/radio-group/radio-group.template.d.ts +3 -0
  16. package/dist/esm/index.js +2 -0
  17. package/dist/esm/index.js.map +1 -1
  18. package/dist/esm/radio/define.js +4 -0
  19. package/dist/esm/radio/define.js.map +1 -0
  20. package/dist/esm/radio/index.js +5 -0
  21. package/dist/esm/radio/index.js.map +1 -0
  22. package/dist/esm/radio/radio.definition.js +18 -0
  23. package/dist/esm/radio/radio.definition.js.map +1 -0
  24. package/dist/esm/radio/radio.js +8 -0
  25. package/dist/esm/radio/radio.js.map +1 -0
  26. package/dist/esm/radio/radio.styles.js +108 -0
  27. package/dist/esm/radio/radio.styles.js.map +1 -0
  28. package/dist/esm/radio/radio.template.js +6 -0
  29. package/dist/esm/radio/radio.template.js.map +1 -0
  30. package/dist/esm/radio-group/define.js +4 -0
  31. package/dist/esm/radio-group/define.js.map +1 -0
  32. package/dist/esm/radio-group/index.js +6 -0
  33. package/dist/esm/radio-group/index.js.map +1 -0
  34. package/dist/esm/radio-group/radio-group.definition.js +18 -0
  35. package/dist/esm/radio-group/radio-group.definition.js.map +1 -0
  36. package/dist/esm/radio-group/radio-group.js +24 -0
  37. package/dist/esm/radio-group/radio-group.js.map +1 -0
  38. package/dist/esm/radio-group/radio-group.styles.js +52 -0
  39. package/dist/esm/radio-group/radio-group.styles.js.map +1 -0
  40. package/dist/esm/radio-group/radio-group.template.js +3 -0
  41. package/dist/esm/radio-group/radio-group.template.js.map +1 -0
  42. package/dist/fluent-web-components.api.json +294 -0
  43. package/dist/web-components.d.ts +61 -0
  44. package/dist/web-components.js +640 -76
  45. package/dist/web-components.min.js +166 -160
  46. package/docs/api-report.md +32 -0
  47. package/package.json +9 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,22 @@
2
2
  "name": "@fluentui/web-components",
3
3
  "entries": [
4
4
  {
5
- "date": "Fri, 21 Apr 2023 04:19:13 GMT",
5
+ "date": "Mon, 08 May 2023 04:19:53 GMT",
6
+ "tag": "@fluentui/web-components_v3.0.0-alpha.20",
7
+ "version": "3.0.0-alpha.20",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "brianbrady@microsoft.com",
12
+ "package": "@fluentui/web-components",
13
+ "commit": "1dddc623661d1b2667a866a1f779363d91a759e4",
14
+ "comment": "feat(radio): add radio and radio-group web components"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Fri, 21 Apr 2023 04:19:22 GMT",
6
21
  "tag": "@fluentui/web-components_v3.0.0-alpha.19",
7
22
  "version": "3.0.0-alpha.19",
8
23
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,21 @@
1
1
  # Change Log - @fluentui/web-components
2
2
 
3
- This log was last generated on Fri, 21 Apr 2023 04:19:13 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 08 May 2023 04:19:53 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [3.0.0-alpha.20](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-alpha.20)
8
+
9
+ Mon, 08 May 2023 04:19:53 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-alpha.19..@fluentui/web-components_v3.0.0-alpha.20)
11
+
12
+ ### Changes
13
+
14
+ - feat(radio): add radio and radio-group web components ([PR #27113](https://github.com/microsoft/fluentui/pull/27113) by brianbrady@microsoft.com)
15
+
7
16
  ## [3.0.0-alpha.19](https://github.com/microsoft/fluentui/tree/@fluentui/web-components_v3.0.0-alpha.19)
8
17
 
9
- Fri, 21 Apr 2023 04:19:13 GMT
18
+ Fri, 21 Apr 2023 04:19:22 GMT
10
19
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/web-components_v3.0.0-alpha.18..@fluentui/web-components_v3.0.0-alpha.19)
11
20
 
12
21
  ### Changes
@@ -13,6 +13,8 @@ export * from './menu-button/index.js';
13
13
  export * from './menu-item/index.js';
14
14
  export * from './menu-list/index.js';
15
15
  export * from './progress-bar/index.js';
16
+ export * from './radio/index.js';
17
+ export * from './radio-group/index.js';
16
18
  export * from './slider/index.js';
17
19
  export * from './spinner/index.js';
18
20
  export * from './switch/index.js';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from './radio.js';
2
+ export { definition as RadioDefinition } from './radio.definition.js';
3
+ export { styles as RadioStyles } from './radio.styles.js';
4
+ export { template as RadioTemplate } from './radio.template.js';
@@ -0,0 +1,7 @@
1
+ import { FASTRadio } from '@microsoft/fast-foundation';
2
+ /**
3
+ * The base class used for constructing a fluent-radio custom element
4
+ * @public
5
+ */
6
+ export declare class Radio extends FASTRadio {
7
+ }
@@ -0,0 +1,10 @@
1
+ import { Radio } from './radio.js';
2
+ /**
3
+ * The Fluent Radio Element.
4
+ *
5
+ *
6
+ * @public
7
+ * @remarks
8
+ * HTML Element: \<fluent-radio\>
9
+ */
10
+ export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof Radio>;
@@ -0,0 +1,4 @@
1
+ /** Radio styles
2
+ * @public
3
+ */
4
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -0,0 +1,3 @@
1
+ import { ElementViewTemplate } from '@microsoft/fast-element';
2
+ import type { Radio } from './radio.js';
3
+ export declare const template: ElementViewTemplate<Radio>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export * from './radio-group.js';
2
+ export { definition as RadioGroupDefinition } from './radio-group.definition.js';
3
+ export { styles as RadioGroupStyles } from './radio-group.styles.js';
4
+ export { template as RadioGroupTemplate } from './radio-group.template.js';
5
+ export { RadioGroupOrientation } from '@microsoft/fast-foundation';
@@ -0,0 +1,15 @@
1
+ import { FASTRadioGroup } from '@microsoft/fast-foundation';
2
+ /**
3
+ * The base class used for constructing a fluent-radio-group custom element
4
+ * @public
5
+ */
6
+ export declare class RadioGroup extends FASTRadioGroup {
7
+ /**
8
+ * sets radio layout styles
9
+ *
10
+ * @public
11
+ * @remarks
12
+ * HTML Attribute: stacked
13
+ */
14
+ stacked: boolean;
15
+ }
@@ -0,0 +1,10 @@
1
+ import { RadioGroup } from './radio-group.js';
2
+ /**
3
+ * The Fluent RadioGroup Element.
4
+ *
5
+ *
6
+ * @public
7
+ * @remarks
8
+ * HTML Element: \<fluent-radio-group\>
9
+ */
10
+ export declare const definition: import("@microsoft/fast-element").FASTElementDefinition<typeof RadioGroup>;
@@ -0,0 +1,4 @@
1
+ /** RadioGroup styles
2
+ * @public
3
+ */
4
+ export declare const styles: import("@microsoft/fast-element").ElementStyles;
@@ -0,0 +1,3 @@
1
+ import type { ElementViewTemplate } from '@microsoft/fast-element';
2
+ import type { RadioGroup } from './radio-group.js';
3
+ export declare const template: ElementViewTemplate<RadioGroup>;
package/dist/esm/index.js CHANGED
@@ -13,6 +13,8 @@ export * from './menu-button/index.js';
13
13
  export * from './menu-item/index.js';
14
14
  export * from './menu-list/index.js';
15
15
  export * from './progress-bar/index.js';
16
+ export * from './radio/index.js';
17
+ export * from './radio-group/index.js';
16
18
  export * from './slider/index.js';
17
19
  export * from './spinner/index.js';
18
20
  export * from './switch/index.js';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AAEzC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { definition } from './radio.definition.js';
3
+ definition.define(FluentDesignSystem.registry);
4
+ //# sourceMappingURL=define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/radio/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,5 @@
1
+ export * from './radio.js';
2
+ export { definition as RadioDefinition } from './radio.definition.js';
3
+ export { styles as RadioStyles } from './radio.styles.js';
4
+ export { template as RadioTemplate } from './radio.template.js';
5
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/radio/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,OAAO,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACtE,OAAO,EAAE,MAAM,IAAI,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { Radio } from './radio.js';
3
+ import { styles } from './radio.styles.js';
4
+ import { template } from './radio.template.js';
5
+ /**
6
+ * The Fluent Radio Element.
7
+ *
8
+ *
9
+ * @public
10
+ * @remarks
11
+ * HTML Element: \<fluent-radio\>
12
+ */
13
+ export const definition = Radio.compose({
14
+ name: `${FluentDesignSystem.prefix}-radio`,
15
+ template,
16
+ styles,
17
+ });
18
+ //# sourceMappingURL=radio.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.definition.js","sourceRoot":"","sources":["../../../src/radio/radio.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC;IACtC,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,QAAQ;IAC1C,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { FASTRadio } from '@microsoft/fast-foundation';
2
+ /**
3
+ * The base class used for constructing a fluent-radio custom element
4
+ * @public
5
+ */
6
+ export class Radio extends FASTRadio {
7
+ }
8
+ //# sourceMappingURL=radio.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.js","sourceRoot":"","sources":["../../../src/radio/radio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAEvD;;;GAGG;AACH,MAAM,OAAO,KAAM,SAAQ,SAAS;CAAG"}
@@ -0,0 +1,108 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ import { display } from '@microsoft/fast-foundation';
3
+ import { borderRadiusCircular, borderRadiusSmall, colorCompoundBrandForeground1, colorCompoundBrandForeground1Pressed, colorCompoundBrandStrokeHover, colorCompoundBrandStrokePressed, colorNeutralForeground2, colorNeutralForeground3, colorNeutralForegroundDisabled, colorNeutralStrokeAccessible, colorNeutralStrokeAccessibleHover, colorNeutralStrokeAccessiblePressed, colorStrokeFocus1, colorStrokeFocus2, fontFamilyBase, fontSizeBase300, fontWeightRegular, lineHeightBase300, spacingHorizontalS, spacingHorizontalXS, spacingVerticalS, } from '../theme/design-tokens.js';
4
+ /** Radio styles
5
+ * @public
6
+ */
7
+ export const styles = css `
8
+ ${display('inline-grid')}
9
+
10
+ :host {
11
+ grid-auto-flow: column;
12
+ grid-template-columns: max-content;
13
+ gap: ${spacingHorizontalXS};
14
+ align-items: center;
15
+ height: 32px;
16
+ cursor: pointer;
17
+ outline: none;
18
+ position: relative;
19
+ user-select: none;
20
+ color: blue;
21
+ color: var(--state-color, ${colorNeutralForeground3});
22
+ padding-inline-end: ${spacingHorizontalS};
23
+ --control-border-color: ${colorNeutralStrokeAccessible};
24
+ --checked-indicator-background-color: ${colorCompoundBrandForeground1};
25
+ --state-color: ${colorNeutralForeground3};
26
+ }
27
+ :host([disabled]) {
28
+ --control-border-color: ${colorNeutralForegroundDisabled};
29
+ --checked-indicator-background-color: ${colorNeutralForegroundDisabled};
30
+ --state-color: ${colorNeutralForegroundDisabled};
31
+ }
32
+ .label {
33
+ cursor: pointer;
34
+ font-family: ${fontFamilyBase};
35
+ font-size: ${fontSizeBase300};
36
+ font-weight: ${fontWeightRegular};
37
+ line-height: ${lineHeightBase300};
38
+ }
39
+ .label__hidden {
40
+ display: none;
41
+ }
42
+ .control {
43
+ box-sizing: border-box;
44
+ align-items: center;
45
+ border: 1px solid var(--control-border-color, ${colorNeutralStrokeAccessible});
46
+ border-radius: ${borderRadiusCircular};
47
+ display: flex;
48
+ height: 16px;
49
+ justify-content: center;
50
+ margin: ${spacingVerticalS} ${spacingHorizontalS};
51
+ position: relative;
52
+ width: 16px;
53
+ justify-self: center;
54
+ }
55
+ .checked-indicator {
56
+ border-radius: ${borderRadiusCircular};
57
+ height: 10px;
58
+ opacity: 0;
59
+ width: 10px;
60
+ }
61
+ :host([aria-checked='false']:hover) .control {
62
+ color: ${colorNeutralForeground2};
63
+ }
64
+ :host(:focus-visible) {
65
+ border-radius: ${borderRadiusSmall};
66
+ box-shadow: 0 0 0 3px ${colorStrokeFocus2};
67
+ outline: 1px solid ${colorStrokeFocus1};
68
+ }
69
+ :host(:hover) .control {
70
+ border-color: ${colorNeutralStrokeAccessibleHover};
71
+ }
72
+ :host(:active) .control {
73
+ border-color: ${colorNeutralStrokeAccessiblePressed};
74
+ }
75
+ :host([aria-checked='true']) .checked-indicator {
76
+ opacity: 1;
77
+ }
78
+ :host([aria-checked='true']) .control {
79
+ border-color: var(--control-border-color, ${colorNeutralStrokeAccessible});
80
+ }
81
+ :host([aria-checked='true']) .checked-indicator {
82
+ background-color: var(--checked-indicator-background-color, ${colorCompoundBrandForeground1});
83
+ }
84
+ :host([aria-checked='true']:hover) .control {
85
+ border-color: ${colorCompoundBrandStrokeHover};
86
+ }
87
+ :host([aria-checked='true']:hover) .checked-indicator {
88
+ background-color: ${colorCompoundBrandStrokeHover};
89
+ }
90
+ :host([aria-checked='true']:active) .control {
91
+ border-color: ${colorCompoundBrandStrokePressed};
92
+ }
93
+ :host([aria-checked='true']:active) .checked-indicator {
94
+ background: ${colorCompoundBrandForeground1Pressed};
95
+ }
96
+ :host([disabled]) {
97
+ color: ${colorNeutralForegroundDisabled};
98
+ pointer-events: none;
99
+ }
100
+ :host([disabled]) .control {
101
+ pointer-events: none;
102
+ border-color: ${colorNeutralForegroundDisabled};
103
+ }
104
+ :host([disabled]) .checked-indicator {
105
+ background: ${colorNeutralForegroundDisabled};
106
+ }
107
+ `;
108
+ //# sourceMappingURL=radio.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.styles.js","sourceRoot":"","sources":["../../../src/radio/radio.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACL,oBAAoB,EACpB,iBAAiB,EACjB,6BAA6B,EAC7B,oCAAoC,EACpC,6BAA6B,EAC7B,+BAA+B,EAC/B,uBAAuB,EACvB,uBAAuB,EACvB,8BAA8B,EAC9B,4BAA4B,EAC5B,iCAAiC,EACjC,mCAAmC,EACnC,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,aAAa,CAAC;;;;;WAKf,mBAAmB;;;;;;;;gCAQE,uBAAuB;0BAC7B,kBAAkB;8BACd,4BAA4B;4CACd,6BAA6B;qBACpD,uBAAuB;;;8BAGd,8BAA8B;4CAChB,8BAA8B;qBACrD,8BAA8B;;;;mBAIhC,cAAc;iBAChB,eAAe;mBACb,iBAAiB;mBACjB,iBAAiB;;;;;;;;oDAQgB,4BAA4B;qBAC3D,oBAAoB;;;;cAI3B,gBAAgB,IAAI,kBAAkB;;;;;;qBAM/B,oBAAoB;;;;;;aAM5B,uBAAuB;;;qBAGf,iBAAiB;4BACV,iBAAiB;yBACpB,iBAAiB;;;oBAGtB,iCAAiC;;;oBAGjC,mCAAmC;;;;;;gDAMP,4BAA4B;;;kEAGV,6BAA6B;;;oBAG3E,6BAA6B;;;wBAGzB,6BAA6B;;;oBAGjC,+BAA+B;;;kBAGjC,oCAAoC;;;aAGzC,8BAA8B;;;;;oBAKvB,8BAA8B;;;kBAGhC,8BAA8B;;CAE/C,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { html } from '@microsoft/fast-element';
2
+ import { radioTemplate } from '@microsoft/fast-foundation';
3
+ export const template = radioTemplate({
4
+ checkedIndicator: html `<div part="checked-indicator" class="checked-indicator"></div>`,
5
+ });
6
+ //# sourceMappingURL=radio.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio.template.js","sourceRoot":"","sources":["../../../src/radio/radio.template.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuB,IAAI,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAG3D,MAAM,CAAC,MAAM,QAAQ,GAA+B,aAAa,CAAC;IAChE,gBAAgB,EAAE,IAAI,CAAA,gEAAgE;CACvF,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { definition } from './radio-group.definition.js';
3
+ definition.define(FluentDesignSystem.registry);
4
+ //# sourceMappingURL=define.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"define.js","sourceRoot":"","sources":["../../../src/radio-group/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,UAAU,CAAC,MAAM,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC"}
@@ -0,0 +1,6 @@
1
+ export * from './radio-group.js';
2
+ export { definition as RadioGroupDefinition } from './radio-group.definition.js';
3
+ export { styles as RadioGroupStyles } from './radio-group.styles.js';
4
+ export { template as RadioGroupTemplate } from './radio-group.template.js';
5
+ export { RadioGroupOrientation } from '@microsoft/fast-foundation';
6
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/radio-group/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,OAAO,EAAE,UAAU,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACjF,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,QAAQ,IAAI,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { FluentDesignSystem } from '../fluent-design-system.js';
2
+ import { RadioGroup } from './radio-group.js';
3
+ import { styles } from './radio-group.styles.js';
4
+ import { template } from './radio-group.template.js';
5
+ /**
6
+ * The Fluent RadioGroup Element.
7
+ *
8
+ *
9
+ * @public
10
+ * @remarks
11
+ * HTML Element: \<fluent-radio-group\>
12
+ */
13
+ export const definition = RadioGroup.compose({
14
+ name: `${FluentDesignSystem.prefix}-radio-group`,
15
+ template,
16
+ styles,
17
+ });
18
+ //# sourceMappingURL=radio-group.definition.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.definition.js","sourceRoot":"","sources":["../../../src/radio-group/radio-group.definition.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAErD;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,CAAC;IAC3C,IAAI,EAAE,GAAG,kBAAkB,CAAC,MAAM,cAAc;IAChD,QAAQ;IACR,MAAM;CACP,CAAC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { __decorate } from "tslib";
2
+ import { attr } from '@microsoft/fast-element';
3
+ import { FASTRadioGroup } from '@microsoft/fast-foundation';
4
+ /**
5
+ * The base class used for constructing a fluent-radio-group custom element
6
+ * @public
7
+ */
8
+ export class RadioGroup extends FASTRadioGroup {
9
+ constructor() {
10
+ super(...arguments);
11
+ /**
12
+ * sets radio layout styles
13
+ *
14
+ * @public
15
+ * @remarks
16
+ * HTML Attribute: stacked
17
+ */
18
+ this.stacked = false;
19
+ }
20
+ }
21
+ __decorate([
22
+ attr({ mode: 'boolean' })
23
+ ], RadioGroup.prototype, "stacked", void 0);
24
+ //# sourceMappingURL=radio-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.js","sourceRoot":"","sources":["../../../src/radio-group/radio-group.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE5D;;;GAGG;AACH,MAAM,OAAO,UAAW,SAAQ,cAAc;IAA9C;;QACE;;;;;;WAMG;QAEI,YAAO,GAAY,KAAK,CAAC;IAClC,CAAC;CAAA;AADC;IADC,IAAI,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;2CACM"}
@@ -0,0 +1,52 @@
1
+ import { css } from '@microsoft/fast-element';
2
+ import { display } from '@microsoft/fast-foundation';
3
+ import { colorNeutralForeground1, colorNeutralForegroundDisabled, fontFamilyBase, fontSizeBase300, fontWeightRegular, lineHeightBase300, spacingHorizontalS, spacingHorizontalXS, spacingVerticalS, } from '../theme/design-tokens.js';
4
+ /** RadioGroup styles
5
+ * @public
6
+ */
7
+ export const styles = css `
8
+ ${display('flex')}
9
+
10
+ :host {
11
+ align-items: flex-start;
12
+ flex-direction: column;
13
+ row-gap: ${spacingVerticalS};
14
+ }
15
+ :host([disabled]) ::slotted([role='radio']) {
16
+ --control-border-color: ${colorNeutralForegroundDisabled};
17
+ --checked-indicator-background-color: ${colorNeutralForegroundDisabled};
18
+ --state-color: ${colorNeutralForegroundDisabled};
19
+ }
20
+ ::slotted([slot='label']) {
21
+ color: ${colorNeutralForeground1};
22
+ padding: ${spacingVerticalS} ${spacingHorizontalS} ${spacingVerticalS} ${spacingHorizontalXS};
23
+ font: ${fontWeightRegular} ${fontSizeBase300} / ${lineHeightBase300} ${fontFamilyBase};
24
+ cursor: default;
25
+ }
26
+ .positioning-region {
27
+ display: flex;
28
+ flex-wrap: wrap;
29
+ }
30
+ :host([orientation='vertical']) .positioning-region {
31
+ flex-direction: column;
32
+ justify-content: flex-start;
33
+ }
34
+ :host([orientation='horizontal']) .positioning-region {
35
+ flex-direction: row;
36
+ }
37
+ :host([orientation='horizontal']) ::slotted([role='radio']) {
38
+ padding-inline-end: ${spacingHorizontalS};
39
+ }
40
+ :host([orientation='horizontal'][stacked]) ::slotted([role='radio']) {
41
+ display: flex;
42
+ flex-direction: column;
43
+ padding-inline: ${spacingHorizontalS};
44
+ height: auto;
45
+ align-items: center;
46
+ justify-content: center;
47
+ }
48
+ :host([disabled]) ::slotted([role='radio']) {
49
+ pointer-events: none;
50
+ }
51
+ `;
52
+ //# sourceMappingURL=radio-group.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.styles.js","sourceRoot":"","sources":["../../../src/radio-group/radio-group.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,yBAAyB,CAAC;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,EACL,uBAAuB,EACvB,8BAA8B,EAC9B,cAAc,EACd,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,2BAA2B,CAAC;AAEnC;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;IACrB,OAAO,CAAC,MAAM,CAAC;;;;;eAKJ,gBAAgB;;;8BAGD,8BAA8B;4CAChB,8BAA8B;qBACrD,8BAA8B;;;aAGtC,uBAAuB;eACrB,gBAAgB,IAAI,kBAAkB,IAAI,gBAAgB,IAAI,mBAAmB;YACpF,iBAAiB,IAAI,eAAe,MAAM,iBAAiB,IAAI,cAAc;;;;;;;;;;;;;;;0BAe/D,kBAAkB;;;;;sBAKtB,kBAAkB;;;;;;;;CAQvC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { radioGroupTemplate } from '@microsoft/fast-foundation';
2
+ export const template = radioGroupTemplate();
3
+ //# sourceMappingURL=radio-group.template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"radio-group.template.js","sourceRoot":"","sources":["../../../src/radio-group/radio-group.template.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAGhE,MAAM,CAAC,MAAM,QAAQ,GAAoC,kBAAkB,EAAE,CAAC"}