@blofin/blofin-ui 0.7.58 → 0.7.59
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 +8 -10
- package/dist/Button.es.js +125 -127
- package/dist/Dialog.es.js +10 -180
- package/dist/Divider.es.js +10 -12
- package/dist/Drawer.es.js +51 -44
- package/dist/Form.d.ts +1 -0
- package/dist/Form.es.js +752 -0
- package/dist/ProTable-63e2c020.js +3444 -0
- package/dist/ProTable.es.js +6 -9
- package/dist/Slider.es.js +140 -141
- package/dist/Sort.es.js +10 -144
- package/dist/blofin.css +1 -1
- package/dist/{close-0df24351.js → close-c67ec245.js} +0 -1
- package/dist/clsx.m-b14a941b.js +32 -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 +0 -2
- 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/DatePickerRange/styles.d.ts +1 -0
- package/dist/components/DateTimePicker/ScrollableList.d.ts +1 -1
- package/dist/components/Dialog/Dialog.d.ts +2 -5
- package/dist/components/Dialog/index.d.ts +2 -4
- 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/Empty/index.d.ts +5 -2
- package/dist/components/Form/Control.d.ts +13 -0
- package/dist/components/Form/Form.d.ts +4 -0
- package/dist/components/Form/FormItem.d.ts +4 -0
- package/dist/components/Form/FormLabel.d.ts +4 -0
- package/dist/components/Form/context.d.ts +6 -0
- package/dist/components/Form/index.d.ts +8 -0
- package/dist/components/Form/interface.d.ts +48 -0
- package/dist/components/Form/store.d.ts +16 -0
- package/dist/components/Form/styles/item.d.ts +5 -0
- package/dist/components/Form/useForm.d.ts +3 -0
- package/dist/components/LabelTextField/LabelTextField.d.ts +6 -6
- package/dist/components/MonthPicker/index.d.ts +17 -2
- package/dist/components/MultiSelect/MultiSelect.d.ts +4 -4
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/Pagination/PageOptions.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/Picker/hooks/usePickerMethod.d.ts +1 -1
- package/dist/components/Picker/index.d.ts +10 -2
- package/dist/components/Popover/Popover.d.ts +1 -1
- package/dist/components/Popup/index.d.ts +15 -4
- 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 +9 -6
- 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 +6 -5
- package/dist/components/Sortable/SortItem.d.ts +4 -4
- package/dist/components/Sortable/index.d.ts +11 -3
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/styles.d.ts +3 -3
- package/dist/components/Tab/Tab.d.ts +2 -2
- 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 +3 -3
- 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 +0 -2
- package/dist/components/TextSelect/TextSelect.d.ts +8 -8
- package/dist/components/Textarea/index.d.ts +15 -2
- package/dist/components/Toast/Toast.d.ts +13 -2
- package/dist/components/Toast/styles.d.ts +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts +5 -4
- package/dist/components/Typography/Typography.d.ts +2 -2
- package/dist/components/Typography/styles.d.ts +1 -1
- package/dist/hooks/useLatest.d.ts +1 -1
- package/dist/hooks/useNotification.d.ts +7 -5
- package/dist/hooks/useToast.d.ts +1 -1
- package/dist/{index-4f94d7fa.js → index-001dd0f7.js} +39 -24
- package/dist/{index-29d37c73.js → index-003572ca.js} +67 -52
- package/dist/{index-57a163fd.js → index-0330bc93.js} +28 -13
- package/dist/{index-d81e15f3.js → index-05bf2879.js} +34 -19
- package/dist/{index-b54ef52a.js → index-0773f9b5.js} +31 -16
- package/dist/{index-6856be22.js → index-0c50dcda.js} +38 -23
- package/dist/{index-7cf9b111.js → index-0e6d56f6.js} +33 -18
- package/dist/{index-a89abb42.js → index-0eb53476.js} +19 -4
- package/dist/{index-0230b5a9.js → index-0f855a91.js} +4 -5
- package/dist/{index-cbc0d36b.js → index-10144af4.js} +30 -15
- package/dist/{index-06d0f2f7.js → index-11dc8e91.js} +28 -13
- package/dist/{index-c6371af1.js → index-14eba896.js} +25 -10
- package/dist/{index-c1381bca.js → index-18869ac6.js} +35 -20
- package/dist/{index-1b2a64df.js → index-189196e6.js} +46 -31
- package/dist/{index-898678dc.js → index-198ccc85.js} +45 -30
- package/dist/{index-e2b960e4.js → index-1b087231.js} +38 -23
- package/dist/{index-f40f45fb.js → index-204cbb23.js} +30 -15
- package/dist/{index-4df0c3e4.js → index-220ed10a.js} +31 -16
- package/dist/{index-67678963.js → index-28a6835c.js} +48 -33
- package/dist/{index-e98ef24f.js → index-2d400fe1.js} +32 -17
- package/dist/{index-e8fb69e0.js → index-2e0c8d16.js} +37 -22
- package/dist/{index-cc1cd309.js → index-2e784550.js} +28 -13
- package/dist/index-304d7874.js +64 -0
- package/dist/{index-12d32536.js → index-3375e2e3.js} +28 -13
- package/dist/{index-954d3973.js → index-36521981.js} +28 -13
- package/dist/{index-cfee583b.js → index-377dc190.js} +36 -21
- package/dist/{index-4f94900a.js → index-390505ce.js} +34 -19
- package/dist/index-40626e62.js +174 -0
- package/dist/{index-b0da3dfd.js → index-41bebee7.js} +39 -24
- package/dist/{index-5fb7b3bc.js → index-45cfa2f3.js} +27 -12
- package/dist/{index-80cc70e4.js → index-47408940.js} +41 -26
- package/dist/{index-141cec17.js → index-4b9249fc.js} +29 -14
- package/dist/index-543e2f77.js +65 -0
- package/dist/index-563cafee.js +64 -0
- package/dist/index-5956ed9f.js +11569 -0
- package/dist/{index-b103ed31.js → index-59c7d611.js} +27 -12
- package/dist/{index-d2f2742e.js → index-5bc791c5.js} +30 -15
- package/dist/{index-03513979.js → index-5f3da225.js} +26 -11
- package/dist/{index-8aa9b1be.js → index-603f0f2a.js} +39 -24
- package/dist/{index-4bc493f0.js → index-636a6216.js} +19 -4
- package/dist/{index-2334248a.js → index-640dc4ab.js} +24 -9
- package/dist/{index-73bfc020.js → index-64ba8d88.js} +47 -32
- package/dist/{index-2ae0474b.js → index-65986673.js} +39 -24
- package/dist/{index-6f728206.js → index-65df0a7b.js} +24 -9
- package/dist/{index-02f669c4.js → index-6e4d9a19.js} +1 -2
- package/dist/{index-360aaaac.js → index-7241c703.js} +46 -31
- package/dist/index-7272669e.js +36 -0
- package/dist/{index-9c73c442.js → index-73673cf3.js} +60 -45
- package/dist/{index-08a64465.js → index-74676234.js} +31 -16
- package/dist/{index-7edb6aec.js → index-770fe605.js} +34 -19
- package/dist/{index-5beeed26.js → index-772d6529.js} +38 -23
- package/dist/{index-6e969585.js → index-797b8f6c.js} +52 -37
- package/dist/{index-a6fa33ce.js → index-7c12aa98.js} +28 -13
- package/dist/{index-5e6ffc2f.js → index-7e7cdd81.js} +1 -2
- package/dist/{index-03169373.js → index-81072b24.js} +37 -22
- package/dist/{index-75190b99.js → index-8684e896.js} +22 -7
- package/dist/{index-7bb9ffdf.js → index-89f184f3.js} +2 -3
- package/dist/{index-40710f09.js → index-8a7c46ae.js} +41 -26
- package/dist/{index-117d018c.js → index-8cec0e82.js} +37 -22
- package/dist/{index-094d2a65.js → index-91062be2.js} +34 -19
- package/dist/{index-d3419554.js → index-9253a5ce.js} +30 -15
- package/dist/index-95c68eda.js +152 -0
- package/dist/{index-956b36a6.js → index-9eaebb69.js} +45 -30
- package/dist/{index-63a66f13.js → index-a4077786.js} +45 -30
- package/dist/{index-e9a1ff7f.js → index-ad2acfd2.js} +19 -4
- package/dist/{index-fdffd6e6.js → index-af60bed6.js} +29 -14
- package/dist/{index-fda88eb4.js → index-b5ff5e93.js} +45 -30
- package/dist/{index-11268759.js → index-bba889fc.js} +33 -18
- package/dist/{index-b7941b97.js → index-c002eb57.js} +23 -8
- package/dist/{index-4c6ad36c.js → index-c73b6cc3.js} +47 -32
- package/dist/{index-60fe7f16.js → index-c81a4a2a.js} +32 -17
- package/dist/{index-f7c4ae83.js → index-c8690f0a.js} +48 -33
- package/dist/{index-79e7317f.js → index-cdaffd70.js} +27 -12
- package/dist/{index-4d780cf4.js → index-cf872561.js} +37 -22
- package/dist/{index-cb1218d8.js → index-dafac81d.js} +25 -10
- package/dist/{index-19d177fe.js → index-db7c7495.js} +31 -16
- package/dist/{index-f1726c63.js → index-dbd4bd27.js} +29 -14
- package/dist/{index-ceae4147.js → index-dc23eb8b.js} +27 -12
- package/dist/{index-9e5efc0a.js → index-dc69cdd8.js} +45 -30
- package/dist/{index-c69f6dfc.js → index-e6091315.js} +36 -21
- package/dist/{index-06ef2e10.js → index-e869e999.js} +28 -13
- package/dist/{index-03d6aef0.js → index-f0c42ec9.js} +33 -18
- package/dist/{index-f64eddcc.js → index-f16b36a5.js} +31 -16
- package/dist/{index-e1a6a03d.js → index-f4d65525.js} +24 -9
- package/dist/index-f53123c7.js +64 -0
- package/dist/{index-770e5f53.js → index-f753119c.js} +27 -12
- package/dist/{index-8585c2f3.js → index-f83dab77.js} +38 -23
- package/dist/{index-6f963c6a.js → index-f852d9b6.js} +35 -20
- package/dist/{index-3ee2bafa.js → index-fa51b278.js} +30 -15
- package/dist/{index-e169373b.js → index-fc135912.js} +25 -10
- package/dist/{index-ef31f5f8.js → index-fcb1ec65.js} +1 -2
- package/dist/{index-d86842c8.js → index-ff943066.js} +34 -19
- package/dist/index.d.ts +48 -36
- package/dist/index.es.js +56 -223
- package/dist/isObjectLike-1b8bbac2.js +44 -0
- package/dist/jsx-runtime-82a9ddf6.js +646 -0
- package/dist/provider/NoticeProvider.d.ts +1 -1
- package/dist/provider/ThemeProvider.d.ts +3 -7
- package/dist/provider/useTheme.d.ts +1 -1
- package/dist/types/component.d.ts +1 -1
- package/dist/utils/helper.d.ts +1 -1
- package/dist/{utils-071abd68.js → utils-cacf528c.js} +1 -2
- package/package.json +3 -2
- package/dist/Calendar.d.ts +0 -1
- package/dist/Calendar.es.js +0 -210
- package/dist/Checkbox.d.ts +0 -1
- package/dist/Checkbox.es.js +0 -138
- package/dist/CssDropdown.d.ts +0 -1
- package/dist/CssDropdown.es.js +0 -38
- package/dist/DatePickerRange.d.ts +0 -1
- package/dist/DatePickerRange.es.js +0 -410
- package/dist/DateTimePicker.d.ts +0 -1
- package/dist/DateTimePicker.es.js +0 -519
- package/dist/Dropdown.d.ts +0 -1
- package/dist/Dropdown.es.js +0 -134
- package/dist/Empty.d.ts +0 -1
- package/dist/Empty.es.js +0 -11
- package/dist/LabelTextField.d.ts +0 -1
- package/dist/LabelTextField.es.js +0 -100
- package/dist/MonthPicker.d.ts +0 -1
- package/dist/MonthPicker.es.js +0 -16
- package/dist/MultiSelect.d.ts +0 -1
- package/dist/MultiSelect.es.js +0 -425
- package/dist/Notification.d.ts +0 -1
- package/dist/Notification.es.js +0 -12
- package/dist/Pagination.d.ts +0 -1
- package/dist/Pagination.es.js +0 -219
- package/dist/Picker.d.ts +0 -1
- package/dist/Picker.es.js +0 -224
- package/dist/Popover.d.ts +0 -1
- package/dist/Popover.es.js +0 -107
- package/dist/Popup.d.ts +0 -1
- package/dist/Popup.es.js +0 -62
- package/dist/ProTable-7a07d8b6.js +0 -565
- package/dist/RadioButton.d.ts +0 -1
- package/dist/RadioButton.es.js +0 -152
- package/dist/Select.d.ts +0 -1
- package/dist/Select.es.js +0 -316
- package/dist/Sortable.d.ts +0 -1
- package/dist/Sortable.es.js +0 -39
- package/dist/Switch.d.ts +0 -1
- package/dist/Switch.es.js +0 -64
- package/dist/Tab.d.ts +0 -1
- package/dist/Tab.es.js +0 -101
- package/dist/Table.d.ts +0 -1
- package/dist/Table.es.js +0 -359
- package/dist/TextField.d.ts +0 -1
- package/dist/TextField.es.js +0 -64
- package/dist/TextSelect.d.ts +0 -1
- package/dist/TextSelect.es.js +0 -17
- package/dist/Textarea.d.ts +0 -1
- package/dist/Textarea.es.js +0 -106
- package/dist/Toast.d.ts +0 -1
- package/dist/Toast.es.js +0 -12
- package/dist/Tooltip.d.ts +0 -1
- package/dist/Tooltip.es.js +0 -144
- package/dist/Typography.d.ts +0 -1
- package/dist/Typography.es.js +0 -74
- package/dist/_commonjsHelpers-1d52fb73.js +0 -9
- package/dist/arrow-down-011b02c7.js +0 -6
- package/dist/arrow-down-l-line-97e4fe24.js +0 -6
- package/dist/arrow-fill-70becd96.js +0 -6
- package/dist/arrow-right-l-line-87881b4d.js +0 -7
- package/dist/close-bg-6d2211ef.js +0 -6
- package/dist/clsx.m-e965ef18.js +0 -22
- package/dist/components/CssDropdown/index.d.ts +0 -2
- package/dist/components/DatePickerRange/index.d.ts +0 -4
- package/dist/components/DateTimePicker/index.d.ts +0 -4
- package/dist/components/Dropdown/index.d.ts +0 -2
- package/dist/components/Empty/Empty.d.ts +0 -5
- package/dist/components/MonthPicker/MonthPicker.d.ts +0 -17
- package/dist/components/MultiSelect/index.d.ts +0 -2
- package/dist/components/Notification/index.d.ts +0 -2
- package/dist/components/Pagination/index.d.ts +0 -3
- package/dist/components/Picker/Picker.d.ts +0 -10
- package/dist/components/Popover/index.d.ts +0 -5
- package/dist/components/Popup/Popup.d.ts +0 -15
- package/dist/components/Sortable/Sortable.d.ts +0 -11
- package/dist/components/Switch/index.d.ts +0 -2
- package/dist/components/Tab/index.d.ts +0 -4
- package/dist/components/TextSelect/index.d.ts +0 -2
- package/dist/components/Textarea/Textarea.d.ts +0 -15
- package/dist/components/Toast/index.d.ts +0 -2
- package/dist/components/Tooltip/index.d.ts +0 -2
- package/dist/components/Typography/index.d.ts +0 -4
- package/dist/enum-0398044b.js +0 -17
- package/dist/helper-221987f8.js +0 -7
- package/dist/index-293f8244.js +0 -49
- package/dist/index-40023d52.js +0 -5322
- package/dist/index-4528ba11.js +0 -49
- package/dist/index-596c785d.js +0 -50
- package/dist/index-67554651.js +0 -49
- package/dist/index-9349bf2d.js +0 -345
- package/dist/index-b7027a1d.js +0 -1295
- package/dist/index-c57db938.js +0 -37
- package/dist/index-eea69add.js +0 -71
- package/dist/index.esm-71578db5.js +0 -1198
- package/dist/index.module-1d7bbdf8.js +0 -7
- package/dist/index.module-86edc823.js +0 -15
- package/dist/index.module-b4239ff5.js +0 -9
- package/dist/index.module-fb41ba3b.js +0 -39
- package/dist/locales-776f0072.js +0 -440
- package/dist/search-b79a3be5.js +0 -6
- package/dist/sortable.esm-1c13d908.js +0 -2896
- package/dist/sortable.esm-8d31c120.js +0 -1275
- package/dist/styles-85a9fe64.js +0 -136
- package/dist/useAlign-916ed3be.js +0 -44
- package/dist/useDelayEvent-f577f6a3.js +0 -1082
- package/dist/useTheme-0688f238.js +0 -16
package/dist/Tooltip.es.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
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
|
-
};
|
package/dist/Typography.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './components/Typography/index'
|
package/dist/Typography.es.js
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,7 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import * as e from "react";
|
|
3
|
-
const L = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("path", { d: "M8.00065 14.6668C4.31875 14.6668 1.33398 11.682 1.33398 8.00016C1.33398 4.31826 4.31875 1.3335 8.00065 1.3335C11.6825 1.3335 14.6673 4.31826 14.6673 8.00016C14.6673 11.682 11.6825 14.6668 8.00065 14.6668ZM8.00065 7.05736L6.11503 5.17174L5.17222 6.11454L7.05785 8.00016L5.17222 9.88576L6.11503 10.8286L8.00065 8.94296L9.88625 10.8286L10.8291 9.88576L8.94345 8.00016L10.8291 6.11454L9.88625 5.17174L8.00065 7.05736Z", fill: "#0A0A0A", fillOpacity: 0.18 }));
|
|
4
|
-
export {
|
|
5
|
-
L as S
|
|
6
|
-
};
|
package/dist/clsx.m-e965ef18.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
function o(r) {
|
|
3
|
-
var n, f, t = "";
|
|
4
|
-
if (typeof r == "string" || typeof r == "number")
|
|
5
|
-
t += r;
|
|
6
|
-
else if (typeof r == "object")
|
|
7
|
-
if (Array.isArray(r))
|
|
8
|
-
for (n = 0; n < r.length; n++)
|
|
9
|
-
r[n] && (f = o(r[n])) && (t && (t += " "), t += f);
|
|
10
|
-
else
|
|
11
|
-
for (n in r)
|
|
12
|
-
r[n] && (t && (t += " "), t += n);
|
|
13
|
-
return t;
|
|
14
|
-
}
|
|
15
|
-
function i() {
|
|
16
|
-
for (var r, n, f = 0, t = ""; f < arguments.length; )
|
|
17
|
-
(r = arguments[f++]) && (n = o(r)) && (t && (t += " "), t += n);
|
|
18
|
-
return t;
|
|
19
|
-
}
|
|
20
|
-
export {
|
|
21
|
-
i as c
|
|
22
|
-
};
|
|
@@ -1,17 +0,0 @@
|
|
|
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,10 +0,0 @@
|
|
|
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,15 +0,0 @@
|
|
|
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,11 +0,0 @@
|
|
|
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,15 +0,0 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { BUITheme } from "../../types/component";
|
|
3
|
-
export interface TextareaProps extends React.InputHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
-
label?: React.ReactNode;
|
|
5
|
-
theme?: BUITheme;
|
|
6
|
-
endAdornment?: React.ReactNode;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
error?: boolean;
|
|
9
|
-
textareaClassName?: string;
|
|
10
|
-
helperText?: string;
|
|
11
|
-
row?: number;
|
|
12
|
-
className?: string;
|
|
13
|
-
}
|
|
14
|
-
declare const TextArea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
15
|
-
export { TextArea };
|
package/dist/enum-0398044b.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
const i = "_title_cy6ql_4", n = "_line_cy6ql_7", p = "_content_cy6ql_10", l = {
|
|
3
|
-
"tooltip-wrapper": "_tooltip-wrapper_cy6ql_1",
|
|
4
|
-
title: i,
|
|
5
|
-
line: n,
|
|
6
|
-
content: p
|
|
7
|
-
};
|
|
8
|
-
var o = /* @__PURE__ */ ((t) => (t.top = "top", t.bottom = "bottom", t.topLeft = "top-start", t.topRight = "top-end", t.bottomLeft = "bottom-start", t.bottomRight = "bottom-end", t.left = "left", t.right = "right", t))(o || {}), r = /* @__PURE__ */ ((t) => (t[t.top = 0] = "top", t[t.bottom = 0] = "bottom", t[t.topLeft = -5] = "topLeft", t[t.topRight = 5] = "topRight", t[t.bottomLeft = -5] = "bottomLeft", t[t.bottomRight = 5] = "bottomRight", t[t.left = 0] = "left", t[t.right = 0] = "right", t))(r || {});
|
|
9
|
-
const c = Object.fromEntries(
|
|
10
|
-
Object.entries(o).map(([t, e]) => [e, t])
|
|
11
|
-
);
|
|
12
|
-
export {
|
|
13
|
-
r as O,
|
|
14
|
-
o as P,
|
|
15
|
-
c as a,
|
|
16
|
-
l as t
|
|
17
|
-
};
|
package/dist/helper-221987f8.js
DELETED
package/dist/index-293f8244.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import { f as a, a as m, l as e, m as o } from "./index-7bb9ffdf.js";
|
|
3
|
-
import { a as t } from "./index-b7027a1d.js";
|
|
4
|
-
import "./index-5e6ffc2f.js";
|
|
5
|
-
var l = {
|
|
6
|
-
full: "EEEE d MMMM y",
|
|
7
|
-
long: "d MMMM y",
|
|
8
|
-
medium: "d MMM y",
|
|
9
|
-
short: "dd/MM/y"
|
|
10
|
-
}, r = {
|
|
11
|
-
full: "HH:mm:ss zzzz",
|
|
12
|
-
long: "HH:mm:ss z",
|
|
13
|
-
medium: "HH:mm:ss",
|
|
14
|
-
short: "HH:mm"
|
|
15
|
-
}, i = {
|
|
16
|
-
full: "{{date}} {{time}}",
|
|
17
|
-
long: "{{date}} {{time}}",
|
|
18
|
-
medium: "{{date}} {{time}}",
|
|
19
|
-
short: "{{date}} {{time}}"
|
|
20
|
-
}, s = {
|
|
21
|
-
date: t({
|
|
22
|
-
formats: l,
|
|
23
|
-
defaultWidth: "full"
|
|
24
|
-
}),
|
|
25
|
-
time: t({
|
|
26
|
-
formats: r,
|
|
27
|
-
defaultWidth: "full"
|
|
28
|
-
}),
|
|
29
|
-
dateTime: t({
|
|
30
|
-
formats: i,
|
|
31
|
-
defaultWidth: "full"
|
|
32
|
-
})
|
|
33
|
-
};
|
|
34
|
-
const d = s;
|
|
35
|
-
var M = {
|
|
36
|
-
code: "it",
|
|
37
|
-
formatDistance: a,
|
|
38
|
-
formatLong: d,
|
|
39
|
-
formatRelative: m,
|
|
40
|
-
localize: e,
|
|
41
|
-
match: o,
|
|
42
|
-
options: {
|
|
43
|
-
weekStartsOn: 1,
|
|
44
|
-
firstWeekContainsDate: 4
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
export {
|
|
48
|
-
M as default
|
|
49
|
-
};
|