@kjun-ui/native 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 +346 -334
- package/dist/index.js +346 -334
- package/dist/index.web.cjs +346 -334
- package/dist/index.web.js +346 -334
- package/dist/styles.css +2057 -2133
- package/dist/types/packages/native/src/actions.d.cts +13 -13
- package/dist/types/packages/native/src/actions.d.ts +13 -13
- package/dist/types/packages/native/src/app-navigation.d.cts +6 -6
- package/dist/types/packages/native/src/app-navigation.d.ts +6 -6
- package/dist/types/packages/native/src/button.d.cts +3 -3
- package/dist/types/packages/native/src/button.d.ts +3 -3
- package/dist/types/packages/native/src/card.d.cts +2 -2
- package/dist/types/packages/native/src/card.d.ts +2 -2
- package/dist/types/packages/native/src/chip.d.cts +2 -2
- package/dist/types/packages/native/src/chip.d.ts +2 -2
- package/dist/types/packages/native/src/choice-controls.d.cts +8 -8
- package/dist/types/packages/native/src/choice-controls.d.ts +8 -8
- package/dist/types/packages/native/src/combobox.d.cts +2 -2
- package/dist/types/packages/native/src/combobox.d.ts +2 -2
- package/dist/types/packages/native/src/controls.d.cts +6 -6
- package/dist/types/packages/native/src/controls.d.ts +6 -6
- package/dist/types/packages/native/src/data-state.d.cts +6 -6
- package/dist/types/packages/native/src/data-state.d.ts +6 -6
- package/dist/types/packages/native/src/date-picker.d.cts +2 -2
- package/dist/types/packages/native/src/date-picker.d.ts +2 -2
- package/dist/types/packages/native/src/display-primitives.d.cts +12 -12
- package/dist/types/packages/native/src/display-primitives.d.ts +12 -12
- package/dist/types/packages/native/src/display.d.cts +6 -6
- package/dist/types/packages/native/src/display.d.ts +6 -6
- package/dist/types/packages/native/src/drawer.d.cts +2 -2
- package/dist/types/packages/native/src/drawer.d.ts +2 -2
- package/dist/types/packages/native/src/dropdown.d.cts +12 -12
- package/dist/types/packages/native/src/dropdown.d.ts +12 -12
- package/dist/types/packages/native/src/financial-display.d.cts +12 -12
- package/dist/types/packages/native/src/financial-display.d.ts +12 -12
- package/dist/types/packages/native/src/financial.d.cts +4 -4
- package/dist/types/packages/native/src/financial.d.ts +4 -4
- package/dist/types/packages/native/src/index.d.cts +22 -22
- package/dist/types/packages/native/src/index.d.ts +22 -22
- package/dist/types/packages/native/src/input.d.cts +5 -5
- package/dist/types/packages/native/src/input.d.ts +5 -5
- package/dist/types/packages/native/src/kpi-hero.d.cts +2 -2
- package/dist/types/packages/native/src/kpi-hero.d.ts +2 -2
- package/dist/types/packages/native/src/kpi-row.d.cts +2 -2
- package/dist/types/packages/native/src/kpi-row.d.ts +2 -2
- package/dist/types/packages/native/src/kpi.d.cts +4 -4
- package/dist/types/packages/native/src/kpi.d.ts +4 -4
- package/dist/types/packages/native/src/layers.d.cts +6 -6
- package/dist/types/packages/native/src/layers.d.ts +6 -6
- package/dist/types/packages/native/src/list.d.cts +4 -4
- package/dist/types/packages/native/src/list.d.ts +4 -4
- package/dist/types/packages/native/src/market-cards.d.cts +2 -2
- package/dist/types/packages/native/src/market-cards.d.ts +2 -2
- package/dist/types/packages/native/src/market-list.d.cts +2 -2
- package/dist/types/packages/native/src/market-list.d.ts +2 -2
- package/dist/types/packages/native/src/market-model.d.cts +4 -4
- package/dist/types/packages/native/src/market-model.d.ts +4 -4
- package/dist/types/packages/native/src/market-panel.d.cts +1 -1
- package/dist/types/packages/native/src/market-panel.d.ts +1 -1
- package/dist/types/packages/native/src/market-skeleton.d.cts +2 -2
- package/dist/types/packages/native/src/market-skeleton.d.ts +2 -2
- package/dist/types/packages/native/src/market-table.d.cts +2 -2
- package/dist/types/packages/native/src/market-table.d.ts +2 -2
- package/dist/types/packages/native/src/market.d.cts +5 -5
- package/dist/types/packages/native/src/market.d.ts +5 -5
- package/dist/types/packages/native/src/media.d.cts +4 -4
- package/dist/types/packages/native/src/media.d.ts +4 -4
- package/dist/types/packages/native/src/modal.d.cts +4 -4
- package/dist/types/packages/native/src/modal.d.ts +4 -4
- package/dist/types/packages/native/src/navigation.d.cts +9 -9
- package/dist/types/packages/native/src/navigation.d.ts +9 -9
- package/dist/types/packages/native/src/number-display.d.cts +8 -8
- package/dist/types/packages/native/src/number-display.d.ts +8 -8
- package/dist/types/packages/native/src/popover.d.cts +4 -4
- package/dist/types/packages/native/src/popover.d.ts +4 -4
- package/dist/types/packages/native/src/quantity-stepper.d.cts +2 -2
- package/dist/types/packages/native/src/quantity-stepper.d.ts +2 -2
- package/dist/types/packages/native/src/range-input.d.cts +4 -4
- package/dist/types/packages/native/src/range-input.d.ts +4 -4
- package/dist/types/packages/native/src/search-input.d.cts +2 -2
- package/dist/types/packages/native/src/search-input.d.ts +2 -2
- package/dist/types/packages/native/src/select-control.d.cts +2 -2
- package/dist/types/packages/native/src/select-control.d.ts +2 -2
- package/dist/types/packages/native/src/select.d.cts +8 -8
- package/dist/types/packages/native/src/select.d.ts +8 -8
- package/dist/types/packages/native/src/selection-groups.d.cts +4 -4
- package/dist/types/packages/native/src/selection-groups.d.ts +4 -4
- package/dist/types/packages/native/src/skeleton-base.d.cts +2 -2
- package/dist/types/packages/native/src/skeleton-base.d.ts +2 -2
- package/dist/types/packages/native/src/skeletons.d.cts +8 -8
- package/dist/types/packages/native/src/skeletons.d.ts +8 -8
- package/dist/types/packages/native/src/table-model.d.cts +2 -2
- package/dist/types/packages/native/src/table-model.d.ts +2 -2
- package/dist/types/packages/native/src/table-view.d.cts +2 -2
- package/dist/types/packages/native/src/table-view.d.ts +2 -2
- package/dist/types/packages/native/src/table.d.cts +2 -2
- package/dist/types/packages/native/src/table.d.ts +2 -2
- package/dist/types/packages/native/src/tabs.d.cts +4 -4
- package/dist/types/packages/native/src/tabs.d.ts +4 -4
- package/dist/types/packages/native/src/textarea.d.cts +2 -2
- package/dist/types/packages/native/src/textarea.d.ts +2 -2
- package/dist/types/packages/native/src/time-picker.d.cts +2 -2
- package/dist/types/packages/native/src/time-picker.d.ts +2 -2
- 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/package.json +3 -3
|
@@ -11,7 +11,7 @@ interface FieldValue {
|
|
|
11
11
|
}
|
|
12
12
|
export declare const FieldContext: import("react").Context<FieldValue | null>;
|
|
13
13
|
export declare const useKjunField: () => FieldValue | null;
|
|
14
|
-
export interface
|
|
14
|
+
export interface KjunFormGroupProps {
|
|
15
15
|
label?: string;
|
|
16
16
|
id?: string;
|
|
17
17
|
required?: boolean;
|
|
@@ -20,8 +20,8 @@ export interface DsFormGroupProps {
|
|
|
20
20
|
children: ReactNode;
|
|
21
21
|
style?: StyleProp<ViewStyle>;
|
|
22
22
|
}
|
|
23
|
-
export declare function
|
|
24
|
-
export interface
|
|
23
|
+
export declare function KjunFormGroup({ label, id, required, error, hint, children, style, }: KjunFormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export interface KjunInputProps extends Omit<TextInputProps, "value" | "onChange"> {
|
|
25
25
|
value: string | number;
|
|
26
26
|
size?: InputSize;
|
|
27
27
|
error?: boolean;
|
|
@@ -36,8 +36,8 @@ export interface DsInputProps extends Omit<TextInputProps, "value" | "onChange">
|
|
|
36
36
|
onClear?: () => void;
|
|
37
37
|
containerStyle?: StyleProp<ViewStyle>;
|
|
38
38
|
}
|
|
39
|
-
export declare const
|
|
40
|
-
export declare function
|
|
39
|
+
export declare const KjunInput: import("react").ForwardRefExoticComponent<KjunInputProps & import("react").RefAttributes<TextInput>>;
|
|
40
|
+
export declare function KjunFormLayout({ children, gap, }: {
|
|
41
41
|
children: ReactNode;
|
|
42
42
|
gap?: number;
|
|
43
43
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,7 +14,7 @@ export interface KpiValue {
|
|
|
14
14
|
valueColor?: ColorValue;
|
|
15
15
|
}
|
|
16
16
|
export declare const kpiFormat: (item: KpiValue, value?: string | number) => string;
|
|
17
|
-
export interface
|
|
17
|
+
export interface KjunKpiHeroProps {
|
|
18
18
|
loading?: boolean;
|
|
19
19
|
label: string;
|
|
20
20
|
value: number | string;
|
|
@@ -32,4 +32,4 @@ 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;
|
|
@@ -14,7 +14,7 @@ export interface KpiValue {
|
|
|
14
14
|
valueColor?: ColorValue;
|
|
15
15
|
}
|
|
16
16
|
export declare const kpiFormat: (item: KpiValue, value?: string | number) => string;
|
|
17
|
-
export interface
|
|
17
|
+
export interface KjunKpiHeroProps {
|
|
18
18
|
loading?: boolean;
|
|
19
19
|
label: string;
|
|
20
20
|
value: number | string;
|
|
@@ -32,4 +32,4 @@ 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;
|
|
@@ -21,7 +21,7 @@ export interface KpiRowItem extends KpiValue {
|
|
|
21
21
|
};
|
|
22
22
|
badgePlacement?: "label" | "value";
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
24
|
+
export interface KjunKpiRowProps {
|
|
25
25
|
loading?: boolean;
|
|
26
26
|
items: KpiRowItem[];
|
|
27
27
|
size?: "md" | "sm";
|
|
@@ -29,4 +29,4 @@ export interface DsKpiRowProps {
|
|
|
29
29
|
onItemClick?: (item: KpiRowItem, index: number) => void;
|
|
30
30
|
renderValue?: (item: KpiRowItem, index: number) => ReactNode;
|
|
31
31
|
}
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function KjunKpiRow({ loading, items, size, mobileSummary, onItemClick, renderValue, }: KjunKpiRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -21,7 +21,7 @@ export interface KpiRowItem extends KpiValue {
|
|
|
21
21
|
};
|
|
22
22
|
badgePlacement?: "label" | "value";
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
24
|
+
export interface KjunKpiRowProps {
|
|
25
25
|
loading?: boolean;
|
|
26
26
|
items: KpiRowItem[];
|
|
27
27
|
size?: "md" | "sm";
|
|
@@ -29,4 +29,4 @@ export interface DsKpiRowProps {
|
|
|
29
29
|
onItemClick?: (item: KpiRowItem, index: number) => void;
|
|
30
30
|
renderValue?: (item: KpiRowItem, index: number) => ReactNode;
|
|
31
31
|
}
|
|
32
|
-
export declare function
|
|
32
|
+
export declare function KjunKpiRow({ loading, items, size, mobileSummary, onItemClick, renderValue, }: KjunKpiRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
1
|
+
export { KjunKpiHero, kpiFormat } from "./kpi-hero.cjs";
|
|
2
|
+
export type { KjunKpiHeroProps, KpiValue } from "./kpi-hero.cjs";
|
|
3
|
+
export { KjunKpiRow } from "./kpi-row.cjs";
|
|
4
|
+
export type { KjunKpiRowProps, KpiRowItem } from "./kpi-row.cjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
1
|
+
export { KjunKpiHero, kpiFormat } from "./kpi-hero.js";
|
|
2
|
+
export type { KjunKpiHeroProps, KpiValue } from "./kpi-hero.js";
|
|
3
|
+
export { KjunKpiRow } from "./kpi-row.js";
|
|
4
|
+
export type { KjunKpiRowProps, KpiRowItem } from "./kpi-row.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
1
|
+
export { KjunDrawer } from "./drawer.cjs";
|
|
2
|
+
export type { KjunDrawerProps } from "./drawer.cjs";
|
|
3
|
+
export { KjunDropdown, KjunDropdownDivider, KjunDropdownItem, KjunMenuButton } from "./dropdown.cjs";
|
|
4
|
+
export type { KjunDropdownItemProps, KjunDropdownProps, KjunMenuButtonProps } from "./dropdown.cjs";
|
|
5
5
|
export { FloatingPanel } from "./floating-panel.cjs";
|
|
6
6
|
export type { Placement } from "./floating-panel.cjs";
|
|
7
|
-
export {
|
|
8
|
-
export type {
|
|
7
|
+
export { KjunPopover, KjunTooltip } from "./popover.cjs";
|
|
8
|
+
export type { KjunPopoverProps, KjunTooltipProps } from "./popover.cjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export type {
|
|
3
|
-
export {
|
|
4
|
-
export type {
|
|
1
|
+
export { KjunDrawer } from "./drawer.js";
|
|
2
|
+
export type { KjunDrawerProps } from "./drawer.js";
|
|
3
|
+
export { KjunDropdown, KjunDropdownDivider, KjunDropdownItem, KjunMenuButton } from "./dropdown.js";
|
|
4
|
+
export type { KjunDropdownItemProps, KjunDropdownProps, KjunMenuButtonProps } from "./dropdown.js";
|
|
5
5
|
export { FloatingPanel } from "./floating-panel.js";
|
|
6
6
|
export type { Placement } from "./floating-panel.js";
|
|
7
|
-
export {
|
|
8
|
-
export type {
|
|
7
|
+
export { KjunPopover, KjunTooltip } from "./popover.js";
|
|
8
|
+
export type { KjunPopoverProps, KjunTooltipProps } from "./popover.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import { type GestureResponderEvent } from "react-native";
|
|
3
|
-
export interface
|
|
3
|
+
export interface KjunListRowProps {
|
|
4
4
|
title: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
leading?: ReactNode;
|
|
@@ -10,12 +10,12 @@ export interface DsListRowProps {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
onPress?: (event: GestureResponderEvent) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
14
|
-
export interface
|
|
13
|
+
export declare function KjunListRow({ title, description, leading, trailing, actions, href, disabled, onPress }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface KjunListSectionProps {
|
|
15
15
|
title?: string;
|
|
16
16
|
description?: string;
|
|
17
17
|
actions?: ReactNode;
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
ariaLabel?: string;
|
|
20
20
|
}
|
|
21
|
-
export declare function
|
|
21
|
+
export declare function KjunListSection({ title, description, actions, children, ariaLabel }: KjunListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import { type GestureResponderEvent } from "react-native";
|
|
3
|
-
export interface
|
|
3
|
+
export interface KjunListRowProps {
|
|
4
4
|
title: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
leading?: ReactNode;
|
|
@@ -10,12 +10,12 @@ export interface DsListRowProps {
|
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
onPress?: (event: GestureResponderEvent) => void;
|
|
12
12
|
}
|
|
13
|
-
export declare function
|
|
14
|
-
export interface
|
|
13
|
+
export declare function KjunListRow({ title, description, leading, trailing, actions, href, disabled, onPress }: KjunListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface KjunListSectionProps {
|
|
15
15
|
title?: string;
|
|
16
16
|
description?: string;
|
|
17
17
|
actions?: ReactNode;
|
|
18
18
|
children: ReactNode;
|
|
19
19
|
ariaLabel?: string;
|
|
20
20
|
}
|
|
21
|
-
export declare function
|
|
21
|
+
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;
|
|
@@ -8,4 +8,4 @@ export interface DsMarketTableSkeletonProps {
|
|
|
8
8
|
rows?: number;
|
|
9
9
|
showActions?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function KjunMarketTableSkeleton({ columns, rows, showActions }: 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;
|
|
@@ -8,4 +8,4 @@ export interface DsMarketTableSkeletonProps {
|
|
|
8
8
|
rows?: number;
|
|
9
9
|
showActions?: boolean;
|
|
10
10
|
}
|
|
11
|
-
export declare function
|
|
11
|
+
export declare function KjunMarketTableSkeleton({ columns, rows, showActions }: 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,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import { type ImageSourcePropType } from "react-native";
|
|
3
|
-
export interface
|
|
3
|
+
export interface KjunImageProps {
|
|
4
4
|
src?: string;
|
|
5
5
|
source?: ImageSourcePropType;
|
|
6
6
|
alt: string;
|
|
@@ -11,8 +11,8 @@ export interface DsImageProps {
|
|
|
11
11
|
onLoad?: () => void;
|
|
12
12
|
onError?: () => void;
|
|
13
13
|
}
|
|
14
|
-
export declare function
|
|
15
|
-
export interface
|
|
14
|
+
export declare function KjunImage({ src, source, alt, decorative, aspectRatio, fit, fallback, onLoad, onError }: KjunImageProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface KjunAvatarProps {
|
|
16
16
|
src?: string;
|
|
17
17
|
source?: ImageSourcePropType;
|
|
18
18
|
name?: string;
|
|
@@ -24,4 +24,4 @@ export interface DsAvatarProps {
|
|
|
24
24
|
onLoad?: () => void;
|
|
25
25
|
onError?: () => void;
|
|
26
26
|
}
|
|
27
|
-
export declare function
|
|
27
|
+
export declare function KjunAvatar({ src, source, name, alt, decorative, size, shape, fallback, onLoad, onError }: KjunAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
2
|
import { type ImageSourcePropType } from "react-native";
|
|
3
|
-
export interface
|
|
3
|
+
export interface KjunImageProps {
|
|
4
4
|
src?: string;
|
|
5
5
|
source?: ImageSourcePropType;
|
|
6
6
|
alt: string;
|
|
@@ -11,8 +11,8 @@ export interface DsImageProps {
|
|
|
11
11
|
onLoad?: () => void;
|
|
12
12
|
onError?: () => void;
|
|
13
13
|
}
|
|
14
|
-
export declare function
|
|
15
|
-
export interface
|
|
14
|
+
export declare function KjunImage({ src, source, alt, decorative, aspectRatio, fit, fallback, onLoad, onError }: KjunImageProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface KjunAvatarProps {
|
|
16
16
|
src?: string;
|
|
17
17
|
source?: ImageSourcePropType;
|
|
18
18
|
name?: string;
|
|
@@ -24,4 +24,4 @@ export interface DsAvatarProps {
|
|
|
24
24
|
onLoad?: () => void;
|
|
25
25
|
onError?: () => void;
|
|
26
26
|
}
|
|
27
|
-
export declare function
|
|
27
|
+
export declare function KjunAvatar({ src, source, name, alt, decorative, size, shape, fallback, onLoad, onError }: KjunAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { 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: (value: 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;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { 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: (value: 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;
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export {
|
|
3
|
-
export interface
|
|
2
|
+
export { KjunTabs, KjunTabPane, type TabItem, type KjunTabsProps, type KjunTabPaneProps } from "./tabs.cjs";
|
|
3
|
+
export interface KjunAccordionProps {
|
|
4
4
|
multiple?: boolean;
|
|
5
5
|
tone?: "card" | "muted";
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare function
|
|
9
|
-
export interface
|
|
8
|
+
export declare function KjunAccordion({ multiple, tone, children, }: KjunAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface KjunAccordionItemProps {
|
|
10
10
|
title?: string;
|
|
11
11
|
defaultOpen?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
header?: ReactNode;
|
|
14
14
|
children: ReactNode;
|
|
15
15
|
}
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function KjunAccordionItem({ title, defaultOpen, disabled, header, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export interface BreadcrumbItem {
|
|
18
18
|
label: string;
|
|
19
19
|
to?: string;
|
|
20
20
|
icon?: string;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface KjunBreadcrumbProps {
|
|
23
23
|
items: BreadcrumbItem[];
|
|
24
24
|
renderLink?: (item: BreadcrumbItem, children: ReactNode) => ReactNode;
|
|
25
25
|
onNavigate?: (item: BreadcrumbItem) => void;
|
|
26
26
|
ariaLabel?: string;
|
|
27
27
|
}
|
|
28
|
-
export declare function
|
|
29
|
-
export interface
|
|
28
|
+
export declare function KjunBreadcrumb({ items, renderLink, onNavigate, ariaLabel, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export interface KjunPaginationProps {
|
|
30
30
|
currentPage?: number;
|
|
31
31
|
page?: number;
|
|
32
32
|
totalPages: number;
|
|
@@ -42,4 +42,4 @@ export interface DsPaginationProps {
|
|
|
42
42
|
onChange?: (page: number) => void;
|
|
43
43
|
onPageSizeChange?: (size: number) => void;
|
|
44
44
|
}
|
|
45
|
-
export declare function
|
|
45
|
+
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,32 +1,32 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
export {
|
|
3
|
-
export interface
|
|
2
|
+
export { KjunTabs, KjunTabPane, type TabItem, type KjunTabsProps, type KjunTabPaneProps } from "./tabs.js";
|
|
3
|
+
export interface KjunAccordionProps {
|
|
4
4
|
multiple?: boolean;
|
|
5
5
|
tone?: "card" | "muted";
|
|
6
6
|
children: ReactNode;
|
|
7
7
|
}
|
|
8
|
-
export declare function
|
|
9
|
-
export interface
|
|
8
|
+
export declare function KjunAccordion({ multiple, tone, children, }: KjunAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface KjunAccordionItemProps {
|
|
10
10
|
title?: string;
|
|
11
11
|
defaultOpen?: boolean;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
header?: ReactNode;
|
|
14
14
|
children: ReactNode;
|
|
15
15
|
}
|
|
16
|
-
export declare function
|
|
16
|
+
export declare function KjunAccordionItem({ title, defaultOpen, disabled, header, children, }: KjunAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
export interface BreadcrumbItem {
|
|
18
18
|
label: string;
|
|
19
19
|
to?: string;
|
|
20
20
|
icon?: string;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface KjunBreadcrumbProps {
|
|
23
23
|
items: BreadcrumbItem[];
|
|
24
24
|
renderLink?: (item: BreadcrumbItem, children: ReactNode) => ReactNode;
|
|
25
25
|
onNavigate?: (item: BreadcrumbItem) => void;
|
|
26
26
|
ariaLabel?: string;
|
|
27
27
|
}
|
|
28
|
-
export declare function
|
|
29
|
-
export interface
|
|
28
|
+
export declare function KjunBreadcrumb({ items, renderLink, onNavigate, ariaLabel, }: KjunBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export interface KjunPaginationProps {
|
|
30
30
|
currentPage?: number;
|
|
31
31
|
page?: number;
|
|
32
32
|
totalPages: number;
|
|
@@ -42,4 +42,4 @@ export interface DsPaginationProps {
|
|
|
42
42
|
onChange?: (page: number) => void;
|
|
43
43
|
onPageSizeChange?: (size: number) => void;
|
|
44
44
|
}
|
|
45
|
-
export declare function
|
|
45
|
+
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;
|