@blofin/blofin-ui 1.0.0-beta.2 → 1.0.0-beta.3

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 (259) hide show
  1. package/dist/Badge.es.js +23 -19
  2. package/dist/Button.es.js +16 -12
  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 -8
  14. package/dist/Divider.es.js +12 -8
  15. package/dist/Drawer.es.js +29 -25
  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/RadioButton.d.ts +1 -0
  37. package/dist/RadioButton.es.js +152 -0
  38. package/dist/Select.d.ts +1 -0
  39. package/dist/Select.es.js +316 -0
  40. package/dist/Slider.es.js +89 -85
  41. package/dist/Sort.d.ts +1 -0
  42. package/dist/Sort.es.js +146 -0
  43. package/dist/Sortable.d.ts +1 -0
  44. package/dist/Sortable.es.js +32 -0
  45. package/dist/Switch.d.ts +1 -0
  46. package/dist/Switch.es.js +67 -0
  47. package/dist/Tab.d.ts +1 -0
  48. package/dist/Tab.es.js +101 -0
  49. package/dist/Table.d.ts +1 -0
  50. package/dist/Table.es.js +359 -0
  51. package/dist/TextField.d.ts +1 -0
  52. package/dist/TextField.es.js +64 -0
  53. package/dist/TextSelect.d.ts +1 -0
  54. package/dist/TextSelect.es.js +17 -0
  55. package/dist/Textarea.d.ts +1 -0
  56. package/dist/Textarea.es.js +106 -0
  57. package/dist/Toast.d.ts +1 -0
  58. package/dist/Toast.es.js +12 -0
  59. package/dist/Tooltip.d.ts +1 -0
  60. package/dist/Tooltip.es.js +152 -0
  61. package/dist/Typography.d.ts +1 -0
  62. package/dist/Typography.es.js +74 -0
  63. package/dist/_commonjsHelpers-1d52fb73.js +9 -0
  64. package/dist/arrow-down-011b02c7.js +6 -0
  65. package/dist/arrow-down-l-line-97e4fe24.js +6 -0
  66. package/dist/arrow-fill-70becd96.js +6 -0
  67. package/dist/blofin.css +1 -1
  68. package/dist/{close-c67ec245.js → close-0df24351.js} +1 -0
  69. package/dist/close-bg-6d2211ef.js +6 -0
  70. package/dist/clsx.m-e965ef18.js +22 -0
  71. package/dist/components/Alert/Alert.d.ts +3 -3
  72. package/dist/components/Alert/styles.d.ts +2 -2
  73. package/dist/components/Badge/Badge.d.ts +2 -2
  74. package/dist/components/Button/Button.d.ts +2 -2
  75. package/dist/components/Button/Loading/index.d.ts +2 -2
  76. package/dist/components/Button/index.d.ts +2 -0
  77. package/dist/components/Button/styles.d.ts +1 -1
  78. package/dist/components/Checkbox/Checkbox.d.ts +5 -5
  79. package/dist/components/Checkbox/styles.d.ts +1 -1
  80. package/dist/components/CssDropdown/CssDropdown.d.ts +3 -3
  81. package/dist/components/CssDropdown/index.d.ts +2 -0
  82. package/dist/components/DatePickerRange/index.d.ts +4 -0
  83. package/dist/components/DateTimePicker/ScrollableList.d.ts +1 -1
  84. package/dist/components/DateTimePicker/index.d.ts +4 -0
  85. package/dist/components/Dialog/Dialog.d.ts +5 -2
  86. package/dist/components/Dialog/index.d.ts +4 -2
  87. package/dist/components/Dialog/styles.d.ts +2 -2
  88. package/dist/components/Drawer/Drawer.d.ts +1 -1
  89. package/dist/components/Dropdown/Dropdown.d.ts +2 -2
  90. package/dist/components/Dropdown/index.d.ts +2 -0
  91. package/dist/components/Empty/Empty.d.ts +5 -0
  92. package/dist/components/Empty/index.d.ts +2 -5
  93. package/dist/components/LabelTextField/LabelTextField.d.ts +6 -6
  94. package/dist/components/MonthPicker/MonthPicker.d.ts +17 -0
  95. package/dist/components/MonthPicker/index.d.ts +2 -17
  96. package/dist/components/MultiSelect/MultiSelect.d.ts +4 -4
  97. package/dist/components/MultiSelect/index.d.ts +2 -0
  98. package/dist/components/Notification/Notification.d.ts +1 -1
  99. package/dist/components/Notification/index.d.ts +2 -0
  100. package/dist/components/Pagination/PageOptions.d.ts +1 -1
  101. package/dist/components/Pagination/Pagination.d.ts +2 -2
  102. package/dist/components/Pagination/index.d.ts +3 -0
  103. package/dist/components/Picker/Picker.d.ts +10 -0
  104. package/dist/components/Picker/index.d.ts +2 -10
  105. package/dist/components/Popover/Popover.d.ts +1 -1
  106. package/dist/components/Popover/index.d.ts +5 -0
  107. package/dist/components/Popup/Popup.d.ts +15 -0
  108. package/dist/components/Popup/index.d.ts +4 -15
  109. package/dist/components/RadioButton/RadioButton.d.ts +4 -4
  110. package/dist/components/RadioButton/styles.d.ts +1 -1
  111. package/dist/components/Select/Select.d.ts +6 -6
  112. package/dist/components/Slider/Slider.d.ts +2 -2
  113. package/dist/components/Sort/SortButton.d.ts +4 -4
  114. package/dist/components/Sort/SortGroup.d.ts +3 -3
  115. package/dist/components/Sort/index.d.ts +6 -0
  116. package/dist/components/Sortable/SortItem.d.ts +4 -4
  117. package/dist/components/Sortable/Sortable.d.ts +10 -0
  118. package/dist/components/Sortable/index.d.ts +3 -10
  119. package/dist/components/Switch/Switch.d.ts +2 -2
  120. package/dist/components/Switch/index.d.ts +2 -0
  121. package/dist/components/Switch/styles.d.ts +3 -3
  122. package/dist/components/Tab/Tab.d.ts +2 -2
  123. package/dist/components/Tab/index.d.ts +4 -0
  124. package/dist/components/Tab/styles.d.ts +1 -1
  125. package/dist/components/Table/Pagination/index.d.ts +2 -2
  126. package/dist/components/Table/Table.d.ts +2 -2
  127. package/dist/components/Table/Tbody/index.d.ts +3 -3
  128. package/dist/components/Table/Thead/index.d.ts +3 -3
  129. package/dist/components/Table/context.d.ts +3 -3
  130. package/dist/components/Table/hooks/useStickyOffset.d.ts +1 -1
  131. package/dist/components/Table/index.d.ts +3 -3
  132. package/dist/components/Table/interface.d.ts +1 -1
  133. package/dist/components/TextField/TextField.d.ts +4 -4
  134. package/dist/components/TextField/index.d.ts +2 -0
  135. package/dist/components/TextSelect/TextSelect.d.ts +8 -8
  136. package/dist/components/TextSelect/index.d.ts +2 -0
  137. package/dist/components/Textarea/Textarea.d.ts +15 -0
  138. package/dist/components/Textarea/index.d.ts +2 -15
  139. package/dist/components/Toast/Toast.d.ts +2 -13
  140. package/dist/components/Toast/index.d.ts +2 -0
  141. package/dist/components/Toast/styles.d.ts +1 -1
  142. package/dist/components/Tooltip/Tooltip.d.ts +4 -4
  143. package/dist/components/Tooltip/index.d.ts +2 -0
  144. package/dist/components/Typography/Typography.d.ts +2 -2
  145. package/dist/components/Typography/index.d.ts +4 -0
  146. package/dist/components/Typography/styles.d.ts +1 -1
  147. package/dist/helper-221987f8.js +7 -0
  148. package/dist/hooks/useNotification.d.ts +1 -1
  149. package/dist/hooks/useToast.d.ts +1 -1
  150. package/dist/{index-0f855a91.js → index-0230b5a9.js} +5 -4
  151. package/dist/{index-7e7de989.js → index-02f669c4.js} +2 -1
  152. package/dist/{index-c1432623.js → index-03169373.js} +12 -22
  153. package/dist/{index-dbea4488.js → index-03513979.js} +10 -20
  154. package/dist/{index-4cea2e20.js → index-03d6aef0.js} +13 -23
  155. package/dist/{index-dfb96759.js → index-06d0f2f7.js} +13 -23
  156. package/dist/{index-f8810adb.js → index-06ef2e10.js} +7 -17
  157. package/dist/{index-c078827b.js → index-08a64465.js} +11 -21
  158. package/dist/{index-bcf82ae7.js → index-094d2a65.js} +17 -27
  159. package/dist/{index-1d7be755.js → index-11268759.js} +15 -25
  160. package/dist/{index-b9a82ba5.js → index-117d018c.js} +18 -28
  161. package/dist/{index-cd4efd98.js → index-12d32536.js} +13 -23
  162. package/dist/{index-9c33b53b.js → index-141cec17.js} +14 -24
  163. package/dist/{index-97bfb33b.js → index-19d177fe.js} +16 -26
  164. package/dist/{index-7a61cd31.js → index-1b2a64df.js} +24 -34
  165. package/dist/{index-0ba36510.js → index-2334248a.js} +9 -19
  166. package/dist/{index-27849f7f.js → index-293f8244.js} +16 -26
  167. package/dist/{index-c180e596.js → index-29d37c73.js} +36 -46
  168. package/dist/{index-bde1ddff.js → index-2ae0474b.js} +24 -34
  169. package/dist/{index-94ad999b.js → index-360aaaac.js} +26 -36
  170. package/dist/{index-33206747.js → index-3ee2bafa.js} +13 -23
  171. package/dist/{index-89e1a10c.js → index-40710f09.js} +14 -24
  172. package/dist/{index-610d9078.js → index-4528ba11.js} +16 -26
  173. package/dist/index-4691af61.js +345 -0
  174. package/dist/{index-b8bd2028.js → index-4bc493f0.js} +4 -14
  175. package/dist/{index-bc92f6d7.js → index-4c6ad36c.js} +31 -41
  176. package/dist/{index-4badc3aa.js → index-4d780cf4.js} +22 -32
  177. package/dist/{index-6d36b996.js → index-4df0c3e4.js} +16 -26
  178. package/dist/{index-9eec6124.js → index-4f94900a.js} +11 -21
  179. package/dist/{index-72281543.js → index-4f94d7fa.js} +14 -24
  180. package/dist/{index-2e4769dc.js → index-57a163fd.js} +7 -17
  181. package/dist/{index-08c020cc.js → index-596c785d.js} +18 -28
  182. package/dist/{index-4538b6f1.js → index-5beeed26.js} +22 -32
  183. package/dist/{index-17691db7.js → index-5e6ffc2f.js} +2 -1
  184. package/dist/{index-0e648cc8.js → index-5fb7b3bc.js} +12 -22
  185. package/dist/{index-68176119.js → index-60fe7f16.js} +13 -23
  186. package/dist/{index-d979c066.js → index-63a66f13.js} +21 -31
  187. package/dist/{index-e66d9c05.js → index-67554651.js} +18 -28
  188. package/dist/{index-84d30e7d.js → index-67678963.js} +17 -27
  189. package/dist/{index-bf138c16.js → index-6856be22.js} +20 -30
  190. package/dist/{index-f2ce4d47.js → index-6e969585.js} +14 -24
  191. package/dist/{index-a44c7fc3.js → index-6f728206.js} +9 -19
  192. package/dist/{index-b0395447.js → index-6f963c6a.js} +15 -25
  193. package/dist/{index-a21065c7.js → index-73bfc020.js} +21 -31
  194. package/dist/{index-38dd9ffa.js → index-75190b99.js} +7 -17
  195. package/dist/{index-acff2b4a.js → index-770e5f53.js} +12 -22
  196. package/dist/{index-cf49fc0d.js → index-79e7317f.js} +12 -22
  197. package/dist/{index-a7e0ed04.js → index-7bb9ffdf.js} +3 -2
  198. package/dist/{index-f9c4fdf4.js → index-7cf9b111.js} +18 -28
  199. package/dist/{index-38d8e7de.js → index-7edb6aec.js} +18 -28
  200. package/dist/{index-9d8b09eb.js → index-80cc70e4.js} +23 -33
  201. package/dist/index-829c2f71.js +71 -0
  202. package/dist/{index-9bd2ed9e.js → index-8585c2f3.js} +21 -31
  203. package/dist/{index-12e76fe7.js → index-898678dc.js} +21 -31
  204. package/dist/{index-4de408aa.js → index-8aa9b1be.js} +24 -34
  205. package/dist/{index-f84b2222.js → index-954d3973.js} +11 -21
  206. package/dist/{index-42e43f41.js → index-956b36a6.js} +35 -45
  207. package/dist/{index-37b84dfa.js → index-9c73c442.js} +43 -53
  208. package/dist/{index-9ac661f7.js → index-9e5efc0a.js} +12 -22
  209. package/dist/{index-6d67613d.js → index-a6fa33ce.js} +13 -23
  210. package/dist/{index-bd620e33.js → index-a89abb42.js} +4 -14
  211. package/dist/{index-50162265.js → index-b0da3dfd.js} +14 -24
  212. package/dist/{index-59bfbd19.js → index-b103ed31.js} +4 -14
  213. package/dist/{index-caa61e29.js → index-b54ef52a.js} +16 -26
  214. package/dist/index-b7027a1d.js +1295 -0
  215. package/dist/{index-9c585cab.js → index-b7941b97.js} +8 -18
  216. package/dist/index-ba78fd90.js +5322 -0
  217. package/dist/{index-3de70545.js → index-c1381bca.js} +20 -30
  218. package/dist/index-c57db938.js +37 -0
  219. package/dist/{index-ec8d8fcf.js → index-c6371af1.js} +10 -20
  220. package/dist/{index-81920b5d.js → index-c69f6dfc.js} +14 -24
  221. package/dist/{index-aa368f90.js → index-cb1218d8.js} +8 -18
  222. package/dist/{index-0213a44c.js → index-cbc0d36b.js} +13 -23
  223. package/dist/{index-dcb12c66.js → index-cc1cd309.js} +13 -23
  224. package/dist/{index-509a1f5f.js → index-ceae4147.js} +9 -19
  225. package/dist/{index-b3e553bd.js → index-cfee583b.js} +18 -28
  226. package/dist/{index-f58397c0.js → index-d2f2742e.js} +10 -20
  227. package/dist/{index-96a61e0a.js → index-d3419554.js} +15 -25
  228. package/dist/{index-6a7e9442.js → index-d81e15f3.js} +19 -29
  229. package/dist/{index-ed00d0a9.js → index-d86842c8.js} +17 -27
  230. package/dist/{index-1dfb2e67.js → index-e169373b.js} +10 -20
  231. package/dist/{index-013f5bc2.js → index-e1a6a03d.js} +9 -19
  232. package/dist/{index-ea190677.js → index-e2b960e4.js} +21 -31
  233. package/dist/{index-6fddc28c.js → index-e8fb69e0.js} +21 -31
  234. package/dist/{index-fb186008.js → index-e98ef24f.js} +14 -24
  235. package/dist/{index-bec1207c.js → index-e9a1ff7f.js} +4 -14
  236. package/dist/{index-28e0be04.js → index-ef31f5f8.js} +2 -1
  237. package/dist/{index-f2868755.js → index-f1726c63.js} +7 -17
  238. package/dist/{index-754fdb2d.js → index-f40f45fb.js} +13 -23
  239. package/dist/{index-1aab99a7.js → index-f64eddcc.js} +16 -26
  240. package/dist/{index-e6c10a19.js → index-f7c4ae83.js} +17 -27
  241. package/dist/{index-dd06b4da.js → index-fda88eb4.js} +23 -33
  242. package/dist/{index-85a5e5b5.js → index-fdffd6e6.js} +14 -24
  243. package/dist/index.d.ts +35 -44
  244. package/dist/index.es.js +212 -48
  245. package/dist/index.esm-8f99fb73.js +1202 -0
  246. package/dist/jsx-runtime-9e7af31d.js +290 -0
  247. package/dist/locales-776f0072.js +440 -0
  248. package/dist/provider/ThemeProvider.d.ts +7 -3
  249. package/dist/search-b79a3be5.js +6 -0
  250. package/dist/sortable.esm-8d31c120.js +1275 -0
  251. package/dist/styles-85a9fe64.js +136 -0
  252. package/dist/useAlign-916ed3be.js +44 -0
  253. package/dist/useDelayEvent-f577f6a3.js +1082 -0
  254. package/dist/useTheme-4cb4f87b.js +16 -0
  255. package/dist/{utils-5f24b5c8.js → utils-071abd68.js} +2 -1
  256. package/package.json +32 -4
  257. package/dist/index-872f61ac.js +0 -25821
  258. package/dist/index-bb10ef5d.js +0 -15163
  259. package/dist/index-cc20cd7e.js +0 -351
package/dist/Badge.es.js CHANGED
@@ -1,8 +1,12 @@
1
- import { a as s, u as d, j as i } from "./index-cc20cd7e.js";
2
- import { c as u } from "./utils-5f24b5c8.js";
1
+ "use client";
2
+ import { j as s } from "./jsx-runtime-9e7af31d.js";
3
+ import { u as i } from "./useTheme-4cb4f87b.js";
4
+ import { c as d } from "./utils-071abd68.js";
5
+ import { c as u } from "./index-c57db938.js";
3
6
  import "react";
7
+ import "./clsx.m-e965ef18.js";
4
8
  const c = (e) => {
5
- const a = {
9
+ const r = {
6
10
  dark: {
7
11
  primary: "bu-bg-dark-badge-primary-bg bu-text-dark-primary",
8
12
  secondary: "bu-bg-dark-badge-secondary-bg bu-text-dark-secondary",
@@ -19,37 +23,37 @@ const c = (e) => {
19
23
  warning: "bu-bg-light-badge-warning-bg bu-text-light-warning",
20
24
  info: "bu-bg-light-badge-info-bg bu-text-light-label-60"
21
25
  }
22
- }, { theme: r } = e;
23
- return s("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]", {
24
28
  variants: {
25
29
  color: {
26
- primary: a[r].primary,
27
- secondary: a[r].secondary,
28
- danger: a[r].danger,
29
- success: a[r].success,
30
- warning: a[r].warning,
31
- 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
32
36
  }
33
37
  },
34
38
  defaultVariants: {
35
39
  color: "primary"
36
40
  }
37
41
  })(e);
38
- }, x = ({
42
+ }, y = ({
39
43
  color: e = "primary",
40
- decoration: a = !0,
41
- label: r,
44
+ decoration: r = !0,
45
+ label: a,
42
46
  theme: g,
43
47
  startIcon: b,
44
48
  endIcon: t
45
49
  }) => {
46
- const { theme: n } = d();
47
- return /* @__PURE__ */ i.jsxs("span", { className: `${u(c({ theme: g || n, color: e }))}`, children: [
48
- b || (a ? "• " : null),
49
- r,
50
+ const { theme: n } = i();
51
+ return /* @__PURE__ */ s.jsxs("span", { className: `${d(c({ theme: g || n, color: e }))}`, children: [
52
+ b || (r ? "• " : null),
53
+ a,
50
54
  t
51
55
  ] });
52
56
  };
53
57
  export {
54
- x as Badge
58
+ y as Badge
55
59
  };
package/dist/Button.es.js CHANGED
@@ -1,6 +1,10 @@
1
- import { a as e, j as r, u as x, c as g } from "./index-cc20cd7e.js";
2
- import { c as k } from "./utils-5f24b5c8.js";
3
- import * as d from "react";
1
+ "use client";
2
+ import { j as r } from "./jsx-runtime-9e7af31d.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-4cb4f87b.js";
6
+ import * as o from "react";
7
+ import { c as g } from "./clsx.m-e965ef18.js";
4
8
  const N = e("bu-text-light-second", {
5
9
  variants: {
6
10
  theme: {
@@ -345,7 +349,7 @@ const N = e("bu-text-light-second", {
345
349
  max: "bu-h-[28px] bu-w-[28px]"
346
350
  }
347
351
  }
348
- }), o = {
352
+ }), d = {
349
353
  "loader-medium": "_loader-medium_amaox_2",
350
354
  "animloader-medium": "_animloader-medium_amaox_1",
351
355
  "loader-light": "_loader-light_amaox_12",
@@ -358,17 +362,17 @@ const N = e("bu-text-light-second", {
358
362
  "animloader-m-small": "_animloader-m-small_amaox_1"
359
363
  }, Q = ({ size: t, theme: l }) => {
360
364
  const b = {
361
- small: o["loader-small"],
362
- medium: o["loader-medium"],
363
- large: o["loader-large"],
364
- max: o["loader-large"],
365
- "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"]
366
370
  }, u = {
367
- light: o["loader-light"],
368
- dark: o["loader-dark"]
371
+ light: d["loader-light"],
372
+ dark: d["loader-dark"]
369
373
  };
370
374
  return /* @__PURE__ */ r.jsx("span", { className: `${b[t]} ${u[l]}` });
371
- }, 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 = ({
372
376
  size: t = "large",
373
377
  disabled: l = !1,
374
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-9e7af31d.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-8f99fb73.js";
7
+ import { c as t } from "./index-c57db938.js";
8
+ import { u as M } from "./useTheme-4cb4f87b.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-9e7af31d.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-4cb4f87b.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-9e7af31d.js";
3
+ import { u as o } from "./useTheme-4cb4f87b.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'