@nd-storybook/storybook 0.3.10 → 0.3.12
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/index.cjs.js +14 -14
- package/dist/index.d.ts +11 -3
- package/dist/index.es.js +954 -939
- package/dist/tailwind.config.js +3 -0
- package/package.json +1 -1
- package/tailwind.config.js +3 -0
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
|
-
import react__default, { ButtonHTMLAttributes, ReactNode } from 'react';
|
|
2
|
+
import react__default, { ButtonHTMLAttributes, AnchorHTMLAttributes, ReactNode } from 'react';
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import * as use_immer from 'use-immer';
|
|
5
5
|
import * as react_use_lib_misc_hookState from 'react-use/lib/misc/hookState';
|
|
6
6
|
import * as mitt from 'mitt';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
type BaseButtonProps = {
|
|
9
9
|
variant?: 'primary' | 'secondary' | 'ghost' | 'dark' | 'pill';
|
|
10
10
|
iconLeft?: string | null;
|
|
11
11
|
iconRight?: string | null;
|
|
@@ -15,7 +15,14 @@ interface ButtonProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
15
15
|
label?: string | react__default.ReactNode;
|
|
16
16
|
isActive?: boolean;
|
|
17
17
|
onToggle?: (isActive: boolean) => void;
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
|
+
type ButtonAsButton = BaseButtonProps & ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
20
|
+
href?: never;
|
|
21
|
+
};
|
|
22
|
+
type ButtonAsLink = BaseButtonProps & AnchorHTMLAttributes<HTMLAnchorElement> & {
|
|
23
|
+
href: string;
|
|
24
|
+
};
|
|
25
|
+
type ButtonProps = ButtonAsButton | ButtonAsLink;
|
|
19
26
|
declare const Button: react__default.FC<ButtonProps>;
|
|
20
27
|
|
|
21
28
|
type IconSize = 's' | 'm' | 'l' | 'xl' | 'xxl';
|
|
@@ -289,6 +296,7 @@ interface ArticleSliderProps {
|
|
|
289
296
|
title?: string;
|
|
290
297
|
showButton?: boolean;
|
|
291
298
|
buttonLabel?: string;
|
|
299
|
+
buttonUrl?: string;
|
|
292
300
|
onButtonClick?: () => void;
|
|
293
301
|
className?: string;
|
|
294
302
|
}
|