@kjun-ui/react 0.4.2 → 0.5.1
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/README.md +4 -4
- package/dist/index.cjs +368 -356
- package/dist/index.js +368 -356
- package/dist/styles.css +2057 -2133
- package/dist/types/packages/react/src/actions.d.cts +13 -13
- package/dist/types/packages/react/src/actions.d.ts +13 -13
- package/dist/types/packages/react/src/app-navigation.d.cts +6 -6
- package/dist/types/packages/react/src/app-navigation.d.ts +6 -6
- package/dist/types/packages/react/src/button.d.cts +4 -4
- package/dist/types/packages/react/src/button.d.ts +4 -4
- package/dist/types/packages/react/src/card.d.cts +2 -2
- package/dist/types/packages/react/src/card.d.ts +2 -2
- package/dist/types/packages/react/src/chip.d.cts +2 -2
- package/dist/types/packages/react/src/chip.d.ts +2 -2
- package/dist/types/packages/react/src/combobox.d.cts +2 -2
- package/dist/types/packages/react/src/combobox.d.ts +2 -2
- package/dist/types/packages/react/src/controls.d.cts +14 -14
- package/dist/types/packages/react/src/controls.d.ts +14 -14
- package/dist/types/packages/react/src/data-state.d.cts +6 -6
- package/dist/types/packages/react/src/data-state.d.ts +6 -6
- package/dist/types/packages/react/src/date-picker.d.cts +2 -2
- package/dist/types/packages/react/src/date-picker.d.ts +2 -2
- package/dist/types/packages/react/src/display.d.cts +15 -15
- package/dist/types/packages/react/src/display.d.ts +15 -15
- package/dist/types/packages/react/src/drawer.d.cts +2 -2
- package/dist/types/packages/react/src/drawer.d.ts +2 -2
- package/dist/types/packages/react/src/dropdown.d.cts +12 -12
- package/dist/types/packages/react/src/dropdown.d.ts +12 -12
- package/dist/types/packages/react/src/financial-display.d.cts +12 -12
- package/dist/types/packages/react/src/financial-display.d.ts +12 -12
- package/dist/types/packages/react/src/financial.d.cts +4 -4
- package/dist/types/packages/react/src/financial.d.ts +4 -4
- package/dist/types/packages/react/src/index.d.cts +22 -22
- package/dist/types/packages/react/src/index.d.ts +22 -22
- package/dist/types/packages/react/src/input.d.cts +4 -4
- package/dist/types/packages/react/src/input.d.ts +4 -4
- package/dist/types/packages/react/src/kpi.d.cts +4 -4
- package/dist/types/packages/react/src/kpi.d.ts +4 -4
- package/dist/types/packages/react/src/layers.d.cts +3 -3
- package/dist/types/packages/react/src/layers.d.ts +3 -3
- package/dist/types/packages/react/src/list.d.cts +4 -4
- package/dist/types/packages/react/src/list.d.ts +4 -4
- package/dist/types/packages/react/src/market-cards.d.cts +2 -2
- package/dist/types/packages/react/src/market-cards.d.ts +2 -2
- package/dist/types/packages/react/src/market-list.d.cts +2 -2
- package/dist/types/packages/react/src/market-list.d.ts +2 -2
- package/dist/types/packages/react/src/market-model.d.cts +4 -4
- package/dist/types/packages/react/src/market-model.d.ts +4 -4
- package/dist/types/packages/react/src/market-panel.d.cts +1 -1
- package/dist/types/packages/react/src/market-panel.d.ts +1 -1
- package/dist/types/packages/react/src/market-skeleton.d.cts +2 -2
- package/dist/types/packages/react/src/market-skeleton.d.ts +2 -2
- package/dist/types/packages/react/src/market-table.d.cts +2 -2
- package/dist/types/packages/react/src/market-table.d.ts +2 -2
- package/dist/types/packages/react/src/market.d.cts +5 -5
- package/dist/types/packages/react/src/market.d.ts +5 -5
- package/dist/types/packages/react/src/media.d.cts +4 -4
- package/dist/types/packages/react/src/media.d.ts +4 -4
- package/dist/types/packages/react/src/modal.d.cts +4 -4
- package/dist/types/packages/react/src/modal.d.ts +4 -4
- package/dist/types/packages/react/src/navigation.d.cts +12 -12
- package/dist/types/packages/react/src/navigation.d.ts +12 -12
- package/dist/types/packages/react/src/number-display.d.cts +8 -8
- package/dist/types/packages/react/src/number-display.d.ts +8 -8
- package/dist/types/packages/react/src/popover.d.cts +4 -4
- package/dist/types/packages/react/src/popover.d.ts +4 -4
- package/dist/types/packages/react/src/quantity-stepper.d.cts +2 -2
- package/dist/types/packages/react/src/quantity-stepper.d.ts +2 -2
- package/dist/types/packages/react/src/range-input.d.cts +4 -4
- package/dist/types/packages/react/src/range-input.d.ts +4 -4
- package/dist/types/packages/react/src/search-input.d.cts +2 -2
- package/dist/types/packages/react/src/search-input.d.ts +2 -2
- package/dist/types/packages/react/src/select-control.d.cts +2 -2
- package/dist/types/packages/react/src/select-control.d.ts +2 -2
- package/dist/types/packages/react/src/select.d.cts +8 -8
- package/dist/types/packages/react/src/select.d.ts +8 -8
- package/dist/types/packages/react/src/skeletons.d.cts +8 -8
- package/dist/types/packages/react/src/skeletons.d.ts +8 -8
- package/dist/types/packages/react/src/table-check.d.cts +1 -1
- package/dist/types/packages/react/src/table-check.d.ts +1 -1
- package/dist/types/packages/react/src/table-model.d.cts +2 -2
- package/dist/types/packages/react/src/table-model.d.ts +2 -2
- package/dist/types/packages/react/src/table-view.d.cts +2 -2
- package/dist/types/packages/react/src/table-view.d.ts +2 -2
- package/dist/types/packages/react/src/table.d.cts +2 -2
- package/dist/types/packages/react/src/table.d.ts +2 -2
- package/dist/types/packages/react/src/time-picker.d.cts +2 -2
- package/dist/types/packages/react/src/time-picker.d.ts +2 -2
- package/dist/types/packages/react/src/typography.d.cts +1 -19
- package/dist/types/packages/react/src/typography.d.ts +1 -19
- package/dist/types/shared/package-runtime/table-model.d.cts +15 -0
- package/dist/types/shared/package-runtime/table-model.d.ts +15 -0
- package/dist/types/shared/package-runtime/table.d.cts +1 -1
- package/dist/types/shared/package-runtime/table.d.ts +1 -1
- package/dist/types/shared/package-runtime/typography.d.cts +19 -0
- package/dist/types/shared/package-runtime/typography.d.ts +19 -0
- package/package.json +3 -3
|
@@ -14,7 +14,7 @@ export interface KpiValue {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const kpiFormat: (item: KpiValue, value?: string | number) => string;
|
|
16
16
|
export declare const kpiColor: (value: unknown, semantic?: string, neutral?: string) => string;
|
|
17
|
-
export interface
|
|
17
|
+
export interface KjunKpiHeroProps {
|
|
18
18
|
loading?: boolean;
|
|
19
19
|
label: string;
|
|
20
20
|
value: number | string;
|
|
@@ -32,7 +32,7 @@ export interface DsKpiHeroProps {
|
|
|
32
32
|
deltaFormatter?: (value: number, kind: "absolute" | "percent") => string;
|
|
33
33
|
renderSecondary?: (item: KpiValue, index: number) => ReactNode;
|
|
34
34
|
}
|
|
35
|
-
export declare function
|
|
35
|
+
export declare function KjunKpiHero(props: KjunKpiHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export interface KpiRowItem extends KpiValue {
|
|
37
37
|
loading?: boolean;
|
|
38
38
|
clickable?: boolean;
|
|
@@ -53,7 +53,7 @@ export interface KpiRowItem extends KpiValue {
|
|
|
53
53
|
};
|
|
54
54
|
badgePlacement?: "label" | "value";
|
|
55
55
|
}
|
|
56
|
-
export interface
|
|
56
|
+
export interface KjunKpiRowProps {
|
|
57
57
|
loading?: boolean;
|
|
58
58
|
items: KpiRowItem[];
|
|
59
59
|
size?: "md" | "sm";
|
|
@@ -61,4 +61,4 @@ export interface DsKpiRowProps {
|
|
|
61
61
|
onItemClick?: (item: KpiRowItem, index: number) => void;
|
|
62
62
|
renderValue?: (item: KpiRowItem, index: number) => ReactNode;
|
|
63
63
|
}
|
|
64
|
-
export declare function
|
|
64
|
+
export declare function KjunKpiRow({ loading, items, size, mobileSummary, onItemClick, renderValue, }: KjunKpiRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,7 +14,7 @@ export interface KpiValue {
|
|
|
14
14
|
}
|
|
15
15
|
export declare const kpiFormat: (item: KpiValue, value?: string | number) => string;
|
|
16
16
|
export declare const kpiColor: (value: unknown, semantic?: string, neutral?: string) => string;
|
|
17
|
-
export interface
|
|
17
|
+
export interface KjunKpiHeroProps {
|
|
18
18
|
loading?: boolean;
|
|
19
19
|
label: string;
|
|
20
20
|
value: number | string;
|
|
@@ -32,7 +32,7 @@ export interface DsKpiHeroProps {
|
|
|
32
32
|
deltaFormatter?: (value: number, kind: "absolute" | "percent") => string;
|
|
33
33
|
renderSecondary?: (item: KpiValue, index: number) => ReactNode;
|
|
34
34
|
}
|
|
35
|
-
export declare function
|
|
35
|
+
export declare function KjunKpiHero(props: KjunKpiHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
36
36
|
export interface KpiRowItem extends KpiValue {
|
|
37
37
|
loading?: boolean;
|
|
38
38
|
clickable?: boolean;
|
|
@@ -53,7 +53,7 @@ export interface KpiRowItem extends KpiValue {
|
|
|
53
53
|
};
|
|
54
54
|
badgePlacement?: "label" | "value";
|
|
55
55
|
}
|
|
56
|
-
export interface
|
|
56
|
+
export interface KjunKpiRowProps {
|
|
57
57
|
loading?: boolean;
|
|
58
58
|
items: KpiRowItem[];
|
|
59
59
|
size?: "md" | "sm";
|
|
@@ -61,4 +61,4 @@ export interface DsKpiRowProps {
|
|
|
61
61
|
onItemClick?: (item: KpiRowItem, index: number) => void;
|
|
62
62
|
renderValue?: (item: KpiRowItem, index: number) => ReactNode;
|
|
63
63
|
}
|
|
64
|
-
export declare function
|
|
64
|
+
export declare function KjunKpiRow({ loading, items, size, mobileSummary, onItemClick, renderValue, }: KjunKpiRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { FloatingPanel, type Placement } from "./floating-panel.cjs";
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
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";
|
|
4
|
+
export { KjunDrawer, type KjunDrawerProps } from "./drawer.cjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { FloatingPanel, type Placement } from "./floating-panel.js";
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
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";
|
|
4
|
+
export { KjunDrawer, type KjunDrawerProps } from "./drawer.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MouseEvent, type ReactNode } from "react";
|
|
2
|
-
export interface
|
|
2
|
+
export interface KjunListRowProps {
|
|
3
3
|
title: string;
|
|
4
4
|
description?: string;
|
|
5
5
|
leading?: ReactNode;
|
|
@@ -9,12 +9,12 @@ export interface DsListRowProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
11
11
|
}
|
|
12
|
-
export declare function
|
|
13
|
-
export interface
|
|
12
|
+
export declare function KjunListRow({ title, description, leading, trailing, actions, href, disabled, onClick }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface KjunListSectionProps {
|
|
14
14
|
title?: string;
|
|
15
15
|
description?: string;
|
|
16
16
|
actions?: ReactNode;
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
ariaLabel?: string;
|
|
19
19
|
}
|
|
20
|
-
export declare function
|
|
20
|
+
export declare function KjunListSection({ title, description, actions, children, ariaLabel }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type MouseEvent, type ReactNode } from "react";
|
|
2
|
-
export interface
|
|
2
|
+
export interface KjunListRowProps {
|
|
3
3
|
title: string;
|
|
4
4
|
description?: string;
|
|
5
5
|
leading?: ReactNode;
|
|
@@ -9,12 +9,12 @@ export interface DsListRowProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
11
11
|
}
|
|
12
|
-
export declare function
|
|
13
|
-
export interface
|
|
12
|
+
export declare function KjunListRow({ title, description, leading, trailing, actions, href, disabled, onClick }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface KjunListSectionProps {
|
|
14
14
|
title?: string;
|
|
15
15
|
description?: string;
|
|
16
16
|
actions?: ReactNode;
|
|
17
17
|
children: ReactNode;
|
|
18
18
|
ariaLabel?: string;
|
|
19
19
|
}
|
|
20
|
-
export declare function
|
|
20
|
+
export declare function KjunListSection({ title, description, actions, children, ariaLabel }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function
|
|
1
|
+
import { KjunMarketCardsProps } from "./market-model.cjs";
|
|
2
|
+
export declare function KjunMarketCards<Row extends object = Record<string, unknown>>(props: KjunMarketCardsProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function
|
|
1
|
+
import { KjunMarketCardsProps } from "./market-model.js";
|
|
2
|
+
export declare function KjunMarketCards<Row extends object = Record<string, unknown>>(props: KjunMarketCardsProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function
|
|
1
|
+
import { KjunMarketSimpleListProps } from "./market-model.cjs";
|
|
2
|
+
export declare function KjunMarketSimpleList<Row extends object = Record<string, unknown>>(props: KjunMarketSimpleListProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function
|
|
1
|
+
import { KjunMarketSimpleListProps } from "./market-model.js";
|
|
2
|
+
export declare function KjunMarketSimpleList<Row extends object = Record<string, unknown>>(props: KjunMarketSimpleListProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -47,7 +47,7 @@ export type MarketFormatter<Row extends object> = (value: unknown, format: strin
|
|
|
47
47
|
row: Row;
|
|
48
48
|
column?: MarketColumn;
|
|
49
49
|
}) => string;
|
|
50
|
-
export interface
|
|
50
|
+
export interface KjunMarketSimpleListProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
51
51
|
priceValue: (row: Row) => number | null;
|
|
52
52
|
changeValue: (row: Row) => number | null;
|
|
53
53
|
changeLoading?: (row: Row) => boolean;
|
|
@@ -55,7 +55,7 @@ export interface DsMarketSimpleListProps<Row extends object = Record<string, unk
|
|
|
55
55
|
closingPrice?: boolean;
|
|
56
56
|
renderPricePrefix?: (row: Row) => ReactNode;
|
|
57
57
|
}
|
|
58
|
-
export interface
|
|
58
|
+
export interface KjunMarketTableProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
59
59
|
columns: MarketColumn[];
|
|
60
60
|
cellLoading?: (row: Row, column: MarketColumn) => boolean;
|
|
61
61
|
showActions?: boolean;
|
|
@@ -72,7 +72,7 @@ export interface DsMarketTableProps<Row extends object = Record<string, unknown>
|
|
|
72
72
|
onToggleInterest?: (row: Row) => void;
|
|
73
73
|
onToggleFavorite?: (row: Row) => void;
|
|
74
74
|
}
|
|
75
|
-
export interface
|
|
75
|
+
export interface KjunMarketCardsProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row>, MarketCardsModelProps {
|
|
76
76
|
columns: MarketColumn[];
|
|
77
77
|
sortOrder?: "asc" | "desc";
|
|
78
78
|
currency?: string;
|
|
@@ -87,7 +87,7 @@ export interface DsMarketCardsProps<Row extends object = Record<string, unknown>
|
|
|
87
87
|
metricDisplay: (row: Row) => string;
|
|
88
88
|
}) => ReactNode;
|
|
89
89
|
}
|
|
90
|
-
export declare function useMarketCards<Row extends object>(props:
|
|
90
|
+
export declare function useMarketCards<Row extends object>(props: KjunMarketCardsProps<Row>): {
|
|
91
91
|
pills: {
|
|
92
92
|
sortKey: string | null | undefined;
|
|
93
93
|
isDefaultSort: boolean | undefined;
|
|
@@ -47,7 +47,7 @@ export type MarketFormatter<Row extends object> = (value: unknown, format: strin
|
|
|
47
47
|
row: Row;
|
|
48
48
|
column?: MarketColumn;
|
|
49
49
|
}) => string;
|
|
50
|
-
export interface
|
|
50
|
+
export interface KjunMarketSimpleListProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
51
51
|
priceValue: (row: Row) => number | null;
|
|
52
52
|
changeValue: (row: Row) => number | null;
|
|
53
53
|
changeLoading?: (row: Row) => boolean;
|
|
@@ -55,7 +55,7 @@ export interface DsMarketSimpleListProps<Row extends object = Record<string, unk
|
|
|
55
55
|
closingPrice?: boolean;
|
|
56
56
|
renderPricePrefix?: (row: Row) => ReactNode;
|
|
57
57
|
}
|
|
58
|
-
export interface
|
|
58
|
+
export interface KjunMarketTableProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
59
59
|
columns: MarketColumn[];
|
|
60
60
|
cellLoading?: (row: Row, column: MarketColumn) => boolean;
|
|
61
61
|
showActions?: boolean;
|
|
@@ -72,7 +72,7 @@ export interface DsMarketTableProps<Row extends object = Record<string, unknown>
|
|
|
72
72
|
onToggleInterest?: (row: Row) => void;
|
|
73
73
|
onToggleFavorite?: (row: Row) => void;
|
|
74
74
|
}
|
|
75
|
-
export interface
|
|
75
|
+
export interface KjunMarketCardsProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row>, MarketCardsModelProps {
|
|
76
76
|
columns: MarketColumn[];
|
|
77
77
|
sortOrder?: "asc" | "desc";
|
|
78
78
|
currency?: string;
|
|
@@ -87,7 +87,7 @@ export interface DsMarketCardsProps<Row extends object = Record<string, unknown>
|
|
|
87
87
|
metricDisplay: (row: Row) => string;
|
|
88
88
|
}) => ReactNode;
|
|
89
89
|
}
|
|
90
|
-
export declare function useMarketCards<Row extends object>(props:
|
|
90
|
+
export declare function useMarketCards<Row extends object>(props: KjunMarketCardsProps<Row>): {
|
|
91
91
|
pills: {
|
|
92
92
|
sortKey: string | null | undefined;
|
|
93
93
|
isDefaultSort: boolean | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function KjunMarketListPanel({ controls, children, }: {
|
|
3
3
|
controls?: ReactNode;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export declare function
|
|
2
|
+
export declare function KjunMarketListPanel({ controls, children, }: {
|
|
3
3
|
controls?: ReactNode;
|
|
4
4
|
children: ReactNode;
|
|
5
5
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface KjunMarketTableSkeletonProps {
|
|
2
2
|
columns?: ({
|
|
3
3
|
key?: string;
|
|
4
4
|
label?: string;
|
|
@@ -10,4 +10,4 @@ export interface DsMarketTableSkeletonProps {
|
|
|
10
10
|
alignClass?: (align: unknown) => string;
|
|
11
11
|
widthClass?: (column: unknown) => string;
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function KjunMarketTableSkeleton({ columns, rows, showActions, alignClass, widthClass }: KjunMarketTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface KjunMarketTableSkeletonProps {
|
|
2
2
|
columns?: ({
|
|
3
3
|
key?: string;
|
|
4
4
|
label?: string;
|
|
@@ -10,4 +10,4 @@ export interface DsMarketTableSkeletonProps {
|
|
|
10
10
|
alignClass?: (align: unknown) => string;
|
|
11
11
|
widthClass?: (column: unknown) => string;
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
13
|
+
export declare function KjunMarketTableSkeleton({ columns, rows, showActions, alignClass, widthClass }: KjunMarketTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function
|
|
1
|
+
import { KjunMarketTableProps } from "./market-model.cjs";
|
|
2
|
+
export declare function KjunMarketTable<Row extends object = Record<string, unknown>>(props: KjunMarketTableProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare function
|
|
1
|
+
import { KjunMarketTableProps } from "./market-model.js";
|
|
2
|
+
export declare function KjunMarketTable<Row extends object = Record<string, unknown>>(props: KjunMarketTableProps<Row>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { KjunMarketCards } from "./market-cards.cjs";
|
|
2
|
+
export { KjunMarketSimpleList } from "./market-list.cjs";
|
|
3
3
|
export { useMarketCards } from "./market-model.cjs";
|
|
4
|
-
export type {
|
|
5
|
-
export {
|
|
4
|
+
export type { KjunMarketCardsProps, KjunMarketSimpleListProps, KjunMarketTableProps, MarketBaseProps, MarketColumn, MarketFormatter, MarketMetric, MarketPagination } from "./market-model.cjs";
|
|
5
|
+
export { KjunMarketListPanel } from "./market-panel.cjs";
|
|
6
6
|
export { MarketIdentity } from "./market-parts.cjs";
|
|
7
|
-
export {
|
|
7
|
+
export { KjunMarketTable } from "./market-table.cjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { KjunMarketCards } from "./market-cards.js";
|
|
2
|
+
export { KjunMarketSimpleList } from "./market-list.js";
|
|
3
3
|
export { useMarketCards } from "./market-model.js";
|
|
4
|
-
export type {
|
|
5
|
-
export {
|
|
4
|
+
export type { KjunMarketCardsProps, KjunMarketSimpleListProps, KjunMarketTableProps, MarketBaseProps, MarketColumn, MarketFormatter, MarketMetric, MarketPagination } from "./market-model.js";
|
|
5
|
+
export { KjunMarketListPanel } from "./market-panel.js";
|
|
6
6
|
export { MarketIdentity } from "./market-parts.js";
|
|
7
|
-
export {
|
|
7
|
+
export { KjunMarketTable } from "./market-table.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export interface
|
|
2
|
+
export interface KjunImageProps {
|
|
3
3
|
src?: string;
|
|
4
4
|
alt: string;
|
|
5
5
|
decorative?: boolean;
|
|
@@ -10,8 +10,8 @@ export interface DsImageProps {
|
|
|
10
10
|
onLoad?: () => void;
|
|
11
11
|
onError?: () => void;
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
14
|
-
export interface
|
|
13
|
+
export declare function KjunImage({ src, alt, decorative, aspectRatio, fit, fallback, lazy, onLoad, onError }: KjunImageProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface KjunAvatarProps {
|
|
15
15
|
src?: string;
|
|
16
16
|
name?: string;
|
|
17
17
|
alt?: string;
|
|
@@ -22,4 +22,4 @@ export interface DsAvatarProps {
|
|
|
22
22
|
onLoad?: () => void;
|
|
23
23
|
onError?: () => void;
|
|
24
24
|
}
|
|
25
|
-
export declare function
|
|
25
|
+
export declare function KjunAvatar({ src, name, alt, decorative, size, shape, fallback, onLoad, onError }: KjunAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export interface
|
|
2
|
+
export interface KjunImageProps {
|
|
3
3
|
src?: string;
|
|
4
4
|
alt: string;
|
|
5
5
|
decorative?: boolean;
|
|
@@ -10,8 +10,8 @@ export interface DsImageProps {
|
|
|
10
10
|
onLoad?: () => void;
|
|
11
11
|
onError?: () => void;
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
14
|
-
export interface
|
|
13
|
+
export declare function KjunImage({ src, alt, decorative, aspectRatio, fit, fallback, lazy, onLoad, onError }: KjunImageProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface KjunAvatarProps {
|
|
15
15
|
src?: string;
|
|
16
16
|
name?: string;
|
|
17
17
|
alt?: string;
|
|
@@ -22,4 +22,4 @@ export interface DsAvatarProps {
|
|
|
22
22
|
onLoad?: () => void;
|
|
23
23
|
onError?: () => void;
|
|
24
24
|
}
|
|
25
|
-
export declare function
|
|
25
|
+
export declare function KjunAvatar({ src, name, alt, decorative, size, shape, fallback, onLoad, onError }: KjunAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ButtonVariant, type InputSize } from "@kjun-ui/tokens";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
-
export interface
|
|
3
|
+
export interface KjunFormActionsProps {
|
|
4
4
|
size?: InputSize;
|
|
5
5
|
cancelText?: string;
|
|
6
6
|
confirmText?: string;
|
|
@@ -14,8 +14,8 @@ export interface DsFormActionsProps {
|
|
|
14
14
|
onCancel?: () => void;
|
|
15
15
|
onConfirm?: () => void;
|
|
16
16
|
}
|
|
17
|
-
export declare function
|
|
18
|
-
export interface
|
|
17
|
+
export declare function KjunFormActions({ size, cancelText, confirmText, showCancel, showConfirm, cancelDisabled, confirmDisabled, loading, variant, cancelVariant, onCancel, onConfirm, }: KjunFormActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export interface KjunModalProps {
|
|
19
19
|
open: boolean;
|
|
20
20
|
onOpenChange: (open: boolean) => void;
|
|
21
21
|
onClose?: () => void;
|
|
@@ -43,4 +43,4 @@ export interface DsModalProps {
|
|
|
43
43
|
children: ReactNode;
|
|
44
44
|
ariaLabel?: string;
|
|
45
45
|
}
|
|
46
|
-
export declare function
|
|
46
|
+
export declare function KjunModal({ open, onOpenChange, onClose, 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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ButtonVariant, type InputSize } from "@kjun-ui/tokens";
|
|
2
2
|
import { type ReactNode } from "react";
|
|
3
|
-
export interface
|
|
3
|
+
export interface KjunFormActionsProps {
|
|
4
4
|
size?: InputSize;
|
|
5
5
|
cancelText?: string;
|
|
6
6
|
confirmText?: string;
|
|
@@ -14,8 +14,8 @@ export interface DsFormActionsProps {
|
|
|
14
14
|
onCancel?: () => void;
|
|
15
15
|
onConfirm?: () => void;
|
|
16
16
|
}
|
|
17
|
-
export declare function
|
|
18
|
-
export interface
|
|
17
|
+
export declare function KjunFormActions({ size, cancelText, confirmText, showCancel, showConfirm, cancelDisabled, confirmDisabled, loading, variant, cancelVariant, onCancel, onConfirm, }: KjunFormActionsProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export interface KjunModalProps {
|
|
19
19
|
open: boolean;
|
|
20
20
|
onOpenChange: (open: boolean) => void;
|
|
21
21
|
onClose?: () => void;
|
|
@@ -43,4 +43,4 @@ export interface DsModalProps {
|
|
|
43
43
|
children: ReactNode;
|
|
44
44
|
ariaLabel?: string;
|
|
45
45
|
}
|
|
46
|
-
export declare function
|
|
46
|
+
export declare function KjunModal({ open, onOpenChange, onClose, 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;
|
|
@@ -7,7 +7,7 @@ export interface TabItem {
|
|
|
7
7
|
badgeVariant?: "danger" | "success" | "warning" | "info";
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface KjunTabsProps {
|
|
11
11
|
value: string;
|
|
12
12
|
items?: TabItem[];
|
|
13
13
|
density?: "comfortable" | "compact";
|
|
@@ -24,37 +24,37 @@ export interface DsTabsProps {
|
|
|
24
24
|
pointer: "mouse" | "touch";
|
|
25
25
|
}) => void;
|
|
26
26
|
}
|
|
27
|
-
export declare function
|
|
28
|
-
export interface
|
|
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
29
|
children?: ReactNode;
|
|
30
30
|
}
|
|
31
|
-
export declare function
|
|
32
|
-
export interface
|
|
31
|
+
export declare function KjunTabPane({ name, children }: KjunTabPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export interface KjunAccordionProps {
|
|
33
33
|
multiple?: boolean;
|
|
34
34
|
tone?: "card" | "muted";
|
|
35
35
|
children: ReactNode;
|
|
36
36
|
}
|
|
37
|
-
export declare function
|
|
38
|
-
export interface
|
|
37
|
+
export declare function KjunAccordion({ multiple, tone, children, }: KjunAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export interface KjunAccordionItemProps {
|
|
39
39
|
title?: string;
|
|
40
40
|
defaultOpen?: boolean;
|
|
41
41
|
disabled?: boolean;
|
|
42
42
|
header?: ReactNode;
|
|
43
43
|
children: ReactNode;
|
|
44
44
|
}
|
|
45
|
-
export declare function
|
|
45
|
+
export declare function KjunAccordionItem({ title, defaultOpen, disabled, header, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
export interface BreadcrumbItem {
|
|
47
47
|
label: string;
|
|
48
48
|
to?: string;
|
|
49
49
|
icon?: string;
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
51
|
+
export interface KjunBreadcrumbProps {
|
|
52
52
|
items: BreadcrumbItem[];
|
|
53
53
|
renderLink?: (item: BreadcrumbItem, children: ReactNode) => ReactNode;
|
|
54
54
|
ariaLabel?: string;
|
|
55
55
|
}
|
|
56
|
-
export declare function
|
|
57
|
-
export interface
|
|
56
|
+
export declare function KjunBreadcrumb({ items, renderLink, ariaLabel, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export interface KjunPaginationProps {
|
|
58
58
|
currentPage?: number;
|
|
59
59
|
page?: number;
|
|
60
60
|
totalPages: number;
|
|
@@ -70,4 +70,4 @@ export interface DsPaginationProps {
|
|
|
70
70
|
onChange?: (page: number) => void;
|
|
71
71
|
onPageSizeChange?: (size: number) => void;
|
|
72
72
|
}
|
|
73
|
-
export declare function
|
|
73
|
+
export declare function KjunPagination({ currentPage, page, totalPages, totalRows, pageSize, pageSizeOptions, siblingCount, showInfo, showSizeSelector, showFirstLast, formatter, onPageChange, onChange, onPageSizeChange, }: KjunPaginationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -7,7 +7,7 @@ export interface TabItem {
|
|
|
7
7
|
badgeVariant?: "danger" | "success" | "warning" | "info";
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
}
|
|
10
|
-
export interface
|
|
10
|
+
export interface KjunTabsProps {
|
|
11
11
|
value: string;
|
|
12
12
|
items?: TabItem[];
|
|
13
13
|
density?: "comfortable" | "compact";
|
|
@@ -24,37 +24,37 @@ export interface DsTabsProps {
|
|
|
24
24
|
pointer: "mouse" | "touch";
|
|
25
25
|
}) => void;
|
|
26
26
|
}
|
|
27
|
-
export declare function
|
|
28
|
-
export interface
|
|
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
29
|
children?: ReactNode;
|
|
30
30
|
}
|
|
31
|
-
export declare function
|
|
32
|
-
export interface
|
|
31
|
+
export declare function KjunTabPane({ name, children }: KjunTabPaneProps): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
export interface KjunAccordionProps {
|
|
33
33
|
multiple?: boolean;
|
|
34
34
|
tone?: "card" | "muted";
|
|
35
35
|
children: ReactNode;
|
|
36
36
|
}
|
|
37
|
-
export declare function
|
|
38
|
-
export interface
|
|
37
|
+
export declare function KjunAccordion({ multiple, tone, children, }: KjunAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
38
|
+
export interface KjunAccordionItemProps {
|
|
39
39
|
title?: string;
|
|
40
40
|
defaultOpen?: boolean;
|
|
41
41
|
disabled?: boolean;
|
|
42
42
|
header?: ReactNode;
|
|
43
43
|
children: ReactNode;
|
|
44
44
|
}
|
|
45
|
-
export declare function
|
|
45
|
+
export declare function KjunAccordionItem({ title, defaultOpen, disabled, header, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
export interface BreadcrumbItem {
|
|
47
47
|
label: string;
|
|
48
48
|
to?: string;
|
|
49
49
|
icon?: string;
|
|
50
50
|
}
|
|
51
|
-
export interface
|
|
51
|
+
export interface KjunBreadcrumbProps {
|
|
52
52
|
items: BreadcrumbItem[];
|
|
53
53
|
renderLink?: (item: BreadcrumbItem, children: ReactNode) => ReactNode;
|
|
54
54
|
ariaLabel?: string;
|
|
55
55
|
}
|
|
56
|
-
export declare function
|
|
57
|
-
export interface
|
|
56
|
+
export declare function KjunBreadcrumb({ items, renderLink, ariaLabel, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
57
|
+
export interface KjunPaginationProps {
|
|
58
58
|
currentPage?: number;
|
|
59
59
|
page?: number;
|
|
60
60
|
totalPages: number;
|
|
@@ -70,4 +70,4 @@ export interface DsPaginationProps {
|
|
|
70
70
|
onChange?: (page: number) => void;
|
|
71
71
|
onPageSizeChange?: (size: number) => void;
|
|
72
72
|
}
|
|
73
|
-
export declare function
|
|
73
|
+
export declare function KjunPagination({ currentPage, page, totalPages, totalRows, pageSize, pageSizeOptions, siblingCount, showInfo, showSizeSelector, showFirstLast, formatter, onPageChange, onChange, onPageSizeChange, }: KjunPaginationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const finiteNumber: (value: unknown) => number | null;
|
|
2
2
|
export declare const format: (value: number, decimals?: number) => string;
|
|
3
3
|
export declare function useCountUp(value: number | string, animated: boolean, fromPrevious: boolean): string | number;
|
|
4
|
-
export interface
|
|
4
|
+
export interface KjunAnimatedNumberProps {
|
|
5
5
|
value: number | string;
|
|
6
6
|
decimals?: number;
|
|
7
7
|
prefix?: string;
|
|
@@ -11,23 +11,23 @@ export interface DsAnimatedNumberProps {
|
|
|
11
11
|
formatter?: (value: number) => string;
|
|
12
12
|
className?: string;
|
|
13
13
|
}
|
|
14
|
-
export declare function
|
|
15
|
-
export interface
|
|
14
|
+
export declare function KjunAnimatedNumber({ value, decimals, prefix, suffix, animated, fromPrevious, formatter, className, }: KjunAnimatedNumberProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface KjunFreshnessProps {
|
|
16
16
|
stale?: boolean;
|
|
17
17
|
source?: string | null;
|
|
18
18
|
fetchedAt?: string | null;
|
|
19
19
|
formatter?: (time: string) => string;
|
|
20
20
|
}
|
|
21
|
-
export declare function
|
|
22
|
-
export interface
|
|
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"> {
|
|
23
23
|
value?: number | null;
|
|
24
24
|
formatter?: (value: number) => string;
|
|
25
25
|
flashClass?: string;
|
|
26
26
|
fromPrevious?: boolean;
|
|
27
27
|
showFreshness?: boolean;
|
|
28
28
|
}
|
|
29
|
-
export declare function
|
|
30
|
-
export interface
|
|
29
|
+
export declare function KjunPriceCell({ value, formatter, stale, showFreshness, source, fetchedAt, flashClass, fromPrevious, }: KjunPriceCellProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export interface KjunSignedValueProps {
|
|
31
31
|
value?: number | string | null;
|
|
32
32
|
format?: "number" | "percent";
|
|
33
33
|
isRaw?: boolean;
|
|
@@ -41,4 +41,4 @@ export interface DsSignedValueProps {
|
|
|
41
41
|
showFreshness?: boolean;
|
|
42
42
|
formatter?: (value: number) => string;
|
|
43
43
|
}
|
|
44
|
-
export declare function
|
|
44
|
+
export declare function KjunSignedValue({ value, format: kind, isRaw, decimals, prefix, suffix, showSign, tone, loading, stale, showFreshness, formatter, }: KjunSignedValueProps): import("react/jsx-runtime").JSX.Element;
|