@blofin/blofin-ui 0.7.57 → 0.7.58
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/Badge.es.js +23 -20
- package/dist/Button.es.js +126 -123
- package/dist/Calendar.d.ts +1 -0
- package/dist/Calendar.es.js +210 -0
- package/dist/Checkbox.d.ts +1 -0
- package/dist/Checkbox.es.js +138 -0
- package/dist/CssDropdown.d.ts +1 -0
- package/dist/CssDropdown.es.js +38 -0
- package/dist/DatePickerRange.d.ts +1 -0
- package/dist/DatePickerRange.es.js +410 -0
- package/dist/DateTimePicker.d.ts +1 -0
- package/dist/DateTimePicker.es.js +519 -0
- package/dist/Dialog.es.js +180 -9
- package/dist/Divider.es.js +11 -8
- package/dist/Drawer.es.js +43 -49
- package/dist/Dropdown.d.ts +1 -0
- package/dist/Dropdown.es.js +134 -0
- package/dist/Empty.d.ts +1 -0
- package/dist/Empty.es.js +11 -0
- package/dist/LabelTextField.d.ts +1 -0
- package/dist/LabelTextField.es.js +100 -0
- package/dist/MonthPicker.d.ts +1 -0
- package/dist/MonthPicker.es.js +16 -0
- package/dist/MultiSelect.d.ts +1 -0
- package/dist/MultiSelect.es.js +425 -0
- package/dist/Notification.d.ts +1 -0
- package/dist/Notification.es.js +12 -0
- package/dist/Pagination.d.ts +1 -0
- package/dist/Pagination.es.js +219 -0
- package/dist/Picker.d.ts +1 -0
- package/dist/Picker.es.js +224 -0
- package/dist/Popover.d.ts +1 -0
- package/dist/Popover.es.js +107 -0
- package/dist/Popup.d.ts +1 -0
- package/dist/Popup.es.js +62 -0
- package/dist/ProTable-7a07d8b6.js +565 -0
- package/dist/ProTable.es.js +9 -5
- package/dist/RadioButton.d.ts +1 -0
- package/dist/RadioButton.es.js +152 -0
- package/dist/Select.d.ts +1 -0
- package/dist/Select.es.js +316 -0
- package/dist/Slider.es.js +141 -139
- package/dist/Sort.d.ts +1 -0
- package/dist/Sort.es.js +146 -0
- package/dist/Sortable.d.ts +1 -0
- package/dist/Sortable.es.js +39 -0
- package/dist/Switch.d.ts +1 -0
- package/dist/Switch.es.js +64 -0
- package/dist/Tab.d.ts +1 -0
- package/dist/Tab.es.js +101 -0
- package/dist/Table.d.ts +1 -0
- package/dist/Table.es.js +359 -0
- package/dist/TextField.d.ts +1 -0
- package/dist/TextField.es.js +64 -0
- package/dist/TextSelect.d.ts +1 -0
- package/dist/TextSelect.es.js +17 -0
- package/dist/Textarea.d.ts +1 -0
- package/dist/Textarea.es.js +106 -0
- package/dist/Toast.d.ts +1 -0
- package/dist/Toast.es.js +12 -0
- package/dist/Tooltip.d.ts +1 -0
- package/dist/Tooltip.es.js +144 -0
- package/dist/Typography.d.ts +1 -0
- package/dist/Typography.es.js +74 -0
- package/dist/_commonjsHelpers-1d52fb73.js +9 -0
- package/dist/arrow-down-011b02c7.js +6 -0
- package/dist/arrow-down-l-line-97e4fe24.js +6 -0
- package/dist/arrow-fill-70becd96.js +6 -0
- package/dist/arrow-right-l-line-87881b4d.js +7 -0
- package/dist/blofin.css +1 -1
- package/dist/{close-c67ec245.js → close-0df24351.js} +1 -0
- package/dist/close-bg-6d2211ef.js +6 -0
- package/dist/clsx.m-e965ef18.js +22 -0
- package/dist/components/Alert/Alert.d.ts +3 -3
- package/dist/components/Alert/styles.d.ts +2 -2
- package/dist/components/Badge/Badge.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/Button/Loading/index.d.ts +2 -2
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Button/styles.d.ts +1 -1
- package/dist/components/Checkbox/styles.d.ts +1 -1
- package/dist/components/CssDropdown/CssDropdown.d.ts +3 -3
- package/dist/components/CssDropdown/index.d.ts +2 -0
- package/dist/components/DatePickerRange/index.d.ts +4 -0
- package/dist/components/DatePickerRange/styles.d.ts +0 -1
- package/dist/components/DateTimePicker/ScrollableList.d.ts +1 -1
- package/dist/components/DateTimePicker/index.d.ts +4 -0
- package/dist/components/Dialog/Dialog.d.ts +5 -2
- package/dist/components/Dialog/index.d.ts +4 -2
- package/dist/components/Dialog/styles.d.ts +2 -2
- package/dist/components/Drawer/Drawer.d.ts +1 -1
- package/dist/components/Dropdown/Dropdown.d.ts +2 -2
- package/dist/components/Dropdown/index.d.ts +2 -0
- package/dist/components/Empty/Empty.d.ts +5 -0
- package/dist/components/Empty/index.d.ts +2 -5
- package/dist/components/LabelTextField/LabelTextField.d.ts +6 -6
- package/dist/components/MonthPicker/MonthPicker.d.ts +17 -0
- package/dist/components/MonthPicker/index.d.ts +2 -17
- package/dist/components/MultiSelect/MultiSelect.d.ts +4 -4
- package/dist/components/MultiSelect/index.d.ts +2 -0
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/Notification/index.d.ts +2 -0
- package/dist/components/Pagination/PageOptions.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Pagination/index.d.ts +3 -0
- package/dist/components/Picker/Picker.d.ts +10 -0
- package/dist/components/Picker/hooks/usePickerMethod.d.ts +1 -1
- package/dist/components/Picker/index.d.ts +2 -10
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popover/index.d.ts +5 -0
- package/dist/components/Popup/Popup.d.ts +15 -0
- package/dist/components/Popup/index.d.ts +4 -15
- package/dist/components/RadioButton/RadioButton.d.ts +4 -4
- package/dist/components/RadioButton/styles.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +6 -9
- package/dist/components/Slider/Slider.d.ts +2 -2
- package/dist/components/Sort/SortButton.d.ts +5 -5
- package/dist/components/Sort/SortGroup.d.ts +4 -4
- package/dist/components/Sort/index.d.ts +5 -0
- package/dist/components/Sortable/SortItem.d.ts +4 -4
- package/dist/components/Sortable/Sortable.d.ts +11 -0
- package/dist/components/Sortable/index.d.ts +3 -11
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/index.d.ts +2 -0
- package/dist/components/Switch/styles.d.ts +3 -3
- package/dist/components/Tab/Tab.d.ts +2 -2
- package/dist/components/Tab/index.d.ts +4 -0
- package/dist/components/Tab/styles.d.ts +1 -1
- package/dist/components/Table/Pagination/index.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +2 -2
- package/dist/components/Table/Tbody/index.d.ts +3 -3
- package/dist/components/Table/Thead/index.d.ts +3 -3
- package/dist/components/Table/context.d.ts +3 -3
- package/dist/components/Table/hooks/useStickyOffset.d.ts +2 -2
- package/dist/components/Table/index.d.ts +3 -3
- package/dist/components/Table/interface.d.ts +4 -4
- package/dist/components/TextField/TextField.d.ts +4 -4
- package/dist/components/TextField/index.d.ts +2 -0
- package/dist/components/TextSelect/TextSelect.d.ts +8 -8
- package/dist/components/TextSelect/index.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +15 -0
- package/dist/components/Textarea/index.d.ts +2 -15
- package/dist/components/Toast/Toast.d.ts +2 -13
- package/dist/components/Toast/index.d.ts +2 -0
- package/dist/components/Toast/styles.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +4 -5
- package/dist/components/Tooltip/index.d.ts +2 -0
- package/dist/components/Typography/Typography.d.ts +2 -2
- package/dist/components/Typography/index.d.ts +4 -0
- package/dist/components/Typography/styles.d.ts +1 -1
- package/dist/enum-0398044b.js +17 -0
- package/dist/helper-221987f8.js +7 -0
- package/dist/hooks/useLatest.d.ts +1 -1
- package/dist/hooks/useNotification.d.ts +5 -7
- package/dist/hooks/useToast.d.ts +1 -1
- package/dist/{index-0f855a91.js → index-0230b5a9.js} +5 -4
- package/dist/{index-c17e103a.js → index-02f669c4.js} +2 -1
- package/dist/{index-6fc4d1f4.js → index-03169373.js} +12 -25
- package/dist/{index-4ccb3e9c.js → index-03513979.js} +11 -24
- package/dist/{index-d5de8c20.js → index-03d6aef0.js} +13 -26
- package/dist/{index-a132ac63.js → index-06d0f2f7.js} +13 -26
- package/dist/{index-64f4d194.js → index-06ef2e10.js} +11 -24
- package/dist/{index-55a7fad3.js → index-08a64465.js} +11 -24
- package/dist/{index-659243c0.js → index-094d2a65.js} +19 -32
- package/dist/{index-e3570fb6.js → index-11268759.js} +18 -31
- package/dist/{index-0ab7162c.js → index-117d018c.js} +22 -35
- package/dist/{index-2e69928d.js → index-12d32536.js} +13 -26
- package/dist/{index-3c7614e3.js → index-141cec17.js} +14 -27
- package/dist/{index-207ff1e4.js → index-19d177fe.js} +16 -29
- package/dist/{index-cd93af19.js → index-1b2a64df.js} +26 -39
- package/dist/{index-b42b7f2a.js → index-2334248a.js} +9 -22
- package/dist/index-293f8244.js +49 -0
- package/dist/{index-d907bed0.js → index-29d37c73.js} +52 -65
- package/dist/{index-0228f85e.js → index-2ae0474b.js} +24 -37
- package/dist/{index-7f2a6d68.js → index-360aaaac.js} +28 -41
- package/dist/{index-789ea179.js → index-3ee2bafa.js} +15 -28
- package/dist/index-40023d52.js +5322 -0
- package/dist/{index-15cca5fd.js → index-40710f09.js} +17 -30
- package/dist/index-4528ba11.js +49 -0
- package/dist/{index-2ee3d9fd.js → index-4bc493f0.js} +4 -17
- package/dist/{index-2acdfe81.js → index-4c6ad36c.js} +32 -45
- package/dist/{index-f27785e7.js → index-4d780cf4.js} +22 -35
- package/dist/{index-87b93a08.js → index-4df0c3e4.js} +16 -29
- package/dist/{index-122d1ca2.js → index-4f94900a.js} +19 -32
- package/dist/{index-693a21bb.js → index-4f94d7fa.js} +22 -35
- package/dist/{index-1810cc68.js → index-57a163fd.js} +11 -24
- package/dist/index-596c785d.js +50 -0
- package/dist/{index-94ca2048.js → index-5beeed26.js} +23 -36
- package/dist/{index-54cbdaa4.js → index-5e6ffc2f.js} +2 -1
- package/dist/{index-9c669079.js → index-5fb7b3bc.js} +12 -25
- package/dist/{index-d914889d.js → index-60fe7f16.js} +13 -26
- package/dist/{index-7dfec241.js → index-63a66f13.js} +30 -43
- package/dist/index-67554651.js +49 -0
- package/dist/{index-b69e64e6.js → index-67678963.js} +22 -35
- package/dist/{index-523acf7a.js → index-6856be22.js} +21 -34
- package/dist/{index-0be486a6.js → index-6e969585.js} +27 -40
- package/dist/{index-cb3b96c6.js → index-6f728206.js} +9 -22
- package/dist/{index-2add17c1.js → index-6f963c6a.js} +20 -33
- package/dist/{index-a5251ade.js → index-73bfc020.js} +31 -44
- package/dist/{index-721120f3.js → index-75190b99.js} +7 -20
- package/dist/{index-70099dad.js → index-770e5f53.js} +12 -25
- package/dist/{index-f0b0c5fc.js → index-79e7317f.js} +12 -25
- package/dist/{index-312ee80f.js → index-7bb9ffdf.js} +3 -2
- package/dist/{index-013c5769.js → index-7cf9b111.js} +18 -31
- package/dist/{index-8d34dc76.js → index-7edb6aec.js} +19 -32
- package/dist/{index-0fa20e69.js → index-80cc70e4.js} +26 -39
- package/dist/{index-24112094.js → index-8585c2f3.js} +23 -36
- package/dist/{index-c1206eaf.js → index-898678dc.js} +21 -34
- package/dist/{index-fd4e070b.js → index-8aa9b1be.js} +24 -37
- package/dist/index-9349bf2d.js +345 -0
- package/dist/{index-dc3cd1ef.js → index-954d3973.js} +13 -26
- package/dist/{index-f5df4eec.js → index-956b36a6.js} +37 -50
- package/dist/{index-31004470.js → index-9c73c442.js} +45 -58
- package/dist/{index-887b08f6.js → index-9e5efc0a.js} +29 -42
- package/dist/{index-584c1de8.js → index-a6fa33ce.js} +13 -26
- package/dist/{index-2c3346b8.js → index-a89abb42.js} +4 -17
- package/dist/{index-0333ccf9.js → index-b0da3dfd.js} +14 -27
- package/dist/{index-fcb10f63.js → index-b103ed31.js} +12 -25
- package/dist/{index-9c3f8d80.js → index-b54ef52a.js} +16 -29
- package/dist/index-b7027a1d.js +1295 -0
- package/dist/{index-81a64a31.js → index-b7941b97.js} +8 -21
- package/dist/{index-b8e94395.js → index-c1381bca.js} +20 -33
- package/dist/index-c57db938.js +37 -0
- package/dist/{index-051b64c8.js → index-c6371af1.js} +10 -23
- package/dist/{index-a9c0f025.js → index-c69f6dfc.js} +19 -32
- package/dist/{index-e1f19bc5.js → index-cb1218d8.js} +10 -23
- package/dist/{index-c1b82aa9.js → index-cbc0d36b.js} +13 -26
- package/dist/{index-3b42042f.js → index-cc1cd309.js} +13 -26
- package/dist/{index-abb9f006.js → index-ceae4147.js} +12 -25
- package/dist/{index-b4116538.js → index-cfee583b.js} +21 -34
- package/dist/{index-7b28ddea.js → index-d2f2742e.js} +10 -23
- package/dist/{index-00d6276c.js → index-d3419554.js} +15 -28
- package/dist/{index-30f61bdc.js → index-d81e15f3.js} +19 -32
- package/dist/{index-40958da3.js → index-d86842c8.js} +17 -30
- package/dist/{index-46e4bfa3.js → index-e169373b.js} +10 -23
- package/dist/{index-aa5e48ef.js → index-e1a6a03d.js} +9 -22
- package/dist/{index-a45e1710.js → index-e2b960e4.js} +23 -36
- package/dist/{index-5648e9fa.js → index-e8fb69e0.js} +21 -34
- package/dist/{index-3b632a87.js → index-e98ef24f.js} +14 -27
- package/dist/{index-c6a5236d.js → index-e9a1ff7f.js} +4 -17
- package/dist/index-eea69add.js +71 -0
- package/dist/{index-9864c94e.js → index-ef31f5f8.js} +2 -1
- package/dist/{index-2e09190f.js → index-f1726c63.js} +11 -24
- package/dist/{index-d15a69b6.js → index-f40f45fb.js} +13 -26
- package/dist/{index-88d32101.js → index-f64eddcc.js} +16 -29
- package/dist/{index-44ed585d.js → index-f7c4ae83.js} +22 -35
- package/dist/{index-44b988bb.js → index-fda88eb4.js} +23 -36
- package/dist/{index-c58b598e.js → index-fdffd6e6.js} +14 -27
- package/dist/index.d.ts +36 -48
- package/dist/index.es.js +223 -53
- package/dist/index.esm-71578db5.js +1198 -0
- package/dist/index.module-1d7bbdf8.js +7 -0
- package/dist/index.module-86edc823.js +15 -0
- package/dist/index.module-b4239ff5.js +9 -0
- package/dist/index.module-fb41ba3b.js +39 -0
- package/dist/locales-776f0072.js +440 -0
- package/dist/provider/NoticeProvider.d.ts +1 -1
- package/dist/provider/ThemeProvider.d.ts +7 -3
- package/dist/provider/useTheme.d.ts +1 -1
- package/dist/search-b79a3be5.js +6 -0
- package/dist/sortable.esm-1c13d908.js +2896 -0
- package/dist/sortable.esm-8d31c120.js +1275 -0
- package/dist/styles-85a9fe64.js +136 -0
- package/dist/types/component.d.ts +1 -1
- package/dist/useAlign-916ed3be.js +44 -0
- package/dist/useDelayEvent-f577f6a3.js +1082 -0
- package/dist/useTheme-0688f238.js +16 -0
- package/dist/utils/helper.d.ts +1 -1
- package/dist/{utils-19b44377.js → utils-071abd68.js} +2 -1
- package/package.json +1 -1
- package/dist/Form.d.ts +0 -1
- package/dist/Form.es.js +0 -752
- package/dist/ProTable-079d6c86.js +0 -3443
- package/dist/components/Form/Control.d.ts +0 -13
- package/dist/components/Form/Form.d.ts +0 -4
- package/dist/components/Form/FormItem.d.ts +0 -4
- package/dist/components/Form/FormLabel.d.ts +0 -4
- package/dist/components/Form/context.d.ts +0 -6
- package/dist/components/Form/index.d.ts +0 -8
- package/dist/components/Form/interface.d.ts +0 -48
- package/dist/components/Form/store.d.ts +0 -16
- package/dist/components/Form/styles/item.d.ts +0 -5
- package/dist/components/Form/useForm.d.ts +0 -3
- package/dist/index-0b47cbae.js +0 -173
- package/dist/index-14c3a4d7.js +0 -62
- package/dist/index-6ffbeca8.js +0 -65
- package/dist/index-7be8731d.js +0 -62
- package/dist/index-b5974e22.js +0 -62
- package/dist/index-e102400f.js +0 -11706
- package/dist/index-fb1f3ef1.js +0 -63
- package/dist/isObjectLike-1b8bbac2.js +0 -44
- package/dist/jsx-runtime-82a9ddf6.js +0 -646
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BUITheme } from "
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { BUITheme } from "../../types/component";
|
|
3
3
|
import { InputVariant } from "./styles";
|
|
4
4
|
export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
5
|
-
label?: ReactNode;
|
|
5
|
+
label?: React.ReactNode;
|
|
6
6
|
variant: InputVariant;
|
|
7
7
|
theme?: BUITheme;
|
|
8
|
-
startAdornment?: ReactNode;
|
|
9
|
-
endAdornment?: ReactNode;
|
|
8
|
+
startAdornment?: React.ReactNode;
|
|
9
|
+
endAdornment?: React.ReactNode;
|
|
10
10
|
error?: boolean;
|
|
11
11
|
helperText?: string;
|
|
12
12
|
disabled?: boolean;
|
|
13
13
|
inputClassName?: string;
|
|
14
14
|
inputSize?: "md" | "lg";
|
|
15
15
|
}
|
|
16
|
-
declare const LabelTextField:
|
|
16
|
+
declare const LabelTextField: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
17
17
|
export default LabelTextField;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { Locale } from "date-fns";
|
|
3
|
+
type MonthPickerProps = {
|
|
4
|
+
data: {
|
|
5
|
+
[key: number]: number[];
|
|
6
|
+
};
|
|
7
|
+
currentYear: number;
|
|
8
|
+
currentMonth: number;
|
|
9
|
+
setMonth: (value: Date) => void;
|
|
10
|
+
locale: Locale;
|
|
11
|
+
confirmText: string;
|
|
12
|
+
cancelText: string;
|
|
13
|
+
cancel: () => void;
|
|
14
|
+
confirm: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare const MonthPicker: React.FC<MonthPickerProps>;
|
|
17
|
+
export { MonthPicker };
|
|
@@ -1,17 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
type MonthPickerProps = {
|
|
4
|
-
data: {
|
|
5
|
-
[key: number]: number[];
|
|
6
|
-
};
|
|
7
|
-
currentYear: number;
|
|
8
|
-
currentMonth: number;
|
|
9
|
-
setMonth: (value: Date) => void;
|
|
10
|
-
locale: Locale;
|
|
11
|
-
confirmText: string;
|
|
12
|
-
cancelText: string;
|
|
13
|
-
cancel: () => void;
|
|
14
|
-
confirm: () => void;
|
|
15
|
-
};
|
|
16
|
-
declare const MonthPicker: FC<MonthPickerProps>;
|
|
17
|
-
export default MonthPicker;
|
|
1
|
+
import { MonthPicker } from "./MonthPicker";
|
|
2
|
+
export { MonthPicker };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { InputSize } from "../TextField/TextField";
|
|
3
3
|
import { BUITheme } from "../../types/component";
|
|
4
4
|
export type TypesVariant = "filled" | "outlined";
|
|
@@ -28,7 +28,7 @@ export interface MultiSelectProps {
|
|
|
28
28
|
searchClassName?: string;
|
|
29
29
|
searchChange?: (value: string) => void;
|
|
30
30
|
options: Option[];
|
|
31
|
-
optionsFormat?: (option: optionsFormatParams) => ReactNode;
|
|
31
|
+
optionsFormat?: (option: optionsFormatParams) => React.ReactNode;
|
|
32
32
|
multiLimit?: number;
|
|
33
33
|
values?: string[];
|
|
34
34
|
onChange?: (value: string[]) => void;
|
|
@@ -38,5 +38,5 @@ export interface MultiSelectRefProps {
|
|
|
38
38
|
close: () => void;
|
|
39
39
|
clear: () => void;
|
|
40
40
|
}
|
|
41
|
-
declare const MultiSelect:
|
|
42
|
-
export
|
|
41
|
+
declare const MultiSelect: React.ForwardRefExoticComponent<MultiSelectProps & React.RefAttributes<MultiSelectRefProps>>;
|
|
42
|
+
export { MultiSelect };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
export declare const Notification: () => React.ReactPortal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { BUITheme } from "../../types/component";
|
|
3
3
|
export interface PaginationProps {
|
|
4
4
|
/**
|
|
@@ -22,7 +22,7 @@ export interface PaginationProps {
|
|
|
22
22
|
*/
|
|
23
23
|
className?: string;
|
|
24
24
|
theme?: BUITheme;
|
|
25
|
-
activeStyle?: CSSProperties;
|
|
25
|
+
activeStyle?: React.CSSProperties;
|
|
26
26
|
total?: number;
|
|
27
27
|
sizeOptions?: number[];
|
|
28
28
|
sizeCanChange?: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
type PickerProps = {
|
|
2
|
+
list: {
|
|
3
|
+
label: string;
|
|
4
|
+
value: number;
|
|
5
|
+
}[];
|
|
6
|
+
selectedValue: number;
|
|
7
|
+
setValue: (value: number) => void;
|
|
8
|
+
};
|
|
9
|
+
declare const Picker: ({ list, selectedValue, setValue }: PickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Picker };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EffectCallback } from 'react';
|
|
2
2
|
export declare const useMount: (callback: EffectCallback) => void;
|
|
3
3
|
declare const usePickerMethod: (list: any, selectedValue: any) => {
|
|
4
|
-
pickerColumnsEl: import("react").RefObject<HTMLDivElement>;
|
|
4
|
+
pickerColumnsEl: import("react").RefObject<HTMLDivElement | null>;
|
|
5
5
|
selected: any;
|
|
6
6
|
setSelected: import("react").Dispatch<any>;
|
|
7
7
|
selectIndex: (index: number) => void;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
label: string;
|
|
4
|
-
value: number;
|
|
5
|
-
}[];
|
|
6
|
-
selectedValue: number;
|
|
7
|
-
setValue: (value: number) => void;
|
|
8
|
-
};
|
|
9
|
-
declare const Picker: ({ list, selectedValue, setValue }: PickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export default Picker;
|
|
1
|
+
import { Picker } from "./Picker";
|
|
2
|
+
export { Picker };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
interface PopupProps {
|
|
3
|
+
title: React.ReactNode;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
cancel?: () => void;
|
|
6
|
+
distance?: number;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
auto?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface PopupRef {
|
|
11
|
+
open: () => void;
|
|
12
|
+
close: () => void;
|
|
13
|
+
}
|
|
14
|
+
declare const Popup: React.ForwardRefExoticComponent<PopupProps & React.RefAttributes<PopupRef>>;
|
|
15
|
+
export { Popup };
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
cancel?: () => void;
|
|
6
|
-
distance?: number;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
auto?: boolean;
|
|
9
|
-
}
|
|
10
|
-
export interface PopupRef {
|
|
11
|
-
open: () => void;
|
|
12
|
-
close: () => void;
|
|
13
|
-
}
|
|
14
|
-
declare const Popup: import("react").ForwardRefExoticComponent<PopupProps & import("react").RefAttributes<PopupRef>>;
|
|
15
|
-
export default Popup;
|
|
1
|
+
import { Popup } from "./Popup";
|
|
2
|
+
import type { PopupRef } from "./Popup";
|
|
3
|
+
export { Popup };
|
|
4
|
+
export type { PopupRef };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BUITheme } from "
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { BUITheme } from "../../types/component";
|
|
3
3
|
export interface RadioButtonProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
4
|
-
label?: ReactNode;
|
|
4
|
+
label?: React.ReactNode;
|
|
5
5
|
theme?: BUITheme;
|
|
6
6
|
selected?: string;
|
|
7
7
|
arrow?: "circle" | "check";
|
|
8
8
|
}
|
|
9
|
-
declare const RadioButton:
|
|
9
|
+
declare const RadioButton: React.ForwardRefExoticComponent<RadioButtonProps & React.RefAttributes<HTMLInputElement>>;
|
|
10
10
|
export default RadioButton;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BUITheme } from "
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { BUITheme } from "../../types/component";
|
|
3
3
|
export type SelectItem = {
|
|
4
4
|
label: string;
|
|
5
5
|
value: string;
|
|
6
|
-
disabled?: boolean;
|
|
7
|
-
className?: string;
|
|
8
6
|
};
|
|
9
7
|
export interface SelectProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
10
8
|
selectItems: SelectItem[];
|
|
@@ -16,7 +14,7 @@ export interface SelectProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
16
14
|
arrowClassName?: string;
|
|
17
15
|
menuWrapperClassName?: string;
|
|
18
16
|
scrollable?: boolean;
|
|
19
|
-
wrapper?: (children: ReactNode) => ReactNode;
|
|
17
|
+
wrapper?: (children: React.ReactNode) => React.ReactNode;
|
|
20
18
|
activeColor?: boolean;
|
|
21
19
|
offsetParent?: number;
|
|
22
20
|
trigger?: "click" | "hover";
|
|
@@ -24,18 +22,17 @@ export interface SelectProps extends React.InputHTMLAttributes<HTMLInputElement>
|
|
|
24
22
|
labelId?: string;
|
|
25
23
|
search?: boolean;
|
|
26
24
|
searchClear?: boolean;
|
|
27
|
-
searchEmpty?: ReactNode;
|
|
28
|
-
customSelectItems?: (item: SelectItem) => ReactNode;
|
|
25
|
+
searchEmpty?: React.ReactNode;
|
|
26
|
+
customSelectItems?: (item: SelectItem) => React.ReactNode;
|
|
29
27
|
searchChange?: (value: string) => void;
|
|
30
28
|
rowKey?: string;
|
|
31
29
|
labelField?: string;
|
|
32
30
|
styles?: object;
|
|
33
31
|
inputDisabled?: boolean;
|
|
34
32
|
hoverClassName?: string;
|
|
35
|
-
className?: string;
|
|
36
33
|
x?: number;
|
|
37
34
|
y?: number;
|
|
38
35
|
container?: Element;
|
|
39
36
|
}
|
|
40
|
-
declare const Select:
|
|
37
|
+
declare const Select: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLInputElement>>;
|
|
41
38
|
export default Select;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { BUITheme } from "../../types/component";
|
|
3
3
|
export interface SliderProps {
|
|
4
4
|
/**
|
|
@@ -55,4 +55,4 @@ export interface SliderProps {
|
|
|
55
55
|
disabled?: boolean;
|
|
56
56
|
showTooltip?: boolean;
|
|
57
57
|
}
|
|
58
|
-
export declare const Slider:
|
|
58
|
+
export declare const Slider: React.ForwardRefExoticComponent<SliderProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { SortsData } from "./reducer";
|
|
3
3
|
import { BUITheme } from "../../types/component";
|
|
4
4
|
export type TextAlign = "flex-start" | "flex-end" | "center";
|
|
5
5
|
export interface SortButtonProps {
|
|
6
|
-
children:
|
|
6
|
+
children: React.ReactElement;
|
|
7
7
|
onSortChange: (data: SortsData[] | SortsData) => void;
|
|
8
8
|
sortKey: string;
|
|
9
9
|
hideSort?: boolean;
|
|
10
10
|
textAlign?: TextAlign;
|
|
11
11
|
width?: string;
|
|
12
|
-
iconStyle?: CSSProperties;
|
|
12
|
+
iconStyle?: React.CSSProperties;
|
|
13
13
|
theme?: BUITheme;
|
|
14
14
|
}
|
|
15
|
-
declare const SortButton: FC<SortButtonProps>;
|
|
16
|
-
export
|
|
15
|
+
declare const SortButton: React.FC<SortButtonProps>;
|
|
16
|
+
export { SortButton };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
interface SortGroupProps {
|
|
3
|
-
children:
|
|
3
|
+
children: React.ReactElement;
|
|
4
4
|
type?: "single" | "multiple";
|
|
5
5
|
}
|
|
6
|
-
declare const SortGroup:
|
|
6
|
+
declare const SortGroup: React.ForwardRefExoticComponent<SortGroupProps & React.RefAttributes<{
|
|
7
7
|
restSort: (callBack: () => void) => void;
|
|
8
8
|
}>>;
|
|
9
|
-
export
|
|
9
|
+
export { SortGroup };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
interface SortItemProps {
|
|
3
|
-
children: ReactNode;
|
|
3
|
+
children: React.ReactNode;
|
|
4
4
|
}
|
|
5
|
-
declare const SortItem: FC<SortItemProps>;
|
|
6
|
-
export
|
|
5
|
+
declare const SortItem: React.FC<SortItemProps>;
|
|
6
|
+
export { SortItem };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { FC } from "react";
|
|
2
|
+
interface SortableProps {
|
|
3
|
+
direction: "horizontal" | "vertical";
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
moveEnd: (prev: number, next: number) => void;
|
|
6
|
+
ghostClass?: string;
|
|
7
|
+
dragClass?: string;
|
|
8
|
+
customHandle?: string;
|
|
9
|
+
}
|
|
10
|
+
declare const Sortable: FC<SortableProps>;
|
|
11
|
+
export { Sortable };
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
children: React.ReactNode;
|
|
5
|
-
moveEnd: (prev: number, next: number) => void;
|
|
6
|
-
ghostClass?: string;
|
|
7
|
-
dragClass?: string;
|
|
8
|
-
customHandle?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const Sortable: FC<SortableProps>;
|
|
11
|
-
export default Sortable;
|
|
1
|
+
import { Sortable } from "./Sortable";
|
|
2
|
+
import { SortItem } from "./SortItem";
|
|
3
|
+
export { Sortable, SortItem };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
interface SwitchProps {
|
|
3
3
|
check: boolean;
|
|
4
4
|
onChange: () => void;
|
|
5
5
|
size?: "tiny" | "small" | "medium";
|
|
6
6
|
className?: string;
|
|
7
7
|
}
|
|
8
|
-
export declare const Switch: FC<SwitchProps>;
|
|
8
|
+
export declare const Switch: React.FC<SwitchProps>;
|
|
9
9
|
export {};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export declare const switchSize: (props?: ({
|
|
2
|
-
size?: "
|
|
2
|
+
size?: "small" | "medium" | "tiny" | null | undefined;
|
|
3
3
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
4
|
export declare const thumbSize: (props?: ({
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "small" | "medium" | "tiny" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export declare const moveSize: (props?: ({
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "small" | "medium" | "tiny" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
10
|
export declare const bgStyle: (props?: ({
|
|
11
11
|
theme?: "light" | "dark" | null | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare const itemStyles: (props?: ({
|
|
2
|
-
size?: "
|
|
2
|
+
size?: "small" | "medium" | "large" | "max" | null | undefined;
|
|
3
3
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
4
|
declare const itemActStyles: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
5
|
declare const smallActStyles: (props?: ({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { Direction } from "../interface";
|
|
3
|
-
declare const Pagination: FC<{
|
|
3
|
+
declare const Pagination: React.FC<{
|
|
4
4
|
isLastPage: boolean;
|
|
5
5
|
isFirstPage: boolean;
|
|
6
6
|
onChange: (direction: Direction) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { TableProps } from "./interface";
|
|
3
3
|
export declare const defaultWidth = "150";
|
|
4
4
|
export declare const PageSize = 50;
|
|
5
|
-
declare const Table:
|
|
5
|
+
declare const Table: React.ForwardRefExoticComponent<TableProps<any> & React.RefAttributes<HTMLDivElement>>;
|
|
6
6
|
export default Table;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { TableColumnProps } from "../interface";
|
|
3
|
-
import { BUITheme } from "
|
|
3
|
+
import { BUITheme } from "../../../types/component";
|
|
4
4
|
interface TbodyProps {
|
|
5
5
|
data: Record<string, string>[];
|
|
6
6
|
columns: TableColumnProps[];
|
|
@@ -11,5 +11,5 @@ interface TbodyProps {
|
|
|
11
11
|
tbodyClass?: string;
|
|
12
12
|
rowIdPrefix?: string;
|
|
13
13
|
}
|
|
14
|
-
declare const Tbody:
|
|
14
|
+
declare const Tbody: React.ForwardRefExoticComponent<TbodyProps & React.RefAttributes<HTMLTableRowElement | null>>;
|
|
15
15
|
export default Tbody;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { SortProps, TableColumnProps } from "../interface";
|
|
3
|
-
import { BUITheme } from "
|
|
3
|
+
import { BUITheme } from "../../../types/component";
|
|
4
4
|
import { SortType } from "../../Sort/reducer";
|
|
5
5
|
interface TheadProps {
|
|
6
6
|
data: Record<string, string>[];
|
|
@@ -14,5 +14,5 @@ interface TheadProps {
|
|
|
14
14
|
type?: SortType;
|
|
15
15
|
methodRef?: any;
|
|
16
16
|
}
|
|
17
|
-
declare const Thead:
|
|
17
|
+
declare const Thead: React.ForwardRefExoticComponent<TheadProps & React.RefAttributes<HTMLTableRowElement | null>>;
|
|
18
18
|
export default Thead;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from 'react';
|
|
2
2
|
type StateType = {
|
|
3
3
|
isScroll: boolean;
|
|
4
4
|
};
|
|
@@ -9,9 +9,9 @@ type ActionType = {
|
|
|
9
9
|
declare const State: {
|
|
10
10
|
isScroll: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const Context:
|
|
12
|
+
declare const Context: React.Context<{
|
|
13
13
|
state: StateType;
|
|
14
|
-
dispatch: Dispatch<ActionType>;
|
|
14
|
+
dispatch: React.Dispatch<ActionType>;
|
|
15
15
|
}>;
|
|
16
16
|
declare const reducer: (state: StateType, action: ActionType) => StateType;
|
|
17
17
|
export { Context, reducer, State };
|
|
@@ -7,8 +7,8 @@ declare const useStickyOffset: (columns: TableColumnProps[]) => {
|
|
|
7
7
|
fixed?: "left" | "right" | undefined;
|
|
8
8
|
width?: string | undefined;
|
|
9
9
|
align?: "center" | "flex-start" | "flex-end" | undefined;
|
|
10
|
-
render?: ((record: any, index: number) =>
|
|
11
|
-
renderHeader?: ((record: any[]) =>
|
|
10
|
+
render?: ((record: any, index: number) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
11
|
+
renderHeader?: ((record: any[]) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>) | undefined;
|
|
12
12
|
filter?: boolean | undefined;
|
|
13
13
|
type?: import("../../Sort/reducer").SortType | undefined;
|
|
14
14
|
onCell?: ((record: any, index: number) => number) | undefined;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import Table from
|
|
2
|
-
export type { TableColumnProps } from
|
|
3
|
-
export
|
|
1
|
+
import Table from "./Table";
|
|
2
|
+
export type { TableColumnProps } from "./interface";
|
|
3
|
+
export { Table };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { BUITheme } from "
|
|
2
|
+
import { BUITheme } from "../../types/component";
|
|
3
3
|
import { SortType, SortsData } from "../Sort/reducer";
|
|
4
4
|
interface TableColumnProps<T = any> {
|
|
5
5
|
key?: string;
|
|
@@ -7,8 +7,8 @@ interface TableColumnProps<T = any> {
|
|
|
7
7
|
fixed?: "right" | "left";
|
|
8
8
|
width?: string;
|
|
9
9
|
align?: "center" | "flex-start" | "flex-end";
|
|
10
|
-
render?: (record: T, index: number) =>
|
|
11
|
-
renderHeader?: (record: T[]) =>
|
|
10
|
+
render?: (record: T, index: number) => React.ReactElement;
|
|
11
|
+
renderHeader?: (record: T[]) => React.ReactElement;
|
|
12
12
|
filter?: boolean;
|
|
13
13
|
type?: SortType;
|
|
14
14
|
onCell?: (record: T, index: number) => number;
|
|
@@ -29,7 +29,7 @@ interface TableProps<T = any> {
|
|
|
29
29
|
changePagination?: (direction: Direction) => void;
|
|
30
30
|
hidePagination?: boolean;
|
|
31
31
|
paginationPosition?: "flex-start" | "center" | "flex-end";
|
|
32
|
-
renderEmpty?:
|
|
32
|
+
renderEmpty?: React.ReactElement;
|
|
33
33
|
theadClass?: string;
|
|
34
34
|
tdClass?: string;
|
|
35
35
|
scroll?: boolean;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as React from "react";
|
|
2
2
|
import { BUITheme } from "../../types/component";
|
|
3
3
|
import { InputVariant } from "../LabelTextField/styles";
|
|
4
4
|
export type InputSize = "sm" | "md" | "lg";
|
|
5
5
|
export interface InputBaseProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
6
6
|
variant: InputVariant;
|
|
7
7
|
theme?: BUITheme;
|
|
8
|
-
startAdornment?: ReactNode;
|
|
9
|
-
endAdornment?: ReactNode;
|
|
8
|
+
startAdornment?: React.ReactNode;
|
|
9
|
+
endAdornment?: React.ReactNode;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
error?: boolean;
|
|
12
12
|
inputClassName?: string;
|
|
13
13
|
inputSize?: InputSize;
|
|
14
14
|
}
|
|
15
|
-
declare const TextField:
|
|
15
|
+
declare const TextField: React.ForwardRefExoticComponent<InputBaseProps & React.RefAttributes<HTMLInputElement>>;
|
|
16
16
|
export default TextField;
|