@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.
Files changed (293) hide show
  1. package/dist/Badge.es.js +8 -10
  2. package/dist/Button.es.js +125 -127
  3. package/dist/Dialog.es.js +10 -180
  4. package/dist/Divider.es.js +10 -12
  5. package/dist/Drawer.es.js +51 -44
  6. package/dist/Form.d.ts +1 -0
  7. package/dist/Form.es.js +752 -0
  8. package/dist/ProTable-63e2c020.js +3444 -0
  9. package/dist/ProTable.es.js +6 -9
  10. package/dist/Slider.es.js +140 -141
  11. package/dist/Sort.es.js +10 -144
  12. package/dist/blofin.css +1 -1
  13. package/dist/{close-0df24351.js → close-c67ec245.js} +0 -1
  14. package/dist/clsx.m-b14a941b.js +32 -0
  15. package/dist/components/Alert/Alert.d.ts +3 -3
  16. package/dist/components/Alert/styles.d.ts +2 -2
  17. package/dist/components/Badge/Badge.d.ts +2 -2
  18. package/dist/components/Button/Button.d.ts +2 -2
  19. package/dist/components/Button/Loading/index.d.ts +2 -2
  20. package/dist/components/Button/index.d.ts +0 -2
  21. package/dist/components/Button/styles.d.ts +1 -1
  22. package/dist/components/Checkbox/styles.d.ts +1 -1
  23. package/dist/components/CssDropdown/CssDropdown.d.ts +3 -3
  24. package/dist/components/DatePickerRange/styles.d.ts +1 -0
  25. package/dist/components/DateTimePicker/ScrollableList.d.ts +1 -1
  26. package/dist/components/Dialog/Dialog.d.ts +2 -5
  27. package/dist/components/Dialog/index.d.ts +2 -4
  28. package/dist/components/Dialog/styles.d.ts +2 -2
  29. package/dist/components/Drawer/Drawer.d.ts +1 -1
  30. package/dist/components/Dropdown/Dropdown.d.ts +2 -2
  31. package/dist/components/Empty/index.d.ts +5 -2
  32. package/dist/components/Form/Control.d.ts +13 -0
  33. package/dist/components/Form/Form.d.ts +4 -0
  34. package/dist/components/Form/FormItem.d.ts +4 -0
  35. package/dist/components/Form/FormLabel.d.ts +4 -0
  36. package/dist/components/Form/context.d.ts +6 -0
  37. package/dist/components/Form/index.d.ts +8 -0
  38. package/dist/components/Form/interface.d.ts +48 -0
  39. package/dist/components/Form/store.d.ts +16 -0
  40. package/dist/components/Form/styles/item.d.ts +5 -0
  41. package/dist/components/Form/useForm.d.ts +3 -0
  42. package/dist/components/LabelTextField/LabelTextField.d.ts +6 -6
  43. package/dist/components/MonthPicker/index.d.ts +17 -2
  44. package/dist/components/MultiSelect/MultiSelect.d.ts +4 -4
  45. package/dist/components/Notification/Notification.d.ts +1 -1
  46. package/dist/components/Pagination/PageOptions.d.ts +1 -1
  47. package/dist/components/Pagination/Pagination.d.ts +2 -2
  48. package/dist/components/Picker/hooks/usePickerMethod.d.ts +1 -1
  49. package/dist/components/Picker/index.d.ts +10 -2
  50. package/dist/components/Popover/Popover.d.ts +1 -1
  51. package/dist/components/Popup/index.d.ts +15 -4
  52. package/dist/components/RadioButton/RadioButton.d.ts +4 -4
  53. package/dist/components/RadioButton/styles.d.ts +1 -1
  54. package/dist/components/Select/Select.d.ts +9 -6
  55. package/dist/components/Slider/Slider.d.ts +2 -2
  56. package/dist/components/Sort/SortButton.d.ts +5 -5
  57. package/dist/components/Sort/SortGroup.d.ts +4 -4
  58. package/dist/components/Sort/index.d.ts +6 -5
  59. package/dist/components/Sortable/SortItem.d.ts +4 -4
  60. package/dist/components/Sortable/index.d.ts +11 -3
  61. package/dist/components/Switch/Switch.d.ts +2 -2
  62. package/dist/components/Switch/styles.d.ts +3 -3
  63. package/dist/components/Tab/Tab.d.ts +2 -2
  64. package/dist/components/Tab/styles.d.ts +1 -1
  65. package/dist/components/Table/Pagination/index.d.ts +2 -2
  66. package/dist/components/Table/Table.d.ts +2 -2
  67. package/dist/components/Table/Tbody/index.d.ts +3 -3
  68. package/dist/components/Table/Thead/index.d.ts +3 -3
  69. package/dist/components/Table/context.d.ts +3 -3
  70. package/dist/components/Table/hooks/useStickyOffset.d.ts +3 -3
  71. package/dist/components/Table/index.d.ts +3 -3
  72. package/dist/components/Table/interface.d.ts +4 -4
  73. package/dist/components/TextField/TextField.d.ts +4 -4
  74. package/dist/components/TextField/index.d.ts +0 -2
  75. package/dist/components/TextSelect/TextSelect.d.ts +8 -8
  76. package/dist/components/Textarea/index.d.ts +15 -2
  77. package/dist/components/Toast/Toast.d.ts +13 -2
  78. package/dist/components/Toast/styles.d.ts +1 -1
  79. package/dist/components/Tooltip/Tooltip.d.ts +5 -4
  80. package/dist/components/Typography/Typography.d.ts +2 -2
  81. package/dist/components/Typography/styles.d.ts +1 -1
  82. package/dist/hooks/useLatest.d.ts +1 -1
  83. package/dist/hooks/useNotification.d.ts +7 -5
  84. package/dist/hooks/useToast.d.ts +1 -1
  85. package/dist/{index-4f94d7fa.js → index-001dd0f7.js} +39 -24
  86. package/dist/{index-29d37c73.js → index-003572ca.js} +67 -52
  87. package/dist/{index-57a163fd.js → index-0330bc93.js} +28 -13
  88. package/dist/{index-d81e15f3.js → index-05bf2879.js} +34 -19
  89. package/dist/{index-b54ef52a.js → index-0773f9b5.js} +31 -16
  90. package/dist/{index-6856be22.js → index-0c50dcda.js} +38 -23
  91. package/dist/{index-7cf9b111.js → index-0e6d56f6.js} +33 -18
  92. package/dist/{index-a89abb42.js → index-0eb53476.js} +19 -4
  93. package/dist/{index-0230b5a9.js → index-0f855a91.js} +4 -5
  94. package/dist/{index-cbc0d36b.js → index-10144af4.js} +30 -15
  95. package/dist/{index-06d0f2f7.js → index-11dc8e91.js} +28 -13
  96. package/dist/{index-c6371af1.js → index-14eba896.js} +25 -10
  97. package/dist/{index-c1381bca.js → index-18869ac6.js} +35 -20
  98. package/dist/{index-1b2a64df.js → index-189196e6.js} +46 -31
  99. package/dist/{index-898678dc.js → index-198ccc85.js} +45 -30
  100. package/dist/{index-e2b960e4.js → index-1b087231.js} +38 -23
  101. package/dist/{index-f40f45fb.js → index-204cbb23.js} +30 -15
  102. package/dist/{index-4df0c3e4.js → index-220ed10a.js} +31 -16
  103. package/dist/{index-67678963.js → index-28a6835c.js} +48 -33
  104. package/dist/{index-e98ef24f.js → index-2d400fe1.js} +32 -17
  105. package/dist/{index-e8fb69e0.js → index-2e0c8d16.js} +37 -22
  106. package/dist/{index-cc1cd309.js → index-2e784550.js} +28 -13
  107. package/dist/index-304d7874.js +64 -0
  108. package/dist/{index-12d32536.js → index-3375e2e3.js} +28 -13
  109. package/dist/{index-954d3973.js → index-36521981.js} +28 -13
  110. package/dist/{index-cfee583b.js → index-377dc190.js} +36 -21
  111. package/dist/{index-4f94900a.js → index-390505ce.js} +34 -19
  112. package/dist/index-40626e62.js +174 -0
  113. package/dist/{index-b0da3dfd.js → index-41bebee7.js} +39 -24
  114. package/dist/{index-5fb7b3bc.js → index-45cfa2f3.js} +27 -12
  115. package/dist/{index-80cc70e4.js → index-47408940.js} +41 -26
  116. package/dist/{index-141cec17.js → index-4b9249fc.js} +29 -14
  117. package/dist/index-543e2f77.js +65 -0
  118. package/dist/index-563cafee.js +64 -0
  119. package/dist/index-5956ed9f.js +11569 -0
  120. package/dist/{index-b103ed31.js → index-59c7d611.js} +27 -12
  121. package/dist/{index-d2f2742e.js → index-5bc791c5.js} +30 -15
  122. package/dist/{index-03513979.js → index-5f3da225.js} +26 -11
  123. package/dist/{index-8aa9b1be.js → index-603f0f2a.js} +39 -24
  124. package/dist/{index-4bc493f0.js → index-636a6216.js} +19 -4
  125. package/dist/{index-2334248a.js → index-640dc4ab.js} +24 -9
  126. package/dist/{index-73bfc020.js → index-64ba8d88.js} +47 -32
  127. package/dist/{index-2ae0474b.js → index-65986673.js} +39 -24
  128. package/dist/{index-6f728206.js → index-65df0a7b.js} +24 -9
  129. package/dist/{index-02f669c4.js → index-6e4d9a19.js} +1 -2
  130. package/dist/{index-360aaaac.js → index-7241c703.js} +46 -31
  131. package/dist/index-7272669e.js +36 -0
  132. package/dist/{index-9c73c442.js → index-73673cf3.js} +60 -45
  133. package/dist/{index-08a64465.js → index-74676234.js} +31 -16
  134. package/dist/{index-7edb6aec.js → index-770fe605.js} +34 -19
  135. package/dist/{index-5beeed26.js → index-772d6529.js} +38 -23
  136. package/dist/{index-6e969585.js → index-797b8f6c.js} +52 -37
  137. package/dist/{index-a6fa33ce.js → index-7c12aa98.js} +28 -13
  138. package/dist/{index-5e6ffc2f.js → index-7e7cdd81.js} +1 -2
  139. package/dist/{index-03169373.js → index-81072b24.js} +37 -22
  140. package/dist/{index-75190b99.js → index-8684e896.js} +22 -7
  141. package/dist/{index-7bb9ffdf.js → index-89f184f3.js} +2 -3
  142. package/dist/{index-40710f09.js → index-8a7c46ae.js} +41 -26
  143. package/dist/{index-117d018c.js → index-8cec0e82.js} +37 -22
  144. package/dist/{index-094d2a65.js → index-91062be2.js} +34 -19
  145. package/dist/{index-d3419554.js → index-9253a5ce.js} +30 -15
  146. package/dist/index-95c68eda.js +152 -0
  147. package/dist/{index-956b36a6.js → index-9eaebb69.js} +45 -30
  148. package/dist/{index-63a66f13.js → index-a4077786.js} +45 -30
  149. package/dist/{index-e9a1ff7f.js → index-ad2acfd2.js} +19 -4
  150. package/dist/{index-fdffd6e6.js → index-af60bed6.js} +29 -14
  151. package/dist/{index-fda88eb4.js → index-b5ff5e93.js} +45 -30
  152. package/dist/{index-11268759.js → index-bba889fc.js} +33 -18
  153. package/dist/{index-b7941b97.js → index-c002eb57.js} +23 -8
  154. package/dist/{index-4c6ad36c.js → index-c73b6cc3.js} +47 -32
  155. package/dist/{index-60fe7f16.js → index-c81a4a2a.js} +32 -17
  156. package/dist/{index-f7c4ae83.js → index-c8690f0a.js} +48 -33
  157. package/dist/{index-79e7317f.js → index-cdaffd70.js} +27 -12
  158. package/dist/{index-4d780cf4.js → index-cf872561.js} +37 -22
  159. package/dist/{index-cb1218d8.js → index-dafac81d.js} +25 -10
  160. package/dist/{index-19d177fe.js → index-db7c7495.js} +31 -16
  161. package/dist/{index-f1726c63.js → index-dbd4bd27.js} +29 -14
  162. package/dist/{index-ceae4147.js → index-dc23eb8b.js} +27 -12
  163. package/dist/{index-9e5efc0a.js → index-dc69cdd8.js} +45 -30
  164. package/dist/{index-c69f6dfc.js → index-e6091315.js} +36 -21
  165. package/dist/{index-06ef2e10.js → index-e869e999.js} +28 -13
  166. package/dist/{index-03d6aef0.js → index-f0c42ec9.js} +33 -18
  167. package/dist/{index-f64eddcc.js → index-f16b36a5.js} +31 -16
  168. package/dist/{index-e1a6a03d.js → index-f4d65525.js} +24 -9
  169. package/dist/index-f53123c7.js +64 -0
  170. package/dist/{index-770e5f53.js → index-f753119c.js} +27 -12
  171. package/dist/{index-8585c2f3.js → index-f83dab77.js} +38 -23
  172. package/dist/{index-6f963c6a.js → index-f852d9b6.js} +35 -20
  173. package/dist/{index-3ee2bafa.js → index-fa51b278.js} +30 -15
  174. package/dist/{index-e169373b.js → index-fc135912.js} +25 -10
  175. package/dist/{index-ef31f5f8.js → index-fcb1ec65.js} +1 -2
  176. package/dist/{index-d86842c8.js → index-ff943066.js} +34 -19
  177. package/dist/index.d.ts +48 -36
  178. package/dist/index.es.js +56 -223
  179. package/dist/isObjectLike-1b8bbac2.js +44 -0
  180. package/dist/jsx-runtime-82a9ddf6.js +646 -0
  181. package/dist/provider/NoticeProvider.d.ts +1 -1
  182. package/dist/provider/ThemeProvider.d.ts +3 -7
  183. package/dist/provider/useTheme.d.ts +1 -1
  184. package/dist/types/component.d.ts +1 -1
  185. package/dist/utils/helper.d.ts +1 -1
  186. package/dist/{utils-071abd68.js → utils-cacf528c.js} +1 -2
  187. package/package.json +3 -2
  188. package/dist/Calendar.d.ts +0 -1
  189. package/dist/Calendar.es.js +0 -210
  190. package/dist/Checkbox.d.ts +0 -1
  191. package/dist/Checkbox.es.js +0 -138
  192. package/dist/CssDropdown.d.ts +0 -1
  193. package/dist/CssDropdown.es.js +0 -38
  194. package/dist/DatePickerRange.d.ts +0 -1
  195. package/dist/DatePickerRange.es.js +0 -410
  196. package/dist/DateTimePicker.d.ts +0 -1
  197. package/dist/DateTimePicker.es.js +0 -519
  198. package/dist/Dropdown.d.ts +0 -1
  199. package/dist/Dropdown.es.js +0 -134
  200. package/dist/Empty.d.ts +0 -1
  201. package/dist/Empty.es.js +0 -11
  202. package/dist/LabelTextField.d.ts +0 -1
  203. package/dist/LabelTextField.es.js +0 -100
  204. package/dist/MonthPicker.d.ts +0 -1
  205. package/dist/MonthPicker.es.js +0 -16
  206. package/dist/MultiSelect.d.ts +0 -1
  207. package/dist/MultiSelect.es.js +0 -425
  208. package/dist/Notification.d.ts +0 -1
  209. package/dist/Notification.es.js +0 -12
  210. package/dist/Pagination.d.ts +0 -1
  211. package/dist/Pagination.es.js +0 -219
  212. package/dist/Picker.d.ts +0 -1
  213. package/dist/Picker.es.js +0 -224
  214. package/dist/Popover.d.ts +0 -1
  215. package/dist/Popover.es.js +0 -107
  216. package/dist/Popup.d.ts +0 -1
  217. package/dist/Popup.es.js +0 -62
  218. package/dist/ProTable-7a07d8b6.js +0 -565
  219. package/dist/RadioButton.d.ts +0 -1
  220. package/dist/RadioButton.es.js +0 -152
  221. package/dist/Select.d.ts +0 -1
  222. package/dist/Select.es.js +0 -316
  223. package/dist/Sortable.d.ts +0 -1
  224. package/dist/Sortable.es.js +0 -39
  225. package/dist/Switch.d.ts +0 -1
  226. package/dist/Switch.es.js +0 -64
  227. package/dist/Tab.d.ts +0 -1
  228. package/dist/Tab.es.js +0 -101
  229. package/dist/Table.d.ts +0 -1
  230. package/dist/Table.es.js +0 -359
  231. package/dist/TextField.d.ts +0 -1
  232. package/dist/TextField.es.js +0 -64
  233. package/dist/TextSelect.d.ts +0 -1
  234. package/dist/TextSelect.es.js +0 -17
  235. package/dist/Textarea.d.ts +0 -1
  236. package/dist/Textarea.es.js +0 -106
  237. package/dist/Toast.d.ts +0 -1
  238. package/dist/Toast.es.js +0 -12
  239. package/dist/Tooltip.d.ts +0 -1
  240. package/dist/Tooltip.es.js +0 -144
  241. package/dist/Typography.d.ts +0 -1
  242. package/dist/Typography.es.js +0 -74
  243. package/dist/_commonjsHelpers-1d52fb73.js +0 -9
  244. package/dist/arrow-down-011b02c7.js +0 -6
  245. package/dist/arrow-down-l-line-97e4fe24.js +0 -6
  246. package/dist/arrow-fill-70becd96.js +0 -6
  247. package/dist/arrow-right-l-line-87881b4d.js +0 -7
  248. package/dist/close-bg-6d2211ef.js +0 -6
  249. package/dist/clsx.m-e965ef18.js +0 -22
  250. package/dist/components/CssDropdown/index.d.ts +0 -2
  251. package/dist/components/DatePickerRange/index.d.ts +0 -4
  252. package/dist/components/DateTimePicker/index.d.ts +0 -4
  253. package/dist/components/Dropdown/index.d.ts +0 -2
  254. package/dist/components/Empty/Empty.d.ts +0 -5
  255. package/dist/components/MonthPicker/MonthPicker.d.ts +0 -17
  256. package/dist/components/MultiSelect/index.d.ts +0 -2
  257. package/dist/components/Notification/index.d.ts +0 -2
  258. package/dist/components/Pagination/index.d.ts +0 -3
  259. package/dist/components/Picker/Picker.d.ts +0 -10
  260. package/dist/components/Popover/index.d.ts +0 -5
  261. package/dist/components/Popup/Popup.d.ts +0 -15
  262. package/dist/components/Sortable/Sortable.d.ts +0 -11
  263. package/dist/components/Switch/index.d.ts +0 -2
  264. package/dist/components/Tab/index.d.ts +0 -4
  265. package/dist/components/TextSelect/index.d.ts +0 -2
  266. package/dist/components/Textarea/Textarea.d.ts +0 -15
  267. package/dist/components/Toast/index.d.ts +0 -2
  268. package/dist/components/Tooltip/index.d.ts +0 -2
  269. package/dist/components/Typography/index.d.ts +0 -4
  270. package/dist/enum-0398044b.js +0 -17
  271. package/dist/helper-221987f8.js +0 -7
  272. package/dist/index-293f8244.js +0 -49
  273. package/dist/index-40023d52.js +0 -5322
  274. package/dist/index-4528ba11.js +0 -49
  275. package/dist/index-596c785d.js +0 -50
  276. package/dist/index-67554651.js +0 -49
  277. package/dist/index-9349bf2d.js +0 -345
  278. package/dist/index-b7027a1d.js +0 -1295
  279. package/dist/index-c57db938.js +0 -37
  280. package/dist/index-eea69add.js +0 -71
  281. package/dist/index.esm-71578db5.js +0 -1198
  282. package/dist/index.module-1d7bbdf8.js +0 -7
  283. package/dist/index.module-86edc823.js +0 -15
  284. package/dist/index.module-b4239ff5.js +0 -9
  285. package/dist/index.module-fb41ba3b.js +0 -39
  286. package/dist/locales-776f0072.js +0 -440
  287. package/dist/search-b79a3be5.js +0 -6
  288. package/dist/sortable.esm-1c13d908.js +0 -2896
  289. package/dist/sortable.esm-8d31c120.js +0 -1275
  290. package/dist/styles-85a9fe64.js +0 -136
  291. package/dist/useAlign-916ed3be.js +0 -44
  292. package/dist/useDelayEvent-f577f6a3.js +0 -1082
  293. package/dist/useTheme-0688f238.js +0 -16
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import { ReactNode } from "react";
2
2
  import { CustomFields } from "../../types/component";
3
3
  import { InputSize } from "../TextField/TextField";
4
4
  interface Options extends CustomFields {
@@ -22,34 +22,34 @@ export interface TextSelectProps {
22
22
  hideEndAdornment?: boolean;
23
23
  readOnly?: boolean;
24
24
  scrollContainer?: HTMLDivElement | null;
25
- children?: React.ReactElement | React.ReactNode;
25
+ children?: JSX.Element | ReactNode;
26
26
  auto?: boolean;
27
27
  search?: boolean;
28
28
  searchChange?: (value: string) => void;
29
29
  searchClassName?: string;
30
- startAdornment?: React.ReactNode;
31
- customSelectItems?: (item: Options) => React.ReactNode;
30
+ startAdornment?: ReactNode;
31
+ customSelectItems?: (item: Options) => ReactNode;
32
32
  selectItemClassName?: string;
33
33
  hideSelectedState?: boolean;
34
34
  offsetPixels?: number;
35
35
  preventDuplicateSelection?: boolean;
36
36
  inputDisabled?: boolean;
37
37
  base?: "input" | "div";
38
- customLabel?: (item: Options) => React.ReactNode;
38
+ customLabel?: (item: Options) => ReactNode;
39
39
  error?: boolean;
40
40
  size?: InputSize;
41
41
  highlightMode?: "text" | "background";
42
42
  preventHideFun?: boolean;
43
43
  variant?: "fill" | "line";
44
44
  }
45
- declare const Options: React.ForwardRefExoticComponent<Omit<TextSelectProps, "placeholder"> & {
45
+ declare const Options: import("react").ForwardRefExoticComponent<Omit<TextSelectProps, "placeholder"> & {
46
46
  className?: string | undefined;
47
47
  parent: HTMLDivElement | null;
48
48
  hide: () => void;
49
- } & React.RefAttributes<HTMLDivElement>>;
49
+ } & import("react").RefAttributes<HTMLDivElement>>;
50
50
  export interface TextSelectRefProps {
51
51
  close: () => void;
52
52
  clear: () => void;
53
53
  }
54
- declare const TextSelect: React.ForwardRefExoticComponent<TextSelectProps & React.RefAttributes<TextSelectRefProps>>;
54
+ declare const TextSelect: import("react").ForwardRefExoticComponent<TextSelectProps & import("react").RefAttributes<TextSelectRefProps>>;
55
55
  export { TextSelect };
@@ -1,2 +1,15 @@
1
- import { TextArea } from "./Textarea";
2
- export { TextArea };
1
+ import { ReactNode } from "react";
2
+ import { BUITheme } from "../../types/component";
3
+ export interface TextareaProps extends React.InputHTMLAttributes<HTMLTextAreaElement> {
4
+ label?: ReactNode;
5
+ theme?: BUITheme;
6
+ endAdornment?: ReactNode;
7
+ disabled?: boolean;
8
+ error?: boolean;
9
+ helperText?: string;
10
+ row?: number;
11
+ className?: string;
12
+ wrapperClassName?: string;
13
+ }
14
+ declare const TextArea: import("react").ForwardRefExoticComponent<TextareaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
15
+ export default TextArea;
@@ -1,2 +1,13 @@
1
- import * as React from "react";
2
- export declare const Toast: () => React.ReactPortal;
1
+ import React from "react";
2
+ import { BUIComponentType, BUITheme } from "../../types/component";
3
+ interface ToastMsgProps {
4
+ children: React.ReactNode;
5
+ type: BUIComponentType;
6
+ remove: () => void;
7
+ customTheme?: BUITheme;
8
+ }
9
+ export declare const Toast: {
10
+ (): React.ReactPortal;
11
+ open: (options: Omit<ToastMsgProps, "remove">) => () => void;
12
+ };
13
+ export {};
@@ -1,4 +1,4 @@
1
- import { BUITheme } from "../../types/component";
1
+ import { BUITheme } from "../..";
2
2
  import { BUIComponentType } from "../../types/component";
3
3
  declare const toastVariants: (props?: ({
4
4
  theme?: "light" | "dark" | null | undefined;
@@ -1,11 +1,11 @@
1
- import * as React from "react";
2
- import { BUITheme } from "../../types/component";
1
+ import { FC, ReactNode } from "react";
2
+ import { BUITheme } from "../..";
3
3
  import { TooltipPlacement } from "./type";
4
4
  interface TooltipProps {
5
5
  placement: TooltipPlacement;
6
6
  flipPlacement?: TooltipPlacement[];
7
7
  title?: string;
8
- content?: React.ReactNode;
8
+ content?: ReactNode;
9
9
  children?: React.ReactNode;
10
10
  isShow?: boolean;
11
11
  className?: string;
@@ -18,6 +18,7 @@ interface TooltipProps {
18
18
  * */
19
19
  y?: number;
20
20
  x?: number;
21
+ delayPositive?: boolean;
21
22
  }
22
- declare const Tooltip: React.FC<TooltipProps>;
23
+ declare const Tooltip: FC<TooltipProps>;
23
24
  export { Tooltip };
@@ -1,5 +1,5 @@
1
- import * as React from "react";
2
- import { BUITheme } from "../../types/component";
1
+ import React from "react";
2
+ import { BUITheme } from "../..";
3
3
  declare const TYPEOGRAPHY_TAGS: {
4
4
  h1: string;
5
5
  h2: string;
@@ -1,4 +1,4 @@
1
- import { BUITheme } from "../../types/component";
1
+ import { BUITheme } from "../..";
2
2
  export type TypographyTagType = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p";
3
3
  export type TypographyWeight = "regular" | "medium" | "bold";
4
4
  export type TypographyVariantsType = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "subtitle1" | "subtitle2" | "subtitle3" | "body1" | "body2" | "body3" | "body4";
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export default function useLatest<T>(value: T): import("react").RefObject<T>;
2
+ export default function useLatest<T>(value: T): import("react").MutableRefObject<T>;
@@ -1,10 +1,12 @@
1
1
  import { configType } from "../provider/NoticeProvider";
2
2
  declare const useNotification: () => {
3
3
  methods: {
4
- info: (config: configType) => void;
5
- success: (config: configType) => void;
6
- warning: (config: configType) => void;
7
- danger: (config: configType) => void;
4
+ info: (config: configType) => number;
5
+ success: (config: configType) => number;
6
+ warning: (config: configType) => number;
7
+ danger: (config: configType) => number;
8
+ loading: (config: configType) => number;
9
+ remove: (id: number) => void;
8
10
  };
9
11
  };
10
- export { useNotification };
12
+ export default useNotification;
@@ -6,4 +6,4 @@ declare const useToast: () => {
6
6
  danger: (config: string) => void;
7
7
  };
8
8
  };
9
- export { useToast };
9
+ export default useToast;
@@ -1,6 +1,21 @@
1
- "use client";
2
- import { a as d, t as l, b as s, c as h, d as u } from "./index-b7027a1d.js";
3
- import { i as m } from "./index-5e6ffc2f.js";
1
+ import { a as d, t as c, b as s, c as h, d as u } from "./index-5956ed9f.js";
2
+ import { i as l } from "./index-7e7cdd81.js";
3
+ import "./Badge.es.js";
4
+ import "./jsx-runtime-82a9ddf6.js";
5
+ import "react";
6
+ import "./clsx.m-b14a941b.js";
7
+ import "./utils-cacf528c.js";
8
+ import "./index-7272669e.js";
9
+ import "./Button.es.js";
10
+ import "./isObjectLike-1b8bbac2.js";
11
+ import "./index-40626e62.js";
12
+ import "react-dom";
13
+ import "./close-c67ec245.js";
14
+ import "./Drawer.es.js";
15
+ import "./Slider.es.js";
16
+ import "./index-95c68eda.js";
17
+ import "./ProTable-63e2c020.js";
18
+ import "./Divider.es.js";
4
19
  var v = {
5
20
  lessThanXSeconds: {
6
21
  one: "по-малко от секунда",
@@ -67,37 +82,37 @@ var v = {
67
82
  var r, n = v[e];
68
83
  return typeof n == "string" ? r = n : i === 1 ? r = n.one : r = n.other.replace("{{count}}", String(i)), t != null && t.addSuffix ? t.comparison && t.comparison > 0 ? "след " + r : "преди " + r : r;
69
84
  };
70
- const b = y;
71
- var P = {
85
+ const p = y;
86
+ var b = {
72
87
  full: "EEEE, dd MMMM yyyy",
73
88
  long: "dd MMMM yyyy",
74
89
  medium: "dd MMM yyyy",
75
90
  short: "dd/MM/yyyy"
76
- }, w = {
91
+ }, P = {
77
92
  full: "HH:mm:ss zzzz",
78
93
  long: "HH:mm:ss z",
79
94
  medium: "HH:mm:ss",
80
95
  short: "H:mm"
81
- }, W = {
96
+ }, w = {
82
97
  any: "{{date}} {{time}}"
83
- }, k = {
98
+ }, W = {
84
99
  date: d({
85
- formats: P,
100
+ formats: b,
86
101
  defaultWidth: "full"
87
102
  }),
88
103
  time: d({
89
- formats: w,
104
+ formats: P,
90
105
  defaultWidth: "full"
91
106
  }),
92
107
  dateTime: d({
93
- formats: W,
108
+ formats: w,
94
109
  defaultWidth: "any"
95
110
  })
96
111
  };
97
- const p = k;
98
- var c = ["неделя", "понеделник", "вторник", "сряда", "четвъртък", "петък", "събота"];
112
+ const k = W;
113
+ var m = ["неделя", "понеделник", "вторник", "сряда", "четвъртък", "петък", "събота"];
99
114
  function M(a) {
100
- var e = c[a];
115
+ var e = m[a];
101
116
  switch (a) {
102
117
  case 0:
103
118
  case 3:
@@ -111,11 +126,11 @@ function M(a) {
111
126
  }
112
127
  }
113
128
  function f(a) {
114
- var e = c[a];
129
+ var e = m[a];
115
130
  return a === 2 ? "'във " + e + " в' p" : "'в " + e + " в' p";
116
131
  }
117
132
  function g(a) {
118
- var e = c[a];
133
+ var e = m[a];
119
134
  switch (a) {
120
135
  case 0:
121
136
  case 3:
@@ -129,11 +144,11 @@ function g(a) {
129
144
  }
130
145
  }
131
146
  var x = function(e, i, t) {
132
- var r = l(e), n = r.getUTCDay();
133
- return m(r, i, t) ? f(n) : M(n);
147
+ var r = c(e), n = r.getUTCDay();
148
+ return l(r, i, t) ? f(n) : M(n);
134
149
  }, D = function(e, i, t) {
135
- var r = l(e), n = r.getUTCDay();
136
- return m(r, i, t) ? f(n) : g(n);
150
+ var r = c(e), n = r.getUTCDay();
151
+ return l(r, i, t) ? f(n) : g(n);
137
152
  }, F = {
138
153
  lastWeek: x,
139
154
  yesterday: "'вчера в' p",
@@ -312,10 +327,10 @@ var q = /^(\d+)(-?[врмт][аи]|-?т?(ен|на)|-?(ев|ева))?/i, Y = /\d
312
327
  })
313
328
  };
314
329
  const _ = Z;
315
- var te = {
330
+ var be = {
316
331
  code: "bg",
317
- formatDistance: b,
318
- formatLong: p,
332
+ formatDistance: p,
333
+ formatLong: k,
319
334
  formatRelative: C,
320
335
  localize: $,
321
336
  match: _,
@@ -325,5 +340,5 @@ var te = {
325
340
  }
326
341
  };
327
342
  export {
328
- te as default
343
+ be as default
329
344
  };
@@ -1,19 +1,34 @@
1
- "use client";
2
- import { a as v, b as o, c as g, d as l } from "./index-b7027a1d.js";
3
- import { i as d } from "./index-5e6ffc2f.js";
4
- function s(a, e) {
5
- if (a.one !== void 0 && e === 1)
6
- return a.one;
7
- var i = e % 10, t = e % 100;
8
- return i === 1 && t !== 11 ? a.singularNominative.replace("{{count}}", String(e)) : i >= 2 && i <= 4 && (t < 10 || t > 20) ? a.singularGenitive.replace("{{count}}", String(e)) : a.pluralGenitive.replace("{{count}}", String(e));
1
+ import { a as v, b as o, c as g, d as l } from "./index-5956ed9f.js";
2
+ import { i as m } from "./index-7e7cdd81.js";
3
+ import "./Badge.es.js";
4
+ import "./jsx-runtime-82a9ddf6.js";
5
+ import "react";
6
+ import "./clsx.m-b14a941b.js";
7
+ import "./utils-cacf528c.js";
8
+ import "./index-7272669e.js";
9
+ import "./Button.es.js";
10
+ import "./isObjectLike-1b8bbac2.js";
11
+ import "./index-40626e62.js";
12
+ import "react-dom";
13
+ import "./close-c67ec245.js";
14
+ import "./Drawer.es.js";
15
+ import "./Slider.es.js";
16
+ import "./index-95c68eda.js";
17
+ import "./ProTable-63e2c020.js";
18
+ import "./Divider.es.js";
19
+ function s(i, e) {
20
+ if (i.one !== void 0 && e === 1)
21
+ return i.one;
22
+ var a = e % 10, n = e % 100;
23
+ return a === 1 && n !== 11 ? i.singularNominative.replace("{{count}}", String(e)) : a >= 2 && a <= 4 && (n < 10 || n > 20) ? i.singularGenitive.replace("{{count}}", String(e)) : i.pluralGenitive.replace("{{count}}", String(e));
9
24
  }
10
- function n(a) {
11
- return function(e, i) {
12
- return i != null && i.addSuffix ? i.comparison && i.comparison > 0 ? a.future ? s(a.future, e) : "через " + s(a.regular, e) : a.past ? s(a.past, e) : s(a.regular, e) + " назад" : s(a.regular, e);
25
+ function t(i) {
26
+ return function(e, a) {
27
+ return a != null && a.addSuffix ? a.comparison && a.comparison > 0 ? i.future ? s(i.future, e) : "через " + s(i.regular, e) : i.past ? s(i.past, e) : s(i.regular, e) + " назад" : s(i.regular, e);
13
28
  };
14
29
  }
15
30
  var f = {
16
- lessThanXSeconds: n({
31
+ lessThanXSeconds: t({
17
32
  regular: {
18
33
  one: "меньше секунды",
19
34
  singularNominative: "меньше {{count}} секунды",
@@ -27,7 +42,7 @@ var f = {
27
42
  pluralGenitive: "меньше, чем через {{count}} секунд"
28
43
  }
29
44
  }),
30
- xSeconds: n({
45
+ xSeconds: t({
31
46
  regular: {
32
47
  singularNominative: "{{count}} секунда",
33
48
  singularGenitive: "{{count}} секунды",
@@ -44,10 +59,10 @@ var f = {
44
59
  pluralGenitive: "через {{count}} секунд"
45
60
  }
46
61
  }),
47
- halfAMinute: function(e, i) {
48
- return i != null && i.addSuffix ? i.comparison && i.comparison > 0 ? "через полминуты" : "полминуты назад" : "полминуты";
62
+ halfAMinute: function(e, a) {
63
+ return a != null && a.addSuffix ? a.comparison && a.comparison > 0 ? "через полминуты" : "полминуты назад" : "полминуты";
49
64
  },
50
- lessThanXMinutes: n({
65
+ lessThanXMinutes: t({
51
66
  regular: {
52
67
  one: "меньше минуты",
53
68
  singularNominative: "меньше {{count}} минуты",
@@ -61,7 +76,7 @@ var f = {
61
76
  pluralGenitive: "меньше, чем через {{count}} минут"
62
77
  }
63
78
  }),
64
- xMinutes: n({
79
+ xMinutes: t({
65
80
  regular: {
66
81
  singularNominative: "{{count}} минута",
67
82
  singularGenitive: "{{count}} минуты",
@@ -78,7 +93,7 @@ var f = {
78
93
  pluralGenitive: "через {{count}} минут"
79
94
  }
80
95
  }),
81
- aboutXHours: n({
96
+ aboutXHours: t({
82
97
  regular: {
83
98
  singularNominative: "около {{count}} часа",
84
99
  singularGenitive: "около {{count}} часов",
@@ -90,21 +105,21 @@ var f = {
90
105
  pluralGenitive: "приблизительно через {{count}} часов"
91
106
  }
92
107
  }),
93
- xHours: n({
108
+ xHours: t({
94
109
  regular: {
95
110
  singularNominative: "{{count}} час",
96
111
  singularGenitive: "{{count}} часа",
97
112
  pluralGenitive: "{{count}} часов"
98
113
  }
99
114
  }),
100
- xDays: n({
115
+ xDays: t({
101
116
  regular: {
102
117
  singularNominative: "{{count}} день",
103
118
  singularGenitive: "{{count}} дня",
104
119
  pluralGenitive: "{{count}} дней"
105
120
  }
106
121
  }),
107
- aboutXWeeks: n({
122
+ aboutXWeeks: t({
108
123
  regular: {
109
124
  singularNominative: "около {{count}} недели",
110
125
  singularGenitive: "около {{count}} недель",
@@ -116,14 +131,14 @@ var f = {
116
131
  pluralGenitive: "приблизительно через {{count}} недель"
117
132
  }
118
133
  }),
119
- xWeeks: n({
134
+ xWeeks: t({
120
135
  regular: {
121
136
  singularNominative: "{{count}} неделя",
122
137
  singularGenitive: "{{count}} недели",
123
138
  pluralGenitive: "{{count}} недель"
124
139
  }
125
140
  }),
126
- aboutXMonths: n({
141
+ aboutXMonths: t({
127
142
  regular: {
128
143
  singularNominative: "около {{count}} месяца",
129
144
  singularGenitive: "около {{count}} месяцев",
@@ -135,14 +150,14 @@ var f = {
135
150
  pluralGenitive: "приблизительно через {{count}} месяцев"
136
151
  }
137
152
  }),
138
- xMonths: n({
153
+ xMonths: t({
139
154
  regular: {
140
155
  singularNominative: "{{count}} месяц",
141
156
  singularGenitive: "{{count}} месяца",
142
157
  pluralGenitive: "{{count}} месяцев"
143
158
  }
144
159
  }),
145
- aboutXYears: n({
160
+ aboutXYears: t({
146
161
  regular: {
147
162
  singularNominative: "около {{count}} года",
148
163
  singularGenitive: "около {{count}} лет",
@@ -154,14 +169,14 @@ var f = {
154
169
  pluralGenitive: "приблизительно через {{count}} лет"
155
170
  }
156
171
  }),
157
- xYears: n({
172
+ xYears: t({
158
173
  regular: {
159
174
  singularNominative: "{{count}} год",
160
175
  singularGenitive: "{{count}} года",
161
176
  pluralGenitive: "{{count}} лет"
162
177
  }
163
178
  }),
164
- overXYears: n({
179
+ overXYears: t({
165
180
  regular: {
166
181
  singularNominative: "больше {{count}} года",
167
182
  singularGenitive: "больше {{count}} лет",
@@ -173,7 +188,7 @@ var f = {
173
188
  pluralGenitive: "больше, чем через {{count}} лет"
174
189
  }
175
190
  }),
176
- almostXYears: n({
191
+ almostXYears: t({
177
192
  regular: {
178
193
  singularNominative: "почти {{count}} год",
179
194
  singularGenitive: "почти {{count}} года",
@@ -185,10 +200,10 @@ var f = {
185
200
  pluralGenitive: "почти через {{count}} лет"
186
201
  }
187
202
  })
188
- }, h = function(e, i, t) {
189
- return f[e](i, t);
203
+ }, p = function(e, a, n) {
204
+ return f[e](a, n);
190
205
  };
191
- const p = h;
206
+ const h = p;
192
207
  var G = {
193
208
  full: "EEEE, d MMMM y 'г.'",
194
209
  long: "d MMMM y 'г.'",
@@ -217,9 +232,9 @@ var G = {
217
232
  };
218
233
  const P = y;
219
234
  var c = ["воскресенье", "понедельник", "вторник", "среду", "четверг", "пятницу", "субботу"];
220
- function N(a) {
221
- var e = c[a];
222
- switch (a) {
235
+ function N(i) {
236
+ var e = c[i];
237
+ switch (i) {
223
238
  case 0:
224
239
  return "'в прошлое " + e + " в' p";
225
240
  case 1:
@@ -232,13 +247,13 @@ function N(a) {
232
247
  return "'в прошлую " + e + " в' p";
233
248
  }
234
249
  }
235
- function m(a) {
236
- var e = c[a];
237
- return a === 2 ? "'во " + e + " в' p" : "'в " + e + " в' p";
250
+ function d(i) {
251
+ var e = c[i];
252
+ return i === 2 ? "'во " + e + " в' p" : "'в " + e + " в' p";
238
253
  }
239
- function W(a) {
240
- var e = c[a];
241
- switch (a) {
254
+ function W(i) {
255
+ var e = c[i];
256
+ switch (i) {
242
257
  case 0:
243
258
  return "'в следующее " + e + " в' p";
244
259
  case 1:
@@ -252,21 +267,21 @@ function W(a) {
252
267
  }
253
268
  }
254
269
  var M = {
255
- lastWeek: function(e, i, t) {
270
+ lastWeek: function(e, a, n) {
256
271
  var r = e.getUTCDay();
257
- return d(e, i, t) ? m(r) : N(r);
272
+ return m(e, a, n) ? d(r) : N(r);
258
273
  },
259
274
  yesterday: "'вчера в' p",
260
275
  today: "'сегодня в' p",
261
276
  tomorrow: "'завтра в' p",
262
- nextWeek: function(e, i, t) {
277
+ nextWeek: function(e, a, n) {
263
278
  var r = e.getUTCDay();
264
- return d(e, i, t) ? m(r) : W(r);
279
+ return m(e, a, n) ? d(r) : W(r);
265
280
  },
266
281
  other: "P"
267
- }, k = function(e, i, t, r) {
282
+ }, k = function(e, a, n, r) {
268
283
  var u = M[e];
269
- return typeof u == "function" ? u(i, t, r) : u;
284
+ return typeof u == "function" ? u(a, n, r) : u;
270
285
  };
271
286
  const x = k;
272
287
  var D = {
@@ -352,9 +367,9 @@ var D = {
352
367
  evening: "вечера",
353
368
  night: "ночи"
354
369
  }
355
- }, T = function(e, i) {
356
- var t = Number(e), r = i == null ? void 0 : i.unit, u;
357
- return r === "date" ? u = "-е" : r === "week" || r === "minute" || r === "second" ? u = "-я" : u = "-й", t + u;
370
+ }, T = function(e, a) {
371
+ var n = Number(e), r = a == null ? void 0 : a.unit, u;
372
+ return r === "date" ? u = "-е" : r === "week" || r === "minute" || r === "second" ? u = "-я" : u = "-й", n + u;
358
373
  }, X = {
359
374
  ordinalNumber: T,
360
375
  era: o({
@@ -471,9 +486,9 @@ var H = /^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i, R = /\
471
486
  })
472
487
  };
473
488
  const J = B;
474
- var ee = {
489
+ var pe = {
475
490
  code: "ru",
476
- formatDistance: p,
491
+ formatDistance: h,
477
492
  formatLong: P,
478
493
  formatRelative: x,
479
494
  localize: E,
@@ -484,5 +499,5 @@ var ee = {
484
499
  }
485
500
  };
486
501
  export {
487
- ee as default
502
+ pe as default
488
503
  };
@@ -1,6 +1,21 @@
1
- "use client";
2
- import { f as i, a as o, b as m, m as g } from "./index-ef31f5f8.js";
3
- import { b as a } from "./index-b7027a1d.js";
1
+ import { f as i, a as o, b as m, m as g } from "./index-fcb1ec65.js";
2
+ import { b as a } from "./index-5956ed9f.js";
3
+ import "./Badge.es.js";
4
+ import "./jsx-runtime-82a9ddf6.js";
5
+ import "react";
6
+ import "./clsx.m-b14a941b.js";
7
+ import "./utils-cacf528c.js";
8
+ import "./index-7272669e.js";
9
+ import "./Button.es.js";
10
+ import "./isObjectLike-1b8bbac2.js";
11
+ import "./index-40626e62.js";
12
+ import "react-dom";
13
+ import "./close-c67ec245.js";
14
+ import "./Drawer.es.js";
15
+ import "./Slider.es.js";
16
+ import "./index-95c68eda.js";
17
+ import "./ProTable-63e2c020.js";
18
+ import "./Divider.es.js";
4
19
  var d = {
5
20
  narrow: ["v.Chr.", "n.Chr."],
6
21
  abbreviated: ["v.Chr.", "n.Chr."],
@@ -9,14 +24,14 @@ var d = {
9
24
  narrow: ["1", "2", "3", "4"],
10
25
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
11
26
  wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"]
12
- }, n = {
27
+ }, r = {
13
28
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
14
29
  abbreviated: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
15
30
  wide: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]
16
31
  }, u = {
17
- narrow: n.narrow,
32
+ narrow: r.narrow,
18
33
  abbreviated: ["Jan.", "Feb.", "März", "Apr.", "Mai", "Juni", "Juli", "Aug.", "Sep.", "Okt.", "Nov.", "Dez."],
19
- wide: n.wide
34
+ wide: r.wide
20
35
  }, s = {
21
36
  narrow: ["S", "M", "D", "M", "D", "F", "S"],
22
37
  short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
@@ -85,8 +100,8 @@ var d = {
85
100
  night: "nachts"
86
101
  }
87
102
  }, c = function(t) {
88
- var r = Number(t);
89
- return r + ".";
103
+ var e = Number(t);
104
+ return e + ".";
90
105
  }, b = {
91
106
  ordinalNumber: c,
92
107
  era: a({
@@ -101,7 +116,7 @@ var d = {
101
116
  }
102
117
  }),
103
118
  month: a({
104
- values: n,
119
+ values: r,
105
120
  formattingValues: u,
106
121
  defaultWidth: "wide"
107
122
  }),
@@ -116,13 +131,13 @@ var d = {
116
131
  defaultFormattingWidth: "wide"
117
132
  })
118
133
  };
119
- const M = b;
120
- var p = {
134
+ const p = b;
135
+ var P = {
121
136
  code: "de",
122
137
  formatDistance: i,
123
138
  formatLong: o,
124
139
  formatRelative: m,
125
- localize: M,
140
+ localize: p,
126
141
  match: g,
127
142
  options: {
128
143
  weekStartsOn: 1,
@@ -130,5 +145,5 @@ var p = {
130
145
  }
131
146
  };
132
147
  export {
133
- p as default
148
+ P as default
134
149
  };