@mattilsynet/design 3.2.3 → 3.2.5

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/index.js CHANGED
@@ -1,13 +1,13 @@
1
- export * from "@u-elements/u-combobox";
2
- export * from "@u-elements/u-tabs";
3
- import "@u-elements/u-details";
1
+ import { UHTMLComboboxElement as M, UHTMLComboboxShadowRoot as U, UHTMLComboboxStyle as x } from "./external/@u-elements/u-combobox/dist/u-combobox.js";
2
+ import { UHTMLTabElement as n, UHTMLTabListElement as w, UHTMLTabListShadowRoot as f, UHTMLTabListStyle as S, UHTMLTabPanelElement as h, UHTMLTabPanelShadowRoot as y, UHTMLTabPanelStyle as C, UHTMLTabShadowRoot as E, UHTMLTabStyle as g, UHTMLTabsElement as R, UHTMLTabsShadowRoot as c, UHTMLTabsStyle as k } from "./external/@u-elements/u-tabs/dist/u-tabs.js";
3
+ import "./external/@u-elements/u-details/dist/u-details.js";
4
4
  export * from "@digdir/designsystemet-web";
5
- import { version as h } from "./package.json.js";
6
- import { analytics as n } from "./analytics/analytics.js";
7
- import { toggleAppExpanded as C } from "./app/app-observer.js";
8
- import { fixLawHtml as v, getLawChecked as A, parseLawIds as E, parseLawMeta as H, setLawChecked as I, toggleLawChecked as M } from "./law/law-helper.js";
9
- import * as r from "./styles.module.css.js";
10
- import { toast as b } from "./toast/toast-helper.js";
5
+ import { version as v } from "./package.json.js";
6
+ import { analytics as I } from "./analytics/analytics.js";
7
+ import { toggleAppExpanded as j } from "./app/app-observer.js";
8
+ import { fixLawHtml as z, getLawChecked as B, parseLawIds as D, parseLawMeta as F, setLawChecked as G, toggleLawChecked as J } from "./law/law-helper.js";
9
+ import * as t from "./styles.module.css.js";
10
+ import { toast as N } from "./toast/toast-helper.js";
11
11
  import "./chart/chart-element.js";
12
12
  import "./deprecations.js";
13
13
  import "./logo/logo-observer.js";
@@ -16,19 +16,34 @@ import "./table/table-observer.js";
16
16
  import "./toast/toast-observer.js";
17
17
  import "./tooltip/tooltip-element.js";
18
18
  import "./validation/validation-observer.js";
19
- import "@u-elements/u-datalist";
19
+ import "./external/@u-elements/u-datalist/dist/u-datalist.js";
20
20
  import "@u-elements/u-progress";
21
21
  export {
22
- n as analytics,
23
- v as fixLawHtml,
24
- A as getLawChecked,
25
- E as parseLawIds,
26
- H as parseLawMeta,
27
- I as setLawChecked,
28
- r as styles,
29
- b as toast,
30
- C as toggleAppExpanded,
31
- M as toggleLawChecked,
32
- h as version
22
+ M as UHTMLComboboxElement,
23
+ U as UHTMLComboboxShadowRoot,
24
+ x as UHTMLComboboxStyle,
25
+ n as UHTMLTabElement,
26
+ w as UHTMLTabListElement,
27
+ f as UHTMLTabListShadowRoot,
28
+ S as UHTMLTabListStyle,
29
+ h as UHTMLTabPanelElement,
30
+ y as UHTMLTabPanelShadowRoot,
31
+ C as UHTMLTabPanelStyle,
32
+ E as UHTMLTabShadowRoot,
33
+ g as UHTMLTabStyle,
34
+ R as UHTMLTabsElement,
35
+ c as UHTMLTabsShadowRoot,
36
+ k as UHTMLTabsStyle,
37
+ I as analytics,
38
+ z as fixLawHtml,
39
+ B as getLawChecked,
40
+ D as parseLawIds,
41
+ F as parseLawMeta,
42
+ G as setLawChecked,
43
+ t as styles,
44
+ N as toast,
45
+ j as toggleAppExpanded,
46
+ J as toggleLawChecked,
47
+ v as version
33
48
  };
34
49
  //# sourceMappingURL=index.js.map
@@ -11,7 +11,7 @@ type SharedProps = {
11
11
  "data-nowrap"?: boolean;
12
12
  "data-justify"?: "start" | "center" | "end" | "space-between" | "space-around" | "space-evenly";
13
13
  "data-fixed"?: boolean;
14
- "data-items"?: "auto" | "full" | "50" | "100" | "150" | "200" | "250" | "300" | "350" | "400" | "450" | "500" | 50 | 100 | 150 | 200 | 250 | 300 | 350 | 400 | 450 | 500;
14
+ "data-items"?: "auto" | "full" | "25" | "50" | "75" | "100" | "125" | "150" | "175" | "200" | "225" | "250" | "275" | "300" | "325" | "350" | "375" | "400" | "425" | "450" | "475" | "500" | "525" | "550" | "575" | "600" | 25 | 50 | 75 | 100 | 125 | 150 | 175 | 200 | 225 | 250 | 275 | 300 | 325 | 350 | 375 | 400 | 425 | 450 | 475 | 500 | 525 | 550 | 575 | 600;
15
15
  };
16
16
  /**
17
17
  * Flex
@@ -1 +1 @@
1
- {"version":3,"file":"layout.js","sources":["../../designsystem/layout/layout.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { forwardRef, type JSX } from \"react\";\nimport type {\n\tPolymorphicComponentPropWithRef,\n\tPolymorphicRef,\n\tSizes,\n} from \"../react-types\";\nimport styles from \"../styles.module.css\";\n\ntype GapOld = \"none\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\";\n\ntype SharedProps = {\n\t\"data-align\"?: \"normal\" | \"stretch\" | \"start\" | \"center\" | \"end\";\n\t\"data-align-content\"?:\n\t\t| \"start\"\n\t\t| \"center\"\n\t\t| \"end\"\n\t\t| \"space-between\"\n\t\t| \"space-around\"\n\t\t| \"space-evenly\";\n\t\"data-center\"?: \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\n\t\"data-gap\"?: Sizes | GapOld;\n\t\"data-row-gap\"?: Sizes;\n\t\"data-column-gap\"?: Sizes;\n\t\"data-nowrap\"?: boolean;\n\t\"data-justify\"?:\n\t\t| \"start\"\n\t\t| \"center\"\n\t\t| \"end\"\n\t\t| \"space-between\"\n\t\t| \"space-around\"\n\t\t| \"space-evenly\";\n\t\"data-fixed\"?: boolean;\n\t\"data-items\"?:\n\t\t| \"auto\"\n\t\t| \"full\"\n\t\t| \"50\"\n\t\t| \"100\"\n\t\t| \"150\"\n\t\t| \"200\"\n\t\t| \"250\"\n\t\t| \"300\"\n\t\t| \"350\"\n\t\t| \"400\"\n\t\t| \"450\"\n\t\t| \"500\"\n\t\t| 50\n\t\t| 100\n\t\t| 150\n\t\t| 200\n\t\t| 250\n\t\t| 300\n\t\t| 350\n\t\t| 400\n\t\t| 450\n\t\t| 500;\n};\n\n/**\n * Flex\n */\nexport type FlexProps<As extends React.ElementType = \"div\"> =\n\tPolymorphicComponentPropWithRef<As, SharedProps>;\n\ntype FlexComponent = <As extends React.ElementType = \"div\">(\n\tprops: FlexProps<As>,\n) => JSX.Element;\n\nexport const Flex: FlexComponent = forwardRef<null>(function Flex<\n\tAs extends React.ElementType = \"div\",\n>({ as, className, ...rest }: FlexProps<As>, ref?: PolymorphicRef<As>) {\n\tconst Tag = as || \"div\";\n\n\treturn <Tag className={clsx(styles.flex, className)} ref={ref} {...rest} />;\n}) as FlexComponent; // Needed to tell Typescript this does not return ReactNode but acutally JSX.Element\n\n/**\n * Grid\n */\nexport type GridProps<As extends React.ElementType = \"div\"> =\n\tPolymorphicComponentPropWithRef<As, SharedProps>;\n\ntype GridComponent = <As extends React.ElementType = \"div\">(\n\tprops: GridProps<As>,\n) => JSX.Element;\n\nexport const Grid: GridComponent = forwardRef<null>(function Grid<\n\tAs extends React.ElementType = \"div\",\n>({ as, className, ...rest }: GridProps<As>, ref?: PolymorphicRef<As>) {\n\tconst Tag = as || \"div\";\n\n\treturn <Tag className={clsx(styles.grid, className)} ref={ref} {...rest} />;\n}) as GridComponent; // Needed to tell Typescript this does not return ReactNode but acutally JSX.Element\n"],"names":["Flex","forwardRef","as","className","rest","ref","jsx","clsx","styles","Grid"],"mappings":";;;;AAoEO,MAAMA,IAAsBC,EAAiB,SAElD,EAAE,IAAAC,GAAI,WAAAC,GAAW,GAAGC,EAAA,GAAuBC,GAA0B;AAGtE,SAAO,gBAAAC,EAFKJ,KAAM,OAEV,EAAI,WAAWK,EAAKC,EAAO,MAAML,CAAS,GAAG,KAAAE,GAAW,GAAGD,EAAA,CAAM;AAC1E,CAAC,GAYYK,IAAsBR,EAAiB,SAElD,EAAE,IAAAC,GAAI,WAAAC,GAAW,GAAGC,EAAA,GAAuBC,GAA0B;AAGtE,SAAO,gBAAAC,EAFKJ,KAAM,OAEV,EAAI,WAAWK,EAAKC,EAAO,MAAML,CAAS,GAAG,KAAAE,GAAW,GAAGD,EAAA,CAAM;AAC1E,CAAC;"}
1
+ {"version":3,"file":"layout.js","sources":["../../designsystem/layout/layout.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { forwardRef, type JSX } from \"react\";\nimport type {\n\tPolymorphicComponentPropWithRef,\n\tPolymorphicRef,\n\tSizes,\n} from \"../react-types\";\nimport styles from \"../styles.module.css\";\n\ntype GapOld = \"none\" | \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\";\n\ntype SharedProps = {\n\t\"data-align\"?: \"normal\" | \"stretch\" | \"start\" | \"center\" | \"end\";\n\t\"data-align-content\"?:\n\t\t| \"start\"\n\t\t| \"center\"\n\t\t| \"end\"\n\t\t| \"space-between\"\n\t\t| \"space-around\"\n\t\t| \"space-evenly\";\n\t\"data-center\"?: \"sm\" | \"md\" | \"lg\" | \"xl\" | \"2xl\";\n\t\"data-gap\"?: Sizes | GapOld;\n\t\"data-row-gap\"?: Sizes;\n\t\"data-column-gap\"?: Sizes;\n\t\"data-nowrap\"?: boolean;\n\t\"data-justify\"?:\n\t\t| \"start\"\n\t\t| \"center\"\n\t\t| \"end\"\n\t\t| \"space-between\"\n\t\t| \"space-around\"\n\t\t| \"space-evenly\";\n\t\"data-fixed\"?: boolean;\n\t\"data-items\"?:\n\t\t| \"auto\"\n\t\t| \"full\"\n\t\t| \"25\"\n\t\t| \"50\"\n\t\t| \"75\"\n\t\t| \"100\"\n\t\t| \"125\"\n\t\t| \"150\"\n\t\t| \"175\"\n\t\t| \"200\"\n\t\t| \"225\"\n\t\t| \"250\"\n\t\t| \"275\"\n\t\t| \"300\"\n\t\t| \"325\"\n\t\t| \"350\"\n\t\t| \"375\"\n\t\t| \"400\"\n\t\t| \"425\"\n\t\t| \"450\"\n\t\t| \"475\"\n\t\t| \"500\"\n\t\t| \"525\"\n\t\t| \"550\"\n\t\t| \"575\"\n\t\t| \"600\"\n\t\t| 25\n\t\t| 50\n\t\t| 75\n\t\t| 100\n\t\t| 125\n\t\t| 150\n\t\t| 175\n\t\t| 200\n\t\t| 225\n\t\t| 250\n\t\t| 275\n\t\t| 300\n\t\t| 325\n\t\t| 350\n\t\t| 375\n\t\t| 400\n\t\t| 425\n\t\t| 450\n\t\t| 475\n\t\t| 500\n\t\t| 525\n\t\t| 550\n\t\t| 575\n\t\t| 600;\n};\n\n/**\n * Flex\n */\nexport type FlexProps<As extends React.ElementType = \"div\"> =\n\tPolymorphicComponentPropWithRef<As, SharedProps>;\n\ntype FlexComponent = <As extends React.ElementType = \"div\">(\n\tprops: FlexProps<As>,\n) => JSX.Element;\n\nexport const Flex: FlexComponent = forwardRef<null>(function Flex<\n\tAs extends React.ElementType = \"div\",\n>({ as, className, ...rest }: FlexProps<As>, ref?: PolymorphicRef<As>) {\n\tconst Tag = as || \"div\";\n\n\treturn <Tag className={clsx(styles.flex, className)} ref={ref} {...rest} />;\n}) as FlexComponent; // Needed to tell Typescript this does not return ReactNode but acutally JSX.Element\n\n/**\n * Grid\n */\nexport type GridProps<As extends React.ElementType = \"div\"> =\n\tPolymorphicComponentPropWithRef<As, SharedProps>;\n\ntype GridComponent = <As extends React.ElementType = \"div\">(\n\tprops: GridProps<As>,\n) => JSX.Element;\n\nexport const Grid: GridComponent = forwardRef<null>(function Grid<\n\tAs extends React.ElementType = \"div\",\n>({ as, className, ...rest }: GridProps<As>, ref?: PolymorphicRef<As>) {\n\tconst Tag = as || \"div\";\n\n\treturn <Tag className={clsx(styles.grid, className)} ref={ref} {...rest} />;\n}) as GridComponent; // Needed to tell Typescript this does not return ReactNode but acutally JSX.Element\n"],"names":["Flex","forwardRef","as","className","rest","ref","jsx","clsx","styles","Grid"],"mappings":";;;;AAgGO,MAAMA,IAAsBC,EAAiB,SAElD,EAAE,IAAAC,GAAI,WAAAC,GAAW,GAAGC,EAAA,GAAuBC,GAA0B;AAGtE,SAAO,gBAAAC,EAFKJ,KAAM,OAEV,EAAI,WAAWK,EAAKC,EAAO,MAAML,CAAS,GAAG,KAAAE,GAAW,GAAGD,EAAA,CAAM;AAC1E,CAAC,GAYYK,IAAsBR,EAAiB,SAElD,EAAE,IAAAC,GAAI,WAAAC,GAAW,GAAGC,EAAA,GAAuBC,GAA0B;AAGtE,SAAO,gBAAAC,EAFKJ,KAAM,OAEV,EAAI,WAAWK,EAAKC,EAAO,MAAML,CAAS,GAAG,KAAAE,GAAW,GAAGD,EAAA,CAAM;AAC1E,CAAC;"}
@@ -1,4 +1,4 @@
1
- const o = "3.2.3";
1
+ const o = "3.2.5";
2
2
  export {
3
3
  o as version
4
4
  };