@kjun-ui/react 0.19.0 → 0.21.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 +4254 -1690
- package/dist/index.js +4045 -1481
- package/dist/styles.css +1531 -411
- package/dist/types/packages/react/src/app-navigation.d.cts +9 -4
- package/dist/types/packages/react/src/app-navigation.d.ts +9 -4
- package/dist/types/packages/react/src/card-actions-context.d.cts +2 -0
- package/dist/types/packages/react/src/card-actions-context.d.ts +2 -0
- package/dist/types/packages/react/src/card.d.cts +15 -5
- package/dist/types/packages/react/src/card.d.ts +15 -5
- package/dist/types/packages/react/src/chip.d.cts +4 -2
- package/dist/types/packages/react/src/chip.d.ts +4 -2
- package/dist/types/packages/react/src/color-picker-parts.d.cts +58 -0
- package/dist/types/packages/react/src/color-picker-parts.d.ts +58 -0
- package/dist/types/packages/react/src/color-picker.d.cts +51 -0
- package/dist/types/packages/react/src/color-picker.d.ts +51 -0
- package/dist/types/packages/react/src/data-state.d.cts +3 -3
- package/dist/types/packages/react/src/data-state.d.ts +3 -3
- package/dist/types/packages/react/src/display.d.cts +14 -5
- package/dist/types/packages/react/src/display.d.ts +14 -5
- package/dist/types/packages/react/src/fab.d.cts +16 -7
- package/dist/types/packages/react/src/fab.d.ts +16 -7
- package/dist/types/packages/react/src/index.d.cts +4 -0
- package/dist/types/packages/react/src/index.d.ts +4 -0
- package/dist/types/packages/react/src/kpi-hero.d.cts +53 -0
- package/dist/types/packages/react/src/kpi-hero.d.ts +53 -0
- package/dist/types/packages/react/src/kpi-row.d.cts +41 -0
- package/dist/types/packages/react/src/kpi-row.d.ts +41 -0
- package/dist/types/packages/react/src/kpi.d.cts +2 -72
- package/dist/types/packages/react/src/kpi.d.ts +2 -72
- package/dist/types/packages/react/src/list-context.d.cts +8 -0
- package/dist/types/packages/react/src/list-context.d.ts +8 -0
- package/dist/types/packages/react/src/list.d.cts +50 -8
- package/dist/types/packages/react/src/list.d.ts +50 -8
- package/dist/types/packages/react/src/modal.d.cts +5 -2
- package/dist/types/packages/react/src/modal.d.ts +5 -2
- package/dist/types/packages/react/src/navigation.d.cts +2 -1
- package/dist/types/packages/react/src/navigation.d.ts +2 -1
- package/dist/types/packages/react/src/number-display.d.cts +2 -0
- package/dist/types/packages/react/src/number-display.d.ts +2 -0
- package/dist/types/packages/react/src/range-input.d.cts +12 -1
- package/dist/types/packages/react/src/range-input.d.ts +12 -1
- package/dist/types/packages/react/src/reorder-controls.d.cts +43 -0
- package/dist/types/packages/react/src/reorder-controls.d.ts +43 -0
- package/dist/types/packages/react/src/skeletons.d.cts +2 -1
- package/dist/types/packages/react/src/skeletons.d.ts +2 -1
- package/dist/types/packages/react/src/split-pane.d.cts +30 -0
- package/dist/types/packages/react/src/split-pane.d.ts +30 -0
- package/dist/types/packages/react/src/stacked-bar.d.cts +22 -0
- package/dist/types/packages/react/src/stacked-bar.d.ts +22 -0
- package/dist/types/packages/react/src/table-cards.d.cts +1 -1
- package/dist/types/packages/react/src/table-cards.d.ts +1 -1
- package/dist/types/packages/react/src/table-grid.d.cts +1 -1
- package/dist/types/packages/react/src/table-grid.d.ts +1 -1
- package/dist/types/packages/react/src/zone-gauge.d.cts +28 -0
- package/dist/types/packages/react/src/zone-gauge.d.ts +28 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.cts +1 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.ts +1 -0
- package/dist/types/shared/package-runtime/bottom-bar.d.cts +15 -0
- package/dist/types/shared/package-runtime/bottom-bar.d.ts +15 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.cts +25 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.ts +25 -0
- package/dist/types/shared/package-runtime/card-layout.d.cts +34 -0
- package/dist/types/shared/package-runtime/card-layout.d.ts +34 -0
- package/dist/types/shared/package-runtime/chart-skeleton.d.cts +1 -1
- package/dist/types/shared/package-runtime/chart-skeleton.d.ts +1 -1
- package/dist/types/shared/package-runtime/chip-size.d.cts +4 -0
- package/dist/types/shared/package-runtime/chip-size.d.ts +4 -0
- package/dist/types/shared/package-runtime/color-picker-model.d.cts +51 -0
- package/dist/types/shared/package-runtime/color-picker-model.d.ts +51 -0
- package/dist/types/shared/package-runtime/color-picker.d.cts +92 -0
- package/dist/types/shared/package-runtime/color-picker.d.ts +92 -0
- package/dist/types/shared/package-runtime/color.d.cts +22 -0
- package/dist/types/shared/package-runtime/color.d.ts +22 -0
- package/dist/types/shared/package-runtime/distribution.d.cts +133 -0
- package/dist/types/shared/package-runtime/distribution.d.ts +133 -0
- package/dist/types/shared/package-runtime/empty-geometry.d.cts +19 -0
- package/dist/types/shared/package-runtime/empty-geometry.d.ts +19 -0
- package/dist/types/shared/package-runtime/kpi.d.cts +89 -0
- package/dist/types/shared/package-runtime/kpi.d.ts +89 -0
- package/dist/types/shared/package-runtime/layer-state.d.cts +2 -1
- package/dist/types/shared/package-runtime/layer-state.d.ts +2 -1
- package/dist/types/shared/package-runtime/list-leading.d.cts +38 -0
- package/dist/types/shared/package-runtime/list-leading.d.ts +38 -0
- package/dist/types/shared/package-runtime/list-row.d.cts +115 -4
- package/dist/types/shared/package-runtime/list-row.d.ts +115 -4
- package/dist/types/shared/package-runtime/market-layout.d.cts +3 -1
- package/dist/types/shared/package-runtime/market-layout.d.ts +3 -1
- package/dist/types/shared/package-runtime/market-query.d.cts +15 -0
- package/dist/types/shared/package-runtime/market-query.d.ts +15 -0
- package/dist/types/shared/package-runtime/messages/ko.d.cts +27 -0
- package/dist/types/shared/package-runtime/messages/ko.d.ts +27 -0
- package/dist/types/shared/package-runtime/messages-context.d.cts +27 -0
- package/dist/types/shared/package-runtime/messages-context.d.ts +27 -0
- package/dist/types/shared/package-runtime/number-sign.d.cts +9 -0
- package/dist/types/shared/package-runtime/number-sign.d.ts +9 -0
- package/dist/types/shared/package-runtime/popover-scroll.d.cts +3 -0
- package/dist/types/shared/package-runtime/popover-scroll.d.ts +3 -0
- package/dist/types/shared/package-runtime/radio-keyboard.d.cts +2 -0
- package/dist/types/shared/package-runtime/radio-keyboard.d.ts +2 -0
- package/dist/types/shared/package-runtime/reorder-session.d.cts +62 -0
- package/dist/types/shared/package-runtime/reorder-session.d.ts +62 -0
- package/dist/types/shared/package-runtime/reorder.d.cts +81 -0
- package/dist/types/shared/package-runtime/reorder.d.ts +81 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.cts +14 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.ts +14 -0
- package/dist/types/shared/package-runtime/slider-view.d.cts +90 -0
- package/dist/types/shared/package-runtime/slider-view.d.ts +90 -0
- package/dist/types/shared/package-runtime/split-pane.d.cts +46 -0
- package/dist/types/shared/package-runtime/split-pane.d.ts +46 -0
- package/dist/types/shared/package-runtime/table-columns.d.cts +28 -0
- package/dist/types/shared/package-runtime/table-columns.d.ts +28 -0
- package/dist/types/shared/package-runtime/table-groups.d.cts +9 -0
- package/dist/types/shared/package-runtime/table-groups.d.ts +9 -0
- package/dist/types/shared/package-runtime/table-presentation.d.cts +24 -2
- package/dist/types/shared/package-runtime/table-presentation.d.ts +24 -2
- package/dist/types/shared/package-runtime/table.d.cts +32 -0
- package/dist/types/shared/package-runtime/table.d.ts +32 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.cts +51 -0
- package/dist/types/shared/package-runtime/use-color-picker.d.ts +51 -0
- package/dist/types/shared/package-runtime/use-layer.d.cts +4 -2
- package/dist/types/shared/package-runtime/use-layer.d.ts +4 -2
- package/dist/types/shared/package-runtime/use-table-group-expansion.d.cts +6 -0
- package/dist/types/shared/package-runtime/use-table-group-expansion.d.ts +6 -0
- package/package.json +3 -3
|
@@ -11,12 +11,13 @@ export declare function useLayerState(): {
|
|
|
11
11
|
top: () => import("./layer-state.cjs").LayerEntry | undefined;
|
|
12
12
|
topPopup: () => import("./layer-state.cjs").LayerEntry | undefined;
|
|
13
13
|
windowOf: (id?: string) => string | undefined;
|
|
14
|
+
markRestoredFocus(target: FocusTarget): void;
|
|
14
15
|
isRestoredFocus(target?: FocusTarget | null): boolean;
|
|
15
16
|
clearRestoredFocus(target?: FocusTarget | null): void;
|
|
16
17
|
markClosing(id: string): void;
|
|
17
18
|
subscribe(listener: () => void): () => void;
|
|
18
19
|
snapshot: () => number;
|
|
19
|
-
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null): import("./layer-state.cjs").LayerEntry;
|
|
20
|
+
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null, defaultFocus?: boolean): import("./layer-state.cjs").LayerEntry;
|
|
20
21
|
remove(id: string, focused?: FocusTarget | null): FocusTarget | null | undefined;
|
|
21
22
|
requestClose(id: string): void;
|
|
22
23
|
isActive(id: string): boolean;
|
|
@@ -46,12 +47,13 @@ export declare function useLayer(open: boolean, present: boolean, kind: LayerKin
|
|
|
46
47
|
top: () => import("./layer-state.cjs").LayerEntry | undefined;
|
|
47
48
|
topPopup: () => import("./layer-state.cjs").LayerEntry | undefined;
|
|
48
49
|
windowOf: (id?: string) => string | undefined;
|
|
50
|
+
markRestoredFocus(target: FocusTarget): void;
|
|
49
51
|
isRestoredFocus(target?: FocusTarget | null): boolean;
|
|
50
52
|
clearRestoredFocus(target?: FocusTarget | null): void;
|
|
51
53
|
markClosing(id: string): void;
|
|
52
54
|
subscribe(listener: () => void): () => void;
|
|
53
55
|
snapshot: () => number;
|
|
54
|
-
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null): import("./layer-state.cjs").LayerEntry;
|
|
56
|
+
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null, defaultFocus?: boolean): import("./layer-state.cjs").LayerEntry;
|
|
55
57
|
remove(id: string, focused?: FocusTarget | null): FocusTarget | null | undefined;
|
|
56
58
|
requestClose(id: string): void;
|
|
57
59
|
isActive(id: string): boolean;
|
|
@@ -11,12 +11,13 @@ export declare function useLayerState(): {
|
|
|
11
11
|
top: () => import("./layer-state.js").LayerEntry | undefined;
|
|
12
12
|
topPopup: () => import("./layer-state.js").LayerEntry | undefined;
|
|
13
13
|
windowOf: (id?: string) => string | undefined;
|
|
14
|
+
markRestoredFocus(target: FocusTarget): void;
|
|
14
15
|
isRestoredFocus(target?: FocusTarget | null): boolean;
|
|
15
16
|
clearRestoredFocus(target?: FocusTarget | null): void;
|
|
16
17
|
markClosing(id: string): void;
|
|
17
18
|
subscribe(listener: () => void): () => void;
|
|
18
19
|
snapshot: () => number;
|
|
19
|
-
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null): import("./layer-state.js").LayerEntry;
|
|
20
|
+
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null, defaultFocus?: boolean): import("./layer-state.js").LayerEntry;
|
|
20
21
|
remove(id: string, focused?: FocusTarget | null): FocusTarget | null | undefined;
|
|
21
22
|
requestClose(id: string): void;
|
|
22
23
|
isActive(id: string): boolean;
|
|
@@ -46,12 +47,13 @@ export declare function useLayer(open: boolean, present: boolean, kind: LayerKin
|
|
|
46
47
|
top: () => import("./layer-state.js").LayerEntry | undefined;
|
|
47
48
|
topPopup: () => import("./layer-state.js").LayerEntry | undefined;
|
|
48
49
|
windowOf: (id?: string) => string | undefined;
|
|
50
|
+
markRestoredFocus(target: FocusTarget): void;
|
|
49
51
|
isRestoredFocus(target?: FocusTarget | null): boolean;
|
|
50
52
|
clearRestoredFocus(target?: FocusTarget | null): void;
|
|
51
53
|
markClosing(id: string): void;
|
|
52
54
|
subscribe(listener: () => void): () => void;
|
|
53
55
|
snapshot: () => number;
|
|
54
|
-
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null): import("./layer-state.js").LayerEntry;
|
|
56
|
+
open(id: string, kind: LayerKind, parent: string | undefined, dismissCallback: () => void, returnTarget?: FocusTarget | null, defaultFocus?: boolean): import("./layer-state.js").LayerEntry;
|
|
55
57
|
remove(id: string, focused?: FocusTarget | null): FocusTarget | null | undefined;
|
|
56
58
|
requestClose(id: string): void;
|
|
57
59
|
isActive(id: string): boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type TableRowGroup } from "./table-groups.cjs";
|
|
2
|
+
/** Shared React/Native state; Vue uses the same framework-free transition rules. */
|
|
3
|
+
export declare function useTableGroupExpansion<Row extends object>(groups: TableRowGroup<Row>[] | null, groupBy: string | undefined, expanded: unknown[] | undefined, onChange: ((values: unknown[]) => void) | undefined): {
|
|
4
|
+
collapsed: string[];
|
|
5
|
+
toggleGroup(key: string): void;
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type TableRowGroup } from "./table-groups.js";
|
|
2
|
+
/** Shared React/Native state; Vue uses the same framework-free transition rules. */
|
|
3
|
+
export declare function useTableGroupExpansion<Row extends object>(groups: TableRowGroup<Row>[] | null, groupBy: string | undefined, expanded: unknown[] | undefined, onChange: ((values: unknown[]) => void) | undefined): {
|
|
4
|
+
collapsed: string[];
|
|
5
|
+
toggleGroup(key: string): void;
|
|
6
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kjun-ui/react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.21.0",
|
|
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.
|
|
44
|
+
"@kjun-ui/tokens": "0.21.0",
|
|
45
45
|
"react-aria-components": "1.21.1",
|
|
46
|
-
"@kjun-ui/icons": "0.
|
|
46
|
+
"@kjun-ui/icons": "0.21.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"react": "^19.2.3",
|