@blofin/blofin-ui 1.0.0-beta.1 → 1.0.0-beta.10

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 +22 -19
  2. package/dist/Button.es.js +17 -14
  3. package/dist/Calendar.d.ts +1 -0
  4. package/dist/Calendar.es.js +209 -0
  5. package/dist/Checkbox.d.ts +1 -0
  6. package/dist/Checkbox.es.js +127 -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 +408 -0
  11. package/dist/DateTimePicker.d.ts +1 -0
  12. package/dist/DateTimePicker.es.js +518 -0
  13. package/dist/Dialog.es.js +180 -9
  14. package/dist/Divider.es.js +12 -9
  15. package/dist/Drawer.es.js +34 -31
  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 +12 -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 +15 -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 +253 -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-21ed1fbe.js +3446 -0
  37. package/dist/ProTable.d.ts +3 -0
  38. package/dist/ProTable.es.js +14 -0
  39. package/dist/RadioButton.d.ts +1 -0
  40. package/dist/RadioButton.es.js +152 -0
  41. package/dist/Select.d.ts +1 -0
  42. package/dist/Select.es.js +316 -0
  43. package/dist/Slider.es.js +111 -108
  44. package/dist/Sort.d.ts +1 -0
  45. package/dist/Sort.es.js +146 -0
  46. package/dist/Sortable.d.ts +1 -0
  47. package/dist/Sortable.es.js +32 -0
  48. package/dist/Switch.d.ts +1 -0
  49. package/dist/Switch.es.js +67 -0
  50. package/dist/Tab.d.ts +1 -0
  51. package/dist/Tab.es.js +101 -0
  52. package/dist/Table.d.ts +1 -0
  53. package/dist/Table.es.js +359 -0
  54. package/dist/TextField.d.ts +1 -0
  55. package/dist/TextField.es.js +64 -0
  56. package/dist/TextSelect.d.ts +1 -0
  57. package/dist/TextSelect.es.js +17 -0
  58. package/dist/Textarea.d.ts +1 -0
  59. package/dist/Textarea.es.js +106 -0
  60. package/dist/Toast.d.ts +1 -0
  61. package/dist/Toast.es.js +12 -0
  62. package/dist/Tooltip.d.ts +1 -0
  63. package/dist/Tooltip.es.js +152 -0
  64. package/dist/Typography.d.ts +1 -0
  65. package/dist/Typography.es.js +74 -0
  66. package/dist/_commonjsHelpers-1d52fb73.js +9 -0
  67. package/dist/arrow-down-011b02c7.js +6 -0
  68. package/dist/arrow-down-l-line-97e4fe24.js +6 -0
  69. package/dist/arrow-fill-70becd96.js +6 -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 +1 -1
  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/Calendar/Calendar.d.ts +1 -1
  82. package/dist/components/Checkbox/Checkbox.d.ts +5 -5
  83. package/dist/components/Checkbox/styles.d.ts +1 -1
  84. package/dist/components/CssDropdown/CssDropdown.d.ts +3 -3
  85. package/dist/components/CssDropdown/index.d.ts +2 -0
  86. package/dist/components/DatePickerRange/DatePickerRange.d.ts +1 -1
  87. package/dist/components/DatePickerRange/index.d.ts +4 -0
  88. package/dist/components/DateTimePicker/ScrollableList.d.ts +1 -1
  89. package/dist/components/DateTimePicker/index.d.ts +4 -0
  90. package/dist/components/Dialog/Dialog.d.ts +5 -2
  91. package/dist/components/Dialog/index.d.ts +4 -2
  92. package/dist/components/Dialog/styles.d.ts +2 -2
  93. package/dist/components/Drawer/Drawer.d.ts +1 -1
  94. package/dist/components/Dropdown/Dropdown.d.ts +2 -2
  95. package/dist/components/Dropdown/index.d.ts +2 -0
  96. package/dist/components/Empty/Empty.d.ts +5 -0
  97. package/dist/components/Empty/index.d.ts +2 -5
  98. package/dist/components/LabelTextField/LabelTextField.d.ts +5 -5
  99. package/dist/components/MonthPicker/MonthPicker.d.ts +17 -0
  100. package/dist/components/MonthPicker/index.d.ts +2 -17
  101. package/dist/components/MultiSelect/MultiSelect.d.ts +4 -4
  102. package/dist/components/MultiSelect/index.d.ts +2 -0
  103. package/dist/components/Notification/Notification.d.ts +1 -1
  104. package/dist/components/Notification/index.d.ts +2 -0
  105. package/dist/components/Pagination/PageOptions.d.ts +1 -1
  106. package/dist/components/Pagination/Pagination.d.ts +2 -2
  107. package/dist/components/Pagination/index.d.ts +3 -0
  108. package/dist/components/Picker/Picker.d.ts +10 -0
  109. package/dist/components/Picker/hooks/usePickerMethod.d.ts +1 -1
  110. package/dist/components/Picker/index.d.ts +2 -10
  111. package/dist/components/Popover/Popover.d.ts +1 -1
  112. package/dist/components/Popover/index.d.ts +5 -0
  113. package/dist/components/Popup/Popup.d.ts +15 -0
  114. package/dist/components/Popup/index.d.ts +4 -15
  115. package/dist/components/ProTable/ProTable.d.ts +4 -0
  116. package/dist/components/ProTable/Tbody/index.d.ts +4 -0
  117. package/dist/components/ProTable/Thead/index.d.ts +4 -0
  118. package/dist/components/ProTable/index.d.ts +5 -0
  119. package/dist/components/ProTable/styles.d.ts +132 -0
  120. package/dist/components/ProTable/types/index.d.ts +66 -0
  121. package/dist/components/RadioButton/RadioButton.d.ts +4 -4
  122. package/dist/components/RadioButton/styles.d.ts +1 -1
  123. package/dist/components/Select/Select.d.ts +6 -6
  124. package/dist/components/Slider/Slider.d.ts +2 -1
  125. package/dist/components/Sort/SortButton.d.ts +5 -5
  126. package/dist/components/Sort/SortGroup.d.ts +3 -3
  127. package/dist/components/Sort/index.d.ts +5 -0
  128. package/dist/components/Sortable/SortItem.d.ts +4 -4
  129. package/dist/components/Sortable/Sortable.d.ts +10 -0
  130. package/dist/components/Sortable/index.d.ts +3 -10
  131. package/dist/components/Switch/Switch.d.ts +2 -2
  132. package/dist/components/Switch/index.d.ts +2 -0
  133. package/dist/components/Switch/styles.d.ts +3 -3
  134. package/dist/components/Tab/Tab.d.ts +2 -2
  135. package/dist/components/Tab/index.d.ts +4 -0
  136. package/dist/components/Tab/styles.d.ts +1 -1
  137. package/dist/components/Table/Pagination/index.d.ts +2 -2
  138. package/dist/components/Table/Table.d.ts +2 -1
  139. package/dist/components/Table/Tbody/index.d.ts +2 -2
  140. package/dist/components/Table/Thead/index.d.ts +3 -2
  141. package/dist/components/Table/context.d.ts +3 -3
  142. package/dist/components/Table/hooks/useStickyOffset.d.ts +4 -3
  143. package/dist/components/Table/index.d.ts +3 -3
  144. package/dist/components/Table/interface.d.ts +5 -4
  145. package/dist/components/TextField/TextField.d.ts +3 -3
  146. package/dist/components/TextField/index.d.ts +2 -0
  147. package/dist/components/TextSelect/TextSelect.d.ts +9 -8
  148. package/dist/components/TextSelect/index.d.ts +2 -0
  149. package/dist/components/TextSelect/styles.d.ts +2 -1
  150. package/dist/components/Textarea/Textarea.d.ts +15 -0
  151. package/dist/components/Textarea/index.d.ts +2 -15
  152. package/dist/components/Toast/Toast.d.ts +2 -13
  153. package/dist/components/Toast/index.d.ts +2 -0
  154. package/dist/components/Toast/styles.d.ts +1 -1
  155. package/dist/components/Tooltip/Tooltip.d.ts +3 -3
  156. package/dist/components/Tooltip/index.d.ts +2 -0
  157. package/dist/components/Typography/Typography.d.ts +2 -2
  158. package/dist/components/Typography/index.d.ts +4 -0
  159. package/dist/components/Typography/styles.d.ts +1 -1
  160. package/dist/helper-221987f8.js +7 -0
  161. package/dist/hooks/useLatest.d.ts +2 -1
  162. package/dist/hooks/useNotification.d.ts +1 -1
  163. package/dist/hooks/useToast.d.ts +1 -1
  164. package/dist/{index-0f855a91.js → index-0230b5a9.js} +5 -4
  165. package/dist/{index-e978c6ef.js → index-02f669c4.js} +2 -1
  166. package/dist/{index-754e5e19.js → index-03169373.js} +12 -24
  167. package/dist/{index-a47da0e9.js → index-03513979.js} +11 -23
  168. package/dist/{index-5aae3d96.js → index-03d6aef0.js} +13 -25
  169. package/dist/{index-080784b3.js → index-06d0f2f7.js} +13 -25
  170. package/dist/{index-42780035.js → index-06ef2e10.js} +11 -23
  171. package/dist/{index-9323b39e.js → index-08a64465.js} +11 -23
  172. package/dist/{index-d78ee643.js → index-094d2a65.js} +17 -29
  173. package/dist/{index-88c72a3c.js → index-11268759.js} +18 -30
  174. package/dist/{index-ca070ad8.js → index-117d018c.js} +22 -34
  175. package/dist/{index-858bea81.js → index-12d32536.js} +13 -25
  176. package/dist/{index-cdd49f54.js → index-141cec17.js} +14 -26
  177. package/dist/{index-4fc69e31.js → index-19d177fe.js} +16 -28
  178. package/dist/{index-41662d73.js → index-1b2a64df.js} +24 -36
  179. package/dist/{index-7f493549.js → index-2334248a.js} +9 -21
  180. package/dist/index-293f8244.js +49 -0
  181. package/dist/{index-088fc96d.js → index-29d37c73.js} +52 -64
  182. package/dist/{index-9b625ba2.js → index-2ae0474b.js} +24 -36
  183. package/dist/{index-8aa0defc.js → index-360aaaac.js} +28 -40
  184. package/dist/{index-66d1a5d0.js → index-3ee2bafa.js} +13 -25
  185. package/dist/{index-6fd2a2a2.js → index-40710f09.js} +14 -26
  186. package/dist/index-4528ba11.js +49 -0
  187. package/dist/{index-fe5fd370.js → index-4bc493f0.js} +4 -16
  188. package/dist/{index-eff0e8b8.js → index-4c6ad36c.js} +32 -44
  189. package/dist/{index-116848c6.js → index-4d780cf4.js} +22 -34
  190. package/dist/{index-251fed2a.js → index-4df0c3e4.js} +16 -28
  191. package/dist/{index-6a2eb2a7.js → index-4f94900a.js} +19 -31
  192. package/dist/{index-8f2efec1.js → index-4f94d7fa.js} +14 -26
  193. package/dist/{index-71aa2ad3.js → index-57a163fd.js} +11 -23
  194. package/dist/index-596c785d.js +50 -0
  195. package/dist/index-5a1ea470.js +71 -0
  196. package/dist/{index-ee23ab9a.js → index-5beeed26.js} +22 -34
  197. package/dist/{index-c063cc37.js → index-5e6ffc2f.js} +2 -1
  198. package/dist/{index-04f859c1.js → index-5fb7b3bc.js} +12 -24
  199. package/dist/{index-751f4a52.js → index-60fe7f16.js} +13 -25
  200. package/dist/{index-e8913fb2.js → index-63a66f13.js} +25 -37
  201. package/dist/index-67554651.js +49 -0
  202. package/dist/{index-8c32f705.js → index-67678963.js} +22 -34
  203. package/dist/{index-7deec04e.js → index-6856be22.js} +21 -33
  204. package/dist/{index-9bdb5016.js → index-6e969585.js} +16 -28
  205. package/dist/{index-f6883c07.js → index-6f728206.js} +9 -21
  206. package/dist/{index-7d8bfce6.js → index-6f963c6a.js} +15 -27
  207. package/dist/{index-ea99c3e9.js → index-73bfc020.js} +31 -43
  208. package/dist/{index-3ea771a7.js → index-75190b99.js} +7 -19
  209. package/dist/{index-a7cf62c6.js → index-770e5f53.js} +12 -24
  210. package/dist/{index-7b90c202.js → index-79e7317f.js} +12 -24
  211. package/dist/{index-92f6d7e3.js → index-7bb9ffdf.js} +3 -2
  212. package/dist/{index-97259a30.js → index-7cf9b111.js} +18 -30
  213. package/dist/{index-fee5deb3.js → index-7edb6aec.js} +19 -31
  214. package/dist/{index-4153ae2c.js → index-80cc70e4.js} +26 -38
  215. package/dist/{index-cff83822.js → index-8585c2f3.js} +23 -35
  216. package/dist/{index-904b7a98.js → index-898678dc.js} +21 -33
  217. package/dist/{index-0b4447b4.js → index-8aa9b1be.js} +24 -36
  218. package/dist/{index-2cea196a.js → index-954d3973.js} +11 -23
  219. package/dist/{index-c479ad41.js → index-956b36a6.js} +36 -48
  220. package/dist/{index-8914e852.js → index-9c73c442.js} +43 -55
  221. package/dist/{index-14b03f85.js → index-9e5efc0a.js} +29 -41
  222. package/dist/index-a55c4737.js +345 -0
  223. package/dist/{index-ec027ccc.js → index-a6fa33ce.js} +13 -25
  224. package/dist/{index-5dcdc8fa.js → index-a89abb42.js} +4 -16
  225. package/dist/{index-d1d7d493.js → index-b0da3dfd.js} +14 -26
  226. package/dist/{index-54b7c67b.js → index-b103ed31.js} +12 -24
  227. package/dist/{index-7fbd39cf.js → index-b54ef52a.js} +16 -28
  228. package/dist/index-b7027a1d.js +1295 -0
  229. package/dist/{index-efb11b83.js → index-b7941b97.js} +8 -20
  230. package/dist/{index-fed464ba.js → index-c1381bca.js} +20 -32
  231. package/dist/index-c57db938.js +37 -0
  232. package/dist/{index-3844a74f.js → index-c6371af1.js} +10 -22
  233. package/dist/{index-51ac08a9.js → index-c69f6dfc.js} +19 -31
  234. package/dist/{index-f7dc39ca.js → index-cb1218d8.js} +10 -22
  235. package/dist/{index-bf525897.js → index-cbc0d36b.js} +13 -25
  236. package/dist/{index-fec4f6af.js → index-cc1cd309.js} +13 -25
  237. package/dist/{index-2bead2d3.js → index-ceae4147.js} +12 -24
  238. package/dist/{index-19fa94dd.js → index-cfee583b.js} +19 -31
  239. package/dist/{index-c08bb4af.js → index-d2f2742e.js} +10 -22
  240. package/dist/{index-c02e3ec5.js → index-d3419554.js} +15 -27
  241. package/dist/{index-37879d95.js → index-d81e15f3.js} +19 -31
  242. package/dist/{index-a261e5ac.js → index-d86842c8.js} +17 -29
  243. package/dist/{index-d2040cdb.js → index-e169373b.js} +10 -22
  244. package/dist/{index-c35e810b.js → index-e1a6a03d.js} +9 -21
  245. package/dist/{index-7a0135cc.js → index-e2b960e4.js} +23 -35
  246. package/dist/{index-82bb8c5d.js → index-e8fb69e0.js} +21 -33
  247. package/dist/{index-192b0fff.js → index-e98ef24f.js} +14 -26
  248. package/dist/{index-70aab93c.js → index-e9a1ff7f.js} +4 -16
  249. package/dist/{index-3a9197dc.js → index-ef31f5f8.js} +2 -1
  250. package/dist/{index-1f81e05e.js → index-f1726c63.js} +11 -23
  251. package/dist/{index-1dd4c4eb.js → index-f40f45fb.js} +13 -25
  252. package/dist/{index-1faf2be0.js → index-f64eddcc.js} +16 -28
  253. package/dist/{index-027e3610.js → index-f7c4ae83.js} +22 -34
  254. package/dist/{index-4b1313dd.js → index-fda88eb4.js} +23 -35
  255. package/dist/{index-ec9c83e1.js → index-fdffd6e6.js} +14 -26
  256. package/dist/index-ffb39a28.js +5322 -0
  257. package/dist/index.d.ts +37 -44
  258. package/dist/index.es.js +216 -50
  259. package/dist/index.esm-0aa3bd72.js +1202 -0
  260. package/dist/jsx-runtime-ba6e4aac.js +288 -0
  261. package/dist/locales-776f0072.js +440 -0
  262. package/dist/provider/ThemeProvider.d.ts +7 -2
  263. package/dist/provider/useTheme.d.ts +1 -1
  264. package/dist/search-b79a3be5.js +6 -0
  265. package/dist/sortable.esm-8d31c120.js +1275 -0
  266. package/dist/styles-85a9fe64.js +136 -0
  267. package/dist/useAlign-916ed3be.js +44 -0
  268. package/dist/useDelayEvent-f577f6a3.js +1082 -0
  269. package/dist/useTheme-81e2a73e.js +16 -0
  270. package/dist/{utils-7e50508b.js → utils-071abd68.js} +2 -1
  271. package/package.json +58 -26
  272. package/dist/Form.d.ts +0 -1
  273. package/dist/Form.es.js +0 -752
  274. package/dist/components/Form/Control.d.ts +0 -13
  275. package/dist/components/Form/Form.d.ts +0 -3
  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 -5
  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-0754777d.js +0 -11708
  285. package/dist/index-22f1651e.js +0 -61
  286. package/dist/index-3dfad1bd.js +0 -61
  287. package/dist/index-5a1988fa.js +0 -62
  288. package/dist/index-8c18ed9b.js +0 -173
  289. package/dist/index-96a8d125.js +0 -65
  290. package/dist/index-ad9c109d.js +0 -61
  291. package/dist/isObjectLike-1b8bbac2.js +0 -44
  292. package/dist/jsx-runtime-944c88e2.js +0 -631
package/dist/Badge.es.js CHANGED
@@ -1,9 +1,12 @@
1
- import { j as s } from "./jsx-runtime-944c88e2.js";
2
- import { a as d, u as i } from "./index-96a8d125.js";
3
- import { c as u } from "./utils-7e50508b.js";
1
+ "use client";
2
+ import { j as s } from "./jsx-runtime-ba6e4aac.js";
3
+ import { u as i } from "./useTheme-81e2a73e.js";
4
+ import { c as d } from "./utils-071abd68.js";
5
+ import { c as u } from "./index-c57db938.js";
4
6
  import "react";
7
+ import "./clsx.m-e965ef18.js";
5
8
  const c = (e) => {
6
- const a = {
9
+ const r = {
7
10
  dark: {
8
11
  primary: "bu-bg-dark-badge-primary-bg bu-text-dark-primary",
9
12
  secondary: "bu-bg-dark-badge-secondary-bg bu-text-dark-secondary",
@@ -20,37 +23,37 @@ const c = (e) => {
20
23
  warning: "bu-bg-light-badge-warning-bg bu-text-light-warning",
21
24
  info: "bu-bg-light-badge-info-bg bu-text-light-label-60"
22
25
  }
23
- }, { theme: r } = e;
24
- return d("bu-rounded bu-px-[8px] bu-py-[2px] bu-text-[12px]", {
26
+ }, { theme: a } = e;
27
+ return u("bu-rounded bu-px-[8px] bu-py-[2px] bu-text-[12px]", {
25
28
  variants: {
26
29
  color: {
27
- primary: a[r].primary,
28
- secondary: a[r].secondary,
29
- danger: a[r].danger,
30
- success: a[r].success,
31
- warning: a[r].warning,
32
- info: a[r].info
30
+ primary: r[a].primary,
31
+ secondary: r[a].secondary,
32
+ danger: r[a].danger,
33
+ success: r[a].success,
34
+ warning: r[a].warning,
35
+ info: r[a].info
33
36
  }
34
37
  },
35
38
  defaultVariants: {
36
39
  color: "primary"
37
40
  }
38
41
  })(e);
39
- }, p = ({
42
+ }, y = ({
40
43
  color: e = "primary",
41
- decoration: a = !0,
42
- label: r,
44
+ decoration: r = !0,
45
+ label: a,
43
46
  theme: g,
44
47
  startIcon: b,
45
48
  endIcon: t
46
49
  }) => {
47
50
  const { theme: n } = i();
48
- return /* @__PURE__ */ s.jsxs("span", { className: `${u(c({ theme: g || n, color: e }))}`, children: [
49
- b || (a ? "• " : null),
50
- r,
51
+ return /* @__PURE__ */ s.jsxs("span", { className: `${d(c({ theme: g || n, color: e }))}`, children: [
52
+ b || (r ? "• " : null),
53
+ a,
51
54
  t
52
55
  ] });
53
56
  };
54
57
  export {
55
- p as Badge
58
+ y as Badge
56
59
  };
package/dist/Button.es.js CHANGED
@@ -1,7 +1,10 @@
1
- import { j as r } from "./jsx-runtime-944c88e2.js";
2
- import { c as k } from "./utils-7e50508b.js";
3
- import { a as e, u as x, c as g } from "./index-96a8d125.js";
4
- import * as d from "react";
1
+ "use client";
2
+ import { j as r } from "./jsx-runtime-ba6e4aac.js";
3
+ import { c as k } from "./utils-071abd68.js";
4
+ import { c as e } from "./index-c57db938.js";
5
+ import { u as x } from "./useTheme-81e2a73e.js";
6
+ import * as o from "react";
7
+ import { c as g } from "./clsx.m-e965ef18.js";
5
8
  const N = e("bu-text-light-second", {
6
9
  variants: {
7
10
  theme: {
@@ -211,7 +214,7 @@ const N = e("bu-text-light-second", {
211
214
  "hover:bu-text-dark-label-40",
212
215
  "bu-border",
213
216
  "bu-border-solid",
214
- "bu-border-dark-fill-secondary",
217
+ "bu-border-dark-line-secondary",
215
218
  "hover:bu-bg-transparent"
216
219
  ]
217
220
  }
@@ -346,7 +349,7 @@ const N = e("bu-text-light-second", {
346
349
  max: "bu-h-[28px] bu-w-[28px]"
347
350
  }
348
351
  }
349
- }), o = {
352
+ }), d = {
350
353
  "loader-medium": "_loader-medium_amaox_2",
351
354
  "animloader-medium": "_animloader-medium_amaox_1",
352
355
  "loader-light": "_loader-light_amaox_12",
@@ -359,17 +362,17 @@ const N = e("bu-text-light-second", {
359
362
  "animloader-m-small": "_animloader-m-small_amaox_1"
360
363
  }, Q = ({ size: t, theme: l }) => {
361
364
  const b = {
362
- small: o["loader-small"],
363
- medium: o["loader-medium"],
364
- large: o["loader-large"],
365
- max: o["loader-large"],
366
- "m-small": o["loader-m-small"]
365
+ small: d["loader-small"],
366
+ medium: d["loader-medium"],
367
+ large: d["loader-large"],
368
+ max: d["loader-large"],
369
+ "m-small": d["loader-m-small"]
367
370
  }, u = {
368
- light: o["loader-light"],
369
- dark: o["loader-dark"]
371
+ light: d["loader-light"],
372
+ dark: d["loader-dark"]
370
373
  };
371
374
  return /* @__PURE__ */ r.jsx("span", { className: `${b[t]} ${u[l]}` });
372
- }, U = (t) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("path", { d: "M18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C15.9519 2 19.3684 4.29238 20.9922 7.61993L19.2011 8.51103C17.905 5.84083 15.1675 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z", fill: "#DEDFE0" })), X = (t) => /* @__PURE__ */ d.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("path", { d: "M12 6C12 2.68629 9.31371 0 6 0H0V6C0 9.31371 2.68629 12 6 12H12V6Z", fill: "currentColor" }), /* @__PURE__ */ d.createElement("path", { d: "M5.1663 7.32125L8.99647 3.49109L9.58571 4.08034L5.1663 8.49975L2.51465 5.84812L3.10391 5.25887L5.1663 7.32125Z", fill: "white" })), Y = (t) => /* @__PURE__ */ d.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ d.createElement("path", { d: "M12 6C12 2.68629 9.31371 0 6 0H0V6C0 9.31371 2.68629 12 6 12H12V6Z", fill: "currentColor" }), /* @__PURE__ */ d.createElement("path", { d: "M5.1663 7.32125L8.99647 3.49109L9.58571 4.08034L5.1663 8.49975L2.51465 5.84812L3.10391 5.25887L5.1663 7.32125Z", fill: "black" })), n = ({
375
+ }, U = (t) => /* @__PURE__ */ o.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M18.5374 19.5674C16.7844 21.0831 14.4993 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C15.9519 2 19.3684 4.29238 20.9922 7.61993L19.2011 8.51103C17.905 5.84083 15.1675 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20C14.1502 20 16.1022 19.1517 17.5398 17.7716L18.5374 19.5674Z", fill: "#DEDFE0" })), X = (t) => /* @__PURE__ */ o.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M12 6C12 2.68629 9.31371 0 6 0H0V6C0 9.31371 2.68629 12 6 12H12V6Z", fill: "currentColor" }), /* @__PURE__ */ o.createElement("path", { d: "M5.1663 7.32125L8.99647 3.49109L9.58571 4.08034L5.1663 8.49975L2.51465 5.84812L3.10391 5.25887L5.1663 7.32125Z", fill: "white" })), Y = (t) => /* @__PURE__ */ o.createElement("svg", { width: 12, height: 12, viewBox: "0 0 12 12", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", ...t }, /* @__PURE__ */ o.createElement("path", { d: "M12 6C12 2.68629 9.31371 0 6 0H0V6C0 9.31371 2.68629 12 6 12H12V6Z", fill: "currentColor" }), /* @__PURE__ */ o.createElement("path", { d: "M5.1663 7.32125L8.99647 3.49109L9.58571 4.08034L5.1663 8.49975L2.51465 5.84812L3.10391 5.25887L5.1663 7.32125Z", fill: "black" })), n = ({
373
376
  size: t = "large",
374
377
  disabled: l = !1,
375
378
  variant: b = "primary",
@@ -0,0 +1 @@
1
+ export * from './components/Calendar/index'
@@ -0,0 +1,209 @@
1
+ "use client";
2
+ import { j as a } from "./jsx-runtime-ba6e4aac.js";
3
+ import * as w from "react";
4
+ import { Typography as _ } from "./Typography.es.js";
5
+ import { S as $ } from "./arrow-down-l-line-97e4fe24.js";
6
+ import { D as j, u as D, a as C, S as N } from "./index.esm-0aa3bd72.js";
7
+ import { c as t } from "./index-c57db938.js";
8
+ import { u as M } from "./useTheme-81e2a73e.js";
9
+ import { i as L } from "./index-b7027a1d.js";
10
+ import "./utils-071abd68.js";
11
+ import "./clsx.m-e965ef18.js";
12
+ const i = t("", {
13
+ variants: {
14
+ theme: {
15
+ light: "bu-text-light-label",
16
+ dark: "bu-text-dark-label"
17
+ }
18
+ }
19
+ }), R = t("", {
20
+ variants: {
21
+ theme: {
22
+ light: "bu-border-light-line-secondary",
23
+ dark: "bu-border-dark-line-secondary"
24
+ }
25
+ }
26
+ }), S = t("", {
27
+ variants: {
28
+ theme: {
29
+ light: "bu-bg-light-background hover:bu-bg-light-fill-quaternary hover:bu-text-light-label",
30
+ dark: "bu-bg-dark-background hover:bu-bg-dark-fill-quaternary hover:bu-text-dark-label"
31
+ }
32
+ }
33
+ }), q = t("", {
34
+ variants: {
35
+ theme: {
36
+ light: "bu-border-light-line-secondary bu-text-light-label-40",
37
+ dark: "bu-border-dark-line-secondary bu-text-dark-label-40"
38
+ }
39
+ }
40
+ }), A = t("", {
41
+ variants: {
42
+ theme: {
43
+ 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",
44
+ 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"
45
+ }
46
+ }
47
+ }), T = t("", {
48
+ variants: {
49
+ theme: {
50
+ light: "bu-text-light-label hover:bu-bg-light-primary-14 hover:bu-text-light-primary",
51
+ dark: "bu-text-dark-label hover:bu-bg-dark-primary-14 hover:bu-text-dark-primary"
52
+ }
53
+ }
54
+ }), E = t("", {
55
+ variants: {
56
+ theme: {
57
+ light: "bu-bg-light-primary bu-text-light-second hover:!bu-bg-light-primary hover:!bu-text-light-second",
58
+ dark: "bu-bg-dark-primary bu-text-dark-second hover:!bu-bg-dark-primary hover:!bu-text-dark-second"
59
+ }
60
+ }
61
+ }), I = t("", {
62
+ variants: {
63
+ theme: {
64
+ light: "bu-bg-light-primary bu-text-light-second hover:!bu-bg-light-primary hover:!bu-text-light-second",
65
+ dark: "bu-bg-dark-primary bu-text-dark-second hover:!bu-bg-dark-primary hover:!bu-text-dark-second"
66
+ }
67
+ }
68
+ }), z = t("", {
69
+ variants: {
70
+ theme: {
71
+ light: "bu-bg-light-fill-quaternary bu-text-light-label aria-selected:bu-bg-light-primary aria-selected:bu-text-light-second",
72
+ dark: "bu-bg-dark-fill-quaternary bu-text-dark-label aria-selected:bu-bg-dark-primary aria-selected:bu-text-dark-second"
73
+ }
74
+ }
75
+ }), B = t("", {
76
+ variants: {
77
+ theme: {
78
+ light: "hover:bu-bg-light-primary hover:bu-text-light-second focus:bu-bg-light-primary focus:bu-text-light-second",
79
+ dark: "hover:bu-bg-dark-primary hover:bu-text-dark-second focus:bu-bg-dark-primary focus:bu-text-dark-second"
80
+ }
81
+ }
82
+ }), H = t("", {
83
+ variants: {
84
+ theme: {
85
+ 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",
86
+ 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"
87
+ }
88
+ }
89
+ }), O = t("", {
90
+ variants: {
91
+ theme: {
92
+ light: "bu-text-light-label-40",
93
+ dark: "bu-text-dark-label-40"
94
+ }
95
+ }
96
+ }), P = t("", {
97
+ variants: {
98
+ theme: {
99
+ light: "hover:!bu-bg-light-primary-14 hover:!bu-text-light-primary",
100
+ dark: "hover:!bu-bg-dark-primary-14 hover:!bu-text-dark-primary"
101
+ }
102
+ }
103
+ }), Y = ({
104
+ className: h = "",
105
+ classNames: c,
106
+ showOutsideDays: g = !0,
107
+ month: b,
108
+ startMonthShow: d,
109
+ endMonthShow: s,
110
+ setStartMonthShow: m,
111
+ setEndMonthShow: p,
112
+ setStartMonth: x,
113
+ setEndMonth: y,
114
+ locale: l,
115
+ ...k
116
+ }) => {
117
+ const { theme: e } = M();
118
+ function v(r) {
119
+ const { goToMonth: u, nextMonth: o, previousMonth: n } = D(), f = () => {
120
+ r.displayIndex === 0 ? (m(!d), x(r.displayMonth)) : (p(!s), y(r.displayMonth));
121
+ };
122
+ return w.useEffect(() => {
123
+ b && u(b);
124
+ }, [b]), /* @__PURE__ */ a.jsxs("div", { className: "bu-flex bu-h-10 bu-items-center bu-justify-between bu-py-2", children: [
125
+ /* @__PURE__ */ a.jsxs(
126
+ "div",
127
+ {
128
+ className: "bu-flex bu-h-3 bu-cursor-pointer bu-items-center bu-gap-1",
129
+ onClick: f,
130
+ children: [
131
+ /* @__PURE__ */ a.jsx(_, { variant: "body2", weight: "medium", children: L(r.displayMonth, "MMM yyy", { locale: l }) }),
132
+ /* @__PURE__ */ a.jsx(
133
+ $,
134
+ {
135
+ className: `bu-h-5 bu-w-5 bu-cursor-pointer ${i({ theme: e })}`
136
+ }
137
+ )
138
+ ]
139
+ }
140
+ ),
141
+ r.displayIndex === 1 && /* @__PURE__ */ a.jsxs("div", { className: "bu-flex bu-gap-6", children: [
142
+ /* @__PURE__ */ a.jsx(
143
+ C,
144
+ {
145
+ className: `bu-h-6 bu-w-6 bu-cursor-pointer ${i({ theme: e })}`,
146
+ onClick: () => n && u(n)
147
+ }
148
+ ),
149
+ /* @__PURE__ */ a.jsx(
150
+ N,
151
+ {
152
+ className: `bu-h-6 bu-w-6 bu-cursor-pointer ${i({ theme: e })}`,
153
+ onClick: () => o && u(o)
154
+ }
155
+ )
156
+ ] })
157
+ ] });
158
+ }
159
+ return /* @__PURE__ */ a.jsx(
160
+ j,
161
+ {
162
+ showOutsideDays: g,
163
+ className: `pb-4 ${h}`,
164
+ classNames: {
165
+ months: "bu-flex bu-flex-col sm:bu-flex-row bu-space-y-4 sm:bu-space-x-4 sm:bu-space-y-0",
166
+ month: "bu-space-y-4",
167
+ caption: "bu-flex bu-justify-center bu-pt-1 bu-relative bu-items-center",
168
+ caption_label: "bu-text-base bu-font-medium",
169
+ caption_start: `bu-border-r bu-pr-[16px] bu-pt-[16px] ${R({ theme: e })} ${d ? "bu-hidden" : ""}`,
170
+ caption_end: `bu-pt-[16px] ${s ? "bu-hidden" : ""}`,
171
+ nav: "bu-space-x-1 bu-flex bu-items-center",
172
+ nav_button: `${S({
173
+ theme: e
174
+ })} 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`,
175
+ nav_button_previous: "bu-absolute bu-left-1",
176
+ nav_button_next: "bu-absolute bu-right-1",
177
+ table: "bu-w-full bu-border-collapse !bu-mt-[8px]",
178
+ head_row: "bu-flex",
179
+ head_cell: `bu-w-8 bu-font-normal bu-text-[12px] bu-pb-[8px] bu-border-b ${q({
180
+ theme: e
181
+ })}`,
182
+ row: "bu-flex bu-w-full bu-mt-2",
183
+ cell: `${A({
184
+ theme: e
185
+ })} 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]`,
186
+ day: `${T({
187
+ theme: e
188
+ })} 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`,
189
+ day_range_start: `day-range-start ${E({ theme: e })}`,
190
+ day_range_end: `day-range-end ${I({ theme: e })}`,
191
+ day_selected: `${B({ theme: e })}`,
192
+ day_today: `${z({ theme: e })} bu-rounded-[16px]`,
193
+ day_outside: `day-outside ${H({ theme: e })} aria-selected:bu-rounded-[16px]`,
194
+ day_disabled: `${O({ theme: e })}`,
195
+ day_range_middle: `${P({ theme: e })}`,
196
+ day_hidden: "invisible",
197
+ ...c
198
+ },
199
+ components: {
200
+ Caption: v
201
+ },
202
+ locale: l,
203
+ ...k
204
+ }
205
+ );
206
+ };
207
+ export {
208
+ Y as Calendar
209
+ };
@@ -0,0 +1 @@
1
+ export * from './components/Checkbox/index'
@@ -0,0 +1,127 @@
1
+ "use client";
2
+ import { j as u } from "./jsx-runtime-ba6e4aac.js";
3
+ import * as g from "react";
4
+ import { c as f } from "./utils-071abd68.js";
5
+ import { c as t } from "./index-c57db938.js";
6
+ import { u as y } from "./useTheme-81e2a73e.js";
7
+ import "./clsx.m-e965ef18.js";
8
+ const C = "_container_1qik0_1", v = "_checkmark_1qik0_22", h = {
9
+ container: C,
10
+ checkmark: v
11
+ }, j = t("bu-select-none bu-text-sm", {
12
+ variants: {
13
+ theme: {
14
+ light: ["bu-text-light-label"],
15
+ dark: ["bu-text-dark-label"]
16
+ }
17
+ }
18
+ }), w = t("bu-flex bu-items-center bu-justify-center bu-border", {
19
+ variants: {
20
+ theme: {
21
+ light: ["bu-border-light-primary bu-bg-light-primary after:bu-border-light-background"],
22
+ dark: ["bu-border-light-background bu-bg-light-background after:bu-border-dark-background"]
23
+ }
24
+ }
25
+ }), S = t(
26
+ "bu-h-[10px] bu-w-[10px] after:bu-border-l-0 after:bu-border-t-0",
27
+ {
28
+ variants: {
29
+ size: {
30
+ small: [
31
+ "bu-h-[10px] bu-w-[10px] bu-rounded-[2px] after:bu-h-[6px] after:bu-w-[4px] after:bu-border-b-[1.8px] after:bu-border-r-[1.8px]"
32
+ ],
33
+ medium: [
34
+ "bu-h-[18px] bu-w-[18px] bu-rounded-[3px] after:bu-h-[10px] after:bu-w-[8px] after:bu-border-b-[2px] after:bu-border-r-[2px]"
35
+ ]
36
+ }
37
+ }
38
+ }
39
+ ), _ = t(
40
+ "bu-flex bu-h-[10px] bu-w-[10px] bu-items-center bu-justify-center bu-border",
41
+ {
42
+ variants: {
43
+ theme: {
44
+ light: [
45
+ "bu-border-light-label-40 after:bu-border-light-background hover:bu-border-light-primary"
46
+ ],
47
+ dark: [
48
+ "bu-border-dark-label-40 after:bu-border-dark-background hover:bu-border-light-background"
49
+ ]
50
+ }
51
+ }
52
+ }
53
+ ), M = t("bu-select-none bu-text-sm", {
54
+ variants: {
55
+ theme: {
56
+ light: ["bu-text-light-label"],
57
+ dark: ["bu-text-dark-label"]
58
+ }
59
+ }
60
+ }), s = t("bu-select-none bu-text-sm", {
61
+ variants: {
62
+ theme: {
63
+ light: ["bu-text-light-label-40"],
64
+ dark: ["bu-text-dark-label-40"]
65
+ }
66
+ }
67
+ }), d = t(
68
+ "bu-flex bu-h-[10px] bu-w-[10px] bu-items-center bu-justify-center bu-border",
69
+ {
70
+ variants: {
71
+ theme: {
72
+ light: ["bu-border-light-label-40 after:bu-border-light-label-40"],
73
+ dark: ["bu-border-dark-label-40 after:bu-border-dark-label-40"]
74
+ }
75
+ }
76
+ }
77
+ ), U = g.forwardRef((n, i) => {
78
+ const {
79
+ label: o,
80
+ theme: e,
81
+ id: a,
82
+ checked: l,
83
+ onChange: c,
84
+ disabled: b,
85
+ size: m = "small",
86
+ ...k
87
+ } = n, { theme: r } = y(), x = (p) => {
88
+ c && !b && c(p);
89
+ };
90
+ return /* @__PURE__ */ u.jsxs("label", { htmlFor: a || `bui-checkbox-${o}`, className: h.container, children: [
91
+ /* @__PURE__ */ u.jsx(
92
+ "input",
93
+ {
94
+ type: "checkbox",
95
+ id: a || `bui-checkbox-${o}`,
96
+ ref: i,
97
+ ...k,
98
+ checked: l,
99
+ onChange: x
100
+ }
101
+ ),
102
+ /* @__PURE__ */ u.jsx(
103
+ "span",
104
+ {
105
+ className: f(
106
+ h.checkmark,
107
+ S({ size: m }),
108
+ l ? b ? d({ theme: e || r }) : w({
109
+ theme: e || r
110
+ }) : b ? d({ theme: e || r }) : _({
111
+ theme: e || r
112
+ })
113
+ )
114
+ }
115
+ ),
116
+ /* @__PURE__ */ u.jsx(
117
+ "span",
118
+ {
119
+ className: l ? b ? s({ theme: e || r }) : j({ theme: e || r }) : b ? s({ theme: e || r }) : M({ theme: e || r }),
120
+ children: o
121
+ }
122
+ )
123
+ ] });
124
+ });
125
+ export {
126
+ U as Checkbox
127
+ };
@@ -0,0 +1 @@
1
+ export * from './components/CssDropdown/index'
@@ -0,0 +1,38 @@
1
+ "use client";
2
+ import { j as u } from "./jsx-runtime-ba6e4aac.js";
3
+ import { u as o } from "./useTheme-81e2a73e.js";
4
+ import { c as r } from "./utils-071abd68.js";
5
+ import { c as a } from "./index-c57db938.js";
6
+ import "react";
7
+ import "./clsx.m-e965ef18.js";
8
+ const n = a(
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
+ ), h = ({ label: t, content: e, theme: s }) => {
19
+ const { theme: i } = o();
20
+ return /* @__PURE__ */ u.jsxs("div", { className: "bu-group bu-relative bu-text-left", tabIndex: -1, children: [
21
+ /* @__PURE__ */ u.jsx("span", { className: "bu-cursor-pointer", children: t }),
22
+ /* @__PURE__ */ u.jsx("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.jsx(
23
+ "div",
24
+ {
25
+ className: r(
26
+ n({
27
+ theme: s || i
28
+ })
29
+ ),
30
+ role: "menu",
31
+ children: /* @__PURE__ */ u.jsx("div", { className: "bu-px-4 bu-py-3", children: e })
32
+ }
33
+ ) })
34
+ ] });
35
+ };
36
+ export {
37
+ h as CssDropdown
38
+ };
@@ -0,0 +1 @@
1
+ export * from './components/DatePickerRange/index'