@fluentui/react-spinbutton 9.75.0-experimental.css-modules.20261031-810ab07afb.0 → 9.75.1-experimental.positioning-engine.20261103-19efe125d1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,22 +1,22 @@
1
1
  # Change Log - @fluentui/react-spinbutton
2
2
 
3
- <!-- This log was last generated on Sat, 31 Oct 2026 11:08:55 GMT and should not be manually modified. -->
3
+ <!-- This log was last generated on Tue, 03 Nov 2026 14:18:10 GMT and should not be manually modified. -->
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## [9.75.0-experimental.css-modules.20261031-810ab07afb.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-spinbutton_v9.75.0-experimental.css-modules.20261031-810ab07afb.0)
7
+ ## [9.75.1-experimental.positioning-engine.20261103-19efe125d1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-spinbutton_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
8
8
 
9
- Sat, 31 Oct 2026 11:08:55 GMT
9
+ Tue, 03 Nov 2026 14:18:10 GMT
10
10
 
11
11
  ### Changes
12
12
 
13
- - Release 9.75.0-experimental.css-modules.20261031-810ab07afb ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
- - Bump @fluentui/keyboard-keys to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
- - Bump @fluentui/react-field to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
- - Bump @fluentui/react-jsx-runtime to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
- - Bump @fluentui/react-shared-contexts to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
- - Bump @fluentui/react-theme to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
- - Bump @fluentui/react-utilities to v9.75.0-experimental.css-modules.20261031-810ab07afb.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
13
+ - Release 9.75.1-experimental.positioning-engine.20261103-19efe125d1 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by 257645319+office-ogx-auth-helper[bot]@users.noreply.github.com)
14
+ - Bump @fluentui/keyboard-keys to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
15
+ - Bump @fluentui/react-field to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
16
+ - Bump @fluentui/react-jsx-runtime to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
17
+ - Bump @fluentui/react-shared-contexts to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
18
+ - Bump @fluentui/react-theme to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
19
+ - Bump @fluentui/react-utilities to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
20
20
 
21
21
  ## [9.6.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-spinbutton_v9.6.8)
22
22
 
package/README.md CHANGED
@@ -33,9 +33,3 @@ See [Spec.md](./Spec.md).
33
33
  ### Migration Guide
34
34
 
35
35
  When upgrading to Fluent UI v9 see the [upgrade guide](https://react.fluentui.dev/?path=/docs/concepts-migration-from-v8-components-spinbutton-migration--docs) for guidance on updating to the latest SpinButton implementation.
36
-
37
- ## Opt-in CSS Modules styles
38
-
39
- CSS Modules alternatives are available for `SpinButton`. The default exports and component imports continue to use Griffel.
40
-
41
- To opt in, configure your bundler to replace each `use<Component>Styles.styles.js` module with its adjacent `use<Component>Styles.styles.css.js` alternative (or `.styles.ts` with `.styles.css.ts` for source builds). Apply the replacement consistently to client and server bundles. The CSS loader must provide a default class-name map and retain the adjacent `.module.css` asset, including CSS from dependencies. All component rules are in `@layer fluentui` and use the theme custom properties supplied by `FluentProvider`.
package/package.json CHANGED
@@ -1,29 +1,26 @@
1
1
  {
2
2
  "name": "@fluentui/react-spinbutton",
3
- "version": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
3
+ "version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
4
4
  "description": "Fluent UI React SpinButton component.",
5
5
  "main": "lib-commonjs/index.cjs",
6
6
  "module": "lib/index.js",
7
7
  "typings": "./dist/index.d.ts",
8
- "sideEffects": [
9
- "**/*.css"
10
- ],
8
+ "sideEffects": false,
11
9
  "repository": {
12
10
  "type": "git",
13
11
  "url": "https://github.com/microsoft/fluentui"
14
12
  },
15
13
  "license": "MIT",
16
14
  "dependencies": {
17
- "@fluentui/keyboard-keys": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
18
- "@fluentui/react-field": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
15
+ "@fluentui/keyboard-keys": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
16
+ "@fluentui/react-field": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
19
17
  "@fluentui/react-icons": "^2.0.245",
20
- "@fluentui/react-jsx-runtime": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
21
- "@fluentui/react-shared-contexts": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
22
- "@fluentui/react-theme": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
23
- "@fluentui/react-utilities": "9.75.0-experimental.css-modules.20261031-810ab07afb.0",
18
+ "@fluentui/react-jsx-runtime": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
19
+ "@fluentui/react-shared-contexts": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
20
+ "@fluentui/react-theme": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
21
+ "@fluentui/react-utilities": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
24
22
  "@griffel/react": "^1.5.32",
25
- "@swc/helpers": "^0.5.1",
26
- "clsx": "^2.1.1"
23
+ "@swc/helpers": "^0.5.1"
27
24
  },
28
25
  "peerDependencies": {
29
26
  "@types/react": ">=16.14.0 <20.0.0",
@@ -1,373 +0,0 @@
1
- @layer fluentui {
2
- .medium {
3
- }
4
- .root::before {
5
- content: '';
6
- box-sizing: border-box;
7
- position: absolute;
8
- top: 0;
9
- inset-inline-end: 0;
10
- bottom: 0;
11
- inset-inline-start: 0;
12
- pointer-events: none;
13
- z-index: 10;
14
- border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
15
- border-bottom-color: var(--colorNeutralStrokeAccessible);
16
- border-radius: var(--borderRadiusMedium);
17
- }
18
-
19
- .root::after {
20
- box-sizing: border-box;
21
- content: '';
22
- position: absolute;
23
- inset-inline-end: 0;
24
- bottom: 0;
25
- inset-inline-start: 0;
26
- z-index: 20;
27
- height: max(var(--strokeWidthThick), var(--borderRadiusMedium));
28
- border-end-start-radius: var(--borderRadiusMedium);
29
- border-end-end-radius: var(--borderRadiusMedium);
30
- border-bottom: var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);
31
- clip-path: inset(calc(100% - var(--strokeWidthThick)) 0 0 0);
32
- transform: scaleX(0);
33
- transition-property: transform;
34
- transition-duration: var(--durationUltraFast);
35
- transition-delay: var(--curveAccelerateMid);
36
- }
37
-
38
- .root:focus-within::after {
39
- transform: scaleX(1);
40
- transition-property: transform;
41
- transition-duration: var(--durationNormal);
42
- transition-delay: var(--curveDecelerateMid);
43
- }
44
-
45
- .root:focus-within:active::after {
46
- border-bottom-color: var(--colorCompoundBrandStrokePressed);
47
- }
48
-
49
- .root:focus-within {
50
- outline: var(--strokeWidthThick) solid transparent;
51
- }
52
-
53
- .root {
54
- display: inline-grid;
55
- grid-template-columns: 1fr var(--spacingHorizontalXXL);
56
- grid-template-rows: 1fr 1fr;
57
- column-gap: var(--spacingHorizontalXS);
58
- row-gap: 0;
59
- position: relative;
60
- isolation: isolate;
61
- vertical-align: middle;
62
- background-color: var(--colorNeutralBackground1);
63
- min-height: var(--spacingHorizontalXXXL);
64
- padding: 0 0 0 var(--spacingHorizontalMNudge);
65
- border-radius: var(--borderRadiusMedium);
66
- }
67
-
68
- .root:where(:dir(rtl)) {
69
- padding: 0 var(--spacingHorizontalMNudge) 0 0;
70
- }
71
-
72
- .small {
73
- min-height: var(--spacingHorizontalXXL);
74
- font-family: var(--fontFamilyBase);
75
- font-size: var(--fontSizeBase200);
76
- font-weight: var(--fontWeightRegular);
77
- line-height: var(--lineHeightBase200);
78
- padding-inline-start: var(--spacingHorizontalS);
79
- }
80
-
81
- .underline::before {
82
- border-top-width: 0;
83
- border-inline-end-width: 0;
84
- border-bottom-width: var(--strokeWidthThin);
85
- border-inline-start-width: 0;
86
- border-radius: var(--borderRadiusNone);
87
- }
88
-
89
- .filled::before {
90
- border: var(--strokeWidthThin) solid var(--colorTransparentStroke);
91
- }
92
-
93
- .filled-darker {
94
- background-color: var(--colorNeutralBackground3);
95
- }
96
-
97
- .filled-lighter {
98
- background-color: var(--colorNeutralBackground1);
99
- }
100
-
101
- .root:where(.outline:not(.disabled)):hover::before {
102
- border-top-color: var(--colorNeutralStroke1Hover);
103
- border-inline-end-color: var(--colorNeutralStroke1Hover);
104
- border-bottom-color: var(--colorNeutralStrokeAccessibleHover);
105
- border-inline-start-color: var(--colorNeutralStroke1Hover);
106
- }
107
-
108
- .root:where(.outline:not(.disabled)):active::before,
109
- .root:where(.outline:not(.disabled)):focus-within::before {
110
- border-top-color: var(--colorNeutralStroke1Pressed);
111
- border-inline-end-color: var(--colorNeutralStroke1Pressed);
112
- border-bottom-color: var(--colorNeutralStrokeAccessiblePressed);
113
- border-inline-start-color: var(--colorNeutralStroke1Pressed);
114
- }
115
-
116
- .root:where(.underline:not(.disabled)):hover::before {
117
- border-bottom-color: var(--colorNeutralStrokeAccessibleHover);
118
- }
119
-
120
- .root:where(.underline:not(.disabled)):active::before,
121
- .root:where(.underline:not(.disabled)):focus-within::before {
122
- border-bottom-color: var(--colorNeutralStrokeAccessiblePressed);
123
- }
124
-
125
- .root:where(.underline:not(.disabled))::after {
126
- border-radius: var(--borderRadiusNone);
127
- }
128
-
129
- .root:where(.filled:not(.disabled)):hover::before,
130
- .root:where(.filled:not(.disabled)):focus-within::before {
131
- border-top-color: var(--colorTransparentStrokeInteractive);
132
- border-inline-end-color: var(--colorTransparentStrokeInteractive);
133
- border-bottom-color: var(--colorTransparentStrokeInteractive);
134
- border-inline-start-color: var(--colorTransparentStrokeInteractive);
135
- }
136
-
137
- .invalid:where(:not(.disabled)):not(:focus-within)::before,
138
- .invalid:where(:not(.disabled)):hover:not(:focus-within)::before {
139
- border-top-color: var(--colorPaletteRedBorder2);
140
- border-inline-end-color: var(--colorPaletteRedBorder2);
141
- border-bottom-color: var(--colorPaletteRedBorder2);
142
- border-inline-start-color: var(--colorPaletteRedBorder2);
143
- }
144
-
145
- .disabled::before {
146
- border-top-color: var(--colorNeutralStrokeDisabled);
147
- border-inline-end-color: var(--colorNeutralStrokeDisabled);
148
- border-bottom-color: var(--colorNeutralStrokeDisabled);
149
- border-inline-start-color: var(--colorNeutralStrokeDisabled);
150
- }
151
-
152
- .disabled {
153
- cursor: not-allowed;
154
- background-color: var(--colorTransparentBackground);
155
- }
156
-
157
- .input::placeholder {
158
- color: var(--colorNeutralForeground4);
159
- opacity: 1;
160
- }
161
-
162
- .input {
163
- grid-column-start: 1;
164
- grid-column-end: 2;
165
- grid-row-start: 1;
166
- grid-row-end: 3;
167
- outline-style: none;
168
- border: 0;
169
- padding: 0;
170
- color: var(--colorNeutralForeground1);
171
- background-color: transparent;
172
- font-family: inherit;
173
- font-size: inherit;
174
- font-weight: inherit;
175
- line-height: inherit;
176
- width: 100%;
177
- }
178
-
179
- :where(.disabled) > .input::placeholder {
180
- color: var(--colorNeutralForegroundDisabled);
181
- }
182
-
183
- :where(.disabled) > .input {
184
- color: var(--colorNeutralForegroundDisabled);
185
- cursor: not-allowed;
186
- background-color: var(--colorTransparentBackground);
187
- }
188
-
189
- .incrementButton:active,
190
- .decrementButton:active {
191
- outline-style: none;
192
- }
193
-
194
- .incrementButton:enabled:hover,
195
- .decrementButton:enabled:hover {
196
- cursor: pointer;
197
- color: var(--colorNeutralForeground3Hover);
198
- background-color: var(--colorSubtleBackgroundHover);
199
- }
200
-
201
- .incrementButton:enabled:active,
202
- .decrementButton:enabled:active {
203
- color: var(--colorNeutralForeground3Pressed);
204
- background-color: var(--colorSubtleBackgroundPressed);
205
- }
206
-
207
- .incrementButton:enabled:global(.fui-SpinButton__button_active),
208
- .decrementButton:enabled:global(.fui-SpinButton__button_active) {
209
- color: var(--colorNeutralForeground3Pressed);
210
- background-color: var(--colorSubtleBackgroundPressed);
211
- }
212
-
213
- .incrementButton:disabled,
214
- .decrementButton:disabled {
215
- cursor: not-allowed;
216
- color: var(--colorNeutralForegroundDisabled);
217
- }
218
-
219
- .incrementButton,
220
- .decrementButton {
221
- display: inline-flex;
222
- width: var(--spacingHorizontalXXL);
223
- align-items: center;
224
- justify-content: center;
225
- border: 0;
226
- position: absolute;
227
- outline-style: none;
228
- height: var(--spacingHorizontalL);
229
- background-color: transparent;
230
- color: var(--colorNeutralForeground3);
231
- grid-column-start: 2;
232
- border-radius: 0;
233
- padding: 0 calc(var(--spacingHorizontalXS) * 1.25) 0 calc(var(--spacingHorizontalXS) * 1.25);
234
- }
235
-
236
- .incrementButton {
237
- grid-row-start: 1;
238
- border-start-end-radius: var(--borderRadiusMedium);
239
- padding-top: var(--spacingHorizontalXS);
240
- padding-bottom: var(--strokeWidthThin);
241
- }
242
-
243
- .decrementButton {
244
- grid-row-start: 2;
245
- border-end-end-radius: var(--borderRadiusMedium);
246
- padding-top: var(--strokeWidthThin);
247
- padding-bottom: var(--spacingHorizontalXS);
248
- }
249
-
250
- :where(.small) > .incrementButton {
251
- padding: var(--strokeWidthThicker) var(--spacingHorizontalSNudge) 0px var(--spacingHorizontalXS);
252
- height: var(--spacingHorizontalM);
253
- }
254
-
255
- :where(.small) > .incrementButton:where(:dir(rtl)) {
256
- padding: var(--strokeWidthThicker) var(--spacingHorizontalXS) 0px var(--spacingHorizontalSNudge);
257
- }
258
-
259
- :where(.small) > .decrementButton {
260
- padding: 0px var(--spacingHorizontalSNudge) var(--strokeWidthThicker) var(--spacingHorizontalXS);
261
- height: var(--spacingHorizontalM);
262
- }
263
-
264
- :where(.small) > .decrementButton:where(:dir(rtl)) {
265
- padding: 0px var(--spacingHorizontalXS) var(--strokeWidthThicker) var(--spacingHorizontalSNudge);
266
- }
267
-
268
- :where(.underline) > .incrementButton:enabled:hover,
269
- :where(.underline) > .decrementButton:enabled:hover {
270
- color: var(--colorNeutralForeground3Hover);
271
- background-color: var(--colorSubtleBackgroundHover);
272
- }
273
-
274
- :where(.underline) > .incrementButton:enabled:active,
275
- :where(.underline) > .decrementButton:enabled:active {
276
- color: var(--colorNeutralForeground3Pressed);
277
- background-color: var(--colorSubtleBackgroundPressed);
278
- }
279
-
280
- :where(.underline) > .incrementButton:enabled:global(.fui-SpinButton__button_active),
281
- :where(.underline) > .decrementButton:enabled:global(.fui-SpinButton__button_active) {
282
- color: var(--colorNeutralForeground3Pressed);
283
- background-color: var(--colorSubtleBackgroundPressed);
284
- }
285
-
286
- :where(.underline) > .incrementButton:disabled,
287
- :where(.underline) > .decrementButton:disabled {
288
- color: var(--colorNeutralForegroundDisabled);
289
- }
290
-
291
- :where(.underline) > .incrementButton,
292
- :where(.underline) > .decrementButton {
293
- background-color: transparent;
294
- color: var(--colorNeutralForeground3);
295
- }
296
-
297
- :where(.filled-darker) > .incrementButton:enabled:hover,
298
- :where(.filled-darker) > .decrementButton:enabled:hover {
299
- color: var(--colorNeutralForeground3Hover);
300
- background-color: var(--colorNeutralBackground3Hover);
301
- }
302
-
303
- :where(.filled-darker) > .incrementButton:enabled:active,
304
- :where(.filled-darker) > .decrementButton:enabled:active {
305
- color: var(--colorNeutralForeground3Pressed);
306
- background-color: var(--colorNeutralBackground3Pressed);
307
- }
308
-
309
- :where(.filled-darker) > .incrementButton:enabled:global(.fui-SpinButton__button_active),
310
- :where(.filled-darker) > .decrementButton:enabled:global(.fui-SpinButton__button_active) {
311
- color: var(--colorNeutralForeground3Pressed);
312
- background-color: var(--colorNeutralBackground3Pressed);
313
- }
314
-
315
- :where(.filled-darker) > .incrementButton:disabled,
316
- :where(.filled-darker) > .decrementButton:disabled {
317
- color: var(--colorNeutralForegroundDisabled);
318
- }
319
-
320
- :where(.filled-darker) > .incrementButton,
321
- :where(.filled-darker) > .decrementButton {
322
- background-color: transparent;
323
- color: var(--colorNeutralForeground3);
324
- }
325
-
326
- :where(.filled-lighter) > .incrementButton:enabled:hover,
327
- :where(.filled-lighter) > .decrementButton:enabled:hover {
328
- color: var(--colorNeutralForeground3Hover);
329
- background-color: var(--colorNeutralBackground1Hover);
330
- }
331
-
332
- :where(.filled-lighter) > .incrementButton:enabled:active,
333
- :where(.filled-lighter) > .incrementButton:enabled:global(.fui-SpinButton__button_active),
334
- :where(.filled-lighter) > .decrementButton:enabled:active,
335
- :where(.filled-lighter) > .decrementButton:enabled:global(.fui-SpinButton__button_active) {
336
- color: var(--colorNeutralForeground3Pressed);
337
- background-color: var(--colorNeutralBackground1Pressed);
338
- }
339
-
340
- :where(.filled-lighter) > .incrementButton:disabled,
341
- :where(.filled-lighter) > .decrementButton:disabled {
342
- color: var(--colorNeutralForegroundDisabled);
343
- }
344
-
345
- :where(.filled-lighter) > .incrementButton,
346
- :where(.filled-lighter) > .decrementButton {
347
- background-color: transparent;
348
- color: var(--colorNeutralForeground3);
349
- }
350
-
351
- @media screen and (prefers-reduced-motion: reduce) {
352
- .root::after {
353
- transition-duration: 0.01ms;
354
- transition-delay: 0.01ms;
355
- }
356
- }
357
-
358
- @media screen and (prefers-reduced-motion: reduce) {
359
- .root:focus-within::after {
360
- transition-duration: 0.01ms;
361
- transition-delay: 0.01ms;
362
- }
363
- }
364
-
365
- @media (forced-colors: active) {
366
- .disabled::before {
367
- border-top-color: GrayText;
368
- border-inline-end-color: GrayText;
369
- border-bottom-color: GrayText;
370
- border-inline-start-color: GrayText;
371
- }
372
- }
373
- }
@@ -1,16 +0,0 @@
1
- import { clsx } from "clsx";
2
- import styles from "./SpinButton.module.css";
3
- export const spinButtonClassNames = {
4
- root: 'fui-SpinButton',
5
- input: 'fui-SpinButton__input',
6
- incrementButton: 'fui-SpinButton__incrementButton',
7
- decrementButton: 'fui-SpinButton__decrementButton'
8
- };
9
- export const useSpinButtonStyles_unstable = (state)=>{
10
- const disabled = state.input.disabled;
11
- state.root.className = clsx(spinButtonClassNames.root, styles.root, styles[state.size], styles[state.appearance], state.appearance.startsWith('filled') && styles.filled, disabled && styles.disabled, String(state.input['aria-invalid']) === 'true' && styles.invalid, state.root.className);
12
- state.incrementButton.className = clsx(spinButtonClassNames.incrementButton, state.spinState === 'up' && 'fui-SpinButton__button_active', styles.incrementButton, state.incrementButton.className);
13
- state.decrementButton.className = clsx(spinButtonClassNames.decrementButton, state.spinState === 'down' && 'fui-SpinButton__button_active', styles.decrementButton, state.decrementButton.className);
14
- state.input.className = clsx(spinButtonClassNames.input, styles.input, state.input.className);
15
- return state;
16
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/SpinButton/useSpinButtonStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { SpinButtonState, SpinButtonSlots } from './SpinButton.types';\nimport styles from './SpinButton.module.css';\n\nexport const spinButtonClassNames: SlotClassNames<SpinButtonSlots> = {\n root: 'fui-SpinButton',\n input: 'fui-SpinButton__input',\n incrementButton: 'fui-SpinButton__incrementButton',\n decrementButton: 'fui-SpinButton__decrementButton',\n};\n\nexport const useSpinButtonStyles_unstable = (state: SpinButtonState): SpinButtonState => {\n const disabled = state.input.disabled;\n state.root.className = clsx(\n spinButtonClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.appearance],\n state.appearance.startsWith('filled') && styles.filled,\n disabled && styles.disabled,\n String(state.input['aria-invalid']) === 'true' && styles.invalid,\n state.root.className,\n );\n state.incrementButton.className = clsx(\n spinButtonClassNames.incrementButton,\n state.spinState === 'up' && 'fui-SpinButton__button_active',\n styles.incrementButton,\n state.incrementButton.className,\n );\n state.decrementButton.className = clsx(\n spinButtonClassNames.decrementButton,\n state.spinState === 'down' && 'fui-SpinButton__button_active',\n styles.decrementButton,\n state.decrementButton.className,\n );\n state.input.className = clsx(spinButtonClassNames.input, styles.input, state.input.className);\n return state;\n};\n"],"names":["clsx","styles","spinButtonClassNames","root","input","incrementButton","decrementButton","useSpinButtonStyles_unstable","state","disabled","className","size","appearance","startsWith","filled","String","invalid","spinState"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,0BAA0B;AAE7C,OAAO,MAAMC,uBAAwD;IACnEC,MAAM;IACNC,OAAO;IACPC,iBAAiB;IACjBC,iBAAiB;AACnB,EAAE;AAEF,OAAO,MAAMC,+BAA+B,CAACC;IAC3C,MAAMC,WAAWD,MAAMJ,KAAK,CAACK,QAAQ;IACrCD,MAAML,IAAI,CAACO,SAAS,GAAGV,KACrBE,qBAAqBC,IAAI,EACzBF,OAAOE,IAAI,EACXF,MAAM,CAACO,MAAMG,IAAI,CAAC,EAClBV,MAAM,CAACO,MAAMI,UAAU,CAAC,EACxBJ,MAAMI,UAAU,CAACC,UAAU,CAAC,aAAaZ,OAAOa,MAAM,EACtDL,YAAYR,OAAOQ,QAAQ,EAC3BM,OAAOP,MAAMJ,KAAK,CAAC,eAAe,MAAM,UAAUH,OAAOe,OAAO,EAChER,MAAML,IAAI,CAACO,SAAS;IAEtBF,MAAMH,eAAe,CAACK,SAAS,GAAGV,KAChCE,qBAAqBG,eAAe,EACpCG,MAAMS,SAAS,KAAK,QAAQ,iCAC5BhB,OAAOI,eAAe,EACtBG,MAAMH,eAAe,CAACK,SAAS;IAEjCF,MAAMF,eAAe,CAACI,SAAS,GAAGV,KAChCE,qBAAqBI,eAAe,EACpCE,MAAMS,SAAS,KAAK,UAAU,iCAC9BhB,OAAOK,eAAe,EACtBE,MAAMF,eAAe,CAACI,SAAS;IAEjCF,MAAMJ,KAAK,CAACM,SAAS,GAAGV,KAAKE,qBAAqBE,KAAK,EAAEH,OAAOG,KAAK,EAAEI,MAAMJ,KAAK,CAACM,SAAS;IAC5F,OAAOF;AACT,EAAE"}
@@ -1,16 +0,0 @@
1
- import { clsx } from "clsx";
2
- import styles from "./SpinButton.module.css";
3
- export const spinButtonClassNames = {
4
- root: 'fui-SpinButton',
5
- input: 'fui-SpinButton__input',
6
- incrementButton: 'fui-SpinButton__incrementButton',
7
- decrementButton: 'fui-SpinButton__decrementButton'
8
- };
9
- export const useSpinButtonStyles_unstable = (state)=>{
10
- const disabled = state.input.disabled;
11
- state.root.className = clsx(spinButtonClassNames.root, styles.root, styles[state.size], styles[state.appearance], state.appearance.startsWith('filled') && styles.filled, disabled && styles.disabled, String(state.input['aria-invalid']) === 'true' && styles.invalid, state.root.className);
12
- state.incrementButton.className = clsx(spinButtonClassNames.incrementButton, state.spinState === 'up' && 'fui-SpinButton__button_active', styles.incrementButton, state.incrementButton.className);
13
- state.decrementButton.className = clsx(spinButtonClassNames.decrementButton, state.spinState === 'down' && 'fui-SpinButton__button_active', styles.decrementButton, state.decrementButton.className);
14
- state.input.className = clsx(spinButtonClassNames.input, styles.input, state.input.className);
15
- return state;
16
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/SpinButton/useSpinButtonStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { SpinButtonState, SpinButtonSlots } from './SpinButton.types';\nimport styles from './SpinButton.module.css';\n\nexport const spinButtonClassNames: SlotClassNames<SpinButtonSlots> = {\n root: 'fui-SpinButton',\n input: 'fui-SpinButton__input',\n incrementButton: 'fui-SpinButton__incrementButton',\n decrementButton: 'fui-SpinButton__decrementButton',\n};\n\nexport const useSpinButtonStyles_unstable = (state: SpinButtonState): SpinButtonState => {\n const disabled = state.input.disabled;\n state.root.className = clsx(\n spinButtonClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.appearance],\n state.appearance.startsWith('filled') && styles.filled,\n disabled && styles.disabled,\n String(state.input['aria-invalid']) === 'true' && styles.invalid,\n state.root.className,\n );\n state.incrementButton.className = clsx(\n spinButtonClassNames.incrementButton,\n state.spinState === 'up' && 'fui-SpinButton__button_active',\n styles.incrementButton,\n state.incrementButton.className,\n );\n state.decrementButton.className = clsx(\n spinButtonClassNames.decrementButton,\n state.spinState === 'down' && 'fui-SpinButton__button_active',\n styles.decrementButton,\n state.decrementButton.className,\n );\n state.input.className = clsx(spinButtonClassNames.input, styles.input, state.input.className);\n return state;\n};\n"],"names":["clsx","styles","spinButtonClassNames","root","input","incrementButton","decrementButton","useSpinButtonStyles_unstable","state","disabled","className","size","appearance","startsWith","filled","String","invalid","spinState"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,0BAA0B;AAE7C,OAAO,MAAMC,uBAAwD;IACnEC,MAAM;IACNC,OAAO;IACPC,iBAAiB;IACjBC,iBAAiB;AACnB,EAAE;AAEF,OAAO,MAAMC,+BAA+B,CAACC;IAC3C,MAAMC,WAAWD,MAAMJ,KAAK,CAACK,QAAQ;IACrCD,MAAML,IAAI,CAACO,SAAS,GAAGV,KACrBE,qBAAqBC,IAAI,EACzBF,OAAOE,IAAI,EACXF,MAAM,CAACO,MAAMG,IAAI,CAAC,EAClBV,MAAM,CAACO,MAAMI,UAAU,CAAC,EACxBJ,MAAMI,UAAU,CAACC,UAAU,CAAC,aAAaZ,OAAOa,MAAM,EACtDL,YAAYR,OAAOQ,QAAQ,EAC3BM,OAAOP,MAAMJ,KAAK,CAAC,eAAe,MAAM,UAAUH,OAAOe,OAAO,EAChER,MAAML,IAAI,CAACO,SAAS;IAEtBF,MAAMH,eAAe,CAACK,SAAS,GAAGV,KAChCE,qBAAqBG,eAAe,EACpCG,MAAMS,SAAS,KAAK,QAAQ,iCAC5BhB,OAAOI,eAAe,EACtBG,MAAMH,eAAe,CAACK,SAAS;IAEjCF,MAAMF,eAAe,CAACI,SAAS,GAAGV,KAChCE,qBAAqBI,eAAe,EACpCE,MAAMS,SAAS,KAAK,UAAU,iCAC9BhB,OAAOK,eAAe,EACtBE,MAAMF,eAAe,CAACI,SAAS;IAEjCF,MAAMJ,KAAK,CAACM,SAAS,GAAGV,KAAKE,qBAAqBE,KAAK,EAAEH,OAAOG,KAAK,EAAEI,MAAMJ,KAAK,CAACM,SAAS;IAC5F,OAAOF;AACT,EAAE"}
@@ -1,373 +0,0 @@
1
- @layer fluentui {
2
- .medium {
3
- }
4
- .root::before {
5
- content: '';
6
- box-sizing: border-box;
7
- position: absolute;
8
- top: 0;
9
- inset-inline-end: 0;
10
- bottom: 0;
11
- inset-inline-start: 0;
12
- pointer-events: none;
13
- z-index: 10;
14
- border: var(--strokeWidthThin) solid var(--colorNeutralStroke1);
15
- border-bottom-color: var(--colorNeutralStrokeAccessible);
16
- border-radius: var(--borderRadiusMedium);
17
- }
18
-
19
- .root::after {
20
- box-sizing: border-box;
21
- content: '';
22
- position: absolute;
23
- inset-inline-end: 0;
24
- bottom: 0;
25
- inset-inline-start: 0;
26
- z-index: 20;
27
- height: max(var(--strokeWidthThick), var(--borderRadiusMedium));
28
- border-end-start-radius: var(--borderRadiusMedium);
29
- border-end-end-radius: var(--borderRadiusMedium);
30
- border-bottom: var(--strokeWidthThick) solid var(--colorCompoundBrandStroke);
31
- clip-path: inset(calc(100% - var(--strokeWidthThick)) 0 0 0);
32
- transform: scaleX(0);
33
- transition-property: transform;
34
- transition-duration: var(--durationUltraFast);
35
- transition-delay: var(--curveAccelerateMid);
36
- }
37
-
38
- .root:focus-within::after {
39
- transform: scaleX(1);
40
- transition-property: transform;
41
- transition-duration: var(--durationNormal);
42
- transition-delay: var(--curveDecelerateMid);
43
- }
44
-
45
- .root:focus-within:active::after {
46
- border-bottom-color: var(--colorCompoundBrandStrokePressed);
47
- }
48
-
49
- .root:focus-within {
50
- outline: var(--strokeWidthThick) solid transparent;
51
- }
52
-
53
- .root {
54
- display: inline-grid;
55
- grid-template-columns: 1fr var(--spacingHorizontalXXL);
56
- grid-template-rows: 1fr 1fr;
57
- column-gap: var(--spacingHorizontalXS);
58
- row-gap: 0;
59
- position: relative;
60
- isolation: isolate;
61
- vertical-align: middle;
62
- background-color: var(--colorNeutralBackground1);
63
- min-height: var(--spacingHorizontalXXXL);
64
- padding: 0 0 0 var(--spacingHorizontalMNudge);
65
- border-radius: var(--borderRadiusMedium);
66
- }
67
-
68
- .root:where(:dir(rtl)) {
69
- padding: 0 var(--spacingHorizontalMNudge) 0 0;
70
- }
71
-
72
- .small {
73
- min-height: var(--spacingHorizontalXXL);
74
- font-family: var(--fontFamilyBase);
75
- font-size: var(--fontSizeBase200);
76
- font-weight: var(--fontWeightRegular);
77
- line-height: var(--lineHeightBase200);
78
- padding-inline-start: var(--spacingHorizontalS);
79
- }
80
-
81
- .underline::before {
82
- border-top-width: 0;
83
- border-inline-end-width: 0;
84
- border-bottom-width: var(--strokeWidthThin);
85
- border-inline-start-width: 0;
86
- border-radius: var(--borderRadiusNone);
87
- }
88
-
89
- .filled::before {
90
- border: var(--strokeWidthThin) solid var(--colorTransparentStroke);
91
- }
92
-
93
- .filled-darker {
94
- background-color: var(--colorNeutralBackground3);
95
- }
96
-
97
- .filled-lighter {
98
- background-color: var(--colorNeutralBackground1);
99
- }
100
-
101
- .root:where(.outline:not(.disabled)):hover::before {
102
- border-top-color: var(--colorNeutralStroke1Hover);
103
- border-inline-end-color: var(--colorNeutralStroke1Hover);
104
- border-bottom-color: var(--colorNeutralStrokeAccessibleHover);
105
- border-inline-start-color: var(--colorNeutralStroke1Hover);
106
- }
107
-
108
- .root:where(.outline:not(.disabled)):active::before,
109
- .root:where(.outline:not(.disabled)):focus-within::before {
110
- border-top-color: var(--colorNeutralStroke1Pressed);
111
- border-inline-end-color: var(--colorNeutralStroke1Pressed);
112
- border-bottom-color: var(--colorNeutralStrokeAccessiblePressed);
113
- border-inline-start-color: var(--colorNeutralStroke1Pressed);
114
- }
115
-
116
- .root:where(.underline:not(.disabled)):hover::before {
117
- border-bottom-color: var(--colorNeutralStrokeAccessibleHover);
118
- }
119
-
120
- .root:where(.underline:not(.disabled)):active::before,
121
- .root:where(.underline:not(.disabled)):focus-within::before {
122
- border-bottom-color: var(--colorNeutralStrokeAccessiblePressed);
123
- }
124
-
125
- .root:where(.underline:not(.disabled))::after {
126
- border-radius: var(--borderRadiusNone);
127
- }
128
-
129
- .root:where(.filled:not(.disabled)):hover::before,
130
- .root:where(.filled:not(.disabled)):focus-within::before {
131
- border-top-color: var(--colorTransparentStrokeInteractive);
132
- border-inline-end-color: var(--colorTransparentStrokeInteractive);
133
- border-bottom-color: var(--colorTransparentStrokeInteractive);
134
- border-inline-start-color: var(--colorTransparentStrokeInteractive);
135
- }
136
-
137
- .invalid:where(:not(.disabled)):not(:focus-within)::before,
138
- .invalid:where(:not(.disabled)):hover:not(:focus-within)::before {
139
- border-top-color: var(--colorPaletteRedBorder2);
140
- border-inline-end-color: var(--colorPaletteRedBorder2);
141
- border-bottom-color: var(--colorPaletteRedBorder2);
142
- border-inline-start-color: var(--colorPaletteRedBorder2);
143
- }
144
-
145
- .disabled::before {
146
- border-top-color: var(--colorNeutralStrokeDisabled);
147
- border-inline-end-color: var(--colorNeutralStrokeDisabled);
148
- border-bottom-color: var(--colorNeutralStrokeDisabled);
149
- border-inline-start-color: var(--colorNeutralStrokeDisabled);
150
- }
151
-
152
- .disabled {
153
- cursor: not-allowed;
154
- background-color: var(--colorTransparentBackground);
155
- }
156
-
157
- .input::placeholder {
158
- color: var(--colorNeutralForeground4);
159
- opacity: 1;
160
- }
161
-
162
- .input {
163
- grid-column-start: 1;
164
- grid-column-end: 2;
165
- grid-row-start: 1;
166
- grid-row-end: 3;
167
- outline-style: none;
168
- border: 0;
169
- padding: 0;
170
- color: var(--colorNeutralForeground1);
171
- background-color: transparent;
172
- font-family: inherit;
173
- font-size: inherit;
174
- font-weight: inherit;
175
- line-height: inherit;
176
- width: 100%;
177
- }
178
-
179
- :where(.disabled) > .input::placeholder {
180
- color: var(--colorNeutralForegroundDisabled);
181
- }
182
-
183
- :where(.disabled) > .input {
184
- color: var(--colorNeutralForegroundDisabled);
185
- cursor: not-allowed;
186
- background-color: var(--colorTransparentBackground);
187
- }
188
-
189
- .incrementButton:active,
190
- .decrementButton:active {
191
- outline-style: none;
192
- }
193
-
194
- .incrementButton:enabled:hover,
195
- .decrementButton:enabled:hover {
196
- cursor: pointer;
197
- color: var(--colorNeutralForeground3Hover);
198
- background-color: var(--colorSubtleBackgroundHover);
199
- }
200
-
201
- .incrementButton:enabled:active,
202
- .decrementButton:enabled:active {
203
- color: var(--colorNeutralForeground3Pressed);
204
- background-color: var(--colorSubtleBackgroundPressed);
205
- }
206
-
207
- .incrementButton:enabled:global(.fui-SpinButton__button_active),
208
- .decrementButton:enabled:global(.fui-SpinButton__button_active) {
209
- color: var(--colorNeutralForeground3Pressed);
210
- background-color: var(--colorSubtleBackgroundPressed);
211
- }
212
-
213
- .incrementButton:disabled,
214
- .decrementButton:disabled {
215
- cursor: not-allowed;
216
- color: var(--colorNeutralForegroundDisabled);
217
- }
218
-
219
- .incrementButton,
220
- .decrementButton {
221
- display: inline-flex;
222
- width: var(--spacingHorizontalXXL);
223
- align-items: center;
224
- justify-content: center;
225
- border: 0;
226
- position: absolute;
227
- outline-style: none;
228
- height: var(--spacingHorizontalL);
229
- background-color: transparent;
230
- color: var(--colorNeutralForeground3);
231
- grid-column-start: 2;
232
- border-radius: 0;
233
- padding: 0 calc(var(--spacingHorizontalXS) * 1.25) 0 calc(var(--spacingHorizontalXS) * 1.25);
234
- }
235
-
236
- .incrementButton {
237
- grid-row-start: 1;
238
- border-start-end-radius: var(--borderRadiusMedium);
239
- padding-top: var(--spacingHorizontalXS);
240
- padding-bottom: var(--strokeWidthThin);
241
- }
242
-
243
- .decrementButton {
244
- grid-row-start: 2;
245
- border-end-end-radius: var(--borderRadiusMedium);
246
- padding-top: var(--strokeWidthThin);
247
- padding-bottom: var(--spacingHorizontalXS);
248
- }
249
-
250
- :where(.small) > .incrementButton {
251
- padding: var(--strokeWidthThicker) var(--spacingHorizontalSNudge) 0px var(--spacingHorizontalXS);
252
- height: var(--spacingHorizontalM);
253
- }
254
-
255
- :where(.small) > .incrementButton:where(:dir(rtl)) {
256
- padding: var(--strokeWidthThicker) var(--spacingHorizontalXS) 0px var(--spacingHorizontalSNudge);
257
- }
258
-
259
- :where(.small) > .decrementButton {
260
- padding: 0px var(--spacingHorizontalSNudge) var(--strokeWidthThicker) var(--spacingHorizontalXS);
261
- height: var(--spacingHorizontalM);
262
- }
263
-
264
- :where(.small) > .decrementButton:where(:dir(rtl)) {
265
- padding: 0px var(--spacingHorizontalXS) var(--strokeWidthThicker) var(--spacingHorizontalSNudge);
266
- }
267
-
268
- :where(.underline) > .incrementButton:enabled:hover,
269
- :where(.underline) > .decrementButton:enabled:hover {
270
- color: var(--colorNeutralForeground3Hover);
271
- background-color: var(--colorSubtleBackgroundHover);
272
- }
273
-
274
- :where(.underline) > .incrementButton:enabled:active,
275
- :where(.underline) > .decrementButton:enabled:active {
276
- color: var(--colorNeutralForeground3Pressed);
277
- background-color: var(--colorSubtleBackgroundPressed);
278
- }
279
-
280
- :where(.underline) > .incrementButton:enabled:global(.fui-SpinButton__button_active),
281
- :where(.underline) > .decrementButton:enabled:global(.fui-SpinButton__button_active) {
282
- color: var(--colorNeutralForeground3Pressed);
283
- background-color: var(--colorSubtleBackgroundPressed);
284
- }
285
-
286
- :where(.underline) > .incrementButton:disabled,
287
- :where(.underline) > .decrementButton:disabled {
288
- color: var(--colorNeutralForegroundDisabled);
289
- }
290
-
291
- :where(.underline) > .incrementButton,
292
- :where(.underline) > .decrementButton {
293
- background-color: transparent;
294
- color: var(--colorNeutralForeground3);
295
- }
296
-
297
- :where(.filled-darker) > .incrementButton:enabled:hover,
298
- :where(.filled-darker) > .decrementButton:enabled:hover {
299
- color: var(--colorNeutralForeground3Hover);
300
- background-color: var(--colorNeutralBackground3Hover);
301
- }
302
-
303
- :where(.filled-darker) > .incrementButton:enabled:active,
304
- :where(.filled-darker) > .decrementButton:enabled:active {
305
- color: var(--colorNeutralForeground3Pressed);
306
- background-color: var(--colorNeutralBackground3Pressed);
307
- }
308
-
309
- :where(.filled-darker) > .incrementButton:enabled:global(.fui-SpinButton__button_active),
310
- :where(.filled-darker) > .decrementButton:enabled:global(.fui-SpinButton__button_active) {
311
- color: var(--colorNeutralForeground3Pressed);
312
- background-color: var(--colorNeutralBackground3Pressed);
313
- }
314
-
315
- :where(.filled-darker) > .incrementButton:disabled,
316
- :where(.filled-darker) > .decrementButton:disabled {
317
- color: var(--colorNeutralForegroundDisabled);
318
- }
319
-
320
- :where(.filled-darker) > .incrementButton,
321
- :where(.filled-darker) > .decrementButton {
322
- background-color: transparent;
323
- color: var(--colorNeutralForeground3);
324
- }
325
-
326
- :where(.filled-lighter) > .incrementButton:enabled:hover,
327
- :where(.filled-lighter) > .decrementButton:enabled:hover {
328
- color: var(--colorNeutralForeground3Hover);
329
- background-color: var(--colorNeutralBackground1Hover);
330
- }
331
-
332
- :where(.filled-lighter) > .incrementButton:enabled:active,
333
- :where(.filled-lighter) > .incrementButton:enabled:global(.fui-SpinButton__button_active),
334
- :where(.filled-lighter) > .decrementButton:enabled:active,
335
- :where(.filled-lighter) > .decrementButton:enabled:global(.fui-SpinButton__button_active) {
336
- color: var(--colorNeutralForeground3Pressed);
337
- background-color: var(--colorNeutralBackground1Pressed);
338
- }
339
-
340
- :where(.filled-lighter) > .incrementButton:disabled,
341
- :where(.filled-lighter) > .decrementButton:disabled {
342
- color: var(--colorNeutralForegroundDisabled);
343
- }
344
-
345
- :where(.filled-lighter) > .incrementButton,
346
- :where(.filled-lighter) > .decrementButton {
347
- background-color: transparent;
348
- color: var(--colorNeutralForeground3);
349
- }
350
-
351
- @media screen and (prefers-reduced-motion: reduce) {
352
- .root::after {
353
- transition-duration: 0.01ms;
354
- transition-delay: 0.01ms;
355
- }
356
- }
357
-
358
- @media screen and (prefers-reduced-motion: reduce) {
359
- .root:focus-within::after {
360
- transition-duration: 0.01ms;
361
- transition-delay: 0.01ms;
362
- }
363
- }
364
-
365
- @media (forced-colors: active) {
366
- .disabled::before {
367
- border-top-color: GrayText;
368
- border-inline-end-color: GrayText;
369
- border-bottom-color: GrayText;
370
- border-inline-start-color: GrayText;
371
- }
372
- }
373
- }
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
9
- });
10
- }
11
- _export(exports, {
12
- get spinButtonClassNames () {
13
- return spinButtonClassNames;
14
- },
15
- get useSpinButtonStyles_unstable () {
16
- return useSpinButtonStyles_unstable;
17
- }
18
- });
19
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
- const _clsx = require("clsx");
21
- const _SpinButtonmodulecss = /*#__PURE__*/ _interop_require_default._(require("./SpinButton.module.css"));
22
- const spinButtonClassNames = {
23
- root: 'fui-SpinButton',
24
- input: 'fui-SpinButton__input',
25
- incrementButton: 'fui-SpinButton__incrementButton',
26
- decrementButton: 'fui-SpinButton__decrementButton'
27
- };
28
- const useSpinButtonStyles_unstable = (state)=>{
29
- const disabled = state.input.disabled;
30
- state.root.className = (0, _clsx.clsx)(spinButtonClassNames.root, _SpinButtonmodulecss.default.root, _SpinButtonmodulecss.default[state.size], _SpinButtonmodulecss.default[state.appearance], state.appearance.startsWith('filled') && _SpinButtonmodulecss.default.filled, disabled && _SpinButtonmodulecss.default.disabled, String(state.input['aria-invalid']) === 'true' && _SpinButtonmodulecss.default.invalid, state.root.className);
31
- state.incrementButton.className = (0, _clsx.clsx)(spinButtonClassNames.incrementButton, state.spinState === 'up' && 'fui-SpinButton__button_active', _SpinButtonmodulecss.default.incrementButton, state.incrementButton.className);
32
- state.decrementButton.className = (0, _clsx.clsx)(spinButtonClassNames.decrementButton, state.spinState === 'down' && 'fui-SpinButton__button_active', _SpinButtonmodulecss.default.decrementButton, state.decrementButton.className);
33
- state.input.className = (0, _clsx.clsx)(spinButtonClassNames.input, _SpinButtonmodulecss.default.input, state.input.className);
34
- return state;
35
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/SpinButton/useSpinButtonStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { SpinButtonState, SpinButtonSlots } from './SpinButton.types';\nimport styles from './SpinButton.module.css';\n\nexport const spinButtonClassNames: SlotClassNames<SpinButtonSlots> = {\n root: 'fui-SpinButton',\n input: 'fui-SpinButton__input',\n incrementButton: 'fui-SpinButton__incrementButton',\n decrementButton: 'fui-SpinButton__decrementButton',\n};\n\nexport const useSpinButtonStyles_unstable = (state: SpinButtonState): SpinButtonState => {\n const disabled = state.input.disabled;\n state.root.className = clsx(\n spinButtonClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.appearance],\n state.appearance.startsWith('filled') && styles.filled,\n disabled && styles.disabled,\n String(state.input['aria-invalid']) === 'true' && styles.invalid,\n state.root.className,\n );\n state.incrementButton.className = clsx(\n spinButtonClassNames.incrementButton,\n state.spinState === 'up' && 'fui-SpinButton__button_active',\n styles.incrementButton,\n state.incrementButton.className,\n );\n state.decrementButton.className = clsx(\n spinButtonClassNames.decrementButton,\n state.spinState === 'down' && 'fui-SpinButton__button_active',\n styles.decrementButton,\n state.decrementButton.className,\n );\n state.input.className = clsx(spinButtonClassNames.input, styles.input, state.input.className);\n return state;\n};\n"],"names":["clsx","styles","spinButtonClassNames","root","input","incrementButton","decrementButton","useSpinButtonStyles_unstable","state","disabled","className","size","appearance","startsWith","filled","String","invalid","spinState"],"mappings":";;;;;;;;;;;QAKaE;;;QAOAK;;;;;sBAZQ,OAAO;8EAGT,0BAA0B;AAEtC,6BAA8D;IACnEJ,MAAM;IACNC,OAAO;IACPC,iBAAiB;IACjBC,iBAAiB;AACnB,EAAE;AAEK,qCAAqC,CAACE;IAC3C,MAAMC,WAAWD,MAAMJ,KAAK,CAACK,QAAQ;IACrCD,MAAML,IAAI,CAACO,SAAS,OAAGV,UAAAA,EACrBE,qBAAqBC,IAAI,EACzBF,4BAAAA,CAAOE,IAAI,EACXF,4BAAM,CAACO,MAAMG,IAAI,CAAC,EAClBV,4BAAM,CAACO,MAAMI,UAAU,CAAC,EACxBJ,MAAMI,UAAU,CAACC,UAAU,CAAC,aAAaZ,4BAAAA,CAAOa,MAAM,EACtDL,YAAYR,4BAAAA,CAAOQ,QAAQ,EAC3BM,OAAOP,MAAMJ,KAAK,CAAC,eAAe,MAAM,UAAUH,4BAAAA,CAAOe,OAAO,EAChER,MAAML,IAAI,CAACO,SAAS;IAEtBF,MAAMH,eAAe,CAACK,SAAS,OAAGV,UAAAA,EAChCE,qBAAqBG,eAAe,EACpCG,MAAMS,SAAS,KAAK,QAAQ,iCAC5BhB,4BAAAA,CAAOI,eAAe,EACtBG,MAAMH,eAAe,CAACK,SAAS;IAEjCF,MAAMF,eAAe,CAACI,SAAS,OAAGV,UAAAA,EAChCE,qBAAqBI,eAAe,EACpCE,MAAMS,SAAS,KAAK,UAAU,iCAC9BhB,4BAAAA,CAAOK,eAAe,EACtBE,MAAMF,eAAe,CAACI,SAAS;IAEjCF,MAAMJ,KAAK,CAACM,SAAS,OAAGV,UAAAA,EAAKE,qBAAqBE,KAAK,EAAEH,4BAAAA,CAAOG,KAAK,EAAEI,MAAMJ,KAAK,CAACM,SAAS;IAC5F,OAAOF;AACT,EAAE"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", {
3
- value: true
4
- });
5
- function _export(target, all) {
6
- for(var name in all)Object.defineProperty(target, name, {
7
- enumerable: true,
8
- get: Object.getOwnPropertyDescriptor(all, name).get
9
- });
10
- }
11
- _export(exports, {
12
- get spinButtonClassNames () {
13
- return spinButtonClassNames;
14
- },
15
- get useSpinButtonStyles_unstable () {
16
- return useSpinButtonStyles_unstable;
17
- }
18
- });
19
- const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
20
- const _clsx = require("clsx");
21
- const _SpinButtonmodulecss = /*#__PURE__*/ _interop_require_default._(require("./SpinButton.module.css"));
22
- const spinButtonClassNames = {
23
- root: 'fui-SpinButton',
24
- input: 'fui-SpinButton__input',
25
- incrementButton: 'fui-SpinButton__incrementButton',
26
- decrementButton: 'fui-SpinButton__decrementButton'
27
- };
28
- const useSpinButtonStyles_unstable = (state)=>{
29
- const disabled = state.input.disabled;
30
- state.root.className = (0, _clsx.clsx)(spinButtonClassNames.root, _SpinButtonmodulecss.default.root, _SpinButtonmodulecss.default[state.size], _SpinButtonmodulecss.default[state.appearance], state.appearance.startsWith('filled') && _SpinButtonmodulecss.default.filled, disabled && _SpinButtonmodulecss.default.disabled, String(state.input['aria-invalid']) === 'true' && _SpinButtonmodulecss.default.invalid, state.root.className);
31
- state.incrementButton.className = (0, _clsx.clsx)(spinButtonClassNames.incrementButton, state.spinState === 'up' && 'fui-SpinButton__button_active', _SpinButtonmodulecss.default.incrementButton, state.incrementButton.className);
32
- state.decrementButton.className = (0, _clsx.clsx)(spinButtonClassNames.decrementButton, state.spinState === 'down' && 'fui-SpinButton__button_active', _SpinButtonmodulecss.default.decrementButton, state.decrementButton.className);
33
- state.input.className = (0, _clsx.clsx)(spinButtonClassNames.input, _SpinButtonmodulecss.default.input, state.input.className);
34
- return state;
35
- };
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../src/components/SpinButton/useSpinButtonStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { SpinButtonState, SpinButtonSlots } from './SpinButton.types';\nimport styles from './SpinButton.module.css';\n\nexport const spinButtonClassNames: SlotClassNames<SpinButtonSlots> = {\n root: 'fui-SpinButton',\n input: 'fui-SpinButton__input',\n incrementButton: 'fui-SpinButton__incrementButton',\n decrementButton: 'fui-SpinButton__decrementButton',\n};\n\nexport const useSpinButtonStyles_unstable = (state: SpinButtonState): SpinButtonState => {\n const disabled = state.input.disabled;\n state.root.className = clsx(\n spinButtonClassNames.root,\n styles.root,\n styles[state.size],\n styles[state.appearance],\n state.appearance.startsWith('filled') && styles.filled,\n disabled && styles.disabled,\n String(state.input['aria-invalid']) === 'true' && styles.invalid,\n state.root.className,\n );\n state.incrementButton.className = clsx(\n spinButtonClassNames.incrementButton,\n state.spinState === 'up' && 'fui-SpinButton__button_active',\n styles.incrementButton,\n state.incrementButton.className,\n );\n state.decrementButton.className = clsx(\n spinButtonClassNames.decrementButton,\n state.spinState === 'down' && 'fui-SpinButton__button_active',\n styles.decrementButton,\n state.decrementButton.className,\n );\n state.input.className = clsx(spinButtonClassNames.input, styles.input, state.input.className);\n return state;\n};\n"],"names":["clsx","styles","spinButtonClassNames","root","input","incrementButton","decrementButton","useSpinButtonStyles_unstable","state","disabled","className","size","appearance","startsWith","filled","String","invalid","spinState"],"mappings":";;;;;;;;;;;QAKaE;;;QAOAK;;;;;sBAZQ,OAAO;8EAGT,0BAA0B;AAEtC,6BAA8D;IACnEJ,MAAM;IACNC,OAAO;IACPC,iBAAiB;IACjBC,iBAAiB;AACnB,EAAE;AAEK,qCAAqC,CAACE;IAC3C,MAAMC,WAAWD,MAAMJ,KAAK,CAACK,QAAQ;IACrCD,MAAML,IAAI,CAACO,SAAS,OAAGV,UAAAA,EACrBE,qBAAqBC,IAAI,EACzBF,4BAAAA,CAAOE,IAAI,EACXF,4BAAM,CAACO,MAAMG,IAAI,CAAC,EAClBV,4BAAM,CAACO,MAAMI,UAAU,CAAC,EACxBJ,MAAMI,UAAU,CAACC,UAAU,CAAC,aAAaZ,4BAAAA,CAAOa,MAAM,EACtDL,YAAYR,4BAAAA,CAAOQ,QAAQ,EAC3BM,OAAOP,MAAMJ,KAAK,CAAC,eAAe,MAAM,UAAUH,4BAAAA,CAAOe,OAAO,EAChER,MAAML,IAAI,CAACO,SAAS;IAEtBF,MAAMH,eAAe,CAACK,SAAS,OAAGV,UAAAA,EAChCE,qBAAqBG,eAAe,EACpCG,MAAMS,SAAS,KAAK,QAAQ,iCAC5BhB,4BAAAA,CAAOI,eAAe,EACtBG,MAAMH,eAAe,CAACK,SAAS;IAEjCF,MAAMF,eAAe,CAACI,SAAS,OAAGV,UAAAA,EAChCE,qBAAqBI,eAAe,EACpCE,MAAMS,SAAS,KAAK,UAAU,iCAC9BhB,4BAAAA,CAAOK,eAAe,EACtBE,MAAMF,eAAe,CAACI,SAAS;IAEjCF,MAAMJ,KAAK,CAACM,SAAS,OAAGV,UAAAA,EAAKE,qBAAqBE,KAAK,EAAEH,4BAAAA,CAAOG,KAAK,EAAEI,MAAMJ,KAAK,CAACM,SAAS;IAC5F,OAAOF;AACT,EAAE"}