@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.
Files changed (92) hide show
  1. package/mtds/alert/alert.stories.d.ts +2 -2
  2. package/mtds/app/app-observer.js +1 -1
  3. package/mtds/app/app-toggle.js +26 -14
  4. package/mtds/app/app-toggle.js.map +1 -1
  5. package/mtds/app/app-toggle2.js +14 -26
  6. package/mtds/app/app-toggle2.js.map +1 -1
  7. package/mtds/app/app.js +1 -1
  8. package/mtds/app/app.stories.d.ts +2 -2
  9. package/mtds/avatar/avatar.stories.d.ts +2 -2
  10. package/mtds/badge/badge.stories.d.ts +2 -2
  11. package/mtds/breadcrumbs/breadcrumbs.stories.d.ts +2 -2
  12. package/mtds/button/button.stories.d.ts +2 -2
  13. package/mtds/card/card.stories.d.ts +2 -2
  14. package/mtds/chip/chip.stories.d.ts +2 -2
  15. package/mtds/details/details.stories.d.ts +1 -1
  16. package/mtds/dialog/dialog.stories.d.ts +1 -1
  17. package/mtds/divider/divider.stories.d.ts +1 -1
  18. package/mtds/errorsummary/errorsummary.stories.d.ts +2 -2
  19. package/mtds/external/@u-elements/u-combobox/dist/u-combobox.js +151 -152
  20. package/mtds/external/@u-elements/u-combobox/dist/u-combobox.js.map +1 -1
  21. package/mtds/external/@u-elements/u-datalist/dist/u-datalist.js +55 -57
  22. package/mtds/external/@u-elements/u-datalist/dist/u-datalist.js.map +1 -1
  23. package/mtds/field/field-observer.js +22 -22
  24. package/mtds/field/field-observer.js.map +1 -1
  25. package/mtds/field/field.js +4 -3
  26. package/mtds/field/field.js.map +1 -1
  27. package/mtds/field/field.stories.d.ts +3 -2
  28. package/mtds/fieldset/fieldset-observer.js +20 -15
  29. package/mtds/fieldset/fieldset-observer.js.map +1 -1
  30. package/mtds/fieldset/fieldset.stories.d.ts +1 -1
  31. package/mtds/helptext/helptext.stories.d.ts +1 -1
  32. package/mtds/illustrations/bread.svg +1 -0
  33. package/mtds/illustrations/drop-apple-bread.svg +1 -0
  34. package/mtds/illustrations/drop-apple.svg +1 -0
  35. package/mtds/illustrations/fork-knife-spoon.svg +1 -0
  36. package/mtds/illustrations/fork-knife.svg +1 -0
  37. package/mtds/illustrations/fork.svg +1 -0
  38. package/mtds/illustrations/heart-cat.svg +1 -0
  39. package/mtds/illustrations/heart.svg +1 -0
  40. package/mtds/illustrations/hearts-blue.svg +1 -0
  41. package/mtds/illustrations/hearts-green.svg +1 -0
  42. package/mtds/illustrations/hearts-red.svg +1 -0
  43. package/mtds/illustrations/{illustrations.json → index.json} +139 -1
  44. package/mtds/illustrations/inspector-ai.svg +1 -0
  45. package/mtds/illustrations/inspector-cow.svg +1 -0
  46. package/mtds/illustrations/knife.svg +1 -0
  47. package/mtds/illustrations/person-flask-water-fish-pig.svg +1 -0
  48. package/mtds/illustrations/plane.svg +1 -0
  49. package/mtds/illustrations/plant-dog-fish.svg +1 -0
  50. package/mtds/illustrations/postits.svg +1 -0
  51. package/mtds/illustrations/pregnant-fork-plant.svg +1 -0
  52. package/mtds/illustrations/pregnant-fork.svg +1 -0
  53. package/mtds/illustrations/ship.svg +1 -0
  54. package/mtds/illustrations/spoon.svg +1 -0
  55. package/mtds/illustrations/star-1.svg +1 -0
  56. package/mtds/illustrations/star-2.svg +1 -0
  57. package/mtds/illustrations/stars.svg +1 -0
  58. package/mtds/illustrations/turnip-meat.svg +1 -0
  59. package/mtds/index.d.ts +1 -0
  60. package/mtds/index.iife.js +8 -7
  61. package/mtds/input/input.stories.d.ts +2 -2
  62. package/mtds/layout/layout.stories.d.ts +2 -2
  63. package/mtds/link/link.stories.d.ts +1 -1
  64. package/mtds/logo/logo.stories.d.ts +2 -2
  65. package/mtds/package.json.js +1 -1
  66. package/mtds/pagination/pagination.stories.d.ts +1 -1
  67. package/mtds/popover/popover.stories.d.ts +1 -1
  68. package/mtds/progress/progress.stories.d.ts +2 -2
  69. package/mtds/react.d.ts +2 -1
  70. package/mtds/react.js +48 -46
  71. package/mtds/react.js.map +1 -1
  72. package/mtds/skeleton/skeleton.stories.d.ts +1 -1
  73. package/mtds/spinner/spinner.stories.d.ts +2 -2
  74. package/mtds/steps/steps-observer.d.ts +1 -0
  75. package/mtds/steps/steps.d.ts +8 -0
  76. package/mtds/steps/steps.js +11 -0
  77. package/mtds/steps/steps.js.map +1 -0
  78. package/mtds/steps/steps.stories.d.ts +20 -0
  79. package/mtds/styles.css +1 -1
  80. package/mtds/styles.json +40 -39
  81. package/mtds/styles.module.css.js +40 -38
  82. package/mtds/styles.module.css.js.map +1 -1
  83. package/mtds/table/table.stories.d.ts +2 -2
  84. package/mtds/tabs/tabs.stories.d.ts +3 -1
  85. package/mtds/tag/tag.stories.d.ts +2 -2
  86. package/mtds/togglegroup/togglegroup.stories.d.ts +1 -1
  87. package/mtds/tooltip/tooltip.stories.d.ts +2 -2
  88. package/mtds/typography/typography.d.ts +1 -0
  89. package/mtds/typography/typography.js.map +1 -1
  90. package/mtds/typography/typography.stories.d.ts +2 -2
  91. package/mtds/validation/validation.stories.d.ts +1 -1
  92. 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('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
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('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
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,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
4
  };
@@ -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('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
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,4 +1,4 @@
1
- const o = "1.3.0";
1
+ const o = "1.3.2";
2
2
  export {
3
3
  o as version
4
4
  };
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
4
  };
@@ -1,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
4
  };
@@ -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('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
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 b } from "./details/details.js";
10
- import { Dialog as A } from "./dialog/dialog.js";
11
- import { Divider as C } from "./divider/divider.js";
12
- import { Errorsummary as I } from "./errorsummary/errorsummary.js";
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 { Heading as h, Info as y, Ingress as E, Muted as M } from "./typography/typography.js";
16
- import { HelpText as j } from "./helptext/helptext.js";
17
- import { Input as w, Select as z } from "./input/input.js";
18
- import { Flex as K, Grid as N, Prose as O } from "./layout/layout.js";
19
- import { Link as R } from "./link/link.js";
20
- import { Logo as W } from "./logo/logo.js";
21
- import { Pagination as Y } from "./pagination/pagination.js";
22
- import { Popover as _ } from "./popover/popover.js";
23
- import { Progress as rr } from "./progress/progress.js";
24
- import { Skeleton as er } from "./skeleton/skeleton.js";
25
- import { Spinner as pr } from "./spinner/spinner.js";
26
- import { Table as xr } from "./table/table.js";
27
- import { Tabs as ar } from "./tabs/tabs.js";
28
- import { Tag as lr } from "./tag/tag.js";
29
- import { Togglegroup as dr } from "./togglegroup/togglegroup.js";
30
- import { Validation as sr } from "./validation/validation.js";
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
- b as Details,
41
- A as Dialog,
42
- C as Divider,
43
- I as Errorsummary,
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
- K as Flex,
48
- N as Grid,
48
+ j as Flex,
49
+ q as Grid,
49
50
  u as Group,
50
- h as Heading,
51
- j as HelpText,
52
- y as Info,
53
- E as Ingress,
54
- w as Input,
55
- R as Link,
56
- W as Logo,
57
- M as Muted,
58
- Y as Pagination,
59
- _ as Popover,
60
- rr as Progress,
61
- O as Prose,
62
- z as Select,
63
- er as Skeleton,
64
- pr as Spinner,
65
- xr as Table,
66
- ar as Tabs,
67
- lr as Tag,
68
- dr as Togglegroup,
69
- sr as Validation
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,4 +1,4 @@
1
- import { StoryObj } from '@storybook/react';
1
+ import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
4
  };
@@ -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('@storybook/core/csf').PartialStoryFn<import('@storybook/react').ReactRenderer, {
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;