@midas-ds/components 17.38.1 → 17.38.2
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 +20 -0
- package/assets/date-field.css +1 -1
- package/assets/time-field.css +1 -1
- package/chunks/{date-field-BjmlHnRZ.js → date-field-Afo_uDbQ.js} +4 -4
- package/chunks/{date-picker-B8NhMXbu.js → date-picker-jH3-jQoL.js} +1 -1
- package/chunks/{time-field-Dhmd0NtS.js → time-field-Dte4G0is.js} +5 -5
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/index.js +4 -4
- package/package.json +1 -1
- package/time-field/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## 17.38.2 (2026-11-25)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **components,date-field,time-field:** fill the width and pad both sides like the other fields ([503442a7677](https://github.com/migrationsverket/midas/commit/503442a7677))
|
|
6
|
+
|
|
7
|
+
### 📖 Documentation changes
|
|
8
|
+
|
|
9
|
+
- **components,popover:** show the popover open in the index preview ([edb1cfea3c5](https://github.com/migrationsverket/midas/commit/edb1cfea3c5))
|
|
10
|
+
- **components,toast:** show a single success toast in the index preview ([d299341653b](https://github.com/migrationsverket/midas/commit/d299341653b))
|
|
11
|
+
- **components,time-field:** match the index preview to DateField ([450edfa4cd1](https://github.com/migrationsverket/midas/commit/450edfa4cd1))
|
|
12
|
+
- **docs,components:** show FilePicker on the file upload index card ([a0b8edf641b](https://github.com/migrationsverket/midas/commit/a0b8edf641b))
|
|
13
|
+
- **components,empty-state:** show icon, text and button in the index preview ([93978b51b7a](https://github.com/migrationsverket/midas/commit/93978b51b7a))
|
|
14
|
+
- **components,stack:** match the index preview to Grid ([7be2b8000da](https://github.com/migrationsverket/midas/commit/7be2b8000da))
|
|
15
|
+
- **components,grid:** show empty columns in the index preview ([7f33e90eebd](https://github.com/migrationsverket/midas/commit/7f33e90eebd))
|
|
16
|
+
- **components,date-field:** widen the index preview ([46dde2acb78](https://github.com/migrationsverket/midas/commit/46dde2acb78))
|
|
17
|
+
- **components,card:** show a card with two actions in the index preview ([e8575d03335](https://github.com/migrationsverket/midas/commit/e8575d03335))
|
|
18
|
+
- **components,layout,table-styles:** add Preview stories for the components index ([f4636bcd6fd](https://github.com/migrationsverket/midas/commit/f4636bcd6fd))
|
|
19
|
+
- **components,file-trigger:** add a story ([05cb37d0cc5](https://github.com/migrationsverket/midas/commit/05cb37d0cc5))
|
|
20
|
+
|
|
1
21
|
## 17.38.1 (2026-11-24)
|
|
2
22
|
|
|
3
23
|
### 🩹 Fixes
|
package/assets/date-field.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._dateField_1401m_1{font-family:var(--midas-typography-font-family);flex-direction:column;align-items:flex-start;width:100%;display:flex}._dateField_1401m_1[data-readonly] ._inputField_1401m_8{border-bottom-color:var(--midas-border-color-subtle);background-color:#0000}._dateField_1401m_1[data-disabled] ._inputField_1401m_8{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_1401m_1[data-invalid] ._inputField_1401m_8{box-shadow:var(--midas-state-invalid);border:none}._inputField_1401m_8{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-inline:calc(var(--midas-space-medium) - var(--midas-space-xsmall));justify-content:space-between;align-items:center;display:flex;position:relative}._inputField_1401m_8:has(._clearButton_1401m_45){padding-right:0}._inputField_1401m_8._medium_1401m_49{min-height:var(--midas-size-control-md)}._dateField_1401m_1:not([data-disabled],[data-readonly]) ._inputField_1401m_8 [data-hovered]{background-color:var(--midas-field-hover,var(--midas-field-01-hover))}._clearButton_1401m_45{background-color:#0000;border:none}@media (forced-colors:active){._inputField_1401m_8{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)}
|
package/assets/time-field.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._timeField_1swac_1{font-family:var(--midas-typography-font-family);flex-direction:column;align-items:flex-start;width:100%;display:flex}._timeField_1swac_1[data-readonly] ._inputField_1swac_8{border-bottom-color:var(--midas-border-color-subtle);background-color:#0000}._timeField_1swac_1[data-disabled] ._inputField_1swac_8{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))}._timeField_1swac_1[data-invalid] ._inputField_1swac_8{box-shadow:var(--midas-state-invalid);border:none}._inputField_1swac_8{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:0 var(--midas-space-medium);justify-content:space-between;align-items:center;display:flex;position:relative}._inputField_1swac_8:has(._clearButton_1swac_43){padding-right:0}._inputField_1swac_8._medium_1swac_47{min-height:var(--midas-size-control-md)}._timeField_1swac_1:not([data-disabled],[data-readonly]) ._inputField_1swac_8 [data-hovered]{background-color:var(--midas-field-hover,var(--midas-field-01-hover))}._clearButton_1swac_43{background-color:#0000;border:none}@media (forced-colors:active){._inputField_1swac_8{border:1px solid var(--midas-border-color-primary)}}
|
|
@@ -12,10 +12,10 @@ import '../assets/date-field.css';var g = {
|
|
|
12
12
|
en: { clear: "Clear date" },
|
|
13
13
|
sv: { clear: "Rensa datum" }
|
|
14
14
|
}, _ = {
|
|
15
|
-
dateField: "
|
|
16
|
-
inputField: "
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
dateField: "_dateField_1401m_1",
|
|
16
|
+
inputField: "_inputField_1401m_8",
|
|
17
|
+
clearButton: "_clearButton_1401m_45",
|
|
18
|
+
medium: "_medium_1401m_49"
|
|
19
19
|
}, v = {
|
|
20
20
|
dateInput: "_dateInput_u92xb_1",
|
|
21
21
|
divider: "_divider_u92xb_21",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./clear-button-BYiazZ-1.js";
|
|
3
3
|
import { t } from "./useLocalizedStringFormatter-DU97U9ZX.js";
|
|
4
|
-
import { a as n, n as r, r as i, t as a } from "./date-field-
|
|
4
|
+
import { a as n, n as r, r as i, t as a } from "./date-field-Afo_uDbQ.js";
|
|
5
5
|
import { n as o } from "./button-Q51P-Ssk.js";
|
|
6
6
|
import { n as s, t as c } from "./calendar-DyILzX_V.js";
|
|
7
7
|
import { t as l } from "./field-error-DmG_1v1a.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clsx-BtGY0yFD.js";
|
|
2
|
-
import { n as t, r as n } from "./date-field-
|
|
2
|
+
import { n as t, r as n } from "./date-field-Afo_uDbQ.js";
|
|
3
3
|
import { t as r } from "./field-error-DmG_1v1a.js";
|
|
4
4
|
import { n as i, t as a } from "./label-DCpy2Iwh.js";
|
|
5
5
|
import { t as o } from "./text-CtvUKU-v.js";
|
|
@@ -13,10 +13,10 @@ import '../assets/time-field.css';var g = {
|
|
|
13
13
|
en: { clear: "Clear time" },
|
|
14
14
|
sv: { clear: "Rensa tid" }
|
|
15
15
|
}, _ = {
|
|
16
|
-
timeField: "
|
|
17
|
-
inputField: "
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
timeField: "_timeField_1swac_1",
|
|
17
|
+
inputField: "_inputField_1swac_8",
|
|
18
|
+
clearButton: "_clearButton_1swac_43",
|
|
19
|
+
medium: "_medium_1swac_47"
|
|
20
20
|
}, v = ({ isClearable: t, size: n, isDisabled: r, isReadOnly: i }) => {
|
|
21
21
|
let a = c(g), o = l.useContext(d), u = h();
|
|
22
22
|
return t && o?.value != null && !i ? /* @__PURE__ */ f(s, {
|
package/date-field/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-
|
|
1
|
+
export { i as DateField, n as DateInput, t as DateInputDivider, r as DateSegment } from "../chunks/date-field-Afo_uDbQ.js";
|
package/date-picker/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-
|
|
1
|
+
export { n as DatePicker, t as DateRangePicker } from "../chunks/date-picker-jH3-jQoL.js";
|
package/index.js
CHANGED
|
@@ -26,8 +26,8 @@ import { n as ae, t as oe } from "./chunks/toggle-button--nCm-94u.js";
|
|
|
26
26
|
import { n as se, t as ce } from "./chunks/color-scheme-switch-BlGoqk4H.js";
|
|
27
27
|
import { a as le, i as ue, n as de, o as fe, r as pe, s as me, t as he } from "./chunks/menu-DVrvuxQk.js";
|
|
28
28
|
import { t as ge } from "./chunks/combobox-D2wPjTS5.js";
|
|
29
|
-
import { i as _e, n as ve, r as ye, t as be } from "./chunks/date-field-
|
|
30
|
-
import { n as xe, t as Se } from "./chunks/date-picker-
|
|
29
|
+
import { i as _e, n as ve, r as ye, t as be } from "./chunks/date-field-Afo_uDbQ.js";
|
|
30
|
+
import { n as xe, t as Se } from "./chunks/date-picker-jH3-jQoL.js";
|
|
31
31
|
import { t as Ce } from "./chunks/drop-zone-CSN3p9Ci.js";
|
|
32
32
|
import { a as we, i as Te, n as Ee, r as De, t as Oe } from "./chunks/empty-state-CnDZoO65.js";
|
|
33
33
|
import { n as ke, t as Ae } from "./chunks/file-list-BvBSJyRQ.js";
|
|
@@ -48,7 +48,7 @@ import { t as et } from "./chunks/stack-DKjRicm1.js";
|
|
|
48
48
|
import { a as tt, i as nt, n as rt, o as it, r as at, t as ot } from "./chunks/table-B4-N2P6X.js";
|
|
49
49
|
import { i as st, n as ct, r as lt, t as ut } from "./chunks/tabs-ZCpVhr_r.js";
|
|
50
50
|
import { i as dt, n as ft, r as pt, t as mt } from "./chunks/textfield-O1kNTcwC.js";
|
|
51
|
-
import { t as ht } from "./chunks/time-field-
|
|
51
|
+
import { t as ht } from "./chunks/time-field-Dte4G0is.js";
|
|
52
52
|
import { a as gt, i as _t, n as vt, o as yt, r as bt, t as xt } from "./chunks/toast-DhXnpJRF.js";
|
|
53
53
|
// src/version.ts
|
|
54
54
|
var St = {
|
|
@@ -63,7 +63,7 @@ var St = {
|
|
|
63
63
|
description: "Midas Components",
|
|
64
64
|
homepage: "https://designsystem.migrationsverket.se/",
|
|
65
65
|
license: "CC0-1.0",
|
|
66
|
-
version: "17.38.
|
|
66
|
+
version: "17.38.2",
|
|
67
67
|
module: "./index.js",
|
|
68
68
|
type: "module",
|
|
69
69
|
main: "./index.js",
|
package/package.json
CHANGED
package/time-field/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as TimeField } from "../chunks/time-field-
|
|
1
|
+
export { t as TimeField } from "../chunks/time-field-Dte4G0is.js";
|