@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
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import * as x from "react";
|
|
4
|
+
import { u as k } from "./useTheme-0688f238.js";
|
|
5
|
+
import { Typography as u } from "./Typography.es.js";
|
|
6
|
+
import { c as o } from "./index-c57db938.js";
|
|
7
|
+
import "./utils-071abd68.js";
|
|
8
|
+
import "./clsx.m-e965ef18.js";
|
|
9
|
+
const y = o("bu-rounded-[4px] bu-border-[1px] bu-p-[8px]", {
|
|
10
|
+
variants: {
|
|
11
|
+
theme: {
|
|
12
|
+
light: [
|
|
13
|
+
"bu-border-light-line-secondary bu-bg-light-background focus-within:bu-border-light-primary hover:bu-border-light-primary"
|
|
14
|
+
],
|
|
15
|
+
dark: [
|
|
16
|
+
"bu-border-dark-line-secondary bu-bg-dark-background focus-within:bu-border-dark-primary hover:bu-border-dark-primary"
|
|
17
|
+
]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}), f = o("bu-rounded-[4px] bu-border-[1px] bu-p-[8px]", {
|
|
21
|
+
variants: {
|
|
22
|
+
theme: {
|
|
23
|
+
light: [
|
|
24
|
+
"bu-border-light-danger bu-bg-light-background focus-within:bu-border-light-danger hover:bu-border-light-danger"
|
|
25
|
+
],
|
|
26
|
+
dark: [
|
|
27
|
+
"bu-border-dark-danger bu-bg-dark-background focus-within:bu-border-dark-danger hover:bu-border-dark-danger"
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}), v = o(
|
|
32
|
+
"bu-h-[80px] bu-w-full bu-resize-none bu-rounded-[4px] bu-text-[12px] bu-leading-[18px] bu-shadow-none bu-outline-none",
|
|
33
|
+
{
|
|
34
|
+
variants: {
|
|
35
|
+
theme: {
|
|
36
|
+
light: ["bu-bg-light-background bu-text-light-label"],
|
|
37
|
+
dark: ["bu-bg-dark-background bu-text-dark-label"]
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
), w = o("", {
|
|
42
|
+
variants: {
|
|
43
|
+
theme: {
|
|
44
|
+
light: ["!bu-text-light-danger"],
|
|
45
|
+
dark: ["!bu-text-dark-danger"]
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}), N = "_hideScrollbar_1vs4g_1", S = {
|
|
49
|
+
hideScrollbar: N
|
|
50
|
+
}, z = x.forwardRef((l, s) => {
|
|
51
|
+
const { theme: a } = k(), {
|
|
52
|
+
id: b,
|
|
53
|
+
disabled: h,
|
|
54
|
+
label: r,
|
|
55
|
+
endAdornment: d,
|
|
56
|
+
error: c,
|
|
57
|
+
theme: e,
|
|
58
|
+
helperText: i,
|
|
59
|
+
row: m = 4,
|
|
60
|
+
className: g,
|
|
61
|
+
...p
|
|
62
|
+
} = l;
|
|
63
|
+
return /* @__PURE__ */ n("div", { children: [
|
|
64
|
+
r && typeof r == "string" && /* @__PURE__ */ t("label", { htmlFor: b || `bui-${r}`, children: /* @__PURE__ */ t(u, { className: "bu-mb-[4px]", variant: "body4", children: r }) }),
|
|
65
|
+
r && typeof r != "string" && /* @__PURE__ */ t("div", { className: "bu-mb-1", children: r }),
|
|
66
|
+
/* @__PURE__ */ n(
|
|
67
|
+
"div",
|
|
68
|
+
{
|
|
69
|
+
className: c ? f({ theme: e || a }) : y({ theme: e || a }),
|
|
70
|
+
children: [
|
|
71
|
+
/* @__PURE__ */ t(
|
|
72
|
+
"textarea",
|
|
73
|
+
{
|
|
74
|
+
id: typeof r == "string" ? b || `bui-${r}` : void 0,
|
|
75
|
+
ref: s,
|
|
76
|
+
disabled: h,
|
|
77
|
+
rows: m,
|
|
78
|
+
className: `${S.hideScrollbar} ${v({
|
|
79
|
+
theme: e || a
|
|
80
|
+
})} ${g}`,
|
|
81
|
+
...p
|
|
82
|
+
}
|
|
83
|
+
),
|
|
84
|
+
d && /* @__PURE__ */ t(
|
|
85
|
+
"span",
|
|
86
|
+
{
|
|
87
|
+
className: typeof d == "string" ? "bu-px-2 bu-text-base bu-font-medium" : "",
|
|
88
|
+
children: d
|
|
89
|
+
}
|
|
90
|
+
)
|
|
91
|
+
]
|
|
92
|
+
}
|
|
93
|
+
),
|
|
94
|
+
i && /* @__PURE__ */ t("div", { className: "bu-mt-1", children: /* @__PURE__ */ t(
|
|
95
|
+
u,
|
|
96
|
+
{
|
|
97
|
+
variant: "body4",
|
|
98
|
+
className: w({ theme: e || a }),
|
|
99
|
+
children: i
|
|
100
|
+
}
|
|
101
|
+
) })
|
|
102
|
+
] });
|
|
103
|
+
});
|
|
104
|
+
export {
|
|
105
|
+
z as TextArea
|
|
106
|
+
};
|
package/dist/Toast.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/Toast/index'
|
package/dist/Toast.es.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { T } from "./index-40023d52.js";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
import "react";
|
|
5
|
+
import "react-dom";
|
|
6
|
+
import "./index-c57db938.js";
|
|
7
|
+
import "./clsx.m-e965ef18.js";
|
|
8
|
+
import "./useTheme-0688f238.js";
|
|
9
|
+
import "./close-0df24351.js";
|
|
10
|
+
export {
|
|
11
|
+
T as Toast
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/Tooltip/index'
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as w, jsx as a } from "react/jsx-runtime";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { createPortal as R } from "react-dom";
|
|
5
|
+
import { u as L } from "./useTheme-0688f238.js";
|
|
6
|
+
import { P as E, O as k, t as b, a as S } from "./enum-0398044b.js";
|
|
7
|
+
import { c as x } from "./index-c57db938.js";
|
|
8
|
+
import { u as M, a as P, b as $ } from "./useDelayEvent-f577f6a3.js";
|
|
9
|
+
import "./clsx.m-e965ef18.js";
|
|
10
|
+
import "./_commonjsHelpers-1d52fb73.js";
|
|
11
|
+
const F = (s) => /* @__PURE__ */ t.createElement("svg", { id: "_\\u56FE\\u5C42_1", "data-name": "\\u56FE\\u5C42 1", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 8 3.59", ...s }, /* @__PURE__ */ t.createElement("defs", null, /* @__PURE__ */ t.createElement("style", null, `
|
|
12
|
+
.cls-1 {
|
|
13
|
+
fill: currentColor;
|
|
14
|
+
}
|
|
15
|
+
`)), /* @__PURE__ */ t.createElement("path", { className: "cls-1", d: "M3.29,3.29c.39,.39,1.02,.39,1.41,0L8,0H0L3.29,3.29Z" })), A = x("bu-text-white", {
|
|
16
|
+
variants: {
|
|
17
|
+
theme: {
|
|
18
|
+
light: "bu-bg-light-hover-fill-tertiary",
|
|
19
|
+
dark: "bu-bg-dark-hover-fill-tertiary"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}), T = x("bu-absolute bu-h-[8px] bu-w-[8px]", {
|
|
23
|
+
variants: {
|
|
24
|
+
placement: {
|
|
25
|
+
top: "bu-bottom-[-7px] bu-left-[50%] bu-translate-x-[-50%]",
|
|
26
|
+
topLeft: "bu-bottom-[-8px] bu-left-[16px]",
|
|
27
|
+
topRight: "bu-bottom-[-7px] bu-right-[16px]",
|
|
28
|
+
bottom: "bu-left-[50%] bu-top-[-7.5px] bu-translate-x-[-50%] bu-rotate-[180deg]",
|
|
29
|
+
bottomLeft: "bu-left-[16px] bu-top-[-7.5px] bu-rotate-[180deg]",
|
|
30
|
+
bottomRight: "bu-right-[16px] bu-top-[-7.5px] bu-rotate-[180deg]",
|
|
31
|
+
right: "bu-left-[-8px] bu-top-[50%] bu-translate-y-[-50%] bu-rotate-[90deg]",
|
|
32
|
+
left: "bu-right-[-8px] bu-top-[50%] bu-translate-y-[-50%] bu-rotate-[-90deg]"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}), _ = x("bu-transition-opacity bu-delay-200", {
|
|
36
|
+
variants: {
|
|
37
|
+
show: {
|
|
38
|
+
true: "bu-opacity-1 bu-visible bu-z-[10000]",
|
|
39
|
+
false: "bu-invisible bu-z-[-100] bu-opacity-0"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}), j = ({
|
|
43
|
+
title: s,
|
|
44
|
+
content: e,
|
|
45
|
+
placement: o,
|
|
46
|
+
parent: c,
|
|
47
|
+
className: m,
|
|
48
|
+
enter: r,
|
|
49
|
+
hideArrow: f = !1,
|
|
50
|
+
scrollContainer: d,
|
|
51
|
+
isShow: u = !1,
|
|
52
|
+
flipPlacement: n,
|
|
53
|
+
theme: i,
|
|
54
|
+
x: p,
|
|
55
|
+
y: h = 0
|
|
56
|
+
}) => {
|
|
57
|
+
const l = t.useRef(null), { styles: g, attributes: N, update: v, state: y } = $(c, l.current, {
|
|
58
|
+
placement: E[o],
|
|
59
|
+
strategy: "fixed",
|
|
60
|
+
modifiers: [
|
|
61
|
+
{
|
|
62
|
+
name: "offset",
|
|
63
|
+
options: {
|
|
64
|
+
offset: [p || k[o], 4 + h]
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: "flip",
|
|
69
|
+
options: {
|
|
70
|
+
fallbackPlacements: n ? n.map((C) => E[C]) : []
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
});
|
|
75
|
+
return t.useEffect(() => {
|
|
76
|
+
v && v();
|
|
77
|
+
}, [r, u]), R(
|
|
78
|
+
/* @__PURE__ */ w(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
ref: l,
|
|
82
|
+
className: `${b["tooltip-wrapper"]} ${_({
|
|
83
|
+
show: r || u
|
|
84
|
+
})} ${A({
|
|
85
|
+
theme: i
|
|
86
|
+
})} ${m || ""}`,
|
|
87
|
+
style: g.popper,
|
|
88
|
+
...N.popper,
|
|
89
|
+
children: [
|
|
90
|
+
s && /* @__PURE__ */ a("span", { className: b.title, children: s }),
|
|
91
|
+
s && e && /* @__PURE__ */ a("div", { className: b.line }),
|
|
92
|
+
e ? typeof e == "string" ? /* @__PURE__ */ a("span", { className: b.content, children: e }) : e : null,
|
|
93
|
+
!f && y && /* @__PURE__ */ a(
|
|
94
|
+
"div",
|
|
95
|
+
{
|
|
96
|
+
className: T({
|
|
97
|
+
placement: S[y.placement]
|
|
98
|
+
}),
|
|
99
|
+
children: /* @__PURE__ */ a(
|
|
100
|
+
F,
|
|
101
|
+
{
|
|
102
|
+
className: i === "dark" ? "bu-text-dark-hover-fill-tertiary" : "bu-text-light-hover-fill-tertiary"
|
|
103
|
+
}
|
|
104
|
+
)
|
|
105
|
+
}
|
|
106
|
+
)
|
|
107
|
+
]
|
|
108
|
+
}
|
|
109
|
+
),
|
|
110
|
+
document.body
|
|
111
|
+
);
|
|
112
|
+
}, G = ({
|
|
113
|
+
children: s,
|
|
114
|
+
isShow: e,
|
|
115
|
+
theme: o,
|
|
116
|
+
containerClassName: c,
|
|
117
|
+
...m
|
|
118
|
+
}) => {
|
|
119
|
+
const r = t.useRef(null), [f, d] = M(!1, 300, !0, !0), [u, n] = t.useState(!1), { isClient: i } = P(), p = () => {
|
|
120
|
+
d(!0);
|
|
121
|
+
}, h = () => {
|
|
122
|
+
d(!1);
|
|
123
|
+
}, { theme: l } = L(), g = t.useMemo(() => o || l, [o, l]);
|
|
124
|
+
return t.useEffect(() => {
|
|
125
|
+
e !== void 0 && setTimeout(() => {
|
|
126
|
+
n(e);
|
|
127
|
+
}, 0);
|
|
128
|
+
}, [e]), /* @__PURE__ */ w(
|
|
129
|
+
"div",
|
|
130
|
+
{
|
|
131
|
+
ref: r,
|
|
132
|
+
className: `bu-inline-block ${c}`,
|
|
133
|
+
onMouseEnter: p,
|
|
134
|
+
onMouseLeave: h,
|
|
135
|
+
children: [
|
|
136
|
+
s,
|
|
137
|
+
i && /* @__PURE__ */ a(j, { ...m, enter: f, theme: g, isShow: u, parent: r.current })
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
);
|
|
141
|
+
};
|
|
142
|
+
export {
|
|
143
|
+
G as Tooltip
|
|
144
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/Typography/index'
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as x } from "react/jsx-runtime";
|
|
3
|
+
import { u as s } from "./useTheme-0688f238.js";
|
|
4
|
+
import { c as i } from "./utils-071abd68.js";
|
|
5
|
+
import { c as m } from "./index-c57db938.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import "./clsx.m-e965ef18.js";
|
|
8
|
+
const p = (t) => m("", {
|
|
9
|
+
variants: {
|
|
10
|
+
variant: {
|
|
11
|
+
h1: "bu-text-9xl",
|
|
12
|
+
h2: "bu-text-8xl",
|
|
13
|
+
h3: "bu-text-7xl",
|
|
14
|
+
h4: "bu-text-6xl",
|
|
15
|
+
h5: "bu-text-5xl",
|
|
16
|
+
h6: "bu-text-4xl",
|
|
17
|
+
subtitle1: "bu-text-3xl",
|
|
18
|
+
subtitle2: "bu-text-2xl",
|
|
19
|
+
subtitle3: "bu-text-xl",
|
|
20
|
+
body1: "bu-text-lg",
|
|
21
|
+
body2: "bu-text-md",
|
|
22
|
+
body3: "bu-text-base",
|
|
23
|
+
body4: "bu-text-sm"
|
|
24
|
+
},
|
|
25
|
+
weight: {
|
|
26
|
+
bold: "bu-font-bold",
|
|
27
|
+
medium: "bu-font-medium",
|
|
28
|
+
regular: "bu-font-normal"
|
|
29
|
+
},
|
|
30
|
+
theme: {
|
|
31
|
+
light: "bu-text-light-label",
|
|
32
|
+
dark: "bu-text-dark-label"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
defaultVariants: {
|
|
36
|
+
variant: "body3",
|
|
37
|
+
weight: "regular"
|
|
38
|
+
}
|
|
39
|
+
})(t), d = {
|
|
40
|
+
h1: "h1",
|
|
41
|
+
h2: "h2",
|
|
42
|
+
h3: "h3",
|
|
43
|
+
h4: "h4",
|
|
44
|
+
h5: "h5",
|
|
45
|
+
h6: "h6",
|
|
46
|
+
subtitle1: "p",
|
|
47
|
+
subtitle2: "p",
|
|
48
|
+
subtitle3: "p",
|
|
49
|
+
body1: "p",
|
|
50
|
+
body2: "p",
|
|
51
|
+
body3: "p",
|
|
52
|
+
body4: "p"
|
|
53
|
+
}, v = ({
|
|
54
|
+
variant: t = "body3",
|
|
55
|
+
weight: u = "regular",
|
|
56
|
+
className: o = "",
|
|
57
|
+
children: l,
|
|
58
|
+
theme: e,
|
|
59
|
+
component: b,
|
|
60
|
+
...r
|
|
61
|
+
}) => {
|
|
62
|
+
const { theme: h } = s(), a = b || d[t];
|
|
63
|
+
return /* @__PURE__ */ x(
|
|
64
|
+
a,
|
|
65
|
+
{
|
|
66
|
+
className: i(p({ variant: t, weight: u, theme: e || h }), o),
|
|
67
|
+
...r,
|
|
68
|
+
children: l
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
v as Typography
|
|
74
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
var o = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
3
|
+
function l(e) {
|
|
4
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
o as c,
|
|
8
|
+
l as g
|
|
9
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
const r = (e) => /* @__PURE__ */ t.createElement("svg", { width: 11, height: 6, viewBox: "0 0 11 6", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ t.createElement("path", { d: "M9.5 1.80005V0.200048H1.5V1.80005L5.5 5.80005L9.5 1.80005Z", fill: "currentColor", fillOpacity: 1 }));
|
|
4
|
+
export {
|
|
5
|
+
r as S
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
const o = (t) => /* @__PURE__ */ e.createElement("svg", { className: "icon", width: "200px", height: "200.00px", viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "currentColor", d: "M512 561.962667l211.2-211.2 60.330667 60.373333L512 682.666667 240.469333 411.136 300.8 350.805333l211.2 211.2z" }));
|
|
4
|
+
export {
|
|
5
|
+
o as S
|
|
6
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
const r = (t) => /* @__PURE__ */ e.createElement("svg", { viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", width: 200, height: 200, ...t }, /* @__PURE__ */ e.createElement("path", { d: "M725.333333 576v85.333333H298.666667v-85.333333l213.333333-213.333333 213.333333 213.333333z", fill: "currentColor" }));
|
|
4
|
+
export {
|
|
5
|
+
r as S
|
|
6
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import * as e from "react";
|
|
3
|
+
const l = (t) => /* @__PURE__ */ e.createElement("svg", { className: "icon", width: "200px", height: "200.00px", viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "currentColor", d: "M461.994667 512l211.2 211.2-60.330667 60.373333L341.333333 512l271.530667-271.530667 60.330667 60.330667-211.2 211.2z" })), r = (t) => /* @__PURE__ */ e.createElement("svg", { className: "icon", width: "200px", height: "200.00px", viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { fill: "currentColor", d: "M561.962667 512l-211.2-211.2 60.373333-60.288L682.666667 512l-271.530667 271.530667-60.330667-60.373334 211.2-211.2z" }));
|
|
4
|
+
export {
|
|
5
|
+
r as S,
|
|
6
|
+
l as a
|
|
7
|
+
};
|