@altinn/altinn-components 0.19.1 → 0.19.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 +1 @@
1
- ._list_qqtoj_1{display:flex;width:100%;row-gap:.5rem;flex-direction:column;list-style:none;padding:0;margin:0}@media (min-width: 1024px){._list_qqtoj_1{flex-direction:row;align-items:center;justify-content:start;column-gap:.5rem;width:auto}}._item_qqtoj_21{margin:0;border-top:2px solid;border-bottom:2px solid;border-color:transparent}._item_qqtoj_21[aria-selected=true]{background-color:transparent;border-bottom-color:var(--ds-color-base-default)}
1
+ ._list_gp6cp_1{display:flex;width:100%;row-gap:.5rem;flex-direction:column;list-style:none;padding:0;margin:0}@media (min-width: 1024px){._list_gp6cp_1{flex-direction:row;align-items:center;justify-content:start;column-gap:.5rem;width:auto}}._item_gp6cp_21{margin:0;border-top:2px solid;border-bottom:2px solid;border-color:transparent}._item_gp6cp_21[data-selected=true]{background-color:transparent;border-bottom-color:var(--ds-color-base-default)}
@@ -2,14 +2,14 @@ import { jsx as t } from "react/jsx-runtime";
2
2
  import "../../index-L8X2o7IH.js";
3
3
  import "react";
4
4
  import "../RootProvider/RootProvider.js";
5
- import { MenuItem as l } from "../Menu/MenuItem.js";
5
+ import { MenuItem as p } from "../Menu/MenuItem.js";
6
6
  import "../Search/AutocompleteBase.js";
7
7
  import "../Snackbar/useSnackbar.js";
8
- import { Flex as n } from "./Flex.js";
9
- import '../../assets/PageTabs.css';const p = "_list_qqtoj_1", a = "_item_qqtoj_21", i = {
10
- list: p,
11
- item: a
12
- }, x = ({ theme: m = "transparent", color: o, items: e = [], padding: s = 0 }) => /* @__PURE__ */ t(n, { theme: m, color: o, padding: s, children: /* @__PURE__ */ t("ul", { className: i.list, children: e.map((r) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(l, { ...r, className: i.item }) }, r.id)) }) });
8
+ import { Flex as l } from "./Flex.js";
9
+ import '../../assets/PageTabs.css';const n = "_list_gp6cp_1", c = "_item_gp6cp_21", i = {
10
+ list: n,
11
+ item: c
12
+ }, N = ({ theme: m = "transparent", color: e, items: s = [], padding: o = 0 }) => /* @__PURE__ */ t(l, { theme: m, color: e, padding: o, children: /* @__PURE__ */ t("ul", { className: i.list, children: s.map((r) => /* @__PURE__ */ t("li", { children: /* @__PURE__ */ t(p, { ...r, className: i.item }) }, r.id)) }) });
13
13
  export {
14
- x as PageTabs
14
+ N as PageTabs
15
15
  };
@@ -1,9 +1,8 @@
1
- import { MenuItemColor, MenuItemProps } from '..';
2
- export type PageTabsTheme = 'transparent' | 'base';
1
+ import { MenuItemColor, MenuItemProps, MenuTheme } from '..';
3
2
  export type PageTabsPadding = 0 | 2;
4
3
  export type PageTabsVariant = 'card' | undefined;
5
4
  export interface PageTabsProps {
6
- theme?: PageTabsTheme;
5
+ theme?: MenuTheme;
7
6
  color?: MenuItemColor;
8
7
  padding?: PageTabsPadding;
9
8
  items?: MenuItemProps[];
@@ -0,0 +1,23 @@
1
+ import { StoryObj } from '@storybook/react';
2
+ declare const meta: {
3
+ title: string;
4
+ component: ({ theme, color, items, padding }: import('./PageTabs').PageTabsProps) => import("react/jsx-runtime").JSX.Element;
5
+ tags: string[];
6
+ parameters: {};
7
+ args: {
8
+ items: ({
9
+ id: string;
10
+ href: string;
11
+ title: string;
12
+ selected: true;
13
+ } | {
14
+ id: string;
15
+ href: string;
16
+ title: string;
17
+ selected?: undefined;
18
+ })[];
19
+ };
20
+ };
21
+ export default meta;
22
+ type Story = StoryObj<typeof meta>;
23
+ export declare const Default: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@altinn/altinn-components",
3
- "version": "0.19.1",
3
+ "version": "0.19.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist/",