@fellesdatakatalog/ui 1.0.10 → 1.0.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,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { AppBar } from '.';
3
+ declare const meta: Meta<typeof AppBar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof AppBar>;
6
+ export declare const Default: Story;
@@ -0,0 +1,2 @@
1
+ declare const AppBar: () => import("react/jsx-runtime").JSX.Element;
2
+ export { AppBar };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import CopyButton from '.';
3
+ declare const meta: Meta<typeof CopyButton>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof CopyButton>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,8 @@
1
+ import { type ButtonProps } from '@digdir/designsystemet-react';
2
+ type CopyButtonProps = {
3
+ copyLabel: string;
4
+ copiedLabel: string;
5
+ copyOnClick: string;
6
+ };
7
+ declare const CopyButton: ({ copyLabel, copiedLabel, copyOnClick, ...props }: CopyButtonProps & ButtonProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default CopyButton;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { HelpText } from '.';
3
+ declare const meta: Meta<typeof HelpText>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof HelpText>;
6
+ export declare const Default: Story;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ export type HelpTextProps = {
3
+ /**
4
+ * Required descriptive label for screen readers.
5
+ **/
6
+ "aria-label": string;
7
+ /**
8
+ * Placement of the Popover.
9
+ * @default 'right'
10
+ */
11
+ placement?: "right" | "bottom" | "left" | "top";
12
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color">;
13
+ export declare const HelpText: React.ForwardRefExoticComponent<{
14
+ /**
15
+ * Required descriptive label for screen readers.
16
+ **/
17
+ "aria-label": string;
18
+ /**
19
+ * Placement of the Popover.
20
+ * @default 'right'
21
+ */
22
+ placement?: "right" | "bottom" | "left" | "top";
23
+ } & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "color"> & React.RefAttributes<HTMLButtonElement>>;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import HStack from '.';
3
+ declare const meta: Meta<typeof HStack>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof HStack>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const HStack: ({ children, className, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default HStack;
@@ -0,0 +1,7 @@
1
+ import React from 'react';
2
+ export type OrgLogoProps = {
3
+ orgLogoSrc?: string | null;
4
+ className?: string;
5
+ } & React.HTMLAttributes<HTMLDivElement>;
6
+ declare const OrgLogo: ({ className, orgLogoSrc, ...props }: OrgLogoProps) => import("react/jsx-runtime").JSX.Element;
7
+ export { OrgLogo };
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import { OrgLogo } from '.';
3
+ declare const meta: Meta<typeof OrgLogo>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof OrgLogo>;
6
+ export declare const Default: Story;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const VStack: ({ children, ...props }: React.HTMLAttributes<HTMLDivElement>) => import("react/jsx-runtime").JSX.Element;
3
+ export default VStack;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from '@storybook/react';
2
+ import VStack from '.';
3
+ declare const meta: Meta<typeof VStack>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof VStack>;
6
+ export declare const Primary: Story;
@@ -1,2 +1,6 @@
1
- export * from '../index'
2
- export {}
1
+ export * from './components/app-bar';
2
+ export * from './components/org-logo';
3
+ export { default as CopyButton } from './components/copy-button';
4
+ export { default as HStack } from './components/hstack';
5
+ export { default as VStack } from './components/vstack';
6
+ export { HelpText } from './components/helptext';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fellesdatakatalog/ui",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "React UI components for Felles Datakatalog",
5
5
  "main": "dist/shared-ui.cjs",
6
6
  "module": "dist/shared-ui.es.js",
@@ -17,7 +17,7 @@
17
17
  "README.md"
18
18
  ],
19
19
  "scripts": {
20
- "build": "vite build",
20
+ "build": "vite build && npm run build:types",
21
21
  "build:types": "tsc --emitDeclarationOnly",
22
22
  "test": "vitest",
23
23
  "storybook": "storybook dev -p 6006",