@blofin/blofin-ui 0.7.58 → 0.7.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (293) hide show
  1. package/dist/Badge.es.js +8 -10
  2. package/dist/Button.es.js +125 -127
  3. package/dist/Dialog.es.js +10 -180
  4. package/dist/Divider.es.js +10 -12
  5. package/dist/Drawer.es.js +51 -44
  6. package/dist/Form.d.ts +1 -0
  7. package/dist/Form.es.js +752 -0
  8. package/dist/ProTable-63e2c020.js +3444 -0
  9. package/dist/ProTable.es.js +6 -9
  10. package/dist/Slider.es.js +140 -141
  11. package/dist/Sort.es.js +10 -144
  12. package/dist/blofin.css +1 -1
  13. package/dist/{close-0df24351.js → close-c67ec245.js} +0 -1
  14. package/dist/clsx.m-b14a941b.js +32 -0
  15. package/dist/components/Alert/Alert.d.ts +3 -3
  16. package/dist/components/Alert/styles.d.ts +2 -2
  17. package/dist/components/Badge/Badge.d.ts +2 -2
  18. package/dist/components/Button/Button.d.ts +2 -2
  19. package/dist/components/Button/Loading/index.d.ts +2 -2
  20. package/dist/components/Button/index.d.ts +0 -2
  21. package/dist/components/Button/styles.d.ts +1 -1
  22. package/dist/components/Checkbox/styles.d.ts +1 -1
  23. package/dist/components/CssDropdown/CssDropdown.d.ts +3 -3
  24. package/dist/components/DatePickerRange/styles.d.ts +1 -0
  25. package/dist/components/DateTimePicker/ScrollableList.d.ts +1 -1
  26. package/dist/components/Dialog/Dialog.d.ts +2 -5
  27. package/dist/components/Dialog/index.d.ts +2 -4
  28. package/dist/components/Dialog/styles.d.ts +2 -2
  29. package/dist/components/Drawer/Drawer.d.ts +1 -1
  30. package/dist/components/Dropdown/Dropdown.d.ts +2 -2
  31. package/dist/components/Empty/index.d.ts +5 -2
  32. package/dist/components/Form/Control.d.ts +13 -0
  33. package/dist/components/Form/Form.d.ts +4 -0
  34. package/dist/components/Form/FormItem.d.ts +4 -0
  35. package/dist/components/Form/FormLabel.d.ts +4 -0
  36. package/dist/components/Form/context.d.ts +6 -0
  37. package/dist/components/Form/index.d.ts +8 -0
  38. package/dist/components/Form/interface.d.ts +48 -0
  39. package/dist/components/Form/store.d.ts +16 -0
  40. package/dist/components/Form/styles/item.d.ts +5 -0
  41. package/dist/components/Form/useForm.d.ts +3 -0
  42. package/dist/components/LabelTextField/LabelTextField.d.ts +6 -6
  43. package/dist/components/MonthPicker/index.d.ts +17 -2
  44. package/dist/components/MultiSelect/MultiSelect.d.ts +4 -4
  45. package/dist/components/Notification/Notification.d.ts +1 -1
  46. package/dist/components/Pagination/PageOptions.d.ts +1 -1
  47. package/dist/components/Pagination/Pagination.d.ts +2 -2
  48. package/dist/components/Picker/hooks/usePickerMethod.d.ts +1 -1
  49. package/dist/components/Picker/index.d.ts +10 -2
  50. package/dist/components/Popover/Popover.d.ts +1 -1
  51. package/dist/components/Popup/index.d.ts +15 -4
  52. package/dist/components/RadioButton/RadioButton.d.ts +4 -4
  53. package/dist/components/RadioButton/styles.d.ts +1 -1
  54. package/dist/components/Select/Select.d.ts +9 -6
  55. package/dist/components/Slider/Slider.d.ts +2 -2
  56. package/dist/components/Sort/SortButton.d.ts +5 -5
  57. package/dist/components/Sort/SortGroup.d.ts +4 -4
  58. package/dist/components/Sort/index.d.ts +6 -5
  59. package/dist/components/Sortable/SortItem.d.ts +4 -4
  60. package/dist/components/Sortable/index.d.ts +11 -3
  61. package/dist/components/Switch/Switch.d.ts +2 -2
  62. package/dist/components/Switch/styles.d.ts +3 -3
  63. package/dist/components/Tab/Tab.d.ts +2 -2
  64. package/dist/components/Tab/styles.d.ts +1 -1
  65. package/dist/components/Table/Pagination/index.d.ts +2 -2
  66. package/dist/components/Table/Table.d.ts +2 -2
  67. package/dist/components/Table/Tbody/index.d.ts +3 -3
  68. package/dist/components/Table/Thead/index.d.ts +3 -3
  69. package/dist/components/Table/context.d.ts +3 -3
  70. package/dist/components/Table/hooks/useStickyOffset.d.ts +3 -3
  71. package/dist/components/Table/index.d.ts +3 -3
  72. package/dist/components/Table/interface.d.ts +4 -4
  73. package/dist/components/TextField/TextField.d.ts +4 -4
  74. package/dist/components/TextField/index.d.ts +0 -2
  75. package/dist/components/TextSelect/TextSelect.d.ts +8 -8
  76. package/dist/components/Textarea/index.d.ts +15 -2
  77. package/dist/components/Toast/Toast.d.ts +13 -2
  78. package/dist/components/Toast/styles.d.ts +1 -1
  79. package/dist/components/Tooltip/Tooltip.d.ts +5 -4
  80. package/dist/components/Typography/Typography.d.ts +2 -2
  81. package/dist/components/Typography/styles.d.ts +1 -1
  82. package/dist/hooks/useLatest.d.ts +1 -1
  83. package/dist/hooks/useNotification.d.ts +7 -5
  84. package/dist/hooks/useToast.d.ts +1 -1
  85. package/dist/{index-4f94d7fa.js → index-001dd0f7.js} +39 -24
  86. package/dist/{index-29d37c73.js → index-003572ca.js} +67 -52
  87. package/dist/{index-57a163fd.js → index-0330bc93.js} +28 -13
  88. package/dist/{index-d81e15f3.js → index-05bf2879.js} +34 -19
  89. package/dist/{index-b54ef52a.js → index-0773f9b5.js} +31 -16
  90. package/dist/{index-6856be22.js → index-0c50dcda.js} +38 -23
  91. package/dist/{index-7cf9b111.js → index-0e6d56f6.js} +33 -18
  92. package/dist/{index-a89abb42.js → index-0eb53476.js} +19 -4
  93. package/dist/{index-0230b5a9.js → index-0f855a91.js} +4 -5
  94. package/dist/{index-cbc0d36b.js → index-10144af4.js} +30 -15
  95. package/dist/{index-06d0f2f7.js → index-11dc8e91.js} +28 -13
  96. package/dist/{index-c6371af1.js → index-14eba896.js} +25 -10
  97. package/dist/{index-c1381bca.js → index-18869ac6.js} +35 -20
  98. package/dist/{index-1b2a64df.js → index-189196e6.js} +46 -31
  99. package/dist/{index-898678dc.js → index-198ccc85.js} +45 -30
  100. package/dist/{index-e2b960e4.js → index-1b087231.js} +38 -23
  101. package/dist/{index-f40f45fb.js → index-204cbb23.js} +30 -15
  102. package/dist/{index-4df0c3e4.js → index-220ed10a.js} +31 -16
  103. package/dist/{index-67678963.js → index-28a6835c.js} +48 -33
  104. package/dist/{index-e98ef24f.js → index-2d400fe1.js} +32 -17
  105. package/dist/{index-e8fb69e0.js → index-2e0c8d16.js} +37 -22
  106. package/dist/{index-cc1cd309.js → index-2e784550.js} +28 -13
  107. package/dist/index-304d7874.js +64 -0
  108. package/dist/{index-12d32536.js → index-3375e2e3.js} +28 -13
  109. package/dist/{index-954d3973.js → index-36521981.js} +28 -13
  110. package/dist/{index-cfee583b.js → index-377dc190.js} +36 -21
  111. package/dist/{index-4f94900a.js → index-390505ce.js} +34 -19
  112. package/dist/index-40626e62.js +174 -0
  113. package/dist/{index-b0da3dfd.js → index-41bebee7.js} +39 -24
  114. package/dist/{index-5fb7b3bc.js → index-45cfa2f3.js} +27 -12
  115. package/dist/{index-80cc70e4.js → index-47408940.js} +41 -26
  116. package/dist/{index-141cec17.js → index-4b9249fc.js} +29 -14
  117. package/dist/index-543e2f77.js +65 -0
  118. package/dist/index-563cafee.js +64 -0
  119. package/dist/index-5956ed9f.js +11569 -0
  120. package/dist/{index-b103ed31.js → index-59c7d611.js} +27 -12
  121. package/dist/{index-d2f2742e.js → index-5bc791c5.js} +30 -15
  122. package/dist/{index-03513979.js → index-5f3da225.js} +26 -11
  123. package/dist/{index-8aa9b1be.js → index-603f0f2a.js} +39 -24
  124. package/dist/{index-4bc493f0.js → index-636a6216.js} +19 -4
  125. package/dist/{index-2334248a.js → index-640dc4ab.js} +24 -9
  126. package/dist/{index-73bfc020.js → index-64ba8d88.js} +47 -32
  127. package/dist/{index-2ae0474b.js → index-65986673.js} +39 -24
  128. package/dist/{index-6f728206.js → index-65df0a7b.js} +24 -9
  129. package/dist/{index-02f669c4.js → index-6e4d9a19.js} +1 -2
  130. package/dist/{index-360aaaac.js → index-7241c703.js} +46 -31
  131. package/dist/index-7272669e.js +36 -0
  132. package/dist/{index-9c73c442.js → index-73673cf3.js} +60 -45
  133. package/dist/{index-08a64465.js → index-74676234.js} +31 -16
  134. package/dist/{index-7edb6aec.js → index-770fe605.js} +34 -19
  135. package/dist/{index-5beeed26.js → index-772d6529.js} +38 -23
  136. package/dist/{index-6e969585.js → index-797b8f6c.js} +52 -37
  137. package/dist/{index-a6fa33ce.js → index-7c12aa98.js} +28 -13
  138. package/dist/{index-5e6ffc2f.js → index-7e7cdd81.js} +1 -2
  139. package/dist/{index-03169373.js → index-81072b24.js} +37 -22
  140. package/dist/{index-75190b99.js → index-8684e896.js} +22 -7
  141. package/dist/{index-7bb9ffdf.js → index-89f184f3.js} +2 -3
  142. package/dist/{index-40710f09.js → index-8a7c46ae.js} +41 -26
  143. package/dist/{index-117d018c.js → index-8cec0e82.js} +37 -22
  144. package/dist/{index-094d2a65.js → index-91062be2.js} +34 -19
  145. package/dist/{index-d3419554.js → index-9253a5ce.js} +30 -15
  146. package/dist/index-95c68eda.js +152 -0
  147. package/dist/{index-956b36a6.js → index-9eaebb69.js} +45 -30
  148. package/dist/{index-63a66f13.js → index-a4077786.js} +45 -30
  149. package/dist/{index-e9a1ff7f.js → index-ad2acfd2.js} +19 -4
  150. package/dist/{index-fdffd6e6.js → index-af60bed6.js} +29 -14
  151. package/dist/{index-fda88eb4.js → index-b5ff5e93.js} +45 -30
  152. package/dist/{index-11268759.js → index-bba889fc.js} +33 -18
  153. package/dist/{index-b7941b97.js → index-c002eb57.js} +23 -8
  154. package/dist/{index-4c6ad36c.js → index-c73b6cc3.js} +47 -32
  155. package/dist/{index-60fe7f16.js → index-c81a4a2a.js} +32 -17
  156. package/dist/{index-f7c4ae83.js → index-c8690f0a.js} +48 -33
  157. package/dist/{index-79e7317f.js → index-cdaffd70.js} +27 -12
  158. package/dist/{index-4d780cf4.js → index-cf872561.js} +37 -22
  159. package/dist/{index-cb1218d8.js → index-dafac81d.js} +25 -10
  160. package/dist/{index-19d177fe.js → index-db7c7495.js} +31 -16
  161. package/dist/{index-f1726c63.js → index-dbd4bd27.js} +29 -14
  162. package/dist/{index-ceae4147.js → index-dc23eb8b.js} +27 -12
  163. package/dist/{index-9e5efc0a.js → index-dc69cdd8.js} +45 -30
  164. package/dist/{index-c69f6dfc.js → index-e6091315.js} +36 -21
  165. package/dist/{index-06ef2e10.js → index-e869e999.js} +28 -13
  166. package/dist/{index-03d6aef0.js → index-f0c42ec9.js} +33 -18
  167. package/dist/{index-f64eddcc.js → index-f16b36a5.js} +31 -16
  168. package/dist/{index-e1a6a03d.js → index-f4d65525.js} +24 -9
  169. package/dist/index-f53123c7.js +64 -0
  170. package/dist/{index-770e5f53.js → index-f753119c.js} +27 -12
  171. package/dist/{index-8585c2f3.js → index-f83dab77.js} +38 -23
  172. package/dist/{index-6f963c6a.js → index-f852d9b6.js} +35 -20
  173. package/dist/{index-3ee2bafa.js → index-fa51b278.js} +30 -15
  174. package/dist/{index-e169373b.js → index-fc135912.js} +25 -10
  175. package/dist/{index-ef31f5f8.js → index-fcb1ec65.js} +1 -2
  176. package/dist/{index-d86842c8.js → index-ff943066.js} +34 -19
  177. package/dist/index.d.ts +48 -36
  178. package/dist/index.es.js +56 -223
  179. package/dist/isObjectLike-1b8bbac2.js +44 -0
  180. package/dist/jsx-runtime-82a9ddf6.js +646 -0
  181. package/dist/provider/NoticeProvider.d.ts +1 -1
  182. package/dist/provider/ThemeProvider.d.ts +3 -7
  183. package/dist/provider/useTheme.d.ts +1 -1
  184. package/dist/types/component.d.ts +1 -1
  185. package/dist/utils/helper.d.ts +1 -1
  186. package/dist/{utils-071abd68.js → utils-cacf528c.js} +1 -2
  187. package/package.json +3 -2
  188. package/dist/Calendar.d.ts +0 -1
  189. package/dist/Calendar.es.js +0 -210
  190. package/dist/Checkbox.d.ts +0 -1
  191. package/dist/Checkbox.es.js +0 -138
  192. package/dist/CssDropdown.d.ts +0 -1
  193. package/dist/CssDropdown.es.js +0 -38
  194. package/dist/DatePickerRange.d.ts +0 -1
  195. package/dist/DatePickerRange.es.js +0 -410
  196. package/dist/DateTimePicker.d.ts +0 -1
  197. package/dist/DateTimePicker.es.js +0 -519
  198. package/dist/Dropdown.d.ts +0 -1
  199. package/dist/Dropdown.es.js +0 -134
  200. package/dist/Empty.d.ts +0 -1
  201. package/dist/Empty.es.js +0 -11
  202. package/dist/LabelTextField.d.ts +0 -1
  203. package/dist/LabelTextField.es.js +0 -100
  204. package/dist/MonthPicker.d.ts +0 -1
  205. package/dist/MonthPicker.es.js +0 -16
  206. package/dist/MultiSelect.d.ts +0 -1
  207. package/dist/MultiSelect.es.js +0 -425
  208. package/dist/Notification.d.ts +0 -1
  209. package/dist/Notification.es.js +0 -12
  210. package/dist/Pagination.d.ts +0 -1
  211. package/dist/Pagination.es.js +0 -219
  212. package/dist/Picker.d.ts +0 -1
  213. package/dist/Picker.es.js +0 -224
  214. package/dist/Popover.d.ts +0 -1
  215. package/dist/Popover.es.js +0 -107
  216. package/dist/Popup.d.ts +0 -1
  217. package/dist/Popup.es.js +0 -62
  218. package/dist/ProTable-7a07d8b6.js +0 -565
  219. package/dist/RadioButton.d.ts +0 -1
  220. package/dist/RadioButton.es.js +0 -152
  221. package/dist/Select.d.ts +0 -1
  222. package/dist/Select.es.js +0 -316
  223. package/dist/Sortable.d.ts +0 -1
  224. package/dist/Sortable.es.js +0 -39
  225. package/dist/Switch.d.ts +0 -1
  226. package/dist/Switch.es.js +0 -64
  227. package/dist/Tab.d.ts +0 -1
  228. package/dist/Tab.es.js +0 -101
  229. package/dist/Table.d.ts +0 -1
  230. package/dist/Table.es.js +0 -359
  231. package/dist/TextField.d.ts +0 -1
  232. package/dist/TextField.es.js +0 -64
  233. package/dist/TextSelect.d.ts +0 -1
  234. package/dist/TextSelect.es.js +0 -17
  235. package/dist/Textarea.d.ts +0 -1
  236. package/dist/Textarea.es.js +0 -106
  237. package/dist/Toast.d.ts +0 -1
  238. package/dist/Toast.es.js +0 -12
  239. package/dist/Tooltip.d.ts +0 -1
  240. package/dist/Tooltip.es.js +0 -144
  241. package/dist/Typography.d.ts +0 -1
  242. package/dist/Typography.es.js +0 -74
  243. package/dist/_commonjsHelpers-1d52fb73.js +0 -9
  244. package/dist/arrow-down-011b02c7.js +0 -6
  245. package/dist/arrow-down-l-line-97e4fe24.js +0 -6
  246. package/dist/arrow-fill-70becd96.js +0 -6
  247. package/dist/arrow-right-l-line-87881b4d.js +0 -7
  248. package/dist/close-bg-6d2211ef.js +0 -6
  249. package/dist/clsx.m-e965ef18.js +0 -22
  250. package/dist/components/CssDropdown/index.d.ts +0 -2
  251. package/dist/components/DatePickerRange/index.d.ts +0 -4
  252. package/dist/components/DateTimePicker/index.d.ts +0 -4
  253. package/dist/components/Dropdown/index.d.ts +0 -2
  254. package/dist/components/Empty/Empty.d.ts +0 -5
  255. package/dist/components/MonthPicker/MonthPicker.d.ts +0 -17
  256. package/dist/components/MultiSelect/index.d.ts +0 -2
  257. package/dist/components/Notification/index.d.ts +0 -2
  258. package/dist/components/Pagination/index.d.ts +0 -3
  259. package/dist/components/Picker/Picker.d.ts +0 -10
  260. package/dist/components/Popover/index.d.ts +0 -5
  261. package/dist/components/Popup/Popup.d.ts +0 -15
  262. package/dist/components/Sortable/Sortable.d.ts +0 -11
  263. package/dist/components/Switch/index.d.ts +0 -2
  264. package/dist/components/Tab/index.d.ts +0 -4
  265. package/dist/components/TextSelect/index.d.ts +0 -2
  266. package/dist/components/Textarea/Textarea.d.ts +0 -15
  267. package/dist/components/Toast/index.d.ts +0 -2
  268. package/dist/components/Tooltip/index.d.ts +0 -2
  269. package/dist/components/Typography/index.d.ts +0 -4
  270. package/dist/enum-0398044b.js +0 -17
  271. package/dist/helper-221987f8.js +0 -7
  272. package/dist/index-293f8244.js +0 -49
  273. package/dist/index-40023d52.js +0 -5322
  274. package/dist/index-4528ba11.js +0 -49
  275. package/dist/index-596c785d.js +0 -50
  276. package/dist/index-67554651.js +0 -49
  277. package/dist/index-9349bf2d.js +0 -345
  278. package/dist/index-b7027a1d.js +0 -1295
  279. package/dist/index-c57db938.js +0 -37
  280. package/dist/index-eea69add.js +0 -71
  281. package/dist/index.esm-71578db5.js +0 -1198
  282. package/dist/index.module-1d7bbdf8.js +0 -7
  283. package/dist/index.module-86edc823.js +0 -15
  284. package/dist/index.module-b4239ff5.js +0 -9
  285. package/dist/index.module-fb41ba3b.js +0 -39
  286. package/dist/locales-776f0072.js +0 -440
  287. package/dist/search-b79a3be5.js +0 -6
  288. package/dist/sortable.esm-1c13d908.js +0 -2896
  289. package/dist/sortable.esm-8d31c120.js +0 -1275
  290. package/dist/styles-85a9fe64.js +0 -136
  291. package/dist/useAlign-916ed3be.js +0 -44
  292. package/dist/useDelayEvent-f577f6a3.js +0 -1082
  293. package/dist/useTheme-0688f238.js +0 -16
@@ -1,5 +1,4 @@
1
- "use client";
2
- import { c as ar } from "./clsx.m-e965ef18.js";
1
+ import { c as ar } from "./clsx.m-b14a941b.js";
3
2
  function sr() {
4
3
  for (var r = 0, e, t, o = ""; r < arguments.length; )
5
4
  (e = arguments[r++]) && (t = er(e)) && (o && (o += " "), o += t);
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "git+https://github.com/blofinex/blofin-ui.git"
6
6
  },
7
- "version": "0.7.58",
7
+ "version": "0.7.59",
8
8
  "module": "./dist/index.es.js",
9
9
  "type": "module",
10
10
  "types": "./dist/index.d.ts",
@@ -22,7 +22,8 @@
22
22
  "./Drawer": "./dist/Drawer.es.js",
23
23
  "./Form": "./dist/Form.es.js",
24
24
  "./ProTable": "./dist/ProTable.es.js",
25
- "./Slider": "./dist/Slider.es.js"
25
+ "./Slider": "./dist/Slider.es.js",
26
+ "./Sort": "./dist/Sort.es.js"
26
27
  },
27
28
  "files": [
28
29
  "dist"
@@ -1 +0,0 @@
1
- export * from './components/Calendar/index'
@@ -1,210 +0,0 @@
1
- "use client";
2
- import { jsx as r, jsxs as i } from "react/jsx-runtime";
3
- import * as _ from "react";
4
- import { Typography as $ } from "./Typography.es.js";
5
- import { S as D } from "./arrow-down-l-line-97e4fe24.js";
6
- import { a as C, S as N } from "./arrow-right-l-line-87881b4d.js";
7
- import { D as M, u as L } from "./index.esm-71578db5.js";
8
- import { c as t } from "./index-c57db938.js";
9
- import { u as j } from "./useTheme-0688f238.js";
10
- import { i as S } from "./index-b7027a1d.js";
11
- import "./utils-071abd68.js";
12
- import "./clsx.m-e965ef18.js";
13
- const d = t("", {
14
- variants: {
15
- theme: {
16
- light: "bu-text-light-label",
17
- dark: "bu-text-dark-label"
18
- }
19
- }
20
- }), R = t("", {
21
- variants: {
22
- theme: {
23
- light: "bu-border-light-line-secondary",
24
- dark: "bu-border-dark-line-secondary"
25
- }
26
- }
27
- }), q = t("", {
28
- variants: {
29
- theme: {
30
- light: "bu-bg-light-background hover:bu-bg-light-fill-quaternary hover:bu-text-light-label",
31
- dark: "bu-bg-dark-background hover:bu-bg-dark-fill-quaternary hover:bu-text-dark-label"
32
- }
33
- }
34
- }), A = t("", {
35
- variants: {
36
- theme: {
37
- light: "bu-border-light-line-secondary bu-text-light-label-40",
38
- dark: "bu-border-dark-line-secondary bu-text-dark-label-40"
39
- }
40
- }
41
- }), T = t("", {
42
- variants: {
43
- theme: {
44
- light: "[&:has([aria-selected])]:bu-bg-light-primary-14 [&:has([aria-selected])]:bu-text-light-second [&:has([aria-selected].day-outside)]:!bu-bg-light-background [&:has([disabled])]:bu-bg-light-line-primary",
45
- dark: "[&:has([aria-selected])]:bu-bg-dark-primary-14 [&:has([aria-selected])]:bu-text-dark-second [&:has([aria-selected].day-outside)]:!bu-bg-dark-background [&:has([disabled])]:bu-bg-dark-line-primary"
46
- }
47
- }
48
- }), E = t("", {
49
- variants: {
50
- theme: {
51
- light: "bu-text-light-label hover:bu-bg-light-primary-14 hover:bu-text-light-primary",
52
- dark: "bu-text-dark-label hover:bu-bg-dark-primary-14 hover:bu-text-dark-primary"
53
- }
54
- }
55
- }), I = t("", {
56
- variants: {
57
- theme: {
58
- light: "bu-bg-light-primary bu-text-light-second hover:!bu-bg-light-primary hover:!bu-text-light-second",
59
- dark: "bu-bg-dark-primary bu-text-dark-second hover:!bu-bg-dark-primary hover:!bu-text-dark-second"
60
- }
61
- }
62
- }), z = t("", {
63
- variants: {
64
- theme: {
65
- light: "bu-bg-light-primary bu-text-light-second hover:!bu-bg-light-primary hover:!bu-text-light-second",
66
- dark: "bu-bg-dark-primary bu-text-dark-second hover:!bu-bg-dark-primary hover:!bu-text-dark-second"
67
- }
68
- }
69
- }), B = t("", {
70
- variants: {
71
- theme: {
72
- light: "bu-bg-light-fill-quaternary bu-text-light-label aria-selected:bu-bg-light-primary aria-selected:bu-text-light-second",
73
- dark: "bu-bg-dark-fill-quaternary bu-text-dark-label aria-selected:bu-bg-dark-primary aria-selected:bu-text-dark-second"
74
- }
75
- }
76
- }), H = t("", {
77
- variants: {
78
- theme: {
79
- light: "hover:bu-bg-light-primary hover:bu-text-light-second focus:bu-bg-light-primary focus:bu-text-light-second",
80
- dark: "hover:bu-bg-dark-primary hover:bu-text-dark-second focus:bu-bg-dark-primary focus:bu-text-dark-second"
81
- }
82
- }
83
- }), O = t("", {
84
- variants: {
85
- theme: {
86
- light: "bu-text-light-label-40 hover:!bu-bg-light-primary-14 hover:!bu-text-light-primary aria-selected:!bu-bg-light-background aria-selected:!bu-text-light-label-40",
87
- dark: "bu-text-dark-label-40 hover:!bu-bg-dark-primary-14 hover:!bu-text-dark-primary aria-selected:!bu-bg-dark-background aria-selected:!bu-text-dark-label-40"
88
- }
89
- }
90
- }), P = t("", {
91
- variants: {
92
- theme: {
93
- light: "bu-text-light-label-40",
94
- dark: "bu-text-dark-label-40"
95
- }
96
- }
97
- }), F = t("", {
98
- variants: {
99
- theme: {
100
- light: "hover:!bu-bg-light-primary-14 hover:!bu-text-light-primary",
101
- dark: "hover:!bu-bg-dark-primary-14 hover:!bu-text-dark-primary"
102
- }
103
- }
104
- }), ee = ({
105
- className: c = "",
106
- classNames: g,
107
- showOutsideDays: m = !0,
108
- month: b,
109
- startMonthShow: l,
110
- endMonthShow: o,
111
- setStartMonthShow: p,
112
- setEndMonthShow: y,
113
- setStartMonth: x,
114
- setEndMonth: k,
115
- locale: n,
116
- ...v
117
- }) => {
118
- const { theme: e } = j();
119
- function f(a) {
120
- const { goToMonth: u, nextMonth: s, previousMonth: h } = L(), w = () => {
121
- a.displayIndex === 0 ? (p(!l), x(a.displayMonth)) : (y(!o), k(a.displayMonth));
122
- };
123
- return _.useEffect(() => {
124
- b && u(b);
125
- }, [b]), /* @__PURE__ */ i("div", { className: "bu-flex bu-h-10 bu-items-center bu-justify-between bu-py-2", children: [
126
- /* @__PURE__ */ i(
127
- "div",
128
- {
129
- className: "bu-flex bu-h-3 bu-cursor-pointer bu-items-center bu-gap-1",
130
- onClick: w,
131
- children: [
132
- /* @__PURE__ */ r($, { variant: "body2", weight: "medium", children: S(a.displayMonth, "MMM yyy", { locale: n }) }),
133
- /* @__PURE__ */ r(
134
- D,
135
- {
136
- className: `bu-h-5 bu-w-5 bu-cursor-pointer ${d({ theme: e })}`
137
- }
138
- )
139
- ]
140
- }
141
- ),
142
- a.displayIndex === 1 && /* @__PURE__ */ i("div", { className: "bu-flex bu-gap-6", children: [
143
- /* @__PURE__ */ r(
144
- C,
145
- {
146
- className: `bu-h-6 bu-w-6 bu-cursor-pointer ${d({ theme: e })}`,
147
- onClick: () => h && u(h)
148
- }
149
- ),
150
- /* @__PURE__ */ r(
151
- N,
152
- {
153
- className: `bu-h-6 bu-w-6 bu-cursor-pointer ${d({ theme: e })}`,
154
- onClick: () => s && u(s)
155
- }
156
- )
157
- ] })
158
- ] });
159
- }
160
- return /* @__PURE__ */ r(
161
- M,
162
- {
163
- showOutsideDays: m,
164
- className: `pb-4 ${c}`,
165
- classNames: {
166
- months: "bu-flex bu-flex-col sm:bu-flex-row bu-space-y-4 sm:bu-space-x-4 sm:bu-space-y-0",
167
- month: "bu-space-y-4",
168
- caption: "bu-flex bu-justify-center bu-pt-1 bu-relative bu-items-center",
169
- caption_label: "bu-text-base bu-font-medium",
170
- caption_start: `bu-border-r bu-pr-[16px] bu-pt-[16px] ${R({ theme: e })} ${l ? "bu-hidden" : ""}`,
171
- caption_end: `bu-pt-[16px] ${o ? "bu-hidden" : ""}`,
172
- nav: "bu-space-x-1 bu-flex bu-items-center",
173
- nav_button: `${q({
174
- theme: e
175
- })} bu-inline-flex bu-items-center bu-justify-center bu-whitespace-nowrap bu-rounded-md bu-text-base bu-font-medium bu-ring-offset-background bu-transition-colors disabled:bu-pointer-events-none bu-h-7 bu-w-7 bu-bg-transparent bu-p-0 hover:bu-opacity-100 bu-border bu-border-input`,
176
- nav_button_previous: "bu-absolute bu-left-1",
177
- nav_button_next: "bu-absolute bu-right-1",
178
- table: "bu-w-full bu-border-collapse !bu-mt-[8px]",
179
- head_row: "bu-flex",
180
- head_cell: `bu-w-8 bu-font-normal bu-text-[12px] bu-pb-[8px] bu-border-b ${A({
181
- theme: e
182
- })}`,
183
- row: "bu-flex bu-w-full bu-mt-2",
184
- cell: `${T({
185
- theme: e
186
- })} bu-h-8 bu-w-8 bu-text-center bu-text-base bu-p-0 bu-relative [&:has([disabled])]:!bu-cursor-not-allowed [&:has([aria-selected].day-range-end)]:bu-rounded-r-[16px] first:[&:has([aria-selected])]:bu-rounded-l-[0px] last:[&:has([aria-selected])]:bu-rounded-r-[0px] focus-within:bu-relative focus-within:bu-z-20 [&:has([aria-selected].day-range-start)]:bu-rounded-l-[16px]`,
187
- day: `${E({
188
- theme: e
189
- })} bu-inline-flex bu-items-center bu-justify-center bu-whitespace-nowrap bu-rounded-[16px] bu-text-base bu-font-medium bu-ring-offset-background bu-transition-colors focus:bu-outline-none disabled:bu-pointer-events-none bu-h-8 bu-w-8 bu-p-0 bu-font-normal aria-selected:bu-opacity-100`,
190
- day_range_start: `day-range-start ${I({ theme: e })}`,
191
- day_range_end: `day-range-end ${z({ theme: e })}`,
192
- day_selected: `${H({ theme: e })}`,
193
- day_today: `${B({ theme: e })} bu-rounded-[16px]`,
194
- day_outside: `day-outside ${O({ theme: e })} aria-selected:bu-rounded-[16px]`,
195
- day_disabled: `${P({ theme: e })}`,
196
- day_range_middle: `${F({ theme: e })}`,
197
- day_hidden: "invisible",
198
- ...g
199
- },
200
- components: {
201
- Caption: f
202
- },
203
- locale: n,
204
- ...v
205
- }
206
- );
207
- };
208
- export {
209
- ee as Calendar
210
- };
@@ -1 +0,0 @@
1
- export * from './components/Checkbox/index'
@@ -1,138 +0,0 @@
1
- "use client";
2
- import { jsxs as b, jsx as e } from "react/jsx-runtime";
3
- import { forwardRef as k } from "react";
4
- import { u as L } from "./useTheme-0688f238.js";
5
- import { c as V } from "./utils-071abd68.js";
6
- import "./Button.es.js";
7
- import "./index.esm-71578db5.js";
8
- import "./index.module-fb41ba3b.js";
9
- import "./Popup.es.js";
10
- import "./index.module-1d7bbdf8.js";
11
- import "./Dialog.es.js";
12
- import "react-dom";
13
- import "./enum-0398044b.js";
14
- import "./Popover.es.js";
15
- import "./index.module-86edc823.js";
16
- import "./LabelTextField.es.js";
17
- import "./index-9349bf2d.js";
18
- import "./RadioButton.es.js";
19
- import "./Select.es.js";
20
- import "./Slider.es.js";
21
- import "./Sort.es.js";
22
- import "./index.module-b4239ff5.js";
23
- import "./Tab.es.js";
24
- import "./Table.es.js";
25
- import "./TextField.es.js";
26
- import "./Textarea.es.js";
27
- import "./sortable.esm-8d31c120.js";
28
- import "./MultiSelect.es.js";
29
- import "./index-40023d52.js";
30
- import "./sortable.esm-1c13d908.js";
31
- import { c as s } from "./index-c57db938.js";
32
- import "./clsx.m-e965ef18.js";
33
- import "./index-b7027a1d.js";
34
- import "./_commonjsHelpers-1d52fb73.js";
35
- import "./close-0df24351.js";
36
- import "./useDelayEvent-f577f6a3.js";
37
- import "./Typography.es.js";
38
- import "./styles-85a9fe64.js";
39
- import "./useAlign-916ed3be.js";
40
- import "./arrow-down-011b02c7.js";
41
- import "./search-b79a3be5.js";
42
- import "./arrow-fill-70becd96.js";
43
- import "./helper-221987f8.js";
44
- import "./close-bg-6d2211ef.js";
45
- import "./Empty.es.js";
46
- import "./arrow-down-l-line-97e4fe24.js";
47
- const H = "_container_g0kof_1", R = "_checkmark_g0kof_22", M = "_unchecked_g0kof_28", m = {
48
- container: H,
49
- checkmark: R,
50
- unchecked: M
51
- }, Z = s("bu-select-none bu-text-sm", {
52
- variants: {
53
- theme: {
54
- light: ["bu-text-light-label"],
55
- dark: ["bu-text-dark-label"]
56
- }
57
- }
58
- }), y = s("bu-select-none bu-text-sm", {
59
- variants: {
60
- theme: {
61
- light: ["bu-text-light-label"],
62
- dark: ["bu-text-dark-label"]
63
- }
64
- }
65
- }), u = s("bu-select-none bu-text-sm", {
66
- variants: {
67
- theme: {
68
- light: ["bu-text-light-label-40"],
69
- dark: ["bu-text-dark-label-40"]
70
- }
71
- }
72
- }), B = s("bu-flex bu-items-center bu-justify-center", {
73
- variants: {
74
- size: {
75
- small: ["bu-h-[10px] bu-w-[10px]"],
76
- medium: ["bu-h-[18px] bu-w-[18px]"]
77
- }
78
- }
79
- }), k1 = k((g, w) => {
80
- const {
81
- label: p,
82
- theme: h,
83
- id: d,
84
- checked: l,
85
- onChange: C,
86
- disabled: i,
87
- size: a = "small",
88
- customSize: t,
89
- ...f
90
- } = g, { theme: c } = L(), v = (o) => {
91
- C && !i && C(o);
92
- }, x = () => {
93
- const o = h || c, r = (t == null ? void 0 : t.width) || (a === "medium" ? 18 : 10), n = (t == null ? void 0 : t.height) || (a === "medium" ? 18 : 10);
94
- if (o === "light" && l && !i)
95
- return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: r, height: n, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.86667 0C0.835735 0 0 0.835735 0 1.86667V10.1333C0 11.1643 0.835735 12 1.86667 12H10.1333C11.1643 12 12 11.1643 12 10.1333V1.86667C12 0.835735 11.1643 0 10.1333 0H1.86667ZM5.33459 8.66642L10.0487 3.95239L9.10586 3.0096L5.33459 6.78084L3.449 4.89518L2.50619 5.83805L5.33459 8.66642Z", fill: "#FF8800" }) });
96
- if (o === "light" && i)
97
- return l ? /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: r, height: n, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.86667 0C0.835735 0 0 0.835735 0 1.86667V10.1333C0 11.1643 0.835735 12 1.86667 12H10.1333C11.1643 12 12 11.1643 12 10.1333V1.86667C12 0.835735 11.1643 0 10.1333 0H1.86667ZM5.33459 8.66642L10.0487 3.95239L9.10586 3.0096L5.33459 6.78084L3.449 4.89518L2.50619 5.83805L5.33459 8.66642Z", fill: "#0A0A0A", fillOpacity: "0.2" }) }) : /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: r, height: n, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.1333 1.33333H1.86667C1.57211 1.33333 1.33333 1.57211 1.33333 1.86667V10.1333C1.33333 10.4279 1.57211 10.6667 1.86667 10.6667H10.1333C10.4279 10.6667 10.6667 10.4279 10.6667 10.1333V1.86667C10.6667 1.57211 10.4279 1.33333 10.1333 1.33333ZM1.86667 0C0.835735 0 0 0.835735 0 1.86667V10.1333C0 11.1643 0.835735 12 1.86667 12H10.1333C11.1643 12 12 11.1643 12 10.1333V1.86667C12 0.835735 11.1643 0 10.1333 0H1.86667Z", fill: "#0A0A0A", fillOpacity: "0.4" }) });
98
- if (o === "light" && !l && !i)
99
- return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: r, height: n, viewBox: "0 0 12 12", fill: "none", className: m.unchecked, children: /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.1333 1.33333H1.86667C1.57211 1.33333 1.33333 1.57211 1.33333 1.86667V10.1333C1.33333 10.4279 1.57211 10.6667 1.86667 10.6667H10.1333C10.4279 10.6667 10.6667 10.4279 10.6667 10.1333V1.86667C10.6667 1.57211 10.4279 1.33333 10.1333 1.33333ZM1.86667 0C0.835735 0 0 0.835735 0 1.86667V10.1333C0 11.1643 0.835735 12 1.86667 12H10.1333C11.1643 12 12 11.1643 12 10.1333V1.86667C12 0.835735 11.1643 0 10.1333 0H1.86667Z", fill: "#0A0A0A", fillOpacity: "0.4" }) });
100
- if (o === "dark" && l && !i)
101
- return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: r, height: n, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.86667 0C0.835735 0 0 0.835735 0 1.86667V10.1333C0 11.1643 0.835735 12 1.86667 12H10.1333C11.1643 12 12 11.1643 12 10.1333V1.86667C12 0.835735 11.1643 0 10.1333 0H1.86667ZM5.33459 8.66642L10.0487 3.95239L9.10586 3.0096L5.33459 6.78084L3.449 4.89518L2.50619 5.83805L5.33459 8.66642Z", fill: "#FCFDFF" }) });
102
- if (o === "dark" && i)
103
- return l ? /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: r, height: n, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M1.86667 0C0.835735 0 0 0.835735 0 1.86667V10.1333C0 11.1643 0.835735 12 1.86667 12H10.1333C11.1643 12 12 11.1643 12 10.1333V1.86667C12 0.835735 11.1643 0 10.1333 0H1.86667ZM5.33459 8.66642L10.0487 3.95239L9.10586 3.0096L5.33459 6.78084L3.449 4.89518L2.50619 5.83805L5.33459 8.66642Z", fill: "#EBECF5", fillOpacity: "0.2" }) }) : /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: r, height: n, viewBox: "0 0 12 12", fill: "none", children: /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.1333 1.33333H1.86667C1.57211 1.33333 1.33333 1.57211 1.33333 1.86667V10.1333C1.33333 10.4279 1.57211 10.6667 1.86667 10.6667H10.1333C10.4279 10.6667 10.6667 10.4279 10.6667 10.1333V1.86667C10.6667 1.57211 10.4279 1.33333 10.1333 1.33333ZM1.86667 0C0.835735 0 0 0.835735 0 1.86667V10.1333C0 11.1643 0.835735 12 1.86667 12H10.1333C11.1643 12 12 11.1643 12 10.1333V1.86667C12 0.835735 11.1643 0 10.1333 0H1.86667Z", fill: "#EBECF5", fillOpacity: "0.4" }) });
104
- if (o === "dark" && !l && !i)
105
- return /* @__PURE__ */ e("svg", { xmlns: "http://www.w3.org/2000/svg", width: r, height: n, viewBox: "0 0 12 12", fill: "none", className: m.unchecked, children: /* @__PURE__ */ e("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M10.1333 1.33333H1.86667C1.57211 1.33333 1.33333 1.57211 1.33333 1.86667V10.1333C1.33333 10.4279 1.57211 10.6667 1.86667 10.6667H10.1333C10.4279 10.6667 10.6667 10.4279 10.6667 10.1333V1.86667C10.6667 1.57211 10.4279 1.33333 10.1333 1.33333ZM1.86667 0C0.835735 0 0 0.835735 0 1.86667V10.1333C0 11.1643 0.835735 12 1.86667 12H10.1333C11.1643 12 12 11.1643 12 10.1333V1.86667C12 0.835735 11.1643 0 10.1333 0H1.86667Z", fill: "#EBECF5", fillOpacity: "0.4" }) });
106
- };
107
- return /* @__PURE__ */ b("label", { htmlFor: d || `bui-checkbox-${p}`, className: m.container, children: [
108
- /* @__PURE__ */ e(
109
- "input",
110
- {
111
- type: "checkbox",
112
- id: d || `bui-checkbox-${p}`,
113
- ref: w,
114
- ...f,
115
- checked: l,
116
- onChange: v
117
- }
118
- ),
119
- /* @__PURE__ */ e(
120
- "span",
121
- {
122
- className: V(m.checkmark, !t && B({ size: a })),
123
- style: t ? { width: `${t.width}px`, height: `${t.height}px` } : void 0,
124
- children: x()
125
- }
126
- ),
127
- /* @__PURE__ */ e(
128
- "span",
129
- {
130
- className: l ? i ? u({ theme: h || c }) : Z({ theme: h || c }) : i ? u({ theme: h || c }) : y({ theme: h || c }),
131
- children: p
132
- }
133
- )
134
- ] });
135
- });
136
- export {
137
- k1 as Checkbox
138
- };
@@ -1 +0,0 @@
1
- export * from './components/CssDropdown/index'
@@ -1,38 +0,0 @@
1
- "use client";
2
- import { jsxs as r, jsx as u } from "react/jsx-runtime";
3
- import { u as s } from "./useTheme-0688f238.js";
4
- import { c as a } from "./utils-071abd68.js";
5
- import { c as n } from "./index-c57db938.js";
6
- import "react";
7
- import "./clsx.m-e965ef18.js";
8
- const b = n(
9
- "bu-absolute bu-left-0 bu-mt-2 bu-w-[320px] bu-origin-top-left bu-rounded bu-shadow-lg bu-outline-none",
10
- {
11
- variants: {
12
- theme: {
13
- light: "bu-bg-light-background",
14
- dark: "bu-bg-dark-background"
15
- }
16
- }
17
- }
18
- ), g = ({ label: e, content: t, theme: i }) => {
19
- const { theme: o } = s();
20
- return /* @__PURE__ */ r("div", { className: "bu-group bu-relative bu-text-left", tabIndex: -1, children: [
21
- /* @__PURE__ */ u("span", { className: "bu-cursor-pointer", children: e }),
22
- /* @__PURE__ */ u("div", { className: "bu-invisible bu-origin-top-left -bu-translate-y-2 bu-scale-95 bu-transform bu-opacity-0 bu-transition-all bu-duration-300 group-focus-within:bu-visible group-focus-within:bu-translate-y-0 group-focus-within:bu-scale-100 group-focus-within:bu-opacity-100", children: /* @__PURE__ */ u(
23
- "div",
24
- {
25
- className: a(
26
- b({
27
- theme: i || o
28
- })
29
- ),
30
- role: "menu",
31
- children: /* @__PURE__ */ u("div", { className: "bu-px-4 bu-py-3", children: t })
32
- }
33
- ) })
34
- ] });
35
- };
36
- export {
37
- g as CssDropdown
38
- };
@@ -1 +0,0 @@
1
- export * from './components/DatePickerRange/index'