@kjun-ui/react 0.17.0 → 0.19.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 +4267 -1765
- package/dist/index.js +4272 -1767
- package/dist/styles.css +1612 -577
- package/dist/types/packages/react/src/actions.d.cts +12 -3
- package/dist/types/packages/react/src/actions.d.ts +12 -3
- package/dist/types/packages/react/src/app-navigation.d.cts +31 -8
- package/dist/types/packages/react/src/app-navigation.d.ts +31 -8
- package/dist/types/packages/react/src/calendar.d.cts +30 -0
- package/dist/types/packages/react/src/calendar.d.ts +30 -0
- package/dist/types/packages/react/src/carousel.d.cts +39 -0
- package/dist/types/packages/react/src/carousel.d.ts +39 -0
- package/dist/types/packages/react/src/controls.d.cts +16 -11
- package/dist/types/packages/react/src/controls.d.ts +16 -11
- package/dist/types/packages/react/src/date-picker.d.cts +34 -6
- package/dist/types/packages/react/src/date-picker.d.ts +34 -6
- package/dist/types/packages/react/src/display.d.cts +15 -3
- package/dist/types/packages/react/src/display.d.ts +15 -3
- package/dist/types/packages/react/src/drawer.d.cts +3 -5
- package/dist/types/packages/react/src/drawer.d.ts +3 -5
- package/dist/types/packages/react/src/dropdown.d.cts +35 -3
- package/dist/types/packages/react/src/dropdown.d.ts +35 -3
- package/dist/types/packages/react/src/fab.d.cts +3 -3
- package/dist/types/packages/react/src/fab.d.ts +3 -3
- package/dist/types/packages/react/src/feedback.d.cts +12 -3
- package/dist/types/packages/react/src/feedback.d.ts +12 -3
- package/dist/types/packages/react/src/financial-display.d.cts +10 -1
- package/dist/types/packages/react/src/financial-display.d.ts +10 -1
- package/dist/types/packages/react/src/financial.d.cts +2 -2
- package/dist/types/packages/react/src/financial.d.ts +2 -2
- package/dist/types/packages/react/src/index.d.cts +10 -6
- package/dist/types/packages/react/src/index.d.ts +10 -6
- package/dist/types/packages/react/src/layers.d.cts +1 -1
- package/dist/types/packages/react/src/layers.d.ts +1 -1
- package/dist/types/packages/react/src/layout-primitives.d.cts +24 -24
- package/dist/types/packages/react/src/layout-primitives.d.ts +24 -24
- package/dist/types/packages/react/src/list.d.cts +27 -4
- package/dist/types/packages/react/src/list.d.ts +27 -4
- package/dist/types/packages/react/src/market-model.d.cts +8 -1
- package/dist/types/packages/react/src/market-model.d.ts +8 -1
- package/dist/types/packages/react/src/modal.d.cts +3 -1
- package/dist/types/packages/react/src/modal.d.ts +3 -1
- package/dist/types/packages/react/src/navigation.d.cts +24 -42
- package/dist/types/packages/react/src/navigation.d.ts +24 -42
- package/dist/types/packages/react/src/number-display.d.cts +12 -12
- package/dist/types/packages/react/src/number-display.d.ts +12 -12
- package/dist/types/packages/react/src/popover.d.cts +9 -4
- package/dist/types/packages/react/src/popover.d.ts +9 -4
- package/dist/types/packages/react/src/provider.d.cts +4 -1
- package/dist/types/packages/react/src/provider.d.ts +4 -1
- package/dist/types/packages/react/src/select-control.d.cts +3 -1
- package/dist/types/packages/react/src/select-control.d.ts +3 -1
- package/dist/types/packages/react/src/select.d.cts +2 -2
- package/dist/types/packages/react/src/select.d.ts +2 -2
- package/dist/types/packages/react/src/skeleton-phase.d.cts +2 -0
- package/dist/types/packages/react/src/skeleton-phase.d.ts +2 -0
- package/dist/types/packages/react/src/skeletons.d.cts +19 -4
- package/dist/types/packages/react/src/skeletons.d.ts +19 -4
- package/dist/types/packages/react/src/table-cards.d.cts +6 -3
- package/dist/types/packages/react/src/table-cards.d.ts +6 -3
- 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/table-list.d.cts +10 -0
- package/dist/types/packages/react/src/table-list.d.ts +10 -0
- package/dist/types/packages/react/src/table-model.d.cts +2 -0
- package/dist/types/packages/react/src/table-model.d.ts +2 -0
- package/dist/types/packages/react/src/table-toolbar.d.cts +1 -1
- package/dist/types/packages/react/src/table-toolbar.d.ts +1 -1
- package/dist/types/packages/react/src/table-totals.d.cts +5 -0
- package/dist/types/packages/react/src/table-totals.d.ts +5 -0
- package/dist/types/packages/react/src/tabs.d.cts +38 -0
- package/dist/types/packages/react/src/tabs.d.ts +38 -0
- package/dist/types/packages/react/src/textarea.d.cts +29 -0
- package/dist/types/packages/react/src/textarea.d.ts +29 -0
- package/dist/types/packages/react/src/time-picker.d.cts +10 -1
- package/dist/types/packages/react/src/time-picker.d.ts +10 -1
- package/dist/types/packages/react/src/toast-stack.d.cts +7 -2
- package/dist/types/packages/react/src/toast-stack.d.ts +7 -2
- package/dist/types/shared/package-runtime/accordion-state.d.cts +11 -0
- package/dist/types/shared/package-runtime/accordion-state.d.ts +11 -0
- package/dist/types/shared/package-runtime/action-size.d.cts +1 -1
- package/dist/types/shared/package-runtime/action-size.d.ts +1 -1
- package/dist/types/shared/package-runtime/alert-action-size.d.cts +2 -0
- package/dist/types/shared/package-runtime/alert-action-size.d.ts +2 -0
- package/dist/types/shared/package-runtime/badge-tone.d.cts +59 -0
- package/dist/types/shared/package-runtime/badge-tone.d.ts +59 -0
- package/dist/types/shared/package-runtime/breadcrumb.d.cts +20 -0
- package/dist/types/shared/package-runtime/breadcrumb.d.ts +20 -0
- package/dist/types/shared/package-runtime/calendar.d.cts +106 -0
- package/dist/types/shared/package-runtime/calendar.d.ts +106 -0
- package/dist/types/shared/package-runtime/carousel-scroll.d.cts +22 -0
- package/dist/types/shared/package-runtime/carousel-scroll.d.ts +22 -0
- package/dist/types/shared/package-runtime/carousel.d.cts +47 -0
- package/dist/types/shared/package-runtime/carousel.d.ts +47 -0
- package/dist/types/shared/package-runtime/center-option.d.cts +1 -0
- package/dist/types/shared/package-runtime/center-option.d.ts +1 -0
- package/dist/types/shared/package-runtime/chart-skeleton.d.cts +15 -3
- package/dist/types/shared/package-runtime/chart-skeleton.d.ts +15 -3
- package/dist/types/shared/package-runtime/drawer-geometry.d.cts +2 -3
- package/dist/types/shared/package-runtime/drawer-geometry.d.ts +2 -3
- package/dist/types/shared/package-runtime/feedback-dialog.d.cts +5 -4
- package/dist/types/shared/package-runtime/feedback-dialog.d.ts +5 -4
- package/dist/types/shared/package-runtime/feedback-motion.d.cts +2 -5
- package/dist/types/shared/package-runtime/feedback-motion.d.ts +2 -5
- package/dist/types/shared/package-runtime/feedback-prompt.d.cts +58 -0
- package/dist/types/shared/package-runtime/feedback-prompt.d.ts +58 -0
- package/dist/types/shared/package-runtime/list-row.d.cts +14 -0
- package/dist/types/shared/package-runtime/list-row.d.ts +14 -0
- package/dist/types/shared/package-runtime/market-layout.d.cts +0 -1
- package/dist/types/shared/package-runtime/market-layout.d.ts +0 -1
- package/dist/types/shared/package-runtime/messages/ko.d.cts +45 -5
- package/dist/types/shared/package-runtime/messages/ko.d.ts +45 -5
- package/dist/types/shared/package-runtime/messages-context.d.cts +45 -5
- package/dist/types/shared/package-runtime/messages-context.d.ts +45 -5
- package/dist/types/shared/package-runtime/navigation-badge.d.cts +12 -0
- package/dist/types/shared/package-runtime/navigation-badge.d.ts +12 -0
- package/dist/types/shared/package-runtime/navigation.d.cts +1 -1
- package/dist/types/shared/package-runtime/navigation.d.ts +1 -1
- package/dist/types/shared/package-runtime/safe-area.d.cts +20 -0
- package/dist/types/shared/package-runtime/safe-area.d.ts +20 -0
- package/dist/types/shared/package-runtime/scroll-fade.d.cts +25 -0
- package/dist/types/shared/package-runtime/scroll-fade.d.ts +25 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.cts +12 -0
- package/dist/types/shared/package-runtime/skeleton-text.d.ts +12 -0
- package/dist/types/shared/package-runtime/sparkline.d.cts +58 -0
- package/dist/types/shared/package-runtime/sparkline.d.ts +58 -0
- package/dist/types/shared/package-runtime/stable-value.d.cts +3 -0
- package/dist/types/shared/package-runtime/stable-value.d.ts +3 -0
- package/dist/types/shared/package-runtime/table-groups.d.cts +11 -0
- package/dist/types/shared/package-runtime/table-groups.d.ts +11 -0
- package/dist/types/shared/package-runtime/table-model.d.cts +25 -2
- package/dist/types/shared/package-runtime/table-model.d.ts +25 -2
- package/dist/types/shared/package-runtime/table-presentation.d.cts +67 -5
- package/dist/types/shared/package-runtime/table-presentation.d.ts +67 -5
- package/dist/types/shared/package-runtime/table.d.cts +24 -2
- package/dist/types/shared/package-runtime/table.d.ts +24 -2
- package/dist/types/shared/package-runtime/textarea-grow.d.cts +1 -0
- package/dist/types/shared/package-runtime/textarea-grow.d.ts +1 -0
- package/dist/types/shared/package-runtime/textarea.d.cts +53 -0
- package/dist/types/shared/package-runtime/textarea.d.ts +53 -0
- package/dist/types/shared/package-runtime/time-segments.d.cts +25 -0
- package/dist/types/shared/package-runtime/time-segments.d.ts +25 -0
- package/dist/types/shared/package-runtime/toast-entry.d.cts +3 -0
- package/dist/types/shared/package-runtime/toast-entry.d.ts +3 -0
- package/dist/types/shared/package-runtime/toast-placement.d.cts +4 -0
- package/dist/types/shared/package-runtime/toast-placement.d.ts +4 -0
- package/dist/types/shared/package-runtime/toast-presence.d.cts +12 -0
- package/dist/types/shared/package-runtime/toast-presence.d.ts +12 -0
- package/dist/types/shared/package-runtime/toast-presentation.d.cts +42 -0
- package/dist/types/shared/package-runtime/toast-presentation.d.ts +42 -0
- package/dist/types/shared/package-runtime/toast-swipe.d.cts +20 -0
- package/dist/types/shared/package-runtime/toast-swipe.d.ts +20 -0
- package/dist/types/shared/package-runtime/use-toast-stack.d.cts +22 -0
- package/dist/types/shared/package-runtime/use-toast-stack.d.ts +22 -0
- package/package.json +3 -3
- package/dist/types/shared/package-runtime/relative-time.d.cts +0 -1
- package/dist/types/shared/package-runtime/relative-time.d.ts +0 -1
|
@@ -27,11 +27,11 @@ export declare function KjunText({ variant, tone, as, align, maxLines, className
|
|
|
27
27
|
style: CSSProperties | undefined;
|
|
28
28
|
id?: string;
|
|
29
29
|
"aria-activedescendant"?: string | undefined;
|
|
30
|
-
"aria-atomic"?: (boolean | "
|
|
30
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
31
31
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
32
32
|
"aria-braillelabel"?: string | undefined;
|
|
33
33
|
"aria-brailleroledescription"?: string | undefined;
|
|
34
|
-
"aria-busy"?: (boolean | "
|
|
34
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
35
35
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
36
36
|
"aria-colcount"?: number | undefined;
|
|
37
37
|
"aria-colindex"?: number | undefined;
|
|
@@ -42,37 +42,37 @@ export declare function KjunText({ variant, tone, as, align, maxLines, className
|
|
|
42
42
|
"aria-describedby"?: string | undefined;
|
|
43
43
|
"aria-description"?: string | undefined;
|
|
44
44
|
"aria-details"?: string | undefined;
|
|
45
|
-
"aria-disabled"?: (boolean | "
|
|
45
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
46
46
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
47
47
|
"aria-errormessage"?: string | undefined;
|
|
48
|
-
"aria-expanded"?: (boolean | "
|
|
48
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
49
49
|
"aria-flowto"?: string | undefined;
|
|
50
|
-
"aria-grabbed"?: (boolean | "
|
|
50
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
51
51
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
52
|
-
"aria-hidden"?: (boolean | "
|
|
52
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
53
53
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
54
54
|
"aria-keyshortcuts"?: string | undefined;
|
|
55
55
|
"aria-label"?: string | undefined;
|
|
56
56
|
"aria-labelledby"?: string | undefined;
|
|
57
57
|
"aria-level"?: number | undefined;
|
|
58
58
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
59
|
-
"aria-modal"?: (boolean | "
|
|
60
|
-
"aria-multiline"?: (boolean | "
|
|
61
|
-
"aria-multiselectable"?: (boolean | "
|
|
59
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
60
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
61
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
62
62
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
63
63
|
"aria-owns"?: string | undefined;
|
|
64
64
|
"aria-placeholder"?: string | undefined;
|
|
65
65
|
"aria-posinset"?: number | undefined;
|
|
66
66
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
67
|
-
"aria-readonly"?: (boolean | "
|
|
67
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
68
68
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
69
|
-
"aria-required"?: (boolean | "
|
|
69
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
70
70
|
"aria-roledescription"?: string | undefined;
|
|
71
71
|
"aria-rowcount"?: number | undefined;
|
|
72
72
|
"aria-rowindex"?: number | undefined;
|
|
73
73
|
"aria-rowindextext"?: string | undefined;
|
|
74
74
|
"aria-rowspan"?: number | undefined;
|
|
75
|
-
"aria-selected"?: (boolean | "
|
|
75
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
76
76
|
"aria-setsize"?: number | undefined;
|
|
77
77
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
78
78
|
"aria-valuemax"?: number | undefined;
|
|
@@ -98,11 +98,11 @@ export declare function KjunStack({ gap, align, as, className, style, children,
|
|
|
98
98
|
"data-align": StackAlign;
|
|
99
99
|
id?: string;
|
|
100
100
|
"aria-activedescendant"?: string | undefined;
|
|
101
|
-
"aria-atomic"?: (boolean | "
|
|
101
|
+
"aria-atomic"?: (boolean | "false" | "true") | undefined;
|
|
102
102
|
"aria-autocomplete"?: "none" | "inline" | "list" | "both" | undefined;
|
|
103
103
|
"aria-braillelabel"?: string | undefined;
|
|
104
104
|
"aria-brailleroledescription"?: string | undefined;
|
|
105
|
-
"aria-busy"?: (boolean | "
|
|
105
|
+
"aria-busy"?: (boolean | "false" | "true") | undefined;
|
|
106
106
|
"aria-checked"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
107
107
|
"aria-colcount"?: number | undefined;
|
|
108
108
|
"aria-colindex"?: number | undefined;
|
|
@@ -113,37 +113,37 @@ export declare function KjunStack({ gap, align, as, className, style, children,
|
|
|
113
113
|
"aria-describedby"?: string | undefined;
|
|
114
114
|
"aria-description"?: string | undefined;
|
|
115
115
|
"aria-details"?: string | undefined;
|
|
116
|
-
"aria-disabled"?: (boolean | "
|
|
116
|
+
"aria-disabled"?: (boolean | "false" | "true") | undefined;
|
|
117
117
|
"aria-dropeffect"?: "none" | "copy" | "execute" | "link" | "move" | "popup" | undefined;
|
|
118
118
|
"aria-errormessage"?: string | undefined;
|
|
119
|
-
"aria-expanded"?: (boolean | "
|
|
119
|
+
"aria-expanded"?: (boolean | "false" | "true") | undefined;
|
|
120
120
|
"aria-flowto"?: string | undefined;
|
|
121
|
-
"aria-grabbed"?: (boolean | "
|
|
121
|
+
"aria-grabbed"?: (boolean | "false" | "true") | undefined;
|
|
122
122
|
"aria-haspopup"?: boolean | "false" | "true" | "menu" | "listbox" | "tree" | "grid" | "dialog" | undefined;
|
|
123
|
-
"aria-hidden"?: (boolean | "
|
|
123
|
+
"aria-hidden"?: (boolean | "false" | "true") | undefined;
|
|
124
124
|
"aria-invalid"?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
|
|
125
125
|
"aria-keyshortcuts"?: string | undefined;
|
|
126
126
|
"aria-label"?: string | undefined;
|
|
127
127
|
"aria-labelledby"?: string | undefined;
|
|
128
128
|
"aria-level"?: number | undefined;
|
|
129
129
|
"aria-live"?: "off" | "assertive" | "polite" | undefined;
|
|
130
|
-
"aria-modal"?: (boolean | "
|
|
131
|
-
"aria-multiline"?: (boolean | "
|
|
132
|
-
"aria-multiselectable"?: (boolean | "
|
|
130
|
+
"aria-modal"?: (boolean | "false" | "true") | undefined;
|
|
131
|
+
"aria-multiline"?: (boolean | "false" | "true") | undefined;
|
|
132
|
+
"aria-multiselectable"?: (boolean | "false" | "true") | undefined;
|
|
133
133
|
"aria-orientation"?: "horizontal" | "vertical" | undefined;
|
|
134
134
|
"aria-owns"?: string | undefined;
|
|
135
135
|
"aria-placeholder"?: string | undefined;
|
|
136
136
|
"aria-posinset"?: number | undefined;
|
|
137
137
|
"aria-pressed"?: boolean | "false" | "mixed" | "true" | undefined;
|
|
138
|
-
"aria-readonly"?: (boolean | "
|
|
138
|
+
"aria-readonly"?: (boolean | "false" | "true") | undefined;
|
|
139
139
|
"aria-relevant"?: "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text" | "text additions" | "text removals" | undefined;
|
|
140
|
-
"aria-required"?: (boolean | "
|
|
140
|
+
"aria-required"?: (boolean | "false" | "true") | undefined;
|
|
141
141
|
"aria-roledescription"?: string | undefined;
|
|
142
142
|
"aria-rowcount"?: number | undefined;
|
|
143
143
|
"aria-rowindex"?: number | undefined;
|
|
144
144
|
"aria-rowindextext"?: string | undefined;
|
|
145
145
|
"aria-rowspan"?: number | undefined;
|
|
146
|
-
"aria-selected"?: (boolean | "
|
|
146
|
+
"aria-selected"?: (boolean | "false" | "true") | undefined;
|
|
147
147
|
"aria-setsize"?: number | undefined;
|
|
148
148
|
"aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
149
149
|
"aria-valuemax"?: number | undefined;
|
|
@@ -14,18 +14,26 @@ export interface KjunListRowProps {
|
|
|
14
14
|
destructive?: boolean;
|
|
15
15
|
/** Ends the row with a decorative chevron that marks it as navigation. */
|
|
16
16
|
chevron?: boolean;
|
|
17
|
+
/** One choice in a single-choice list: true draws a check at the end. A pressable row given it (true or false) reads as a radio. */
|
|
18
|
+
selected?: boolean;
|
|
19
|
+
/** Makes the whole row a switch: it draws one at the end and toggles on any press. */
|
|
20
|
+
checked?: boolean;
|
|
21
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
17
22
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
18
23
|
/** Name of a pressable or link row, e.g. with the amount a screen reader should hear. */
|
|
19
24
|
ariaLabel?: string;
|
|
20
25
|
/** Display-only content under the description (a budget bar); no buttons or links inside a pressable row. */
|
|
21
26
|
children?: ReactNode;
|
|
27
|
+
/** Clamps the title (and the description) to this many lines, ending in an ellipsis. */
|
|
28
|
+
titleLines?: number;
|
|
29
|
+
descriptionLines?: number;
|
|
22
30
|
}
|
|
23
|
-
export declare function KjunListRow({ title, description, icon, leading, trailing, actions, href, disabled, destructive, chevron, onClick, ariaLabel, children }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function KjunListRow({ title, description, icon, leading, trailing, actions, href, disabled, destructive, chevron, selected, checked, onCheckedChange, onClick, ariaLabel, children, titleLines, descriptionLines }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
24
32
|
export interface KjunListSectionProps {
|
|
25
33
|
title?: string;
|
|
26
34
|
description?: string;
|
|
27
35
|
actions?: ReactNode;
|
|
28
|
-
children
|
|
36
|
+
children?: ReactNode;
|
|
29
37
|
ariaLabel?: string;
|
|
30
38
|
/** Paints the surface background (default true); false lets the page background show through. */
|
|
31
39
|
surface?: boolean;
|
|
@@ -33,10 +41,25 @@ export interface KjunListSectionProps {
|
|
|
33
41
|
divider?: boolean;
|
|
34
42
|
/** "compact" rows keep the 16px inset but are 44 tall (the touch minimum) instead of 56. */
|
|
35
43
|
density?: "default" | "compact";
|
|
36
|
-
/** Rounds the section on the card radius steps and clips its rows to the corners (default "none"). */
|
|
44
|
+
/** Rounds the section on the card radius steps and clips its rows to the corners (default "none", or the KjunListGroup's). */
|
|
37
45
|
radius?: CardRadius;
|
|
46
|
+
/** "title" is the 16px heading, "label" the small caption above the rows; by default a title with a description is a heading and one without is a label. */
|
|
47
|
+
titleVariant?: "title" | "label";
|
|
48
|
+
/** Heading level of the title (default 3). */
|
|
49
|
+
headingLevel?: 2 | 3 | 4;
|
|
50
|
+
/** Shown in place of the rows when the section has none, such as a KjunEmpty. */
|
|
51
|
+
empty?: ReactNode;
|
|
52
|
+
/** Supporting text under the rows, such as what a setting applies to. */
|
|
53
|
+
footer?: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
export declare function KjunListSection({ title, description, actions, children, ariaLabel, surface, divider, density, radius, titleVariant, headingLevel, empty, footer }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export interface KjunListGroupProps {
|
|
57
|
+
/** "inset" (default) rounds every section and keeps them 24px apart; "flush" keeps square sections 8px apart. */
|
|
58
|
+
variant?: "inset" | "flush";
|
|
59
|
+
children: ReactNode;
|
|
38
60
|
}
|
|
39
|
-
|
|
61
|
+
/** Stacks KjunListSections with one spacing and corner rule, so sections never set radius or gaps one by one. */
|
|
62
|
+
export declare function KjunListGroup({ variant, children }: KjunListGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
40
63
|
export interface KjunListItemProps {
|
|
41
64
|
children: ReactNode;
|
|
42
65
|
}
|
|
@@ -14,18 +14,26 @@ export interface KjunListRowProps {
|
|
|
14
14
|
destructive?: boolean;
|
|
15
15
|
/** Ends the row with a decorative chevron that marks it as navigation. */
|
|
16
16
|
chevron?: boolean;
|
|
17
|
+
/** One choice in a single-choice list: true draws a check at the end. A pressable row given it (true or false) reads as a radio. */
|
|
18
|
+
selected?: boolean;
|
|
19
|
+
/** Makes the whole row a switch: it draws one at the end and toggles on any press. */
|
|
20
|
+
checked?: boolean;
|
|
21
|
+
onCheckedChange?: (checked: boolean) => void;
|
|
17
22
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
18
23
|
/** Name of a pressable or link row, e.g. with the amount a screen reader should hear. */
|
|
19
24
|
ariaLabel?: string;
|
|
20
25
|
/** Display-only content under the description (a budget bar); no buttons or links inside a pressable row. */
|
|
21
26
|
children?: ReactNode;
|
|
27
|
+
/** Clamps the title (and the description) to this many lines, ending in an ellipsis. */
|
|
28
|
+
titleLines?: number;
|
|
29
|
+
descriptionLines?: number;
|
|
22
30
|
}
|
|
23
|
-
export declare function KjunListRow({ title, description, icon, leading, trailing, actions, href, disabled, destructive, chevron, onClick, ariaLabel, children }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function KjunListRow({ title, description, icon, leading, trailing, actions, href, disabled, destructive, chevron, selected, checked, onCheckedChange, onClick, ariaLabel, children, titleLines, descriptionLines }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
24
32
|
export interface KjunListSectionProps {
|
|
25
33
|
title?: string;
|
|
26
34
|
description?: string;
|
|
27
35
|
actions?: ReactNode;
|
|
28
|
-
children
|
|
36
|
+
children?: ReactNode;
|
|
29
37
|
ariaLabel?: string;
|
|
30
38
|
/** Paints the surface background (default true); false lets the page background show through. */
|
|
31
39
|
surface?: boolean;
|
|
@@ -33,10 +41,25 @@ export interface KjunListSectionProps {
|
|
|
33
41
|
divider?: boolean;
|
|
34
42
|
/** "compact" rows keep the 16px inset but are 44 tall (the touch minimum) instead of 56. */
|
|
35
43
|
density?: "default" | "compact";
|
|
36
|
-
/** Rounds the section on the card radius steps and clips its rows to the corners (default "none"). */
|
|
44
|
+
/** Rounds the section on the card radius steps and clips its rows to the corners (default "none", or the KjunListGroup's). */
|
|
37
45
|
radius?: CardRadius;
|
|
46
|
+
/** "title" is the 16px heading, "label" the small caption above the rows; by default a title with a description is a heading and one without is a label. */
|
|
47
|
+
titleVariant?: "title" | "label";
|
|
48
|
+
/** Heading level of the title (default 3). */
|
|
49
|
+
headingLevel?: 2 | 3 | 4;
|
|
50
|
+
/** Shown in place of the rows when the section has none, such as a KjunEmpty. */
|
|
51
|
+
empty?: ReactNode;
|
|
52
|
+
/** Supporting text under the rows, such as what a setting applies to. */
|
|
53
|
+
footer?: ReactNode;
|
|
54
|
+
}
|
|
55
|
+
export declare function KjunListSection({ title, description, actions, children, ariaLabel, surface, divider, density, radius, titleVariant, headingLevel, empty, footer }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
+
export interface KjunListGroupProps {
|
|
57
|
+
/** "inset" (default) rounds every section and keeps them 24px apart; "flush" keeps square sections 8px apart. */
|
|
58
|
+
variant?: "inset" | "flush";
|
|
59
|
+
children: ReactNode;
|
|
38
60
|
}
|
|
39
|
-
|
|
61
|
+
/** Stacks KjunListSections with one spacing and corner rule, so sections never set radius or gaps one by one. */
|
|
62
|
+
export declare function KjunListGroup({ variant, children }: KjunListGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
40
63
|
export interface KjunListItemProps {
|
|
41
64
|
children: ReactNode;
|
|
42
65
|
}
|
|
@@ -46,6 +46,10 @@ export interface MarketColumn {
|
|
|
46
46
|
defaultSort?: boolean;
|
|
47
47
|
flash?: "price" | "change";
|
|
48
48
|
weight?: string;
|
|
49
|
+
/** Sparkline columns: the row field with the reference value (a previous close), drawn as a dotted baseline. */
|
|
50
|
+
baselineKey?: string;
|
|
51
|
+
/** Sparkline columns: every row shares one vertical range, for series on a common scale (such as percent changes). */
|
|
52
|
+
sharedRange?: boolean;
|
|
49
53
|
}
|
|
50
54
|
export type MarketFormatter<Row extends object> = (value: unknown, format: string, context: {
|
|
51
55
|
currency: string;
|
|
@@ -57,8 +61,9 @@ export interface KjunMarketSimpleListProps<Row extends object = Record<string, u
|
|
|
57
61
|
changeValue: (row: Row) => number | null;
|
|
58
62
|
changeLoading?: (row: Row) => boolean;
|
|
59
63
|
priceFormatter: (value: number) => string;
|
|
60
|
-
closingPrice?: boolean;
|
|
61
64
|
renderPricePrefix?: (row: Row) => ReactNode;
|
|
65
|
+
/** The row's quote status (a KjunBadge or text) before the change; the wording and tone belong to the app. */
|
|
66
|
+
renderStatus?: (row: Row) => ReactNode;
|
|
62
67
|
}
|
|
63
68
|
export interface KjunMarketTableProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
64
69
|
columns: MarketColumn[];
|
|
@@ -73,6 +78,8 @@ export interface KjunMarketTableProps<Row extends object = Record<string, unknow
|
|
|
73
78
|
embedded?: boolean;
|
|
74
79
|
formatMetric?: MarketFormatter<Row>;
|
|
75
80
|
renderCell?: (row: Row, column: MarketColumn) => ReactNode;
|
|
81
|
+
/** The row's quote status after the price column's value. */
|
|
82
|
+
renderStatus?: (row: Row) => ReactNode;
|
|
76
83
|
onSort?: (key: string) => void;
|
|
77
84
|
onToggleInterest?: (row: Row) => void;
|
|
78
85
|
onToggleFavorite?: (row: Row) => void;
|
|
@@ -46,6 +46,10 @@ export interface MarketColumn {
|
|
|
46
46
|
defaultSort?: boolean;
|
|
47
47
|
flash?: "price" | "change";
|
|
48
48
|
weight?: string;
|
|
49
|
+
/** Sparkline columns: the row field with the reference value (a previous close), drawn as a dotted baseline. */
|
|
50
|
+
baselineKey?: string;
|
|
51
|
+
/** Sparkline columns: every row shares one vertical range, for series on a common scale (such as percent changes). */
|
|
52
|
+
sharedRange?: boolean;
|
|
49
53
|
}
|
|
50
54
|
export type MarketFormatter<Row extends object> = (value: unknown, format: string, context: {
|
|
51
55
|
currency: string;
|
|
@@ -57,8 +61,9 @@ export interface KjunMarketSimpleListProps<Row extends object = Record<string, u
|
|
|
57
61
|
changeValue: (row: Row) => number | null;
|
|
58
62
|
changeLoading?: (row: Row) => boolean;
|
|
59
63
|
priceFormatter: (value: number) => string;
|
|
60
|
-
closingPrice?: boolean;
|
|
61
64
|
renderPricePrefix?: (row: Row) => ReactNode;
|
|
65
|
+
/** The row's quote status (a KjunBadge or text) before the change; the wording and tone belong to the app. */
|
|
66
|
+
renderStatus?: (row: Row) => ReactNode;
|
|
62
67
|
}
|
|
63
68
|
export interface KjunMarketTableProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
64
69
|
columns: MarketColumn[];
|
|
@@ -73,6 +78,8 @@ export interface KjunMarketTableProps<Row extends object = Record<string, unknow
|
|
|
73
78
|
embedded?: boolean;
|
|
74
79
|
formatMetric?: MarketFormatter<Row>;
|
|
75
80
|
renderCell?: (row: Row, column: MarketColumn) => ReactNode;
|
|
81
|
+
/** The row's quote status after the price column's value. */
|
|
82
|
+
renderStatus?: (row: Row) => ReactNode;
|
|
76
83
|
onSort?: (key: string) => void;
|
|
77
84
|
onToggleInterest?: (row: Row) => void;
|
|
78
85
|
onToggleFavorite?: (row: Row) => void;
|
|
@@ -44,5 +44,7 @@ export interface KjunModalProps {
|
|
|
44
44
|
footer?: ReactNode;
|
|
45
45
|
children: ReactNode;
|
|
46
46
|
ariaLabel?: string;
|
|
47
|
+
/** Id of the element that describes the dialog (e.g. its message), read after its name. */
|
|
48
|
+
ariaDescribedBy?: string;
|
|
47
49
|
}
|
|
48
|
-
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, ariaDescribedBy, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -44,5 +44,7 @@ export interface KjunModalProps {
|
|
|
44
44
|
footer?: ReactNode;
|
|
45
45
|
children: ReactNode;
|
|
46
46
|
ariaLabel?: string;
|
|
47
|
+
/** Id of the element that describes the dialog (e.g. its message), read after its name. */
|
|
48
|
+
ariaDescribedBy?: string;
|
|
47
49
|
}
|
|
48
|
-
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
50
|
+
export declare function KjunModal({ open, onOpenChange, onClose, onAfterClose, onCancel, onConfirm, title, size, closable, closeOnOverlay, closeOnEsc, showHeader, showFooter, showConfirmButton, showCancelButton, confirmText, cancelText, confirmDisabled, loading, noPadding, height, confirmVariant, footerSize, header, footer, children, ariaLabel, ariaDescribedBy, }: KjunModalProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,46 +1,27 @@
|
|
|
1
|
+
import { type BreadcrumbItem } from "../../../shared/package-runtime/breadcrumb.cjs";
|
|
1
2
|
import { type ReactNode } from "react";
|
|
2
|
-
export
|
|
3
|
-
name: string;
|
|
4
|
-
label: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
badge?: string | number;
|
|
7
|
-
badgeVariant?: "danger" | "success" | "warning" | "info";
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface KjunTabsProps {
|
|
11
|
-
value: string;
|
|
12
|
-
items?: TabItem[];
|
|
13
|
-
density?: "comfortable" | "compact";
|
|
14
|
-
variant?: "underline" | "pills";
|
|
15
|
-
actions?: ReactNode;
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
/** Keep the header inside its scroll container while the tab panels scroll. */
|
|
18
|
-
stickyHeader?: boolean;
|
|
19
|
-
/** Top gap of the sticky header: a number in px or a CSS length. */
|
|
20
|
-
stickyOffset?: number | string;
|
|
21
|
-
ariaLabel?: string;
|
|
22
|
-
onValueChange?: (value: string) => void;
|
|
23
|
-
onChange?: (value: string) => void;
|
|
24
|
-
onTabMenu?: (event: {
|
|
25
|
-
name: string;
|
|
26
|
-
x: number;
|
|
27
|
-
y: number;
|
|
28
|
-
pointer: "mouse" | "touch";
|
|
29
|
-
}) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare function KjunTabs({ value, items, density, variant, actions, children, stickyHeader, stickyOffset, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
export interface KjunTabPaneProps extends TabItem {
|
|
33
|
-
children?: ReactNode;
|
|
34
|
-
}
|
|
35
|
-
export declare function KjunTabPane({ name, children }: KjunTabPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export * from "./tabs.cjs";
|
|
36
4
|
export interface KjunAccordionProps {
|
|
37
5
|
multiple?: boolean;
|
|
38
6
|
tone?: "card" | "muted";
|
|
7
|
+
/** Draws a line between items from the text start, like ListSection (default false: rows are set apart by height alone). */
|
|
8
|
+
divider?: boolean;
|
|
9
|
+
/** Gives every item its own rounded surface with a gap between them; divider has no effect then. */
|
|
10
|
+
separated?: boolean;
|
|
11
|
+
/** The heading level wrapping each header (default 3), or false for none, so headers join the page's outline. */
|
|
12
|
+
headingLevel?: AccordionHeadingLevel;
|
|
13
|
+
/** Open panels are labelled regions (default true). Turn off for long lists, where many landmarks crowd a screen reader. */
|
|
14
|
+
region?: boolean;
|
|
39
15
|
children: ReactNode;
|
|
40
16
|
}
|
|
41
|
-
export
|
|
17
|
+
export type AccordionHeadingLevel = 2 | 3 | 4 | 5 | 6 | false;
|
|
18
|
+
export declare function KjunAccordion({ multiple, tone, divider, separated, headingLevel, region, children, }: KjunAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
42
19
|
export interface KjunAccordionItemProps {
|
|
43
20
|
title?: string;
|
|
21
|
+
/** A secondary line under the title (caption, secondary text). */
|
|
22
|
+
description?: string;
|
|
23
|
+
/** Icon name drawn in a 40px leading column at the list icon size; the body and divider then start at the title. */
|
|
24
|
+
icon?: string;
|
|
44
25
|
defaultOpen?: boolean;
|
|
45
26
|
/** Controlled open state. A controlled item follows this value only and stays out of the Accordion's single-open rule. */
|
|
46
27
|
open?: boolean;
|
|
@@ -49,21 +30,22 @@ export interface KjunAccordionItemProps {
|
|
|
49
30
|
/** Keeps the body mounted after it first opens, so inputs keep their state while closed. */
|
|
50
31
|
keepMounted?: boolean;
|
|
51
32
|
disabled?: boolean;
|
|
33
|
+
/** Replaces the title in the header; pass ariaLabel when it is not plain text. */
|
|
52
34
|
header?: ReactNode;
|
|
35
|
+
/** The header's accessible name when header is not plain text. */
|
|
36
|
+
ariaLabel?: string;
|
|
53
37
|
children: ReactNode;
|
|
54
38
|
}
|
|
55
|
-
export declare function KjunAccordionItem({ title, defaultOpen, disabled, header, open: openProp, onOpenChange, keepMounted, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
export
|
|
57
|
-
label: string;
|
|
58
|
-
to?: string;
|
|
59
|
-
icon?: string;
|
|
60
|
-
}
|
|
39
|
+
export declare function KjunAccordionItem({ title, description, icon, defaultOpen, disabled, header, ariaLabel, open: openProp, onOpenChange, keepMounted, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export type { BreadcrumbItem };
|
|
61
41
|
export interface KjunBreadcrumbProps {
|
|
62
42
|
items: BreadcrumbItem[];
|
|
63
43
|
renderLink?: (item: BreadcrumbItem, children: ReactNode) => ReactNode;
|
|
64
44
|
ariaLabel?: string;
|
|
45
|
+
/** Folds a long trail: the first step and the last maxItems - 1 stay, and the steps between open from a "…" menu. */
|
|
46
|
+
maxItems?: number;
|
|
65
47
|
}
|
|
66
|
-
export declare function KjunBreadcrumb({ items, renderLink, ariaLabel, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare function KjunBreadcrumb({ items, renderLink, ariaLabel, maxItems, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element | null;
|
|
67
49
|
export interface KjunPaginationProps {
|
|
68
50
|
currentPage?: number;
|
|
69
51
|
page?: number;
|
|
@@ -1,46 +1,27 @@
|
|
|
1
|
+
import { type BreadcrumbItem } from "../../../shared/package-runtime/breadcrumb.js";
|
|
1
2
|
import { type ReactNode } from "react";
|
|
2
|
-
export
|
|
3
|
-
name: string;
|
|
4
|
-
label: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
badge?: string | number;
|
|
7
|
-
badgeVariant?: "danger" | "success" | "warning" | "info";
|
|
8
|
-
disabled?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface KjunTabsProps {
|
|
11
|
-
value: string;
|
|
12
|
-
items?: TabItem[];
|
|
13
|
-
density?: "comfortable" | "compact";
|
|
14
|
-
variant?: "underline" | "pills";
|
|
15
|
-
actions?: ReactNode;
|
|
16
|
-
children?: ReactNode;
|
|
17
|
-
/** Keep the header inside its scroll container while the tab panels scroll. */
|
|
18
|
-
stickyHeader?: boolean;
|
|
19
|
-
/** Top gap of the sticky header: a number in px or a CSS length. */
|
|
20
|
-
stickyOffset?: number | string;
|
|
21
|
-
ariaLabel?: string;
|
|
22
|
-
onValueChange?: (value: string) => void;
|
|
23
|
-
onChange?: (value: string) => void;
|
|
24
|
-
onTabMenu?: (event: {
|
|
25
|
-
name: string;
|
|
26
|
-
x: number;
|
|
27
|
-
y: number;
|
|
28
|
-
pointer: "mouse" | "touch";
|
|
29
|
-
}) => void;
|
|
30
|
-
}
|
|
31
|
-
export declare function KjunTabs({ value, items, density, variant, actions, children, stickyHeader, stickyOffset, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
-
export interface KjunTabPaneProps extends TabItem {
|
|
33
|
-
children?: ReactNode;
|
|
34
|
-
}
|
|
35
|
-
export declare function KjunTabPane({ name, children }: KjunTabPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export * from "./tabs.js";
|
|
36
4
|
export interface KjunAccordionProps {
|
|
37
5
|
multiple?: boolean;
|
|
38
6
|
tone?: "card" | "muted";
|
|
7
|
+
/** Draws a line between items from the text start, like ListSection (default false: rows are set apart by height alone). */
|
|
8
|
+
divider?: boolean;
|
|
9
|
+
/** Gives every item its own rounded surface with a gap between them; divider has no effect then. */
|
|
10
|
+
separated?: boolean;
|
|
11
|
+
/** The heading level wrapping each header (default 3), or false for none, so headers join the page's outline. */
|
|
12
|
+
headingLevel?: AccordionHeadingLevel;
|
|
13
|
+
/** Open panels are labelled regions (default true). Turn off for long lists, where many landmarks crowd a screen reader. */
|
|
14
|
+
region?: boolean;
|
|
39
15
|
children: ReactNode;
|
|
40
16
|
}
|
|
41
|
-
export
|
|
17
|
+
export type AccordionHeadingLevel = 2 | 3 | 4 | 5 | 6 | false;
|
|
18
|
+
export declare function KjunAccordion({ multiple, tone, divider, separated, headingLevel, region, children, }: KjunAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
42
19
|
export interface KjunAccordionItemProps {
|
|
43
20
|
title?: string;
|
|
21
|
+
/** A secondary line under the title (caption, secondary text). */
|
|
22
|
+
description?: string;
|
|
23
|
+
/** Icon name drawn in a 40px leading column at the list icon size; the body and divider then start at the title. */
|
|
24
|
+
icon?: string;
|
|
44
25
|
defaultOpen?: boolean;
|
|
45
26
|
/** Controlled open state. A controlled item follows this value only and stays out of the Accordion's single-open rule. */
|
|
46
27
|
open?: boolean;
|
|
@@ -49,21 +30,22 @@ export interface KjunAccordionItemProps {
|
|
|
49
30
|
/** Keeps the body mounted after it first opens, so inputs keep their state while closed. */
|
|
50
31
|
keepMounted?: boolean;
|
|
51
32
|
disabled?: boolean;
|
|
33
|
+
/** Replaces the title in the header; pass ariaLabel when it is not plain text. */
|
|
52
34
|
header?: ReactNode;
|
|
35
|
+
/** The header's accessible name when header is not plain text. */
|
|
36
|
+
ariaLabel?: string;
|
|
53
37
|
children: ReactNode;
|
|
54
38
|
}
|
|
55
|
-
export declare function KjunAccordionItem({ title, defaultOpen, disabled, header, open: openProp, onOpenChange, keepMounted, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
export
|
|
57
|
-
label: string;
|
|
58
|
-
to?: string;
|
|
59
|
-
icon?: string;
|
|
60
|
-
}
|
|
39
|
+
export declare function KjunAccordionItem({ title, description, icon, defaultOpen, disabled, header, ariaLabel, open: openProp, onOpenChange, keepMounted, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export type { BreadcrumbItem };
|
|
61
41
|
export interface KjunBreadcrumbProps {
|
|
62
42
|
items: BreadcrumbItem[];
|
|
63
43
|
renderLink?: (item: BreadcrumbItem, children: ReactNode) => ReactNode;
|
|
64
44
|
ariaLabel?: string;
|
|
45
|
+
/** Folds a long trail: the first step and the last maxItems - 1 stay, and the steps between open from a "…" menu. */
|
|
46
|
+
maxItems?: number;
|
|
65
47
|
}
|
|
66
|
-
export declare function KjunBreadcrumb({ items, renderLink, ariaLabel, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export declare function KjunBreadcrumb({ items, renderLink, ariaLabel, maxItems, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element | null;
|
|
67
49
|
export interface KjunPaginationProps {
|
|
68
50
|
currentPage?: number;
|
|
69
51
|
page?: number;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
1
2
|
export declare const finiteNumber: (value: unknown) => number | null;
|
|
2
3
|
export declare const format: (value: number, decimals?: number) => string;
|
|
3
4
|
export declare function useCountUp(value: number | string, animated: boolean, fromPrevious: boolean): string | number;
|
|
@@ -12,21 +13,21 @@ export interface KjunAnimatedNumberProps {
|
|
|
12
13
|
className?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare function KjunAnimatedNumber({ value, decimals, prefix, suffix, animated, fromPrevious, formatter, className, }: KjunAnimatedNumberProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
export declare function KjunFreshness({ stale, source, fetchedAt, formatter, }: KjunFreshnessProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
-
export interface KjunPriceCellProps extends Omit<KjunFreshnessProps, "formatter"> {
|
|
16
|
+
/** The status slot after a price; nothing when the app gives no status. */
|
|
17
|
+
export declare function PriceStatus({ status }: {
|
|
18
|
+
status?: ReactNode;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
+
export interface KjunPriceCellProps {
|
|
23
21
|
value?: number | null;
|
|
24
22
|
formatter?: (value: number) => string;
|
|
23
|
+
stale?: boolean;
|
|
24
|
+
/** The app's status after the price, such as a KjunBadge; KJUN owns only its spacing and alignment.
|
|
25
|
+
* With no price (value null) a status still shows after a dash, for states such as "거래정지"; without one null is loading. */
|
|
26
|
+
status?: ReactNode;
|
|
25
27
|
flashClass?: string;
|
|
26
28
|
fromPrevious?: boolean;
|
|
27
|
-
showFreshness?: boolean;
|
|
28
29
|
}
|
|
29
|
-
export declare function KjunPriceCell({ value, formatter, stale,
|
|
30
|
+
export declare function KjunPriceCell({ value, formatter, stale, status, flashClass, fromPrevious, }: KjunPriceCellProps): import("react/jsx-runtime").JSX.Element;
|
|
30
31
|
export interface KjunSignedValueProps {
|
|
31
32
|
value?: number | string | null;
|
|
32
33
|
format?: "number" | "percent";
|
|
@@ -38,7 +39,6 @@ export interface KjunSignedValueProps {
|
|
|
38
39
|
tone?: "plain" | "pill";
|
|
39
40
|
loading?: boolean;
|
|
40
41
|
stale?: boolean;
|
|
41
|
-
showFreshness?: boolean;
|
|
42
42
|
formatter?: (value: number) => string;
|
|
43
43
|
}
|
|
44
|
-
export declare function KjunSignedValue({ value, format: kind, isRaw, decimals, prefix, suffix, showSign, tone, loading, stale,
|
|
44
|
+
export declare function KjunSignedValue({ value, format: kind, isRaw, decimals, prefix, suffix, showSign, tone, loading, stale, formatter, }: KjunSignedValueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
1
2
|
export declare const finiteNumber: (value: unknown) => number | null;
|
|
2
3
|
export declare const format: (value: number, decimals?: number) => string;
|
|
3
4
|
export declare function useCountUp(value: number | string, animated: boolean, fromPrevious: boolean): string | number;
|
|
@@ -12,21 +13,21 @@ export interface KjunAnimatedNumberProps {
|
|
|
12
13
|
className?: string;
|
|
13
14
|
}
|
|
14
15
|
export declare function KjunAnimatedNumber({ value, decimals, prefix, suffix, animated, fromPrevious, formatter, className, }: KjunAnimatedNumberProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
export declare function KjunFreshness({ stale, source, fetchedAt, formatter, }: KjunFreshnessProps): import("react/jsx-runtime").JSX.Element | null;
|
|
22
|
-
export interface KjunPriceCellProps extends Omit<KjunFreshnessProps, "formatter"> {
|
|
16
|
+
/** The status slot after a price; nothing when the app gives no status. */
|
|
17
|
+
export declare function PriceStatus({ status }: {
|
|
18
|
+
status?: ReactNode;
|
|
19
|
+
}): import("react/jsx-runtime").JSX.Element | null;
|
|
20
|
+
export interface KjunPriceCellProps {
|
|
23
21
|
value?: number | null;
|
|
24
22
|
formatter?: (value: number) => string;
|
|
23
|
+
stale?: boolean;
|
|
24
|
+
/** The app's status after the price, such as a KjunBadge; KJUN owns only its spacing and alignment.
|
|
25
|
+
* With no price (value null) a status still shows after a dash, for states such as "거래정지"; without one null is loading. */
|
|
26
|
+
status?: ReactNode;
|
|
25
27
|
flashClass?: string;
|
|
26
28
|
fromPrevious?: boolean;
|
|
27
|
-
showFreshness?: boolean;
|
|
28
29
|
}
|
|
29
|
-
export declare function KjunPriceCell({ value, formatter, stale,
|
|
30
|
+
export declare function KjunPriceCell({ value, formatter, stale, status, flashClass, fromPrevious, }: KjunPriceCellProps): import("react/jsx-runtime").JSX.Element;
|
|
30
31
|
export interface KjunSignedValueProps {
|
|
31
32
|
value?: number | string | null;
|
|
32
33
|
format?: "number" | "percent";
|
|
@@ -38,7 +39,6 @@ export interface KjunSignedValueProps {
|
|
|
38
39
|
tone?: "plain" | "pill";
|
|
39
40
|
loading?: boolean;
|
|
40
41
|
stale?: boolean;
|
|
41
|
-
showFreshness?: boolean;
|
|
42
42
|
formatter?: (value: number) => string;
|
|
43
43
|
}
|
|
44
|
-
export declare function KjunSignedValue({ value, format: kind, isRaw, decimals, prefix, suffix, showSign, tone, loading, stale,
|
|
44
|
+
export declare function KjunSignedValue({ value, format: kind, isRaw, decimals, prefix, suffix, showSign, tone, loading, stale, formatter, }: KjunSignedValueProps): import("react/jsx-runtime").JSX.Element;
|