@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.
Files changed (292) hide show
  1. package/dist/Badge.es.js +23 -20
  2. package/dist/Button.es.js +126 -123
  3. package/dist/Calendar.d.ts +1 -0
  4. package/dist/Calendar.es.js +210 -0
  5. package/dist/Checkbox.d.ts +1 -0
  6. package/dist/Checkbox.es.js +138 -0
  7. package/dist/CssDropdown.d.ts +1 -0
  8. package/dist/CssDropdown.es.js +38 -0
  9. package/dist/DatePickerRange.d.ts +1 -0
  10. package/dist/DatePickerRange.es.js +410 -0
  11. package/dist/DateTimePicker.d.ts +1 -0
  12. package/dist/DateTimePicker.es.js +519 -0
  13. package/dist/Dialog.es.js +180 -9
  14. package/dist/Divider.es.js +11 -8
  15. package/dist/Drawer.es.js +43 -49
  16. package/dist/Dropdown.d.ts +1 -0
  17. package/dist/Dropdown.es.js +134 -0
  18. package/dist/Empty.d.ts +1 -0
  19. package/dist/Empty.es.js +11 -0
  20. package/dist/LabelTextField.d.ts +1 -0
  21. package/dist/LabelTextField.es.js +100 -0
  22. package/dist/MonthPicker.d.ts +1 -0
  23. package/dist/MonthPicker.es.js +16 -0
  24. package/dist/MultiSelect.d.ts +1 -0
  25. package/dist/MultiSelect.es.js +425 -0
  26. package/dist/Notification.d.ts +1 -0
  27. package/dist/Notification.es.js +12 -0
  28. package/dist/Pagination.d.ts +1 -0
  29. package/dist/Pagination.es.js +219 -0
  30. package/dist/Picker.d.ts +1 -0
  31. package/dist/Picker.es.js +224 -0
  32. package/dist/Popover.d.ts +1 -0
  33. package/dist/Popover.es.js +107 -0
  34. package/dist/Popup.d.ts +1 -0
  35. package/dist/Popup.es.js +62 -0
  36. package/dist/ProTable-7a07d8b6.js +565 -0
  37. package/dist/ProTable.es.js +9 -5
  38. package/dist/RadioButton.d.ts +1 -0
  39. package/dist/RadioButton.es.js +152 -0
  40. package/dist/Select.d.ts +1 -0
  41. package/dist/Select.es.js +316 -0
  42. package/dist/Slider.es.js +141 -139
  43. package/dist/Sort.d.ts +1 -0
  44. package/dist/Sort.es.js +146 -0
  45. package/dist/Sortable.d.ts +1 -0
  46. package/dist/Sortable.es.js +39 -0
  47. package/dist/Switch.d.ts +1 -0
  48. package/dist/Switch.es.js +64 -0
  49. package/dist/Tab.d.ts +1 -0
  50. package/dist/Tab.es.js +101 -0
  51. package/dist/Table.d.ts +1 -0
  52. package/dist/Table.es.js +359 -0
  53. package/dist/TextField.d.ts +1 -0
  54. package/dist/TextField.es.js +64 -0
  55. package/dist/TextSelect.d.ts +1 -0
  56. package/dist/TextSelect.es.js +17 -0
  57. package/dist/Textarea.d.ts +1 -0
  58. package/dist/Textarea.es.js +106 -0
  59. package/dist/Toast.d.ts +1 -0
  60. package/dist/Toast.es.js +12 -0
  61. package/dist/Tooltip.d.ts +1 -0
  62. package/dist/Tooltip.es.js +144 -0
  63. package/dist/Typography.d.ts +1 -0
  64. package/dist/Typography.es.js +74 -0
  65. package/dist/_commonjsHelpers-1d52fb73.js +9 -0
  66. package/dist/arrow-down-011b02c7.js +6 -0
  67. package/dist/arrow-down-l-line-97e4fe24.js +6 -0
  68. package/dist/arrow-fill-70becd96.js +6 -0
  69. package/dist/arrow-right-l-line-87881b4d.js +7 -0
  70. package/dist/blofin.css +1 -1
  71. package/dist/{close-c67ec245.js → close-0df24351.js} +1 -0
  72. package/dist/close-bg-6d2211ef.js +6 -0
  73. package/dist/clsx.m-e965ef18.js +22 -0
  74. package/dist/components/Alert/Alert.d.ts +3 -3
  75. package/dist/components/Alert/styles.d.ts +2 -2
  76. package/dist/components/Badge/Badge.d.ts +2 -2
  77. package/dist/components/Button/Button.d.ts +2 -2
  78. package/dist/components/Button/Loading/index.d.ts +2 -2
  79. package/dist/components/Button/index.d.ts +2 -0
  80. package/dist/components/Button/styles.d.ts +1 -1
  81. package/dist/components/Checkbox/styles.d.ts +1 -1
  82. package/dist/components/CssDropdown/CssDropdown.d.ts +3 -3
  83. package/dist/components/CssDropdown/index.d.ts +2 -0
  84. package/dist/components/DatePickerRange/index.d.ts +4 -0
  85. package/dist/components/DatePickerRange/styles.d.ts +0 -1
  86. package/dist/components/DateTimePicker/ScrollableList.d.ts +1 -1
  87. package/dist/components/DateTimePicker/index.d.ts +4 -0
  88. package/dist/components/Dialog/Dialog.d.ts +5 -2
  89. package/dist/components/Dialog/index.d.ts +4 -2
  90. package/dist/components/Dialog/styles.d.ts +2 -2
  91. package/dist/components/Drawer/Drawer.d.ts +1 -1
  92. package/dist/components/Dropdown/Dropdown.d.ts +2 -2
  93. package/dist/components/Dropdown/index.d.ts +2 -0
  94. package/dist/components/Empty/Empty.d.ts +5 -0
  95. package/dist/components/Empty/index.d.ts +2 -5
  96. package/dist/components/LabelTextField/LabelTextField.d.ts +6 -6
  97. package/dist/components/MonthPicker/MonthPicker.d.ts +17 -0
  98. package/dist/components/MonthPicker/index.d.ts +2 -17
  99. package/dist/components/MultiSelect/MultiSelect.d.ts +4 -4
  100. package/dist/components/MultiSelect/index.d.ts +2 -0
  101. package/dist/components/Notification/Notification.d.ts +1 -1
  102. package/dist/components/Notification/index.d.ts +2 -0
  103. package/dist/components/Pagination/PageOptions.d.ts +1 -1
  104. package/dist/components/Pagination/Pagination.d.ts +2 -2
  105. package/dist/components/Pagination/index.d.ts +3 -0
  106. package/dist/components/Picker/Picker.d.ts +10 -0
  107. package/dist/components/Picker/hooks/usePickerMethod.d.ts +1 -1
  108. package/dist/components/Picker/index.d.ts +2 -10
  109. package/dist/components/Popover/Popover.d.ts +1 -1
  110. package/dist/components/Popover/index.d.ts +5 -0
  111. package/dist/components/Popup/Popup.d.ts +15 -0
  112. package/dist/components/Popup/index.d.ts +4 -15
  113. package/dist/components/RadioButton/RadioButton.d.ts +4 -4
  114. package/dist/components/RadioButton/styles.d.ts +1 -1
  115. package/dist/components/Select/Select.d.ts +6 -9
  116. package/dist/components/Slider/Slider.d.ts +2 -2
  117. package/dist/components/Sort/SortButton.d.ts +5 -5
  118. package/dist/components/Sort/SortGroup.d.ts +4 -4
  119. package/dist/components/Sort/index.d.ts +5 -0
  120. package/dist/components/Sortable/SortItem.d.ts +4 -4
  121. package/dist/components/Sortable/Sortable.d.ts +11 -0
  122. package/dist/components/Sortable/index.d.ts +3 -11
  123. package/dist/components/Switch/Switch.d.ts +2 -2
  124. package/dist/components/Switch/index.d.ts +2 -0
  125. package/dist/components/Switch/styles.d.ts +3 -3
  126. package/dist/components/Tab/Tab.d.ts +2 -2
  127. package/dist/components/Tab/index.d.ts +4 -0
  128. package/dist/components/Tab/styles.d.ts +1 -1
  129. package/dist/components/Table/Pagination/index.d.ts +2 -2
  130. package/dist/components/Table/Table.d.ts +2 -2
  131. package/dist/components/Table/Tbody/index.d.ts +3 -3
  132. package/dist/components/Table/Thead/index.d.ts +3 -3
  133. package/dist/components/Table/context.d.ts +3 -3
  134. package/dist/components/Table/hooks/useStickyOffset.d.ts +2 -2
  135. package/dist/components/Table/index.d.ts +3 -3
  136. package/dist/components/Table/interface.d.ts +4 -4
  137. package/dist/components/TextField/TextField.d.ts +4 -4
  138. package/dist/components/TextField/index.d.ts +2 -0
  139. package/dist/components/TextSelect/TextSelect.d.ts +8 -8
  140. package/dist/components/TextSelect/index.d.ts +2 -0
  141. package/dist/components/Textarea/Textarea.d.ts +15 -0
  142. package/dist/components/Textarea/index.d.ts +2 -15
  143. package/dist/components/Toast/Toast.d.ts +2 -13
  144. package/dist/components/Toast/index.d.ts +2 -0
  145. package/dist/components/Toast/styles.d.ts +1 -1
  146. package/dist/components/Tooltip/Tooltip.d.ts +4 -5
  147. package/dist/components/Tooltip/index.d.ts +2 -0
  148. package/dist/components/Typography/Typography.d.ts +2 -2
  149. package/dist/components/Typography/index.d.ts +4 -0
  150. package/dist/components/Typography/styles.d.ts +1 -1
  151. package/dist/enum-0398044b.js +17 -0
  152. package/dist/helper-221987f8.js +7 -0
  153. package/dist/hooks/useLatest.d.ts +1 -1
  154. package/dist/hooks/useNotification.d.ts +5 -7
  155. package/dist/hooks/useToast.d.ts +1 -1
  156. package/dist/{index-0f855a91.js → index-0230b5a9.js} +5 -4
  157. package/dist/{index-c17e103a.js → index-02f669c4.js} +2 -1
  158. package/dist/{index-6fc4d1f4.js → index-03169373.js} +12 -25
  159. package/dist/{index-4ccb3e9c.js → index-03513979.js} +11 -24
  160. package/dist/{index-d5de8c20.js → index-03d6aef0.js} +13 -26
  161. package/dist/{index-a132ac63.js → index-06d0f2f7.js} +13 -26
  162. package/dist/{index-64f4d194.js → index-06ef2e10.js} +11 -24
  163. package/dist/{index-55a7fad3.js → index-08a64465.js} +11 -24
  164. package/dist/{index-659243c0.js → index-094d2a65.js} +19 -32
  165. package/dist/{index-e3570fb6.js → index-11268759.js} +18 -31
  166. package/dist/{index-0ab7162c.js → index-117d018c.js} +22 -35
  167. package/dist/{index-2e69928d.js → index-12d32536.js} +13 -26
  168. package/dist/{index-3c7614e3.js → index-141cec17.js} +14 -27
  169. package/dist/{index-207ff1e4.js → index-19d177fe.js} +16 -29
  170. package/dist/{index-cd93af19.js → index-1b2a64df.js} +26 -39
  171. package/dist/{index-b42b7f2a.js → index-2334248a.js} +9 -22
  172. package/dist/index-293f8244.js +49 -0
  173. package/dist/{index-d907bed0.js → index-29d37c73.js} +52 -65
  174. package/dist/{index-0228f85e.js → index-2ae0474b.js} +24 -37
  175. package/dist/{index-7f2a6d68.js → index-360aaaac.js} +28 -41
  176. package/dist/{index-789ea179.js → index-3ee2bafa.js} +15 -28
  177. package/dist/index-40023d52.js +5322 -0
  178. package/dist/{index-15cca5fd.js → index-40710f09.js} +17 -30
  179. package/dist/index-4528ba11.js +49 -0
  180. package/dist/{index-2ee3d9fd.js → index-4bc493f0.js} +4 -17
  181. package/dist/{index-2acdfe81.js → index-4c6ad36c.js} +32 -45
  182. package/dist/{index-f27785e7.js → index-4d780cf4.js} +22 -35
  183. package/dist/{index-87b93a08.js → index-4df0c3e4.js} +16 -29
  184. package/dist/{index-122d1ca2.js → index-4f94900a.js} +19 -32
  185. package/dist/{index-693a21bb.js → index-4f94d7fa.js} +22 -35
  186. package/dist/{index-1810cc68.js → index-57a163fd.js} +11 -24
  187. package/dist/index-596c785d.js +50 -0
  188. package/dist/{index-94ca2048.js → index-5beeed26.js} +23 -36
  189. package/dist/{index-54cbdaa4.js → index-5e6ffc2f.js} +2 -1
  190. package/dist/{index-9c669079.js → index-5fb7b3bc.js} +12 -25
  191. package/dist/{index-d914889d.js → index-60fe7f16.js} +13 -26
  192. package/dist/{index-7dfec241.js → index-63a66f13.js} +30 -43
  193. package/dist/index-67554651.js +49 -0
  194. package/dist/{index-b69e64e6.js → index-67678963.js} +22 -35
  195. package/dist/{index-523acf7a.js → index-6856be22.js} +21 -34
  196. package/dist/{index-0be486a6.js → index-6e969585.js} +27 -40
  197. package/dist/{index-cb3b96c6.js → index-6f728206.js} +9 -22
  198. package/dist/{index-2add17c1.js → index-6f963c6a.js} +20 -33
  199. package/dist/{index-a5251ade.js → index-73bfc020.js} +31 -44
  200. package/dist/{index-721120f3.js → index-75190b99.js} +7 -20
  201. package/dist/{index-70099dad.js → index-770e5f53.js} +12 -25
  202. package/dist/{index-f0b0c5fc.js → index-79e7317f.js} +12 -25
  203. package/dist/{index-312ee80f.js → index-7bb9ffdf.js} +3 -2
  204. package/dist/{index-013c5769.js → index-7cf9b111.js} +18 -31
  205. package/dist/{index-8d34dc76.js → index-7edb6aec.js} +19 -32
  206. package/dist/{index-0fa20e69.js → index-80cc70e4.js} +26 -39
  207. package/dist/{index-24112094.js → index-8585c2f3.js} +23 -36
  208. package/dist/{index-c1206eaf.js → index-898678dc.js} +21 -34
  209. package/dist/{index-fd4e070b.js → index-8aa9b1be.js} +24 -37
  210. package/dist/index-9349bf2d.js +345 -0
  211. package/dist/{index-dc3cd1ef.js → index-954d3973.js} +13 -26
  212. package/dist/{index-f5df4eec.js → index-956b36a6.js} +37 -50
  213. package/dist/{index-31004470.js → index-9c73c442.js} +45 -58
  214. package/dist/{index-887b08f6.js → index-9e5efc0a.js} +29 -42
  215. package/dist/{index-584c1de8.js → index-a6fa33ce.js} +13 -26
  216. package/dist/{index-2c3346b8.js → index-a89abb42.js} +4 -17
  217. package/dist/{index-0333ccf9.js → index-b0da3dfd.js} +14 -27
  218. package/dist/{index-fcb10f63.js → index-b103ed31.js} +12 -25
  219. package/dist/{index-9c3f8d80.js → index-b54ef52a.js} +16 -29
  220. package/dist/index-b7027a1d.js +1295 -0
  221. package/dist/{index-81a64a31.js → index-b7941b97.js} +8 -21
  222. package/dist/{index-b8e94395.js → index-c1381bca.js} +20 -33
  223. package/dist/index-c57db938.js +37 -0
  224. package/dist/{index-051b64c8.js → index-c6371af1.js} +10 -23
  225. package/dist/{index-a9c0f025.js → index-c69f6dfc.js} +19 -32
  226. package/dist/{index-e1f19bc5.js → index-cb1218d8.js} +10 -23
  227. package/dist/{index-c1b82aa9.js → index-cbc0d36b.js} +13 -26
  228. package/dist/{index-3b42042f.js → index-cc1cd309.js} +13 -26
  229. package/dist/{index-abb9f006.js → index-ceae4147.js} +12 -25
  230. package/dist/{index-b4116538.js → index-cfee583b.js} +21 -34
  231. package/dist/{index-7b28ddea.js → index-d2f2742e.js} +10 -23
  232. package/dist/{index-00d6276c.js → index-d3419554.js} +15 -28
  233. package/dist/{index-30f61bdc.js → index-d81e15f3.js} +19 -32
  234. package/dist/{index-40958da3.js → index-d86842c8.js} +17 -30
  235. package/dist/{index-46e4bfa3.js → index-e169373b.js} +10 -23
  236. package/dist/{index-aa5e48ef.js → index-e1a6a03d.js} +9 -22
  237. package/dist/{index-a45e1710.js → index-e2b960e4.js} +23 -36
  238. package/dist/{index-5648e9fa.js → index-e8fb69e0.js} +21 -34
  239. package/dist/{index-3b632a87.js → index-e98ef24f.js} +14 -27
  240. package/dist/{index-c6a5236d.js → index-e9a1ff7f.js} +4 -17
  241. package/dist/index-eea69add.js +71 -0
  242. package/dist/{index-9864c94e.js → index-ef31f5f8.js} +2 -1
  243. package/dist/{index-2e09190f.js → index-f1726c63.js} +11 -24
  244. package/dist/{index-d15a69b6.js → index-f40f45fb.js} +13 -26
  245. package/dist/{index-88d32101.js → index-f64eddcc.js} +16 -29
  246. package/dist/{index-44ed585d.js → index-f7c4ae83.js} +22 -35
  247. package/dist/{index-44b988bb.js → index-fda88eb4.js} +23 -36
  248. package/dist/{index-c58b598e.js → index-fdffd6e6.js} +14 -27
  249. package/dist/index.d.ts +36 -48
  250. package/dist/index.es.js +223 -53
  251. package/dist/index.esm-71578db5.js +1198 -0
  252. package/dist/index.module-1d7bbdf8.js +7 -0
  253. package/dist/index.module-86edc823.js +15 -0
  254. package/dist/index.module-b4239ff5.js +9 -0
  255. package/dist/index.module-fb41ba3b.js +39 -0
  256. package/dist/locales-776f0072.js +440 -0
  257. package/dist/provider/NoticeProvider.d.ts +1 -1
  258. package/dist/provider/ThemeProvider.d.ts +7 -3
  259. package/dist/provider/useTheme.d.ts +1 -1
  260. package/dist/search-b79a3be5.js +6 -0
  261. package/dist/sortable.esm-1c13d908.js +2896 -0
  262. package/dist/sortable.esm-8d31c120.js +1275 -0
  263. package/dist/styles-85a9fe64.js +136 -0
  264. package/dist/types/component.d.ts +1 -1
  265. package/dist/useAlign-916ed3be.js +44 -0
  266. package/dist/useDelayEvent-f577f6a3.js +1082 -0
  267. package/dist/useTheme-0688f238.js +16 -0
  268. package/dist/utils/helper.d.ts +1 -1
  269. package/dist/{utils-19b44377.js → utils-071abd68.js} +2 -1
  270. package/package.json +1 -1
  271. package/dist/Form.d.ts +0 -1
  272. package/dist/Form.es.js +0 -752
  273. package/dist/ProTable-079d6c86.js +0 -3443
  274. package/dist/components/Form/Control.d.ts +0 -13
  275. package/dist/components/Form/Form.d.ts +0 -4
  276. package/dist/components/Form/FormItem.d.ts +0 -4
  277. package/dist/components/Form/FormLabel.d.ts +0 -4
  278. package/dist/components/Form/context.d.ts +0 -6
  279. package/dist/components/Form/index.d.ts +0 -8
  280. package/dist/components/Form/interface.d.ts +0 -48
  281. package/dist/components/Form/store.d.ts +0 -16
  282. package/dist/components/Form/styles/item.d.ts +0 -5
  283. package/dist/components/Form/useForm.d.ts +0 -3
  284. package/dist/index-0b47cbae.js +0 -173
  285. package/dist/index-14c3a4d7.js +0 -62
  286. package/dist/index-6ffbeca8.js +0 -65
  287. package/dist/index-7be8731d.js +0 -62
  288. package/dist/index-b5974e22.js +0 -62
  289. package/dist/index-e102400f.js +0 -11706
  290. package/dist/index-fb1f3ef1.js +0 -63
  291. package/dist/isObjectLike-1b8bbac2.js +0 -44
  292. package/dist/jsx-runtime-82a9ddf6.js +0 -646
@@ -1,4 +1,4 @@
1
- import { ReactNode } from "react";
1
+ import * as React 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?: JSX.Element | ReactNode;
25
+ children?: React.ReactElement | React.ReactNode;
26
26
  auto?: boolean;
27
27
  search?: boolean;
28
28
  searchChange?: (value: string) => void;
29
29
  searchClassName?: string;
30
- startAdornment?: ReactNode;
31
- customSelectItems?: (item: Options) => ReactNode;
30
+ startAdornment?: React.ReactNode;
31
+ customSelectItems?: (item: Options) => React.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) => ReactNode;
38
+ customLabel?: (item: Options) => React.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: import("react").ForwardRefExoticComponent<Omit<TextSelectProps, "placeholder"> & {
45
+ declare const Options: React.ForwardRefExoticComponent<Omit<TextSelectProps, "placeholder"> & {
46
46
  className?: string | undefined;
47
47
  parent: HTMLDivElement | null;
48
48
  hide: () => void;
49
- } & import("react").RefAttributes<HTMLDivElement>>;
49
+ } & React.RefAttributes<HTMLDivElement>>;
50
50
  export interface TextSelectRefProps {
51
51
  close: () => void;
52
52
  clear: () => void;
53
53
  }
54
- declare const TextSelect: import("react").ForwardRefExoticComponent<TextSelectProps & import("react").RefAttributes<TextSelectRefProps>>;
54
+ declare const TextSelect: React.ForwardRefExoticComponent<TextSelectProps & React.RefAttributes<TextSelectRefProps>>;
55
55
  export { TextSelect };
@@ -0,0 +1,2 @@
1
+ export { TextSelect } from "./TextSelect";
2
+ export type { TextSelectProps, TextSelectRefProps } from "./TextSelect";
@@ -0,0 +1,15 @@
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 };
@@ -1,15 +1,2 @@
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
+ import { TextArea } from "./Textarea";
2
+ export { TextArea };
@@ -1,13 +1,2 @@
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
+ import * as React from "react";
2
+ export declare const Toast: () => React.ReactPortal;
@@ -0,0 +1,2 @@
1
+ import { Toast } from "./Toast";
2
+ export { Toast };
@@ -1,4 +1,4 @@
1
- import { BUITheme } from "../..";
1
+ import { BUITheme } from "../../types/component";
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 { FC, ReactNode } from "react";
2
- import { BUITheme } from "../..";
1
+ import * as React from "react";
2
+ import { BUITheme } from "../../types/component";
3
3
  import { TooltipPlacement } from "./type";
4
4
  interface TooltipProps {
5
5
  placement: TooltipPlacement;
6
6
  flipPlacement?: TooltipPlacement[];
7
7
  title?: string;
8
- content?: ReactNode;
8
+ content?: React.ReactNode;
9
9
  children?: React.ReactNode;
10
10
  isShow?: boolean;
11
11
  className?: string;
@@ -18,7 +18,6 @@ interface TooltipProps {
18
18
  * */
19
19
  y?: number;
20
20
  x?: number;
21
- delayPositive?: boolean;
22
21
  }
23
- declare const Tooltip: FC<TooltipProps>;
22
+ declare const Tooltip: React.FC<TooltipProps>;
24
23
  export { Tooltip };
@@ -0,0 +1,2 @@
1
+ import { Tooltip } from "./Tooltip";
2
+ export { Tooltip };
@@ -1,5 +1,5 @@
1
- import React from "react";
2
- import { BUITheme } from "../..";
1
+ import * as React from "react";
2
+ import { BUITheme } from "../../types/component";
3
3
  declare const TYPEOGRAPHY_TAGS: {
4
4
  h1: string;
5
5
  h2: string;
@@ -0,0 +1,4 @@
1
+ import { Typography } from "./Typography";
2
+ import type { TypographyProps } from "./Typography";
3
+ export { Typography };
4
+ export type { TypographyProps };
@@ -1,4 +1,4 @@
1
- import { BUITheme } from "../..";
1
+ import { BUITheme } from "../../types/component";
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";
@@ -0,0 +1,17 @@
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
+ };
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ function t(n, u) {
3
+ return n.reduce((e, r) => (e[r[u]] = r, e), {});
4
+ }
5
+ export {
6
+ t as k
7
+ };
@@ -1,2 +1,2 @@
1
1
  /// <reference types="react" />
2
- export default function useLatest<T>(value: T): import("react").MutableRefObject<T>;
2
+ export default function useLatest<T>(value: T): import("react").RefObject<T>;
@@ -1,12 +1,10 @@
1
1
  import { configType } from "../provider/NoticeProvider";
2
2
  declare const useNotification: () => {
3
3
  methods: {
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;
4
+ info: (config: configType) => void;
5
+ success: (config: configType) => void;
6
+ warning: (config: configType) => void;
7
+ danger: (config: configType) => void;
10
8
  };
11
9
  };
12
- export default useNotification;
10
+ export { useNotification };
@@ -6,4 +6,4 @@ declare const useToast: () => {
6
6
  danger: (config: string) => void;
7
7
  };
8
8
  };
9
- export default useToast;
9
+ export { useToast };
@@ -1,14 +1,15 @@
1
- var a = {
1
+ "use client";
2
+ var t = {
2
3
  lastWeek: "eeee 'dernier à' p",
3
4
  yesterday: "'hier à' p",
4
5
  today: "'aujourd’hui à' p",
5
6
  tomorrow: "'demain à' p'",
6
7
  nextWeek: "eeee 'prochain à' p",
7
8
  other: "P"
8
- }, t = function(e, o, i, n) {
9
- return a[e];
9
+ }, a = function(e, o, i, n) {
10
+ return t[e];
10
11
  };
11
- const p = t;
12
+ const p = a;
12
13
  export {
13
14
  p as f
14
15
  };
@@ -1,4 +1,5 @@
1
- import { b as t, c as d, d as s } from "./index-e102400f.js";
1
+ "use client";
2
+ import { b as t, c as d, d as s } from "./index-b7027a1d.js";
2
3
  var u = {
3
4
  lessThanXSeconds: {
4
5
  one: "moins d’une seconde",
@@ -1,18 +1,5 @@
1
- import { a as m, b as n, c as d, d as i } from "./index-e102400f.js";
2
- import "./Badge.es.js";
3
- import "./jsx-runtime-82a9ddf6.js";
4
- import "react";
5
- import "./index-6ffbeca8.js";
6
- import "./utils-19b44377.js";
7
- import "./Button.es.js";
8
- import "./isObjectLike-1b8bbac2.js";
9
- import "./index-0b47cbae.js";
10
- import "react-dom";
11
- import "./close-c67ec245.js";
12
- import "./Drawer.es.js";
13
- import "./Slider.es.js";
14
- import "./ProTable-079d6c86.js";
15
- import "./Divider.es.js";
1
+ "use client";
2
+ import { a as d, b as n, c as m, d as i } from "./index-b7027a1d.js";
16
3
  var u = {
17
4
  lessThanXSeconds: {
18
5
  one: "minder as 1 sekonde",
@@ -96,31 +83,31 @@ var h = {
96
83
  medium: "{{date}}, {{time}}",
97
84
  short: "{{date}}, {{time}}"
98
85
  }, w = {
99
- date: m({
86
+ date: d({
100
87
  formats: h,
101
88
  defaultWidth: "full"
102
89
  }),
103
- time: m({
90
+ time: d({
104
91
  formats: c,
105
92
  defaultWidth: "full"
106
93
  }),
107
- dateTime: m({
94
+ dateTime: d({
108
95
  formats: v,
109
96
  defaultWidth: "full"
110
97
  })
111
98
  };
112
99
  const b = w;
113
- var p = {
100
+ var j = {
114
101
  lastWeek: "'ôfrûne' eeee 'om' p",
115
102
  yesterday: "'juster om' p",
116
103
  today: "'hjoed om' p",
117
104
  tomorrow: "'moarn om' p",
118
105
  nextWeek: "eeee 'om' p",
119
106
  other: "P"
120
- }, j = function(e, o, a, t) {
121
- return p[e];
107
+ }, p = function(e, o, a, t) {
108
+ return j[e];
122
109
  };
123
- const P = j;
110
+ const P = p;
124
111
  var y = {
125
112
  narrow: ["f.K.", "n.K."],
126
113
  abbreviated: ["f.Kr.", "n.Kr."],
@@ -240,7 +227,7 @@ var H = /^(\d+)e?/i, z = /\d+/i, F = {
240
227
  night: /nachts/i
241
228
  }
242
229
  }, A = {
243
- ordinalNumber: d({
230
+ ordinalNumber: m({
244
231
  matchPattern: H,
245
232
  parsePattern: z,
246
233
  valueCallback: function(e) {
@@ -282,7 +269,7 @@ var H = /^(\d+)e?/i, z = /\d+/i, F = {
282
269
  })
283
270
  };
284
271
  const T = A;
285
- var ne = {
272
+ var _ = {
286
273
  code: "fy",
287
274
  formatDistance: f,
288
275
  formatLong: b,
@@ -295,5 +282,5 @@ var ne = {
295
282
  }
296
283
  };
297
284
  export {
298
- ne as default
285
+ _ as default
299
286
  };
@@ -1,18 +1,5 @@
1
- import { a as m, b as o, c as h, d } from "./index-e102400f.js";
2
- import "./Badge.es.js";
3
- import "./jsx-runtime-82a9ddf6.js";
4
- import "react";
5
- import "./index-6ffbeca8.js";
6
- import "./utils-19b44377.js";
7
- import "./Button.es.js";
8
- import "./isObjectLike-1b8bbac2.js";
9
- import "./index-0b47cbae.js";
10
- import "react-dom";
11
- import "./close-c67ec245.js";
12
- import "./Drawer.es.js";
13
- import "./Slider.es.js";
14
- import "./ProTable-079d6c86.js";
15
- import "./Divider.es.js";
1
+ "use client";
2
+ import { a as m, b as o, c as h, d } from "./index-b7027a1d.js";
16
3
  var f = {
17
4
  lessThanXSeconds: {
18
5
  one: "פחות משנייה",
@@ -112,7 +99,7 @@ var w = {
112
99
  long: "{{date}} 'בשעה' {{time}}",
113
100
  medium: "{{date}}, {{time}}",
114
101
  short: "{{date}}, {{time}}"
115
- }, p = {
102
+ }, P = {
116
103
  date: m({
117
104
  formats: w,
118
105
  defaultWidth: "full"
@@ -126,18 +113,18 @@ var w = {
126
113
  defaultWidth: "full"
127
114
  })
128
115
  };
129
- const P = p;
130
- var y = {
116
+ const y = P;
117
+ var M = {
131
118
  lastWeek: "eeee 'שעבר בשעה' p",
132
119
  yesterday: "'אתמול בשעה' p",
133
120
  today: "'היום בשעה' p",
134
121
  tomorrow: "'מחר בשעה' p",
135
122
  nextWeek: "eeee 'בשעה' p",
136
123
  other: "P"
137
- }, M = function(t, e, a, r) {
138
- return y[t];
124
+ }, p = function(t, e, a, r) {
125
+ return M[t];
139
126
  };
140
- const W = M;
127
+ const W = p;
141
128
  var $ = {
142
129
  narrow: ["לפנה״ס", "לספירה"],
143
130
  abbreviated: ["לפנה״ס", "לספירה"],
@@ -337,10 +324,10 @@ var X = /^(\d+|(ראשון|שני|שלישי|רביעי|חמישי|שישי|שב
337
324
  })
338
325
  };
339
326
  const j = I;
340
- var sa = {
327
+ var G = {
341
328
  code: "he",
342
329
  formatDistance: c,
343
- formatLong: P,
330
+ formatLong: y,
344
331
  formatRelative: W,
345
332
  localize: V,
346
333
  match: j,
@@ -350,5 +337,5 @@ var sa = {
350
337
  }
351
338
  };
352
339
  export {
353
- sa as default
340
+ G as default
354
341
  };
@@ -1,18 +1,5 @@
1
- import { a as m, b as n, c as s, d } from "./index-e102400f.js";
2
- import "./Badge.es.js";
3
- import "./jsx-runtime-82a9ddf6.js";
4
- import "react";
5
- import "./index-6ffbeca8.js";
6
- import "./utils-19b44377.js";
7
- import "./Button.es.js";
8
- import "./isObjectLike-1b8bbac2.js";
9
- import "./index-0b47cbae.js";
10
- import "react-dom";
11
- import "./close-c67ec245.js";
12
- import "./Drawer.es.js";
13
- import "./Slider.es.js";
14
- import "./ProTable-079d6c86.js";
15
- import "./Divider.es.js";
1
+ "use client";
2
+ import { a as s, b as o, c as m, d } from "./index-b7027a1d.js";
16
3
  var u = {
17
4
  lessThanXSeconds: {
18
5
  one: "menos de um segundo",
@@ -96,15 +83,15 @@ var c = {
96
83
  medium: "{{date}}, {{time}}",
97
84
  short: "{{date}}, {{time}}"
98
85
  }, g = {
99
- date: m({
86
+ date: s({
100
87
  formats: c,
101
88
  defaultWidth: "full"
102
89
  }),
103
- time: m({
90
+ time: s({
104
91
  formats: f,
105
92
  defaultWidth: "full"
106
93
  }),
107
- dateTime: m({
94
+ dateTime: s({
108
95
  formats: v,
109
96
  defaultWidth: "full"
110
97
  })
@@ -209,26 +196,26 @@ var w = {
209
196
  return e + "º";
210
197
  }, C = {
211
198
  ordinalNumber: k,
212
- era: n({
199
+ era: o({
213
200
  values: w,
214
201
  defaultWidth: "wide"
215
202
  }),
216
- quarter: n({
203
+ quarter: o({
217
204
  values: y,
218
205
  defaultWidth: "wide",
219
206
  argumentCallback: function(a) {
220
207
  return a - 1;
221
208
  }
222
209
  }),
223
- month: n({
210
+ month: o({
224
211
  values: q,
225
212
  defaultWidth: "wide"
226
213
  }),
227
- day: n({
214
+ day: o({
228
215
  values: x,
229
216
  defaultWidth: "wide"
230
217
  }),
231
- dayPeriod: n({
218
+ dayPeriod: o({
232
219
  values: W,
233
220
  defaultWidth: "wide",
234
221
  formattingValues: j,
@@ -279,7 +266,7 @@ var z = /^(\d+)(º|ª)?/i, H = /\d+/i, T = {
279
266
  night: /madrugada/i
280
267
  }
281
268
  }, $ = {
282
- ordinalNumber: s({
269
+ ordinalNumber: m({
283
270
  matchPattern: z,
284
271
  parsePattern: H,
285
272
  valueCallback: function(a) {
@@ -321,7 +308,7 @@ var z = /^(\d+)(º|ª)?/i, H = /\d+/i, T = {
321
308
  })
322
309
  };
323
310
  const Y = $;
324
- var oa = {
311
+ var _ = {
325
312
  code: "pt",
326
313
  formatDistance: h,
327
314
  formatLong: b,
@@ -334,5 +321,5 @@ var oa = {
334
321
  }
335
322
  };
336
323
  export {
337
- oa as default
324
+ _ as default
338
325
  };
@@ -1,19 +1,6 @@
1
- import { a as v, t as m, b as o, c as f, d as l } from "./index-e102400f.js";
2
- import { i as d } from "./index-54cbdaa4.js";
3
- import "./Badge.es.js";
4
- import "./jsx-runtime-82a9ddf6.js";
5
- import "react";
6
- import "./index-6ffbeca8.js";
7
- import "./utils-19b44377.js";
8
- import "./Button.es.js";
9
- import "./isObjectLike-1b8bbac2.js";
10
- import "./index-0b47cbae.js";
11
- import "react-dom";
12
- import "./close-c67ec245.js";
13
- import "./Drawer.es.js";
14
- import "./Slider.es.js";
15
- import "./ProTable-079d6c86.js";
16
- import "./Divider.es.js";
1
+ "use client";
2
+ import { a as v, t as d, b as o, c as f, d as l } from "./index-b7027a1d.js";
3
+ import { i as m } from "./index-5e6ffc2f.js";
17
4
  function s(a, e) {
18
5
  if (a.one !== void 0 && e === 1)
19
6
  return a.one;
@@ -25,9 +12,9 @@ function r(a) {
25
12
  return t && t.addSuffix ? t.comparison && t.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);
26
13
  };
27
14
  }
28
- var p = function(e, t) {
15
+ var h = function(e, t) {
29
16
  return t && t.addSuffix ? t.comparison && t.comparison > 0 ? "за півхвилини" : "півхвилини тому" : "півхвилини";
30
- }, h = {
17
+ }, p = {
31
18
  lessThanXSeconds: r({
32
19
  regular: {
33
20
  one: "менше секунди",
@@ -59,7 +46,7 @@ var p = function(e, t) {
59
46
  pluralGenitive: "за {{count}} секунд"
60
47
  }
61
48
  }),
62
- halfAMinute: p,
49
+ halfAMinute: h,
63
50
  lessThanXMinutes: r({
64
51
  regular: {
65
52
  one: "менше хвилини",
@@ -199,7 +186,7 @@ var p = function(e, t) {
199
186
  }
200
187
  })
201
188
  }, G = function(e, t, i) {
202
- return i = i || {}, h[e](t, i);
189
+ return i = i || {}, p[e](t, i);
203
190
  };
204
191
  const b = G;
205
192
  var w = {
@@ -266,11 +253,11 @@ function k(a) {
266
253
  }
267
254
  }
268
255
  var x = function(e, t, i) {
269
- var u = m(e), n = u.getUTCDay();
270
- return d(u, t, i) ? g(n) : M(n);
256
+ var u = d(e), n = u.getUTCDay();
257
+ return m(u, t, i) ? g(n) : M(n);
271
258
  }, D = function(e, t, i) {
272
- var u = m(e), n = u.getUTCDay();
273
- return d(u, t, i) ? g(n) : k(n);
259
+ var u = d(e), n = u.getUTCDay();
260
+ return m(u, t, i) ? g(n) : k(n);
274
261
  }, F = {
275
262
  lastWeek: x,
276
263
  yesterday: "'вчора о' p",
@@ -486,7 +473,7 @@ var q = /^(\d+)(-?(е|й|є|а|я))?/i, A = /\d+/i, O = {
486
473
  })
487
474
  };
488
475
  const ae = ee;
489
- var Ge = {
476
+ var ne = {
490
477
  code: "uk",
491
478
  formatDistance: b,
492
479
  formatLong: N,
@@ -499,5 +486,5 @@ var Ge = {
499
486
  }
500
487
  };
501
488
  export {
502
- Ge as default
489
+ ne as default
503
490
  };
@@ -1,19 +1,6 @@
1
- import { f as i, a as o, b as m, m as g } from "./index-9864c94e.js";
2
- import { b as a } from "./index-e102400f.js";
3
- import "./Badge.es.js";
4
- import "./jsx-runtime-82a9ddf6.js";
5
- import "react";
6
- import "./index-6ffbeca8.js";
7
- import "./utils-19b44377.js";
8
- import "./Button.es.js";
9
- import "./isObjectLike-1b8bbac2.js";
10
- import "./index-0b47cbae.js";
11
- import "react-dom";
12
- import "./close-c67ec245.js";
13
- import "./Drawer.es.js";
14
- import "./Slider.es.js";
15
- import "./ProTable-079d6c86.js";
16
- import "./Divider.es.js";
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";
17
4
  var d = {
18
5
  narrow: ["v.Chr.", "n.Chr."],
19
6
  abbreviated: ["v.Chr.", "n.Chr."],
@@ -22,14 +9,14 @@ var d = {
22
9
  narrow: ["1", "2", "3", "4"],
23
10
  abbreviated: ["Q1", "Q2", "Q3", "Q4"],
24
11
  wide: ["1. Quartal", "2. Quartal", "3. Quartal", "4. Quartal"]
25
- }, r = {
12
+ }, n = {
26
13
  narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
27
14
  abbreviated: ["Jän", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Okt", "Nov", "Dez"],
28
15
  wide: ["Jänner", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember"]
29
16
  }, u = {
30
- narrow: r.narrow,
17
+ narrow: n.narrow,
31
18
  abbreviated: ["Jän.", "Feb.", "März", "Apr.", "Mai", "Juni", "Juli", "Aug.", "Sep.", "Okt.", "Nov.", "Dez."],
32
- wide: r.wide
19
+ wide: n.wide
33
20
  }, s = {
34
21
  narrow: ["S", "M", "D", "M", "D", "F", "S"],
35
22
  short: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"],
@@ -98,8 +85,8 @@ var d = {
98
85
  night: "nachts"
99
86
  }
100
87
  }, c = function(t) {
101
- var e = Number(t);
102
- return e + ".";
88
+ var r = Number(t);
89
+ return r + ".";
103
90
  }, b = {
104
91
  ordinalNumber: c,
105
92
  era: a({
@@ -114,7 +101,7 @@ var d = {
114
101
  }
115
102
  }),
116
103
  month: a({
117
- values: r,
104
+ values: n,
118
105
  formattingValues: u,
119
106
  defaultWidth: "wide"
120
107
  }),
@@ -130,7 +117,7 @@ var d = {
130
117
  })
131
118
  };
132
119
  const M = b;
133
- var O = {
120
+ var p = {
134
121
  code: "de-AT",
135
122
  formatDistance: i,
136
123
  formatLong: o,
@@ -143,5 +130,5 @@ var O = {
143
130
  }
144
131
  };
145
132
  export {
146
- O as default
133
+ p as default
147
134
  };