@kjun-ui/native 0.16.0 → 0.17.0
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/dist/index.cjs +1985 -1913
- package/dist/index.js +1866 -1793
- package/dist/index.web.cjs +2009 -1937
- package/dist/index.web.js +1883 -1810
- package/dist/styles.css +74 -30
- package/dist/types/packages/native/src/alert-actions-context.d.cts +3 -0
- package/dist/types/packages/native/src/alert-actions-context.d.ts +3 -0
- package/dist/types/packages/native/src/app-navigation.d.cts +9 -3
- package/dist/types/packages/native/src/app-navigation.d.ts +9 -3
- package/dist/types/packages/native/src/choice-controls.d.cts +3 -1
- package/dist/types/packages/native/src/choice-controls.d.ts +3 -1
- package/dist/types/packages/native/src/display-primitives.d.cts +1 -11
- package/dist/types/packages/native/src/display-primitives.d.ts +1 -11
- package/dist/types/packages/native/src/kpi-row.d.cts +6 -2
- package/dist/types/packages/native/src/kpi-row.d.ts +6 -2
- package/dist/types/packages/native/src/layer-backdrop.d.cts +5 -0
- package/dist/types/packages/native/src/layer-backdrop.d.ts +5 -0
- package/dist/types/packages/native/src/list.d.cts +3 -1
- package/dist/types/packages/native/src/list.d.ts +3 -1
- package/dist/types/packages/native/src/media.d.cts +1 -1
- package/dist/types/packages/native/src/media.d.ts +1 -1
- package/dist/types/packages/native/src/progress.d.cts +16 -0
- package/dist/types/packages/native/src/progress.d.ts +16 -0
- package/dist/types/packages/native/src/range-input.d.cts +4 -0
- package/dist/types/packages/native/src/range-input.d.ts +4 -0
- package/dist/types/shared/package-runtime/alert-tone.d.cts +11 -0
- package/dist/types/shared/package-runtime/alert-tone.d.ts +11 -0
- package/dist/types/shared/package-runtime/drawer-geometry.d.cts +10 -4
- package/dist/types/shared/package-runtime/drawer-geometry.d.ts +10 -4
- package/dist/types/shared/package-runtime/progress-circle.d.cts +5 -0
- package/dist/types/shared/package-runtime/progress-circle.d.ts +5 -0
- package/package.json +3 -3
|
@@ -18,15 +18,21 @@ export interface DrawerFrame {
|
|
|
18
18
|
lift: number;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
|
-
* Keyboard events a drawer listens to.
|
|
22
|
-
*
|
|
21
|
+
* Keyboard events a drawer listens to. Android reports only after the keyboard moved; edge-to-edge
|
|
22
|
+
* windows no longer resize for it (adjustResize), so the drawer lifts itself there too.
|
|
23
23
|
*/
|
|
24
24
|
export declare function keyboardEvents(os: string): {
|
|
25
25
|
readonly show: "keyboardWillShow";
|
|
26
26
|
readonly hide: "keyboardWillHide";
|
|
27
|
+
} | {
|
|
28
|
+
readonly show: "keyboardDidShow";
|
|
29
|
+
readonly hide: "keyboardDidHide";
|
|
27
30
|
} | null;
|
|
28
|
-
/**
|
|
29
|
-
|
|
31
|
+
/**
|
|
32
|
+
* The part of the modal root the keyboard covers. Measured against the root, a window the platform
|
|
33
|
+
* already resized ends at or above the keyboard and gives 0, so the drawer never lifts twice.
|
|
34
|
+
*/
|
|
35
|
+
export declare function keyboardOverlap(rootHeight: number, keyboardScreenY: number): number;
|
|
30
36
|
export declare function drawerFrame({ position, windowHeight, safeAreaTop, safeAreaBottom, gap, keyboard, maxHeight }: DrawerFrameInput): DrawerFrame;
|
|
31
37
|
/** Web overlay variables read by the drawer CSS (tokens controls.css). */
|
|
32
38
|
export declare function drawerOverlayVars({ safeAreaTop, safeAreaBottom, maxHeight }: {
|
|
@@ -9,3 +9,8 @@ export declare function progressCircle(size: ProgressCircleSize, percentage: num
|
|
|
9
9
|
offset: number;
|
|
10
10
|
showsPercentage: boolean;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* What a progress value means: indeterminate work wins, then a null, non-finite value or an invalid max is
|
|
14
|
+
* missing data (never 0%). An omitted value keeps the 0 default before it reaches here.
|
|
15
|
+
*/
|
|
16
|
+
export declare function progressState(value: number | null, max: number, indeterminate: boolean): "indeterminate" | "missing" | "determinate";
|
|
@@ -9,3 +9,8 @@ export declare function progressCircle(size: ProgressCircleSize, percentage: num
|
|
|
9
9
|
offset: number;
|
|
10
10
|
showsPercentage: boolean;
|
|
11
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* What a progress value means: indeterminate work wins, then a null, non-finite value or an invalid max is
|
|
14
|
+
* missing data (never 0%). An omitted value keeps the 0 default before it reaches here.
|
|
15
|
+
*/
|
|
16
|
+
export declare function progressState(value: number | null, max: number, indeterminate: boolean): "indeterminate" | "missing" | "determinate";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kjun-ui/native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://ui.kjun.dev",
|
|
6
6
|
"repository": {
|
|
@@ -47,8 +47,8 @@
|
|
|
47
47
|
"./package.json": "./package.json"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@kjun-ui/tokens": "0.
|
|
51
|
-
"@kjun-ui/icons": "0.
|
|
50
|
+
"@kjun-ui/tokens": "0.17.0",
|
|
51
|
+
"@kjun-ui/icons": "0.17.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^19.2.3",
|