@orderly.network/ui 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +19 -20
- package/dist/index.d.ts +19 -20
- package/dist/index.js +211 -211
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +19 -19
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -5143,7 +5143,9 @@ type ConfirmProps = {
|
|
|
5143
5143
|
content?: React.ReactNode;
|
|
5144
5144
|
footer?: React.ReactNode;
|
|
5145
5145
|
onOk?: () => Promise<any>;
|
|
5146
|
+
okLabel?: string;
|
|
5146
5147
|
onCancel?: () => Promise<any>;
|
|
5148
|
+
cancelLabel?: string;
|
|
5147
5149
|
contentClassName?: string;
|
|
5148
5150
|
bodyClassName?: string;
|
|
5149
5151
|
} & Pick<SimpleDialogProps, "title" | "classNames" | "size">;
|
|
@@ -5151,7 +5153,9 @@ declare const ConfirmDialog: React$1.FC<{
|
|
|
5151
5153
|
content?: React.ReactNode;
|
|
5152
5154
|
footer?: React.ReactNode;
|
|
5153
5155
|
onOk?: (() => Promise<any>) | undefined;
|
|
5156
|
+
okLabel?: string | undefined;
|
|
5154
5157
|
onCancel?: (() => Promise<any>) | undefined;
|
|
5158
|
+
cancelLabel?: string | undefined;
|
|
5155
5159
|
contentClassName?: string | undefined;
|
|
5156
5160
|
bodyClassName?: string | undefined;
|
|
5157
5161
|
} & Pick<SimpleDialogProps, "title" | "size" | "classNames"> & ModalHocProps>;
|
|
@@ -5189,9 +5193,9 @@ declare const modal: {
|
|
|
5189
5193
|
unregister: (id: string) => void;
|
|
5190
5194
|
};
|
|
5191
5195
|
|
|
5192
|
-
declare function registerSimpleDialog<Props = {}>(id: string, comp: ElementType<Props>, props?: Partial<
|
|
5196
|
+
declare function registerSimpleDialog<Props = {}>(id: string, comp: ElementType<Props>, props?: Partial<SimpleDialogProps & Props>): void;
|
|
5193
5197
|
|
|
5194
|
-
declare function registerSimpleSheet<Props = {}>(id: string, comp: ElementType<Props>, props?:
|
|
5198
|
+
declare function registerSimpleSheet<Props = {}>(id: string, comp: ElementType<Props>, props?: Partial<SimpleSheetProps & Props>): void;
|
|
5195
5199
|
|
|
5196
5200
|
type SheetItemType = "division" | "data" | "cancel";
|
|
5197
5201
|
interface BaseActionSheetItem {
|
|
@@ -6014,8 +6018,10 @@ type TabsProps<T = string> = {
|
|
|
6014
6018
|
classNames?: {
|
|
6015
6019
|
tabsList?: string;
|
|
6016
6020
|
tabsContent?: string;
|
|
6021
|
+
scrollIndicator?: string;
|
|
6017
6022
|
};
|
|
6018
6023
|
contentVisible?: boolean;
|
|
6024
|
+
showScrollIndicator?: boolean;
|
|
6019
6025
|
} & TabsPrimitive.TabsProps & VariantProps<typeof tabsVariants>;
|
|
6020
6026
|
declare const Tabs: FC<TabsProps>;
|
|
6021
6027
|
type TabPanelProps = {
|
|
@@ -6051,6 +6057,17 @@ type CombineSelectProps = {
|
|
|
6051
6057
|
} & SelectWithOptionsProps;
|
|
6052
6058
|
declare const CombineSelect: (props: CombineSelectProps) => react_jsx_runtime.JSX.Element;
|
|
6053
6059
|
|
|
6060
|
+
type TokenItem = {
|
|
6061
|
+
name: string;
|
|
6062
|
+
[x: string]: any;
|
|
6063
|
+
};
|
|
6064
|
+
type TokenSelect = {
|
|
6065
|
+
tokens: TokenItem[];
|
|
6066
|
+
showIcon?: boolean;
|
|
6067
|
+
optionRenderer?: (option: SelectOption) => ReactElement;
|
|
6068
|
+
} & SelectProps<string>;
|
|
6069
|
+
declare const TokenSelect: (props: TokenSelect) => react_jsx_runtime.JSX.Element;
|
|
6070
|
+
|
|
6054
6071
|
declare const chainSelectVariants: tailwind_variants.TVReturnType<{
|
|
6055
6072
|
size: {
|
|
6056
6073
|
xs: {
|
|
@@ -6062,7 +6079,6 @@ declare const chainSelectVariants: tailwind_variants.TVReturnType<{
|
|
|
6062
6079
|
md: {
|
|
6063
6080
|
icon: string;
|
|
6064
6081
|
item: string;
|
|
6065
|
-
itemSize: string;
|
|
6066
6082
|
};
|
|
6067
6083
|
lg: {
|
|
6068
6084
|
icon: string;
|
|
@@ -6074,7 +6090,6 @@ declare const chainSelectVariants: tailwind_variants.TVReturnType<{
|
|
|
6074
6090
|
}, {
|
|
6075
6091
|
icon: string;
|
|
6076
6092
|
item: string[];
|
|
6077
|
-
itemSize: string;
|
|
6078
6093
|
tag: string;
|
|
6079
6094
|
}, undefined, {
|
|
6080
6095
|
responsiveVariants?: boolean | tailwind_variants_dist_generated.TVGeneratedScreens[] | {
|
|
@@ -6368,25 +6383,9 @@ type ChainSelectProps = {
|
|
|
6368
6383
|
};
|
|
6369
6384
|
contentProps?: PropsWithoutRef<typeof SelectPrimitive.Content>;
|
|
6370
6385
|
} & VariantProps<typeof chainSelectVariants> & PropsWithoutRef<typeof SelectPrimitive.Root>;
|
|
6371
|
-
declare const ChainSelect: {
|
|
6372
|
-
(props: ChainSelectProps): react_jsx_runtime.JSX.Element;
|
|
6373
|
-
displayName: string;
|
|
6374
|
-
};
|
|
6375
|
-
|
|
6376
|
-
type TokenItem = {
|
|
6377
|
-
name: string;
|
|
6378
|
-
[x: string]: any;
|
|
6379
|
-
};
|
|
6380
|
-
type TokenSelect = {
|
|
6381
|
-
tokens: TokenItem[];
|
|
6382
|
-
showIcon?: boolean;
|
|
6383
|
-
optionRenderer?: (option: SelectOption) => ReactElement;
|
|
6384
|
-
} & SelectProps<string>;
|
|
6385
|
-
declare const TokenSelect: (props: TokenSelect) => react_jsx_runtime.JSX.Element;
|
|
6386
6386
|
|
|
6387
6387
|
type SelectType = typeof Select$1 & {
|
|
6388
6388
|
options: typeof SelectWithOptions;
|
|
6389
|
-
chains: typeof ChainSelect;
|
|
6390
6389
|
tokens: typeof TokenSelect;
|
|
6391
6390
|
combine: typeof CombineSelect;
|
|
6392
6391
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -5143,7 +5143,9 @@ type ConfirmProps = {
|
|
|
5143
5143
|
content?: React.ReactNode;
|
|
5144
5144
|
footer?: React.ReactNode;
|
|
5145
5145
|
onOk?: () => Promise<any>;
|
|
5146
|
+
okLabel?: string;
|
|
5146
5147
|
onCancel?: () => Promise<any>;
|
|
5148
|
+
cancelLabel?: string;
|
|
5147
5149
|
contentClassName?: string;
|
|
5148
5150
|
bodyClassName?: string;
|
|
5149
5151
|
} & Pick<SimpleDialogProps, "title" | "classNames" | "size">;
|
|
@@ -5151,7 +5153,9 @@ declare const ConfirmDialog: React$1.FC<{
|
|
|
5151
5153
|
content?: React.ReactNode;
|
|
5152
5154
|
footer?: React.ReactNode;
|
|
5153
5155
|
onOk?: (() => Promise<any>) | undefined;
|
|
5156
|
+
okLabel?: string | undefined;
|
|
5154
5157
|
onCancel?: (() => Promise<any>) | undefined;
|
|
5158
|
+
cancelLabel?: string | undefined;
|
|
5155
5159
|
contentClassName?: string | undefined;
|
|
5156
5160
|
bodyClassName?: string | undefined;
|
|
5157
5161
|
} & Pick<SimpleDialogProps, "title" | "size" | "classNames"> & ModalHocProps>;
|
|
@@ -5189,9 +5193,9 @@ declare const modal: {
|
|
|
5189
5193
|
unregister: (id: string) => void;
|
|
5190
5194
|
};
|
|
5191
5195
|
|
|
5192
|
-
declare function registerSimpleDialog<Props = {}>(id: string, comp: ElementType<Props>, props?: Partial<
|
|
5196
|
+
declare function registerSimpleDialog<Props = {}>(id: string, comp: ElementType<Props>, props?: Partial<SimpleDialogProps & Props>): void;
|
|
5193
5197
|
|
|
5194
|
-
declare function registerSimpleSheet<Props = {}>(id: string, comp: ElementType<Props>, props?:
|
|
5198
|
+
declare function registerSimpleSheet<Props = {}>(id: string, comp: ElementType<Props>, props?: Partial<SimpleSheetProps & Props>): void;
|
|
5195
5199
|
|
|
5196
5200
|
type SheetItemType = "division" | "data" | "cancel";
|
|
5197
5201
|
interface BaseActionSheetItem {
|
|
@@ -6014,8 +6018,10 @@ type TabsProps<T = string> = {
|
|
|
6014
6018
|
classNames?: {
|
|
6015
6019
|
tabsList?: string;
|
|
6016
6020
|
tabsContent?: string;
|
|
6021
|
+
scrollIndicator?: string;
|
|
6017
6022
|
};
|
|
6018
6023
|
contentVisible?: boolean;
|
|
6024
|
+
showScrollIndicator?: boolean;
|
|
6019
6025
|
} & TabsPrimitive.TabsProps & VariantProps<typeof tabsVariants>;
|
|
6020
6026
|
declare const Tabs: FC<TabsProps>;
|
|
6021
6027
|
type TabPanelProps = {
|
|
@@ -6051,6 +6057,17 @@ type CombineSelectProps = {
|
|
|
6051
6057
|
} & SelectWithOptionsProps;
|
|
6052
6058
|
declare const CombineSelect: (props: CombineSelectProps) => react_jsx_runtime.JSX.Element;
|
|
6053
6059
|
|
|
6060
|
+
type TokenItem = {
|
|
6061
|
+
name: string;
|
|
6062
|
+
[x: string]: any;
|
|
6063
|
+
};
|
|
6064
|
+
type TokenSelect = {
|
|
6065
|
+
tokens: TokenItem[];
|
|
6066
|
+
showIcon?: boolean;
|
|
6067
|
+
optionRenderer?: (option: SelectOption) => ReactElement;
|
|
6068
|
+
} & SelectProps<string>;
|
|
6069
|
+
declare const TokenSelect: (props: TokenSelect) => react_jsx_runtime.JSX.Element;
|
|
6070
|
+
|
|
6054
6071
|
declare const chainSelectVariants: tailwind_variants.TVReturnType<{
|
|
6055
6072
|
size: {
|
|
6056
6073
|
xs: {
|
|
@@ -6062,7 +6079,6 @@ declare const chainSelectVariants: tailwind_variants.TVReturnType<{
|
|
|
6062
6079
|
md: {
|
|
6063
6080
|
icon: string;
|
|
6064
6081
|
item: string;
|
|
6065
|
-
itemSize: string;
|
|
6066
6082
|
};
|
|
6067
6083
|
lg: {
|
|
6068
6084
|
icon: string;
|
|
@@ -6074,7 +6090,6 @@ declare const chainSelectVariants: tailwind_variants.TVReturnType<{
|
|
|
6074
6090
|
}, {
|
|
6075
6091
|
icon: string;
|
|
6076
6092
|
item: string[];
|
|
6077
|
-
itemSize: string;
|
|
6078
6093
|
tag: string;
|
|
6079
6094
|
}, undefined, {
|
|
6080
6095
|
responsiveVariants?: boolean | tailwind_variants_dist_generated.TVGeneratedScreens[] | {
|
|
@@ -6368,25 +6383,9 @@ type ChainSelectProps = {
|
|
|
6368
6383
|
};
|
|
6369
6384
|
contentProps?: PropsWithoutRef<typeof SelectPrimitive.Content>;
|
|
6370
6385
|
} & VariantProps<typeof chainSelectVariants> & PropsWithoutRef<typeof SelectPrimitive.Root>;
|
|
6371
|
-
declare const ChainSelect: {
|
|
6372
|
-
(props: ChainSelectProps): react_jsx_runtime.JSX.Element;
|
|
6373
|
-
displayName: string;
|
|
6374
|
-
};
|
|
6375
|
-
|
|
6376
|
-
type TokenItem = {
|
|
6377
|
-
name: string;
|
|
6378
|
-
[x: string]: any;
|
|
6379
|
-
};
|
|
6380
|
-
type TokenSelect = {
|
|
6381
|
-
tokens: TokenItem[];
|
|
6382
|
-
showIcon?: boolean;
|
|
6383
|
-
optionRenderer?: (option: SelectOption) => ReactElement;
|
|
6384
|
-
} & SelectProps<string>;
|
|
6385
|
-
declare const TokenSelect: (props: TokenSelect) => react_jsx_runtime.JSX.Element;
|
|
6386
6386
|
|
|
6387
6387
|
type SelectType = typeof Select$1 & {
|
|
6388
6388
|
options: typeof SelectWithOptions;
|
|
6389
|
-
chains: typeof ChainSelect;
|
|
6390
6389
|
tokens: typeof TokenSelect;
|
|
6391
6390
|
combine: typeof CombineSelect;
|
|
6392
6391
|
};
|