@octanejs/select 0.1.10 → 0.1.12
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/package.json +6 -6
- package/src/components.tsrx +6 -6
- package/src/styles.ts +4 -4
- package/src/types.ts +1 -1
- package/src/use-creatable.tsrx +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@octanejs/select",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "React Select bindings for the Octane renderer.",
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
"./async-creatable": "./src/async-creatable.tsrx"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
+
"@octanejs/transition-group": "0.0.26",
|
|
32
33
|
"@emotion/cache": "11.9.3",
|
|
33
34
|
"@emotion/serialize": "1.1.0",
|
|
34
35
|
"@emotion/utils": "1.2.0",
|
|
35
36
|
"@floating-ui/dom": "1.8.0",
|
|
36
|
-
"memoize-one": "6.0.0"
|
|
37
|
-
"@octanejs/transition-group": "0.0.25"
|
|
37
|
+
"memoize-one": "6.0.0"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
|
-
"octane": "^0.
|
|
40
|
+
"octane": "^0.10.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/core": "7.19.6",
|
|
@@ -62,6 +62,7 @@
|
|
|
62
62
|
"jest": "25.5.4",
|
|
63
63
|
"jest-environment-jsdom": "25.5.0",
|
|
64
64
|
"jest-in-case": "1.0.2",
|
|
65
|
+
"octane": "0.10.0",
|
|
65
66
|
"playwright": "^1.61.1",
|
|
66
67
|
"react": "19.2.7",
|
|
67
68
|
"react-dom": "19.2.7",
|
|
@@ -70,8 +71,7 @@
|
|
|
70
71
|
"react-select-pristine-react-dom": "npm:react-dom@16.14.0",
|
|
71
72
|
"use-isomorphic-layout-effect": "1.2.1",
|
|
72
73
|
"vite": "^8.1.5",
|
|
73
|
-
"vitest": "^4.1.10"
|
|
74
|
-
"octane": "0.9.0"
|
|
74
|
+
"vitest": "^4.1.10"
|
|
75
75
|
},
|
|
76
76
|
"engines": {
|
|
77
77
|
"node": ">=22.22.2"
|
package/src/components.tsrx
CHANGED
|
@@ -28,8 +28,8 @@ type SvgProps = Octane.JSX.IntrinsicElements['svg'];
|
|
|
28
28
|
|
|
29
29
|
export interface CommonComponentProps<
|
|
30
30
|
Option = unknown,
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
_IsMulti extends boolean = boolean,
|
|
32
|
+
_Group extends GroupBase<Option> = GroupBase<Option>,
|
|
33
33
|
> {
|
|
34
34
|
[key: string]: unknown;
|
|
35
35
|
className?: string;
|
|
@@ -535,8 +535,8 @@ export function Group(props: GroupProps) @{
|
|
|
535
535
|
|
|
536
536
|
export interface MultiValueGenericProps<
|
|
537
537
|
Option = unknown,
|
|
538
|
-
|
|
539
|
-
|
|
538
|
+
_IsMulti extends boolean = boolean,
|
|
539
|
+
_Group extends GroupBase<Option> = GroupBase<Option>,
|
|
540
540
|
> {
|
|
541
541
|
children?: OctaneNode;
|
|
542
542
|
data: unknown;
|
|
@@ -553,8 +553,8 @@ export const MultiValueLabel = MultiValueGeneric;
|
|
|
553
553
|
|
|
554
554
|
export interface MultiValueRemoveProps<
|
|
555
555
|
Option = unknown,
|
|
556
|
-
|
|
557
|
-
|
|
556
|
+
_IsMulti extends boolean = boolean,
|
|
557
|
+
_Group extends GroupBase<Option> = GroupBase<Option>,
|
|
558
558
|
> {
|
|
559
559
|
children?: OctaneNode;
|
|
560
560
|
data: unknown;
|
package/src/styles.ts
CHANGED
|
@@ -26,14 +26,14 @@ export type StyleKey =
|
|
|
26
26
|
|
|
27
27
|
export type StylesConfig<
|
|
28
28
|
Option = unknown,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
_IsMulti extends boolean = boolean,
|
|
30
|
+
_Group extends GroupBase<Option> = GroupBase<Option>,
|
|
31
31
|
> = Partial<Record<StyleKey, (base: CSSObjectWithLabel, props: unknown) => CSSObjectWithLabel>>;
|
|
32
32
|
|
|
33
33
|
export type ClassNamesConfig<
|
|
34
34
|
Option = unknown,
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
_IsMulti extends boolean = boolean,
|
|
36
|
+
_Group extends GroupBase<Option> = GroupBase<Option>,
|
|
37
37
|
> = Partial<Record<StyleKey, (props: unknown) => string>>;
|
|
38
38
|
|
|
39
39
|
export function mergeStyles<Option, IsMulti extends boolean, Group extends GroupBase<Option>>(
|
package/src/types.ts
CHANGED
|
@@ -73,7 +73,7 @@ export type FocusDirection = 'up' | 'down' | 'pageup' | 'pagedown' | 'first' | '
|
|
|
73
73
|
export type ClassNamesState = Record<string, boolean>;
|
|
74
74
|
export type CX = (state: ClassNamesState, ...classNames: (string | undefined)[]) => string;
|
|
75
75
|
|
|
76
|
-
export type GetStyles<Option,
|
|
76
|
+
export type GetStyles<Option, _IsMulti extends boolean, _Group extends GroupBase<Option>> = (
|
|
77
77
|
propertyName: string,
|
|
78
78
|
props: unknown,
|
|
79
79
|
) => CSSObjectWithLabel;
|