@kjun-ui/react 0.0.0-stage → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -2
- package/dist/LICENSE +21 -0
- package/dist/Tabler-LICENSE +21 -0
- package/dist/index.cjs +6897 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +6946 -0
- package/dist/styles.css +7695 -0
- package/dist/types/packages/react/src/actions.d.cts +58 -0
- package/dist/types/packages/react/src/actions.d.ts +58 -0
- package/dist/types/packages/react/src/app-navigation.d.cts +35 -0
- package/dist/types/packages/react/src/app-navigation.d.ts +35 -0
- package/dist/types/packages/react/src/button.d.cts +23 -0
- package/dist/types/packages/react/src/button.d.ts +23 -0
- package/dist/types/packages/react/src/card.d.cts +18 -0
- package/dist/types/packages/react/src/card.d.ts +18 -0
- package/dist/types/packages/react/src/chip.d.cts +10 -0
- package/dist/types/packages/react/src/chip.d.ts +10 -0
- package/dist/types/packages/react/src/collapse.d.cts +5 -0
- package/dist/types/packages/react/src/collapse.d.ts +5 -0
- package/dist/types/packages/react/src/combobox.d.cts +48 -0
- package/dist/types/packages/react/src/combobox.d.ts +48 -0
- package/dist/types/packages/react/src/composition.d.cts +6 -0
- package/dist/types/packages/react/src/composition.d.ts +6 -0
- package/dist/types/packages/react/src/compound-control.d.cts +1 -0
- package/dist/types/packages/react/src/compound-control.d.ts +1 -0
- package/dist/types/packages/react/src/controls.d.cts +85 -0
- package/dist/types/packages/react/src/controls.d.ts +85 -0
- package/dist/types/packages/react/src/data-state.d.cts +53 -0
- package/dist/types/packages/react/src/data-state.d.ts +53 -0
- package/dist/types/packages/react/src/date-picker.d.cts +10 -0
- package/dist/types/packages/react/src/date-picker.d.ts +10 -0
- package/dist/types/packages/react/src/display.d.cts +55 -0
- package/dist/types/packages/react/src/display.d.ts +55 -0
- package/dist/types/packages/react/src/drawer.d.cts +18 -0
- package/dist/types/packages/react/src/drawer.d.ts +18 -0
- package/dist/types/packages/react/src/dropdown.d.cts +41 -0
- package/dist/types/packages/react/src/dropdown.d.ts +41 -0
- package/dist/types/packages/react/src/feedback-context.d.cts +3 -0
- package/dist/types/packages/react/src/feedback-context.d.ts +3 -0
- package/dist/types/packages/react/src/feedback.d.cts +7 -0
- package/dist/types/packages/react/src/feedback.d.ts +7 -0
- package/dist/types/packages/react/src/financial-display.d.cts +86 -0
- package/dist/types/packages/react/src/financial-display.d.ts +86 -0
- package/dist/types/packages/react/src/financial.d.cts +4 -0
- package/dist/types/packages/react/src/financial.d.ts +4 -0
- package/dist/types/packages/react/src/floating-panel.d.cts +15 -0
- package/dist/types/packages/react/src/floating-panel.d.ts +15 -0
- package/dist/types/packages/react/src/index.d.cts +39 -0
- package/dist/types/packages/react/src/index.d.ts +39 -0
- package/dist/types/packages/react/src/input.d.cts +37 -0
- package/dist/types/packages/react/src/input.d.ts +37 -0
- package/dist/types/packages/react/src/kpi.d.cts +64 -0
- package/dist/types/packages/react/src/kpi.d.ts +64 -0
- package/dist/types/packages/react/src/layers.d.cts +4 -0
- package/dist/types/packages/react/src/layers.d.ts +4 -0
- package/dist/types/packages/react/src/list.d.cts +20 -0
- package/dist/types/packages/react/src/list.d.ts +20 -0
- package/dist/types/packages/react/src/market-cards.d.cts +2 -0
- package/dist/types/packages/react/src/market-cards.d.ts +2 -0
- package/dist/types/packages/react/src/market-layout.d.cts +7 -0
- package/dist/types/packages/react/src/market-layout.d.ts +7 -0
- package/dist/types/packages/react/src/market-list.d.cts +2 -0
- package/dist/types/packages/react/src/market-list.d.ts +2 -0
- package/dist/types/packages/react/src/market-model.d.cts +109 -0
- package/dist/types/packages/react/src/market-model.d.ts +109 -0
- package/dist/types/packages/react/src/market-panel.d.cts +5 -0
- package/dist/types/packages/react/src/market-panel.d.ts +5 -0
- package/dist/types/packages/react/src/market-parts.d.cts +8 -0
- package/dist/types/packages/react/src/market-parts.d.ts +8 -0
- package/dist/types/packages/react/src/market-skeleton.d.cts +13 -0
- package/dist/types/packages/react/src/market-skeleton.d.ts +13 -0
- package/dist/types/packages/react/src/market-table.d.cts +2 -0
- package/dist/types/packages/react/src/market-table.d.ts +2 -0
- package/dist/types/packages/react/src/market.d.cts +7 -0
- package/dist/types/packages/react/src/market.d.ts +7 -0
- package/dist/types/packages/react/src/media.d.cts +25 -0
- package/dist/types/packages/react/src/media.d.ts +25 -0
- package/dist/types/packages/react/src/modal.d.cts +46 -0
- package/dist/types/packages/react/src/modal.d.ts +46 -0
- package/dist/types/packages/react/src/navigation.d.cts +73 -0
- package/dist/types/packages/react/src/navigation.d.ts +73 -0
- package/dist/types/packages/react/src/number-display.d.cts +44 -0
- package/dist/types/packages/react/src/number-display.d.ts +44 -0
- package/dist/types/packages/react/src/overlay-host.d.cts +8 -0
- package/dist/types/packages/react/src/overlay-host.d.ts +8 -0
- package/dist/types/packages/react/src/popover.d.cts +23 -0
- package/dist/types/packages/react/src/popover.d.ts +23 -0
- package/dist/types/packages/react/src/provider.d.cts +8 -0
- package/dist/types/packages/react/src/provider.d.ts +8 -0
- package/dist/types/packages/react/src/quantity-stepper.d.cts +18 -0
- package/dist/types/packages/react/src/quantity-stepper.d.ts +18 -0
- package/dist/types/packages/react/src/range-input.d.cts +31 -0
- package/dist/types/packages/react/src/range-input.d.ts +31 -0
- package/dist/types/packages/react/src/search-input.d.cts +21 -0
- package/dist/types/packages/react/src/search-input.d.ts +21 -0
- package/dist/types/packages/react/src/select-control.d.cts +30 -0
- package/dist/types/packages/react/src/select-control.d.ts +30 -0
- package/dist/types/packages/react/src/select-options.d.cts +2 -0
- package/dist/types/packages/react/src/select-options.d.ts +2 -0
- package/dist/types/packages/react/src/select.d.cts +10 -0
- package/dist/types/packages/react/src/select.d.ts +10 -0
- package/dist/types/packages/react/src/skeletons.d.cts +28 -0
- package/dist/types/packages/react/src/skeletons.d.ts +28 -0
- package/dist/types/packages/react/src/table-cards.d.cts +9 -0
- package/dist/types/packages/react/src/table-cards.d.ts +9 -0
- package/dist/types/packages/react/src/table-check.d.cts +3 -0
- package/dist/types/packages/react/src/table-check.d.ts +3 -0
- package/dist/types/packages/react/src/table-grid.d.cts +9 -0
- package/dist/types/packages/react/src/table-grid.d.ts +9 -0
- package/dist/types/packages/react/src/table-model.d.cts +21 -0
- package/dist/types/packages/react/src/table-model.d.ts +21 -0
- package/dist/types/packages/react/src/table-toolbar.d.cts +2 -0
- package/dist/types/packages/react/src/table-toolbar.d.ts +2 -0
- package/dist/types/packages/react/src/table-view.d.cts +2 -0
- package/dist/types/packages/react/src/table-view.d.ts +2 -0
- package/dist/types/packages/react/src/table.d.cts +3 -0
- package/dist/types/packages/react/src/table.d.ts +3 -0
- package/dist/types/packages/react/src/time-picker.d.cts +17 -0
- package/dist/types/packages/react/src/time-picker.d.ts +17 -0
- package/dist/types/packages/react/src/toast-stack.d.cts +6 -0
- package/dist/types/packages/react/src/toast-stack.d.ts +6 -0
- package/dist/types/packages/react/src/toast.d.cts +5 -0
- package/dist/types/packages/react/src/toast.d.ts +5 -0
- package/dist/types/packages/react/src/top-navigation-context.d.cts +4 -0
- package/dist/types/packages/react/src/top-navigation-context.d.ts +4 -0
- package/dist/types/packages/react/src/typography.d.cts +19 -0
- package/dist/types/packages/react/src/typography.d.ts +19 -0
- package/dist/types/packages/react/src/use-reduced-motion.d.cts +1 -0
- package/dist/types/packages/react/src/use-reduced-motion.d.ts +1 -0
- package/dist/types/packages/react/src/use-selection-indicator.d.cts +4 -0
- package/dist/types/packages/react/src/use-selection-indicator.d.ts +4 -0
- package/dist/types/shared/package-runtime/action-size.d.cts +9 -0
- package/dist/types/shared/package-runtime/action-size.d.ts +9 -0
- package/dist/types/shared/package-runtime/combobox.d.cts +21 -0
- package/dist/types/shared/package-runtime/combobox.d.ts +21 -0
- package/dist/types/shared/package-runtime/component-icons.d.cts +2 -0
- package/dist/types/shared/package-runtime/component-icons.d.ts +2 -0
- package/dist/types/shared/package-runtime/content-presence.d.cts +3 -0
- package/dist/types/shared/package-runtime/content-presence.d.ts +3 -0
- package/dist/types/shared/package-runtime/css-contract.d.cts +5 -0
- package/dist/types/shared/package-runtime/css-contract.d.ts +5 -0
- package/dist/types/shared/package-runtime/feedback-dialog.d.cts +10 -0
- package/dist/types/shared/package-runtime/feedback-dialog.d.ts +10 -0
- package/dist/types/shared/package-runtime/feedback-motion.d.cts +11 -0
- package/dist/types/shared/package-runtime/feedback-motion.d.ts +11 -0
- package/dist/types/shared/package-runtime/form-actions.d.cts +3 -0
- package/dist/types/shared/package-runtime/form-actions.d.ts +3 -0
- package/dist/types/shared/package-runtime/icon-context.d.cts +14 -0
- package/dist/types/shared/package-runtime/icon-context.d.ts +14 -0
- package/dist/types/shared/package-runtime/icon-registry.d.cts +10 -0
- package/dist/types/shared/package-runtime/icon-registry.d.ts +10 -0
- package/dist/types/shared/package-runtime/layer-keyboard.d.cts +3 -0
- package/dist/types/shared/package-runtime/layer-keyboard.d.ts +3 -0
- package/dist/types/shared/package-runtime/layer-state.d.cts +40 -0
- package/dist/types/shared/package-runtime/layer-state.d.ts +40 -0
- package/dist/types/shared/package-runtime/market-cards.d.cts +44 -0
- package/dist/types/shared/package-runtime/market-cards.d.ts +44 -0
- package/dist/types/shared/package-runtime/market-layout.d.cts +40 -0
- package/dist/types/shared/package-runtime/market-layout.d.ts +40 -0
- package/dist/types/shared/package-runtime/navigation.d.cts +6 -0
- package/dist/types/shared/package-runtime/navigation.d.ts +6 -0
- package/dist/types/shared/package-runtime/number-motion.d.cts +4 -0
- package/dist/types/shared/package-runtime/number-motion.d.ts +4 -0
- package/dist/types/shared/package-runtime/options.d.cts +34 -0
- package/dist/types/shared/package-runtime/options.d.ts +34 -0
- package/dist/types/shared/package-runtime/portal-scope.d.cts +6 -0
- package/dist/types/shared/package-runtime/portal-scope.d.ts +6 -0
- package/dist/types/shared/package-runtime/relative-time.d.cts +1 -0
- package/dist/types/shared/package-runtime/relative-time.d.ts +1 -0
- package/dist/types/shared/package-runtime/search-input.d.cts +20 -0
- package/dist/types/shared/package-runtime/search-input.d.ts +20 -0
- package/dist/types/shared/package-runtime/select.d.cts +10 -0
- package/dist/types/shared/package-runtime/select.d.ts +10 -0
- package/dist/types/shared/package-runtime/tab-keyboard.d.cts +2 -0
- package/dist/types/shared/package-runtime/tab-keyboard.d.ts +2 -0
- package/dist/types/shared/package-runtime/table-presentation.d.cts +56 -0
- package/dist/types/shared/package-runtime/table-presentation.d.ts +56 -0
- package/dist/types/shared/package-runtime/table.d.cts +96 -0
- package/dist/types/shared/package-runtime/table.d.ts +96 -0
- package/dist/types/shared/package-runtime/toast-layout.d.cts +4 -0
- package/dist/types/shared/package-runtime/toast-layout.d.ts +4 -0
- package/dist/types/shared/package-runtime/trailing-overflow.d.cts +1 -0
- package/dist/types/shared/package-runtime/trailing-overflow.d.ts +1 -0
- package/dist/types/shared/package-runtime/use-layer.d.cts +64 -0
- package/dist/types/shared/package-runtime/use-layer.d.ts +64 -0
- package/dist/types/shared/package-runtime/use-number-motion.d.cts +1 -0
- package/dist/types/shared/package-runtime/use-number-motion.d.ts +1 -0
- package/dist/types/shared/package-runtime/use-presence.d.cts +4 -0
- package/dist/types/shared/package-runtime/use-presence.d.ts +4 -0
- package/package.json +50 -4
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { type InputHTMLAttributes, type ReactNode } from "react";
|
|
3
|
+
interface FieldContextValue {
|
|
4
|
+
id: string;
|
|
5
|
+
labelId?: string;
|
|
6
|
+
describedBy?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const FieldContext: import("react").Context<FieldContextValue | null>;
|
|
11
|
+
export declare const useKjunField: () => FieldContextValue | null;
|
|
12
|
+
export interface DsFormGroupProps {
|
|
13
|
+
label?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
error?: string;
|
|
17
|
+
hint?: string;
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare function DsFormGroup({ label, id, required, error, hint, children, }: DsFormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface DsInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "value" | "defaultValue"> {
|
|
22
|
+
size?: InputSize;
|
|
23
|
+
value: string | number;
|
|
24
|
+
error?: boolean;
|
|
25
|
+
errorMessage?: string;
|
|
26
|
+
clearable?: boolean;
|
|
27
|
+
prefixIcon?: string;
|
|
28
|
+
suffixIcon?: string;
|
|
29
|
+
prefix?: ReactNode;
|
|
30
|
+
suffix?: ReactNode;
|
|
31
|
+
ariaLabel?: string;
|
|
32
|
+
onClear?: () => void;
|
|
33
|
+
onValueChange?: (value: string) => void;
|
|
34
|
+
onEnter?: () => void;
|
|
35
|
+
}
|
|
36
|
+
export declare const DsInput: import("react").ForwardRefExoticComponent<DsInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { type InputHTMLAttributes, type ReactNode } from "react";
|
|
3
|
+
interface FieldContextValue {
|
|
4
|
+
id: string;
|
|
5
|
+
labelId?: string;
|
|
6
|
+
describedBy?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
required?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const FieldContext: import("react").Context<FieldContextValue | null>;
|
|
11
|
+
export declare const useKjunField: () => FieldContextValue | null;
|
|
12
|
+
export interface DsFormGroupProps {
|
|
13
|
+
label?: string;
|
|
14
|
+
id?: string;
|
|
15
|
+
required?: boolean;
|
|
16
|
+
error?: string;
|
|
17
|
+
hint?: string;
|
|
18
|
+
children: ReactNode;
|
|
19
|
+
}
|
|
20
|
+
export declare function DsFormGroup({ label, id, required, error, hint, children, }: DsFormGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface DsInputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "prefix" | "value" | "defaultValue"> {
|
|
22
|
+
size?: InputSize;
|
|
23
|
+
value: string | number;
|
|
24
|
+
error?: boolean;
|
|
25
|
+
errorMessage?: string;
|
|
26
|
+
clearable?: boolean;
|
|
27
|
+
prefixIcon?: string;
|
|
28
|
+
suffixIcon?: string;
|
|
29
|
+
prefix?: ReactNode;
|
|
30
|
+
suffix?: ReactNode;
|
|
31
|
+
ariaLabel?: string;
|
|
32
|
+
onClear?: () => void;
|
|
33
|
+
onValueChange?: (value: string) => void;
|
|
34
|
+
onEnter?: () => void;
|
|
35
|
+
}
|
|
36
|
+
export declare const DsInput: import("react").ForwardRefExoticComponent<DsInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface KpiValue {
|
|
3
|
+
label?: string;
|
|
4
|
+
value: number | string;
|
|
5
|
+
decimals?: number;
|
|
6
|
+
prefix?: string;
|
|
7
|
+
suffix?: string;
|
|
8
|
+
semantic?: "price" | "status";
|
|
9
|
+
showSign?: boolean;
|
|
10
|
+
formatter?: (value: number) => string;
|
|
11
|
+
desc?: string;
|
|
12
|
+
descClass?: string;
|
|
13
|
+
valueClass?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const kpiFormat: (item: KpiValue, value?: string | number) => string;
|
|
16
|
+
export declare const kpiColor: (value: unknown, semantic?: string, neutral?: string) => string;
|
|
17
|
+
export interface DsKpiHeroProps {
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
label: string;
|
|
20
|
+
value: number | string;
|
|
21
|
+
prefix?: string;
|
|
22
|
+
suffix?: string;
|
|
23
|
+
decimals?: number;
|
|
24
|
+
deltaAbsolute?: number | null;
|
|
25
|
+
deltaPercent?: number | null;
|
|
26
|
+
deltaDescription?: string;
|
|
27
|
+
secondary?: KpiValue[];
|
|
28
|
+
animated?: boolean;
|
|
29
|
+
size?: "md" | "sm";
|
|
30
|
+
aside?: ReactNode;
|
|
31
|
+
formatter?: (value: number) => string;
|
|
32
|
+
deltaFormatter?: (value: number, kind: "absolute" | "percent") => string;
|
|
33
|
+
renderSecondary?: (item: KpiValue, index: number) => ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare function DsKpiHero(props: DsKpiHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export interface KpiRowItem extends KpiValue {
|
|
37
|
+
loading?: boolean;
|
|
38
|
+
clickable?: boolean;
|
|
39
|
+
mobileFull?: boolean;
|
|
40
|
+
mobileSecondary?: boolean;
|
|
41
|
+
mobileNeutral?: boolean;
|
|
42
|
+
valueKind?: "text" | "number";
|
|
43
|
+
animated?: boolean;
|
|
44
|
+
valueSegments?: {
|
|
45
|
+
text: string;
|
|
46
|
+
label?: string;
|
|
47
|
+
separator?: boolean;
|
|
48
|
+
class?: string;
|
|
49
|
+
}[];
|
|
50
|
+
badge?: {
|
|
51
|
+
text: string;
|
|
52
|
+
variant?: "warning" | "success" | "danger" | "price-up" | "price-down" | "info" | "neutral";
|
|
53
|
+
};
|
|
54
|
+
badgePlacement?: "label" | "value";
|
|
55
|
+
}
|
|
56
|
+
export interface DsKpiRowProps {
|
|
57
|
+
loading?: boolean;
|
|
58
|
+
items: KpiRowItem[];
|
|
59
|
+
size?: "md" | "sm";
|
|
60
|
+
mobileSummary?: boolean;
|
|
61
|
+
onItemClick?: (item: KpiRowItem, index: number) => void;
|
|
62
|
+
renderValue?: (item: KpiRowItem, index: number) => ReactNode;
|
|
63
|
+
}
|
|
64
|
+
export declare function DsKpiRow({ loading, items, size, mobileSummary, onItemClick, renderValue, }: DsKpiRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface KpiValue {
|
|
3
|
+
label?: string;
|
|
4
|
+
value: number | string;
|
|
5
|
+
decimals?: number;
|
|
6
|
+
prefix?: string;
|
|
7
|
+
suffix?: string;
|
|
8
|
+
semantic?: "price" | "status";
|
|
9
|
+
showSign?: boolean;
|
|
10
|
+
formatter?: (value: number) => string;
|
|
11
|
+
desc?: string;
|
|
12
|
+
descClass?: string;
|
|
13
|
+
valueClass?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const kpiFormat: (item: KpiValue, value?: string | number) => string;
|
|
16
|
+
export declare const kpiColor: (value: unknown, semantic?: string, neutral?: string) => string;
|
|
17
|
+
export interface DsKpiHeroProps {
|
|
18
|
+
loading?: boolean;
|
|
19
|
+
label: string;
|
|
20
|
+
value: number | string;
|
|
21
|
+
prefix?: string;
|
|
22
|
+
suffix?: string;
|
|
23
|
+
decimals?: number;
|
|
24
|
+
deltaAbsolute?: number | null;
|
|
25
|
+
deltaPercent?: number | null;
|
|
26
|
+
deltaDescription?: string;
|
|
27
|
+
secondary?: KpiValue[];
|
|
28
|
+
animated?: boolean;
|
|
29
|
+
size?: "md" | "sm";
|
|
30
|
+
aside?: ReactNode;
|
|
31
|
+
formatter?: (value: number) => string;
|
|
32
|
+
deltaFormatter?: (value: number, kind: "absolute" | "percent") => string;
|
|
33
|
+
renderSecondary?: (item: KpiValue, index: number) => ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export declare function DsKpiHero(props: DsKpiHeroProps): import("react/jsx-runtime").JSX.Element;
|
|
36
|
+
export interface KpiRowItem extends KpiValue {
|
|
37
|
+
loading?: boolean;
|
|
38
|
+
clickable?: boolean;
|
|
39
|
+
mobileFull?: boolean;
|
|
40
|
+
mobileSecondary?: boolean;
|
|
41
|
+
mobileNeutral?: boolean;
|
|
42
|
+
valueKind?: "text" | "number";
|
|
43
|
+
animated?: boolean;
|
|
44
|
+
valueSegments?: {
|
|
45
|
+
text: string;
|
|
46
|
+
label?: string;
|
|
47
|
+
separator?: boolean;
|
|
48
|
+
class?: string;
|
|
49
|
+
}[];
|
|
50
|
+
badge?: {
|
|
51
|
+
text: string;
|
|
52
|
+
variant?: "warning" | "success" | "danger" | "price-up" | "price-down" | "info" | "neutral";
|
|
53
|
+
};
|
|
54
|
+
badgePlacement?: "label" | "value";
|
|
55
|
+
}
|
|
56
|
+
export interface DsKpiRowProps {
|
|
57
|
+
loading?: boolean;
|
|
58
|
+
items: KpiRowItem[];
|
|
59
|
+
size?: "md" | "sm";
|
|
60
|
+
mobileSummary?: boolean;
|
|
61
|
+
onItemClick?: (item: KpiRowItem, index: number) => void;
|
|
62
|
+
renderValue?: (item: KpiRowItem, index: number) => ReactNode;
|
|
63
|
+
}
|
|
64
|
+
export declare function DsKpiRow({ loading, items, size, mobileSummary, onItemClick, renderValue, }: DsKpiRowProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { FloatingPanel, type Placement } from "./floating-panel.cjs";
|
|
2
|
+
export { DsPopover, DsTooltip, type DsPopoverProps, type DsTooltipProps } from "./popover.cjs";
|
|
3
|
+
export { DsDropdown, DsDropdownItem, DsDropdownDivider, DsMenuButton, type DsDropdownProps, type DsDropdownItemProps, type DsMenuButtonProps } from "./dropdown.cjs";
|
|
4
|
+
export { DsDrawer, type DsDrawerProps } from "./drawer.cjs";
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export { FloatingPanel, type Placement } from "./floating-panel.js";
|
|
2
|
+
export { DsPopover, DsTooltip, type DsPopoverProps, type DsTooltipProps } from "./popover.js";
|
|
3
|
+
export { DsDropdown, DsDropdownItem, DsDropdownDivider, DsMenuButton, type DsDropdownProps, type DsDropdownItemProps, type DsMenuButtonProps } from "./dropdown.js";
|
|
4
|
+
export { DsDrawer, type DsDrawerProps } from "./drawer.js";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type MouseEvent, type ReactNode } from "react";
|
|
2
|
+
export interface DsListRowProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
leading?: ReactNode;
|
|
6
|
+
trailing?: ReactNode;
|
|
7
|
+
actions?: ReactNode;
|
|
8
|
+
href?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function DsListRow({ title, description, leading, trailing, actions, href, disabled, onClick }: DsListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface DsListSectionProps {
|
|
14
|
+
title?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
actions?: ReactNode;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function DsListSection({ title, description, actions, children, ariaLabel }: DsListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type MouseEvent, type ReactNode } from "react";
|
|
2
|
+
export interface DsListRowProps {
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
leading?: ReactNode;
|
|
6
|
+
trailing?: ReactNode;
|
|
7
|
+
actions?: ReactNode;
|
|
8
|
+
href?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onClick?: (event: MouseEvent<HTMLElement>) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function DsListRow({ title, description, leading, trailing, actions, href, disabled, onClick }: DsListRowProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export interface DsListSectionProps {
|
|
14
|
+
title?: string;
|
|
15
|
+
description?: string;
|
|
16
|
+
actions?: ReactNode;
|
|
17
|
+
children: ReactNode;
|
|
18
|
+
ariaLabel?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function DsListSection({ title, description, actions, children, ariaLabel }: DsListSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type LayoutColumn, webMarketLayout } from "../../../shared/package-runtime/market-layout.cjs";
|
|
2
|
+
export { webMarketLayout };
|
|
3
|
+
export declare function MarketColumns({ columns, showActions, widthClass }: {
|
|
4
|
+
columns: LayoutColumn[];
|
|
5
|
+
showActions: boolean;
|
|
6
|
+
widthClass?: (column: LayoutColumn) => string;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type LayoutColumn, webMarketLayout } from "../../../shared/package-runtime/market-layout.js";
|
|
2
|
+
export { webMarketLayout };
|
|
3
|
+
export declare function MarketColumns({ columns, showActions, widthClass }: {
|
|
4
|
+
columns: LayoutColumn[];
|
|
5
|
+
showActions: boolean;
|
|
6
|
+
widthClass?: (column: LayoutColumn) => string;
|
|
7
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { type QueryDisplayProps } from "@kjun-ui/tokens";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type MarketCardsModelProps, type MarketMetric } from "../../../shared/package-runtime/market-cards.cjs";
|
|
4
|
+
export type { MarketMetric } from "../../../shared/package-runtime/market-cards.cjs";
|
|
5
|
+
export interface MarketPagination {
|
|
6
|
+
page: number;
|
|
7
|
+
size: number;
|
|
8
|
+
total: number;
|
|
9
|
+
}
|
|
10
|
+
export interface MarketBaseProps<Row extends object> extends QueryDisplayProps {
|
|
11
|
+
rows?: Row[];
|
|
12
|
+
rowKey?: string;
|
|
13
|
+
interestKeys?: ReadonlySet<unknown>;
|
|
14
|
+
favoriteKeys?: ReadonlySet<unknown>;
|
|
15
|
+
pagination?: MarketPagination | null;
|
|
16
|
+
primaryLabel?: (row: Row) => string;
|
|
17
|
+
subMeta?: (row: Row) => string;
|
|
18
|
+
emptyMessage?: string;
|
|
19
|
+
emptySubMessage?: string;
|
|
20
|
+
showFooter?: boolean;
|
|
21
|
+
calculatedAt?: string | null;
|
|
22
|
+
footerNote?: string;
|
|
23
|
+
totalCount?: number;
|
|
24
|
+
unitLabel?: string;
|
|
25
|
+
formatDate?: (value: string) => string;
|
|
26
|
+
renderIdentity?: (row: Row, content: ReactNode) => ReactNode;
|
|
27
|
+
renderNamePrefix?: (row: Row) => ReactNode;
|
|
28
|
+
renderNameSuffix?: (row: Row) => ReactNode;
|
|
29
|
+
renderSubMeta?: (row: Row) => ReactNode;
|
|
30
|
+
onPageChange?: (page: number) => void;
|
|
31
|
+
onRowClick?: (row: Row) => void;
|
|
32
|
+
onRetry?: () => void;
|
|
33
|
+
}
|
|
34
|
+
export interface MarketColumn {
|
|
35
|
+
key: string;
|
|
36
|
+
label: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
align?: "left" | "right" | "center";
|
|
39
|
+
width?: number | string;
|
|
40
|
+
sortable?: boolean;
|
|
41
|
+
defaultSort?: boolean;
|
|
42
|
+
flash?: "price" | "change";
|
|
43
|
+
weight?: string;
|
|
44
|
+
}
|
|
45
|
+
export type MarketFormatter<Row extends object> = (value: unknown, format: string, context: {
|
|
46
|
+
currency: string;
|
|
47
|
+
row: Row;
|
|
48
|
+
column?: MarketColumn;
|
|
49
|
+
}) => string;
|
|
50
|
+
export interface DsMarketSimpleListProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
51
|
+
priceValue: (row: Row) => number | null;
|
|
52
|
+
changeValue: (row: Row) => number | null;
|
|
53
|
+
changeLoading?: (row: Row) => boolean;
|
|
54
|
+
priceFormatter: (value: number) => string;
|
|
55
|
+
closingPrice?: boolean;
|
|
56
|
+
renderPricePrefix?: (row: Row) => ReactNode;
|
|
57
|
+
}
|
|
58
|
+
export interface DsMarketTableProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
59
|
+
columns: MarketColumn[];
|
|
60
|
+
cellLoading?: (row: Row, column: MarketColumn) => boolean;
|
|
61
|
+
showActions?: boolean;
|
|
62
|
+
togglingInterest?: unknown;
|
|
63
|
+
togglingFavorite?: unknown;
|
|
64
|
+
sortKey?: string | null;
|
|
65
|
+
sortOrder?: "asc" | "desc";
|
|
66
|
+
priceFormatter?: (value: number) => string;
|
|
67
|
+
currency?: string;
|
|
68
|
+
embedded?: boolean;
|
|
69
|
+
formatMetric?: MarketFormatter<Row>;
|
|
70
|
+
renderCell?: (row: Row, column: MarketColumn) => ReactNode;
|
|
71
|
+
onSort?: (key: string) => void;
|
|
72
|
+
onToggleInterest?: (row: Row) => void;
|
|
73
|
+
onToggleFavorite?: (row: Row) => void;
|
|
74
|
+
}
|
|
75
|
+
export interface DsMarketCardsProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row>, MarketCardsModelProps {
|
|
76
|
+
columns: MarketColumn[];
|
|
77
|
+
sortOrder?: "asc" | "desc";
|
|
78
|
+
currency?: string;
|
|
79
|
+
changeMetricKey?: string;
|
|
80
|
+
priceMetricKeys?: string[];
|
|
81
|
+
metricLoading?: (row: Row, key: string) => boolean;
|
|
82
|
+
formatMetric?: MarketFormatter<Row>;
|
|
83
|
+
renderMetricPrefix?: (row: Row, key: string, isPrice: boolean) => ReactNode;
|
|
84
|
+
renderList?: (state: {
|
|
85
|
+
selectedKey: string;
|
|
86
|
+
selectedPill: MarketMetric | undefined;
|
|
87
|
+
metricDisplay: (row: Row) => string;
|
|
88
|
+
}) => ReactNode;
|
|
89
|
+
}
|
|
90
|
+
export declare function useMarketCards<Row extends object>(props: DsMarketCardsProps<Row>): {
|
|
91
|
+
pills: {
|
|
92
|
+
sortKey: string | null | undefined;
|
|
93
|
+
isDefaultSort: boolean | undefined;
|
|
94
|
+
label: string;
|
|
95
|
+
format?: string;
|
|
96
|
+
formatter?: (value: unknown) => string;
|
|
97
|
+
key: string;
|
|
98
|
+
}[];
|
|
99
|
+
key: string;
|
|
100
|
+
pill: {
|
|
101
|
+
sortKey: string | null | undefined;
|
|
102
|
+
isDefaultSort: boolean | undefined;
|
|
103
|
+
label: string;
|
|
104
|
+
format?: string;
|
|
105
|
+
formatter?: (value: unknown) => string;
|
|
106
|
+
key: string;
|
|
107
|
+
};
|
|
108
|
+
select: (key: string) => void;
|
|
109
|
+
};
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
import { type QueryDisplayProps } from "@kjun-ui/tokens";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type MarketCardsModelProps, type MarketMetric } from "../../../shared/package-runtime/market-cards.js";
|
|
4
|
+
export type { MarketMetric } from "../../../shared/package-runtime/market-cards.js";
|
|
5
|
+
export interface MarketPagination {
|
|
6
|
+
page: number;
|
|
7
|
+
size: number;
|
|
8
|
+
total: number;
|
|
9
|
+
}
|
|
10
|
+
export interface MarketBaseProps<Row extends object> extends QueryDisplayProps {
|
|
11
|
+
rows?: Row[];
|
|
12
|
+
rowKey?: string;
|
|
13
|
+
interestKeys?: ReadonlySet<unknown>;
|
|
14
|
+
favoriteKeys?: ReadonlySet<unknown>;
|
|
15
|
+
pagination?: MarketPagination | null;
|
|
16
|
+
primaryLabel?: (row: Row) => string;
|
|
17
|
+
subMeta?: (row: Row) => string;
|
|
18
|
+
emptyMessage?: string;
|
|
19
|
+
emptySubMessage?: string;
|
|
20
|
+
showFooter?: boolean;
|
|
21
|
+
calculatedAt?: string | null;
|
|
22
|
+
footerNote?: string;
|
|
23
|
+
totalCount?: number;
|
|
24
|
+
unitLabel?: string;
|
|
25
|
+
formatDate?: (value: string) => string;
|
|
26
|
+
renderIdentity?: (row: Row, content: ReactNode) => ReactNode;
|
|
27
|
+
renderNamePrefix?: (row: Row) => ReactNode;
|
|
28
|
+
renderNameSuffix?: (row: Row) => ReactNode;
|
|
29
|
+
renderSubMeta?: (row: Row) => ReactNode;
|
|
30
|
+
onPageChange?: (page: number) => void;
|
|
31
|
+
onRowClick?: (row: Row) => void;
|
|
32
|
+
onRetry?: () => void;
|
|
33
|
+
}
|
|
34
|
+
export interface MarketColumn {
|
|
35
|
+
key: string;
|
|
36
|
+
label: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
align?: "left" | "right" | "center";
|
|
39
|
+
width?: number | string;
|
|
40
|
+
sortable?: boolean;
|
|
41
|
+
defaultSort?: boolean;
|
|
42
|
+
flash?: "price" | "change";
|
|
43
|
+
weight?: string;
|
|
44
|
+
}
|
|
45
|
+
export type MarketFormatter<Row extends object> = (value: unknown, format: string, context: {
|
|
46
|
+
currency: string;
|
|
47
|
+
row: Row;
|
|
48
|
+
column?: MarketColumn;
|
|
49
|
+
}) => string;
|
|
50
|
+
export interface DsMarketSimpleListProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
51
|
+
priceValue: (row: Row) => number | null;
|
|
52
|
+
changeValue: (row: Row) => number | null;
|
|
53
|
+
changeLoading?: (row: Row) => boolean;
|
|
54
|
+
priceFormatter: (value: number) => string;
|
|
55
|
+
closingPrice?: boolean;
|
|
56
|
+
renderPricePrefix?: (row: Row) => ReactNode;
|
|
57
|
+
}
|
|
58
|
+
export interface DsMarketTableProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row> {
|
|
59
|
+
columns: MarketColumn[];
|
|
60
|
+
cellLoading?: (row: Row, column: MarketColumn) => boolean;
|
|
61
|
+
showActions?: boolean;
|
|
62
|
+
togglingInterest?: unknown;
|
|
63
|
+
togglingFavorite?: unknown;
|
|
64
|
+
sortKey?: string | null;
|
|
65
|
+
sortOrder?: "asc" | "desc";
|
|
66
|
+
priceFormatter?: (value: number) => string;
|
|
67
|
+
currency?: string;
|
|
68
|
+
embedded?: boolean;
|
|
69
|
+
formatMetric?: MarketFormatter<Row>;
|
|
70
|
+
renderCell?: (row: Row, column: MarketColumn) => ReactNode;
|
|
71
|
+
onSort?: (key: string) => void;
|
|
72
|
+
onToggleInterest?: (row: Row) => void;
|
|
73
|
+
onToggleFavorite?: (row: Row) => void;
|
|
74
|
+
}
|
|
75
|
+
export interface DsMarketCardsProps<Row extends object = Record<string, unknown>> extends MarketBaseProps<Row>, MarketCardsModelProps {
|
|
76
|
+
columns: MarketColumn[];
|
|
77
|
+
sortOrder?: "asc" | "desc";
|
|
78
|
+
currency?: string;
|
|
79
|
+
changeMetricKey?: string;
|
|
80
|
+
priceMetricKeys?: string[];
|
|
81
|
+
metricLoading?: (row: Row, key: string) => boolean;
|
|
82
|
+
formatMetric?: MarketFormatter<Row>;
|
|
83
|
+
renderMetricPrefix?: (row: Row, key: string, isPrice: boolean) => ReactNode;
|
|
84
|
+
renderList?: (state: {
|
|
85
|
+
selectedKey: string;
|
|
86
|
+
selectedPill: MarketMetric | undefined;
|
|
87
|
+
metricDisplay: (row: Row) => string;
|
|
88
|
+
}) => ReactNode;
|
|
89
|
+
}
|
|
90
|
+
export declare function useMarketCards<Row extends object>(props: DsMarketCardsProps<Row>): {
|
|
91
|
+
pills: {
|
|
92
|
+
sortKey: string | null | undefined;
|
|
93
|
+
isDefaultSort: boolean | undefined;
|
|
94
|
+
label: string;
|
|
95
|
+
format?: string;
|
|
96
|
+
formatter?: (value: unknown) => string;
|
|
97
|
+
key: string;
|
|
98
|
+
}[];
|
|
99
|
+
key: string;
|
|
100
|
+
pill: {
|
|
101
|
+
sortKey: string | null | undefined;
|
|
102
|
+
isDefaultSort: boolean | undefined;
|
|
103
|
+
label: string;
|
|
104
|
+
format?: string;
|
|
105
|
+
formatter?: (value: unknown) => string;
|
|
106
|
+
key: string;
|
|
107
|
+
};
|
|
108
|
+
select: (key: string) => void;
|
|
109
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MarketBaseProps } from "./market-model.cjs";
|
|
2
|
+
export declare function MarketIdentity<Row extends object>({ row, props, }: {
|
|
3
|
+
row: Row;
|
|
4
|
+
props: MarketBaseProps<Row>;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function MarketFooter<Row extends object>({ props, }: {
|
|
7
|
+
props: MarketBaseProps<Row>;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MarketBaseProps } from "./market-model.js";
|
|
2
|
+
export declare function MarketIdentity<Row extends object>({ row, props, }: {
|
|
3
|
+
row: Row;
|
|
4
|
+
props: MarketBaseProps<Row>;
|
|
5
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export declare function MarketFooter<Row extends object>({ props, }: {
|
|
7
|
+
props: MarketBaseProps<Row>;
|
|
8
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DsMarketTableSkeletonProps {
|
|
2
|
+
columns?: ({
|
|
3
|
+
key?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
align?: "left" | "right" | "center";
|
|
7
|
+
} | string)[];
|
|
8
|
+
rows?: number;
|
|
9
|
+
showActions?: boolean;
|
|
10
|
+
alignClass?: (align: unknown) => string;
|
|
11
|
+
widthClass?: (column: unknown) => string;
|
|
12
|
+
}
|
|
13
|
+
export declare function DsMarketTableSkeleton({ columns, rows, showActions, alignClass, widthClass }: DsMarketTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface DsMarketTableSkeletonProps {
|
|
2
|
+
columns?: ({
|
|
3
|
+
key?: string;
|
|
4
|
+
label?: string;
|
|
5
|
+
width?: string | number;
|
|
6
|
+
align?: "left" | "right" | "center";
|
|
7
|
+
} | string)[];
|
|
8
|
+
rows?: number;
|
|
9
|
+
showActions?: boolean;
|
|
10
|
+
alignClass?: (align: unknown) => string;
|
|
11
|
+
widthClass?: (column: unknown) => string;
|
|
12
|
+
}
|
|
13
|
+
export declare function DsMarketTableSkeleton({ columns, rows, showActions, alignClass, widthClass }: DsMarketTableSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { DsMarketCards } from "./market-cards.cjs";
|
|
2
|
+
export { DsMarketSimpleList } from "./market-list.cjs";
|
|
3
|
+
export { useMarketCards } from "./market-model.cjs";
|
|
4
|
+
export type { DsMarketCardsProps, DsMarketSimpleListProps, DsMarketTableProps, MarketBaseProps, MarketColumn, MarketFormatter, MarketMetric, MarketPagination } from "./market-model.cjs";
|
|
5
|
+
export { DsMarketListPanel } from "./market-panel.cjs";
|
|
6
|
+
export { MarketIdentity } from "./market-parts.cjs";
|
|
7
|
+
export { DsMarketTable } from "./market-table.cjs";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { DsMarketCards } from "./market-cards.js";
|
|
2
|
+
export { DsMarketSimpleList } from "./market-list.js";
|
|
3
|
+
export { useMarketCards } from "./market-model.js";
|
|
4
|
+
export type { DsMarketCardsProps, DsMarketSimpleListProps, DsMarketTableProps, MarketBaseProps, MarketColumn, MarketFormatter, MarketMetric, MarketPagination } from "./market-model.js";
|
|
5
|
+
export { DsMarketListPanel } from "./market-panel.js";
|
|
6
|
+
export { MarketIdentity } from "./market-parts.js";
|
|
7
|
+
export { DsMarketTable } from "./market-table.js";
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface DsImageProps {
|
|
3
|
+
src?: string;
|
|
4
|
+
alt: string;
|
|
5
|
+
decorative?: boolean;
|
|
6
|
+
aspectRatio?: number;
|
|
7
|
+
fit?: "cover" | "contain";
|
|
8
|
+
fallback?: ReactNode;
|
|
9
|
+
lazy?: boolean;
|
|
10
|
+
onLoad?: () => void;
|
|
11
|
+
onError?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function DsImage({ src, alt, decorative, aspectRatio, fit, fallback, lazy, onLoad, onError }: DsImageProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface DsAvatarProps {
|
|
15
|
+
src?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
alt?: string;
|
|
18
|
+
decorative?: boolean;
|
|
19
|
+
size?: "sm" | "md" | "lg";
|
|
20
|
+
shape?: "circle" | "square";
|
|
21
|
+
fallback?: ReactNode;
|
|
22
|
+
onLoad?: () => void;
|
|
23
|
+
onError?: () => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function DsAvatar({ src, name, alt, decorative, size, shape, fallback, onLoad, onError }: DsAvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export interface DsImageProps {
|
|
3
|
+
src?: string;
|
|
4
|
+
alt: string;
|
|
5
|
+
decorative?: boolean;
|
|
6
|
+
aspectRatio?: number;
|
|
7
|
+
fit?: "cover" | "contain";
|
|
8
|
+
fallback?: ReactNode;
|
|
9
|
+
lazy?: boolean;
|
|
10
|
+
onLoad?: () => void;
|
|
11
|
+
onError?: () => void;
|
|
12
|
+
}
|
|
13
|
+
export declare function DsImage({ src, alt, decorative, aspectRatio, fit, fallback, lazy, onLoad, onError }: DsImageProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export interface DsAvatarProps {
|
|
15
|
+
src?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
alt?: string;
|
|
18
|
+
decorative?: boolean;
|
|
19
|
+
size?: "sm" | "md" | "lg";
|
|
20
|
+
shape?: "circle" | "square";
|
|
21
|
+
fallback?: ReactNode;
|
|
22
|
+
onLoad?: () => void;
|
|
23
|
+
onError?: () => void;
|
|
24
|
+
}
|
|
25
|
+
export declare function DsAvatar({ src, name, alt, decorative, size, shape, fallback, onLoad, onError }: DsAvatarProps): import("react/jsx-runtime").JSX.Element;
|