@kjun-ui/native 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 +9679 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9814 -0
- package/dist/index.web.cjs +9934 -0
- package/dist/index.web.js +10069 -0
- package/dist/styles.css +7695 -0
- package/dist/types/packages/native/src/a11y.d.cts +7 -0
- package/dist/types/packages/native/src/a11y.d.ts +7 -0
- package/dist/types/packages/native/src/actions.d.cts +58 -0
- package/dist/types/packages/native/src/actions.d.ts +58 -0
- package/dist/types/packages/native/src/alert-actions-context.d.cts +1 -0
- package/dist/types/packages/native/src/alert-actions-context.d.ts +1 -0
- package/dist/types/packages/native/src/app-navigation.d.cts +36 -0
- package/dist/types/packages/native/src/app-navigation.d.ts +36 -0
- package/dist/types/packages/native/src/bottom-action-bar-context.d.cts +1 -0
- package/dist/types/packages/native/src/bottom-action-bar-context.d.ts +1 -0
- package/dist/types/packages/native/src/button-group-motion.d.cts +17 -0
- package/dist/types/packages/native/src/button-group-motion.d.ts +17 -0
- package/dist/types/packages/native/src/button.d.cts +25 -0
- package/dist/types/packages/native/src/button.d.ts +25 -0
- package/dist/types/packages/native/src/card-actions-context.d.cts +1 -0
- package/dist/types/packages/native/src/card-actions-context.d.ts +1 -0
- package/dist/types/packages/native/src/card.d.cts +21 -0
- package/dist/types/packages/native/src/card.d.ts +21 -0
- package/dist/types/packages/native/src/chip.d.cts +10 -0
- package/dist/types/packages/native/src/chip.d.ts +10 -0
- package/dist/types/packages/native/src/choice-accessibility.d.cts +4 -0
- package/dist/types/packages/native/src/choice-accessibility.d.ts +4 -0
- package/dist/types/packages/native/src/choice-controls.d.cts +60 -0
- package/dist/types/packages/native/src/choice-controls.d.ts +60 -0
- package/dist/types/packages/native/src/collapse.d.cts +5 -0
- package/dist/types/packages/native/src/collapse.d.ts +5 -0
- package/dist/types/packages/native/src/combobox.d.cts +48 -0
- package/dist/types/packages/native/src/combobox.d.ts +48 -0
- package/dist/types/packages/native/src/compound-control.d.cts +14 -0
- package/dist/types/packages/native/src/compound-control.d.ts +14 -0
- package/dist/types/packages/native/src/controls.d.cts +6 -0
- package/dist/types/packages/native/src/controls.d.ts +6 -0
- package/dist/types/packages/native/src/data-state-context.d.cts +1 -0
- package/dist/types/packages/native/src/data-state-context.d.ts +1 -0
- package/dist/types/packages/native/src/data-state.d.cts +53 -0
- package/dist/types/packages/native/src/data-state.d.ts +53 -0
- package/dist/types/packages/native/src/date-picker.d.cts +14 -0
- package/dist/types/packages/native/src/date-picker.d.ts +14 -0
- package/dist/types/packages/native/src/display-primitives.d.cts +50 -0
- package/dist/types/packages/native/src/display-primitives.d.ts +50 -0
- package/dist/types/packages/native/src/display.d.cts +6 -0
- package/dist/types/packages/native/src/display.d.ts +6 -0
- package/dist/types/packages/native/src/drawer.d.cts +18 -0
- package/dist/types/packages/native/src/drawer.d.ts +18 -0
- package/dist/types/packages/native/src/dropdown.d.cts +39 -0
- package/dist/types/packages/native/src/dropdown.d.ts +39 -0
- package/dist/types/packages/native/src/feedback-context.d.cts +3 -0
- package/dist/types/packages/native/src/feedback-context.d.ts +3 -0
- package/dist/types/packages/native/src/feedback.d.cts +7 -0
- package/dist/types/packages/native/src/feedback.d.ts +7 -0
- package/dist/types/packages/native/src/field-clear.d.cts +8 -0
- package/dist/types/packages/native/src/field-clear.d.ts +8 -0
- package/dist/types/packages/native/src/field-surface.d.cts +86 -0
- package/dist/types/packages/native/src/field-surface.d.ts +86 -0
- package/dist/types/packages/native/src/financial-display.d.cts +87 -0
- package/dist/types/packages/native/src/financial-display.d.ts +87 -0
- package/dist/types/packages/native/src/financial.d.cts +4 -0
- package/dist/types/packages/native/src/financial.d.ts +4 -0
- package/dist/types/packages/native/src/floating-panel.d.cts +31 -0
- package/dist/types/packages/native/src/floating-panel.d.ts +31 -0
- package/dist/types/packages/native/src/form-actions-context.d.cts +3 -0
- package/dist/types/packages/native/src/form-actions-context.d.ts +3 -0
- package/dist/types/packages/native/src/index.d.cts +39 -0
- package/dist/types/packages/native/src/index.d.ts +39 -0
- package/dist/types/packages/native/src/input.d.cts +44 -0
- package/dist/types/packages/native/src/input.d.ts +44 -0
- package/dist/types/packages/native/src/internal.d.cts +7 -0
- package/dist/types/packages/native/src/internal.d.ts +7 -0
- package/dist/types/packages/native/src/kpi-hero.d.cts +35 -0
- package/dist/types/packages/native/src/kpi-hero.d.ts +35 -0
- package/dist/types/packages/native/src/kpi-number-line.d.cts +12 -0
- package/dist/types/packages/native/src/kpi-number-line.d.ts +12 -0
- package/dist/types/packages/native/src/kpi-row.d.cts +32 -0
- package/dist/types/packages/native/src/kpi-row.d.ts +32 -0
- package/dist/types/packages/native/src/kpi.d.cts +4 -0
- package/dist/types/packages/native/src/kpi.d.ts +4 -0
- package/dist/types/packages/native/src/layer-backdrop.d.cts +6 -0
- package/dist/types/packages/native/src/layer-backdrop.d.ts +6 -0
- package/dist/types/packages/native/src/layers.d.cts +8 -0
- package/dist/types/packages/native/src/layers.d.ts +8 -0
- package/dist/types/packages/native/src/list.d.cts +21 -0
- package/dist/types/packages/native/src/list.d.ts +21 -0
- package/dist/types/packages/native/src/market-cards.d.cts +2 -0
- package/dist/types/packages/native/src/market-cards.d.ts +2 -0
- package/dist/types/packages/native/src/market-layout.d.cts +10 -0
- package/dist/types/packages/native/src/market-layout.d.ts +10 -0
- package/dist/types/packages/native/src/market-list.d.cts +2 -0
- package/dist/types/packages/native/src/market-list.d.ts +2 -0
- package/dist/types/packages/native/src/market-model.d.cts +109 -0
- package/dist/types/packages/native/src/market-model.d.ts +109 -0
- package/dist/types/packages/native/src/market-panel.d.cts +5 -0
- package/dist/types/packages/native/src/market-panel.d.ts +5 -0
- package/dist/types/packages/native/src/market-parts.d.cts +10 -0
- package/dist/types/packages/native/src/market-parts.d.ts +10 -0
- package/dist/types/packages/native/src/market-skeleton.d.cts +11 -0
- package/dist/types/packages/native/src/market-skeleton.d.ts +11 -0
- package/dist/types/packages/native/src/market-table.d.cts +2 -0
- package/dist/types/packages/native/src/market-table.d.ts +2 -0
- package/dist/types/packages/native/src/market.d.cts +7 -0
- package/dist/types/packages/native/src/market.d.ts +7 -0
- package/dist/types/packages/native/src/media.d.cts +27 -0
- package/dist/types/packages/native/src/media.d.ts +27 -0
- package/dist/types/packages/native/src/modal-window.d.cts +5 -0
- package/dist/types/packages/native/src/modal-window.d.ts +5 -0
- package/dist/types/packages/native/src/modal.d.cts +46 -0
- package/dist/types/packages/native/src/modal.d.ts +46 -0
- package/dist/types/packages/native/src/motion.d.cts +18 -0
- package/dist/types/packages/native/src/motion.d.ts +18 -0
- package/dist/types/packages/native/src/navigation.d.cts +45 -0
- package/dist/types/packages/native/src/navigation.d.ts +45 -0
- package/dist/types/packages/native/src/number-display.d.cts +49 -0
- package/dist/types/packages/native/src/number-display.d.ts +49 -0
- package/dist/types/packages/native/src/overlay-host.d.cts +9 -0
- package/dist/types/packages/native/src/overlay-host.d.ts +9 -0
- package/dist/types/packages/native/src/popover.d.cts +24 -0
- package/dist/types/packages/native/src/popover.d.ts +24 -0
- package/dist/types/packages/native/src/provider.d.cts +20 -0
- package/dist/types/packages/native/src/provider.d.ts +20 -0
- package/dist/types/packages/native/src/quantity-stepper.d.cts +18 -0
- package/dist/types/packages/native/src/quantity-stepper.d.ts +18 -0
- package/dist/types/packages/native/src/range-input.d.cts +31 -0
- package/dist/types/packages/native/src/range-input.d.ts +31 -0
- package/dist/types/packages/native/src/search-input.d.cts +21 -0
- package/dist/types/packages/native/src/search-input.d.ts +21 -0
- package/dist/types/packages/native/src/select-control.d.cts +30 -0
- package/dist/types/packages/native/src/select-control.d.ts +30 -0
- package/dist/types/packages/native/src/select-options.d.cts +13 -0
- package/dist/types/packages/native/src/select-options.d.ts +13 -0
- package/dist/types/packages/native/src/select.d.cts +10 -0
- package/dist/types/packages/native/src/select.d.ts +10 -0
- package/dist/types/packages/native/src/selection-groups.d.cts +22 -0
- package/dist/types/packages/native/src/selection-groups.d.ts +22 -0
- package/dist/types/packages/native/src/skeleton-base.d.cts +11 -0
- package/dist/types/packages/native/src/skeleton-base.d.ts +11 -0
- package/dist/types/packages/native/src/skeletons.d.cts +28 -0
- package/dist/types/packages/native/src/skeletons.d.ts +28 -0
- package/dist/types/packages/native/src/table-cards.d.cts +2 -0
- package/dist/types/packages/native/src/table-cards.d.ts +2 -0
- package/dist/types/packages/native/src/table-grid.d.cts +2 -0
- package/dist/types/packages/native/src/table-grid.d.ts +2 -0
- package/dist/types/packages/native/src/table-model.d.cts +20 -0
- package/dist/types/packages/native/src/table-model.d.ts +20 -0
- package/dist/types/packages/native/src/table-toolbar.d.cts +2 -0
- package/dist/types/packages/native/src/table-toolbar.d.ts +2 -0
- package/dist/types/packages/native/src/table-view.d.cts +2 -0
- package/dist/types/packages/native/src/table-view.d.ts +2 -0
- package/dist/types/packages/native/src/table.d.cts +3 -0
- package/dist/types/packages/native/src/table.d.ts +3 -0
- package/dist/types/packages/native/src/tabs-accessibility.d.cts +4 -0
- package/dist/types/packages/native/src/tabs-accessibility.d.ts +4 -0
- package/dist/types/packages/native/src/tabs.d.cts +31 -0
- package/dist/types/packages/native/src/tabs.d.ts +31 -0
- package/dist/types/packages/native/src/textarea.d.cts +12 -0
- package/dist/types/packages/native/src/textarea.d.ts +12 -0
- package/dist/types/packages/native/src/time-picker.d.cts +17 -0
- package/dist/types/packages/native/src/time-picker.d.ts +17 -0
- package/dist/types/packages/native/src/toast-reflow.d.cts +3 -0
- package/dist/types/packages/native/src/toast-reflow.d.ts +3 -0
- package/dist/types/packages/native/src/toast-stack.d.cts +6 -0
- package/dist/types/packages/native/src/toast-stack.d.ts +6 -0
- package/dist/types/packages/native/src/toast.d.cts +5 -0
- package/dist/types/packages/native/src/toast.d.ts +5 -0
- package/dist/types/packages/native/src/top-navigation-context.d.cts +5 -0
- package/dist/types/packages/native/src/top-navigation-context.d.ts +5 -0
- package/dist/types/packages/native/src/typography.d.cts +20 -0
- package/dist/types/packages/native/src/typography.d.ts +20 -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/elevation.d.cts +10 -0
- package/dist/types/shared/package-runtime/elevation.d.ts +10 -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/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/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/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/package.json +62 -4
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
export { DsTabs, DsTabPane, type TabItem, type DsTabsProps, type DsTabPaneProps } from "./tabs.js";
|
|
3
|
+
export interface DsAccordionProps {
|
|
4
|
+
multiple?: boolean;
|
|
5
|
+
tone?: "card" | "muted";
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare function DsAccordion({ multiple, tone, children, }: DsAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface DsAccordionItemProps {
|
|
10
|
+
title?: string;
|
|
11
|
+
defaultOpen?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
header?: ReactNode;
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare function DsAccordionItem({ title, defaultOpen, disabled, header, children, }: DsAccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export interface BreadcrumbItem {
|
|
18
|
+
label: string;
|
|
19
|
+
to?: string;
|
|
20
|
+
icon?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface DsBreadcrumbProps {
|
|
23
|
+
items: BreadcrumbItem[];
|
|
24
|
+
renderLink?: (item: BreadcrumbItem, children: ReactNode) => ReactNode;
|
|
25
|
+
onNavigate?: (item: BreadcrumbItem) => void;
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
}
|
|
28
|
+
export declare function DsBreadcrumb({ items, renderLink, onNavigate, ariaLabel, }: DsBreadcrumbProps): import("react/jsx-runtime").JSX.Element;
|
|
29
|
+
export interface DsPaginationProps {
|
|
30
|
+
currentPage?: number;
|
|
31
|
+
page?: number;
|
|
32
|
+
totalPages: number;
|
|
33
|
+
totalRows?: number;
|
|
34
|
+
pageSize?: number;
|
|
35
|
+
pageSizeOptions?: number[];
|
|
36
|
+
siblingCount?: number;
|
|
37
|
+
showInfo?: boolean;
|
|
38
|
+
showSizeSelector?: boolean;
|
|
39
|
+
showFirstLast?: boolean;
|
|
40
|
+
formatter?: (value: number) => string;
|
|
41
|
+
onPageChange?: (page: number) => void;
|
|
42
|
+
onChange?: (page: number) => void;
|
|
43
|
+
onPageSizeChange?: (size: number) => void;
|
|
44
|
+
}
|
|
45
|
+
export declare function DsPagination({ currentPage, page, totalPages, totalRows, pageSize, pageSizeOptions, siblingCount, showInfo, showSizeSelector, showFirstLast, formatter, onPageChange, onChange, onPageSizeChange, }: DsPaginationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type StyleProp, type TextStyle } from "react-native";
|
|
2
|
+
export declare const finiteNumber: (value: unknown) => number | null;
|
|
3
|
+
export declare const format: (value: number, decimals?: number) => string;
|
|
4
|
+
export declare function useCountUp(value: number | string, animated: boolean, fromPrevious: boolean): string | number;
|
|
5
|
+
export interface DsAnimatedNumberProps {
|
|
6
|
+
value: number | string;
|
|
7
|
+
decimals?: number;
|
|
8
|
+
prefix?: string;
|
|
9
|
+
suffix?: string;
|
|
10
|
+
animated?: boolean;
|
|
11
|
+
fromPrevious?: boolean;
|
|
12
|
+
formatter?: (value: number) => string;
|
|
13
|
+
style?: StyleProp<TextStyle>;
|
|
14
|
+
}
|
|
15
|
+
/** Internal: market lists set price and change type like Web .kjun-market-price/.kjun-market-change (Text styles do not inherit). */
|
|
16
|
+
export declare const MarketQuoteTypeContext: import("react").Context<{
|
|
17
|
+
price: TextStyle;
|
|
18
|
+
change: TextStyle;
|
|
19
|
+
} | null>;
|
|
20
|
+
export declare function DsAnimatedNumber({ value, decimals, prefix, suffix, animated, fromPrevious, formatter, style, }: DsAnimatedNumberProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface DsFreshnessProps {
|
|
22
|
+
stale?: boolean;
|
|
23
|
+
source?: string | null;
|
|
24
|
+
fetchedAt?: string | null;
|
|
25
|
+
formatter?: (time: string) => string;
|
|
26
|
+
}
|
|
27
|
+
export declare function DsFreshness({ stale, source, fetchedAt, formatter, }: DsFreshnessProps): import("react/jsx-runtime").JSX.Element | null;
|
|
28
|
+
export interface DsPriceCellProps extends Omit<DsFreshnessProps, "formatter"> {
|
|
29
|
+
value?: number | null;
|
|
30
|
+
formatter?: (value: number) => string;
|
|
31
|
+
fromPrevious?: boolean;
|
|
32
|
+
showFreshness?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare function DsPriceCell({ value, formatter, stale, showFreshness, source, fetchedAt, fromPrevious, }: DsPriceCellProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export interface DsSignedValueProps {
|
|
36
|
+
value?: number | string | null;
|
|
37
|
+
format?: "number" | "percent";
|
|
38
|
+
isRaw?: boolean;
|
|
39
|
+
decimals?: number;
|
|
40
|
+
prefix?: string;
|
|
41
|
+
suffix?: string;
|
|
42
|
+
showSign?: boolean;
|
|
43
|
+
tone?: "plain" | "pill";
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
stale?: boolean;
|
|
46
|
+
showFreshness?: boolean;
|
|
47
|
+
formatter?: (value: number) => string;
|
|
48
|
+
}
|
|
49
|
+
export declare function DsSignedValue({ value, format: kind, isRaw, decimals, prefix, suffix, showSign, tone, loading, stale, showFreshness, formatter, }: DsSignedValueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { type StyleProp, type TextStyle } from "react-native";
|
|
2
|
+
export declare const finiteNumber: (value: unknown) => number | null;
|
|
3
|
+
export declare const format: (value: number, decimals?: number) => string;
|
|
4
|
+
export declare function useCountUp(value: number | string, animated: boolean, fromPrevious: boolean): string | number;
|
|
5
|
+
export interface DsAnimatedNumberProps {
|
|
6
|
+
value: number | string;
|
|
7
|
+
decimals?: number;
|
|
8
|
+
prefix?: string;
|
|
9
|
+
suffix?: string;
|
|
10
|
+
animated?: boolean;
|
|
11
|
+
fromPrevious?: boolean;
|
|
12
|
+
formatter?: (value: number) => string;
|
|
13
|
+
style?: StyleProp<TextStyle>;
|
|
14
|
+
}
|
|
15
|
+
/** Internal: market lists set price and change type like Web .kjun-market-price/.kjun-market-change (Text styles do not inherit). */
|
|
16
|
+
export declare const MarketQuoteTypeContext: import("react").Context<{
|
|
17
|
+
price: TextStyle;
|
|
18
|
+
change: TextStyle;
|
|
19
|
+
} | null>;
|
|
20
|
+
export declare function DsAnimatedNumber({ value, decimals, prefix, suffix, animated, fromPrevious, formatter, style, }: DsAnimatedNumberProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface DsFreshnessProps {
|
|
22
|
+
stale?: boolean;
|
|
23
|
+
source?: string | null;
|
|
24
|
+
fetchedAt?: string | null;
|
|
25
|
+
formatter?: (time: string) => string;
|
|
26
|
+
}
|
|
27
|
+
export declare function DsFreshness({ stale, source, fetchedAt, formatter, }: DsFreshnessProps): import("react/jsx-runtime").JSX.Element | null;
|
|
28
|
+
export interface DsPriceCellProps extends Omit<DsFreshnessProps, "formatter"> {
|
|
29
|
+
value?: number | null;
|
|
30
|
+
formatter?: (value: number) => string;
|
|
31
|
+
fromPrevious?: boolean;
|
|
32
|
+
showFreshness?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export declare function DsPriceCell({ value, formatter, stale, showFreshness, source, fetchedAt, fromPrevious, }: DsPriceCellProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
export interface DsSignedValueProps {
|
|
36
|
+
value?: number | string | null;
|
|
37
|
+
format?: "number" | "percent";
|
|
38
|
+
isRaw?: boolean;
|
|
39
|
+
decimals?: number;
|
|
40
|
+
prefix?: string;
|
|
41
|
+
suffix?: string;
|
|
42
|
+
showSign?: boolean;
|
|
43
|
+
tone?: "plain" | "pill";
|
|
44
|
+
loading?: boolean;
|
|
45
|
+
stale?: boolean;
|
|
46
|
+
showFreshness?: boolean;
|
|
47
|
+
formatter?: (value: number) => string;
|
|
48
|
+
}
|
|
49
|
+
export declare function DsSignedValue({ value, format: kind, isRaw, decimals, prefix, suffix, showSign, tone, loading, stale, showFreshness, formatter, }: DsSignedValueProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ModalProps } from "react-native";
|
|
3
|
+
export interface FeedbackOverlayHost {
|
|
4
|
+
top: string | undefined;
|
|
5
|
+
register: (id: string) => () => void;
|
|
6
|
+
render: () => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const FeedbackOverlayContext: import("react").Context<FeedbackOverlayHost | null>;
|
|
9
|
+
export declare function ScopedNativeModal({ children, visible, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type ModalProps } from "react-native";
|
|
3
|
+
export interface FeedbackOverlayHost {
|
|
4
|
+
top: string | undefined;
|
|
5
|
+
register: (id: string) => () => void;
|
|
6
|
+
render: () => ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export declare const FeedbackOverlayContext: import("react").Context<FeedbackOverlayHost | null>;
|
|
9
|
+
export declare function ScopedNativeModal({ children, visible, ...props }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type PressableProps } from "react-native";
|
|
3
|
+
export interface DsPopoverProps {
|
|
4
|
+
noPadding?: boolean;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (v: boolean) => void;
|
|
7
|
+
manualTrigger?: boolean;
|
|
8
|
+
matchTriggerWidth?: boolean;
|
|
9
|
+
maxHeight?: number;
|
|
10
|
+
flip?: boolean;
|
|
11
|
+
focusOnOpen?: boolean;
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
14
|
+
trigger: ReactNode | ((open: boolean) => ReactNode);
|
|
15
|
+
children: ReactNode | ((close: () => void) => ReactNode);
|
|
16
|
+
}
|
|
17
|
+
export declare function DsPopover({ noPadding, open: controlled, onOpenChange, manualTrigger, matchTriggerWidth, maxHeight, flip, focusOnOpen, ariaLabel, placement, trigger, children, }: DsPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export interface DsTooltipProps extends Pick<PressableProps, "onPress" | "disabled"> {
|
|
19
|
+
content?: string;
|
|
20
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
21
|
+
delay?: number;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare function DsTooltip({ content: message, placement, delay, children, onPress, disabled, }: DsTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type PressableProps } from "react-native";
|
|
3
|
+
export interface DsPopoverProps {
|
|
4
|
+
noPadding?: boolean;
|
|
5
|
+
open?: boolean;
|
|
6
|
+
onOpenChange?: (v: boolean) => void;
|
|
7
|
+
manualTrigger?: boolean;
|
|
8
|
+
matchTriggerWidth?: boolean;
|
|
9
|
+
maxHeight?: number;
|
|
10
|
+
flip?: boolean;
|
|
11
|
+
focusOnOpen?: boolean;
|
|
12
|
+
ariaLabel?: string;
|
|
13
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
14
|
+
trigger: ReactNode | ((open: boolean) => ReactNode);
|
|
15
|
+
children: ReactNode | ((close: () => void) => ReactNode);
|
|
16
|
+
}
|
|
17
|
+
export declare function DsPopover({ noPadding, open: controlled, onOpenChange, manualTrigger, matchTriggerWidth, maxHeight, flip, focusOnOpen, ariaLabel, placement, trigger, children, }: DsPopoverProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export interface DsTooltipProps extends Pick<PressableProps, "onPress" | "disabled"> {
|
|
19
|
+
content?: string;
|
|
20
|
+
placement?: "top" | "bottom" | "left" | "right";
|
|
21
|
+
delay?: number;
|
|
22
|
+
children: ReactNode;
|
|
23
|
+
}
|
|
24
|
+
export declare function DsTooltip({ content: message, placement, delay, children, onPress, disabled, }: DsTooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { KjunIconRegistry } from "@kjun-ui/icons";
|
|
2
|
+
import { type KjunColors, type ResolvedKjunColors, type KjunDomainColors } from "@kjun-ui/tokens";
|
|
3
|
+
import { type ReactNode } from "react";
|
|
4
|
+
import { type ColorValue, type StyleProp, type ViewStyle } from "react-native";
|
|
5
|
+
interface KjunStyles {
|
|
6
|
+
colors: ResolvedKjunColors<ColorValue>;
|
|
7
|
+
fontFamily?: string;
|
|
8
|
+
numericFontFamily?: string;
|
|
9
|
+
domainColors?: KjunDomainColors<ColorValue>;
|
|
10
|
+
}
|
|
11
|
+
export declare function useKjunStyles(): KjunStyles;
|
|
12
|
+
export interface KjunProviderProps extends Omit<KjunStyles, "colors"> {
|
|
13
|
+
icons?: KjunIconRegistry;
|
|
14
|
+
colors: KjunColors<ColorValue>;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
}
|
|
18
|
+
export declare function KjunProvider({ icons, colors, fontFamily, numericFontFamily, domainColors, children, style, }: KjunProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function useKjunDomainColors(): Readonly<Record<"priceUp" | "priceUpLight" | "priceUpBg" | "priceUpBgStrong" | "priceDown" | "priceDownLight" | "priceDownBg" | "priceDownBgStrong" | "priceNeutral" | "priceNeutralBg" | "favorite" | "favoriteHover" | "interest", ColorValue>>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { KjunIconRegistry } from "@kjun-ui/icons";
|
|
2
|
+
import { type KjunColors, type ResolvedKjunColors, type KjunDomainColors } from "@kjun-ui/tokens";
|
|
3
|
+
import { type ReactNode } from "react";
|
|
4
|
+
import { type ColorValue, type StyleProp, type ViewStyle } from "react-native";
|
|
5
|
+
interface KjunStyles {
|
|
6
|
+
colors: ResolvedKjunColors<ColorValue>;
|
|
7
|
+
fontFamily?: string;
|
|
8
|
+
numericFontFamily?: string;
|
|
9
|
+
domainColors?: KjunDomainColors<ColorValue>;
|
|
10
|
+
}
|
|
11
|
+
export declare function useKjunStyles(): KjunStyles;
|
|
12
|
+
export interface KjunProviderProps extends Omit<KjunStyles, "colors"> {
|
|
13
|
+
icons?: KjunIconRegistry;
|
|
14
|
+
colors: KjunColors<ColorValue>;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
style?: StyleProp<ViewStyle>;
|
|
17
|
+
}
|
|
18
|
+
export declare function KjunProvider({ icons, colors, fontFamily, numericFontFamily, domainColors, children, style, }: KjunProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare function useKjunDomainColors(): Readonly<Record<"priceUp" | "priceUpLight" | "priceUpBg" | "priceUpBgStrong" | "priceDown" | "priceDownLight" | "priceDownBg" | "priceDownBgStrong" | "priceNeutral" | "priceNeutralBg" | "favorite" | "favoriteHover" | "interest", ColorValue>>;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
export interface DsQuantityStepperProps {
|
|
3
|
+
value: number;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
precision?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
size?: InputSize;
|
|
11
|
+
block?: boolean;
|
|
12
|
+
id?: string;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
onValueChange?: (value: number) => void;
|
|
15
|
+
onChangeCommit?: (value: number) => void;
|
|
16
|
+
onInvalidInput?: (draft: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function DsQuantityStepper({ value, min, max, step, precision, disabled, error, size, block, id, ariaLabel, onValueChange, onChangeCommit, onInvalidInput }: DsQuantityStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
export interface DsQuantityStepperProps {
|
|
3
|
+
value: number;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
precision?: number;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
error?: boolean;
|
|
10
|
+
size?: InputSize;
|
|
11
|
+
block?: boolean;
|
|
12
|
+
id?: string;
|
|
13
|
+
ariaLabel?: string;
|
|
14
|
+
onValueChange?: (value: number) => void;
|
|
15
|
+
onChangeCommit?: (value: number) => void;
|
|
16
|
+
onInvalidInput?: (draft: string) => void;
|
|
17
|
+
}
|
|
18
|
+
export declare function DsQuantityStepper({ value, min, max, step, precision, disabled, error, size, block, id, ariaLabel, onValueChange, onChangeCommit, onInvalidInput }: DsQuantityStepperProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface DsSliderProps {
|
|
2
|
+
value: number;
|
|
3
|
+
min?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
step?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
onValueChange?: (value: number) => void;
|
|
10
|
+
onChangeCommit?: (value: number) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface DsRangeSliderProps extends Omit<DsSliderProps, "value" | "onValueChange" | "onChangeCommit"> {
|
|
13
|
+
value: [
|
|
14
|
+
number,
|
|
15
|
+
number
|
|
16
|
+
];
|
|
17
|
+
thumbLabels?: [
|
|
18
|
+
string,
|
|
19
|
+
string
|
|
20
|
+
];
|
|
21
|
+
onValueChange?: (value: [
|
|
22
|
+
number,
|
|
23
|
+
number
|
|
24
|
+
]) => void;
|
|
25
|
+
onChangeCommit?: (value: [
|
|
26
|
+
number,
|
|
27
|
+
number
|
|
28
|
+
]) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare function DsSlider(props: DsSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function DsRangeSlider(props: DsRangeSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export interface DsSliderProps {
|
|
2
|
+
value: number;
|
|
3
|
+
min?: number;
|
|
4
|
+
max?: number;
|
|
5
|
+
step?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
label?: string;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
onValueChange?: (value: number) => void;
|
|
10
|
+
onChangeCommit?: (value: number) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface DsRangeSliderProps extends Omit<DsSliderProps, "value" | "onValueChange" | "onChangeCommit"> {
|
|
13
|
+
value: [
|
|
14
|
+
number,
|
|
15
|
+
number
|
|
16
|
+
];
|
|
17
|
+
thumbLabels?: [
|
|
18
|
+
string,
|
|
19
|
+
string
|
|
20
|
+
];
|
|
21
|
+
onValueChange?: (value: [
|
|
22
|
+
number,
|
|
23
|
+
number
|
|
24
|
+
]) => void;
|
|
25
|
+
onChangeCommit?: (value: [
|
|
26
|
+
number,
|
|
27
|
+
number
|
|
28
|
+
]) => void;
|
|
29
|
+
}
|
|
30
|
+
export declare function DsSlider(props: DsSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export declare function DsRangeSlider(props: DsRangeSliderProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type SearchInputModelProps } from "../../../shared/package-runtime/search-input.cjs";
|
|
4
|
+
import { SelectOption } from "./select-options.cjs";
|
|
5
|
+
export interface DsSearchInputProps<T extends SelectOption = SelectOption> extends SearchInputModelProps<T> {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
clearable?: boolean;
|
|
10
|
+
size?: InputSize;
|
|
11
|
+
itemKey?: string;
|
|
12
|
+
labelField?: string;
|
|
13
|
+
emptyText?: string;
|
|
14
|
+
/** Shown when loadOptions rejects, instead of the empty text. */
|
|
15
|
+
errorText?: string;
|
|
16
|
+
renderOption?: (option: T) => ReactNode;
|
|
17
|
+
onSelect?: (option: T) => void;
|
|
18
|
+
onEnter?: () => void;
|
|
19
|
+
onClear?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare function DsSearchInput<T extends SelectOption = SelectOption>({ value, placeholder, ariaLabel, disabled, error, clearable, debounce, size, loadOptions, itemKey, labelField, minChars, emptyText, errorText, renderOption, onValueChange, onSelect, onSearchError, onEnter, onClear, }: DsSearchInputProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { type SearchInputModelProps } from "../../../shared/package-runtime/search-input.js";
|
|
4
|
+
import { SelectOption } from "./select-options.js";
|
|
5
|
+
export interface DsSearchInputProps<T extends SelectOption = SelectOption> extends SearchInputModelProps<T> {
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
ariaLabel?: string;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
clearable?: boolean;
|
|
10
|
+
size?: InputSize;
|
|
11
|
+
itemKey?: string;
|
|
12
|
+
labelField?: string;
|
|
13
|
+
emptyText?: string;
|
|
14
|
+
/** Shown when loadOptions rejects, instead of the empty text. */
|
|
15
|
+
errorText?: string;
|
|
16
|
+
renderOption?: (option: T) => ReactNode;
|
|
17
|
+
onSelect?: (option: T) => void;
|
|
18
|
+
onEnter?: () => void;
|
|
19
|
+
onClear?: () => void;
|
|
20
|
+
}
|
|
21
|
+
export declare function DsSearchInput<T extends SelectOption = SelectOption>({ value, placeholder, ariaLabel, disabled, error, clearable, debounce, size, loadOptions, itemKey, labelField, minChars, emptyText, errorText, renderOption, onValueChange, onSelect, onSearchError, onEnter, onClear, }: DsSearchInputProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { OptionValue, SelectOption } from "./select-options.cjs";
|
|
4
|
+
export interface DsSelectProps<T extends SelectOption = SelectOption> {
|
|
5
|
+
value: OptionValue | OptionValue[] | null;
|
|
6
|
+
options?: T[];
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
labelKey?: string;
|
|
10
|
+
valueKey?: string;
|
|
11
|
+
size?: InputSize;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
searchable?: boolean;
|
|
14
|
+
open?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
searchPlaceholder?: string;
|
|
17
|
+
optionPageSize?: number;
|
|
18
|
+
clearable?: boolean;
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
error?: boolean;
|
|
21
|
+
menuHeader?: ReactNode;
|
|
22
|
+
renderOption?: (option: T, selected: boolean) => ReactNode;
|
|
23
|
+
renderSelected?: (option: T | undefined) => ReactNode;
|
|
24
|
+
onValueChange?: (v: OptionValue | OptionValue[] | null) => void;
|
|
25
|
+
onChange?: (v: OptionValue | OptionValue[] | null) => void;
|
|
26
|
+
onOpenChange?: (v: boolean) => void;
|
|
27
|
+
onSearch?: (v: string) => void;
|
|
28
|
+
onClear?: () => void;
|
|
29
|
+
}
|
|
30
|
+
export declare function DsSelect<T extends SelectOption = SelectOption>({ value, options, placeholder, ariaLabel, labelKey, valueKey, size, disabled, searchable, open: controlled, loading, searchPlaceholder, optionPageSize, clearable, multiple, error, menuHeader, renderOption, renderSelected, onValueChange, onChange, onOpenChange, onSearch, onClear, }: DsSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { type ReactNode } from "react";
|
|
3
|
+
import { OptionValue, SelectOption } from "./select-options.js";
|
|
4
|
+
export interface DsSelectProps<T extends SelectOption = SelectOption> {
|
|
5
|
+
value: OptionValue | OptionValue[] | null;
|
|
6
|
+
options?: T[];
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
ariaLabel?: string;
|
|
9
|
+
labelKey?: string;
|
|
10
|
+
valueKey?: string;
|
|
11
|
+
size?: InputSize;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
searchable?: boolean;
|
|
14
|
+
open?: boolean;
|
|
15
|
+
loading?: boolean;
|
|
16
|
+
searchPlaceholder?: string;
|
|
17
|
+
optionPageSize?: number;
|
|
18
|
+
clearable?: boolean;
|
|
19
|
+
multiple?: boolean;
|
|
20
|
+
error?: boolean;
|
|
21
|
+
menuHeader?: ReactNode;
|
|
22
|
+
renderOption?: (option: T, selected: boolean) => ReactNode;
|
|
23
|
+
renderSelected?: (option: T | undefined) => ReactNode;
|
|
24
|
+
onValueChange?: (v: OptionValue | OptionValue[] | null) => void;
|
|
25
|
+
onChange?: (v: OptionValue | OptionValue[] | null) => void;
|
|
26
|
+
onOpenChange?: (v: boolean) => void;
|
|
27
|
+
onSearch?: (v: string) => void;
|
|
28
|
+
onClear?: () => void;
|
|
29
|
+
}
|
|
30
|
+
export declare function DsSelect<T extends SelectOption = SelectOption>({ value, options, placeholder, ariaLabel, labelKey, valueKey, size, disabled, searchable, open: controlled, loading, searchPlaceholder, optionPageSize, clearable, multiple, error, menuHeader, renderOption, renderSelected, onValueChange, onChange, onOpenChange, onSearch, onClear, }: DsSelectProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type PressableProps } from "react-native";
|
|
3
|
+
export { optionValue, optionKey, optionLabel, optionDisabled } from "../../../shared/package-runtime/options.cjs";
|
|
4
|
+
export type { OptionValue, SelectOption } from "../../../shared/package-runtime/options.cjs";
|
|
5
|
+
export declare function OptionRow({ selected, disabled, multiple, label, children, onPress, onLayout, }: {
|
|
6
|
+
selected: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
onPress: () => void;
|
|
12
|
+
onLayout?: PressableProps["onLayout"];
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type ReactNode } from "react";
|
|
2
|
+
import { type PressableProps } from "react-native";
|
|
3
|
+
export { optionValue, optionKey, optionLabel, optionDisabled } from "../../../shared/package-runtime/options.js";
|
|
4
|
+
export type { OptionValue, SelectOption } from "../../../shared/package-runtime/options.js";
|
|
5
|
+
export declare function OptionRow({ selected, disabled, multiple, label, children, onPress, onLayout, }: {
|
|
6
|
+
selected: boolean;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
multiple?: boolean;
|
|
9
|
+
label: string;
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
onPress: () => void;
|
|
12
|
+
onLayout?: PressableProps["onLayout"];
|
|
13
|
+
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { DsCombobox } from "./combobox.cjs";
|
|
2
|
+
export type { DsComboboxProps } from "./combobox.cjs";
|
|
3
|
+
export { DsDatePicker } from "./date-picker.cjs";
|
|
4
|
+
export type { DsDatePickerProps } from "./date-picker.cjs";
|
|
5
|
+
export { DsSearchInput } from "./search-input.cjs";
|
|
6
|
+
export type { DsSearchInputProps } from "./search-input.cjs";
|
|
7
|
+
export { DsSelect } from "./select-control.cjs";
|
|
8
|
+
export type { DsSelectProps } from "./select-control.cjs";
|
|
9
|
+
export { optionLabel, optionValue } from "./select-options.cjs";
|
|
10
|
+
export type { OptionValue, SelectOption } from "./select-options.cjs";
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export { DsCombobox } from "./combobox.js";
|
|
2
|
+
export type { DsComboboxProps } from "./combobox.js";
|
|
3
|
+
export { DsDatePicker } from "./date-picker.js";
|
|
4
|
+
export type { DsDatePickerProps } from "./date-picker.js";
|
|
5
|
+
export { DsSearchInput } from "./search-input.js";
|
|
6
|
+
export type { DsSearchInputProps } from "./search-input.js";
|
|
7
|
+
export { DsSelect } from "./select-control.js";
|
|
8
|
+
export type { DsSelectProps } from "./select-control.js";
|
|
9
|
+
export { optionLabel, optionValue } from "./select-options.js";
|
|
10
|
+
export type { OptionValue, SelectOption } from "./select-options.js";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ButtonSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { ChoiceOption, ChoiceValue } from "./choice-controls.cjs";
|
|
3
|
+
export interface DsButtonGroupProps {
|
|
4
|
+
value: ChoiceValue;
|
|
5
|
+
options: ChoiceOption[];
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
onValueChange?: (value: ChoiceValue) => void;
|
|
12
|
+
onChange?: (value: ChoiceValue) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function DsButtonGroup({ value, options, size, disabled, fullWidth, ariaLabel, onValueChange, onChange, }: DsButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface DsFilterGroupProps extends Omit<DsButtonGroupProps, "value" | "onValueChange" | "onChange" | "fullWidth" | "variant"> {
|
|
16
|
+
value: ChoiceValue | ChoiceValue[];
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
scroll?: boolean;
|
|
19
|
+
onValueChange?: (value: ChoiceValue | ChoiceValue[]) => void;
|
|
20
|
+
onChange?: (value: ChoiceValue | ChoiceValue[]) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function DsFilterGroup({ value, options, size, disabled, multiple, scroll, ariaLabel, onValueChange, onChange, }: DsFilterGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type ButtonSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { ChoiceOption, ChoiceValue } from "./choice-controls.js";
|
|
3
|
+
export interface DsButtonGroupProps {
|
|
4
|
+
value: ChoiceValue;
|
|
5
|
+
options: ChoiceOption[];
|
|
6
|
+
size?: ButtonSize;
|
|
7
|
+
variant?: "primary" | "secondary" | "ghost";
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
fullWidth?: boolean;
|
|
10
|
+
ariaLabel?: string;
|
|
11
|
+
onValueChange?: (value: ChoiceValue) => void;
|
|
12
|
+
onChange?: (value: ChoiceValue) => void;
|
|
13
|
+
}
|
|
14
|
+
export declare function DsButtonGroup({ value, options, size, disabled, fullWidth, ariaLabel, onValueChange, onChange, }: DsButtonGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export interface DsFilterGroupProps extends Omit<DsButtonGroupProps, "value" | "onValueChange" | "onChange" | "fullWidth" | "variant"> {
|
|
16
|
+
value: ChoiceValue | ChoiceValue[];
|
|
17
|
+
multiple?: boolean;
|
|
18
|
+
scroll?: boolean;
|
|
19
|
+
onValueChange?: (value: ChoiceValue | ChoiceValue[]) => void;
|
|
20
|
+
onChange?: (value: ChoiceValue | ChoiceValue[]) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare function DsFilterGroup({ value, options, size, disabled, multiple, scroll, ariaLabel, onValueChange, onChange, }: DsFilterGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DimensionValue } from "react-native";
|
|
2
|
+
export interface DsSkeletonProps {
|
|
3
|
+
type?: "text" | "avatar" | "card" | "table" | "chart" | "stat" | "block";
|
|
4
|
+
rows?: number;
|
|
5
|
+
columns?: number;
|
|
6
|
+
height?: DimensionValue;
|
|
7
|
+
width?: DimensionValue;
|
|
8
|
+
animated?: boolean;
|
|
9
|
+
rounded?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function DsSkeleton({ type, rows, columns, height, width, animated, rounded, }: DsSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type DimensionValue } from "react-native";
|
|
2
|
+
export interface DsSkeletonProps {
|
|
3
|
+
type?: "text" | "avatar" | "card" | "table" | "chart" | "stat" | "block";
|
|
4
|
+
rows?: number;
|
|
5
|
+
columns?: number;
|
|
6
|
+
height?: DimensionValue;
|
|
7
|
+
width?: DimensionValue;
|
|
8
|
+
animated?: boolean;
|
|
9
|
+
rounded?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function DsSkeleton({ type, rows, columns, height, width, animated, rounded, }: DsSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type InputSize } from "@kjun-ui/tokens";
|
|
2
|
+
import { type DimensionValue } from "react-native";
|
|
3
|
+
export interface DsListSkeletonProps {
|
|
4
|
+
rows?: number;
|
|
5
|
+
variant?: "market" | "compact" | "notification";
|
|
6
|
+
avatar?: boolean;
|
|
7
|
+
avatarSize?: DimensionValue;
|
|
8
|
+
quote?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function DsListSkeleton({ rows, variant, avatar, avatarSize, quote, }: DsListSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export interface DsFormSkeletonProps {
|
|
12
|
+
fields?: (string | {
|
|
13
|
+
label?: string;
|
|
14
|
+
height?: DimensionValue;
|
|
15
|
+
})[];
|
|
16
|
+
columns?: number;
|
|
17
|
+
multiline?: boolean;
|
|
18
|
+
size?: InputSize;
|
|
19
|
+
}
|
|
20
|
+
export declare function DsFormSkeleton({ fields, columns, multiline, size, }: DsFormSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export interface DsChartSkeletonProps {
|
|
22
|
+
loadingText?: string;
|
|
23
|
+
kind?: "grid" | "line" | "bar" | "donut" | "candle" | "matrix";
|
|
24
|
+
height?: DimensionValue;
|
|
25
|
+
}
|
|
26
|
+
export declare function DsChartSkeleton({ loadingText, kind, height, }: DsChartSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
export { DsMarketTableSkeleton } from "./market-skeleton.cjs";
|
|
28
|
+
export type { DsMarketTableSkeletonProps } from "./market-skeleton.cjs";
|