@midas-ds/components 17.14.0 → 17.14.1

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 17.14.1 (2026-05-04)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **components,select:** import TagList from midas instead of react-aria-components ([f844b425f7b](https://github.com/migrationsverket/midas/commit/f844b425f7b))
6
+
1
7
  ## 17.14.0 (2026-04-28)
2
8
 
3
9
  ### 🚀 Features
@@ -1,18 +1,18 @@
1
1
  import { jsx as e, Fragment as A, jsxs as i } from "react/jsx-runtime";
2
- import { SelectStateContext as d, SelectValue as v, Button as f, TagList as C, Select as N } from "react-aria-components";
3
- import { FocusScope as x } from "@react-aria/focus";
4
- import { a as b, L as T } from "./Label-Cqo7Xz2v.js";
5
- import { a as y, c as _ } from "./clsx-AexbMWKp.js";
6
- import { T as B } from "./Text-D0r_W4lH.js";
2
+ import { SelectStateContext as d, SelectValue as v, Button as f, Select as C } from "react-aria-components";
3
+ import { FocusScope as N } from "@react-aria/focus";
4
+ import { a as b, L as x } from "./Label-Cqo7Xz2v.js";
5
+ import { a as T, c as _ } from "./clsx-AexbMWKp.js";
6
+ import { T as y } from "./Text-D0r_W4lH.js";
7
7
  import { F as h } from "./FieldError-krpMBtie.js";
8
8
  import p, { useContext as S } from "react";
9
- import { C as M } from "./Checkbox-CwzV5QbM.js";
9
+ import { C as B } from "./Checkbox-CwzV5QbM.js";
10
10
  import { u as m } from "./useLocalizedStringFormatter-BHvsRxDk.js";
11
- import { useFocusManager as F } from "react-aria";
12
- import { X as L } from "./x-B9bYxG31.js";
13
- import { L as I } from "./ListBox-CRVACYCg.js";
14
- import { P as G } from "./Popover-CjEPHe4A.js";
15
- import { a as k, T as R } from "./TagGroup-BEPgjByH.js";
11
+ import { useFocusManager as M } from "react-aria";
12
+ import { X as F } from "./x-B9bYxG31.js";
13
+ import { L } from "./ListBox-CRVACYCg.js";
14
+ import { P as I } from "./Popover-CjEPHe4A.js";
15
+ import { a as G, b as k, T as R } from "./TagGroup-BEPgjByH.js";
16
16
  import { C as $ } from "./chevron-down-BBFYYzZq.js";
17
17
  import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Select all", selectedItems: "Selected items", selected: "selected" }, z = { clearAll: "Rensa alla", selectAll: "Välj alla", selectedItems: "Valda objekt", selected: "valda" }, u = {
18
18
  en: w,
@@ -39,7 +39,7 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
39
39
  ), t?.commitValidation();
40
40
  };
41
41
  return /* @__PURE__ */ e(
42
- M,
42
+ B,
43
43
  {
44
44
  className: a.selectAll,
45
45
  isIndeterminate: !t?.selectionManager.isSelectAll && !t?.selectionManager.isEmpty,
@@ -78,7 +78,7 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
78
78
  }, le = ({
79
79
  isDisabled: t
80
80
  }) => {
81
- const c = p.useContext(d), r = m(u), l = F(), n = () => {
81
+ const c = p.useContext(d), r = m(u), l = M(), n = () => {
82
82
  l?.focusFirst(), c?.setValue(null);
83
83
  };
84
84
  return /* @__PURE__ */ e(
@@ -90,7 +90,7 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
90
90
  slot: null,
91
91
  isDisabled: t,
92
92
  children: /* @__PURE__ */ e(
93
- L,
93
+ F,
94
94
  {
95
95
  width: 20,
96
96
  height: 20
@@ -106,13 +106,13 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
106
106
  l?.selectionManager.toggleSelection(Array.from(s)[0]);
107
107
  };
108
108
  return !l?.selectedItems.length || !t ? null : /* @__PURE__ */ e(
109
- k,
109
+ G,
110
110
  {
111
111
  "aria-label": r.format("selectedItems"),
112
112
  className: a.tagGroup,
113
113
  onRemove: n,
114
114
  selectionBehavior: "toggle",
115
- children: /* @__PURE__ */ e(C, { items: l.selectedItems, children: (s) => /* @__PURE__ */ e(
115
+ children: /* @__PURE__ */ e(k, { items: l.selectedItems, children: (s) => /* @__PURE__ */ e(
116
116
  R,
117
117
  {
118
118
  isDismissable: !0,
@@ -134,7 +134,7 @@ import '../assets/Select.css';const w = { clearAll: "Clear all", selectAll: "Sel
134
134
  return /* @__PURE__ */ i(
135
135
  f,
136
136
  {
137
- className: y(
137
+ className: T(
138
138
  {
139
139
  [a.medium]: r === "medium"
140
140
  },
@@ -174,14 +174,14 @@ function je({
174
174
  size: j = "large",
175
175
  ...o
176
176
  }) {
177
- return /* @__PURE__ */ e(x, { children: /* @__PURE__ */ i(
178
- N,
177
+ return /* @__PURE__ */ e(N, { children: /* @__PURE__ */ i(
178
+ C,
179
179
  {
180
180
  ...o,
181
181
  className: _(o.className, a.select),
182
182
  children: [
183
- /* @__PURE__ */ e(b, { popover: V, children: s && /* @__PURE__ */ e(T, { "data-disabled": o.isDisabled || void 0, children: s }) }),
184
- c && /* @__PURE__ */ e(B, { slot: "description", children: c }),
183
+ /* @__PURE__ */ e(b, { popover: V, children: s && /* @__PURE__ */ e(x, { "data-disabled": o.isDisabled || void 0, children: s }) }),
184
+ c && /* @__PURE__ */ e(y, { slot: "description", children: c }),
185
185
  l === "top" && /* @__PURE__ */ e(h, { children: r }),
186
186
  /* @__PURE__ */ i(
187
187
  "div",
@@ -202,7 +202,7 @@ function je({
202
202
  ),
203
203
  l === "bottom" && /* @__PURE__ */ e(h, { children: r }),
204
204
  /* @__PURE__ */ i(
205
- G,
205
+ I,
206
206
  {
207
207
  offset: 0,
208
208
  hideArrow: !0,
@@ -211,7 +211,7 @@ function je({
211
211
  children: [
212
212
  o.isSelectableAll && /* @__PURE__ */ e(ee, {}),
213
213
  /* @__PURE__ */ e(
214
- I,
214
+ L,
215
215
  {
216
216
  escapeKeyBehavior: "none",
217
217
  items: n,
package/index.js CHANGED
@@ -32,7 +32,7 @@ import { P as Ma } from "./chunks/Popover-CjEPHe4A.js";
32
32
  import { P as Aa } from "./chunks/ProgressBar-BrWLkY8H.js";
33
33
  import { R as ya, a as Ea } from "./chunks/Radio-CFolRKKY.js";
34
34
  import { S as wa } from "./chunks/SearchField-DRaSep82.js";
35
- import { S as za } from "./chunks/Select-CdCLFzO8.js";
35
+ import { S as za } from "./chunks/Select-CpWV3vBJ.js";
36
36
  import { S as Va } from "./chunks/Skeleton-tiP1Syzf.js";
37
37
  import { S as ja } from "./chunks/Spinner-CfKMn18u.js";
38
38
  import { C as Ja, a as Ka, R as Ua, T as Wa, b as Xa, c as Ya } from "./chunks/Table-DBdY7MIw.js";
@@ -52,7 +52,7 @@ import { c as Ko } from "./chunks/clsx-AexbMWKp.js";
52
52
  import { DialogTrigger as Wo, MenuTrigger as Xo, RouterProvider as Yo } from "react-aria-components";
53
53
  import { u as $o } from "./chunks/useLocalizedStringFormatter-BHvsRxDk.js";
54
54
  import { useToastState as or } from "react-stately";
55
- const a = "17.14.0", o = {
55
+ const a = "17.14.1", o = {
56
56
  version: a
57
57
  }, r = o.version;
58
58
  export {
package/package.json CHANGED
@@ -14,7 +14,7 @@
14
14
  "description": "Midas Components",
15
15
  "homepage": "https://designsystem.migrationsverket.se/",
16
16
  "license": "CC0-1.0",
17
- "version": "17.14.0",
17
+ "version": "17.14.1",
18
18
  "module": "./index.js",
19
19
  "type": "module",
20
20
  "main": "./index.js",
package/select/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { S as r } from "../chunks/Select-CdCLFzO8.js";
1
+ import { S as r } from "../chunks/Select-CpWV3vBJ.js";
2
2
  export {
3
3
  r as Select
4
4
  };