@fluentui/react-checkbox 9.0.0-beta.1 → 9.0.0-beta.12

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 (58) hide show
  1. package/CHANGELOG.json +573 -1
  2. package/CHANGELOG.md +152 -2
  3. package/Spec.md +25 -115
  4. package/dist/react-checkbox.d.ts +52 -50
  5. package/lib/Checkbox.js.map +1 -1
  6. package/lib/components/Checkbox/Checkbox.d.ts +2 -1
  7. package/lib/components/Checkbox/Checkbox.js +10 -8
  8. package/lib/components/Checkbox/Checkbox.js.map +1 -1
  9. package/lib/components/Checkbox/Checkbox.types.d.ts +40 -40
  10. package/lib/components/Checkbox/Checkbox.types.js.map +1 -1
  11. package/lib/components/Checkbox/index.js.map +1 -1
  12. package/lib/components/Checkbox/renderCheckbox.d.ts +1 -1
  13. package/lib/components/Checkbox/renderCheckbox.js +11 -10
  14. package/lib/components/Checkbox/renderCheckbox.js.map +1 -1
  15. package/lib/components/Checkbox/useCheckbox.d.ts +5 -9
  16. package/lib/components/Checkbox/useCheckbox.js +99 -68
  17. package/lib/components/Checkbox/useCheckbox.js.map +1 -1
  18. package/lib/components/Checkbox/useCheckboxStyles.d.ts +8 -2
  19. package/lib/components/Checkbox/useCheckboxStyles.js +224 -160
  20. package/lib/components/Checkbox/useCheckboxStyles.js.map +1 -1
  21. package/lib/index.d.ts +2 -1
  22. package/lib/index.js +2 -1
  23. package/lib/index.js.map +1 -1
  24. package/lib-commonjs/Checkbox.js +7 -2
  25. package/lib-commonjs/Checkbox.js.map +1 -1
  26. package/lib-commonjs/components/Checkbox/Checkbox.d.ts +2 -1
  27. package/lib-commonjs/components/Checkbox/Checkbox.js +20 -10
  28. package/lib-commonjs/components/Checkbox/Checkbox.js.map +1 -1
  29. package/lib-commonjs/components/Checkbox/Checkbox.types.d.ts +40 -40
  30. package/lib-commonjs/components/Checkbox/Checkbox.types.js +4 -1
  31. package/lib-commonjs/components/Checkbox/Checkbox.types.js.map +1 -1
  32. package/lib-commonjs/components/Checkbox/index.js +11 -2
  33. package/lib-commonjs/components/Checkbox/index.js.map +1 -1
  34. package/lib-commonjs/components/Checkbox/renderCheckbox.d.ts +1 -1
  35. package/lib-commonjs/components/Checkbox/renderCheckbox.js +23 -15
  36. package/lib-commonjs/components/Checkbox/renderCheckbox.js.map +1 -1
  37. package/lib-commonjs/components/Checkbox/useCheckbox.d.ts +5 -9
  38. package/lib-commonjs/components/Checkbox/useCheckbox.js +113 -73
  39. package/lib-commonjs/components/Checkbox/useCheckbox.js.map +1 -1
  40. package/lib-commonjs/components/Checkbox/useCheckboxStyles.d.ts +8 -2
  41. package/lib-commonjs/components/Checkbox/useCheckboxStyles.js +236 -164
  42. package/lib-commonjs/components/Checkbox/useCheckboxStyles.js.map +1 -1
  43. package/lib-commonjs/index.d.ts +2 -1
  44. package/lib-commonjs/index.js +45 -3
  45. package/lib-commonjs/index.js.map +1 -1
  46. package/package.json +20 -22
  47. package/lib/common/isConformant.d.ts +0 -4
  48. package/lib/common/isConformant.js +0 -12
  49. package/lib/common/isConformant.js.map +0 -1
  50. package/lib/components/Checkbox/DefaultIcons.d.ts +0 -4
  51. package/lib/components/Checkbox/DefaultIcons.js +0 -10
  52. package/lib/components/Checkbox/DefaultIcons.js.map +0 -1
  53. package/lib-commonjs/common/isConformant.d.ts +0 -4
  54. package/lib-commonjs/common/isConformant.js +0 -16
  55. package/lib-commonjs/common/isConformant.js.map +0 -1
  56. package/lib-commonjs/components/Checkbox/DefaultIcons.d.ts +0 -4
  57. package/lib-commonjs/components/Checkbox/DefaultIcons.js +0 -17
  58. package/lib-commonjs/components/Checkbox/DefaultIcons.js.map +0 -1
@@ -1,176 +1,248 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useCheckboxStyles = void 0;
4
- var react_make_styles_1 = require("@fluentui/react-make-styles");
5
- var react_tabster_1 = require("@fluentui/react-tabster");
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useCheckboxStyles_unstable = exports.checkboxClassNames = exports.checkboxClassName = void 0;
7
+
8
+ const react_1 = /*#__PURE__*/require("@griffel/react");
9
+
10
+ const react_tabster_1 = /*#__PURE__*/require("@fluentui/react-tabster");
11
+
12
+ const react_theme_1 = /*#__PURE__*/require("@fluentui/react-theme");
6
13
  /**
7
- * Styles for the root slot
14
+ * @deprecated Use `checkboxClassNames.root` instead.
8
15
  */
9
- var useStyles = react_make_styles_1.makeStyles({
10
- root: function (theme) { return ({
11
- display: 'inline-flex',
12
- position: 'relative',
13
- alignSelf: 'flex-start',
14
- alignItems: 'center',
15
- padding: '4px',
16
- userSelect: 'none',
17
- cursor: 'pointer',
18
- }); },
19
- disabled: function (theme) { return ({
20
- color: theme.colorNeutralForegroundDisabled,
21
- cursor: 'default',
22
- '& .ms-checkbox-indicator': {
23
- borderColor: theme.colorNeutralStrokeDisabled,
24
- color: theme.colorNeutralForegroundDisabled,
25
- backgroundColor: theme.colorNeutralBackground1,
26
- },
27
- ':hover': {
28
- '& .ms-checkbox-indicator': {
29
- borderColor: theme.colorNeutralStrokeDisabled,
30
- color: theme.colorNeutralForegroundDisabled,
31
- backgroundColor: theme.colorNeutralBackground1,
32
- },
33
- },
34
- ':active': {
35
- '& .ms-checkbox-indicator': {
36
- borderColor: theme.colorNeutralStrokeDisabled,
37
- color: theme.colorNeutralForegroundDisabled,
38
- backgroundColor: theme.colorNeutralBackground1,
39
- },
40
- },
41
- }); },
42
- unchecked: function (theme) { return ({
43
- color: theme.colorNeutralForeground3,
44
- '& .ms-checkbox-indicator': {
45
- borderColor: theme.colorNeutralStrokeAccessible,
46
- '& > *': {
47
- opacity: 0,
48
- },
49
- },
50
- ':hover': {
51
- color: theme.colorNeutralForeground2,
52
- '& .ms-checkbox-indicator': {
53
- borderColor: theme.colorNeutralStrokeAccessibleHover,
54
- },
55
- },
56
- ':active': {
57
- color: theme.colorNeutralForeground1,
58
- '& .ms-checkbox-indicator': {
59
- borderColor: theme.colorNeutralStrokeAccessiblePressed,
60
- },
61
- },
62
- }); },
63
- checked: function (theme) { return ({
64
- color: theme.colorNeutralForeground1,
65
- // TODO: neutralForegroundInverted change to NeutralForegroundOnBrand once it's added
66
- '& .ms-checkbox-indicator': {
67
- backgroundColor: theme.colorCompoundBrandBackground,
68
- color: theme.colorNeutralForegroundInverted,
69
- borderColor: theme.colorBrandBackground,
70
- },
71
- ':active': {
72
- '& .ms-checkbox-indicator': {
73
- backgroundColor: theme.colorCompoundBrandBackgroundPressed,
74
- },
75
- },
76
- ':hover': {
77
- '& .ms-checkbox-indicator': {
78
- backgroundColor: theme.colorCompoundBrandBackgroundHover,
79
- },
80
- },
81
- }); },
82
- mixed: function (theme) { return ({
83
- color: theme.colorNeutralForeground1,
84
- '& .ms-checkbox-indicator': {
85
- borderColor: theme.colorCompoundBrandStroke,
86
- color: theme.colorCompoundBrandForeground1,
87
- },
88
- ':active': {
89
- '& .ms-checkbox-indicator': {
90
- borderColor: theme.colorCompoundBrandStrokePressed,
91
- color: theme.colorCompoundBrandForeground1Pressed,
92
- },
93
- },
94
- ':hover': {
95
- '& .ms-checkbox-indicator': {
96
- borderColor: theme.colorCompoundBrandStrokeHover,
97
- color: theme.colorCompoundBrandForeground1Hover,
98
- },
99
- },
100
- }); },
101
- focusIndicator: function (theme) {
102
- return react_tabster_1.createFocusOutlineStyle(theme, { style: { outlineOffset: '2px' }, selector: 'focus-within' });
103
- },
16
+
17
+
18
+ exports.checkboxClassName = 'fui-Checkbox';
19
+ exports.checkboxClassNames = {
20
+ root: 'fui-Checkbox',
21
+ label: 'fui-Checkbox__label',
22
+ input: 'fui-Checkbox__input',
23
+ indicator: 'fui-Checkbox__indicator'
24
+ }; // TODO replace these spacing constants with theme values once they're on the theme
25
+
26
+ const spacingHorizontalS = '8px';
27
+ const spacingHorizontalM = '12px'; // The indicator size is used by the indicator and label styles
28
+
29
+ const indicatorSizeMedium = '16px';
30
+ const indicatorSizeLarge = '20px';
31
+
32
+ const useRootStyles = /*#__PURE__*/react_1.__styles({
33
+ "base": {
34
+ "qhf8xq": "f10pi13n",
35
+ "mc9l5x": "ftuwxu6",
36
+ "i8kkvl": "f4akndk",
37
+ "z8tnut": "fp9bwmr",
38
+ "z189sj": ["f19lj068", "f177v4lu"],
39
+ "Byoj8tv": "f150uoa4",
40
+ "uwmqm3": ["f177v4lu", "f19lj068"],
41
+ "B486eqv": "f2hkw1w",
42
+ "vchsgm": "fbiesyy",
43
+ "ozrjjd": ["fq2kn9", "f1jxwnad"],
44
+ "B7lelfh": "f1il7mou",
45
+ "Bp3tz3o": ["f1jxwnad", "fq2kn9"],
46
+ "B8vm7ur": "f12sql3b",
47
+ "f4hv8x": "f1i4q40k",
48
+ "Gpan81": "fcrbge9",
49
+ "rsjj6t": "fskqmiq",
50
+ "E86f5s": "f1kbdjx9",
51
+ "f5nhos": ["fw1d893", "fpuz8dn"],
52
+ "Bhtq6h7": "f14hlsw1",
53
+ "Bubk9yy": ["fpuz8dn", "fw1d893"],
54
+ "dzajus": "f1bkt4b4",
55
+ "B8gmrwi": ["f16hf5f2", "f1qhqcal"],
56
+ "Byq6oy9": "fyyqeim",
57
+ "Bdy2j38": ["f1qhqcal", "f16hf5f2"],
58
+ "Bi8bqab": ["f1aneyfs", "f15nmyc0"],
59
+ "kq6z4e": ["f15nmyc0", "f1aneyfs"],
60
+ "l5tc3q": ["f3cpy5b", "f13v6kgv"],
61
+ "d1z3ck": ["f13v6kgv", "f3cpy5b"],
62
+ "epcuuz": "filx0we",
63
+ "Ba33l6n": ["f1horip2", "fgnx9ah"],
64
+ "va7z1g": "fkii2tb",
65
+ "Bmi6mq9": ["fgnx9ah", "f1horip2"],
66
+ "Bjkpy09": "f1unftzx",
67
+ "Jxg1p8": "f8rjbh6",
68
+ "Bc94xmo": ["fxfgh6q", "f8l10fm"],
69
+ "Bj23z95": ["f8l10fm", "fxfgh6q"]
70
+ }
71
+ }, {
72
+ "d": [".f10pi13n{position:relative;}", ".ftuwxu6{display:-webkit-inline-box;display:-webkit-inline-flex;display:-ms-inline-flexbox;display:inline-flex;}", ".f4akndk{-webkit-column-gap:12px;column-gap:12px;}", ".fp9bwmr{padding-top:8px;}", ".f19lj068{padding-right:8px;}", ".f177v4lu{padding-left:8px;}", ".f150uoa4{padding-bottom:8px;}", "[data-keyboard-nav] .fbiesyy:focus-within{border-top-color:transparent;}", "[data-keyboard-nav] .fq2kn9:focus-within{border-right-color:transparent;}", "[data-keyboard-nav] .f1jxwnad:focus-within{border-left-color:transparent;}", "[data-keyboard-nav] .f1il7mou:focus-within{border-bottom-color:transparent;}", "[data-keyboard-nav] .f12sql3b:focus-within:after{content:\"\";}", "[data-keyboard-nav] .f1i4q40k:focus-within:after{position:absolute;}", "[data-keyboard-nav] .fcrbge9:focus-within:after{pointer-events:none;}", "[data-keyboard-nav] .fskqmiq:focus-within:after{z-index:1;}", "[data-keyboard-nav] .f1kbdjx9:focus-within:after{border-top-style:solid;}", "[data-keyboard-nav] .fw1d893:focus-within:after{border-right-style:solid;}", "[data-keyboard-nav] .fpuz8dn:focus-within:after{border-left-style:solid;}", "[data-keyboard-nav] .f14hlsw1:focus-within:after{border-bottom-style:solid;}", "[data-keyboard-nav] .f1bkt4b4:focus-within:after{border-top-width:2px;}", "[data-keyboard-nav] .f16hf5f2:focus-within:after{border-right-width:2px;}", "[data-keyboard-nav] .f1qhqcal:focus-within:after{border-left-width:2px;}", "[data-keyboard-nav] .fyyqeim:focus-within:after{border-bottom-width:2px;}", "[data-keyboard-nav] .f1aneyfs:focus-within:after{border-bottom-right-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f15nmyc0:focus-within:after{border-bottom-left-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f3cpy5b:focus-within:after{border-top-right-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .f13v6kgv:focus-within:after{border-top-left-radius:var(--borderRadiusMedium);}", "[data-keyboard-nav] .filx0we:focus-within:after{border-top-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1horip2:focus-within:after{border-right-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .fgnx9ah:focus-within:after{border-left-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .fkii2tb:focus-within:after{border-bottom-color:var(--colorStrokeFocus2);}", "[data-keyboard-nav] .f1unftzx:focus-within:after{top:-2px;}", "[data-keyboard-nav] .f8rjbh6:focus-within:after{bottom:-2px;}", "[data-keyboard-nav] .fxfgh6q:focus-within:after{left:-2px;}", "[data-keyboard-nav] .f8l10fm:focus-within:after{right:-2px;}"],
73
+ "i": [".f2hkw1w:focus-visible{outline-style:none;}"]
104
74
  });
105
- var useContainerStyles = react_make_styles_1.makeStyles({
106
- container: {
107
- position: 'relative',
108
- display: 'flex',
109
- alignItems: 'center',
110
- justifyContent: 'center',
111
- },
112
- medium: {
113
- width: '16px',
114
- height: '16px',
115
- },
116
- large: {
117
- width: '20px',
118
- height: '20px',
119
- },
120
- // TODO: change marginLeft to Spacing horizontal M once it's added
121
- before: function (theme) { return ({
122
- marginLeft: '12px',
123
- }); },
124
- // TODO: change marginRight to Spacing horizontal M once it's added
125
- after: function (theme) { return ({
126
- marginRight: '12px',
127
- }); },
75
+
76
+ const useInputStyles = /*#__PURE__*/react_1.__styles({
77
+ "base": {
78
+ "qhf8xq": "f1euv43f",
79
+ "oyh7mz": ["f1vgc2s3", "f1e31b4d"],
80
+ "Bhzewxz": "f15twtuk",
81
+ "a9b677": "fly5x3f",
82
+ "Bqenvij": "f1l02sjl",
83
+ "B7ck84d": "f1ewtqcl",
84
+ "B6of3ja": "f1hu3pq6",
85
+ "t21cq0": ["f11qmguv", "f1tyq0we"],
86
+ "jrapky": "f19f4twv",
87
+ "Frg6f3": ["f1tyq0we", "f11qmguv"],
88
+ "abs64n": "fk73vx1",
89
+ "Bceei9c": "f1k6fduh",
90
+ "B26k0as": "f1yrrd5t",
91
+ "k0xvi9": "fvfr0er",
92
+ "Bqb28oy": "fcwiijr",
93
+ "Fszymg": ["f11s8ldy", "f37mzfx"],
94
+ "s5xoki": "forfpyi",
95
+ "cfw8t2": ["f37mzfx", "f11s8ldy"],
96
+ "b9fajx": "f1vd61pd",
97
+ "pff03s": "f1mzgjal",
98
+ "Bk0s23q": ["f1iwu0i3", "f6umev3"],
99
+ "Bfc5gcl": "femu9zt",
100
+ "a4vgqw": ["f6umev3", "f1iwu0i3"],
101
+ "Fum7gy": "f1s8s9qo",
102
+ "B5tev9i": "fuvx3by",
103
+ "ecjak0": ["fuqx993", "f1akce7s"],
104
+ "B006ete": "feccz1o",
105
+ "Bxlzfhf": ["f1akce7s", "fuqx993"],
106
+ "qzqrip": "fqgvcms",
107
+ "xmoia3": "f1wvbx6q",
108
+ "i1phtq": "fcsc0bc",
109
+ "Bi8r3f5": "fkf9h0q",
110
+ "yvncz7": ["faeo8p5", "f4rpdul"],
111
+ "D2mvea": "fsk3itm",
112
+ "Bjmkmyo": ["f4rpdul", "faeo8p5"],
113
+ "B525uqd": "f4wqdms",
114
+ "B5z3g6i": "ftufdon",
115
+ "Bwnzx1a": ["f1ni78ii", "f1pe82pw"],
116
+ "w3j1jp": "fxl8eb7",
117
+ "n2zbqb": ["f1pe82pw", "f1ni78ii"],
118
+ "Bek439x": "f12pgwe7",
119
+ "Bgt4g9q": "f1c5u0pt",
120
+ "Bkzkukt": ["fyfn4nz", "f1aaeu2t"],
121
+ "wg1kw8": "ffzx9q8",
122
+ "Bh7u92y": ["f1aaeu2t", "fyfn4nz"],
123
+ "B40413r": "f1rm0htn",
124
+ "B9f5amx": "fpb7n6l",
125
+ "gbnyp0": ["f1uwkm0d", "fakdbj6"],
126
+ "ilwfws": "f180qsza",
127
+ "Fk4w3x": ["fakdbj6", "f1uwkm0d"],
128
+ "tfmijd": "f3nyagc",
129
+ "Bketd8w": "f1eh922j",
130
+ "s1clob": ["f1f3l6lh", "faa1us6"],
131
+ "B8s8lrk": "f1g6jlfz",
132
+ "Bp3qae9": ["faa1us6", "f1f3l6lh"],
133
+ "c4h28b": "f1d2ycii",
134
+ "Bvff7ki": "f18ruat1",
135
+ "B0usqpl": ["f18b6ltw", "fd6ao2z"],
136
+ "ckdfsi": "fdz9k82",
137
+ "B2hfjzz": ["fd6ao2z", "f18b6ltw"],
138
+ "B0rx68v": "f8c3d4w",
139
+ "ezr58z": "fvxnmui",
140
+ "Bdfu378": "f1ceq7vh",
141
+ "Bhmh25c": "f2zvonr",
142
+ "fvfg5q": "f4ohyq5",
143
+ "Bbnnodr": ["f1kakd2g", "f3ulah5"],
144
+ "B7y28oj": "f5fda5m",
145
+ "Dpxclb": ["f3ulah5", "f1kakd2g"],
146
+ "E1kcat": "f1c3drxw",
147
+ "Bt6osj6": "f8cdtmm",
148
+ "Jop56w": "f8701xt"
149
+ }
150
+ }, {
151
+ "d": [".f1euv43f{position:absolute;}", ".f1vgc2s3{left:0;}", ".f1e31b4d{right:0;}", ".f15twtuk{top:0;}", ".fly5x3f{width:100%;}", ".f1l02sjl{height:100%;}", ".f1ewtqcl{box-sizing:border-box;}", ".f1hu3pq6{margin-top:0;}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".f19f4twv{margin-bottom:0;}", ".fk73vx1{opacity:0;}", ".f1k6fduh{cursor:pointer;}", ".f1yrrd5t:not(:checked):not(:indeterminate)~.fui-Checkbox__indicator>*{opacity:0;}", ".fvfr0er:enabled:not(:checked):not(:indeterminate)~.fui-Checkbox__label{color:var(--colorNeutralForeground3);}", ".fcwiijr:enabled:not(:checked):not(:indeterminate)~.fui-Checkbox__indicator{border-top-color:var(--colorNeutralStrokeAccessible);}", ".f11s8ldy:enabled:not(:checked):not(:indeterminate)~.fui-Checkbox__indicator{border-right-color:var(--colorNeutralStrokeAccessible);}", ".f37mzfx:enabled:not(:checked):not(:indeterminate)~.fui-Checkbox__indicator{border-left-color:var(--colorNeutralStrokeAccessible);}", ".forfpyi:enabled:not(:checked):not(:indeterminate)~.fui-Checkbox__indicator{border-bottom-color:var(--colorNeutralStrokeAccessible);}", ".f1vd61pd:enabled:not(:checked):not(:indeterminate):hover~.fui-Checkbox__label{color:var(--colorNeutralForeground2);}", ".f1mzgjal:enabled:not(:checked):not(:indeterminate):hover~.fui-Checkbox__indicator{border-top-color:var(--colorNeutralStrokeAccessibleHover);}", ".f1iwu0i3:enabled:not(:checked):not(:indeterminate):hover~.fui-Checkbox__indicator{border-right-color:var(--colorNeutralStrokeAccessibleHover);}", ".f6umev3:enabled:not(:checked):not(:indeterminate):hover~.fui-Checkbox__indicator{border-left-color:var(--colorNeutralStrokeAccessibleHover);}", ".femu9zt:enabled:not(:checked):not(:indeterminate):hover~.fui-Checkbox__indicator{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}", ".f1s8s9qo:enabled:not(:checked):not(:indeterminate):active:hover~.fui-Checkbox__label{color:var(--colorNeutralForeground1);}", ".fuvx3by:enabled:not(:checked):not(:indeterminate):active:hover~.fui-Checkbox__indicator{border-top-color:var(--colorNeutralStrokeAccessiblePressed);}", ".fuqx993:enabled:not(:checked):not(:indeterminate):active:hover~.fui-Checkbox__indicator{border-right-color:var(--colorNeutralStrokeAccessiblePressed);}", ".f1akce7s:enabled:not(:checked):not(:indeterminate):active:hover~.fui-Checkbox__indicator{border-left-color:var(--colorNeutralStrokeAccessiblePressed);}", ".feccz1o:enabled:not(:checked):not(:indeterminate):active:hover~.fui-Checkbox__indicator{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}", ".fqgvcms:enabled:checked:not(:indeterminate)~.fui-Checkbox__label{color:var(--colorNeutralForeground1);}", ".f1wvbx6q:enabled:checked:not(:indeterminate)~.fui-Checkbox__indicator{background-color:var(--colorCompoundBrandBackground);}", ".fcsc0bc:enabled:checked:not(:indeterminate)~.fui-Checkbox__indicator{color:var(--colorNeutralForegroundOnBrand);}", ".fkf9h0q:enabled:checked:not(:indeterminate)~.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandBackground);}", ".faeo8p5:enabled:checked:not(:indeterminate)~.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandBackground);}", ".f4rpdul:enabled:checked:not(:indeterminate)~.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandBackground);}", ".fsk3itm:enabled:checked:not(:indeterminate)~.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandBackground);}", ".f4wqdms:enabled:checked:not(:indeterminate):hover~.fui-Checkbox__indicator{background-color:var(--colorCompoundBrandBackgroundHover);}", ".ftufdon:enabled:checked:not(:indeterminate):hover~.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandBackgroundHover);}", ".f1ni78ii:enabled:checked:not(:indeterminate):hover~.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandBackgroundHover);}", ".f1pe82pw:enabled:checked:not(:indeterminate):hover~.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandBackgroundHover);}", ".fxl8eb7:enabled:checked:not(:indeterminate):hover~.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandBackgroundHover);}", ".f12pgwe7:enabled:checked:not(:indeterminate):active:hover~.fui-Checkbox__indicator{background-color:var(--colorCompoundBrandBackgroundPressed);}", ".f1c5u0pt:enabled:checked:not(:indeterminate):active:hover~.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandBackgroundPressed);}", ".fyfn4nz:enabled:checked:not(:indeterminate):active:hover~.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandBackgroundPressed);}", ".f1aaeu2t:enabled:checked:not(:indeterminate):active:hover~.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandBackgroundPressed);}", ".ffzx9q8:enabled:checked:not(:indeterminate):active:hover~.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandBackgroundPressed);}", ".f1rm0htn:enabled:indeterminate~.fui-Checkbox__label{color:var(--colorNeutralForeground1);}", ".fpb7n6l:enabled:indeterminate~.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandStroke);}", ".f1uwkm0d:enabled:indeterminate~.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandStroke);}", ".fakdbj6:enabled:indeterminate~.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandStroke);}", ".f180qsza:enabled:indeterminate~.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandStroke);}", ".f3nyagc:enabled:indeterminate~.fui-Checkbox__indicator{color:var(--colorCompoundBrandForeground1);}", ".f1eh922j:enabled:indeterminate:hover~.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandStrokeHover);}", ".f1f3l6lh:enabled:indeterminate:hover~.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandStrokeHover);}", ".faa1us6:enabled:indeterminate:hover~.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandStrokeHover);}", ".f1g6jlfz:enabled:indeterminate:hover~.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandStrokeHover);}", ".f1d2ycii:enabled:indeterminate:hover~.fui-Checkbox__indicator{color:var(--colorCompoundBrandForeground1Hover);}", ".f18ruat1:enabled:indeterminate:active:hover~.fui-Checkbox__indicator{border-top-color:var(--colorCompoundBrandStrokePressed);}", ".f18b6ltw:enabled:indeterminate:active:hover~.fui-Checkbox__indicator{border-right-color:var(--colorCompoundBrandStrokePressed);}", ".fd6ao2z:enabled:indeterminate:active:hover~.fui-Checkbox__indicator{border-left-color:var(--colorCompoundBrandStrokePressed);}", ".fdz9k82:enabled:indeterminate:active:hover~.fui-Checkbox__indicator{border-bottom-color:var(--colorCompoundBrandStrokePressed);}", ".f8c3d4w:enabled:indeterminate:active:hover~.fui-Checkbox__indicator{color:var(--colorCompoundBrandForeground1Pressed);}", ".fvxnmui:disabled{cursor:default;}", ".f1ceq7vh:disabled~.fui-Checkbox__label{color:var(--colorNeutralForegroundDisabled);}", ".f4ohyq5:disabled~.fui-Checkbox__indicator{border-top-color:var(--colorNeutralStrokeDisabled);}", ".f1kakd2g:disabled~.fui-Checkbox__indicator{border-right-color:var(--colorNeutralStrokeDisabled);}", ".f3ulah5:disabled~.fui-Checkbox__indicator{border-left-color:var(--colorNeutralStrokeDisabled);}", ".f5fda5m:disabled~.fui-Checkbox__indicator{border-bottom-color:var(--colorNeutralStrokeDisabled);}", ".f1c3drxw:disabled~.fui-Checkbox__indicator{color:var(--colorNeutralForegroundDisabled);}"],
152
+ "t": ["@media (forced-colors: active){.f2zvonr:disabled~.fui-Checkbox__label{color:GrayText;}}", "@media (forced-colors: active){.f8cdtmm:disabled~.fui-Checkbox__indicator{color:GrayText;}}", "@media (forced-colors: active){.f8701xt:disabled~.fui-Checkbox__indicator svg{color:GrayText;}}"]
128
153
  });
129
- var useInputStyles = react_make_styles_1.makeStyles({
130
- input: {
131
- opacity: 0,
132
- position: 'absolute',
133
- margin: 0,
134
- padding: 0,
135
- cursor: 'pointer',
136
- },
137
- disabled: {
138
- cursor: 'not-allowed',
139
- },
154
+
155
+ const useIndicatorStyles = /*#__PURE__*/react_1.__styles({
156
+ "base": {
157
+ "qb2dma": "fjgzulp",
158
+ "B7ck84d": "f1ewtqcl",
159
+ "Bnnss6s": "fi64zpg",
160
+ "mc9l5x": "f22iagw",
161
+ "Bt984gj": "f122n59",
162
+ "Brf1p80": "f4d9j23",
163
+ "B68tc82": "f1p9o1ba",
164
+ "Bmxbyg5": "f1sil6mw",
165
+ "B4j52fo": "f192inf7",
166
+ "Bekrc4i": ["f5tn483", "f1ojsxk5"],
167
+ "Bn0qgzm": "f1vxd6vx",
168
+ "ibv6hh": ["f1ojsxk5", "f5tn483"],
169
+ "icvyot": "fzkkow9",
170
+ "vrafjx": ["fcdblym", "fjik90z"],
171
+ "oivjwe": "fg706s2",
172
+ "wvpqe5": ["fjik90z", "fcdblym"],
173
+ "Bbmb7ep": ["f1g3puop", "fi2rrw2"],
174
+ "Beyfa6y": ["fi2rrw2", "f1g3puop"],
175
+ "B7oj6ja": ["f1rstyi9", "f1s4nn1u"],
176
+ "Btl43ni": ["f1s4nn1u", "f1rstyi9"],
177
+ "Bkfmm31": "f1w9h62z",
178
+ "Bkecrkj": "f1aehjj5"
179
+ },
180
+ "medium": {
181
+ "a9b677": "fjw5fx7",
182
+ "Bqenvij": "fd461yt",
183
+ "Be2twd7": "f1ugzwwg"
184
+ },
185
+ "large": {
186
+ "a9b677": "f64fuq3",
187
+ "Bqenvij": "fjamq6b",
188
+ "Be2twd7": "f4ybsrx"
189
+ },
190
+ "circular": {
191
+ "Bbmb7ep": ["f8fbkgy", "f1nfllo7"],
192
+ "Beyfa6y": ["f1nfllo7", "f8fbkgy"],
193
+ "B7oj6ja": ["f1djnp8u", "f1s8kh49"],
194
+ "Btl43ni": ["f1s8kh49", "f1djnp8u"]
195
+ }
196
+ }, {
197
+ "d": [".fjgzulp{-webkit-align-self:flex-start;-ms-flex-item-align:flex-start;align-self:flex-start;}", ".f1ewtqcl{box-sizing:border-box;}", ".fi64zpg{-webkit-flex-shrink:0;-ms-flex-negative:0;flex-shrink:0;}", ".f22iagw{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f4d9j23{-webkit-box-pack:center;-ms-flex-pack:center;-webkit-justify-content:center;justify-content:center;}", ".f1p9o1ba{overflow-x:hidden;}", ".f1sil6mw{overflow-y:hidden;}", ".f192inf7{border-top-width:var(--strokeWidthThin);}", ".f5tn483{border-right-width:var(--strokeWidthThin);}", ".f1ojsxk5{border-left-width:var(--strokeWidthThin);}", ".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}", ".fzkkow9{border-top-style:solid;}", ".fcdblym{border-right-style:solid;}", ".fjik90z{border-left-style:solid;}", ".fg706s2{border-bottom-style:solid;}", ".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}", ".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}", ".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}", ".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}", ".f1w9h62z{fill:currentColor;}", ".f1aehjj5{pointer-events:none;}", ".fjw5fx7{width:16px;}", ".fd461yt{height:16px;}", ".f1ugzwwg{font-size:12px;}", ".f64fuq3{width:20px;}", ".fjamq6b{height:20px;}", ".f4ybsrx{font-size:16px;}", ".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}", ".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}", ".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}", ".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}"]
140
198
  });
141
- var useIndicatorStyles = react_make_styles_1.makeStyles({
142
- box: function (theme) { return ({
143
- width: '100%',
144
- height: '100%',
145
- fill: 'currentColor',
146
- overflow: 'hidden',
147
- display: 'flex',
148
- alignItems: 'center',
149
- justifyContent: 'center',
150
- position: 'absolute',
151
- boxSizing: 'border-box',
152
- borderStyle: 'solid',
153
- borderRadius: theme.borderRadiusSmall,
154
- borderWidth: theme.strokeWidthThin,
155
- }); },
156
- circular: function (theme) { return ({
157
- borderRadius: theme.borderRadiusCircular,
158
- }); },
199
+
200
+ const useLabelStyles = /*#__PURE__*/react_1.__styles({
201
+ "base": {
202
+ "qb2dma": "f7nlbp4",
203
+ "famaaq": "f1xqy1su",
204
+ "Bceei9c": "fpo1scq",
205
+ "sj55zd": "f1ym3bx4"
206
+ },
207
+ "medium": {
208
+ "B6of3ja": "fjzwpt6",
209
+ "t21cq0": ["f11qmguv", "f1tyq0we"],
210
+ "jrapky": "fh6j2fo",
211
+ "Frg6f3": ["f1tyq0we", "f11qmguv"]
212
+ },
213
+ "large": {
214
+ "B6of3ja": "f1xlvstr",
215
+ "t21cq0": ["f11qmguv", "f1tyq0we"],
216
+ "jrapky": "f49ad5g",
217
+ "Frg6f3": ["f1tyq0we", "f11qmguv"]
218
+ }
219
+ }, {
220
+ "d": [".f7nlbp4{-webkit-align-self:center;-ms-flex-item-align:center;align-self:center;}", ".f1xqy1su{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;}", ".fpo1scq{cursor:inherit;}", ".f1ym3bx4{color:inherit;}", ".fjzwpt6{margin-top:calc((16px - var(--lineHeightBase300)) / 2);}", ".f11qmguv{margin-right:0;}", ".f1tyq0we{margin-left:0;}", ".fh6j2fo{margin-bottom:calc((16px - var(--lineHeightBase300)) / 2);}", ".f1xlvstr{margin-top:calc((20px - var(--lineHeightBase300)) / 2);}", ".f49ad5g{margin-bottom:calc((20px - var(--lineHeightBase300)) / 2);}"]
159
221
  });
160
222
  /**
161
223
  * Apply styling to the Checkbox slots based on the state
162
224
  */
163
- var useCheckboxStyles = function (state) {
164
- var checkedState = state.checked === 'mixed' ? 'mixed' : state.checked ? 'checked' : 'unchecked';
165
- var indicatorStyles = useIndicatorStyles();
166
- var inputStyles = useInputStyles();
167
- var containerStyles = useContainerStyles();
168
- var styles = useStyles();
169
- state.root.className = react_make_styles_1.mergeClasses(styles.root, styles.focusIndicator, styles[checkedState], state.input.disabled && styles.disabled, state.root.className);
170
- state.input.className = react_make_styles_1.mergeClasses(containerStyles[state.size], inputStyles.input, state.input.disabled && inputStyles.disabled, state.input.className);
171
- state.containerClassName = react_make_styles_1.mergeClasses(containerStyles.container, containerStyles[state.size], !!state.root.children && containerStyles[state.labelPosition]);
172
- state.indicator.className = react_make_styles_1.mergeClasses(indicatorStyles.box, containerStyles[state.size], state.circular && indicatorStyles.circular, 'ms-checkbox-indicator', state.indicator.className);
173
- return state;
225
+
226
+
227
+ const useCheckboxStyles_unstable = state => {
228
+ const rootStyles = useRootStyles();
229
+ state.root.className = react_1.mergeClasses(exports.checkboxClassNames.root, rootStyles.base, state.root.className);
230
+ const inputStyles = useInputStyles();
231
+ state.input.className = react_1.mergeClasses(exports.checkboxClassNames.input, inputStyles.base, state.input.className);
232
+ const indicatorStyles = useIndicatorStyles();
233
+
234
+ if (state.indicator) {
235
+ state.indicator.className = react_1.mergeClasses(exports.checkboxClassNames.indicator, indicatorStyles.base, indicatorStyles[state.size], state.shape === 'circular' && indicatorStyles.circular, state.indicator.className);
236
+ }
237
+
238
+ const labelStyles = useLabelStyles();
239
+
240
+ if (state.label) {
241
+ state.label.className = react_1.mergeClasses(exports.checkboxClassNames.label, labelStyles.base, labelStyles[state.size], state.label.className);
242
+ }
243
+
244
+ return state;
174
245
  };
175
- exports.useCheckboxStyles = useCheckboxStyles;
246
+
247
+ exports.useCheckboxStyles_unstable = useCheckboxStyles_unstable;
176
248
  //# sourceMappingURL=useCheckboxStyles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"useCheckboxStyles.js","sourceRoot":"","sources":["../../../src/components/Checkbox/useCheckboxStyles.ts"],"names":[],"mappings":";;;AAAA,iEAAuE;AACvE,yDAAkE;AAGlE;;GAEG;AACH,IAAM,SAAS,GAAG,8BAAU,CAAC;IAC3B,IAAI,EAAE,UAAA,KAAK,IAAI,OAAA,CAAC;QACd,OAAO,EAAE,aAAa;QACtB,QAAQ,EAAE,UAAU;QACpB,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,QAAQ;QACpB,OAAO,EAAE,KAAK;QACd,UAAU,EAAE,MAAM;QAClB,MAAM,EAAE,SAAS;KAClB,CAAC,EARa,CAQb;IAEF,QAAQ,EAAE,UAAA,KAAK,IAAI,OAAA,CAAC;QAClB,KAAK,EAAE,KAAK,CAAC,8BAA8B;QAC3C,MAAM,EAAE,SAAS;QAEjB,0BAA0B,EAAE;YAC1B,WAAW,EAAE,KAAK,CAAC,0BAA0B;YAC7C,KAAK,EAAE,KAAK,CAAC,8BAA8B;YAC3C,eAAe,EAAE,KAAK,CAAC,uBAAuB;SAC/C;QAED,QAAQ,EAAE;YACR,0BAA0B,EAAE;gBAC1B,WAAW,EAAE,KAAK,CAAC,0BAA0B;gBAC7C,KAAK,EAAE,KAAK,CAAC,8BAA8B;gBAC3C,eAAe,EAAE,KAAK,CAAC,uBAAuB;aAC/C;SACF;QAED,SAAS,EAAE;YACT,0BAA0B,EAAE;gBAC1B,WAAW,EAAE,KAAK,CAAC,0BAA0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AK,CAAC,IAAP,CAHW,EAItB,KAAK,CAAC,KAAN,CAAY,SAJU,CAAxB;AAMD;;AAED,SAAO,KAAP;AACD,CA7BM;;AAAM,OAAA,CAAA,0BAAA,GAA0B,0BAA1B","sourcesContent":["import { shorthands, makeStyles, mergeClasses } from '@griffel/react';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\nimport { CheckboxSlots, CheckboxState } from './Checkbox.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\n\n/**\n * @deprecated Use `checkboxClassNames.root` instead.\n */\nexport const checkboxClassName = 'fui-Checkbox';\nexport const checkboxClassNames: SlotClassNames<CheckboxSlots> = {\n root: 'fui-Checkbox',\n label: 'fui-Checkbox__label',\n input: 'fui-Checkbox__input',\n indicator: 'fui-Checkbox__indicator',\n};\n\n// TODO replace these spacing constants with theme values once they're on the theme\nconst spacingHorizontalS = '8px';\nconst spacingHorizontalM = '12px';\n\n// The indicator size is used by the indicator and label styles\nconst indicatorSizeMedium = '16px';\nconst indicatorSizeLarge = '20px';\n\nconst useRootStyles = makeStyles({\n base: {\n position: 'relative',\n display: 'inline-flex',\n columnGap: spacingHorizontalM,\n ...shorthands.padding(spacingHorizontalS),\n ...createFocusOutlineStyle({ style: {}, selector: 'focus-within' }),\n },\n});\n\nconst useInputStyles = makeStyles({\n base: {\n position: 'absolute',\n left: 0,\n top: 0,\n width: '100%',\n height: '100%',\n boxSizing: 'border-box',\n ...shorthands.margin(0),\n opacity: 0,\n cursor: 'pointer',\n\n // When unchecked, hide the the checkmark icon (child of the indicator slot)\n [`:not(:checked):not(:indeterminate) ~ .${checkboxClassNames.indicator} > *`]: {\n opacity: 0,\n },\n\n // Colors for the unchecked state\n ':enabled:not(:checked):not(:indeterminate)': {\n [`& ~ .${checkboxClassNames.label}`]: {\n color: tokens.colorNeutralForeground3,\n },\n [`& ~ .${checkboxClassNames.indicator}`]: {\n ...shorthands.borderColor(tokens.colorNeutralStrokeAccessible),\n },\n\n ':hover': {\n [`& ~ .${checkboxClassNames.label}`]: {\n color: tokens.colorNeutralForeground2,\n },\n [`& ~ .${checkboxClassNames.indicator}`]: {\n ...shorthands.borderColor(tokens.colorNeutralStrokeAccessibleHover),\n },\n },\n\n ':active:hover': {\n [`& ~ .${checkboxClassNames.label}`]: {\n color: tokens.colorNeutralForeground1,\n },\n [`& ~ .${checkboxClassNames.indicator}`]: {\n ...shorthands.borderColor(tokens.colorNeutralStrokeAccessiblePressed),\n },\n },\n },\n\n // Colors for the checked state\n ':enabled:checked:not(:indeterminate)': {\n [`& ~ .${checkboxClassNames.label}`]: {\n color: tokens.colorNeutralForeground1,\n },\n [`& ~ .${checkboxClassNames.indicator}`]: {\n backgroundColor: tokens.colorCompoundBrandBackground,\n color: tokens.colorNeutralForegroundOnBrand,\n ...shorthands.borderColor(tokens.colorCompoundBrandBackground),\n },\n\n ':hover': {\n [`& ~ .${checkboxClassNames.indicator}`]: {\n backgroundColor: tokens.colorCompoundBrandBackgroundHover,\n ...shorthands.borderColor(tokens.colorCompoundBrandBackgroundHover),\n },\n },\n\n ':active:hover': {\n [`& ~ .${checkboxClassNames.indicator}`]: {\n backgroundColor: tokens.colorCompoundBrandBackgroundPressed,\n ...shorthands.borderColor(tokens.colorCompoundBrandBackgroundPressed),\n },\n },\n },\n\n // Colors for the mixed state\n ':enabled:indeterminate': {\n [`& ~ .${checkboxClassNames.label}`]: {\n color: tokens.colorNeutralForeground1,\n },\n [`& ~ .${checkboxClassNames.indicator}`]: {\n ...shorthands.borderColor(tokens.colorCompoundBrandStroke),\n color: tokens.colorCompoundBrandForeground1,\n },\n\n ':hover': {\n [`& ~ .${checkboxClassNames.indicator}`]: {\n ...shorthands.borderColor(tokens.colorCompoundBrandStrokeHover),\n color: tokens.colorCompoundBrandForeground1Hover,\n },\n },\n\n ':active:hover': {\n [`& ~ .${checkboxClassNames.indicator}`]: {\n ...shorthands.borderColor(tokens.colorCompoundBrandStrokePressed),\n color: tokens.colorCompoundBrandForeground1Pressed,\n },\n },\n },\n\n ':disabled': {\n cursor: 'default',\n\n [`& ~ .${checkboxClassNames.label}`]: {\n color: tokens.colorNeutralForegroundDisabled,\n '@media (forced-colors: active)': {\n color: 'GrayText',\n },\n },\n [`& ~ .${checkboxClassNames.indicator}`]: {\n ...shorthands.borderColor(tokens.colorNeutralStrokeDisabled),\n color: tokens.colorNeutralForegroundDisabled,\n '@media (forced-colors: active)': {\n color: 'GrayText',\n },\n },\n [`& ~ .${checkboxClassNames.indicator} svg`]: {\n '@media (forced-colors: active)': {\n color: 'GrayText',\n },\n },\n },\n },\n});\n\nconst useIndicatorStyles = makeStyles({\n base: {\n alignSelf: 'flex-start',\n boxSizing: 'border-box',\n flexShrink: 0,\n\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n ...shorthands.overflow('hidden'),\n\n ...shorthands.border(tokens.strokeWidthThin, 'solid'),\n ...shorthands.borderRadius(tokens.borderRadiusSmall),\n fill: 'currentColor',\n pointerEvents: 'none',\n },\n\n medium: {\n width: indicatorSizeMedium,\n height: indicatorSizeMedium,\n fontSize: '12px',\n },\n\n large: {\n width: indicatorSizeLarge,\n height: indicatorSizeLarge,\n fontSize: '16px',\n },\n\n circular: {\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n },\n});\n\nconst useLabelStyles = makeStyles({\n base: {\n alignSelf: 'center',\n userSelect: 'none',\n cursor: 'inherit',\n color: 'inherit',\n },\n\n // Use a (negative) margin to account for the difference between the indicator's height and the label's line height.\n // This prevents the label from expanding the height of the Checkbox, but preserves line height if the label wraps.\n medium: {\n ...shorthands.margin(`calc((${indicatorSizeMedium} - ${tokens.lineHeightBase300}) / 2)`, 0),\n },\n large: {\n ...shorthands.margin(`calc((${indicatorSizeLarge} - ${tokens.lineHeightBase300}) / 2)`, 0),\n },\n});\n\n/**\n * Apply styling to the Checkbox slots based on the state\n */\nexport const useCheckboxStyles_unstable = (state: CheckboxState): CheckboxState => {\n const rootStyles = useRootStyles();\n state.root.className = mergeClasses(checkboxClassNames.root, rootStyles.base, state.root.className);\n\n const inputStyles = useInputStyles();\n state.input.className = mergeClasses(checkboxClassNames.input, inputStyles.base, state.input.className);\n\n const indicatorStyles = useIndicatorStyles();\n if (state.indicator) {\n state.indicator.className = mergeClasses(\n checkboxClassNames.indicator,\n indicatorStyles.base,\n indicatorStyles[state.size],\n state.shape === 'circular' && indicatorStyles.circular,\n state.indicator.className,\n );\n }\n\n const labelStyles = useLabelStyles();\n if (state.label) {\n state.label.className = mergeClasses(\n checkboxClassNames.label,\n labelStyles.base,\n labelStyles[state.size],\n state.label.className,\n );\n }\n\n return state;\n};\n"],"sourceRoot":"../src/"}
@@ -1 +1,2 @@
1
- export * from './Checkbox';
1
+ export { Checkbox, checkboxClassName, checkboxClassNames, renderCheckbox_unstable, useCheckboxStyles_unstable, useCheckbox_unstable, } from './Checkbox';
2
+ export type { CheckboxOnChangeData, CheckboxProps, CheckboxSlots, CheckboxState } from './Checkbox';
@@ -1,5 +1,47 @@
1
1
  "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- var tslib_1 = require("tslib");
4
- tslib_1.__exportStar(require("./Checkbox"), exports);
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useCheckbox_unstable = exports.useCheckboxStyles_unstable = exports.renderCheckbox_unstable = exports.checkboxClassNames = exports.checkboxClassName = exports.Checkbox = void 0;
7
+
8
+ var Checkbox_1 = /*#__PURE__*/require("./Checkbox");
9
+
10
+ Object.defineProperty(exports, "Checkbox", {
11
+ enumerable: true,
12
+ get: function () {
13
+ return Checkbox_1.Checkbox;
14
+ }
15
+ }); // eslint-disable-next-line deprecation/deprecation
16
+
17
+ Object.defineProperty(exports, "checkboxClassName", {
18
+ enumerable: true,
19
+ get: function () {
20
+ return Checkbox_1.checkboxClassName;
21
+ }
22
+ });
23
+ Object.defineProperty(exports, "checkboxClassNames", {
24
+ enumerable: true,
25
+ get: function () {
26
+ return Checkbox_1.checkboxClassNames;
27
+ }
28
+ });
29
+ Object.defineProperty(exports, "renderCheckbox_unstable", {
30
+ enumerable: true,
31
+ get: function () {
32
+ return Checkbox_1.renderCheckbox_unstable;
33
+ }
34
+ });
35
+ Object.defineProperty(exports, "useCheckboxStyles_unstable", {
36
+ enumerable: true,
37
+ get: function () {
38
+ return Checkbox_1.useCheckboxStyles_unstable;
39
+ }
40
+ });
41
+ Object.defineProperty(exports, "useCheckbox_unstable", {
42
+ enumerable: true,
43
+ get: function () {
44
+ return Checkbox_1.useCheckbox_unstable;
45
+ }
46
+ });
5
47
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B"}
1
+ {"version":3,"sources":["index.ts"],"names":[],"mappings":";;;;;;;AAAA,IAAA,UAAA,gBAAA,OAAA,CAAA,YAAA,CAAA;;AACE,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,UAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,UAAA,CAAA,QAAA;AAAQ;AAAR,CAAA,E,CACA;;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,mBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,UAAA,CAAA,iBAAA;AAAiB;AAAjB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,oBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,UAAA,CAAA,kBAAA;AAAkB;AAAlB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,yBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,UAAA,CAAA,uBAAA;AAAuB;AAAvB,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,4BAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,UAAA,CAAA,0BAAA;AAA0B;AAA1B,CAAA;AACA,MAAA,CAAA,cAAA,CAAA,OAAA,EAAA,sBAAA,EAAA;AAAA,EAAA,UAAA,EAAA,IAAA;AAAA,EAAA,GAAA,EAAA,YAAA;AAAA,WAAA,UAAA,CAAA,oBAAA;AAAoB;AAApB,CAAA","sourcesContent":["export {\n Checkbox,\n // eslint-disable-next-line deprecation/deprecation\n checkboxClassName,\n checkboxClassNames,\n renderCheckbox_unstable,\n useCheckboxStyles_unstable,\n useCheckbox_unstable,\n} from './Checkbox';\nexport type { CheckboxOnChangeData, CheckboxProps, CheckboxSlots, CheckboxState } from './Checkbox';\n"],"sourceRoot":"../src/"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-checkbox",
3
- "version": "9.0.0-beta.1",
3
+ "version": "9.0.0-beta.12",
4
4
  "description": "Fluent UI checkbox component",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -18,33 +18,25 @@
18
18
  "just": "just-scripts",
19
19
  "lint": "just-scripts lint",
20
20
  "start": "yarn storybook",
21
- "test": "jest",
21
+ "test": "jest --passWithNoTests",
22
22
  "docs": "api-extractor run --config=config/api-extractor.local.json --local",
23
- "build:local": "tsc -p . --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output dist/react-checkbox/src && yarn docs",
24
- "storybook": "start-storybook"
23
+ "build:local": "tsc -p ./tsconfig.lib.json --module esnext --emitDeclarationOnly && node ../../scripts/typescript/normalize-import --output ./dist/packages/react-checkbox/src && yarn docs",
24
+ "storybook": "node ../../scripts/storybook/runner",
25
+ "type-check": "tsc -b tsconfig.json"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@fluentui/eslint-plugin": "*",
28
- "@fluentui/jest-serializer-make-styles": "9.0.0-beta.1",
29
29
  "@fluentui/react-conformance": "*",
30
- "@fluentui/react-conformance-make-styles": "9.0.0-beta.1",
31
- "@fluentui/scripts": "^1.0.0",
32
- "@types/enzyme": "3.10.3",
33
- "@types/enzyme-adapter-react-16": "1.0.3",
34
- "@types/react": "16.9.42",
35
- "@types/react-dom": "16.9.10",
36
- "@types/react-test-renderer": "^16.0.0",
37
- "enzyme": "~3.10.0",
38
- "enzyme-adapter-react-16": "^1.15.0",
39
- "react": "16.8.6",
40
- "react-dom": "16.8.6",
41
- "react-test-renderer": "^16.3.0"
30
+ "@fluentui/react-conformance-griffel": "9.0.0-beta.4",
31
+ "@fluentui/scripts": "^1.0.0"
42
32
  },
43
33
  "dependencies": {
44
- "@fluentui/react-make-styles": "9.0.0-beta.1",
45
- "@fluentui/react-utilities": "9.0.0-beta.1",
46
- "@fluentui/react-label": "9.0.0-beta.1",
47
- "@fluentui/react-tabster": "9.0.0-beta.1",
34
+ "@fluentui/react-icons": "^2.0.166-rc.3",
35
+ "@fluentui/react-label": "9.0.0-beta.10",
36
+ "@fluentui/react-tabster": "9.0.0-rc.7",
37
+ "@fluentui/react-theme": "9.0.0-rc.5",
38
+ "@fluentui/react-utilities": "9.0.0-rc.6",
39
+ "@griffel/react": "1.0.3",
48
40
  "tslib": "^2.1.0"
49
41
  },
50
42
  "peerDependencies": {
@@ -54,11 +46,17 @@
54
46
  "react-dom": ">=16.8.0 <18.0.0"
55
47
  },
56
48
  "beachball": {
57
- "tag": "beta",
58
49
  "disallowedChangeTypes": [
59
50
  "major",
60
51
  "minor",
61
52
  "patch"
62
53
  ]
54
+ },
55
+ "exports": {
56
+ ".": {
57
+ "types": "./lib/index.d.ts",
58
+ "import": "./lib/index.js",
59
+ "require": "./lib-commonjs/index.js"
60
+ }
63
61
  }
64
62
  }
@@ -1,4 +0,0 @@
1
- import { IsConformantOptions } from '@fluentui/react-conformance';
2
- export declare function isConformant<TProps = {}>(testInfo: Omit<IsConformantOptions<TProps>, 'componentPath'> & {
3
- componentPath?: string;
4
- }): void;
@@ -1,12 +0,0 @@
1
- import { isConformant as baseIsConformant } from '@fluentui/react-conformance';
2
- import makeStylesTests from '@fluentui/react-conformance-make-styles';
3
- export function isConformant(testInfo) {
4
- var defaultOptions = {
5
- asPropHandlesRef: true,
6
- componentPath: module.parent.filename.replace('.test', ''),
7
- extraTests: makeStylesTests,
8
- skipAsPropTests: true,
9
- };
10
- baseIsConformant(defaultOptions, testInfo);
11
- }
12
- //# sourceMappingURL=isConformant.js.map