@fluentui/react-slider 9.0.0-beta.2 → 9.0.0-beta.6
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 +287 -1
- package/CHANGELOG.md +73 -2
- package/dist/react-slider.d.ts +33 -142
- package/lib/components/Slider/Slider.js +7 -7
- package/lib/components/Slider/Slider.js.map +1 -1
- package/lib/components/Slider/Slider.types.d.ts +26 -55
- package/lib/components/Slider/index.d.ts +2 -2
- package/lib/components/Slider/index.js +2 -2
- package/lib/components/Slider/index.js.map +1 -1
- package/lib/components/Slider/renderSlider.d.ts +1 -1
- package/lib/components/Slider/renderSlider.js +10 -8
- package/lib/components/Slider/renderSlider.js.map +1 -1
- package/lib/components/Slider/useSlider.d.ts +2 -6
- package/lib/components/Slider/useSlider.js +50 -80
- package/lib/components/Slider/useSlider.js.map +1 -1
- package/lib/components/Slider/useSliderState.d.ts +1 -2
- package/lib/components/Slider/useSliderState.js +49 -184
- package/lib/components/Slider/useSliderState.js.map +1 -1
- package/lib/components/Slider/useSliderStyles.d.ts +10 -30
- package/lib/components/Slider/useSliderStyles.js +151 -305
- package/lib/components/Slider/useSliderStyles.js.map +1 -1
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -1
- package/lib/index.js.map +1 -1
- package/lib-commonjs/Slider.js +1 -1
- package/lib-commonjs/components/Slider/Slider.js +8 -8
- package/lib-commonjs/components/Slider/Slider.js.map +1 -1
- package/lib-commonjs/components/Slider/Slider.types.d.ts +26 -55
- package/lib-commonjs/components/Slider/index.d.ts +2 -2
- package/lib-commonjs/components/Slider/index.js +12 -6
- package/lib-commonjs/components/Slider/index.js.map +1 -1
- package/lib-commonjs/components/Slider/renderSlider.d.ts +1 -1
- package/lib-commonjs/components/Slider/renderSlider.js +14 -14
- package/lib-commonjs/components/Slider/renderSlider.js.map +1 -1
- package/lib-commonjs/components/Slider/useSlider.d.ts +2 -6
- package/lib-commonjs/components/Slider/useSlider.js +53 -84
- package/lib-commonjs/components/Slider/useSlider.js.map +1 -1
- package/lib-commonjs/components/Slider/useSliderState.d.ts +1 -2
- package/lib-commonjs/components/Slider/useSliderState.js +53 -191
- package/lib-commonjs/components/Slider/useSliderState.js.map +1 -1
- package/lib-commonjs/components/Slider/useSliderStyles.d.ts +10 -30
- package/lib-commonjs/components/Slider/useSliderStyles.js +154 -308
- package/lib-commonjs/components/Slider/useSliderStyles.js.map +1 -1
- package/lib-commonjs/index.d.ts +0 -1
- package/lib-commonjs/index.js +1 -3
- package/lib-commonjs/index.js.map +1 -1
- package/package.json +12 -14
- package/lib/RangedSlider.d.ts +0 -1
- package/lib/RangedSlider.js +0 -2
- package/lib/RangedSlider.js.map +0 -1
- package/lib/common/isConformant.d.ts +0 -4
- package/lib/common/isConformant.js +0 -12
- package/lib/common/isConformant.js.map +0 -1
- package/lib/components/RangedSlider/RangedSlider.d.ts +0 -6
- package/lib/components/RangedSlider/RangedSlider.js +0 -15
- package/lib/components/RangedSlider/RangedSlider.js.map +0 -1
- package/lib/components/RangedSlider/RangedSlider.types.d.ts +0 -53
- package/lib/components/RangedSlider/RangedSlider.types.js +0 -2
- package/lib/components/RangedSlider/RangedSlider.types.js.map +0 -1
- package/lib/components/RangedSlider/index.d.ts +0 -6
- package/lib/components/RangedSlider/index.js +0 -7
- package/lib/components/RangedSlider/index.js.map +0 -1
- package/lib/components/RangedSlider/renderRangedSlider.d.ts +0 -5
- package/lib/components/RangedSlider/renderRangedSlider.js +0 -20
- package/lib/components/RangedSlider/renderRangedSlider.js.map +0 -1
- package/lib/components/RangedSlider/useRangedSlider.d.ts +0 -6
- package/lib/components/RangedSlider/useRangedSlider.js +0 -116
- package/lib/components/RangedSlider/useRangedSlider.js.map +0 -1
- package/lib/components/RangedSlider/useRangedSliderState.d.ts +0 -2
- package/lib/components/RangedSlider/useRangedSliderState.js +0 -271
- package/lib/components/RangedSlider/useRangedSliderState.js.map +0 -1
- package/lib/components/RangedSlider/useRangedSliderStyles.d.ts +0 -4
- package/lib/components/RangedSlider/useRangedSliderStyles.js +0 -92
- package/lib/components/RangedSlider/useRangedSliderStyles.js.map +0 -1
- package/lib/utils/calculateSteps.d.ts +0 -5
- package/lib/utils/calculateSteps.js +0 -27
- package/lib/utils/calculateSteps.js.map +0 -1
- package/lib/utils/findClosestThumb.d.ts +0 -4
- package/lib/utils/findClosestThumb.js +0 -7
- package/lib/utils/findClosestThumb.js.map +0 -1
- package/lib/utils/getKeydownValue.d.ts +0 -6
- package/lib/utils/getKeydownValue.js +0 -35
- package/lib/utils/getKeydownValue.js.map +0 -1
- package/lib/utils/getMarkPercent.d.ts +0 -12
- package/lib/utils/getMarkPercent.js +0 -27
- package/lib/utils/getMarkPercent.js.map +0 -1
- package/lib/utils/getMarkValues.d.ts +0 -13
- package/lib/utils/getMarkValues.js +0 -29
- package/lib/utils/getMarkValues.js.map +0 -1
- package/lib/utils/getPercent.d.ts +0 -8
- package/lib/utils/getPercent.js +0 -11
- package/lib/utils/getPercent.js.map +0 -1
- package/lib/utils/index.d.ts +0 -9
- package/lib/utils/index.js +0 -10
- package/lib/utils/index.js.map +0 -1
- package/lib/utils/on.d.ts +0 -11
- package/lib/utils/on.js +0 -17
- package/lib/utils/on.js.map +0 -1
- package/lib/utils/renderMarks.d.ts +0 -13
- package/lib/utils/renderMarks.js +0 -31
- package/lib/utils/renderMarks.js.map +0 -1
- package/lib/utils/validateRangedThumbValues.d.ts +0 -4
- package/lib/utils/validateRangedThumbValues.js +0 -13
- package/lib/utils/validateRangedThumbValues.js.map +0 -1
- package/lib-commonjs/RangedSlider.d.ts +0 -1
- package/lib-commonjs/RangedSlider.js +0 -10
- package/lib-commonjs/RangedSlider.js.map +0 -1
- package/lib-commonjs/common/isConformant.d.ts +0 -4
- package/lib-commonjs/common/isConformant.js +0 -23
- package/lib-commonjs/common/isConformant.js.map +0 -1
- package/lib-commonjs/components/RangedSlider/RangedSlider.d.ts +0 -6
- package/lib-commonjs/components/RangedSlider/RangedSlider.js +0 -26
- package/lib-commonjs/components/RangedSlider/RangedSlider.js.map +0 -1
- package/lib-commonjs/components/RangedSlider/RangedSlider.types.d.ts +0 -53
- package/lib-commonjs/components/RangedSlider/RangedSlider.types.js +0 -6
- package/lib-commonjs/components/RangedSlider/RangedSlider.types.js.map +0 -1
- package/lib-commonjs/components/RangedSlider/index.d.ts +0 -6
- package/lib-commonjs/components/RangedSlider/index.js +0 -20
- package/lib-commonjs/components/RangedSlider/index.js.map +0 -1
- package/lib-commonjs/components/RangedSlider/renderRangedSlider.d.ts +0 -5
- package/lib-commonjs/components/RangedSlider/renderRangedSlider.js +0 -32
- package/lib-commonjs/components/RangedSlider/renderRangedSlider.js.map +0 -1
- package/lib-commonjs/components/RangedSlider/useRangedSlider.d.ts +0 -6
- package/lib-commonjs/components/RangedSlider/useRangedSlider.js +0 -128
- package/lib-commonjs/components/RangedSlider/useRangedSlider.js.map +0 -1
- package/lib-commonjs/components/RangedSlider/useRangedSliderState.d.ts +0 -2
- package/lib-commonjs/components/RangedSlider/useRangedSliderState.js +0 -286
- package/lib-commonjs/components/RangedSlider/useRangedSliderState.js.map +0 -1
- package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.d.ts +0 -4
- package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.js +0 -104
- package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.js.map +0 -1
- package/lib-commonjs/utils/calculateSteps.d.ts +0 -5
- package/lib-commonjs/utils/calculateSteps.js +0 -37
- package/lib-commonjs/utils/calculateSteps.js.map +0 -1
- package/lib-commonjs/utils/findClosestThumb.d.ts +0 -4
- package/lib-commonjs/utils/findClosestThumb.js +0 -16
- package/lib-commonjs/utils/findClosestThumb.js.map +0 -1
- package/lib-commonjs/utils/getKeydownValue.d.ts +0 -6
- package/lib-commonjs/utils/getKeydownValue.js +0 -45
- package/lib-commonjs/utils/getKeydownValue.js.map +0 -1
- package/lib-commonjs/utils/getMarkPercent.d.ts +0 -12
- package/lib-commonjs/utils/getMarkPercent.js +0 -36
- package/lib-commonjs/utils/getMarkPercent.js.map +0 -1
- package/lib-commonjs/utils/getMarkValues.d.ts +0 -13
- package/lib-commonjs/utils/getMarkValues.js +0 -39
- package/lib-commonjs/utils/getMarkValues.js.map +0 -1
- package/lib-commonjs/utils/getPercent.d.ts +0 -8
- package/lib-commonjs/utils/getPercent.js +0 -20
- package/lib-commonjs/utils/getPercent.js.map +0 -1
- package/lib-commonjs/utils/index.d.ts +0 -9
- package/lib-commonjs/utils/index.js +0 -26
- package/lib-commonjs/utils/index.js.map +0 -1
- package/lib-commonjs/utils/on.d.ts +0 -11
- package/lib-commonjs/utils/on.js +0 -26
- package/lib-commonjs/utils/on.js.map +0 -1
- package/lib-commonjs/utils/renderMarks.d.ts +0 -13
- package/lib-commonjs/utils/renderMarks.js +0 -42
- package/lib-commonjs/utils/renderMarks.js.map +0 -1
- package/lib-commonjs/utils/validateRangedThumbValues.d.ts +0 -4
- package/lib-commonjs/utils/validateRangedThumbValues.js +0 -23
- package/lib-commonjs/utils/validateRangedThumbValues.js.map +0 -1
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,293 @@
|
|
|
2
2
|
"name": "@fluentui/react-slider",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 10 Feb 2022 08:44:03 GMT",
|
|
6
|
+
"tag": "@fluentui/react-slider_v9.0.0-beta.6",
|
|
7
|
+
"version": "9.0.0-beta.6",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "Humberto.Morimoto@microsoft.com",
|
|
12
|
+
"package": "@fluentui/react-slider",
|
|
13
|
+
"commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
|
|
14
|
+
"comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "behowell@microsoft.com",
|
|
18
|
+
"package": "@fluentui/react-slider",
|
|
19
|
+
"commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
|
|
20
|
+
"comment": "Remove component's shorthandProps array"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "mgodbolt@microsoft.com",
|
|
24
|
+
"package": "@fluentui/react-slider",
|
|
25
|
+
"commit": "0a220897d7f6b3029b7c7f18b6ecc28a3131345f",
|
|
26
|
+
"comment": "move slider to unstable"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "mgodbolt@microsoft.com",
|
|
30
|
+
"package": "@fluentui/react-slider",
|
|
31
|
+
"commit": "839ec14849e112b85aa321d034739ec421199141",
|
|
32
|
+
"comment": "remove export of commons types"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "behowell@microsoft.com",
|
|
36
|
+
"package": "@fluentui/react-slider",
|
|
37
|
+
"commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
|
|
38
|
+
"comment": "Refactor component Slot typings"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "lingfangao@hotmail.com",
|
|
42
|
+
"package": "@fluentui/react-slider",
|
|
43
|
+
"commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
|
|
44
|
+
"comment": "Bump Fluent UI dependencies to 9.0.0-rc"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@fluentui/react-slider",
|
|
49
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.1",
|
|
50
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@fluentui/react-slider",
|
|
55
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
|
|
56
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"author": "beachball",
|
|
60
|
+
"package": "@fluentui/react-slider",
|
|
61
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
|
|
62
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@fluentui/react-slider",
|
|
67
|
+
"comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
|
|
68
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "beachball",
|
|
72
|
+
"package": "@fluentui/react-slider",
|
|
73
|
+
"comment": "Bump @fluentui/react-label to v9.0.0-beta.5",
|
|
74
|
+
"commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
|
|
75
|
+
}
|
|
76
|
+
],
|
|
77
|
+
"none": [
|
|
78
|
+
{
|
|
79
|
+
"author": "me@levithomason.com",
|
|
80
|
+
"package": "@fluentui/react-slider",
|
|
81
|
+
"commit": "4bd15194a66379b165043141c266faa0c1ea1502",
|
|
82
|
+
"comment": "document how to import preview components"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"date": "Thu, 25 Nov 2021 08:34:17 GMT",
|
|
89
|
+
"tag": "@fluentui/react-slider_v9.0.0-beta.5",
|
|
90
|
+
"version": "9.0.0-beta.5",
|
|
91
|
+
"comments": {
|
|
92
|
+
"prerelease": [
|
|
93
|
+
{
|
|
94
|
+
"author": "beachball",
|
|
95
|
+
"package": "@fluentui/react-slider",
|
|
96
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
|
|
97
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"author": "beachball",
|
|
101
|
+
"package": "@fluentui/react-slider",
|
|
102
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
|
|
103
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"author": "beachball",
|
|
107
|
+
"package": "@fluentui/react-slider",
|
|
108
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
|
|
109
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"author": "beachball",
|
|
113
|
+
"package": "@fluentui/react-slider",
|
|
114
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
|
|
115
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"author": "beachball",
|
|
119
|
+
"package": "@fluentui/react-slider",
|
|
120
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
|
|
121
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"author": "beachball",
|
|
125
|
+
"package": "@fluentui/react-slider",
|
|
126
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
|
|
127
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"author": "beachball",
|
|
131
|
+
"package": "@fluentui/react-slider",
|
|
132
|
+
"comment": "Bump @fluentui/react-label to v9.0.0-beta.4",
|
|
133
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"author": "beachball",
|
|
137
|
+
"package": "@fluentui/react-slider",
|
|
138
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
|
|
139
|
+
"commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
"date": "Fri, 12 Nov 2021 13:25:32 GMT",
|
|
146
|
+
"tag": "@fluentui/react-slider_v9.0.0-beta.4",
|
|
147
|
+
"version": "9.0.0-beta.4",
|
|
148
|
+
"comments": {
|
|
149
|
+
"none": [
|
|
150
|
+
{
|
|
151
|
+
"author": "lingfangao@hotmail.com",
|
|
152
|
+
"package": "@fluentui/react-slider",
|
|
153
|
+
"commit": "00f70581480b536e723fb69edf0ae617beac4807",
|
|
154
|
+
"comment": "Remove beta release tag"
|
|
155
|
+
}
|
|
156
|
+
],
|
|
157
|
+
"prerelease": [
|
|
158
|
+
{
|
|
159
|
+
"author": "olfedias@microsoft.com",
|
|
160
|
+
"package": "@fluentui/react-slider",
|
|
161
|
+
"commit": "f078af73d95d0f2c380144a40127bd08e389aa2d",
|
|
162
|
+
"comment": "export static classes for components"
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"author": "gcox@microsoft.com",
|
|
166
|
+
"package": "@fluentui/react-slider",
|
|
167
|
+
"commit": "c9bd5b5a02ae94a8239ce1b56cac2f0d0dbd3586",
|
|
168
|
+
"comment": "Updated beta and RC components to ES2019"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"author": "olfedias@microsoft.com",
|
|
172
|
+
"package": "@fluentui/react-slider",
|
|
173
|
+
"commit": "e48014a7fd9c030eafc1eec68463d013eac58baa",
|
|
174
|
+
"comment": "remove temporary workaround with duplicated classes constants"
|
|
175
|
+
},
|
|
176
|
+
{
|
|
177
|
+
"author": "beachball",
|
|
178
|
+
"package": "@fluentui/react-slider",
|
|
179
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.3",
|
|
180
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"author": "beachball",
|
|
184
|
+
"package": "@fluentui/react-slider",
|
|
185
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.3",
|
|
186
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"author": "beachball",
|
|
190
|
+
"package": "@fluentui/react-slider",
|
|
191
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.4",
|
|
192
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
"author": "beachball",
|
|
196
|
+
"package": "@fluentui/react-slider",
|
|
197
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.3",
|
|
198
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"author": "beachball",
|
|
202
|
+
"package": "@fluentui/react-slider",
|
|
203
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3",
|
|
204
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"author": "beachball",
|
|
208
|
+
"package": "@fluentui/react-slider",
|
|
209
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3",
|
|
210
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"author": "beachball",
|
|
214
|
+
"package": "@fluentui/react-slider",
|
|
215
|
+
"comment": "Bump @fluentui/react-label to v9.0.0-beta.3",
|
|
216
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"author": "beachball",
|
|
220
|
+
"package": "@fluentui/react-slider",
|
|
221
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.3",
|
|
222
|
+
"commit": "742342e52c65066f779232e4e1302fedf0dd460d"
|
|
223
|
+
}
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"date": "Wed, 27 Oct 2021 12:14:22 GMT",
|
|
229
|
+
"tag": "@fluentui/react-slider_v9.0.0-beta.3",
|
|
230
|
+
"version": "9.0.0-beta.3",
|
|
231
|
+
"comments": {
|
|
232
|
+
"prerelease": [
|
|
233
|
+
{
|
|
234
|
+
"author": "peter@draxler.ml",
|
|
235
|
+
"package": "@fluentui/react-slider",
|
|
236
|
+
"commit": "f6db7c8d6b7db0902775e7857b62b745be35b59a",
|
|
237
|
+
"comment": "added styling of documentation"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
"author": "beachball",
|
|
241
|
+
"package": "@fluentui/react-slider",
|
|
242
|
+
"comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.2",
|
|
243
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
"author": "beachball",
|
|
247
|
+
"package": "@fluentui/react-slider",
|
|
248
|
+
"comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.2",
|
|
249
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
"author": "beachball",
|
|
253
|
+
"package": "@fluentui/react-slider",
|
|
254
|
+
"comment": "Bump @fluentui/react-tabster to v9.0.0-beta.3",
|
|
255
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"author": "beachball",
|
|
259
|
+
"package": "@fluentui/react-slider",
|
|
260
|
+
"comment": "Bump @fluentui/react-utilities to v9.0.0-beta.2",
|
|
261
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"author": "beachball",
|
|
265
|
+
"package": "@fluentui/react-slider",
|
|
266
|
+
"comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2",
|
|
267
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
"author": "beachball",
|
|
271
|
+
"package": "@fluentui/react-slider",
|
|
272
|
+
"comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2",
|
|
273
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"author": "beachball",
|
|
277
|
+
"package": "@fluentui/react-slider",
|
|
278
|
+
"comment": "Bump @fluentui/react-label to v9.0.0-beta.2",
|
|
279
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"author": "beachball",
|
|
283
|
+
"package": "@fluentui/react-slider",
|
|
284
|
+
"comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.2",
|
|
285
|
+
"commit": "0f8f1ae7c2d908e51e29dd342d79e041f86fac08"
|
|
286
|
+
}
|
|
287
|
+
]
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"date": "Tue, 12 Oct 2021 19:45:58 GMT",
|
|
6
292
|
"tag": "@fluentui/react-slider_v9.0.0-beta.2",
|
|
7
293
|
"version": "9.0.0-beta.2",
|
|
8
294
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,83 @@
|
|
|
1
1
|
# Change Log - @fluentui/react-slider
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 10 Feb 2022 08:44:03 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## [9.0.0-beta.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.0-beta.6)
|
|
8
|
+
|
|
9
|
+
Thu, 10 Feb 2022 08:44:03 GMT
|
|
10
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.0-beta.5..@fluentui/react-slider_v9.0.0-beta.6)
|
|
11
|
+
|
|
12
|
+
### Changes
|
|
13
|
+
|
|
14
|
+
- Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
|
|
15
|
+
- Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
|
|
16
|
+
- move slider to unstable ([PR #21506](https://github.com/microsoft/fluentui/pull/21506) by mgodbolt@microsoft.com)
|
|
17
|
+
- remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
|
|
18
|
+
- Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
|
|
19
|
+
- Bump Fluent UI dependencies to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
|
|
20
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
21
|
+
- Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
22
|
+
- Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
23
|
+
- Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
24
|
+
- Bump @fluentui/react-label to v9.0.0-beta.5 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
|
|
25
|
+
|
|
26
|
+
## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.0-beta.5)
|
|
27
|
+
|
|
28
|
+
Thu, 25 Nov 2021 08:34:17 GMT
|
|
29
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.0-beta.4..@fluentui/react-slider_v9.0.0-beta.5)
|
|
30
|
+
|
|
31
|
+
### Changes
|
|
32
|
+
|
|
33
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
34
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
35
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
36
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
37
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
38
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
39
|
+
- Bump @fluentui/react-label to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
40
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
|
|
41
|
+
|
|
42
|
+
## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.0-beta.4)
|
|
43
|
+
|
|
44
|
+
Fri, 12 Nov 2021 13:25:32 GMT
|
|
45
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.0-beta.3..@fluentui/react-slider_v9.0.0-beta.4)
|
|
46
|
+
|
|
47
|
+
### Changes
|
|
48
|
+
|
|
49
|
+
- export static classes for components ([PR #20455](https://github.com/microsoft/fluentui/pull/20455) by olfedias@microsoft.com)
|
|
50
|
+
- Updated beta and RC components to ES2019 ([PR #20405](https://github.com/microsoft/fluentui/pull/20405) by gcox@microsoft.com)
|
|
51
|
+
- remove temporary workaround with duplicated classes constants ([PR #20538](https://github.com/microsoft/fluentui/pull/20538) by olfedias@microsoft.com)
|
|
52
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
53
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
54
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.4 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
55
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
56
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
57
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
58
|
+
- Bump @fluentui/react-label to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
59
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.3 ([PR #20583](https://github.com/microsoft/fluentui/pull/20583) by beachball)
|
|
60
|
+
|
|
61
|
+
## [9.0.0-beta.3](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.0-beta.3)
|
|
62
|
+
|
|
63
|
+
Wed, 27 Oct 2021 12:14:22 GMT
|
|
64
|
+
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.0-beta.2..@fluentui/react-slider_v9.0.0-beta.3)
|
|
65
|
+
|
|
66
|
+
### Changes
|
|
67
|
+
|
|
68
|
+
- added styling of documentation ([PR #20193](https://github.com/microsoft/fluentui/pull/20193) by peter@draxler.ml)
|
|
69
|
+
- Bump @fluentui/react-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
|
70
|
+
- Bump @fluentui/react-shared-contexts to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
|
71
|
+
- Bump @fluentui/react-tabster to v9.0.0-beta.3 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
|
72
|
+
- Bump @fluentui/react-utilities to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
|
73
|
+
- Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
|
74
|
+
- Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
|
75
|
+
- Bump @fluentui/react-label to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
|
76
|
+
- Bump @fluentui/babel-make-styles to v9.0.0-beta.2 ([PR #20353](https://github.com/microsoft/fluentui/pull/20353) by beachball)
|
|
77
|
+
|
|
7
78
|
## [9.0.0-beta.2](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.0-beta.2)
|
|
8
79
|
|
|
9
|
-
Tue, 12 Oct 2021 19:45:
|
|
80
|
+
Tue, 12 Oct 2021 19:45:58 GMT
|
|
10
81
|
[Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.0-beta.1..@fluentui/react-slider_v9.0.0-beta.2)
|
|
11
82
|
|
|
12
83
|
### Changes
|
package/dist/react-slider.d.ts
CHANGED
|
@@ -1,86 +1,22 @@
|
|
|
1
|
-
import { ComponentProps } from '@fluentui/react-utilities';
|
|
2
|
-
import { ComponentState } from '@fluentui/react-utilities';
|
|
1
|
+
import type { ComponentProps } from '@fluentui/react-utilities';
|
|
2
|
+
import type { ComponentState } from '@fluentui/react-utilities';
|
|
3
3
|
import type { ForwardRefComponent } from '@fluentui/react-utilities';
|
|
4
|
-
import { IntrinsicShorthandProps } from '@fluentui/react-utilities';
|
|
5
4
|
import * as React_2 from 'react';
|
|
6
|
-
|
|
7
|
-
export declare const lowerThumbClassName: string;
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* The RangedSlider component allows users to quickly select a range by dragging a lower or upper thumb across a rail.
|
|
11
|
-
*/
|
|
12
|
-
export declare const RangedSlider: ForwardRefComponent<RangedSliderProps>;
|
|
13
|
-
|
|
14
|
-
export declare interface RangedSliderCommons extends Omit<SliderCommons, 'value' | 'defaultValue' | 'origin' | 'onChange'> {
|
|
15
|
-
/**
|
|
16
|
-
* The starting value for an uncontrolled RangedSlider. The first value is always lower than the second value.
|
|
17
|
-
* Mutually exclusive with `value` prop.
|
|
18
|
-
*/
|
|
19
|
-
defaultValue?: [number, number];
|
|
20
|
-
/**
|
|
21
|
-
* The current value of the controlled RangedSlider. The first value is always lower than the second value.
|
|
22
|
-
* Mutually exclusive with `defaultValue` prop.
|
|
23
|
-
*/
|
|
24
|
-
value?: [number, number];
|
|
25
|
-
/**
|
|
26
|
-
* Triggers a callback when the value has been changed. This will be called on every individual step.
|
|
27
|
-
*/
|
|
28
|
-
onChange?: (ev: React_2.PointerEvent<HTMLDivElement> | React_2.KeyboardEvent<HTMLDivElement>, data: {
|
|
29
|
-
value: [number, number];
|
|
30
|
-
}) => void;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export declare interface RangedSliderProps extends Omit<ComponentProps<RangedSliderSlots>, 'onChange' | 'defaultValue'>, RangedSliderCommons {
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export declare type RangedSliderSlots = Omit<SliderSlots, 'thumb' | 'thumbWrapper' | 'input'> & {
|
|
37
|
-
/**
|
|
38
|
-
* The lower draggable icon used to select a given value in the RangedSlider.
|
|
39
|
-
*/
|
|
40
|
-
lowerThumb: IntrinsicShorthandProps<'div'>;
|
|
41
|
-
/**
|
|
42
|
-
* The wrapper around the RangedSlider's lower thumb.
|
|
43
|
-
* It is primarily used to handle the dragging animation from translateX.
|
|
44
|
-
*/
|
|
45
|
-
lowerThumbWrapper: IntrinsicShorthandProps<'div'>;
|
|
46
|
-
/**
|
|
47
|
-
* The upper draggable icon used to select a given value in the RangedSlider.
|
|
48
|
-
*/
|
|
49
|
-
upperThumb: IntrinsicShorthandProps<'div'>;
|
|
50
|
-
/**
|
|
51
|
-
* The wrapper around the RangedSlider's upper thumb.
|
|
52
|
-
* It is primarily used to handle the dragging animation from translateX.
|
|
53
|
-
*/
|
|
54
|
-
upperThumbWrapper: IntrinsicShorthandProps<'div'>;
|
|
55
|
-
/**
|
|
56
|
-
* The hidden input for the Slider's lower thumb.
|
|
57
|
-
*/
|
|
58
|
-
lowerInput: IntrinsicShorthandProps<'input'>;
|
|
59
|
-
/**
|
|
60
|
-
* The hidden input for the Slider's upper thumb.
|
|
61
|
-
*/
|
|
62
|
-
upperInput: IntrinsicShorthandProps<'input'>;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export declare interface RangedSliderState extends ComponentState<RangedSliderSlots>, RangedSliderCommons {
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Render the final JSX of RangedSlider
|
|
70
|
-
*/
|
|
71
|
-
export declare const renderRangedSlider: (state: RangedSliderState) => JSX.Element;
|
|
5
|
+
import type { Slot } from '@fluentui/react-utilities';
|
|
72
6
|
|
|
73
7
|
/**
|
|
74
8
|
* Render the final JSX of Slider
|
|
75
9
|
*/
|
|
76
|
-
export declare const
|
|
10
|
+
export declare const renderSlider_unstable: (state: SliderState) => JSX.Element;
|
|
77
11
|
|
|
78
12
|
/**
|
|
79
13
|
* The Slider component allows users to quickly select a value by dragging a thumb across a rail.
|
|
80
14
|
*/
|
|
81
15
|
export declare const Slider: ForwardRefComponent<SliderProps>;
|
|
82
16
|
|
|
83
|
-
export declare
|
|
17
|
+
export declare const sliderClassName = "fui-Slider";
|
|
18
|
+
|
|
19
|
+
declare type SliderCommons = {
|
|
84
20
|
/**
|
|
85
21
|
* The starting value for an uncontrolled Slider.
|
|
86
22
|
* Mutually exclusive with `value` prop.
|
|
@@ -107,14 +43,6 @@ export declare type SliderCommons = {
|
|
|
107
43
|
* @default 1
|
|
108
44
|
*/
|
|
109
45
|
step?: number;
|
|
110
|
-
/**
|
|
111
|
-
* The number of steps that the Slider's value will change by during a key press. When provided, the `keyboardSteps`
|
|
112
|
-
* will be separated from the pointer `steps` allowing for the value to go outside of pointer related
|
|
113
|
-
* snapping values.
|
|
114
|
-
*
|
|
115
|
-
* @default `step` or 1
|
|
116
|
-
*/
|
|
117
|
-
keyboardStep?: number;
|
|
118
46
|
/**
|
|
119
47
|
* Whether to render the Slider as disabled.
|
|
120
48
|
*
|
|
@@ -126,18 +54,6 @@ export declare type SliderCommons = {
|
|
|
126
54
|
* @default `false` (renders horizontally)
|
|
127
55
|
*/
|
|
128
56
|
vertical?: boolean;
|
|
129
|
-
/**
|
|
130
|
-
* When enabled, small marks are displayed across the Slider, showing potential steps.
|
|
131
|
-
*
|
|
132
|
-
* - If `true`, marks are visible at each `step`.
|
|
133
|
-
* - If `number[]`, marks will be displayed at each provided number. Numbers must be in ascending order.
|
|
134
|
-
* - If `{}[]`, mark is shown at the value location and displays any provided custom labels and marks.
|
|
135
|
-
*/
|
|
136
|
-
marks?: boolean | (number | {
|
|
137
|
-
value: number;
|
|
138
|
-
label?: string | JSX.Element;
|
|
139
|
-
mark?: JSX.Element;
|
|
140
|
-
})[];
|
|
141
57
|
/**
|
|
142
58
|
* The starting origin point for the Slider.
|
|
143
59
|
* @default min
|
|
@@ -151,89 +67,64 @@ export declare type SliderCommons = {
|
|
|
151
67
|
/**
|
|
152
68
|
* Triggers a callback when the value has been changed. This will be called on every individual step.
|
|
153
69
|
*/
|
|
154
|
-
onChange?: (ev: React_2.
|
|
155
|
-
value: number;
|
|
156
|
-
}) => void;
|
|
70
|
+
onChange?: (ev: React_2.ChangeEvent<HTMLInputElement>, data: SliderOnChangeData) => void;
|
|
157
71
|
/**
|
|
158
72
|
* The Slider's current value label to be read by the screen reader.
|
|
159
73
|
*/
|
|
160
|
-
|
|
74
|
+
getAriaValueText?: (value: number) => string;
|
|
161
75
|
};
|
|
162
76
|
|
|
163
|
-
export declare type
|
|
77
|
+
export declare type SliderOnChangeData = {
|
|
78
|
+
value: number;
|
|
79
|
+
};
|
|
164
80
|
|
|
165
|
-
|
|
166
|
-
* Array of all shorthand properties listed in sliderShorthandProps
|
|
167
|
-
*/
|
|
168
|
-
export declare const sliderShorthandProps: (keyof SliderSlots)[];
|
|
81
|
+
export declare type SliderProps = Omit<ComponentProps<Partial<SliderSlots>, 'input'>, 'defaultValue' | 'onChange' | 'size' | 'value'> & SliderCommons;
|
|
169
82
|
|
|
170
83
|
export declare type SliderSlots = {
|
|
171
84
|
/**
|
|
172
85
|
* The root of the Slider.
|
|
86
|
+
* The root slot receives the `className` and `style` specified directly on the `<Slider>`.
|
|
87
|
+
* All other native props will be applied to the primary slot, `input`.
|
|
173
88
|
*/
|
|
174
|
-
root:
|
|
89
|
+
root: NonNullable<Slot<'div'>>;
|
|
175
90
|
/**
|
|
176
91
|
* The Slider's base. It is used to visibly display the min and max selectable values.
|
|
177
92
|
*/
|
|
178
|
-
rail:
|
|
179
|
-
/**
|
|
180
|
-
* The wrapper around the Slider component.
|
|
181
|
-
*/
|
|
182
|
-
sliderWrapper: IntrinsicShorthandProps<'div'>;
|
|
183
|
-
/**
|
|
184
|
-
* The wrapper around the Slider's track. It is primarily used to handle the positioning of the track.
|
|
185
|
-
*/
|
|
186
|
-
trackWrapper: IntrinsicShorthandProps<'div'>;
|
|
187
|
-
/**
|
|
188
|
-
* The bar showing the current selected area adjacent to the Slider's thumb.
|
|
189
|
-
*/
|
|
190
|
-
track: IntrinsicShorthandProps<'div'>;
|
|
191
|
-
/**
|
|
192
|
-
* The wrapper holding the marks and mark labels for the Slider.
|
|
193
|
-
*/
|
|
194
|
-
marksWrapper: IntrinsicShorthandProps<'div'>;
|
|
195
|
-
/**
|
|
196
|
-
* The wrapper around the Slider's thumb. It is primarily used to handle the dragging animation from translateX.
|
|
197
|
-
*/
|
|
198
|
-
thumbWrapper: IntrinsicShorthandProps<'div'>;
|
|
93
|
+
rail: NonNullable<Slot<'div'>>;
|
|
199
94
|
/**
|
|
200
95
|
* The draggable icon used to select a given value from the Slider.
|
|
201
96
|
* This is the element containing `role = 'slider'`.
|
|
202
97
|
*/
|
|
203
|
-
thumb:
|
|
204
|
-
/**
|
|
205
|
-
* The area in which the Slider's rail allows for the thumb to be dragged.
|
|
206
|
-
*/
|
|
207
|
-
activeRail: IntrinsicShorthandProps<'div'>;
|
|
98
|
+
thumb: NonNullable<Slot<'div'>>;
|
|
208
99
|
/**
|
|
209
100
|
* The hidden input for the Slider.
|
|
101
|
+
* This is the PRIMARY slot: all native properties specified directly on `<Slider>` will be applied to this slot,
|
|
102
|
+
* except `className` and `style`, which remain on the root slot.
|
|
103
|
+
*
|
|
210
104
|
*/
|
|
211
|
-
input:
|
|
105
|
+
input: NonNullable<Slot<'input'>> & {
|
|
106
|
+
/**
|
|
107
|
+
* Orient is a non standard attribute that allows for vertical orientation in Firefox. It is set internally
|
|
108
|
+
* when `vertical` is set to true.
|
|
109
|
+
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/range#non_standard_attributes
|
|
110
|
+
* Webkit/Chromium support for vertical inputs is provided via -webkit-appearance css property
|
|
111
|
+
*/
|
|
112
|
+
orient?: 'horizontal' | 'vertical';
|
|
113
|
+
};
|
|
212
114
|
};
|
|
213
115
|
|
|
214
116
|
export declare type SliderState = ComponentState<SliderSlots> & SliderCommons;
|
|
215
117
|
|
|
216
|
-
export declare const upperThumbClassName: string;
|
|
217
|
-
|
|
218
|
-
/**
|
|
219
|
-
* Given user props, returns state and render function for a RangedSlider.
|
|
220
|
-
*/
|
|
221
|
-
export declare const useRangedSlider: (props: RangedSliderProps, ref: React_2.Ref<HTMLElement>) => RangedSliderState;
|
|
222
|
-
|
|
223
|
-
export declare const useRangedSliderState: (state: RangedSliderState) => RangedSliderState;
|
|
224
|
-
|
|
225
|
-
export declare const useRangedSliderStyles: (state: RangedSliderState) => RangedSliderState;
|
|
226
|
-
|
|
227
118
|
/**
|
|
228
119
|
* Given user props, returns state and render function for a Slider.
|
|
229
120
|
*/
|
|
230
|
-
export declare const
|
|
121
|
+
export declare const useSlider_unstable: (props: SliderProps, ref: React_2.Ref<HTMLInputElement>) => SliderState;
|
|
231
122
|
|
|
232
|
-
export declare const
|
|
123
|
+
export declare const useSliderState_unstable: (state: SliderState) => SliderState;
|
|
233
124
|
|
|
234
125
|
/**
|
|
235
126
|
* Apply styling to the Slider slots based on the state
|
|
236
127
|
*/
|
|
237
|
-
export declare const
|
|
128
|
+
export declare const useSliderStyles_unstable: (state: SliderState) => SliderState;
|
|
238
129
|
|
|
239
130
|
export { }
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { useSlider_unstable } from './useSlider';
|
|
3
|
+
import { renderSlider_unstable } from './renderSlider';
|
|
4
|
+
import { useSliderStyles_unstable } from './useSliderStyles';
|
|
5
5
|
/**
|
|
6
6
|
* The Slider component allows users to quickly select a value by dragging a thumb across a rail.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return
|
|
9
|
+
export const Slider = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
10
|
+
const state = useSlider_unstable(props, ref);
|
|
11
|
+
useSliderStyles_unstable(state);
|
|
12
|
+
return renderSlider_unstable(state);
|
|
13
13
|
});
|
|
14
14
|
Slider.displayName = 'Slider';
|
|
15
15
|
//# sourceMappingURL=Slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAZ,MAAuB,OAAvB;AACA,SAAS,kBAAT,QAAmC,aAAnC;AACA,SAAS,qBAAT,QAAsC,gBAAtC;AACA,SAAS,wBAAT,QAAyC,mBAAzC;AAIA;;AAEG;;AACH,OAAO,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,KAAK,GAAG,kBAAkB,CAAC,KAAD,EAAQ,GAAR,CAAhC;AAEA,EAAA,wBAAwB,CAAC,KAAD,CAAxB;AAEA,SAAO,qBAAqB,CAAC,KAAD,CAA5B;AACD,CANuD,CAAjD;AAOP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
|