@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,210 @@
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
+ };
@@ -0,0 +1 @@
1
+ export * from './components/Checkbox/index'
@@ -0,0 +1,138 @@
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
+ };
@@ -0,0 +1 @@
1
+ export * from './components/CssDropdown/index'
@@ -0,0 +1,38 @@
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
+ };
@@ -0,0 +1 @@
1
+ export * from './components/DatePickerRange/index'