@kjun-ui/react 0.0.0-stage → 0.3.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 (191) hide show
  1. package/README.md +44 -2
  2. package/dist/LICENSE +21 -0
  3. package/dist/Tabler-LICENSE +21 -0
  4. package/dist/index.cjs +6897 -0
  5. package/dist/index.d.cts +1 -0
  6. package/dist/index.d.ts +1 -0
  7. package/dist/index.js +6946 -0
  8. package/dist/styles.css +7695 -0
  9. package/dist/types/packages/react/src/actions.d.cts +58 -0
  10. package/dist/types/packages/react/src/actions.d.ts +58 -0
  11. package/dist/types/packages/react/src/app-navigation.d.cts +35 -0
  12. package/dist/types/packages/react/src/app-navigation.d.ts +35 -0
  13. package/dist/types/packages/react/src/button.d.cts +23 -0
  14. package/dist/types/packages/react/src/button.d.ts +23 -0
  15. package/dist/types/packages/react/src/card.d.cts +18 -0
  16. package/dist/types/packages/react/src/card.d.ts +18 -0
  17. package/dist/types/packages/react/src/chip.d.cts +10 -0
  18. package/dist/types/packages/react/src/chip.d.ts +10 -0
  19. package/dist/types/packages/react/src/collapse.d.cts +5 -0
  20. package/dist/types/packages/react/src/collapse.d.ts +5 -0
  21. package/dist/types/packages/react/src/combobox.d.cts +48 -0
  22. package/dist/types/packages/react/src/combobox.d.ts +48 -0
  23. package/dist/types/packages/react/src/composition.d.cts +6 -0
  24. package/dist/types/packages/react/src/composition.d.ts +6 -0
  25. package/dist/types/packages/react/src/compound-control.d.cts +1 -0
  26. package/dist/types/packages/react/src/compound-control.d.ts +1 -0
  27. package/dist/types/packages/react/src/controls.d.cts +85 -0
  28. package/dist/types/packages/react/src/controls.d.ts +85 -0
  29. package/dist/types/packages/react/src/data-state.d.cts +53 -0
  30. package/dist/types/packages/react/src/data-state.d.ts +53 -0
  31. package/dist/types/packages/react/src/date-picker.d.cts +10 -0
  32. package/dist/types/packages/react/src/date-picker.d.ts +10 -0
  33. package/dist/types/packages/react/src/display.d.cts +55 -0
  34. package/dist/types/packages/react/src/display.d.ts +55 -0
  35. package/dist/types/packages/react/src/drawer.d.cts +18 -0
  36. package/dist/types/packages/react/src/drawer.d.ts +18 -0
  37. package/dist/types/packages/react/src/dropdown.d.cts +41 -0
  38. package/dist/types/packages/react/src/dropdown.d.ts +41 -0
  39. package/dist/types/packages/react/src/feedback-context.d.cts +3 -0
  40. package/dist/types/packages/react/src/feedback-context.d.ts +3 -0
  41. package/dist/types/packages/react/src/feedback.d.cts +7 -0
  42. package/dist/types/packages/react/src/feedback.d.ts +7 -0
  43. package/dist/types/packages/react/src/financial-display.d.cts +86 -0
  44. package/dist/types/packages/react/src/financial-display.d.ts +86 -0
  45. package/dist/types/packages/react/src/financial.d.cts +4 -0
  46. package/dist/types/packages/react/src/financial.d.ts +4 -0
  47. package/dist/types/packages/react/src/floating-panel.d.cts +15 -0
  48. package/dist/types/packages/react/src/floating-panel.d.ts +15 -0
  49. package/dist/types/packages/react/src/index.d.cts +39 -0
  50. package/dist/types/packages/react/src/index.d.ts +39 -0
  51. package/dist/types/packages/react/src/input.d.cts +37 -0
  52. package/dist/types/packages/react/src/input.d.ts +37 -0
  53. package/dist/types/packages/react/src/kpi.d.cts +64 -0
  54. package/dist/types/packages/react/src/kpi.d.ts +64 -0
  55. package/dist/types/packages/react/src/layers.d.cts +4 -0
  56. package/dist/types/packages/react/src/layers.d.ts +4 -0
  57. package/dist/types/packages/react/src/list.d.cts +20 -0
  58. package/dist/types/packages/react/src/list.d.ts +20 -0
  59. package/dist/types/packages/react/src/market-cards.d.cts +2 -0
  60. package/dist/types/packages/react/src/market-cards.d.ts +2 -0
  61. package/dist/types/packages/react/src/market-layout.d.cts +7 -0
  62. package/dist/types/packages/react/src/market-layout.d.ts +7 -0
  63. package/dist/types/packages/react/src/market-list.d.cts +2 -0
  64. package/dist/types/packages/react/src/market-list.d.ts +2 -0
  65. package/dist/types/packages/react/src/market-model.d.cts +109 -0
  66. package/dist/types/packages/react/src/market-model.d.ts +109 -0
  67. package/dist/types/packages/react/src/market-panel.d.cts +5 -0
  68. package/dist/types/packages/react/src/market-panel.d.ts +5 -0
  69. package/dist/types/packages/react/src/market-parts.d.cts +8 -0
  70. package/dist/types/packages/react/src/market-parts.d.ts +8 -0
  71. package/dist/types/packages/react/src/market-skeleton.d.cts +13 -0
  72. package/dist/types/packages/react/src/market-skeleton.d.ts +13 -0
  73. package/dist/types/packages/react/src/market-table.d.cts +2 -0
  74. package/dist/types/packages/react/src/market-table.d.ts +2 -0
  75. package/dist/types/packages/react/src/market.d.cts +7 -0
  76. package/dist/types/packages/react/src/market.d.ts +7 -0
  77. package/dist/types/packages/react/src/media.d.cts +25 -0
  78. package/dist/types/packages/react/src/media.d.ts +25 -0
  79. package/dist/types/packages/react/src/modal.d.cts +46 -0
  80. package/dist/types/packages/react/src/modal.d.ts +46 -0
  81. package/dist/types/packages/react/src/navigation.d.cts +73 -0
  82. package/dist/types/packages/react/src/navigation.d.ts +73 -0
  83. package/dist/types/packages/react/src/number-display.d.cts +44 -0
  84. package/dist/types/packages/react/src/number-display.d.ts +44 -0
  85. package/dist/types/packages/react/src/overlay-host.d.cts +8 -0
  86. package/dist/types/packages/react/src/overlay-host.d.ts +8 -0
  87. package/dist/types/packages/react/src/popover.d.cts +23 -0
  88. package/dist/types/packages/react/src/popover.d.ts +23 -0
  89. package/dist/types/packages/react/src/provider.d.cts +8 -0
  90. package/dist/types/packages/react/src/provider.d.ts +8 -0
  91. package/dist/types/packages/react/src/quantity-stepper.d.cts +18 -0
  92. package/dist/types/packages/react/src/quantity-stepper.d.ts +18 -0
  93. package/dist/types/packages/react/src/range-input.d.cts +31 -0
  94. package/dist/types/packages/react/src/range-input.d.ts +31 -0
  95. package/dist/types/packages/react/src/search-input.d.cts +21 -0
  96. package/dist/types/packages/react/src/search-input.d.ts +21 -0
  97. package/dist/types/packages/react/src/select-control.d.cts +30 -0
  98. package/dist/types/packages/react/src/select-control.d.ts +30 -0
  99. package/dist/types/packages/react/src/select-options.d.cts +2 -0
  100. package/dist/types/packages/react/src/select-options.d.ts +2 -0
  101. package/dist/types/packages/react/src/select.d.cts +10 -0
  102. package/dist/types/packages/react/src/select.d.ts +10 -0
  103. package/dist/types/packages/react/src/skeletons.d.cts +28 -0
  104. package/dist/types/packages/react/src/skeletons.d.ts +28 -0
  105. package/dist/types/packages/react/src/table-cards.d.cts +9 -0
  106. package/dist/types/packages/react/src/table-cards.d.ts +9 -0
  107. package/dist/types/packages/react/src/table-check.d.cts +3 -0
  108. package/dist/types/packages/react/src/table-check.d.ts +3 -0
  109. package/dist/types/packages/react/src/table-grid.d.cts +9 -0
  110. package/dist/types/packages/react/src/table-grid.d.ts +9 -0
  111. package/dist/types/packages/react/src/table-model.d.cts +21 -0
  112. package/dist/types/packages/react/src/table-model.d.ts +21 -0
  113. package/dist/types/packages/react/src/table-toolbar.d.cts +2 -0
  114. package/dist/types/packages/react/src/table-toolbar.d.ts +2 -0
  115. package/dist/types/packages/react/src/table-view.d.cts +2 -0
  116. package/dist/types/packages/react/src/table-view.d.ts +2 -0
  117. package/dist/types/packages/react/src/table.d.cts +3 -0
  118. package/dist/types/packages/react/src/table.d.ts +3 -0
  119. package/dist/types/packages/react/src/time-picker.d.cts +17 -0
  120. package/dist/types/packages/react/src/time-picker.d.ts +17 -0
  121. package/dist/types/packages/react/src/toast-stack.d.cts +6 -0
  122. package/dist/types/packages/react/src/toast-stack.d.ts +6 -0
  123. package/dist/types/packages/react/src/toast.d.cts +5 -0
  124. package/dist/types/packages/react/src/toast.d.ts +5 -0
  125. package/dist/types/packages/react/src/top-navigation-context.d.cts +4 -0
  126. package/dist/types/packages/react/src/top-navigation-context.d.ts +4 -0
  127. package/dist/types/packages/react/src/typography.d.cts +19 -0
  128. package/dist/types/packages/react/src/typography.d.ts +19 -0
  129. package/dist/types/packages/react/src/use-reduced-motion.d.cts +1 -0
  130. package/dist/types/packages/react/src/use-reduced-motion.d.ts +1 -0
  131. package/dist/types/packages/react/src/use-selection-indicator.d.cts +4 -0
  132. package/dist/types/packages/react/src/use-selection-indicator.d.ts +4 -0
  133. package/dist/types/shared/package-runtime/action-size.d.cts +9 -0
  134. package/dist/types/shared/package-runtime/action-size.d.ts +9 -0
  135. package/dist/types/shared/package-runtime/combobox.d.cts +21 -0
  136. package/dist/types/shared/package-runtime/combobox.d.ts +21 -0
  137. package/dist/types/shared/package-runtime/component-icons.d.cts +2 -0
  138. package/dist/types/shared/package-runtime/component-icons.d.ts +2 -0
  139. package/dist/types/shared/package-runtime/content-presence.d.cts +3 -0
  140. package/dist/types/shared/package-runtime/content-presence.d.ts +3 -0
  141. package/dist/types/shared/package-runtime/css-contract.d.cts +5 -0
  142. package/dist/types/shared/package-runtime/css-contract.d.ts +5 -0
  143. package/dist/types/shared/package-runtime/feedback-dialog.d.cts +10 -0
  144. package/dist/types/shared/package-runtime/feedback-dialog.d.ts +10 -0
  145. package/dist/types/shared/package-runtime/feedback-motion.d.cts +11 -0
  146. package/dist/types/shared/package-runtime/feedback-motion.d.ts +11 -0
  147. package/dist/types/shared/package-runtime/form-actions.d.cts +3 -0
  148. package/dist/types/shared/package-runtime/form-actions.d.ts +3 -0
  149. package/dist/types/shared/package-runtime/icon-context.d.cts +14 -0
  150. package/dist/types/shared/package-runtime/icon-context.d.ts +14 -0
  151. package/dist/types/shared/package-runtime/icon-registry.d.cts +10 -0
  152. package/dist/types/shared/package-runtime/icon-registry.d.ts +10 -0
  153. package/dist/types/shared/package-runtime/layer-keyboard.d.cts +3 -0
  154. package/dist/types/shared/package-runtime/layer-keyboard.d.ts +3 -0
  155. package/dist/types/shared/package-runtime/layer-state.d.cts +40 -0
  156. package/dist/types/shared/package-runtime/layer-state.d.ts +40 -0
  157. package/dist/types/shared/package-runtime/market-cards.d.cts +44 -0
  158. package/dist/types/shared/package-runtime/market-cards.d.ts +44 -0
  159. package/dist/types/shared/package-runtime/market-layout.d.cts +40 -0
  160. package/dist/types/shared/package-runtime/market-layout.d.ts +40 -0
  161. package/dist/types/shared/package-runtime/navigation.d.cts +6 -0
  162. package/dist/types/shared/package-runtime/navigation.d.ts +6 -0
  163. package/dist/types/shared/package-runtime/number-motion.d.cts +4 -0
  164. package/dist/types/shared/package-runtime/number-motion.d.ts +4 -0
  165. package/dist/types/shared/package-runtime/options.d.cts +34 -0
  166. package/dist/types/shared/package-runtime/options.d.ts +34 -0
  167. package/dist/types/shared/package-runtime/portal-scope.d.cts +6 -0
  168. package/dist/types/shared/package-runtime/portal-scope.d.ts +6 -0
  169. package/dist/types/shared/package-runtime/relative-time.d.cts +1 -0
  170. package/dist/types/shared/package-runtime/relative-time.d.ts +1 -0
  171. package/dist/types/shared/package-runtime/search-input.d.cts +20 -0
  172. package/dist/types/shared/package-runtime/search-input.d.ts +20 -0
  173. package/dist/types/shared/package-runtime/select.d.cts +10 -0
  174. package/dist/types/shared/package-runtime/select.d.ts +10 -0
  175. package/dist/types/shared/package-runtime/tab-keyboard.d.cts +2 -0
  176. package/dist/types/shared/package-runtime/tab-keyboard.d.ts +2 -0
  177. package/dist/types/shared/package-runtime/table-presentation.d.cts +56 -0
  178. package/dist/types/shared/package-runtime/table-presentation.d.ts +56 -0
  179. package/dist/types/shared/package-runtime/table.d.cts +96 -0
  180. package/dist/types/shared/package-runtime/table.d.ts +96 -0
  181. package/dist/types/shared/package-runtime/toast-layout.d.cts +4 -0
  182. package/dist/types/shared/package-runtime/toast-layout.d.ts +4 -0
  183. package/dist/types/shared/package-runtime/trailing-overflow.d.cts +1 -0
  184. package/dist/types/shared/package-runtime/trailing-overflow.d.ts +1 -0
  185. package/dist/types/shared/package-runtime/use-layer.d.cts +64 -0
  186. package/dist/types/shared/package-runtime/use-layer.d.ts +64 -0
  187. package/dist/types/shared/package-runtime/use-number-motion.d.cts +1 -0
  188. package/dist/types/shared/package-runtime/use-number-motion.d.ts +1 -0
  189. package/dist/types/shared/package-runtime/use-presence.d.cts +4 -0
  190. package/dist/types/shared/package-runtime/use-presence.d.ts +4 -0
  191. package/package.json +50 -4
@@ -0,0 +1,37 @@
1
+ import { type InputSize } from "@kjun-ui/tokens";
2
+ import { type InputHTMLAttributes, type ReactNode } from "react";
3
+ interface FieldContextValue {
4
+ id: string;
5
+ labelId?: string;
6
+ describedBy?: string;
7
+ error?: string;
8
+ required?: boolean;
9
+ }
10
+ export declare const FieldContext: import("react").Context<FieldContextValue | null>;
11
+ export declare const useKjunField: () => FieldContextValue | null;
12
+ export interface DsFormGroupProps {
13
+ label?: string;
14
+ id?: string;
15
+ required?: boolean;
16
+ error?: string;
17
+ hint?: string;
18
+ children: ReactNode;
19
+ }
20
+ export declare function DsFormGroup({ label, id, required, error, hint, children, }: DsFormGroupProps): import("react/jsx-runtime").JSX.Element;
21
+ export interface DsInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "value" | "defaultValue"> {
22
+ size?: InputSize;
23
+ value: string | number;
24
+ error?: boolean;
25
+ errorMessage?: string;
26
+ clearable?: boolean;
27
+ prefixIcon?: string;
28
+ suffixIcon?: string;
29
+ prefix?: ReactNode;
30
+ suffix?: ReactNode;
31
+ ariaLabel?: string;
32
+ onClear?: () => void;
33
+ onValueChange?: (value: string) => void;
34
+ onEnter?: () => void;
35
+ }
36
+ export declare const DsInput: import("react").ForwardRefExoticComponent<DsInputProps & import("react").RefAttributes<HTMLInputElement>>;
37
+ export {};
@@ -0,0 +1,37 @@
1
+ import { type InputSize } from "@kjun-ui/tokens";
2
+ import { type InputHTMLAttributes, type ReactNode } from "react";
3
+ interface FieldContextValue {
4
+ id: string;
5
+ labelId?: string;
6
+ describedBy?: string;
7
+ error?: string;
8
+ required?: boolean;
9
+ }
10
+ export declare const FieldContext: import("react").Context<FieldContextValue | null>;
11
+ export declare const useKjunField: () => FieldContextValue | null;
12
+ export interface DsFormGroupProps {
13
+ label?: string;
14
+ id?: string;
15
+ required?: boolean;
16
+ error?: string;
17
+ hint?: string;
18
+ children: ReactNode;
19
+ }
20
+ export declare function DsFormGroup({ label, id, required, error, hint, children, }: DsFormGroupProps): import("react/jsx-runtime").JSX.Element;
21
+ export interface DsInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "value" | "defaultValue"> {
22
+ size?: InputSize;
23
+ value: string | number;
24
+ error?: boolean;
25
+ errorMessage?: string;
26
+ clearable?: boolean;
27
+ prefixIcon?: string;
28
+ suffixIcon?: string;
29
+ prefix?: ReactNode;
30
+ suffix?: ReactNode;
31
+ ariaLabel?: string;
32
+ onClear?: () => void;
33
+ onValueChange?: (value: string) => void;
34
+ onEnter?: () => void;
35
+ }
36
+ export declare const DsInput: import("react").ForwardRefExoticComponent<DsInputProps & import("react").RefAttributes<HTMLInputElement>>;
37
+ export {};
@@ -0,0 +1,64 @@
1
+ import { type ReactNode } from "react";
2
+ export interface KpiValue {
3
+ label?: string;
4
+ value: number | string;
5
+ decimals?: number;
6
+ prefix?: string;
7
+ suffix?: string;
8
+ semantic?: "price" | "status";
9
+ showSign?: boolean;
10
+ formatter?: (value: number) => string;
11
+ desc?: string;
12
+ descClass?: string;
13
+ valueClass?: string;
14
+ }
15
+ export declare const kpiFormat: (item: KpiValue, value?: string | number) => string;
16
+ export declare const kpiColor: (value: unknown, semantic?: string, neutral?: string) => string;
17
+ export interface DsKpiHeroProps {
18
+ loading?: boolean;
19
+ label: string;
20
+ value: number | string;
21
+ prefix?: string;
22
+ suffix?: string;
23
+ decimals?: number;
24
+ deltaAbsolute?: number | null;
25
+ deltaPercent?: number | null;
26
+ deltaDescription?: string;
27
+ secondary?: KpiValue[];
28
+ animated?: boolean;
29
+ size?: "md" | "sm";
30
+ aside?: ReactNode;
31
+ formatter?: (value: number) => string;
32
+ deltaFormatter?: (value: number, kind: "absolute" | "percent") => string;
33
+ renderSecondary?: (item: KpiValue, index: number) => ReactNode;
34
+ }
35
+ export declare function DsKpiHero(props: DsKpiHeroProps): import("react/jsx-runtime").JSX.Element;
36
+ export interface KpiRowItem extends KpiValue {
37
+ loading?: boolean;
38
+ clickable?: boolean;
39
+ mobileFull?: boolean;
40
+ mobileSecondary?: boolean;
41
+ mobileNeutral?: boolean;
42
+ valueKind?: "text" | "number";
43
+ animated?: boolean;
44
+ valueSegments?: {
45
+ text: string;
46
+ label?: string;
47
+ separator?: boolean;
48
+ class?: string;
49
+ }[];
50
+ badge?: {
51
+ text: string;
52
+ variant?: "warning" | "success" | "danger" | "price-up" | "price-down" | "info" | "neutral";
53
+ };
54
+ badgePlacement?: "label" | "value";
55
+ }
56
+ export interface DsKpiRowProps {
57
+ loading?: boolean;
58
+ items: KpiRowItem[];
59
+ size?: "md" | "sm";
60
+ mobileSummary?: boolean;
61
+ onItemClick?: (item: KpiRowItem, index: number) => void;
62
+ renderValue?: (item: KpiRowItem, index: number) => ReactNode;
63
+ }
64
+ export declare function DsKpiRow({ loading, items, size, mobileSummary, onItemClick, renderValue, }: DsKpiRowProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,64 @@
1
+ import { type ReactNode } from "react";
2
+ export interface KpiValue {
3
+ label?: string;
4
+ value: number | string;
5
+ decimals?: number;
6
+ prefix?: string;
7
+ suffix?: string;
8
+ semantic?: "price" | "status";
9
+ showSign?: boolean;
10
+ formatter?: (value: number) => string;
11
+ desc?: string;
12
+ descClass?: string;
13
+ valueClass?: string;
14
+ }
15
+ export declare const kpiFormat: (item: KpiValue, value?: string | number) => string;
16
+ export declare const kpiColor: (value: unknown, semantic?: string, neutral?: string) => string;
17
+ export interface DsKpiHeroProps {
18
+ loading?: boolean;
19
+ label: string;
20
+ value: number | string;
21
+ prefix?: string;
22
+ suffix?: string;
23
+ decimals?: number;
24
+ deltaAbsolute?: number | null;
25
+ deltaPercent?: number | null;
26
+ deltaDescription?: string;
27
+ secondary?: KpiValue[];
28
+ animated?: boolean;
29
+ size?: "md" | "sm";
30
+ aside?: ReactNode;
31
+ formatter?: (value: number) => string;
32
+ deltaFormatter?: (value: number, kind: "absolute" | "percent") => string;
33
+ renderSecondary?: (item: KpiValue, index: number) => ReactNode;
34
+ }
35
+ export declare function DsKpiHero(props: DsKpiHeroProps): import("react/jsx-runtime").JSX.Element;
36
+ export interface KpiRowItem extends KpiValue {
37
+ loading?: boolean;
38
+ clickable?: boolean;
39
+ mobileFull?: boolean;
40
+ mobileSecondary?: boolean;
41
+ mobileNeutral?: boolean;
42
+ valueKind?: "text" | "number";
43
+ animated?: boolean;
44
+ valueSegments?: {
45
+ text: string;
46
+ label?: string;
47
+ separator?: boolean;
48
+ class?: string;
49
+ }[];
50
+ badge?: {
51
+ text: string;
52
+ variant?: "warning" | "success" | "danger" | "price-up" | "price-down" | "info" | "neutral";
53
+ };
54
+ badgePlacement?: "label" | "value";
55
+ }
56
+ export interface DsKpiRowProps {
57
+ loading?: boolean;
58
+ items: KpiRowItem[];
59
+ size?: "md" | "sm";
60
+ mobileSummary?: boolean;
61
+ onItemClick?: (item: KpiRowItem, index: number) => void;
62
+ renderValue?: (item: KpiRowItem, index: number) => ReactNode;
63
+ }
64
+ export declare function DsKpiRow({ loading, items, size, mobileSummary, onItemClick, renderValue, }: DsKpiRowProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ export { FloatingPanel, type Placement } from "./floating-panel.cjs";
2
+ export { DsPopover, DsTooltip, type DsPopoverProps, type DsTooltipProps } from "./popover.cjs";
3
+ export { DsDropdown, DsDropdownItem, DsDropdownDivider, DsMenuButton, type DsDropdownProps, type DsDropdownItemProps, type DsMenuButtonProps } from "./dropdown.cjs";
4
+ export { DsDrawer, type DsDrawerProps } from "./drawer.cjs";
@@ -0,0 +1,4 @@
1
+ export { FloatingPanel, type Placement } from "./floating-panel.js";
2
+ export { DsPopover, DsTooltip, type DsPopoverProps, type DsTooltipProps } from "./popover.js";
3
+ export { DsDropdown, DsDropdownItem, DsDropdownDivider, DsMenuButton, type DsDropdownProps, type DsDropdownItemProps, type DsMenuButtonProps } from "./dropdown.js";
4
+ export { DsDrawer, type DsDrawerProps } from "./drawer.js";
@@ -0,0 +1,20 @@
1
+ import { type MouseEvent, type ReactNode } from "react";
2
+ export interface DsListRowProps {
3
+ title: string;
4
+ description?: string;
5
+ leading?: ReactNode;
6
+ trailing?: ReactNode;
7
+ actions?: ReactNode;
8
+ href?: string;
9
+ disabled?: boolean;
10
+ onClick?: (event: MouseEvent<HTMLElement>) => void;
11
+ }
12
+ export declare function DsListRow({ title, description, leading, trailing, actions, href, disabled, onClick }: DsListRowProps): import("react/jsx-runtime").JSX.Element;
13
+ export interface DsListSectionProps {
14
+ title?: string;
15
+ description?: string;
16
+ actions?: ReactNode;
17
+ children: ReactNode;
18
+ ariaLabel?: string;
19
+ }
20
+ export declare function DsListSection({ title, description, actions, children, ariaLabel }: DsListSectionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,20 @@
1
+ import { type MouseEvent, type ReactNode } from "react";
2
+ export interface DsListRowProps {
3
+ title: string;
4
+ description?: string;
5
+ leading?: ReactNode;
6
+ trailing?: ReactNode;
7
+ actions?: ReactNode;
8
+ href?: string;
9
+ disabled?: boolean;
10
+ onClick?: (event: MouseEvent<HTMLElement>) => void;
11
+ }
12
+ export declare function DsListRow({ title, description, leading, trailing, actions, href, disabled, onClick }: DsListRowProps): import("react/jsx-runtime").JSX.Element;
13
+ export interface DsListSectionProps {
14
+ title?: string;
15
+ description?: string;
16
+ actions?: ReactNode;
17
+ children: ReactNode;
18
+ ariaLabel?: string;
19
+ }
20
+ export declare function DsListSection({ title, description, actions, children, ariaLabel }: DsListSectionProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DsMarketCardsProps } from "./market-model.cjs";
2
+ export declare function DsMarketCards<Row extends object = Record<string, unknown>>(props: DsMarketCardsProps<Row>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DsMarketCardsProps } from "./market-model.js";
2
+ export declare function DsMarketCards<Row extends object = Record<string, unknown>>(props: DsMarketCardsProps<Row>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { type LayoutColumn, webMarketLayout } from "../../../shared/package-runtime/market-layout.cjs";
2
+ export { webMarketLayout };
3
+ export declare function MarketColumns({ columns, showActions, widthClass }: {
4
+ columns: LayoutColumn[];
5
+ showActions: boolean;
6
+ widthClass?: (column: LayoutColumn) => string;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import { type LayoutColumn, webMarketLayout } from "../../../shared/package-runtime/market-layout.js";
2
+ export { webMarketLayout };
3
+ export declare function MarketColumns({ columns, showActions, widthClass }: {
4
+ columns: LayoutColumn[];
5
+ showActions: boolean;
6
+ widthClass?: (column: LayoutColumn) => string;
7
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DsMarketSimpleListProps } from "./market-model.cjs";
2
+ export declare function DsMarketSimpleList<Row extends object = Record<string, unknown>>(props: DsMarketSimpleListProps<Row>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DsMarketSimpleListProps } from "./market-model.js";
2
+ export declare function DsMarketSimpleList<Row extends object = Record<string, unknown>>(props: DsMarketSimpleListProps<Row>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,109 @@
1
+ import { type QueryDisplayProps } from "@kjun-ui/tokens";
2
+ import { type ReactNode } from "react";
3
+ import { type MarketCardsModelProps, type MarketMetric } from "../../../shared/package-runtime/market-cards.cjs";
4
+ export type { MarketMetric } from "../../../shared/package-runtime/market-cards.cjs";
5
+ export interface MarketPagination {
6
+ page: number;
7
+ size: number;
8
+ total: number;
9
+ }
10
+ export interface MarketBaseProps<Row extends object> extends QueryDisplayProps {
11
+ rows?: Row[];
12
+ rowKey?: string;
13
+ interestKeys?: ReadonlySet<unknown>;
14
+ favoriteKeys?: ReadonlySet<unknown>;
15
+ pagination?: MarketPagination | null;
16
+ primaryLabel?: (row: Row) => string;
17
+ subMeta?: (row: Row) => string;
18
+ emptyMessage?: string;
19
+ emptySubMessage?: string;
20
+ showFooter?: boolean;
21
+ calculatedAt?: string | null;
22
+ footerNote?: string;
23
+ totalCount?: number;
24
+ unitLabel?: string;
25
+ formatDate?: (value: string) => string;
26
+ renderIdentity?: (row: Row, content: ReactNode) => ReactNode;
27
+ renderNamePrefix?: (row: Row) => ReactNode;
28
+ renderNameSuffix?: (row: Row) => ReactNode;
29
+ renderSubMeta?: (row: Row) => ReactNode;
30
+ onPageChange?: (page: number) => void;
31
+ onRowClick?: (row: Row) => void;
32
+ onRetry?: () => void;
33
+ }
34
+ export interface MarketColumn {
35
+ key: string;
36
+ label: string;
37
+ type?: string;
38
+ align?: "left" | "right" | "center";
39
+ width?: number | string;
40
+ sortable?: boolean;
41
+ defaultSort?: boolean;
42
+ flash?: "price" | "change";
43
+ weight?: string;
44
+ }
45
+ export type MarketFormatter<Row extends object> = (value: unknown, format: string, context: {
46
+ currency: string;
47
+ row: Row;
48
+ column?: MarketColumn;
49
+ }) => string;
50
+ export interface DsMarketSimpleListProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
51
+ priceValue: (row: Row) => number | null;
52
+ changeValue: (row: Row) => number | null;
53
+ changeLoading?: (row: Row) => boolean;
54
+ priceFormatter: (value: number) => string;
55
+ closingPrice?: boolean;
56
+ renderPricePrefix?: (row: Row) => ReactNode;
57
+ }
58
+ export interface DsMarketTableProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
59
+ columns: MarketColumn[];
60
+ cellLoading?: (row: Row, column: MarketColumn) => boolean;
61
+ showActions?: boolean;
62
+ togglingInterest?: unknown;
63
+ togglingFavorite?: unknown;
64
+ sortKey?: string | null;
65
+ sortOrder?: "asc" | "desc";
66
+ priceFormatter?: (value: number) => string;
67
+ currency?: string;
68
+ embedded?: boolean;
69
+ formatMetric?: MarketFormatter<Row>;
70
+ renderCell?: (row: Row, column: MarketColumn) => ReactNode;
71
+ onSort?: (key: string) => void;
72
+ onToggleInterest?: (row: Row) => void;
73
+ onToggleFavorite?: (row: Row) => void;
74
+ }
75
+ export interface DsMarketCardsProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row>, MarketCardsModelProps {
76
+ columns: MarketColumn[];
77
+ sortOrder?: "asc" | "desc";
78
+ currency?: string;
79
+ changeMetricKey?: string;
80
+ priceMetricKeys?: string[];
81
+ metricLoading?: (row: Row, key: string) => boolean;
82
+ formatMetric?: MarketFormatter<Row>;
83
+ renderMetricPrefix?: (row: Row, key: string, isPrice: boolean) => ReactNode;
84
+ renderList?: (state: {
85
+ selectedKey: string;
86
+ selectedPill: MarketMetric | undefined;
87
+ metricDisplay: (row: Row) => string;
88
+ }) => ReactNode;
89
+ }
90
+ export declare function useMarketCards<Row extends object>(props: DsMarketCardsProps<Row>): {
91
+ pills: {
92
+ sortKey: string | null | undefined;
93
+ isDefaultSort: boolean | undefined;
94
+ label: string;
95
+ format?: string;
96
+ formatter?: (value: unknown) => string;
97
+ key: string;
98
+ }[];
99
+ key: string;
100
+ pill: {
101
+ sortKey: string | null | undefined;
102
+ isDefaultSort: boolean | undefined;
103
+ label: string;
104
+ format?: string;
105
+ formatter?: (value: unknown) => string;
106
+ key: string;
107
+ };
108
+ select: (key: string) => void;
109
+ };
@@ -0,0 +1,109 @@
1
+ import { type QueryDisplayProps } from "@kjun-ui/tokens";
2
+ import { type ReactNode } from "react";
3
+ import { type MarketCardsModelProps, type MarketMetric } from "../../../shared/package-runtime/market-cards.js";
4
+ export type { MarketMetric } from "../../../shared/package-runtime/market-cards.js";
5
+ export interface MarketPagination {
6
+ page: number;
7
+ size: number;
8
+ total: number;
9
+ }
10
+ export interface MarketBaseProps<Row extends object> extends QueryDisplayProps {
11
+ rows?: Row[];
12
+ rowKey?: string;
13
+ interestKeys?: ReadonlySet<unknown>;
14
+ favoriteKeys?: ReadonlySet<unknown>;
15
+ pagination?: MarketPagination | null;
16
+ primaryLabel?: (row: Row) => string;
17
+ subMeta?: (row: Row) => string;
18
+ emptyMessage?: string;
19
+ emptySubMessage?: string;
20
+ showFooter?: boolean;
21
+ calculatedAt?: string | null;
22
+ footerNote?: string;
23
+ totalCount?: number;
24
+ unitLabel?: string;
25
+ formatDate?: (value: string) => string;
26
+ renderIdentity?: (row: Row, content: ReactNode) => ReactNode;
27
+ renderNamePrefix?: (row: Row) => ReactNode;
28
+ renderNameSuffix?: (row: Row) => ReactNode;
29
+ renderSubMeta?: (row: Row) => ReactNode;
30
+ onPageChange?: (page: number) => void;
31
+ onRowClick?: (row: Row) => void;
32
+ onRetry?: () => void;
33
+ }
34
+ export interface MarketColumn {
35
+ key: string;
36
+ label: string;
37
+ type?: string;
38
+ align?: "left" | "right" | "center";
39
+ width?: number | string;
40
+ sortable?: boolean;
41
+ defaultSort?: boolean;
42
+ flash?: "price" | "change";
43
+ weight?: string;
44
+ }
45
+ export type MarketFormatter<Row extends object> = (value: unknown, format: string, context: {
46
+ currency: string;
47
+ row: Row;
48
+ column?: MarketColumn;
49
+ }) => string;
50
+ export interface DsMarketSimpleListProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
51
+ priceValue: (row: Row) => number | null;
52
+ changeValue: (row: Row) => number | null;
53
+ changeLoading?: (row: Row) => boolean;
54
+ priceFormatter: (value: number) => string;
55
+ closingPrice?: boolean;
56
+ renderPricePrefix?: (row: Row) => ReactNode;
57
+ }
58
+ export interface DsMarketTableProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
59
+ columns: MarketColumn[];
60
+ cellLoading?: (row: Row, column: MarketColumn) => boolean;
61
+ showActions?: boolean;
62
+ togglingInterest?: unknown;
63
+ togglingFavorite?: unknown;
64
+ sortKey?: string | null;
65
+ sortOrder?: "asc" | "desc";
66
+ priceFormatter?: (value: number) => string;
67
+ currency?: string;
68
+ embedded?: boolean;
69
+ formatMetric?: MarketFormatter<Row>;
70
+ renderCell?: (row: Row, column: MarketColumn) => ReactNode;
71
+ onSort?: (key: string) => void;
72
+ onToggleInterest?: (row: Row) => void;
73
+ onToggleFavorite?: (row: Row) => void;
74
+ }
75
+ export interface DsMarketCardsProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row>, MarketCardsModelProps {
76
+ columns: MarketColumn[];
77
+ sortOrder?: "asc" | "desc";
78
+ currency?: string;
79
+ changeMetricKey?: string;
80
+ priceMetricKeys?: string[];
81
+ metricLoading?: (row: Row, key: string) => boolean;
82
+ formatMetric?: MarketFormatter<Row>;
83
+ renderMetricPrefix?: (row: Row, key: string, isPrice: boolean) => ReactNode;
84
+ renderList?: (state: {
85
+ selectedKey: string;
86
+ selectedPill: MarketMetric | undefined;
87
+ metricDisplay: (row: Row) => string;
88
+ }) => ReactNode;
89
+ }
90
+ export declare function useMarketCards<Row extends object>(props: DsMarketCardsProps<Row>): {
91
+ pills: {
92
+ sortKey: string | null | undefined;
93
+ isDefaultSort: boolean | undefined;
94
+ label: string;
95
+ format?: string;
96
+ formatter?: (value: unknown) => string;
97
+ key: string;
98
+ }[];
99
+ key: string;
100
+ pill: {
101
+ sortKey: string | null | undefined;
102
+ isDefaultSort: boolean | undefined;
103
+ label: string;
104
+ format?: string;
105
+ formatter?: (value: unknown) => string;
106
+ key: string;
107
+ };
108
+ select: (key: string) => void;
109
+ };
@@ -0,0 +1,5 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function DsMarketListPanel({ controls, children, }: {
3
+ controls?: ReactNode;
4
+ children: ReactNode;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { type ReactNode } from "react";
2
+ export declare function DsMarketListPanel({ controls, children, }: {
3
+ controls?: ReactNode;
4
+ children: ReactNode;
5
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { MarketBaseProps } from "./market-model.cjs";
2
+ export declare function MarketIdentity<Row extends object>({ row, props, }: {
3
+ row: Row;
4
+ props: MarketBaseProps<Row>;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export declare function MarketFooter<Row extends object>({ props, }: {
7
+ props: MarketBaseProps<Row>;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { MarketBaseProps } from "./market-model.js";
2
+ export declare function MarketIdentity<Row extends object>({ row, props, }: {
3
+ row: Row;
4
+ props: MarketBaseProps<Row>;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export declare function MarketFooter<Row extends object>({ props, }: {
7
+ props: MarketBaseProps<Row>;
8
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ export interface DsMarketTableSkeletonProps {
2
+ columns?: ({
3
+ key?: string;
4
+ label?: string;
5
+ width?: string | number;
6
+ align?: "left" | "right" | "center";
7
+ } | string)[];
8
+ rows?: number;
9
+ showActions?: boolean;
10
+ alignClass?: (align: unknown) => string;
11
+ widthClass?: (column: unknown) => string;
12
+ }
13
+ export declare function DsMarketTableSkeleton({ columns, rows, showActions, alignClass, widthClass }: DsMarketTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
1
+ export interface DsMarketTableSkeletonProps {
2
+ columns?: ({
3
+ key?: string;
4
+ label?: string;
5
+ width?: string | number;
6
+ align?: "left" | "right" | "center";
7
+ } | string)[];
8
+ rows?: number;
9
+ showActions?: boolean;
10
+ alignClass?: (align: unknown) => string;
11
+ widthClass?: (column: unknown) => string;
12
+ }
13
+ export declare function DsMarketTableSkeleton({ columns, rows, showActions, alignClass, widthClass }: DsMarketTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DsMarketTableProps } from "./market-model.cjs";
2
+ export declare function DsMarketTable<Row extends object = Record<string, unknown>>(props: DsMarketTableProps<Row>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { DsMarketTableProps } from "./market-model.js";
2
+ export declare function DsMarketTable<Row extends object = Record<string, unknown>>(props: DsMarketTableProps<Row>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ export { DsMarketCards } from "./market-cards.cjs";
2
+ export { DsMarketSimpleList } from "./market-list.cjs";
3
+ export { useMarketCards } from "./market-model.cjs";
4
+ export type { DsMarketCardsProps, DsMarketSimpleListProps, DsMarketTableProps, MarketBaseProps, MarketColumn, MarketFormatter, MarketMetric, MarketPagination } from "./market-model.cjs";
5
+ export { DsMarketListPanel } from "./market-panel.cjs";
6
+ export { MarketIdentity } from "./market-parts.cjs";
7
+ export { DsMarketTable } from "./market-table.cjs";
@@ -0,0 +1,7 @@
1
+ export { DsMarketCards } from "./market-cards.js";
2
+ export { DsMarketSimpleList } from "./market-list.js";
3
+ export { useMarketCards } from "./market-model.js";
4
+ export type { DsMarketCardsProps, DsMarketSimpleListProps, DsMarketTableProps, MarketBaseProps, MarketColumn, MarketFormatter, MarketMetric, MarketPagination } from "./market-model.js";
5
+ export { DsMarketListPanel } from "./market-panel.js";
6
+ export { MarketIdentity } from "./market-parts.js";
7
+ export { DsMarketTable } from "./market-table.js";
@@ -0,0 +1,25 @@
1
+ import { type ReactNode } from "react";
2
+ export interface DsImageProps {
3
+ src?: string;
4
+ alt: string;
5
+ decorative?: boolean;
6
+ aspectRatio?: number;
7
+ fit?: "cover" | "contain";
8
+ fallback?: ReactNode;
9
+ lazy?: boolean;
10
+ onLoad?: () => void;
11
+ onError?: () => void;
12
+ }
13
+ export declare function DsImage({ src, alt, decorative, aspectRatio, fit, fallback, lazy, onLoad, onError }: DsImageProps): import("react/jsx-runtime").JSX.Element;
14
+ export interface DsAvatarProps {
15
+ src?: string;
16
+ name?: string;
17
+ alt?: string;
18
+ decorative?: boolean;
19
+ size?: "sm" | "md" | "lg";
20
+ shape?: "circle" | "square";
21
+ fallback?: ReactNode;
22
+ onLoad?: () => void;
23
+ onError?: () => void;
24
+ }
25
+ export declare function DsAvatar({ src, name, alt, decorative, size, shape, fallback, onLoad, onError }: DsAvatarProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,25 @@
1
+ import { type ReactNode } from "react";
2
+ export interface DsImageProps {
3
+ src?: string;
4
+ alt: string;
5
+ decorative?: boolean;
6
+ aspectRatio?: number;
7
+ fit?: "cover" | "contain";
8
+ fallback?: ReactNode;
9
+ lazy?: boolean;
10
+ onLoad?: () => void;
11
+ onError?: () => void;
12
+ }
13
+ export declare function DsImage({ src, alt, decorative, aspectRatio, fit, fallback, lazy, onLoad, onError }: DsImageProps): import("react/jsx-runtime").JSX.Element;
14
+ export interface DsAvatarProps {
15
+ src?: string;
16
+ name?: string;
17
+ alt?: string;
18
+ decorative?: boolean;
19
+ size?: "sm" | "md" | "lg";
20
+ shape?: "circle" | "square";
21
+ fallback?: ReactNode;
22
+ onLoad?: () => void;
23
+ onError?: () => void;
24
+ }
25
+ export declare function DsAvatar({ src, name, alt, decorative, size, shape, fallback, onLoad, onError }: DsAvatarProps): import("react/jsx-runtime").JSX.Element;