@fluentui/react-slider 1.0.0-beta.99 → 9.0.0-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +1394 -1
- package/CHANGELOG.md +525 -2
- package/MIGRATION.md +58 -0
- package/README.md +30 -4
- package/dist/react-slider.d.ts +160 -419
- package/lib/RangedSlider.d.ts +1 -0
- package/lib/RangedSlider.js +2 -0
- package/lib/RangedSlider.js.map +1 -0
- package/lib/Slider.js.map +1 -1
- package/lib/common/isConformant.d.ts +1 -1
- package/lib/common/isConformant.js +8 -5
- package/lib/common/isConformant.js.map +1 -1
- package/lib/components/RangedSlider/RangedSlider.d.ts +6 -0
- package/lib/components/RangedSlider/RangedSlider.js +15 -0
- package/lib/components/RangedSlider/RangedSlider.js.map +1 -0
- package/lib/components/RangedSlider/RangedSlider.types.d.ts +53 -0
- package/lib/components/RangedSlider/RangedSlider.types.js +2 -0
- package/lib/components/RangedSlider/RangedSlider.types.js.map +1 -0
- package/lib/components/RangedSlider/index.d.ts +6 -0
- package/lib/components/RangedSlider/index.js +7 -0
- package/lib/components/RangedSlider/index.js.map +1 -0
- package/lib/components/RangedSlider/renderRangedSlider.d.ts +5 -0
- package/lib/components/RangedSlider/renderRangedSlider.js +20 -0
- package/lib/components/RangedSlider/renderRangedSlider.js.map +1 -0
- package/lib/components/RangedSlider/useRangedSlider.d.ts +6 -0
- package/lib/components/RangedSlider/useRangedSlider.js +116 -0
- package/lib/components/RangedSlider/useRangedSlider.js.map +1 -0
- package/lib/components/RangedSlider/useRangedSliderState.d.ts +2 -0
- package/lib/components/RangedSlider/useRangedSliderState.js +271 -0
- package/lib/components/RangedSlider/useRangedSliderState.js.map +1 -0
- package/lib/components/RangedSlider/useRangedSliderStyles.d.ts +4 -0
- package/lib/components/RangedSlider/useRangedSliderStyles.js +59 -0
- package/lib/components/RangedSlider/useRangedSliderStyles.js.map +1 -0
- package/lib/components/Slider/Slider.d.ts +4 -2
- package/lib/components/Slider/Slider.js +13 -52
- package/lib/components/Slider/Slider.js.map +1 -1
- package/lib/components/Slider/Slider.types.d.ts +79 -121
- package/lib/components/Slider/Slider.types.js +0 -1
- package/lib/components/Slider/Slider.types.js.map +1 -1
- package/lib/components/Slider/index.d.ts +3 -1
- package/lib/components/Slider/index.js +3 -1
- package/lib/components/Slider/index.js.map +1 -1
- package/lib/components/Slider/renderSlider.d.ts +5 -0
- package/lib/components/Slider/renderSlider.js +16 -0
- package/lib/components/Slider/renderSlider.js.map +1 -0
- package/lib/components/Slider/useSlider.d.ts +9 -316
- package/lib/components/Slider/useSlider.js +101 -272
- package/lib/components/Slider/useSlider.js.map +1 -1
- package/lib/components/Slider/useSliderState.d.ts +3 -0
- package/lib/components/Slider/useSliderState.js +198 -0
- package/lib/components/Slider/useSliderState.js.map +1 -0
- package/lib/components/Slider/useSliderStyles.d.ts +43 -0
- package/lib/components/Slider/useSliderStyles.js +391 -0
- package/lib/components/Slider/useSliderStyles.js.map +1 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +1 -0
- package/lib/index.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/lib/utils/calculateSteps.d.ts +5 -0
- package/lib/utils/calculateSteps.js +27 -0
- package/lib/utils/calculateSteps.js.map +1 -0
- package/lib/utils/findClosestThumb.d.ts +4 -0
- package/lib/utils/findClosestThumb.js +7 -0
- package/lib/utils/findClosestThumb.js.map +1 -0
- package/lib/utils/getKeydownValue.d.ts +6 -0
- package/lib/utils/getKeydownValue.js +35 -0
- package/lib/utils/getKeydownValue.js.map +1 -0
- package/lib/utils/getMarkPercent.d.ts +12 -0
- package/lib/utils/getMarkPercent.js +27 -0
- package/lib/utils/getMarkPercent.js.map +1 -0
- package/lib/utils/getMarkValues.d.ts +13 -0
- package/lib/utils/getMarkValues.js +29 -0
- package/lib/utils/getMarkValues.js.map +1 -0
- package/lib/utils/getPercent.d.ts +8 -0
- package/lib/utils/getPercent.js +11 -0
- package/lib/utils/getPercent.js.map +1 -0
- package/lib/utils/index.d.ts +9 -0
- package/lib/utils/index.js +10 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/on.d.ts +11 -0
- package/lib/utils/on.js +17 -0
- package/lib/utils/on.js.map +1 -0
- package/lib/utils/renderMarks.d.ts +13 -0
- package/lib/utils/renderMarks.js +31 -0
- package/lib/utils/renderMarks.js.map +1 -0
- package/lib/utils/validateRangedThumbValues.d.ts +4 -0
- package/lib/utils/validateRangedThumbValues.js +13 -0
- package/lib/utils/validateRangedThumbValues.js.map +1 -0
- package/lib-commonjs/RangedSlider.d.ts +1 -0
- package/lib-commonjs/RangedSlider.js +10 -0
- package/lib-commonjs/RangedSlider.js.map +1 -0
- package/lib-commonjs/Slider.js +7 -2
- package/lib-commonjs/Slider.js.map +1 -1
- package/lib-commonjs/common/isConformant.d.ts +1 -1
- package/lib-commonjs/common/isConformant.js +17 -7
- package/lib-commonjs/common/isConformant.js.map +1 -1
- package/lib-commonjs/components/RangedSlider/RangedSlider.d.ts +6 -0
- package/lib-commonjs/components/RangedSlider/RangedSlider.js +26 -0
- package/lib-commonjs/components/RangedSlider/RangedSlider.js.map +1 -0
- package/lib-commonjs/components/RangedSlider/RangedSlider.types.d.ts +53 -0
- package/lib-commonjs/components/RangedSlider/RangedSlider.types.js +6 -0
- package/lib-commonjs/components/RangedSlider/RangedSlider.types.js.map +1 -0
- package/lib-commonjs/components/RangedSlider/index.d.ts +6 -0
- package/lib-commonjs/components/RangedSlider/index.js +20 -0
- package/lib-commonjs/components/RangedSlider/index.js.map +1 -0
- package/lib-commonjs/components/RangedSlider/renderRangedSlider.d.ts +5 -0
- package/lib-commonjs/components/RangedSlider/renderRangedSlider.js +32 -0
- package/lib-commonjs/components/RangedSlider/renderRangedSlider.js.map +1 -0
- package/lib-commonjs/components/RangedSlider/useRangedSlider.d.ts +6 -0
- package/lib-commonjs/components/RangedSlider/useRangedSlider.js +128 -0
- package/lib-commonjs/components/RangedSlider/useRangedSlider.js.map +1 -0
- package/lib-commonjs/components/RangedSlider/useRangedSliderState.d.ts +2 -0
- package/lib-commonjs/components/RangedSlider/useRangedSliderState.js +286 -0
- package/lib-commonjs/components/RangedSlider/useRangedSliderState.js.map +1 -0
- package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.d.ts +4 -0
- package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.js +71 -0
- package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.js.map +1 -0
- package/lib-commonjs/components/Slider/Slider.d.ts +4 -2
- package/lib-commonjs/components/Slider/Slider.js +22 -53
- package/lib-commonjs/components/Slider/Slider.js.map +1 -1
- package/lib-commonjs/components/Slider/Slider.types.d.ts +79 -121
- package/lib-commonjs/components/Slider/Slider.types.js +4 -2
- package/lib-commonjs/components/Slider/Slider.types.js.map +1 -1
- package/lib-commonjs/components/Slider/index.d.ts +3 -1
- package/lib-commonjs/components/Slider/index.js +30 -3
- package/lib-commonjs/components/Slider/index.js.map +1 -1
- package/lib-commonjs/components/Slider/renderSlider.d.ts +5 -0
- package/lib-commonjs/components/Slider/renderSlider.js +29 -0
- package/lib-commonjs/components/Slider/renderSlider.js.map +1 -0
- package/lib-commonjs/components/Slider/useSlider.d.ts +9 -316
- package/lib-commonjs/components/Slider/useSlider.js +112 -275
- package/lib-commonjs/components/Slider/useSlider.js.map +1 -1
- package/lib-commonjs/components/Slider/useSliderState.d.ts +3 -0
- package/lib-commonjs/components/Slider/useSliderState.js +213 -0
- package/lib-commonjs/components/Slider/useSliderState.js.map +1 -0
- package/lib-commonjs/components/Slider/useSliderStyles.d.ts +43 -0
- package/lib-commonjs/components/Slider/useSliderStyles.js +403 -0
- package/lib-commonjs/components/Slider/useSliderStyles.js.map +1 -0
- package/lib-commonjs/index.d.ts +1 -0
- package/lib-commonjs/index.js +9 -2
- package/lib-commonjs/index.js.map +1 -1
- package/lib-commonjs/utils/calculateSteps.d.ts +5 -0
- package/lib-commonjs/utils/calculateSteps.js +37 -0
- package/lib-commonjs/utils/calculateSteps.js.map +1 -0
- package/lib-commonjs/utils/findClosestThumb.d.ts +4 -0
- package/lib-commonjs/utils/findClosestThumb.js +16 -0
- package/lib-commonjs/utils/findClosestThumb.js.map +1 -0
- package/lib-commonjs/utils/getKeydownValue.d.ts +6 -0
- package/lib-commonjs/utils/getKeydownValue.js +45 -0
- package/lib-commonjs/utils/getKeydownValue.js.map +1 -0
- package/lib-commonjs/utils/getMarkPercent.d.ts +12 -0
- package/lib-commonjs/utils/getMarkPercent.js +36 -0
- package/lib-commonjs/utils/getMarkPercent.js.map +1 -0
- package/lib-commonjs/utils/getMarkValues.d.ts +13 -0
- package/lib-commonjs/utils/getMarkValues.js +39 -0
- package/lib-commonjs/utils/getMarkValues.js.map +1 -0
- package/lib-commonjs/utils/getPercent.d.ts +8 -0
- package/lib-commonjs/utils/getPercent.js +20 -0
- package/lib-commonjs/utils/getPercent.js.map +1 -0
- package/lib-commonjs/utils/index.d.ts +9 -0
- package/lib-commonjs/utils/index.js +26 -0
- package/lib-commonjs/utils/index.js.map +1 -0
- package/lib-commonjs/utils/on.d.ts +11 -0
- package/lib-commonjs/utils/on.js +26 -0
- package/lib-commonjs/utils/on.js.map +1 -0
- package/lib-commonjs/utils/renderMarks.d.ts +13 -0
- package/lib-commonjs/utils/renderMarks.js +42 -0
- package/lib-commonjs/utils/renderMarks.js.map +1 -0
- package/lib-commonjs/utils/validateRangedThumbValues.d.ts +4 -0
- package/lib-commonjs/utils/validateRangedThumbValues.js +23 -0
- package/lib-commonjs/utils/validateRangedThumbValues.js.map +1 -0
- package/package.json +21 -16
- package/config/api-extractor.json +0 -3
- package/config/tests.js +0 -10
- package/etc/react-slider.api.md +0 -396
- package/just.config.ts +0 -3
- package/lib/components/Slider/Slider.base.d.ts +0 -3
- package/lib/components/Slider/Slider.base.js +0 -32
- package/lib/components/Slider/Slider.base.js.map +0 -1
- package/lib/components/Slider/Slider.scss.d.ts +0 -13
- package/lib/components/Slider/Slider.scss.js +0 -17
- package/lib/components/Slider/Slider.scss.js.map +0 -1
- package/lib-amd/Slider.d.ts +0 -1
- package/lib-amd/Slider.js +0 -6
- package/lib-amd/Slider.js.map +0 -1
- package/lib-amd/common/isConformant.d.ts +0 -4
- package/lib-amd/common/isConformant.js +0 -14
- package/lib-amd/common/isConformant.js.map +0 -1
- package/lib-amd/components/Slider/Slider.base.d.ts +0 -3
- package/lib-amd/components/Slider/Slider.base.js +0 -24
- package/lib-amd/components/Slider/Slider.base.js.map +0 -1
- package/lib-amd/components/Slider/Slider.d.ts +0 -3
- package/lib-amd/components/Slider/Slider.js +0 -54
- package/lib-amd/components/Slider/Slider.js.map +0 -1
- package/lib-amd/components/Slider/Slider.scss.d.ts +0 -13
- package/lib-amd/components/Slider/Slider.scss.js +0 -20
- package/lib-amd/components/Slider/Slider.scss.js.map +0 -1
- package/lib-amd/components/Slider/Slider.types.d.ts +0 -168
- package/lib-amd/components/Slider/Slider.types.js +0 -6
- package/lib-amd/components/Slider/Slider.types.js.map +0 -1
- package/lib-amd/components/Slider/index.d.ts +0 -4
- package/lib-amd/components/Slider/index.js +0 -9
- package/lib-amd/components/Slider/index.js.map +0 -1
- package/lib-amd/components/Slider/useSlider.d.ts +0 -317
- package/lib-amd/components/Slider/useSlider.js +0 -278
- package/lib-amd/components/Slider/useSlider.js.map +0 -1
- package/lib-amd/index.d.ts +0 -1
- package/lib-amd/index.js +0 -6
- package/lib-amd/index.js.map +0 -1
- package/lib-commonjs/components/Slider/Slider.base.d.ts +0 -3
- package/lib-commonjs/components/Slider/Slider.base.js +0 -35
- package/lib-commonjs/components/Slider/Slider.base.js.map +0 -1
- package/lib-commonjs/components/Slider/Slider.scss.d.ts +0 -13
- package/lib-commonjs/components/Slider/Slider.scss.js +0 -20
- package/lib-commonjs/components/Slider/Slider.scss.js.map +0 -1
- package/src/components/Slider/Slider.types.ts +0 -207
package/lib-amd/index.js
DELETED
package/lib-amd/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"../src/","sources":["index.ts"],"names":[],"mappings":";;;IAAA,wCAAyB","sourcesContent":["export * from './Slider';\n"]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SliderBase = void 0;
|
|
4
|
-
var tslib_1 = require("tslib");
|
|
5
|
-
var React = require("react");
|
|
6
|
-
var utilities_1 = require("@fluentui/utilities");
|
|
7
|
-
var Label_1 = require("@fluentui/react/lib-commonjs/Label");
|
|
8
|
-
var useSlider_1 = require("./useSlider");
|
|
9
|
-
var react_hooks_1 = require("@fluentui/react-hooks");
|
|
10
|
-
var COMPONENT_NAME = 'SliderBase';
|
|
11
|
-
exports.SliderBase = React.forwardRef(function (props, ref) {
|
|
12
|
-
var slotProps = useSlider_1.useSlider(props, ref);
|
|
13
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
14
|
-
// eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional
|
|
15
|
-
react_hooks_1.useWarnings({
|
|
16
|
-
name: COMPONENT_NAME,
|
|
17
|
-
props: props,
|
|
18
|
-
mutuallyExclusive: { value: 'defaultValue' },
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
return (React.createElement("div", tslib_1.__assign({}, slotProps.root),
|
|
22
|
-
slotProps && React.createElement(Label_1.Label, tslib_1.__assign({}, slotProps.label)),
|
|
23
|
-
React.createElement("div", tslib_1.__assign({}, slotProps.container),
|
|
24
|
-
React.createElement("div", tslib_1.__assign({}, slotProps.sliderBox),
|
|
25
|
-
React.createElement("div", tslib_1.__assign({}, slotProps.sliderLine),
|
|
26
|
-
React.createElement("span", tslib_1.__assign({}, slotProps.thumb)),
|
|
27
|
-
slotProps.zeroTick && React.createElement("span", tslib_1.__assign({}, slotProps.zeroTick)),
|
|
28
|
-
React.createElement("span", tslib_1.__assign({}, slotProps.bottomInactiveTrack)),
|
|
29
|
-
React.createElement("span", tslib_1.__assign({}, slotProps.activeTrack)),
|
|
30
|
-
React.createElement("span", tslib_1.__assign({}, slotProps.topInactiveTrack)))),
|
|
31
|
-
slotProps.valueLabel && React.createElement(Label_1.Label, tslib_1.__assign({}, slotProps.valueLabel))),
|
|
32
|
-
React.createElement(utilities_1.FocusRects, null)));
|
|
33
|
-
});
|
|
34
|
-
exports.SliderBase.displayName = COMPONENT_NAME;
|
|
35
|
-
//# sourceMappingURL=Slider.base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.base.js","sourceRoot":"../src/","sources":["components/Slider/Slider.base.tsx"],"names":[],"mappings":";;;;AAAA,6BAA+B;AAC/B,iDAAiD;AAEjD,mDAAkD;AAClD,yCAAwC;AACxC,qDAAoD;AAEpD,IAAM,cAAc,GAAG,YAAY,CAAC;AAEvB,QAAA,UAAU,GAA0C,KAAK,CAAC,UAAU,CAC/E,UAAC,KAAK,EAAE,GAAG;IACT,IAAM,SAAS,GAAG,qBAAS,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IAExC,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE;QACzC,gFAAgF;QAChF,yBAAW,CAAC;YACV,IAAI,EAAE,cAAc;YACpB,KAAK,OAAA;YACL,iBAAiB,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE;SAC7C,CAAC,CAAC;KACJ;IAED,OAAO,CACL,gDAAS,SAAS,CAAC,IAAI;QACpB,SAAS,IAAI,oBAAC,aAAK,uBAAK,SAAS,CAAC,KAAK,EAAI;QAC5C,gDAAS,SAAS,CAAC,SAAS;YAC1B,gDAAS,SAAS,CAAC,SAAS;gBAC1B,gDAAS,SAAS,CAAC,UAAU;oBAC3B,iDAAU,SAAS,CAAC,KAAK,EAAI;oBAC5B,SAAS,CAAC,QAAQ,IAAI,iDAAU,SAAS,CAAC,QAAQ,EAAI;oBACvD,iDAAU,SAAS,CAAC,mBAAmB,EAAI;oBAC3C,iDAAU,SAAS,CAAC,WAAW,EAAI;oBACnC,iDAAU,SAAS,CAAC,gBAAgB,EAAI,CACpC,CACF;YACL,SAAS,CAAC,UAAU,IAAI,oBAAC,aAAK,uBAAK,SAAS,CAAC,UAAU,EAAI,CACxD;QACN,oBAAC,sBAAU,OAAG,CACV,CACmB,CAAC;AAC9B,CAAC,CACF,CAAC;AACF,kBAAU,CAAC,WAAW,GAAG,cAAc,CAAC","sourcesContent":["import * as React from 'react';\nimport { FocusRects } from '@fluentui/utilities';\nimport { ISliderProps } from './Slider.types';\nimport { Label } from '@fluentui/react/lib/Label';\nimport { useSlider } from './useSlider';\nimport { useWarnings } from '@fluentui/react-hooks';\n\nconst COMPONENT_NAME = 'SliderBase';\n\nexport const SliderBase: React.FunctionComponent<ISliderProps> = React.forwardRef<HTMLDivElement, ISliderProps>(\n (props, ref) => {\n const slotProps = useSlider(props, ref);\n\n if (process.env.NODE_ENV !== 'production') {\n // eslint-disable-next-line react-hooks/rules-of-hooks -- build-time conditional\n useWarnings({\n name: COMPONENT_NAME,\n props,\n mutuallyExclusive: { value: 'defaultValue' },\n });\n }\n\n return (\n <div {...slotProps.root}>\n {slotProps && <Label {...slotProps.label} />}\n <div {...slotProps.container}>\n <div {...slotProps.sliderBox}>\n <div {...slotProps.sliderLine}>\n <span {...slotProps.thumb} />\n {slotProps.zeroTick && <span {...slotProps.zeroTick} />}\n <span {...slotProps.bottomInactiveTrack} />\n <span {...slotProps.activeTrack} />\n <span {...slotProps.topInactiveTrack} />\n </div>\n </div>\n {slotProps.valueLabel && <Label {...slotProps.valueLabel} />}\n </div>\n <FocusRects />\n </div>\n ) as React.ReactElement<{}>;\n },\n);\nSliderBase.displayName = COMPONENT_NAME;\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const root = "root_cff4088c";
|
|
2
|
-
export declare const vertical = "vertical_cff4088c";
|
|
3
|
-
export declare const disabled = "disabled_cff4088c";
|
|
4
|
-
export declare const activeSection = "activeSection_cff4088c";
|
|
5
|
-
export declare const inactiveSection = "inactiveSection_cff4088c";
|
|
6
|
-
export declare const thumb = "thumb_cff4088c";
|
|
7
|
-
export declare const zeroTick = "zeroTick_cff4088c";
|
|
8
|
-
export declare const titleLabel = "titleLabel_cff4088c";
|
|
9
|
-
export declare const container = "container_cff4088c";
|
|
10
|
-
export declare const slideBox = "slideBox_cff4088c";
|
|
11
|
-
export declare const line = "line_cff4088c";
|
|
12
|
-
export declare const lineContainer = "lineContainer_cff4088c";
|
|
13
|
-
export declare const valueLabel = "valueLabel_cff4088c";
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.valueLabel = exports.lineContainer = exports.line = exports.slideBox = exports.container = exports.titleLabel = exports.zeroTick = exports.thumb = exports.inactiveSection = exports.activeSection = exports.disabled = exports.vertical = exports.root = void 0;
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
var load_themed_styles_1 = require("@microsoft/load-themed-styles");
|
|
6
|
-
load_themed_styles_1.loadStyles([{ "rawString": ".root_cff4088c{font-family:var(--fonts-medium-fontFamily);font-size:var(--fonts-medium-fontSize);font-weight:var(--fonts-medium-fontWeight);-webkit-font-smoothing:var(--fonts-medium-WebkitFontSmoothing);-moz-osx-font-smoothing:var(--fonts-medium-MozOsxFontSmoothing);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.root_cff4088c.vertical_cff4088c{margin-right:8}.root_cff4088c:not(.disabled_cff4088c):active .activeSection_cff4088c{background-color:var(--semanticColors-inputBackgroundCheckedHovered)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):active .activeSection_cff4088c{background-color:Highlight}}.root_cff4088c:not(.disabled_cff4088c):active .inactiveSection_cff4088c{background-color:var(--semanticColors-inputPlaceholderBackgroundChecked)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):active .inactiveSection_cff4088c{border-color:Highlight}}.root_cff4088c:not(.disabled_cff4088c):active .thumb_cff4088c{border:2px solid var(--semanticColors-inputBackgroundCheckedHovered)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):active .thumb_cff4088c{bordercolor:Highlight}}.root_cff4088c:not(.disabled_cff4088c):active .zeroTick_cff4088c{background-color:var(--semanticColors-inputPlaceholderBackgroundChecked)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):active .zeroTick_cff4088c{background-color:Highlight}}.root_cff4088c:not(.disabled_cff4088c):hover .activeSection_cff4088c{background-color:var(--semanticColors-inputBackgroundChecked)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):hover .activeSection_cff4088c{background-color:Highlight}}.root_cff4088c:not(.disabled_cff4088c):hover .inactiveSection_cff4088c{background-color:var(--semanticColors-inputPlaceholderBackgroundChecked)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):hover .inactiveSection_cff4088c{border-color:Highlight}}.root_cff4088c:not(.disabled_cff4088c):hover .thumb_cff4088c{border:2px solid var(--semanticColors-inputBackgroundCheckedHovered)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):hover .thumb_cff4088c{bordercolor:Highlight}}.root_cff4088c:not(.disabled_cff4088c):hover .zeroTick_cff4088c{background-color:var(--semanticColors-inputPlaceholderBackgroundChecked)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):hover .zeroTick_cff4088c{background-color:Highlight}}.titleLabel_cff4088c{padding:0}.container_cff4088c{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.container_cff4088c.vertical_cff4088c{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;text-align:center;margin:8px 0}.slideBox_cff4088c{background:0 0;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;line-height:28px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:28px;width:auto;padding:0 8px}.slideBox_cff4088c::-moz-focus-inner{border:0}.slideBox_cff4088c{outline:transparent}.slideBox_cff4088c{position:relative}.ms-Fabric--isFocusVisible .slideBox_cff4088c:focus:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:'';position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:1px solid " }, { "theme": "focusBorder", "defaultValue": "#605e5c" }, { "rawString": ";border-radius:0}.slideBox_cff4088c.vertical_cff4088c{height:100%;width:28px;padding:8px 0}.thumb_cff4088c{border-width:2px;border-style:solid;border-color:var(--semanticColors-smallInputBorder);border-radius:10px;-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--semanticColors-inputBackground);display:block;width:16px;height:16px;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.thumb_cff4088c:not(.vertical_cff4088c){top:-6px}.thumb_cff4088c.vertical_cff4088c{left:-6px;margin:0 auto;-webkit-transform:translateY(8px);transform:translateY(8px)}.thumb_cff4088c.disabled_cff4088c{border-color:var(--semanticColors-disabledBorder)}@media screen and (-ms-high-contrast:active){.thumb_cff4088c.disabled_cff4088c{bordercolor:GrayText}}.line_cff4088c{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;width:100%}.line_cff4088c.vertical_cff4088c{height:100%;width:4px;margin:0 auto;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.lineContainer_cff4088c{border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;height:4px;width:100%}.lineContainer_cff4088c.vertical_cff4088c{width:4px;height:100%}.activeSection_cff4088c{background:var(--semanticColors-smallInputBorder)}@media screen and (-ms-high-contrast:active){.activeSection_cff4088c{backgroundcolor:WindowText}}.activeSection_cff4088c.disabled_cff4088c{background:var(--semanticColors-disabledText)}@media screen and (-ms-high-contrast:active){.activeSection_cff4088c.disabled_cff4088c{backgroundcolor:GrayText;bordercolor:GrayText}}.inactiveSection_cff4088c{background:var(--semanticColors-disabledBorder)}@media screen and (-ms-high-contrast:active){.inactiveSection_cff4088c{border:1px solid WindowText}}.inactiveSection_cff4088c.disabled_cff4088c{background:var(--semanticColors-disabledBackground)}@media screen and (-ms-high-contrast:active){.inactiveSection_cff4088c.disabled_cff4088c{bordercolor:GrayText}}.zeroTick_cff4088c{position:absolute;background:var(--semanticColors-disabledBorder);width:1px;height:16px;-webkit-transform:translateY(-6px);transform:translateY(-6px)}@media screen and (-ms-high-contrast:active){.zeroTick_cff4088c{backgroundcolor:WindowText}}.zeroTick_cff4088c.disabled_cff4088c{background:var(--semanticColors-disabledBackground)}@media screen and (-ms-high-contrast:active){.zeroTick_cff4088c.disabled_cff4088c{backgroundcolor:GrayText}}.zeroTick_cff4088c.vertical_cff4088c{width:16px;height:1px;-webkit-transform:translateX(-6px);transform:translateX(-6px)}.valueLabel_cff4088c{-ms-flex-negative:1;flex-shrink:1;width:30px;line-height:1px;margin:0 8px;white-space:nowrap;width:40px}.valueLabel_cff4088c.vertical_cff4088c{margin:0 auto;white-space:nowrap;width:40px}" }]);
|
|
7
|
-
exports.root = "root_cff4088c";
|
|
8
|
-
exports.vertical = "vertical_cff4088c";
|
|
9
|
-
exports.disabled = "disabled_cff4088c";
|
|
10
|
-
exports.activeSection = "activeSection_cff4088c";
|
|
11
|
-
exports.inactiveSection = "inactiveSection_cff4088c";
|
|
12
|
-
exports.thumb = "thumb_cff4088c";
|
|
13
|
-
exports.zeroTick = "zeroTick_cff4088c";
|
|
14
|
-
exports.titleLabel = "titleLabel_cff4088c";
|
|
15
|
-
exports.container = "container_cff4088c";
|
|
16
|
-
exports.slideBox = "slideBox_cff4088c";
|
|
17
|
-
exports.line = "line_cff4088c";
|
|
18
|
-
exports.lineContainer = "lineContainer_cff4088c";
|
|
19
|
-
exports.valueLabel = "valueLabel_cff4088c";
|
|
20
|
-
//# sourceMappingURL=Slider.scss.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.scss.js","sourceRoot":"../src/","sources":["components/Slider/Slider.scss.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,oEAA2D;AAC3D,+BAAU,CAAC,CAAC,EAAC,WAAW,EAAC,qgHAAqgH,EAAC,EAAC,EAAC,OAAO,EAAC,aAAa,EAAC,cAAc,EAAC,SAAS,EAAC,EAAC,EAAC,WAAW,EAAC,+vFAA+vF,EAAC,CAAC,CAAC,CAAC;AACp1M,QAAA,IAAI,GAAG,eAAe,CAAC;AACvB,QAAA,QAAQ,GAAG,mBAAmB,CAAC;AAC/B,QAAA,QAAQ,GAAG,mBAAmB,CAAC;AAC/B,QAAA,aAAa,GAAG,wBAAwB,CAAC;AACzC,QAAA,eAAe,GAAG,0BAA0B,CAAC;AAC7C,QAAA,KAAK,GAAG,gBAAgB,CAAC;AACzB,QAAA,QAAQ,GAAG,mBAAmB,CAAC;AAC/B,QAAA,UAAU,GAAG,qBAAqB,CAAC;AACnC,QAAA,SAAS,GAAG,oBAAoB,CAAC;AACjC,QAAA,QAAQ,GAAG,mBAAmB,CAAC;AAC/B,QAAA,IAAI,GAAG,eAAe,CAAC;AACvB,QAAA,aAAa,GAAG,wBAAwB,CAAC;AACzC,QAAA,UAAU,GAAG,qBAAqB,CAAC","sourcesContent":["/* eslint-disable */\nimport { loadStyles } from '@microsoft/load-themed-styles';\nloadStyles([{\"rawString\":\".root_cff4088c{font-family:var(--fonts-medium-fontFamily);font-size:var(--fonts-medium-fontSize);font-weight:var(--fonts-medium-fontWeight);-webkit-font-smoothing:var(--fonts-medium-WebkitFontSmoothing);-moz-osx-font-smoothing:var(--fonts-medium-MozOsxFontSmoothing);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.root_cff4088c.vertical_cff4088c{margin-right:8}.root_cff4088c:not(.disabled_cff4088c):active .activeSection_cff4088c{background-color:var(--semanticColors-inputBackgroundCheckedHovered)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):active .activeSection_cff4088c{background-color:Highlight}}.root_cff4088c:not(.disabled_cff4088c):active .inactiveSection_cff4088c{background-color:var(--semanticColors-inputPlaceholderBackgroundChecked)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):active .inactiveSection_cff4088c{border-color:Highlight}}.root_cff4088c:not(.disabled_cff4088c):active .thumb_cff4088c{border:2px solid var(--semanticColors-inputBackgroundCheckedHovered)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):active .thumb_cff4088c{bordercolor:Highlight}}.root_cff4088c:not(.disabled_cff4088c):active .zeroTick_cff4088c{background-color:var(--semanticColors-inputPlaceholderBackgroundChecked)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):active .zeroTick_cff4088c{background-color:Highlight}}.root_cff4088c:not(.disabled_cff4088c):hover .activeSection_cff4088c{background-color:var(--semanticColors-inputBackgroundChecked)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):hover .activeSection_cff4088c{background-color:Highlight}}.root_cff4088c:not(.disabled_cff4088c):hover .inactiveSection_cff4088c{background-color:var(--semanticColors-inputPlaceholderBackgroundChecked)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):hover .inactiveSection_cff4088c{border-color:Highlight}}.root_cff4088c:not(.disabled_cff4088c):hover .thumb_cff4088c{border:2px solid var(--semanticColors-inputBackgroundCheckedHovered)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):hover .thumb_cff4088c{bordercolor:Highlight}}.root_cff4088c:not(.disabled_cff4088c):hover .zeroTick_cff4088c{background-color:var(--semanticColors-inputPlaceholderBackgroundChecked)}@media screen and (-ms-high-contrast:active){.root_cff4088c:not(.disabled_cff4088c):hover .zeroTick_cff4088c{background-color:Highlight}}.titleLabel_cff4088c{padding:0}.container_cff4088c{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.container_cff4088c.vertical_cff4088c{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:100%;text-align:center;margin:8px 0}.slideBox_cff4088c{background:0 0;border:none;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;line-height:28px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;height:28px;width:auto;padding:0 8px}.slideBox_cff4088c::-moz-focus-inner{border:0}.slideBox_cff4088c{outline:transparent}.slideBox_cff4088c{position:relative}.ms-Fabric--isFocusVisible .slideBox_cff4088c:focus:after{-webkit-box-sizing:border-box;box-sizing:border-box;content:'';position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:1px solid \"},{\"theme\":\"focusBorder\",\"defaultValue\":\"#605e5c\"},{\"rawString\":\";border-radius:0}.slideBox_cff4088c.vertical_cff4088c{height:100%;width:28px;padding:8px 0}.thumb_cff4088c{border-width:2px;border-style:solid;border-color:var(--semanticColors-smallInputBorder);border-radius:10px;-webkit-box-sizing:border-box;box-sizing:border-box;background:var(--semanticColors-inputBackground);display:block;width:16px;height:16px;position:absolute;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.thumb_cff4088c:not(.vertical_cff4088c){top:-6px}.thumb_cff4088c.vertical_cff4088c{left:-6px;margin:0 auto;-webkit-transform:translateY(8px);transform:translateY(8px)}.thumb_cff4088c.disabled_cff4088c{border-color:var(--semanticColors-disabledBorder)}@media screen and (-ms-high-contrast:active){.thumb_cff4088c.disabled_cff4088c{bordercolor:GrayText}}.line_cff4088c{display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;width:100%}.line_cff4088c.vertical_cff4088c{height:100%;width:4px;margin:0 auto;-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.lineContainer_cff4088c{border-radius:4px;-webkit-box-sizing:border-box;box-sizing:border-box;height:4px;width:100%}.lineContainer_cff4088c.vertical_cff4088c{width:4px;height:100%}.activeSection_cff4088c{background:var(--semanticColors-smallInputBorder)}@media screen and (-ms-high-contrast:active){.activeSection_cff4088c{backgroundcolor:WindowText}}.activeSection_cff4088c.disabled_cff4088c{background:var(--semanticColors-disabledText)}@media screen and (-ms-high-contrast:active){.activeSection_cff4088c.disabled_cff4088c{backgroundcolor:GrayText;bordercolor:GrayText}}.inactiveSection_cff4088c{background:var(--semanticColors-disabledBorder)}@media screen and (-ms-high-contrast:active){.inactiveSection_cff4088c{border:1px solid WindowText}}.inactiveSection_cff4088c.disabled_cff4088c{background:var(--semanticColors-disabledBackground)}@media screen and (-ms-high-contrast:active){.inactiveSection_cff4088c.disabled_cff4088c{bordercolor:GrayText}}.zeroTick_cff4088c{position:absolute;background:var(--semanticColors-disabledBorder);width:1px;height:16px;-webkit-transform:translateY(-6px);transform:translateY(-6px)}@media screen and (-ms-high-contrast:active){.zeroTick_cff4088c{backgroundcolor:WindowText}}.zeroTick_cff4088c.disabled_cff4088c{background:var(--semanticColors-disabledBackground)}@media screen and (-ms-high-contrast:active){.zeroTick_cff4088c.disabled_cff4088c{backgroundcolor:GrayText}}.zeroTick_cff4088c.vertical_cff4088c{width:16px;height:1px;-webkit-transform:translateX(-6px);transform:translateX(-6px)}.valueLabel_cff4088c{-ms-flex-negative:1;flex-shrink:1;width:30px;line-height:1px;margin:0 8px;white-space:nowrap;width:40px}.valueLabel_cff4088c.vertical_cff4088c{margin:0 auto;white-space:nowrap;width:40px}\"}]);\nexport const root = \"root_cff4088c\";\nexport const vertical = \"vertical_cff4088c\";\nexport const disabled = \"disabled_cff4088c\";\nexport const activeSection = \"activeSection_cff4088c\";\nexport const inactiveSection = \"inactiveSection_cff4088c\";\nexport const thumb = \"thumb_cff4088c\";\nexport const zeroTick = \"zeroTick_cff4088c\";\nexport const titleLabel = \"titleLabel_cff4088c\";\nexport const container = \"container_cff4088c\";\nexport const slideBox = \"slideBox_cff4088c\";\nexport const line = \"line_cff4088c\";\nexport const lineContainer = \"lineContainer_cff4088c\";\nexport const valueLabel = \"valueLabel_cff4088c\";"]}
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/naming-convention */
|
|
2
|
-
|
|
3
|
-
import * as React from 'react';
|
|
4
|
-
import { IStyle, ITheme } from '@fluentui/style-utilities';
|
|
5
|
-
import { IStyleFunctionOrObject, IRefObject } from '@fluentui/utilities';
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* {@docCategory Slider}
|
|
9
|
-
*/
|
|
10
|
-
export interface ISlider {
|
|
11
|
-
value: number | undefined;
|
|
12
|
-
|
|
13
|
-
focus: () => void;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* {@docCategory Slider}
|
|
18
|
-
*/
|
|
19
|
-
export interface ISliderProps
|
|
20
|
-
extends Omit<React.HTMLAttributes<HTMLDivElement>, 'defaultValue' | 'onChange'>,
|
|
21
|
-
React.RefAttributes<HTMLDivElement> {
|
|
22
|
-
/**
|
|
23
|
-
* Optional callback to access the ISlider interface. Use this instead of ref for accessing
|
|
24
|
-
* the public methods and properties of the component.
|
|
25
|
-
*/
|
|
26
|
-
componentRef?: IRefObject<ISlider>;
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
* Call to provide customized styling that will layer on top of the variant rules.
|
|
30
|
-
*/
|
|
31
|
-
styles?: IStyleFunctionOrObject<ISliderStyleProps, ISliderStyles>;
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* Theme provided by High-Order Component.
|
|
35
|
-
*/
|
|
36
|
-
theme?: ITheme;
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Description label of the Slider
|
|
40
|
-
*/
|
|
41
|
-
label?: string;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* The initial value of the Slider. Use this if you intend for the Slider to be an uncontrolled component.
|
|
45
|
-
* This value is mutually exclusive to value. Use one or the other.
|
|
46
|
-
*/
|
|
47
|
-
defaultValue?: number;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* The initial value of the Slider. Use this if you intend to pass in a new value as a result of onChange events.
|
|
51
|
-
* This value is mutually exclusive to defaultValue. Use one or the other.
|
|
52
|
-
*/
|
|
53
|
-
value?: number;
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* The min value of the Slider
|
|
57
|
-
* @defaultvalue 0
|
|
58
|
-
*/
|
|
59
|
-
min?: number;
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* The max value of the Slider
|
|
63
|
-
* @defaultvalue 10
|
|
64
|
-
*/
|
|
65
|
-
max?: number;
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* The difference between the two adjacent values of the Slider
|
|
69
|
-
* @defaultvalue 1
|
|
70
|
-
*/
|
|
71
|
-
step?: number;
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Whether to show the value on the right of the Slider.
|
|
75
|
-
* @defaultvalue true
|
|
76
|
-
*/
|
|
77
|
-
showValue?: boolean;
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Callback when the value has been changed
|
|
81
|
-
*/
|
|
82
|
-
onChange?: (value: number) => void;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Callback on mouse up or touch end
|
|
86
|
-
*/
|
|
87
|
-
onChanged?: (event: MouseEvent | TouchEvent | KeyboardEvent, value: number) => void;
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* A description of the Slider for the benefit of screen readers.
|
|
91
|
-
*/
|
|
92
|
-
ariaLabel?: string;
|
|
93
|
-
|
|
94
|
-
/**
|
|
95
|
-
* A text description of the Slider number value for the benefit of screen readers.
|
|
96
|
-
* This should be used when the Slider number value is not accurately represented by a number.
|
|
97
|
-
*/
|
|
98
|
-
ariaValueText?: (value: number) => string;
|
|
99
|
-
/**
|
|
100
|
-
* Whether to render the slider vertically.
|
|
101
|
-
* @default `false` (render horizontally)
|
|
102
|
-
*/
|
|
103
|
-
vertical?: boolean;
|
|
104
|
-
|
|
105
|
-
/**
|
|
106
|
-
* Whether to render the Slider as disabled.
|
|
107
|
-
* @defaultvalue false
|
|
108
|
-
*/
|
|
109
|
-
disabled?: boolean;
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Whether to decide that thumb will snap to closest value while moving the slider
|
|
113
|
-
* @defaultvalue false
|
|
114
|
-
*/
|
|
115
|
-
snapToStep?: boolean;
|
|
116
|
-
|
|
117
|
-
/**
|
|
118
|
-
* Class name to attach to the slider root element.
|
|
119
|
-
*/
|
|
120
|
-
className?: string;
|
|
121
|
-
|
|
122
|
-
/**
|
|
123
|
-
* Additional props on the thumb button within the slider.
|
|
124
|
-
*/
|
|
125
|
-
buttonProps?: React.HTMLAttributes<HTMLButtonElement>;
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* Custom formatter for the slider value.
|
|
129
|
-
*/
|
|
130
|
-
valueFormat?: (value: number) => string;
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Whether to attach the origin of slider to zero. Helpful when the range include negatives.
|
|
134
|
-
* @defaultvalue false
|
|
135
|
-
*/
|
|
136
|
-
originFromZero?: boolean;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* {@docCategory Slider}
|
|
141
|
-
*/
|
|
142
|
-
export type ISliderStyleProps = Required<Pick<ISliderProps, 'theme'>> &
|
|
143
|
-
Pick<ISliderProps, 'className' | 'disabled' | 'vertical'> & {
|
|
144
|
-
showTransitions?: boolean;
|
|
145
|
-
showValue?: boolean;
|
|
146
|
-
titleLabelClassName?: string;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* {@docCategory Slider}
|
|
151
|
-
*/
|
|
152
|
-
export interface ISliderStyles {
|
|
153
|
-
/**
|
|
154
|
-
* Style set for the root element.
|
|
155
|
-
*/
|
|
156
|
-
root: IStyle;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Style set for the title label above the slider.
|
|
160
|
-
*/
|
|
161
|
-
titleLabel: IStyle;
|
|
162
|
-
|
|
163
|
-
/**
|
|
164
|
-
* Style set for the container of the slider.
|
|
165
|
-
*/
|
|
166
|
-
container: IStyle;
|
|
167
|
-
|
|
168
|
-
/**
|
|
169
|
-
* Style set for the actual box containting interactive elements of the slider.
|
|
170
|
-
*/
|
|
171
|
-
slideBox: IStyle;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Style set for element that contains all the lines.
|
|
175
|
-
*/
|
|
176
|
-
line: IStyle;
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* Style set for thumb of the slider.
|
|
180
|
-
*/
|
|
181
|
-
thumb: IStyle;
|
|
182
|
-
|
|
183
|
-
/**
|
|
184
|
-
* Style set for both active and inactive sections of the line.
|
|
185
|
-
*/
|
|
186
|
-
lineContainer: IStyle;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Style set for active portion of the line.
|
|
190
|
-
*/
|
|
191
|
-
activeSection: IStyle;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* Style set for inactive portion of the line.
|
|
195
|
-
*/
|
|
196
|
-
inactiveSection: IStyle;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* Style set for value label on right/below of the slider.
|
|
200
|
-
*/
|
|
201
|
-
valueLabel: IStyle;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Style set for tick on 0 on number line. This element only shows up when originFromZero prop is true.
|
|
205
|
-
*/
|
|
206
|
-
zeroTick: IStyle;
|
|
207
|
-
}
|