asterui 0.12.0 → 0.12.2

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 (299) hide show
  1. package/README.md +1 -1
  2. package/dist/components/Calendar.d.ts +23 -0
  3. package/dist/components/Checkbox.d.ts +10 -0
  4. package/dist/components/Dock.d.ts +38 -0
  5. package/dist/components/Form.d.ts +27 -2
  6. package/dist/components/Mask.d.ts +14 -0
  7. package/dist/components/Radio.d.ts +7 -1
  8. package/dist/components/Status.d.ts +18 -0
  9. package/dist/index.css +1 -0
  10. package/dist/index.d.ts +12 -3
  11. package/dist/index.js +203 -192
  12. package/dist/index.js.map +1 -1
  13. package/dist/index10.js +85 -59
  14. package/dist/index10.js.map +1 -1
  15. package/dist/index100.js +44 -11
  16. package/dist/index100.js.map +1 -1
  17. package/dist/index101.js +11 -29
  18. package/dist/index101.js.map +1 -1
  19. package/dist/index102.js +13 -16
  20. package/dist/index102.js.map +1 -1
  21. package/dist/index103.js +7 -10792
  22. package/dist/index103.js.map +1 -1
  23. package/dist/index104.js +13 -5
  24. package/dist/index104.js.map +1 -1
  25. package/dist/index105.js +30 -41
  26. package/dist/index105.js.map +1 -1
  27. package/dist/index106.js +18 -2
  28. package/dist/index106.js.map +1 -1
  29. package/dist/index107.js +174 -7
  30. package/dist/index107.js.map +1 -1
  31. package/dist/index109.js +10788 -25
  32. package/dist/index109.js.map +1 -1
  33. package/dist/index110.js +5 -30
  34. package/dist/index110.js.map +1 -1
  35. package/dist/index111.js +42 -2
  36. package/dist/index111.js.map +1 -1
  37. package/dist/index112.js +2 -72
  38. package/dist/index112.js.map +1 -1
  39. package/dist/index113.js +6 -38
  40. package/dist/index113.js.map +1 -1
  41. package/dist/index114.js +150 -24
  42. package/dist/index114.js.map +1 -1
  43. package/dist/index115.js +29 -20
  44. package/dist/index115.js.map +1 -1
  45. package/dist/index116.js +29 -23
  46. package/dist/index116.js.map +1 -1
  47. package/dist/index117.js +2 -20
  48. package/dist/index117.js.map +1 -1
  49. package/dist/index118.js +71 -99
  50. package/dist/index118.js.map +1 -1
  51. package/dist/index119.js +37 -358
  52. package/dist/index119.js.map +1 -1
  53. package/dist/index120.js +23 -22
  54. package/dist/index120.js.map +1 -1
  55. package/dist/index121.js +20 -72
  56. package/dist/index121.js.map +1 -1
  57. package/dist/index122.js +23 -15
  58. package/dist/index122.js.map +1 -1
  59. package/dist/index123.js +19 -65
  60. package/dist/index123.js.map +1 -1
  61. package/dist/index124.js +92 -136
  62. package/dist/index124.js.map +1 -1
  63. package/dist/index125.js +360 -2
  64. package/dist/index125.js.map +1 -1
  65. package/dist/index126.js +23 -54
  66. package/dist/index126.js.map +1 -1
  67. package/dist/index127.js +73 -2
  68. package/dist/index127.js.map +1 -1
  69. package/dist/index128.js +16 -2
  70. package/dist/index128.js.map +1 -1
  71. package/dist/index129.js +66 -2
  72. package/dist/index129.js.map +1 -1
  73. package/dist/index13.js +35 -95
  74. package/dist/index13.js.map +1 -1
  75. package/dist/index130.js +144 -2
  76. package/dist/index130.js.map +1 -1
  77. package/dist/index131.js +2 -2
  78. package/dist/index132.js +56 -2
  79. package/dist/index132.js.map +1 -1
  80. package/dist/index135.js +2 -32
  81. package/dist/index135.js.map +1 -1
  82. package/dist/index137.js +2 -8
  83. package/dist/index137.js.map +1 -1
  84. package/dist/index138.js +2 -2
  85. package/dist/index139.js +2 -2
  86. package/dist/index14.js +90 -153
  87. package/dist/index14.js.map +1 -1
  88. package/dist/index140.js +2 -21
  89. package/dist/index140.js.map +1 -1
  90. package/dist/index141.js +32 -2
  91. package/dist/index141.js.map +1 -1
  92. package/dist/index142.js +2 -24
  93. package/dist/index142.js.map +1 -1
  94. package/dist/index143.js +7 -70
  95. package/dist/index143.js.map +1 -1
  96. package/dist/index144.js +2 -21
  97. package/dist/index144.js.map +1 -1
  98. package/dist/index145.js +2 -34
  99. package/dist/index145.js.map +1 -1
  100. package/dist/index146.js +20 -69
  101. package/dist/index146.js.map +1 -1
  102. package/dist/index147.js +2 -2
  103. package/dist/index148.js +23 -21
  104. package/dist/index148.js.map +1 -1
  105. package/dist/index149.js +71 -2
  106. package/dist/index149.js.map +1 -1
  107. package/dist/index15.js +154 -146
  108. package/dist/index15.js.map +1 -1
  109. package/dist/index150.js +21 -2
  110. package/dist/index150.js.map +1 -1
  111. package/dist/index151.js +34 -2
  112. package/dist/index151.js.map +1 -1
  113. package/dist/index152.js +70 -2
  114. package/dist/index152.js.map +1 -1
  115. package/dist/index153.js +2 -4
  116. package/dist/index153.js.map +1 -1
  117. package/dist/index154.js +25 -0
  118. package/dist/index154.js.map +1 -0
  119. package/dist/index155.js +5 -0
  120. package/dist/index155.js.map +1 -0
  121. package/dist/index156.js +5 -0
  122. package/dist/index156.js.map +1 -0
  123. package/dist/index157.js +5 -0
  124. package/dist/index157.js.map +1 -0
  125. package/dist/index158.js +5 -0
  126. package/dist/index158.js.map +1 -0
  127. package/dist/index159.js +7 -0
  128. package/dist/index159.js.map +1 -0
  129. package/dist/index16.js +150 -5
  130. package/dist/index16.js.map +1 -1
  131. package/dist/index17.js +5 -71
  132. package/dist/index17.js.map +1 -1
  133. package/dist/index18.js +71 -17
  134. package/dist/index18.js.map +1 -1
  135. package/dist/index19.js +15 -96
  136. package/dist/index19.js.map +1 -1
  137. package/dist/index20.js +89 -105
  138. package/dist/index20.js.map +1 -1
  139. package/dist/index21.js +107 -177
  140. package/dist/index21.js.map +1 -1
  141. package/dist/index22.js +181 -107
  142. package/dist/index22.js.map +1 -1
  143. package/dist/index23.js +110 -19
  144. package/dist/index23.js.map +1 -1
  145. package/dist/index24.js +19 -32
  146. package/dist/index24.js.map +1 -1
  147. package/dist/index25.js +42 -40
  148. package/dist/index25.js.map +1 -1
  149. package/dist/index26.js +31 -11
  150. package/dist/index26.js.map +1 -1
  151. package/dist/index27.js +41 -33
  152. package/dist/index27.js.map +1 -1
  153. package/dist/index28.js +12 -63
  154. package/dist/index28.js.map +1 -1
  155. package/dist/index29.js +33 -80
  156. package/dist/index29.js.map +1 -1
  157. package/dist/index30.js +63 -18
  158. package/dist/index30.js.map +1 -1
  159. package/dist/index31.js +78 -159
  160. package/dist/index31.js.map +1 -1
  161. package/dist/index32.js +16 -1080
  162. package/dist/index32.js.map +1 -1
  163. package/dist/index33.js +218 -16
  164. package/dist/index33.js.map +1 -1
  165. package/dist/index34.js +1081 -121
  166. package/dist/index34.js.map +1 -1
  167. package/dist/index35.js +17 -39
  168. package/dist/index35.js.map +1 -1
  169. package/dist/index36.js +121 -190
  170. package/dist/index36.js.map +1 -1
  171. package/dist/index37.js +37 -94
  172. package/dist/index37.js.map +1 -1
  173. package/dist/index38.js +186 -157
  174. package/dist/index38.js.map +1 -1
  175. package/dist/index39.js +89 -138
  176. package/dist/index39.js.map +1 -1
  177. package/dist/index40.js +161 -14
  178. package/dist/index40.js.map +1 -1
  179. package/dist/index41.js +146 -18
  180. package/dist/index41.js.map +1 -1
  181. package/dist/index42.js +14 -20
  182. package/dist/index42.js.map +1 -1
  183. package/dist/index43.js +15 -116
  184. package/dist/index43.js.map +1 -1
  185. package/dist/index44.js +18 -10
  186. package/dist/index44.js.map +1 -1
  187. package/dist/index45.js +119 -35
  188. package/dist/index45.js.map +1 -1
  189. package/dist/index46.js +12 -115
  190. package/dist/index46.js.map +1 -1
  191. package/dist/index47.js +33 -174
  192. package/dist/index47.js.map +1 -1
  193. package/dist/index48.js +10 -147
  194. package/dist/index48.js.map +1 -1
  195. package/dist/index49.js +116 -12
  196. package/dist/index49.js.map +1 -1
  197. package/dist/index50.js +176 -22
  198. package/dist/index50.js.map +1 -1
  199. package/dist/index51.js +147 -14
  200. package/dist/index51.js.map +1 -1
  201. package/dist/index52.js +10 -5
  202. package/dist/index52.js.map +1 -1
  203. package/dist/index53.js +21 -265
  204. package/dist/index53.js.map +1 -1
  205. package/dist/index54.js +10 -13
  206. package/dist/index54.js.map +1 -1
  207. package/dist/index55.js +7 -122
  208. package/dist/index55.js.map +1 -1
  209. package/dist/index56.js +262 -106
  210. package/dist/index56.js.map +1 -1
  211. package/dist/index57.js +14 -167
  212. package/dist/index57.js.map +1 -1
  213. package/dist/index58.js +121 -31
  214. package/dist/index58.js.map +1 -1
  215. package/dist/index59.js +107 -119
  216. package/dist/index59.js.map +1 -1
  217. package/dist/index60.js +161 -77
  218. package/dist/index60.js.map +1 -1
  219. package/dist/index61.js +31 -19
  220. package/dist/index61.js.map +1 -1
  221. package/dist/index62.js +117 -69
  222. package/dist/index62.js.map +1 -1
  223. package/dist/index63.js +82 -53
  224. package/dist/index63.js.map +1 -1
  225. package/dist/index64.js +19 -44
  226. package/dist/index64.js.map +1 -1
  227. package/dist/index65.js +70 -48
  228. package/dist/index65.js.map +1 -1
  229. package/dist/index66.js +55 -60
  230. package/dist/index66.js.map +1 -1
  231. package/dist/index67.js +39 -101
  232. package/dist/index67.js.map +1 -1
  233. package/dist/index68.js +52 -41
  234. package/dist/index68.js.map +1 -1
  235. package/dist/index69.js +58 -64
  236. package/dist/index69.js.map +1 -1
  237. package/dist/index70.js +105 -19
  238. package/dist/index70.js.map +1 -1
  239. package/dist/index71.js +41 -46
  240. package/dist/index71.js.map +1 -1
  241. package/dist/index72.js +63 -129
  242. package/dist/index72.js.map +1 -1
  243. package/dist/index73.js +19 -50
  244. package/dist/index73.js.map +1 -1
  245. package/dist/index74.js +46 -22
  246. package/dist/index74.js.map +1 -1
  247. package/dist/index75.js +134 -22
  248. package/dist/index75.js.map +1 -1
  249. package/dist/index76.js +51 -328
  250. package/dist/index76.js.map +1 -1
  251. package/dist/index77.js +19 -53
  252. package/dist/index77.js.map +1 -1
  253. package/dist/index78.js +31 -40
  254. package/dist/index78.js.map +1 -1
  255. package/dist/index79.js +22 -23
  256. package/dist/index79.js.map +1 -1
  257. package/dist/index80.js +319 -85
  258. package/dist/index80.js.map +1 -1
  259. package/dist/index81.js +52 -126
  260. package/dist/index81.js.map +1 -1
  261. package/dist/index82.js +39 -160
  262. package/dist/index82.js.map +1 -1
  263. package/dist/index83.js +23 -65
  264. package/dist/index83.js.map +1 -1
  265. package/dist/index84.js +95 -35
  266. package/dist/index84.js.map +1 -1
  267. package/dist/index85.js +126 -230
  268. package/dist/index85.js.map +1 -1
  269. package/dist/index86.js +159 -32
  270. package/dist/index86.js.map +1 -1
  271. package/dist/index87.js +60 -205
  272. package/dist/index87.js.map +1 -1
  273. package/dist/index88.js +34 -212
  274. package/dist/index88.js.map +1 -1
  275. package/dist/index89.js +229 -290
  276. package/dist/index89.js.map +1 -1
  277. package/dist/index90.js +32 -176
  278. package/dist/index90.js.map +1 -1
  279. package/dist/index91.js +199 -247
  280. package/dist/index91.js.map +1 -1
  281. package/dist/index92.js +211 -12
  282. package/dist/index92.js.map +1 -1
  283. package/dist/index93.js +290 -28
  284. package/dist/index93.js.map +1 -1
  285. package/dist/index94.js +177 -5
  286. package/dist/index94.js.map +1 -1
  287. package/dist/index95.js +257 -13
  288. package/dist/index95.js.map +1 -1
  289. package/dist/index96.js +13 -45
  290. package/dist/index96.js.map +1 -1
  291. package/dist/index97.js +32 -12
  292. package/dist/index97.js.map +1 -1
  293. package/dist/index98.js +5 -14
  294. package/dist/index98.js.map +1 -1
  295. package/dist/index99.js +13 -7
  296. package/dist/index99.js.map +1 -1
  297. package/package.json +2 -1
  298. package/dist/index108.js +0 -155
  299. package/dist/index108.js.map +0 -1
package/dist/index.js CHANGED
@@ -2,212 +2,223 @@ import { Affix as e } from "./index2.js";
2
2
  import { Anchor as p } from "./index3.js";
3
3
  import { Alert as f } from "./index4.js";
4
4
  import { Autocomplete as a } from "./index5.js";
5
- import { Avatar as n, AvatarGroup as s } from "./index6.js";
6
- import { Badge as l } from "./index7.js";
5
+ import { Avatar as s, AvatarGroup as i } from "./index6.js";
6
+ import { Badge as u } from "./index7.js";
7
7
  import { Breadcrumb as c } from "./index8.js";
8
8
  import { Button as T } from "./index9.js";
9
9
  import { Checkbox as P } from "./index10.js";
10
10
  import { Chat as b } from "./index11.js";
11
11
  import { ColorPicker as h } from "./index12.js";
12
- import { Card as y } from "./index13.js";
13
- import { Cascader as R } from "./index14.js";
14
- import { Chart as F } from "./index15.js";
15
- import { Carousel as A } from "./index16.js";
16
- import { Collapse as L } from "./index17.js";
17
- import { Container as H } from "./index18.js";
18
- import { ContextMenu as G } from "./index19.js";
19
- import { Countdown as O } from "./index20.js";
20
- import { DatePicker as z } from "./index21.js";
21
- import { Descriptions as J } from "./index22.js";
22
- import { Diff as U } from "./index23.js";
23
- import { Divider as q } from "./index24.js";
24
- import { Drawer as X } from "./index25.js";
25
- import { Fieldset as Z } from "./index26.js";
26
- import { FileInput as $ } from "./index27.js";
27
- import { Flex as ro } from "./index28.js";
28
- import { FloatButton as to } from "./index29.js";
29
- import { Footer as mo } from "./index30.js";
30
- import { Form as xo, useFormInstance as ao } from "./index31.js";
31
- import { Col as no, Grid as so, Row as uo } from "./index32.js";
32
- import { Hero as co } from "./index33.js";
33
- import { Image as To } from "./index34.js";
34
- import { Indicator as Po } from "./index35.js";
35
- import { Dropdown as bo } from "./index36.js";
36
- import { Empty as ho } from "./index37.js";
37
- import { Input as yo } from "./index38.js";
38
- import { InputNumber as Ro } from "./index39.js";
39
- import { Join as Fo } from "./index40.js";
40
- import { Kbd as Ao } from "./index41.js";
41
- import { Label as Lo } from "./index42.js";
42
- import { Layout as Ho, useSiderContext as Ko } from "./index43.js";
43
- import { List as No } from "./index44.js";
44
- import { Loading as Wo } from "./index45.js";
45
- import { Masonry as Eo } from "./index46.js";
46
- import { Mention as Qo } from "./index47.js";
47
- import { Menu as jo } from "./index48.js";
48
- import { Browser as Vo } from "./index49.js";
49
- import { Code as Yo } from "./index50.js";
50
- import { Phone as _o } from "./index51.js";
51
- import { Window as or } from "./index52.js";
52
- import { Modal as er } from "./index53.js";
53
- import { Navbar as pr } from "./index54.js";
54
- import { notification as fr } from "./index55.js";
55
- import { OTPInput as ar } from "./index56.js";
56
- import { Pagination as nr } from "./index57.js";
57
- import { PageLayout as ur } from "./index58.js";
58
- import { Popconfirm as dr } from "./index59.js";
59
- import { Popover as Cr } from "./index60.js";
60
- import { Progress as gr } from "./index61.js";
61
- import { QRCode as Sr } from "./index62.js";
62
- import { Radio as kr } from "./index63.js";
63
- import { RadialProgress as wr } from "./index64.js";
64
- import { Range as Dr } from "./index65.js";
65
- import { Rating as vr } from "./index66.js";
66
- import { Result as Ir } from "./index67.js";
67
- import { Select as Br } from "./index68.js";
68
- import { Segmented as Mr } from "./index69.js";
69
- import { Skeleton as Kr } from "./index70.js";
70
- import { Space as Nr } from "./index71.js";
71
- import { Splitter as Wr } from "./index72.js";
72
- import { Stack as Er } from "./index73.js";
73
- import { Stats as Qr } from "./index74.js";
74
- import { Steps as jr } from "./index75.js";
75
- import { Table as Vr } from "./index76.js";
76
- import { Tabs as Yr } from "./index77.js";
77
- import { Textarea as _r } from "./index78.js";
78
- import { TextRotate as oe } from "./index79.js";
79
- import { CheckableTag as ee, Tag as te } from "./index80.js";
80
- import { ThemeController as me } from "./index81.js";
81
- import { TimePicker as xe } from "./index82.js";
82
- import { Timeline as ie } from "./index83.js";
83
- import { Toggle as se } from "./index84.js";
84
- import { Tour as le } from "./index85.js";
85
- import { Tooltip as ce } from "./index86.js";
86
- import { Transfer as Te } from "./index87.js";
87
- import { Tree as Pe } from "./index88.js";
88
- import { TreeSelect as be } from "./index89.js";
89
- import { Typography as he } from "./index90.js";
90
- import { Upload as ye } from "./index91.js";
91
- import { Hide as Re, Show as ve } from "./index92.js";
92
- import { useBreakpoint as Ie } from "./index93.js";
93
- import { useDisclosure as Be } from "./index94.js";
94
- import { useClipboard as Me } from "./index95.js";
95
- import { useLocalStorage as Ke } from "./index96.js";
96
- import { useDebounce as Ne } from "./index97.js";
97
- import { useClickOutside as We } from "./index98.js";
98
- import { usePrevious as Ee } from "./index99.js";
99
- import { useHover as Qe } from "./index100.js";
100
- import { useKeyPress as je, useKeyPressCallback as qe } from "./index101.js";
101
- import { useWindowSize as Xe } from "./index102.js";
12
+ import { Calendar as w } from "./index13.js";
13
+ import { Card as F } from "./index14.js";
14
+ import { Cascader as v } from "./index15.js";
15
+ import { Chart as A } from "./index16.js";
16
+ import { Carousel as L } from "./index17.js";
17
+ import { Collapse as H } from "./index18.js";
18
+ import { Container as E } from "./index19.js";
19
+ import { ContextMenu as N } from "./index20.js";
20
+ import { Countdown as W } from "./index21.js";
21
+ import { DatePicker as J } from "./index22.js";
22
+ import { Descriptions as U } from "./index23.js";
23
+ import { Diff as q } from "./index24.js";
24
+ import { Dock as X } from "./index25.js";
25
+ import { Divider as Z } from "./index26.js";
26
+ import { Drawer as $ } from "./index27.js";
27
+ import { Fieldset as ro } from "./index28.js";
28
+ import { FileInput as to } from "./index29.js";
29
+ import { Flex as mo } from "./index30.js";
30
+ import { FloatButton as xo } from "./index31.js";
31
+ import { Footer as no } from "./index32.js";
32
+ import { Form as io, useFormInstance as lo } from "./index33.js";
33
+ import { Col as co, Grid as Co, Row as To } from "./index34.js";
34
+ import { Hero as Po } from "./index35.js";
35
+ import { Image as bo } from "./index36.js";
36
+ import { Indicator as ho } from "./index37.js";
37
+ import { Dropdown as wo } from "./index38.js";
38
+ import { Empty as Fo } from "./index39.js";
39
+ import { Input as vo } from "./index40.js";
40
+ import { InputNumber as Ao } from "./index41.js";
41
+ import { Join as Lo } from "./index42.js";
42
+ import { Kbd as Ho } from "./index43.js";
43
+ import { Label as Eo } from "./index44.js";
44
+ import { Layout as No, useSiderContext as Oo } from "./index45.js";
45
+ import { List as zo } from "./index46.js";
46
+ import { Loading as Qo } from "./index47.js";
47
+ import { Mask as jo } from "./index48.js";
48
+ import { Masonry as Vo } from "./index49.js";
49
+ import { Mention as Yo } from "./index50.js";
50
+ import { Menu as _o } from "./index51.js";
51
+ import { Browser as or } from "./index52.js";
52
+ import { Code as er } from "./index53.js";
53
+ import { Phone as pr } from "./index54.js";
54
+ import { Window as fr } from "./index55.js";
55
+ import { Modal as ar } from "./index56.js";
56
+ import { Navbar as sr } from "./index57.js";
57
+ import { notification as lr } from "./index58.js";
58
+ import { OTPInput as dr } from "./index59.js";
59
+ import { Pagination as Cr } from "./index60.js";
60
+ import { PageLayout as gr } from "./index61.js";
61
+ import { Popconfirm as Sr } from "./index62.js";
62
+ import { Popover as kr } from "./index63.js";
63
+ import { Progress as Dr } from "./index64.js";
64
+ import { QRCode as yr } from "./index65.js";
65
+ import { Radio as Rr } from "./index66.js";
66
+ import { RadialProgress as Ir } from "./index67.js";
67
+ import { Range as Br } from "./index68.js";
68
+ import { Rating as Mr } from "./index69.js";
69
+ import { Result as Kr } from "./index70.js";
70
+ import { Select as Gr } from "./index71.js";
71
+ import { Segmented as Or } from "./index72.js";
72
+ import { Skeleton as zr } from "./index73.js";
73
+ import { Space as Qr } from "./index74.js";
74
+ import { Splitter as jr } from "./index75.js";
75
+ import { Stack as Vr } from "./index76.js";
76
+ import { Stats as Yr } from "./index77.js";
77
+ import { Status as _r } from "./index78.js";
78
+ import { Steps as oe } from "./index79.js";
79
+ import { Table as ee } from "./index80.js";
80
+ import { Tabs as pe } from "./index81.js";
81
+ import { Textarea as fe } from "./index82.js";
82
+ import { TextRotate as ae } from "./index83.js";
83
+ import { CheckableTag as se, Tag as ie } from "./index84.js";
84
+ import { ThemeController as ue } from "./index85.js";
85
+ import { TimePicker as ce } from "./index86.js";
86
+ import { Timeline as Te } from "./index87.js";
87
+ import { Toggle as Pe } from "./index88.js";
88
+ import { Tour as be } from "./index89.js";
89
+ import { Tooltip as he } from "./index90.js";
90
+ import { Transfer as we } from "./index91.js";
91
+ import { Tree as Fe } from "./index92.js";
92
+ import { TreeSelect as ve } from "./index93.js";
93
+ import { Typography as Ae } from "./index94.js";
94
+ import { Upload as Le } from "./index95.js";
95
+ import { Hide as He, Show as Ke } from "./index96.js";
96
+ import { useBreakpoint as Ge } from "./index97.js";
97
+ import { useDisclosure as Oe } from "./index98.js";
98
+ import { useClipboard as ze } from "./index99.js";
99
+ import { useLocalStorage as Qe } from "./index100.js";
100
+ import { useDebounce as je } from "./index101.js";
101
+ import { useClickOutside as Ve } from "./index102.js";
102
+ import { usePrevious as Ye } from "./index103.js";
103
+ import { useHover as _e } from "./index104.js";
104
+ import { useKeyPress as ot, useKeyPressCallback as rt } from "./index105.js";
105
+ import { useWindowSize as tt } from "./index106.js";
106
+ import { en as mt, fr as ft } from "./index107.js";
102
107
  export {
103
108
  e as Affix,
104
109
  f as Alert,
105
110
  p as Anchor,
106
111
  a as Autocomplete,
107
- n as Avatar,
108
- s as AvatarGroup,
109
- l as Badge,
112
+ s as Avatar,
113
+ i as AvatarGroup,
114
+ u as Badge,
110
115
  c as Breadcrumb,
111
- Vo as Browser,
116
+ or as Browser,
112
117
  T as Button,
113
- y as Card,
114
- A as Carousel,
115
- R as Cascader,
116
- F as Chart,
118
+ w as Calendar,
119
+ F as Card,
120
+ L as Carousel,
121
+ v as Cascader,
122
+ A as Chart,
117
123
  b as Chat,
118
- ee as CheckableTag,
124
+ se as CheckableTag,
119
125
  P as Checkbox,
120
- Yo as Code,
121
- no as Col,
122
- L as Collapse,
126
+ er as Code,
127
+ co as Col,
128
+ H as Collapse,
123
129
  h as ColorPicker,
124
- H as Container,
125
- G as ContextMenu,
126
- O as Countdown,
127
- z as DatePicker,
128
- J as Descriptions,
129
- U as Diff,
130
- q as Divider,
131
- X as Drawer,
132
- bo as Dropdown,
133
- ho as Empty,
134
- Z as Fieldset,
135
- $ as FileInput,
136
- ro as Flex,
137
- to as FloatButton,
138
- mo as Footer,
139
- xo as Form,
140
- so as Grid,
141
- co as Hero,
142
- Re as Hide,
143
- To as Image,
144
- Po as Indicator,
145
- yo as Input,
146
- Ro as InputNumber,
147
- Fo as Join,
148
- Ao as Kbd,
149
- Lo as Label,
150
- Ho as Layout,
151
- No as List,
152
- Wo as Loading,
153
- Eo as Masonry,
154
- Qo as Mention,
155
- jo as Menu,
156
- er as Modal,
157
- pr as Navbar,
158
- ar as OTPInput,
159
- ur as PageLayout,
160
- nr as Pagination,
161
- _o as Phone,
162
- dr as Popconfirm,
163
- Cr as Popover,
164
- gr as Progress,
165
- Sr as QRCode,
166
- wr as RadialProgress,
167
- kr as Radio,
168
- Dr as Range,
169
- vr as Rating,
170
- Ir as Result,
171
- uo as Row,
172
- Mr as Segmented,
173
- Br as Select,
174
- ve as Show,
175
- Kr as Skeleton,
176
- Nr as Space,
177
- Wr as Splitter,
178
- Er as Stack,
179
- Qr as Stats,
180
- jr as Steps,
181
- Vr as Table,
182
- Yr as Tabs,
183
- te as Tag,
184
- oe as TextRotate,
185
- _r as Textarea,
186
- me as ThemeController,
187
- xe as TimePicker,
188
- ie as Timeline,
189
- se as Toggle,
190
- ce as Tooltip,
191
- le as Tour,
192
- Te as Transfer,
193
- Pe as Tree,
194
- be as TreeSelect,
195
- he as Typography,
196
- ye as Upload,
197
- or as Window,
198
- fr as notification,
199
- Ie as useBreakpoint,
200
- We as useClickOutside,
201
- Me as useClipboard,
202
- Ne as useDebounce,
203
- Be as useDisclosure,
204
- ao as useFormInstance,
205
- Qe as useHover,
206
- je as useKeyPress,
207
- qe as useKeyPressCallback,
208
- Ke as useLocalStorage,
209
- Ee as usePrevious,
210
- Ko as useSiderContext,
211
- Xe as useWindowSize
130
+ E as Container,
131
+ N as ContextMenu,
132
+ W as Countdown,
133
+ J as DatePicker,
134
+ U as Descriptions,
135
+ q as Diff,
136
+ Z as Divider,
137
+ X as Dock,
138
+ $ as Drawer,
139
+ wo as Dropdown,
140
+ Fo as Empty,
141
+ ro as Fieldset,
142
+ to as FileInput,
143
+ mo as Flex,
144
+ xo as FloatButton,
145
+ no as Footer,
146
+ io as Form,
147
+ Co as Grid,
148
+ Po as Hero,
149
+ He as Hide,
150
+ bo as Image,
151
+ ho as Indicator,
152
+ vo as Input,
153
+ Ao as InputNumber,
154
+ Lo as Join,
155
+ Ho as Kbd,
156
+ Eo as Label,
157
+ No as Layout,
158
+ zo as List,
159
+ Qo as Loading,
160
+ jo as Mask,
161
+ Vo as Masonry,
162
+ Yo as Mention,
163
+ _o as Menu,
164
+ ar as Modal,
165
+ sr as Navbar,
166
+ dr as OTPInput,
167
+ gr as PageLayout,
168
+ Cr as Pagination,
169
+ pr as Phone,
170
+ Sr as Popconfirm,
171
+ kr as Popover,
172
+ Dr as Progress,
173
+ yr as QRCode,
174
+ Ir as RadialProgress,
175
+ Rr as Radio,
176
+ Br as Range,
177
+ Mr as Rating,
178
+ Kr as Result,
179
+ To as Row,
180
+ Or as Segmented,
181
+ Gr as Select,
182
+ Ke as Show,
183
+ zr as Skeleton,
184
+ Qr as Space,
185
+ jr as Splitter,
186
+ Vr as Stack,
187
+ Yr as Stats,
188
+ _r as Status,
189
+ oe as Steps,
190
+ ee as Table,
191
+ pe as Tabs,
192
+ ie as Tag,
193
+ ae as TextRotate,
194
+ fe as Textarea,
195
+ ue as ThemeController,
196
+ ce as TimePicker,
197
+ Te as Timeline,
198
+ Pe as Toggle,
199
+ he as Tooltip,
200
+ be as Tour,
201
+ we as Transfer,
202
+ Fe as Tree,
203
+ ve as TreeSelect,
204
+ Ae as Typography,
205
+ Le as Upload,
206
+ fr as Window,
207
+ mt as calendarEn,
208
+ ft as calendarFr,
209
+ lr as notification,
210
+ Ge as useBreakpoint,
211
+ Ve as useClickOutside,
212
+ ze as useClipboard,
213
+ je as useDebounce,
214
+ Oe as useDisclosure,
215
+ lo as useFormInstance,
216
+ _e as useHover,
217
+ ot as useKeyPress,
218
+ rt as useKeyPressCallback,
219
+ Qe as useLocalStorage,
220
+ Ye as usePrevious,
221
+ Oo as useSiderContext,
222
+ tt as useWindowSize
212
223
  };
213
224
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index10.js CHANGED
@@ -1,51 +1,52 @@
1
- import { jsx as s, jsxs as C } from "react/jsx-runtime";
2
- import j, { forwardRef as R, useContext as V, createContext as G } from "react";
3
- const g = G(null);
4
- function S({
5
- children: i,
6
- value: n,
7
- defaultValue: b,
1
+ import { jsxs as f, jsx as c } from "react/jsx-runtime";
2
+ import R, { forwardRef as G, useContext as B, createContext as I } from "react";
3
+ const y = I(null);
4
+ function P({
5
+ children: h,
6
+ value: l,
7
+ defaultValue: d,
8
8
  onChange: o,
9
- disabled: f = !1,
10
- options: c,
11
- className: h = ""
9
+ disabled: n = !1,
10
+ options: r,
11
+ className: s = ""
12
12
  }) {
13
- const [k, m] = j.useState(b || []), l = n !== void 0 ? n : k, t = {
14
- value: l,
15
- onChange: (e, p) => {
16
- const d = p ? [...l, e] : l.filter((x) => x !== e);
17
- n === void 0 && m(d), o?.(d);
13
+ const [x, k] = R.useState(d || []), i = l !== void 0 ? l : x, a = {
14
+ value: i,
15
+ onChange: (e, m) => {
16
+ const b = m ? [...i, e] : i.filter((C) => C !== e);
17
+ l === void 0 && k(b), o?.(b);
18
18
  },
19
- disabled: f
19
+ disabled: n
20
20
  };
21
- return c ? /* @__PURE__ */ s(g.Provider, { value: t, children: /* @__PURE__ */ s("div", { className: h, children: c.map((e) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ C("label", { className: "label cursor-pointer justify-start gap-2", children: [
22
- /* @__PURE__ */ s(u, { value: e }),
23
- /* @__PURE__ */ s("span", { className: "label-text", children: e })
24
- ] }, e) : /* @__PURE__ */ C("label", { className: "label cursor-pointer justify-start gap-2", children: [
25
- /* @__PURE__ */ s(u, { value: e.value, disabled: e.disabled }),
26
- /* @__PURE__ */ s("span", { className: "label-text", children: e.label })
27
- ] }, e.value)) }) }) : /* @__PURE__ */ s(g.Provider, { value: t, children: /* @__PURE__ */ s("div", { className: h, children: i }) });
21
+ return r ? /* @__PURE__ */ c(y.Provider, { value: a, children: /* @__PURE__ */ c("div", { className: s, children: r.map((e) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ f("label", { className: "label cursor-pointer justify-start gap-2", children: [
22
+ /* @__PURE__ */ c(u, { value: e }),
23
+ /* @__PURE__ */ c("span", { className: "label-text", children: e })
24
+ ] }, e) : /* @__PURE__ */ f("label", { className: "label cursor-pointer justify-start gap-2", children: [
25
+ /* @__PURE__ */ c(u, { value: e.value, disabled: e.disabled }),
26
+ /* @__PURE__ */ c("span", { className: "label-text", children: e.label })
27
+ ] }, e.value)) }) }) : /* @__PURE__ */ c(y.Provider, { value: a, children: /* @__PURE__ */ c("div", { className: s, children: h }) });
28
28
  }
29
- const u = R(
29
+ const u = G(
30
30
  ({
31
- children: i,
32
- size: n,
33
- color: b,
31
+ children: h,
32
+ size: l,
33
+ color: d,
34
34
  indeterminate: o = !1,
35
- className: f = "",
36
- value: c,
37
- checked: h,
35
+ swap: n,
36
+ className: r = "",
37
+ value: s,
38
+ checked: x,
38
39
  onChange: k,
39
- disabled: m,
40
- ...l
41
- }, r) => {
42
- const t = V(g), e = {
40
+ disabled: i,
41
+ ...p
42
+ }, a) => {
43
+ const e = B(y), m = {
43
44
  xs: "checkbox-xs",
44
45
  sm: "checkbox-sm",
45
46
  md: "checkbox-md",
46
47
  lg: "checkbox-lg",
47
48
  xl: "checkbox-xl"
48
- }, p = {
49
+ }, b = {
49
50
  primary: "checkbox-primary",
50
51
  secondary: "checkbox-secondary",
51
52
  accent: "checkbox-accent",
@@ -54,42 +55,67 @@ const u = R(
54
55
  warning: "checkbox-warning",
55
56
  info: "checkbox-info",
56
57
  error: "checkbox-error"
57
- }, d = [
58
+ }, C = [
58
59
  "checkbox",
59
- n && e[n],
60
- b && p[b]
61
- ].filter(Boolean).join(" "), x = t && c !== void 0 && (typeof c == "string" || typeof c == "number") ? t.value?.includes(c) ?? !1 : h, N = t?.disabled || m, v = (a) => {
62
- t && c !== void 0 && (typeof c == "string" || typeof c == "number") && t.onChange?.(c, a.target.checked), k?.(a);
63
- }, w = j.useCallback(
64
- (a) => {
65
- a && (a.indeterminate = o), typeof r == "function" ? r(a) : r && (r.current = a);
60
+ l && m[l],
61
+ d && b[d]
62
+ ].filter(Boolean).join(" "), g = e && s !== void 0 && (typeof s == "string" || typeof s == "number") ? e.value?.includes(s) ?? !1 : x, N = e?.disabled || i, j = (t) => {
63
+ e && s !== void 0 && (typeof s == "string" || typeof s == "number") && e.onChange?.(s, t.target.checked), k?.(t);
64
+ }, V = R.useCallback(
65
+ (t) => {
66
+ t && (t.indeterminate = o), typeof a == "function" ? a(t) : a && (a.current = t);
66
67
  },
67
- [o, r]
68
- ), y = /* @__PURE__ */ s(
68
+ [o, a]
69
+ ), v = o ? "indeterminate" : g ? "checked" : "unchecked";
70
+ if (n) {
71
+ const t = [
72
+ "swap",
73
+ n.effect === "rotate" && "swap-rotate",
74
+ n.effect === "flip" && "swap-flip",
75
+ r
76
+ ].filter(Boolean).join(" ");
77
+ return /* @__PURE__ */ f("label", { className: t, children: [
78
+ /* @__PURE__ */ c(
79
+ "input",
80
+ {
81
+ ref: a,
82
+ type: "checkbox",
83
+ checked: g,
84
+ onChange: j,
85
+ disabled: N,
86
+ "data-state": v,
87
+ ...p
88
+ }
89
+ ),
90
+ /* @__PURE__ */ c("div", { className: "swap-on", children: n.on }),
91
+ /* @__PURE__ */ c("div", { className: "swap-off", children: n.off })
92
+ ] });
93
+ }
94
+ const w = /* @__PURE__ */ c(
69
95
  "input",
70
96
  {
71
- ref: w,
97
+ ref: V,
72
98
  type: "checkbox",
73
- className: d,
74
- value: c,
75
- checked: x,
76
- onChange: v,
99
+ className: C,
100
+ value: s,
101
+ checked: g,
102
+ onChange: j,
77
103
  disabled: N,
78
- "data-state": o ? "indeterminate" : x ? "checked" : "unchecked",
79
- ...l
104
+ "data-state": v,
105
+ ...p
80
106
  }
81
107
  );
82
- return i ? /* @__PURE__ */ C("label", { className: `label cursor-pointer justify-start gap-2 ${f}`, children: [
83
- y,
84
- /* @__PURE__ */ s("span", { className: "label-text", children: i })
85
- ] }) : y;
108
+ return h ? /* @__PURE__ */ f("label", { className: `label cursor-pointer justify-start gap-2 ${r}`, children: [
109
+ w,
110
+ /* @__PURE__ */ c("span", { className: "label-text", children: h })
111
+ ] }) : w;
86
112
  }
87
113
  );
88
114
  u.displayName = "Checkbox";
89
- const D = Object.assign(u, {
90
- Group: S
115
+ const O = Object.assign(u, {
116
+ Group: P
91
117
  });
92
118
  export {
93
- D as Checkbox
119
+ O as Checkbox
94
120
  };
95
121
  //# sourceMappingURL=index10.js.map