@kjun-ui/react 0.3.0 → 0.3.2

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 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
- Import `@kjun-ui/react/styles.css` and your project color mapping stylesheet. Define the 21 `coreColorRoles` as `--kjun-*` variables and `--kjun-font` from existing app tokens at `:root` or on `<KjunProvider>`. Optional roles listed in `colorRoleFallbacks` fall back to app-supplied roles. The Provider supplies a `.kjun-scope` styling boundary; it has no `theme` prop or palette.
5
+ Import `@kjun-ui/react/styles.css` and your project color mapping stylesheet. Define the 27 `coreColorRoles` as `--kjun-*` variables and `--kjun-font` from existing app tokens at `:root` or on `<KjunProvider>`. Optional roles listed in `colorRoleFallbacks` fall back to app-supplied roles. The Provider supplies a `.kjun-scope` styling boundary; it has no `theme` prop or palette.
6
6
 
7
7
  Missing core colors or `--kjun-font` fail at mount/update. Components using financial colors also check all 13 domain roles in their rendered scope. Font loading and color contrast remain the app's responsibility. Numeric displays, including Deviation badges, consume `--kjun-font-numeric` (falling back to the scope font); KpiRow text values consume the body font.
8
8
 
@@ -10,7 +10,7 @@ Nested Providers share window ordering and Escape handling. Their overlays rende
10
10
 
11
11
  Project color and font setup: https://ui.kjun.dev/styling.
12
12
 
13
- Pre-release local packages; not published to a registry.
13
+ Install: `npm install @kjun-ui/react @kjun-ui/tokens @kjun-ui/icons`
14
14
 
15
15
  ## Card composition
16
16
 
package/dist/index.cjs CHANGED
@@ -591,7 +591,11 @@ var TopNavigationContext = (0, import_react4.createContext)(null);
591
591
 
592
592
  // shared/package-runtime/action-size.ts
593
593
  var import_react5 = require("react");
594
+
595
+ // shared/package-runtime/alert-action-size.ts
594
596
  var alertActionSizes = { sm: "xs", md: "sm" };
597
+
598
+ // shared/package-runtime/action-size.ts
595
599
  var ActionSizeContext = (0, import_react5.createContext)(null);
596
600
  function useActionSize(requested, fallback2) {
597
601
  var _a;
package/dist/index.js CHANGED
@@ -483,7 +483,11 @@ var TopNavigationContext = createContext4(null);
483
483
 
484
484
  // shared/package-runtime/action-size.ts
485
485
  import { createContext as createContext5, useContext as useContext4 } from "react";
486
+
487
+ // shared/package-runtime/alert-action-size.ts
486
488
  var alertActionSizes = { sm: "xs", md: "sm" };
489
+
490
+ // shared/package-runtime/action-size.ts
487
491
  var ActionSizeContext = createContext5(null);
488
492
  function useActionSize(requested, fallback2) {
489
493
  var _a;
@@ -1,9 +1,5 @@
1
1
  import type { ButtonSize } from "@kjun-ui/tokens";
2
- /** Alert actions stay one button step below the alert's own control line. */
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
- /** Alert actions stay one button step below the alert's own control line. */
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;
@@ -0,0 +1,5 @@
1
+ /** Alert actions stay one button step below the alert's own control line. Framework-free so Vue can share it. */
2
+ export declare const alertActionSizes: {
3
+ readonly sm: "xs";
4
+ readonly md: "sm";
5
+ };
@@ -0,0 +1,5 @@
1
+ /** Alert actions stay one button step below the alert's own control line. Framework-free so Vue can share it. */
2
+ export declare const alertActionSizes: {
3
+ readonly sm: "xs";
4
+ readonly md: "sm";
5
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kjun-ui/react",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "license": "MIT",
5
5
  "homepage": "https://ui.kjun.dev",
6
6
  "repository": {
@@ -41,9 +41,9 @@
41
41
  "./package.json": "./package.json"
42
42
  },
43
43
  "dependencies": {
44
- "@kjun-ui/tokens": "0.3.0",
44
+ "@kjun-ui/tokens": "0.3.2",
45
45
  "react-aria-components": "1.21.1",
46
- "@kjun-ui/icons": "0.3.0"
46
+ "@kjun-ui/icons": "0.3.2"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": "^19.2.3",