@well-insight/ui 0.1.7 → 0.1.8

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 (473) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +31 -23
  3. package/README.zh-CN.md +64 -42
  4. package/dist/Button-BZzV1X-d.js +156 -0
  5. package/dist/Checkbox-BtgWgkHI.js +107 -0
  6. package/dist/Icon-B6gOD07E.js +452 -0
  7. package/dist/Pagination-C-F_ZDXr.js +148 -0
  8. package/dist/ProgressSpinner-YThgaSzb.js +85 -0
  9. package/dist/Renderable-IhqISc5E.js +45 -0
  10. package/dist/Scrollbar-D-bR2noX.js +382 -0
  11. package/dist/accordion/index.js +66 -0
  12. package/dist/accordion/style.css +796 -0
  13. package/dist/accordion/style.js +3 -0
  14. package/dist/asyncGuard-CPGT_TKu.js +6 -0
  15. package/dist/auto-complete/index.js +206 -0
  16. package/dist/auto-complete/style.css +910 -0
  17. package/dist/auto-complete/style.js +4 -0
  18. package/dist/avatar/index.js +93 -0
  19. package/dist/avatar/style.css +851 -0
  20. package/dist/avatar/style.js +4 -0
  21. package/dist/badge/index.js +49 -0
  22. package/dist/badge/style.css +858 -0
  23. package/dist/badge/style.js +3 -0
  24. package/dist/block-ui/index.js +24 -0
  25. package/dist/block-ui/style.css +756 -0
  26. package/dist/block-ui/style.js +3 -0
  27. package/dist/breadcrumb/index.js +45 -0
  28. package/dist/breadcrumb/style.css +781 -0
  29. package/dist/breadcrumb/style.js +3 -0
  30. package/dist/button/index.js +24 -0
  31. package/dist/button/style.css +1267 -0
  32. package/dist/button/style.js +4 -0
  33. package/dist/card/index.js +56 -0
  34. package/dist/card/style.css +804 -0
  35. package/dist/card/style.js +3 -0
  36. package/dist/carousel/index.js +111 -0
  37. package/dist/carousel/style.css +784 -0
  38. package/dist/carousel/style.js +3 -0
  39. package/dist/cascade-select/index.js +129 -0
  40. package/dist/cascade-select/style.css +844 -0
  41. package/dist/cascade-select/style.js +3 -0
  42. package/dist/checkStrategy-CZzuUKDI.js +63 -0
  43. package/dist/checkbox/index.js +51 -0
  44. package/dist/checkbox/style.css +754 -0
  45. package/dist/checkbox/style.js +3 -0
  46. package/dist/chip/index.js +67 -0
  47. package/dist/chip/style.css +878 -0
  48. package/dist/chip/style.js +4 -0
  49. package/dist/command-menu/index.js +118 -0
  50. package/dist/command-menu/style.css +810 -0
  51. package/dist/command-menu/style.js +3 -0
  52. package/dist/components/Accordion/index.d.ts.map +1 -1
  53. package/dist/components/Accordion/styles.css +60 -0
  54. package/dist/components/AutoComplete/index.d.ts.map +1 -1
  55. package/dist/components/AutoComplete/styles.css +135 -0
  56. package/dist/components/Avatar/index.d.ts.map +1 -1
  57. package/dist/components/Avatar/styles.css +76 -0
  58. package/dist/components/Badge/index.d.ts.map +1 -1
  59. package/dist/components/Badge/styles.css +122 -0
  60. package/dist/components/BlockUI/index.d.ts.map +1 -1
  61. package/dist/components/BlockUI/styles.css +20 -0
  62. package/dist/components/Breadcrumb/index.d.ts.map +1 -1
  63. package/dist/components/Breadcrumb/styles.css +45 -0
  64. package/dist/components/Button/index.d.ts.map +1 -1
  65. package/dist/components/Button/styles.css +492 -0
  66. package/dist/components/Card/index.d.ts.map +1 -1
  67. package/dist/components/Card/styles.css +68 -0
  68. package/dist/components/Carousel/index.d.ts.map +1 -1
  69. package/dist/components/Carousel/styles.css +48 -0
  70. package/dist/components/CascadeSelect/index.d.ts.map +1 -1
  71. package/dist/components/CascadeSelect/styles.css +108 -0
  72. package/dist/components/Checkbox/index.d.ts.map +1 -1
  73. package/dist/components/Checkbox/styles.css +18 -0
  74. package/dist/components/Chip/index.d.ts.map +1 -1
  75. package/dist/components/Chip/styles.css +103 -0
  76. package/dist/components/CommandMenu/index.d.ts.map +1 -1
  77. package/dist/components/CommandMenu/styles.css +74 -0
  78. package/dist/components/ConfigProvider/index.d.ts.map +1 -1
  79. package/dist/components/ConfigProvider/styles.css +1 -0
  80. package/dist/components/ConfirmDialog/index.d.ts.map +1 -1
  81. package/dist/components/ConfirmDialog/styles.css +23 -0
  82. package/dist/components/ConfirmPopup/index.d.ts.map +1 -1
  83. package/dist/components/ConfirmPopup/styles.css +37 -0
  84. package/dist/components/ContextMenu/index.d.ts.map +1 -1
  85. package/dist/components/ContextMenu/styles.css +50 -0
  86. package/dist/components/DataView/index.d.ts.map +1 -1
  87. package/dist/components/DataView/styles.css +33 -0
  88. package/dist/components/DatePicker/index.d.ts.map +1 -1
  89. package/dist/components/DatePicker/styles.css +197 -0
  90. package/dist/components/Dialog/index.d.ts.map +1 -1
  91. package/dist/components/Dialog/styles.css +225 -0
  92. package/dist/components/Divider/index.d.ts.map +1 -1
  93. package/dist/components/Divider/styles.css +79 -0
  94. package/dist/components/Dock/index.d.ts.map +1 -1
  95. package/dist/components/Dock/styles.css +41 -0
  96. package/dist/components/Drawer/index.d.ts.map +1 -1
  97. package/dist/components/Drawer/styles.css +121 -0
  98. package/dist/components/Dropdown/index.d.ts.map +1 -1
  99. package/dist/components/Dropdown/styles.css +78 -0
  100. package/dist/components/Fieldset/index.d.ts.map +1 -1
  101. package/dist/components/Fieldset/styles.css +37 -0
  102. package/dist/components/FileUpload/index.d.ts.map +1 -1
  103. package/dist/components/FileUpload/styles.css +300 -0
  104. package/dist/components/Flex/index.d.ts.map +1 -1
  105. package/dist/components/Flex/styles.css +5 -0
  106. package/dist/components/FloatLabel/index.d.ts.map +1 -1
  107. package/dist/components/FloatLabel/styles.css +32 -0
  108. package/dist/components/Fluid/index.d.ts.map +1 -1
  109. package/dist/components/Fluid/styles.css +7 -0
  110. package/dist/components/Form/index.d.ts.map +1 -1
  111. package/dist/components/Form/styles.css +69 -0
  112. package/dist/components/Gallery/index.d.ts.map +1 -1
  113. package/dist/components/Gallery/styles.css +52 -0
  114. package/dist/components/Grid/index.d.ts.map +1 -1
  115. package/dist/components/Grid/styles.css +9 -0
  116. package/dist/components/Icon/index.d.ts.map +1 -1
  117. package/dist/components/Icon/styles.css +38 -0
  118. package/dist/components/IconField/index.d.ts.map +1 -1
  119. package/dist/components/IconField/styles.css +27 -0
  120. package/dist/components/Inplace/index.d.ts.map +1 -1
  121. package/dist/components/Inplace/styles.css +26 -0
  122. package/dist/components/Input/index.d.ts.map +1 -1
  123. package/dist/components/Input/styles.css +191 -0
  124. package/dist/components/InputColor/index.d.ts.map +1 -1
  125. package/dist/components/InputColor/styles.css +65 -0
  126. package/dist/components/InputGroup/index.d.ts.map +1 -1
  127. package/dist/components/InputGroup/styles.css +20 -0
  128. package/dist/components/InputNumber/index.d.ts.map +1 -1
  129. package/dist/components/InputNumber/styles.css +117 -0
  130. package/dist/components/InputOtp/index.d.ts.map +1 -1
  131. package/dist/components/InputOtp/styles.css +43 -0
  132. package/dist/components/InputPassword/index.d.ts.map +1 -1
  133. package/dist/components/InputPassword/styles.css +178 -0
  134. package/dist/components/InputTags/index.d.ts.map +1 -1
  135. package/dist/components/InputTags/styles.css +54 -0
  136. package/dist/components/Knob/index.d.ts.map +1 -1
  137. package/dist/components/Knob/styles.css +45 -0
  138. package/dist/components/Label/index.d.ts.map +1 -1
  139. package/dist/components/Label/styles.css +8 -0
  140. package/dist/components/Layout/index.d.ts.map +1 -1
  141. package/dist/components/Layout/styles.css +349 -0
  142. package/dist/components/Listbox/index.d.ts.map +1 -1
  143. package/dist/components/Listbox/styles.css +68 -0
  144. package/dist/components/MegaMenu/index.d.ts.map +1 -1
  145. package/dist/components/MegaMenu/styles.css +75 -0
  146. package/dist/components/Menu/index.d.ts.map +1 -1
  147. package/dist/components/Menu/styles.css +68 -0
  148. package/dist/components/Menubar/index.d.ts.map +1 -1
  149. package/dist/components/Menubar/styles.css +93 -0
  150. package/dist/components/Message/index.d.ts.map +1 -1
  151. package/dist/components/Message/styles.css +169 -0
  152. package/dist/components/MeterGroup/index.d.ts.map +1 -1
  153. package/dist/components/MeterGroup/styles.css +47 -0
  154. package/dist/components/OrderList/index.d.ts.map +1 -1
  155. package/dist/components/OrderList/styles.css +41 -0
  156. package/dist/components/Pagination/index.d.ts.map +1 -1
  157. package/dist/components/Pagination/styles.css +76 -0
  158. package/dist/components/Panel/index.d.ts.map +1 -1
  159. package/dist/components/Panel/styles.css +59 -0
  160. package/dist/components/PickList/index.d.ts.map +1 -1
  161. package/dist/components/PickList/styles.css +38 -0
  162. package/dist/components/Popover/index.d.ts.map +1 -1
  163. package/dist/components/Popover/styles.css +64 -0
  164. package/dist/components/ProgressBar/index.d.ts.map +1 -1
  165. package/dist/components/ProgressBar/styles.css +105 -0
  166. package/dist/components/ProgressSpinner/index.d.ts.map +1 -1
  167. package/dist/components/ProgressSpinner/styles.css +72 -0
  168. package/dist/components/Radio/index.d.ts.map +1 -1
  169. package/dist/components/Radio/styles.css +11 -0
  170. package/dist/components/Rating/index.d.ts.map +1 -1
  171. package/dist/components/Rating/styles.css +70 -0
  172. package/dist/components/ScrollTop/index.d.ts.map +1 -1
  173. package/dist/components/ScrollTop/styles.css +42 -0
  174. package/dist/components/Scrollbar/index.d.ts.map +1 -1
  175. package/dist/components/Scrollbar/styles.css +90 -0
  176. package/dist/components/Select/index.d.ts.map +1 -1
  177. package/dist/components/Select/styles.css +315 -0
  178. package/dist/components/SelectButton/index.d.ts.map +1 -1
  179. package/dist/components/SelectButton/styles.css +76 -0
  180. package/dist/components/Sidebar/index.d.ts.map +1 -1
  181. package/dist/components/Sidebar/styles.css +53 -0
  182. package/dist/components/Skeleton/index.d.ts.map +1 -1
  183. package/dist/components/Skeleton/styles.css +42 -0
  184. package/dist/components/Slider/index.d.ts.map +1 -1
  185. package/dist/components/Slider/styles.css +136 -0
  186. package/dist/components/Space/index.d.ts.map +1 -1
  187. package/dist/components/Space/styles.css +10 -0
  188. package/dist/components/SpeedDial/index.d.ts.map +1 -1
  189. package/dist/components/SpeedDial/styles.css +109 -0
  190. package/dist/components/SplitButton/index.d.ts.map +1 -1
  191. package/dist/components/SplitButton/styles.css +120 -0
  192. package/dist/components/Splitter/index.d.ts.map +1 -1
  193. package/dist/components/Splitter/styles.css +69 -0
  194. package/dist/components/Stepper/index.d.ts.map +1 -1
  195. package/dist/components/Stepper/styles.css +83 -0
  196. package/dist/components/Switch/index.d.ts.map +1 -1
  197. package/dist/components/Switch/styles.css +78 -0
  198. package/dist/components/Table/index.d.ts.map +1 -1
  199. package/dist/components/Table/styles.css +296 -0
  200. package/dist/components/Tabs/index.d.ts.map +1 -1
  201. package/dist/components/Tabs/styles.css +108 -0
  202. package/dist/components/Tag/index.d.ts.map +1 -1
  203. package/dist/components/Tag/styles.css +103 -0
  204. package/dist/components/Terminal/index.d.ts.map +1 -1
  205. package/dist/components/Terminal/styles.css +45 -0
  206. package/dist/components/Textarea/index.d.ts.map +1 -1
  207. package/dist/components/Textarea/styles.css +93 -0
  208. package/dist/components/TieredMenu/index.d.ts.map +1 -1
  209. package/dist/components/TieredMenu/styles.css +83 -0
  210. package/dist/components/Timeline/index.d.ts.map +1 -1
  211. package/dist/components/Timeline/styles.css +155 -0
  212. package/dist/components/Toast/index.d.ts.map +1 -1
  213. package/dist/components/Toast/styles.css +97 -0
  214. package/dist/components/ToggleButton/index.d.ts.map +1 -1
  215. package/dist/components/ToggleButton/styles.css +45 -0
  216. package/dist/components/Toolbar/index.d.ts.map +1 -1
  217. package/dist/components/Toolbar/styles.css +30 -0
  218. package/dist/components/Tooltip/index.d.ts.map +1 -1
  219. package/dist/components/Tooltip/styles.css +50 -0
  220. package/dist/components/Tree/index.d.ts.map +1 -1
  221. package/dist/components/Tree/styles.css +98 -0
  222. package/dist/components/TreeSelect/index.d.ts.map +1 -1
  223. package/dist/components/TreeSelect/styles.css +145 -0
  224. package/dist/components/TreeTable/index.d.ts.map +1 -1
  225. package/dist/components/TreeTable/styles.css +41 -0
  226. package/dist/components/VirtualScroller/index.d.ts.map +1 -1
  227. package/dist/components/VirtualScroller/styles.css +24 -0
  228. package/dist/config-DWwce9jA.js +224 -0
  229. package/dist/config-provider/index.js +52 -0
  230. package/dist/config-provider/style.css +1433 -0
  231. package/dist/config-provider/style.js +6 -0
  232. package/dist/confirm-dialog/index.js +149 -0
  233. package/dist/confirm-dialog/style.css +1517 -0
  234. package/dist/confirm-dialog/style.js +6 -0
  235. package/dist/confirm-popup/index.js +142 -0
  236. package/dist/confirm-popup/style.css +1305 -0
  237. package/dist/confirm-popup/style.js +5 -0
  238. package/dist/context-menu/index.js +174 -0
  239. package/dist/context-menu/style.css +825 -0
  240. package/dist/context-menu/style.js +4 -0
  241. package/dist/data-view/index.js +49 -0
  242. package/dist/data-view/style.css +846 -0
  243. package/dist/data-view/style.js +4 -0
  244. package/dist/date-picker/index.js +316 -0
  245. package/dist/date-picker/style.css +933 -0
  246. package/dist/date-picker/style.js +3 -0
  247. package/dist/dialog/index.js +232 -0
  248. package/dist/dialog/style.css +1493 -0
  249. package/dist/dialog/style.js +5 -0
  250. package/dist/divider/index.js +39 -0
  251. package/dist/divider/style.css +815 -0
  252. package/dist/divider/style.js +3 -0
  253. package/dist/dock/index.js +40 -0
  254. package/dist/dock/style.css +777 -0
  255. package/dist/dock/style.js +3 -0
  256. package/dist/drawer/index.js +112 -0
  257. package/dist/drawer/style.css +857 -0
  258. package/dist/drawer/style.js +3 -0
  259. package/dist/dropdown/index.js +245 -0
  260. package/dist/dropdown/style.css +853 -0
  261. package/dist/dropdown/style.js +4 -0
  262. package/dist/fieldset/index.js +36 -0
  263. package/dist/fieldset/style.css +773 -0
  264. package/dist/fieldset/style.js +3 -0
  265. package/dist/file-upload/index.js +492 -0
  266. package/dist/file-upload/style.css +1075 -0
  267. package/dist/file-upload/style.js +4 -0
  268. package/dist/flex/index.js +53 -0
  269. package/dist/flex/style.css +741 -0
  270. package/dist/flex/style.js +3 -0
  271. package/dist/float-label/index.js +12 -0
  272. package/dist/float-label/style.css +768 -0
  273. package/dist/float-label/style.js +3 -0
  274. package/dist/fluid/index.js +16 -0
  275. package/dist/fluid/style.css +743 -0
  276. package/dist/fluid/style.js +3 -0
  277. package/dist/form/index.js +270 -0
  278. package/dist/form/style.css +805 -0
  279. package/dist/form/style.js +3 -0
  280. package/dist/gallery/index.js +61 -0
  281. package/dist/gallery/style.css +788 -0
  282. package/dist/gallery/style.js +3 -0
  283. package/dist/gap-rHurpwNv.js +41 -0
  284. package/dist/grid/index.js +178 -0
  285. package/dist/grid/style.css +745 -0
  286. package/dist/grid/style.js +3 -0
  287. package/dist/icon/index.js +3 -0
  288. package/dist/icon/style.css +774 -0
  289. package/dist/icon/style.js +3 -0
  290. package/dist/icon-field/index.js +17 -0
  291. package/dist/icon-field/style.css +763 -0
  292. package/dist/icon-field/style.js +3 -0
  293. package/dist/index.d.ts.map +1 -1
  294. package/dist/inplace/index.js +45 -0
  295. package/dist/inplace/style.css +762 -0
  296. package/dist/inplace/style.js +3 -0
  297. package/dist/input/index.js +145 -0
  298. package/dist/input/style.css +927 -0
  299. package/dist/input/style.js +3 -0
  300. package/dist/input-color/index.js +73 -0
  301. package/dist/input-color/style.css +801 -0
  302. package/dist/input-color/style.js +3 -0
  303. package/dist/input-group/index.js +16 -0
  304. package/dist/input-group/style.css +756 -0
  305. package/dist/input-group/style.js +3 -0
  306. package/dist/input-number/index.js +146 -0
  307. package/dist/input-number/style.css +853 -0
  308. package/dist/input-number/style.js +3 -0
  309. package/dist/input-otp/index.js +110 -0
  310. package/dist/input-otp/style.css +779 -0
  311. package/dist/input-otp/style.js +3 -0
  312. package/dist/input-password/index.js +185 -0
  313. package/dist/input-password/style.css +953 -0
  314. package/dist/input-password/style.js +4 -0
  315. package/dist/input-tags/index.js +103 -0
  316. package/dist/input-tags/style.css +790 -0
  317. package/dist/input-tags/style.js +3 -0
  318. package/dist/knob/index.js +110 -0
  319. package/dist/knob/style.css +781 -0
  320. package/dist/knob/style.js +3 -0
  321. package/dist/label/index.js +20 -0
  322. package/dist/label/style.css +744 -0
  323. package/dist/label/style.js +3 -0
  324. package/dist/lastPointer-CRxcUqdd.js +20 -0
  325. package/dist/layout/index.js +398 -0
  326. package/dist/layout/style.css +1176 -0
  327. package/dist/layout/style.js +4 -0
  328. package/dist/listbox/index.js +84 -0
  329. package/dist/listbox/style.css +804 -0
  330. package/dist/listbox/style.js +3 -0
  331. package/dist/locale-CYkJyRd1.js +21 -0
  332. package/dist/mega-menu/index.js +104 -0
  333. package/dist/mega-menu/style.css +811 -0
  334. package/dist/mega-menu/style.js +3 -0
  335. package/dist/menu/index.js +210 -0
  336. package/dist/menu/style.css +843 -0
  337. package/dist/menu/style.js +4 -0
  338. package/dist/menubar/index.js +141 -0
  339. package/dist/menubar/style.css +868 -0
  340. package/dist/menubar/style.js +4 -0
  341. package/dist/message/index.js +181 -0
  342. package/dist/message/style.css +944 -0
  343. package/dist/message/style.js +4 -0
  344. package/dist/meter-group/index.js +47 -0
  345. package/dist/meter-group/style.css +783 -0
  346. package/dist/meter-group/style.js +3 -0
  347. package/dist/order-list/index.js +125 -0
  348. package/dist/order-list/style.css +816 -0
  349. package/dist/order-list/style.js +4 -0
  350. package/dist/overlay-oR-5MDuE.js +16 -0
  351. package/dist/overlayHost-Bdc0ZDhU.js +16 -0
  352. package/dist/pagination/index.js +3 -0
  353. package/dist/pagination/style.css +812 -0
  354. package/dist/pagination/style.js +3 -0
  355. package/dist/panel/index.js +51 -0
  356. package/dist/panel/style.css +795 -0
  357. package/dist/panel/style.js +3 -0
  358. package/dist/pick-list/index.js +132 -0
  359. package/dist/pick-list/style.css +813 -0
  360. package/dist/pick-list/style.js +4 -0
  361. package/dist/popover/index.js +165 -0
  362. package/dist/popover/style.css +800 -0
  363. package/dist/popover/style.js +3 -0
  364. package/dist/progress-bar/index.js +77 -0
  365. package/dist/progress-bar/style.css +841 -0
  366. package/dist/progress-bar/style.js +3 -0
  367. package/dist/progress-spinner/index.js +3 -0
  368. package/dist/progress-spinner/style.css +808 -0
  369. package/dist/progress-spinner/style.js +3 -0
  370. package/dist/radio/index.js +131 -0
  371. package/dist/radio/style.css +747 -0
  372. package/dist/radio/style.js +3 -0
  373. package/dist/rating/index.js +93 -0
  374. package/dist/rating/style.css +806 -0
  375. package/dist/rating/style.js +3 -0
  376. package/dist/resolver-map.d.ts +2 -0
  377. package/dist/resolver-map.d.ts.map +1 -0
  378. package/dist/resolver.d.ts +20 -0
  379. package/dist/resolver.d.ts.map +1 -0
  380. package/dist/resolver.js +121 -0
  381. package/dist/responsive-BLgfEhDG.js +43 -0
  382. package/dist/scroll-top/index.js +86 -0
  383. package/dist/scroll-top/style.css +778 -0
  384. package/dist/scroll-top/style.js +3 -0
  385. package/dist/scrollbar/index.js +3 -0
  386. package/dist/scrollbar/style.css +826 -0
  387. package/dist/scrollbar/style.js +3 -0
  388. package/dist/select/index.js +362 -0
  389. package/dist/select/style.css +1051 -0
  390. package/dist/select/style.js +3 -0
  391. package/dist/select-button/index.js +70 -0
  392. package/dist/select-button/style.css +812 -0
  393. package/dist/select-button/style.js +3 -0
  394. package/dist/sidebar/index.js +58 -0
  395. package/dist/sidebar/style.css +789 -0
  396. package/dist/sidebar/style.js +3 -0
  397. package/dist/skeleton/index.js +45 -0
  398. package/dist/skeleton/style.css +778 -0
  399. package/dist/skeleton/style.js +3 -0
  400. package/dist/slider/index.js +142 -0
  401. package/dist/slider/style.css +872 -0
  402. package/dist/slider/style.js +3 -0
  403. package/dist/space/index.js +60 -0
  404. package/dist/space/style.css +746 -0
  405. package/dist/space/style.js +3 -0
  406. package/dist/speed-dial/index.js +124 -0
  407. package/dist/speed-dial/style.css +845 -0
  408. package/dist/speed-dial/style.js +3 -0
  409. package/dist/split-button/index.js +126 -0
  410. package/dist/split-button/style.css +1349 -0
  411. package/dist/split-button/style.js +4 -0
  412. package/dist/splitter/index.js +185 -0
  413. package/dist/splitter/style.css +805 -0
  414. package/dist/splitter/style.js +3 -0
  415. package/dist/stepper/index.js +65 -0
  416. package/dist/stepper/style.css +819 -0
  417. package/dist/stepper/style.js +3 -0
  418. package/dist/styles/base.css +547 -0
  419. package/dist/styles.css +1 -1
  420. package/dist/styles.d.ts +1 -0
  421. package/dist/switch/index.js +99 -0
  422. package/dist/switch/style.css +814 -0
  423. package/dist/switch/style.js +3 -0
  424. package/dist/table/index.js +508 -0
  425. package/dist/table/style.css +1240 -0
  426. package/dist/table/style.js +7 -0
  427. package/dist/tabs/index.js +136 -0
  428. package/dist/tabs/style.css +844 -0
  429. package/dist/tabs/style.js +3 -0
  430. package/dist/tag/index.js +73 -0
  431. package/dist/tag/style.css +878 -0
  432. package/dist/tag/style.js +4 -0
  433. package/dist/terminal/index.js +52 -0
  434. package/dist/terminal/style.css +781 -0
  435. package/dist/terminal/style.js +3 -0
  436. package/dist/textarea/index.js +163 -0
  437. package/dist/textarea/style.css +829 -0
  438. package/dist/textarea/style.js +3 -0
  439. package/dist/theme/styles.css +187 -0
  440. package/dist/tiered-menu/index.js +150 -0
  441. package/dist/tiered-menu/style.css +819 -0
  442. package/dist/tiered-menu/style.js +3 -0
  443. package/dist/timeline/index.js +86 -0
  444. package/dist/timeline/style.css +930 -0
  445. package/dist/timeline/style.js +4 -0
  446. package/dist/toast/index.js +165 -0
  447. package/dist/toast/style.css +833 -0
  448. package/dist/toast/style.js +3 -0
  449. package/dist/toggle-button/index.js +49 -0
  450. package/dist/toggle-button/style.css +781 -0
  451. package/dist/toggle-button/style.js +3 -0
  452. package/dist/toolbar/index.js +30 -0
  453. package/dist/toolbar/style.css +766 -0
  454. package/dist/toolbar/style.js +3 -0
  455. package/dist/tooltip/index.js +116 -0
  456. package/dist/tooltip/style.css +786 -0
  457. package/dist/tooltip/style.js +3 -0
  458. package/dist/tree/index.js +296 -0
  459. package/dist/tree/style.css +892 -0
  460. package/dist/tree/style.js +5 -0
  461. package/dist/tree-select/index.js +317 -0
  462. package/dist/tree-select/style.css +999 -0
  463. package/dist/tree-select/style.js +5 -0
  464. package/dist/tree-table/index.js +79 -0
  465. package/dist/tree-table/style.css +777 -0
  466. package/dist/tree-table/style.js +3 -0
  467. package/dist/types-tV3SEv3Q.js +9 -0
  468. package/dist/useModalOverlay-Beo3CEAt.js +50 -0
  469. package/dist/virtual-scroller/index.js +50 -0
  470. package/dist/virtual-scroller/style.css +760 -0
  471. package/dist/virtual-scroller/style.js +3 -0
  472. package/dist/vnode-PJWBO7_h.js +16 -0
  473. package/package.json +624 -3
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @well-insight/ui
2
2
 
3
+ ## 0.1.8
4
+
5
+ ### 新功能
6
+
7
+ - enhance package exports and sideEffects for improved component management
8
+
3
9
  ## 0.1.7
4
10
 
5
11
  ### 新功能
package/README.md CHANGED
@@ -26,7 +26,12 @@ pnpm add @well-insight/ui
26
26
 
27
27
  ## Quick start
28
28
 
29
- Import styles once at your app entry. Two ways to use components:
29
+ Both **full** and **on-demand** imports are supported pick one per app.
30
+
31
+ | | Full | On-demand |
32
+ | --- | --- | --- |
33
+ | Styles | `@well-insight/ui/styles.css` | Bundled with subpath imports |
34
+ | Components | Plugin or named imports from `@well-insight/ui` | `@well-insight/ui/button` etc. |
30
35
 
31
36
  ### Full registration
32
37
 
@@ -37,39 +42,39 @@ import App from './App.vue'
37
42
  import '@well-insight/ui/styles.css'
38
43
 
39
44
  createApp(App).use(WellInsight).mount('#app')
40
- // or with defaults:
41
- // createApp(App).use(WellInsight, { size: 'small', density: 'compact' }).mount('#app')
42
45
  ```
43
46
 
44
- Templates can then use `<WiButton>` / `<WiInput>` without importing.
47
+ Templates can use `<WiButton>` / `<WiInput>` without importing.
45
48
 
46
- ### On-demand import
49
+ ### Named imports + full CSS
47
50
 
48
- ```ts
49
- import { createApp } from 'vue'
50
- import App from './App.vue'
51
- import '@well-insight/ui/styles.css'
52
-
53
- createApp(App).mount('#app')
54
- ```
51
+ Tree-shakeable JS; still import full CSS at entry:
55
52
 
56
53
  ```vue
57
54
  <script setup lang="ts">
58
- import { ref } from 'vue'
59
55
  import { WiButton, WiInput } from '@well-insight/ui'
60
-
61
- const name = ref('')
62
56
  </script>
57
+ ```
63
58
 
64
- <template>
65
- <div style="display: grid; gap: 1rem; max-width: 20rem">
66
- <WiInput v-model="name" label="Name" placeholder="Enter a name" />
67
- <WiButton label="Submit" />
68
- </div>
69
- </template>
59
+ Entry: `import '@well-insight/ui/styles.css'`
60
+
61
+ ### On-demand subpaths
62
+
63
+ Kebab-case subpaths bundle JS, dependencies, and styles — no full CSS import:
64
+
65
+ ```ts
66
+ import { WiButton } from '@well-insight/ui/button'
67
+ import { WiInput } from '@well-insight/ui/input'
70
68
  ```
71
69
 
72
- Tree-shaking friendly: import only what you use from `@well-insight/ui`. Styles are separate — always import `@well-insight/ui/styles.css`.
70
+ ### Auto on-demand (Vite)
71
+
72
+ ```ts
73
+ import Components from 'unplugin-vue-components/vite'
74
+ import { WellInsightResolver } from '@well-insight/ui/resolver'
75
+
76
+ Components({ resolvers: [WellInsightResolver()] })
77
+ ```
73
78
 
74
79
  For a fuller walkthrough, see the docs site [Quick start](./playground/src/docs/guide/quick-start.en.md).
75
80
 
@@ -164,7 +169,10 @@ You can still render `<WiMessage />` / `<WiToast />` when you need a controlled
164
169
  | Import | Purpose |
165
170
  | --- | --- |
166
171
  | `@well-insight/ui` | Components, `createWellInsight`, `WiConfigProvider`, theme & locale helpers, `message` / `toast` |
167
- | `@well-insight/ui/styles.css` | Required stylesheet (tokens + component styles) |
172
+ | `@well-insight/ui/styles.css` | Full stylesheet (tokens + all components) |
173
+ | `@well-insight/ui/button` etc. | On-demand subpath (JS + deps + styles; 88 kebab-case entries) |
174
+ | `@well-insight/ui/button/style` | Styles only (side-effect) for that component |
175
+ | `@well-insight/ui/resolver` | `unplugin-vue-components` resolver |
168
176
 
169
177
  TypeScript types are included via the package `exports`.
170
178
 
package/README.zh-CN.md CHANGED
@@ -4,12 +4,14 @@
4
4
 
5
5
  面向 Well Insight 的开源 Vue 3 组件库:带主题的表单、浮层、数据展示与反馈等基础控件。
6
6
 
7
- | | |
8
- | --- | --- |
9
- | **npm** | [`@well-insight/ui`](https://www.npmjs.com/package/@well-insight/ui) |
10
- | **文档** | 本地 `pnpm dev` → http://localhost:5182 |
11
- | **源码** | [GitHub](https://github.com/well-insight/well-insight-ui) |
12
- | **更新日志** | [CHANGELOG.md](./CHANGELOG.md) · [English](./CHANGELOG.en.md) |
7
+
8
+ | | |
9
+ | -------- | -------------------------------------------------------------------- |
10
+ | **npm** | `[@well-insight/ui](https://www.npmjs.com/package/@well-insight/ui)` |
11
+ | **文档** | 本地 `pnpm dev` → [http://localhost:5182](http://localhost:5182) |
12
+ | **源码** | [GitHub](https://github.com/well-insight/well-insight-ui) |
13
+ | **更新日志** | [CHANGELOG.md](./CHANGELOG.md) · [English](./CHANGELOG.en.md) |
14
+
13
15
 
14
16
  ## 要求
15
17
 
@@ -26,7 +28,16 @@ pnpm add @well-insight/ui
26
28
 
27
29
  ## 快速开始
28
30
 
29
- 在应用入口引入样式。两种用法:
31
+ 本库**同时支持全量与按需**,按项目选用(同一应用建议保持一致)。
32
+
33
+
34
+ | | 全量 | 按需 |
35
+ | --- | ----------------------------- | ------------------------------ |
36
+ | 样式 | `@well-insight/ui/styles.css` | 子路径自动带入 |
37
+ | 组件 | 插件注册或桶入口按名 import | `@well-insight/ui/button` 等子路径 |
38
+
39
+
40
+
30
41
 
31
42
  ### 全量注册
32
43
 
@@ -37,39 +48,41 @@ import App from './App.vue'
37
48
  import '@well-insight/ui/styles.css'
38
49
 
39
50
  createApp(App).use(WellInsight).mount('#app')
40
- // 或带全局默认:
41
- // createApp(App).use(WellInsight, { size: 'small', density: 'compact' }).mount('#app')
42
51
  ```
43
52
 
44
53
  之后模板里可直接写 `<WiButton>` / `<WiInput>`,无需再 import。
45
54
 
46
- ### 按需引入
47
-
48
- ```ts
49
- import { createApp } from 'vue'
50
- import App from './App.vue'
51
- import '@well-insight/ui/styles.css'
55
+ ### 全量样式 + 按名导入
52
56
 
53
- createApp(App).mount('#app')
54
- ```
57
+ JS 可 tree-shake,样式仍需全量 CSS:
55
58
 
56
59
  ```vue
57
60
  <script setup lang="ts">
58
- import { ref } from 'vue'
59
61
  import { WiButton, WiInput } from '@well-insight/ui'
60
-
61
- const name = ref('')
62
62
  </script>
63
+ ```
64
+
65
+ 入口:`import '@well-insight/ui/styles.css'`
63
66
 
64
- <template>
65
- <div style="display: grid; gap: 1rem; max-width: 20rem">
66
- <WiInput v-model="name" label="姓名" placeholder="请输入姓名" />
67
- <WiButton label="提交" />
68
- </div>
69
- </template>
67
+ ### 按需子路径
68
+
69
+ 每个组件有 kebab-case 子路径,自动带上 JS、依赖与样式,无需全量 CSS:
70
+
71
+ ```ts
72
+ import { WiButton } from '@well-insight/ui/button'
73
+ import { WiInput } from '@well-insight/ui/input'
70
74
  ```
71
75
 
72
- 按需导入支持 Tree-shaking。样式需单独引入 `@well-insight/ui/styles.css`。
76
+
77
+
78
+ ### 自动按需(Vite)
79
+
80
+ ```ts
81
+ import Components from 'unplugin-vue-components/vite'
82
+ import { WellInsightResolver } from '@well-insight/ui/resolver'
83
+
84
+ Components({ resolvers: [WellInsightResolver()] })
85
+ ```
73
86
 
74
87
  更完整的上手说明见文档站 [快速上手](./playground/src/docs/guide/quick-start.md)。
75
88
 
@@ -98,18 +111,20 @@ createApp(App)
98
111
 
99
112
  只要配置、不注册组件时传 `components: false`。
100
113
 
101
- | 选项 | 作用 |
102
- | --- | --- |
103
- | `appendTo` | 浮层默认 Teleport 目标(默认 `'body'`) |
104
- | `size` | 控件默认尺寸 |
105
- | `density` | `compact` / `comfortable` / `spacious` |
106
- | `inputVariant` | `outlined` / `filled` |
107
- | `zIndex` | 浮层 z-index 基准 |
108
- | `locale` | 内置文案(默认 `zhCN`,或 `enUS` / 局部覆盖) |
114
+
115
+ | 选项 | 作用 |
116
+ | -------------- | -------------------------------------- |
117
+ | `appendTo` | 浮层默认 Teleport 目标(默认 `'body'`) |
118
+ | `size` | 控件默认尺寸 |
119
+ | `density` | `compact` / `comfortable` / `spacious` |
120
+ | `inputVariant` | `outlined` / `filled` |
121
+ | `zIndex` | 浮层 z-index 基准 |
122
+ | `locale` | 内置文案(默认 `zhCN`,或 `enUS` / 局部覆盖) |
123
+
109
124
 
110
125
  子树覆盖使用 `<WiConfigProvider>`。解析顺序:
111
126
 
112
- **组件 Props `WiConfigProvider` `createWellInsight` 内置默认**
127
+ **组件 Props →** `WiConfigProvider` **→** `createWellInsight` **→ 内置默认**
113
128
 
114
129
  详见文档站 [全局配置](./playground/src/docs/guide/config.md)。
115
130
 
@@ -130,6 +145,8 @@ createWellInsight({
130
145
  })
131
146
  ```
132
147
 
148
+
149
+
133
150
  ## 主题
134
151
 
135
152
  亮色 / 暗色 token 与辅助 API 同包导出:
@@ -161,10 +178,15 @@ toast.add({ severity: 'info', summary: '提示', detail: '详情在此' })
161
178
 
162
179
  ## 导出
163
180
 
164
- | 导入 | 用途 |
165
- | --- | --- |
166
- | `@well-insight/ui` | 组件、`createWellInsight`、`WiConfigProvider`、主题与语言、`message` / `toast` |
167
- | `@well-insight/ui/styles.css` | 必需样式(token + 组件样式) |
181
+
182
+ | 导入 | 用途 |
183
+ | ------------------------------- | ------------------------------------------------------------------- |
184
+ | `@well-insight/ui` | 组件、`createWellInsight`、`WiConfigProvider`、主题与语言、`message` / `toast` |
185
+ | `@well-insight/ui/styles.css` | 全量样式(token + 全部组件) |
186
+ | `@well-insight/ui/button` 等 | 按需组件子路径(JS + 依赖 + 样式;共 88 个 kebab-case 入口) |
187
+ | `@well-insight/ui/button/style` | 仅该组件(及依赖)样式 side-effect |
188
+ | `@well-insight/ui/resolver` | `unplugin-vue-components` 解析器 |
189
+
168
190
 
169
191
  TypeScript 类型已通过包 `exports` 提供。
170
192
 
@@ -183,10 +205,10 @@ pnpm typecheck
183
205
 
184
206
  ## 可选:MCP
185
207
 
186
- 若使用支持 [Model Context Protocol](https://modelcontextprotocol.io/) 的 AI 客户端,可额外接入 [`@well-insight/ui-mcp`](https://www.npmjs.com/package/@well-insight/ui-mcp),让助手按本库文档检索组件 API。**这不替代** `pnpm add @well-insight/ui`。
208
+ 若使用支持 [Model Context Protocol](https://modelcontextprotocol.io/) 的 AI 客户端,可额外接入 `[@well-insight/ui-mcp](https://www.npmjs.com/package/@well-insight/ui-mcp)`,让助手按本库文档检索组件 API。**这不替代** `pnpm add @well-insight/ui`。
187
209
 
188
210
  说明见文档站 [MCP](./playground/src/docs/guide/mcp.md)。
189
211
 
190
212
  ## 许可证
191
213
 
192
- MIT
214
+ MIT
@@ -0,0 +1,156 @@
1
+ import { t as e } from "./Icon-B6gOD07E.js";
2
+ import { o as t } from "./config-DWwce9jA.js";
3
+ import { Comment as n, Fragment as r, Text as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, defineComponent as d, normalizeClass as f, normalizeStyle as p, openBlock as m, ref as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, useSlots as y } from "vue";
4
+ //#region src/components/Button/Button.vue?vue&type=script&setup=true&lang.ts
5
+ var b = [
6
+ "type",
7
+ "disabled",
8
+ "autofocus",
9
+ "aria-busy",
10
+ "aria-label"
11
+ ], x = {
12
+ key: 1,
13
+ class: "wi-button__label"
14
+ }, S = /* @__PURE__ */ d({
15
+ __name: "Button",
16
+ props: {
17
+ label: {},
18
+ icon: {},
19
+ iconPos: { default: "left" },
20
+ iconOnly: {
21
+ type: Boolean,
22
+ default: !1
23
+ },
24
+ severity: {},
25
+ color: {},
26
+ raised: {
27
+ type: Boolean,
28
+ default: !1
29
+ },
30
+ rounded: {
31
+ type: Boolean,
32
+ default: !1
33
+ },
34
+ text: {
35
+ type: Boolean,
36
+ default: !1
37
+ },
38
+ outlined: {
39
+ type: Boolean,
40
+ default: !1
41
+ },
42
+ link: {
43
+ type: Boolean,
44
+ default: !1
45
+ },
46
+ ghost: {
47
+ type: Boolean,
48
+ default: !1
49
+ },
50
+ quaternary: {
51
+ type: Boolean,
52
+ default: !1
53
+ },
54
+ plain: {
55
+ type: Boolean,
56
+ default: !1
57
+ },
58
+ variant: {},
59
+ size: {},
60
+ fluid: {
61
+ type: Boolean,
62
+ default: !1
63
+ },
64
+ block: {
65
+ type: Boolean,
66
+ default: !1
67
+ },
68
+ loading: {
69
+ type: Boolean,
70
+ default: !1
71
+ },
72
+ disabled: {
73
+ type: Boolean,
74
+ default: !1
75
+ },
76
+ badge: {},
77
+ badgeSeverity: { default: null },
78
+ autofocus: {
79
+ type: Boolean,
80
+ default: !1
81
+ },
82
+ nativeType: { default: "button" },
83
+ ariaLabel: {}
84
+ },
85
+ emits: ["click"],
86
+ setup(d, { expose: S, emit: C }) {
87
+ let w = d, T = C, E = y(), D = h(null), O = a(() => !!E.default?.().some((e) => W(e))), k = a(() => O.value || !!w.label?.trim()), A = a(() => w.outlined || w.variant === "outlined"), j = a(() => w.text || w.variant === "text"), M = a(() => w.link || w.variant === "link"), N = a(() => w.ghost || w.variant === "ghost"), P = a(() => w.quaternary || w.variant === "quaternary"), F = a(() => w.fluid || w.block), I = t("Button", () => w.size), L = a(() => w.iconOnly || !k.value && !!(w.icon || E.icon || w.loading)), R = a(() => w.severity ?? "primary"), z = a(() => typeof w.icon == "string" ? w.icon : void 0), B = a(() => typeof w.icon == "string" || !w.icon ? void 0 : w.icon), V = a(() => [
88
+ "wi-button",
89
+ `wi-button--${R.value}`,
90
+ `wi-button--${I.value}`,
91
+ `wi-button--icon-${w.iconPos}`,
92
+ {
93
+ "wi-button--raised": w.raised,
94
+ "wi-button--rounded": w.rounded,
95
+ "wi-button--text": j.value,
96
+ "wi-button--outlined": A.value,
97
+ "wi-button--link": M.value,
98
+ "wi-button--ghost": N.value,
99
+ "wi-button--quaternary": P.value,
100
+ "wi-button--plain": w.plain,
101
+ "wi-button--fluid": F.value,
102
+ "wi-button--loading": w.loading,
103
+ "wi-button--icon-only": L.value,
104
+ "wi-button--custom": !!w.color
105
+ }
106
+ ]), H = a(() => w.color ? { "--wi-button-color": w.color } : void 0), U = a(() => ["wi-button__badge", w.badgeSeverity ? `wi-button__badge--${w.badgeSeverity}` : "wi-button__badge--contrast"]);
107
+ function W(e) {
108
+ if (e == null || typeof e == "boolean") return !1;
109
+ if (typeof e == "string" || typeof e == "number") return String(e).trim().length > 0;
110
+ if (Array.isArray(e)) return e.some((e) => W(e));
111
+ if (typeof e == "object" && "type" in e) {
112
+ let t = e;
113
+ return t.type === n ? !1 : t.type === i ? String(t.children ?? "").trim().length > 0 : t.type !== r || W(t.children);
114
+ }
115
+ return !1;
116
+ }
117
+ function G(e) {
118
+ w.disabled || w.loading || T("click", e);
119
+ }
120
+ function K() {
121
+ D.value?.focus();
122
+ }
123
+ return S({
124
+ focus: K,
125
+ ref: D
126
+ }), (t, n) => (m(), c("button", {
127
+ ref_key: "buttonElement",
128
+ ref: D,
129
+ class: f(V.value),
130
+ style: p(H.value),
131
+ type: d.nativeType,
132
+ disabled: d.disabled || d.loading,
133
+ autofocus: d.autofocus || void 0,
134
+ "aria-busy": d.loading || void 0,
135
+ "aria-label": d.ariaLabel || (L.value ? d.label : void 0),
136
+ onClick: G
137
+ }, [
138
+ d.loading || d.icon || t.$slots.icon ? (m(), c("span", {
139
+ key: 0,
140
+ class: f(["wi-button__icon", { "wi-button__icon--loading": d.loading }]),
141
+ "aria-hidden": "true"
142
+ }, [d.loading ? g(t.$slots, "loadingicon", {}, () => [n[0] ||= l("span", { class: "wi-button__spinner" }, null, -1)], void 0, 0) : g(t.$slots, "icon", { class: f("wi-button__icon-slot") }, () => [z.value ? (m(), o(e, {
143
+ key: 0,
144
+ name: z.value,
145
+ size: "sm"
146
+ }, null, 8, ["name"])) : B.value ? (m(), o(_(B.value), { key: 1 })) : s("", !0)], void 0, 1)], 2)) : s("", !0),
147
+ k.value && !d.iconOnly ? (m(), c("span", x, [g(t.$slots, "default", {}, () => [u(v(d.label), 1)])])) : s("", !0),
148
+ d.badge != null && d.badge !== "" ? (m(), c("span", {
149
+ key: 2,
150
+ class: f(U.value)
151
+ }, v(d.badge), 3)) : s("", !0)
152
+ ], 14, b));
153
+ }
154
+ });
155
+ //#endregion
156
+ export { S as t };
@@ -0,0 +1,107 @@
1
+ import { o as e } from "./config-DWwce9jA.js";
2
+ import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, inject as s, mergeProps as c, normalizeClass as l, openBlock as u, renderSlot as d, toDisplayString as f, unref as p, useAttrs as m } from "vue";
3
+ //#region src/components/Checkbox/types.ts
4
+ var h = Symbol("wiCheckboxGroup"), g = ["for"], _ = [
5
+ "id",
6
+ "name",
7
+ "value",
8
+ "checked",
9
+ "indeterminate",
10
+ "disabled",
11
+ "required",
12
+ "aria-invalid",
13
+ "aria-checked"
14
+ ], v = {
15
+ class: "wi-checkbox__control",
16
+ "aria-hidden": "true"
17
+ }, y = {
18
+ viewBox: "0 0 16 16",
19
+ focusable: "false"
20
+ }, b = {
21
+ key: 0,
22
+ d: "M4 8h8"
23
+ }, x = {
24
+ key: 1,
25
+ d: "m3.5 8.5 3 3 6-7"
26
+ }, S = {
27
+ key: 0,
28
+ class: "wi-checkbox__label"
29
+ }, C = /* @__PURE__ */ o({
30
+ inheritAttrs: !1,
31
+ __name: "Checkbox",
32
+ props: {
33
+ modelValue: {
34
+ type: Boolean,
35
+ default: !1
36
+ },
37
+ label: {},
38
+ id: {},
39
+ name: {},
40
+ value: { type: [
41
+ String,
42
+ Number,
43
+ Boolean
44
+ ] },
45
+ indeterminate: {
46
+ type: Boolean,
47
+ default: !1
48
+ },
49
+ size: {},
50
+ invalid: {
51
+ type: Boolean,
52
+ default: !1
53
+ },
54
+ disabled: {
55
+ type: Boolean,
56
+ default: !1
57
+ },
58
+ required: {
59
+ type: Boolean,
60
+ default: !1
61
+ }
62
+ },
63
+ emits: ["update:modelValue"],
64
+ setup(o, { emit: C }) {
65
+ let w = m(), T = o, E = C, D = s(h, null), O = t(() => T.id ?? `wi-checkbox-${Math.random().toString(36).slice(2, 8)}`), k = e("Checkbox", () => T.size ?? D?.size.value), A = t(() => T.disabled || !!D?.disabled.value), j = t(() => T.invalid || !!D?.invalid.value), M = t(() => T.name ?? D?.name.value), N = t(() => D != null && T.value !== void 0), P = t(() => N.value ? D.modelValue.value.includes(T.value) : T.modelValue), F = t(() => [
66
+ "wi-checkbox",
67
+ `wi-checkbox--${k.value}`,
68
+ {
69
+ "wi-checkbox--disabled": A.value,
70
+ "wi-checkbox--invalid": j.value,
71
+ "wi-checkbox--indeterminate": T.indeterminate
72
+ }
73
+ ]);
74
+ function I(e) {
75
+ if (A.value) return;
76
+ let t = e.target.checked;
77
+ if (N.value) {
78
+ D.toggle(T.value, t);
79
+ return;
80
+ }
81
+ E("update:modelValue", t);
82
+ }
83
+ return (e, t) => (u(), r("label", {
84
+ class: l(F.value),
85
+ for: O.value
86
+ }, [
87
+ i("input", c(p(w), {
88
+ id: O.value,
89
+ class: "wi-checkbox__input",
90
+ type: "checkbox",
91
+ name: M.value,
92
+ value: o.value == null ? void 0 : String(o.value),
93
+ checked: P.value,
94
+ indeterminate: o.indeterminate,
95
+ disabled: A.value,
96
+ required: o.required,
97
+ "aria-invalid": j.value || void 0,
98
+ "aria-checked": o.indeterminate ? "mixed" : P.value,
99
+ onChange: I
100
+ }), null, 16, _),
101
+ i("span", v, [(u(), r("svg", y, [o.indeterminate ? (u(), r("path", b)) : (u(), r("path", x))]))]),
102
+ o.label || e.$slots.default ? (u(), r("span", S, [d(e.$slots, "default", {}, () => [a(f(o.label), 1)])])) : n("", !0)
103
+ ], 10, g));
104
+ }
105
+ });
106
+ //#endregion
107
+ export { h as n, C as t };