@octanejs/select 0.1.9 → 0.1.11

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/select",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "React Select bindings for the Octane renderer.",
@@ -34,10 +34,10 @@
34
34
  "@emotion/utils": "1.2.0",
35
35
  "@floating-ui/dom": "1.8.0",
36
36
  "memoize-one": "6.0.0",
37
- "@octanejs/transition-group": "0.0.24"
37
+ "@octanejs/transition-group": "0.0.25"
38
38
  },
39
39
  "peerDependencies": {
40
- "octane": "^0.8.0"
40
+ "octane": "^0.9.0"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@babel/core": "7.19.6",
@@ -71,7 +71,7 @@
71
71
  "use-isomorphic-layout-effect": "1.2.1",
72
72
  "vite": "^8.1.5",
73
73
  "vitest": "^4.1.10",
74
- "octane": "0.8.0"
74
+ "octane": "0.9.1"
75
75
  },
76
76
  "engines": {
77
77
  "node": ">=22.22.2"
@@ -28,8 +28,8 @@ type SvgProps = Octane.JSX.IntrinsicElements['svg'];
28
28
 
29
29
  export interface CommonComponentProps<
30
30
  Option = unknown,
31
- IsMulti extends boolean = boolean,
32
- Group extends GroupBase<Option> = GroupBase<Option>,
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
- IsMulti extends boolean = boolean,
539
- Group extends GroupBase<Option> = GroupBase<Option>,
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
- IsMulti extends boolean = boolean,
557
- Group extends GroupBase<Option> = GroupBase<Option>,
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
- IsMulti extends boolean = boolean,
30
- Group extends GroupBase<Option> = GroupBase<Option>,
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
- IsMulti extends boolean = boolean,
36
- Group extends GroupBase<Option> = GroupBase<Option>,
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, IsMulti extends boolean, Group extends GroupBase<Option>> = (
76
+ export type GetStyles<Option, _IsMulti extends boolean, _Group extends GroupBase<Option>> = (
77
77
  propertyName: string,
78
78
  props: unknown,
79
79
  ) => CSSObjectWithLabel;
@@ -13,7 +13,6 @@ import type {
13
13
  OnChangeValue,
14
14
  Options,
15
15
  OptionsOrGroups,
16
- PropsValue,
17
16
  } from './types';
18
17
  import { cleanValue, valueTernary } from './utils';
19
18
  import type { PublicBaseSelectProps } from './select.tsrx';