@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
@@ -0,0 +1,7 @@
1
+ "use client";
2
+ const s = {
3
+ "hide-scrollbar": "_hide-scrollbar_ygqqb_1"
4
+ };
5
+ export {
6
+ s
7
+ };
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ const e = "_drawerOverlay_1e2c8_2", t = "_drawerContent_1e2c8_14", r = "_left_1e2c8_19", c = "_right_1e2c8_23", _ = "_drawerHeader_1e2c8_27", n = "_title_1e2c8_42", o = "_mock_1e2c8_47", a = "_content_1e2c8_51", s = {
3
+ drawerOverlay: e,
4
+ drawerContent: t,
5
+ left: r,
6
+ right: c,
7
+ drawerHeader: _,
8
+ "drawer-close-button": "_drawer-close-button_1e2c8_34",
9
+ title: n,
10
+ mock: o,
11
+ content: a
12
+ };
13
+ export {
14
+ s
15
+ };
@@ -0,0 +1,9 @@
1
+ "use client";
2
+ const t = "_thumb_1j6lc_9", s = "_move_1j6lc_13", c = {
3
+ switch: "_switch_1j6lc_1",
4
+ thumb: t,
5
+ move: s
6
+ };
7
+ export {
8
+ c as s
9
+ };
@@ -0,0 +1,39 @@
1
+ "use client";
2
+ import { c as e } from "./_commonjsHelpers-1d52fb73.js";
3
+ var g = typeof e == "object" && e && e.Object === Object && e, d = g, m = d, f = typeof self == "object" && self && self.Object === Object && self, u = m || f || Function("return this")(), p = u, j = p, v = j.Symbol, c = v, o = c, b = Object.prototype, T = b.hasOwnProperty, S = b.toString, r = o ? o.toStringTag : void 0;
4
+ function w(t) {
5
+ var i = T.call(t, r), l = t[r];
6
+ try {
7
+ t[r] = void 0;
8
+ var s = !0;
9
+ } catch {
10
+ }
11
+ var _ = S.call(t);
12
+ return s && (i ? t[r] = l : delete t[r]), _;
13
+ }
14
+ var y = w, k = Object.prototype, O = k.toString;
15
+ function h(t) {
16
+ return O.call(t);
17
+ }
18
+ var $ = h, n = c, G = y, P = $, R = "[object Null]", x = "[object Undefined]", a = n ? n.toStringTag : void 0;
19
+ function F(t) {
20
+ return t == null ? t === void 0 ? x : R : a && a in Object(t) ? G(t) : P(t);
21
+ }
22
+ var A = F;
23
+ const N = "_up_mbbcs_10", U = "_down_mbbcs_11", B = {
24
+ "picker-column": "_picker-column_mbbcs_1",
25
+ up: N,
26
+ down: U,
27
+ "up-light": "_up-light_mbbcs_20",
28
+ "down-light": "_down-light_mbbcs_25",
29
+ "up-dark": "_up-dark_mbbcs_30",
30
+ "down-dark": "_down-dark_mbbcs_34",
31
+ "picker-column-wheel": "_picker-column-wheel_mbbcs_38",
32
+ "picker-list": "_picker-list_mbbcs_48",
33
+ "bu-dark": "_bu-dark_mbbcs_1"
34
+ };
35
+ export {
36
+ p as _,
37
+ A as a,
38
+ B as s
39
+ };
@@ -0,0 +1,440 @@
1
+ "use client";
2
+ import { g as b } from "./_commonjsHelpers-1d52fb73.js";
3
+ import * as w from "react";
4
+ function $(e, r) {
5
+ var t = k(r);
6
+ return t.formatToParts ? E(t, e) : L(t, e);
7
+ }
8
+ var z = {
9
+ year: 0,
10
+ month: 1,
11
+ day: 2,
12
+ hour: 3,
13
+ minute: 4,
14
+ second: 5
15
+ };
16
+ function E(e, r) {
17
+ try {
18
+ for (var t = e.formatToParts(r), a = [], n = 0; n < t.length; n++) {
19
+ var i = z[t[n].type];
20
+ i >= 0 && (a[i] = parseInt(t[n].value, 10));
21
+ }
22
+ return a;
23
+ } catch (o) {
24
+ if (o instanceof RangeError)
25
+ return [NaN];
26
+ throw o;
27
+ }
28
+ }
29
+ function L(e, r) {
30
+ var t = e.format(r), a = /(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(t);
31
+ return [a[3], a[1], a[2], a[4], a[5], a[6]];
32
+ }
33
+ var c = {};
34
+ function k(e) {
35
+ if (!c[e]) {
36
+ var r = new Intl.DateTimeFormat("en-US", {
37
+ hourCycle: "h23",
38
+ timeZone: "America/New_York",
39
+ year: "numeric",
40
+ month: "2-digit",
41
+ day: "2-digit",
42
+ hour: "2-digit",
43
+ minute: "2-digit",
44
+ second: "2-digit"
45
+ }).format(/* @__PURE__ */ new Date("2014-06-25T04:00:00.123Z")), t = r === "06/25/2014, 00:00:00" || r === "‎06‎/‎25‎/‎2014‎ ‎00‎:‎00‎:‎00";
46
+ c[e] = t ? new Intl.DateTimeFormat("en-US", {
47
+ hourCycle: "h23",
48
+ timeZone: e,
49
+ year: "numeric",
50
+ month: "numeric",
51
+ day: "2-digit",
52
+ hour: "2-digit",
53
+ minute: "2-digit",
54
+ second: "2-digit"
55
+ }) : new Intl.DateTimeFormat("en-US", {
56
+ hour12: !1,
57
+ timeZone: e,
58
+ year: "numeric",
59
+ month: "numeric",
60
+ day: "2-digit",
61
+ hour: "2-digit",
62
+ minute: "2-digit",
63
+ second: "2-digit"
64
+ });
65
+ }
66
+ return c[e];
67
+ }
68
+ function F(e, r, t, a, n, i, o) {
69
+ var l = /* @__PURE__ */ new Date(0);
70
+ return l.setUTCFullYear(e, r, t), l.setUTCHours(a, n, i, o), l;
71
+ }
72
+ var Y = 36e5, A = 6e4, v = {
73
+ timezone: /([Z+-].*)$/,
74
+ timezoneZ: /^(Z)$/,
75
+ timezoneHH: /^([+-]\d{2})$/,
76
+ timezoneHHMM: /^([+-])(\d{2}):?(\d{2})$/
77
+ };
78
+ function O(e, r, t) {
79
+ var a, n;
80
+ if (!e || (a = v.timezoneZ.exec(e), a))
81
+ return 0;
82
+ var i;
83
+ if (a = v.timezoneHH.exec(e), a)
84
+ return i = parseInt(a[1], 10), I(i) ? -(i * Y) : NaN;
85
+ if (a = v.timezoneHHMM.exec(e), a) {
86
+ i = parseInt(a[2], 10);
87
+ var o = parseInt(a[3], 10);
88
+ return I(i, o) ? (n = Math.abs(i) * Y + o * A, a[1] === "+" ? -n : n) : NaN;
89
+ }
90
+ if (S(e)) {
91
+ r = new Date(r || Date.now());
92
+ var l = t ? r : y(r), s = T(l, e), p = t ? s : Z(r, s, e);
93
+ return -p;
94
+ }
95
+ return NaN;
96
+ }
97
+ function y(e) {
98
+ return F(
99
+ e.getFullYear(),
100
+ e.getMonth(),
101
+ e.getDate(),
102
+ e.getHours(),
103
+ e.getMinutes(),
104
+ e.getSeconds(),
105
+ e.getMilliseconds()
106
+ );
107
+ }
108
+ function T(e, r) {
109
+ var t = $(e, r), a = F(
110
+ t[0],
111
+ t[1] - 1,
112
+ t[2],
113
+ t[3] % 24,
114
+ t[4],
115
+ t[5],
116
+ 0
117
+ ).getTime(), n = e.getTime(), i = n % 1e3;
118
+ return n -= i >= 0 ? i : 1e3 + i, a - n;
119
+ }
120
+ function Z(e, r, t) {
121
+ var a = e.getTime(), n = a - r, i = T(new Date(n), t);
122
+ if (r === i)
123
+ return r;
124
+ n -= i - r;
125
+ var o = T(new Date(n), t);
126
+ return i === o ? i : Math.max(i, o);
127
+ }
128
+ function I(e, r) {
129
+ return -23 <= e && e <= 23 && (r == null || 0 <= r && r <= 59);
130
+ }
131
+ var M = {};
132
+ function S(e) {
133
+ if (M[e])
134
+ return !0;
135
+ try {
136
+ return new Intl.DateTimeFormat(void 0, { timeZone: e }), M[e] = !0, !0;
137
+ } catch {
138
+ return !1;
139
+ }
140
+ }
141
+ var N = { exports: {} };
142
+ (function(e, r) {
143
+ Object.defineProperty(r, "__esModule", {
144
+ value: !0
145
+ }), r.default = t;
146
+ function t(a) {
147
+ if (a === null || a === !0 || a === !1)
148
+ return NaN;
149
+ var n = Number(a);
150
+ return isNaN(n) ? n : n < 0 ? Math.ceil(n) : Math.floor(n);
151
+ }
152
+ e.exports = r.default;
153
+ })(N, N.exports);
154
+ var j = N.exports;
155
+ const P = /* @__PURE__ */ b(j);
156
+ var g = { exports: {} };
157
+ (function(e, r) {
158
+ Object.defineProperty(r, "__esModule", {
159
+ value: !0
160
+ }), r.default = t;
161
+ function t(a) {
162
+ var n = new Date(Date.UTC(a.getFullYear(), a.getMonth(), a.getDate(), a.getHours(), a.getMinutes(), a.getSeconds(), a.getMilliseconds()));
163
+ return n.setUTCFullYear(a.getFullYear()), a.getTime() - n.getTime();
164
+ }
165
+ e.exports = r.default;
166
+ })(g, g.exports);
167
+ var W = g.exports;
168
+ const h = /* @__PURE__ */ b(W);
169
+ var R = /(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/, D = 36e5, x = 6e4, q = 2, u = {
170
+ dateTimePattern: /^([0-9W+-]+)(T| )(.*)/,
171
+ datePattern: /^([0-9W+-]+)(.*)/,
172
+ plainTime: /:/,
173
+ // year tokens
174
+ YY: /^(\d{2})$/,
175
+ YYY: [
176
+ /^([+-]\d{2})$/,
177
+ // 0 additional digits
178
+ /^([+-]\d{3})$/,
179
+ // 1 additional digit
180
+ /^([+-]\d{4})$/
181
+ // 2 additional digits
182
+ ],
183
+ YYYY: /^(\d{4})/,
184
+ YYYYY: [
185
+ /^([+-]\d{4})/,
186
+ // 0 additional digits
187
+ /^([+-]\d{5})/,
188
+ // 1 additional digit
189
+ /^([+-]\d{6})/
190
+ // 2 additional digits
191
+ ],
192
+ // date tokens
193
+ MM: /^-(\d{2})$/,
194
+ DDD: /^-?(\d{3})$/,
195
+ MMDD: /^-?(\d{2})-?(\d{2})$/,
196
+ Www: /^-?W(\d{2})$/,
197
+ WwwD: /^-?W(\d{2})-?(\d{1})$/,
198
+ HH: /^(\d{2}([.,]\d*)?)$/,
199
+ HHMM: /^(\d{2}):?(\d{2}([.,]\d*)?)$/,
200
+ HHMMSS: /^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,
201
+ // time zone tokens (to identify the presence of a tz)
202
+ timeZone: R
203
+ };
204
+ function G(e, r) {
205
+ if (arguments.length < 1)
206
+ throw new TypeError("1 argument required, but only " + arguments.length + " present");
207
+ if (e === null)
208
+ return /* @__PURE__ */ new Date(NaN);
209
+ var t = r || {}, a = t.additionalDigits == null ? q : P(t.additionalDigits);
210
+ if (a !== 2 && a !== 1 && a !== 0)
211
+ throw new RangeError("additionalDigits must be 0, 1 or 2");
212
+ if (e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]")
213
+ return new Date(e.getTime());
214
+ if (typeof e == "number" || Object.prototype.toString.call(e) === "[object Number]")
215
+ return new Date(e);
216
+ if (!(typeof e == "string" || Object.prototype.toString.call(e) === "[object String]"))
217
+ return /* @__PURE__ */ new Date(NaN);
218
+ var n = B(e), i = J(n.date, a), o = i.year, l = i.restDateString, s = V(l, o);
219
+ if (isNaN(s))
220
+ return /* @__PURE__ */ new Date(NaN);
221
+ if (s) {
222
+ var p = s.getTime(), f = 0, m;
223
+ if (n.time && (f = K(n.time), isNaN(f)))
224
+ return /* @__PURE__ */ new Date(NaN);
225
+ if (n.timeZone || t.timeZone) {
226
+ if (m = O(n.timeZone || t.timeZone, new Date(p + f)), isNaN(m))
227
+ return /* @__PURE__ */ new Date(NaN);
228
+ } else
229
+ m = h(new Date(p + f)), m = h(new Date(p + f + m));
230
+ return new Date(p + f + m);
231
+ } else
232
+ return /* @__PURE__ */ new Date(NaN);
233
+ }
234
+ function B(e) {
235
+ var r = {}, t = u.dateTimePattern.exec(e), a;
236
+ if (t ? (r.date = t[1], a = t[3]) : (t = u.datePattern.exec(e), t ? (r.date = t[1], a = t[2]) : (r.date = null, a = e)), a) {
237
+ var n = u.timeZone.exec(a);
238
+ n ? (r.time = a.replace(n[1], ""), r.timeZone = n[1].trim()) : r.time = a;
239
+ }
240
+ return r;
241
+ }
242
+ function J(e, r) {
243
+ var t = u.YYY[r], a = u.YYYYY[r], n;
244
+ if (n = u.YYYY.exec(e) || a.exec(e), n) {
245
+ var i = n[1];
246
+ return {
247
+ year: parseInt(i, 10),
248
+ restDateString: e.slice(i.length)
249
+ };
250
+ }
251
+ if (n = u.YY.exec(e) || t.exec(e), n) {
252
+ var o = n[1];
253
+ return {
254
+ year: parseInt(o, 10) * 100,
255
+ restDateString: e.slice(o.length)
256
+ };
257
+ }
258
+ return {
259
+ year: null
260
+ };
261
+ }
262
+ function V(e, r) {
263
+ if (r === null)
264
+ return null;
265
+ var t, a, n, i;
266
+ if (e.length === 0)
267
+ return a = /* @__PURE__ */ new Date(0), a.setUTCFullYear(r), a;
268
+ if (t = u.MM.exec(e), t)
269
+ return a = /* @__PURE__ */ new Date(0), n = parseInt(t[1], 10) - 1, U(r, n) ? (a.setUTCFullYear(r, n), a) : /* @__PURE__ */ new Date(NaN);
270
+ if (t = u.DDD.exec(e), t) {
271
+ a = /* @__PURE__ */ new Date(0);
272
+ var o = parseInt(t[1], 10);
273
+ return ee(r, o) ? (a.setUTCFullYear(r, 0, o), a) : /* @__PURE__ */ new Date(NaN);
274
+ }
275
+ if (t = u.MMDD.exec(e), t) {
276
+ a = /* @__PURE__ */ new Date(0), n = parseInt(t[1], 10) - 1;
277
+ var l = parseInt(t[2], 10);
278
+ return U(r, n, l) ? (a.setUTCFullYear(r, n, l), a) : /* @__PURE__ */ new Date(NaN);
279
+ }
280
+ if (t = u.Www.exec(e), t)
281
+ return i = parseInt(t[1], 10) - 1, H(r, i) ? C(r, i) : /* @__PURE__ */ new Date(NaN);
282
+ if (t = u.WwwD.exec(e), t) {
283
+ i = parseInt(t[1], 10) - 1;
284
+ var s = parseInt(t[2], 10) - 1;
285
+ return H(r, i, s) ? C(r, i, s) : /* @__PURE__ */ new Date(NaN);
286
+ }
287
+ return null;
288
+ }
289
+ function K(e) {
290
+ var r, t, a;
291
+ if (r = u.HH.exec(e), r)
292
+ return t = parseFloat(r[1].replace(",", ".")), d(t) ? t % 24 * D : NaN;
293
+ if (r = u.HHMM.exec(e), r)
294
+ return t = parseInt(r[1], 10), a = parseFloat(r[2].replace(",", ".")), d(t, a) ? t % 24 * D + a * x : NaN;
295
+ if (r = u.HHMMSS.exec(e), r) {
296
+ t = parseInt(r[1], 10), a = parseInt(r[2], 10);
297
+ var n = parseFloat(r[3].replace(",", "."));
298
+ return d(t, a, n) ? t % 24 * D + a * x + n * 1e3 : NaN;
299
+ }
300
+ return null;
301
+ }
302
+ function C(e, r, t) {
303
+ r = r || 0, t = t || 0;
304
+ var a = /* @__PURE__ */ new Date(0);
305
+ a.setUTCFullYear(e, 0, 4);
306
+ var n = a.getUTCDay() || 7, i = r * 7 + t + 1 - n;
307
+ return a.setUTCDate(a.getUTCDate() + i), a;
308
+ }
309
+ var Q = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], X = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
310
+ function _(e) {
311
+ return e % 400 === 0 || e % 4 === 0 && e % 100 !== 0;
312
+ }
313
+ function U(e, r, t) {
314
+ if (r < 0 || r > 11)
315
+ return !1;
316
+ if (t != null) {
317
+ if (t < 1)
318
+ return !1;
319
+ var a = _(e);
320
+ if (a && t > X[r] || !a && t > Q[r])
321
+ return !1;
322
+ }
323
+ return !0;
324
+ }
325
+ function ee(e, r) {
326
+ if (r < 1)
327
+ return !1;
328
+ var t = _(e);
329
+ return !(t && r > 366 || !t && r > 365);
330
+ }
331
+ function H(e, r, t) {
332
+ return !(r < 0 || r > 52 || t != null && (t < 0 || t > 6));
333
+ }
334
+ function d(e, r, t) {
335
+ return !(e != null && (e < 0 || e >= 25) || r != null && (r < 0 || r >= 60) || t != null && (t < 0 || t >= 60));
336
+ }
337
+ function ae(e, r, t) {
338
+ var a = G(e, t), n = O(r, a, !0), i = new Date(a.getTime() - n), o = /* @__PURE__ */ new Date(0);
339
+ return o.setFullYear(i.getUTCFullYear(), i.getUTCMonth(), i.getUTCDate()), o.setHours(i.getUTCHours(), i.getUTCMinutes(), i.getUTCSeconds(), i.getUTCMilliseconds()), o;
340
+ }
341
+ const ne = (e) => /* @__PURE__ */ w.createElement("svg", { className: "icon", width: "200px", height: "200.00px", viewBox: "0 0 1024 1024", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ w.createElement("path", { fill: "currentColor", d: "M512 461.994667l-211.2 211.2-60.330667-60.330667L512 341.333333l271.530667 271.530667-60.373334 60.330667-211.2-211.2z" })), re = {
342
+ en: () => import("./index-b7027a1d.js").then((e) => e.l),
343
+ "zh-tw": () => import("./index-d86842c8.js"),
344
+ "ko-kr": () => import("./index-40710f09.js"),
345
+ "uk-ua": () => import("./index-06d0f2f7.js"),
346
+ vi: () => import("./index-7edb6aec.js"),
347
+ ru: () => import("./index-29d37c73.js"),
348
+ es: () => import("./index-e8fb69e0.js"),
349
+ de: () => import("./index-57a163fd.js"),
350
+ fr: () => import("./index-67554651.js"),
351
+ tr: () => import("./index-7cf9b111.js"),
352
+ af: () => import("./index-4d780cf4.js"),
353
+ ar: () => import("./index-67678963.js"),
354
+ az: () => import("./index-d81e15f3.js"),
355
+ "ar-dz": () => import("./index-e2b960e4.js"),
356
+ "ar-eg": () => import("./index-094d2a65.js"),
357
+ "ar-ma": () => import("./index-8585c2f3.js"),
358
+ "ar-sa": () => import("./index-898678dc.js"),
359
+ "ar-tn": () => import("./index-f7c4ae83.js"),
360
+ "be-tarask": () => import("./index-12d32536.js"),
361
+ be: () => import("./index-cc1cd309.js"),
362
+ bg: () => import("./index-4f94d7fa.js"),
363
+ bn: () => import("./index-60fe7f16.js"),
364
+ bs: () => import("./index-a89abb42.js"),
365
+ ca: () => import("./index-80cc70e4.js"),
366
+ cs: () => import("./index-2334248a.js"),
367
+ cy: () => import("./index-a6fa33ce.js"),
368
+ da: () => import("./index-d2f2742e.js"),
369
+ "de-at": () => import("./index-06ef2e10.js"),
370
+ el: () => import("./index-4f94900a.js"),
371
+ eo: () => import("./index-cb1218d8.js"),
372
+ et: () => import("./index-6f728206.js"),
373
+ eu: () => import("./index-c1381bca.js"),
374
+ "fa-ir": () => import("./index-1b2a64df.js"),
375
+ fi: () => import("./index-fda88eb4.js"),
376
+ "fr-ca": () => import("./index-596c785d.js"),
377
+ "fr-ch": () => import("./index-770e5f53.js"),
378
+ fy: () => import("./index-03169373.js"),
379
+ gd: () => import("./index-cbc0d36b.js"),
380
+ gl: () => import("./index-79e7317f.js"),
381
+ gu: () => import("./index-4c6ad36c.js"),
382
+ he: () => import("./index-03513979.js"),
383
+ hi: () => import("./index-6856be22.js"),
384
+ hr: () => import("./index-e9a1ff7f.js"),
385
+ ht: () => import("./index-f40f45fb.js"),
386
+ hu: () => import("./index-e169373b.js"),
387
+ hy: () => import("./index-6f963c6a.js"),
388
+ id: () => import("./index-cfee583b.js"),
389
+ is: () => import("./index-b0da3dfd.js"),
390
+ "it-ch": () => import("./index-4528ba11.js"),
391
+ it: () => import("./index-293f8244.js"),
392
+ "ja-hira": () => import("./index-6e969585.js"),
393
+ ja: () => import("./index-956b36a6.js"),
394
+ ka: () => import("./index-954d3973.js"),
395
+ kk: () => import("./index-9e5efc0a.js"),
396
+ km: () => import("./index-3ee2bafa.js"),
397
+ kn: () => import("./index-f1726c63.js"),
398
+ lb: () => import("./index-19d177fe.js"),
399
+ lt: () => import("./index-fdffd6e6.js"),
400
+ lv: () => import("./index-e1a6a03d.js"),
401
+ mk: () => import("./index-9c73c442.js"),
402
+ mn: () => import("./index-4df0c3e4.js"),
403
+ ms: () => import("./index-141cec17.js"),
404
+ mt: () => import("./index-ceae4147.js"),
405
+ nb: () => import("./index-b103ed31.js"),
406
+ "nl-be": () => import("./index-5fb7b3bc.js"),
407
+ nl: () => import("./index-b54ef52a.js"),
408
+ nn: () => import("./index-117d018c.js"),
409
+ oc: () => import("./index-f64eddcc.js"),
410
+ pl: () => import("./index-8aa9b1be.js"),
411
+ "pt-br": () => import("./index-08a64465.js"),
412
+ pt: () => import("./index-03d6aef0.js"),
413
+ ro: () => import("./index-b7941b97.js"),
414
+ sk: () => import("./index-c6371af1.js"),
415
+ sl: () => import("./index-2ae0474b.js"),
416
+ sq: () => import("./index-5beeed26.js"),
417
+ "sr-latn": () => import("./index-4bc493f0.js"),
418
+ sr: () => import("./index-c69f6dfc.js"),
419
+ sv: () => import("./index-75190b99.js"),
420
+ ta: () => import("./index-11268759.js"),
421
+ te: () => import("./index-e98ef24f.js"),
422
+ th: () => import("./index-63a66f13.js"),
423
+ ug: () => import("./index-73bfc020.js"),
424
+ "uz-cyrl": () => import("./index-360aaaac.js"),
425
+ uz: () => import("./index-d3419554.js")
426
+ }, ie = async (e) => {
427
+ const r = re[e];
428
+ if (r)
429
+ try {
430
+ return (await r()).default;
431
+ } catch (t) {
432
+ return console.error(`Failed to load locale: ${e}`, t), null;
433
+ }
434
+ return null;
435
+ };
436
+ export {
437
+ ne as S,
438
+ ie as l,
439
+ ae as u
440
+ };
@@ -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) => number;
23
+ export type Methods = (config: configType, type: BUIComponentType, position?: string) => void;
24
24
  export type ToastMthods = (msg: string, type: BUIComponentType) => void;
25
25
  interface NoticeContextProps {
26
26
  notificationListLeftBottom: NotificationType[];
@@ -1,8 +1,12 @@
1
- /// <reference types="react" />
2
- import { BUITheme } from "..";
1
+ import { ReactNode } from "react";
2
+ import { BUITheme } from "../types/component";
3
3
  interface ThemeContextProps {
4
4
  theme: BUITheme;
5
5
  }
6
6
  declare const ThemeContext: import("react").Context<ThemeContextProps>;
7
- declare const ThemeProvider: import("react").Provider<ThemeContextProps>;
7
+ interface ThemeProviderProps {
8
+ value: ThemeContextProps;
9
+ children: ReactNode;
10
+ }
11
+ declare const ThemeProvider: ({ value, children }: ThemeProviderProps) => import("react/jsx-runtime").JSX.Element;
8
12
  export { ThemeContext, ThemeProvider };
@@ -1,4 +1,4 @@
1
1
  declare const useTheme: () => {
2
2
  theme: import("..").BUITheme;
3
3
  };
4
- export default useTheme;
4
+ export { useTheme };
@@ -0,0 +1,6 @@
1
+ "use client";
2
+ import * as e from "react";
3
+ const r = (t) => /* @__PURE__ */ e.createElement("svg", { width: 16, height: 16, viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ e.createElement("g", { id: "search-fill" }, /* @__PURE__ */ e.createElement("path", { id: "Vector", d: "M12.0206 11.0785L14.8757 13.9337L13.9329 14.8765L11.0778 12.0213C10.0512 12.8427 8.74925 13.334 7.33325 13.334C4.02125 13.334 1.33325 10.646 1.33325 7.33398C1.33325 4.02198 4.02125 1.33398 7.33325 1.33398C10.6453 1.33398 13.3333 4.02198 13.3333 7.33398C13.3333 8.74998 12.8419 10.0519 12.0206 11.0785ZM10.6831 10.5839C11.4983 9.74372 11.9999 8.59772 11.9999 7.33398C11.9999 4.75565 9.91159 2.66732 7.33325 2.66732C4.75492 2.66732 2.66659 4.75565 2.66659 7.33398C2.66659 9.91232 4.75492 12.0007 7.33325 12.0007C8.59699 12.0007 9.74299 11.499 10.5831 10.6838L10.6831 10.5839Z", fill: "currentColor", fillOpacity: 1 })));
4
+ export {
5
+ r as S
6
+ };