@mattilsynet/design 1.3.0 → 1.3.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/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/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 +9 -0
- package/mtds/steps/steps.js +11 -0
- package/mtds/steps/steps.js.map +1 -0
- package/mtds/steps/steps.stories.d.ts +22 -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
- /package/mtds/illustrations/{illustrations.json → index.json} +0 -0
|
@@ -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,9 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { PolymorphicComponentPropWithRef } from '../react-types';
|
|
3
|
+
export type StepsProps<As extends React.ElementType = "div"> = PolymorphicComponentPropWithRef<As, {
|
|
4
|
+
"data-direction"?: "right" | "up" | "down";
|
|
5
|
+
"data-fade"?: "true" | "false" | "start" | "end";
|
|
6
|
+
}>;
|
|
7
|
+
type StepsComponent = <As extends React.ElementType = "div">(props: StepsProps<As>) => JSX.Element;
|
|
8
|
+
export declare const Steps: StepsComponent;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import { clsx as e } from "../external/clsx/dist/clsx.js";
|
|
3
|
+
import { forwardRef as p } from "react";
|
|
4
|
+
import f from "../styles.module.css.js";
|
|
5
|
+
const d = p(function({ as: o, className: r, ...t }, s) {
|
|
6
|
+
return /* @__PURE__ */ m(o || "div", { className: e(f.steps, r), ref: s, ...t });
|
|
7
|
+
});
|
|
8
|
+
export {
|
|
9
|
+
d 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 { type JSX, forwardRef } from \"react\";\nimport type {\n\tPolymorphicComponentPropWithRef,\n\tPolymorphicRef,\n} from \"../react-types\";\nimport styles from \"../styles.module.css\";\n\nexport type StepsProps<As extends React.ElementType = \"div\"> =\n\tPolymorphicComponentPropWithRef<\n\t\tAs,\n\t\t{\n\t\t\t\"data-direction\"?: \"right\" | \"up\" | \"down\";\n\t\t\t\"data-fade\"?: \"true\" | \"false\" | \"start\" | \"end\";\n\t\t}\n\t>;\n\ntype StepsComponent = <As extends React.ElementType = \"div\">(\n\tprops: StepsProps<As>,\n) => JSX.Element;\n\nexport const Steps: StepsComponent = forwardRef<null>(function Steps<\n\tAs extends React.ElementType = \"div\",\n>({ as, className, ...rest }: StepsProps<As>, ref?: PolymorphicRef<As>) {\n\tconst Tag = as || \"div\";\n\n\treturn <Tag className={clsx(styles.steps, className)} ref={ref} {...rest} />;\n}) as StepsComponent; // Needed to tell Typescript this does not return ReactNode but acutally JSX.Element\n"],"names":["Steps","forwardRef","as","className","rest","ref","jsx","clsx","styles"],"mappings":";;;;AAqBa,MAAAA,IAAwBC,EAAiB,SAEpD,EAAE,IAAAC,GAAI,WAAAC,GAAW,GAAGC,EAAK,GAAmBC,GAA0B;AAGhE,SAAA,gBAAAC,EAFKJ,KAAM,OAEN,EAAA,WAAWK,EAAKC,EAAO,OAAOL,CAAS,GAAG,KAAAE,GAAW,GAAGD,EAAM,CAAA;AAC3E,CAAC;"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
decorators: ((Story: import('storybook/internal/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
|
|
9
|
+
[x: string]: any;
|
|
10
|
+
}>) => import("react/jsx-runtime").JSX.Element)[];
|
|
11
|
+
};
|
|
12
|
+
export default meta;
|
|
13
|
+
type Story = StoryObj<typeof meta>;
|
|
14
|
+
export declare const Default: Story;
|
|
15
|
+
export declare const WithDirectionDown: Story;
|
|
16
|
+
export declare const WithDirectionUp: Story;
|
|
17
|
+
export declare const WithFade: Story;
|
|
18
|
+
export declare const WithFadeDirectionDown: Story;
|
|
19
|
+
export declare const WithFadeDirectionUp: Story;
|
|
20
|
+
export declare const Timeline: Story;
|
|
21
|
+
export declare const Colors: Story;
|
|
22
|
+
export declare const React: Story;
|