@kystverket/styrbord 1.3.9 → 1.3.11

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.
@@ -0,0 +1,13 @@
1
+ import { ReactNode } from 'react';
2
+ import { Spacing } from '../Box/box.types';
3
+ export interface PageHeadingProps {
4
+ heading?: string;
5
+ headingSize?: 'sm' | 'md' | 'lg' | 'xl';
6
+ aboveSection?: ReactNode;
7
+ rightSection?: ReactNode;
8
+ children?: ReactNode;
9
+ border?: boolean;
10
+ px?: Spacing;
11
+ contentWidth?: 'container' | 'full' | 'form' | 'fit';
12
+ }
13
+ export declare function PageHeading({ children, aboveSection, rightSection, heading, border, headingSize, contentWidth, px, }: PageHeadingProps): React.JSX.Element;
@@ -0,0 +1,20 @@
1
+ import type { StoryObj } from '@storybook/react';
2
+ import { PageHeading } from './PageHeading';
3
+ declare const meta: {
4
+ title: string;
5
+ component: typeof PageHeading;
6
+ decorators: ((Story: import("@storybook/types").PartialStoryFn) => React.JSX.Element)[];
7
+ tags: string[];
8
+ argTypes: {
9
+ children: {
10
+ control: {
11
+ type: "object";
12
+ };
13
+ };
14
+ };
15
+ };
16
+ export default meta;
17
+ type Story = StoryObj<typeof meta>;
18
+ export declare const Default: Story;
19
+ export declare const UtenSeksjoner: Story;
20
+ export declare const BareRight: Story;
@@ -7,6 +7,8 @@ export { Details as DeprecatedDetails, type DetailsProps as DeprecatedDetailsPro
7
7
  export { default as DeprecatedCard, type CardProps as DeprecatedCardProps } from './components/deprecated/Card/Card';
8
8
  export { FilePreviewer, type FilePreviewerProps } from './components/kystverket/FilePreviewer';
9
9
  export { default as KyvDivider } from './components/kystverket/KyvDivider/kyvDivider';
10
+ export { PageHeading } from './components/kystverket/PageHeading/PageHeading';
11
+ export type { PageHeadingProps } from './components/kystverket/PageHeading/PageHeading';
10
12
  export { default as Alert } from './components/kystverket/Alert/alert';
11
13
  export type { AlertProps } from './components/kystverket/Alert/alert';
12
14
  export { default as Box } from './components/kystverket/Box/box';