@mattilsynet/design 3.2.1 → 3.2.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.
@@ -1,11 +1,11 @@
1
1
  import { CustomReactElementProps } from '../react-types';
2
- import type * as DS from "@digdir/designsystemet-web";
3
- export type TabsProps = CustomReactElementProps<DS.DSTabsElement>;
4
- export type TabsListProps = CustomReactElementProps<DS.DSTabListElement>;
5
- export type TabsPanelProps = CustomReactElementProps<DS.DSTabPanelElement>;
6
- export type TabsTabProps = CustomReactElementProps<DS.DSTabElement>;
7
- export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<TabsProps, "ref"> & import('react').RefAttributes<DS.DSTabsElement>> & {
8
- List: import('react').ForwardRefExoticComponent<Omit<TabsListProps, "ref"> & import('react').RefAttributes<DS.DSTabListElement>>;
9
- Panel: import('react').ForwardRefExoticComponent<Omit<TabsPanelProps, "ref"> & import('react').RefAttributes<DS.DSTabPanelElement>>;
10
- Tab: import('react').ForwardRefExoticComponent<Omit<TabsTabProps, "ref"> & import('react').RefAttributes<DS.DSTabElement>>;
2
+ import type * as UTabs from "@u-elements/u-tabs";
3
+ export type TabsProps = CustomReactElementProps<UTabs.UHTMLTabsElement>;
4
+ export type TabsListProps = CustomReactElementProps<UTabs.UHTMLTabListElement>;
5
+ export type TabsPanelProps = CustomReactElementProps<UTabs.UHTMLTabPanelElement>;
6
+ export type TabsTabProps = CustomReactElementProps<UTabs.UHTMLTabElement>;
7
+ export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<TabsProps, "ref"> & import('react').RefAttributes<UTabs.UHTMLTabsElement>> & {
8
+ List: import('react').ForwardRefExoticComponent<Omit<TabsListProps, "ref"> & import('react').RefAttributes<UTabs.UHTMLTabListElement>>;
9
+ Panel: import('react').ForwardRefExoticComponent<Omit<TabsPanelProps, "ref"> & import('react').RefAttributes<UTabs.UHTMLTabPanelElement>>;
10
+ Tab: import('react').ForwardRefExoticComponent<Omit<TabsTabProps, "ref"> & import('react').RefAttributes<UTabs.UHTMLTabElement>>;
11
11
  };
package/mtds/tabs/tabs.js CHANGED
@@ -4,24 +4,24 @@ import b from "../styles.module.css.js";
4
4
  import { toCustomElementProps as o } from "../utils.js";
5
5
  const e = n(
6
6
  function(t, s) {
7
- return /* @__PURE__ */ a("ds-tabs", { ref: s, ...o(t, b.tabs) });
7
+ return /* @__PURE__ */ a("u-tabs", { ref: s, ...o(t, b.tabs) });
8
8
  }
9
9
  ), i = n(
10
10
  function(t, s) {
11
- return /* @__PURE__ */ a("ds-tablist", { ref: s, ...o(t) });
11
+ return /* @__PURE__ */ a("u-tablist", { ref: s, ...o(t) });
12
12
  }
13
- ), T = n(
13
+ ), u = n(
14
14
  function(t, s) {
15
- return /* @__PURE__ */ a("ds-tabpanel", { ref: s, ...o(t) });
15
+ return /* @__PURE__ */ a("u-tabpanel", { ref: s, ...o(t) });
16
16
  }
17
- ), m = n(
17
+ ), T = n(
18
18
  function(t, s) {
19
- return /* @__PURE__ */ a("ds-tab", { ref: s, ...o(t) });
19
+ return /* @__PURE__ */ a("u-tab", { ref: s, ...o(t) });
20
20
  }
21
21
  ), l = Object.assign(e, {
22
22
  List: i,
23
- Panel: T,
24
- Tab: m
23
+ Panel: u,
24
+ Tab: T
25
25
  });
26
26
  export {
27
27
  l as Tabs
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.js","sources":["../../designsystem/tabs/tabs.tsx"],"sourcesContent":["import type * as DS from \"@digdir/designsystemet-web\";\nimport { forwardRef } from \"react\";\nimport type { CustomReactElementProps } from \"../react-types\";\nimport styles from \"../styles.module.css\";\nimport { toCustomElementProps } from \"../utils\";\n\nexport type TabsProps = CustomReactElementProps<DS.DSTabsElement>;\nconst TabsComp = forwardRef<DS.DSTabsElement, TabsProps>(\n\tfunction Tabs(props, ref) {\n\t\treturn <ds-tabs ref={ref} {...toCustomElementProps(props, styles.tabs)} />;\n\t},\n);\n\nexport type TabsListProps = CustomReactElementProps<DS.DSTabListElement>;\nconst TabsList = forwardRef<DS.DSTabListElement, TabsListProps>(\n\tfunction TabsList(props, ref) {\n\t\treturn <ds-tablist ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type TabsPanelProps = CustomReactElementProps<DS.DSTabPanelElement>;\nconst TabsPanel = forwardRef<DS.DSTabPanelElement, TabsPanelProps>(\n\tfunction TabsPanel(props, ref) {\n\t\treturn <ds-tabpanel ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type TabsTabProps = CustomReactElementProps<DS.DSTabElement>;\nconst TabsTab = forwardRef<DS.DSTabElement, TabsTabProps>(\n\tfunction TabsTab(props, ref) {\n\t\treturn <ds-tab ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport const Tabs = Object.assign(TabsComp, {\n\tList: TabsList,\n\tPanel: TabsPanel,\n\tTab: TabsTab,\n});\n"],"names":["TabsComp","forwardRef","props","ref","jsx","toCustomElementProps","styles","TabsList","TabsPanel","TabsTab","Tabs"],"mappings":";;;;AAOA,MAAMA,IAAWC;AAAA,EAChB,SAAcC,GAAOC,GAAK;AACzB,WAAO,gBAAAC,EAAC,aAAQ,KAAAD,GAAW,GAAGE,EAAqBH,GAAOI,EAAO,IAAI,GAAG;AAAA,EACzE;AACD,GAGMC,IAAWN;AAAA,EAChB,SAAkBC,GAAOC,GAAK;AAC7B,6BAAQ,cAAA,EAAW,KAAAA,GAAW,GAAGE,EAAqBH,CAAK,GAAG;AAAA,EAC/D;AACD,GAGMM,IAAYP;AAAA,EACjB,SAAmBC,GAAOC,GAAK;AAC9B,6BAAQ,eAAA,EAAY,KAAAA,GAAW,GAAGE,EAAqBH,CAAK,GAAG;AAAA,EAChE;AACD,GAGMO,IAAUR;AAAA,EACf,SAAiBC,GAAOC,GAAK;AAC5B,6BAAQ,UAAA,EAAO,KAAAA,GAAW,GAAGE,EAAqBH,CAAK,GAAG;AAAA,EAC3D;AACD,GAEaQ,IAAO,OAAO,OAAOV,GAAU;AAAA,EAC3C,MAAMO;AAAA,EACN,OAAOC;AAAA,EACP,KAAKC;AACN,CAAC;"}
1
+ {"version":3,"file":"tabs.js","sources":["../../designsystem/tabs/tabs.tsx"],"sourcesContent":["import type * as UTabs from \"@u-elements/u-tabs\"; // TMP Using u-tabs while waiting for https://github.com/digdir/designsystemet/pull/4821\nimport { forwardRef } from \"react\";\nimport type { CustomReactElementProps } from \"../react-types\";\nimport styles from \"../styles.module.css\";\nimport { toCustomElementProps } from \"../utils\";\n\nexport type TabsProps = CustomReactElementProps<UTabs.UHTMLTabsElement>;\nconst TabsComp = forwardRef<UTabs.UHTMLTabsElement, TabsProps>(\n\tfunction Tabs(props, ref) {\n\t\treturn <u-tabs ref={ref} {...toCustomElementProps(props, styles.tabs)} />;\n\t},\n);\n\nexport type TabsListProps = CustomReactElementProps<UTabs.UHTMLTabListElement>;\nconst TabsList = forwardRef<UTabs.UHTMLTabListElement, TabsListProps>(\n\tfunction TabsList(props, ref) {\n\t\treturn <u-tablist ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type TabsPanelProps =\n\tCustomReactElementProps<UTabs.UHTMLTabPanelElement>;\nconst TabsPanel = forwardRef<UTabs.UHTMLTabPanelElement, TabsPanelProps>(\n\tfunction TabsPanel(props, ref) {\n\t\treturn <u-tabpanel ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport type TabsTabProps = CustomReactElementProps<UTabs.UHTMLTabElement>;\nconst TabsTab = forwardRef<UTabs.UHTMLTabElement, TabsTabProps>(\n\tfunction TabsTab(props, ref) {\n\t\treturn <u-tab ref={ref} {...toCustomElementProps(props)} />;\n\t},\n);\n\nexport const Tabs = Object.assign(TabsComp, {\n\tList: TabsList,\n\tPanel: TabsPanel,\n\tTab: TabsTab,\n});\n"],"names":["TabsComp","forwardRef","props","ref","jsx","toCustomElementProps","styles","TabsList","TabsPanel","TabsTab","Tabs"],"mappings":";;;;AAOA,MAAMA,IAAWC;AAAA,EAChB,SAAcC,GAAOC,GAAK;AACzB,WAAO,gBAAAC,EAAC,YAAO,KAAAD,GAAW,GAAGE,EAAqBH,GAAOI,EAAO,IAAI,GAAG;AAAA,EACxE;AACD,GAGMC,IAAWN;AAAA,EAChB,SAAkBC,GAAOC,GAAK;AAC7B,6BAAQ,aAAA,EAAU,KAAAA,GAAW,GAAGE,EAAqBH,CAAK,GAAG;AAAA,EAC9D;AACD,GAIMM,IAAYP;AAAA,EACjB,SAAmBC,GAAOC,GAAK;AAC9B,6BAAQ,cAAA,EAAW,KAAAA,GAAW,GAAGE,EAAqBH,CAAK,GAAG;AAAA,EAC/D;AACD,GAGMO,IAAUR;AAAA,EACf,SAAiBC,GAAOC,GAAK;AAC5B,6BAAQ,SAAA,EAAM,KAAAA,GAAW,GAAGE,EAAqBH,CAAK,GAAG;AAAA,EAC1D;AACD,GAEaQ,IAAO,OAAO,OAAOV,GAAU;AAAA,EAC3C,MAAMO;AAAA,EACN,OAAOC;AAAA,EACP,KAAKC;AACN,CAAC;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mattilsynet/design",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "type": "module",
5
5
  "repository": {
6
6
  "type": "git",