@midas-ds/components 16.7.0 → 16.8.0
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/CharacterCounter.css +1 -1
- package/character-counter/index.js +1 -1
- package/chunks/AccordionItem-CSvARy63.js +1 -0
- package/chunks/Button-CaLOUTDO.js +1 -0
- package/chunks/{CharacterCounter-R6vh7AE5.js → CharacterCounter-Dgnv-orm.js} +8 -8
- package/chunks/ClearButton-DPm_d7SL.js +1 -0
- package/chunks/ColorSchemeSwitch-DOQ0yjtt.js +1 -0
- package/chunks/ComboBox-B7T13rzp.js +1 -0
- package/chunks/DateRangePicker-D6lnN0ox.js +1 -0
- package/chunks/FileUpload-Cu8DCSjX.js +1 -0
- package/chunks/Layout-CFhqS9ej.js +484 -0
- package/chunks/Link-rqGQvFQq.js +1 -0
- package/chunks/LinkButton-B1zayj7k.js +1 -0
- package/chunks/Radio-Bp-JwJid.js +1 -0
- package/chunks/SearchField-Dcs9LjKo.js +1 -0
- package/chunks/TabList-BaR443mu.js +1 -0
- package/chunks/Table-UbdCFrkS.js +1 -0
- package/chunks/{TextArea-Ceo3ziOi.js → TextArea-Bb7H-w23.js} +2 -1
- package/chunks/Toast-D7PXIDa9.js +1 -0
- package/index.d.ts +1 -0
- package/index.js +154 -149
- package/layout/Layout.d.ts +7 -0
- package/layout/components/Sidebar.d.ts +6 -1
- package/layout/components/SidebarLink.d.ts +1 -1
- package/layout/context/LayoutContext.d.ts +1 -2
- package/layout/index.js +1 -1
- package/package.json +2 -2
- package/textfield/index.js +1 -1
- package/version.d.ts +1 -0
- package/chunks/Layout-C2-vyEKy.js +0 -466
package/index.js
CHANGED
|
@@ -1,151 +1,156 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
import { B as
|
|
4
|
-
import { B as
|
|
5
|
-
import { B as
|
|
6
|
-
import {
|
|
7
|
-
import { C
|
|
8
|
-
import { C as P } from "./chunks/
|
|
9
|
-
import { C as
|
|
10
|
-
import { C as M } from "./chunks/
|
|
11
|
-
import { C as
|
|
12
|
-
import { C as
|
|
13
|
-
import {
|
|
14
|
-
import { D as Q
|
|
15
|
-
import { D as
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { G as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import { L as uo } from "./chunks/
|
|
25
|
-
import { L as
|
|
26
|
-
import { L as
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { P as Go } from "./chunks/
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { S as
|
|
33
|
-
import { S as
|
|
34
|
-
import { S as wo } from "./chunks/
|
|
35
|
-
import { S as zo } from "./chunks/
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { T as
|
|
39
|
-
import { T as aa } from "./chunks/
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
42
|
-
import { T as
|
|
43
|
-
import { T as
|
|
44
|
-
import {
|
|
45
|
-
import { L as
|
|
46
|
-
import { L as
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
1
|
+
'use client';
|
|
2
|
+
import { A as s, a as p } from "./chunks/AccordionItem-CSvARy63.js";
|
|
3
|
+
import { B as m, a as i } from "./chunks/BadgeContainer-CKVsfTlF.js";
|
|
4
|
+
import { B as f, a as d } from "./chunks/Breadcrumb-BQ_nyDfo.js";
|
|
5
|
+
import { B as c } from "./chunks/Button-CaLOUTDO.js";
|
|
6
|
+
import { B as u } from "./chunks/ButtonGroup-Dr6HOBo2.js";
|
|
7
|
+
import { C, R as b } from "./chunks/RangeCalendar-h9wkh43W.js";
|
|
8
|
+
import { C as L, a as S, b as I, c as D, d as R, e as G, f as P } from "./chunks/Card-DMSnokPn.js";
|
|
9
|
+
import { C as v } from "./chunks/CharacterCounter-Dgnv-orm.js";
|
|
10
|
+
import { C as M } from "./chunks/Checkbox-CRLj7_Ox.js";
|
|
11
|
+
import { C as h } from "./chunks/CheckboxGroup-DSXCj_ho.js";
|
|
12
|
+
import { C as y } from "./chunks/ColorSchemeSwitch-DOQ0yjtt.js";
|
|
13
|
+
import { C as w, a as E, b as z } from "./chunks/ComboBox-B7T13rzp.js";
|
|
14
|
+
import { D as Q } from "./chunks/DateField-zdUv4ooW.js";
|
|
15
|
+
import { D as Z, a as j, b as q } from "./chunks/DateInputDivider-DwopMIb9.js";
|
|
16
|
+
import { D as K, a as U } from "./chunks/DateRangePicker-D6lnN0ox.js";
|
|
17
|
+
import { F as X } from "./chunks/FieldError-C_3uLAGY.js";
|
|
18
|
+
import { D as _, F as $ } from "./chunks/FileUpload-Cu8DCSjX.js";
|
|
19
|
+
import { G as ao } from "./chunks/Grid-CettmpaZ.js";
|
|
20
|
+
import { G as eo } from "./chunks/GridItem-z7zclNdT.js";
|
|
21
|
+
import { H as so } from "./chunks/Heading-D8tNNJkt.js";
|
|
22
|
+
import { I as xo } from "./chunks/InfoBanner-C4HnaXQO.js";
|
|
23
|
+
import { L as io } from "./chunks/Label-6GZmmff9.js";
|
|
24
|
+
import { H as fo, L as To, N as co, S as lo, a as uo } from "./chunks/Layout-CFhqS9ej.js";
|
|
25
|
+
import { L as Co } from "./chunks/Link-rqGQvFQq.js";
|
|
26
|
+
import { L as Bo } from "./chunks/LinkButton-B1zayj7k.js";
|
|
27
|
+
import { L as So } from "./chunks/Logo-CCxPAmgw.js";
|
|
28
|
+
import { M as Do } from "./chunks/Dialog-BHxDzbf8.js";
|
|
29
|
+
import { P as Go } from "./chunks/Popover-BcEtFiU1.js";
|
|
30
|
+
import { P as ko } from "./chunks/ProgressBar-Dg0JMQ71.js";
|
|
31
|
+
import { R as Fo, a as Mo } from "./chunks/Radio-Bp-JwJid.js";
|
|
32
|
+
import { S as ho } from "./chunks/SearchField-Dcs9LjKo.js";
|
|
33
|
+
import { S as yo } from "./chunks/Select-w2o-VyrP.js";
|
|
34
|
+
import { S as wo } from "./chunks/Select-BYz3DdXs.js";
|
|
35
|
+
import { S as zo } from "./chunks/Skeleton-DqIHQLQl.js";
|
|
36
|
+
import { S as Qo } from "./chunks/Spinner-CfKMn18u.js";
|
|
37
|
+
import { C as Zo, a as jo, R as qo, T as Jo, b as Ko, c as Uo } from "./chunks/Table-UbdCFrkS.js";
|
|
38
|
+
import { T as Xo, a as Yo, b as _o, c as $o } from "./chunks/TabList-BaR443mu.js";
|
|
39
|
+
import { T as aa, a as ra } from "./chunks/Tag-C7VZ0T0o.js";
|
|
40
|
+
import { T as ta } from "./chunks/Text-Bxww8mmL.js";
|
|
41
|
+
import { I as pa, T as xa, a as ma, b as ia } from "./chunks/TextArea-Bb7H-w23.js";
|
|
42
|
+
import { G as fa, T as da, a as Ta, b as ca, t as la } from "./chunks/Toast-D7PXIDa9.js";
|
|
43
|
+
import { T as ga, a as Ca } from "./chunks/ToggleButtonGroup-CXKTrLbb.js";
|
|
44
|
+
import { T as Ba, a as La } from "./chunks/Tooltip-rDmOkGmX.js";
|
|
45
|
+
import { L as Ia } from "./chunks/ListBox-D5BBeZWL.js";
|
|
46
|
+
import { L as Ra, a as Ga } from "./chunks/ListBoxLoadMoreItem-ufPaJaNS.js";
|
|
47
|
+
import { L as ka, a as va, b as Fa, c as Ma } from "./chunks/ListBoxSection-C4y3K7T5.js";
|
|
48
|
+
import { M as ha, a as Ha, b as ya, c as Na, S as wa } from "./chunks/Separator-XIzn8lsq.js";
|
|
49
|
+
import { DialogTrigger as za, MenuTrigger as Oa, RouterProvider as Qa } from "react-aria-components";
|
|
50
|
+
import { u as Za } from "./chunks/useLocalizedStringFormatter-BHvsRxDk.js";
|
|
51
|
+
import { useToastState as qa } from "react-stately";
|
|
52
|
+
const o = "16.8.0", a = {
|
|
53
|
+
version: o
|
|
54
|
+
}, r = a.version;
|
|
51
55
|
export {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
56
|
+
s as Accordion,
|
|
57
|
+
p as AccordionItem,
|
|
58
|
+
m as Badge,
|
|
59
|
+
i as BadgeContainer,
|
|
60
|
+
f as Breadcrumb,
|
|
61
|
+
d as Breadcrumbs,
|
|
62
|
+
c as Button,
|
|
63
|
+
u as ButtonGroup,
|
|
64
|
+
C as Calendar,
|
|
65
|
+
L as Card,
|
|
66
|
+
S as CardActionArea,
|
|
67
|
+
I as CardActions,
|
|
68
|
+
D as CardContent,
|
|
69
|
+
R as CardImage,
|
|
70
|
+
G as CardLink,
|
|
71
|
+
P as CardTitle,
|
|
72
|
+
Zo as Cell,
|
|
73
|
+
v as CharacterCounter,
|
|
74
|
+
M as Checkbox,
|
|
75
|
+
h as CheckboxGroup,
|
|
76
|
+
y as ColorSchemeSwitch,
|
|
77
|
+
jo as Column,
|
|
78
|
+
w as ComboBox,
|
|
79
|
+
E as ComboBoxItem,
|
|
80
|
+
z as ComboBoxSection,
|
|
81
|
+
Q as DateField,
|
|
82
|
+
Z as DateInput,
|
|
83
|
+
j as DateInputDivider,
|
|
84
|
+
K as DatePicker,
|
|
85
|
+
U as DateRangePicker,
|
|
86
|
+
q as DateSegment,
|
|
87
|
+
za as DialogTrigger,
|
|
88
|
+
_ as DropZone,
|
|
89
|
+
X as FieldError,
|
|
90
|
+
$ as FileTrigger,
|
|
91
|
+
fa as GlobalToastRegion,
|
|
92
|
+
ao as Grid,
|
|
93
|
+
eo as GridItem,
|
|
94
|
+
fo as Header,
|
|
95
|
+
so as Heading,
|
|
96
|
+
xo as InfoBanner,
|
|
97
|
+
pa as Input,
|
|
98
|
+
io as Label,
|
|
99
|
+
To as Layout,
|
|
100
|
+
wo as LegacySelect,
|
|
101
|
+
Co as Link,
|
|
102
|
+
Bo as LinkButton,
|
|
103
|
+
Ia as ListBox,
|
|
104
|
+
Ra as ListBoxButton,
|
|
105
|
+
ka as ListBoxHeader,
|
|
106
|
+
va as ListBoxItem,
|
|
107
|
+
Ga as ListBoxLoadMoreItem,
|
|
108
|
+
Fa as ListBoxPopover,
|
|
109
|
+
Ma as ListBoxSection,
|
|
110
|
+
So as Logo,
|
|
111
|
+
ha as Menu,
|
|
112
|
+
Ha as MenuItem,
|
|
113
|
+
ya as MenuPopover,
|
|
114
|
+
Na as MenuSection,
|
|
115
|
+
Oa as MenuTrigger,
|
|
116
|
+
Do as Modal,
|
|
117
|
+
co as Navbar,
|
|
118
|
+
Go as Popover,
|
|
119
|
+
ko as ProgressBar,
|
|
120
|
+
Fo as Radio,
|
|
121
|
+
Mo as RadioGroup,
|
|
122
|
+
b as RangeCalendar,
|
|
123
|
+
Qa as RouterProvider,
|
|
124
|
+
qo as Row,
|
|
125
|
+
ho as SearchField,
|
|
126
|
+
yo as Select,
|
|
127
|
+
wa as Separator,
|
|
128
|
+
lo as Sidebar,
|
|
129
|
+
uo as SidebarLink,
|
|
130
|
+
zo as Skeleton,
|
|
131
|
+
Qo as Spinner,
|
|
132
|
+
Xo as Tab,
|
|
133
|
+
Yo as TabList,
|
|
134
|
+
_o as TabPanel,
|
|
135
|
+
Jo as Table,
|
|
136
|
+
Ko as TableBody,
|
|
137
|
+
Uo as TableHeader,
|
|
138
|
+
$o as Tabs,
|
|
139
|
+
aa as Tag,
|
|
140
|
+
ra as TagGroup,
|
|
141
|
+
ta as Text,
|
|
142
|
+
xa as TextArea,
|
|
143
|
+
ma as TextField,
|
|
144
|
+
ia as TextFieldBase,
|
|
145
|
+
da as Toast,
|
|
146
|
+
Ta as ToastProvider,
|
|
147
|
+
ca as ToastRegion,
|
|
148
|
+
ga as ToggleButton,
|
|
149
|
+
Ca as ToggleButtonGroup,
|
|
150
|
+
Ba as Tooltip,
|
|
151
|
+
La as TooltipTrigger,
|
|
152
|
+
r as VERSION,
|
|
153
|
+
la as toastQueue,
|
|
154
|
+
Za as useLocalizedStringFormatter,
|
|
155
|
+
qa as useToastState
|
|
151
156
|
};
|
package/layout/Layout.d.ts
CHANGED
|
@@ -11,6 +11,10 @@ export interface SidebarLinkGroup {
|
|
|
11
11
|
title?: string;
|
|
12
12
|
items: SidebarLinkProps[];
|
|
13
13
|
}
|
|
14
|
+
export type SidebarLinkClickData = {
|
|
15
|
+
title: string;
|
|
16
|
+
href: string;
|
|
17
|
+
};
|
|
14
18
|
export interface SidebarLinkProps {
|
|
15
19
|
title: string;
|
|
16
20
|
href: string;
|
|
@@ -19,6 +23,7 @@ export interface SidebarLinkProps {
|
|
|
19
23
|
hasBadge?: boolean;
|
|
20
24
|
isCollapsed?: boolean;
|
|
21
25
|
setIsOpened?: React.Dispatch<React.SetStateAction<boolean>>;
|
|
26
|
+
onClick?: (e: SidebarLinkClickData) => void;
|
|
22
27
|
}
|
|
23
28
|
export interface SidebarUser {
|
|
24
29
|
name: string;
|
|
@@ -54,6 +59,8 @@ export interface MidasLayout {
|
|
|
54
59
|
clientSideHref?: (href: Href) => string;
|
|
55
60
|
variant: 'internal' | 'external';
|
|
56
61
|
className?: string;
|
|
62
|
+
/** Event triggered when sidebar link is clicked. */
|
|
63
|
+
onSidebarLinkClick?: (e: SidebarLinkClickData) => void;
|
|
57
64
|
}
|
|
58
65
|
export declare const Layout: React.FC<MidasLayout> & {
|
|
59
66
|
Provider: typeof LayoutProvider;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
+
import { SidebarLinkClickData } from '../Layout';
|
|
1
2
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
+
type SidebarProps = {
|
|
4
|
+
onLinkClick?: (e: SidebarLinkClickData) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const Sidebar: React.FC<SidebarProps>;
|
|
7
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SidebarLinkProps } from '../Layout';
|
|
2
|
-
export declare const SidebarLink: ({ title, href, icon: IconComponent, active, hasBadge, }: SidebarLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const SidebarLink: ({ title, href, icon: IconComponent, active, hasBadge, onClick, }: SidebarLinkProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { SidebarLinkGroup, SidebarUser, App } from '../Layout';
|
|
2
2
|
import { Href } from '@react-types/shared';
|
|
3
3
|
import * as React from 'react';
|
|
4
|
-
interface LayoutContextProps {
|
|
4
|
+
export interface LayoutContextProps {
|
|
5
5
|
items: SidebarLinkGroup[];
|
|
6
6
|
title: string;
|
|
7
7
|
user: SidebarUser;
|
|
@@ -20,4 +20,3 @@ export declare const LayoutProvider: React.FC<LayoutContextProps & {
|
|
|
20
20
|
children: React.ReactNode;
|
|
21
21
|
}>;
|
|
22
22
|
export declare const useLayoutContext: () => LayoutContextProps;
|
|
23
|
-
export {};
|
package/layout/index.js
CHANGED
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": "16.
|
|
17
|
+
"version": "16.8.0",
|
|
18
18
|
"module": "./index.js",
|
|
19
19
|
"type": "module",
|
|
20
20
|
"main": "./index.js",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"./*": "./*/index.js"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@midas-ds/theme": "3.10.
|
|
44
|
+
"@midas-ds/theme": "3.10.6",
|
|
45
45
|
"react-aria-components": "1.14.0"
|
|
46
46
|
}
|
|
47
47
|
}
|
package/textfield/index.js
CHANGED
package/version.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const VERSION: string;
|