@midas-ds/components 17.10.4 → 17.10.5

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.10.5 (2026-03-26)
2
+
3
+ ### 🩹 Fixes
4
+
5
+ - **components, combobox:** replace onMouseuUp with onPointerUp ([2422daff1b](https://github.com/migrationsverket/midas/commit/2422daff1b))
6
+
1
7
  ## 17.10.4 (2026-03-26)
2
8
 
3
9
  ### 🩹 Fixes
@@ -1,51 +1,51 @@
1
1
  'use client';
2
2
  import { jsxs as c, jsx as o } from "react/jsx-runtime";
3
- import F from "react";
3
+ import { useRef as F } from "react";
4
4
  import { ComboBox as w, Input as j, Button as v } from "react-aria-components";
5
5
  import { c as e } from "./clsx-AexbMWKp.js";
6
- import { a as R, L as y } from "./Label-Cg0aAlnt.js";
7
- import { T as z } from "./Text-D0r_W4lH.js";
6
+ import { a as y, L as z } from "./Label-Cg0aAlnt.js";
7
+ import { T as B } from "./Text-D0r_W4lH.js";
8
8
  import { F as u } from "./FieldError-krpMBtie.js";
9
- import { L as B } from "./ListBox-6YS0UST9.js";
9
+ import { L as R } from "./ListBox-6YS0UST9.js";
10
10
  import { a as C, L as N } from "./ListBoxEmptyState-B8yZuSS2.js";
11
11
  import { C as g } from "./chevron-down-BBFYYzZq.js";
12
12
  import { u as E } from "./useLocalizedStringFormatter-BHvsRxDk.js";
13
- import '../assets/ComboBox.css';const S = "_combobox_ssz8j_1", T = "_inputField_ssz8j_6", I = "_medium_ssz8j_28", O = "_wrap_ssz8j_80", U = "_button_ssz8j_85", D = "_icon_ssz8j_122", t = {
13
+ import '../assets/ComboBox.css';const S = "_combobox_ssz8j_1", T = "_inputField_ssz8j_6", I = "_medium_ssz8j_28", O = "_wrap_ssz8j_80", P = "_button_ssz8j_85", U = "_icon_ssz8j_122", t = {
14
14
  combobox: S,
15
15
  inputField: T,
16
16
  medium: I,
17
17
  wrap: O,
18
- button: U,
19
- icon: D
20
- }, M = { showList: "Show list", noResultsFound: "No results found" }, V = { showList: "Visa lista", noResultsFound: "Inga träffar" }, W = {
21
- en: M,
18
+ button: P,
19
+ icon: U
20
+ }, D = { showList: "Show list", noResultsFound: "No results found" }, V = { showList: "Visa lista", noResultsFound: "Inga träffar" }, W = {
21
+ en: D,
22
22
  sv: V
23
23
  };
24
- function Y({
24
+ function Z({
25
25
  label: i,
26
26
  description: r,
27
27
  errorMessage: n,
28
28
  children: p,
29
29
  items: f,
30
- className: _,
30
+ className: h,
31
31
  errorPosition: a = "top",
32
32
  size: m = "large",
33
- popover: h,
34
- listBoxProps: b,
33
+ popover: b,
34
+ listBoxProps: _,
35
35
  ...s
36
36
  }) {
37
- const d = F.useRef(null), l = E(W), x = (L) => {
37
+ const d = F(null), l = E(W), x = (L) => {
38
38
  L.currentTarget.value && d.current?.select();
39
39
  };
40
40
  return /* @__PURE__ */ c(
41
41
  w,
42
42
  {
43
- className: e(t.combobox, _),
43
+ className: e(t.combobox, h),
44
44
  ...s,
45
45
  "data-readonly": s.isReadOnly || void 0,
46
46
  children: [
47
- /* @__PURE__ */ o(R, { popover: h, children: i && /* @__PURE__ */ o(y, { children: i }) }),
48
- r && /* @__PURE__ */ o(z, { slot: "description", children: r }),
47
+ /* @__PURE__ */ o(y, { popover: b, children: i && /* @__PURE__ */ o(z, { children: i }) }),
48
+ r && /* @__PURE__ */ o(B, { slot: "description", children: r }),
49
49
  a === "top" && /* @__PURE__ */ o(u, { "data-testid": "fieldError", children: n }),
50
50
  /* @__PURE__ */ c("div", { className: t.wrap, children: [
51
51
  /* @__PURE__ */ o(
@@ -55,7 +55,7 @@ function Y({
55
55
  [t.medium]: m === "medium"
56
56
  }),
57
57
  "data-readonly": s.isReadOnly || void 0,
58
- onMouseUp: x,
58
+ onPointerUp: x,
59
59
  ref: d
60
60
  }
61
61
  ),
@@ -85,11 +85,11 @@ function Y({
85
85
  ] }),
86
86
  a === "bottom" && /* @__PURE__ */ o(u, { "data-testid": "fieldError", children: n }),
87
87
  /* @__PURE__ */ o(C, { offset: 4, children: /* @__PURE__ */ o(
88
- B,
88
+ R,
89
89
  {
90
90
  items: f,
91
91
  renderEmptyState: () => /* @__PURE__ */ o(N, { children: l.format("noResultsFound") }),
92
- ...b,
92
+ ..._,
93
93
  children: p
94
94
  }
95
95
  ) })
@@ -98,5 +98,5 @@ function Y({
98
98
  );
99
99
  }
100
100
  export {
101
- Y as C
101
+ Z as C
102
102
  };
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { ReactNode } from 'react';
2
2
  import { ComboBoxProps as AriaComboBoxProps, ValidationResult } from 'react-aria-components';
3
3
  import { InfoPopoverProps } from '../label';
4
4
  import { Size } from '../common/types';
@@ -8,7 +8,7 @@ export interface ComboBoxProps<T extends object> extends Omit<AriaComboBoxProps<
8
8
  description?: string;
9
9
  errorMessage?: string | ((validation: ValidationResult) => string);
10
10
  items?: Iterable<T>;
11
- children: React.ReactNode | ((item: T) => React.ReactNode);
11
+ children: ReactNode | ((item: T) => ReactNode);
12
12
  placeholder?: string;
13
13
  errorPosition?: 'top' | 'bottom';
14
14
  /** Component size (large: height 48px, medium: height 40px)
package/combobox/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as r } from "../chunks/ComboBox-PVnCPhVs.js";
1
+ import { C as r } from "../chunks/ComboBox-BXB_W6zB.js";
2
2
  export {
3
3
  r as ComboBox
4
4
  };
package/index.js CHANGED
@@ -10,7 +10,7 @@ import { C as k } from "./chunks/CharacterCounter-Dgnv-orm.js";
10
10
  import { C as M } from "./chunks/Checkbox-CwzV5QbM.js";
11
11
  import { C as h } from "./chunks/CheckboxGroup-CF_3F36J.js";
12
12
  import { C as y } from "./chunks/ColorSchemeSwitch-Bp3PSGkA.js";
13
- import { C as N } from "./chunks/ComboBox-PVnCPhVs.js";
13
+ import { C as N } from "./chunks/ComboBox-BXB_W6zB.js";
14
14
  import { D as z } from "./chunks/DateField-PU7fIO8a.js";
15
15
  import { D as Q, a as V, b as Z } from "./chunks/DateInputDivider-DwopMIb9.js";
16
16
  import { D as q, a as J } from "./chunks/DateRangePicker-Bajjd11G.js";
@@ -50,7 +50,7 @@ import { c as Qa } from "./chunks/clsx-AexbMWKp.js";
50
50
  import { DialogTrigger as Za, MenuTrigger as ja, RouterProvider as qa } from "react-aria-components";
51
51
  import { u as Ka } from "./chunks/useLocalizedStringFormatter-BHvsRxDk.js";
52
52
  import { useToastState as Wa } from "react-stately";
53
- const o = "17.10.4", a = {
53
+ const o = "17.10.5", a = {
54
54
  version: o
55
55
  }, r = a.version;
56
56
  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.10.4",
17
+ "version": "17.10.5",
18
18
  "module": "./index.js",
19
19
  "type": "module",
20
20
  "main": "./index.js",