@well-insight/ui 0.1.10 → 0.1.11

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 (320) hide show
  1. package/CHANGELOG.md +50 -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/accordion/style.css +4 -5
  8. package/dist/auto-complete/index.js +106 -99
  9. package/dist/auto-complete/style.css +4 -5
  10. package/dist/avatar/index.js +1 -1
  11. package/dist/avatar/style.css +4 -5
  12. package/dist/badge/style.css +4 -5
  13. package/dist/block-ui/style.css +4 -5
  14. package/dist/breadcrumb/index.js +1 -1
  15. package/dist/breadcrumb/style.css +4 -5
  16. package/dist/button/index.js +1 -1
  17. package/dist/button/style.css +4 -5
  18. package/dist/card/style.css +4 -5
  19. package/dist/carousel/index.js +61 -54
  20. package/dist/carousel/style.css +43 -5
  21. package/dist/carousel/style.js +1 -0
  22. package/dist/cascade-select/index.js +143 -76
  23. package/dist/cascade-select/style.css +76 -10
  24. package/dist/cascade-select/style.js +1 -0
  25. package/dist/checkbox/index.js +1 -1
  26. package/dist/checkbox/style.css +4 -5
  27. package/dist/chip/index.js +32 -29
  28. package/dist/chip/style.css +4 -5
  29. package/dist/command-menu/index.js +2 -2
  30. package/dist/command-menu/style.css +4 -5
  31. package/dist/components/AutoComplete/AutoComplete.vue.d.ts +2 -0
  32. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  33. package/dist/components/AutoComplete/types.d.ts +1 -0
  34. package/dist/components/AutoComplete/types.d.ts.map +1 -1
  35. package/dist/components/Button/Button.vue.d.ts +0 -1
  36. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  37. package/dist/components/Button/types.d.ts +0 -2
  38. package/dist/components/Button/types.d.ts.map +1 -1
  39. package/dist/components/Carousel/Carousel.vue.d.ts +2 -2
  40. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  41. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +6 -0
  42. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  43. package/dist/components/CascadeSelect/styles.css +33 -5
  44. package/dist/components/CascadeSelect/types.d.ts +11 -0
  45. package/dist/components/CascadeSelect/types.d.ts.map +1 -1
  46. package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
  47. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  48. package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
  49. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
  50. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  51. package/dist/components/DatePicker/styles.css +33 -8
  52. package/dist/components/DatePicker/types.d.ts +1 -0
  53. package/dist/components/DatePicker/types.d.ts.map +1 -1
  54. package/dist/components/Dialog/Dialog.vue.d.ts +3 -3
  55. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  56. package/dist/components/Divider/types.d.ts +0 -5
  57. package/dist/components/Divider/types.d.ts.map +1 -1
  58. package/dist/components/Drawer/Drawer.vue.d.ts +2 -2
  59. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  60. package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
  61. package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
  62. package/dist/components/Fieldset/Fieldset.vue.d.ts +4 -4
  63. package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
  64. package/dist/components/FileUpload/styles.css +2 -2
  65. package/dist/components/FloatLabel/FloatLabel.vue.d.ts.map +1 -1
  66. package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
  67. package/dist/components/Icon/icons.d.ts +32 -0
  68. package/dist/components/Icon/icons.d.ts.map +1 -1
  69. package/dist/components/Input/Input.vue.d.ts +0 -1
  70. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  71. package/dist/components/Input/styles.css +3 -5
  72. package/dist/components/Input/types.d.ts +1 -3
  73. package/dist/components/Input/types.d.ts.map +1 -1
  74. package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
  75. package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
  76. package/dist/components/InputPassword/InputPassword.vue.d.ts +4 -4
  77. package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
  78. package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
  79. package/dist/components/Layout/Layout.vue.d.ts +1 -4
  80. package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
  81. package/dist/components/Layout/LayoutContent.vue.d.ts +1 -4
  82. package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
  83. package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -1
  84. package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -1
  85. package/dist/components/Layout/LayoutSider.vue.d.ts +1 -4
  86. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  87. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +9 -0
  88. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -0
  89. package/dist/components/Layout/composables/useLayoutScroll.d.ts +6 -0
  90. package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -0
  91. package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts +16 -0
  92. package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts.map +1 -0
  93. package/dist/components/Layout/styles.css +19 -49
  94. package/dist/components/Layout/types.d.ts +0 -22
  95. package/dist/components/Layout/types.d.ts.map +1 -1
  96. package/dist/components/Layout/utils.d.ts +3 -0
  97. package/dist/components/Layout/utils.d.ts.map +1 -0
  98. package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
  99. package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
  100. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  101. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  102. package/dist/components/Panel/Panel.vue.d.ts +3 -3
  103. package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
  104. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  105. package/dist/components/Popover/styles.css +41 -0
  106. package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
  107. package/dist/components/Rating/styles.css +28 -23
  108. package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
  109. package/dist/components/Select/Select.vue.d.ts +1 -1
  110. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  111. package/dist/components/Select/styles.css +8 -108
  112. package/dist/components/Select/types.d.ts +3 -3
  113. package/dist/components/Select/types.d.ts.map +1 -1
  114. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  115. package/dist/components/Slider/types.d.ts +2 -0
  116. package/dist/components/Slider/types.d.ts.map +1 -1
  117. package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
  118. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  119. package/dist/components/Table/Table.vue.d.ts +9 -9
  120. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  121. package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
  122. package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
  123. package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
  124. package/dist/components/Terminal/styles.css +8 -8
  125. package/dist/components/Textarea/Textarea.vue.d.ts +0 -2
  126. package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
  127. package/dist/components/Textarea/styles.css +1 -2
  128. package/dist/components/Textarea/types.d.ts +1 -5
  129. package/dist/components/Textarea/types.d.ts.map +1 -1
  130. package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
  131. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  132. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  133. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  134. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
  135. package/dist/components/TreeSelect/styles.css +21 -12
  136. package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +1 -1
  137. package/dist/{config-DWwce9jA.js → config-CTLkobga.js} +1 -0
  138. package/dist/config-provider/index.js +1 -1
  139. package/dist/config-provider/style.css +7 -10
  140. package/dist/confirm-dialog/index.js +4 -4
  141. package/dist/confirm-dialog/style.css +4 -5
  142. package/dist/confirm-popup/index.js +62 -77
  143. package/dist/confirm-popup/style.css +4 -5
  144. package/dist/context-menu/index.js +69 -61
  145. package/dist/context-menu/style.css +4 -5
  146. package/dist/data-view/index.js +1 -1
  147. package/dist/data-view/style.css +4 -5
  148. package/dist/date-picker/index.js +144 -137
  149. package/dist/date-picker/style.css +76 -13
  150. package/dist/date-picker/style.js +1 -0
  151. package/dist/dialog/index.js +76 -70
  152. package/dist/dialog/style.css +4 -5
  153. package/dist/divider/index.js +1 -2
  154. package/dist/divider/style.css +4 -5
  155. package/dist/dock/style.css +4 -5
  156. package/dist/drawer/index.js +49 -45
  157. package/dist/drawer/style.css +43 -5
  158. package/dist/drawer/style.js +1 -0
  159. package/dist/dropdown/index.js +98 -97
  160. package/dist/dropdown/style.css +4 -5
  161. package/dist/fieldset/index.js +16 -12
  162. package/dist/fieldset/style.css +43 -5
  163. package/dist/fieldset/style.js +1 -0
  164. package/dist/file-upload/index.js +2 -2
  165. package/dist/file-upload/style.css +6 -7
  166. package/dist/flex/index.js +1 -1
  167. package/dist/flex/style.css +4 -5
  168. package/dist/float-label/index.js +15 -4
  169. package/dist/float-label/style.css +4 -5
  170. package/dist/fluid/style.css +4 -5
  171. package/dist/form/index.js +1 -1
  172. package/dist/form/style.css +4 -5
  173. package/dist/gallery/index.js +41 -34
  174. package/dist/gallery/style.css +43 -5
  175. package/dist/gallery/style.js +1 -0
  176. package/dist/grid/style.css +4 -5
  177. package/dist/icon/index.js +1 -1
  178. package/dist/icon/style.css +4 -5
  179. package/dist/icon-Cg5TeFqe.js +7 -0
  180. package/dist/icon-field/style.css +4 -5
  181. package/dist/index.js +2783 -2643
  182. package/dist/inplace/style.css +4 -5
  183. package/dist/input/index.js +65 -66
  184. package/dist/input/style.css +46 -10
  185. package/dist/input/style.js +1 -0
  186. package/dist/input-color/index.js +1 -1
  187. package/dist/input-color/style.css +4 -5
  188. package/dist/input-group/style.css +4 -5
  189. package/dist/input-number/index.js +82 -66
  190. package/dist/input-number/style.css +43 -5
  191. package/dist/input-number/style.js +1 -0
  192. package/dist/input-otp/index.js +3 -3
  193. package/dist/input-otp/style.css +4 -5
  194. package/dist/input-password/index.js +46 -43
  195. package/dist/input-password/style.css +4 -5
  196. package/dist/input-tags/index.js +50 -46
  197. package/dist/input-tags/style.css +43 -5
  198. package/dist/input-tags/style.js +1 -0
  199. package/dist/key-CaQYVkjh.js +6 -0
  200. package/dist/knob/style.css +4 -5
  201. package/dist/label/style.css +4 -5
  202. package/dist/layout/index.js +196 -271
  203. package/dist/layout/style.css +48 -140
  204. package/dist/layout/style.js +1 -1
  205. package/dist/listbox/index.js +1 -1
  206. package/dist/listbox/style.css +4 -5
  207. package/dist/locale/en-US.d.ts.map +1 -1
  208. package/dist/locale/types.d.ts +1 -0
  209. package/dist/locale/types.d.ts.map +1 -1
  210. package/dist/locale/zh-CN.d.ts.map +1 -1
  211. package/dist/{locale-CYkJyRd1.js → locale-DxAvgqgB.js} +1 -1
  212. package/dist/mega-menu/index.js +47 -49
  213. package/dist/mega-menu/style.css +4 -5
  214. package/dist/menu/index.js +81 -76
  215. package/dist/menu/style.css +4 -5
  216. package/dist/menubar/index.js +75 -73
  217. package/dist/menubar/style.css +4 -5
  218. package/dist/message/index.js +3 -3
  219. package/dist/message/style.css +4 -5
  220. package/dist/meter-group/style.css +4 -5
  221. package/dist/order-list/index.js +2 -2
  222. package/dist/order-list/style.css +4 -5
  223. package/dist/overlayPlacement-CN1tuC95.js +51 -0
  224. package/dist/pagination/index.js +1 -1
  225. package/dist/pagination/style.css +43 -5
  226. package/dist/pagination/style.js +1 -0
  227. package/dist/panel/index.js +27 -23
  228. package/dist/panel/style.css +43 -5
  229. package/dist/panel/style.js +1 -0
  230. package/dist/pick-list/index.js +2 -2
  231. package/dist/pick-list/style.css +4 -5
  232. package/dist/popover/index.js +79 -100
  233. package/dist/popover/style.css +45 -5
  234. package/dist/progress-bar/style.css +4 -5
  235. package/dist/progress-spinner/index.js +1 -1
  236. package/dist/progress-spinner/style.css +4 -5
  237. package/dist/radio/index.js +1 -1
  238. package/dist/radio/style.css +4 -5
  239. package/dist/rating/index.js +54 -44
  240. package/dist/rating/style.css +71 -28
  241. package/dist/rating/style.js +1 -0
  242. package/dist/scroll-top/index.js +45 -41
  243. package/dist/scroll-top/style.css +43 -5
  244. package/dist/scroll-top/style.js +1 -0
  245. package/dist/scrollbar/index.js +382 -2
  246. package/dist/scrollbar/style.css +4 -5
  247. package/dist/select/index.js +149 -141
  248. package/dist/select/style.css +51 -113
  249. package/dist/select/style.js +1 -0
  250. package/dist/select-button/index.js +1 -1
  251. package/dist/select-button/style.css +4 -5
  252. package/dist/shared/componentDefaults.d.ts +5 -1
  253. package/dist/shared/componentDefaults.d.ts.map +1 -1
  254. package/dist/shared/menu/icon.d.ts +4 -0
  255. package/dist/shared/menu/icon.d.ts.map +1 -0
  256. package/dist/shared/menu/index.d.ts +4 -0
  257. package/dist/shared/menu/index.d.ts.map +1 -0
  258. package/dist/shared/menu/key.d.ts +4 -0
  259. package/dist/shared/menu/key.d.ts.map +1 -0
  260. package/dist/shared/menu/types.d.ts +11 -0
  261. package/dist/shared/menu/types.d.ts.map +1 -0
  262. package/dist/shared/overlayPlacement.d.ts +12 -0
  263. package/dist/shared/overlayPlacement.d.ts.map +1 -0
  264. package/dist/sidebar/index.js +1 -1
  265. package/dist/sidebar/style.css +4 -5
  266. package/dist/skeleton/style.css +4 -5
  267. package/dist/slider/index.js +6 -3
  268. package/dist/slider/style.css +4 -5
  269. package/dist/space/index.js +1 -1
  270. package/dist/space/style.css +4 -5
  271. package/dist/speed-dial/index.js +55 -66
  272. package/dist/speed-dial/style.css +43 -5
  273. package/dist/speed-dial/style.js +1 -0
  274. package/dist/split-button/index.js +66 -63
  275. package/dist/split-button/style.css +43 -5
  276. package/dist/split-button/style.js +1 -0
  277. package/dist/splitter/index.js +1 -1
  278. package/dist/splitter/style.css +4 -5
  279. package/dist/stepper/style.css +4 -5
  280. package/dist/styles/base.css +4 -5
  281. package/dist/styles.css +1 -1
  282. package/dist/switch/index.js +1 -1
  283. package/dist/switch/style.css +4 -5
  284. package/dist/table/index.js +41 -35
  285. package/dist/table/style.css +4 -5
  286. package/dist/tabs/index.js +78 -65
  287. package/dist/tabs/style.css +43 -5
  288. package/dist/tabs/style.js +1 -0
  289. package/dist/tag/index.js +31 -28
  290. package/dist/tag/style.css +4 -5
  291. package/dist/terminal/index.js +1 -1
  292. package/dist/terminal/style.css +12 -13
  293. package/dist/textarea/index.js +69 -75
  294. package/dist/textarea/style.css +44 -7
  295. package/dist/textarea/style.js +1 -0
  296. package/dist/tiered-menu/index.js +66 -59
  297. package/dist/tiered-menu/style.css +43 -5
  298. package/dist/tiered-menu/style.js +1 -0
  299. package/dist/timeline/index.js +1 -1
  300. package/dist/timeline/style.css +4 -5
  301. package/dist/toast/index.js +93 -89
  302. package/dist/toast/style.css +43 -5
  303. package/dist/toast/style.js +1 -0
  304. package/dist/toggle-button/index.js +1 -1
  305. package/dist/toggle-button/style.css +4 -5
  306. package/dist/toolbar/style.css +4 -5
  307. package/dist/tooltip/index.js +47 -71
  308. package/dist/tooltip/style.css +4 -5
  309. package/dist/tree/index.js +3 -3
  310. package/dist/tree/style.css +4 -5
  311. package/dist/tree-select/index.js +164 -155
  312. package/dist/tree-select/style.css +64 -17
  313. package/dist/tree-select/style.js +1 -0
  314. package/dist/tree-table/index.js +34 -30
  315. package/dist/tree-table/style.css +43 -5
  316. package/dist/tree-table/style.js +1 -0
  317. package/dist/virtual-scroller/style.css +4 -5
  318. package/package.json +4 -1
  319. package/dist/Pagination-BU-1IY0E.js +0 -148
  320. package/dist/Scrollbar-D-bR2noX.js +0 -382
@@ -1,27 +1,29 @@
1
- import { n as e, t } from "../overlay-oR-5MDuE.js";
2
- import { c as n, o as r } from "../config-DWwce9jA.js";
3
- import { n as i, t as a } from "../locale-CYkJyRd1.js";
1
+ import { t as e } from "../Icon-DHGs8l-M.js";
2
+ import { n as t, t as n } from "../overlay-oR-5MDuE.js";
3
+ import { t as r } from "../overlayPlacement-CN1tuC95.js";
4
+ import { c as i, o as a } from "../config-CTLkobga.js";
5
+ import { n as o, t as s } from "../locale-DxAvgqgB.js";
4
6
  import "./style.js";
5
- import { Fragment as o, Teleport as s, Transition as c, computed as l, createBlock as ee, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as te, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as ne, onBeforeUnmount as re, openBlock as g, ref as _, renderList as v, toDisplayString as y, unref as b, watch as ie, withCtx as ae, withKeys as x, withModifiers as S } from "vue";
7
+ import { Fragment as c, Teleport as ee, Transition as te, computed as l, createBlock as ne, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, nextTick as h, normalizeClass as g, normalizeStyle as re, onBeforeUnmount as ie, openBlock as _, ref as v, renderList as y, toDisplayString as b, unref as x, watch as ae, withCtx as oe, withKeys as S, withModifiers as C } from "vue";
6
8
  //#region src/components/DatePicker/DatePicker.vue?vue&type=script&setup=true&lang.ts
7
- var oe = {
9
+ var se = {
8
10
  key: 0,
9
11
  class: "wi-datepicker__label"
10
- }, se = [
12
+ }, ce = [
11
13
  "value",
12
14
  "placeholder",
13
15
  "disabled",
14
16
  "aria-invalid",
15
17
  "aria-expanded",
16
18
  "onKeydown"
17
- ], ce = ["aria-label", "disabled"], le = ["aria-label"], ue = {
19
+ ], le = ["aria-label", "disabled"], ue = ["aria-label"], de = {
18
20
  key: 0,
19
21
  class: "wi-datepicker__shortcuts"
20
- }, de = ["onClick"], fe = { class: "wi-datepicker__calendar" }, pe = { class: "wi-datepicker__header" }, me = ["aria-label"], he = { class: "wi-datepicker__month" }, ge = ["aria-label"], _e = { class: "wi-datepicker__weekdays" }, ve = { class: "wi-datepicker__grid" }, ye = [
22
+ }, fe = ["onClick"], pe = { class: "wi-datepicker__calendar" }, me = { class: "wi-datepicker__header" }, he = ["aria-label"], ge = { class: "wi-datepicker__month" }, _e = ["aria-label"], ve = { class: "wi-datepicker__weekdays" }, ye = { class: "wi-datepicker__grid" }, be = [
21
23
  "disabled",
22
24
  "onClick",
23
25
  "onMouseenter"
24
- ], C = /* @__PURE__ */ p({
26
+ ], w = /* @__PURE__ */ m({
25
27
  __name: "DatePicker",
26
28
  props: {
27
29
  modelValue: { default: null },
@@ -55,10 +57,10 @@ var oe = {
55
57
  },
56
58
  appendTo: {}
57
59
  },
58
- emits: ["update:modelValue"],
59
- setup(p, { emit: C }) {
60
- let w = p, T = C, E = n(), D = i(), be = r("DatePicker", () => w.size), O = _(!1), k = _(null), A = _(null), j = _(null), M = _({}), N = _((/* @__PURE__ */ new Date()).getFullYear()), P = _((/* @__PURE__ */ new Date()).getMonth()), F = _(null), I = _(null), L = l(() => e(w, E.value.appendTo)), R = l(() => t(w, E.value.appendTo)), z = l(() => w.type === "daterange");
61
- function B(e) {
60
+ emits: ["update:modelValue", "clear"],
61
+ setup(m, { emit: w }) {
62
+ let T = m, E = w, D = i(), O = o(), xe = a("DatePicker", () => T.size), k = v(!1), A = v(null), j = v(null), M = v(null), N = v({}), P = v((/* @__PURE__ */ new Date()).getFullYear()), F = v((/* @__PURE__ */ new Date()).getMonth()), I = v(null), L = v(null), R = l(() => t(T, D.value.appendTo)), z = l(() => n(T, D.value.appendTo)), B = l(() => T.type === "daterange");
63
+ function V(e) {
62
64
  if (e == null || e === "") return null;
63
65
  if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : e;
64
66
  let t = /^(\d{4})-(\d{2})-(\d{2})/.exec(e);
@@ -66,49 +68,49 @@ var oe = {
66
68
  let n = new Date(e);
67
69
  return Number.isNaN(n.getTime()) ? null : n;
68
70
  }
69
- function V(e) {
70
- return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
71
- }
72
71
  function H(e) {
73
- return w.format.replaceAll("YYYY", String(e.getFullYear())).replaceAll("MM", String(e.getMonth() + 1).padStart(2, "0")).replaceAll("DD", String(e.getDate()).padStart(2, "0"));
72
+ return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
74
73
  }
75
74
  function U(e) {
75
+ return T.format.replaceAll("YYYY", String(e.getFullYear())).replaceAll("MM", String(e.getMonth() + 1).padStart(2, "0")).replaceAll("DD", String(e.getDate()).padStart(2, "0"));
76
+ }
77
+ function W(e) {
76
78
  return new Date(e.getFullYear(), e.getMonth(), e.getDate());
77
79
  }
78
- function xe(e) {
80
+ function Se(e) {
79
81
  if (e == null || e === "") return {
80
82
  start: null,
81
83
  end: null
82
84
  };
83
85
  if (Array.isArray(e)) return {
84
- start: B(e[0]),
85
- end: B(e[1])
86
+ start: V(e[0]),
87
+ end: V(e[1])
86
88
  };
87
- let t = B(e);
89
+ let t = V(e);
88
90
  return {
89
91
  start: t,
90
92
  end: t
91
93
  };
92
94
  }
93
- let W = l(() => xe(w.modelValue)), G = l(() => B(w.minDate)), K = l(() => B(w.maxDate)), q = l(() => {
94
- let { start: e, end: t } = W.value;
95
- return e ? !z.value || !t ? H(e) : `${H(e)} – ${H(t)}` : "";
96
- }), Se = l(() => w.placeholder ?? (z.value ? D.value.dateRangePlaceholder : D.value.datePickerPlaceholder)), Ce = l(() => a(D.value.monthYear, {
97
- year: N.value,
98
- month: P.value + 1,
99
- monthName: D.value.monthNames[P.value] ?? String(P.value + 1)
95
+ let G = l(() => Se(T.modelValue)), K = l(() => V(T.minDate)), q = l(() => V(T.maxDate)), J = l(() => {
96
+ let { start: e, end: t } = G.value;
97
+ return e ? !B.value || !t ? U(e) : `${U(e)} – ${U(t)}` : "";
98
+ }), Ce = l(() => T.placeholder ?? (B.value ? O.value.dateRangePlaceholder : O.value.datePickerPlaceholder)), we = l(() => s(O.value.monthYear, {
99
+ year: P.value,
100
+ month: F.value + 1,
101
+ monthName: O.value.monthNames[F.value] ?? String(F.value + 1)
100
102
  }));
101
- function we() {
102
- let e = F.value ?? W.value.start, t = F.value ? I.value ?? F.value : W.value.end;
103
+ function Te() {
104
+ let e = I.value ?? G.value.start, t = I.value ? L.value ?? I.value : G.value.end;
103
105
  if (!e) return {
104
106
  start: null,
105
107
  end: null
106
108
  };
107
109
  if (!t) return {
108
- start: U(e),
109
- end: U(e)
110
+ start: W(e),
111
+ end: W(e)
110
112
  };
111
- let n = U(e), r = U(t);
113
+ let n = W(e), r = W(t);
112
114
  return n.getTime() <= r.getTime() ? {
113
115
  start: n,
114
116
  end: r
@@ -117,23 +119,23 @@ var oe = {
117
119
  end: n
118
120
  };
119
121
  }
120
- let Te = l(() => {
121
- let e = new Date(N.value, P.value, 1).getDay(), t = new Date(N.value, P.value + 1, 0).getDate(), n = [];
122
+ let Ee = l(() => {
123
+ let e = new Date(P.value, F.value, 1).getDay(), t = new Date(P.value, F.value + 1, 0).getDate(), n = [];
122
124
  for (let t = 0; t < e; t++) {
123
- let r = new Date(N.value, P.value, -e + t + 1);
124
- n.push(J(r, !1));
125
+ let r = new Date(P.value, F.value, -e + t + 1);
126
+ n.push(Y(r, !1));
125
127
  }
126
- for (let e = 1; e <= t; e++) n.push(J(new Date(N.value, P.value, e), !0));
128
+ for (let e = 1; e <= t; e++) n.push(Y(new Date(P.value, F.value, e), !0));
127
129
  for (; n.length % 7 != 0 || n.length < 42;) {
128
130
  let e = n[n.length - 1].date, t = new Date(e.getFullYear(), e.getMonth(), e.getDate() + 1);
129
- n.push(J(t, !1));
131
+ n.push(Y(t, !1));
130
132
  }
131
133
  return n;
132
134
  });
133
- function J(e, t) {
134
- let n = U(e), r = !1;
135
- G.value && n < U(G.value) && (r = !0), K.value && n > U(K.value) && (r = !0);
136
- let i = we(), a = n.getTime(), o = !!(i.start && a === i.start.getTime()), s = !!(i.end && a === i.end.getTime()), c = !!(z.value && i.start && i.end && a > i.start.getTime() && a < i.end.getTime());
135
+ function Y(e, t) {
136
+ let n = W(e), r = !1;
137
+ K.value && n < W(K.value) && (r = !0), q.value && n > W(q.value) && (r = !0);
138
+ let i = Te(), a = n.getTime(), o = !!(i.start && a === i.start.getTime()), s = !!(i.end && a === i.end.getTime()), c = !!(B.value && i.start && i.end && a > i.start.getTime() && a < i.end.getTime());
137
139
  return {
138
140
  date: n,
139
141
  inMonth: t,
@@ -144,158 +146,163 @@ var oe = {
144
146
  rangeEnd: s
145
147
  };
146
148
  }
147
- let Ee = l(() => [
149
+ let De = l(() => [
148
150
  "wi-datepicker",
149
- `wi-datepicker--${be.value}`,
151
+ `wi-datepicker--${xe.value}`,
150
152
  {
151
- "wi-datepicker--fluid": w.fluid,
152
- "wi-datepicker--disabled": w.disabled,
153
- "wi-datepicker--invalid": w.invalid,
154
- "wi-datepicker--open": O.value,
155
- "wi-datepicker--range": z.value
153
+ "wi-datepicker--fluid": T.fluid,
154
+ "wi-datepicker--disabled": T.disabled,
155
+ "wi-datepicker--invalid": T.invalid,
156
+ "wi-datepicker--open": k.value,
157
+ "wi-datepicker--range": B.value
156
158
  }
157
159
  ]);
158
- function De() {
159
- let e = W.value.start ?? /* @__PURE__ */ new Date();
160
- N.value = e.getFullYear(), P.value = e.getMonth();
160
+ function Oe() {
161
+ let e = G.value.start ?? /* @__PURE__ */ new Date();
162
+ P.value = e.getFullYear(), F.value = e.getMonth();
161
163
  }
162
- function Y() {
163
- if (!R.value || !A.value) return;
164
- let e = A.value.getBoundingClientRect();
165
- M.value = {
166
- left: `${e.left}px`,
167
- minWidth: `${e.width}px`,
168
- top: `${e.bottom + 8}px`
169
- };
164
+ function ke() {
165
+ if (!z.value || !j.value) return;
166
+ let e = j.value.getBoundingClientRect();
167
+ N.value = r(e, "bottom-start", { minWidth: `${e.width}px` });
170
168
  }
171
- function Oe(e) {
172
- w.disabled || (O.value = e, e && (F.value = null, I.value = null, De(), m(() => Y())));
169
+ function Ae(e) {
170
+ T.disabled || (k.value = e, e && (I.value = null, L.value = null, Oe(), h(() => ke())));
173
171
  }
174
172
  function X() {
175
- Oe(!O.value);
173
+ Ae(!k.value);
176
174
  }
177
- function ke() {
178
- P.value === 0 ? (P.value = 11, --N.value) : --P.value;
175
+ function je() {
176
+ F.value === 0 ? (F.value = 11, --P.value) : --F.value;
179
177
  }
180
- function Ae() {
181
- P.value === 11 ? (P.value = 0, N.value += 1) : P.value += 1;
178
+ function Me() {
179
+ F.value === 11 ? (F.value = 0, P.value += 1) : F.value += 1;
182
180
  }
183
- function je(e, t) {
184
- if (t || w.disabled) return;
185
- if (!z.value) {
186
- T("update:modelValue", V(e)), O.value = !1;
181
+ function Ne(e, t) {
182
+ if (t || T.disabled) return;
183
+ if (!B.value) {
184
+ E("update:modelValue", H(e)), k.value = !1;
187
185
  return;
188
186
  }
189
- if (!F.value) {
190
- F.value = e, I.value = e;
187
+ if (!I.value) {
188
+ I.value = e, L.value = e;
191
189
  return;
192
190
  }
193
- let n = F.value, r = e, [i, a] = n.getTime() <= r.getTime() ? [n, r] : [r, n];
194
- T("update:modelValue", [V(i), V(a)]), F.value = null, I.value = null, O.value = !1;
191
+ let n = I.value, r = e, [i, a] = n.getTime() <= r.getTime() ? [n, r] : [r, n];
192
+ E("update:modelValue", [H(i), H(a)]), I.value = null, L.value = null, k.value = !1;
195
193
  }
196
- function Me(e) {
197
- if (w.disabled) return;
194
+ function Pe(e) {
195
+ if (T.disabled) return;
198
196
  let t = typeof e.value == "function" ? e.value() : e.value;
199
197
  if (Array.isArray(t)) {
200
- let e = B(t[0]), n = B(t[1]);
198
+ let e = V(t[0]), n = V(t[1]);
201
199
  if (!e || !n) return;
202
200
  let [r, i] = e.getTime() <= n.getTime() ? [e, n] : [n, e];
203
- T("update:modelValue", z.value ? [V(r), V(i)] : V(r));
201
+ E("update:modelValue", B.value ? [H(r), H(i)] : H(r));
204
202
  } else {
205
- let e = B(t);
203
+ let e = V(t);
206
204
  if (!e) return;
207
- T("update:modelValue", z.value ? [V(e), V(e)] : V(e));
205
+ E("update:modelValue", B.value ? [H(e), H(e)] : H(e));
208
206
  }
209
- O.value = !1;
207
+ k.value = !1;
210
208
  }
211
- function Ne() {
212
- w.disabled || !w.clearable || T("update:modelValue", null);
209
+ function Fe() {
210
+ T.disabled || !T.clearable || (E("update:modelValue", null), E("clear"));
213
211
  }
214
212
  function Z(e) {
215
213
  let t = e.target;
216
- k.value?.contains(t) || j.value?.contains(t) || (O.value = !1);
214
+ A.value?.contains(t) || M.value?.contains(t) || (k.value = !1);
217
215
  }
218
216
  function Q(e) {
219
- e.key === "Escape" && (O.value = !1);
217
+ e.key === "Escape" && (k.value = !1);
220
218
  }
221
219
  function $() {
222
- O.value && Y();
220
+ k.value && ke();
223
221
  }
224
- return ie(O, async (e) => {
225
- e ? (document.addEventListener("click", Z), document.addEventListener("keydown", Q), R.value && (window.addEventListener("resize", $), window.addEventListener("scroll", $, !0)), await m()) : (document.removeEventListener("click", Z), document.removeEventListener("keydown", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0));
226
- }), re(() => {
222
+ return ae(k, async (e) => {
223
+ e ? (document.addEventListener("click", Z), document.addEventListener("keydown", Q), z.value && (window.addEventListener("resize", $), window.addEventListener("scroll", $, !0)), await h()) : (document.removeEventListener("click", Z), document.removeEventListener("keydown", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0));
224
+ }), ie(() => {
227
225
  document.removeEventListener("click", Z), document.removeEventListener("keydown", Q), window.removeEventListener("resize", $), window.removeEventListener("scroll", $, !0);
228
- }), (e, t) => (g(), d("div", {
226
+ }), (t, n) => (_(), d("div", {
229
227
  ref_key: "root",
230
- ref: k,
231
- class: h(Ee.value)
228
+ ref: A,
229
+ class: g(De.value)
232
230
  }, [
233
- p.label ? (g(), d("label", oe, y(p.label), 1)) : u("", !0),
231
+ m.label ? (_(), d("label", se, b(m.label), 1)) : u("", !0),
234
232
  f("div", {
235
233
  ref_key: "triggerEl",
236
- ref: A,
234
+ ref: j,
237
235
  class: "wi-datepicker__control"
238
236
  }, [f("input", {
239
237
  class: "wi-datepicker__input",
240
238
  type: "text",
241
239
  readonly: "",
242
- value: q.value,
243
- placeholder: Se.value,
244
- disabled: p.disabled,
245
- "aria-invalid": p.invalid || void 0,
246
- "aria-expanded": O.value,
240
+ value: J.value,
241
+ placeholder: Ce.value,
242
+ disabled: m.disabled,
243
+ "aria-invalid": m.invalid || void 0,
244
+ "aria-expanded": k.value,
247
245
  "aria-haspopup": "dialog",
248
246
  onClick: X,
249
- onKeydown: [x(S(X, ["prevent"]), ["enter"]), x(S(X, ["prevent"]), ["space"])]
250
- }, null, 40, se), p.clearable && q.value ? (g(), d("button", {
247
+ onKeydown: [S(C(X, ["prevent"]), ["enter"]), S(C(X, ["prevent"]), ["space"])]
248
+ }, null, 40, ce), m.clearable && J.value ? (_(), d("button", {
251
249
  key: 0,
252
250
  type: "button",
253
251
  class: "wi-datepicker__clear",
254
- "aria-label": b(D).clearDate,
255
- disabled: p.disabled,
256
- onClick: S(Ne, ["stop"])
257
- }, " × ", 8, ce)) : u("", !0)], 512),
258
- (g(), ee(s, {
259
- to: L.value.to,
260
- disabled: L.value.disabled
261
- }, [te(c, { name: "wi-scale-fade" }, {
262
- default: ae(() => [O.value ? (g(), d("div", {
252
+ "aria-label": x(O).clearDate,
253
+ disabled: m.disabled,
254
+ onClick: C(Fe, ["stop"])
255
+ }, [p(e, {
256
+ name: "close",
257
+ size: "sm"
258
+ })], 8, le)) : u("", !0)], 512),
259
+ (_(), ne(ee, {
260
+ to: R.value.to,
261
+ disabled: R.value.disabled
262
+ }, [p(te, { name: "wi-scale-fade" }, {
263
+ default: oe(() => [k.value ? (_(), d("div", {
263
264
  key: 0,
264
265
  ref_key: "panel",
265
- ref: j,
266
- class: h(["wi-datepicker__panel", {
267
- "wi-datepicker__panel--teleported": R.value,
268
- "wi-datepicker__panel--with-shortcuts": p.shortcuts.length
266
+ ref: M,
267
+ class: g(["wi-datepicker__panel", {
268
+ "wi-datepicker__panel--teleported": z.value,
269
+ "wi-datepicker__panel--with-shortcuts": m.shortcuts.length
269
270
  }]),
270
- style: ne(R.value ? M.value : void 0),
271
+ style: re(z.value ? N.value : void 0),
271
272
  role: "dialog",
272
- "aria-label": b(D).datePicker
273
- }, [p.shortcuts.length ? (g(), d("div", ue, [(g(!0), d(o, null, v(p.shortcuts, (e) => (g(), d("button", {
273
+ "aria-label": x(O).datePicker
274
+ }, [m.shortcuts.length ? (_(), d("div", de, [(_(!0), d(c, null, y(m.shortcuts, (e) => (_(), d("button", {
274
275
  key: e.label,
275
276
  type: "button",
276
277
  class: "wi-datepicker__shortcut",
277
- onClick: (t) => Me(e)
278
- }, y(e.label), 9, de))), 128))])) : u("", !0), f("div", fe, [
279
- f("div", pe, [
278
+ onClick: (t) => Pe(e)
279
+ }, b(e.label), 9, fe))), 128))])) : u("", !0), f("div", pe, [
280
+ f("div", me, [
280
281
  f("button", {
281
282
  type: "button",
282
283
  class: "wi-datepicker__nav",
283
- "aria-label": b(D).prevMonth,
284
- onClick: ke
285
- }, " ‹ ", 8, me),
286
- f("span", he, y(Ce.value), 1),
284
+ "aria-label": x(O).prevMonth,
285
+ onClick: je
286
+ }, [p(e, {
287
+ name: "chevron-left",
288
+ size: "sm"
289
+ })], 8, he),
290
+ f("span", ge, b(we.value), 1),
287
291
  f("button", {
288
292
  type: "button",
289
293
  class: "wi-datepicker__nav",
290
- "aria-label": b(D).nextMonth,
291
- onClick: Ae
292
- }, " › ", 8, ge)
294
+ "aria-label": x(O).nextMonth,
295
+ onClick: Me
296
+ }, [p(e, {
297
+ name: "chevron-right",
298
+ size: "sm"
299
+ })], 8, _e)
293
300
  ]),
294
- f("div", _e, [(g(!0), d(o, null, v(b(D).weekdays, (e) => (g(), d("span", { key: e }, y(e), 1))), 128))]),
295
- f("div", ve, [(g(!0), d(o, null, v(Te.value, (e) => (g(), d("button", {
301
+ f("div", ve, [(_(!0), d(c, null, y(x(O).weekdays, (e) => (_(), d("span", { key: e }, b(e), 1))), 128))]),
302
+ f("div", ye, [(_(!0), d(c, null, y(Ee.value, (e) => (_(), d("button", {
296
303
  key: e.date.toISOString(),
297
304
  type: "button",
298
- class: h(["wi-datepicker__day", {
305
+ class: g(["wi-datepicker__day", {
299
306
  "wi-datepicker__day--other": !e.inMonth,
300
307
  "wi-datepicker__day--selected": e.selected,
301
308
  "wi-datepicker__day--in-range": e.inRange,
@@ -303,14 +310,14 @@ var oe = {
303
310
  "wi-datepicker__day--range-end": e.rangeEnd
304
311
  }]),
305
312
  disabled: e.disabled,
306
- onClick: (t) => je(e.date, e.disabled),
307
- onMouseenter: (t) => z.value && F.value && (I.value = e.date)
308
- }, y(e.date.getDate()), 43, ye))), 128))])
309
- ])], 14, le)) : u("", !0)]),
313
+ onClick: (t) => Ne(e.date, e.disabled),
314
+ onMouseenter: (t) => B.value && I.value && (L.value = e.date)
315
+ }, b(e.date.getDate()), 43, be))), 128))])
316
+ ])], 14, ue)) : u("", !0)]),
310
317
  _: 1
311
318
  })], 8, ["to", "disabled"]))
312
319
  ], 2));
313
320
  }
314
321
  });
315
322
  //#endregion
316
- export { C as WiDatePicker };
323
+ export { w as WiDatePicker };
@@ -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,13 +749,60 @@
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: DatePicker —— */
754
- .wi-datepicker {
755
- --wi-datepicker-input-affix-padding: var(--wi-control-affix-padding);
756
- --wi-datepicker-day-size: var(--wi-control-affix-size);
757
- --wi-datepicker-calendar-cell-size: 2rem;
792
+ .wi-datepicker,
793
+ .wi-datepicker__panel {
794
+ --wi-datepicker-calendar-cell-size: var(--wi-control-affix-size, 2rem);
795
+ --wi-datepicker-day-size: var(--wi-datepicker-calendar-cell-size);
758
796
  --wi-datepicker-grid-gap: 0.125rem;
797
+ --wi-datepicker-panel-min-width: calc(
798
+ 7 * var(--wi-datepicker-calendar-cell-size) + 6 *
799
+ var(--wi-datepicker-grid-gap) + 2 * var(--wi-space-3)
800
+ );
759
801
  --wi-datepicker-shortcuts-width: 6rem;
802
+ }
803
+
804
+ .wi-datepicker {
805
+ --wi-datepicker-input-end-padding: calc(var(--wi-space-2) + 1.25rem);
760
806
  display: inline-flex;
761
807
  flex-direction: column;
762
808
  gap: var(--wi-space-2);
@@ -789,7 +835,7 @@
789
835
  font: inherit;
790
836
  font-size: var(--wi-control-font-medium);
791
837
  min-height: var(--wi-control-height-medium);
792
- padding: 0 var(--wi-datepicker-input-affix-padding) 0
838
+ padding: 0 var(--wi-datepicker-input-end-padding) 0
793
839
  var(--wi-control-padding-x-medium);
794
840
  width: 100%;
795
841
  }
@@ -797,14 +843,14 @@
797
843
  .wi-datepicker--small .wi-datepicker__input {
798
844
  font-size: var(--wi-control-font-small);
799
845
  min-height: var(--wi-control-height-small);
800
- padding: 0 var(--wi-datepicker-input-affix-padding) 0
846
+ padding: 0 var(--wi-datepicker-input-end-padding) 0
801
847
  var(--wi-control-padding-x-small);
802
848
  }
803
849
 
804
850
  .wi-datepicker--large .wi-datepicker__input {
805
851
  font-size: var(--wi-control-font-large);
806
852
  min-height: var(--wi-control-height-large);
807
- padding: 0 var(--wi-datepicker-input-affix-padding) 0
853
+ padding: 0 var(--wi-datepicker-input-end-padding) 0
808
854
  var(--wi-control-padding-x-large);
809
855
  }
810
856
 
@@ -818,11 +864,14 @@
818
864
  }
819
865
 
820
866
  .wi-datepicker__clear {
867
+ align-items: center;
821
868
  background: transparent;
822
869
  border: 0;
823
870
  color: var(--wi-color-text-muted);
824
871
  cursor: pointer;
872
+ display: inline-flex;
825
873
  font: inherit;
874
+ justify-content: center;
826
875
  position: absolute;
827
876
  right: var(--wi-space-2);
828
877
  }
@@ -833,19 +882,26 @@
833
882
  border-radius: var(--wi-radius-md);
834
883
  box-shadow: var(--wi-shadow-md);
835
884
  margin-top: var(--wi-space-1);
885
+ min-width: max(100%, var(--wi-datepicker-panel-min-width));
836
886
  padding: var(--wi-space-3);
837
887
  position: absolute;
838
888
  top: 100%;
889
+ width: max-content;
839
890
  z-index: var(--wi-z-popper);
840
891
  }
841
892
 
842
893
  .wi-datepicker__panel--teleported {
843
894
  margin-top: 0;
895
+ min-width: var(--wi-datepicker-panel-min-width);
844
896
  position: fixed;
845
897
  top: auto;
846
898
  z-index: var(--wi-z-dropdown);
847
899
  }
848
900
 
901
+ .wi-datepicker__calendar {
902
+ flex: 0 0 auto;
903
+ }
904
+
849
905
  .wi-datepicker__header {
850
906
  align-items: center;
851
907
  display: flex;
@@ -858,12 +914,15 @@
858
914
  }
859
915
 
860
916
  .wi-datepicker__nav {
917
+ align-items: center;
861
918
  background: transparent;
862
919
  border: 0;
863
920
  border-radius: var(--wi-radius-sm);
864
921
  color: var(--wi-color-text);
865
922
  cursor: pointer;
923
+ display: inline-flex;
866
924
  font: inherit;
925
+ justify-content: center;
867
926
  line-height: 1;
868
927
  padding: var(--wi-space-1) var(--wi-space-2);
869
928
  }
@@ -880,7 +939,11 @@
880
939
  .wi-datepicker__grid {
881
940
  display: grid;
882
941
  gap: var(--wi-datepicker-grid-gap);
883
- grid-template-columns: repeat(7, var(--wi-datepicker-calendar-cell-size));
942
+ grid-template-columns: repeat(
943
+ 7,
944
+ var(--wi-datepicker-calendar-cell-size, var(--wi-control-affix-size, 2rem))
945
+ );
946
+ place-items: center;
884
947
  }
885
948
 
886
949
  .wi-datepicker__weekdays {
@@ -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/DatePicker/styles.css'