uikit-react-public 0.41.0 → 0.42.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/index.d.ts +2 -0
- package/dist/index.js +3529 -3453
- 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/index.ts +3 -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 {};
|
|
@@ -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';
|