zds-pickers 4.0.22 → 4.0.24

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.
@@ -25,8 +25,8 @@ const Select = forwardRef((props, ref) => {
25
25
  }
26
26
  }, [onChange]);
27
27
  const flatOptionsList = options.reduce((acc, entry) => {
28
- if ('entries' in entry) {
29
- return acc.concat(entry.entries);
28
+ if ('options' in entry) {
29
+ return acc.concat(entry.options);
30
30
  }
31
31
  return acc.concat(entry);
32
32
  }, []);
@@ -28,7 +28,7 @@ declare const KnobPicker: import("react").ForwardRefExoticComponent<Partial<impo
28
28
  menuShouldScrollIntoView?: boolean;
29
29
  onChange: (value: number) => void;
30
30
  options: Option<number>[] | {
31
- entries: Option<number>[];
31
+ options: Option<number>[];
32
32
  }[];
33
33
  preserveMenuWidth?: boolean;
34
34
  selectProps?: {
@@ -23,7 +23,7 @@ declare const ResponseCurvePicker: import("react").ForwardRefExoticComponent<Par
23
23
  menuShouldScrollIntoView?: boolean;
24
24
  onChange: (value: Curve) => void;
25
25
  options: Option<Curve>[] | {
26
- entries: Option<Curve>[];
26
+ options: Option<Curve>[];
27
27
  }[];
28
28
  preserveMenuWidth?: boolean;
29
29
  selectProps?: {
@@ -27,7 +27,7 @@ type SelectProps<T> = SelectComponentsConfig<Option<T>, false, GroupBase<Option<
27
27
  menuShouldScrollIntoView?: boolean;
28
28
  onChange: (value: Option<T>['value']) => void;
29
29
  options: Option<T>[] | {
30
- entries: Option<T>[];
30
+ options: Option<T>[];
31
31
  }[];
32
32
  preserveMenuWidth?: boolean;
33
33
  selectProps?: PassedSelectProps;
@@ -114,7 +114,7 @@ type SelectProps<T> = SelectComponentsConfig<
114
114
  menuPosition?: 'fixed' | 'absolute'
115
115
  menuShouldScrollIntoView?: boolean
116
116
  onChange: (value: Option<T>['value']) => void
117
- options: Option<T>[] | { entries: Option<T>[] }[]
117
+ options: Option<T>[] | { options: Option<T>[] }[]
118
118
  preserveMenuWidth?: boolean
119
119
  selectProps?: PassedSelectProps
120
120
  shrinkLabel?: boolean
@@ -150,8 +150,8 @@ const Select = forwardRef(
150
150
  )
151
151
 
152
152
  const flatOptionsList = options.reduce<Option<T>[]>((acc, entry) => {
153
- if ('entries' in entry) {
154
- return acc.concat(entry.entries)
153
+ if ('options' in entry) {
154
+ return acc.concat(entry.options)
155
155
  }
156
156
  return acc.concat(entry)
157
157
  }, [])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zds-pickers",
3
- "version": "4.0.22",
3
+ "version": "4.0.24",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -40,38 +40,38 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@biomejs/biome": "1.9.4",
43
- "@storybook/addon-actions": "8.5.0",
44
- "@storybook/addon-docs": "8.5.0",
45
- "@storybook/addon-essentials": "8.5.0",
46
- "@storybook/addon-links": "8.5.0",
47
- "@storybook/builder-vite": "8.5.0",
48
- "@storybook/react-vite": "8.5.0",
49
- "@storybook/react": "8.5.0",
43
+ "@storybook/addon-actions": "8.6.3",
44
+ "@storybook/addon-docs": "8.6.3",
45
+ "@storybook/addon-essentials": "8.6.3",
46
+ "@storybook/addon-links": "8.6.3",
47
+ "@storybook/builder-vite": "8.6.3",
48
+ "@storybook/react-vite": "8.6.3",
49
+ "@storybook/react": "8.6.3",
50
50
  "@types/d3-drag": "3.0.7",
51
- "@types/d3-scale": "4.0.8",
51
+ "@types/d3-scale": "4.0.9",
52
52
  "@types/d3-selection": "3.0.11",
53
53
  "@types/react-dom": "18.3.5",
54
54
  "@types/react": "18.3.18",
55
- "@vitejs/plugin-react-swc": "3.7.2",
55
+ "@vitejs/plugin-react-swc": "3.8.0",
56
56
  "classnames": "2.5.1",
57
- "globals": "15.14.0",
57
+ "globals": "15.15.0",
58
58
  "immer": "10.1.1",
59
59
  "nodemon": "3.1.9",
60
60
  "prop-types": "15.8.1",
61
- "react-dom": "18.2.0",
62
- "react": "18.2.0",
61
+ "react-dom": "18.3.1",
62
+ "react": "18.3.1",
63
63
  "rc-slider": "11.1.8",
64
- "storybook": "8.5.0",
65
- "typescript": "5.7.3",
66
- "vite": "6.0.7",
64
+ "storybook": "8.6.3",
65
+ "typescript": "5.8.2",
66
+ "vite": "6.2.0",
67
67
  "zds-mappings": "1.4.9"
68
68
  },
69
69
  "dependencies": {
70
- "caniuse-lite": "1.0.30001695",
70
+ "caniuse-lite": "1.0.30001701",
71
71
  "d3-drag": "3.0.0",
72
72
  "d3-scale": "4.0.2",
73
73
  "d3-selection": "3.0.0",
74
- "react-select": "5.9.0",
74
+ "react-select": "5.10.1",
75
75
  "react-svgmt": "2.0.2",
76
76
  "soundfont-player": "0.12.0",
77
77
  "tonal": "6.4.0",