@midas-ds/components 17.33.5 → 17.33.7

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 (107) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/accordion/index.js +1 -1
  3. package/assets/date-field.css +1 -1
  4. package/assets/date-picker.css +1 -1
  5. package/badge/index.js +1 -1
  6. package/breadcrumbs/index.js +1 -1
  7. package/button/index.js +1 -1
  8. package/calendar/index.js +1 -1
  9. package/card/index.js +1 -1
  10. package/character-counter/index.js +1 -1
  11. package/checkbox/index.js +1 -1
  12. package/chunks/{Button.module-0C2ArlRs.js → Button.module-CXkKBjuB.js} +0 -1
  13. package/chunks/{FeedbackStatusIcon-DvMDGBGL.js → FeedbackStatusIcon-Ba31xgcy.js} +1 -2
  14. package/chunks/{TextField.module-Bg4LNalb.js → TextField.module-B-5HJOZt.js} +0 -1
  15. package/chunks/{accordion-DRXQI8XG.js → accordion-BKnABSyU.js} +4 -5
  16. package/chunks/{badge-C4bXJmhn.js → badge-C5Sdu_uw.js} +1 -2
  17. package/chunks/{breadcrumbs-BGnyY3bO.js → breadcrumbs-BwYDyKWo.js} +1 -2
  18. package/chunks/{button-dpe6hXmI.js → button-S2AY4EEn.js} +4 -5
  19. package/chunks/{calendar-Bq2qqFIW.js → calendar-BOTC3DKx.js} +26 -27
  20. package/chunks/{card-C0S9Kyi2.js → card-mIB1NewO.js} +3 -4
  21. package/chunks/{character-counter-CSoVSrxZ.js → character-counter-IbkPoEcq.js} +0 -1
  22. package/chunks/{checkbox-BGxv1TyT.js → checkbox-CzH8BdsB.js} +38 -40
  23. package/chunks/{clear-button-DWtOkhCH.js → clear-button-CeQy0RdK.js} +2 -3
  24. package/chunks/{clsx-DAqHMl_k.js → clsx-BtGY0yFD.js} +1 -2
  25. package/chunks/{color-scheme-switch-D7EpvqTW.js → color-scheme-switch-BpmV-r9p.js} +28 -29
  26. package/chunks/{combobox-f4uuMJcb.js → combobox-DQ3d6pLc.js} +16 -18
  27. package/chunks/date-field-CdlSlO7A.js +76 -0
  28. package/chunks/date-picker-IJI2Bxlx.js +144 -0
  29. package/chunks/{drop-zone-DNhEbH4w.js → drop-zone-BL3Z-Sbj.js} +1 -2
  30. package/chunks/{field-error-BHoPnRe4.js → field-error-C5ynuTRu.js} +2 -3
  31. package/chunks/{file-list-DT3zkJbO.js → file-list-etDe20pj.js} +9 -10
  32. package/chunks/{file-trigger-Dp5nH8oS.js → file-trigger-gOeeZzDP.js} +1 -2
  33. package/chunks/{grid-SIgkSK_-.js → grid-CFn_pqQX.js} +1 -2
  34. package/chunks/{heading-DcOjYrUM.js → heading-CIlMdywy.js} +1 -2
  35. package/chunks/{icons-UBHIX2oV.js → icons-a0WawN46.js} +1 -2
  36. package/chunks/{info-banner-DXjPEG69.js → info-banner-BKB7_CPh.js} +6 -7
  37. package/chunks/{label-2ac-zqbe.js → label-B5-Kmj4t.js} +8 -9
  38. package/chunks/{layout-BT-UgQne.js → layout-Cs8Oc8sf.js} +82 -83
  39. package/chunks/{link-B76JDA2N.js → link-CG_mHnLv.js} +2 -3
  40. package/chunks/{link-button-BeXxC22w.js → link-button-4xRbQqH2.js} +2 -3
  41. package/chunks/{list-box-BzBJX0nP.js → list-box-frfQGO1x.js} +5 -6
  42. package/chunks/{logo-DSJ1bUJZ.js → logo-Xe8PO0US.js} +2 -3
  43. package/chunks/{menu-DbQ98noD.js → menu-7gP2Sovj.js} +1 -2
  44. package/chunks/{modal-CzApHmjO.js → modal-BQrpnHT5.js} +15 -17
  45. package/chunks/{popover-B82BcP5n.js → popover-C7Ain5Qz.js} +1 -2
  46. package/chunks/{progress-bar-CJOm7oiN.js → progress-bar-DE7UoEWR.js} +9 -10
  47. package/chunks/{radio-DgFKSBa5.js → radio-DAB7WeIP.js} +17 -18
  48. package/chunks/{search-field-CpQnnJKa.js → search-field-BI1h0UBl.js} +23 -25
  49. package/chunks/{select-CdVW8cwA.js → select-BHpUGcW7.js} +38 -40
  50. package/chunks/{skeleton-R_3dS7Ro.js → skeleton-6y5HNJZp.js} +1 -2
  51. package/chunks/{spinner-CIjfJeGm.js → spinner-YKC-Vk3v.js} +2 -3
  52. package/chunks/{splitDataAttributes-_JTFOOIb.js → splitDataAttributes-ChyO_Kvc.js} +1 -2
  53. package/chunks/{stack-BAHKom_Q.js → stack-DKjRicm1.js} +1 -2
  54. package/chunks/{table-D02AQ0Xr.js → table-Fsf-jJip.js} +16 -17
  55. package/chunks/{tabs-CbcNTa7J.js → tabs-ZCpVhr_r.js} +2 -3
  56. package/chunks/{tag-BEawJnJm.js → tag-B1suqFhD.js} +2 -3
  57. package/chunks/{text-DnvD4Cjc.js → text-D7tnzTru.js} +1 -2
  58. package/chunks/textfield-C-lRIIil.js +110 -0
  59. package/chunks/time-field-nbvqWpzf.js +59 -0
  60. package/chunks/{toast-B8J42Yss.js → toast-DTqQhHFN.js} +13 -14
  61. package/chunks/{toggle-button-DD_bXanH.js → toggle-button-BVyG8F2K.js} +6 -7
  62. package/chunks/{tooltip-1GBTeMrm.js → tooltip-CR1uxtPd.js} +2 -4
  63. package/chunks/{useLocalizedStringFormatter-CeyBc0x0.js → useLocalizedStringFormatter-DhIAL1D7.js} +1 -2
  64. package/clear-button/index.js +1 -1
  65. package/color-scheme-switch/index.js +1 -1
  66. package/combobox/index.js +1 -1
  67. package/date-field/index.js +1 -1
  68. package/date-picker/index.js +1 -1
  69. package/drop-zone/index.js +1 -1
  70. package/field-error/index.js +1 -1
  71. package/file-list/index.js +1 -1
  72. package/file-trigger/index.js +1 -1
  73. package/grid/index.js +1 -1
  74. package/heading/index.js +1 -1
  75. package/icons/index.js +1 -1
  76. package/index.js +50 -52
  77. package/info-banner/index.js +1 -1
  78. package/label/index.js +1 -1
  79. package/layout/index.js +1 -1
  80. package/link/index.js +1 -1
  81. package/link-button/index.js +1 -1
  82. package/list-box/index.js +1 -1
  83. package/logo/index.js +1 -1
  84. package/menu/index.js +1 -1
  85. package/modal/index.js +1 -1
  86. package/package.json +1 -1
  87. package/popover/index.js +1 -1
  88. package/progress-bar/index.js +1 -1
  89. package/radio/index.js +1 -1
  90. package/search-field/index.js +1 -1
  91. package/select/index.js +1 -1
  92. package/skeleton/index.js +1 -1
  93. package/spinner/index.js +1 -1
  94. package/stack/index.js +1 -1
  95. package/table/index.js +1 -1
  96. package/tabs/index.js +1 -1
  97. package/tag/index.js +1 -1
  98. package/text/index.js +1 -1
  99. package/textfield/index.js +1 -1
  100. package/time-field/index.js +1 -1
  101. package/toast/index.js +1 -1
  102. package/toggle-button/index.js +1 -1
  103. package/tooltip/index.js +1 -1
  104. package/chunks/date-field-BCfp9ZpN.js +0 -73
  105. package/chunks/date-picker-DH8j2eU9.js +0 -142
  106. package/chunks/textfield-CeFppAMx.js +0 -113
  107. package/chunks/time-field-H-mXlxua.js +0 -60
package/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 17.33.7 (2026-11-11)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **components,date-field,date-picker:** scroll segments in narrow fields ([a7ec7513411](https://github.com/migrationsverket/midas/commit/a7ec7513411))
6
+
7
+ ## 17.33.6 (2026-11-09)
8
+
9
+ ### 🩹 Fixes
10
+
11
+ - **test-browsers:** turn off the trace view under WebdriverIO ([f3dfebc7c37](https://github.com/migrationsverket/midas/commit/f3dfebc7c37))
12
+
1
13
  ## 17.33.5 (2026-11-09)
2
14
 
3
15
  ### 🧱 Updated Dependencies
@@ -1 +1 @@
1
- export { n as Accordion, t as AccordionItem } from "../chunks/accordion-DRXQI8XG.js";
1
+ export { n as Accordion, t as AccordionItem } from "../chunks/accordion-BKnABSyU.js";
@@ -1 +1 @@
1
- ._dateField_t65wr_1{font-family:var(--midas-typography-font-family);flex-direction:column;align-items:flex-start;display:flex}._dateField_t65wr_1[data-readonly] ._inputField_t65wr_7{border-bottom-color:var(--midas-border-color-subtle);background-color:#0000}._dateField_t65wr_1[data-disabled] ._inputField_t65wr_7{color:var(--midas-text-disabled);cursor:not-allowed;border-bottom-color:var(--midas-border-color-disabled);background-color:var(--midas-field-disabled,var(--midas-field-01-disabled))}._dateField_t65wr_1[data-invalid] ._inputField_t65wr_7{box-shadow:var(--midas-state-invalid);border:none}._inputField_t65wr_7{box-sizing:border-box;width:100%;min-height:var(--midas-size-control);background-color:var(--midas-field-base,var(--midas-field-01-base));border:1px solid #0000;border-bottom-color:var(--midas-border-color-primary);justify-content:space-between;align-items:center;padding:0 0 0 1rem;display:flex;position:relative}._inputField_t65wr_7._medium_t65wr_41{min-height:var(--midas-size-control-md)}._dateField_t65wr_1:not([data-disabled],[data-readonly]) ._inputField_t65wr_7 [data-hovered]{background-color:var(--midas-field-hover,var(--midas-field-01-hover))}._clearButton_t65wr_50{background-color:#0000;border:none}@media (forced-colors:active){._inputField_t65wr_7{border:1px solid var(--midas-border-color-primary)}}._dateSegment_15g5c_1{color:var(--midas-text-primary);text-transform:uppercase;padding:0 .125rem}._dateSegment_15g5c_1[data-disabled]{color:var(--midas-text-disabled)}._dateSegment_15g5c_1:focus-visible,._dateSegment_15g5c_1[data-focus-visible]{box-shadow:var(--midas-state-focus);outline:none}@media (forced-colors:active){._dateSegment_15g5c_1:focus-visible,._dateSegment_15g5c_1[data-focus-visible]{outline:1px solid}}._dateSegment_15g5c_1[data-placeholder]{color:var(--midas-text-placeholder)}._dateInput_14x1f_1{display:flex}._dateInput_14x1f_1 div:focus-visible,._dateInput_14x1f_1 div[data-focus-visible]{box-shadow:var(--midas-state-focus);outline:none}@media (forced-colors:active){._dateInput_14x1f_1 div:focus-visible,._dateInput_14x1f_1 div[data-focus-visible]{outline-offset:0;outline:3px solid highlight}}._dateInput_14x1f_1 div[data-readonly=true]{color:var(--midas-text-primary);padding:0 2px}._divider_14x1f_21{color:var(--midas-text-primary)}
1
+ ._dateField_1w6t6_1{font-family:var(--midas-typography-font-family);flex-direction:column;align-items:flex-start;display:flex}._dateField_1w6t6_1[data-readonly] ._inputField_1w6t6_7{border-bottom-color:var(--midas-border-color-subtle);background-color:#0000}._dateField_1w6t6_1[data-disabled] ._inputField_1w6t6_7{color:var(--midas-text-disabled);cursor:not-allowed;border-bottom-color:var(--midas-border-color-disabled);background-color:var(--midas-field-disabled,var(--midas-field-01-disabled))}._dateField_1w6t6_1[data-invalid] ._inputField_1w6t6_7{box-shadow:var(--midas-state-invalid);border:none}._inputField_1w6t6_7{box-sizing:border-box;width:100%;min-height:var(--midas-size-control);background-color:var(--midas-field-base,var(--midas-field-01-base));border:1px solid #0000;border-bottom-color:var(--midas-border-color-primary);padding-left:calc(var(--midas-space-medium) - var(--midas-space-xsmall));justify-content:space-between;align-items:center;display:flex;position:relative}._inputField_1w6t6_7._medium_1w6t6_43{min-height:var(--midas-size-control-md)}._dateField_1w6t6_1:not([data-disabled],[data-readonly]) ._inputField_1w6t6_7 [data-hovered]{background-color:var(--midas-field-hover,var(--midas-field-01-hover))}._clearButton_1w6t6_52{background-color:#0000;border:none}@media (forced-colors:active){._inputField_1w6t6_7{border:1px solid var(--midas-border-color-primary)}}._dateInput_u92xb_1{display:flex}._dateInput_u92xb_1 div:focus-visible,._dateInput_u92xb_1 div[data-focus-visible]{box-shadow:var(--midas-state-focus);outline:none}@media (forced-colors:active){._dateInput_u92xb_1 div:focus-visible,._dateInput_u92xb_1 div[data-focus-visible]{outline-offset:0;outline:3px solid highlight}}._dateInput_u92xb_1 div[data-readonly=true]{color:var(--midas-text-primary);padding:0 2px}._divider_u92xb_21{color:var(--midas-text-primary)}._scroller_u92xb_31{align-items:center;gap:var(--midas-space-medium);min-width:0;padding:var(--midas-space-xsmall);scroll-padding-inline:var(--midas-space-xsmall);scrollbar-width:none;white-space:nowrap;flex:1;display:flex;overflow:auto clip}._dateSegment_15g5c_1{color:var(--midas-text-primary);text-transform:uppercase;padding:0 .125rem}._dateSegment_15g5c_1[data-disabled]{color:var(--midas-text-disabled)}._dateSegment_15g5c_1:focus-visible,._dateSegment_15g5c_1[data-focus-visible]{box-shadow:var(--midas-state-focus);outline:none}@media (forced-colors:active){._dateSegment_15g5c_1:focus-visible,._dateSegment_15g5c_1[data-focus-visible]{outline:1px solid}}._dateSegment_15g5c_1[data-placeholder]{color:var(--midas-text-placeholder)}
@@ -1 +1 @@
1
- ._dropdownAnimation_1ljkv_4{opacity:1;transition:opacity var(--midas-transition-duration-quick) var(--midas-transition-timing-ease-out)}._dropdownAnimation_1ljkv_4[data-entering]{opacity:0}._dropdownAnimation_1ljkv_4[data-exiting]{opacity:0;transition-timing-function:var(--midas-transition-timing-ease-in)}@media (prefers-reduced-motion){._dropdownAnimation_1ljkv_4{transition:none}}._datePicker_14wog_1{font-family:var(--midas-typography-font-family);flex-direction:column;align-items:flex-start;display:flex}._inputField_14wog_8{box-sizing:border-box;width:100%;height:var(--midas-size-control);background-color:var(--midas-field-base,var(--midas-field-01-base));border-bottom:1px solid var(--midas-border-color-primary);justify-content:flex-start;align-items:center;gap:1rem;padding-left:1rem;display:flex}@media (forced-colors:active){._inputField_14wog_8{border:1px solid var(--midas-border-color-primary)}}._inputField_14wog_8._medium_14wog_24{height:var(--midas-size-control-md)}._inputField_14wog_8[data-disabled]{cursor:not-allowed;border-color:var(--midas-border-color-disabled)}._inputField_14wog_8:focus-visible,._inputField_14wog_8[data-focus-visible]{outline:none}._inputField_14wog_8[data-invalid]{box-shadow:var(--midas-state-invalid);border:none}@media (forced-colors:active){._inputField_14wog_8[data-invalid]{border:1px solid var(--midas-border-color-primary)}}._inputField_14wog_8._readOnly_14wog_47{border-color:var(--midas-border-color-subtle);background-color:#0000}._inputField_14wog_8 ._buttonGroup_14wog_52{height:100%;margin-left:auto;display:flex}._inputField_14wog_8 ._iconButton_14wog_58{aspect-ratio:1;border:none;height:100%;padding:0}._inputField_14wog_8 ._iconButton_14wog_58[data-disabled]{background-color:#0000}._inputField_14wog_8 ._iconButton_14wog_58:focus-visible,._inputField_14wog_8 ._iconButton_14wog_58[data-focus-visible]{box-shadow:var(--midas-state-focus-inset);outline:none}@media (forced-colors:active){._inputField_14wog_8 ._iconButton_14wog_58:focus-visible,._inputField_14wog_8 ._iconButton_14wog_58[data-focus-visible]{outline-offset:2px;outline:3px solid highlight}}._popover_14wog_81{box-shadow:0 3px 5px #0003}
1
+ ._dropdownAnimation_1ljkv_4{opacity:1;transition:opacity var(--midas-transition-duration-quick) var(--midas-transition-timing-ease-out)}._dropdownAnimation_1ljkv_4[data-entering]{opacity:0}._dropdownAnimation_1ljkv_4[data-exiting]{opacity:0;transition-timing-function:var(--midas-transition-timing-ease-in)}@media (prefers-reduced-motion){._dropdownAnimation_1ljkv_4{transition:none}}._datePicker_g3zwq_1{font-family:var(--midas-typography-font-family);flex-direction:column;align-items:flex-start;display:flex}._inputField_g3zwq_8{box-sizing:border-box;width:100%;height:var(--midas-size-control);background-color:var(--midas-field-base,var(--midas-field-01-base));border-bottom:1px solid var(--midas-border-color-primary);padding-left:calc(var(--midas-space-medium) - var(--midas-space-xsmall));justify-content:flex-start;align-items:center;display:flex}@media (forced-colors:active){._inputField_g3zwq_8{border:1px solid var(--midas-border-color-primary)}}._inputField_g3zwq_8._medium_g3zwq_25{height:var(--midas-size-control-md)}._inputField_g3zwq_8[data-disabled]{cursor:not-allowed;border-color:var(--midas-border-color-disabled)}._inputField_g3zwq_8:focus-visible,._inputField_g3zwq_8[data-focus-visible]{outline:none}._inputField_g3zwq_8[data-invalid]{box-shadow:var(--midas-state-invalid);border:none}@media (forced-colors:active){._inputField_g3zwq_8[data-invalid]{border:1px solid var(--midas-border-color-primary)}}._inputField_g3zwq_8._readOnly_g3zwq_48{border-color:var(--midas-border-color-subtle);background-color:#0000}._inputField_g3zwq_8 ._buttonGroup_g3zwq_53{height:100%;margin-left:auto;display:flex}._inputField_g3zwq_8 ._iconButton_g3zwq_59{aspect-ratio:1;border:none;height:100%;padding:0}._inputField_g3zwq_8 ._iconButton_g3zwq_59[data-disabled]{background-color:#0000}._inputField_g3zwq_8 ._iconButton_g3zwq_59:focus-visible,._inputField_g3zwq_8 ._iconButton_g3zwq_59[data-focus-visible]{box-shadow:var(--midas-state-focus-inset);outline:none}@media (forced-colors:active){._inputField_g3zwq_8 ._iconButton_g3zwq_59:focus-visible,._inputField_g3zwq_8 ._iconButton_g3zwq_59[data-focus-visible]{outline-offset:2px;outline:3px solid highlight}}._popover_g3zwq_82{box-shadow:0 3px 5px #0003}
package/badge/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Badge, t as BadgeContainer } from "../chunks/badge-C4bXJmhn.js";
1
+ export { n as Badge, t as BadgeContainer } from "../chunks/badge-C5Sdu_uw.js";
@@ -1 +1 @@
1
- export { t as Breadcrumb, n as Breadcrumbs } from "../chunks/breadcrumbs-BGnyY3bO.js";
1
+ export { t as Breadcrumb, n as Breadcrumbs } from "../chunks/breadcrumbs-BwYDyKWo.js";
package/button/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Button, t as ButtonGroup } from "../chunks/button-dpe6hXmI.js";
1
+ export { n as Button, t as ButtonGroup } from "../chunks/button-S2AY4EEn.js";
package/calendar/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Calendar, t as RangeCalendar } from "../chunks/calendar-Bq2qqFIW.js";
1
+ export { n as Calendar, t as RangeCalendar } from "../chunks/calendar-BOTC3DKx.js";
package/card/index.js CHANGED
@@ -1 +1 @@
1
- export { r as Card, i as CardActionArea, a as CardActions, n as CardBody, o as CardContent, t as CardHeader, s as CardImage, c as CardLink, l as CardTitle } from "../chunks/card-C0S9Kyi2.js";
1
+ export { r as Card, i as CardActionArea, a as CardActions, n as CardBody, o as CardContent, t as CardHeader, s as CardImage, c as CardLink, l as CardTitle } from "../chunks/card-mIB1NewO.js";
@@ -1 +1 @@
1
- export { t as CharacterCounter } from "../chunks/character-counter-CSoVSrxZ.js";
1
+ export { t as CharacterCounter } from "../chunks/character-counter-IbkPoEcq.js";
package/checkbox/index.js CHANGED
@@ -1 +1 @@
1
- export { n as Checkbox, r as CheckboxButton, i as CheckboxField, t as CheckboxGroup } from "../chunks/checkbox-BGxv1TyT.js";
1
+ export { n as Checkbox, r as CheckboxButton, i as CheckboxField, t as CheckboxGroup } from "../chunks/checkbox-CzH8BdsB.js";
@@ -9,5 +9,4 @@ import '../assets/Button.css';var e = {
9
9
  fullwidth: "_fullwidth_1woxv_142",
10
10
  primary: "_primary_1woxv_152"
11
11
  };
12
- //#endregion
13
12
  export { e as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./useLocalizedStringFormatter-CeyBc0x0.js";
1
+ import { t as e } from "./useLocalizedStringFormatter-DhIAL1D7.js";
2
2
  import { jsx as t } from "react/jsx-runtime";
3
3
  import { Check as n, Flag as r, Info as i, TriangleAlert as a } from "lucide-react";
4
4
  var o = {
@@ -32,5 +32,4 @@ var o = {
32
32
  ...a
33
33
  });
34
34
  };
35
- //#endregion
36
35
  export { l as t };
@@ -8,5 +8,4 @@ import '../assets/TextField.css';var e = {
8
8
  passwordText: "_passwordText_k9lqd_123",
9
9
  passwordButton: "_passwordButton_k9lqd_166"
10
10
  };
11
- //#endregion
12
11
  export { e as t };
@@ -1,8 +1,8 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-DAqHMl_k.js";
3
- import { n as t } from "./button-dpe6hXmI.js";
4
- import { t as n } from "./heading-DcOjYrUM.js";
5
- import { t as r } from "./FeedbackStatusIcon-DvMDGBGL.js";
2
+ import { t as e } from "./clsx-BtGY0yFD.js";
3
+ import { n as t } from "./button-S2AY4EEn.js";
4
+ import { t as n } from "./heading-CIlMdywy.js";
5
+ import { t as r } from "./FeedbackStatusIcon-Ba31xgcy.js";
6
6
  import { createContext as i, useContext as a, useEffect as o } from "react";
7
7
  import { Disclosure as s, DisclosureGroup as c, DisclosurePanel as l, composeRenderProps as u } from "react-aria-components";
8
8
  import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
@@ -83,5 +83,4 @@ import '../assets/accordion.css';var h = {
83
83
  })] }))
84
84
  });
85
85
  };
86
- //#endregion
87
86
  export { _ as n, y as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-DAqHMl_k.js";
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
2
  import * as t from "react";
3
3
  import { jsx as n } from "react/jsx-runtime";
4
4
  import '../assets/badge.css';var r = {
@@ -18,5 +18,4 @@ import '../assets/badge.css';var r = {
18
18
  ...a,
19
19
  children: t
20
20
  });
21
- //#endregion
22
21
  export { i as n, a as t };
@@ -1,4 +1,4 @@
1
- import { t as e } from "./clsx-DAqHMl_k.js";
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
2
  import { Breadcrumb as t, Breadcrumbs as n } from "react-aria-components";
3
3
  import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
4
4
  import '../assets/breadcrumbs.css';var o = {
@@ -19,5 +19,4 @@ import '../assets/breadcrumbs.css';var o = {
19
19
  }) : null] });
20
20
  }
21
21
  });
22
- //#endregion
23
22
  export { s as n, c as t };
@@ -1,11 +1,11 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-DAqHMl_k.js";
3
- import { t } from "./spinner-CIjfJeGm.js";
4
- import { t as n } from "./Button.module-0C2ArlRs.js";
2
+ import { t as e } from "./clsx-BtGY0yFD.js";
3
+ import { t } from "./spinner-YKC-Vk3v.js";
4
+ import { t as n } from "./Button.module-CXkKBjuB.js";
5
5
  import { forwardRef as r } from "react";
6
6
  import { Button as i, ButtonContext as a, composeRenderProps as o, useContextProps as s } from "react-aria-components";
7
7
  import { Fragment as c, jsx as l, jsxs as u } from "react/jsx-runtime";
8
- import '../assets/button2.css';//#region src/button/Button.tsx
8
+ import '../assets/button2.css';// src/button/Button.tsx
9
9
  var d = r((r, d) => {
10
10
  let [f, p] = s(r, d, a), { className: m, fullwidth: h, icon: g, iconPlacement: _, iconSize: v, isPending: y, size: b = "large", variant: x = "primary", ...S } = f;
11
11
  return /* @__PURE__ */ l(i, {
@@ -30,5 +30,4 @@ var f = { buttonGroup: "_buttonGroup_o1hqg_1" }, p = ({ children: t, className:
30
30
  ...i,
31
31
  children: t
32
32
  });
33
- //#endregion
34
33
  export { d as n, p as t };
@@ -1,9 +1,9 @@
1
- import { t as e } from "./clsx-DAqHMl_k.js";
2
- import { n as t } from "./button-dpe6hXmI.js";
3
- import { t as n } from "./heading-DcOjYrUM.js";
4
- import { t as r } from "./field-error-BHoPnRe4.js";
5
- import { n as i } from "./select-CdVW8cwA.js";
6
- import { a, c as o, o as s } from "./list-box-BzBJX0nP.js";
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
+ import { n as t } from "./button-S2AY4EEn.js";
3
+ import { t as n } from "./heading-CIlMdywy.js";
4
+ import { n as r } from "./select-BHpUGcW7.js";
5
+ import { a as i, c as a, o } from "./list-box-frfQGO1x.js";
6
+ import { t as s } from "./field-error-C5ynuTRu.js";
7
7
  import * as c from "react";
8
8
  import { clsx as l } from "clsx";
9
9
  import { Calendar as u, CalendarCell as d, CalendarGrid as f, CalendarMonthPicker as p, CalendarYearPicker as m, RangeCalendar as h, RangeCalendarContext as g, Select as _ } from "react-aria-components";
@@ -26,18 +26,18 @@ import '../assets/calendar.css';var S = {
26
26
  "data-readonly": n || void 0
27
27
  })
28
28
  });
29
- }, w = ({ isDisabled: e, isReadOnly: t, items: n, ...r }) => /* @__PURE__ */ y(_, {
29
+ }, w = ({ isDisabled: e, isReadOnly: t, items: n, ...s }) => /* @__PURE__ */ y(_, {
30
30
  isDisabled: e,
31
31
  "data-readonly": t || void 0,
32
- ...r,
33
- children: [/* @__PURE__ */ v(i, {
32
+ ...s,
33
+ children: [/* @__PURE__ */ v(r, {
34
34
  size: "small",
35
35
  isDisabled: e
36
- }), /* @__PURE__ */ v(a, { children: /* @__PURE__ */ v(o, {
36
+ }), /* @__PURE__ */ v(i, { children: /* @__PURE__ */ v(a, {
37
37
  items: n,
38
38
  virtualized: !1,
39
39
  size: "small",
40
- children: (e) => /* @__PURE__ */ v(s, {
40
+ children: (e) => /* @__PURE__ */ v(o, {
41
41
  id: e.id,
42
42
  textValue: e.formatted,
43
43
  children: e.formatted
@@ -74,35 +74,34 @@ import '../assets/calendar.css';var S = {
74
74
  })
75
75
  ]
76
76
  });
77
- }, E = ({ className: e, errorMessage: t, showMonthYearPicker: n, ...i }) => /* @__PURE__ */ y("div", {
77
+ }, E = ({ className: e, errorMessage: t, showMonthYearPicker: n, ...r }) => /* @__PURE__ */ y("div", {
78
78
  className: S.container,
79
79
  children: [/* @__PURE__ */ y(u, {
80
80
  className: l(S.calendar, e),
81
- "data-readonly": i.isReadOnly || void 0,
82
- ...i,
81
+ "data-readonly": r.isReadOnly || void 0,
82
+ ...r,
83
83
  children: [/* @__PURE__ */ v(T, {
84
- ...i,
84
+ ...r,
85
85
  showMonthYearPicker: n
86
- }), /* @__PURE__ */ v(C, { ...i })]
87
- }), /* @__PURE__ */ v(r, {
88
- isInvalid: i.isInvalid,
86
+ }), /* @__PURE__ */ v(C, { ...r })]
87
+ }), /* @__PURE__ */ v(s, {
88
+ isInvalid: r.isInvalid,
89
89
  children: t
90
90
  })]
91
- }), D = ({ className: e, errorMessage: t, showMonthYearPicker: n, commitBehavior: i, ...a }) => /* @__PURE__ */ y("div", {
91
+ }), D = ({ className: e, errorMessage: t, showMonthYearPicker: n, commitBehavior: r, ...i }) => /* @__PURE__ */ y("div", {
92
92
  className: S.container,
93
93
  children: [/* @__PURE__ */ y(h, {
94
94
  className: l(S.calendar, e),
95
- "data-readonly": a.isReadOnly || void 0,
96
- commitBehavior: i ?? (n ? "reset" : void 0),
97
- ...a,
95
+ "data-readonly": i.isReadOnly || void 0,
96
+ commitBehavior: r ?? (n ? "reset" : void 0),
97
+ ...i,
98
98
  children: [/* @__PURE__ */ v(T, {
99
- ...a,
99
+ ...i,
100
100
  showMonthYearPicker: n
101
- }), /* @__PURE__ */ v(C, { ...a })]
102
- }), /* @__PURE__ */ v(r, {
103
- isInvalid: a.isInvalid,
101
+ }), /* @__PURE__ */ v(C, { ...i })]
102
+ }), /* @__PURE__ */ v(s, {
103
+ isInvalid: i.isInvalid,
104
104
  children: t
105
105
  })]
106
106
  });
107
- //#endregion
108
107
  export { E as n, D as t };
@@ -1,6 +1,6 @@
1
- import { t as e } from "./clsx-DAqHMl_k.js";
2
- import { t } from "./heading-DcOjYrUM.js";
3
- import { t as n } from "./text-DnvD4Cjc.js";
1
+ import { t as e } from "./clsx-BtGY0yFD.js";
2
+ import { t } from "./heading-CIlMdywy.js";
3
+ import { t as n } from "./text-D7tnzTru.js";
4
4
  import * as r from "react";
5
5
  import { Button as i, Link as a } from "react-aria-components";
6
6
  import { jsx as o, jsxs as s } from "react/jsx-runtime";
@@ -99,5 +99,4 @@ import '../assets/card.css';var l = {
99
99
  })]
100
100
  }), t]
101
101
  });
102
- //#endregion
103
102
  export { h as a, v as c, g as i, m as l, b as n, p as o, f as r, _ as s, S as t };
@@ -12,5 +12,4 @@ import '../assets/character-counter.css';var i = { characterCounter: "_character
12
12
  });
13
13
  });
14
14
  a.displayName = "CharacterCounter";
15
- //#endregion
16
15
  export { a as t };
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-DAqHMl_k.js";
3
- import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n, t as r } from "./label-2ac-zqbe.js";
5
- import { t as i } from "./text-DnvD4Cjc.js";
6
- import { t as a } from "./field-error-BHoPnRe4.js";
7
- import { t as o } from "./splitDataAttributes-_JTFOOIb.js";
2
+ import { t as e } from "./field-error-C5ynuTRu.js";
3
+ import { t } from "./text-D7tnzTru.js";
4
+ import { t as n } from "./clsx-BtGY0yFD.js";
5
+ import { t as r } from "./splitDataAttributes-ChyO_Kvc.js";
6
+ import { n as i, t as a } from "./label-B5-Kmj4t.js";
7
+ import { t as o } from "./useLocalizedStringFormatter-DhIAL1D7.js";
8
8
  import * as s from "react";
9
9
  import { forwardRef as c, useContext as l } from "react";
10
10
  import { CheckboxButton as u, CheckboxField as d, CheckboxGroup as f, CheckboxGroupStateContext as p, composeRenderProps as m } from "react-aria-components";
@@ -17,27 +17,27 @@ import '../assets/checkbox.css';var x = {
17
17
  checkboxField: "_checkboxField_iv1ij_144",
18
18
  checkboxGroup: "_checkboxGroup_iv1ij_155",
19
19
  checkboxList: "_checkboxList_iv1ij_166"
20
- }, S = ({ className: t, ...n }) => /* @__PURE__ */ g(d, {
21
- className: e(x.checkboxField, t),
22
- ...n
23
- }), C = c(({ className: t, ...n }, r) => /* @__PURE__ */ g(u, {
24
- className: e(x.checkboxButton, t),
20
+ }, S = ({ className: e, ...t }) => /* @__PURE__ */ g(d, {
21
+ className: n(x.checkboxField, e),
22
+ ...t
23
+ }), C = c(({ className: e, ...t }, r) => /* @__PURE__ */ g(u, {
24
+ className: n(x.checkboxButton, e),
25
25
  ref: r,
26
- ...n
27
- })), w = c(({ className: e, description: t, errorMessage: n, errorPosition: r = "top", children: s, ...c }, l) => {
28
- let [u, d] = o(c);
26
+ ...t
27
+ })), w = c(({ className: n, description: i, errorMessage: a, errorPosition: o = "top", children: s, ...c }, l) => {
28
+ let [u, d] = r(c);
29
29
  return /* @__PURE__ */ _(S, {
30
30
  ...d,
31
31
  children: [
32
- t && /* @__PURE__ */ g(i, {
32
+ i && /* @__PURE__ */ g(t, {
33
33
  slot: "description",
34
- children: t
34
+ children: i
35
35
  }),
36
- r === "top" && /* @__PURE__ */ g(a, { children: n }),
36
+ o === "top" && /* @__PURE__ */ g(e, { children: a }),
37
37
  /* @__PURE__ */ g(C, {
38
38
  ...u,
39
39
  ref: l,
40
- className: e,
40
+ className: n,
41
41
  children: ({ isIndeterminate: e }) => /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g("div", {
42
42
  className: x.indicator,
43
43
  children: g(e ? y : v, {
@@ -46,13 +46,12 @@ import '../assets/checkbox.css';var x = {
46
46
  })
47
47
  }), s] })
48
48
  }),
49
- r === "bottom" && /* @__PURE__ */ g(a, { children: n })
49
+ o === "bottom" && /* @__PURE__ */ g(e, { children: a })
50
50
  ]
51
51
  });
52
52
  });
53
53
  w.displayName = "Checkbox";
54
- //#endregion
55
- //#region src/checkbox/useSelectAll.ts
54
+ // src/checkbox/useSelectAll.ts
56
55
  var T = (e, t) => {
57
56
  let n = t?.value ?? [], r = s.Children.toArray(e).filter((e) => s.isValidElement(e) && e.type === w), i = r.filter((e) => !e.props.isDisabled).map((e) => e.props.value || ""), a = r.filter((e) => e.props.isDisabled).map((e) => e.props.value || "").filter((e) => n.includes(e)), o = n.filter((e) => i.includes(e)).length, c = o === 0, l = o === i.length;
58
57
  return {
@@ -64,43 +63,42 @@ var T = (e, t) => {
64
63
  }, E = {
65
64
  en: { selectAll: "Select all" },
66
65
  sv: { selectAll: "Välj alla" }
67
- }, D = ({ checkboxes: e, label: n }) => {
68
- let r = l(p), i = t(E), { allSelected: a, someSelected: o, checkboxValues: s, disabledSelectedValues: c } = T(e, r);
66
+ }, D = ({ checkboxes: e, label: t }) => {
67
+ let n = l(p), r = o(E), { allSelected: i, someSelected: a, checkboxValues: s, disabledSelectedValues: c } = T(e, n);
69
68
  return /* @__PURE__ */ g(p.Provider, {
70
69
  value: null,
71
70
  children: /* @__PURE__ */ g(w, {
72
- isSelected: a,
73
- isIndeterminate: o,
74
- isReadOnly: r?.isReadOnly,
75
- isDisabled: r?.isDisabled,
71
+ isSelected: i,
72
+ isIndeterminate: a,
73
+ isReadOnly: n?.isReadOnly,
74
+ isDisabled: n?.isDisabled,
76
75
  onChange: (e) => {
77
- r?.setValue(e ? [...s, ...c] : c);
76
+ n?.setValue(e ? [...s, ...c] : c);
78
77
  },
79
- children: n || i.format("selectAll")
78
+ children: t || r.format("selectAll")
80
79
  })
81
80
  });
82
- }, O = ({ label: t, description: o, errorMessage: s, errorPosition: c = "top", popover: l, showSelectAll: u, selectAllLabel: d, className: p, children: v, ...y }) => /* @__PURE__ */ g(f, {
81
+ }, O = ({ label: r, description: o, errorMessage: s, errorPosition: c = "top", popover: l, showSelectAll: u, selectAllLabel: d, className: p, children: v, ...y }) => /* @__PURE__ */ g(f, {
83
82
  ...y,
84
- className: e(x.checkboxGroup, p),
85
- children: m(v, (e) => /* @__PURE__ */ _(h, { children: [
86
- /* @__PURE__ */ g(n, {
83
+ className: n(x.checkboxGroup, p),
84
+ children: m(v, (n) => /* @__PURE__ */ _(h, { children: [
85
+ /* @__PURE__ */ g(i, {
87
86
  popover: l,
88
- children: t && /* @__PURE__ */ g(r, { children: t })
87
+ children: r && /* @__PURE__ */ g(a, { children: r })
89
88
  }),
90
- o && /* @__PURE__ */ g(i, {
89
+ o && /* @__PURE__ */ g(t, {
91
90
  slot: "description",
92
91
  children: o
93
92
  }),
94
- c === "top" && s && /* @__PURE__ */ g(a, { children: s }),
93
+ c === "top" && s && /* @__PURE__ */ g(e, { children: s }),
95
94
  /* @__PURE__ */ _("div", {
96
95
  className: x.checkboxList,
97
96
  children: [u && /* @__PURE__ */ g(D, {
98
97
  label: d,
99
- checkboxes: e
100
- }), e]
98
+ checkboxes: n
99
+ }), n]
101
100
  }),
102
- c === "bottom" && s && /* @__PURE__ */ g(a, { children: s })
101
+ c === "bottom" && s && /* @__PURE__ */ g(e, { children: s })
103
102
  ] }))
104
103
  });
105
- //#endregion
106
104
  export { S as i, w as n, C as r, O as t };
@@ -1,9 +1,9 @@
1
1
  'use client';
2
- import { n as e } from "./button-dpe6hXmI.js";
2
+ import { n as e } from "./button-S2AY4EEn.js";
3
3
  import "react";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  import { X as n } from "lucide-react";
6
- //#region src/clear-button/ClearButton.tsx
6
+ // src/clear-button/ClearButton.tsx
7
7
  var r = (r) => /* @__PURE__ */ t(e, {
8
8
  variant: "icon",
9
9
  slot: null,
@@ -13,5 +13,4 @@ var r = (r) => /* @__PURE__ */ t(e, {
13
13
  "aria-hidden": !0
14
14
  })
15
15
  });
16
- //#endregion
17
16
  export { r as t };
@@ -1,7 +1,6 @@
1
1
  import { clsx as e } from "clsx";
2
- //#region src/utils/clsx.ts
2
+ // src/utils/clsx.ts
3
3
  function t(...t) {
4
4
  return t.some((e) => typeof e == "function") ? (n) => e(t.map((e) => typeof e == "function" ? e(n) : e)) : e(t);
5
5
  }
6
- //#endregion
7
6
  export { t };
@@ -1,10 +1,10 @@
1
1
  'use client';
2
- import { t as e } from "./clsx-DAqHMl_k.js";
3
- import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
4
- import { n } from "./button-dpe6hXmI.js";
5
- import { t as r } from "./icons-UBHIX2oV.js";
6
- import { n as i, t as a } from "./toggle-button-DD_bXanH.js";
7
- import { a as o, o as s, r as c } from "./menu-DbQ98noD.js";
2
+ import { t as e } from "./icons-a0WawN46.js";
3
+ import { n as t, t as n } from "./toggle-button-BVyG8F2K.js";
4
+ import { t as r } from "./useLocalizedStringFormatter-DhIAL1D7.js";
5
+ import { n as i } from "./button-S2AY4EEn.js";
6
+ import { a, o, r as s } from "./menu-7gP2Sovj.js";
7
+ import { t as c } from "./clsx-BtGY0yFD.js";
8
8
  import * as l from "react";
9
9
  import { useEffect as u, useState as d } from "react";
10
10
  import { MenuItem as f, SelectionIndicator as p } from "react-aria-components";
@@ -44,14 +44,14 @@ import '../assets/color-scheme-switch.css';var b = {
44
44
  a(e), r?.(e);
45
45
  }
46
46
  };
47
- }, C = ({ selector: e = ":root", defaultScheme: n = "light dark", scheme: o, onSchemeChange: s, defaultValue: c, className: l }) => {
47
+ }, C = ({ selector: i = ":root", defaultScheme: a = "light dark", scheme: o, onSchemeChange: s, defaultValue: c, className: l }) => {
48
48
  let { resolved: u, onChange: d } = S({
49
- selector: e,
50
- defaultScheme: c ? Array.from(c)[0] : n,
49
+ selector: i,
50
+ defaultScheme: c ? Array.from(c)[0] : a,
51
51
  scheme: o,
52
52
  onSchemeChange: s
53
- }), f = t(x);
54
- return /* @__PURE__ */ h(a, {
53
+ }), f = r(x);
54
+ return /* @__PURE__ */ h(n, {
55
55
  selectionMode: "single",
56
56
  selectedKeys: /* @__PURE__ */ new Set([u]),
57
57
  onSelectionChange: (e) => {
@@ -61,7 +61,7 @@ import '../assets/color-scheme-switch.css';var b = {
61
61
  "aria-label": f.format("colorScheme"),
62
62
  className: l,
63
63
  children: [
64
- /* @__PURE__ */ h(i, {
64
+ /* @__PURE__ */ h(t, {
65
65
  id: "light",
66
66
  className: b.button,
67
67
  children: [
@@ -70,7 +70,7 @@ import '../assets/color-scheme-switch.css';var b = {
70
70
  /* @__PURE__ */ m(p, { className: b.selectionIndicator })
71
71
  ]
72
72
  }),
73
- /* @__PURE__ */ h(i, {
73
+ /* @__PURE__ */ h(t, {
74
74
  id: "dark",
75
75
  className: b.button,
76
76
  children: [
@@ -79,11 +79,11 @@ import '../assets/color-scheme-switch.css';var b = {
79
79
  /* @__PURE__ */ m(p, { className: b.selectionIndicator })
80
80
  ]
81
81
  }),
82
- /* @__PURE__ */ h(i, {
82
+ /* @__PURE__ */ h(t, {
83
83
  id: "light dark",
84
84
  className: b.button,
85
85
  children: [
86
- /* @__PURE__ */ m(r, {}),
86
+ /* @__PURE__ */ m(e, {}),
87
87
  /* @__PURE__ */ m(y, { children: f.format("system") }),
88
88
  /* @__PURE__ */ m(p, { className: b.selectionIndicator })
89
89
  ]
@@ -97,32 +97,32 @@ import '../assets/color-scheme-switch.css';var b = {
97
97
  menuItem: "_menuItem_y8ah9_21"
98
98
  }, T = {
99
99
  light: v,
100
- "light dark": r,
100
+ "light dark": e,
101
101
  dark: _
102
- }, E = (e) => e === "light" ? "triggerLightMode" : e === "dark" ? "triggerDarkMode" : "triggerSystem", D = ({ selector: i = ":root", defaultScheme: a = "light dark", scheme: u, onSchemeChange: d, className: p }) => {
102
+ }, E = (e) => e === "light" ? "triggerLightMode" : e === "dark" ? "triggerDarkMode" : "triggerSystem", D = ({ selector: t = ":root", defaultScheme: n = "light dark", scheme: u, onSchemeChange: d, className: p }) => {
103
103
  let { resolved: b, onChange: C } = S({
104
- selector: i,
105
- defaultScheme: a,
104
+ selector: t,
105
+ defaultScheme: n,
106
106
  scheme: u,
107
107
  onSchemeChange: d
108
108
  }), D = T[b];
109
109
  l.useEffect(() => {
110
- let e = document.querySelector(i);
111
- e ? b === "light dark" ? delete e.dataset.colorScheme : e.dataset.colorScheme = b : console.warn(`No element found for selector: "${i}"`);
112
- }, [b, i]);
113
- let O = t(x);
114
- return /* @__PURE__ */ h(s, { children: [/* @__PURE__ */ h(n, {
110
+ let e = document.querySelector(t);
111
+ e ? b === "light dark" ? delete e.dataset.colorScheme : e.dataset.colorScheme = b : console.warn(`No element found for selector: "${t}"`);
112
+ }, [b, t]);
113
+ let O = r(x);
114
+ return /* @__PURE__ */ h(o, { children: [/* @__PURE__ */ h(i, {
115
115
  variant: "icon",
116
116
  size: "medium",
117
- className: e(w.trigger, p),
117
+ className: c(w.trigger, p),
118
118
  "aria-label": O.format(E(b)),
119
119
  children: [/* @__PURE__ */ m(D, { size: 20 }), /* @__PURE__ */ m(g, {
120
120
  size: 20,
121
121
  className: w.chevron
122
122
  })]
123
- }), /* @__PURE__ */ m(c, {
123
+ }), /* @__PURE__ */ m(s, {
124
124
  placement: "bottom start",
125
- children: /* @__PURE__ */ h(o, {
125
+ children: /* @__PURE__ */ h(a, {
126
126
  onAction: (e) => C(e),
127
127
  className: w.menu,
128
128
  children: [
@@ -142,11 +142,10 @@ import '../assets/color-scheme-switch.css';var b = {
142
142
  id: "light dark",
143
143
  textValue: O.format("system"),
144
144
  className: w.menuItem,
145
- children: [/* @__PURE__ */ m(r, { size: 20 }), /* @__PURE__ */ m(y, { children: O.format("system") })]
145
+ children: [/* @__PURE__ */ m(e, { size: 20 }), /* @__PURE__ */ m(y, { children: O.format("system") })]
146
146
  })
147
147
  ]
148
148
  })
149
149
  })] });
150
150
  };
151
- //#endregion
152
151
  export { C as n, D as t };