@octanejs/base-ui 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/base-ui",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.11",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -38,22 +38,22 @@
|
|
|
38
38
|
"./*": "./src/*.ts"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@floating-ui/utils": "^0.2.
|
|
41
|
+
"@floating-ui/utils": "^0.2.12",
|
|
42
42
|
"aria-hidden": "^1.2.6",
|
|
43
43
|
"tabbable": "^6.5.0",
|
|
44
|
-
"@octanejs/floating-ui": "0.1.
|
|
44
|
+
"@octanejs/floating-ui": "0.1.12"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"octane": "0.1.
|
|
47
|
+
"octane": "0.1.13"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@base-ui/react": "^1.6.0",
|
|
51
|
-
"@tsrx/react": "^0.2.
|
|
51
|
+
"@tsrx/react": "^0.2.46",
|
|
52
52
|
"esbuild": "^0.28.1",
|
|
53
|
-
"react": "^19.2.
|
|
54
|
-
"react-dom": "^19.2.
|
|
55
|
-
"vitest": "^4.1.
|
|
56
|
-
"octane": "0.1.
|
|
53
|
+
"react": "^19.2.7",
|
|
54
|
+
"react-dom": "^19.2.7",
|
|
55
|
+
"vitest": "^4.1.10",
|
|
56
|
+
"octane": "0.1.13"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"test": "vitest run"
|
|
@@ -57,9 +57,7 @@ export interface UseDismissProps {
|
|
|
57
57
|
| (() => PressType | { mouse: PressType; touch: PressType })
|
|
58
58
|
| undefined;
|
|
59
59
|
bubbles?:
|
|
60
|
-
| boolean
|
|
61
|
-
| { escapeKey?: boolean | undefined; outsidePress?: boolean | undefined }
|
|
62
|
-
| undefined;
|
|
60
|
+
boolean | { escapeKey?: boolean | undefined; outsidePress?: boolean | undefined } | undefined;
|
|
63
61
|
externalTree?: FloatingTreeStore | undefined;
|
|
64
62
|
}
|
|
65
63
|
|
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
export type Direction = -1 | 1;
|
|
3
3
|
|
|
4
4
|
export type DirectionalChangeReason =
|
|
5
|
-
| '
|
|
6
|
-
| 'decrement-press'
|
|
7
|
-
| 'wheel'
|
|
8
|
-
| 'scrub'
|
|
9
|
-
| 'keyboard';
|
|
5
|
+
'increment-press' | 'decrement-press' | 'wheel' | 'scrub' | 'keyboard';
|
|
10
6
|
|
|
11
7
|
export interface ChangeEventCustomProperties {
|
|
12
8
|
direction?: Direction;
|
|
@@ -38,11 +38,11 @@ export const pressableTriggerOpenStateMapping: StateAttributesMapping<{ open: bo
|
|
|
38
38
|
},
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
-
export const popupStateMapping
|
|
41
|
+
export const popupStateMapping = {
|
|
42
42
|
open(value: boolean) {
|
|
43
43
|
return value ? POPUP_OPEN_HOOK : POPUP_CLOSED_HOOK;
|
|
44
44
|
},
|
|
45
45
|
anchorHidden(value: boolean) {
|
|
46
46
|
return value ? ANCHOR_HIDDEN_HOOK : null;
|
|
47
47
|
},
|
|
48
|
-
};
|
|
48
|
+
} satisfies StateAttributesMapping<{ open: boolean; anchorHidden: boolean }>;
|
|
@@ -27,8 +27,7 @@ import { mergeProps, mergePropsN, mergeClassNames } from './mergeProps';
|
|
|
27
27
|
const EMPTY_OBJECT: Record<string, any> = {};
|
|
28
28
|
|
|
29
29
|
export type RenderProp<State> =
|
|
30
|
-
|
|
31
|
-
| any /* element descriptor */;
|
|
30
|
+
((props: Record<string, any>, state: State) => any) | any; /* element descriptor */
|
|
32
31
|
|
|
33
32
|
export interface UseRenderElementComponentProps<State> {
|
|
34
33
|
className?: string | ((state: State) => string | undefined);
|