@midas-ds/components 17.31.0 → 17.32.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 +21 -0
- package/assets/modal.css +1 -1
- package/assets/tabs.css +1 -1
- package/calendar/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/{calendar-BnT8aqrk.js → calendar-CMcDh3Qp.js} +1 -1
- package/chunks/{checkbox-B1RWLsu9.js → checkbox-E5RkzKav.js} +1 -1
- package/chunks/{combobox-BLAVO2ax.js → combobox-CZhXbrMD.js} +1 -1
- package/chunks/{date-field-D5QLfSD_.js → date-field-D73LuPS0.js} +1 -1
- package/chunks/{date-picker-BWSHiwIN.js → date-picker-EEQ4pvDV.js} +3 -3
- package/chunks/{file-list-Ntos8dkG.js → file-list-CsK6E-mQ.js} +1 -1
- package/chunks/{label-pGlER0ro.js → label-D-qPkeUX.js} +1 -1
- package/chunks/modal-Bst_8zeF.js +90 -0
- package/chunks/{progress-bar-S6GNHQRZ.js → progress-bar-DQ56IibW.js} +1 -1
- package/chunks/{radio-uAtTm38S.js → radio-BuUsac8x.js} +1 -1
- package/chunks/{search-field-Bx3JApAJ.js → search-field-DDKW7zLX.js} +1 -1
- package/chunks/{select-CuKVJ1x9.js → select-BtknjTlA.js} +2 -2
- package/chunks/{table-DDTeIVh8.js → table-BaeA6tVH.js} +1 -1
- package/chunks/tabs-CbcNTa7J.js +56 -0
- package/chunks/{textfield-G6u6RJD5.js → textfield-D7GvYAz4.js} +1 -1
- package/chunks/{time-field-Mm1iDLzS.js → time-field-DcEMnB3d.js} +2 -2
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/file-list/index.js +1 -1
- package/index.js +17 -17
- package/label/index.js +1 -1
- package/modal/Modal.d.ts +4 -0
- package/modal/index.js +1 -1
- package/modal/useStickyHeight.d.ts +5 -0
- package/package.json +1 -1
- package/progress-bar/index.js +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/index.js +1 -1
- package/table/index.js +1 -1
- package/tabs/Tab.d.ts +1 -2
- package/tabs/index.js +1 -1
- package/textfield/index.js +1 -1
- package/time-field/index.js +1 -1
- package/chunks/modal-C8rs1jfL.js +0 -66
- package/chunks/tabs-owuRVJ3N.js +0 -56
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## 17.32.1 (2026-10-19)
|
|
2
|
+
|
|
3
|
+
### 🩹 Fixes
|
|
4
|
+
|
|
5
|
+
- **components,tabs:** remove bold selection indicator ([f74514719bb](https://github.com/migrationsverket/midas/commit/f74514719bb))
|
|
6
|
+
|
|
7
|
+
### 🏭 Refactoring
|
|
8
|
+
|
|
9
|
+
- **components,tabs:** remove React.FC and destructure react imports ([68728c12952](https://github.com/migrationsverket/midas/commit/68728c12952))
|
|
10
|
+
|
|
11
|
+
### 📖 Documentation changes
|
|
12
|
+
|
|
13
|
+
- **components,badge:** use the icon button variant in badge examples ([0da87b2a175](https://github.com/migrationsverket/midas/commit/0da87b2a175))
|
|
14
|
+
|
|
15
|
+
## 17.32.0 (2026-10-14)
|
|
16
|
+
|
|
17
|
+
### 🚀 Features
|
|
18
|
+
|
|
19
|
+
- **components,modal:** implement new design ([185be7bb0cd](https://github.com/migrationsverket/midas/commit/185be7bb0cd))
|
|
20
|
+
- **components,modal:** add footer prop ([c75d08e15b8](https://github.com/migrationsverket/midas/commit/c75d08e15b8))
|
|
21
|
+
|
|
1
22
|
## 17.31.0 (2026-10-13)
|
|
2
23
|
|
|
3
24
|
### 🚀 Features
|
package/assets/modal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._modal_7r16o_1{font-family:var(--midas-typography-font-family);min-width:300px;max-width:75%;max-height:90vh;color:var(--midas-text-primary);border:none;margin:auto;padding:4px;position:fixed}._modal_7r16o_1[data-entering]{animation:none}@media (forced-colors:active){._modal_7r16o_1{outline:2px solid}}._dialog_7r16o_10{background-color:var(--midas-background-base);max-height:inherit;scroll-padding-block:calc(var(--modal-header-height,0px) + var(--midas-space-medium)) calc(var(--modal-footer-height,0px) + var(--midas-space-medium));overflow-y:auto}._dialog_7r16o_10:focus-visible{box-shadow:var(--midas-state-focus);outline:none}@media (forced-colors:active){._dialog_7r16o_10:focus-visible{outline:var(--midas-state-focus-contrast-mode-outline) solid highlight}}._modalHeader_7r16o_45{min-height:var(--midas-size-control);background-color:var(--midas-background-base);border-bottom:1px solid var(--midas-border-color-subtle);z-index:var(--midas-z-index-above);justify-content:space-between;align-items:flex-start;display:flex;position:sticky;top:0}._modalTitle_7r16o_57{padding-left:var(--midas-space-medium);flex-grow:1;place-self:center}._closeButton_7r16o_63[data-focus-visible]{box-shadow:var(--midas-state-focus-inset)}._modalBody_7r16o_70{padding:var(--midas-space-medium);font-family:var(--midas-typography-font-family);gap:var(--midas-space-medium);flex-direction:column;display:flex;position:relative}._modalFooter_7r16o_79{background-color:var(--midas-background-base);border-top:1px solid var(--midas-border-color-subtle);gap:var(--midas-space-small);padding:var(--midas-space-medium);z-index:var(--midas-z-index-above);display:flex;position:sticky;bottom:0}._modalFooter_7r16o_79>div{flex:1}._modalOverlay_gwg3f_1{-webkit-backdrop-filter:var(--midas-overlay-blur);backdrop-filter:var(--midas-overlay-blur);background:var(--midas-overlay-background);width:100%;z-index:var(--midas-z-index-modal);height:var(--visual-viewport-height);justify-content:center;align-items:center;display:flex;position:fixed;top:0;left:0}._modalOverlay_gwg3f_1[data-entering]{animation:_modal-fade_gwg3f_1 var(--midas-transition-duration-quick) var(--midas-transition-timing-ease-out)}._modalOverlay_gwg3f_1[data-exiting]{animation:_modal-fade_gwg3f_1 var(--midas-transition-duration-quick) reverse var(--midas-transition-timing-ease-in)}@media (prefers-reduced-motion){._modalOverlay_gwg3f_1[data-entering],._modalOverlay_gwg3f_1[data-exiting]{animation:none}}@keyframes _modal-fade_gwg3f_1{0%{opacity:0;-webkit-backdrop-filter:blur();backdrop-filter:blur()}to{opacity:1;-webkit-backdrop-filter:var(--midas-overlay-blur);backdrop-filter:var(--midas-overlay-blur)}}
|
package/assets/tabs.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._tabs_w9b70_1{font-weight:var(--midas-typography-weight-regular);line-height:var(--midas-typography-line-height-30);font-family:var(--midas-typography-font-family);display:flex}._tabs_w9b70_1[data-orientation=horizontal]{flex-direction:column}._tabList_w9b70_12{display:flex}._tabList_w9b70_12[data-orientation=vertical]{flex-direction:column}._tab_w9b70_1{padding:var(--midas-space-70) var(--midas-space-medium);cursor:default;transition-duration:var(--midas-transition-duration-normal);forced-color-adjust:none;color:var(--midas-text-primary);outline:none;transition-property:color,border-color;position:relative}._tab_w9b70_1[data-disabled]{border-color:var(--midas-border-color-disabled);color:var(--midas-text-disabled)}._tab_w9b70_1[data-selected]{color:var(--midas-text-primary);forced-color-adjust:none}._tab_w9b70_1[data-hovered]{cursor:pointer}._tab_w9b70_1[data-focus-visible]{box-shadow:var(--midas-state-focus);outline:none}@media (forced-colors:active){._tab_w9b70_1[data-focus-visible]{outline:var(--midas-state-focus-contrast-mode-outline) solid;outline-offset:var(--midas-state-focus-contrast-mode-offset)}}._tab_w9b70_1._contained_w9b70_54{background-color:var(--midas-layer-accent-01-base)}._tab_w9b70_1._contained_w9b70_54[data-selected]{background-color:var(--midas-layer-01-base)}._tab_w9b70_1._contained_w9b70_54[data-hovered]{background-color:var(--midas-layer-accent-01-hover)}._tab_w9b70_1._contained_w9b70_54[data-hovered][data-selected]{background-color:var(--midas-layer-01-hover)}._tab_w9b70_1._contained_w9b70_54:not([data-selected])+._tab_w9b70_1._contained_w9b70_54._contained_w9b70_54:not([data-selected]){border-color:var(--midas-border-color-subtle)}._tab_w9b70_1._medium_w9b70_74{padding:var(--midas-space-50) var(--midas-space-small)}[data-orientation=horizontal] ._tab_w9b70_1._contained_w9b70_54{border-inline-start:1px solid #0000}[data-orientation=vertical] ._tab_w9b70_1._contained_w9b70_54{border-top:1px solid #0000}[data-orientation=horizontal] ._tab_w9b70_1:not(._contained_w9b70_54){border-bottom:1px solid var(--midas-border-color-subtle);margin-bottom:-1px}[data-orientation=vertical] ._tab_w9b70_1:not(._contained_w9b70_54){border-inline-end:1px solid var(--midas-border-color-subtle);margin-right:-1px}._selectionIndicator_w9b70_97{position:absolute}._selectionIndicator_w9b70_97._animated_w9b70_100{transition-duration:var(--midas-transition-duration-normal);transition-property:translate,width,height}[data-orientation=horizontal] ._tab_w9b70_1 ._selectionIndicator_w9b70_97{border-bottom:3px solid var(--midas-border-color-tertiary);width:100%;bottom:0;left:0}[data-orientation=vertical] ._tab_w9b70_1 ._selectionIndicator_w9b70_97{border-inline-end:3px solid var(--midas-border-color-tertiary);height:100%;top:0;right:0}._tab_w9b70_1 ._selectionIndicator_w9b70_97._contained_w9b70_54{z-index:var(--midas-z-index-base);border-width:2px}[data-orientation=horizontal] ._tab_w9b70_1 ._selectionIndicator_w9b70_97._contained_w9b70_54{bottom:unset;top:0}[data-orientation=vertical] ._tab_w9b70_1 ._selectionIndicator_w9b70_97._contained_w9b70_54{left:0;right:unset}._tabPanel_w9b70_135{padding:var(--midas-space-medium);color:var(--midas-text-primary)}._tabPanel_w9b70_135[data-focus-visible]{box-shadow:var(--midas-state-focus);outline:none}._tabPanel_w9b70_135._contained_w9b70_54{background-color:var(--midas-layer-01-base);--midas-field-base:var(--midas-field-02-base);--midas-field-hover:var(--midas-field-02-hover)}._tabPanel_w9b70_135._medium_w9b70_74{padding:var(--midas-space-small)}
|
package/calendar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/calendar-
|
|
1
|
+
import { n as e, t } from "../chunks/calendar-CMcDh3Qp.js";
|
|
2
2
|
export { e as Calendar, t as RangeCalendar };
|
package/checkbox/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../chunks/checkbox-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../chunks/checkbox-E5RkzKav.js";
|
|
2
2
|
export { t as Checkbox, n as CheckboxButton, e as CheckboxField, r as CheckboxGroup };
|
|
@@ -2,7 +2,7 @@ import { t as e } from "./clsx-DAqHMl_k.js";
|
|
|
2
2
|
import { n as t } from "./button-dpe6hXmI.js";
|
|
3
3
|
import { t as n } from "./heading-DcOjYrUM.js";
|
|
4
4
|
import { t as r } from "./field-error-BHoPnRe4.js";
|
|
5
|
-
import { n as i } from "./select-
|
|
5
|
+
import { n as i } from "./select-BtknjTlA.js";
|
|
6
6
|
import { a, c as o, o as s } from "./list-box-BzBJX0nP.js";
|
|
7
7
|
import * as c from "react";
|
|
8
8
|
import { clsx as l } from "clsx";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
3
3
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
|
-
import { n, t as r } from "./label-
|
|
4
|
+
import { n, t as r } from "./label-D-qPkeUX.js";
|
|
5
5
|
import { t as i } from "./text-DnvD4Cjc.js";
|
|
6
6
|
import { t as a } from "./field-error-BHoPnRe4.js";
|
|
7
7
|
import { t as o } from "./splitDataAttributes-_JTFOOIb.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
3
3
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
|
-
import { n, t as r } from "./label-
|
|
4
|
+
import { n, t as r } from "./label-D-qPkeUX.js";
|
|
5
5
|
import { t as i } from "./text-DnvD4Cjc.js";
|
|
6
6
|
import { t as a } from "./field-error-BHoPnRe4.js";
|
|
7
7
|
import { a as o, c as s, t as c } from "./list-box-BzBJX0nP.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
2
2
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
3
|
-
import { n, t as r } from "./label-
|
|
3
|
+
import { n, t as r } from "./label-D-qPkeUX.js";
|
|
4
4
|
import { t as i } from "./text-DnvD4Cjc.js";
|
|
5
5
|
import { t as a } from "./field-error-BHoPnRe4.js";
|
|
6
6
|
import { t as o } from "./clear-button-DWtOkhCH.js";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
3
3
|
import { n as t } from "./button-dpe6hXmI.js";
|
|
4
|
-
import { n, t as r } from "./calendar-
|
|
5
|
-
import { n as i, t as a } from "./label-
|
|
4
|
+
import { n, t as r } from "./calendar-CMcDh3Qp.js";
|
|
5
|
+
import { n as i, t as a } from "./label-D-qPkeUX.js";
|
|
6
6
|
import { t as o } from "./text-DnvD4Cjc.js";
|
|
7
7
|
import { t as s } from "./field-error-BHoPnRe4.js";
|
|
8
8
|
import { t as c } from "./clear-button-DWtOkhCH.js";
|
|
9
|
-
import { n as l, r as u, t as d } from "./date-field-
|
|
9
|
+
import { n as l, r as u, t as d } from "./date-field-D73LuPS0.js";
|
|
10
10
|
import * as f from "react";
|
|
11
11
|
import { clsx as p } from "clsx";
|
|
12
12
|
import { DatePicker as m, DatePickerStateContext as h, DateRangePicker as g, DateRangePickerStateContext as _, Group as v, Popover as y } from "react-aria-components";
|
|
@@ -4,7 +4,7 @@ import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
|
4
4
|
import { n } from "./button-dpe6hXmI.js";
|
|
5
5
|
import { t as r } from "./FeedbackStatusIcon-DvMDGBGL.js";
|
|
6
6
|
import { t as i } from "./field-error-BHoPnRe4.js";
|
|
7
|
-
import { t as a } from "./progress-bar-
|
|
7
|
+
import { t as a } from "./progress-bar-DQ56IibW.js";
|
|
8
8
|
import { useEffect as o, useId as s, useRef as c } from "react";
|
|
9
9
|
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
10
10
|
import { Trash2 as f, X as p } from "lucide-react";
|
|
@@ -2,7 +2,7 @@ import { t as e } from "./clsx-DAqHMl_k.js";
|
|
|
2
2
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
3
3
|
import { n } from "./button-dpe6hXmI.js";
|
|
4
4
|
import { t as r } from "./popover-B82BcP5n.js";
|
|
5
|
-
import { t as i } from "./modal-
|
|
5
|
+
import { t as i } from "./modal-Bst_8zeF.js";
|
|
6
6
|
import * as a from "react";
|
|
7
7
|
import o, { useContext as s } from "react";
|
|
8
8
|
import { Label as c } from "react-aria-components";
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
2
|
+
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
3
|
+
import { n } from "./button-dpe6hXmI.js";
|
|
4
|
+
import { t as r } from "./heading-DcOjYrUM.js";
|
|
5
|
+
import { forwardRef as i, useCallback as a, useRef as o } from "react";
|
|
6
|
+
import { Dialog as s, DialogTrigger as c, Modal as l, ModalOverlay as u, composeRenderProps as d } from "react-aria-components";
|
|
7
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
8
|
+
import { X as m } from "lucide-react";
|
|
9
|
+
import '../assets/modal.css';var h = {
|
|
10
|
+
modal: "_modal_7r16o_1",
|
|
11
|
+
dialog: "_dialog_7r16o_10",
|
|
12
|
+
modalHeader: "_modalHeader_7r16o_45",
|
|
13
|
+
modalTitle: "_modalTitle_7r16o_57",
|
|
14
|
+
closeButton: "_closeButton_7r16o_63",
|
|
15
|
+
modalBody: "_modalBody_7r16o_70",
|
|
16
|
+
modalFooter: "_modalFooter_7r16o_79"
|
|
17
|
+
}, g = {
|
|
18
|
+
en: { close: "Close" },
|
|
19
|
+
sv: { close: "Stäng" }
|
|
20
|
+
}, _ = {
|
|
21
|
+
modalOverlay: "_modalOverlay_gwg3f_1",
|
|
22
|
+
"modal-fade": "_modal-fade_gwg3f_1"
|
|
23
|
+
}, v = i(({ className: t, ...n }, r) => /* @__PURE__ */ f(u, {
|
|
24
|
+
className: e(t, _.modalOverlay),
|
|
25
|
+
ref: r,
|
|
26
|
+
...n
|
|
27
|
+
}));
|
|
28
|
+
v.displayName = "ModalOverlay";
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/modal/useStickyHeight.ts
|
|
31
|
+
var y = (e) => {
|
|
32
|
+
let t = o(void 0);
|
|
33
|
+
return a((n) => {
|
|
34
|
+
t.current?.(), t.current = void 0;
|
|
35
|
+
let r = n?.parentElement;
|
|
36
|
+
if (!n || !r) return;
|
|
37
|
+
let i = new ResizeObserver(() => {
|
|
38
|
+
r.style.setProperty(e, `${n.offsetHeight}px`);
|
|
39
|
+
});
|
|
40
|
+
i.observe(n), t.current = () => {
|
|
41
|
+
i.disconnect(), r.style.removeProperty(e);
|
|
42
|
+
};
|
|
43
|
+
}, [e]);
|
|
44
|
+
}, b = i(({ children: e, title: i, hideCloseButton: a = !1, footer: o, ...c }, u) => {
|
|
45
|
+
let _ = t(g), b = y("--modal-header-height"), x = y("--modal-footer-height");
|
|
46
|
+
return /* @__PURE__ */ f(v, {
|
|
47
|
+
...c,
|
|
48
|
+
children: d(e, (e) => /* @__PURE__ */ f(l, {
|
|
49
|
+
className: h.modal,
|
|
50
|
+
ref: u,
|
|
51
|
+
children: /* @__PURE__ */ p(s, {
|
|
52
|
+
className: h.dialog,
|
|
53
|
+
children: [
|
|
54
|
+
/* @__PURE__ */ p("div", {
|
|
55
|
+
className: h.modalHeader,
|
|
56
|
+
ref: b,
|
|
57
|
+
children: [/* @__PURE__ */ f("div", {
|
|
58
|
+
className: h.modalTitle,
|
|
59
|
+
children: i && /* @__PURE__ */ f(r, {
|
|
60
|
+
level: 3,
|
|
61
|
+
elementType: "h2",
|
|
62
|
+
slot: "title",
|
|
63
|
+
children: i
|
|
64
|
+
})
|
|
65
|
+
}), !a && /* @__PURE__ */ f(n, {
|
|
66
|
+
"aria-label": _.format("close"),
|
|
67
|
+
className: h.closeButton,
|
|
68
|
+
icon: m,
|
|
69
|
+
slot: "close",
|
|
70
|
+
variant: "icon"
|
|
71
|
+
})]
|
|
72
|
+
}),
|
|
73
|
+
/* @__PURE__ */ f("div", {
|
|
74
|
+
className: h.modalBody,
|
|
75
|
+
tabIndex: -1,
|
|
76
|
+
children: e
|
|
77
|
+
}),
|
|
78
|
+
o && /* @__PURE__ */ f("div", {
|
|
79
|
+
className: h.modalFooter,
|
|
80
|
+
ref: x,
|
|
81
|
+
children: o
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
})
|
|
85
|
+
}))
|
|
86
|
+
});
|
|
87
|
+
});
|
|
88
|
+
b.displayName = "Modal";
|
|
89
|
+
//#endregion
|
|
90
|
+
export { b as n, v as r, c as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
2
|
-
import { t } from "./label-
|
|
2
|
+
import { t } from "./label-D-qPkeUX.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { ProgressBar as n } from "react-aria-components";
|
|
5
5
|
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
2
|
-
import { n as t, t as n } from "./label-
|
|
2
|
+
import { n as t, t as n } from "./label-D-qPkeUX.js";
|
|
3
3
|
import { t as r } from "./text-DnvD4Cjc.js";
|
|
4
4
|
import { t as i } from "./field-error-BHoPnRe4.js";
|
|
5
5
|
import { t as a } from "./splitDataAttributes-_JTFOOIb.js";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
3
3
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
4
|
import { n } from "./button-dpe6hXmI.js";
|
|
5
|
-
import { n as r, t as i } from "./label-
|
|
5
|
+
import { n as r, t as i } from "./label-D-qPkeUX.js";
|
|
6
6
|
import { t as a } from "./text-DnvD4Cjc.js";
|
|
7
7
|
import { t as o } from "./field-error-BHoPnRe4.js";
|
|
8
8
|
import { t as s } from "./TextField.module-BLGiCC4q.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
2
2
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
3
|
-
import { n, t as r } from "./label-
|
|
3
|
+
import { n, t as r } from "./label-D-qPkeUX.js";
|
|
4
4
|
import { t as i } from "./popover-B82BcP5n.js";
|
|
5
5
|
import { t as a } from "./text-DnvD4Cjc.js";
|
|
6
6
|
import { t as o } from "./field-error-BHoPnRe4.js";
|
|
7
|
-
import { n as s } from "./checkbox-
|
|
7
|
+
import { n as s } from "./checkbox-E5RkzKav.js";
|
|
8
8
|
import { c } from "./list-box-BzBJX0nP.js";
|
|
9
9
|
import { n as l, r as u, t as d } from "./tag-BEawJnJm.js";
|
|
10
10
|
import f, { useContext as p } from "react";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
3
|
-
import { n as t } from "./checkbox-
|
|
3
|
+
import { n as t } from "./checkbox-E5RkzKav.js";
|
|
4
4
|
import { Button as n, Cell as r, Collection as i, Column as a, Row as o, Table as s, TableBody as c, TableHeader as l, useTableOptions as u } from "react-aria-components";
|
|
5
5
|
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
6
6
|
import { ArrowDown as m, ArrowUp as h, ArrowUpDown as g, GripVertical as _ } from "lucide-react";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
3
|
+
import * as t from "react";
|
|
4
|
+
import { createContext as n, useContext as r } from "react";
|
|
5
|
+
import { DialogContext as i, SelectionIndicator as a, Tab as o, TabList as s, TabPanel as c, Tabs as l, composeRenderProps as u } from "react-aria-components";
|
|
6
|
+
import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
7
|
+
import '../assets/tabs.css';//#region src/tabs/TabsContext.ts
|
|
8
|
+
var m = n({
|
|
9
|
+
variant: "uncontained",
|
|
10
|
+
size: "large"
|
|
11
|
+
}), h = {
|
|
12
|
+
tabs: "_tabs_w9b70_1",
|
|
13
|
+
tabList: "_tabList_w9b70_12",
|
|
14
|
+
tab: "_tab_w9b70_1",
|
|
15
|
+
contained: "_contained_w9b70_54",
|
|
16
|
+
medium: "_medium_w9b70_74",
|
|
17
|
+
selectionIndicator: "_selectionIndicator_w9b70_97",
|
|
18
|
+
animated: "_animated_w9b70_100",
|
|
19
|
+
tabPanel: "_tabPanel_w9b70_135"
|
|
20
|
+
}, g = ({ className: t, variant: n = "uncontained", size: r = "large", ...i }) => /* @__PURE__ */ f(m.Provider, {
|
|
21
|
+
value: {
|
|
22
|
+
variant: n,
|
|
23
|
+
size: r
|
|
24
|
+
},
|
|
25
|
+
children: /* @__PURE__ */ f(l, {
|
|
26
|
+
className: e(h.tabs, t),
|
|
27
|
+
...i
|
|
28
|
+
})
|
|
29
|
+
}), _ = ({ className: t, ...n }) => {
|
|
30
|
+
let { variant: s, size: c } = r(m), l = r(i);
|
|
31
|
+
return /* @__PURE__ */ f(o, {
|
|
32
|
+
...n,
|
|
33
|
+
className: e(h.tab, {
|
|
34
|
+
[h.contained]: s === "contained",
|
|
35
|
+
[h.medium]: c === "medium"
|
|
36
|
+
}, t),
|
|
37
|
+
children: u(n.children, (t) => /* @__PURE__ */ p(d, { children: [t, /* @__PURE__ */ f(a, { className: e(h.selectionIndicator, {
|
|
38
|
+
[h.contained]: s === "contained",
|
|
39
|
+
[h.animated]: !l
|
|
40
|
+
}) })] }))
|
|
41
|
+
});
|
|
42
|
+
}, v = ({ className: n, ...r }) => {
|
|
43
|
+
let { variant: i, size: a } = t.useContext(m);
|
|
44
|
+
return /* @__PURE__ */ f(c, {
|
|
45
|
+
className: e(h.tabPanel, {
|
|
46
|
+
[h.contained]: i === "contained",
|
|
47
|
+
[h.medium]: a === "medium"
|
|
48
|
+
}, n),
|
|
49
|
+
...r
|
|
50
|
+
});
|
|
51
|
+
}, y = ({ className: t, ...n }) => /* @__PURE__ */ f(s, {
|
|
52
|
+
className: e(h.tabList, t),
|
|
53
|
+
...n
|
|
54
|
+
});
|
|
55
|
+
//#endregion
|
|
56
|
+
export { g as i, v as n, _ as r, y as t };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
3
3
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
4
4
|
import { n } from "./button-dpe6hXmI.js";
|
|
5
|
-
import { n as r, t as i } from "./label-
|
|
5
|
+
import { n as r, t as i } from "./label-D-qPkeUX.js";
|
|
6
6
|
import { t as a } from "./text-DnvD4Cjc.js";
|
|
7
7
|
import { t as o } from "./field-error-BHoPnRe4.js";
|
|
8
8
|
import { t as s } from "./character-counter-CSoVSrxZ.js";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
2
2
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
3
|
-
import { n, t as r } from "./label-
|
|
3
|
+
import { n, t as r } from "./label-D-qPkeUX.js";
|
|
4
4
|
import { t as i } from "./text-DnvD4Cjc.js";
|
|
5
5
|
import { t as a } from "./field-error-BHoPnRe4.js";
|
|
6
6
|
import { t as o } from "./clear-button-DWtOkhCH.js";
|
|
7
|
-
import { n as s, r as c } from "./date-field-
|
|
7
|
+
import { n as s, r as c } from "./date-field-D73LuPS0.js";
|
|
8
8
|
import * as l from "react";
|
|
9
9
|
import { TimeField as u, TimeFieldStateContext as d } from "react-aria-components";
|
|
10
10
|
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
package/combobox/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/combobox-
|
|
1
|
+
import { t as e } from "../chunks/combobox-CZhXbrMD.js";
|
|
2
2
|
export { e as ComboBox };
|
package/date-field/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../chunks/date-field-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../chunks/date-field-D73LuPS0.js";
|
|
2
2
|
export { e as DateField, t as DateInput, r as DateInputDivider, n as DateSegment };
|
package/date-picker/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/date-picker-
|
|
1
|
+
import { n as e, t } from "../chunks/date-picker-EEQ4pvDV.js";
|
|
2
2
|
export { e as DatePicker, t as DateRangePicker };
|
package/file-list/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/file-list-
|
|
1
|
+
import { n as e, t } from "../chunks/file-list-CsK6E-mQ.js";
|
|
2
2
|
export { e as FileList, t as FileListItem };
|
package/index.js
CHANGED
|
@@ -8,14 +8,14 @@ import { n as a, t as o } from "./chunks/button-dpe6hXmI.js";
|
|
|
8
8
|
import { t as s } from "./chunks/heading-DcOjYrUM.js";
|
|
9
9
|
import { n as c, t as l } from "./chunks/badge-C4bXJmhn.js";
|
|
10
10
|
import { n as u, t as d } from "./chunks/breadcrumbs-BGnyY3bO.js";
|
|
11
|
-
import { n as f, t as p } from "./chunks/calendar-
|
|
12
|
-
import { t as m } from "./chunks/label-
|
|
11
|
+
import { n as f, t as p } from "./chunks/calendar-CMcDh3Qp.js";
|
|
12
|
+
import { t as m } from "./chunks/label-D-qPkeUX.js";
|
|
13
13
|
import { t as h } from "./chunks/popover-B82BcP5n.js";
|
|
14
|
-
import { n as g, r as _, t as v } from "./chunks/modal-
|
|
14
|
+
import { n as g, r as _, t as v } from "./chunks/modal-Bst_8zeF.js";
|
|
15
15
|
import { t as y } from "./chunks/text-DnvD4Cjc.js";
|
|
16
16
|
import { t as b } from "./chunks/field-error-BHoPnRe4.js";
|
|
17
|
-
import { i as x, n as S, r as C, t as w } from "./chunks/checkbox-
|
|
18
|
-
import { n as T, t as E } from "./chunks/select-
|
|
17
|
+
import { i as x, n as S, r as C, t as w } from "./chunks/checkbox-E5RkzKav.js";
|
|
18
|
+
import { n as T, t as E } from "./chunks/select-BtknjTlA.js";
|
|
19
19
|
import { a as D, c as O, i as k, n as A, o as j, r as M, s as N, t as P } from "./chunks/list-box-BzBJX0nP.js";
|
|
20
20
|
import { n as F, r as I, t as L } from "./chunks/tag-BEawJnJm.js";
|
|
21
21
|
import { a as R, c as z, i as B, l as V, n as H, o as U, r as W, s as G, t as K } from "./chunks/card-C0S9Kyi2.js";
|
|
@@ -24,12 +24,12 @@ import { t as J } from "./chunks/icons-UBHIX2oV.js";
|
|
|
24
24
|
import { n as Y, t as X } from "./chunks/toggle-button-DD_bXanH.js";
|
|
25
25
|
import { n as Z, t as Q } from "./chunks/color-scheme-switch-DVyIszaD.js";
|
|
26
26
|
import { a as $, i as ee, n as te, o as ne, r as re, t as ie } from "./chunks/menu-DbQ98noD.js";
|
|
27
|
-
import { t as ae } from "./chunks/combobox-
|
|
28
|
-
import { i as oe, n as se, r as ce, t as le } from "./chunks/date-field-
|
|
29
|
-
import { n as ue, t as de } from "./chunks/date-picker-
|
|
27
|
+
import { t as ae } from "./chunks/combobox-CZhXbrMD.js";
|
|
28
|
+
import { i as oe, n as se, r as ce, t as le } from "./chunks/date-field-D73LuPS0.js";
|
|
29
|
+
import { n as ue, t as de } from "./chunks/date-picker-EEQ4pvDV.js";
|
|
30
30
|
import { t as fe } from "./chunks/drop-zone-DNhEbH4w.js";
|
|
31
|
-
import { n as pe, t as me } from "./chunks/file-list-
|
|
32
|
-
import { t as he } from "./chunks/progress-bar-
|
|
31
|
+
import { n as pe, t as me } from "./chunks/file-list-CsK6E-mQ.js";
|
|
32
|
+
import { t as he } from "./chunks/progress-bar-DQ56IibW.js";
|
|
33
33
|
import { t as ge } from "./chunks/file-trigger-Dp5nH8oS.js";
|
|
34
34
|
import { n as _e, t as ve } from "./chunks/grid-BR68fpvW.js";
|
|
35
35
|
import { t as ye } from "./chunks/info-banner-DXjPEG69.js";
|
|
@@ -38,14 +38,14 @@ import { n as Te, t as Ee } from "./chunks/tooltip-1GBTeMrm.js";
|
|
|
38
38
|
import { n as De, t as Oe } from "./chunks/logo-DSJ1bUJZ.js";
|
|
39
39
|
import { n as ke, t as Ae } from "./chunks/link-B76JDA2N.js";
|
|
40
40
|
import { t as je } from "./chunks/link-button-BeXxC22w.js";
|
|
41
|
-
import { i as Me, n as Ne, r as Pe, t as Fe } from "./chunks/radio-
|
|
42
|
-
import { t as Ie } from "./chunks/search-field-
|
|
41
|
+
import { i as Me, n as Ne, r as Pe, t as Fe } from "./chunks/radio-BuUsac8x.js";
|
|
42
|
+
import { t as Ie } from "./chunks/search-field-DDKW7zLX.js";
|
|
43
43
|
import { t as Le } from "./chunks/skeleton-R_3dS7Ro.js";
|
|
44
44
|
import { t as Re } from "./chunks/stack-BAHKom_Q.js";
|
|
45
|
-
import { a as ze, i as Be, n as Ve, o as He, r as Ue, t as We } from "./chunks/table-
|
|
46
|
-
import { i as Ge, n as Ke, r as qe, t as Je } from "./chunks/tabs-
|
|
47
|
-
import { i as Ye, n as Xe, r as Ze, t as Qe } from "./chunks/textfield-
|
|
48
|
-
import { t as $e } from "./chunks/time-field-
|
|
45
|
+
import { a as ze, i as Be, n as Ve, o as He, r as Ue, t as We } from "./chunks/table-BaeA6tVH.js";
|
|
46
|
+
import { i as Ge, n as Ke, r as qe, t as Je } from "./chunks/tabs-CbcNTa7J.js";
|
|
47
|
+
import { i as Ye, n as Xe, r as Ze, t as Qe } from "./chunks/textfield-D7GvYAz4.js";
|
|
48
|
+
import { t as $e } from "./chunks/time-field-DcEMnB3d.js";
|
|
49
49
|
import { a as et, i as tt, n as nt, o as rt, r as it, t as at } from "./chunks/toast-DZuvVRD_.js";
|
|
50
50
|
//#endregion
|
|
51
51
|
//#region src/version.ts
|
|
@@ -61,7 +61,7 @@ var ot = {
|
|
|
61
61
|
description: "Midas Components",
|
|
62
62
|
homepage: "https://designsystem.migrationsverket.se/",
|
|
63
63
|
license: "CC0-1.0",
|
|
64
|
-
version: "17.
|
|
64
|
+
version: "17.32.1",
|
|
65
65
|
module: "./index.js",
|
|
66
66
|
type: "module",
|
|
67
67
|
main: "./index.js",
|
package/label/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/label-
|
|
1
|
+
import { t as e } from "../chunks/label-D-qPkeUX.js";
|
|
2
2
|
export { e as Label };
|
package/modal/Modal.d.ts
CHANGED
|
@@ -9,6 +9,10 @@ export interface ModalProps extends ModalOverlayProps {
|
|
|
9
9
|
* Hide close button in modal header. Use with caution!
|
|
10
10
|
*/
|
|
11
11
|
hideCloseButton?: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Sticky footer content
|
|
14
|
+
*/
|
|
15
|
+
footer?: React.ReactNode;
|
|
12
16
|
}
|
|
13
17
|
export { DialogTrigger };
|
|
14
18
|
export declare const Modal: import('react').ForwardRefExoticComponent<ModalProps & import('react').RefAttributes<HTMLDivElement>>;
|
package/modal/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../chunks/modal-
|
|
1
|
+
import { n as e, r as t, t as n } from "../chunks/modal-Bst_8zeF.js";
|
|
2
2
|
export { n as DialogTrigger, e as Modal, t as ModalOverlay };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Publishes the height of a sticky element as a custom property on the dialog,
|
|
3
|
+
* which uses it as scroll padding so focused content isn't hidden behind it.
|
|
4
|
+
*/
|
|
5
|
+
export declare const useStickyHeight: (property: string) => (element: HTMLDivElement | null) => void;
|
package/package.json
CHANGED
package/progress-bar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/progress-bar-
|
|
1
|
+
import { t as e } from "../chunks/progress-bar-DQ56IibW.js";
|
|
2
2
|
export { e as ProgressBar };
|
package/radio/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../chunks/radio-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../chunks/radio-BuUsac8x.js";
|
|
2
2
|
export { t as Radio, n as RadioButton, e as RadioField, r as RadioGroup };
|
package/search-field/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/search-field-
|
|
1
|
+
import { t as e } from "../chunks/search-field-DDKW7zLX.js";
|
|
2
2
|
export { e as SearchField };
|
package/select/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/select-
|
|
1
|
+
import { n as e, t } from "../chunks/select-BtknjTlA.js";
|
|
2
2
|
export { t as Select, e as SelectTrigger };
|
package/table/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/table-
|
|
1
|
+
import { a as e, i as t, n, o as r, r as i, t as a } from "../chunks/table-BaeA6tVH.js";
|
|
2
2
|
export { a as Cell, n as Column, i as Row, t as Table, e as TableBody, r as TableHeader };
|
package/tabs/Tab.d.ts
CHANGED
package/tabs/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../chunks/tabs-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../chunks/tabs-CbcNTa7J.js";
|
|
2
2
|
export { n as Tab, r as TabList, t as TabPanel, e as Tabs };
|
package/textfield/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../chunks/textfield-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../chunks/textfield-D7GvYAz4.js";
|
|
2
2
|
export { n as Input, r as TextArea, t as TextField, e as TextFieldBase };
|
package/time-field/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../chunks/time-field-
|
|
1
|
+
import { t as e } from "../chunks/time-field-DcEMnB3d.js";
|
|
2
2
|
export { e as TimeField };
|
package/chunks/modal-C8rs1jfL.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
2
|
-
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
3
|
-
import { n } from "./button-dpe6hXmI.js";
|
|
4
|
-
import { t as r } from "./heading-DcOjYrUM.js";
|
|
5
|
-
import { forwardRef as i } from "react";
|
|
6
|
-
import { Dialog as a, DialogTrigger as o, Modal as s, ModalOverlay as c, composeRenderProps as l } from "react-aria-components";
|
|
7
|
-
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
-
import { X as f } from "lucide-react";
|
|
9
|
-
import '../assets/modal.css';var p = {
|
|
10
|
-
modal: "_modal_x15md_1",
|
|
11
|
-
dialog: "_dialog_x15md_10",
|
|
12
|
-
modalHeader: "_modalHeader_x15md_39",
|
|
13
|
-
modalTitle: "_modalTitle_x15md_50",
|
|
14
|
-
modalBody: "_modalBody_x15md_56"
|
|
15
|
-
}, m = {
|
|
16
|
-
en: { close: "Close" },
|
|
17
|
-
sv: { close: "Stäng" }
|
|
18
|
-
}, h = {
|
|
19
|
-
modalOverlay: "_modalOverlay_gwg3f_1",
|
|
20
|
-
"modal-fade": "_modal-fade_gwg3f_1"
|
|
21
|
-
}, g = i(({ className: t, ...n }, r) => /* @__PURE__ */ u(c, {
|
|
22
|
-
className: e(t, h.modalOverlay),
|
|
23
|
-
ref: r,
|
|
24
|
-
...n
|
|
25
|
-
}));
|
|
26
|
-
g.displayName = "ModalOverlay";
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region src/modal/Modal.tsx
|
|
29
|
-
var _ = i(({ children: e, title: i, hideCloseButton: o = !1, ...c }, h) => {
|
|
30
|
-
let _ = t(m);
|
|
31
|
-
return /* @__PURE__ */ u(g, {
|
|
32
|
-
...c,
|
|
33
|
-
children: l(e, (e) => /* @__PURE__ */ u(s, {
|
|
34
|
-
className: p.modal,
|
|
35
|
-
ref: h,
|
|
36
|
-
children: /* @__PURE__ */ d(a, {
|
|
37
|
-
className: p.dialog,
|
|
38
|
-
children: [/* @__PURE__ */ d("div", {
|
|
39
|
-
className: p.modalHeader,
|
|
40
|
-
children: [/* @__PURE__ */ u("div", {
|
|
41
|
-
className: p.modalTitle,
|
|
42
|
-
children: i && /* @__PURE__ */ u(r, {
|
|
43
|
-
level: 3,
|
|
44
|
-
elementType: "h2",
|
|
45
|
-
slot: "title",
|
|
46
|
-
children: i
|
|
47
|
-
})
|
|
48
|
-
}), !o && /* @__PURE__ */ u(n, {
|
|
49
|
-
slot: "close",
|
|
50
|
-
variant: "tertiary",
|
|
51
|
-
icon: f,
|
|
52
|
-
iconPlacement: "right",
|
|
53
|
-
children: _.format("close")
|
|
54
|
-
})]
|
|
55
|
-
}), /* @__PURE__ */ u("div", {
|
|
56
|
-
className: p.modalBody,
|
|
57
|
-
tabIndex: -1,
|
|
58
|
-
children: e
|
|
59
|
-
})]
|
|
60
|
-
})
|
|
61
|
-
}))
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
_.displayName = "Modal";
|
|
65
|
-
//#endregion
|
|
66
|
-
export { _ as n, g as r, o as t };
|
package/chunks/tabs-owuRVJ3N.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { t as e } from "./clsx-DAqHMl_k.js";
|
|
3
|
-
import * as t from "react";
|
|
4
|
-
import { createContext as n } from "react";
|
|
5
|
-
import { DialogContext as r, SelectionIndicator as i, Tab as a, TabList as o, TabPanel as s, Tabs as c, composeRenderProps as l } from "react-aria-components";
|
|
6
|
-
import { Fragment as u, jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
7
|
-
import '../assets/tabs.css';//#region src/tabs/TabsContext.ts
|
|
8
|
-
var p = n({
|
|
9
|
-
variant: "uncontained",
|
|
10
|
-
size: "large"
|
|
11
|
-
}), m = {
|
|
12
|
-
tabs: "_tabs_ninos_1",
|
|
13
|
-
tabList: "_tabList_ninos_12",
|
|
14
|
-
tab: "_tab_ninos_1",
|
|
15
|
-
contained: "_contained_ninos_55",
|
|
16
|
-
medium: "_medium_ninos_75",
|
|
17
|
-
selectionIndicator: "_selectionIndicator_ninos_98",
|
|
18
|
-
animated: "_animated_ninos_101",
|
|
19
|
-
tabPanel: "_tabPanel_ninos_136"
|
|
20
|
-
}, h = ({ className: t, variant: n = "uncontained", size: r = "large", ...i }) => /* @__PURE__ */ d(p.Provider, {
|
|
21
|
-
value: {
|
|
22
|
-
variant: n,
|
|
23
|
-
size: r
|
|
24
|
-
},
|
|
25
|
-
children: /* @__PURE__ */ d(c, {
|
|
26
|
-
className: e(m.tabs, t),
|
|
27
|
-
...i
|
|
28
|
-
})
|
|
29
|
-
}), g = ({ className: n, ...o }) => {
|
|
30
|
-
let { variant: s, size: c } = t.useContext(p), h = t.useContext(r);
|
|
31
|
-
return /* @__PURE__ */ d(a, {
|
|
32
|
-
...o,
|
|
33
|
-
className: e(m.tab, {
|
|
34
|
-
[m.contained]: s === "contained",
|
|
35
|
-
[m.medium]: c === "medium"
|
|
36
|
-
}, n),
|
|
37
|
-
children: l(o.children, (t) => /* @__PURE__ */ f(u, { children: [t, /* @__PURE__ */ d(i, { className: e(m.selectionIndicator, {
|
|
38
|
-
[m.contained]: s === "contained",
|
|
39
|
-
[m.animated]: !h
|
|
40
|
-
}) })] }))
|
|
41
|
-
});
|
|
42
|
-
}, _ = ({ className: n, ...r }) => {
|
|
43
|
-
let { variant: i, size: a } = t.useContext(p);
|
|
44
|
-
return /* @__PURE__ */ d(s, {
|
|
45
|
-
className: e(m.tabPanel, {
|
|
46
|
-
[m.contained]: i === "contained",
|
|
47
|
-
[m.medium]: a === "medium"
|
|
48
|
-
}, n),
|
|
49
|
-
...r
|
|
50
|
-
});
|
|
51
|
-
}, v = ({ className: t, ...n }) => /* @__PURE__ */ d(o, {
|
|
52
|
-
className: e(m.tabList, t),
|
|
53
|
-
...n
|
|
54
|
-
});
|
|
55
|
-
//#endregion
|
|
56
|
-
export { h as i, _ as n, g as r, v as t };
|