@fluentui/react-slider 9.0.16 → 9.0.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.json CHANGED
@@ -2,7 +2,54 @@
2
2
  "name": "@fluentui/react-slider",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 09 Jan 2023 14:31:49 GMT",
5
+ "date": "Mon, 16 Jan 2023 08:35:22 GMT",
6
+ "tag": "@fluentui/react-slider_v9.0.17",
7
+ "version": "9.0.17",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "mgodbolt@microsoft.com",
12
+ "package": "@fluentui/react-slider",
13
+ "commit": "f91f5ed6c5e1a8c5015828da9d1828355c3d9661",
14
+ "comment": "fix: allow refs passed in root slot to merge with focus refs"
15
+ },
16
+ {
17
+ "author": "beachball",
18
+ "package": "@fluentui/react-slider",
19
+ "comment": "Bump @fluentui/react-field to v9.0.0-alpha.15",
20
+ "commit": "a870d8360e47f3ea03358c4e75e89e08a74845d7"
21
+ },
22
+ {
23
+ "author": "beachball",
24
+ "package": "@fluentui/react-slider",
25
+ "comment": "Bump @fluentui/react-shared-contexts to v9.1.5",
26
+ "commit": "a870d8360e47f3ea03358c4e75e89e08a74845d7"
27
+ },
28
+ {
29
+ "author": "beachball",
30
+ "package": "@fluentui/react-slider",
31
+ "comment": "Bump @fluentui/react-tabster to v9.3.7",
32
+ "commit": "a870d8360e47f3ea03358c4e75e89e08a74845d7"
33
+ },
34
+ {
35
+ "author": "beachball",
36
+ "package": "@fluentui/react-slider",
37
+ "comment": "Bump @fluentui/react-label to v9.0.17",
38
+ "commit": "a870d8360e47f3ea03358c4e75e89e08a74845d7"
39
+ }
40
+ ],
41
+ "none": [
42
+ {
43
+ "author": "martinhochel@microsoft.com",
44
+ "package": "@fluentui/react-slider",
45
+ "commit": "64bb45980d68de1219c6b36a7db5363f0a9cff9f",
46
+ "comment": "chore: migrate to packaged scripts"
47
+ }
48
+ ]
49
+ }
50
+ },
51
+ {
52
+ "date": "Mon, 09 Jan 2023 14:35:02 GMT",
6
53
  "tag": "@fluentui/react-slider_v9.0.16",
7
54
  "version": "9.0.16",
8
55
  "comments": {
@@ -11,25 +58,25 @@
11
58
  "author": "beachball",
12
59
  "package": "@fluentui/react-slider",
13
60
  "comment": "Bump @fluentui/react-field to v9.0.0-alpha.14",
14
- "commit": "26f0364b3837056ee8e0df42a7932c298c68290e"
61
+ "commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
15
62
  },
16
63
  {
17
64
  "author": "beachball",
18
65
  "package": "@fluentui/react-slider",
19
66
  "comment": "Bump @fluentui/react-tabster to v9.3.6",
20
- "commit": "26f0364b3837056ee8e0df42a7932c298c68290e"
67
+ "commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
21
68
  },
22
69
  {
23
70
  "author": "beachball",
24
71
  "package": "@fluentui/react-slider",
25
72
  "comment": "Bump @fluentui/react-utilities to v9.4.0",
26
- "commit": "26f0364b3837056ee8e0df42a7932c298c68290e"
73
+ "commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
27
74
  },
28
75
  {
29
76
  "author": "beachball",
30
77
  "package": "@fluentui/react-slider",
31
78
  "comment": "Bump @fluentui/react-label to v9.0.16",
32
- "commit": "26f0364b3837056ee8e0df42a7932c298c68290e"
79
+ "commit": "d246e70eba59a37ec311dbf933b0745d34cb700d"
33
80
  }
34
81
  ]
35
82
  }
package/CHANGELOG.md CHANGED
@@ -1,20 +1,33 @@
1
1
  # Change Log - @fluentui/react-slider
2
2
 
3
- This log was last generated on Mon, 09 Jan 2023 14:31:49 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 16 Jan 2023 08:35:22 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## [9.0.17](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.17)
8
+
9
+ Mon, 16 Jan 2023 08:35:22 GMT
10
+ [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.16..@fluentui/react-slider_v9.0.17)
11
+
12
+ ### Patches
13
+
14
+ - fix: allow refs passed in root slot to merge with focus refs ([PR #26243](https://github.com/microsoft/fluentui/pull/26243) by mgodbolt@microsoft.com)
15
+ - Bump @fluentui/react-field to v9.0.0-alpha.15 ([commit](https://github.com/microsoft/fluentui/commit/a870d8360e47f3ea03358c4e75e89e08a74845d7) by beachball)
16
+ - Bump @fluentui/react-shared-contexts to v9.1.5 ([commit](https://github.com/microsoft/fluentui/commit/a870d8360e47f3ea03358c4e75e89e08a74845d7) by beachball)
17
+ - Bump @fluentui/react-tabster to v9.3.7 ([commit](https://github.com/microsoft/fluentui/commit/a870d8360e47f3ea03358c4e75e89e08a74845d7) by beachball)
18
+ - Bump @fluentui/react-label to v9.0.17 ([commit](https://github.com/microsoft/fluentui/commit/a870d8360e47f3ea03358c4e75e89e08a74845d7) by beachball)
19
+
7
20
  ## [9.0.16](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.16)
8
21
 
9
- Mon, 09 Jan 2023 14:31:49 GMT
22
+ Mon, 09 Jan 2023 14:35:02 GMT
10
23
  [Compare changes](https://github.com/microsoft/fluentui/compare/@fluentui/react-slider_v9.0.15..@fluentui/react-slider_v9.0.16)
11
24
 
12
25
  ### Patches
13
26
 
14
- - Bump @fluentui/react-field to v9.0.0-alpha.14 ([PR #26257](https://github.com/microsoft/fluentui/pull/26257) by beachball)
15
- - Bump @fluentui/react-tabster to v9.3.6 ([PR #26257](https://github.com/microsoft/fluentui/pull/26257) by beachball)
16
- - Bump @fluentui/react-utilities to v9.4.0 ([PR #26257](https://github.com/microsoft/fluentui/pull/26257) by beachball)
17
- - Bump @fluentui/react-label to v9.0.16 ([PR #26257](https://github.com/microsoft/fluentui/pull/26257) by beachball)
27
+ - Bump @fluentui/react-field to v9.0.0-alpha.14 ([PR #26255](https://github.com/microsoft/fluentui/pull/26255) by beachball)
28
+ - Bump @fluentui/react-tabster to v9.3.6 ([PR #26255](https://github.com/microsoft/fluentui/pull/26255) by beachball)
29
+ - Bump @fluentui/react-utilities to v9.4.0 ([PR #26255](https://github.com/microsoft/fluentui/pull/26255) by beachball)
30
+ - Bump @fluentui/react-label to v9.0.16 ([PR #26255](https://github.com/microsoft/fluentui/pull/26255) by beachball)
18
31
 
19
32
  ## [9.0.15](https://github.com/microsoft/fluentui/tree/@fluentui/react-slider_v9.0.15)
20
33
 
@@ -1,4 +1,4 @@
1
- import { getPartitionedNativeProps, resolveShorthand, useId } from '@fluentui/react-utilities';
1
+ import { getPartitionedNativeProps, resolveShorthand, useId, useMergedRefs } from '@fluentui/react-utilities';
2
2
  import { useSliderState_unstable } from './useSliderState';
3
3
  import { useFocusWithin } from '@fluentui/react-tabster';
4
4
  export const useSlider_unstable = (props, ref) => {
@@ -29,10 +29,7 @@ export const useSlider_unstable = (props, ref) => {
29
29
  },
30
30
  root: resolveShorthand(root, {
31
31
  required: true,
32
- defaultProps: {
33
- ref: useFocusWithin(),
34
- ...nativeProps.root
35
- }
32
+ defaultProps: nativeProps.root
36
33
  }),
37
34
  input: resolveShorthand(input, {
38
35
  required: true,
@@ -51,6 +48,7 @@ export const useSlider_unstable = (props, ref) => {
51
48
  required: true
52
49
  })
53
50
  };
51
+ state.root.ref = useMergedRefs(state.root.ref, useFocusWithin());
54
52
  useSliderState_unstable(state, props);
55
53
  return state;
56
54
  };
@@ -1 +1 @@
1
- {"version":3,"mappings":"AACA,SAASA,yBAAyB,EAAEC,gBAAgB,EAAEC,KAAK,QAAQ,2BAA2B;AAC9F,SAASC,uBAAuB,QAAQ,kBAAkB;AAE1D,SAASC,cAAc,QAAQ,yBAAyB;AAExD,OAAO,MAAMC,kBAAkB,GAAG,CAACC,KAAkB,EAAEC,GAAgC,KAAiB;EACtG,MAAMC,WAAW,GAAGR,yBAAyB,CAAC;IAC5CM,KAAK;IACLG,kBAAkB,EAAE,OAAO;IAC3BC,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM;GACvC,CAAC;EAEF,MAAM;IACJC,QAAQ;IACRC,QAAQ;IACRC,IAAI,GAAG,QAAQ;IACf;IACAC,IAAI;IACJC,KAAK;IACLC,IAAI;IACJC;EAAK,CACN,GAAGX,KAAK;EAET,MAAMY,KAAK,GAAgB;IACzBP,QAAQ;IACRE,IAAI;IACJD,QAAQ;IACRO,UAAU,EAAE;MACVJ,KAAK,EAAE,OAAO;MACdC,IAAI,EAAE,KAAK;MACXF,IAAI,EAAE,KAAK;MACXG,KAAK,EAAE;KACR;IACDH,IAAI,EAAEb,gBAAgB,CAACa,IAAI,EAAE;MAC3BM,QAAQ,EAAE,IAAI;MACdC,YAAY,EAAE;QACZd,GAAG,EAAEH,cAAc,EAAkB;QACrC,GAAGI,WAAW,CAACM;;KAElB,CAAC;IACFC,KAAK,EAAEd,gBAAgB,CAACc,KAAK,EAAE;MAC7BK,QAAQ,EAAE,IAAI;MACdC,YAAY,EAAE;QACZC,EAAE,EAAEpB,KAAK,CAAC,SAAS,EAAEI,KAAK,CAACgB,EAAE,CAAC;QAC9Bf,GAAG;QACH,GAAGC,WAAW,CAACe,OAAO;QACtBC,IAAI,EAAE,OAAO;QACbC,MAAM,EAAEb,QAAQ,GAAG,UAAU,GAAGc;;KAEnC,CAAC;IACFV,IAAI,EAAEf,gBAAgB,CAACe,IAAI,EAAE;MAAEI,QAAQ,EAAE;IAAI,CAAE,CAAC;IAChDH,KAAK,EAAEhB,gBAAgB,CAACgB,KAAK,EAAE;MAAEG,QAAQ,EAAE;IAAI,CAAE;GAClD;EAEDjB,uBAAuB,CAACe,KAAK,EAAEZ,KAAK,CAAC;EAErC,OAAOY,KAAK;AACd,CAAC","names":["getPartitionedNativeProps","resolveShorthand","useId","useSliderState_unstable","useFocusWithin","useSlider_unstable","props","ref","nativeProps","primarySlotTagName","excludedPropNames","disabled","vertical","size","root","input","rail","thumb","state","components","required","defaultProps","id","primary","type","orient","undefined"],"sourceRoot":"../src/","sources":["packages/react-components/react-slider/src/components/Slider/useSlider.ts"],"sourcesContent":["import * as React from 'react';\nimport { getPartitionedNativeProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport { useSliderState_unstable } from './useSliderState';\nimport { SliderProps, SliderState } from './Slider.types';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n\nexport const useSlider_unstable = (props: SliderProps, ref: React.Ref<HTMLInputElement>): SliderState => {\n const nativeProps = getPartitionedNativeProps({\n props,\n primarySlotTagName: 'input',\n excludedPropNames: ['onChange', 'size'],\n });\n\n const {\n disabled,\n vertical,\n size = 'medium',\n // Slots\n root,\n input,\n rail,\n thumb,\n } = props;\n\n const state: SliderState = {\n disabled,\n size,\n vertical,\n components: {\n input: 'input',\n rail: 'div',\n root: 'div',\n thumb: 'div',\n },\n root: resolveShorthand(root, {\n required: true,\n defaultProps: {\n ref: useFocusWithin<HTMLDivElement>(),\n ...nativeProps.root,\n },\n }),\n input: resolveShorthand(input, {\n required: true,\n defaultProps: {\n id: useId('slider-', props.id),\n ref,\n ...nativeProps.primary,\n type: 'range',\n orient: vertical ? 'vertical' : undefined,\n },\n }),\n rail: resolveShorthand(rail, { required: true }),\n thumb: resolveShorthand(thumb, { required: true }),\n };\n\n useSliderState_unstable(state, props);\n\n return state;\n};\n"]}
1
+ {"version":3,"mappings":"AACA,SAASA,yBAAyB,EAAEC,gBAAgB,EAAEC,KAAK,EAAEC,aAAa,QAAQ,2BAA2B;AAC7G,SAASC,uBAAuB,QAAQ,kBAAkB;AAE1D,SAASC,cAAc,QAAQ,yBAAyB;AAExD,OAAO,MAAMC,kBAAkB,GAAG,CAACC,KAAkB,EAAEC,GAAgC,KAAiB;EACtG,MAAMC,WAAW,GAAGT,yBAAyB,CAAC;IAC5CO,KAAK;IACLG,kBAAkB,EAAE,OAAO;IAC3BC,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM;GACvC,CAAC;EAEF,MAAM;IACJC,QAAQ;IACRC,QAAQ;IACRC,IAAI,GAAG,QAAQ;IACf;IACAC,IAAI;IACJC,KAAK;IACLC,IAAI;IACJC;EAAK,CACN,GAAGX,KAAK;EAET,MAAMY,KAAK,GAAgB;IACzBP,QAAQ;IACRE,IAAI;IACJD,QAAQ;IACRO,UAAU,EAAE;MACVJ,KAAK,EAAE,OAAO;MACdC,IAAI,EAAE,KAAK;MACXF,IAAI,EAAE,KAAK;MACXG,KAAK,EAAE;KACR;IACDH,IAAI,EAAEd,gBAAgB,CAACc,IAAI,EAAE;MAC3BM,QAAQ,EAAE,IAAI;MACdC,YAAY,EAAEb,WAAW,CAACM;KAC3B,CAAC;IACFC,KAAK,EAAEf,gBAAgB,CAACe,KAAK,EAAE;MAC7BK,QAAQ,EAAE,IAAI;MACdC,YAAY,EAAE;QACZC,EAAE,EAAErB,KAAK,CAAC,SAAS,EAAEK,KAAK,CAACgB,EAAE,CAAC;QAC9Bf,GAAG;QACH,GAAGC,WAAW,CAACe,OAAO;QACtBC,IAAI,EAAE,OAAO;QACbC,MAAM,EAAEb,QAAQ,GAAG,UAAU,GAAGc;;KAEnC,CAAC;IACFV,IAAI,EAAEhB,gBAAgB,CAACgB,IAAI,EAAE;MAAEI,QAAQ,EAAE;IAAI,CAAE,CAAC;IAChDH,KAAK,EAAEjB,gBAAgB,CAACiB,KAAK,EAAE;MAAEG,QAAQ,EAAE;IAAI,CAAE;GAClD;EAEDF,KAAK,CAACJ,IAAI,CAACP,GAAG,GAAGL,aAAa,CAACgB,KAAK,CAACJ,IAAI,CAACP,GAAG,EAAEH,cAAc,EAAkB,CAAC;EAEhFD,uBAAuB,CAACe,KAAK,EAAEZ,KAAK,CAAC;EAErC,OAAOY,KAAK;AACd,CAAC","names":["getPartitionedNativeProps","resolveShorthand","useId","useMergedRefs","useSliderState_unstable","useFocusWithin","useSlider_unstable","props","ref","nativeProps","primarySlotTagName","excludedPropNames","disabled","vertical","size","root","input","rail","thumb","state","components","required","defaultProps","id","primary","type","orient","undefined"],"sourceRoot":"../src/","sources":["packages/react-components/react-slider/src/components/Slider/useSlider.ts"],"sourcesContent":["import * as React from 'react';\nimport { getPartitionedNativeProps, resolveShorthand, useId, useMergedRefs } from '@fluentui/react-utilities';\nimport { useSliderState_unstable } from './useSliderState';\nimport { SliderProps, SliderState } from './Slider.types';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n\nexport const useSlider_unstable = (props: SliderProps, ref: React.Ref<HTMLInputElement>): SliderState => {\n const nativeProps = getPartitionedNativeProps({\n props,\n primarySlotTagName: 'input',\n excludedPropNames: ['onChange', 'size'],\n });\n\n const {\n disabled,\n vertical,\n size = 'medium',\n // Slots\n root,\n input,\n rail,\n thumb,\n } = props;\n\n const state: SliderState = {\n disabled,\n size,\n vertical,\n components: {\n input: 'input',\n rail: 'div',\n root: 'div',\n thumb: 'div',\n },\n root: resolveShorthand(root, {\n required: true,\n defaultProps: nativeProps.root,\n }),\n input: resolveShorthand(input, {\n required: true,\n defaultProps: {\n id: useId('slider-', props.id),\n ref,\n ...nativeProps.primary,\n type: 'range',\n orient: vertical ? 'vertical' : undefined,\n },\n }),\n rail: resolveShorthand(rail, { required: true }),\n thumb: resolveShorthand(thumb, { required: true }),\n };\n\n state.root.ref = useMergedRefs(state.root.ref, useFocusWithin<HTMLDivElement>());\n\n useSliderState_unstable(state, props);\n\n return state;\n};\n"]}
@@ -23,7 +23,7 @@ define(["require", "exports", "tslib", "@fluentui/react-utilities", "./useSlider
23
23
  },
24
24
  root: react_utilities_1.resolveShorthand(root, {
25
25
  required: true,
26
- defaultProps: tslib_1.__assign({ ref: react_tabster_1.useFocusWithin() }, nativeProps.root),
26
+ defaultProps: nativeProps.root,
27
27
  }),
28
28
  input: react_utilities_1.resolveShorthand(input, {
29
29
  required: true,
@@ -32,6 +32,7 @@ define(["require", "exports", "tslib", "@fluentui/react-utilities", "./useSlider
32
32
  rail: react_utilities_1.resolveShorthand(rail, { required: true }),
33
33
  thumb: react_utilities_1.resolveShorthand(thumb, { required: true }),
34
34
  };
35
+ state.root.ref = react_utilities_1.useMergedRefs(state.root.ref, react_tabster_1.useFocusWithin());
35
36
  useSliderState_1.useSliderState_unstable(state, props);
36
37
  return state;
37
38
  };
@@ -1 +1 @@
1
- {"version":3,"file":"useSlider.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-slider/src/components/Slider/useSlider.ts"],"names":[],"mappings":";;;;IAMO,IAAM,kBAAkB,GAAG,UAAC,KAAkB,EAAE,GAAgC;QACrF,IAAM,WAAW,GAAG,2CAAyB,CAAC;YAC5C,KAAK,OAAA;YACL,kBAAkB,EAAE,OAAO;YAC3B,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM,CAAC;SACxC,CAAC,CAAC;QAGD,IAAA,QAAQ,GAQN,KAAK,SARC,EACR,QAAQ,GAON,KAAK,SAPC,EACR,KAME,KAAK,KANQ,EAAf,IAAI,mBAAG,QAAQ,KAAA;QACf,QAAQ;QACR,IAAI,GAIF,KAAK,KAJH,EACJ,KAAK,GAGH,KAAK,MAHF,EACL,IAAI,GAEF,KAAK,KAFH,EACJ,KAAK,GACH,KAAK,MADF,CACG;QAEV,IAAM,KAAK,GAAgB;YACzB,QAAQ,UAAA;YACR,IAAI,MAAA;YACJ,QAAQ,UAAA;YACR,UAAU,EAAE;gBACV,KAAK,EAAE,OAAO;gBACd,IAAI,EAAE,KAAK;gBACX,IAAI,EAAE,KAAK;gBACX,KAAK,EAAE,KAAK;aACb;YACD,IAAI,EAAE,kCAAgB,CAAC,IAAI,EAAE;gBAC3B,QAAQ,EAAE,IAAI;gBACd,YAAY,qBACV,GAAG,EAAE,8BAAc,EAAkB,IAClC,WAAW,CAAC,IAAI,CACpB;aACF,CAAC;YACF,KAAK,EAAE,kCAAgB,CAAC,KAAK,EAAE;gBAC7B,QAAQ,EAAE,IAAI;gBACd,YAAY,sCACV,EAAE,EAAE,uBAAK,CAAC,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,EAC9B,GAAG,KAAA,IACA,WAAW,CAAC,OAAO,KACtB,IAAI,EAAE,OAAO,EACb,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,GAC1C;aACF,CAAC;YACF,IAAI,EAAE,kCAAgB,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;YAChD,KAAK,EAAE,kCAAgB,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;SACnD,CAAC;QAEF,wCAAuB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAEtC,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IApDW,QAAA,kBAAkB,sBAoD7B","sourcesContent":["import * as React from 'react';\nimport { getPartitionedNativeProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport { useSliderState_unstable } from './useSliderState';\nimport { SliderProps, SliderState } from './Slider.types';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n\nexport const useSlider_unstable = (props: SliderProps, ref: React.Ref<HTMLInputElement>): SliderState => {\n const nativeProps = getPartitionedNativeProps({\n props,\n primarySlotTagName: 'input',\n excludedPropNames: ['onChange', 'size'],\n });\n\n const {\n disabled,\n vertical,\n size = 'medium',\n // Slots\n root,\n input,\n rail,\n thumb,\n } = props;\n\n const state: SliderState = {\n disabled,\n size,\n vertical,\n components: {\n input: 'input',\n rail: 'div',\n root: 'div',\n thumb: 'div',\n },\n root: resolveShorthand(root, {\n required: true,\n defaultProps: {\n ref: useFocusWithin<HTMLDivElement>(),\n ...nativeProps.root,\n },\n }),\n input: resolveShorthand(input, {\n required: true,\n defaultProps: {\n id: useId('slider-', props.id),\n ref,\n ...nativeProps.primary,\n type: 'range',\n orient: vertical ? 'vertical' : undefined,\n },\n }),\n rail: resolveShorthand(rail, { required: true }),\n thumb: resolveShorthand(thumb, { required: true }),\n };\n\n useSliderState_unstable(state, props);\n\n return state;\n};\n"]}
1
+ {"version":3,"file":"useSlider.js","sourceRoot":"","sources":["../../../../../../../../../packages/react-components/react-slider/src/components/Slider/useSlider.ts"],"names":[],"mappings":";;;;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,EAAE,CAAC;SACnD,CAAC;QAEF,KAAK,CAAC,IAAI,CAAC,GAAG,GAAG,+BAAa,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,EAAE,8BAAc,EAAkB,CAAC,CAAC;QAEjF,wCAAuB,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAEtC,OAAO,KAAK,CAAC;IACf,CAAC,CAAC;IAnDW,QAAA,kBAAkB,sBAmD7B","sourcesContent":["import * as React from 'react';\nimport { getPartitionedNativeProps, resolveShorthand, useId, useMergedRefs } from '@fluentui/react-utilities';\nimport { useSliderState_unstable } from './useSliderState';\nimport { SliderProps, SliderState } from './Slider.types';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n\nexport const useSlider_unstable = (props: SliderProps, ref: React.Ref<HTMLInputElement>): SliderState => {\n const nativeProps = getPartitionedNativeProps({\n props,\n primarySlotTagName: 'input',\n excludedPropNames: ['onChange', 'size'],\n });\n\n const {\n disabled,\n vertical,\n size = 'medium',\n // Slots\n root,\n input,\n rail,\n thumb,\n } = props;\n\n const state: SliderState = {\n disabled,\n size,\n vertical,\n components: {\n input: 'input',\n rail: 'div',\n root: 'div',\n thumb: 'div',\n },\n root: resolveShorthand(root, {\n required: true,\n defaultProps: nativeProps.root,\n }),\n input: resolveShorthand(input, {\n required: true,\n defaultProps: {\n id: useId('slider-', props.id),\n ref,\n ...nativeProps.primary,\n type: 'range',\n orient: vertical ? 'vertical' : undefined,\n },\n }),\n rail: resolveShorthand(rail, { required: true }),\n thumb: resolveShorthand(thumb, { required: true }),\n };\n\n state.root.ref = useMergedRefs(state.root.ref, useFocusWithin<HTMLDivElement>());\n\n useSliderState_unstable(state, props);\n\n return state;\n};\n"]}
@@ -35,10 +35,7 @@ const useSlider_unstable = (props, ref) => {
35
35
  },
36
36
  root: react_utilities_1.resolveShorthand(root, {
37
37
  required: true,
38
- defaultProps: {
39
- ref: react_tabster_1.useFocusWithin(),
40
- ...nativeProps.root
41
- }
38
+ defaultProps: nativeProps.root
42
39
  }),
43
40
  input: react_utilities_1.resolveShorthand(input, {
44
41
  required: true,
@@ -57,6 +54,7 @@ const useSlider_unstable = (props, ref) => {
57
54
  required: true
58
55
  })
59
56
  };
57
+ state.root.ref = react_utilities_1.useMergedRefs(state.root.ref, react_tabster_1.useFocusWithin());
60
58
  useSliderState_1.useSliderState_unstable(state, props);
61
59
  return state;
62
60
  };
@@ -1 +1 @@
1
- {"version":3,"mappings":";;;;;;AACA;AACA;AAEA;AAEO,MAAMA,kBAAkB,GAAG,CAACC,KAAkB,EAAEC,GAAgC,KAAiB;EACtG,MAAMC,WAAW,GAAGC,2CAAyB,CAAC;IAC5CH,KAAK;IACLI,kBAAkB,EAAE,OAAO;IAC3BC,iBAAiB,EAAE,CAAC,UAAU,EAAE,MAAM;GACvC,CAAC;EAEF,MAAM;IACJC,QAAQ;IACRC,QAAQ;IACRC,IAAI,GAAG,QAAQ;IACf;IACAC,IAAI;IACJC,KAAK;IACLC,IAAI;IACJC;EAAK,CACN,GAAGZ,KAAK;EAET,MAAMa,KAAK,GAAgB;IACzBP,QAAQ;IACRE,IAAI;IACJD,QAAQ;IACRO,UAAU,EAAE;MACVJ,KAAK,EAAE,OAAO;MACdC,IAAI,EAAE,KAAK;MACXF,IAAI,EAAE,KAAK;MACXG,KAAK,EAAE;KACR;IACDH,IAAI,EAAEN,kCAAgB,CAACM,IAAI,EAAE;MAC3BM,QAAQ,EAAE,IAAI;MACdC,YAAY,EAAE;QACZf,GAAG,EAAEgB,8BAAc,EAAkB;QACrC,GAAGf,WAAW,CAACO;;KAElB,CAAC;IACFC,KAAK,EAAEP,kCAAgB,CAACO,KAAK,EAAE;MAC7BK,QAAQ,EAAE,IAAI;MACdC,YAAY,EAAE;QACZE,EAAE,EAAEf,uBAAK,CAAC,SAAS,EAAEH,KAAK,CAACkB,EAAE,CAAC;QAC9BjB,GAAG;QACH,GAAGC,WAAW,CAACiB,OAAO;QACtBC,IAAI,EAAE,OAAO;QACbC,MAAM,EAAEd,QAAQ,GAAG,UAAU,GAAGe;;KAEnC,CAAC;IACFX,IAAI,EAAER,kCAAgB,CAACQ,IAAI,EAAE;MAAEI,QAAQ,EAAE;IAAI,CAAE,CAAC;IAChDH,KAAK,EAAET,kCAAgB,CAACS,KAAK,EAAE;MAAEG,QAAQ,EAAE;IAAI,CAAE;GAClD;EAEDQ,wCAAuB,CAACV,KAAK,EAAEb,KAAK,CAAC;EAErC,OAAOa,KAAK;AACd,CAAC;AApDYW,0BAAkB","names":["useSlider_unstable","props","ref","nativeProps","react_utilities_1","primarySlotTagName","excludedPropNames","disabled","vertical","size","root","input","rail","thumb","state","components","required","defaultProps","react_tabster_1","id","primary","type","orient","undefined","useSliderState_1","exports"],"sourceRoot":"../src/","sources":["packages/react-components/react-slider/src/components/Slider/useSlider.ts"],"sourcesContent":["import * as React from 'react';\nimport { getPartitionedNativeProps, resolveShorthand, useId } from '@fluentui/react-utilities';\nimport { useSliderState_unstable } from './useSliderState';\nimport { SliderProps, SliderState } from './Slider.types';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n\nexport const useSlider_unstable = (props: SliderProps, ref: React.Ref<HTMLInputElement>): SliderState => {\n const nativeProps = getPartitionedNativeProps({\n props,\n primarySlotTagName: 'input',\n excludedPropNames: ['onChange', 'size'],\n });\n\n const {\n disabled,\n vertical,\n size = 'medium',\n // Slots\n root,\n input,\n rail,\n thumb,\n } = props;\n\n const state: SliderState = {\n disabled,\n size,\n vertical,\n components: {\n input: 'input',\n rail: 'div',\n root: 'div',\n thumb: 'div',\n },\n root: resolveShorthand(root, {\n required: true,\n defaultProps: {\n ref: useFocusWithin<HTMLDivElement>(),\n ...nativeProps.root,\n },\n }),\n input: resolveShorthand(input, {\n required: true,\n defaultProps: {\n id: useId('slider-', props.id),\n ref,\n ...nativeProps.primary,\n type: 'range',\n orient: vertical ? 'vertical' : undefined,\n },\n }),\n rail: resolveShorthand(rail, { required: true }),\n thumb: resolveShorthand(thumb, { required: true }),\n };\n\n useSliderState_unstable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AACJ,IAAI,CAACR,GAAG,EAAEqB,8BAAc,EAAkB,CAAC;EAEhFC,wCAAuB,CAACV,KAAK,EAAEb,KAAK,CAAC;EAErC,OAAOa,KAAK;AACd,CAAC;AAnDYW,0BAAkB","names":["useSlider_unstable","props","ref","nativeProps","react_utilities_1","primarySlotTagName","excludedPropNames","disabled","vertical","size","root","input","rail","thumb","state","components","required","defaultProps","id","primary","type","orient","undefined","react_tabster_1","useSliderState_1","exports"],"sourceRoot":"../src/","sources":["packages/react-components/react-slider/src/components/Slider/useSlider.ts"],"sourcesContent":["import * as React from 'react';\nimport { getPartitionedNativeProps, resolveShorthand, useId, useMergedRefs } from '@fluentui/react-utilities';\nimport { useSliderState_unstable } from './useSliderState';\nimport { SliderProps, SliderState } from './Slider.types';\nimport { useFocusWithin } from '@fluentui/react-tabster';\n\nexport const useSlider_unstable = (props: SliderProps, ref: React.Ref<HTMLInputElement>): SliderState => {\n const nativeProps = getPartitionedNativeProps({\n props,\n primarySlotTagName: 'input',\n excludedPropNames: ['onChange', 'size'],\n });\n\n const {\n disabled,\n vertical,\n size = 'medium',\n // Slots\n root,\n input,\n rail,\n thumb,\n } = props;\n\n const state: SliderState = {\n disabled,\n size,\n vertical,\n components: {\n input: 'input',\n rail: 'div',\n root: 'div',\n thumb: 'div',\n },\n root: resolveShorthand(root, {\n required: true,\n defaultProps: nativeProps.root,\n }),\n input: resolveShorthand(input, {\n required: true,\n defaultProps: {\n id: useId('slider-', props.id),\n ref,\n ...nativeProps.primary,\n type: 'range',\n orient: vertical ? 'vertical' : undefined,\n },\n }),\n rail: resolveShorthand(rail, { required: true }),\n thumb: resolveShorthand(thumb, { required: true }),\n };\n\n state.root.ref = useMergedRefs(state.root.ref, useFocusWithin<HTMLDivElement>());\n\n useSliderState_unstable(state, props);\n\n return state;\n};\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluentui/react-slider",
3
- "version": "9.0.16",
3
+ "version": "9.0.17",
4
4
  "description": "Fluent UI React Slider component.",
5
5
  "main": "lib-commonjs/index.js",
6
6
  "module": "lib/index.js",
@@ -28,14 +28,15 @@
28
28
  "@fluentui/eslint-plugin": "*",
29
29
  "@fluentui/react-conformance": "*",
30
30
  "@fluentui/react-conformance-griffel": "9.0.0-beta.19",
31
- "@fluentui/react-label": "^9.0.16",
32
- "@fluentui/scripts": "*"
31
+ "@fluentui/react-label": "^9.0.17",
32
+ "@fluentui/scripts-api-extractor": "*",
33
+ "@fluentui/scripts-tasks": "*"
33
34
  },
34
35
  "dependencies": {
35
36
  "@griffel/react": "^1.5.2",
36
- "@fluentui/react-field": "9.0.0-alpha.14",
37
- "@fluentui/react-shared-contexts": "^9.1.4",
38
- "@fluentui/react-tabster": "^9.3.6",
37
+ "@fluentui/react-field": "9.0.0-alpha.15",
38
+ "@fluentui/react-shared-contexts": "^9.1.5",
39
+ "@fluentui/react-tabster": "^9.3.7",
39
40
  "@fluentui/react-theme": "^9.1.5",
40
41
  "@fluentui/react-utilities": "^9.4.0",
41
42
  "tslib": "^2.1.0"