@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
@@ -0,0 +1,646 @@
1
+ import Ce from "react";
2
+ var Z = { exports: {} }, D = {};
3
+ /**
4
+ * @license React
5
+ * react-jsx-runtime.production.min.js
6
+ *
7
+ * Copyright (c) Facebook, Inc. and its affiliates.
8
+ *
9
+ * This source code is licensed under the MIT license found in the
10
+ * LICENSE file in the root directory of this source tree.
11
+ */
12
+ var Oe;
13
+ function lr() {
14
+ if (Oe)
15
+ return D;
16
+ Oe = 1;
17
+ var M = Ce, w = Symbol.for("react.element"), U = Symbol.for("react.fragment"), m = Object.prototype.hasOwnProperty, A = M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, I = { key: !0, ref: !0, __self: !0, __source: !0 };
18
+ function P(h, c, T) {
19
+ var p, b = {}, _ = null, W = null;
20
+ T !== void 0 && (_ = "" + T), c.key !== void 0 && (_ = "" + c.key), c.ref !== void 0 && (W = c.ref);
21
+ for (p in c)
22
+ m.call(c, p) && !I.hasOwnProperty(p) && (b[p] = c[p]);
23
+ if (h && h.defaultProps)
24
+ for (p in c = h.defaultProps, c)
25
+ b[p] === void 0 && (b[p] = c[p]);
26
+ return { $$typeof: w, type: h, key: _, ref: W, props: b, _owner: A.current };
27
+ }
28
+ return D.Fragment = U, D.jsx = P, D.jsxs = P, D;
29
+ }
30
+ var F = {};
31
+ /**
32
+ * @license React
33
+ * react-jsx-runtime.development.js
34
+ *
35
+ * Copyright (c) Facebook, Inc. and its affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */
40
+ var Se;
41
+ function cr() {
42
+ return Se || (Se = 1, process.env.NODE_ENV !== "production" && function() {
43
+ var M = Ce, w = Symbol.for("react.element"), U = Symbol.for("react.portal"), m = Symbol.for("react.fragment"), A = Symbol.for("react.strict_mode"), I = Symbol.for("react.profiler"), P = Symbol.for("react.provider"), h = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), T = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), _ = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), Q = Symbol.iterator, we = "@@iterator";
44
+ function Pe(e) {
45
+ if (e === null || typeof e != "object")
46
+ return null;
47
+ var r = Q && e[Q] || e[we];
48
+ return typeof r == "function" ? r : null;
49
+ }
50
+ var O = M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
51
+ function l(e) {
52
+ {
53
+ for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
54
+ t[n - 1] = arguments[n];
55
+ je("error", e, t);
56
+ }
57
+ }
58
+ function je(e, r, t) {
59
+ {
60
+ var n = O.ReactDebugCurrentFrame, o = n.getStackAddendum();
61
+ o !== "" && (r += "%s", t = t.concat([o]));
62
+ var u = t.map(function(i) {
63
+ return String(i);
64
+ });
65
+ u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
66
+ }
67
+ }
68
+ var xe = !1, ke = !1, De = !1, Fe = !1, Ae = !1, ee;
69
+ ee = Symbol.for("react.module.reference");
70
+ function Ie(e) {
71
+ return !!(typeof e == "string" || typeof e == "function" || e === m || e === I || Ae || e === A || e === T || e === p || Fe || e === W || xe || ke || De || typeof e == "object" && e !== null && (e.$$typeof === _ || e.$$typeof === b || e.$$typeof === P || e.$$typeof === h || e.$$typeof === c || // This needs to include all possible module reference object
72
+ // types supported by any Flight configuration anywhere since
73
+ // we don't know which Flight build this will end up being used
74
+ // with.
75
+ e.$$typeof === ee || e.getModuleId !== void 0));
76
+ }
77
+ function We(e, r, t) {
78
+ var n = e.displayName;
79
+ if (n)
80
+ return n;
81
+ var o = r.displayName || r.name || "";
82
+ return o !== "" ? t + "(" + o + ")" : t;
83
+ }
84
+ function re(e) {
85
+ return e.displayName || "Context";
86
+ }
87
+ function y(e) {
88
+ if (e == null)
89
+ return null;
90
+ if (typeof e.tag == "number" && l("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
91
+ return e.displayName || e.name || null;
92
+ if (typeof e == "string")
93
+ return e;
94
+ switch (e) {
95
+ case m:
96
+ return "Fragment";
97
+ case U:
98
+ return "Portal";
99
+ case I:
100
+ return "Profiler";
101
+ case A:
102
+ return "StrictMode";
103
+ case T:
104
+ return "Suspense";
105
+ case p:
106
+ return "SuspenseList";
107
+ }
108
+ if (typeof e == "object")
109
+ switch (e.$$typeof) {
110
+ case h:
111
+ var r = e;
112
+ return re(r) + ".Consumer";
113
+ case P:
114
+ var t = e;
115
+ return re(t._context) + ".Provider";
116
+ case c:
117
+ return We(e, e.render, "ForwardRef");
118
+ case b:
119
+ var n = e.displayName || null;
120
+ return n !== null ? n : y(e.type) || "Memo";
121
+ case _: {
122
+ var o = e, u = o._payload, i = o._init;
123
+ try {
124
+ return y(i(u));
125
+ } catch {
126
+ return null;
127
+ }
128
+ }
129
+ }
130
+ return null;
131
+ }
132
+ var E = Object.assign, j = 0, te, ne, ae, ie, oe, ue, se;
133
+ function fe() {
134
+ }
135
+ fe.__reactDisabledLog = !0;
136
+ function Ye() {
137
+ {
138
+ if (j === 0) {
139
+ te = console.log, ne = console.info, ae = console.warn, ie = console.error, oe = console.group, ue = console.groupCollapsed, se = console.groupEnd;
140
+ var e = {
141
+ configurable: !0,
142
+ enumerable: !0,
143
+ value: fe,
144
+ writable: !0
145
+ };
146
+ Object.defineProperties(console, {
147
+ info: e,
148
+ log: e,
149
+ warn: e,
150
+ error: e,
151
+ group: e,
152
+ groupCollapsed: e,
153
+ groupEnd: e
154
+ });
155
+ }
156
+ j++;
157
+ }
158
+ }
159
+ function $e() {
160
+ {
161
+ if (j--, j === 0) {
162
+ var e = {
163
+ configurable: !0,
164
+ enumerable: !0,
165
+ writable: !0
166
+ };
167
+ Object.defineProperties(console, {
168
+ log: E({}, e, {
169
+ value: te
170
+ }),
171
+ info: E({}, e, {
172
+ value: ne
173
+ }),
174
+ warn: E({}, e, {
175
+ value: ae
176
+ }),
177
+ error: E({}, e, {
178
+ value: ie
179
+ }),
180
+ group: E({}, e, {
181
+ value: oe
182
+ }),
183
+ groupCollapsed: E({}, e, {
184
+ value: ue
185
+ }),
186
+ groupEnd: E({}, e, {
187
+ value: se
188
+ })
189
+ });
190
+ }
191
+ j < 0 && l("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
192
+ }
193
+ }
194
+ var N = O.ReactCurrentDispatcher, B;
195
+ function Y(e, r, t) {
196
+ {
197
+ if (B === void 0)
198
+ try {
199
+ throw Error();
200
+ } catch (o) {
201
+ var n = o.stack.trim().match(/\n( *(at )?)/);
202
+ B = n && n[1] || "";
203
+ }
204
+ return `
205
+ ` + B + e;
206
+ }
207
+ }
208
+ var J = !1, $;
209
+ {
210
+ var Le = typeof WeakMap == "function" ? WeakMap : Map;
211
+ $ = new Le();
212
+ }
213
+ function le(e, r) {
214
+ if (!e || J)
215
+ return "";
216
+ {
217
+ var t = $.get(e);
218
+ if (t !== void 0)
219
+ return t;
220
+ }
221
+ var n;
222
+ J = !0;
223
+ var o = Error.prepareStackTrace;
224
+ Error.prepareStackTrace = void 0;
225
+ var u;
226
+ u = N.current, N.current = null, Ye();
227
+ try {
228
+ if (r) {
229
+ var i = function() {
230
+ throw Error();
231
+ };
232
+ if (Object.defineProperty(i.prototype, "props", {
233
+ set: function() {
234
+ throw Error();
235
+ }
236
+ }), typeof Reflect == "object" && Reflect.construct) {
237
+ try {
238
+ Reflect.construct(i, []);
239
+ } catch (v) {
240
+ n = v;
241
+ }
242
+ Reflect.construct(e, [], i);
243
+ } else {
244
+ try {
245
+ i.call();
246
+ } catch (v) {
247
+ n = v;
248
+ }
249
+ e.call(i.prototype);
250
+ }
251
+ } else {
252
+ try {
253
+ throw Error();
254
+ } catch (v) {
255
+ n = v;
256
+ }
257
+ e();
258
+ }
259
+ } catch (v) {
260
+ if (v && n && typeof v.stack == "string") {
261
+ for (var a = v.stack.split(`
262
+ `), d = n.stack.split(`
263
+ `), s = a.length - 1, f = d.length - 1; s >= 1 && f >= 0 && a[s] !== d[f]; )
264
+ f--;
265
+ for (; s >= 1 && f >= 0; s--, f--)
266
+ if (a[s] !== d[f]) {
267
+ if (s !== 1 || f !== 1)
268
+ do
269
+ if (s--, f--, f < 0 || a[s] !== d[f]) {
270
+ var g = `
271
+ ` + a[s].replace(" at new ", " at ");
272
+ return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && $.set(e, g), g;
273
+ }
274
+ while (s >= 1 && f >= 0);
275
+ break;
276
+ }
277
+ }
278
+ } finally {
279
+ J = !1, N.current = u, $e(), Error.prepareStackTrace = o;
280
+ }
281
+ var C = e ? e.displayName || e.name : "", R = C ? Y(C) : "";
282
+ return typeof e == "function" && $.set(e, R), R;
283
+ }
284
+ function Ve(e, r, t) {
285
+ return le(e, !1);
286
+ }
287
+ function Me(e) {
288
+ var r = e.prototype;
289
+ return !!(r && r.isReactComponent);
290
+ }
291
+ function L(e, r, t) {
292
+ if (e == null)
293
+ return "";
294
+ if (typeof e == "function")
295
+ return le(e, Me(e));
296
+ if (typeof e == "string")
297
+ return Y(e);
298
+ switch (e) {
299
+ case T:
300
+ return Y("Suspense");
301
+ case p:
302
+ return Y("SuspenseList");
303
+ }
304
+ if (typeof e == "object")
305
+ switch (e.$$typeof) {
306
+ case c:
307
+ return Ve(e.render);
308
+ case b:
309
+ return L(e.type, r, t);
310
+ case _: {
311
+ var n = e, o = n._payload, u = n._init;
312
+ try {
313
+ return L(u(o), r, t);
314
+ } catch {
315
+ }
316
+ }
317
+ }
318
+ return "";
319
+ }
320
+ var x = Object.prototype.hasOwnProperty, ce = {}, de = O.ReactDebugCurrentFrame;
321
+ function V(e) {
322
+ if (e) {
323
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
324
+ de.setExtraStackFrame(t);
325
+ } else
326
+ de.setExtraStackFrame(null);
327
+ }
328
+ function Ue(e, r, t, n, o) {
329
+ {
330
+ var u = Function.call.bind(x);
331
+ for (var i in e)
332
+ if (u(e, i)) {
333
+ var a = void 0;
334
+ try {
335
+ if (typeof e[i] != "function") {
336
+ var d = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
337
+ throw d.name = "Invariant Violation", d;
338
+ }
339
+ a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
340
+ } catch (s) {
341
+ a = s;
342
+ }
343
+ a && !(a instanceof Error) && (V(o), l("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), V(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, V(o), l("Failed %s type: %s", t, a.message), V(null));
344
+ }
345
+ }
346
+ }
347
+ var Ne = Array.isArray;
348
+ function K(e) {
349
+ return Ne(e);
350
+ }
351
+ function Be(e) {
352
+ {
353
+ var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
354
+ return t;
355
+ }
356
+ }
357
+ function Je(e) {
358
+ try {
359
+ return ve(e), !1;
360
+ } catch {
361
+ return !0;
362
+ }
363
+ }
364
+ function ve(e) {
365
+ return "" + e;
366
+ }
367
+ function pe(e) {
368
+ if (Je(e))
369
+ return l("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Be(e)), ve(e);
370
+ }
371
+ var k = O.ReactCurrentOwner, Ke = {
372
+ key: !0,
373
+ ref: !0,
374
+ __self: !0,
375
+ __source: !0
376
+ }, ge, ye, q;
377
+ q = {};
378
+ function qe(e) {
379
+ if (x.call(e, "ref")) {
380
+ var r = Object.getOwnPropertyDescriptor(e, "ref").get;
381
+ if (r && r.isReactWarning)
382
+ return !1;
383
+ }
384
+ return e.ref !== void 0;
385
+ }
386
+ function Ge(e) {
387
+ if (x.call(e, "key")) {
388
+ var r = Object.getOwnPropertyDescriptor(e, "key").get;
389
+ if (r && r.isReactWarning)
390
+ return !1;
391
+ }
392
+ return e.key !== void 0;
393
+ }
394
+ function ze(e, r) {
395
+ if (typeof e.ref == "string" && k.current && r && k.current.stateNode !== r) {
396
+ var t = y(k.current.type);
397
+ q[t] || (l('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', y(k.current.type), e.ref), q[t] = !0);
398
+ }
399
+ }
400
+ function Xe(e, r) {
401
+ {
402
+ var t = function() {
403
+ ge || (ge = !0, l("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
404
+ };
405
+ t.isReactWarning = !0, Object.defineProperty(e, "key", {
406
+ get: t,
407
+ configurable: !0
408
+ });
409
+ }
410
+ }
411
+ function He(e, r) {
412
+ {
413
+ var t = function() {
414
+ ye || (ye = !0, l("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
415
+ };
416
+ t.isReactWarning = !0, Object.defineProperty(e, "ref", {
417
+ get: t,
418
+ configurable: !0
419
+ });
420
+ }
421
+ }
422
+ var Ze = function(e, r, t, n, o, u, i) {
423
+ var a = {
424
+ // This tag allows us to uniquely identify this as a React Element
425
+ $$typeof: w,
426
+ // Built-in properties that belong on the element
427
+ type: e,
428
+ key: r,
429
+ ref: t,
430
+ props: i,
431
+ // Record the component responsible for creating this element.
432
+ _owner: u
433
+ };
434
+ return a._store = {}, Object.defineProperty(a._store, "validated", {
435
+ configurable: !1,
436
+ enumerable: !1,
437
+ writable: !0,
438
+ value: !1
439
+ }), Object.defineProperty(a, "_self", {
440
+ configurable: !1,
441
+ enumerable: !1,
442
+ writable: !1,
443
+ value: n
444
+ }), Object.defineProperty(a, "_source", {
445
+ configurable: !1,
446
+ enumerable: !1,
447
+ writable: !1,
448
+ value: o
449
+ }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
450
+ };
451
+ function Qe(e, r, t, n, o) {
452
+ {
453
+ var u, i = {}, a = null, d = null;
454
+ t !== void 0 && (pe(t), a = "" + t), Ge(r) && (pe(r.key), a = "" + r.key), qe(r) && (d = r.ref, ze(r, o));
455
+ for (u in r)
456
+ x.call(r, u) && !Ke.hasOwnProperty(u) && (i[u] = r[u]);
457
+ if (e && e.defaultProps) {
458
+ var s = e.defaultProps;
459
+ for (u in s)
460
+ i[u] === void 0 && (i[u] = s[u]);
461
+ }
462
+ if (a || d) {
463
+ var f = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
464
+ a && Xe(i, f), d && He(i, f);
465
+ }
466
+ return Ze(e, a, d, o, n, k.current, i);
467
+ }
468
+ }
469
+ var G = O.ReactCurrentOwner, be = O.ReactDebugCurrentFrame;
470
+ function S(e) {
471
+ if (e) {
472
+ var r = e._owner, t = L(e.type, e._source, r ? r.type : null);
473
+ be.setExtraStackFrame(t);
474
+ } else
475
+ be.setExtraStackFrame(null);
476
+ }
477
+ var z;
478
+ z = !1;
479
+ function X(e) {
480
+ return typeof e == "object" && e !== null && e.$$typeof === w;
481
+ }
482
+ function he() {
483
+ {
484
+ if (G.current) {
485
+ var e = y(G.current.type);
486
+ if (e)
487
+ return `
488
+
489
+ Check the render method of \`` + e + "`.";
490
+ }
491
+ return "";
492
+ }
493
+ }
494
+ function er(e) {
495
+ {
496
+ if (e !== void 0) {
497
+ var r = e.fileName.replace(/^.*[\\\/]/, ""), t = e.lineNumber;
498
+ return `
499
+
500
+ Check your code at ` + r + ":" + t + ".";
501
+ }
502
+ return "";
503
+ }
504
+ }
505
+ var _e = {};
506
+ function rr(e) {
507
+ {
508
+ var r = he();
509
+ if (!r) {
510
+ var t = typeof e == "string" ? e : e.displayName || e.name;
511
+ t && (r = `
512
+
513
+ Check the top-level render call using <` + t + ">.");
514
+ }
515
+ return r;
516
+ }
517
+ }
518
+ function Ee(e, r) {
519
+ {
520
+ if (!e._store || e._store.validated || e.key != null)
521
+ return;
522
+ e._store.validated = !0;
523
+ var t = rr(r);
524
+ if (_e[t])
525
+ return;
526
+ _e[t] = !0;
527
+ var n = "";
528
+ e && e._owner && e._owner !== G.current && (n = " It was passed a child from " + y(e._owner.type) + "."), S(e), l('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), S(null);
529
+ }
530
+ }
531
+ function Re(e, r) {
532
+ {
533
+ if (typeof e != "object")
534
+ return;
535
+ if (K(e))
536
+ for (var t = 0; t < e.length; t++) {
537
+ var n = e[t];
538
+ X(n) && Ee(n, r);
539
+ }
540
+ else if (X(e))
541
+ e._store && (e._store.validated = !0);
542
+ else if (e) {
543
+ var o = Pe(e);
544
+ if (typeof o == "function" && o !== e.entries)
545
+ for (var u = o.call(e), i; !(i = u.next()).done; )
546
+ X(i.value) && Ee(i.value, r);
547
+ }
548
+ }
549
+ }
550
+ function tr(e) {
551
+ {
552
+ var r = e.type;
553
+ if (r == null || typeof r == "string")
554
+ return;
555
+ var t;
556
+ if (typeof r == "function")
557
+ t = r.propTypes;
558
+ else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
559
+ // Inner props are checked in the reconciler.
560
+ r.$$typeof === b))
561
+ t = r.propTypes;
562
+ else
563
+ return;
564
+ if (t) {
565
+ var n = y(r);
566
+ Ue(t, e.props, "prop", n, e);
567
+ } else if (r.PropTypes !== void 0 && !z) {
568
+ z = !0;
569
+ var o = y(r);
570
+ l("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
571
+ }
572
+ typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && l("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
573
+ }
574
+ }
575
+ function nr(e) {
576
+ {
577
+ for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
578
+ var n = r[t];
579
+ if (n !== "children" && n !== "key") {
580
+ S(e), l("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), S(null);
581
+ break;
582
+ }
583
+ }
584
+ e.ref !== null && (S(e), l("Invalid attribute `ref` supplied to `React.Fragment`."), S(null));
585
+ }
586
+ }
587
+ var me = {};
588
+ function Te(e, r, t, n, o, u) {
589
+ {
590
+ var i = Ie(e);
591
+ if (!i) {
592
+ var a = "";
593
+ (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
594
+ var d = er(o);
595
+ d ? a += d : a += he();
596
+ var s;
597
+ e === null ? s = "null" : K(e) ? s = "array" : e !== void 0 && e.$$typeof === w ? (s = "<" + (y(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, l("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
598
+ }
599
+ var f = Qe(e, r, t, o, u);
600
+ if (f == null)
601
+ return f;
602
+ if (i) {
603
+ var g = r.children;
604
+ if (g !== void 0)
605
+ if (n)
606
+ if (K(g)) {
607
+ for (var C = 0; C < g.length; C++)
608
+ Re(g[C], e);
609
+ Object.freeze && Object.freeze(g);
610
+ } else
611
+ l("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
612
+ else
613
+ Re(g, e);
614
+ }
615
+ if (x.call(r, "key")) {
616
+ var R = y(e), v = Object.keys(r).filter(function(fr) {
617
+ return fr !== "key";
618
+ }), H = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
619
+ if (!me[R + H]) {
620
+ var sr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
621
+ l(`A props object containing a "key" prop is being spread into JSX:
622
+ let props = %s;
623
+ <%s {...props} />
624
+ React keys must be passed directly to JSX without using spread:
625
+ let props = %s;
626
+ <%s key={someKey} {...props} />`, H, R, sr, R), me[R + H] = !0;
627
+ }
628
+ }
629
+ return e === m ? nr(f) : tr(f), f;
630
+ }
631
+ }
632
+ function ar(e, r, t) {
633
+ return Te(e, r, t, !0);
634
+ }
635
+ function ir(e, r, t) {
636
+ return Te(e, r, t, !1);
637
+ }
638
+ var or = ir, ur = ar;
639
+ F.Fragment = m, F.jsx = or, F.jsxs = ur;
640
+ }()), F;
641
+ }
642
+ process.env.NODE_ENV === "production" ? Z.exports = lr() : Z.exports = cr();
643
+ var vr = Z.exports;
644
+ export {
645
+ vr as j
646
+ };
@@ -20,7 +20,7 @@ export type configType = {
20
20
  position?: string;
21
21
  onClose?: () => void;
22
22
  };
23
- export type Methods = (config: configType, type: BUIComponentType, position?: string) => void;
23
+ export type Methods = (config: configType, type: BUIComponentType, position?: string) => number;
24
24
  export type ToastMthods = (msg: string, type: BUIComponentType) => void;
25
25
  interface NoticeContextProps {
26
26
  notificationListLeftBottom: NotificationType[];
@@ -1,12 +1,8 @@
1
- import { ReactNode } from "react";
2
- import { BUITheme } from "../types/component";
1
+ /// <reference types="react" />
2
+ import { BUITheme } from "..";
3
3
  interface ThemeContextProps {
4
4
  theme: BUITheme;
5
5
  }
6
6
  declare const ThemeContext: import("react").Context<ThemeContextProps>;
7
- interface ThemeProviderProps {
8
- value: ThemeContextProps;
9
- children: ReactNode;
10
- }
11
- declare const ThemeProvider: ({ value, children }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
7
+ declare const ThemeProvider: import("react").Provider<ThemeContextProps>;
12
8
  export { ThemeContext, ThemeProvider };
@@ -1,4 +1,4 @@
1
1
  declare const useTheme: () => {
2
2
  theme: import("..").BUITheme;
3
3
  };
4
- export { useTheme };
4
+ export default useTheme;
@@ -2,7 +2,7 @@ export type BUIComponentSize = "large" | "medium" | "small";
2
2
 
3
3
  export type BUIComponentColor = "primary" | "success" | "danger" | "warning";
4
4
 
5
- export type BUIComponentType = "info" | "success" | "warning" | "danger";
5
+ export type BUIComponentType = "info" | "success" | "warning" | "danger" | 'loading';
6
6
 
7
7
  export type BUITheme = "light" | "dark";
8
8
 
@@ -1,5 +1,5 @@
1
1
  interface ArrayItem {
2
- [key: string]: string;
2
+ [key: string]: any;
3
3
  }
4
4
  export declare function keyBy(arr: ArrayItem[], key: keyof ArrayItem): {
5
5
  [key: string]: ArrayItem;