uikit-react-public 0.41.0 → 0.43.0
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/components/Callout/Callout.d.ts +13 -0
- package/dist/components/Callout/Callout.stories.d.ts +48 -0
- package/dist/components/Callout/__tests__/Callout.test.d.ts +1 -0
- package/dist/components/Callout/index.d.ts +2 -0
- package/dist/components/SkipToContent/SkipToContent.d.ts +8 -0
- package/dist/components/SkipToContent/SkipToContent.stories.d.ts +36 -0
- package/dist/components/SkipToContent/__tests__/SkipToContent.test.d.ts +1 -0
- package/dist/components/SkipToContent/index.d.ts +2 -0
- package/dist/components/index.d.ts +4 -0
- package/dist/index.js +4571 -4448
- package/lib/components/Callout/Callout.stories.tsx +56 -0
- package/lib/components/Callout/Callout.tsx +109 -0
- package/lib/components/Callout/__tests__/Callout.test.tsx +59 -0
- package/lib/components/Callout/index.ts +2 -0
- package/lib/components/SkipToContent/SkipToContent.stories.tsx +47 -0
- package/lib/components/SkipToContent/SkipToContent.tsx +68 -0
- package/lib/components/SkipToContent/__tests__/SkipToContent.test.tsx +38 -0
- package/lib/components/SkipToContent/index.ts +2 -0
- package/lib/components/index.ts +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HTMLAttributes, ReactNode, Ref } from 'react';
|
|
2
|
+
import { MarginProps } from '../common/marginsStyle';
|
|
3
|
+
export declare const NAME = "ucl-uikit-callout";
|
|
4
|
+
export interface CalloutBaseProps extends HTMLAttributes<HTMLDivElement> {
|
|
5
|
+
heading?: ReactNode;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
showIcon?: boolean;
|
|
8
|
+
testId?: string;
|
|
9
|
+
ref?: Ref<HTMLDivElement>;
|
|
10
|
+
}
|
|
11
|
+
export type CalloutProps = CalloutBaseProps & MarginProps;
|
|
12
|
+
declare const _default: import('react').MemoExoticComponent<({ heading, icon, showIcon, testId, className, children, ref, ...props }: CalloutProps) => import("react").JSX.Element>;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').MemoExoticComponent<({ heading, icon, showIcon, testId, className, children, ref, ...props }: import('./Callout').CalloutProps) => import("react").JSX.Element>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
argTypes: {
|
|
9
|
+
heading: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "text";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
children: {
|
|
15
|
+
control: {
|
|
16
|
+
type: "text";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
showIcon: {
|
|
20
|
+
control: {
|
|
21
|
+
type: "boolean";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
icon: {
|
|
25
|
+
control: false;
|
|
26
|
+
};
|
|
27
|
+
testId: {
|
|
28
|
+
control: {
|
|
29
|
+
type: "text";
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
className: {
|
|
33
|
+
control: false;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
args: {
|
|
37
|
+
heading: string;
|
|
38
|
+
children: string;
|
|
39
|
+
showIcon: true;
|
|
40
|
+
};
|
|
41
|
+
tags: string[];
|
|
42
|
+
};
|
|
43
|
+
export default meta;
|
|
44
|
+
type Story = StoryObj<typeof meta>;
|
|
45
|
+
export declare const Default: Story;
|
|
46
|
+
export declare const WithoutIcon: Story;
|
|
47
|
+
export declare const CustomIcon: Story;
|
|
48
|
+
export declare const ConstrainedWidth: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AnchorHTMLAttributes, Ref } from 'react';
|
|
2
|
+
export declare const NAME = "ucl-uikit-skip-to-content";
|
|
3
|
+
export interface SkipToContentProps extends AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
4
|
+
testId?: string;
|
|
5
|
+
ref?: Ref<HTMLAnchorElement>;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import('react').MemoExoticComponent<({ href, testId, className, children, ref, ...props }: SkipToContentProps) => import("react").JSX.Element>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { StoryObj } from '@storybook/react-vite';
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: import('react').MemoExoticComponent<({ href, testId, className, children, ref, ...props }: import('./SkipToContent').SkipToContentProps) => import("react").JSX.Element>;
|
|
5
|
+
parameters: {
|
|
6
|
+
layout: string;
|
|
7
|
+
};
|
|
8
|
+
argTypes: {
|
|
9
|
+
href: {
|
|
10
|
+
control: {
|
|
11
|
+
type: "text";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
children: {
|
|
15
|
+
control: {
|
|
16
|
+
type: "text";
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
testId: {
|
|
20
|
+
control: {
|
|
21
|
+
type: "text";
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
className: {
|
|
25
|
+
control: false;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
args: {
|
|
29
|
+
href: string;
|
|
30
|
+
children: string;
|
|
31
|
+
};
|
|
32
|
+
tags: string[];
|
|
33
|
+
};
|
|
34
|
+
export default meta;
|
|
35
|
+
type Story = StoryObj<typeof meta>;
|
|
36
|
+
export declare const Default: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -8,6 +8,8 @@ export { default as StandaloneLink } from './StandaloneLink';
|
|
|
8
8
|
export type { StandaloneLinkProps } from './StandaloneLink';
|
|
9
9
|
export { default as Button } from './Button';
|
|
10
10
|
export type { ButtonProps } from './Button';
|
|
11
|
+
export { default as Callout } from './Callout';
|
|
12
|
+
export type { CalloutProps } from './Callout';
|
|
11
13
|
export { default as Label } from './Label';
|
|
12
14
|
export type { LabelProps } from './Label';
|
|
13
15
|
export { default as IconButton } from './IconButton';
|
|
@@ -119,6 +121,8 @@ export { default as CookieNotice } from './CookieNotice';
|
|
|
119
121
|
export type { CookieNoticeProps } from './CookieNotice';
|
|
120
122
|
export { default as Search } from './Search';
|
|
121
123
|
export type { SearchProps } from './Search';
|
|
124
|
+
export { default as SkipToContent } from './SkipToContent';
|
|
125
|
+
export type { SkipToContentProps } from './SkipToContent';
|
|
122
126
|
export { default as Dropdown } from './Dropdown';
|
|
123
127
|
export type { DropdownProps, DropdownTriggerProps, DropdownContentProps, } from './Dropdown';
|
|
124
128
|
export { default as DropdownMenu } from './DropdownMenu';
|