@kjun-ui/native 0.3.0 → 0.3.1
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/README.md +2 -2
- package/dist/index.cjs +4 -0
- package/dist/index.js +4 -0
- package/dist/index.web.cjs +4 -0
- package/dist/index.web.js +4 -0
- package/dist/types/shared/package-runtime/action-size.d.cts +1 -5
- package/dist/types/shared/package-runtime/action-size.d.ts +1 -5
- package/dist/types/shared/package-runtime/alert-action-size.d.cts +5 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.ts +5 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Shared KJUN UI geometry, state and interaction contracts. Your app supplies colors and fonts.
|
|
4
4
|
|
|
5
|
-
Wrap the app in `<KjunProvider colors={appColors} fontFamily={appFont}>`. `colors` must supply the
|
|
5
|
+
Wrap the app in `<KjunProvider colors={appColors} fontFamily={appFont}>`. `colors` must supply the 27 core roles in `KjunColors<ColorValue>`; Component roles are optional and fall back to app-supplied roles. The app maps its existing tokens and owns mode changes. Missing Provider/colors produce an error. `useKjunStyles()` reads the nearest values. Nested Providers inherit the parent font unless overridden; the root uses the system font when omitted. Load custom fonts in the app.
|
|
6
6
|
|
|
7
7
|
No CSS import is needed. Native Web is a preview; iOS/Android device verification has not been performed.
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Browser bundlers use the `browser` export and require React DOM matching React.
|
|
|
10
10
|
|
|
11
11
|
Project color and font setup: https://ui.kjun.dev/styling.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Install: `npm install @kjun-ui/native @kjun-ui/tokens @kjun-ui/icons`
|
|
14
14
|
|
|
15
15
|
## Card composition
|
|
16
16
|
|
package/dist/index.cjs
CHANGED
|
@@ -560,7 +560,11 @@ var AlertActionsContext = (0, import_react8.createContext)(false);
|
|
|
560
560
|
|
|
561
561
|
// shared/package-runtime/action-size.ts
|
|
562
562
|
var import_react9 = require("react");
|
|
563
|
+
|
|
564
|
+
// shared/package-runtime/alert-action-size.ts
|
|
563
565
|
var alertActionSizes = { sm: "xs", md: "sm" };
|
|
566
|
+
|
|
567
|
+
// shared/package-runtime/action-size.ts
|
|
564
568
|
var ActionSizeContext = (0, import_react9.createContext)(null);
|
|
565
569
|
function useActionSize(requested, fallback2) {
|
|
566
570
|
var _a;
|
package/dist/index.js
CHANGED
|
@@ -450,7 +450,11 @@ var AlertActionsContext = createContext8(false);
|
|
|
450
450
|
|
|
451
451
|
// shared/package-runtime/action-size.ts
|
|
452
452
|
import { createContext as createContext9, useContext as useContext4 } from "react";
|
|
453
|
+
|
|
454
|
+
// shared/package-runtime/alert-action-size.ts
|
|
453
455
|
var alertActionSizes = { sm: "xs", md: "sm" };
|
|
456
|
+
|
|
457
|
+
// shared/package-runtime/action-size.ts
|
|
454
458
|
var ActionSizeContext = createContext9(null);
|
|
455
459
|
function useActionSize(requested, fallback2) {
|
|
456
460
|
var _a;
|
package/dist/index.web.cjs
CHANGED
|
@@ -560,7 +560,11 @@ var AlertActionsContext = (0, import_react8.createContext)(false);
|
|
|
560
560
|
|
|
561
561
|
// shared/package-runtime/action-size.ts
|
|
562
562
|
var import_react9 = require("react");
|
|
563
|
+
|
|
564
|
+
// shared/package-runtime/alert-action-size.ts
|
|
563
565
|
var alertActionSizes = { sm: "xs", md: "sm" };
|
|
566
|
+
|
|
567
|
+
// shared/package-runtime/action-size.ts
|
|
564
568
|
var ActionSizeContext = (0, import_react9.createContext)(null);
|
|
565
569
|
function useActionSize(requested, fallback2) {
|
|
566
570
|
var _a;
|
package/dist/index.web.js
CHANGED
|
@@ -450,7 +450,11 @@ var AlertActionsContext = createContext8(false);
|
|
|
450
450
|
|
|
451
451
|
// shared/package-runtime/action-size.ts
|
|
452
452
|
import { createContext as createContext9, useContext as useContext4 } from "react";
|
|
453
|
+
|
|
454
|
+
// shared/package-runtime/alert-action-size.ts
|
|
453
455
|
var alertActionSizes = { sm: "xs", md: "sm" };
|
|
456
|
+
|
|
457
|
+
// shared/package-runtime/action-size.ts
|
|
454
458
|
var ActionSizeContext = createContext9(null);
|
|
455
459
|
function useActionSize(requested, fallback2) {
|
|
456
460
|
var _a;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { ButtonSize } from "@kjun-ui/tokens";
|
|
2
|
-
|
|
3
|
-
export declare const alertActionSizes: {
|
|
4
|
-
readonly sm: "xs";
|
|
5
|
-
readonly md: "sm";
|
|
6
|
-
};
|
|
2
|
+
export { alertActionSizes } from "./alert-action-size.cjs";
|
|
7
3
|
/** A container's default size for buttons that leave `size` unset; an explicit size always wins. */
|
|
8
4
|
export declare const ActionSizeContext: import("react").Context<"xs" | "sm" | "md" | "lg" | "xl" | null>;
|
|
9
5
|
export declare function useActionSize(requested: ButtonSize | undefined, fallback: ButtonSize): ButtonSize;
|
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
import type { ButtonSize } from "@kjun-ui/tokens";
|
|
2
|
-
|
|
3
|
-
export declare const alertActionSizes: {
|
|
4
|
-
readonly sm: "xs";
|
|
5
|
-
readonly md: "sm";
|
|
6
|
-
};
|
|
2
|
+
export { alertActionSizes } from "./alert-action-size.js";
|
|
7
3
|
/** A container's default size for buttons that leave `size` unset; an explicit size always wins. */
|
|
8
4
|
export declare const ActionSizeContext: import("react").Context<"xs" | "sm" | "md" | "lg" | "xl" | null>;
|
|
9
5
|
export declare function useActionSize(requested: ButtonSize | undefined, fallback: ButtonSize): ButtonSize;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kjun-ui/native",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://ui.kjun.dev",
|
|
6
6
|
"repository": {
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
"./package.json": "./package.json"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@kjun-ui/tokens": "0.3.
|
|
51
|
-
"@kjun-ui/icons": "0.3.
|
|
50
|
+
"@kjun-ui/tokens": "0.3.1",
|
|
51
|
+
"@kjun-ui/icons": "0.3.1"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^19.2.3",
|
|
55
55
|
"react-dom": "^19.2.3",
|
|
56
|
-
"react-native": "
|
|
56
|
+
"react-native": ">=0.86.3",
|
|
57
57
|
"react-native-svg": "^15.15.5"
|
|
58
58
|
},
|
|
59
59
|
"peerDependenciesMeta": {
|