@kjun-ui/react 0.16.0 → 0.18.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 +3406 -1486
- package/dist/index.js +3401 -1479
- package/dist/styles.css +1065 -219
- 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 +30 -5
- package/dist/types/packages/react/src/app-navigation.d.ts +30 -5
- 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 +19 -12
- package/dist/types/packages/react/src/controls.d.ts +19 -12
- 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 +12 -3
- package/dist/types/packages/react/src/display.d.ts +12 -3
- 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/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 +8 -6
- package/dist/types/packages/react/src/index.d.ts +8 -6
- package/dist/types/packages/react/src/kpi.d.cts +6 -2
- package/dist/types/packages/react/src/kpi.d.ts +6 -2
- 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/list.d.cts +29 -4
- package/dist/types/packages/react/src/list.d.ts +29 -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/media.d.cts +1 -1
- package/dist/types/packages/react/src/media.d.ts +1 -1
- package/dist/types/packages/react/src/navigation.d.cts +24 -38
- package/dist/types/packages/react/src/navigation.d.ts +24 -38
- 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/range-input.d.cts +4 -0
- package/dist/types/packages/react/src/range-input.d.ts +4 -0
- 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/table-cards.d.cts +1 -1
- package/dist/types/packages/react/src/table-cards.d.ts +1 -1
- package/dist/types/packages/react/src/table-grid.d.cts +1 -1
- package/dist/types/packages/react/src/table-grid.d.ts +1 -1
- package/dist/types/packages/react/src/table-list.d.cts +14 -0
- package/dist/types/packages/react/src/table-list.d.ts +14 -0
- package/dist/types/packages/react/src/table-model.d.cts +1 -0
- package/dist/types/packages/react/src/table-model.d.ts +1 -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/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/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/alert-exit.d.cts +5 -0
- package/dist/types/shared/package-runtime/alert-exit.d.ts +5 -0
- package/dist/types/shared/package-runtime/alert-tone.d.cts +11 -0
- package/dist/types/shared/package-runtime/alert-tone.d.ts +11 -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/drawer-geometry.d.cts +10 -4
- package/dist/types/shared/package-runtime/drawer-geometry.d.ts +10 -4
- 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/messages/ko.d.cts +38 -5
- package/dist/types/shared/package-runtime/messages/ko.d.ts +38 -5
- package/dist/types/shared/package-runtime/messages-context.d.cts +38 -5
- package/dist/types/shared/package-runtime/messages-context.d.ts +38 -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/progress-circle.d.cts +5 -0
- package/dist/types/shared/package-runtime/progress-circle.d.ts +5 -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/sparkline.d.cts +58 -0
- package/dist/types/shared/package-runtime/sparkline.d.ts +58 -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 +30 -4
- package/dist/types/shared/package-runtime/table-presentation.d.ts +30 -4
- package/dist/types/shared/package-runtime/table.d.cts +18 -2
- package/dist/types/shared/package-runtime/table.d.ts +18 -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/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
|
@@ -8,6 +8,8 @@ export interface KjunDropdownProps {
|
|
|
8
8
|
menuId?: string;
|
|
9
9
|
triggerId?: string;
|
|
10
10
|
menuClass?: string;
|
|
11
|
+
/** compact: 32px rows for desktop tables and toolbars (touch keeps 44px). */
|
|
12
|
+
density?: "comfortable" | "compact";
|
|
11
13
|
trigger: ReactNode;
|
|
12
14
|
children: ReactNode;
|
|
13
15
|
onOpen?: () => void;
|
|
@@ -15,19 +17,49 @@ export interface KjunDropdownProps {
|
|
|
15
17
|
/** Where focus goes when the menu closes by choosing or Escape, instead of the trigger (e.g. an edited cell). Web only. */
|
|
16
18
|
returnFocus?: FocusReturn;
|
|
17
19
|
}
|
|
18
|
-
export declare function KjunDropdown({ disabled, placement, menuId, triggerId, menuClass, trigger, children, onOpen, onClose, returnFocus, }: KjunDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function KjunDropdown({ disabled, placement, menuId, triggerId, menuClass, density, trigger, children, onOpen, onClose, returnFocus, }: KjunDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
19
21
|
export interface KjunDropdownItemProps {
|
|
20
22
|
id?: string;
|
|
21
23
|
variant?: "default" | "danger";
|
|
22
24
|
icon?: string;
|
|
23
25
|
disabled?: boolean;
|
|
26
|
+
/** Single choice: a check in the leading column, announced as a radio item. */
|
|
24
27
|
selected?: boolean | null;
|
|
28
|
+
/** Independent toggle: a check in the leading column, announced as a checkbox item. */
|
|
29
|
+
checked?: boolean | null;
|
|
30
|
+
/** Second line under the label. */
|
|
31
|
+
description?: string;
|
|
32
|
+
/** Keyboard hint shown at the end, such as "⌘D". It only describes; wiring the keys is the app's job. */
|
|
33
|
+
shortcut?: string;
|
|
25
34
|
textValue?: string;
|
|
35
|
+
/** Keeps the menu open after choosing, for toggles the user flips several times. */
|
|
36
|
+
keepOpen?: boolean;
|
|
37
|
+
/** Makes the item a link; the browser follows it. */
|
|
38
|
+
href?: string;
|
|
39
|
+
target?: string;
|
|
26
40
|
children: ReactNode;
|
|
27
41
|
onClick?: () => void;
|
|
28
42
|
}
|
|
29
|
-
export declare function KjunDropdownItem({ id, variant, icon, disabled, selected, textValue, children, onClick, }: KjunDropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export
|
|
43
|
+
export declare function KjunDropdownItem({ id, variant, icon, disabled, selected, checked, description, shortcut, textValue, keepOpen, href, target, children, onClick, }: KjunDropdownItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
44
|
+
export interface KjunDropdownSectionProps {
|
|
45
|
+
/** Small heading over the group; it names the group for screen readers. */
|
|
46
|
+
title?: string;
|
|
47
|
+
/** Names the group for screen readers when it has no visible title. */
|
|
48
|
+
ariaLabel?: string;
|
|
49
|
+
children: ReactNode;
|
|
50
|
+
}
|
|
51
|
+
export declare function KjunDropdownSection({ title, ariaLabel, children }: KjunDropdownSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export interface KjunDropdownSubmenuProps {
|
|
53
|
+
/** Stable key for the submenu; defaults to the label. */
|
|
54
|
+
id?: string;
|
|
55
|
+
label: string;
|
|
56
|
+
icon?: string;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
children: ReactNode;
|
|
59
|
+
}
|
|
60
|
+
/** An item that opens its own items in place of the menu, with a back row; → opens it and ← returns. */
|
|
61
|
+
export declare function KjunDropdownSubmenu({ id, label, icon, disabled, children }: KjunDropdownSubmenuProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare function KjunDropdownDivider(): import("react/jsx-runtime").JSX.Element | null;
|
|
31
63
|
export interface KjunMenuButtonProps extends Omit<KjunDropdownProps, "trigger"> {
|
|
32
64
|
label?: string;
|
|
33
65
|
size?: KjunButtonProps["size"];
|
|
@@ -8,6 +8,8 @@ export interface KjunDropdownProps {
|
|
|
8
8
|
menuId?: string;
|
|
9
9
|
triggerId?: string;
|
|
10
10
|
menuClass?: string;
|
|
11
|
+
/** compact: 32px rows for desktop tables and toolbars (touch keeps 44px). */
|
|
12
|
+
density?: "comfortable" | "compact";
|
|
11
13
|
trigger: ReactNode;
|
|
12
14
|
children: ReactNode;
|
|
13
15
|
onOpen?: () => void;
|
|
@@ -15,19 +17,49 @@ export interface KjunDropdownProps {
|
|
|
15
17
|
/** Where focus goes when the menu closes by choosing or Escape, instead of the trigger (e.g. an edited cell). Web only. */
|
|
16
18
|
returnFocus?: FocusReturn;
|
|
17
19
|
}
|
|
18
|
-
export declare function KjunDropdown({ disabled, placement, menuId, triggerId, menuClass, trigger, children, onOpen, onClose, returnFocus, }: KjunDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export declare function KjunDropdown({ disabled, placement, menuId, triggerId, menuClass, density, trigger, children, onOpen, onClose, returnFocus, }: KjunDropdownProps): import("react/jsx-runtime").JSX.Element;
|
|
19
21
|
export interface KjunDropdownItemProps {
|
|
20
22
|
id?: string;
|
|
21
23
|
variant?: "default" | "danger";
|
|
22
24
|
icon?: string;
|
|
23
25
|
disabled?: boolean;
|
|
26
|
+
/** Single choice: a check in the leading column, announced as a radio item. */
|
|
24
27
|
selected?: boolean | null;
|
|
28
|
+
/** Independent toggle: a check in the leading column, announced as a checkbox item. */
|
|
29
|
+
checked?: boolean | null;
|
|
30
|
+
/** Second line under the label. */
|
|
31
|
+
description?: string;
|
|
32
|
+
/** Keyboard hint shown at the end, such as "⌘D". It only describes; wiring the keys is the app's job. */
|
|
33
|
+
shortcut?: string;
|
|
25
34
|
textValue?: string;
|
|
35
|
+
/** Keeps the menu open after choosing, for toggles the user flips several times. */
|
|
36
|
+
keepOpen?: boolean;
|
|
37
|
+
/** Makes the item a link; the browser follows it. */
|
|
38
|
+
href?: string;
|
|
39
|
+
target?: string;
|
|
26
40
|
children: ReactNode;
|
|
27
41
|
onClick?: () => void;
|
|
28
42
|
}
|
|
29
|
-
export declare function KjunDropdownItem({ id, variant, icon, disabled, selected, textValue, children, onClick, }: KjunDropdownItemProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
-
export
|
|
43
|
+
export declare function KjunDropdownItem({ id, variant, icon, disabled, selected, checked, description, shortcut, textValue, keepOpen, href, target, children, onClick, }: KjunDropdownItemProps): import("react/jsx-runtime").JSX.Element | null;
|
|
44
|
+
export interface KjunDropdownSectionProps {
|
|
45
|
+
/** Small heading over the group; it names the group for screen readers. */
|
|
46
|
+
title?: string;
|
|
47
|
+
/** Names the group for screen readers when it has no visible title. */
|
|
48
|
+
ariaLabel?: string;
|
|
49
|
+
children: ReactNode;
|
|
50
|
+
}
|
|
51
|
+
export declare function KjunDropdownSection({ title, ariaLabel, children }: KjunDropdownSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
+
export interface KjunDropdownSubmenuProps {
|
|
53
|
+
/** Stable key for the submenu; defaults to the label. */
|
|
54
|
+
id?: string;
|
|
55
|
+
label: string;
|
|
56
|
+
icon?: string;
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
children: ReactNode;
|
|
59
|
+
}
|
|
60
|
+
/** An item that opens its own items in place of the menu, with a back row; → opens it and ← returns. */
|
|
61
|
+
export declare function KjunDropdownSubmenu({ id, label, icon, disabled, children }: KjunDropdownSubmenuProps): import("react/jsx-runtime").JSX.Element;
|
|
62
|
+
export declare function KjunDropdownDivider(): import("react/jsx-runtime").JSX.Element | null;
|
|
31
63
|
export interface KjunMenuButtonProps extends Omit<KjunDropdownProps, "trigger"> {
|
|
32
64
|
label?: string;
|
|
33
65
|
size?: KjunButtonProps["size"];
|
|
@@ -78,9 +78,18 @@ export interface KjunSparklineProps {
|
|
|
78
78
|
height?: number;
|
|
79
79
|
color?: string;
|
|
80
80
|
semantic?: "price" | "status";
|
|
81
|
+
/** "line" (default) draws the trend; "bar" draws each value as a bar from the baseline (or zero), values below it hanging down; the last bar takes the direction color. */
|
|
82
|
+
variant?: "line" | "bar";
|
|
81
83
|
fill?: boolean;
|
|
82
84
|
strokeWidth?: number;
|
|
83
85
|
stretch?: boolean;
|
|
86
|
+
/** Reference value (a previous close): a dotted line, the direction color and the area are measured from it. */
|
|
87
|
+
baseline?: number;
|
|
88
|
+
/** Fixed vertical range, so small moves stay small and rows share one scale. */
|
|
89
|
+
min?: number;
|
|
90
|
+
max?: number;
|
|
91
|
+
/** Marks the last value with a dot (line variant; default true). */
|
|
92
|
+
endDot?: boolean;
|
|
84
93
|
ariaLabel?: string;
|
|
85
94
|
}
|
|
86
|
-
export declare function KjunSparkline({ data, width, height, color, semantic, fill, strokeWidth, stretch, ariaLabel, }: KjunSparklineProps): import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
export declare function KjunSparkline({ data, width, height, color, semantic, variant, fill, strokeWidth, stretch, baseline, min, max, endDot, ariaLabel, }: KjunSparklineProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -78,9 +78,18 @@ export interface KjunSparklineProps {
|
|
|
78
78
|
height?: number;
|
|
79
79
|
color?: string;
|
|
80
80
|
semantic?: "price" | "status";
|
|
81
|
+
/** "line" (default) draws the trend; "bar" draws each value as a bar from the baseline (or zero), values below it hanging down; the last bar takes the direction color. */
|
|
82
|
+
variant?: "line" | "bar";
|
|
81
83
|
fill?: boolean;
|
|
82
84
|
strokeWidth?: number;
|
|
83
85
|
stretch?: boolean;
|
|
86
|
+
/** Reference value (a previous close): a dotted line, the direction color and the area are measured from it. */
|
|
87
|
+
baseline?: number;
|
|
88
|
+
/** Fixed vertical range, so small moves stay small and rows share one scale. */
|
|
89
|
+
min?: number;
|
|
90
|
+
max?: number;
|
|
91
|
+
/** Marks the last value with a dot (line variant; default true). */
|
|
92
|
+
endDot?: boolean;
|
|
84
93
|
ariaLabel?: string;
|
|
85
94
|
}
|
|
86
|
-
export declare function KjunSparkline({ data, width, height, color, semantic, fill, strokeWidth, stretch, ariaLabel, }: KjunSparklineProps): import("react/jsx-runtime").JSX.Element;
|
|
95
|
+
export declare function KjunSparkline({ data, width, height, color, semantic, variant, fill, strokeWidth, stretch, baseline, min, max, endDot, ariaLabel, }: KjunSparklineProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { KjunCollectionMark, KjunDeviation, KjunExecutionStatusBadge, KjunHeatmapCell, KjunProgressCell, KjunSparkline } from "./financial-display.cjs";
|
|
2
2
|
export type { KjunCollectionMarkProps, KjunDeviationProps, KjunExecutionStatusBadgeProps, KjunHeatmapCellProps, KjunProgressCellProps, KjunSparklineProps } from "./financial-display.cjs";
|
|
3
|
-
export { KjunAnimatedNumber,
|
|
4
|
-
export type { KjunAnimatedNumberProps,
|
|
3
|
+
export { KjunAnimatedNumber, KjunPriceCell, KjunSignedValue, finiteNumber, useCountUp } from "./number-display.cjs";
|
|
4
|
+
export type { KjunAnimatedNumberProps, KjunPriceCellProps, KjunSignedValueProps } from "./number-display.cjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { KjunCollectionMark, KjunDeviation, KjunExecutionStatusBadge, KjunHeatmapCell, KjunProgressCell, KjunSparkline } from "./financial-display.js";
|
|
2
2
|
export type { KjunCollectionMarkProps, KjunDeviationProps, KjunExecutionStatusBadgeProps, KjunHeatmapCellProps, KjunProgressCellProps, KjunSparklineProps } from "./financial-display.js";
|
|
3
|
-
export { KjunAnimatedNumber,
|
|
4
|
-
export type { KjunAnimatedNumberProps,
|
|
3
|
+
export { KjunAnimatedNumber, KjunPriceCell, KjunSignedValue, finiteNumber, useCountUp } from "./number-display.js";
|
|
4
|
+
export type { KjunAnimatedNumberProps, KjunPriceCellProps, KjunSignedValueProps } from "./number-display.js";
|
|
@@ -12,18 +12,20 @@ export * from "./display.cjs";
|
|
|
12
12
|
export * from "./layout-primitives.cjs";
|
|
13
13
|
export * from "./feedback.cjs";
|
|
14
14
|
export * from "./controls.cjs";
|
|
15
|
-
export { KjunPopover, KjunTooltip, KjunDropdown, KjunDropdownItem, KjunDropdownDivider, KjunMenuButton, KjunDrawer, } from "./layers.cjs";
|
|
16
|
-
export type { KjunPopoverProps, KjunTooltipProps, KjunDropdownProps, KjunDropdownItemProps, KjunMenuButtonProps, KjunDrawerProps, } from "./layers.cjs";
|
|
17
|
-
export { KjunSelect, KjunCombobox, KjunSearchInput, KjunDatePicker } from "./select.cjs";
|
|
18
|
-
export type { KjunSelectProps, KjunComboboxProps, KjunSearchInputProps, KjunDatePickerProps, OptionValue, SelectOption, } from "./select.cjs";
|
|
15
|
+
export { KjunPopover, KjunTooltip, KjunDropdown, KjunDropdownItem, KjunDropdownDivider, KjunDropdownSection, KjunDropdownSubmenu, KjunMenuButton, KjunDrawer, } from "./layers.cjs";
|
|
16
|
+
export type { KjunPopoverProps, KjunTooltipProps, KjunDropdownProps, KjunDropdownItemProps, KjunDropdownSectionProps, KjunDropdownSubmenuProps, KjunMenuButtonProps, KjunDrawerProps, } from "./layers.cjs";
|
|
17
|
+
export { KjunSelect, KjunCombobox, KjunSearchInput, KjunDatePicker, KjunDateRangePicker } from "./select.cjs";
|
|
18
|
+
export type { KjunSelectProps, KjunComboboxProps, KjunSearchInputProps, KjunDatePickerProps, KjunDateRangePickerProps, DateRange, DateRangePreset, OptionValue, SelectOption, } from "./select.cjs";
|
|
19
19
|
export * from "./navigation.cjs";
|
|
20
20
|
export { KjunIconToggle, KjunCopyButton, KjunRefreshButton, KjunExternalLink, KjunScrollFade, } from "./actions.cjs";
|
|
21
21
|
export type { KjunIconToggleProps, KjunCopyButtonProps, KjunRefreshButtonProps, KjunExternalLinkProps, } from "./actions.cjs";
|
|
22
|
+
export { KjunCarousel } from "./carousel.cjs";
|
|
23
|
+
export type { KjunCarouselProps } from "./carousel.cjs";
|
|
22
24
|
export { KjunDataState, KjunErrorBoundary } from "./data-state.cjs";
|
|
23
25
|
export type { KjunDataStateProps, KjunErrorBoundaryProps } from "./data-state.cjs";
|
|
24
26
|
export * from "./skeletons.cjs";
|
|
25
|
-
export { KjunAnimatedNumber,
|
|
26
|
-
export type { KjunAnimatedNumberProps,
|
|
27
|
+
export { KjunAnimatedNumber, KjunPriceCell, KjunSignedValue, KjunDeviation, KjunHeatmapCell, KjunProgressCell, KjunCollectionMark, KjunExecutionStatusBadge, KjunSparkline, } from "./financial.cjs";
|
|
28
|
+
export type { KjunAnimatedNumberProps, KjunPriceCellProps, KjunSignedValueProps, KjunDeviationProps, KjunHeatmapCellProps, KjunProgressCellProps, KjunCollectionMarkProps, KjunExecutionStatusBadgeProps, KjunSparklineProps, } from "./financial.cjs";
|
|
27
29
|
export { KjunTable } from "./table.cjs";
|
|
28
30
|
export type { KjunTableProps, TableColumn, TableCardSection, TablePagination, TableSort, } from "./table.cjs";
|
|
29
31
|
export { KjunKpiHero, KjunKpiRow } from "./kpi.cjs";
|
|
@@ -12,18 +12,20 @@ export * from "./display.js";
|
|
|
12
12
|
export * from "./layout-primitives.js";
|
|
13
13
|
export * from "./feedback.js";
|
|
14
14
|
export * from "./controls.js";
|
|
15
|
-
export { KjunPopover, KjunTooltip, KjunDropdown, KjunDropdownItem, KjunDropdownDivider, KjunMenuButton, KjunDrawer, } from "./layers.js";
|
|
16
|
-
export type { KjunPopoverProps, KjunTooltipProps, KjunDropdownProps, KjunDropdownItemProps, KjunMenuButtonProps, KjunDrawerProps, } from "./layers.js";
|
|
17
|
-
export { KjunSelect, KjunCombobox, KjunSearchInput, KjunDatePicker } from "./select.js";
|
|
18
|
-
export type { KjunSelectProps, KjunComboboxProps, KjunSearchInputProps, KjunDatePickerProps, OptionValue, SelectOption, } from "./select.js";
|
|
15
|
+
export { KjunPopover, KjunTooltip, KjunDropdown, KjunDropdownItem, KjunDropdownDivider, KjunDropdownSection, KjunDropdownSubmenu, KjunMenuButton, KjunDrawer, } from "./layers.js";
|
|
16
|
+
export type { KjunPopoverProps, KjunTooltipProps, KjunDropdownProps, KjunDropdownItemProps, KjunDropdownSectionProps, KjunDropdownSubmenuProps, KjunMenuButtonProps, KjunDrawerProps, } from "./layers.js";
|
|
17
|
+
export { KjunSelect, KjunCombobox, KjunSearchInput, KjunDatePicker, KjunDateRangePicker } from "./select.js";
|
|
18
|
+
export type { KjunSelectProps, KjunComboboxProps, KjunSearchInputProps, KjunDatePickerProps, KjunDateRangePickerProps, DateRange, DateRangePreset, OptionValue, SelectOption, } from "./select.js";
|
|
19
19
|
export * from "./navigation.js";
|
|
20
20
|
export { KjunIconToggle, KjunCopyButton, KjunRefreshButton, KjunExternalLink, KjunScrollFade, } from "./actions.js";
|
|
21
21
|
export type { KjunIconToggleProps, KjunCopyButtonProps, KjunRefreshButtonProps, KjunExternalLinkProps, } from "./actions.js";
|
|
22
|
+
export { KjunCarousel } from "./carousel.js";
|
|
23
|
+
export type { KjunCarouselProps } from "./carousel.js";
|
|
22
24
|
export { KjunDataState, KjunErrorBoundary } from "./data-state.js";
|
|
23
25
|
export type { KjunDataStateProps, KjunErrorBoundaryProps } from "./data-state.js";
|
|
24
26
|
export * from "./skeletons.js";
|
|
25
|
-
export { KjunAnimatedNumber,
|
|
26
|
-
export type { KjunAnimatedNumberProps,
|
|
27
|
+
export { KjunAnimatedNumber, KjunPriceCell, KjunSignedValue, KjunDeviation, KjunHeatmapCell, KjunProgressCell, KjunCollectionMark, KjunExecutionStatusBadge, KjunSparkline, } from "./financial.js";
|
|
28
|
+
export type { KjunAnimatedNumberProps, KjunPriceCellProps, KjunSignedValueProps, KjunDeviationProps, KjunHeatmapCellProps, KjunProgressCellProps, KjunCollectionMarkProps, KjunExecutionStatusBadgeProps, KjunSparklineProps, } from "./financial.js";
|
|
27
29
|
export { KjunTable } from "./table.js";
|
|
28
30
|
export type { KjunTableProps, TableColumn, TableCardSection, TablePagination, TableSort, } from "./table.js";
|
|
29
31
|
export { KjunKpiHero, KjunKpiRow } from "./kpi.js";
|
|
@@ -35,7 +35,11 @@ export interface KjunKpiHeroProps {
|
|
|
35
35
|
renderSecondary?: (item: KpiValue, index: number) => ReactNode;
|
|
36
36
|
}
|
|
37
37
|
export declare function KjunKpiHero(props: KjunKpiHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
export interface KpiRowItem extends KpiValue {
|
|
38
|
+
export interface KpiRowItem extends Omit<KpiValue, "value"> {
|
|
39
|
+
/** null/undefined and non-finite numbers are missing, never zero. Loading still takes precedence. */
|
|
40
|
+
value?: number | string | null;
|
|
41
|
+
/** Shown for a missing value; defaults to an em dash. */
|
|
42
|
+
missingText?: string;
|
|
39
43
|
loading?: boolean;
|
|
40
44
|
clickable?: boolean;
|
|
41
45
|
mobileFull?: boolean;
|
|
@@ -52,7 +56,7 @@ export interface KpiRowItem extends KpiValue {
|
|
|
52
56
|
badge?: {
|
|
53
57
|
text: string;
|
|
54
58
|
variant?: "warning" | "success" | "danger" | "price-up" | "price-down" | "info" | "neutral";
|
|
55
|
-
};
|
|
59
|
+
} | null;
|
|
56
60
|
badgePlacement?: "label" | "value";
|
|
57
61
|
}
|
|
58
62
|
export interface KjunKpiRowProps {
|
|
@@ -35,7 +35,11 @@ export interface KjunKpiHeroProps {
|
|
|
35
35
|
renderSecondary?: (item: KpiValue, index: number) => ReactNode;
|
|
36
36
|
}
|
|
37
37
|
export declare function KjunKpiHero(props: KjunKpiHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
-
export interface KpiRowItem extends KpiValue {
|
|
38
|
+
export interface KpiRowItem extends Omit<KpiValue, "value"> {
|
|
39
|
+
/** null/undefined and non-finite numbers are missing, never zero. Loading still takes precedence. */
|
|
40
|
+
value?: number | string | null;
|
|
41
|
+
/** Shown for a missing value; defaults to an em dash. */
|
|
42
|
+
missingText?: string;
|
|
39
43
|
loading?: boolean;
|
|
40
44
|
clickable?: boolean;
|
|
41
45
|
mobileFull?: boolean;
|
|
@@ -52,7 +56,7 @@ export interface KpiRowItem extends KpiValue {
|
|
|
52
56
|
badge?: {
|
|
53
57
|
text: string;
|
|
54
58
|
variant?: "warning" | "success" | "danger" | "price-up" | "price-down" | "info" | "neutral";
|
|
55
|
-
};
|
|
59
|
+
} | null;
|
|
56
60
|
badgePlacement?: "label" | "value";
|
|
57
61
|
}
|
|
58
62
|
export interface KjunKpiRowProps {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { FloatingPanel, type Placement } from "./floating-panel.cjs";
|
|
2
2
|
export { KjunPopover, KjunTooltip, type KjunPopoverProps, type KjunTooltipProps } from "./popover.cjs";
|
|
3
|
-
export { KjunDropdown, KjunDropdownItem, KjunDropdownDivider, KjunMenuButton, type KjunDropdownProps, type KjunDropdownItemProps, type KjunMenuButtonProps } from "./dropdown.cjs";
|
|
3
|
+
export { KjunDropdown, KjunDropdownItem, KjunDropdownDivider, KjunDropdownSection, KjunDropdownSubmenu, KjunMenuButton, type KjunDropdownProps, type KjunDropdownItemProps, type KjunDropdownSectionProps, type KjunDropdownSubmenuProps, type KjunMenuButtonProps } from "./dropdown.cjs";
|
|
4
4
|
export { KjunDrawer, type KjunDrawerProps } from "./drawer.cjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { FloatingPanel, type Placement } from "./floating-panel.js";
|
|
2
2
|
export { KjunPopover, KjunTooltip, type KjunPopoverProps, type KjunTooltipProps } from "./popover.js";
|
|
3
|
-
export { KjunDropdown, KjunDropdownItem, KjunDropdownDivider, KjunMenuButton, type KjunDropdownProps, type KjunDropdownItemProps, type KjunMenuButtonProps } from "./dropdown.js";
|
|
3
|
+
export { KjunDropdown, KjunDropdownItem, KjunDropdownDivider, KjunDropdownSection, KjunDropdownSubmenu, KjunMenuButton, type KjunDropdownProps, type KjunDropdownItemProps, type KjunDropdownSectionProps, type KjunDropdownSubmenuProps, type KjunMenuButtonProps } from "./dropdown.js";
|
|
4
4
|
export { KjunDrawer, type KjunDrawerProps } from "./drawer.js";
|
|
@@ -3,6 +3,8 @@ import { type MouseEvent, type ReactNode } from "react";
|
|
|
3
3
|
export interface KjunListRowProps {
|
|
4
4
|
title: string;
|
|
5
5
|
description?: string;
|
|
6
|
+
/** Icon name drawn in the leading column at the list icon size; `leading` replaces it when both are given. */
|
|
7
|
+
icon?: string;
|
|
6
8
|
leading?: ReactNode;
|
|
7
9
|
trailing?: ReactNode;
|
|
8
10
|
actions?: ReactNode;
|
|
@@ -12,18 +14,26 @@ export interface KjunListRowProps {
|
|
|
12
14
|
destructive?: boolean;
|
|
13
15
|
/** Ends the row with a decorative chevron that marks it as navigation. */
|
|
14
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;
|
|
15
22
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
16
23
|
/** Name of a pressable or link row, e.g. with the amount a screen reader should hear. */
|
|
17
24
|
ariaLabel?: string;
|
|
18
25
|
/** Display-only content under the description (a budget bar); no buttons or links inside a pressable row. */
|
|
19
26
|
children?: ReactNode;
|
|
27
|
+
/** Clamps the title (and the description) to this many lines, ending in an ellipsis. */
|
|
28
|
+
titleLines?: number;
|
|
29
|
+
descriptionLines?: number;
|
|
20
30
|
}
|
|
21
|
-
export declare function KjunListRow({ title, description, 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;
|
|
22
32
|
export interface KjunListSectionProps {
|
|
23
33
|
title?: string;
|
|
24
34
|
description?: string;
|
|
25
35
|
actions?: ReactNode;
|
|
26
|
-
children
|
|
36
|
+
children?: ReactNode;
|
|
27
37
|
ariaLabel?: string;
|
|
28
38
|
/** Paints the surface background (default true); false lets the page background show through. */
|
|
29
39
|
surface?: boolean;
|
|
@@ -31,10 +41,25 @@ export interface KjunListSectionProps {
|
|
|
31
41
|
divider?: boolean;
|
|
32
42
|
/** "compact" rows keep the 16px inset but are 44 tall (the touch minimum) instead of 56. */
|
|
33
43
|
density?: "default" | "compact";
|
|
34
|
-
/** 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). */
|
|
35
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;
|
|
36
60
|
}
|
|
37
|
-
|
|
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;
|
|
38
63
|
export interface KjunListItemProps {
|
|
39
64
|
children: ReactNode;
|
|
40
65
|
}
|
|
@@ -3,6 +3,8 @@ import { type MouseEvent, type ReactNode } from "react";
|
|
|
3
3
|
export interface KjunListRowProps {
|
|
4
4
|
title: string;
|
|
5
5
|
description?: string;
|
|
6
|
+
/** Icon name drawn in the leading column at the list icon size; `leading` replaces it when both are given. */
|
|
7
|
+
icon?: string;
|
|
6
8
|
leading?: ReactNode;
|
|
7
9
|
trailing?: ReactNode;
|
|
8
10
|
actions?: ReactNode;
|
|
@@ -12,18 +14,26 @@ export interface KjunListRowProps {
|
|
|
12
14
|
destructive?: boolean;
|
|
13
15
|
/** Ends the row with a decorative chevron that marks it as navigation. */
|
|
14
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;
|
|
15
22
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
16
23
|
/** Name of a pressable or link row, e.g. with the amount a screen reader should hear. */
|
|
17
24
|
ariaLabel?: string;
|
|
18
25
|
/** Display-only content under the description (a budget bar); no buttons or links inside a pressable row. */
|
|
19
26
|
children?: ReactNode;
|
|
27
|
+
/** Clamps the title (and the description) to this many lines, ending in an ellipsis. */
|
|
28
|
+
titleLines?: number;
|
|
29
|
+
descriptionLines?: number;
|
|
20
30
|
}
|
|
21
|
-
export declare function KjunListRow({ title, description, 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;
|
|
22
32
|
export interface KjunListSectionProps {
|
|
23
33
|
title?: string;
|
|
24
34
|
description?: string;
|
|
25
35
|
actions?: ReactNode;
|
|
26
|
-
children
|
|
36
|
+
children?: ReactNode;
|
|
27
37
|
ariaLabel?: string;
|
|
28
38
|
/** Paints the surface background (default true); false lets the page background show through. */
|
|
29
39
|
surface?: boolean;
|
|
@@ -31,10 +41,25 @@ export interface KjunListSectionProps {
|
|
|
31
41
|
divider?: boolean;
|
|
32
42
|
/** "compact" rows keep the 16px inset but are 44 tall (the touch minimum) instead of 56. */
|
|
33
43
|
density?: "default" | "compact";
|
|
34
|
-
/** 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). */
|
|
35
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;
|
|
36
60
|
}
|
|
37
|
-
|
|
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;
|
|
38
63
|
export interface KjunListItemProps {
|
|
39
64
|
children: ReactNode;
|
|
40
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;
|
|
@@ -16,7 +16,7 @@ export interface KjunAvatarProps {
|
|
|
16
16
|
name?: string;
|
|
17
17
|
alt?: string;
|
|
18
18
|
decorative?: boolean;
|
|
19
|
-
size?: "sm" | "md" | "lg";
|
|
19
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
20
20
|
shape?: "circle" | "square";
|
|
21
21
|
color?: CSSProperties["color"];
|
|
22
22
|
textColor?: CSSProperties["color"];
|
|
@@ -16,7 +16,7 @@ export interface KjunAvatarProps {
|
|
|
16
16
|
name?: string;
|
|
17
17
|
alt?: string;
|
|
18
18
|
decorative?: boolean;
|
|
19
|
-
size?: "sm" | "md" | "lg";
|
|
19
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl";
|
|
20
20
|
shape?: "circle" | "square";
|
|
21
21
|
color?: CSSProperties["color"];
|
|
22
22
|
textColor?: CSSProperties["color"];
|
|
@@ -1,42 +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
|
-
ariaLabel?: string;
|
|
18
|
-
onValueChange?: (value: string) => void;
|
|
19
|
-
onChange?: (value: string) => void;
|
|
20
|
-
onTabMenu?: (event: {
|
|
21
|
-
name: string;
|
|
22
|
-
x: number;
|
|
23
|
-
y: number;
|
|
24
|
-
pointer: "mouse" | "touch";
|
|
25
|
-
}) => void;
|
|
26
|
-
}
|
|
27
|
-
export declare function KjunTabs({ value, items, density, variant, actions, children, ariaLabel, onValueChange, onChange, onTabMenu, }: KjunTabsProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
-
export interface KjunTabPaneProps extends TabItem {
|
|
29
|
-
children?: ReactNode;
|
|
30
|
-
}
|
|
31
|
-
export declare function KjunTabPane({ name, children }: KjunTabPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export * from "./tabs.cjs";
|
|
32
4
|
export interface KjunAccordionProps {
|
|
33
5
|
multiple?: boolean;
|
|
34
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;
|
|
35
15
|
children: ReactNode;
|
|
36
16
|
}
|
|
37
|
-
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;
|
|
38
19
|
export interface KjunAccordionItemProps {
|
|
39
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;
|
|
40
25
|
defaultOpen?: boolean;
|
|
41
26
|
/** Controlled open state. A controlled item follows this value only and stays out of the Accordion's single-open rule. */
|
|
42
27
|
open?: boolean;
|
|
@@ -45,21 +30,22 @@ export interface KjunAccordionItemProps {
|
|
|
45
30
|
/** Keeps the body mounted after it first opens, so inputs keep their state while closed. */
|
|
46
31
|
keepMounted?: boolean;
|
|
47
32
|
disabled?: boolean;
|
|
33
|
+
/** Replaces the title in the header; pass ariaLabel when it is not plain text. */
|
|
48
34
|
header?: ReactNode;
|
|
35
|
+
/** The header's accessible name when header is not plain text. */
|
|
36
|
+
ariaLabel?: string;
|
|
49
37
|
children: ReactNode;
|
|
50
38
|
}
|
|
51
|
-
export declare function KjunAccordionItem({ title, defaultOpen, disabled, header, open: openProp, onOpenChange, keepMounted, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
52
|
-
export
|
|
53
|
-
label: string;
|
|
54
|
-
to?: string;
|
|
55
|
-
icon?: string;
|
|
56
|
-
}
|
|
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 };
|
|
57
41
|
export interface KjunBreadcrumbProps {
|
|
58
42
|
items: BreadcrumbItem[];
|
|
59
43
|
renderLink?: (item: BreadcrumbItem, children: ReactNode) => ReactNode;
|
|
60
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;
|
|
61
47
|
}
|
|
62
|
-
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;
|
|
63
49
|
export interface KjunPaginationProps {
|
|
64
50
|
currentPage?: number;
|
|
65
51
|
page?: number;
|