@fluentui/react-slider 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 +11 -11
- package/README.md +0 -6
- package/package.json +9 -12
- package/lib/components/Slider/Slider.module.css +0 -315
- package/lib/components/Slider/useSliderStyles.styles.css.js +0 -16
- package/lib/components/Slider/useSliderStyles.styles.css.js.map +0 -1
- package/lib/components/Slider/useSliderStyles.styles.raw.css.js +0 -16
- package/lib/components/Slider/useSliderStyles.styles.raw.css.js.map +0 -1
- package/lib-commonjs/components/Slider/Slider.module.css +0 -315
- package/lib-commonjs/components/Slider/useSliderStyles.styles.css.cjs +0 -35
- package/lib-commonjs/components/Slider/useSliderStyles.styles.css.cjs.map +0 -1
- package/lib-commonjs/components/Slider/useSliderStyles.styles.raw.css.cjs +0 -35
- package/lib-commonjs/components/Slider/useSliderStyles.styles.raw.css.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-slider
|
|
2
2
|
|
|
3
|
-
<!-- This log was last generated on
|
|
3
|
+
<!-- This log was last generated on Tue, 03 Nov 2026 14:18:09 GMT and should not be manually modified. -->
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## [9.75.
|
|
7
|
+
## [9.75.1-experimental.positioning-engine.20261103-19efe125d1.0](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.6.8..@fluentui/react-slider_v9.75.
|
|
9
|
+
Tue, 03 Nov 2026 14:18:09 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.6.8..@fluentui/react-slider_v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0)
|
|
11
11
|
|
|
12
12
|
### Changes
|
|
13
13
|
|
|
14
|
-
- Release 9.75.
|
|
15
|
-
- Bump @fluentui/react-field to v9.75.
|
|
16
|
-
- Bump @fluentui/react-jsx-runtime to v9.75.
|
|
17
|
-
- Bump @fluentui/react-shared-contexts to v9.75.
|
|
18
|
-
- Bump @fluentui/react-tabster to v9.75.
|
|
19
|
-
- Bump @fluentui/react-theme to v9.75.
|
|
20
|
-
- Bump @fluentui/react-utilities to v9.75.
|
|
14
|
+
- 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)
|
|
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-tabster to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
19
|
+
- Bump @fluentui/react-theme to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
20
|
+
- Bump @fluentui/react-utilities to v9.75.1-experimental.positioning-engine.20261103-19efe125d1.0 ([commit](https://github.com/microsoft/fluentui/commit/undefined) by beachball)
|
|
21
21
|
|
|
22
22
|
## [9.6.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.6.8)
|
|
23
23
|
|
package/README.md
CHANGED
|
@@ -39,9 +39,3 @@ See [SPEC.md](./Spec.md).
|
|
|
39
39
|
### Migration Guide
|
|
40
40
|
|
|
41
41
|
If you're upgrading to Fluent UI v9 see [MIGRATION.md](./MIGRATION.md) for guidance on updating to the latest Slider implementation.
|
|
42
|
-
|
|
43
|
-
## Opt-in CSS Modules styles
|
|
44
|
-
|
|
45
|
-
CSS Modules alternatives are available for `Slider`. The default exports and component imports continue to use Griffel.
|
|
46
|
-
|
|
47
|
-
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,28 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-slider",
|
|
3
|
-
"version": "9.75.
|
|
3
|
+
"version": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
4
4
|
"description": "Fluent UI React Slider 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/react-field": "9.75.
|
|
18
|
-
"@fluentui/react-jsx-runtime": "9.75.
|
|
19
|
-
"@fluentui/react-shared-contexts": "9.75.
|
|
20
|
-
"@fluentui/react-tabster": "9.75.
|
|
21
|
-
"@fluentui/react-theme": "9.75.
|
|
22
|
-
"@fluentui/react-utilities": "9.75.
|
|
15
|
+
"@fluentui/react-field": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
16
|
+
"@fluentui/react-jsx-runtime": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
17
|
+
"@fluentui/react-shared-contexts": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
18
|
+
"@fluentui/react-tabster": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
19
|
+
"@fluentui/react-theme": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
20
|
+
"@fluentui/react-utilities": "9.75.1-experimental.positioning-engine.20261103-19efe125d1.0",
|
|
23
21
|
"@griffel/react": "^1.5.32",
|
|
24
|
-
"@swc/helpers": "^0.5.1"
|
|
25
|
-
"clsx": "^2.1.1"
|
|
22
|
+
"@swc/helpers": "^0.5.1"
|
|
26
23
|
},
|
|
27
24
|
"peerDependencies": {
|
|
28
25
|
"@types/react": ">=16.14.0 <20.0.0",
|
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
@layer fluentui {
|
|
2
|
-
.root {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: inline-grid;
|
|
5
|
-
touch-action: none;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-items: center;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.horizontal:focus {
|
|
11
|
-
outline-style: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.horizontal:focus-visible {
|
|
15
|
-
outline-style: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.horizontal[data-fui-focus-within]:focus-within::after {
|
|
19
|
-
content: '';
|
|
20
|
-
position: absolute;
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
z-index: 1;
|
|
23
|
-
border: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
|
|
24
|
-
border-radius: var(--borderRadiusMedium);
|
|
25
|
-
top: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
26
|
-
inset-inline-end: calc(0px - var(--strokeWidthThick) - calc(var(--spacingHorizontalXS) * -1));
|
|
27
|
-
bottom: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
28
|
-
inset-inline-start: calc(0px - var(--strokeWidthThick) - calc(var(--spacingHorizontalXS) * -1));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.horizontal[data-fui-focus-within]:focus-within {
|
|
32
|
-
border-top-color: transparent;
|
|
33
|
-
border-inline-end-color: transparent;
|
|
34
|
-
border-bottom-color: transparent;
|
|
35
|
-
border-inline-start-color: transparent;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.vertical:focus {
|
|
39
|
-
outline-style: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.vertical:focus-visible {
|
|
43
|
-
outline-style: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.vertical[data-fui-focus-within]:focus-within::after {
|
|
47
|
-
content: '';
|
|
48
|
-
position: absolute;
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
z-index: 1;
|
|
51
|
-
border: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
|
|
52
|
-
border-radius: var(--borderRadiusMedium);
|
|
53
|
-
top: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
54
|
-
inset-inline-end: calc(0px - var(--strokeWidthThick) - var(--spacingHorizontalXS));
|
|
55
|
-
bottom: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
56
|
-
inset-inline-start: calc(0px - var(--strokeWidthThick) - var(--spacingHorizontalXS));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.vertical[data-fui-focus-within]:focus-within {
|
|
60
|
-
border-top-color: transparent;
|
|
61
|
-
border-inline-end-color: transparent;
|
|
62
|
-
border-bottom-color: transparent;
|
|
63
|
-
border-inline-start-color: transparent;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.small {
|
|
67
|
-
--fui-Slider__thumb--size: var(--spacingHorizontalL);
|
|
68
|
-
--fui-Slider__inner-thumb--radius: calc(var(--spacingHorizontalXS) * 1.25);
|
|
69
|
-
--fui-Slider__rail--size: var(--strokeWidthThick);
|
|
70
|
-
min-height: var(--spacingHorizontalXXL);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.medium {
|
|
74
|
-
--fui-Slider__thumb--size: var(--spacingHorizontalXL);
|
|
75
|
-
--fui-Slider__inner-thumb--radius: var(--spacingHorizontalSNudge);
|
|
76
|
-
--fui-Slider__rail--size: var(--spacingHorizontalXS);
|
|
77
|
-
min-height: var(--spacingHorizontalXXXL);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.horizontal {
|
|
81
|
-
min-width: calc(var(--spacingHorizontalXS) * 30);
|
|
82
|
-
grid-template-rows: 1fr var(--fui-Slider__thumb--size) 1fr;
|
|
83
|
-
grid-template-columns: 1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.vertical {
|
|
87
|
-
min-height: calc(var(--spacingHorizontalXS) * 30);
|
|
88
|
-
grid-template-rows: 1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;
|
|
89
|
-
grid-template-columns: 1fr var(--fui-Slider__thumb--size) 1fr;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.enabled:hover {
|
|
93
|
-
--fui-Slider__thumb--color: var(--colorCompoundBrandBackgroundHover);
|
|
94
|
-
--fui-Slider__progress--color: var(--colorCompoundBrandBackgroundHover);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.enabled:active {
|
|
98
|
-
--fui-Slider__thumb--color: var(--colorCompoundBrandBackgroundPressed);
|
|
99
|
-
--fui-Slider__progress--color: var(--colorCompoundBrandBackgroundPressed);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.enabled {
|
|
103
|
-
--fui-Slider__rail--color: var(--colorNeutralStrokeAccessible);
|
|
104
|
-
--fui-Slider__progress--color: var(--colorCompoundBrandBackground);
|
|
105
|
-
--fui-Slider__thumb--color: var(--colorCompoundBrandBackground);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.disabled {
|
|
109
|
-
--fui-Slider__thumb--color: var(--colorNeutralForegroundDisabled);
|
|
110
|
-
--fui-Slider__rail--color: var(--colorNeutralBackgroundDisabled);
|
|
111
|
-
--fui-Slider__progress--color: var(--colorNeutralForegroundDisabled);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.rail::before {
|
|
115
|
-
content: '';
|
|
116
|
-
position: absolute;
|
|
117
|
-
background-image: repeating-linear-gradient(
|
|
118
|
-
var(--fui-Slider--direction),
|
|
119
|
-
transparent 0%,
|
|
120
|
-
transparent calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
121
|
-
var(--colorNeutralBackground1) calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
122
|
-
var(--colorNeutralBackground1) var(--fui-Slider--steps-percent)
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.rail {
|
|
127
|
-
border-radius: var(--borderRadiusXLarge);
|
|
128
|
-
pointer-events: none;
|
|
129
|
-
grid-row-start: 2;
|
|
130
|
-
grid-row-end: 2;
|
|
131
|
-
grid-column-start: 2;
|
|
132
|
-
grid-column-end: 2;
|
|
133
|
-
position: relative;
|
|
134
|
-
forced-color-adjust: none;
|
|
135
|
-
background-image: linear-gradient(
|
|
136
|
-
var(--fui-Slider--direction),
|
|
137
|
-
var(--fui-Slider__progress--color) 0%,
|
|
138
|
-
var(--fui-Slider__progress--color) var(--fui-Slider--progress),
|
|
139
|
-
var(--fui-Slider__rail--color) var(--fui-Slider--progress)
|
|
140
|
-
);
|
|
141
|
-
outline-width: var(--strokeWidthThin);
|
|
142
|
-
outline-style: solid;
|
|
143
|
-
outline-color: var(--colorTransparentStroke);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
:where(.horizontal) > .rail::before {
|
|
147
|
-
inset-inline-start: calc(var(--strokeWidthThin) * -1);
|
|
148
|
-
inset-inline-end: calc(var(--strokeWidthThin) * -1);
|
|
149
|
-
height: var(--fui-Slider__rail--size);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
:where(.horizontal) > .rail {
|
|
153
|
-
width: 100%;
|
|
154
|
-
height: var(--fui-Slider__rail--size);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
:where(.vertical) > .rail::before {
|
|
158
|
-
width: var(--fui-Slider__rail--size);
|
|
159
|
-
top: calc(var(--strokeWidthThin) * -1);
|
|
160
|
-
bottom: calc(var(--strokeWidthThin) * -1);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
:where(.vertical) > .rail {
|
|
164
|
-
width: var(--fui-Slider__rail--size);
|
|
165
|
-
height: 100%;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.thumb::before {
|
|
169
|
-
position: absolute;
|
|
170
|
-
top: 0px;
|
|
171
|
-
inset-inline-start: 0px;
|
|
172
|
-
bottom: 0px;
|
|
173
|
-
inset-inline-end: 0px;
|
|
174
|
-
border-radius: var(--borderRadiusCircular);
|
|
175
|
-
box-sizing: border-box;
|
|
176
|
-
content: '';
|
|
177
|
-
border: calc(var(--fui-Slider__thumb--size) * 0.05) solid var(--colorNeutralStroke1);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.thumb {
|
|
181
|
-
--fui-Slider__thumb--position: clamp(
|
|
182
|
-
var(--fui-Slider__inner-thumb--radius),
|
|
183
|
-
var(--fui-Slider--progress),
|
|
184
|
-
calc(100% - var(--fui-Slider__inner-thumb--radius))
|
|
185
|
-
);
|
|
186
|
-
grid-row-start: 2;
|
|
187
|
-
grid-row-end: 2;
|
|
188
|
-
grid-column-start: 2;
|
|
189
|
-
grid-column-end: 2;
|
|
190
|
-
position: absolute;
|
|
191
|
-
width: var(--fui-Slider__thumb--size);
|
|
192
|
-
height: var(--fui-Slider__thumb--size);
|
|
193
|
-
pointer-events: none;
|
|
194
|
-
outline-style: none;
|
|
195
|
-
forced-color-adjust: none;
|
|
196
|
-
border-radius: var(--borderRadiusCircular);
|
|
197
|
-
box-shadow: 0 0 0 calc(var(--fui-Slider__thumb--size) * 0.2) var(--colorNeutralBackground1) inset;
|
|
198
|
-
background-color: var(--fui-Slider__thumb--color);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
:where(.horizontal) > .thumb {
|
|
202
|
-
transform: translateX(-50%);
|
|
203
|
-
inset-inline-start: var(--fui-Slider__thumb--position);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
:where(.horizontal) > .thumb:where(:dir(rtl)) {
|
|
207
|
-
transform: translateX(50%);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
:where(.vertical) > .thumb {
|
|
211
|
-
transform: translateY(50%);
|
|
212
|
-
bottom: var(--fui-Slider__thumb--position);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
:where(.disabled) > .thumb::before {
|
|
216
|
-
border: calc(var(--fui-Slider__thumb--size) * 0.05) solid var(--colorNeutralForegroundDisabled);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.input {
|
|
220
|
-
cursor: pointer;
|
|
221
|
-
opacity: 0;
|
|
222
|
-
grid-row-start: 1;
|
|
223
|
-
grid-row-end: -1;
|
|
224
|
-
grid-column-start: 1;
|
|
225
|
-
grid-column-end: -1;
|
|
226
|
-
padding: 0;
|
|
227
|
-
margin: 0;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
:where(.horizontal) > .input {
|
|
231
|
-
height: var(--fui-Slider__thumb--size);
|
|
232
|
-
width: 100%;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
:where(.vertical) > .input {
|
|
236
|
-
height: 100%;
|
|
237
|
-
width: var(--fui-Slider__thumb--size);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
:where(.disabled) > .input {
|
|
241
|
-
cursor: default;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@media (forced-colors: active) {
|
|
245
|
-
.horizontal[data-fui-focus-within]:focus-within::after {
|
|
246
|
-
border-top-color: Highlight;
|
|
247
|
-
border-inline-end-color: Highlight;
|
|
248
|
-
border-bottom-color: Highlight;
|
|
249
|
-
border-inline-start-color: Highlight;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
@media (forced-colors: active) {
|
|
254
|
-
.vertical[data-fui-focus-within]:focus-within::after {
|
|
255
|
-
border-top-color: Highlight;
|
|
256
|
-
border-inline-end-color: Highlight;
|
|
257
|
-
border-bottom-color: Highlight;
|
|
258
|
-
border-inline-start-color: Highlight;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
@media (forced-colors: active) {
|
|
263
|
-
.enabled:hover {
|
|
264
|
-
--fui-Slider__thumb--color: Highlight;
|
|
265
|
-
--fui-Slider__progress--color: Highlight;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
@media (forced-colors: active) {
|
|
270
|
-
.enabled {
|
|
271
|
-
--fui-Slider__rail--color: CanvasText;
|
|
272
|
-
--fui-Slider__thumb--color: Highlight;
|
|
273
|
-
--fui-Slider__progress--color: Highlight;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
@media (forced-colors: active) {
|
|
278
|
-
.disabled {
|
|
279
|
-
--fui-Slider__rail--color: GrayText;
|
|
280
|
-
--fui-Slider__thumb--color: GrayText;
|
|
281
|
-
--fui-Slider__progress--color: GrayText;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
@media (forced-colors: active) {
|
|
286
|
-
.rail::before {
|
|
287
|
-
background-image: repeating-linear-gradient(
|
|
288
|
-
var(--fui-Slider--direction),
|
|
289
|
-
transparent 0%,
|
|
290
|
-
transparent calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
291
|
-
HighlightText calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
292
|
-
HighlightText var(--fui-Slider--steps-percent)
|
|
293
|
-
);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
@supports (writing-mode: sideways-lr) {
|
|
298
|
-
:where(.vertical) > .input {
|
|
299
|
-
writing-mode: vertical-lr;
|
|
300
|
-
direction: rtl;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
@supports (writing-mode: sideways-lr) {
|
|
305
|
-
:where(.vertical) > .input:where(:dir(rtl)) {
|
|
306
|
-
direction: ltr;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
@supports not (writing-mode: sideways-lr) {
|
|
311
|
-
:where(.vertical) > .input {
|
|
312
|
-
-webkit-appearance: slider-vertical;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { clsx } from "clsx";
|
|
2
|
-
import styles from "./Slider.module.css";
|
|
3
|
-
export const sliderClassNames = {
|
|
4
|
-
root: 'fui-Slider',
|
|
5
|
-
rail: 'fui-Slider__rail',
|
|
6
|
-
thumb: 'fui-Slider__thumb',
|
|
7
|
-
input: 'fui-Slider__input'
|
|
8
|
-
};
|
|
9
|
-
export const useSliderStyles_unstable = (state)=>{
|
|
10
|
-
var _state_size;
|
|
11
|
-
state.root.className = clsx(sliderClassNames.root, styles.root, styles[(_state_size = state.size) !== null && _state_size !== void 0 ? _state_size : 'medium'], state.vertical ? styles.vertical : styles.horizontal, state.disabled ? styles.disabled : styles.enabled, state.root.className);
|
|
12
|
-
state.rail.className = clsx(sliderClassNames.rail, styles.rail, state.rail.className);
|
|
13
|
-
state.thumb.className = clsx(sliderClassNames.thumb, styles.thumb, state.thumb.className);
|
|
14
|
-
state.input.className = clsx(sliderClassNames.input, styles.input, state.input.className);
|
|
15
|
-
return state;
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Slider/useSliderStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { SliderState, SliderSlots } from './Slider.types';\nimport styles from './Slider.module.css';\n\nexport const sliderClassNames: SlotClassNames<SliderSlots> = {\n root: 'fui-Slider',\n rail: 'fui-Slider__rail',\n thumb: 'fui-Slider__thumb',\n input: 'fui-Slider__input',\n};\n\nexport const useSliderStyles_unstable = (state: SliderState): SliderState => {\n state.root.className = clsx(\n sliderClassNames.root,\n styles.root,\n styles[state.size ?? 'medium'],\n state.vertical ? styles.vertical : styles.horizontal,\n state.disabled ? styles.disabled : styles.enabled,\n state.root.className,\n );\n state.rail.className = clsx(sliderClassNames.rail, styles.rail, state.rail.className);\n state.thumb.className = clsx(sliderClassNames.thumb, styles.thumb, state.thumb.className);\n state.input.className = clsx(sliderClassNames.input, styles.input, state.input.className);\n return state;\n};\n"],"names":["clsx","styles","sliderClassNames","root","rail","thumb","input","useSliderStyles_unstable","state","className","size","vertical","horizontal","disabled","enabled"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,sBAAsB;AAEzC,OAAO,MAAMC,mBAAgD;IAC3DC,MAAM;IACNC,MAAM;IACNC,OAAO;IACPC,OAAO;AACT,EAAE;AAEF,OAAO,MAAMC,2BAA2B,CAACC;QAI9BA;IAHTA,MAAML,IAAI,CAACM,SAAS,GAAGT,KACrBE,iBAAiBC,IAAI,EACrBF,OAAOE,IAAI,EACXF,MAAM,EAACO,cAAAA,MAAME,IAAI,cAAVF,yBAAAA,cAAc,SAAS,EAC9BA,MAAMG,QAAQ,GAAGV,OAAOU,QAAQ,GAAGV,OAAOW,UAAU,EACpDJ,MAAMK,QAAQ,GAAGZ,OAAOY,QAAQ,GAAGZ,OAAOa,OAAO,EACjDN,MAAML,IAAI,CAACM,SAAS;IAEtBD,MAAMJ,IAAI,CAACK,SAAS,GAAGT,KAAKE,iBAAiBE,IAAI,EAAEH,OAAOG,IAAI,EAAEI,MAAMJ,IAAI,CAACK,SAAS;IACpFD,MAAMH,KAAK,CAACI,SAAS,GAAGT,KAAKE,iBAAiBG,KAAK,EAAEJ,OAAOI,KAAK,EAAEG,MAAMH,KAAK,CAACI,SAAS;IACxFD,MAAMF,KAAK,CAACG,SAAS,GAAGT,KAAKE,iBAAiBI,KAAK,EAAEL,OAAOK,KAAK,EAAEE,MAAMF,KAAK,CAACG,SAAS;IACxF,OAAOD;AACT,EAAE"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { clsx } from "clsx";
|
|
2
|
-
import styles from "./Slider.module.css";
|
|
3
|
-
export const sliderClassNames = {
|
|
4
|
-
root: 'fui-Slider',
|
|
5
|
-
rail: 'fui-Slider__rail',
|
|
6
|
-
thumb: 'fui-Slider__thumb',
|
|
7
|
-
input: 'fui-Slider__input'
|
|
8
|
-
};
|
|
9
|
-
export const useSliderStyles_unstable = (state)=>{
|
|
10
|
-
var _state_size;
|
|
11
|
-
state.root.className = clsx(sliderClassNames.root, styles.root, styles[(_state_size = state.size) !== null && _state_size !== void 0 ? _state_size : 'medium'], state.vertical ? styles.vertical : styles.horizontal, state.disabled ? styles.disabled : styles.enabled, state.root.className);
|
|
12
|
-
state.rail.className = clsx(sliderClassNames.rail, styles.rail, state.rail.className);
|
|
13
|
-
state.thumb.className = clsx(sliderClassNames.thumb, styles.thumb, state.thumb.className);
|
|
14
|
-
state.input.className = clsx(sliderClassNames.input, styles.input, state.input.className);
|
|
15
|
-
return state;
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Slider/useSliderStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { SliderState, SliderSlots } from './Slider.types';\nimport styles from './Slider.module.css';\n\nexport const sliderClassNames: SlotClassNames<SliderSlots> = {\n root: 'fui-Slider',\n rail: 'fui-Slider__rail',\n thumb: 'fui-Slider__thumb',\n input: 'fui-Slider__input',\n};\n\nexport const useSliderStyles_unstable = (state: SliderState): SliderState => {\n state.root.className = clsx(\n sliderClassNames.root,\n styles.root,\n styles[state.size ?? 'medium'],\n state.vertical ? styles.vertical : styles.horizontal,\n state.disabled ? styles.disabled : styles.enabled,\n state.root.className,\n );\n state.rail.className = clsx(sliderClassNames.rail, styles.rail, state.rail.className);\n state.thumb.className = clsx(sliderClassNames.thumb, styles.thumb, state.thumb.className);\n state.input.className = clsx(sliderClassNames.input, styles.input, state.input.className);\n return state;\n};\n"],"names":["clsx","styles","sliderClassNames","root","rail","thumb","input","useSliderStyles_unstable","state","className","size","vertical","horizontal","disabled","enabled"],"mappings":"AAAA,SAASA,IAAI,QAAQ,OAAO;AAG5B,OAAOC,YAAY,sBAAsB;AAEzC,OAAO,MAAMC,mBAAgD;IAC3DC,MAAM;IACNC,MAAM;IACNC,OAAO;IACPC,OAAO;AACT,EAAE;AAEF,OAAO,MAAMC,2BAA2B,CAACC;QAI9BA;IAHTA,MAAML,IAAI,CAACM,SAAS,GAAGT,KACrBE,iBAAiBC,IAAI,EACrBF,OAAOE,IAAI,EACXF,MAAM,EAACO,cAAAA,MAAME,IAAI,cAAVF,yBAAAA,cAAc,SAAS,EAC9BA,MAAMG,QAAQ,GAAGV,OAAOU,QAAQ,GAAGV,OAAOW,UAAU,EACpDJ,MAAMK,QAAQ,GAAGZ,OAAOY,QAAQ,GAAGZ,OAAOa,OAAO,EACjDN,MAAML,IAAI,CAACM,SAAS;IAEtBD,MAAMJ,IAAI,CAACK,SAAS,GAAGT,KAAKE,iBAAiBE,IAAI,EAAEH,OAAOG,IAAI,EAAEI,MAAMJ,IAAI,CAACK,SAAS;IACpFD,MAAMH,KAAK,CAACI,SAAS,GAAGT,KAAKE,iBAAiBG,KAAK,EAAEJ,OAAOI,KAAK,EAAEG,MAAMH,KAAK,CAACI,SAAS;IACxFD,MAAMF,KAAK,CAACG,SAAS,GAAGT,KAAKE,iBAAiBI,KAAK,EAAEL,OAAOK,KAAK,EAAEE,MAAMF,KAAK,CAACG,SAAS;IACxF,OAAOD;AACT,EAAE"}
|
|
@@ -1,315 +0,0 @@
|
|
|
1
|
-
@layer fluentui {
|
|
2
|
-
.root {
|
|
3
|
-
position: relative;
|
|
4
|
-
display: inline-grid;
|
|
5
|
-
touch-action: none;
|
|
6
|
-
align-items: center;
|
|
7
|
-
justify-items: center;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.horizontal:focus {
|
|
11
|
-
outline-style: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.horizontal:focus-visible {
|
|
15
|
-
outline-style: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.horizontal[data-fui-focus-within]:focus-within::after {
|
|
19
|
-
content: '';
|
|
20
|
-
position: absolute;
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
z-index: 1;
|
|
23
|
-
border: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
|
|
24
|
-
border-radius: var(--borderRadiusMedium);
|
|
25
|
-
top: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
26
|
-
inset-inline-end: calc(0px - var(--strokeWidthThick) - calc(var(--spacingHorizontalXS) * -1));
|
|
27
|
-
bottom: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
28
|
-
inset-inline-start: calc(0px - var(--strokeWidthThick) - calc(var(--spacingHorizontalXS) * -1));
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.horizontal[data-fui-focus-within]:focus-within {
|
|
32
|
-
border-top-color: transparent;
|
|
33
|
-
border-inline-end-color: transparent;
|
|
34
|
-
border-bottom-color: transparent;
|
|
35
|
-
border-inline-start-color: transparent;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.vertical:focus {
|
|
39
|
-
outline-style: none;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
.vertical:focus-visible {
|
|
43
|
-
outline-style: none;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
.vertical[data-fui-focus-within]:focus-within::after {
|
|
47
|
-
content: '';
|
|
48
|
-
position: absolute;
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
z-index: 1;
|
|
51
|
-
border: var(--strokeWidthThick) solid var(--colorStrokeFocus2);
|
|
52
|
-
border-radius: var(--borderRadiusMedium);
|
|
53
|
-
top: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
54
|
-
inset-inline-end: calc(0px - var(--strokeWidthThick) - var(--spacingHorizontalXS));
|
|
55
|
-
bottom: calc(0px - var(--strokeWidthThick) - calc(var(--strokeWidthThick) * -1));
|
|
56
|
-
inset-inline-start: calc(0px - var(--strokeWidthThick) - var(--spacingHorizontalXS));
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.vertical[data-fui-focus-within]:focus-within {
|
|
60
|
-
border-top-color: transparent;
|
|
61
|
-
border-inline-end-color: transparent;
|
|
62
|
-
border-bottom-color: transparent;
|
|
63
|
-
border-inline-start-color: transparent;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.small {
|
|
67
|
-
--fui-Slider__thumb--size: var(--spacingHorizontalL);
|
|
68
|
-
--fui-Slider__inner-thumb--radius: calc(var(--spacingHorizontalXS) * 1.25);
|
|
69
|
-
--fui-Slider__rail--size: var(--strokeWidthThick);
|
|
70
|
-
min-height: var(--spacingHorizontalXXL);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.medium {
|
|
74
|
-
--fui-Slider__thumb--size: var(--spacingHorizontalXL);
|
|
75
|
-
--fui-Slider__inner-thumb--radius: var(--spacingHorizontalSNudge);
|
|
76
|
-
--fui-Slider__rail--size: var(--spacingHorizontalXS);
|
|
77
|
-
min-height: var(--spacingHorizontalXXXL);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.horizontal {
|
|
81
|
-
min-width: calc(var(--spacingHorizontalXS) * 30);
|
|
82
|
-
grid-template-rows: 1fr var(--fui-Slider__thumb--size) 1fr;
|
|
83
|
-
grid-template-columns: 1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.vertical {
|
|
87
|
-
min-height: calc(var(--spacingHorizontalXS) * 30);
|
|
88
|
-
grid-template-rows: 1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;
|
|
89
|
-
grid-template-columns: 1fr var(--fui-Slider__thumb--size) 1fr;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.enabled:hover {
|
|
93
|
-
--fui-Slider__thumb--color: var(--colorCompoundBrandBackgroundHover);
|
|
94
|
-
--fui-Slider__progress--color: var(--colorCompoundBrandBackgroundHover);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.enabled:active {
|
|
98
|
-
--fui-Slider__thumb--color: var(--colorCompoundBrandBackgroundPressed);
|
|
99
|
-
--fui-Slider__progress--color: var(--colorCompoundBrandBackgroundPressed);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.enabled {
|
|
103
|
-
--fui-Slider__rail--color: var(--colorNeutralStrokeAccessible);
|
|
104
|
-
--fui-Slider__progress--color: var(--colorCompoundBrandBackground);
|
|
105
|
-
--fui-Slider__thumb--color: var(--colorCompoundBrandBackground);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.disabled {
|
|
109
|
-
--fui-Slider__thumb--color: var(--colorNeutralForegroundDisabled);
|
|
110
|
-
--fui-Slider__rail--color: var(--colorNeutralBackgroundDisabled);
|
|
111
|
-
--fui-Slider__progress--color: var(--colorNeutralForegroundDisabled);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.rail::before {
|
|
115
|
-
content: '';
|
|
116
|
-
position: absolute;
|
|
117
|
-
background-image: repeating-linear-gradient(
|
|
118
|
-
var(--fui-Slider--direction),
|
|
119
|
-
transparent 0%,
|
|
120
|
-
transparent calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
121
|
-
var(--colorNeutralBackground1) calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
122
|
-
var(--colorNeutralBackground1) var(--fui-Slider--steps-percent)
|
|
123
|
-
);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.rail {
|
|
127
|
-
border-radius: var(--borderRadiusXLarge);
|
|
128
|
-
pointer-events: none;
|
|
129
|
-
grid-row-start: 2;
|
|
130
|
-
grid-row-end: 2;
|
|
131
|
-
grid-column-start: 2;
|
|
132
|
-
grid-column-end: 2;
|
|
133
|
-
position: relative;
|
|
134
|
-
forced-color-adjust: none;
|
|
135
|
-
background-image: linear-gradient(
|
|
136
|
-
var(--fui-Slider--direction),
|
|
137
|
-
var(--fui-Slider__progress--color) 0%,
|
|
138
|
-
var(--fui-Slider__progress--color) var(--fui-Slider--progress),
|
|
139
|
-
var(--fui-Slider__rail--color) var(--fui-Slider--progress)
|
|
140
|
-
);
|
|
141
|
-
outline-width: var(--strokeWidthThin);
|
|
142
|
-
outline-style: solid;
|
|
143
|
-
outline-color: var(--colorTransparentStroke);
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
:where(.horizontal) > .rail::before {
|
|
147
|
-
inset-inline-start: calc(var(--strokeWidthThin) * -1);
|
|
148
|
-
inset-inline-end: calc(var(--strokeWidthThin) * -1);
|
|
149
|
-
height: var(--fui-Slider__rail--size);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
:where(.horizontal) > .rail {
|
|
153
|
-
width: 100%;
|
|
154
|
-
height: var(--fui-Slider__rail--size);
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
:where(.vertical) > .rail::before {
|
|
158
|
-
width: var(--fui-Slider__rail--size);
|
|
159
|
-
top: calc(var(--strokeWidthThin) * -1);
|
|
160
|
-
bottom: calc(var(--strokeWidthThin) * -1);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
:where(.vertical) > .rail {
|
|
164
|
-
width: var(--fui-Slider__rail--size);
|
|
165
|
-
height: 100%;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.thumb::before {
|
|
169
|
-
position: absolute;
|
|
170
|
-
top: 0px;
|
|
171
|
-
inset-inline-start: 0px;
|
|
172
|
-
bottom: 0px;
|
|
173
|
-
inset-inline-end: 0px;
|
|
174
|
-
border-radius: var(--borderRadiusCircular);
|
|
175
|
-
box-sizing: border-box;
|
|
176
|
-
content: '';
|
|
177
|
-
border: calc(var(--fui-Slider__thumb--size) * 0.05) solid var(--colorNeutralStroke1);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
.thumb {
|
|
181
|
-
--fui-Slider__thumb--position: clamp(
|
|
182
|
-
var(--fui-Slider__inner-thumb--radius),
|
|
183
|
-
var(--fui-Slider--progress),
|
|
184
|
-
calc(100% - var(--fui-Slider__inner-thumb--radius))
|
|
185
|
-
);
|
|
186
|
-
grid-row-start: 2;
|
|
187
|
-
grid-row-end: 2;
|
|
188
|
-
grid-column-start: 2;
|
|
189
|
-
grid-column-end: 2;
|
|
190
|
-
position: absolute;
|
|
191
|
-
width: var(--fui-Slider__thumb--size);
|
|
192
|
-
height: var(--fui-Slider__thumb--size);
|
|
193
|
-
pointer-events: none;
|
|
194
|
-
outline-style: none;
|
|
195
|
-
forced-color-adjust: none;
|
|
196
|
-
border-radius: var(--borderRadiusCircular);
|
|
197
|
-
box-shadow: 0 0 0 calc(var(--fui-Slider__thumb--size) * 0.2) var(--colorNeutralBackground1) inset;
|
|
198
|
-
background-color: var(--fui-Slider__thumb--color);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
:where(.horizontal) > .thumb {
|
|
202
|
-
transform: translateX(-50%);
|
|
203
|
-
inset-inline-start: var(--fui-Slider__thumb--position);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
:where(.horizontal) > .thumb:where(:dir(rtl)) {
|
|
207
|
-
transform: translateX(50%);
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
:where(.vertical) > .thumb {
|
|
211
|
-
transform: translateY(50%);
|
|
212
|
-
bottom: var(--fui-Slider__thumb--position);
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
:where(.disabled) > .thumb::before {
|
|
216
|
-
border: calc(var(--fui-Slider__thumb--size) * 0.05) solid var(--colorNeutralForegroundDisabled);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
.input {
|
|
220
|
-
cursor: pointer;
|
|
221
|
-
opacity: 0;
|
|
222
|
-
grid-row-start: 1;
|
|
223
|
-
grid-row-end: -1;
|
|
224
|
-
grid-column-start: 1;
|
|
225
|
-
grid-column-end: -1;
|
|
226
|
-
padding: 0;
|
|
227
|
-
margin: 0;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
:where(.horizontal) > .input {
|
|
231
|
-
height: var(--fui-Slider__thumb--size);
|
|
232
|
-
width: 100%;
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
:where(.vertical) > .input {
|
|
236
|
-
height: 100%;
|
|
237
|
-
width: var(--fui-Slider__thumb--size);
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
:where(.disabled) > .input {
|
|
241
|
-
cursor: default;
|
|
242
|
-
}
|
|
243
|
-
|
|
244
|
-
@media (forced-colors: active) {
|
|
245
|
-
.horizontal[data-fui-focus-within]:focus-within::after {
|
|
246
|
-
border-top-color: Highlight;
|
|
247
|
-
border-inline-end-color: Highlight;
|
|
248
|
-
border-bottom-color: Highlight;
|
|
249
|
-
border-inline-start-color: Highlight;
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
@media (forced-colors: active) {
|
|
254
|
-
.vertical[data-fui-focus-within]:focus-within::after {
|
|
255
|
-
border-top-color: Highlight;
|
|
256
|
-
border-inline-end-color: Highlight;
|
|
257
|
-
border-bottom-color: Highlight;
|
|
258
|
-
border-inline-start-color: Highlight;
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
@media (forced-colors: active) {
|
|
263
|
-
.enabled:hover {
|
|
264
|
-
--fui-Slider__thumb--color: Highlight;
|
|
265
|
-
--fui-Slider__progress--color: Highlight;
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
|
|
269
|
-
@media (forced-colors: active) {
|
|
270
|
-
.enabled {
|
|
271
|
-
--fui-Slider__rail--color: CanvasText;
|
|
272
|
-
--fui-Slider__thumb--color: Highlight;
|
|
273
|
-
--fui-Slider__progress--color: Highlight;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
@media (forced-colors: active) {
|
|
278
|
-
.disabled {
|
|
279
|
-
--fui-Slider__rail--color: GrayText;
|
|
280
|
-
--fui-Slider__thumb--color: GrayText;
|
|
281
|
-
--fui-Slider__progress--color: GrayText;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
@media (forced-colors: active) {
|
|
286
|
-
.rail::before {
|
|
287
|
-
background-image: repeating-linear-gradient(
|
|
288
|
-
var(--fui-Slider--direction),
|
|
289
|
-
transparent 0%,
|
|
290
|
-
transparent calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
291
|
-
HighlightText calc(var(--fui-Slider--steps-percent) - var(--strokeWidthThin)),
|
|
292
|
-
HighlightText var(--fui-Slider--steps-percent)
|
|
293
|
-
);
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
@supports (writing-mode: sideways-lr) {
|
|
298
|
-
:where(.vertical) > .input {
|
|
299
|
-
writing-mode: vertical-lr;
|
|
300
|
-
direction: rtl;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
|
|
304
|
-
@supports (writing-mode: sideways-lr) {
|
|
305
|
-
:where(.vertical) > .input:where(:dir(rtl)) {
|
|
306
|
-
direction: ltr;
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
@supports not (writing-mode: sideways-lr) {
|
|
311
|
-
:where(.vertical) > .input {
|
|
312
|
-
-webkit-appearance: slider-vertical;
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
}
|
|
@@ -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 sliderClassNames () {
|
|
13
|
-
return sliderClassNames;
|
|
14
|
-
},
|
|
15
|
-
get useSliderStyles_unstable () {
|
|
16
|
-
return useSliderStyles_unstable;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _clsx = require("clsx");
|
|
21
|
-
const _Slidermodulecss = /*#__PURE__*/ _interop_require_default._(require("./Slider.module.css"));
|
|
22
|
-
const sliderClassNames = {
|
|
23
|
-
root: 'fui-Slider',
|
|
24
|
-
rail: 'fui-Slider__rail',
|
|
25
|
-
thumb: 'fui-Slider__thumb',
|
|
26
|
-
input: 'fui-Slider__input'
|
|
27
|
-
};
|
|
28
|
-
const useSliderStyles_unstable = (state)=>{
|
|
29
|
-
var _state_size;
|
|
30
|
-
state.root.className = (0, _clsx.clsx)(sliderClassNames.root, _Slidermodulecss.default.root, _Slidermodulecss.default[(_state_size = state.size) !== null && _state_size !== void 0 ? _state_size : 'medium'], state.vertical ? _Slidermodulecss.default.vertical : _Slidermodulecss.default.horizontal, state.disabled ? _Slidermodulecss.default.disabled : _Slidermodulecss.default.enabled, state.root.className);
|
|
31
|
-
state.rail.className = (0, _clsx.clsx)(sliderClassNames.rail, _Slidermodulecss.default.rail, state.rail.className);
|
|
32
|
-
state.thumb.className = (0, _clsx.clsx)(sliderClassNames.thumb, _Slidermodulecss.default.thumb, state.thumb.className);
|
|
33
|
-
state.input.className = (0, _clsx.clsx)(sliderClassNames.input, _Slidermodulecss.default.input, state.input.className);
|
|
34
|
-
return state;
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Slider/useSliderStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { SliderState, SliderSlots } from './Slider.types';\nimport styles from './Slider.module.css';\n\nexport const sliderClassNames: SlotClassNames<SliderSlots> = {\n root: 'fui-Slider',\n rail: 'fui-Slider__rail',\n thumb: 'fui-Slider__thumb',\n input: 'fui-Slider__input',\n};\n\nexport const useSliderStyles_unstable = (state: SliderState): SliderState => {\n state.root.className = clsx(\n sliderClassNames.root,\n styles.root,\n styles[state.size ?? 'medium'],\n state.vertical ? styles.vertical : styles.horizontal,\n state.disabled ? styles.disabled : styles.enabled,\n state.root.className,\n );\n state.rail.className = clsx(sliderClassNames.rail, styles.rail, state.rail.className);\n state.thumb.className = clsx(sliderClassNames.thumb, styles.thumb, state.thumb.className);\n state.input.className = clsx(sliderClassNames.input, styles.input, state.input.className);\n return state;\n};\n"],"names":["clsx","styles","sliderClassNames","root","rail","thumb","input","useSliderStyles_unstable","state","className","size","vertical","horizontal","disabled","enabled"],"mappings":";;;;;;;;;;;QAKaE;;;QAOAK;;;;;sBAZQ,OAAO;0EAGT,sBAAsB;AAElC,yBAAsD;IAC3DJ,MAAM;IACNC,MAAM;IACNC,OAAO;IACPC,OAAO;AACT,EAAE;AAEK,iCAAiC,CAACE;QAI9BA;IAHTA,MAAML,IAAI,CAACM,SAAS,OAAGT,UAAAA,EACrBE,iBAAiBC,IAAI,EACrBF,wBAAAA,CAAOE,IAAI,EACXF,wBAAM,CAAA,CAACO,cAAAA,MAAME,IAAI,AAAJA,MAAI,QAAVF,gBAAAA,KAAAA,IAAAA,cAAc,SAAS,EAC9BA,MAAMG,QAAQ,GAAGV,wBAAAA,CAAOU,QAAQ,GAAGV,wBAAAA,CAAOW,UAAU,EACpDJ,MAAMK,QAAQ,GAAGZ,wBAAAA,CAAOY,QAAQ,GAAGZ,wBAAAA,CAAOa,OAAO,EACjDN,MAAML,IAAI,CAACM,SAAS;IAEtBD,MAAMJ,IAAI,CAACK,SAAS,OAAGT,UAAAA,EAAKE,iBAAiBE,IAAI,EAAEH,wBAAAA,CAAOG,IAAI,EAAEI,MAAMJ,IAAI,CAACK,SAAS;IACpFD,MAAMH,KAAK,CAACI,SAAS,OAAGT,UAAAA,EAAKE,iBAAiBG,KAAK,EAAEJ,wBAAAA,CAAOI,KAAK,EAAEG,MAAMH,KAAK,CAACI,SAAS;IACxFD,MAAMF,KAAK,CAACG,SAAS,OAAGT,UAAAA,EAAKE,iBAAiBI,KAAK,EAAEL,wBAAAA,CAAOK,KAAK,EAAEE,MAAMF,KAAK,CAACG,SAAS;IACxF,OAAOD;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 sliderClassNames () {
|
|
13
|
-
return sliderClassNames;
|
|
14
|
-
},
|
|
15
|
-
get useSliderStyles_unstable () {
|
|
16
|
-
return useSliderStyles_unstable;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _clsx = require("clsx");
|
|
21
|
-
const _Slidermodulecss = /*#__PURE__*/ _interop_require_default._(require("./Slider.module.css"));
|
|
22
|
-
const sliderClassNames = {
|
|
23
|
-
root: 'fui-Slider',
|
|
24
|
-
rail: 'fui-Slider__rail',
|
|
25
|
-
thumb: 'fui-Slider__thumb',
|
|
26
|
-
input: 'fui-Slider__input'
|
|
27
|
-
};
|
|
28
|
-
const useSliderStyles_unstable = (state)=>{
|
|
29
|
-
var _state_size;
|
|
30
|
-
state.root.className = (0, _clsx.clsx)(sliderClassNames.root, _Slidermodulecss.default.root, _Slidermodulecss.default[(_state_size = state.size) !== null && _state_size !== void 0 ? _state_size : 'medium'], state.vertical ? _Slidermodulecss.default.vertical : _Slidermodulecss.default.horizontal, state.disabled ? _Slidermodulecss.default.disabled : _Slidermodulecss.default.enabled, state.root.className);
|
|
31
|
-
state.rail.className = (0, _clsx.clsx)(sliderClassNames.rail, _Slidermodulecss.default.rail, state.rail.className);
|
|
32
|
-
state.thumb.className = (0, _clsx.clsx)(sliderClassNames.thumb, _Slidermodulecss.default.thumb, state.thumb.className);
|
|
33
|
-
state.input.className = (0, _clsx.clsx)(sliderClassNames.input, _Slidermodulecss.default.input, state.input.className);
|
|
34
|
-
return state;
|
|
35
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Slider/useSliderStyles.styles.css.ts"],"sourcesContent":["import { clsx } from 'clsx';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\nimport type { SliderState, SliderSlots } from './Slider.types';\nimport styles from './Slider.module.css';\n\nexport const sliderClassNames: SlotClassNames<SliderSlots> = {\n root: 'fui-Slider',\n rail: 'fui-Slider__rail',\n thumb: 'fui-Slider__thumb',\n input: 'fui-Slider__input',\n};\n\nexport const useSliderStyles_unstable = (state: SliderState): SliderState => {\n state.root.className = clsx(\n sliderClassNames.root,\n styles.root,\n styles[state.size ?? 'medium'],\n state.vertical ? styles.vertical : styles.horizontal,\n state.disabled ? styles.disabled : styles.enabled,\n state.root.className,\n );\n state.rail.className = clsx(sliderClassNames.rail, styles.rail, state.rail.className);\n state.thumb.className = clsx(sliderClassNames.thumb, styles.thumb, state.thumb.className);\n state.input.className = clsx(sliderClassNames.input, styles.input, state.input.className);\n return state;\n};\n"],"names":["clsx","styles","sliderClassNames","root","rail","thumb","input","useSliderStyles_unstable","state","className","size","vertical","horizontal","disabled","enabled"],"mappings":";;;;;;;;;;;QAKaE;;;QAOAK;;;;;sBAZQ,OAAO;0EAGT,sBAAsB;AAElC,yBAAsD;IAC3DJ,MAAM;IACNC,MAAM;IACNC,OAAO;IACPC,OAAO;AACT,EAAE;AAEK,iCAAiC,CAACE;QAI9BA;IAHTA,MAAML,IAAI,CAACM,SAAS,OAAGT,UAAAA,EACrBE,iBAAiBC,IAAI,EACrBF,wBAAAA,CAAOE,IAAI,EACXF,wBAAM,CAAA,CAACO,cAAAA,MAAME,IAAI,AAAJA,MAAI,QAAVF,gBAAAA,KAAAA,IAAAA,cAAc,SAAS,EAC9BA,MAAMG,QAAQ,GAAGV,wBAAAA,CAAOU,QAAQ,GAAGV,wBAAAA,CAAOW,UAAU,EACpDJ,MAAMK,QAAQ,GAAGZ,wBAAAA,CAAOY,QAAQ,GAAGZ,wBAAAA,CAAOa,OAAO,EACjDN,MAAML,IAAI,CAACM,SAAS;IAEtBD,MAAMJ,IAAI,CAACK,SAAS,OAAGT,UAAAA,EAAKE,iBAAiBE,IAAI,EAAEH,wBAAAA,CAAOG,IAAI,EAAEI,MAAMJ,IAAI,CAACK,SAAS;IACpFD,MAAMH,KAAK,CAACI,SAAS,OAAGT,UAAAA,EAAKE,iBAAiBG,KAAK,EAAEJ,wBAAAA,CAAOI,KAAK,EAAEG,MAAMH,KAAK,CAACI,SAAS;IACxFD,MAAMF,KAAK,CAACG,SAAS,OAAGT,UAAAA,EAAKE,iBAAiBI,KAAK,EAAEL,wBAAAA,CAAOK,KAAK,EAAEE,MAAMF,KAAK,CAACG,SAAS;IACxF,OAAOD;AACT,EAAE"}
|