@fluentui/react-slider 9.1.16 → 9.1.17
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.json +52 -1
- package/CHANGELOG.md +17 -2
- package/lib/Slider.js +0 -1
- package/lib/Slider.js.map +1 -1
- package/lib/components/Slider/Slider.js +5 -7
- package/lib/components/Slider/Slider.js.map +1 -1
- package/lib/components/Slider/Slider.types.js +0 -1
- package/lib/components/Slider/Slider.types.js.map +1 -1
- package/lib/components/Slider/index.js +0 -1
- package/lib/components/Slider/index.js.map +1 -1
- package/lib/components/Slider/renderSlider.js +4 -9
- package/lib/components/Slider/renderSlider.js.map +1 -1
- package/lib/components/Slider/useSlider.js +49 -55
- package/lib/components/Slider/useSlider.js.map +1 -1
- package/lib/components/Slider/useSliderState.js +39 -52
- package/lib/components/Slider/useSliderState.js.map +1 -1
- package/lib/components/Slider/useSliderStyles.styles.js +5 -5
- package/lib/components/Slider/useSliderStyles.styles.js.map +1 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Slider.js +0 -3
- package/lib-commonjs/Slider.js.map +1 -1
- package/lib-commonjs/components/Slider/Slider.js +1 -3
- package/lib-commonjs/components/Slider/Slider.js.map +1 -1
- package/lib-commonjs/components/Slider/Slider.types.js +0 -3
- package/lib-commonjs/components/Slider/Slider.types.js.map +1 -1
- package/lib-commonjs/components/Slider/index.js +0 -3
- package/lib-commonjs/components/Slider/index.js.map +1 -1
- package/lib-commonjs/components/Slider/renderSlider.js +1 -3
- package/lib-commonjs/components/Slider/renderSlider.js.map +1 -1
- package/lib-commonjs/components/Slider/useSlider.js +2 -5
- package/lib-commonjs/components/Slider/useSlider.js.map +1 -1
- package/lib-commonjs/components/Slider/useSliderState.js +1 -3
- package/lib-commonjs/components/Slider/useSliderState.js.map +1 -1
- package/lib-commonjs/components/Slider/useSliderStyles.styles.js +12 -14
- package/lib-commonjs/components/Slider/useSliderStyles.styles.js.map +1 -1
- package/lib-commonjs/index.js +0 -3
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +8 -8
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,58 @@
|
|
|
2
2
|
"name": "@fluentui/react-slider",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Wed, 31 May 2023 06:43:01 GMT",
|
|
6
|
+
"tag": "@fluentui/react-slider_v9.1.17",
|
|
7
|
+
"version": "9.1.17",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "seanmonahan@microsoft.com",
|
|
12
|
+
"package": "@fluentui/react-slider",
|
|
13
|
+
"commit": "d640b972d7ac86bfb76ae6c6329f12cdd33b3b7c",
|
|
14
|
+
"comment": "chore: Update Griffel to v1.5.7."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@fluentui/react-slider",
|
|
19
|
+
"comment": "Bump @fluentui/react-field to v9.1.6",
|
|
20
|
+
"commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@fluentui/react-slider",
|
|
25
|
+
"comment": "Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6",
|
|
26
|
+
"commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@fluentui/react-slider",
|
|
31
|
+
"comment": "Bump @fluentui/react-tabster to v9.7.5",
|
|
32
|
+
"commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@fluentui/react-slider",
|
|
37
|
+
"comment": "Bump @fluentui/react-utilities to v9.9.2",
|
|
38
|
+
"commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@fluentui/react-slider",
|
|
43
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22",
|
|
44
|
+
"commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui/react-slider",
|
|
49
|
+
"comment": "Bump @fluentui/react-label to v9.1.15",
|
|
50
|
+
"commit": "17ca96c6b7f684f36a5c63e40e78b4986a86c713"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"date": "Thu, 25 May 2023 10:00:48 GMT",
|
|
6
57
|
"tag": "@fluentui/react-slider_v9.1.16",
|
|
7
58
|
"version": "9.1.16",
|
|
8
59
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-slider
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 31 May 2023 06:43:01 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.1.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.1.17)
|
|
8
|
+
|
|
9
|
+
Wed, 31 May 2023 06:43:01 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.1.16..@fluentui/react-slider_v9.1.17)
|
|
11
|
+
|
|
12
|
+
### Patches
|
|
13
|
+
|
|
14
|
+
- chore: Update Griffel to v1.5.7. ([PR #27925](https://github.com/microsoft/fluentui/pull/27925) by seanmonahan@microsoft.com)
|
|
15
|
+
- Bump @fluentui/react-field to v9.1.6 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
|
|
16
|
+
- Bump @fluentui/react-jsx-runtime to v9.0.0-alpha.6 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
|
|
17
|
+
- Bump @fluentui/react-tabster to v9.7.5 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
|
|
18
|
+
- Bump @fluentui/react-utilities to v9.9.2 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
|
|
19
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.22 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
|
|
20
|
+
- Bump @fluentui/react-label to v9.1.15 ([PR #28054](https://github.com/microsoft/fluentui/pull/28054) by beachball)
|
|
21
|
+
|
|
7
22
|
## [9.1.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.1.16)
|
|
8
23
|
|
|
9
|
-
Thu, 25 May 2023
|
|
24
|
+
Thu, 25 May 2023 10:00:48 GMT
|
|
10
25
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.1.15..@fluentui/react-slider_v9.1.16)
|
|
11
26
|
|
|
12
27
|
### Patches
|
package/lib/Slider.js
CHANGED
package/lib/Slider.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["Slider.ts"],"sourcesContent":["export * from './components/Slider/index';\n"],"names":[],"mappings":"AAAA,cAAc,4BAA4B"}
|
|
@@ -5,12 +5,10 @@ import { useSliderStyles_unstable } from './useSliderStyles.styles';
|
|
|
5
5
|
import { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';
|
|
6
6
|
/**
|
|
7
7
|
* The Slider component allows users to quickly select a value by dragging a thumb across a rail.
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return renderSlider_unstable(state);
|
|
8
|
+
*/ export const Slider = /*#__PURE__*/ React.forwardRef((props, ref)=>{
|
|
9
|
+
const state = useSlider_unstable(props, ref);
|
|
10
|
+
useSliderStyles_unstable(state);
|
|
11
|
+
useCustomStyleHook_unstable('useSliderStyles_unstable')(state);
|
|
12
|
+
return renderSlider_unstable(state);
|
|
14
13
|
});
|
|
15
14
|
Slider.displayName = 'Slider';
|
|
16
|
-
//# sourceMappingURL=Slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["Slider.tsx"],"sourcesContent":["import * as React from 'react';\nimport { useSlider_unstable } from './useSlider';\nimport { renderSlider_unstable } from './renderSlider';\nimport { useSliderStyles_unstable } from './useSliderStyles.styles';\nimport type { SliderProps } from './Slider.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n\n/**\n * The Slider component allows users to quickly select a value by dragging a thumb across a rail.\n */\nexport const Slider: ForwardRefComponent<SliderProps> = React.forwardRef((props, ref) => {\n const state = useSlider_unstable(props, ref);\n\n useSliderStyles_unstable(state);\n\n useCustomStyleHook_unstable('useSliderStyles_unstable')(state);\n\n return renderSlider_unstable(state);\n});\nSlider.displayName = 'Slider';\n"],"names":["React","useSlider_unstable","renderSlider_unstable","useSliderStyles_unstable","useCustomStyleHook_unstable","Slider","forwardRef","props","ref","state","displayName"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,kBAAkB,QAAQ,cAAc;AACjD,SAASC,qBAAqB,QAAQ,iBAAiB;AACvD,SAASC,wBAAwB,QAAQ,2BAA2B;AAGpE,SAASC,2BAA2B,QAAQ,kCAAkC;AAE9E;;CAEC,GACD,OAAO,MAAMC,uBAA2CL,MAAMM,UAAU,CAAC,CAACC,OAAOC,MAAQ;IACvF,MAAMC,QAAQR,mBAAmBM,OAAOC;IAExCL,yBAAyBM;IAEzBL,4BAA4B,4BAA4BK;IAExD,OAAOP,sBAAsBO;AAC/B,GAAG;AACHJ,OAAOK,WAAW,GAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["Slider.types.ts"],"sourcesContent":["import * as React from 'react';\nimport type { ComponentState, ComponentProps, Slot } from '@fluentui/react-utilities';\n\nexport type SliderSlots = {\n /**\n * The root of the Slider.\n * The root slot receives the `className` and `style` specified directly on the `<Slider>`.\n * All other native props will be applied to the primary slot, `input`.\n */\n root: NonNullable<Slot<'div'>>;\n\n /**\n * The Slider's base. It is used to visibly display the min and max selectable values.\n */\n rail: NonNullable<Slot<'div'>>;\n\n /**\n * The draggable icon used to select a given value from the Slider.\n * This is the element containing `role = 'slider'`.\n */\n thumb: NonNullable<Slot<'div'>>;\n\n /**\n * The hidden input for the Slider.\n * This is the PRIMARY slot: all native properties specified directly on `<Slider>` will be applied to this slot,\n * except `className` and `style`, which remain on the root slot.\n *\n */\n input: NonNullable<Slot<'input'>> & {\n /**\n * Orient is a non standard attribute that allows for vertical orientation in Firefox. It is set internally\n * when `vertical` is set to true.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#non_standard_attributes\n * Webkit/Chromium support for vertical inputs is provided via -webkit-appearance css property\n */\n orient?: 'horizontal' | 'vertical';\n };\n};\n\nexport type SliderProps = Omit<\n ComponentProps<Partial<SliderSlots>, 'input'>,\n 'defaultValue' | 'onChange' | 'size' | 'value'\n> & {\n /**\n * The starting value for an uncontrolled Slider.\n * Mutually exclusive with `value` prop.\n */\n defaultValue?: number;\n\n /**\n * Whether to render the Slider as disabled.\n *\n * @default `false` (renders enabled)\n */\n disabled?: boolean;\n\n /**\n * The max value of the Slider.\n * @default 100\n */\n max?: number;\n\n /**\n * The min value of the Slider.\n * @default 0\n */\n min?: number;\n\n /**\n * The size of the Slider.\n * @default 'medium'\n */\n size?: 'small' | 'medium';\n\n /**\n * The number of steps that the Slider's `value` will increment upon change. When provided, the Slider\n * will snap to the closest available value. This must be a positive value.\n * @default 1\n */\n step?: number;\n\n /**\n * The current value of the controlled Slider.\n * Mutually exclusive with `defaultValue` prop.\n */\n value?: number;\n\n /**\n * Render the Slider in a vertical orientation, smallest value on the bottom.\n * @default `false`\n */\n vertical?: boolean;\n\n /**\n * Triggers a callback when the value has been changed. This will be called on every individual step.\n */\n onChange?: (ev: React.ChangeEvent<HTMLInputElement>, data: SliderOnChangeData) => void;\n};\n\nexport type SliderOnChangeData = {\n value: number;\n};\n\nexport type SliderState = ComponentState<SliderSlots> & Pick<SliderProps, 'disabled' | 'size' | 'vertical'>;\n"],"names":["React"],"mappings":"AAAA,YAAYA,WAAW,QAAQ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export * from './Slider';\nexport * from './Slider.types';\nexport * from './renderSlider';\nexport * from './useSlider';\nexport { useSliderState_unstable } from './useSliderState';\nexport { sliderClassNames, sliderCSSVars, useSliderStyles_unstable } from './useSliderStyles.styles';\n"],"names":["useSliderState_unstable","sliderClassNames","sliderCSSVars","useSliderStyles_unstable"],"mappings":"AAAA,cAAc,WAAW;AACzB,cAAc,iBAAiB;AAC/B,cAAc,iBAAiB;AAC/B,cAAc,cAAc;AAC5B,SAASA,uBAAuB,QAAQ,mBAAmB;AAC3D,SAASC,gBAAgB,EAAEC,aAAa,EAAEC,wBAAwB,QAAQ,2BAA2B"}
|
|
@@ -1,13 +1,8 @@
|
|
|
1
|
-
/** @jsxRuntime classic */ /** @jsx createElement */import { createElement } from '@fluentui/react-jsx-runtime';
|
|
1
|
+
/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';
|
|
2
2
|
import { getSlotsNext } from '@fluentui/react-utilities';
|
|
3
3
|
/**
|
|
4
4
|
* Render the final JSX of Slider
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
slots,
|
|
9
|
-
slotProps
|
|
10
|
-
} = getSlotsNext(state);
|
|
11
|
-
return /*#__PURE__*/createElement(slots.root, slotProps.root, /*#__PURE__*/createElement(slots.input, slotProps.input), /*#__PURE__*/createElement(slots.rail, slotProps.rail), /*#__PURE__*/createElement(slots.thumb, slotProps.thumb));
|
|
5
|
+
*/ export const renderSlider_unstable = (state)=>{
|
|
6
|
+
const { slots , slotProps } = getSlotsNext(state);
|
|
7
|
+
return /*#__PURE__*/ createElement(slots.root, slotProps.root, /*#__PURE__*/ createElement(slots.input, slotProps.input), /*#__PURE__*/ createElement(slots.rail, slotProps.rail), /*#__PURE__*/ createElement(slots.thumb, slotProps.thumb));
|
|
12
8
|
};
|
|
13
|
-
//# sourceMappingURL=renderSlider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["renderSlider.tsx"],"sourcesContent":["/** @jsxRuntime classic */\n/** @jsx createElement */\n\nimport { createElement } from '@fluentui/react-jsx-runtime';\n\nimport { getSlotsNext } from '@fluentui/react-utilities';\nimport type { SliderState, SliderSlots } from './Slider.types';\n\n/**\n * Render the final JSX of Slider\n */\nexport const renderSlider_unstable = (state: SliderState) => {\n const { slots, slotProps } = getSlotsNext<SliderSlots>(state);\n\n return (\n <slots.root {...slotProps.root}>\n <slots.input {...slotProps.input} />\n <slots.rail {...slotProps.rail} />\n <slots.thumb {...slotProps.thumb} />\n </slots.root>\n );\n};\n"],"names":["createElement","getSlotsNext","renderSlider_unstable","state","slots","slotProps","root","input","rail","thumb"],"mappings":"AAAA,wBAAwB,GACxB,uBAAuB,GAEvB,SAASA,aAAa,QAAQ,8BAA8B;AAE5D,SAASC,YAAY,QAAQ,4BAA4B;AAGzD;;CAEC,GACD,OAAO,MAAMC,wBAAwB,CAACC,QAAuB;IAC3D,MAAM,EAAEC,MAAK,EAAEC,UAAS,EAAE,GAAGJ,aAA0BE;IAEvD,qBACE,AAdJ,cAcKC,MAAME,IAAI,EAAKD,UAAUC,IAAI,gBAC5B,AAfN,cAeOF,MAAMG,KAAK,EAAKF,UAAUE,KAAK,iBAChC,AAhBN,cAgBOH,MAAMI,IAAI,EAAKH,UAAUG,IAAI,iBAC9B,AAjBN,cAiBOJ,MAAMK,KAAK,EAAKJ,UAAUI,KAAK;AAGtC,EAAE"}
|
|
@@ -3,59 +3,53 @@ import { useFieldControlProps_unstable } from '@fluentui/react-field';
|
|
|
3
3
|
import { getPartitionedNativeProps, resolveShorthand, useId, useMergedRefs } from '@fluentui/react-utilities';
|
|
4
4
|
import { useSliderState_unstable } from './useSliderState';
|
|
5
5
|
import { useFocusWithin } from '@fluentui/react-tabster';
|
|
6
|
-
export const useSlider_unstable = (props, ref)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
size =
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
})
|
|
56
|
-
};
|
|
57
|
-
state.root.ref = useMergedRefs(state.root.ref, useFocusWithin());
|
|
58
|
-
useSliderState_unstable(state, props);
|
|
59
|
-
return state;
|
|
6
|
+
export const useSlider_unstable = (props, ref)=>{
|
|
7
|
+
// Merge props from surrounding <Field>, if any
|
|
8
|
+
props = useFieldControlProps_unstable(props, {
|
|
9
|
+
supportsLabelFor: true
|
|
10
|
+
});
|
|
11
|
+
const nativeProps = getPartitionedNativeProps({
|
|
12
|
+
props,
|
|
13
|
+
primarySlotTagName: 'input',
|
|
14
|
+
excludedPropNames: [
|
|
15
|
+
'onChange',
|
|
16
|
+
'size'
|
|
17
|
+
]
|
|
18
|
+
});
|
|
19
|
+
const { disabled , vertical , size ='medium' , // Slots
|
|
20
|
+
root , input , rail , thumb } = props;
|
|
21
|
+
const state = {
|
|
22
|
+
disabled,
|
|
23
|
+
size,
|
|
24
|
+
vertical,
|
|
25
|
+
components: {
|
|
26
|
+
input: 'input',
|
|
27
|
+
rail: 'div',
|
|
28
|
+
root: 'div',
|
|
29
|
+
thumb: 'div'
|
|
30
|
+
},
|
|
31
|
+
root: resolveShorthand(root, {
|
|
32
|
+
required: true,
|
|
33
|
+
defaultProps: nativeProps.root
|
|
34
|
+
}),
|
|
35
|
+
input: resolveShorthand(input, {
|
|
36
|
+
required: true,
|
|
37
|
+
defaultProps: {
|
|
38
|
+
id: useId('slider-', props.id),
|
|
39
|
+
ref,
|
|
40
|
+
...nativeProps.primary,
|
|
41
|
+
type: 'range',
|
|
42
|
+
orient: vertical ? 'vertical' : undefined
|
|
43
|
+
}
|
|
44
|
+
}),
|
|
45
|
+
rail: resolveShorthand(rail, {
|
|
46
|
+
required: true
|
|
47
|
+
}),
|
|
48
|
+
thumb: resolveShorthand(thumb, {
|
|
49
|
+
required: true
|
|
50
|
+
})
|
|
51
|
+
};
|
|
52
|
+
state.root.ref = useMergedRefs(state.root.ref, useFocusWithin());
|
|
53
|
+
useSliderState_unstable(state, props);
|
|
54
|
+
return state;
|
|
60
55
|
};
|
|
61
|
-
//# sourceMappingURL=useSlider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["useSlider.ts"],"sourcesContent":["import * as React from 'react';\nimport { useFieldControlProps_unstable } from '@fluentui/react-field';\nimport { getPartitionedNativeProps, resolveShorthand, useId, useMergedRefs } from '@fluentui/react-utilities';\nimport { useSliderState_unstable } from './useSliderState';\nimport { SliderProps, SliderState } from './Slider.types';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n\nexport const useSlider_unstable = (props: SliderProps, ref: React.Ref<HTMLInputElement>): SliderState => {\n // Merge props from surrounding <Field>, if any\n props = useFieldControlProps_unstable(props, { supportsLabelFor: true });\n\n const nativeProps = getPartitionedNativeProps({\n props,\n primarySlotTagName: 'input',\n excludedPropNames: ['onChange', 'size'],\n });\n\n const {\n disabled,\n vertical,\n size = 'medium',\n // Slots\n root,\n input,\n rail,\n thumb,\n } = props;\n\n const state: SliderState = {\n disabled,\n size,\n vertical,\n components: {\n input: 'input',\n rail: 'div',\n root: 'div',\n thumb: 'div',\n },\n root: resolveShorthand(root, {\n required: true,\n defaultProps: nativeProps.root,\n }),\n input: resolveShorthand(input, {\n required: true,\n defaultProps: {\n id: useId('slider-', props.id),\n ref,\n ...nativeProps.primary,\n type: 'range',\n orient: vertical ? 'vertical' : undefined,\n },\n }),\n rail: resolveShorthand(rail, { required: true }),\n thumb: resolveShorthand(thumb, { required: true }),\n };\n\n state.root.ref = useMergedRefs(state.root.ref, useFocusWithin<HTMLDivElement>());\n\n useSliderState_unstable(state, props);\n\n return state;\n};\n"],"names":["React","useFieldControlProps_unstable","getPartitionedNativeProps","resolveShorthand","useId","useMergedRefs","useSliderState_unstable","useFocusWithin","useSlider_unstable","props","ref","supportsLabelFor","nativeProps","primarySlotTagName","excludedPropNames","disabled","vertical","size","root","input","rail","thumb","state","components","required","defaultProps","id","primary","type","orient","undefined"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,6BAA6B,QAAQ,wBAAwB;AACtE,SAASC,yBAAyB,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,aAAa,QAAQ,4BAA4B;AAC9G,SAASC,uBAAuB,QAAQ,mBAAmB;AAE3D,SAASC,cAAc,QAAQ,0BAA0B;AAEzD,OAAO,MAAMC,qBAAqB,CAACC,OAAoBC,MAAkD;IACvG,+CAA+C;IAC/CD,QAAQR,8BAA8BQ,OAAO;QAAEE,kBAAkB,IAAI;IAAC;IAEtE,MAAMC,cAAcV,0BAA0B;QAC5CO;QACAI,oBAAoB;QACpBC,mBAAmB;YAAC;YAAY;SAAO;IACzC;IAEA,MAAM,EACJC,SAAQ,EACRC,SAAQ,EACRC,MAAO,SAAQ,EACf,QAAQ;IACRC,KAAI,EACJC,MAAK,EACLC,KAAI,EACJC,MAAK,EACN,GAAGZ;IAEJ,MAAMa,QAAqB;QACzBP;QACAE;QACAD;QACAO,YAAY;YACVJ,OAAO;YACPC,MAAM;YACNF,MAAM;YACNG,OAAO;QACT;QACAH,MAAMf,iBAAiBe,MAAM;YAC3BM,UAAU,IAAI;YACdC,cAAcb,YAAYM,IAAI;QAChC;QACAC,OAAOhB,iBAAiBgB,OAAO;YAC7BK,UAAU,IAAI;YACdC,cAAc;gBACZC,IAAItB,MAAM,WAAWK,MAAMiB,EAAE;gBAC7BhB;gBACA,GAAGE,YAAYe,OAAO;gBACtBC,MAAM;gBACNC,QAAQb,WAAW,aAAac,SAAS;YAC3C;QACF;QACAV,MAAMjB,iBAAiBiB,MAAM;YAAEI,UAAU,IAAI;QAAC;QAC9CH,OAAOlB,iBAAiBkB,OAAO;YAAEG,UAAU,IAAI;QAAC;IAClD;IAEAF,MAAMJ,IAAI,CAACR,GAAG,GAAGL,cAAciB,MAAMJ,IAAI,CAACR,GAAG,EAAEH;IAE/CD,wBAAwBgB,OAAOb;IAE/B,OAAOa;AACT,EAAE"}
|
|
@@ -2,57 +2,44 @@ import * as React from 'react';
|
|
|
2
2
|
import { clamp, useControllableState, useEventCallback } from '@fluentui/react-utilities';
|
|
3
3
|
import { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';
|
|
4
4
|
import { sliderCSSVars } from './useSliderStyles.styles';
|
|
5
|
-
const {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
sliderDirectionVar
|
|
9
|
-
} = sliderCSSVars;
|
|
10
|
-
const getPercent = (value, min, max) => {
|
|
11
|
-
return max === min ? 0 : (value - min) / (max - min) * 100;
|
|
5
|
+
const { sliderStepsPercentVar , sliderProgressVar , sliderDirectionVar } = sliderCSSVars;
|
|
6
|
+
const getPercent = (value, min, max)=>{
|
|
7
|
+
return max === min ? 0 : (value - min) / (max - min) * 100;
|
|
12
8
|
};
|
|
13
|
-
export const useSliderState_unstable = (state, props)
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
state.root.style = {
|
|
50
|
-
...rootVariables,
|
|
51
|
-
...state.root.style
|
|
52
|
-
};
|
|
53
|
-
// Input Props
|
|
54
|
-
state.input.value = currentValue;
|
|
55
|
-
state.input.onChange = onChange;
|
|
56
|
-
return state;
|
|
9
|
+
export const useSliderState_unstable = (state, props)=>{
|
|
10
|
+
const { defaultValue =0 , min =0 , max =100 , step , value } = props;
|
|
11
|
+
const { dir } = useFluent();
|
|
12
|
+
const [currentValue, setCurrentValue] = useControllableState({
|
|
13
|
+
state: value !== undefined ? clamp(value, min, max) : undefined,
|
|
14
|
+
defaultState: clamp(defaultValue, min, max),
|
|
15
|
+
initialState: 0
|
|
16
|
+
});
|
|
17
|
+
const valuePercent = getPercent(currentValue, min, max);
|
|
18
|
+
const inputOnChange = state.input.onChange;
|
|
19
|
+
const propsOnChange = props.onChange;
|
|
20
|
+
const onChange = useEventCallback((ev)=>{
|
|
21
|
+
const newValue = Number(ev.target.value);
|
|
22
|
+
setCurrentValue(clamp(newValue, min, max));
|
|
23
|
+
if (inputOnChange && inputOnChange !== propsOnChange) {
|
|
24
|
+
inputOnChange(ev);
|
|
25
|
+
} else if (propsOnChange) {
|
|
26
|
+
propsOnChange(ev, {
|
|
27
|
+
value: newValue
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
const rootVariables = {
|
|
32
|
+
[sliderDirectionVar]: state.vertical ? '0deg' : dir === 'ltr' ? '90deg' : '270deg',
|
|
33
|
+
[sliderStepsPercentVar]: step && step > 0 ? `${step * 100 / (max - min)}%` : '',
|
|
34
|
+
[sliderProgressVar]: `${valuePercent}%`
|
|
35
|
+
};
|
|
36
|
+
// Root props
|
|
37
|
+
state.root.style = {
|
|
38
|
+
...rootVariables,
|
|
39
|
+
...state.root.style
|
|
40
|
+
};
|
|
41
|
+
// Input Props
|
|
42
|
+
state.input.value = currentValue;
|
|
43
|
+
state.input.onChange = onChange;
|
|
44
|
+
return state;
|
|
57
45
|
};
|
|
58
|
-
//# sourceMappingURL=useSliderState.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["useSliderState.tsx"],"sourcesContent":["import * as React from 'react';\nimport { clamp, useControllableState, useEventCallback } from '@fluentui/react-utilities';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { sliderCSSVars } from './useSliderStyles.styles';\nimport type { SliderState, SliderProps } from './Slider.types';\n\nconst { sliderStepsPercentVar, sliderProgressVar, sliderDirectionVar } = sliderCSSVars;\n\nconst getPercent = (value: number, min: number, max: number) => {\n return max === min ? 0 : ((value - min) / (max - min)) * 100;\n};\n\nexport const useSliderState_unstable = (state: SliderState, props: SliderProps) => {\n const { defaultValue = 0, min = 0, max = 100, step, value } = props;\n const { dir } = useFluent();\n const [currentValue, setCurrentValue] = useControllableState({\n state: value !== undefined ? clamp(value, min, max) : undefined,\n defaultState: clamp(defaultValue, min, max),\n initialState: 0,\n });\n const valuePercent = getPercent(currentValue, min, max);\n\n const inputOnChange = state.input.onChange;\n const propsOnChange = props.onChange;\n\n const onChange: React.ChangeEventHandler<HTMLInputElement> = useEventCallback(ev => {\n const newValue = Number(ev.target.value);\n setCurrentValue(clamp(newValue, min, max));\n\n if (inputOnChange && inputOnChange !== propsOnChange) {\n inputOnChange(ev);\n } else if (propsOnChange) {\n propsOnChange(ev, { value: newValue });\n }\n });\n\n const rootVariables = {\n [sliderDirectionVar]: state.vertical ? '0deg' : dir === 'ltr' ? '90deg' : '270deg',\n [sliderStepsPercentVar]: step && step > 0 ? `${(step * 100) / (max - min)}%` : '',\n [sliderProgressVar]: `${valuePercent}%`,\n };\n\n // Root props\n state.root.style = {\n ...rootVariables,\n ...state.root.style,\n };\n\n // Input Props\n state.input.value = currentValue;\n state.input.onChange = onChange;\n\n return state;\n};\n"],"names":["React","clamp","useControllableState","useEventCallback","useFluent_unstable","useFluent","sliderCSSVars","sliderStepsPercentVar","sliderProgressVar","sliderDirectionVar","getPercent","value","min","max","useSliderState_unstable","state","props","defaultValue","step","dir","currentValue","setCurrentValue","undefined","defaultState","initialState","valuePercent","inputOnChange","input","onChange","propsOnChange","ev","newValue","Number","target","rootVariables","vertical","root","style"],"mappings":"AAAA,YAAYA,WAAW,QAAQ;AAC/B,SAASC,KAAK,EAAEC,oBAAoB,EAAEC,gBAAgB,QAAQ,4BAA4B;AAC1F,SAASC,sBAAsBC,SAAS,QAAQ,kCAAkC;AAClF,SAASC,aAAa,QAAQ,2BAA2B;AAGzD,MAAM,EAAEC,sBAAqB,EAAEC,kBAAiB,EAAEC,mBAAkB,EAAE,GAAGH;AAEzE,MAAMI,aAAa,CAACC,OAAeC,KAAaC,MAAgB;IAC9D,OAAOA,QAAQD,MAAM,IAAI,AAAED,CAAAA,QAAQC,GAAE,IAAMC,CAAAA,MAAMD,GAAE,IAAM,GAAG;AAC9D;AAEA,OAAO,MAA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,GAAGS;IACpBL,MAAMY,KAAK,CAACC,QAAQ,GAAGA;IAEvB,OAAOb;AACT,EAAE"}
|
|
@@ -104,9 +104,9 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
|
104
104
|
Bsiemmq: "f1e2iu44",
|
|
105
105
|
B98u21t: ["ftuszwa", "f1ya6x16"],
|
|
106
106
|
B2pnrqr: "f1pffoy2",
|
|
107
|
+
B29w5g4: ["f1bmyog6", "f15fv2gd"],
|
|
107
108
|
Bhhzhcn: "fs6b7xr",
|
|
108
|
-
Bec0n69: ["f15fv2gd", "f1bmyog6"]
|
|
109
|
-
B29w5g4: ["f1bmyog6", "f15fv2gd"]
|
|
109
|
+
Bec0n69: ["f15fv2gd", "f1bmyog6"]
|
|
110
110
|
},
|
|
111
111
|
focusIndicatorVertical: {
|
|
112
112
|
Brovlpu: "ftqa4ok",
|
|
@@ -136,12 +136,12 @@ const useRootStyles = /*#__PURE__*/__styles({
|
|
|
136
136
|
Bsiemmq: "f1e2iu44",
|
|
137
137
|
B98u21t: ["ftuszwa", "f1ya6x16"],
|
|
138
138
|
B2pnrqr: "f1hxpdv8",
|
|
139
|
+
B29w5g4: ["fm5xmfm", "femsgmt"],
|
|
139
140
|
Bhhzhcn: "f1dmxpeg",
|
|
140
|
-
Bec0n69: ["femsgmt", "fm5xmfm"]
|
|
141
|
-
B29w5g4: ["fm5xmfm", "femsgmt"]
|
|
141
|
+
Bec0n69: ["femsgmt", "fm5xmfm"]
|
|
142
142
|
}
|
|
143
143
|
}, {
|
|
144
|
-
d: [".f10pi13n{position:relative;}", ".fwk3njj{display:inline-grid;}", ".f1sdsnyy{touch-action:none;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1oiokrs{justify-items:center;}", ".f1agqo6f{--fui-Slider__thumb--size:16px;}", ".f1i7ztpd{--fui-Slider__rail--size:2px;}", ".f1pha7fy{min-height:24px;}", ".f1a78h9h{--fui-Slider__thumb--size:20px;}", ".fuok0yf{--fui-Slider__rail--size:4px;}", ".f1nxs5xn{min-height:32px;}", ".fyvtabn{min-width:120px;}", ".fgfd48t{grid-template-rows:1fr var(--fui-Slider__thumb--size) 1fr;}", ".f4t5rw1{grid-template-columns:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}", ".f1pzv1zu{min-height:120px;}", ".fktlcaf{grid-template-rows:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}", ".fiadc6h{grid-template-columns:1fr var(--fui-Slider__thumb--size) 1fr;}", ".f4l8x3l{--fui-Slider__rail--color:var(--colorNeutralStrokeAccessible);}", ".f671q34{--fui-Slider__progress--color:var(--colorCompoundBrandBackground);}", ".fvfzmw5{--fui-Slider__thumb--color:var(--colorCompoundBrandBackground);}", ".foojseg{--fui-Slider__thumb--color:var(--colorNeutralForegroundDisabled);}", ".f1lgdqhv{--fui-Slider__rail--color:var(--colorNeutralBackgroundDisabled);}", ".f1veetlj{--fui-Slider__progress--color:var(--colorNeutralForegroundDisabled);}", ".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}", ".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}", ".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}", ".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}", ".ffht0p2[data-fui-focus-within]:focus-within::after{content:\"\";}", ".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}", ".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}", ".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}", ".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}", ".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}", ".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}", ".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}", ".f1pmxfrl[data-fui-focus-within]:focus-within::after{border-top-width:2px;}", ".fszkfcr[data-fui-focus-within]:focus-within::after{border-right-width:2px;}", ".f1ap5ily[data-fui-focus-within]:focus-within::after{border-left-width:2px;}", ".f57dp0y[data-fui-focus-within]:focus-within::after{border-bottom-width:2px;}", ".f11dm2qb[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f136rfnd[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--borderRadiusMedium);}", ".fdsq1qd[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--borderRadiusMedium);}", ".f1khssms[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--borderRadiusMedium);}", ".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}", ".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}", ".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}", ".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}", ".f1pffoy2[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - -2px);}", ".
|
|
144
|
+
d: [".f10pi13n{position:relative;}", ".fwk3njj{display:inline-grid;}", ".f1sdsnyy{touch-action:none;}", ".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}", ".f1oiokrs{justify-items:center;}", ".f1agqo6f{--fui-Slider__thumb--size:16px;}", ".f1i7ztpd{--fui-Slider__rail--size:2px;}", ".f1pha7fy{min-height:24px;}", ".f1a78h9h{--fui-Slider__thumb--size:20px;}", ".fuok0yf{--fui-Slider__rail--size:4px;}", ".f1nxs5xn{min-height:32px;}", ".fyvtabn{min-width:120px;}", ".fgfd48t{grid-template-rows:1fr var(--fui-Slider__thumb--size) 1fr;}", ".f4t5rw1{grid-template-columns:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}", ".f1pzv1zu{min-height:120px;}", ".fktlcaf{grid-template-rows:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}", ".fiadc6h{grid-template-columns:1fr var(--fui-Slider__thumb--size) 1fr;}", ".f4l8x3l{--fui-Slider__rail--color:var(--colorNeutralStrokeAccessible);}", ".f671q34{--fui-Slider__progress--color:var(--colorCompoundBrandBackground);}", ".fvfzmw5{--fui-Slider__thumb--color:var(--colorCompoundBrandBackground);}", ".foojseg{--fui-Slider__thumb--color:var(--colorNeutralForegroundDisabled);}", ".f1lgdqhv{--fui-Slider__rail--color:var(--colorNeutralBackgroundDisabled);}", ".f1veetlj{--fui-Slider__progress--color:var(--colorNeutralForegroundDisabled);}", ".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}", ".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}", ".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}", ".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}", ".ffht0p2[data-fui-focus-within]:focus-within::after{content:\"\";}", ".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}", ".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}", ".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}", ".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}", ".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}", ".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}", ".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}", ".f1pmxfrl[data-fui-focus-within]:focus-within::after{border-top-width:2px;}", ".fszkfcr[data-fui-focus-within]:focus-within::after{border-right-width:2px;}", ".f1ap5ily[data-fui-focus-within]:focus-within::after{border-left-width:2px;}", ".f57dp0y[data-fui-focus-within]:focus-within::after{border-bottom-width:2px;}", ".f11dm2qb[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--borderRadiusMedium);}", ".f136rfnd[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--borderRadiusMedium);}", ".fdsq1qd[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--borderRadiusMedium);}", ".f1khssms[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--borderRadiusMedium);}", ".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}", ".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}", ".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}", ".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}", ".f1pffoy2[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - -2px);}", ".f1bmyog6[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 8px);}", ".f15fv2gd[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 8px);}", ".fs6b7xr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - -2px);}", ".f1hxpdv8[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - 6px);}", ".fm5xmfm[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 4px);}", ".femsgmt[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 4px);}", ".f1dmxpeg[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - 6px);}"],
|
|
145
145
|
h: [".faw1t00:hover{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundHover);}", ".fxdgx5:hover{--fui-Slider__progress--color:var(--colorCompoundBrandBackgroundHover);}"],
|
|
146
146
|
a: [".fii04fa:active{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundPressed);}", ".f36hzz8:active{--fui-Slider__progress--color:var(--colorCompoundBrandBackgroundPressed);}"],
|
|
147
147
|
m: [["@media (forced-colors: active){.f1volkfw{--fui-Slider__rail--color:CanvasText;}}", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["shorthands","__styles","mergeClasses","createFocusOutlineStyle","tokens","sliderClassNames","root","rail","thumb","input","thumbSizeVar","railSizeVar","railColorVar","progressColorVar","thumbColorVar","sliderCSSVars","sliderDirectionVar","sliderProgressVar","sliderStepsPercentVar","useRootStyles","qhf8xq","mc9l5x","lpbzjs","Bt984gj","B7hvi0a","small","Bi64ftq","Ba19x4e","sshi5w","medium","horizontal","Bf4jedk","wkccdc","Budl1dq","vertical","enabled","B7wi8oa","B250r6j","Bpmy4es","Buw9y6v","Bq939m0","gjzr1t","tg7hqu","ypdvl1","Bw5jdd4","Bdjie01","Bvh9j6m","Bvsvvpo","disabled","focusIndicatorHorizontal","Brovlpu","B486eqv","Bssx7fj","uh7if5","clntm0","Dlk2r6","B2j2mmj","wigs8","pbfy6t","B0v4ure","ghq09","B24cy0v","Bwckmig","Bvwlmkc","Bbgo44z","Bil7v7r","skfxo0","jo1ztg","Ba3ybja","az1dzo","vppk2z","B6352mv","nr063g","Blmvk6g","Bsiemmq","B98u21t","B2pnrqr","Bhhzhcn","Bec0n69","B29w5g4","focusIndicatorVertical","d","h","a","m","f","i","useRailStyles","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","Bkecrkj","Ijaq50","nk6f5a","Br312pm","Bw0ie65","Bvjb7m6","Bcmaq0h","Bpd4iqm","oeaueh","Bw0xxkn","Ftih45","Brfgrao","Bbn5juq","Brdvuy1","a9b677","Bqenvij","Fbdkly","mdwyqc","Baz25je","Ccq8qp","Bciustq","lawp4y","useThumbStyles","E5pizo","De3pzq","Budzafs","r59vdv","n07z76","ck0cow","Bcvre1j","B0qfbqy","B4f6apu","y0oebl","uvfttm","Bdkvgpv","m598lv","qa3bma","Bbv0w2i","Bq4z7u6","Bk5zm6e","Bqjgrrk","Bm6vgfq","Bz10aip","oyh7mz","B5kzvoi","useInputStyles","Bceei9c","abs64n","z8tnut","z189sj","Byoj8tv","uwmqm3","B6of3ja","t21cq0","jrapky","Frg6f3","Brp00wb","useSliderStyles_unstable","state","rootStyles","railStyles","thumbStyles","inputStyles","isVertical","className","size"],"sources":["../../../src/components/Slider/useSliderStyles.styles.ts"],"sourcesContent":["import { shorthands, makeStyles, mergeClasses } from '@griffel/react';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\nimport type { SliderState, SliderSlots } from './Slider.types';\nimport type { SlotClassNames } from '@fluentui/react-utilities';\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\n// Internal CSS variables\nconst thumbSizeVar = `--fui-Slider__thumb--size`;\nconst railSizeVar = `--fui-Slider__rail--size`;\nconst railColorVar = `--fui-Slider__rail--color`;\nconst progressColorVar = `--fui-Slider__progress--color`;\nconst thumbColorVar = `--fui-Slider__thumb--color`;\n\nexport const sliderCSSVars = {\n sliderDirectionVar: `--fui-Slider--direction`,\n sliderProgressVar: `--fui-Slider--progress`,\n sliderStepsPercentVar: `--fui-Slider--steps-percent`,\n};\n\nconst { sliderDirectionVar, sliderStepsPercentVar, sliderProgressVar } = sliderCSSVars;\n\n/**\n * Styles for the root slot\n */\nconst useRootStyles = makeStyles({\n root: {\n position: 'relative',\n display: 'inline-grid',\n touchAction: 'none',\n alignItems: 'center',\n justifyItems: 'center',\n },\n\n small: {\n [thumbSizeVar]: '16px',\n [railSizeVar]: '2px',\n minHeight: '24px',\n },\n\n medium: {\n [thumbSizeVar]: '20px',\n [railSizeVar]: '4px',\n minHeight: '32px',\n },\n\n horizontal: {\n minWidth: '120px',\n // 3x3 grid with the rail and thumb in the center cell [2,2] and the hidden input stretching across all cells\n gridTemplateRows: `1fr var(${thumbSizeVar}) 1fr`,\n gridTemplateColumns: `1fr calc(100% - var(${thumbSizeVar})) 1fr`,\n },\n\n vertical: {\n minHeight: '120px',\n // 3x3 grid with the rail and thumb in the center cell [2,2] and the hidden input stretching across all cells\n gridTemplateRows: `1fr calc(100% - var(${thumbSizeVar})) 1fr`,\n gridTemplateColumns: `1fr var(${thumbSizeVar}) 1fr`,\n },\n\n enabled: {\n [railColorVar]: tokens.colorNeutralStrokeAccessible,\n [progressColorVar]: tokens.colorCompoundBrandBackground,\n [thumbColorVar]: tokens.colorCompoundBrandBackground,\n ':hover': {\n [thumbColorVar]: tokens.colorCompoundBrandBackgroundHover,\n [progressColorVar]: tokens.colorCompoundBrandBackgroundHover,\n },\n ':active': {\n [thumbColorVar]: tokens.colorCompoundBrandBackgroundPressed,\n [progressColorVar]: tokens.colorCompoundBrandBackgroundPressed,\n },\n '@media (forced-colors: active)': {\n [railColorVar]: 'CanvasText',\n [thumbColorVar]: 'Highlight',\n [progressColorVar]: 'Highlight',\n ':hover': {\n [thumbColorVar]: 'Highlight',\n [progressColorVar]: 'Highlight',\n },\n },\n },\n\n disabled: {\n [thumbColorVar]: tokens.colorNeutralForegroundDisabled,\n [railColorVar]: tokens.colorNeutralBackgroundDisabled,\n [progressColorVar]: tokens.colorNeutralForegroundDisabled,\n '@media (forced-colors: active)': {\n [railColorVar]: 'GrayText',\n [thumbColorVar]: 'GrayText',\n [progressColorVar]: 'GrayText',\n },\n },\n\n focusIndicatorHorizontal: createFocusOutlineStyle({\n selector: 'focus-within',\n style: { outlineOffset: { top: '-2px', bottom: '-2px', left: '8px', right: '8px' } },\n }),\n\n focusIndicatorVertical: createFocusOutlineStyle({\n selector: 'focus-within',\n style: { outlineOffset: { top: '6px', bottom: '6px', left: '4px', right: '4px' } },\n }),\n});\n\n/**\n * Styles for the rail slot\n */\nconst useRailStyles = makeStyles({\n rail: {\n ...shorthands.borderRadius(tokens.borderRadiusXLarge),\n pointerEvents: 'none',\n gridRowStart: '2',\n gridRowEnd: '2',\n gridColumnStart: '2',\n gridColumnEnd: '2',\n position: 'relative',\n forcedColorAdjust: 'none',\n // Background gradient represents the progress of the slider\n backgroundImage: `linear-gradient(\n var(${sliderDirectionVar}),\n var(${progressColorVar}) 0%,\n var(${progressColorVar}) var(${sliderProgressVar}),\n var(${railColorVar}) var(${sliderProgressVar})\n )`,\n outlineWidth: '1px',\n outlineStyle: 'solid',\n outlineColor: tokens.colorTransparentStroke,\n '::before': {\n content: \"''\",\n position: 'absolute',\n // Repeating gradient represents the steps if provided\n backgroundImage: `repeating-linear-gradient(\n var(${sliderDirectionVar}),\n #0000 0%,\n #0000 calc(var(${sliderStepsPercentVar}) - 1px),\n ${tokens.colorNeutralBackground1} calc(var(${sliderStepsPercentVar}) - 1px),\n ${tokens.colorNeutralBackground1} var(${sliderStepsPercentVar})\n )`,\n // force steps to use HighlightText for high contrast mode\n '@media (forced-colors: active)': {\n backgroundImage: `repeating-linear-gradient(\n var(${sliderDirectionVar}),\n #0000 0%,\n #0000 calc(var(${sliderStepsPercentVar}) - 1px),\n HighlightText calc(var(${sliderStepsPercentVar}) - 1px),\n HighlightText var(${sliderStepsPercentVar})\n )`,\n },\n },\n },\n\n horizontal: {\n width: '100%',\n height: `var(${railSizeVar})`,\n '::before': {\n left: '-1px',\n right: '-1px',\n height: `var(${railSizeVar})`,\n },\n },\n\n vertical: {\n width: `var(${railSizeVar})`,\n height: '100%',\n '::before': {\n width: `var(${railSizeVar})`,\n top: '-1px',\n bottom: '1px',\n },\n },\n});\n\n/**\n * Styles for the thumb slot\n */\nconst useThumbStyles = makeStyles({\n thumb: {\n gridRowStart: '2',\n gridRowEnd: '2',\n gridColumnStart: '2',\n gridColumnEnd: '2',\n position: 'absolute',\n width: `var(${thumbSizeVar})`,\n height: `var(${thumbSizeVar})`,\n pointerEvents: 'none',\n outlineStyle: 'none',\n forcedColorAdjust: 'none',\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n boxShadow: `0 0 0 calc(var(${thumbSizeVar}) * .2) ${tokens.colorNeutralBackground1} inset`,\n backgroundColor: `var(${thumbColorVar})`,\n '::before': {\n position: 'absolute',\n top: '0px',\n left: '0px',\n bottom: '0px',\n right: '0px',\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n boxSizing: 'border-box',\n content: \"''\",\n ...shorthands.border(`calc(var(${thumbSizeVar}) * .05)`, 'solid', tokens.colorNeutralStroke1),\n },\n },\n disabled: {\n '::before': {\n ...shorthands.border(`calc(var(${thumbSizeVar}) * .05)`, 'solid', tokens.colorNeutralForegroundDisabled),\n },\n },\n horizontal: {\n transform: 'translateX(-50%)',\n left: `var(${sliderProgressVar})`,\n },\n vertical: {\n transform: 'translateY(50%)',\n bottom: `var(${sliderProgressVar})`,\n },\n});\n\n/**\n * Styles for the Input slot\n */\nconst useInputStyles = makeStyles({\n input: {\n cursor: 'pointer',\n opacity: 0,\n gridRowStart: '1',\n gridRowEnd: '-1',\n gridColumnStart: '1',\n gridColumnEnd: '-1',\n ...shorthands.padding(0),\n ...shorthands.margin(0),\n },\n disabled: {\n cursor: 'default',\n },\n horizontal: {\n height: `var(${thumbSizeVar})`,\n width: '100%',\n },\n vertical: {\n height: '100%',\n width: `var(${thumbSizeVar})`,\n '-webkit-appearance': 'slider-vertical',\n },\n});\n\n/**\n * Apply styling to the Slider slots based on the state\n */\nexport const useSliderStyles_unstable = (state: SliderState): SliderState => {\n const rootStyles = useRootStyles();\n const railStyles = useRailStyles();\n const thumbStyles = useThumbStyles();\n const inputStyles = useInputStyles();\n const isVertical = state.vertical;\n\n state.root.className = mergeClasses(\n sliderClassNames.root,\n rootStyles.root,\n isVertical ? rootStyles.focusIndicatorVertical : rootStyles.focusIndicatorHorizontal,\n rootStyles[state.size!],\n isVertical ? rootStyles.vertical : rootStyles.horizontal,\n state.disabled ? rootStyles.disabled : rootStyles.enabled,\n state.root.className,\n );\n\n state.rail.className = mergeClasses(\n sliderClassNames.rail,\n railStyles.rail,\n isVertical ? railStyles.vertical : railStyles.horizontal,\n state.rail.className,\n );\n\n state.thumb.className = mergeClasses(\n sliderClassNames.thumb,\n thumbStyles.thumb,\n isVertical ? thumbStyles.vertical : thumbStyles.horizontal,\n state.disabled && thumbStyles.disabled,\n state.thumb.className,\n );\n\n state.input.className = mergeClasses(\n sliderClassNames.input,\n inputStyles.input,\n isVertical ?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vG,QAAQ,GAAGuG,UAAA,CAAWpH,OAAO,EACzDmH,KAAA,CAAMhJ,IAAI,CAACsJ,SAAS;EAGtBN,KAAA,CAAM/I,IAAI,CAACqJ,SAAS,GAAG1J,YAAA,CACrBG,gBAAA,CAAiBE,IAAI,EACrBiJ,UAAA,CAAWjJ,IAAI,EACfoJ,UAAA,GAAaH,UAAA,CAAWtH,QAAQ,GAAGsH,UAAA,CAAW1H,UAAU,EACxDwH,KAAA,CAAM/I,IAAI,CAACqJ,SAAS;EAGtBN,KAAA,CAAM9I,KAAK,CAACoJ,SAAS,GAAG1J,YAAA,CACtBG,gBAAA,CAAiBG,KAAK,EACtBiJ,WAAA,CAAYjJ,KAAK,EACjBmJ,UAAA,GAAaF,WAAA,CAAYvH,QAAQ,GAAGuH,WAAA,CAAY3H,UAAU,EAC1DwH,KAAA,CAAMtG,QAAQ,IAAIyG,WAAA,CAAYzG,QAAQ,EACtCsG,KAAA,CAAM9I,KAAK,CAACoJ,SAAS;EAGvBN,KAAA,CAAM7I,KAAK,CAACmJ,SAAS,GAAG1J,YAAA,CACtBG,gBAAA,CAAiBI,KAAK,EACtBiJ,WAAA,CAAYjJ,KAAK,EACjBkJ,UAAA,GAAaD,WAAA,CAAYxH,QAAQ,GAAGwH,WAAA,CAAY5H,UAAU,EAC1DwH,KAAA,CAAMtG,QAAQ,IAAI0G,WAAA,CAAY1G,QAAQ,EACtCsG,KAAA,CAAM7I,KAAK,CAACmJ,SAAS;EAGvB,OAAON,KAAA;AACT"}
|
|
1
|
+
{"version":3,"names":["shorthands","__styles","mergeClasses","createFocusOutlineStyle","tokens","sliderClassNames","root","rail","thumb","input","thumbSizeVar","railSizeVar","railColorVar","progressColorVar","thumbColorVar","sliderCSSVars","sliderDirectionVar","sliderProgressVar","sliderStepsPercentVar","useRootStyles","qhf8xq","mc9l5x","lpbzjs","Bt984gj","B7hvi0a","small","Bi64ftq","Ba19x4e","sshi5w","medium","horizontal","Bf4jedk","wkccdc","Budl1dq","vertical","enabled","B7wi8oa","B250r6j","Bpmy4es","Buw9y6v","Bq939m0","gjzr1t","tg7hqu","ypdvl1","Bw5jdd4","Bdjie01","Bvh9j6m","Bvsvvpo","disabled","focusIndicatorHorizontal","Brovlpu","B486eqv","Bssx7fj","uh7if5","clntm0","Dlk2r6","B2j2mmj","wigs8","pbfy6t","B0v4ure","ghq09","B24cy0v","Bwckmig","Bvwlmkc","Bbgo44z","Bil7v7r","skfxo0","jo1ztg","Ba3ybja","az1dzo","vppk2z","B6352mv","nr063g","Blmvk6g","Bsiemmq","B98u21t","B2pnrqr","B29w5g4","Bhhzhcn","Bec0n69","focusIndicatorVertical","d","h","a","m","f","i","useRailStyles","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","Bkecrkj","Ijaq50","nk6f5a","Br312pm","Bw0ie65","Bvjb7m6","Bcmaq0h","Bpd4iqm","oeaueh","Bw0xxkn","Ftih45","Brfgrao","Bbn5juq","Brdvuy1","a9b677","Bqenvij","Fbdkly","mdwyqc","Baz25je","Ccq8qp","Bciustq","lawp4y","useThumbStyles","E5pizo","De3pzq","Budzafs","r59vdv","n07z76","ck0cow","Bcvre1j","B0qfbqy","B4f6apu","y0oebl","uvfttm","Bdkvgpv","m598lv","qa3bma","Bbv0w2i","Bq4z7u6","Bk5zm6e","Bqjgrrk","Bm6vgfq","Bz10aip","oyh7mz","B5kzvoi","useInputStyles","Bceei9c","abs64n","z8tnut","z189sj","Byoj8tv","uwmqm3","B6of3ja","t21cq0","jrapky","Frg6f3","Brp00wb","useSliderStyles_unstable","state","rootStyles","railStyles","thumbStyles","inputStyles","isVertical","className","size"],"sources":["useSliderStyles.styles.js"],"sourcesContent":["import { shorthands, makeStyles, mergeClasses } from '@griffel/react';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\nexport const sliderClassNames = {\n root: 'fui-Slider',\n rail: 'fui-Slider__rail',\n thumb: 'fui-Slider__thumb',\n input: 'fui-Slider__input'\n};\n// Internal CSS variables\nconst thumbSizeVar = `--fui-Slider__thumb--size`;\nconst railSizeVar = `--fui-Slider__rail--size`;\nconst railColorVar = `--fui-Slider__rail--color`;\nconst progressColorVar = `--fui-Slider__progress--color`;\nconst thumbColorVar = `--fui-Slider__thumb--color`;\nexport const sliderCSSVars = {\n sliderDirectionVar: `--fui-Slider--direction`,\n sliderProgressVar: `--fui-Slider--progress`,\n sliderStepsPercentVar: `--fui-Slider--steps-percent`\n};\nconst { sliderDirectionVar , sliderStepsPercentVar , sliderProgressVar } = sliderCSSVars;\n/**\n * Styles for the root slot\n */ const useRootStyles = makeStyles({\n root: {\n position: 'relative',\n display: 'inline-grid',\n touchAction: 'none',\n alignItems: 'center',\n justifyItems: 'center'\n },\n small: {\n [thumbSizeVar]: '16px',\n [railSizeVar]: '2px',\n minHeight: '24px'\n },\n medium: {\n [thumbSizeVar]: '20px',\n [railSizeVar]: '4px',\n minHeight: '32px'\n },\n horizontal: {\n minWidth: '120px',\n // 3x3 grid with the rail and thumb in the center cell [2,2] and the hidden input stretching across all cells\n gridTemplateRows: `1fr var(${thumbSizeVar}) 1fr`,\n gridTemplateColumns: `1fr calc(100% - var(${thumbSizeVar})) 1fr`\n },\n vertical: {\n minHeight: '120px',\n // 3x3 grid with the rail and thumb in the center cell [2,2] and the hidden input stretching across all cells\n gridTemplateRows: `1fr calc(100% - var(${thumbSizeVar})) 1fr`,\n gridTemplateColumns: `1fr var(${thumbSizeVar}) 1fr`\n },\n enabled: {\n [railColorVar]: tokens.colorNeutralStrokeAccessible,\n [progressColorVar]: tokens.colorCompoundBrandBackground,\n [thumbColorVar]: tokens.colorCompoundBrandBackground,\n ':hover': {\n [thumbColorVar]: tokens.colorCompoundBrandBackgroundHover,\n [progressColorVar]: tokens.colorCompoundBrandBackgroundHover\n },\n ':active': {\n [thumbColorVar]: tokens.colorCompoundBrandBackgroundPressed,\n [progressColorVar]: tokens.colorCompoundBrandBackgroundPressed\n },\n '@media (forced-colors: active)': {\n [railColorVar]: 'CanvasText',\n [thumbColorVar]: 'Highlight',\n [progressColorVar]: 'Highlight',\n ':hover': {\n [thumbColorVar]: 'Highlight',\n [progressColorVar]: 'Highlight'\n }\n }\n },\n disabled: {\n [thumbColorVar]: tokens.colorNeutralForegroundDisabled,\n [railColorVar]: tokens.colorNeutralBackgroundDisabled,\n [progressColorVar]: tokens.colorNeutralForegroundDisabled,\n '@media (forced-colors: active)': {\n [railColorVar]: 'GrayText',\n [thumbColorVar]: 'GrayText',\n [progressColorVar]: 'GrayText'\n }\n },\n focusIndicatorHorizontal: createFocusOutlineStyle({\n selector: 'focus-within',\n style: {\n outlineOffset: {\n top: '-2px',\n bottom: '-2px',\n left: '8px',\n right: '8px'\n }\n }\n }),\n focusIndicatorVertical: createFocusOutlineStyle({\n selector: 'focus-within',\n style: {\n outlineOffset: {\n top: '6px',\n bottom: '6px',\n left: '4px',\n right: '4px'\n }\n }\n })\n});\n/**\n * Styles for the rail slot\n */ const useRailStyles = makeStyles({\n rail: {\n ...shorthands.borderRadius(tokens.borderRadiusXLarge),\n pointerEvents: 'none',\n gridRowStart: '2',\n gridRowEnd: '2',\n gridColumnStart: '2',\n gridColumnEnd: '2',\n position: 'relative',\n forcedColorAdjust: 'none',\n // Background gradient represents the progress of the slider\n backgroundImage: `linear-gradient(\n var(${sliderDirectionVar}),\n var(${progressColorVar}) 0%,\n var(${progressColorVar}) var(${sliderProgressVar}),\n var(${railColorVar}) var(${sliderProgressVar})\n )`,\n outlineWidth: '1px',\n outlineStyle: 'solid',\n outlineColor: tokens.colorTransparentStroke,\n '::before': {\n content: \"''\",\n position: 'absolute',\n // Repeating gradient represents the steps if provided\n backgroundImage: `repeating-linear-gradient(\n var(${sliderDirectionVar}),\n #0000 0%,\n #0000 calc(var(${sliderStepsPercentVar}) - 1px),\n ${tokens.colorNeutralBackground1} calc(var(${sliderStepsPercentVar}) - 1px),\n ${tokens.colorNeutralBackground1} var(${sliderStepsPercentVar})\n )`,\n // force steps to use HighlightText for high contrast mode\n '@media (forced-colors: active)': {\n backgroundImage: `repeating-linear-gradient(\n var(${sliderDirectionVar}),\n #0000 0%,\n #0000 calc(var(${sliderStepsPercentVar}) - 1px),\n HighlightText calc(var(${sliderStepsPercentVar}) - 1px),\n HighlightText var(${sliderStepsPercentVar})\n )`\n }\n }\n },\n horizontal: {\n width: '100%',\n height: `var(${railSizeVar})`,\n '::before': {\n left: '-1px',\n right: '-1px',\n height: `var(${railSizeVar})`\n }\n },\n vertical: {\n width: `var(${railSizeVar})`,\n height: '100%',\n '::before': {\n width: `var(${railSizeVar})`,\n top: '-1px',\n bottom: '1px'\n }\n }\n});\n/**\n * Styles for the thumb slot\n */ const useThumbStyles = makeStyles({\n thumb: {\n gridRowStart: '2',\n gridRowEnd: '2',\n gridColumnStart: '2',\n gridColumnEnd: '2',\n position: 'absolute',\n width: `var(${thumbSizeVar})`,\n height: `var(${thumbSizeVar})`,\n pointerEvents: 'none',\n outlineStyle: 'none',\n forcedColorAdjust: 'none',\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n boxShadow: `0 0 0 calc(var(${thumbSizeVar}) * .2) ${tokens.colorNeutralBackground1} inset`,\n backgroundColor: `var(${thumbColorVar})`,\n '::before': {\n position: 'absolute',\n top: '0px',\n left: '0px',\n bottom: '0px',\n right: '0px',\n ...shorthands.borderRadius(tokens.borderRadiusCircular),\n boxSizing: 'border-box',\n content: \"''\",\n ...shorthands.border(`calc(var(${thumbSizeVar}) * .05)`, 'solid', tokens.colorNeutralStroke1)\n }\n },\n disabled: {\n '::before': {\n ...shorthands.border(`calc(var(${thumbSizeVar}) * .05)`, 'solid', tokens.colorNeutralForegroundDisabled)\n }\n },\n horizontal: {\n transform: 'translateX(-50%)',\n left: `var(${sliderProgressVar})`\n },\n vertical: {\n transform: 'translateY(50%)',\n bottom: `var(${sliderProgressVar})`\n }\n});\n/**\n * Styles for the Input slot\n */ const useInputStyles = makeStyles({\n input: {\n cursor: 'pointer',\n opacity: 0,\n gridRowStart: '1',\n gridRowEnd: '-1',\n gridColumnStart: '1',\n gridColumnEnd: '-1',\n ...shorthands.padding(0),\n ...shorthands.margin(0)\n },\n disabled: {\n cursor: 'default'\n },\n horizontal: {\n height: `var(${thumbSizeVar})`,\n width: '100%'\n },\n vertical: {\n height: '100%',\n width: `var(${thumbSizeVar})`,\n '-webkit-appearance': 'slider-vertical'\n }\n});\n/**\n * Apply styling to the Slider slots based on the state\n */ export const useSliderStyles_unstable = (state)=>{\n const rootStyles = useRootStyles();\n const railStyles = useRailStyles();\n const thumbStyles = useThumbStyles();\n const inputStyles = useInputStyles();\n const isVertical = state.vertical;\n state.root.className = mergeClasses(sliderClassNames.root, rootStyles.root, isVertical ? rootStyles.focusIndicatorVertical : rootStyles.focusIndicatorHorizontal, rootStyles[state.size], isVertical ? rootStyles.vertical : rootStyles.horizontal, state.disabled ? rootStyles.disabled : rootStyles.enabled, state.root.className);\n state.rail.className = mergeClasses(sliderClassNames.rail, railStyles.rail, isVertical ? railStyles.vertical : railStyles.horizontal, state.rail.className);\n state.thumb.className = mergeClasses(sliderClassNames.thumb, thumbStyles.thumb, isVertical ? thumbStyles.vertical : thumbStyles.horizontal, state.disabled && thumbStyles.disabled, state.thumb.className);\n state.input.className = mergeClasses(sliderClassNames.input, inputStyles.input, isVertical ? inputStyles.vertical : inputStyles.horizontal, state.disabled && inputStyles.disabled, state.input.className);\n return state;\n};\n"],"mappings":"AAAA,SAASA,UAAU,EAAAC,QAAA,EAAcC,YAAY,QAAQ,gBAAgB;AACrE,SAASC,uBAAuB,QAAQ,yBAAyB;AACjE,SAASC,MAAM,QAAQ,uBAAuB;AAC9C,OAAO,MAAMC,gBAAgB,GAAG;EAC5BC,IAAI,EAAE,YAAY;EAClBC,IAAI,EAAE,kBAAkB;EACxBC,KAAK,EAAE,mBAAmB;EAC1BC,KAAK,EAAE;AACX,CAAC;AACD;AACA,MAAMC,YAAY,GAAI,2BAA0B;AAChD,MAAMC,WAAW,GAAI,0BAAyB;AAC9C,M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CAACqJ,SAAS,CAAC;EAC3JN,KAAK,CAAC9I,KAAK,CAACoJ,SAAS,GAAG1J,YAAY,CAACG,gBAAgB,CAACG,KAAK,EAAEiJ,WAAW,CAACjJ,KAAK,EAAEmJ,UAAU,GAAGF,WAAW,CAACvH,QAAQ,GAAGuH,WAAW,CAAC3H,UAAU,EAAEwH,KAAK,CAACtG,QAAQ,IAAIyG,WAAW,CAACzG,QAAQ,EAAEsG,KAAK,CAAC9I,KAAK,CAACoJ,SAAS,CAAC;EAC1MN,KAAK,CAAC7I,KAAK,CAACmJ,SAAS,GAAG1J,YAAY,CAACG,gBAAgB,CAACI,KAAK,EAAEiJ,WAAW,CAACjJ,KAAK,EAAEkJ,UAAU,GAAGD,WAAW,CAACxH,QAAQ,GAAGwH,WAAW,CAAC5H,UAAU,EAAEwH,KAAK,CAACtG,QAAQ,IAAI0G,WAAW,CAAC1G,QAAQ,EAAEsG,KAAK,CAAC7I,KAAK,CAACmJ,SAAS,CAAC;EAC1M,OAAON,KAAK;AAChB,CAAC"}
|
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"sources":["index.ts"],"sourcesContent":["export {\n Slider,\n renderSlider_unstable,\n sliderClassNames,\n sliderCSSVars,\n useSliderState_unstable,\n useSliderStyles_unstable,\n useSlider_unstable,\n} from './Slider';\nexport type { SliderOnChangeData, SliderProps, SliderSlots, SliderState } from './Slider';\n"],"names":["Slider","renderSlider_unstable","sliderClassNames","sliderCSSVars","useSliderState_unstable","useSliderStyles_unstable","useSlider_unstable"],"mappings":"AAAA,SACEA,MAAM,EACNC,qBAAqB,EACrBC,gBAAgB,EAChBC,aAAa,EACbC,uBAAuB,EACvBC,wBAAwB,EACxBC,kBAAkB,QACb,WAAW"}
|
package/lib-commonjs/Slider.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["Slider.js"],"sourcesContent":["export * from './components/Slider/index';\n"],"names":[],"mappings":";;;;;oBAAc"}
|
|
@@ -18,6 +18,4 @@ const Slider = /*#__PURE__*/ _react.forwardRef((props, ref)=>{
|
|
|
18
18
|
(0, _reactSharedContexts.useCustomStyleHook_unstable)('useSliderStyles_unstable')(state);
|
|
19
19
|
return (0, _renderSlider.renderSlider_unstable)(state);
|
|
20
20
|
});
|
|
21
|
-
Slider.displayName = 'Slider';
|
|
22
|
-
|
|
23
|
-
//# sourceMappingURL=Slider.js.map
|
|
21
|
+
Slider.displayName = 'Slider';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["Slider.js"],"sourcesContent":["import * as React from 'react';\nimport { useSlider_unstable } from './useSlider';\nimport { renderSlider_unstable } from './renderSlider';\nimport { useSliderStyles_unstable } from './useSliderStyles.styles';\nimport { useCustomStyleHook_unstable } from '@fluentui/react-shared-contexts';\n/**\n * The Slider component allows users to quickly select a value by dragging a thumb across a rail.\n */ export const Slider = /*#__PURE__*/ React.forwardRef((props, ref)=>{\n const state = useSlider_unstable(props, ref);\n useSliderStyles_unstable(state);\n useCustomStyleHook_unstable('useSliderStyles_unstable')(state);\n return renderSlider_unstable(state);\n});\nSlider.displayName = 'Slider';\n"],"names":["Slider","React","forwardRef","props","ref","state","useSlider_unstable","useSliderStyles_unstable","useCustomStyleHook_unstable","renderSlider_unstable","displayName"],"mappings":";;;;+BAOiBA;;aAAAA;;;6DAPM;2BACY;8BACG;uCACG;qCACG;AAGjC,MAAMA,SAAS,WAAW,GAAGC,OAAMC,UAAU,CAAC,CAACC,OAAOC,MAAM;IACnE,MAAMC,QAAQC,IAAAA,6BAAkB,EAACH,OAAOC;IACxCG,IAAAA,+CAAwB,EAACF;IACzBG,IAAAA,gDAA2B,EAAC,4BAA4BH;IACxD,OAAOI,IAAAA,mCAAqB,EAACJ;AACjC;AACAL,OAAOU,WAAW,GAAG"}
|
|
@@ -4,6 +4,3 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
});
|
|
5
5
|
const _interopRequireWildcard = require("@swc/helpers/lib/_interop_require_wildcard.js").default;
|
|
6
6
|
const _react = /*#__PURE__*/ _interopRequireWildcard(require("react"));
|
|
7
|
-
//# sourceMappingURL=Slider.types.js.map
|
|
8
|
-
|
|
9
|
-
//# sourceMappingURL=Slider.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["Slider.types.js"],"sourcesContent":["import * as React from 'react';\n"],"names":[],"mappings":";;;;;6DAAuB"}
|
|
@@ -21,6 +21,3 @@ _exportStar(require("./renderSlider"), exports);
|
|
|
21
21
|
_exportStar(require("./useSlider"), exports);
|
|
22
22
|
const _useSliderState = require("./useSliderState");
|
|
23
23
|
const _useSliderStylesStyles = require("./useSliderStyles.styles");
|
|
24
|
-
//# sourceMappingURL=index.js.map
|
|
25
|
-
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export * from './Slider';\nexport * from './Slider.types';\nexport * from './renderSlider';\nexport * from './useSlider';\nexport { useSliderState_unstable } from './useSliderState';\nexport { sliderClassNames, sliderCSSVars, useSliderStyles_unstable } from './useSliderStyles.styles';\n"],"names":["useSliderState_unstable","sliderClassNames","sliderCSSVars","useSliderStyles_unstable"],"mappings":";;;;;;;;;;;IAISA,uBAAuB,MAAvBA,uCAAuB;IACvBC,gBAAgB,MAAhBA,uCAAgB;IAAEC,aAAa,MAAbA,oCAAa;IAAEC,wBAAwB,MAAxBA,+CAAwB;;;oBALpD;oBACA;oBACA;oBACA;gCAC0B;uCACkC"}
|
|
@@ -11,6 +11,4 @@ const _reactUtilities = require("@fluentui/react-utilities");
|
|
|
11
11
|
const renderSlider_unstable = (state)=>{
|
|
12
12
|
const { slots , slotProps } = (0, _reactUtilities.getSlotsNext)(state);
|
|
13
13
|
return /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.root, slotProps.root, /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.input, slotProps.input), /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.rail, slotProps.rail), /*#__PURE__*/ (0, _reactJsxRuntime.createElement)(slots.thumb, slotProps.thumb));
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
//# sourceMappingURL=renderSlider.js.map
|
|
14
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["renderSlider.js"],"sourcesContent":["/** @jsxRuntime classic */ /** @jsx createElement */ import { createElement } from '@fluentui/react-jsx-runtime';\nimport { getSlotsNext } from '@fluentui/react-utilities';\n/**\n * Render the final JSX of Slider\n */ export const renderSlider_unstable = (state)=>{\n const { slots , slotProps } = getSlotsNext(state);\n return /*#__PURE__*/ createElement(slots.root, slotProps.root, /*#__PURE__*/ createElement(slots.input, slotProps.input), /*#__PURE__*/ createElement(slots.rail, slotProps.rail), /*#__PURE__*/ createElement(slots.thumb, slotProps.thumb));\n};\n"],"names":["renderSlider_unstable","state","slots","slotProps","getSlotsNext","createElement","root","input","rail","thumb"],"mappings":"AAAA,wBAAwB,GAAG,uBAAuB;;;;+BAIjCA;;aAAAA;;iCAJkE;gCACtD;AAGlB,MAAMA,wBAAwB,CAACC,QAAQ;IAC9C,MAAM,EAAEC,MAAK,EAAGC,UAAS,EAAG,GAAGC,IAAAA,4BAAY,EAACH;IAC5C,OAAO,WAAW,GAAGI,IAAAA,8BAAa,EAACH,MAAMI,IAAI,EAAEH,UAAUG,IAAI,EAAE,WAAW,GAAGD,IAAAA,8BAAa,EAACH,MAAMK,KAAK,EAAEJ,UAAUI,KAAK,GAAG,WAAW,GAAGF,IAAAA,8BAAa,EAACH,MAAMM,IAAI,EAAEL,UAAUK,IAAI,GAAG,WAAW,GAAGH,IAAAA,8BAAa,EAACH,MAAMO,KAAK,EAAEN,UAAUM,KAAK;AAC/O"}
|
|
@@ -25,8 +25,7 @@ const useSlider_unstable = (props, ref)=>{
|
|
|
25
25
|
'size'
|
|
26
26
|
]
|
|
27
27
|
});
|
|
28
|
-
const { disabled , vertical , size ='medium' ,
|
|
29
|
-
root , input , rail , thumb } = props;
|
|
28
|
+
const { disabled , vertical , size ='medium' , root , input , rail , thumb } = props;
|
|
30
29
|
const state = {
|
|
31
30
|
disabled,
|
|
32
31
|
size,
|
|
@@ -61,6 +60,4 @@ const useSlider_unstable = (props, ref)=>{
|
|
|
61
60
|
state.root.ref = (0, _reactUtilities.useMergedRefs)(state.root.ref, (0, _reactTabster.useFocusWithin)());
|
|
62
61
|
(0, _useSliderState.useSliderState_unstable)(state, props);
|
|
63
62
|
return state;
|
|
64
|
-
};
|
|
65
|
-
|
|
66
|
-
//# sourceMappingURL=useSlider.js.map
|
|
63
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["useSlider.js"],"sourcesContent":["import * as React from 'react';\nimport { useFieldControlProps_unstable } from '@fluentui/react-field';\nimport { getPartitionedNativeProps, resolveShorthand, useId, useMergedRefs } from '@fluentui/react-utilities';\nimport { useSliderState_unstable } from './useSliderState';\nimport { useFocusWithin } from '@fluentui/react-tabster';\nexport const useSlider_unstable = (props, ref)=>{\n // Merge props from surrounding <Field>, if any\n props = useFieldControlProps_unstable(props, {\n supportsLabelFor: true\n });\n const nativeProps = getPartitionedNativeProps({\n props,\n primarySlotTagName: 'input',\n excludedPropNames: [\n 'onChange',\n 'size'\n ]\n });\n const { disabled , vertical , size ='medium' , // Slots\n root , input , rail , thumb } = props;\n const state = {\n disabled,\n size,\n vertical,\n components: {\n input: 'input',\n rail: 'div',\n root: 'div',\n thumb: 'div'\n },\n root: resolveShorthand(root, {\n required: true,\n defaultProps: nativeProps.root\n }),\n input: resolveShorthand(input, {\n required: true,\n defaultProps: {\n id: useId('slider-', props.id),\n ref,\n ...nativeProps.primary,\n type: 'range',\n orient: vertical ? 'vertical' : undefined\n }\n }),\n rail: resolveShorthand(rail, {\n required: true\n }),\n thumb: resolveShorthand(thumb, {\n required: true\n })\n };\n state.root.ref = useMergedRefs(state.root.ref, useFocusWithin());\n useSliderState_unstable(state, props);\n return state;\n};\n"],"names":["useSlider_unstable","props","ref","useFieldControlProps_unstable","supportsLabelFor","nativeProps","getPartitionedNativeProps","primarySlotTagName","excludedPropNames","disabled","vertical","size","root","input","rail","thumb","state","components","resolveShorthand","required","defaultProps","id","useId","primary","type","orient","undefined","useMergedRefs","useFocusWithin","useSliderState_unstable"],"mappings":";;;;+BAKaA;;aAAAA;;;6DALU;4BACuB;gCACoC;gCAC1C;8BACT;AACxB,MAAMA,qBAAqB,CAACC,OAAOC,MAAM;IAC5C,+CAA+C;IAC/CD,QAAQE,IAAAA,yCAA6B,EAACF,OAAO;QACzCG,kBAAkB,IAAI;IAC1B;IACA,MAAMC,cAAcC,IAAAA,yCAAyB,EAAC;QAC1CL;QACAM,oBAAoB;QACpBC,mBAAmB;YACf;YACA;SACH;IACL;IACA,MAAM,EAAEC,SAAQ,EAAGC,SAAQ,EAAGC,MAAM,SAAQ,EAC5CC,KAAI,EAAGC,MAAK,EAAGC,KAAI,EAAGC,MAAK,EAAG,GAAGd;IACjC,MAAMe,QAAQ;QACVP;QACAE;QACAD;QACAO,YAAY;YACRJ,OAAO;YACPC,MAAM;YACNF,MAAM;YACNG,OAAO;QACX;QACAH,MAAMM,IAAAA,gCAAgB,EAACN,MAAM;YACzBO,UAAU,IAAI;YACdC,cAAcf,YAAYO,IAAI;QAClC;QACAC,OAAOK,IAAAA,gCAAgB,EAACL,OAAO;YAC3BM,UAAU,IAAI;YACdC,cAAc;gBACVC,IAAIC,IAAAA,qBAAK,EAAC,WAAWrB,MAAMoB,EAAE;gBAC7BnB;gBACA,GAAGG,YAAYkB,OAAO;gBACtBC,MAAM;gBACNC,QAAQf,WAAW,aAAagB,SAAS;YAC7C;QACJ;QACAZ,MAAMI,IAAAA,gCAAgB,EAACJ,MAAM;YACzBK,UAAU,IAAI;QAClB;QACAJ,OAAOG,IAAAA,gCAAgB,EAACH,OAAO;YAC3BI,UAAU,IAAI;QAClB;IACJ;IACAH,MAAMJ,IAAI,CAACV,GAAG,GAAGyB,IAAAA,6BAAa,EAACX,MAAMJ,IAAI,CAACV,GAAG,EAAE0B,IAAAA,4BAAc;IAC7DC,IAAAA,uCAAuB,EAACb,OAAOf;IAC/B,OAAOe;AACX"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["useSliderState.js"],"sourcesContent":["import * as React from 'react';\nimport { clamp, useControllableState, useEventCallback } from '@fluentui/react-utilities';\nimport { useFluent_unstable as useFluent } from '@fluentui/react-shared-contexts';\nimport { sliderCSSVars } from './useSliderStyles.styles';\nconst { sliderStepsPercentVar , sliderProgressVar , sliderDirectionVar } = sliderCSSVars;\nconst getPercent = (value, min, max)=>{\n return max === min ? 0 : (value - min) / (max - min) * 100;\n};\nexport const useSliderState_unstable = (state, props)=>{\n const { defaultValue =0 , min =0 , max =100 , step , value } = props;\n const { dir } = useFluent();\n const [currentValue, setCurrentValue] = useControllableState({\n state: value !== undefined ? clamp(value, min, max) : undefined,\n defaultState: clamp(defaultValue, min, max),\n initialState: 0\n });\n const valuePercent = getPercent(currentValue, min, max);\n const inputOnChange = state.input.onChange;\n const propsOnChange = props.onChange;\n const onChange = useEventCallback((ev)=>{\n const newValue = Number(ev.target.value);\n setCurrentValue(clamp(newValue, min, max));\n if (inputOnChange && inputOnChange !== propsOnChange) {\n inputOnChange(ev);\n } else if (propsOnChange) {\n propsOnChange(ev, {\n value: newValue\n });\n }\n });\n const rootVariables = {\n [sliderDirectionVar]: state.vertical ? '0deg' : dir === 'ltr' ? '90deg' : '270deg',\n [sliderStepsPercentVar]: step && step > 0 ? `${step * 100 / (max - min)}%` : '',\n [sliderProgressVar]: `${valuePercent}%`\n };\n // Root props\n state.root.style = {\n ...rootVariables,\n ...state.root.style\n };\n // Input Props\n state.input.value = currentValue;\n state.input.onChange = onChange;\n return state;\n};\n"],"names":["useSliderState_unstable","sliderStepsPercentVar","sliderProgressVar","sliderDirectionVar","sliderCSSVars","getPercent","value","min","max","state","props","defaultValue","step","dir","useFluent","currentValue","setCurrentValue","useControllableState","undefined","clamp","defaultState","initialState","valuePercent","inputOnChange","input","onChange","propsOnChange","useEventCallback","ev","newValue","Number","target","rootVariables","vertical","root","style"],"mappings":";;;;+BAQaA;;aAAAA;;;6DARU;gCACuC;qCACd;uCAClB;AAC9B,MAAM,EAAEC,sBAAqB,EAAGC,kBAAiB,EAAGC,mBAAkB,EAAG,GAAGC,oCAAa;AACzF,MAAMC,aAAa,CAACC,OAAOC,KAAKC,MAAM;IAClC,OAAOA,QAAQD,MAAM,IAAI,AAACD,CAAAA,QAAQC,GAAE,IAAMC,CAAAA,MAAMD,GAAE,IAAK,GAAG;AAC9D;AACO,MAAMP,0BAA0B,CAACS,OAAOC,QAAQ;IACnD,MAAM,EAAEC,cAAc,EAAC,EAAGJ,KAAK,EAAC,EAAGC,KAAK,IAAG,EAAGI,KAAI,EAAGN,MAAK,EAAG,GAAGI;IAChE,MAAM,EAAEG,IAAG,EAAG,GAAGC,IAAAA,uCAAS;IAC1B,MAAM,CAACC,cAAcC,gBAAgB,GAAGC,IAAAA,oCAAoB,EAAC;QACzDR,OAAOH,UAAUY,YAAYC,IAAAA,qBAAK,EAACb,OAAOC,KAAKC,OAAOU,SAAS;QAC/DE,cAAcD,IAAAA,qBAAK,EAACR,cAAcJ,KAAKC;QACvCa,cAAc;IAClB;IACA,MAAMC,eAAejB,WAAWU,cAAcR,KAAKC;IACnD,MAAMe,gBAAgBd,MAAMe,KAAK,CAACC,QAAQ;IAC1C,MAAMC,gBAAgBhB,MAAMe,QAAQ;IACpC,MAAMA,WAAWE,IAAAA,gCAAgB,EAAC,CAACC,KAAK;QACpC,MAAMC,WAAWC,OAAOF,GAAGG,MAAM,CAACzB,KAAK;QACvCU,gBAAgBG,IAAAA,qBAAK,EAACU,UAAUtB,KAAKC;QACrC,IAAIe,iBAAiBA,kBAAkBG,eAAe;YAClDH,cAAcK;QAClB,OAAO,IAAIF,eAAe;YACtBA,cAAcE,IAAI;gBACdtB,OAAOuB;YACX;QACJ,CAAC;IACL;IACA,MAAMG,gBAAgB;QAClB,CAAC7B,mBAAmB,EAAEM,MAAMwB,QAAQ,GAAG,SAASpB,QAAQ,QAAQ,UAAU,QAAQ;QAClF,CAACZ,sBAAsB,EAAEW,QAAQA,OAAO,IAAI,CAAC,EAAEA,OAAO,MAAOJ,CAAAA,MAAMD,GAAE,EAAG,CAAC,CAAC,GAAG,EAAE;QAC/E,CAACL,kBAAkB,EAAE,CAAC,EAAEoB,aAAa,CAAC,CAAC;IAC3C;IACA,aAAa;IACbb,MAAMyB,IAAI,CAACC,KAAK,GAAG;QACf,GAAGH,aAAa;QAChB,GAAGvB,MAAMyB,IAAI,CAACC,KAAK;IACvB;IACA,cAAc;IACd1B,MAAMe,KAAK,CAAClB,KAAK,GAAGS;IACpBN,MAAMe,KAAK,CAACC,QAAQ,GAAGA;IACvB,OAAOhB;AACX"}
|
|
@@ -148,14 +148,14 @@ const { sliderDirectionVar , sliderStepsPercentVar , sliderProgressVar } = slid
|
|
|
148
148
|
"f1ya6x16"
|
|
149
149
|
],
|
|
150
150
|
B2pnrqr: "f1pffoy2",
|
|
151
|
+
B29w5g4: [
|
|
152
|
+
"f1bmyog6",
|
|
153
|
+
"f15fv2gd"
|
|
154
|
+
],
|
|
151
155
|
Bhhzhcn: "fs6b7xr",
|
|
152
156
|
Bec0n69: [
|
|
153
157
|
"f15fv2gd",
|
|
154
158
|
"f1bmyog6"
|
|
155
|
-
],
|
|
156
|
-
B29w5g4: [
|
|
157
|
-
"f1bmyog6",
|
|
158
|
-
"f15fv2gd"
|
|
159
159
|
]
|
|
160
160
|
},
|
|
161
161
|
focusIndicatorVertical: {
|
|
@@ -222,14 +222,14 @@ const { sliderDirectionVar , sliderStepsPercentVar , sliderProgressVar } = slid
|
|
|
222
222
|
"f1ya6x16"
|
|
223
223
|
],
|
|
224
224
|
B2pnrqr: "f1hxpdv8",
|
|
225
|
+
B29w5g4: [
|
|
226
|
+
"fm5xmfm",
|
|
227
|
+
"femsgmt"
|
|
228
|
+
],
|
|
225
229
|
Bhhzhcn: "f1dmxpeg",
|
|
226
230
|
Bec0n69: [
|
|
227
231
|
"femsgmt",
|
|
228
232
|
"fm5xmfm"
|
|
229
|
-
],
|
|
230
|
-
B29w5g4: [
|
|
231
|
-
"fm5xmfm",
|
|
232
|
-
"femsgmt"
|
|
233
233
|
]
|
|
234
234
|
}
|
|
235
235
|
}, {
|
|
@@ -282,13 +282,13 @@ const { sliderDirectionVar , sliderStepsPercentVar , sliderProgressVar } = slid
|
|
|
282
282
|
".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",
|
|
283
283
|
".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",
|
|
284
284
|
".f1pffoy2[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - -2px);}",
|
|
285
|
-
".fs6b7xr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - -2px);}",
|
|
286
|
-
".f15fv2gd[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 8px);}",
|
|
287
285
|
".f1bmyog6[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 8px);}",
|
|
286
|
+
".f15fv2gd[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 8px);}",
|
|
287
|
+
".fs6b7xr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - -2px);}",
|
|
288
288
|
".f1hxpdv8[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - 6px);}",
|
|
289
|
-
".
|
|
289
|
+
".fm5xmfm[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 4px);}",
|
|
290
290
|
".femsgmt[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 4px);}",
|
|
291
|
-
".
|
|
291
|
+
".f1dmxpeg[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - 6px);}"
|
|
292
292
|
],
|
|
293
293
|
h: [
|
|
294
294
|
".faw1t00:hover{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundHover);}",
|
|
@@ -721,5 +721,3 @@ const useSliderStyles_unstable = (state)=>{
|
|
|
721
721
|
state.input.className = (0, _react.mergeClasses)(sliderClassNames.input, inputStyles.input, isVertical ? inputStyles.vertical : inputStyles.horizontal, state.disabled && inputStyles.disabled, state.input.className);
|
|
722
722
|
return state;
|
|
723
723
|
}; //# sourceMappingURL=useSliderStyles.styles.js.map
|
|
724
|
-
|
|
725
|
-
//# sourceMappingURL=useSliderStyles.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../lib/components/Slider/useSliderStyles.styles.js"],"sourcesContent":["import { shorthands, __styles, mergeClasses } from '@griffel/react';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\nexport const sliderClassNames = {\n root: 'fui-Slider',\n rail: 'fui-Slider__rail',\n thumb: 'fui-Slider__thumb',\n input: 'fui-Slider__input'\n};\n// Internal CSS variables\nconst thumbSizeVar = `--fui-Slider__thumb--size`;\nconst railSizeVar = `--fui-Slider__rail--size`;\nconst railColorVar = `--fui-Slider__rail--color`;\nconst progressColorVar = `--fui-Slider__progress--color`;\nconst thumbColorVar = `--fui-Slider__thumb--color`;\nexport const sliderCSSVars = {\n sliderDirectionVar: `--fui-Slider--direction`,\n sliderProgressVar: `--fui-Slider--progress`,\n sliderStepsPercentVar: `--fui-Slider--steps-percent`\n};\nconst {\n sliderDirectionVar,\n sliderStepsPercentVar,\n sliderProgressVar\n} = sliderCSSVars;\n/**\n * Styles for the root slot\n */\nconst useRootStyles = /*#__PURE__*/__styles({\n root: {\n qhf8xq: \"f10pi13n\",\n mc9l5x: \"fwk3njj\",\n lpbzjs: \"f1sdsnyy\",\n Bt984gj: \"f122n59\",\n B7hvi0a: \"f1oiokrs\"\n },\n small: {\n Bi64ftq: \"f1agqo6f\",\n Ba19x4e: \"f1i7ztpd\",\n sshi5w: \"f1pha7fy\"\n },\n medium: {\n Bi64ftq: \"f1a78h9h\",\n Ba19x4e: \"fuok0yf\",\n sshi5w: \"f1nxs5xn\"\n },\n horizontal: {\n Bf4jedk: \"fyvtabn\",\n wkccdc: \"fgfd48t\",\n Budl1dq: \"f4t5rw1\"\n },\n vertical: {\n sshi5w: \"f1pzv1zu\",\n wkccdc: \"fktlcaf\",\n Budl1dq: \"fiadc6h\"\n },\n enabled: {\n B7wi8oa: \"f4l8x3l\",\n B250r6j: \"f671q34\",\n Bpmy4es: \"fvfzmw5\",\n Buw9y6v: \"faw1t00\",\n Bq939m0: \"fxdgx5\",\n gjzr1t: \"fii04fa\",\n tg7hqu: \"f36hzz8\",\n ypdvl1: \"f1volkfw\",\n Bw5jdd4: \"f1xddb6\",\n Bdjie01: \"fcdikl\",\n Bvh9j6m: \"fhpzgm6\",\n Bvsvvpo: \"f1q6pm3h\"\n },\n disabled: {\n Bpmy4es: \"foojseg\",\n B7wi8oa: \"f1lgdqhv\",\n B250r6j: \"f1veetlj\",\n ypdvl1: \"fu12m3e\",\n Bw5jdd4: \"fi9guym\",\n Bdjie01: \"fcdjl4u\"\n },\n focusIndicatorHorizontal: {\n Brovlpu: \"ftqa4ok\",\n B486eqv: \"f2hkw1w\",\n Bssx7fj: \"f1b1k54r\",\n uh7if5: [\"f4ne723\", \"fqqcjud\"],\n clntm0: \"fh7aioi\",\n Dlk2r6: [\"fqqcjud\", \"f4ne723\"],\n B2j2mmj: \"ffht0p2\",\n wigs8: \"f1p0ul1q\",\n pbfy6t: \"f1c901ms\",\n B0v4ure: \"f1alokd7\",\n ghq09: \"f78i1la\",\n B24cy0v: [\"f1kvsw7t\", \"f1bw8brt\"],\n Bwckmig: \"f8k7e5g\",\n Bvwlmkc: [\"f1bw8brt\", \"f1kvsw7t\"],\n Bbgo44z: \"f1pmxfrl\",\n Bil7v7r: [\"fszkfcr\", \"f1ap5ily\"],\n skfxo0: \"f57dp0y\",\n jo1ztg: [\"f1ap5ily\", \"fszkfcr\"],\n Ba3ybja: [\"f11dm2qb\", \"f136rfnd\"],\n az1dzo: [\"f136rfnd\", \"f11dm2qb\"],\n vppk2z: [\"fdsq1qd\", \"f1khssms\"],\n B6352mv: [\"f1khssms\", \"fdsq1qd\"],\n nr063g: \"fq4eyks\",\n Blmvk6g: [\"f1ya6x16\", \"ftuszwa\"],\n Bsiemmq: \"f1e2iu44\",\n B98u21t: [\"ftuszwa\", \"f1ya6x16\"],\n B2pnrqr: \"f1pffoy2\",\n Bhhzhcn: \"fs6b7xr\",\n Bec0n69: [\"f15fv2gd\", \"f1bmyog6\"],\n B29w5g4: [\"f1bmyog6\", \"f15fv2gd\"]\n },\n focusIndicatorVertical: {\n Brovlpu: \"ftqa4ok\",\n B486eqv: \"f2hkw1w\",\n Bssx7fj: \"f1b1k54r\",\n uh7if5: [\"f4ne723\", \"fqqcjud\"],\n clntm0: \"fh7aioi\",\n Dlk2r6: [\"fqqcjud\", \"f4ne723\"],\n B2j2mmj: \"ffht0p2\",\n wigs8: \"f1p0ul1q\",\n pbfy6t: \"f1c901ms\",\n B0v4ure: \"f1alokd7\",\n ghq09: \"f78i1la\",\n B24cy0v: [\"f1kvsw7t\", \"f1bw8brt\"],\n Bwckmig: \"f8k7e5g\",\n Bvwlmkc: [\"f1bw8brt\", \"f1kvsw7t\"],\n Bbgo44z: \"f1pmxfrl\",\n Bil7v7r: [\"fszkfcr\", \"f1ap5ily\"],\n skfxo0: \"f57dp0y\",\n jo1ztg: [\"f1ap5ily\", \"fszkfcr\"],\n Ba3ybja: [\"f11dm2qb\", \"f136rfnd\"],\n az1dzo: [\"f136rfnd\", \"f11dm2qb\"],\n vppk2z: [\"fdsq1qd\", \"f1khssms\"],\n B6352mv: [\"f1khssms\", \"fdsq1qd\"],\n nr063g: \"fq4eyks\",\n Blmvk6g: [\"f1ya6x16\", \"ftuszwa\"],\n Bsiemmq: \"f1e2iu44\",\n B98u21t: [\"ftuszwa\", \"f1ya6x16\"],\n B2pnrqr: \"f1hxpdv8\",\n Bhhzhcn: \"f1dmxpeg\",\n Bec0n69: [\"femsgmt\", \"fm5xmfm\"],\n B29w5g4: [\"fm5xmfm\", \"femsgmt\"]\n }\n}, {\n d: [\".f10pi13n{position:relative;}\", \".fwk3njj{display:inline-grid;}\", \".f1sdsnyy{touch-action:none;}\", \".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}\", \".f1oiokrs{justify-items:center;}\", \".f1agqo6f{--fui-Slider__thumb--size:16px;}\", \".f1i7ztpd{--fui-Slider__rail--size:2px;}\", \".f1pha7fy{min-height:24px;}\", \".f1a78h9h{--fui-Slider__thumb--size:20px;}\", \".fuok0yf{--fui-Slider__rail--size:4px;}\", \".f1nxs5xn{min-height:32px;}\", \".fyvtabn{min-width:120px;}\", \".fgfd48t{grid-template-rows:1fr var(--fui-Slider__thumb--size) 1fr;}\", \".f4t5rw1{grid-template-columns:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}\", \".f1pzv1zu{min-height:120px;}\", \".fktlcaf{grid-template-rows:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}\", \".fiadc6h{grid-template-columns:1fr var(--fui-Slider__thumb--size) 1fr;}\", \".f4l8x3l{--fui-Slider__rail--color:var(--colorNeutralStrokeAccessible);}\", \".f671q34{--fui-Slider__progress--color:var(--colorCompoundBrandBackground);}\", \".fvfzmw5{--fui-Slider__thumb--color:var(--colorCompoundBrandBackground);}\", \".foojseg{--fui-Slider__thumb--color:var(--colorNeutralForegroundDisabled);}\", \".f1lgdqhv{--fui-Slider__rail--color:var(--colorNeutralBackgroundDisabled);}\", \".f1veetlj{--fui-Slider__progress--color:var(--colorNeutralForegroundDisabled);}\", \".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}\", \".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}\", \".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}\", \".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}\", \".ffht0p2[data-fui-focus-within]:focus-within::after{content:\\\"\\\";}\", \".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}\", \".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}\", \".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}\", \".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}\", \".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}\", \".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}\", \".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}\", \".f1pmxfrl[data-fui-focus-within]:focus-within::after{border-top-width:2px;}\", \".fszkfcr[data-fui-focus-within]:focus-within::after{border-right-width:2px;}\", \".f1ap5ily[data-fui-focus-within]:focus-within::after{border-left-width:2px;}\", \".f57dp0y[data-fui-focus-within]:focus-within::after{border-bottom-width:2px;}\", \".f11dm2qb[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--borderRadiusMedium);}\", \".f136rfnd[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--borderRadiusMedium);}\", \".fdsq1qd[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--borderRadiusMedium);}\", \".f1khssms[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--borderRadiusMedium);}\", \".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}\", \".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}\", \".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}\", \".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}\", \".f1pffoy2[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - -2px);}\", \".fs6b7xr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - -2px);}\", \".f15fv2gd[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 8px);}\", \".f1bmyog6[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 8px);}\", \".f1hxpdv8[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - 6px);}\", \".f1dmxpeg[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - 6px);}\", \".femsgmt[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 4px);}\", \".fm5xmfm[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 4px);}\"],\n h: [\".faw1t00:hover{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundHover);}\", \".fxdgx5:hover{--fui-Slider__progress--color:var(--colorCompoundBrandBackgroundHover);}\"],\n a: [\".fii04fa:active{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundPressed);}\", \".f36hzz8:active{--fui-Slider__progress--color:var(--colorCompoundBrandBackgroundPressed);}\"],\n m: [[\"@media (forced-colors: active){.f1volkfw{--fui-Slider__rail--color:CanvasText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1xddb6{--fui-Slider__thumb--color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fcdikl{--fui-Slider__progress--color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fhpzgm6:hover{--fui-Slider__thumb--color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1q6pm3h:hover{--fui-Slider__progress--color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fu12m3e{--fui-Slider__rail--color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fi9guym{--fui-Slider__thumb--color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fcdjl4u{--fui-Slider__progress--color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }]],\n f: [\".ftqa4ok:focus{outline-style:none;}\"],\n i: [\".f2hkw1w:focus-visible{outline-style:none;}\"]\n});\n/**\n * Styles for the rail slot\n */\nconst useRailStyles = /*#__PURE__*/__styles({\n rail: {\n Bbmb7ep: [\"fnivh3a\", \"fc7yr5o\"],\n Beyfa6y: [\"fc7yr5o\", \"fnivh3a\"],\n B7oj6ja: [\"f1el4m67\", \"f8yange\"],\n Btl43ni: [\"f8yange\", \"f1el4m67\"],\n Bkecrkj: \"f1aehjj5\",\n Ijaq50: \"faunodf\",\n nk6f5a: \"f88nxoq\",\n Br312pm: \"fd46tj4\",\n Bw0ie65: \"f1e2fz10\",\n qhf8xq: \"f10pi13n\",\n Bvjb7m6: \"fdgv6k0\",\n Bcmaq0h: \"fizngqt\",\n Bpd4iqm: \"fpvhumw\",\n oeaueh: \"f1yog68k\",\n Bw0xxkn: \"f13sgyd8\",\n Ftih45: \"fzhtfnv\",\n Brfgrao: \"f1j7ml58\",\n Bbn5juq: \"fx36ao7\",\n Brdvuy1: \"fux3rle\"\n },\n horizontal: {\n a9b677: \"fly5x3f\",\n Bqenvij: \"f1cy86ho\",\n Fbdkly: [\"f1heqfse\", \"fkh49vu\"],\n mdwyqc: [\"fkh49vu\", \"f1heqfse\"],\n Baz25je: \"f16tdq4e\"\n },\n vertical: {\n a9b677: \"fqxfnkd\",\n Bqenvij: \"f1l02sjl\",\n Ccq8qp: \"f1rik0od\",\n Bciustq: \"f14xwovp\",\n lawp4y: \"febq2dz\"\n }\n}, {\n d: [\".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}\", \".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}\", \".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}\", \".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}\", \".f1aehjj5{pointer-events:none;}\", \".faunodf{grid-row-start:2;}\", \".f88nxoq{grid-row-end:2;}\", \".fd46tj4{grid-column-start:2;}\", \".f1e2fz10{grid-column-end:2;}\", \".f10pi13n{position:relative;}\", \".fdgv6k0{forced-color-adjust:none;}\", \".fizngqt{background-image:linear-gradient(\\n var(--fui-Slider--direction),\\n var(--fui-Slider__progress--color) 0%,\\n var(--fui-Slider__progress--color) var(--fui-Slider--progress),\\n var(--fui-Slider__rail--color) var(--fui-Slider--progress)\\n );}\", \".fpvhumw{outline-width:1px;}\", \".f1yog68k{outline-style:solid;}\", \".f13sgyd8{outline-color:var(--colorTransparentStroke);}\", \".fzhtfnv::before{content:'';}\", \".f1j7ml58::before{position:absolute;}\", \".fx36ao7::before{background-image:repeating-linear-gradient(\\n var(--fui-Slider--direction),\\n #0000 0%,\\n #0000 calc(var(--fui-Slider--steps-percent) - 1px),\\n var(--colorNeutralBackground1) calc(var(--fui-Slider--steps-percent) - 1px),\\n var(--colorNeutralBackground1) var(--fui-Slider--steps-percent)\\n );}\", \".fly5x3f{width:100%;}\", \".f1cy86ho{height:var(--fui-Slider__rail--size);}\", \".f1heqfse::before{left:-1px;}\", \".fkh49vu::before{right:-1px;}\", \".f16tdq4e::before{height:var(--fui-Slider__rail--size);}\", \".fqxfnkd{width:var(--fui-Slider__rail--size);}\", \".f1l02sjl{height:100%;}\", \".f1rik0od::before{width:var(--fui-Slider__rail--size);}\", \".f14xwovp::before{top:-1px;}\", \".febq2dz::before{bottom:1px;}\"],\n m: [[\"@media (forced-colors: active){.fux3rle::before{background-image:repeating-linear-gradient(\\n var(--fui-Slider--direction),\\n #0000 0%,\\n #0000 calc(var(--fui-Slider--steps-percent) - 1px),\\n HighlightText calc(var(--fui-Slider--steps-percent) - 1px),\\n HighlightText var(--fui-Slider--steps-percent)\\n );}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\n/**\n * Styles for the thumb slot\n */\nconst useThumbStyles = /*#__PURE__*/__styles({\n thumb: {\n Ijaq50: \"faunodf\",\n nk6f5a: \"f88nxoq\",\n Br312pm: \"fd46tj4\",\n Bw0ie65: \"f1e2fz10\",\n qhf8xq: \"f1euv43f\",\n a9b677: \"f174ca62\",\n Bqenvij: \"f1yfdkfd\",\n Bkecrkj: \"f1aehjj5\",\n oeaueh: \"f1s6fcnf\",\n Bvjb7m6: \"fdgv6k0\",\n Bbmb7ep: [\"f8fbkgy\", \"f1nfllo7\"],\n Beyfa6y: [\"f1nfllo7\", \"f8fbkgy\"],\n B7oj6ja: [\"f1djnp8u\", \"f1s8kh49\"],\n Btl43ni: [\"f1s8kh49\", \"f1djnp8u\"],\n E5pizo: \"fof7hq0\",\n De3pzq: \"foksa45\",\n Brfgrao: \"f1j7ml58\",\n Bciustq: \"f14u7mkt\",\n Fbdkly: [\"f5zrw40\", \"f1ks5ppg\"],\n lawp4y: \"fto0uou\",\n mdwyqc: [\"f1ks5ppg\", \"f5zrw40\"],\n Budzafs: [\"feh19e8\", \"f3j3guj\"],\n r59vdv: [\"f3j3guj\", \"feh19e8\"],\n n07z76: [\"fo75joz\", \"f1yag6sl\"],\n ck0cow: [\"f1yag6sl\", \"fo75joz\"],\n Bcvre1j: \"fyl8oag\",\n Ftih45: \"fzhtfnv\",\n B0qfbqy: \"f1rponpz\",\n B4f6apu: [\"f1rvw2z1\", \"fjj0g3m\"],\n y0oebl: \"f1muowhs\",\n uvfttm: [\"fjj0g3m\", \"f1rvw2z1\"],\n Bdkvgpv: \"f163fonl\",\n m598lv: [\"f1yq6w5o\", \"f1jpmc5p\"],\n qa3bma: \"f11yjt3y\",\n Bbv0w2i: [\"f1jpmc5p\", \"f1yq6w5o\"],\n Bq4z7u6: \"f10tv6oz\",\n Bk5zm6e: [\"f16xp3sf\", \"f1seuxxq\"],\n Bqjgrrk: \"fwrmqbx\",\n Bm6vgfq: [\"f1seuxxq\", \"f16xp3sf\"]\n },\n disabled: {\n B0qfbqy: \"f1rponpz\",\n B4f6apu: [\"f1rvw2z1\", \"fjj0g3m\"],\n y0oebl: \"f1muowhs\",\n uvfttm: [\"fjj0g3m\", \"f1rvw2z1\"],\n Bdkvgpv: \"f163fonl\",\n m598lv: [\"f1yq6w5o\", \"f1jpmc5p\"],\n qa3bma: \"f11yjt3y\",\n Bbv0w2i: [\"f1jpmc5p\", \"f1yq6w5o\"],\n Bq4z7u6: \"f1pw3ppl\",\n Bk5zm6e: [\"fxoq2z\", \"f1ykj0h9\"],\n Bqjgrrk: \"f1sz5gii\",\n Bm6vgfq: [\"f1ykj0h9\", \"fxoq2z\"]\n },\n horizontal: {\n Bz10aip: [\"f13gfj74\", \"f1nfknbn\"],\n oyh7mz: [\"f1fj3zth\", \"fcf9u6w\"]\n },\n vertical: {\n Bz10aip: \"f5cv5a3\",\n B5kzvoi: \"feeniun\"\n }\n}, {\n d: [\".faunodf{grid-row-start:2;}\", \".f88nxoq{grid-row-end:2;}\", \".fd46tj4{grid-column-start:2;}\", \".f1e2fz10{grid-column-end:2;}\", \".f1euv43f{position:absolute;}\", \".f174ca62{width:var(--fui-Slider__thumb--size);}\", \".f1yfdkfd{height:var(--fui-Slider__thumb--size);}\", \".f1aehjj5{pointer-events:none;}\", \".f1s6fcnf{outline-style:none;}\", \".fdgv6k0{forced-color-adjust:none;}\", \".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}\", \".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}\", \".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}\", \".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}\", \".fof7hq0{box-shadow:0 0 0 calc(var(--fui-Slider__thumb--size) * .2) var(--colorNeutralBackground1) inset;}\", \".foksa45{background-color:var(--fui-Slider__thumb--color);}\", \".f1j7ml58::before{position:absolute;}\", \".f14u7mkt::before{top:0px;}\", \".f5zrw40::before{left:0px;}\", \".f1ks5ppg::before{right:0px;}\", \".fto0uou::before{bottom:0px;}\", \".feh19e8::before{border-bottom-right-radius:var(--borderRadiusCircular);}\", \".f3j3guj::before{border-bottom-left-radius:var(--borderRadiusCircular);}\", \".fo75joz::before{border-top-right-radius:var(--borderRadiusCircular);}\", \".f1yag6sl::before{border-top-left-radius:var(--borderRadiusCircular);}\", \".fyl8oag::before{box-sizing:border-box;}\", \".fzhtfnv::before{content:'';}\", \".f1rponpz::before{border-top-width:calc(var(--fui-Slider__thumb--size) * .05);}\", \".f1rvw2z1::before{border-right-width:calc(var(--fui-Slider__thumb--size) * .05);}\", \".fjj0g3m::before{border-left-width:calc(var(--fui-Slider__thumb--size) * .05);}\", \".f1muowhs::before{border-bottom-width:calc(var(--fui-Slider__thumb--size) * .05);}\", \".f163fonl::before{border-top-style:solid;}\", \".f1yq6w5o::before{border-right-style:solid;}\", \".f1jpmc5p::before{border-left-style:solid;}\", \".f11yjt3y::before{border-bottom-style:solid;}\", \".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}\", \".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}\", \".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}\", \".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}\", \".f1pw3ppl::before{border-top-color:var(--colorNeutralForegroundDisabled);}\", \".fxoq2z::before{border-right-color:var(--colorNeutralForegroundDisabled);}\", \".f1ykj0h9::before{border-left-color:var(--colorNeutralForegroundDisabled);}\", \".f1sz5gii::before{border-bottom-color:var(--colorNeutralForegroundDisabled);}\", \".f13gfj74{-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);}\", \".f1nfknbn{-webkit-transform:translateX(50%);-moz-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);}\", \".f1fj3zth{left:var(--fui-Slider--progress);}\", \".fcf9u6w{right:var(--fui-Slider--progress);}\", \".f5cv5a3{-webkit-transform:translateY(50%);-moz-transform:translateY(50%);-ms-transform:translateY(50%);transform:translateY(50%);}\", \".feeniun{bottom:var(--fui-Slider--progress);}\"]\n});\n/**\n * Styles for the Input slot\n */\nconst useInputStyles = /*#__PURE__*/__styles({\n input: {\n Bceei9c: \"f1k6fduh\",\n abs64n: \"fk73vx1\",\n Ijaq50: \"f16hsg94\",\n nk6f5a: \"f1nzqi2z\",\n Br312pm: \"fwpfdsa\",\n Bw0ie65: \"fuur7zz\",\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"],\n B6of3ja: \"f1hu3pq6\",\n t21cq0: [\"f11qmguv\", \"f1tyq0we\"],\n jrapky: \"f19f4twv\",\n Frg6f3: [\"f1tyq0we\", \"f11qmguv\"]\n },\n disabled: {\n Bceei9c: \"f158kwzp\"\n },\n horizontal: {\n Bqenvij: \"f1yfdkfd\",\n a9b677: \"fly5x3f\"\n },\n vertical: {\n Bqenvij: \"f1l02sjl\",\n a9b677: \"f174ca62\",\n Brp00wb: \"f1r9mf01\"\n }\n}, {\n d: [\".f1k6fduh{cursor:pointer;}\", \".fk73vx1{opacity:0;}\", \".f16hsg94{grid-row-start:1;}\", \".f1nzqi2z{grid-row-end:-1;}\", \".fwpfdsa{grid-column-start:1;}\", \".fuur7zz{grid-column-end:-1;}\", \".f1g0x7ka{padding-top:0;}\", \".fhxju0i{padding-right:0;}\", \".f1cnd47f{padding-left:0;}\", \".f1qch9an{padding-bottom:0;}\", \".f1hu3pq6{margin-top:0;}\", \".f11qmguv{margin-right:0;}\", \".f1tyq0we{margin-left:0;}\", \".f19f4twv{margin-bottom:0;}\", \".f158kwzp{cursor:default;}\", \".f1yfdkfd{height:var(--fui-Slider__thumb--size);}\", \".fly5x3f{width:100%;}\", \".f1l02sjl{height:100%;}\", \".f174ca62{width:var(--fui-Slider__thumb--size);}\", \".f1r9mf01{-webkit-appearance:slider-vertical;}\"]\n});\n/**\n * Apply styling to the Slider slots based on the state\n */\nexport const useSliderStyles_unstable = state => {\n const rootStyles = useRootStyles();\n const railStyles = useRailStyles();\n const thumbStyles = useThumbStyles();\n const inputStyles = useInputStyles();\n const isVertical = state.vertical;\n state.root.className = mergeClasses(sliderClassNames.root, rootStyles.root, isVertical ? rootStyles.focusIndicatorVertical : rootStyles.focusIndicatorHorizontal, rootStyles[state.size], isVertical ? rootStyles.vertical : rootStyles.horizontal, state.disabled ? rootStyles.disabled : rootStyles.enabled, state.root.className);\n state.rail.className = mergeClasses(sliderClassNames.rail, railStyles.rail, isVertical ? railStyles.vertical : railStyles.horizontal, state.rail.className);\n state.thumb.className = mergeClasses(sliderClassNames.thumb, thumbStyles.thumb, isVertical ? thumbStyles.vertical : thumbStyles.horizontal, state.disabled && thumbStyles.disabled, state.thumb.className);\n state.input.className = mergeClasses(sliderClassNames.input, inputStyles.input, isVertical ? inputStyles.vertical : inputStyles.horizontal, state.disabled && inputStyles.disabled, state.input.className);\n return state;\n};\n//# sourceMappingURL=useSliderStyles.styles.js.map"],"names":["sliderClassNames","sliderCSSVars","useSliderStyles_unstable","root","rail","thumb","input","thumbSizeVar","railSizeVar","railColorVar","progressColorVar","thumbColorVar","sliderDirectionVar","sliderProgressVar","sliderStepsPercentVar","useRootStyles","__styles","qhf8xq","mc9l5x","lpbzjs","Bt984gj","B7hvi0a","small","Bi64ftq","Ba19x4e","sshi5w","medium","horizontal","Bf4jedk","wkccdc","Budl1dq","vertical","enabled","B7wi8oa","B250r6j","Bpmy4es","Buw9y6v","Bq939m0","gjzr1t","tg7hqu","ypdvl1","Bw5jdd4","Bdjie01","Bvh9j6m","Bvsvvpo","disabled","focusIndicatorHorizontal","Brovlpu","B486eqv","Bssx7fj","uh7if5","clntm0","Dlk2r6","B2j2mmj","wigs8","pbfy6t","B0v4ure","ghq09","B24cy0v","Bwckmig","Bvwlmkc","Bbgo44z","Bil7v7r","skfxo0","jo1ztg","Ba3ybja","az1dzo","vppk2z","B6352mv","nr063g","Blmvk6g","Bsiemmq","B98u21t","B2pnrqr","Bhhzhcn","Bec0n69","B29w5g4","focusIndicatorVertical","d","h","a","m","f","i","useRailStyles","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","Bkecrkj","Ijaq50","nk6f5a","Br312pm","Bw0ie65","Bvjb7m6","Bcmaq0h","Bpd4iqm","oeaueh","Bw0xxkn","Ftih45","Brfgrao","Bbn5juq","Brdvuy1","a9b677","Bqenvij","Fbdkly","mdwyqc","Baz25je","Ccq8qp","Bciustq","lawp4y","useThumbStyles","E5pizo","De3pzq","Budzafs","r59vdv","n07z76","ck0cow","Bcvre1j","B0qfbqy","B4f6apu","y0oebl","uvfttm","Bdkvgpv","m598lv","qa3bma","Bbv0w2i","Bq4z7u6","Bk5zm6e","Bqjgrrk","Bm6vgfq","Bz10aip","oyh7mz","B5kzvoi","useInputStyles","Bceei9c","abs64n","z8tnut","z189sj","Byoj8tv","uwmqm3","B6of3ja","t21cq0","jrapky","Frg6f3","Brp00wb","state","rootStyles","railStyles","thumbStyles","inputStyles","isVertical","className","mergeClasses","size"],"mappings":";;;;;;;;;;;IAGaA,gBAAgB,MAAhBA;IAYAC,aAAa,MAAbA;IAgTAC,wBAAwB,MAAxBA;;uBA/TsC;AAG5C,MAAMF,mBAAmB;IAC9BG,MAAM;IACNC,MAAM;IACNC,OAAO;IACPC,OAAO;AACT;AACA,yBAAyB;AACzB,MAAMC,eAAe,CAAC,yBAAyB,CAAC;AAChD,MAAMC,cAAc,CAAC,wBAAwB,CAAC;AAC9C,MAAMC,eAAe,CAAC,yBAAyB,CAAC;AAChD,MAAMC,mBAAmB,CAAC,6BAA6B,CAAC;AACxD,MAAMC,gBAAgB,CAAC,0BAA0B,CAAC;AAC3C,MAAMV,gBAAgB;IAC3BW,oBAAoB,CAAC,uBAAuB,CAAC;IAC7CC,mBAAmB,CAAC,sBAAsB,CAAC;IAC3CC,uBAAuB,CAAC,2BAA2B,CAAC;AACtD;AACA,MAAM,EACJ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EuH,MAAMrG,QAAQ,IAAIyG,YAAYzG,QAAQ,EAAEqG,MAAM5I,KAAK,CAACkJ,SAAS;IACzM,OAAON;AACT,GACA,kDAAkD"}
|
|
1
|
+
{"version":3,"sources":["useSliderStyles.styles.js"],"sourcesContent":["import { shorthands, __styles, mergeClasses } from '@griffel/react';\nimport { createFocusOutlineStyle } from '@fluentui/react-tabster';\nimport { tokens } from '@fluentui/react-theme';\nexport const sliderClassNames = {\n root: 'fui-Slider',\n rail: 'fui-Slider__rail',\n thumb: 'fui-Slider__thumb',\n input: 'fui-Slider__input'\n};\n// Internal CSS variables\nconst thumbSizeVar = `--fui-Slider__thumb--size`;\nconst railSizeVar = `--fui-Slider__rail--size`;\nconst railColorVar = `--fui-Slider__rail--color`;\nconst progressColorVar = `--fui-Slider__progress--color`;\nconst thumbColorVar = `--fui-Slider__thumb--color`;\nexport const sliderCSSVars = {\n sliderDirectionVar: `--fui-Slider--direction`,\n sliderProgressVar: `--fui-Slider--progress`,\n sliderStepsPercentVar: `--fui-Slider--steps-percent`\n};\nconst {\n sliderDirectionVar,\n sliderStepsPercentVar,\n sliderProgressVar\n} = sliderCSSVars;\n/**\n * Styles for the root slot\n */\nconst useRootStyles = /*#__PURE__*/__styles({\n root: {\n qhf8xq: \"f10pi13n\",\n mc9l5x: \"fwk3njj\",\n lpbzjs: \"f1sdsnyy\",\n Bt984gj: \"f122n59\",\n B7hvi0a: \"f1oiokrs\"\n },\n small: {\n Bi64ftq: \"f1agqo6f\",\n Ba19x4e: \"f1i7ztpd\",\n sshi5w: \"f1pha7fy\"\n },\n medium: {\n Bi64ftq: \"f1a78h9h\",\n Ba19x4e: \"fuok0yf\",\n sshi5w: \"f1nxs5xn\"\n },\n horizontal: {\n Bf4jedk: \"fyvtabn\",\n wkccdc: \"fgfd48t\",\n Budl1dq: \"f4t5rw1\"\n },\n vertical: {\n sshi5w: \"f1pzv1zu\",\n wkccdc: \"fktlcaf\",\n Budl1dq: \"fiadc6h\"\n },\n enabled: {\n B7wi8oa: \"f4l8x3l\",\n B250r6j: \"f671q34\",\n Bpmy4es: \"fvfzmw5\",\n Buw9y6v: \"faw1t00\",\n Bq939m0: \"fxdgx5\",\n gjzr1t: \"fii04fa\",\n tg7hqu: \"f36hzz8\",\n ypdvl1: \"f1volkfw\",\n Bw5jdd4: \"f1xddb6\",\n Bdjie01: \"fcdikl\",\n Bvh9j6m: \"fhpzgm6\",\n Bvsvvpo: \"f1q6pm3h\"\n },\n disabled: {\n Bpmy4es: \"foojseg\",\n B7wi8oa: \"f1lgdqhv\",\n B250r6j: \"f1veetlj\",\n ypdvl1: \"fu12m3e\",\n Bw5jdd4: \"fi9guym\",\n Bdjie01: \"fcdjl4u\"\n },\n focusIndicatorHorizontal: {\n Brovlpu: \"ftqa4ok\",\n B486eqv: \"f2hkw1w\",\n Bssx7fj: \"f1b1k54r\",\n uh7if5: [\"f4ne723\", \"fqqcjud\"],\n clntm0: \"fh7aioi\",\n Dlk2r6: [\"fqqcjud\", \"f4ne723\"],\n B2j2mmj: \"ffht0p2\",\n wigs8: \"f1p0ul1q\",\n pbfy6t: \"f1c901ms\",\n B0v4ure: \"f1alokd7\",\n ghq09: \"f78i1la\",\n B24cy0v: [\"f1kvsw7t\", \"f1bw8brt\"],\n Bwckmig: \"f8k7e5g\",\n Bvwlmkc: [\"f1bw8brt\", \"f1kvsw7t\"],\n Bbgo44z: \"f1pmxfrl\",\n Bil7v7r: [\"fszkfcr\", \"f1ap5ily\"],\n skfxo0: \"f57dp0y\",\n jo1ztg: [\"f1ap5ily\", \"fszkfcr\"],\n Ba3ybja: [\"f11dm2qb\", \"f136rfnd\"],\n az1dzo: [\"f136rfnd\", \"f11dm2qb\"],\n vppk2z: [\"fdsq1qd\", \"f1khssms\"],\n B6352mv: [\"f1khssms\", \"fdsq1qd\"],\n nr063g: \"fq4eyks\",\n Blmvk6g: [\"f1ya6x16\", \"ftuszwa\"],\n Bsiemmq: \"f1e2iu44\",\n B98u21t: [\"ftuszwa\", \"f1ya6x16\"],\n B2pnrqr: \"f1pffoy2\",\n B29w5g4: [\"f1bmyog6\", \"f15fv2gd\"],\n Bhhzhcn: \"fs6b7xr\",\n Bec0n69: [\"f15fv2gd\", \"f1bmyog6\"]\n },\n focusIndicatorVertical: {\n Brovlpu: \"ftqa4ok\",\n B486eqv: \"f2hkw1w\",\n Bssx7fj: \"f1b1k54r\",\n uh7if5: [\"f4ne723\", \"fqqcjud\"],\n clntm0: \"fh7aioi\",\n Dlk2r6: [\"fqqcjud\", \"f4ne723\"],\n B2j2mmj: \"ffht0p2\",\n wigs8: \"f1p0ul1q\",\n pbfy6t: \"f1c901ms\",\n B0v4ure: \"f1alokd7\",\n ghq09: \"f78i1la\",\n B24cy0v: [\"f1kvsw7t\", \"f1bw8brt\"],\n Bwckmig: \"f8k7e5g\",\n Bvwlmkc: [\"f1bw8brt\", \"f1kvsw7t\"],\n Bbgo44z: \"f1pmxfrl\",\n Bil7v7r: [\"fszkfcr\", \"f1ap5ily\"],\n skfxo0: \"f57dp0y\",\n jo1ztg: [\"f1ap5ily\", \"fszkfcr\"],\n Ba3ybja: [\"f11dm2qb\", \"f136rfnd\"],\n az1dzo: [\"f136rfnd\", \"f11dm2qb\"],\n vppk2z: [\"fdsq1qd\", \"f1khssms\"],\n B6352mv: [\"f1khssms\", \"fdsq1qd\"],\n nr063g: \"fq4eyks\",\n Blmvk6g: [\"f1ya6x16\", \"ftuszwa\"],\n Bsiemmq: \"f1e2iu44\",\n B98u21t: [\"ftuszwa\", \"f1ya6x16\"],\n B2pnrqr: \"f1hxpdv8\",\n B29w5g4: [\"fm5xmfm\", \"femsgmt\"],\n Bhhzhcn: \"f1dmxpeg\",\n Bec0n69: [\"femsgmt\", \"fm5xmfm\"]\n }\n}, {\n d: [\".f10pi13n{position:relative;}\", \".fwk3njj{display:inline-grid;}\", \".f1sdsnyy{touch-action:none;}\", \".f122n59{-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;}\", \".f1oiokrs{justify-items:center;}\", \".f1agqo6f{--fui-Slider__thumb--size:16px;}\", \".f1i7ztpd{--fui-Slider__rail--size:2px;}\", \".f1pha7fy{min-height:24px;}\", \".f1a78h9h{--fui-Slider__thumb--size:20px;}\", \".fuok0yf{--fui-Slider__rail--size:4px;}\", \".f1nxs5xn{min-height:32px;}\", \".fyvtabn{min-width:120px;}\", \".fgfd48t{grid-template-rows:1fr var(--fui-Slider__thumb--size) 1fr;}\", \".f4t5rw1{grid-template-columns:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}\", \".f1pzv1zu{min-height:120px;}\", \".fktlcaf{grid-template-rows:1fr calc(100% - var(--fui-Slider__thumb--size)) 1fr;}\", \".fiadc6h{grid-template-columns:1fr var(--fui-Slider__thumb--size) 1fr;}\", \".f4l8x3l{--fui-Slider__rail--color:var(--colorNeutralStrokeAccessible);}\", \".f671q34{--fui-Slider__progress--color:var(--colorCompoundBrandBackground);}\", \".fvfzmw5{--fui-Slider__thumb--color:var(--colorCompoundBrandBackground);}\", \".foojseg{--fui-Slider__thumb--color:var(--colorNeutralForegroundDisabled);}\", \".f1lgdqhv{--fui-Slider__rail--color:var(--colorNeutralBackgroundDisabled);}\", \".f1veetlj{--fui-Slider__progress--color:var(--colorNeutralForegroundDisabled);}\", \".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}\", \".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}\", \".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}\", \".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}\", \".ffht0p2[data-fui-focus-within]:focus-within::after{content:\\\"\\\";}\", \".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}\", \".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}\", \".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}\", \".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}\", \".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}\", \".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}\", \".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}\", \".f1pmxfrl[data-fui-focus-within]:focus-within::after{border-top-width:2px;}\", \".fszkfcr[data-fui-focus-within]:focus-within::after{border-right-width:2px;}\", \".f1ap5ily[data-fui-focus-within]:focus-within::after{border-left-width:2px;}\", \".f57dp0y[data-fui-focus-within]:focus-within::after{border-bottom-width:2px;}\", \".f11dm2qb[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--borderRadiusMedium);}\", \".f136rfnd[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--borderRadiusMedium);}\", \".fdsq1qd[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--borderRadiusMedium);}\", \".f1khssms[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--borderRadiusMedium);}\", \".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}\", \".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}\", \".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}\", \".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}\", \".f1pffoy2[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - -2px);}\", \".f1bmyog6[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 8px);}\", \".f15fv2gd[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 8px);}\", \".fs6b7xr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - -2px);}\", \".f1hxpdv8[data-fui-focus-within]:focus-within::after{top:calc(0px - 2px - 6px);}\", \".fm5xmfm[data-fui-focus-within]:focus-within::after{right:calc(0px - 2px - 4px);}\", \".femsgmt[data-fui-focus-within]:focus-within::after{left:calc(0px - 2px - 4px);}\", \".f1dmxpeg[data-fui-focus-within]:focus-within::after{bottom:calc(0px - 2px - 6px);}\"],\n h: [\".faw1t00:hover{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundHover);}\", \".fxdgx5:hover{--fui-Slider__progress--color:var(--colorCompoundBrandBackgroundHover);}\"],\n a: [\".fii04fa:active{--fui-Slider__thumb--color:var(--colorCompoundBrandBackgroundPressed);}\", \".f36hzz8:active{--fui-Slider__progress--color:var(--colorCompoundBrandBackgroundPressed);}\"],\n m: [[\"@media (forced-colors: active){.f1volkfw{--fui-Slider__rail--color:CanvasText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1xddb6{--fui-Slider__thumb--color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fcdikl{--fui-Slider__progress--color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fhpzgm6:hover{--fui-Slider__thumb--color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.f1q6pm3h:hover{--fui-Slider__progress--color:Highlight;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fu12m3e{--fui-Slider__rail--color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fi9guym{--fui-Slider__thumb--color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }], [\"@media (forced-colors: active){.fcdjl4u{--fui-Slider__progress--color:GrayText;}}\", {\n m: \"(forced-colors: active)\"\n }]],\n f: [\".ftqa4ok:focus{outline-style:none;}\"],\n i: [\".f2hkw1w:focus-visible{outline-style:none;}\"]\n});\n/**\n * Styles for the rail slot\n */\nconst useRailStyles = /*#__PURE__*/__styles({\n rail: {\n Bbmb7ep: [\"fnivh3a\", \"fc7yr5o\"],\n Beyfa6y: [\"fc7yr5o\", \"fnivh3a\"],\n B7oj6ja: [\"f1el4m67\", \"f8yange\"],\n Btl43ni: [\"f8yange\", \"f1el4m67\"],\n Bkecrkj: \"f1aehjj5\",\n Ijaq50: \"faunodf\",\n nk6f5a: \"f88nxoq\",\n Br312pm: \"fd46tj4\",\n Bw0ie65: \"f1e2fz10\",\n qhf8xq: \"f10pi13n\",\n Bvjb7m6: \"fdgv6k0\",\n Bcmaq0h: \"fizngqt\",\n Bpd4iqm: \"fpvhumw\",\n oeaueh: \"f1yog68k\",\n Bw0xxkn: \"f13sgyd8\",\n Ftih45: \"fzhtfnv\",\n Brfgrao: \"f1j7ml58\",\n Bbn5juq: \"fx36ao7\",\n Brdvuy1: \"fux3rle\"\n },\n horizontal: {\n a9b677: \"fly5x3f\",\n Bqenvij: \"f1cy86ho\",\n Fbdkly: [\"f1heqfse\", \"fkh49vu\"],\n mdwyqc: [\"fkh49vu\", \"f1heqfse\"],\n Baz25je: \"f16tdq4e\"\n },\n vertical: {\n a9b677: \"fqxfnkd\",\n Bqenvij: \"f1l02sjl\",\n Ccq8qp: \"f1rik0od\",\n Bciustq: \"f14xwovp\",\n lawp4y: \"febq2dz\"\n }\n}, {\n d: [\".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}\", \".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}\", \".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}\", \".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}\", \".f1aehjj5{pointer-events:none;}\", \".faunodf{grid-row-start:2;}\", \".f88nxoq{grid-row-end:2;}\", \".fd46tj4{grid-column-start:2;}\", \".f1e2fz10{grid-column-end:2;}\", \".f10pi13n{position:relative;}\", \".fdgv6k0{forced-color-adjust:none;}\", \".fizngqt{background-image:linear-gradient(\\n var(--fui-Slider--direction),\\n var(--fui-Slider__progress--color) 0%,\\n var(--fui-Slider__progress--color) var(--fui-Slider--progress),\\n var(--fui-Slider__rail--color) var(--fui-Slider--progress)\\n );}\", \".fpvhumw{outline-width:1px;}\", \".f1yog68k{outline-style:solid;}\", \".f13sgyd8{outline-color:var(--colorTransparentStroke);}\", \".fzhtfnv::before{content:'';}\", \".f1j7ml58::before{position:absolute;}\", \".fx36ao7::before{background-image:repeating-linear-gradient(\\n var(--fui-Slider--direction),\\n #0000 0%,\\n #0000 calc(var(--fui-Slider--steps-percent) - 1px),\\n var(--colorNeutralBackground1) calc(var(--fui-Slider--steps-percent) - 1px),\\n var(--colorNeutralBackground1) var(--fui-Slider--steps-percent)\\n );}\", \".fly5x3f{width:100%;}\", \".f1cy86ho{height:var(--fui-Slider__rail--size);}\", \".f1heqfse::before{left:-1px;}\", \".fkh49vu::before{right:-1px;}\", \".f16tdq4e::before{height:var(--fui-Slider__rail--size);}\", \".fqxfnkd{width:var(--fui-Slider__rail--size);}\", \".f1l02sjl{height:100%;}\", \".f1rik0od::before{width:var(--fui-Slider__rail--size);}\", \".f14xwovp::before{top:-1px;}\", \".febq2dz::before{bottom:1px;}\"],\n m: [[\"@media (forced-colors: active){.fux3rle::before{background-image:repeating-linear-gradient(\\n var(--fui-Slider--direction),\\n #0000 0%,\\n #0000 calc(var(--fui-Slider--steps-percent) - 1px),\\n HighlightText calc(var(--fui-Slider--steps-percent) - 1px),\\n HighlightText var(--fui-Slider--steps-percent)\\n );}}\", {\n m: \"(forced-colors: active)\"\n }]]\n});\n/**\n * Styles for the thumb slot\n */\nconst useThumbStyles = /*#__PURE__*/__styles({\n thumb: {\n Ijaq50: \"faunodf\",\n nk6f5a: \"f88nxoq\",\n Br312pm: \"fd46tj4\",\n Bw0ie65: \"f1e2fz10\",\n qhf8xq: \"f1euv43f\",\n a9b677: \"f174ca62\",\n Bqenvij: \"f1yfdkfd\",\n Bkecrkj: \"f1aehjj5\",\n oeaueh: \"f1s6fcnf\",\n Bvjb7m6: \"fdgv6k0\",\n Bbmb7ep: [\"f8fbkgy\", \"f1nfllo7\"],\n Beyfa6y: [\"f1nfllo7\", \"f8fbkgy\"],\n B7oj6ja: [\"f1djnp8u\", \"f1s8kh49\"],\n Btl43ni: [\"f1s8kh49\", \"f1djnp8u\"],\n E5pizo: \"fof7hq0\",\n De3pzq: \"foksa45\",\n Brfgrao: \"f1j7ml58\",\n Bciustq: \"f14u7mkt\",\n Fbdkly: [\"f5zrw40\", \"f1ks5ppg\"],\n lawp4y: \"fto0uou\",\n mdwyqc: [\"f1ks5ppg\", \"f5zrw40\"],\n Budzafs: [\"feh19e8\", \"f3j3guj\"],\n r59vdv: [\"f3j3guj\", \"feh19e8\"],\n n07z76: [\"fo75joz\", \"f1yag6sl\"],\n ck0cow: [\"f1yag6sl\", \"fo75joz\"],\n Bcvre1j: \"fyl8oag\",\n Ftih45: \"fzhtfnv\",\n B0qfbqy: \"f1rponpz\",\n B4f6apu: [\"f1rvw2z1\", \"fjj0g3m\"],\n y0oebl: \"f1muowhs\",\n uvfttm: [\"fjj0g3m\", \"f1rvw2z1\"],\n Bdkvgpv: \"f163fonl\",\n m598lv: [\"f1yq6w5o\", \"f1jpmc5p\"],\n qa3bma: \"f11yjt3y\",\n Bbv0w2i: [\"f1jpmc5p\", \"f1yq6w5o\"],\n Bq4z7u6: \"f10tv6oz\",\n Bk5zm6e: [\"f16xp3sf\", \"f1seuxxq\"],\n Bqjgrrk: \"fwrmqbx\",\n Bm6vgfq: [\"f1seuxxq\", \"f16xp3sf\"]\n },\n disabled: {\n B0qfbqy: \"f1rponpz\",\n B4f6apu: [\"f1rvw2z1\", \"fjj0g3m\"],\n y0oebl: \"f1muowhs\",\n uvfttm: [\"fjj0g3m\", \"f1rvw2z1\"],\n Bdkvgpv: \"f163fonl\",\n m598lv: [\"f1yq6w5o\", \"f1jpmc5p\"],\n qa3bma: \"f11yjt3y\",\n Bbv0w2i: [\"f1jpmc5p\", \"f1yq6w5o\"],\n Bq4z7u6: \"f1pw3ppl\",\n Bk5zm6e: [\"fxoq2z\", \"f1ykj0h9\"],\n Bqjgrrk: \"f1sz5gii\",\n Bm6vgfq: [\"f1ykj0h9\", \"fxoq2z\"]\n },\n horizontal: {\n Bz10aip: [\"f13gfj74\", \"f1nfknbn\"],\n oyh7mz: [\"f1fj3zth\", \"fcf9u6w\"]\n },\n vertical: {\n Bz10aip: \"f5cv5a3\",\n B5kzvoi: \"feeniun\"\n }\n}, {\n d: [\".faunodf{grid-row-start:2;}\", \".f88nxoq{grid-row-end:2;}\", \".fd46tj4{grid-column-start:2;}\", \".f1e2fz10{grid-column-end:2;}\", \".f1euv43f{position:absolute;}\", \".f174ca62{width:var(--fui-Slider__thumb--size);}\", \".f1yfdkfd{height:var(--fui-Slider__thumb--size);}\", \".f1aehjj5{pointer-events:none;}\", \".f1s6fcnf{outline-style:none;}\", \".fdgv6k0{forced-color-adjust:none;}\", \".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}\", \".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}\", \".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}\", \".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}\", \".fof7hq0{box-shadow:0 0 0 calc(var(--fui-Slider__thumb--size) * .2) var(--colorNeutralBackground1) inset;}\", \".foksa45{background-color:var(--fui-Slider__thumb--color);}\", \".f1j7ml58::before{position:absolute;}\", \".f14u7mkt::before{top:0px;}\", \".f5zrw40::before{left:0px;}\", \".f1ks5ppg::before{right:0px;}\", \".fto0uou::before{bottom:0px;}\", \".feh19e8::before{border-bottom-right-radius:var(--borderRadiusCircular);}\", \".f3j3guj::before{border-bottom-left-radius:var(--borderRadiusCircular);}\", \".fo75joz::before{border-top-right-radius:var(--borderRadiusCircular);}\", \".f1yag6sl::before{border-top-left-radius:var(--borderRadiusCircular);}\", \".fyl8oag::before{box-sizing:border-box;}\", \".fzhtfnv::before{content:'';}\", \".f1rponpz::before{border-top-width:calc(var(--fui-Slider__thumb--size) * .05);}\", \".f1rvw2z1::before{border-right-width:calc(var(--fui-Slider__thumb--size) * .05);}\", \".fjj0g3m::before{border-left-width:calc(var(--fui-Slider__thumb--size) * .05);}\", \".f1muowhs::before{border-bottom-width:calc(var(--fui-Slider__thumb--size) * .05);}\", \".f163fonl::before{border-top-style:solid;}\", \".f1yq6w5o::before{border-right-style:solid;}\", \".f1jpmc5p::before{border-left-style:solid;}\", \".f11yjt3y::before{border-bottom-style:solid;}\", \".f10tv6oz::before{border-top-color:var(--colorNeutralStroke1);}\", \".f16xp3sf::before{border-right-color:var(--colorNeutralStroke1);}\", \".f1seuxxq::before{border-left-color:var(--colorNeutralStroke1);}\", \".fwrmqbx::before{border-bottom-color:var(--colorNeutralStroke1);}\", \".f1pw3ppl::before{border-top-color:var(--colorNeutralForegroundDisabled);}\", \".fxoq2z::before{border-right-color:var(--colorNeutralForegroundDisabled);}\", \".f1ykj0h9::before{border-left-color:var(--colorNeutralForegroundDisabled);}\", \".f1sz5gii::before{border-bottom-color:var(--colorNeutralForegroundDisabled);}\", \".f13gfj74{-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);transform:translateX(-50%);}\", \".f1nfknbn{-webkit-transform:translateX(50%);-moz-transform:translateX(50%);-ms-transform:translateX(50%);transform:translateX(50%);}\", \".f1fj3zth{left:var(--fui-Slider--progress);}\", \".fcf9u6w{right:var(--fui-Slider--progress);}\", \".f5cv5a3{-webkit-transform:translateY(50%);-moz-transform:translateY(50%);-ms-transform:translateY(50%);transform:translateY(50%);}\", \".feeniun{bottom:var(--fui-Slider--progress);}\"]\n});\n/**\n * Styles for the Input slot\n */\nconst useInputStyles = /*#__PURE__*/__styles({\n input: {\n Bceei9c: \"f1k6fduh\",\n abs64n: \"fk73vx1\",\n Ijaq50: \"f16hsg94\",\n nk6f5a: \"f1nzqi2z\",\n Br312pm: \"fwpfdsa\",\n Bw0ie65: \"fuur7zz\",\n z8tnut: \"f1g0x7ka\",\n z189sj: [\"fhxju0i\", \"f1cnd47f\"],\n Byoj8tv: \"f1qch9an\",\n uwmqm3: [\"f1cnd47f\", \"fhxju0i\"],\n B6of3ja: \"f1hu3pq6\",\n t21cq0: [\"f11qmguv\", \"f1tyq0we\"],\n jrapky: \"f19f4twv\",\n Frg6f3: [\"f1tyq0we\", \"f11qmguv\"]\n },\n disabled: {\n Bceei9c: \"f158kwzp\"\n },\n horizontal: {\n Bqenvij: \"f1yfdkfd\",\n a9b677: \"fly5x3f\"\n },\n vertical: {\n Bqenvij: \"f1l02sjl\",\n a9b677: \"f174ca62\",\n Brp00wb: \"f1r9mf01\"\n }\n}, {\n d: [\".f1k6fduh{cursor:pointer;}\", \".fk73vx1{opacity:0;}\", \".f16hsg94{grid-row-start:1;}\", \".f1nzqi2z{grid-row-end:-1;}\", \".fwpfdsa{grid-column-start:1;}\", \".fuur7zz{grid-column-end:-1;}\", \".f1g0x7ka{padding-top:0;}\", \".fhxju0i{padding-right:0;}\", \".f1cnd47f{padding-left:0;}\", \".f1qch9an{padding-bottom:0;}\", \".f1hu3pq6{margin-top:0;}\", \".f11qmguv{margin-right:0;}\", \".f1tyq0we{margin-left:0;}\", \".f19f4twv{margin-bottom:0;}\", \".f158kwzp{cursor:default;}\", \".f1yfdkfd{height:var(--fui-Slider__thumb--size);}\", \".fly5x3f{width:100%;}\", \".f1l02sjl{height:100%;}\", \".f174ca62{width:var(--fui-Slider__thumb--size);}\", \".f1r9mf01{-webkit-appearance:slider-vertical;}\"]\n});\n/**\n * Apply styling to the Slider slots based on the state\n */\nexport const useSliderStyles_unstable = state => {\n const rootStyles = useRootStyles();\n const railStyles = useRailStyles();\n const thumbStyles = useThumbStyles();\n const inputStyles = useInputStyles();\n const isVertical = state.vertical;\n state.root.className = mergeClasses(sliderClassNames.root, rootStyles.root, isVertical ? rootStyles.focusIndicatorVertical : rootStyles.focusIndicatorHorizontal, rootStyles[state.size], isVertical ? rootStyles.vertical : rootStyles.horizontal, state.disabled ? rootStyles.disabled : rootStyles.enabled, state.root.className);\n state.rail.className = mergeClasses(sliderClassNames.rail, railStyles.rail, isVertical ? railStyles.vertical : railStyles.horizontal, state.rail.className);\n state.thumb.className = mergeClasses(sliderClassNames.thumb, thumbStyles.thumb, isVertical ? thumbStyles.vertical : thumbStyles.horizontal, state.disabled && thumbStyles.disabled, state.thumb.className);\n state.input.className = mergeClasses(sliderClassNames.input, inputStyles.input, isVertical ? inputStyles.vertical : inputStyles.horizontal, state.disabled && inputStyles.disabled, state.input.className);\n return state;\n};\n//# sourceMappingURL=useSliderStyles.styles.js.map"],"names":["sliderClassNames","sliderCSSVars","useSliderStyles_unstable","root","rail","thumb","input","thumbSizeVar","railSizeVar","railColorVar","progressColorVar","thumbColorVar","sliderDirectionVar","sliderProgressVar","sliderStepsPercentVar","useRootStyles","__styles","qhf8xq","mc9l5x","lpbzjs","Bt984gj","B7hvi0a","small","Bi64ftq","Ba19x4e","sshi5w","medium","horizontal","Bf4jedk","wkccdc","Budl1dq","vertical","enabled","B7wi8oa","B250r6j","Bpmy4es","Buw9y6v","Bq939m0","gjzr1t","tg7hqu","ypdvl1","Bw5jdd4","Bdjie01","Bvh9j6m","Bvsvvpo","disabled","focusIndicatorHorizontal","Brovlpu","B486eqv","Bssx7fj","uh7if5","clntm0","Dlk2r6","B2j2mmj","wigs8","pbfy6t","B0v4ure","ghq09","B24cy0v","Bwckmig","Bvwlmkc","Bbgo44z","Bil7v7r","skfxo0","jo1ztg","Ba3ybja","az1dzo","vppk2z","B6352mv","nr063g","Blmvk6g","Bsiemmq","B98u21t","B2pnrqr","B29w5g4","Bhhzhcn","Bec0n69","focusIndicatorVertical","d","h","a","m","f","i","useRailStyles","Bbmb7ep","Beyfa6y","B7oj6ja","Btl43ni","Bkecrkj","Ijaq50","nk6f5a","Br312pm","Bw0ie65","Bvjb7m6","Bcmaq0h","Bpd4iqm","oeaueh","Bw0xxkn","Ftih45","Brfgrao","Bbn5juq","Brdvuy1","a9b677","Bqenvij","Fbdkly","mdwyqc","Baz25je","Ccq8qp","Bciustq","lawp4y","useThumbStyles","E5pizo","De3pzq","Budzafs","r59vdv","n07z76","ck0cow","Bcvre1j","B0qfbqy","B4f6apu","y0oebl","uvfttm","Bdkvgpv","m598lv","qa3bma","Bbv0w2i","Bq4z7u6","Bk5zm6e","Bqjgrrk","Bm6vgfq","Bz10aip","oyh7mz","B5kzvoi","useInputStyles","Bceei9c","abs64n","z8tnut","z189sj","Byoj8tv","uwmqm3","B6of3ja","t21cq0","jrapky","Frg6f3","Brp00wb","state","rootStyles","railStyles","thumbStyles","inputStyles","isVertical","className","mergeClasses","size"],"mappings":";;;;;;;;;;;IAGaA,gBAAgB,MAAhBA;IAYAC,aAAa,MAAbA;IAgTAC,wBAAwB,MAAxBA;;uBA/TsC;AAG5C,MAAMF,mBAAmB;IAC9BG,MAAM;IACNC,MAAM;IACNC,OAAO;IACPC,OAAO;AACT;AACA,yBAAyB;AACzB,MAAMC,eAAe,CAAC,yBAAyB,CAAC;AAChD,MAAMC,cAAc,CAAC,wBAAwB,CAAC;AAC9C,MAAMC,eAAe,CAAC,yBAAyB,CAAC;AAChD,MAAMC,mBAAmB,CAAC,6BAA6B,CAAC;AACxD,MAAMC,gBAAgB,CAAC,0BAA0B,CAAC;AAC3C,MAAMV,gBAAgB;IAC3BW,oBAAoB,CAAC,uBAAuB,CAAC;IAC7CC,mBAAmB,CAAC,sBAAsB,CAAC;IAC3CC,uBAAuB,CAAC,2BAA2B,CAAC;AACtD;AACA,MAAM,EACJF,mBAAkB,EAClBE,sBAAqB,EACrBD,kBAAiB,EAClB,GAAGZ;AACJ;;CAEC,GACD,MAAMc,gBAAgB,WAAW,GAAEC,IAAAA,kBAAQ,EAAC;IAC1Cb,MAAM;QACJc,QAAQ;QACRC,QAAQ;QACRC,QAAQ;QACRC,SAAS;QACTC,SAAS;IACX;IACAC,OAAO;QACLC,SAAS;QACTC,SAAS;QACTC,QAAQ;IACV;IACAC,QAAQ;QACNH,SAAS;QACTC,SAAS;QACTC,QAAQ;IACV;IACAE,YAAY;QACVC,SAAS;QACTC,QAAQ;QACRC,SAAS;IACX;IACAC,UAAU;QACRN,QAAQ;QACRI,QAAQ;QACRC,SAAS;IACX;IACAE,SAAS;QACPC,SAAS;QACTC,SAAS;QACTC,SAAS;QAC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QAAQ,GAAGoH,WAAWxH,UAAU,EAAEuH,MAAMrG,QAAQ,GAAGsG,WAAWtG,QAAQ,GAAGsG,WAAWnH,OAAO,EAAEkH,MAAM/I,IAAI,CAACqJ,SAAS;IACnUN,MAAM9I,IAAI,CAACoJ,SAAS,GAAGC,IAAAA,mBAAY,EAACzJ,iBAAiBI,IAAI,EAAEgJ,WAAWhJ,IAAI,EAAEmJ,aAAaH,WAAWrH,QAAQ,GAAGqH,WAAWzH,UAAU,EAAEuH,MAAM9I,IAAI,CAACoJ,SAAS;IAC1JN,MAAM7I,KAAK,CAACmJ,SAAS,GAAGC,IAAAA,mBAAY,EAACzJ,iBAAiBK,KAAK,EAAEgJ,YAAYhJ,KAAK,EAAEkJ,aAAaF,YAAYtH,QAAQ,GAAGsH,YAAY1H,UAAU,EAAEuH,MAAMrG,QAAQ,IAAIwG,YAAYxG,QAAQ,EAAEqG,MAAM7I,KAAK,CAACmJ,SAAS;IACzMN,MAAM5I,KAAK,CAACkJ,SAAS,GAAGC,IAAAA,mBAAY,EAACzJ,iBAAiBM,KAAK,EAAEgJ,YAAYhJ,KAAK,EAAEiJ,aAAaD,YAAYvH,QAAQ,GAAGuH,YAAY3H,UAAU,EAAEuH,MAAMrG,QAAQ,IAAIyG,YAAYzG,QAAQ,EAAEqG,MAAM5I,KAAK,CAACkJ,SAAS;IACzM,OAAON;AACT,GACA,kDAAkD"}
|
package/lib-commonjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"sources":["index.js"],"sourcesContent":["export { Slider, renderSlider_unstable, sliderClassNames, sliderCSSVars, useSliderState_unstable, useSliderStyles_unstable, useSlider_unstable } from './Slider';\n"],"names":["Slider","renderSlider_unstable","sliderClassNames","sliderCSSVars","useSliderState_unstable","useSliderStyles_unstable","useSlider_unstable"],"mappings":";;;;;;;;;;;IAASA,MAAM,MAANA,cAAM;IAAEC,qBAAqB,MAArBA,6BAAqB;IAAEC,gBAAgB,MAAhBA,wBAAgB;IAAEC,aAAa,MAAbA,qBAAa;IAAEC,uBAAuB,MAAvBA,+BAAuB;IAAEC,wBAAwB,MAAxBA,gCAAwB;IAAEC,kBAAkB,MAAlBA,0BAAkB;;wBAAQ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluentui/react-slider",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.17",
|
|
4
4
|
"description": "Fluent UI React Slider component.",
|
|
5
5
|
"main": "lib-commonjs/index.js",
|
|
6
6
|
"module": "lib/index.js",
|
|
@@ -28,19 +28,19 @@
|
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@fluentui/eslint-plugin": "*",
|
|
30
30
|
"@fluentui/react-conformance": "*",
|
|
31
|
-
"@fluentui/react-conformance-griffel": "9.0.0-beta.
|
|
32
|
-
"@fluentui/react-label": "^9.1.
|
|
31
|
+
"@fluentui/react-conformance-griffel": "9.0.0-beta.22",
|
|
32
|
+
"@fluentui/react-label": "^9.1.15",
|
|
33
33
|
"@fluentui/scripts-api-extractor": "*",
|
|
34
34
|
"@fluentui/scripts-tasks": "*"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@
|
|
38
|
-
"@fluentui/react-
|
|
39
|
-
"@fluentui/react-jsx-runtime": "9.0.0-alpha.5",
|
|
37
|
+
"@fluentui/react-field": "^9.1.6",
|
|
38
|
+
"@fluentui/react-jsx-runtime": "9.0.0-alpha.6",
|
|
40
39
|
"@fluentui/react-shared-contexts": "^9.5.0",
|
|
41
|
-
"@fluentui/react-tabster": "^9.7.
|
|
40
|
+
"@fluentui/react-tabster": "^9.7.5",
|
|
42
41
|
"@fluentui/react-theme": "^9.1.8",
|
|
43
|
-
"@fluentui/react-utilities": "^9.9.
|
|
42
|
+
"@fluentui/react-utilities": "^9.9.2",
|
|
43
|
+
"@griffel/react": "^1.5.7",
|
|
44
44
|
"@swc/helpers": "^0.4.14"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|