@well-insight/ui 0.1.10 → 0.1.12

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 (323) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/{Button-B6-YxpOQ.js → Button-tnrMSwNg.js} +3 -7
  3. package/dist/{Checkbox-BvlOYFGs.js → Checkbox-CoovLjt_.js} +1 -1
  4. package/dist/{Icon-B6gOD07E.js → Icon-DHGs8l-M.js} +27 -1
  5. package/dist/Pagination-UvgyUKB1.js +155 -0
  6. package/dist/{ProgressSpinner-YThgaSzb.js → ProgressSpinner-BTijCc7l.js} +1 -1
  7. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  8. package/dist/accordion/style.css +4 -5
  9. package/dist/auto-complete/index.js +106 -99
  10. package/dist/auto-complete/style.css +4 -5
  11. package/dist/avatar/index.js +1 -1
  12. package/dist/avatar/style.css +4 -5
  13. package/dist/badge/style.css +4 -5
  14. package/dist/block-ui/style.css +4 -5
  15. package/dist/breadcrumb/index.js +1 -1
  16. package/dist/breadcrumb/style.css +4 -5
  17. package/dist/button/index.js +1 -1
  18. package/dist/button/style.css +4 -5
  19. package/dist/card/style.css +4 -5
  20. package/dist/carousel/index.js +61 -54
  21. package/dist/carousel/style.css +43 -5
  22. package/dist/carousel/style.js +1 -0
  23. package/dist/cascade-select/index.js +143 -76
  24. package/dist/cascade-select/style.css +76 -10
  25. package/dist/cascade-select/style.js +1 -0
  26. package/dist/checkbox/index.js +1 -1
  27. package/dist/checkbox/style.css +4 -5
  28. package/dist/chip/index.js +32 -29
  29. package/dist/chip/style.css +4 -5
  30. package/dist/command-menu/index.js +2 -2
  31. package/dist/command-menu/style.css +4 -5
  32. package/dist/components/AutoComplete/AutoComplete.vue.d.ts +2 -0
  33. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  34. package/dist/components/AutoComplete/types.d.ts +1 -0
  35. package/dist/components/AutoComplete/types.d.ts.map +1 -1
  36. package/dist/components/Button/Button.vue.d.ts +0 -1
  37. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  38. package/dist/components/Button/types.d.ts +0 -2
  39. package/dist/components/Button/types.d.ts.map +1 -1
  40. package/dist/components/Carousel/Carousel.vue.d.ts +2 -2
  41. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  42. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +6 -0
  43. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  44. package/dist/components/CascadeSelect/styles.css +33 -5
  45. package/dist/components/CascadeSelect/types.d.ts +11 -0
  46. package/dist/components/CascadeSelect/types.d.ts.map +1 -1
  47. package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
  48. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
  49. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  50. package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
  51. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
  52. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  53. package/dist/components/DatePicker/styles.css +33 -8
  54. package/dist/components/DatePicker/types.d.ts +1 -0
  55. package/dist/components/DatePicker/types.d.ts.map +1 -1
  56. package/dist/components/Dialog/Dialog.vue.d.ts +3 -3
  57. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  58. package/dist/components/Divider/types.d.ts +0 -5
  59. package/dist/components/Divider/types.d.ts.map +1 -1
  60. package/dist/components/Drawer/Drawer.vue.d.ts +2 -2
  61. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  62. package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
  63. package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
  64. package/dist/components/Fieldset/Fieldset.vue.d.ts +4 -4
  65. package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
  66. package/dist/components/FileUpload/styles.css +2 -2
  67. package/dist/components/FloatLabel/FloatLabel.vue.d.ts.map +1 -1
  68. package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
  69. package/dist/components/Icon/icons.d.ts +32 -0
  70. package/dist/components/Icon/icons.d.ts.map +1 -1
  71. package/dist/components/Input/Input.vue.d.ts +0 -1
  72. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  73. package/dist/components/Input/styles.css +3 -5
  74. package/dist/components/Input/types.d.ts +1 -3
  75. package/dist/components/Input/types.d.ts.map +1 -1
  76. package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
  77. package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
  78. package/dist/components/InputPassword/InputPassword.vue.d.ts +4 -4
  79. package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
  80. package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
  81. package/dist/components/Layout/Layout.vue.d.ts +1 -4
  82. package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
  83. package/dist/components/Layout/LayoutContent.vue.d.ts +1 -4
  84. package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
  85. package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -1
  86. package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -1
  87. package/dist/components/Layout/LayoutSider.vue.d.ts +1 -4
  88. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  89. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +9 -0
  90. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -0
  91. package/dist/components/Layout/composables/useLayoutScroll.d.ts +6 -0
  92. package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -0
  93. package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts +16 -0
  94. package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts.map +1 -0
  95. package/dist/components/Layout/styles.css +21 -49
  96. package/dist/components/Layout/types.d.ts +0 -22
  97. package/dist/components/Layout/types.d.ts.map +1 -1
  98. package/dist/components/Layout/utils.d.ts +3 -0
  99. package/dist/components/Layout/utils.d.ts.map +1 -0
  100. package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
  101. package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
  102. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  103. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  104. package/dist/components/Panel/Panel.vue.d.ts +3 -3
  105. package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
  106. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  107. package/dist/components/Popover/styles.css +41 -0
  108. package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
  109. package/dist/components/Rating/styles.css +28 -23
  110. package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
  111. package/dist/components/Select/Select.vue.d.ts +1 -1
  112. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  113. package/dist/components/Select/styles.css +8 -108
  114. package/dist/components/Select/types.d.ts +3 -3
  115. package/dist/components/Select/types.d.ts.map +1 -1
  116. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  117. package/dist/components/Slider/types.d.ts +2 -0
  118. package/dist/components/Slider/types.d.ts.map +1 -1
  119. package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
  120. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  121. package/dist/components/Table/Table.vue.d.ts +9 -9
  122. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  123. package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
  124. package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
  125. package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
  126. package/dist/components/Terminal/styles.css +8 -8
  127. package/dist/components/Textarea/Textarea.vue.d.ts +0 -2
  128. package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
  129. package/dist/components/Textarea/styles.css +1 -2
  130. package/dist/components/Textarea/types.d.ts +1 -5
  131. package/dist/components/Textarea/types.d.ts.map +1 -1
  132. package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
  133. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  134. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  135. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  136. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
  137. package/dist/components/TreeSelect/styles.css +21 -12
  138. package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +1 -1
  139. package/dist/{config-DWwce9jA.js → config-CTLkobga.js} +1 -0
  140. package/dist/config-provider/index.js +27 -26
  141. package/dist/config-provider/style.css +7 -10
  142. package/dist/confirm-dialog/index.js +4 -4
  143. package/dist/confirm-dialog/style.css +4 -5
  144. package/dist/confirm-popup/index.js +62 -77
  145. package/dist/confirm-popup/style.css +4 -5
  146. package/dist/context-menu/index.js +69 -61
  147. package/dist/context-menu/style.css +4 -5
  148. package/dist/data-view/index.js +1 -1
  149. package/dist/data-view/style.css +4 -5
  150. package/dist/date-picker/index.js +144 -137
  151. package/dist/date-picker/style.css +76 -13
  152. package/dist/date-picker/style.js +1 -0
  153. package/dist/dialog/index.js +76 -70
  154. package/dist/dialog/style.css +4 -5
  155. package/dist/divider/index.js +1 -2
  156. package/dist/divider/style.css +4 -5
  157. package/dist/dock/style.css +4 -5
  158. package/dist/drawer/index.js +49 -45
  159. package/dist/drawer/style.css +43 -5
  160. package/dist/drawer/style.js +1 -0
  161. package/dist/dropdown/index.js +98 -97
  162. package/dist/dropdown/style.css +4 -5
  163. package/dist/fieldset/index.js +16 -12
  164. package/dist/fieldset/style.css +43 -5
  165. package/dist/fieldset/style.js +1 -0
  166. package/dist/file-upload/index.js +2 -2
  167. package/dist/file-upload/style.css +6 -7
  168. package/dist/flex/index.js +1 -1
  169. package/dist/flex/style.css +4 -5
  170. package/dist/float-label/index.js +15 -4
  171. package/dist/float-label/style.css +4 -5
  172. package/dist/fluid/style.css +4 -5
  173. package/dist/form/index.js +1 -1
  174. package/dist/form/style.css +4 -5
  175. package/dist/gallery/index.js +41 -34
  176. package/dist/gallery/style.css +43 -5
  177. package/dist/gallery/style.js +1 -0
  178. package/dist/grid/style.css +4 -5
  179. package/dist/icon/index.js +1 -1
  180. package/dist/icon/style.css +4 -5
  181. package/dist/icon-Cg5TeFqe.js +7 -0
  182. package/dist/icon-field/style.css +4 -5
  183. package/dist/index.js +2790 -2650
  184. package/dist/inplace/style.css +4 -5
  185. package/dist/input/index.js +65 -66
  186. package/dist/input/style.css +46 -10
  187. package/dist/input/style.js +1 -0
  188. package/dist/input-color/index.js +1 -1
  189. package/dist/input-color/style.css +4 -5
  190. package/dist/input-group/style.css +4 -5
  191. package/dist/input-number/index.js +82 -66
  192. package/dist/input-number/style.css +43 -5
  193. package/dist/input-number/style.js +1 -0
  194. package/dist/input-otp/index.js +3 -3
  195. package/dist/input-otp/style.css +4 -5
  196. package/dist/input-password/index.js +46 -43
  197. package/dist/input-password/style.css +4 -5
  198. package/dist/input-tags/index.js +50 -46
  199. package/dist/input-tags/style.css +43 -5
  200. package/dist/input-tags/style.js +1 -0
  201. package/dist/key-CaQYVkjh.js +6 -0
  202. package/dist/knob/style.css +4 -5
  203. package/dist/label/style.css +4 -5
  204. package/dist/layout/index.js +196 -271
  205. package/dist/layout/style.css +50 -140
  206. package/dist/layout/style.js +1 -1
  207. package/dist/listbox/index.js +1 -1
  208. package/dist/listbox/style.css +4 -5
  209. package/dist/locale/en-US.d.ts.map +1 -1
  210. package/dist/locale/types.d.ts +1 -0
  211. package/dist/locale/types.d.ts.map +1 -1
  212. package/dist/locale/zh-CN.d.ts.map +1 -1
  213. package/dist/{locale-CYkJyRd1.js → locale-DxAvgqgB.js} +1 -1
  214. package/dist/mega-menu/index.js +47 -49
  215. package/dist/mega-menu/style.css +4 -5
  216. package/dist/menu/index.js +81 -76
  217. package/dist/menu/style.css +4 -5
  218. package/dist/menubar/index.js +75 -73
  219. package/dist/menubar/style.css +4 -5
  220. package/dist/message/index.js +3 -3
  221. package/dist/message/style.css +4 -5
  222. package/dist/meter-group/style.css +4 -5
  223. package/dist/order-list/index.js +2 -2
  224. package/dist/order-list/style.css +4 -5
  225. package/dist/overlayPlacement-CN1tuC95.js +51 -0
  226. package/dist/pagination/index.js +1 -1
  227. package/dist/pagination/style.css +43 -5
  228. package/dist/pagination/style.js +1 -0
  229. package/dist/panel/index.js +27 -23
  230. package/dist/panel/style.css +43 -5
  231. package/dist/panel/style.js +1 -0
  232. package/dist/pick-list/index.js +2 -2
  233. package/dist/pick-list/style.css +4 -5
  234. package/dist/popover/index.js +79 -100
  235. package/dist/popover/style.css +45 -5
  236. package/dist/progress-bar/style.css +4 -5
  237. package/dist/progress-spinner/index.js +1 -1
  238. package/dist/progress-spinner/style.css +4 -5
  239. package/dist/radio/index.js +1 -1
  240. package/dist/radio/style.css +4 -5
  241. package/dist/rating/index.js +54 -44
  242. package/dist/rating/style.css +71 -28
  243. package/dist/rating/style.js +1 -0
  244. package/dist/scroll-top/index.js +45 -41
  245. package/dist/scroll-top/style.css +43 -5
  246. package/dist/scroll-top/style.js +1 -0
  247. package/dist/scrollbar/index.js +382 -2
  248. package/dist/scrollbar/style.css +4 -5
  249. package/dist/select/index.js +149 -141
  250. package/dist/select/style.css +51 -113
  251. package/dist/select/style.js +1 -0
  252. package/dist/select-button/index.js +1 -1
  253. package/dist/select-button/style.css +4 -5
  254. package/dist/shared/componentDefaults.d.ts +5 -1
  255. package/dist/shared/componentDefaults.d.ts.map +1 -1
  256. package/dist/shared/menu/icon.d.ts +4 -0
  257. package/dist/shared/menu/icon.d.ts.map +1 -0
  258. package/dist/shared/menu/index.d.ts +4 -0
  259. package/dist/shared/menu/index.d.ts.map +1 -0
  260. package/dist/shared/menu/key.d.ts +4 -0
  261. package/dist/shared/menu/key.d.ts.map +1 -0
  262. package/dist/shared/menu/types.d.ts +11 -0
  263. package/dist/shared/menu/types.d.ts.map +1 -0
  264. package/dist/shared/overlayPlacement.d.ts +12 -0
  265. package/dist/shared/overlayPlacement.d.ts.map +1 -0
  266. package/dist/sidebar/index.js +1 -1
  267. package/dist/sidebar/style.css +4 -5
  268. package/dist/skeleton/style.css +4 -5
  269. package/dist/slider/index.js +6 -3
  270. package/dist/slider/style.css +4 -5
  271. package/dist/space/index.js +1 -1
  272. package/dist/space/style.css +4 -5
  273. package/dist/speed-dial/index.js +55 -66
  274. package/dist/speed-dial/style.css +43 -5
  275. package/dist/speed-dial/style.js +1 -0
  276. package/dist/split-button/index.js +66 -63
  277. package/dist/split-button/style.css +43 -5
  278. package/dist/split-button/style.js +1 -0
  279. package/dist/splitter/index.js +1 -1
  280. package/dist/splitter/style.css +4 -5
  281. package/dist/stepper/style.css +4 -5
  282. package/dist/styles/base.css +4 -5
  283. package/dist/styles.css +1 -1
  284. package/dist/switch/index.js +1 -1
  285. package/dist/switch/style.css +4 -5
  286. package/dist/table/index.js +41 -35
  287. package/dist/table/style.css +4 -5
  288. package/dist/tabs/index.js +78 -65
  289. package/dist/tabs/style.css +43 -5
  290. package/dist/tabs/style.js +1 -0
  291. package/dist/tag/index.js +31 -28
  292. package/dist/tag/style.css +4 -5
  293. package/dist/terminal/index.js +1 -1
  294. package/dist/terminal/style.css +12 -13
  295. package/dist/textarea/index.js +69 -75
  296. package/dist/textarea/style.css +44 -7
  297. package/dist/textarea/style.js +1 -0
  298. package/dist/tiered-menu/index.js +66 -59
  299. package/dist/tiered-menu/style.css +43 -5
  300. package/dist/tiered-menu/style.js +1 -0
  301. package/dist/timeline/index.js +1 -1
  302. package/dist/timeline/style.css +4 -5
  303. package/dist/toast/index.js +93 -89
  304. package/dist/toast/style.css +43 -5
  305. package/dist/toast/style.js +1 -0
  306. package/dist/toggle-button/index.js +1 -1
  307. package/dist/toggle-button/style.css +4 -5
  308. package/dist/toolbar/index.js +10 -13
  309. package/dist/toolbar/style.css +4 -5
  310. package/dist/tooltip/index.js +47 -71
  311. package/dist/tooltip/style.css +4 -5
  312. package/dist/tree/index.js +3 -3
  313. package/dist/tree/style.css +4 -5
  314. package/dist/tree-select/index.js +164 -155
  315. package/dist/tree-select/style.css +64 -17
  316. package/dist/tree-select/style.js +1 -0
  317. package/dist/tree-table/index.js +34 -30
  318. package/dist/tree-table/style.css +43 -5
  319. package/dist/tree-table/style.js +1 -0
  320. package/dist/virtual-scroller/style.css +4 -5
  321. package/package.json +4 -1
  322. package/dist/Pagination-BU-1IY0E.js +0 -148
  323. package/dist/Scrollbar-D-bR2noX.js +0 -382
@@ -480,8 +480,8 @@
480
480
  font-size: var(--wi-font-size-xs);
481
481
  }
482
482
 
483
- .wi-textarea-field__help--error,
484
- .wi-select-field__help--error {
483
+ .wi-textarea-field__help--invalid,
484
+ .wi-select-field__help--invalid {
485
485
  color: var(--wi-color-danger);
486
486
  }
487
487
 
@@ -500,9 +500,8 @@
500
500
  }
501
501
 
502
502
  .wi-textarea--invalid:focus-visible,
503
- .wi-textarea--error:focus-visible,
504
- .wi-select--error.wi-select--open,
505
- .wi-select--error:focus-visible {
503
+ .wi-select--invalid.wi-select--open,
504
+ .wi-select--invalid:focus-visible {
506
505
  border-color: var(--wi-color-danger);
507
506
  box-shadow: var(--wi-focus-shadow-danger);
508
507
  }
@@ -1,12 +1,13 @@
1
- import { i as e, o as t, s as n } from "../config-DWwce9jA.js";
2
- import { n as r } from "../locale-CYkJyRd1.js";
1
+ import { t as e } from "../Icon-DHGs8l-M.js";
2
+ import { i as t, o as n, s as r } from "../config-CTLkobga.js";
3
+ import { n as i } from "../locale-DxAvgqgB.js";
3
4
  import "./style.js";
4
- import { computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, openBlock as d, ref as f, renderSlot as p, toDisplayString as m, unref as h, useAttrs as g, useSlots as _ } from "vue";
5
+ import { computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, mergeProps as d, normalizeClass as f, openBlock as p, ref as m, renderSlot as h, toDisplayString as g, unref as _, useAttrs as v, useSlots as y } from "vue";
5
6
  //#region src/components/Input/Input.vue?vue&type=script&setup=true&lang.ts
6
- var v = ["for"], y = {
7
+ var b = ["for"], x = {
7
8
  key: 0,
8
9
  class: "wi-input__prefix"
9
- }, b = [
10
+ }, S = [
10
11
  "id",
11
12
  "type",
12
13
  "value",
@@ -15,13 +16,13 @@ var v = ["for"], y = {
15
16
  "maxlength",
16
17
  "aria-invalid",
17
18
  "aria-describedby"
18
- ], x = {
19
+ ], C = {
19
20
  key: 1,
20
21
  class: "wi-input__suffix"
21
- }, S = ["aria-label", "disabled"], C = {
22
+ }, w = ["aria-label", "disabled"], T = {
22
23
  key: 1,
23
24
  class: "wi-input-field__meta"
24
- }, w = ["id", "role"], T = ["id"], E = /* @__PURE__ */ c({
25
+ }, E = ["id", "role"], D = ["id"], O = /* @__PURE__ */ u({
25
26
  inheritAttrs: !1,
26
27
  __name: "Input",
27
28
  props: {
@@ -32,10 +33,6 @@ var v = ["for"], y = {
32
33
  type: Boolean,
33
34
  default: !1
34
35
  },
35
- error: {
36
- type: Boolean,
37
- default: !1
38
- },
39
36
  errorMessage: {},
40
37
  id: {},
41
38
  type: { default: "text" },
@@ -64,81 +61,83 @@ var v = ["for"], y = {
64
61
  }
65
62
  },
66
63
  emits: ["update:modelValue", "clear"],
67
- setup(c, { expose: E, emit: D }) {
68
- let O = c, k = D, A = g(), j = _(), M = e("Input"), N = r(), P = f(null), F = i(() => O.id ?? `wi-input-${Math.random().toString(36).slice(2, 8)}`), I = i(() => O.invalid || O.error || !!O.errorMessage), L = t("Input", () => O.size), R = n("Input", () => O.variant), z = i(() => O.clearable ?? M.value.clearable ?? !1), B = i(() => O.showCount ?? M.value.showCount ?? !1), V = i(() => O.fluid ?? M.value.fluid ?? !1), H = i(() => O.modelValue.length), U = i(() => O.maxlength == null ? String(H.value) : `${H.value} / ${O.maxlength}`), W = i(() => O.errorMessage || O.helpText), G = i(() => !!O.errorMessage || I.value && !!O.helpText), K = i(() => !!j.prefix), q = i(() => !!j.suffix || z.value && !!O.modelValue), J = i(() => {
64
+ setup(u, { expose: O, emit: k }) {
65
+ let A = u, j = k, M = v(), N = y(), P = t("Input"), F = i(), I = m(null), L = a(() => A.id ?? `wi-input-${Math.random().toString(36).slice(2, 8)}`), R = a(() => A.invalid || !!A.errorMessage), z = n("Input", () => A.size), B = r("Input", () => A.variant), V = a(() => A.clearable ?? P.value.clearable ?? !1), H = a(() => A.showCount ?? P.value.showCount ?? !1), U = a(() => A.fluid ?? P.value.fluid ?? !1), W = a(() => A.modelValue.length), G = a(() => A.maxlength == null ? String(W.value) : `${W.value} / ${A.maxlength}`), K = a(() => A.errorMessage || A.helpText), q = a(() => !!A.errorMessage || R.value && !!A.helpText), J = a(() => !!N.prefix), Y = a(() => !!N.suffix || V.value && !!A.modelValue), X = a(() => {
69
66
  let e = [];
70
- return W.value && e.push(`${F.value}-help`), B.value && e.push(`${F.value}-count`), e.length ? e.join(" ") : void 0;
71
- }), Y = i(() => [
67
+ return K.value && e.push(`${L.value}-help`), H.value && e.push(`${L.value}-count`), e.length ? e.join(" ") : void 0;
68
+ }), Z = a(() => [
72
69
  "wi-input",
73
- `wi-input--${L.value}`,
70
+ `wi-input--${z.value}`,
74
71
  {
75
- "wi-input--filled": R.value === "filled",
76
- "wi-input--fluid": V.value,
77
- "wi-input--invalid": I.value,
78
- "wi-input--error": I.value,
79
- "wi-input--has-prefix": K.value,
80
- "wi-input--has-suffix": q.value
72
+ "wi-input--filled": B.value === "filled",
73
+ "wi-input--fluid": U.value,
74
+ "wi-input--invalid": R.value,
75
+ "wi-input--has-prefix": J.value,
76
+ "wi-input--has-suffix": Y.value
81
77
  }
82
78
  ]);
83
- function X(e) {
84
- k("update:modelValue", e.target.value);
79
+ function Q(e) {
80
+ j("update:modelValue", e.target.value);
85
81
  }
86
- function Z() {
87
- O.disabled || O.readonly || (k("update:modelValue", ""), k("clear"), P.value?.focus());
82
+ function $() {
83
+ A.disabled || A.readonly || (j("update:modelValue", ""), j("clear"), I.value?.focus());
88
84
  }
89
- function Q() {
90
- P.value?.focus();
85
+ function ee() {
86
+ I.value?.focus();
91
87
  }
92
- return E({ focus: Q }), (e, t) => (d(), o("div", { class: u(["wi-input-field", { "wi-input-field--fluid": V.value }]) }, [
93
- c.label ? (d(), o("label", {
88
+ return O({ focus: ee }), (t, n) => (p(), s("div", { class: f(["wi-input-field", { "wi-input-field--fluid": U.value }]) }, [
89
+ u.label ? (p(), s("label", {
94
90
  key: 0,
95
91
  class: "wi-input-field__label",
96
- for: F.value
97
- }, m(c.label), 9, v)) : a("", !0),
98
- s("div", { class: u(["wi-input-field__control", {
99
- "wi-input-field__control--clearable": z.value && c.modelValue,
100
- "wi-input-field__control--counted": B.value,
101
- "wi-input-field__control--prefixed": K.value,
102
- "wi-input-field__control--suffixed": e.$slots.suffix || z.value && c.modelValue
92
+ for: L.value
93
+ }, g(u.label), 9, b)) : o("", !0),
94
+ c("div", { class: f(["wi-input-field__control", {
95
+ "wi-input-field__control--clearable": V.value && u.modelValue,
96
+ "wi-input-field__control--counted": H.value,
97
+ "wi-input-field__control--prefixed": J.value,
98
+ "wi-input-field__control--suffixed": t.$slots.suffix || V.value && u.modelValue
103
99
  }]) }, [
104
- e.$slots.prefix ? (d(), o("span", y, [p(e.$slots, "prefix")])) : a("", !0),
105
- s("input", l(h(A), {
106
- id: F.value,
100
+ t.$slots.prefix ? (p(), s("span", x, [h(t.$slots, "prefix")])) : o("", !0),
101
+ c("input", d(_(M), {
102
+ id: L.value,
107
103
  ref_key: "inputElement",
108
- ref: P,
109
- class: Y.value,
110
- type: c.type,
111
- value: c.modelValue,
112
- disabled: c.disabled,
113
- readonly: c.readonly,
114
- maxlength: c.maxlength,
115
- "aria-invalid": I.value || void 0,
116
- "aria-describedby": J.value,
117
- onInput: X
118
- }), null, 16, b),
119
- e.$slots.suffix ? (d(), o("span", x, [p(e.$slots, "suffix")])) : a("", !0),
120
- z.value && c.modelValue ? (d(), o("button", {
104
+ ref: I,
105
+ class: Z.value,
106
+ type: u.type,
107
+ value: u.modelValue,
108
+ disabled: u.disabled,
109
+ readonly: u.readonly,
110
+ maxlength: u.maxlength,
111
+ "aria-invalid": R.value || void 0,
112
+ "aria-describedby": X.value,
113
+ onInput: Q
114
+ }), null, 16, S),
115
+ t.$slots.suffix ? (p(), s("span", C, [h(t.$slots, "suffix")])) : o("", !0),
116
+ V.value && u.modelValue ? (p(), s("button", {
121
117
  key: 2,
122
118
  class: "wi-input__clear",
123
119
  type: "button",
124
- "aria-label": h(N).clearInput,
125
- disabled: c.disabled || c.readonly,
126
- onClick: Z
127
- }, " × ", 8, S)) : a("", !0)
120
+ "aria-label": _(F).clearInput,
121
+ disabled: u.disabled || u.readonly,
122
+ onClick: $
123
+ }, [l(e, {
124
+ name: "close",
125
+ size: "sm"
126
+ })], 8, w)) : o("", !0)
128
127
  ], 2),
129
- W.value || B.value ? (d(), o("div", C, [W.value ? (d(), o("span", {
128
+ K.value || H.value ? (p(), s("div", T, [K.value ? (p(), s("span", {
130
129
  key: 0,
131
- id: `${F.value}-help`,
132
- class: u(["wi-input-field__help", { "wi-input-field__help--error": G.value }]),
133
- role: G.value ? "alert" : void 0
134
- }, m(W.value), 11, w)) : a("", !0), B.value ? (d(), o("span", {
130
+ id: `${L.value}-help`,
131
+ class: f(["wi-input-field__help", { "wi-input-field__help--invalid": q.value }]),
132
+ role: q.value ? "alert" : void 0
133
+ }, g(K.value), 11, E)) : o("", !0), H.value ? (p(), s("span", {
135
134
  key: 1,
136
- id: `${F.value}-count`,
135
+ id: `${L.value}-count`,
137
136
  class: "wi-input-field__count",
138
137
  "aria-live": "polite"
139
- }, m(U.value), 9, T)) : a("", !0)])) : a("", !0)
138
+ }, g(G.value), 9, D)) : o("", !0)])) : o("", !0)
140
139
  ], 2));
141
140
  }
142
141
  });
143
142
  //#endregion
144
- export { E as WiInput };
143
+ export { O as WiInput };
@@ -480,8 +480,8 @@
480
480
  font-size: var(--wi-font-size-xs);
481
481
  }
482
482
 
483
- .wi-textarea-field__help--error,
484
- .wi-select-field__help--error {
483
+ .wi-textarea-field__help--invalid,
484
+ .wi-select-field__help--invalid {
485
485
  color: var(--wi-color-danger);
486
486
  }
487
487
 
@@ -500,9 +500,8 @@
500
500
  }
501
501
 
502
502
  .wi-textarea--invalid:focus-visible,
503
- .wi-textarea--error:focus-visible,
504
- .wi-select--error.wi-select--open,
505
- .wi-select--error:focus-visible {
503
+ .wi-select--invalid.wi-select--open,
504
+ .wi-select--invalid:focus-visible {
506
505
  border-color: var(--wi-color-danger);
507
506
  box-shadow: var(--wi-focus-shadow-danger);
508
507
  }
@@ -750,6 +749,45 @@
750
749
  line-height: 1;
751
750
  }
752
751
 
752
+ .wi-icon {
753
+ display: inline-flex;
754
+ height: 1rem;
755
+ width: 1rem;
756
+ }
757
+
758
+ .wi-icon svg {
759
+ height: 100%;
760
+ width: 100%;
761
+ }
762
+
763
+ .wi-icon--sm,
764
+ .wi-icon--small {
765
+ height: 0.875rem;
766
+ width: 0.875rem;
767
+ }
768
+
769
+ .wi-icon--md,
770
+ .wi-icon--normal {
771
+ height: 1rem;
772
+ width: 1rem;
773
+ }
774
+
775
+ .wi-icon--lg,
776
+ .wi-icon--large {
777
+ height: 1.25rem;
778
+ width: 1.25rem;
779
+ }
780
+
781
+ .wi-icon--spin svg {
782
+ animation: wi-icon-spin 0.8s linear infinite;
783
+ }
784
+
785
+ @keyframes wi-icon-spin {
786
+ to {
787
+ transform: rotate(360deg);
788
+ }
789
+ }
790
+
753
791
  .wi-input:focus {
754
792
  outline: none;
755
793
  }
@@ -764,8 +802,7 @@
764
802
  outline: none;
765
803
  }
766
804
 
767
- .wi-input--invalid:focus-visible,
768
- .wi-input--error:focus-visible {
805
+ .wi-input--invalid:focus-visible {
769
806
  border-color: var(--wi-color-danger);
770
807
  box-shadow: var(--wi-focus-shadow-danger);
771
808
  }
@@ -790,7 +827,7 @@
790
827
  font-size: var(--wi-font-size-xs);
791
828
  }
792
829
 
793
- .wi-input-field__help--error {
830
+ .wi-input-field__help--invalid {
794
831
  color: var(--wi-color-danger);
795
832
  }
796
833
 
@@ -887,8 +924,7 @@
887
924
  width: 100%;
888
925
  }
889
926
 
890
- .wi-input--invalid,
891
- .wi-input--error {
927
+ .wi-input--invalid {
892
928
  border-color: var(--wi-color-danger);
893
929
  }
894
930
 
@@ -1,3 +1,4 @@
1
1
  import '../theme/styles.css'
2
2
  import '../styles/base.css'
3
+ import '../components/Icon/styles.css'
3
4
  import '../components/Input/styles.css'
@@ -1,4 +1,4 @@
1
- import { n as e } from "../locale-CYkJyRd1.js";
1
+ import { n as e } from "../locale-DxAvgqgB.js";
2
2
  import "./style.js";
3
3
  import { Fragment as t, computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeClass as s, normalizeStyle as c, openBlock as l, renderList as u, unref as d } from "vue";
4
4
  //#region src/components/InputColor/InputColor.vue?vue&type=script&setup=true&lang.ts
@@ -480,8 +480,8 @@
480
480
  font-size: var(--wi-font-size-xs);
481
481
  }
482
482
 
483
- .wi-textarea-field__help--error,
484
- .wi-select-field__help--error {
483
+ .wi-textarea-field__help--invalid,
484
+ .wi-select-field__help--invalid {
485
485
  color: var(--wi-color-danger);
486
486
  }
487
487
 
@@ -500,9 +500,8 @@
500
500
  }
501
501
 
502
502
  .wi-textarea--invalid:focus-visible,
503
- .wi-textarea--error:focus-visible,
504
- .wi-select--error.wi-select--open,
505
- .wi-select--error:focus-visible {
503
+ .wi-select--invalid.wi-select--open,
504
+ .wi-select--invalid:focus-visible {
506
505
  border-color: var(--wi-color-danger);
507
506
  box-shadow: var(--wi-focus-shadow-danger);
508
507
  }
@@ -480,8 +480,8 @@
480
480
  font-size: var(--wi-font-size-xs);
481
481
  }
482
482
 
483
- .wi-textarea-field__help--error,
484
- .wi-select-field__help--error {
483
+ .wi-textarea-field__help--invalid,
484
+ .wi-select-field__help--invalid {
485
485
  color: var(--wi-color-danger);
486
486
  }
487
487
 
@@ -500,9 +500,8 @@
500
500
  }
501
501
 
502
502
  .wi-textarea--invalid:focus-visible,
503
- .wi-textarea--error:focus-visible,
504
- .wi-select--error.wi-select--open,
505
- .wi-select--error:focus-visible {
503
+ .wi-select--invalid.wi-select--open,
504
+ .wi-select--invalid:focus-visible {
506
505
  border-color: var(--wi-color-danger);
507
506
  box-shadow: var(--wi-focus-shadow-danger);
508
507
  }
@@ -1,9 +1,10 @@
1
- import { o as e } from "../config-DWwce9jA.js";
2
- import { n as t } from "../locale-CYkJyRd1.js";
1
+ import { t as e } from "../Icon-DHGs8l-M.js";
2
+ import { o as t } from "../config-CTLkobga.js";
3
+ import { n } from "../locale-DxAvgqgB.js";
3
4
  import "./style.js";
4
- import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, mergeProps as s, normalizeClass as c, openBlock as l, toDisplayString as u, unref as d, useAttrs as f } from "vue";
5
+ import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, mergeProps as l, normalizeClass as u, openBlock as d, toDisplayString as f, unref as p, useAttrs as m } from "vue";
5
6
  //#region src/components/InputNumber/InputNumber.vue?vue&type=script&setup=true&lang.ts
6
- var p = ["for"], m = ["aria-label", "disabled"], h = [
7
+ var h = ["for"], g = ["aria-label", "disabled"], _ = [
7
8
  "id",
8
9
  "value",
9
10
  "min",
@@ -11,10 +12,10 @@ var p = ["for"], m = ["aria-label", "disabled"], h = [
11
12
  "step",
12
13
  "disabled",
13
14
  "aria-invalid"
14
- ], g = ["aria-label"], _ = {
15
+ ], v = ["aria-label"], y = {
15
16
  key: 2,
16
17
  class: "wi-inputnumber__stack"
17
- }, v = ["aria-label", "disabled"], y = ["aria-label", "disabled"], b = ["aria-label", "disabled"], x = /* @__PURE__ */ o({
18
+ }, b = ["aria-label", "disabled"], x = ["aria-label", "disabled"], S = ["aria-label", "disabled"], C = /* @__PURE__ */ c({
18
19
  inheritAttrs: !1,
19
20
  __name: "InputNumber",
20
21
  props: {
@@ -49,98 +50,113 @@ var p = ["for"], m = ["aria-label", "disabled"], h = [
49
50
  id: {}
50
51
  },
51
52
  emits: ["update:modelValue"],
52
- setup(o, { emit: x }) {
53
- let S = o, C = x, w = f(), T = t(), E = n(() => S.id ?? `wi-inputnumber-${Math.random().toString(36).slice(2, 8)}`), D = e("InputNumber", () => S.size), O = n(() => S.clearable && S.modelValue != null && !S.disabled), k = n(() => [
53
+ setup(c, { emit: C }) {
54
+ let w = c, T = C, E = m(), D = n(), O = r(() => w.id ?? `wi-inputnumber-${Math.random().toString(36).slice(2, 8)}`), k = t("InputNumber", () => w.size), A = r(() => w.clearable && w.modelValue != null && !w.disabled), j = r(() => [
54
55
  "wi-inputnumber",
55
- `wi-inputnumber--${D.value}`,
56
+ `wi-inputnumber--${k.value}`,
56
57
  {
57
- "wi-inputnumber--fluid": S.fluid,
58
- "wi-inputnumber--invalid": S.invalid,
59
- "wi-inputnumber--disabled": S.disabled,
60
- "wi-inputnumber--buttons": S.showButtons,
61
- "wi-inputnumber--buttons-right": S.showButtons && S.buttonPlacement === "right"
58
+ "wi-inputnumber--fluid": w.fluid,
59
+ "wi-inputnumber--invalid": w.invalid,
60
+ "wi-inputnumber--disabled": w.disabled,
61
+ "wi-inputnumber--buttons": w.showButtons,
62
+ "wi-inputnumber--buttons-right": w.showButtons && w.buttonPlacement === "right"
62
63
  }
63
64
  ]);
64
- function A(e) {
65
- if (S.precision == null) return e;
66
- let t = 10 ** S.precision;
65
+ function M(e) {
66
+ if (w.precision == null) return e;
67
+ let t = 10 ** w.precision;
67
68
  return Math.round(e * t) / t;
68
69
  }
69
- function j(e) {
70
- let t = A(e);
71
- return S.min != null && t < S.min && (t = S.min), S.max != null && t > S.max && (t = S.max), t;
70
+ function N(e) {
71
+ let t = M(e);
72
+ return w.min != null && t < w.min && (t = w.min), w.max != null && t > w.max && (t = w.max), t;
72
73
  }
73
- function M(e) {
74
+ function P(e) {
74
75
  let t = e.trim();
75
76
  if (t === "" || t === "-" || t === "+" || t === ".") return null;
76
77
  let n = Number(t);
77
- return Number.isNaN(n) ? null : j(n);
78
+ return Number.isNaN(n) ? null : N(n);
78
79
  }
79
- function N(e) {
80
- S.disabled || C("update:modelValue", M(e.target.value));
80
+ function F(e) {
81
+ w.disabled || T("update:modelValue", P(e.target.value));
81
82
  }
82
- function P(e) {
83
- if (S.disabled) return;
84
- let t = S.modelValue ?? S.min ?? 0;
85
- C("update:modelValue", j(t + e * S.step));
83
+ function I(e) {
84
+ if (w.disabled) return;
85
+ let t = w.modelValue ?? w.min ?? 0;
86
+ T("update:modelValue", N(t + e * w.step));
86
87
  }
87
- function F() {
88
- S.disabled || C("update:modelValue", null);
88
+ function L() {
89
+ w.disabled || T("update:modelValue", null);
89
90
  }
90
- return (e, t) => (l(), i("div", { class: c(["wi-inputnumber-field", { "wi-inputnumber-field--fluid": o.fluid }]) }, [o.label ? (l(), i("label", {
91
+ return (t, n) => (d(), a("div", { class: u(["wi-inputnumber-field", { "wi-inputnumber-field--fluid": c.fluid }]) }, [c.label ? (d(), a("label", {
91
92
  key: 0,
92
93
  class: "wi-inputnumber-field__label",
93
- for: E.value
94
- }, u(o.label), 9, p)) : r("", !0), a("div", { class: c(k.value) }, [
95
- o.showButtons && o.buttonPlacement === "both" ? (l(), i("button", {
94
+ for: O.value
95
+ }, f(c.label), 9, h)) : i("", !0), o("div", { class: u(j.value) }, [
96
+ c.showButtons && c.buttonPlacement === "both" ? (d(), a("button", {
96
97
  key: 0,
97
98
  class: "wi-inputnumber__button wi-inputnumber__button--decrement",
98
99
  type: "button",
99
- "aria-label": d(T).decrease,
100
- disabled: o.disabled || o.min != null && o.modelValue != null && o.modelValue <= o.min,
101
- onClick: t[0] ||= (e) => P(-1)
102
- }, " − ", 8, m)) : r("", !0),
103
- a("input", s(d(w), {
104
- id: E.value,
100
+ "aria-label": p(D).decrease,
101
+ disabled: c.disabled || c.min != null && c.modelValue != null && c.modelValue <= c.min,
102
+ onClick: n[0] ||= (e) => I(-1)
103
+ }, [s(e, {
104
+ name: "minus",
105
+ size: "sm"
106
+ })], 8, g)) : i("", !0),
107
+ o("input", l(p(E), {
108
+ id: O.value,
105
109
  class: "wi-inputnumber__input",
106
110
  type: "number",
107
- value: o.modelValue ?? "",
108
- min: o.min,
109
- max: o.max,
110
- step: o.step,
111
- disabled: o.disabled,
112
- "aria-invalid": o.invalid || void 0,
113
- onInput: N
114
- }), null, 16, h),
115
- O.value ? (l(), i("button", {
111
+ value: c.modelValue ?? "",
112
+ min: c.min,
113
+ max: c.max,
114
+ step: c.step,
115
+ disabled: c.disabled,
116
+ "aria-invalid": c.invalid || void 0,
117
+ onInput: F
118
+ }), null, 16, _),
119
+ A.value ? (d(), a("button", {
116
120
  key: 1,
117
121
  type: "button",
118
122
  class: "wi-inputnumber__clear",
119
- "aria-label": d(T).clearInput,
120
- onClick: F
121
- }, " × ", 8, g)) : r("", !0),
122
- o.showButtons && o.buttonPlacement === "right" ? (l(), i("div", _, [a("button", {
123
+ "aria-label": p(D).clearInput,
124
+ onClick: L
125
+ }, [s(e, {
126
+ name: "close",
127
+ size: "sm"
128
+ })], 8, v)) : i("", !0),
129
+ c.showButtons && c.buttonPlacement === "right" ? (d(), a("div", y, [o("button", {
123
130
  class: "wi-inputnumber__button wi-inputnumber__button--increment",
124
131
  type: "button",
125
- "aria-label": d(T).increase,
126
- disabled: o.disabled || o.max != null && o.modelValue != null && o.modelValue >= o.max,
127
- onClick: t[1] ||= (e) => P(1)
128
- }, " + ", 8, v), a("button", {
132
+ "aria-label": p(D).increase,
133
+ disabled: c.disabled || c.max != null && c.modelValue != null && c.modelValue >= c.max,
134
+ onClick: n[1] ||= (e) => I(1)
135
+ }, [s(e, {
136
+ name: "plus",
137
+ size: "sm"
138
+ })], 8, b), o("button", {
129
139
  class: "wi-inputnumber__button wi-inputnumber__button--decrement",
130
140
  type: "button",
131
- "aria-label": d(T).decrease,
132
- disabled: o.disabled || o.min != null && o.modelValue != null && o.modelValue <= o.min,
133
- onClick: t[2] ||= (e) => P(-1)
134
- }, " − ", 8, y)])) : o.showButtons ? (l(), i("button", {
141
+ "aria-label": p(D).decrease,
142
+ disabled: c.disabled || c.min != null && c.modelValue != null && c.modelValue <= c.min,
143
+ onClick: n[2] ||= (e) => I(-1)
144
+ }, [s(e, {
145
+ name: "minus",
146
+ size: "sm"
147
+ })], 8, x)])) : c.showButtons ? (d(), a("button", {
135
148
  key: 3,
136
149
  class: "wi-inputnumber__button wi-inputnumber__button--increment",
137
150
  type: "button",
138
- "aria-label": d(T).increase,
139
- disabled: o.disabled || o.max != null && o.modelValue != null && o.modelValue >= o.max,
140
- onClick: t[3] ||= (e) => P(1)
141
- }, " + ", 8, b)) : r("", !0)
151
+ "aria-label": p(D).increase,
152
+ disabled: c.disabled || c.max != null && c.modelValue != null && c.modelValue >= c.max,
153
+ onClick: n[3] ||= (e) => I(1)
154
+ }, [s(e, {
155
+ name: "plus",
156
+ size: "sm"
157
+ })], 8, S)) : i("", !0)
142
158
  ], 2)], 2));
143
159
  }
144
160
  });
145
161
  //#endregion
146
- export { x as WiInputNumber };
162
+ export { C as WiInputNumber };
@@ -480,8 +480,8 @@
480
480
  font-size: var(--wi-font-size-xs);
481
481
  }
482
482
 
483
- .wi-textarea-field__help--error,
484
- .wi-select-field__help--error {
483
+ .wi-textarea-field__help--invalid,
484
+ .wi-select-field__help--invalid {
485
485
  color: var(--wi-color-danger);
486
486
  }
487
487
 
@@ -500,9 +500,8 @@
500
500
  }
501
501
 
502
502
  .wi-textarea--invalid:focus-visible,
503
- .wi-textarea--error:focus-visible,
504
- .wi-select--error.wi-select--open,
505
- .wi-select--error:focus-visible {
503
+ .wi-select--invalid.wi-select--open,
504
+ .wi-select--invalid:focus-visible {
506
505
  border-color: var(--wi-color-danger);
507
506
  box-shadow: var(--wi-focus-shadow-danger);
508
507
  }
@@ -750,6 +749,45 @@
750
749
  line-height: 1;
751
750
  }
752
751
 
752
+ .wi-icon {
753
+ display: inline-flex;
754
+ height: 1rem;
755
+ width: 1rem;
756
+ }
757
+
758
+ .wi-icon svg {
759
+ height: 100%;
760
+ width: 100%;
761
+ }
762
+
763
+ .wi-icon--sm,
764
+ .wi-icon--small {
765
+ height: 0.875rem;
766
+ width: 0.875rem;
767
+ }
768
+
769
+ .wi-icon--md,
770
+ .wi-icon--normal {
771
+ height: 1rem;
772
+ width: 1rem;
773
+ }
774
+
775
+ .wi-icon--lg,
776
+ .wi-icon--large {
777
+ height: 1.25rem;
778
+ width: 1.25rem;
779
+ }
780
+
781
+ .wi-icon--spin svg {
782
+ animation: wi-icon-spin 0.8s linear infinite;
783
+ }
784
+
785
+ @keyframes wi-icon-spin {
786
+ to {
787
+ transform: rotate(360deg);
788
+ }
789
+ }
790
+
753
791
  /* —— Form: InputNumber —— */
754
792
  .wi-inputnumber-field {
755
793
  display: grid;
@@ -1,3 +1,4 @@
1
1
  import '../theme/styles.css'
2
2
  import '../styles/base.css'
3
+ import '../components/Icon/styles.css'
3
4
  import '../components/InputNumber/styles.css'