@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.
Files changed (124) hide show
  1. package/dist/index.cjs +4254 -1690
  2. package/dist/index.js +4045 -1481
  3. package/dist/styles.css +1531 -411
  4. package/dist/types/packages/react/src/app-navigation.d.cts +9 -4
  5. package/dist/types/packages/react/src/app-navigation.d.ts +9 -4
  6. package/dist/types/packages/react/src/card-actions-context.d.cts +2 -0
  7. package/dist/types/packages/react/src/card-actions-context.d.ts +2 -0
  8. package/dist/types/packages/react/src/card.d.cts +15 -5
  9. package/dist/types/packages/react/src/card.d.ts +15 -5
  10. package/dist/types/packages/react/src/chip.d.cts +4 -2
  11. package/dist/types/packages/react/src/chip.d.ts +4 -2
  12. package/dist/types/packages/react/src/color-picker-parts.d.cts +58 -0
  13. package/dist/types/packages/react/src/color-picker-parts.d.ts +58 -0
  14. package/dist/types/packages/react/src/color-picker.d.cts +51 -0
  15. package/dist/types/packages/react/src/color-picker.d.ts +51 -0
  16. package/dist/types/packages/react/src/data-state.d.cts +3 -3
  17. package/dist/types/packages/react/src/data-state.d.ts +3 -3
  18. package/dist/types/packages/react/src/display.d.cts +14 -5
  19. package/dist/types/packages/react/src/display.d.ts +14 -5
  20. package/dist/types/packages/react/src/fab.d.cts +16 -7
  21. package/dist/types/packages/react/src/fab.d.ts +16 -7
  22. package/dist/types/packages/react/src/index.d.cts +4 -0
  23. package/dist/types/packages/react/src/index.d.ts +4 -0
  24. package/dist/types/packages/react/src/kpi-hero.d.cts +53 -0
  25. package/dist/types/packages/react/src/kpi-hero.d.ts +53 -0
  26. package/dist/types/packages/react/src/kpi-row.d.cts +41 -0
  27. package/dist/types/packages/react/src/kpi-row.d.ts +41 -0
  28. package/dist/types/packages/react/src/kpi.d.cts +2 -72
  29. package/dist/types/packages/react/src/kpi.d.ts +2 -72
  30. package/dist/types/packages/react/src/list-context.d.cts +8 -0
  31. package/dist/types/packages/react/src/list-context.d.ts +8 -0
  32. package/dist/types/packages/react/src/list.d.cts +50 -8
  33. package/dist/types/packages/react/src/list.d.ts +50 -8
  34. package/dist/types/packages/react/src/modal.d.cts +5 -2
  35. package/dist/types/packages/react/src/modal.d.ts +5 -2
  36. package/dist/types/packages/react/src/navigation.d.cts +2 -1
  37. package/dist/types/packages/react/src/navigation.d.ts +2 -1
  38. package/dist/types/packages/react/src/number-display.d.cts +2 -0
  39. package/dist/types/packages/react/src/number-display.d.ts +2 -0
  40. package/dist/types/packages/react/src/range-input.d.cts +12 -1
  41. package/dist/types/packages/react/src/range-input.d.ts +12 -1
  42. package/dist/types/packages/react/src/reorder-controls.d.cts +43 -0
  43. package/dist/types/packages/react/src/reorder-controls.d.ts +43 -0
  44. package/dist/types/packages/react/src/skeletons.d.cts +2 -1
  45. package/dist/types/packages/react/src/skeletons.d.ts +2 -1
  46. package/dist/types/packages/react/src/split-pane.d.cts +30 -0
  47. package/dist/types/packages/react/src/split-pane.d.ts +30 -0
  48. package/dist/types/packages/react/src/stacked-bar.d.cts +22 -0
  49. package/dist/types/packages/react/src/stacked-bar.d.ts +22 -0
  50. package/dist/types/packages/react/src/table-cards.d.cts +1 -1
  51. package/dist/types/packages/react/src/table-cards.d.ts +1 -1
  52. package/dist/types/packages/react/src/table-grid.d.cts +1 -1
  53. package/dist/types/packages/react/src/table-grid.d.ts +1 -1
  54. package/dist/types/packages/react/src/zone-gauge.d.cts +28 -0
  55. package/dist/types/packages/react/src/zone-gauge.d.ts +28 -0
  56. package/dist/types/shared/package-runtime/alert-action-size.d.cts +1 -0
  57. package/dist/types/shared/package-runtime/alert-action-size.d.ts +1 -0
  58. package/dist/types/shared/package-runtime/bottom-bar.d.cts +15 -0
  59. package/dist/types/shared/package-runtime/bottom-bar.d.ts +15 -0
  60. package/dist/types/shared/package-runtime/bottom-navigation.d.cts +25 -0
  61. package/dist/types/shared/package-runtime/bottom-navigation.d.ts +25 -0
  62. package/dist/types/shared/package-runtime/card-layout.d.cts +34 -0
  63. package/dist/types/shared/package-runtime/card-layout.d.ts +34 -0
  64. package/dist/types/shared/package-runtime/chart-skeleton.d.cts +1 -1
  65. package/dist/types/shared/package-runtime/chart-skeleton.d.ts +1 -1
  66. package/dist/types/shared/package-runtime/chip-size.d.cts +4 -0
  67. package/dist/types/shared/package-runtime/chip-size.d.ts +4 -0
  68. package/dist/types/shared/package-runtime/color-picker-model.d.cts +51 -0
  69. package/dist/types/shared/package-runtime/color-picker-model.d.ts +51 -0
  70. package/dist/types/shared/package-runtime/color-picker.d.cts +92 -0
  71. package/dist/types/shared/package-runtime/color-picker.d.ts +92 -0
  72. package/dist/types/shared/package-runtime/color.d.cts +22 -0
  73. package/dist/types/shared/package-runtime/color.d.ts +22 -0
  74. package/dist/types/shared/package-runtime/distribution.d.cts +133 -0
  75. package/dist/types/shared/package-runtime/distribution.d.ts +133 -0
  76. package/dist/types/shared/package-runtime/empty-geometry.d.cts +19 -0
  77. package/dist/types/shared/package-runtime/empty-geometry.d.ts +19 -0
  78. package/dist/types/shared/package-runtime/kpi.d.cts +89 -0
  79. package/dist/types/shared/package-runtime/kpi.d.ts +89 -0
  80. package/dist/types/shared/package-runtime/layer-state.d.cts +2 -1
  81. package/dist/types/shared/package-runtime/layer-state.d.ts +2 -1
  82. package/dist/types/shared/package-runtime/list-leading.d.cts +38 -0
  83. package/dist/types/shared/package-runtime/list-leading.d.ts +38 -0
  84. package/dist/types/shared/package-runtime/list-row.d.cts +115 -4
  85. package/dist/types/shared/package-runtime/list-row.d.ts +115 -4
  86. package/dist/types/shared/package-runtime/market-layout.d.cts +3 -1
  87. package/dist/types/shared/package-runtime/market-layout.d.ts +3 -1
  88. package/dist/types/shared/package-runtime/market-query.d.cts +15 -0
  89. package/dist/types/shared/package-runtime/market-query.d.ts +15 -0
  90. package/dist/types/shared/package-runtime/messages/ko.d.cts +27 -0
  91. package/dist/types/shared/package-runtime/messages/ko.d.ts +27 -0
  92. package/dist/types/shared/package-runtime/messages-context.d.cts +27 -0
  93. package/dist/types/shared/package-runtime/messages-context.d.ts +27 -0
  94. package/dist/types/shared/package-runtime/number-sign.d.cts +9 -0
  95. package/dist/types/shared/package-runtime/number-sign.d.ts +9 -0
  96. package/dist/types/shared/package-runtime/popover-scroll.d.cts +3 -0
  97. package/dist/types/shared/package-runtime/popover-scroll.d.ts +3 -0
  98. package/dist/types/shared/package-runtime/radio-keyboard.d.cts +2 -0
  99. package/dist/types/shared/package-runtime/radio-keyboard.d.ts +2 -0
  100. package/dist/types/shared/package-runtime/reorder-session.d.cts +62 -0
  101. package/dist/types/shared/package-runtime/reorder-session.d.ts +62 -0
  102. package/dist/types/shared/package-runtime/reorder.d.cts +81 -0
  103. package/dist/types/shared/package-runtime/reorder.d.ts +81 -0
  104. package/dist/types/shared/package-runtime/skeleton-text.d.cts +14 -0
  105. package/dist/types/shared/package-runtime/skeleton-text.d.ts +14 -0
  106. package/dist/types/shared/package-runtime/slider-view.d.cts +90 -0
  107. package/dist/types/shared/package-runtime/slider-view.d.ts +90 -0
  108. package/dist/types/shared/package-runtime/split-pane.d.cts +46 -0
  109. package/dist/types/shared/package-runtime/split-pane.d.ts +46 -0
  110. package/dist/types/shared/package-runtime/table-columns.d.cts +28 -0
  111. package/dist/types/shared/package-runtime/table-columns.d.ts +28 -0
  112. package/dist/types/shared/package-runtime/table-groups.d.cts +9 -0
  113. package/dist/types/shared/package-runtime/table-groups.d.ts +9 -0
  114. package/dist/types/shared/package-runtime/table-presentation.d.cts +24 -2
  115. package/dist/types/shared/package-runtime/table-presentation.d.ts +24 -2
  116. package/dist/types/shared/package-runtime/table.d.cts +32 -0
  117. package/dist/types/shared/package-runtime/table.d.ts +32 -0
  118. package/dist/types/shared/package-runtime/use-color-picker.d.cts +51 -0
  119. package/dist/types/shared/package-runtime/use-color-picker.d.ts +51 -0
  120. package/dist/types/shared/package-runtime/use-layer.d.cts +4 -2
  121. package/dist/types/shared/package-runtime/use-layer.d.ts +4 -2
  122. package/dist/types/shared/package-runtime/use-table-group-expansion.d.cts +6 -0
  123. package/dist/types/shared/package-runtime/use-table-group-expansion.d.ts +6 -0
  124. 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.19.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.19.0",
44
+ "@kjun-ui/tokens": "0.21.0",
45
45
  "react-aria-components": "1.21.1",
46
- "@kjun-ui/icons": "0.19.0"
46
+ "@kjun-ui/icons": "0.21.0"
47
47
  },
48
48
  "peerDependencies": {
49
49
  "react": "^19.2.3",