@mattilsynet/design 1.3.0 → 1.3.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/mtds/alert/alert.stories.d.ts +2 -2
- package/mtds/app/app-observer.js +1 -1
- package/mtds/app/app-toggle.js +26 -14
- package/mtds/app/app-toggle.js.map +1 -1
- package/mtds/app/app-toggle2.js +14 -26
- package/mtds/app/app-toggle2.js.map +1 -1
- package/mtds/app/app.js +1 -1
- package/mtds/app/app.stories.d.ts +2 -2
- package/mtds/avatar/avatar.stories.d.ts +2 -2
- package/mtds/badge/badge.stories.d.ts +2 -2
- package/mtds/breadcrumbs/breadcrumbs.stories.d.ts +2 -2
- package/mtds/button/button.stories.d.ts +2 -2
- package/mtds/card/card.stories.d.ts +2 -2
- package/mtds/chip/chip.stories.d.ts +2 -2
- package/mtds/details/details.stories.d.ts +1 -1
- package/mtds/dialog/dialog.stories.d.ts +1 -1
- package/mtds/divider/divider.stories.d.ts +1 -1
- package/mtds/errorsummary/errorsummary.stories.d.ts +2 -2
- package/mtds/external/@u-elements/u-combobox/dist/u-combobox.js +151 -152
- package/mtds/external/@u-elements/u-combobox/dist/u-combobox.js.map +1 -1
- package/mtds/external/@u-elements/u-datalist/dist/u-datalist.js +55 -57
- package/mtds/external/@u-elements/u-datalist/dist/u-datalist.js.map +1 -1
- package/mtds/field/field-observer.js +22 -22
- package/mtds/field/field-observer.js.map +1 -1
- package/mtds/field/field.js +4 -3
- package/mtds/field/field.js.map +1 -1
- package/mtds/field/field.stories.d.ts +3 -2
- package/mtds/fieldset/fieldset-observer.js +20 -15
- package/mtds/fieldset/fieldset-observer.js.map +1 -1
- package/mtds/fieldset/fieldset.stories.d.ts +1 -1
- package/mtds/helptext/helptext.stories.d.ts +1 -1
- package/mtds/illustrations/bread.svg +1 -0
- package/mtds/illustrations/drop-apple-bread.svg +1 -0
- package/mtds/illustrations/drop-apple.svg +1 -0
- package/mtds/illustrations/fork-knife-spoon.svg +1 -0
- package/mtds/illustrations/fork-knife.svg +1 -0
- package/mtds/illustrations/fork.svg +1 -0
- package/mtds/illustrations/heart-cat.svg +1 -0
- package/mtds/illustrations/heart.svg +1 -0
- package/mtds/illustrations/hearts-blue.svg +1 -0
- package/mtds/illustrations/hearts-green.svg +1 -0
- package/mtds/illustrations/hearts-red.svg +1 -0
- package/mtds/illustrations/{illustrations.json → index.json} +139 -1
- package/mtds/illustrations/inspector-ai.svg +1 -0
- package/mtds/illustrations/inspector-cow.svg +1 -0
- package/mtds/illustrations/knife.svg +1 -0
- package/mtds/illustrations/person-flask-water-fish-pig.svg +1 -0
- package/mtds/illustrations/plane.svg +1 -0
- package/mtds/illustrations/plant-dog-fish.svg +1 -0
- package/mtds/illustrations/postits.svg +1 -0
- package/mtds/illustrations/pregnant-fork-plant.svg +1 -0
- package/mtds/illustrations/pregnant-fork.svg +1 -0
- package/mtds/illustrations/ship.svg +1 -0
- package/mtds/illustrations/spoon.svg +1 -0
- package/mtds/illustrations/star-1.svg +1 -0
- package/mtds/illustrations/star-2.svg +1 -0
- package/mtds/illustrations/stars.svg +1 -0
- package/mtds/illustrations/turnip-meat.svg +1 -0
- package/mtds/index.d.ts +1 -0
- package/mtds/index.iife.js +8 -7
- package/mtds/input/input.stories.d.ts +2 -2
- package/mtds/layout/layout.stories.d.ts +2 -2
- package/mtds/link/link.stories.d.ts +1 -1
- package/mtds/logo/logo.stories.d.ts +2 -2
- package/mtds/package.json.js +1 -1
- package/mtds/pagination/pagination.stories.d.ts +1 -1
- package/mtds/popover/popover.stories.d.ts +1 -1
- package/mtds/progress/progress.stories.d.ts +2 -2
- package/mtds/react.d.ts +2 -1
- package/mtds/react.js +48 -46
- package/mtds/react.js.map +1 -1
- package/mtds/skeleton/skeleton.stories.d.ts +1 -1
- package/mtds/spinner/spinner.stories.d.ts +2 -2
- package/mtds/steps/steps-observer.d.ts +1 -0
- package/mtds/steps/steps.d.ts +8 -0
- package/mtds/steps/steps.js +11 -0
- package/mtds/steps/steps.js.map +1 -0
- package/mtds/steps/steps.stories.d.ts +20 -0
- package/mtds/styles.css +1 -1
- package/mtds/styles.json +40 -39
- package/mtds/styles.module.css.js +40 -38
- package/mtds/styles.module.css.js.map +1 -1
- package/mtds/table/table.stories.d.ts +2 -2
- package/mtds/tabs/tabs.stories.d.ts +3 -1
- package/mtds/tag/tag.stories.d.ts +2 -2
- package/mtds/togglegroup/togglegroup.stories.d.ts +1 -1
- package/mtds/tooltip/tooltip.stories.d.ts +2 -2
- package/mtds/typography/typography.d.ts +1 -0
- package/mtds/typography/typography.js.map +1 -1
- package/mtds/typography/typography.stories.d.ts +2 -2
- package/mtds/validation/validation.stories.d.ts +1 -1
- package/package.json +10 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
decorators: ((Story: import('
|
|
4
|
+
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
7
7
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
4
|
parameters: {
|
|
5
5
|
layout: string;
|
|
6
6
|
};
|
|
7
|
-
decorators: ((Story: import('
|
|
7
|
+
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
8
|
[x: string]: any;
|
|
9
9
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
10
10
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
4
|
parameters: {
|
|
5
5
|
layout: string;
|
|
6
6
|
};
|
|
7
|
-
decorators: ((Story: import('
|
|
7
|
+
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
8
|
[x: string]: any;
|
|
9
9
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
10
10
|
};
|
package/mtds/package.json.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
4
|
parameters: {
|
|
5
5
|
layout: string;
|
|
6
6
|
};
|
|
7
|
-
decorators: ((Story: import('
|
|
7
|
+
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
8
|
[x: string]: any;
|
|
9
9
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
10
10
|
};
|
package/mtds/react.d.ts
CHANGED
|
@@ -12,7 +12,6 @@ export * from './divider/divider';
|
|
|
12
12
|
export * from './errorsummary/errorsummary';
|
|
13
13
|
export * from './field/field';
|
|
14
14
|
export * from './fieldset/fieldset';
|
|
15
|
-
export * from './typography/typography';
|
|
16
15
|
export * from './helptext/helptext';
|
|
17
16
|
export * from './input/input';
|
|
18
17
|
export * from './layout/layout';
|
|
@@ -23,8 +22,10 @@ export * from './popover/popover';
|
|
|
23
22
|
export * from './progress/progress';
|
|
24
23
|
export * from './skeleton/skeleton';
|
|
25
24
|
export * from './spinner/spinner';
|
|
25
|
+
export * from './steps/steps';
|
|
26
26
|
export * from './table/table';
|
|
27
27
|
export * from './tabs/tabs';
|
|
28
28
|
export * from './tag/tag';
|
|
29
29
|
export * from './togglegroup/togglegroup';
|
|
30
|
+
export * from './typography/typography';
|
|
30
31
|
export * from './validation/validation';
|
package/mtds/react.js
CHANGED
|
@@ -6,28 +6,29 @@ import { Breadcrumbs as l } from "./breadcrumbs/breadcrumbs.js";
|
|
|
6
6
|
import { Button as d } from "./button/button.js";
|
|
7
7
|
import { Card as s, Group as u } from "./card/card.js";
|
|
8
8
|
import { Chip as F } from "./chip/chip.js";
|
|
9
|
-
import { Details as
|
|
10
|
-
import { Dialog as
|
|
11
|
-
import { Divider as
|
|
12
|
-
import { Errorsummary as
|
|
9
|
+
import { Details as S } from "./details/details.js";
|
|
10
|
+
import { Dialog as v } from "./dialog/dialog.js";
|
|
11
|
+
import { Divider as B } from "./divider/divider.js";
|
|
12
|
+
import { Errorsummary as D } from "./errorsummary/errorsummary.js";
|
|
13
13
|
import { Field as c, FieldComp as k } from "./field/field.js";
|
|
14
14
|
import { Fieldset as H } from "./fieldset/fieldset.js";
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import { Table as
|
|
27
|
-
import { Tabs as
|
|
28
|
-
import { Tag as
|
|
29
|
-
import { Togglegroup as
|
|
30
|
-
import {
|
|
15
|
+
import { HelpText as h } from "./helptext/helptext.js";
|
|
16
|
+
import { Input as E, Select as M } from "./input/input.js";
|
|
17
|
+
import { Flex as j, Grid as q, Prose as w } from "./layout/layout.js";
|
|
18
|
+
import { Link as J } from "./link/link.js";
|
|
19
|
+
import { Logo as N } from "./logo/logo.js";
|
|
20
|
+
import { Pagination as Q } from "./pagination/pagination.js";
|
|
21
|
+
import { Popover as U } from "./popover/popover.js";
|
|
22
|
+
import { Progress as X } from "./progress/progress.js";
|
|
23
|
+
import { Skeleton as Z } from "./skeleton/skeleton.js";
|
|
24
|
+
import { Spinner as $ } from "./spinner/spinner.js";
|
|
25
|
+
import { Steps as or } from "./steps/steps.js";
|
|
26
|
+
import { Table as tr } from "./table/table.js";
|
|
27
|
+
import { Tabs as mr } from "./tabs/tabs.js";
|
|
28
|
+
import { Tag as fr } from "./tag/tag.js";
|
|
29
|
+
import { Togglegroup as ir } from "./togglegroup/togglegroup.js";
|
|
30
|
+
import { Heading as nr, Info as dr, Ingress as gr, Muted as sr } from "./typography/typography.js";
|
|
31
|
+
import { Validation as Tr } from "./validation/validation.js";
|
|
31
32
|
export {
|
|
32
33
|
e as Alert,
|
|
33
34
|
p as App,
|
|
@@ -37,35 +38,36 @@ export {
|
|
|
37
38
|
d as Button,
|
|
38
39
|
s as Card,
|
|
39
40
|
F as Chip,
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
S as Details,
|
|
42
|
+
v as Dialog,
|
|
43
|
+
B as Divider,
|
|
44
|
+
D as Errorsummary,
|
|
44
45
|
c as Field,
|
|
45
46
|
k as FieldComp,
|
|
46
47
|
H as Fieldset,
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
j as Flex,
|
|
49
|
+
q as Grid,
|
|
49
50
|
u as Group,
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
51
|
+
nr as Heading,
|
|
52
|
+
h as HelpText,
|
|
53
|
+
dr as Info,
|
|
54
|
+
gr as Ingress,
|
|
55
|
+
E as Input,
|
|
56
|
+
J as Link,
|
|
57
|
+
N as Logo,
|
|
58
|
+
sr as Muted,
|
|
59
|
+
Q as Pagination,
|
|
60
|
+
U as Popover,
|
|
61
|
+
X as Progress,
|
|
62
|
+
w as Prose,
|
|
63
|
+
M as Select,
|
|
64
|
+
Z as Skeleton,
|
|
65
|
+
$ as Spinner,
|
|
66
|
+
or as Steps,
|
|
67
|
+
tr as Table,
|
|
68
|
+
mr as Tabs,
|
|
69
|
+
fr as Tag,
|
|
70
|
+
ir as Togglegroup,
|
|
71
|
+
Tr as Validation
|
|
70
72
|
};
|
|
71
73
|
//# sourceMappingURL=react.js.map
|
package/mtds/react.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"react.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { StoryObj } from '@storybook/react';
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
decorators: ((Story: import('
|
|
4
|
+
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
5
5
|
[x: string]: any;
|
|
6
6
|
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
7
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type StepsProps = React.ComponentPropsWithoutRef<"ol"> & {
|
|
2
|
+
"data-direction"?: "right" | "up" | "down";
|
|
3
|
+
"data-fade"?: "true" | "false" | "start" | "end";
|
|
4
|
+
};
|
|
5
|
+
export declare const Steps: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & {
|
|
6
|
+
"data-direction"?: "right" | "up" | "down";
|
|
7
|
+
"data-fade"?: "true" | "false" | "start" | "end";
|
|
8
|
+
} & React.RefAttributes<HTMLOListElement>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as m } from "../external/clsx/dist/clsx.js";
|
|
3
|
+
import { forwardRef as e } from "react";
|
|
4
|
+
import p from "../styles.module.css.js";
|
|
5
|
+
const a = e(function({ className: o, ...r }, t) {
|
|
6
|
+
return /* @__PURE__ */ s("ol", { className: m(p.steps, o), ref: t, ...r });
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
a as Steps
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=steps.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"steps.js","sources":["../../designsystem/steps/steps.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { forwardRef } from \"react\";\nimport styles from \"../styles.module.css\";\n\nexport type StepsProps = React.ComponentPropsWithoutRef<\"ol\"> & {\n\t\"data-direction\"?: \"right\" | \"up\" | \"down\";\n\t\"data-fade\"?: \"true\" | \"false\" | \"start\" | \"end\";\n};\nexport const Steps = forwardRef<HTMLOListElement, StepsProps>(function Steps(\n\t{ className, ...rest }: StepsProps,\n\tref,\n) {\n\treturn <ol className={clsx(styles.steps, className)} ref={ref} {...rest} />;\n});\n"],"names":["Steps","forwardRef","className","rest","ref","jsx","clsx","styles"],"mappings":";;;;AAQa,MAAAA,IAAQC,EAAyC,SAC7D,EAAE,WAAAC,GAAW,GAAGC,EAAK,GACrBC,GACC;AACM,SAAA,gBAAAC,EAAC,MAAG,EAAA,WAAWC,EAAKC,EAAO,OAAOL,CAAS,GAAG,KAAAE,GAAW,GAAGD,EAAM,CAAA;AAC1E,CAAC;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
parameters: {
|
|
5
|
+
layout: string;
|
|
6
|
+
};
|
|
7
|
+
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
type Story = StoryObj<typeof meta>;
|
|
13
|
+
export declare const Default: Story;
|
|
14
|
+
export declare const React: Story;
|
|
15
|
+
export declare const WithDirection: Story;
|
|
16
|
+
export declare const WithFade: Story;
|
|
17
|
+
export declare const WithFadeAndDirection: Story;
|
|
18
|
+
export declare const WithColors: Story;
|
|
19
|
+
export declare const WithInteraction: Story;
|
|
20
|
+
export declare const Timeline: Story;
|