@altinn/altinn-components 0.23.3 → 0.24.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/dist/assets/Header.css +1 -1
- package/dist/assets/HeaderBase.css +1 -1
- package/dist/assets/HeaderGroup.css +1 -0
- package/dist/assets/LocaleButton.css +1 -0
- package/dist/assets/SnackbarBase.css +1 -1
- package/dist/components/Button/ButtonBase.js +18 -17
- package/dist/components/Button/IconButton.js +19 -17
- package/dist/components/Dialog/DialogHistorySegment.js +20 -19
- package/dist/components/Header/Header.js +82 -54
- package/dist/components/Header/HeaderBase.js +1 -1
- package/dist/components/Header/HeaderGroup.js +8 -0
- package/dist/components/Header/LocaleButton.js +47 -0
- package/dist/components/Header/LocaleSwitcher.js +17 -0
- package/dist/components/Header/index.js +10 -6
- package/dist/components/Snackbar/SnackbarBase.js +1 -1
- package/dist/components/Timeline/TimelineBase.js +16 -15
- package/dist/components/Timeline/TimelineSegment.js +13 -12
- package/dist/components/Toolbar/ToolbarSearch.js +9 -9
- package/dist/components/index.js +216 -212
- package/dist/index.js +229 -225
- package/dist/types/lib/components/Button/IconButton.d.ts +2 -1
- package/dist/types/lib/components/Dialog/DialogHistorySegment.d.ts +1 -1
- package/dist/types/lib/components/Header/Header.d.ts +3 -1
- package/dist/types/lib/components/Header/Header.stories.d.ts +3 -1
- package/dist/types/lib/components/Header/HeaderGroup.d.ts +7 -0
- package/dist/types/lib/components/Header/LocaleButton.d.ts +7 -0
- package/dist/types/lib/components/Header/LocaleSwitcher.d.ts +10 -0
- package/dist/types/lib/components/Header/LocaleSwitcher.stories.d.ts +17 -0
- package/dist/types/lib/components/Header/index.d.ts +2 -0
- package/dist/types/lib/components/Page/Flex.d.ts +1 -0
- package/dist/types/lib/components/Timeline/TimelineBase.d.ts +2 -1
- package/dist/types/lib/components/Timeline/TimelineSegment.d.ts +2 -1
- package/package.json +1 -1
- package/dist/assets/HeaderMenu.css +0 -1
- package/dist/components/Header/HeaderMenu.js +0 -8
- package/dist/types/lib/components/Header/HeaderMenu.d.ts +0 -7
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ title, options, onChange }: import('./LocaleSwitcher').LocaleSwitcherProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {};
|
|
7
|
+
args: {
|
|
8
|
+
id?: string;
|
|
9
|
+
title?: string;
|
|
10
|
+
options: import('..').MenuOptionProps[];
|
|
11
|
+
className?: string;
|
|
12
|
+
onChange?: import('react').ChangeEventHandler;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default meta;
|
|
16
|
+
type Story = StoryObj<typeof meta>;
|
|
17
|
+
export declare const Default: Story;
|
|
@@ -22,5 +22,6 @@ export interface FlexProps {
|
|
|
22
22
|
children?: ReactNode;
|
|
23
23
|
className?: string;
|
|
24
24
|
style?: CSSProperties;
|
|
25
|
+
id?: string;
|
|
25
26
|
}
|
|
26
27
|
export declare const Flex: ({ as, color, theme, shadow, direction, reverse, align, justify, spacing, padding, margin, bleed, className, style, children, ...rest }: FlexProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,5 +14,6 @@ export interface TimelineBaseProps {
|
|
|
14
14
|
iconColor?: Color;
|
|
15
15
|
avatar?: AvatarProps;
|
|
16
16
|
children?: ReactNode;
|
|
17
|
+
id?: string;
|
|
17
18
|
}
|
|
18
|
-
export declare const TimelineBase: ({ as, loading, border, level, color, icon, iconColor, avatar, children, ...props }: TimelineBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export declare const TimelineBase: ({ as, loading, border, level, color, icon, iconColor, avatar, children, id, ...props }: TimelineBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { FlexMargin, FlexSpacing, SvgElement, TimelineBaseProps, TimelineBorder, TypographyProps } from '..';
|
|
3
3
|
export interface TimelineSegmentProps extends TimelineBaseProps {
|
|
4
|
+
id?: string;
|
|
4
5
|
loading?: boolean;
|
|
5
6
|
icon?: SvgElement;
|
|
6
7
|
datetime?: string;
|
|
@@ -12,4 +13,4 @@ export interface TimelineSegmentProps extends TimelineBaseProps {
|
|
|
12
13
|
margin?: FlexMargin;
|
|
13
14
|
spacing?: FlexSpacing;
|
|
14
15
|
}
|
|
15
|
-
export declare const TimelineSegment: ({ loading, datetime, byline, icon, color, spacing, margin, children, footer, ...props }: TimelineSegmentProps) => import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare const TimelineSegment: ({ loading, datetime, byline, icon, color, spacing, margin, children, id, footer, ...props }: TimelineSegmentProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
._menu_1cafh_1{position:relative}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
-
import { c as s } from "../../index-L8X2o7IH.js";
|
|
3
|
-
import '../../assets/HeaderMenu.css';const o = "_menu_1cafh_1", r = {
|
|
4
|
-
menu: o
|
|
5
|
-
}, u = ({ className: e, children: m }) => /* @__PURE__ */ n("div", { className: s(r.menu, e), children: m });
|
|
6
|
-
export {
|
|
7
|
-
u as HeaderMenu
|
|
8
|
-
};
|