@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.
- package/dist/types/components/app-bar/app-bar.stories.d.ts +6 -0
- package/dist/types/components/app-bar/index.d.ts +2 -0
- package/dist/types/components/copy-button/copy-button.stories.d.ts +6 -0
- package/dist/types/components/copy-button/index.d.ts +8 -0
- package/dist/types/components/helptext/helptext.stories.d.ts +6 -0
- package/dist/types/components/helptext/index.d.ts +23 -0
- package/dist/types/components/hstack/hstack.stories.d.ts +6 -0
- package/dist/types/components/hstack/index.d.ts +3 -0
- package/dist/types/components/org-logo/index.d.ts +7 -0
- package/dist/types/components/org-logo/org-logo.stories.d.ts +6 -0
- package/dist/types/components/vstack/index.d.ts +3 -0
- package/dist/types/components/vstack/vstack.stories.d.ts +6 -0
- package/dist/types/index.d.ts +6 -2
- package/package.json +2 -2
|
@@ -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,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,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 };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
export * from '
|
|
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.
|
|
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",
|