@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.
Files changed (161) hide show
  1. package/CHANGELOG.json +287 -1
  2. package/CHANGELOG.md +73 -2
  3. package/dist/react-slider.d.ts +33 -142
  4. package/lib/components/Slider/Slider.js +7 -7
  5. package/lib/components/Slider/Slider.js.map +1 -1
  6. package/lib/components/Slider/Slider.types.d.ts +26 -55
  7. package/lib/components/Slider/index.d.ts +2 -2
  8. package/lib/components/Slider/index.js +2 -2
  9. package/lib/components/Slider/index.js.map +1 -1
  10. package/lib/components/Slider/renderSlider.d.ts +1 -1
  11. package/lib/components/Slider/renderSlider.js +10 -8
  12. package/lib/components/Slider/renderSlider.js.map +1 -1
  13. package/lib/components/Slider/useSlider.d.ts +2 -6
  14. package/lib/components/Slider/useSlider.js +50 -80
  15. package/lib/components/Slider/useSlider.js.map +1 -1
  16. package/lib/components/Slider/useSliderState.d.ts +1 -2
  17. package/lib/components/Slider/useSliderState.js +49 -184
  18. package/lib/components/Slider/useSliderState.js.map +1 -1
  19. package/lib/components/Slider/useSliderStyles.d.ts +10 -30
  20. package/lib/components/Slider/useSliderStyles.js +151 -305
  21. package/lib/components/Slider/useSliderStyles.js.map +1 -1
  22. package/lib/index.d.ts +0 -1
  23. package/lib/index.js +0 -1
  24. package/lib/index.js.map +1 -1
  25. package/lib-commonjs/Slider.js +1 -1
  26. package/lib-commonjs/components/Slider/Slider.js +8 -8
  27. package/lib-commonjs/components/Slider/Slider.js.map +1 -1
  28. package/lib-commonjs/components/Slider/Slider.types.d.ts +26 -55
  29. package/lib-commonjs/components/Slider/index.d.ts +2 -2
  30. package/lib-commonjs/components/Slider/index.js +12 -6
  31. package/lib-commonjs/components/Slider/index.js.map +1 -1
  32. package/lib-commonjs/components/Slider/renderSlider.d.ts +1 -1
  33. package/lib-commonjs/components/Slider/renderSlider.js +14 -14
  34. package/lib-commonjs/components/Slider/renderSlider.js.map +1 -1
  35. package/lib-commonjs/components/Slider/useSlider.d.ts +2 -6
  36. package/lib-commonjs/components/Slider/useSlider.js +53 -84
  37. package/lib-commonjs/components/Slider/useSlider.js.map +1 -1
  38. package/lib-commonjs/components/Slider/useSliderState.d.ts +1 -2
  39. package/lib-commonjs/components/Slider/useSliderState.js +53 -191
  40. package/lib-commonjs/components/Slider/useSliderState.js.map +1 -1
  41. package/lib-commonjs/components/Slider/useSliderStyles.d.ts +10 -30
  42. package/lib-commonjs/components/Slider/useSliderStyles.js +154 -308
  43. package/lib-commonjs/components/Slider/useSliderStyles.js.map +1 -1
  44. package/lib-commonjs/index.d.ts +0 -1
  45. package/lib-commonjs/index.js +1 -3
  46. package/lib-commonjs/index.js.map +1 -1
  47. package/package.json +12 -14
  48. package/lib/RangedSlider.d.ts +0 -1
  49. package/lib/RangedSlider.js +0 -2
  50. package/lib/RangedSlider.js.map +0 -1
  51. package/lib/common/isConformant.d.ts +0 -4
  52. package/lib/common/isConformant.js +0 -12
  53. package/lib/common/isConformant.js.map +0 -1
  54. package/lib/components/RangedSlider/RangedSlider.d.ts +0 -6
  55. package/lib/components/RangedSlider/RangedSlider.js +0 -15
  56. package/lib/components/RangedSlider/RangedSlider.js.map +0 -1
  57. package/lib/components/RangedSlider/RangedSlider.types.d.ts +0 -53
  58. package/lib/components/RangedSlider/RangedSlider.types.js +0 -2
  59. package/lib/components/RangedSlider/RangedSlider.types.js.map +0 -1
  60. package/lib/components/RangedSlider/index.d.ts +0 -6
  61. package/lib/components/RangedSlider/index.js +0 -7
  62. package/lib/components/RangedSlider/index.js.map +0 -1
  63. package/lib/components/RangedSlider/renderRangedSlider.d.ts +0 -5
  64. package/lib/components/RangedSlider/renderRangedSlider.js +0 -20
  65. package/lib/components/RangedSlider/renderRangedSlider.js.map +0 -1
  66. package/lib/components/RangedSlider/useRangedSlider.d.ts +0 -6
  67. package/lib/components/RangedSlider/useRangedSlider.js +0 -116
  68. package/lib/components/RangedSlider/useRangedSlider.js.map +0 -1
  69. package/lib/components/RangedSlider/useRangedSliderState.d.ts +0 -2
  70. package/lib/components/RangedSlider/useRangedSliderState.js +0 -271
  71. package/lib/components/RangedSlider/useRangedSliderState.js.map +0 -1
  72. package/lib/components/RangedSlider/useRangedSliderStyles.d.ts +0 -4
  73. package/lib/components/RangedSlider/useRangedSliderStyles.js +0 -92
  74. package/lib/components/RangedSlider/useRangedSliderStyles.js.map +0 -1
  75. package/lib/utils/calculateSteps.d.ts +0 -5
  76. package/lib/utils/calculateSteps.js +0 -27
  77. package/lib/utils/calculateSteps.js.map +0 -1
  78. package/lib/utils/findClosestThumb.d.ts +0 -4
  79. package/lib/utils/findClosestThumb.js +0 -7
  80. package/lib/utils/findClosestThumb.js.map +0 -1
  81. package/lib/utils/getKeydownValue.d.ts +0 -6
  82. package/lib/utils/getKeydownValue.js +0 -35
  83. package/lib/utils/getKeydownValue.js.map +0 -1
  84. package/lib/utils/getMarkPercent.d.ts +0 -12
  85. package/lib/utils/getMarkPercent.js +0 -27
  86. package/lib/utils/getMarkPercent.js.map +0 -1
  87. package/lib/utils/getMarkValues.d.ts +0 -13
  88. package/lib/utils/getMarkValues.js +0 -29
  89. package/lib/utils/getMarkValues.js.map +0 -1
  90. package/lib/utils/getPercent.d.ts +0 -8
  91. package/lib/utils/getPercent.js +0 -11
  92. package/lib/utils/getPercent.js.map +0 -1
  93. package/lib/utils/index.d.ts +0 -9
  94. package/lib/utils/index.js +0 -10
  95. package/lib/utils/index.js.map +0 -1
  96. package/lib/utils/on.d.ts +0 -11
  97. package/lib/utils/on.js +0 -17
  98. package/lib/utils/on.js.map +0 -1
  99. package/lib/utils/renderMarks.d.ts +0 -13
  100. package/lib/utils/renderMarks.js +0 -31
  101. package/lib/utils/renderMarks.js.map +0 -1
  102. package/lib/utils/validateRangedThumbValues.d.ts +0 -4
  103. package/lib/utils/validateRangedThumbValues.js +0 -13
  104. package/lib/utils/validateRangedThumbValues.js.map +0 -1
  105. package/lib-commonjs/RangedSlider.d.ts +0 -1
  106. package/lib-commonjs/RangedSlider.js +0 -10
  107. package/lib-commonjs/RangedSlider.js.map +0 -1
  108. package/lib-commonjs/common/isConformant.d.ts +0 -4
  109. package/lib-commonjs/common/isConformant.js +0 -23
  110. package/lib-commonjs/common/isConformant.js.map +0 -1
  111. package/lib-commonjs/components/RangedSlider/RangedSlider.d.ts +0 -6
  112. package/lib-commonjs/components/RangedSlider/RangedSlider.js +0 -26
  113. package/lib-commonjs/components/RangedSlider/RangedSlider.js.map +0 -1
  114. package/lib-commonjs/components/RangedSlider/RangedSlider.types.d.ts +0 -53
  115. package/lib-commonjs/components/RangedSlider/RangedSlider.types.js +0 -6
  116. package/lib-commonjs/components/RangedSlider/RangedSlider.types.js.map +0 -1
  117. package/lib-commonjs/components/RangedSlider/index.d.ts +0 -6
  118. package/lib-commonjs/components/RangedSlider/index.js +0 -20
  119. package/lib-commonjs/components/RangedSlider/index.js.map +0 -1
  120. package/lib-commonjs/components/RangedSlider/renderRangedSlider.d.ts +0 -5
  121. package/lib-commonjs/components/RangedSlider/renderRangedSlider.js +0 -32
  122. package/lib-commonjs/components/RangedSlider/renderRangedSlider.js.map +0 -1
  123. package/lib-commonjs/components/RangedSlider/useRangedSlider.d.ts +0 -6
  124. package/lib-commonjs/components/RangedSlider/useRangedSlider.js +0 -128
  125. package/lib-commonjs/components/RangedSlider/useRangedSlider.js.map +0 -1
  126. package/lib-commonjs/components/RangedSlider/useRangedSliderState.d.ts +0 -2
  127. package/lib-commonjs/components/RangedSlider/useRangedSliderState.js +0 -286
  128. package/lib-commonjs/components/RangedSlider/useRangedSliderState.js.map +0 -1
  129. package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.d.ts +0 -4
  130. package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.js +0 -104
  131. package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.js.map +0 -1
  132. package/lib-commonjs/utils/calculateSteps.d.ts +0 -5
  133. package/lib-commonjs/utils/calculateSteps.js +0 -37
  134. package/lib-commonjs/utils/calculateSteps.js.map +0 -1
  135. package/lib-commonjs/utils/findClosestThumb.d.ts +0 -4
  136. package/lib-commonjs/utils/findClosestThumb.js +0 -16
  137. package/lib-commonjs/utils/findClosestThumb.js.map +0 -1
  138. package/lib-commonjs/utils/getKeydownValue.d.ts +0 -6
  139. package/lib-commonjs/utils/getKeydownValue.js +0 -45
  140. package/lib-commonjs/utils/getKeydownValue.js.map +0 -1
  141. package/lib-commonjs/utils/getMarkPercent.d.ts +0 -12
  142. package/lib-commonjs/utils/getMarkPercent.js +0 -36
  143. package/lib-commonjs/utils/getMarkPercent.js.map +0 -1
  144. package/lib-commonjs/utils/getMarkValues.d.ts +0 -13
  145. package/lib-commonjs/utils/getMarkValues.js +0 -39
  146. package/lib-commonjs/utils/getMarkValues.js.map +0 -1
  147. package/lib-commonjs/utils/getPercent.d.ts +0 -8
  148. package/lib-commonjs/utils/getPercent.js +0 -20
  149. package/lib-commonjs/utils/getPercent.js.map +0 -1
  150. package/lib-commonjs/utils/index.d.ts +0 -9
  151. package/lib-commonjs/utils/index.js +0 -26
  152. package/lib-commonjs/utils/index.js.map +0 -1
  153. package/lib-commonjs/utils/on.d.ts +0 -11
  154. package/lib-commonjs/utils/on.js +0 -26
  155. package/lib-commonjs/utils/on.js.map +0 -1
  156. package/lib-commonjs/utils/renderMarks.d.ts +0 -13
  157. package/lib-commonjs/utils/renderMarks.js +0 -42
  158. package/lib-commonjs/utils/renderMarks.js.map +0 -1
  159. package/lib-commonjs/utils/validateRangedThumbValues.d.ts +0 -4
  160. package/lib-commonjs/utils/validateRangedThumbValues.js +0 -23
  161. 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": "Tue, 12 Oct 2021 19:45:25 GMT",
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 Tue, 12 Oct 2021 19:45:25 GMT and should not be manually modified.
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:25 GMT
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
@@ -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 renderSlider: (state: SliderState) => JSX.Element;
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 type SliderCommons = {
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.PointerEvent<HTMLDivElement> | React_2.KeyboardEvent<HTMLDivElement>, data: {
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
- ariaValueText?: (value: number) => string;
74
+ getAriaValueText?: (value: number) => string;
161
75
  };
162
76
 
163
- export declare type SliderProps = Omit<ComponentProps<SliderSlots>, 'onChange' | 'defaultValue'> & SliderCommons;
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: IntrinsicShorthandProps<'div'>;
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: IntrinsicShorthandProps<'div'>;
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: IntrinsicShorthandProps<'div'>;
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: IntrinsicShorthandProps<'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 useSlider: (props: SliderProps, ref: React_2.Ref<HTMLElement>) => SliderState;
121
+ export declare const useSlider_unstable: (props: SliderProps, ref: React_2.Ref<HTMLInputElement>) => SliderState;
231
122
 
232
- export declare const useSliderState: (state: SliderState) => SliderState;
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 useSliderStyles: (state: SliderState) => SliderState;
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 { useSlider } from './useSlider';
3
- import { renderSlider } from './renderSlider';
4
- import { useSliderStyles } from './useSliderStyles';
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 var Slider = /*#__PURE__*/React.forwardRef(function (props, ref) {
10
- var state = useSlider(props, ref);
11
- useSliderStyles(state);
12
- return renderSlider(state);
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,SAAT,QAA0B,aAA1B;AACA,SAAS,YAAT,QAA6B,gBAA7B;AACA,SAAS,eAAT,QAAgC,mBAAhC;AAIA;;AAEG;;AACH,OAAO,IAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,UAAC,KAAD,EAAQ,GAAR,EAAW;AAClF,MAAM,KAAK,GAAG,SAAS,CAAC,KAAD,EAAQ,GAAR,CAAvB;AAEA,EAAA,eAAe,CAAC,KAAD,CAAf;AAEA,SAAO,YAAY,CAAC,KAAD,CAAnB;AACD,CANuD,CAAjD;AAOP,MAAM,CAAC,WAAP,GAAqB,QAArB","sourceRoot":""}
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":""}