@fluentui/react-slider 9.0.0-beta.5 → 9.0.0-beta.9

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 (164) hide show
  1. package/CHANGELOG.json +170 -9
  2. package/CHANGELOG.md +55 -10
  3. package/dist/react-slider.d.ts +31 -140
  4. package/lib/Slider.js.map +1 -1
  5. package/lib/components/Slider/Slider.js +6 -6
  6. package/lib/components/Slider/Slider.js.map +1 -1
  7. package/lib/components/Slider/Slider.types.d.ts +26 -55
  8. package/lib/components/Slider/Slider.types.js.map +1 -1
  9. package/lib/components/Slider/index.d.ts +2 -2
  10. package/lib/components/Slider/index.js +2 -2
  11. package/lib/components/Slider/index.js.map +1 -1
  12. package/lib/components/Slider/renderSlider.d.ts +1 -1
  13. package/lib/components/Slider/renderSlider.js +7 -4
  14. package/lib/components/Slider/renderSlider.js.map +1 -1
  15. package/lib/components/Slider/useSlider.d.ts +2 -6
  16. package/lib/components/Slider/useSlider.js +28 -57
  17. package/lib/components/Slider/useSlider.js.map +1 -1
  18. package/lib/components/Slider/useSliderState.d.ts +1 -2
  19. package/lib/components/Slider/useSliderState.js +37 -159
  20. package/lib/components/Slider/useSliderState.js.map +1 -1
  21. package/lib/components/Slider/useSliderStyles.d.ts +9 -35
  22. package/lib/components/Slider/useSliderStyles.js +142 -301
  23. package/lib/components/Slider/useSliderStyles.js.map +1 -1
  24. package/lib/index.d.ts +0 -1
  25. package/lib/index.js +0 -1
  26. package/lib/index.js.map +1 -1
  27. package/lib-commonjs/Slider.js.map +1 -1
  28. package/lib-commonjs/components/Slider/Slider.js +3 -3
  29. package/lib-commonjs/components/Slider/Slider.js.map +1 -1
  30. package/lib-commonjs/components/Slider/Slider.types.d.ts +26 -55
  31. package/lib-commonjs/components/Slider/Slider.types.js.map +1 -1
  32. package/lib-commonjs/components/Slider/index.d.ts +2 -2
  33. package/lib-commonjs/components/Slider/index.js +5 -5
  34. package/lib-commonjs/components/Slider/index.js.map +1 -1
  35. package/lib-commonjs/components/Slider/renderSlider.d.ts +1 -1
  36. package/lib-commonjs/components/Slider/renderSlider.js +9 -7
  37. package/lib-commonjs/components/Slider/renderSlider.js.map +1 -1
  38. package/lib-commonjs/components/Slider/useSlider.d.ts +2 -6
  39. package/lib-commonjs/components/Slider/useSlider.js +29 -58
  40. package/lib-commonjs/components/Slider/useSlider.js.map +1 -1
  41. package/lib-commonjs/components/Slider/useSliderState.d.ts +1 -2
  42. package/lib-commonjs/components/Slider/useSliderState.js +39 -163
  43. package/lib-commonjs/components/Slider/useSliderState.js.map +1 -1
  44. package/lib-commonjs/components/Slider/useSliderStyles.d.ts +9 -35
  45. package/lib-commonjs/components/Slider/useSliderStyles.js +149 -307
  46. package/lib-commonjs/components/Slider/useSliderStyles.js.map +1 -1
  47. package/lib-commonjs/index.d.ts +0 -1
  48. package/lib-commonjs/index.js +0 -2
  49. package/lib-commonjs/index.js.map +1 -1
  50. package/package.json +13 -13
  51. package/lib/RangedSlider.d.ts +0 -1
  52. package/lib/RangedSlider.js +0 -2
  53. package/lib/RangedSlider.js.map +0 -1
  54. package/lib/common/isConformant.d.ts +0 -4
  55. package/lib/common/isConformant.js +0 -12
  56. package/lib/common/isConformant.js.map +0 -1
  57. package/lib/components/RangedSlider/RangedSlider.d.ts +0 -6
  58. package/lib/components/RangedSlider/RangedSlider.js +0 -15
  59. package/lib/components/RangedSlider/RangedSlider.js.map +0 -1
  60. package/lib/components/RangedSlider/RangedSlider.types.d.ts +0 -53
  61. package/lib/components/RangedSlider/RangedSlider.types.js +0 -2
  62. package/lib/components/RangedSlider/RangedSlider.types.js.map +0 -1
  63. package/lib/components/RangedSlider/index.d.ts +0 -6
  64. package/lib/components/RangedSlider/index.js +0 -7
  65. package/lib/components/RangedSlider/index.js.map +0 -1
  66. package/lib/components/RangedSlider/renderRangedSlider.d.ts +0 -5
  67. package/lib/components/RangedSlider/renderRangedSlider.js +0 -19
  68. package/lib/components/RangedSlider/renderRangedSlider.js.map +0 -1
  69. package/lib/components/RangedSlider/useRangedSlider.d.ts +0 -6
  70. package/lib/components/RangedSlider/useRangedSlider.js +0 -115
  71. package/lib/components/RangedSlider/useRangedSlider.js.map +0 -1
  72. package/lib/components/RangedSlider/useRangedSliderState.d.ts +0 -2
  73. package/lib/components/RangedSlider/useRangedSliderState.js +0 -258
  74. package/lib/components/RangedSlider/useRangedSliderState.js.map +0 -1
  75. package/lib/components/RangedSlider/useRangedSliderStyles.d.ts +0 -5
  76. package/lib/components/RangedSlider/useRangedSliderStyles.js +0 -93
  77. package/lib/components/RangedSlider/useRangedSliderStyles.js.map +0 -1
  78. package/lib/utils/calculateSteps.d.ts +0 -5
  79. package/lib/utils/calculateSteps.js +0 -27
  80. package/lib/utils/calculateSteps.js.map +0 -1
  81. package/lib/utils/findClosestThumb.d.ts +0 -4
  82. package/lib/utils/findClosestThumb.js +0 -7
  83. package/lib/utils/findClosestThumb.js.map +0 -1
  84. package/lib/utils/getKeydownValue.d.ts +0 -6
  85. package/lib/utils/getKeydownValue.js +0 -35
  86. package/lib/utils/getKeydownValue.js.map +0 -1
  87. package/lib/utils/getMarkPercent.d.ts +0 -12
  88. package/lib/utils/getMarkPercent.js +0 -27
  89. package/lib/utils/getMarkPercent.js.map +0 -1
  90. package/lib/utils/getMarkValues.d.ts +0 -13
  91. package/lib/utils/getMarkValues.js +0 -27
  92. package/lib/utils/getMarkValues.js.map +0 -1
  93. package/lib/utils/getPercent.d.ts +0 -8
  94. package/lib/utils/getPercent.js +0 -11
  95. package/lib/utils/getPercent.js.map +0 -1
  96. package/lib/utils/index.d.ts +0 -9
  97. package/lib/utils/index.js +0 -10
  98. package/lib/utils/index.js.map +0 -1
  99. package/lib/utils/on.d.ts +0 -11
  100. package/lib/utils/on.js +0 -15
  101. package/lib/utils/on.js.map +0 -1
  102. package/lib/utils/renderMarks.d.ts +0 -11
  103. package/lib/utils/renderMarks.js +0 -24
  104. package/lib/utils/renderMarks.js.map +0 -1
  105. package/lib/utils/validateRangedThumbValues.d.ts +0 -4
  106. package/lib/utils/validateRangedThumbValues.js +0 -7
  107. package/lib/utils/validateRangedThumbValues.js.map +0 -1
  108. package/lib-commonjs/RangedSlider.d.ts +0 -1
  109. package/lib-commonjs/RangedSlider.js +0 -10
  110. package/lib-commonjs/RangedSlider.js.map +0 -1
  111. package/lib-commonjs/common/isConformant.d.ts +0 -4
  112. package/lib-commonjs/common/isConformant.js +0 -23
  113. package/lib-commonjs/common/isConformant.js.map +0 -1
  114. package/lib-commonjs/components/RangedSlider/RangedSlider.d.ts +0 -6
  115. package/lib-commonjs/components/RangedSlider/RangedSlider.js +0 -26
  116. package/lib-commonjs/components/RangedSlider/RangedSlider.js.map +0 -1
  117. package/lib-commonjs/components/RangedSlider/RangedSlider.types.d.ts +0 -53
  118. package/lib-commonjs/components/RangedSlider/RangedSlider.types.js +0 -6
  119. package/lib-commonjs/components/RangedSlider/RangedSlider.types.js.map +0 -1
  120. package/lib-commonjs/components/RangedSlider/index.d.ts +0 -6
  121. package/lib-commonjs/components/RangedSlider/index.js +0 -34
  122. package/lib-commonjs/components/RangedSlider/index.js.map +0 -1
  123. package/lib-commonjs/components/RangedSlider/renderRangedSlider.d.ts +0 -5
  124. package/lib-commonjs/components/RangedSlider/renderRangedSlider.js +0 -30
  125. package/lib-commonjs/components/RangedSlider/renderRangedSlider.js.map +0 -1
  126. package/lib-commonjs/components/RangedSlider/useRangedSlider.d.ts +0 -6
  127. package/lib-commonjs/components/RangedSlider/useRangedSlider.js +0 -126
  128. package/lib-commonjs/components/RangedSlider/useRangedSlider.js.map +0 -1
  129. package/lib-commonjs/components/RangedSlider/useRangedSliderState.d.ts +0 -2
  130. package/lib-commonjs/components/RangedSlider/useRangedSliderState.js +0 -272
  131. package/lib-commonjs/components/RangedSlider/useRangedSliderState.js.map +0 -1
  132. package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.d.ts +0 -5
  133. package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.js +0 -105
  134. package/lib-commonjs/components/RangedSlider/useRangedSliderStyles.js.map +0 -1
  135. package/lib-commonjs/utils/calculateSteps.d.ts +0 -5
  136. package/lib-commonjs/utils/calculateSteps.js +0 -37
  137. package/lib-commonjs/utils/calculateSteps.js.map +0 -1
  138. package/lib-commonjs/utils/findClosestThumb.d.ts +0 -4
  139. package/lib-commonjs/utils/findClosestThumb.js +0 -16
  140. package/lib-commonjs/utils/findClosestThumb.js.map +0 -1
  141. package/lib-commonjs/utils/getKeydownValue.d.ts +0 -6
  142. package/lib-commonjs/utils/getKeydownValue.js +0 -45
  143. package/lib-commonjs/utils/getKeydownValue.js.map +0 -1
  144. package/lib-commonjs/utils/getMarkPercent.d.ts +0 -12
  145. package/lib-commonjs/utils/getMarkPercent.js +0 -36
  146. package/lib-commonjs/utils/getMarkPercent.js.map +0 -1
  147. package/lib-commonjs/utils/getMarkValues.d.ts +0 -13
  148. package/lib-commonjs/utils/getMarkValues.js +0 -37
  149. package/lib-commonjs/utils/getMarkValues.js.map +0 -1
  150. package/lib-commonjs/utils/getPercent.d.ts +0 -8
  151. package/lib-commonjs/utils/getPercent.js +0 -20
  152. package/lib-commonjs/utils/getPercent.js.map +0 -1
  153. package/lib-commonjs/utils/index.d.ts +0 -9
  154. package/lib-commonjs/utils/index.js +0 -26
  155. package/lib-commonjs/utils/index.js.map +0 -1
  156. package/lib-commonjs/utils/on.d.ts +0 -11
  157. package/lib-commonjs/utils/on.js +0 -24
  158. package/lib-commonjs/utils/on.js.map +0 -1
  159. package/lib-commonjs/utils/renderMarks.d.ts +0 -11
  160. package/lib-commonjs/utils/renderMarks.js +0 -36
  161. package/lib-commonjs/utils/renderMarks.js.map +0 -1
  162. package/lib-commonjs/utils/validateRangedThumbValues.d.ts +0 -4
  163. package/lib-commonjs/utils/validateRangedThumbValues.js +0 -17
  164. package/lib-commonjs/utils/validateRangedThumbValues.js.map +0 -1
package/CHANGELOG.json CHANGED
@@ -2,7 +2,168 @@
2
2
  "name": "@fluentui/react-slider",
3
3
  "entries": [
4
4
  {
5
- "date": "Thu, 25 Nov 2021 08:31:35 GMT",
5
+ "date": "Tue, 01 Mar 2022 02:16:12 GMT",
6
+ "tag": "@fluentui/react-slider_v9.0.0-beta.9",
7
+ "version": "9.0.0-beta.9",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "olfedias@microsoft.com",
12
+ "package": "@fluentui/react-slider",
13
+ "commit": "084d7408855f3e52b67cbca172da1acef9dcb98f",
14
+ "comment": "fix: Add react-theme as dependency"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-slider",
19
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.4",
20
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-slider",
25
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.4",
26
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-slider",
31
+ "comment": "Bump @fluentui/react-label to v9.0.0-beta.8",
32
+ "commit": "0bc1e755543ed69443d5d03e1976c630583242f7"
33
+ }
34
+ ]
35
+ }
36
+ },
37
+ {
38
+ "date": "Fri, 18 Feb 2022 13:35:34 GMT",
39
+ "tag": "@fluentui/react-slider_v9.0.0-beta.8",
40
+ "version": "9.0.0-beta.8",
41
+ "comments": {
42
+ "prerelease": [
43
+ {
44
+ "author": "lingfangao@hotmail.com",
45
+ "package": "@fluentui/react-slider",
46
+ "commit": "1aa9e691fcccd9a64168cea7941c0f1e71fa1d14",
47
+ "comment": "fix: Source maps contain original source code"
48
+ },
49
+ {
50
+ "author": "beachball",
51
+ "package": "@fluentui/react-slider",
52
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.3",
53
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
54
+ },
55
+ {
56
+ "author": "beachball",
57
+ "package": "@fluentui/react-slider",
58
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.3",
59
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
60
+ },
61
+ {
62
+ "author": "beachball",
63
+ "package": "@fluentui/react-slider",
64
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.3",
65
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
66
+ },
67
+ {
68
+ "author": "beachball",
69
+ "package": "@fluentui/react-slider",
70
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3",
71
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@fluentui/react-slider",
76
+ "comment": "Bump @fluentui/react-label to v9.0.0-beta.7",
77
+ "commit": "3b9c1e931c23173da3d1af0c696cdc58516ce504"
78
+ }
79
+ ]
80
+ }
81
+ },
82
+ {
83
+ "date": "Thu, 10 Feb 2022 08:50:49 GMT",
84
+ "tag": "@fluentui/react-slider_v9.0.0-beta.6",
85
+ "version": "9.0.0-beta.6",
86
+ "comments": {
87
+ "prerelease": [
88
+ {
89
+ "author": "Humberto.Morimoto@microsoft.com",
90
+ "package": "@fluentui/react-slider",
91
+ "commit": "0bc161458eae5ae8d387172430496ce9829b1bb1",
92
+ "comment": "Using ComponentSlotProps instead of ObjectShorthandProps."
93
+ },
94
+ {
95
+ "author": "behowell@microsoft.com",
96
+ "package": "@fluentui/react-slider",
97
+ "commit": "7cc28ed8320b00f42d91c63882f10316db2205c5",
98
+ "comment": "Remove component's shorthandProps array"
99
+ },
100
+ {
101
+ "author": "mgodbolt@microsoft.com",
102
+ "package": "@fluentui/react-slider",
103
+ "commit": "0a220897d7f6b3029b7c7f18b6ecc28a3131345f",
104
+ "comment": "move slider to unstable"
105
+ },
106
+ {
107
+ "author": "mgodbolt@microsoft.com",
108
+ "package": "@fluentui/react-slider",
109
+ "commit": "839ec14849e112b85aa321d034739ec421199141",
110
+ "comment": "remove export of commons types"
111
+ },
112
+ {
113
+ "author": "behowell@microsoft.com",
114
+ "package": "@fluentui/react-slider",
115
+ "commit": "53b01d71e335715fda91b33e3d7bbd9d471d5ed3",
116
+ "comment": "Refactor component Slot typings"
117
+ },
118
+ {
119
+ "author": "lingfangao@hotmail.com",
120
+ "package": "@fluentui/react-slider",
121
+ "commit": "c00913d50e2dd15bbfbb0757cefe43b192ff1d7f",
122
+ "comment": "Bump Fluent UI dependencies to 9.0.0-rc"
123
+ },
124
+ {
125
+ "author": "beachball",
126
+ "package": "@fluentui/react-slider",
127
+ "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-rc.1",
128
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
129
+ },
130
+ {
131
+ "author": "beachball",
132
+ "package": "@fluentui/react-slider",
133
+ "comment": "Bump @fluentui/react-tabster to v9.0.0-rc.1",
134
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
135
+ },
136
+ {
137
+ "author": "beachball",
138
+ "package": "@fluentui/react-slider",
139
+ "comment": "Bump @fluentui/react-utilities to v9.0.0-rc.1",
140
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
141
+ },
142
+ {
143
+ "author": "beachball",
144
+ "package": "@fluentui/react-slider",
145
+ "comment": "Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1",
146
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
147
+ },
148
+ {
149
+ "author": "beachball",
150
+ "package": "@fluentui/react-slider",
151
+ "comment": "Bump @fluentui/react-label to v9.0.0-beta.5",
152
+ "commit": "e6c855f6d9019d6c73668d15fc9bc3a13291a6c8"
153
+ }
154
+ ],
155
+ "none": [
156
+ {
157
+ "author": "me@levithomason.com",
158
+ "package": "@fluentui/react-slider",
159
+ "commit": "4bd15194a66379b165043141c266faa0c1ea1502",
160
+ "comment": "document how to import preview components"
161
+ }
162
+ ]
163
+ }
164
+ },
165
+ {
166
+ "date": "Thu, 25 Nov 2021 08:34:17 GMT",
6
167
  "tag": "@fluentui/react-slider_v9.0.0-beta.5",
7
168
  "version": "9.0.0-beta.5",
8
169
  "comments": {
@@ -11,49 +172,49 @@
11
172
  "author": "beachball",
12
173
  "package": "@fluentui/react-slider",
13
174
  "comment": "Bump @fluentui/react-make-styles to v9.0.0-beta.4",
14
- "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
175
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
15
176
  },
16
177
  {
17
178
  "author": "beachball",
18
179
  "package": "@fluentui/react-slider",
19
180
  "comment": "Bump @fluentui/react-shared-contexts to v9.0.0-beta.4",
20
- "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
181
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
21
182
  },
22
183
  {
23
184
  "author": "beachball",
24
185
  "package": "@fluentui/react-slider",
25
186
  "comment": "Bump @fluentui/react-tabster to v9.0.0-beta.5",
26
- "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
187
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
27
188
  },
28
189
  {
29
190
  "author": "beachball",
30
191
  "package": "@fluentui/react-slider",
31
192
  "comment": "Bump @fluentui/react-utilities to v9.0.0-beta.4",
32
- "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
193
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
33
194
  },
34
195
  {
35
196
  "author": "beachball",
36
197
  "package": "@fluentui/react-slider",
37
198
  "comment": "Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4",
38
- "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
199
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
39
200
  },
40
201
  {
41
202
  "author": "beachball",
42
203
  "package": "@fluentui/react-slider",
43
204
  "comment": "Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4",
44
- "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
205
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
45
206
  },
46
207
  {
47
208
  "author": "beachball",
48
209
  "package": "@fluentui/react-slider",
49
210
  "comment": "Bump @fluentui/react-label to v9.0.0-beta.4",
50
- "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
211
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
51
212
  },
52
213
  {
53
214
  "author": "beachball",
54
215
  "package": "@fluentui/react-slider",
55
216
  "comment": "Bump @fluentui/babel-make-styles to v9.0.0-beta.4",
56
- "commit": "281e8820669214c1ffb9bc75e9b719a3b27fa9b6"
217
+ "commit": "48d236ac53a4950fabc3ddd52f91dac93ca0195b"
57
218
  }
58
219
  ]
59
220
  }
package/CHANGELOG.md CHANGED
@@ -1,24 +1,69 @@
1
1
  # Change Log - @fluentui/react-slider
2
2
 
3
- This log was last generated on Thu, 25 Nov 2021 08:31:35 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 01 Mar 2022 02:16:12 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.0-beta.9](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.0-beta.9)
8
+
9
+ Tue, 01 Mar 2022 02:16:12 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.0-beta.8..@fluentui/react-slider_v9.0.0-beta.9)
11
+
12
+ ### Changes
13
+
14
+ - fix: Add react-theme as dependency ([PR #21825](https://github.com/microsoft/fluentui/pull/21825) by olfedias@microsoft.com)
15
+ - Bump @fluentui/react-tabster to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
16
+ - Bump @fluentui/react-utilities to v9.0.0-rc.4 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
17
+ - Bump @fluentui/react-label to v9.0.0-beta.8 ([PR #21884](https://github.com/microsoft/fluentui/pull/21884) by beachball)
18
+
19
+ ## [9.0.0-beta.8](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.0-beta.8)
20
+
21
+ Fri, 18 Feb 2022 13:35:34 GMT
22
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.0-beta.6..@fluentui/react-slider_v9.0.0-beta.8)
23
+
24
+ ### Changes
25
+
26
+ - fix: Source maps contain original source code ([PR #21690](https://github.com/microsoft/fluentui/pull/21690) by lingfangao@hotmail.com)
27
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
28
+ - Bump @fluentui/react-tabster to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
29
+ - Bump @fluentui/react-utilities to v9.0.0-rc.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
30
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.3 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
31
+ - Bump @fluentui/react-label to v9.0.0-beta.7 ([PR #21800](https://github.com/microsoft/fluentui/pull/21800) by beachball)
32
+
33
+ ## [9.0.0-beta.6](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.0-beta.6)
34
+
35
+ Thu, 10 Feb 2022 08:50:49 GMT
36
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.0-beta.5..@fluentui/react-slider_v9.0.0-beta.6)
37
+
38
+ ### Changes
39
+
40
+ - Using ComponentSlotProps instead of ObjectShorthandProps. ([PR #20890](https://github.com/microsoft/fluentui/pull/20890) by Humberto.Morimoto@microsoft.com)
41
+ - Remove component's shorthandProps array ([PR #21134](https://github.com/microsoft/fluentui/pull/21134) by behowell@microsoft.com)
42
+ - move slider to unstable ([PR #21506](https://github.com/microsoft/fluentui/pull/21506) by mgodbolt@microsoft.com)
43
+ - remove export of commons types ([PR #21660](https://github.com/microsoft/fluentui/pull/21660) by mgodbolt@microsoft.com)
44
+ - Refactor component Slot typings ([PR #21518](https://github.com/microsoft/fluentui/pull/21518) by behowell@microsoft.com)
45
+ - Bump Fluent UI dependencies to 9.0.0-rc ([PR #21623](https://github.com/microsoft/fluentui/pull/21623) by lingfangao@hotmail.com)
46
+ - Bump @fluentui/react-shared-contexts to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
47
+ - Bump @fluentui/react-tabster to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
48
+ - Bump @fluentui/react-utilities to v9.0.0-rc.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
49
+ - Bump @fluentui/react-conformance-griffel to v9.0.0-beta.1 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
50
+ - Bump @fluentui/react-label to v9.0.0-beta.5 ([commit](https://github.com/microsoft/fluentui/commit/e6c855f6d9019d6c73668d15fc9bc3a13291a6c8) by beachball)
51
+
7
52
  ## [9.0.0-beta.5](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.0-beta.5)
8
53
 
9
- Thu, 25 Nov 2021 08:31:35 GMT
54
+ Thu, 25 Nov 2021 08:34:17 GMT
10
55
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.0-beta.4..@fluentui/react-slider_v9.0.0-beta.5)
11
56
 
12
57
  ### Changes
13
58
 
14
- - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
15
- - Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
16
- - Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
17
- - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
18
- - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
19
- - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
20
- - Bump @fluentui/react-label to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
21
- - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20609](https://github.com/microsoft/fluentui/pull/20609) by beachball)
59
+ - Bump @fluentui/react-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
60
+ - Bump @fluentui/react-shared-contexts to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
61
+ - Bump @fluentui/react-tabster to v9.0.0-beta.5 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
62
+ - Bump @fluentui/react-utilities to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
63
+ - Bump @fluentui/jest-serializer-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
64
+ - Bump @fluentui/react-conformance-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
65
+ - Bump @fluentui/react-label to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
66
+ - Bump @fluentui/babel-make-styles to v9.0.0-beta.4 ([PR #20762](https://github.com/microsoft/fluentui/pull/20762) by beachball)
22
67
 
23
68
  ## [9.0.0-beta.4](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.0-beta.4)
24
69
 
@@ -1,79 +1,13 @@
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
- /**
8
- * The RangedSlider component allows users to quickly select a range by dragging a lower or upper thumb across a rail.
9
- */
10
- export declare const RangedSlider: ForwardRefComponent<RangedSliderProps>;
11
-
12
- export declare const rangedSliderClassName = "fui-RangedSlider";
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.
@@ -82,7 +16,7 @@ export declare const Slider: ForwardRefComponent<SliderProps>;
82
16
 
83
17
  export declare const sliderClassName = "fui-Slider";
84
18
 
85
- export declare type SliderCommons = {
19
+ declare type SliderCommons = {
86
20
  /**
87
21
  * The starting value for an uncontrolled Slider.
88
22
  * Mutually exclusive with `value` prop.
@@ -109,14 +43,6 @@ export declare type SliderCommons = {
109
43
  * @default 1
110
44
  */
111
45
  step?: number;
112
- /**
113
- * The number of steps that the Slider's value will change by during a key press. When provided, the `keyboardSteps`
114
- * will be separated from the pointer `steps` allowing for the value to go outside of pointer related
115
- * snapping values.
116
- *
117
- * @default `step` or 1
118
- */
119
- keyboardStep?: number;
120
46
  /**
121
47
  * Whether to render the Slider as disabled.
122
48
  *
@@ -128,18 +54,6 @@ export declare type SliderCommons = {
128
54
  * @default `false` (renders horizontally)
129
55
  */
130
56
  vertical?: boolean;
131
- /**
132
- * When enabled, small marks are displayed across the Slider, showing potential steps.
133
- *
134
- * - If `true`, marks are visible at each `step`.
135
- * - If `number[]`, marks will be displayed at each provided number. Numbers must be in ascending order.
136
- * - If `{}[]`, mark is shown at the value location and displays any provided custom labels and marks.
137
- */
138
- marks?: boolean | (number | {
139
- value: number;
140
- label?: string | JSX.Element;
141
- mark?: JSX.Element;
142
- })[];
143
57
  /**
144
58
  * The starting origin point for the Slider.
145
59
  * @default min
@@ -153,87 +67,64 @@ export declare type SliderCommons = {
153
67
  /**
154
68
  * Triggers a callback when the value has been changed. This will be called on every individual step.
155
69
  */
156
- onChange?: (ev: React_2.PointerEvent<HTMLDivElement> | React_2.KeyboardEvent<HTMLDivElement>, data: {
157
- value: number;
158
- }) => void;
70
+ onChange?: (ev: React_2.ChangeEvent<HTMLInputElement>, data: SliderOnChangeData) => void;
159
71
  /**
160
72
  * The Slider's current value label to be read by the screen reader.
161
73
  */
162
- ariaValueText?: (value: number) => string;
74
+ getAriaValueText?: (value: number) => string;
163
75
  };
164
76
 
165
- export declare type SliderProps = Omit<ComponentProps<SliderSlots>, 'onChange' | 'defaultValue'> & SliderCommons;
77
+ export declare type SliderOnChangeData = {
78
+ value: number;
79
+ };
166
80
 
167
- /**
168
- * Array of all shorthand properties listed in sliderShorthandProps
169
- */
170
- export declare const sliderShorthandProps: (keyof SliderSlots)[];
81
+ export declare type SliderProps = Omit<ComponentProps<Partial<SliderSlots>, 'input'>, 'defaultValue' | 'onChange' | 'size' | 'value'> & SliderCommons;
171
82
 
172
83
  export declare type SliderSlots = {
173
84
  /**
174
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`.
175
88
  */
176
- root: IntrinsicShorthandProps<'div'>;
89
+ root: NonNullable<Slot<'div'>>;
177
90
  /**
178
91
  * The Slider's base. It is used to visibly display the min and max selectable values.
179
92
  */
180
- rail: IntrinsicShorthandProps<'div'>;
181
- /**
182
- * The wrapper around the Slider component.
183
- */
184
- sliderWrapper: IntrinsicShorthandProps<'div'>;
185
- /**
186
- * The wrapper around the Slider's track. It is primarily used to handle the positioning of the track.
187
- */
188
- trackWrapper: IntrinsicShorthandProps<'div'>;
189
- /**
190
- * The bar showing the current selected area adjacent to the Slider's thumb.
191
- */
192
- track: IntrinsicShorthandProps<'div'>;
193
- /**
194
- * The wrapper holding the marks and mark labels for the Slider.
195
- */
196
- marksWrapper: IntrinsicShorthandProps<'div'>;
197
- /**
198
- * The wrapper around the Slider's thumb. It is primarily used to handle the dragging animation from translateX.
199
- */
200
- thumbWrapper: IntrinsicShorthandProps<'div'>;
93
+ rail: NonNullable<Slot<'div'>>;
201
94
  /**
202
95
  * The draggable icon used to select a given value from the Slider.
203
96
  * This is the element containing `role = 'slider'`.
204
97
  */
205
- thumb: IntrinsicShorthandProps<'div'>;
206
- /**
207
- * The area in which the Slider's rail allows for the thumb to be dragged.
208
- */
209
- activeRail: IntrinsicShorthandProps<'div'>;
98
+ thumb: NonNullable<Slot<'div'>>;
210
99
  /**
211
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
+ *
212
104
  */
213
- 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
+ };
214
114
  };
215
115
 
216
116
  export declare type SliderState = ComponentState<SliderSlots> & SliderCommons;
217
117
 
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 { }
package/lib/Slider.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.js","sourceRoot":"","sources":["../src/Slider.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC"}
1
+ {"version":3,"file":"Slider.js","sourceRoot":"../src/","sources":["Slider.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAC","sourcesContent":["export * from './components/Slider/index';\n"]}
@@ -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
9
  export const Slider = /*#__PURE__*/React.forwardRef((props, ref) => {
10
- const state = useSlider(props, ref);
11
- useSliderStyles(state);
12
- return renderSlider(state);
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,MAAM,MAAM,gBAAqC,KAAK,CAAC,UAAN,CAAiB,CAAC,KAAD,EAAQ,GAAR,KAAe;AACtF,QAAM,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":["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","sourcesContent":["import * as React from 'react';\nimport { useSlider_unstable } from './useSlider';\nimport { renderSlider_unstable } from './renderSlider';\nimport { useSliderStyles_unstable } from './useSliderStyles';\nimport type { SliderProps } from './Slider.types';\nimport type { ForwardRefComponent } from '@fluentui/react-utilities';\n\n/**\n * The Slider component allows users to quickly select a value by dragging a thumb across a rail.\n */\nexport const Slider: ForwardRefComponent<SliderProps> = React.forwardRef((props, ref) => {\n const state = useSlider_unstable(props, ref);\n\n useSliderStyles_unstable(state);\n\n return renderSlider_unstable(state);\n});\nSlider.displayName = 'Slider';\n"],"sourceRoot":"../src/"}