quirk-ui 0.0.6 → 0.0.7
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/arrow-right-CnuUc2oD.js +25 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/index.css.d.ts +1 -7
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index10.css.d.ts +5 -2
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index11.css.d.ts +3 -3
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index13.css.d.ts +4 -4
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index16.css.d.ts +1 -4
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index2.css.d.ts +7 -5
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index20.css.d.ts +2 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index21.css.d.ts +15 -4
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index22.css.d.ts +10 -2
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index23.css.d.ts +9 -3
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index24.css.d.ts +6 -3
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index25.css.d.ts +9 -5
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index26.css.d.ts +8 -17
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index27.css.d.ts +10 -5
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index28.css.d.ts +1 -8
- package/dist/assets/index29.css +1 -0
- package/dist/assets/index29.css.d.ts +12 -0
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index3.css.d.ts +3 -4
- package/dist/assets/index30.css +1 -0
- package/dist/assets/index30.css.d.ts +15 -0
- package/dist/assets/index31.css +1 -0
- package/dist/assets/index31.css.d.ts +12 -0
- package/dist/assets/index32.css +1 -0
- package/dist/assets/index32.css.d.ts +14 -0
- package/dist/assets/index33.css +1 -0
- package/dist/assets/index33.css.d.ts +5 -0
- package/dist/assets/index34.css +1 -0
- package/dist/assets/index34.css.d.ts +8 -0
- package/dist/assets/index35.css +1 -0
- package/dist/assets/index35.css.d.ts +6 -0
- package/dist/assets/index36.css +1 -0
- package/dist/assets/index36.css.d.ts +7 -0
- package/dist/assets/index37.css +1 -0
- package/dist/assets/index37.css.d.ts +7 -0
- package/dist/assets/index38.css +1 -0
- package/dist/assets/index38.css.d.ts +6 -0
- package/dist/assets/index39.css +1 -0
- package/dist/assets/index39.css.d.ts +6 -0
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index4.css.d.ts +5 -4
- package/dist/assets/index40.css +1 -0
- package/dist/assets/index40.css.d.ts +7 -0
- package/dist/assets/index41.css +1 -0
- package/dist/assets/index41.css.d.ts +10 -0
- package/dist/assets/index42.css +1 -0
- package/dist/assets/index42.css.d.ts +9 -0
- package/dist/assets/index43.css +1 -0
- package/dist/assets/index43.css.d.ts +20 -0
- package/dist/assets/index44.css +1 -0
- package/dist/assets/index44.css.d.ts +21 -0
- package/dist/assets/index45.css +1 -0
- package/dist/assets/index45.css.d.ts +9 -0
- package/dist/assets/index46.css +1 -0
- package/dist/assets/index46.css.d.ts +12 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index5.css.d.ts +4 -17
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index6.css.d.ts +4 -7
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index7.css.d.ts +17 -2
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index8.css.d.ts +10 -6
- package/dist/assets/index9.css +1 -1
- package/dist/assets/index9.css.d.ts +7 -3
- package/dist/chevron-down-DSUzBz9F.js +11 -0
- package/dist/components/Accordion/Accordion.test.js +45 -0
- package/dist/components/Accordion/index.js +49 -0
- package/dist/components/Alert/Alert.test.js +52 -0
- package/dist/components/Alert/__mocks__/styles.module.css.js +11 -0
- package/dist/components/Alert/index.js +57 -0
- package/dist/components/Avatar/Avatar.test.js +51 -0
- package/dist/components/Avatar/index.js +51 -0
- package/dist/components/Badge/Badge.test.js +62 -0
- package/dist/components/Badge/__mocks__/styles.module.css.js +10 -0
- package/dist/components/Badge/index.js +41 -0
- package/dist/components/Box/Box.test.js +2 -1
- package/dist/components/Button/Button.test.js +2 -1
- package/dist/components/Button/index.js +14 -14
- package/dist/components/ButtonGroup/ButtonGroup.test.js +2 -1
- package/dist/components/ButtonGroup/index.js +11 -11
- package/dist/components/Calendar/Calendar.test.js +5 -4
- package/dist/components/Calendar/index.js +4 -2
- package/dist/components/Card/Card.test.js +49 -0
- package/dist/components/Card/__mocks__/styles.module.css.js +11 -0
- package/dist/components/Card/index.js +77 -0
- package/dist/components/Carousel/Carousel.test.js +41 -0
- package/dist/components/Carousel/index.js +96 -0
- package/dist/components/Checkbox/Checkbox.test.js +2 -1
- package/dist/components/Checkbox/index.js +10 -9
- package/dist/components/Container/Container.test.js +2 -1
- package/dist/components/DatePicker/DatePicker.test.js +3 -2
- package/dist/components/DatePicker/index.js +16 -15
- package/dist/components/Divider/Divider.test.js +10 -9
- package/dist/components/Drawer/Drawer.test.js +35 -0
- package/dist/components/Drawer/__mocks__/styles.module.css.js +9 -0
- package/dist/components/Drawer/index.js +55 -0
- package/dist/components/Fieldset/Fieldset.test.js +3 -2
- package/dist/components/Fieldset/index.js +1 -1
- package/dist/components/FileUpload/FileUpload.test.js +2 -1
- package/dist/components/FileUpload/index.js +4 -3
- package/dist/components/FloatingActionButton/FloatingActionButton.test.js +11 -20
- package/dist/components/Form/Form.test.js +2 -1
- package/dist/components/Form/index.js +1 -1
- package/dist/components/Grid/Grid.test.js +14 -13
- package/dist/components/Grid/index.js +53 -17
- package/dist/components/Heading/Heading.test.js +2 -1
- package/dist/components/IconButton/IconButton.test.js +10 -9
- package/dist/components/Input/Input.test.js +5 -4
- package/dist/components/Input/index.js +13 -12
- package/dist/components/Label/Label.test.js +2 -1
- package/dist/components/Label/index.js +25 -26
- package/dist/components/Link/Link.test.js +3 -2
- package/dist/components/Link/index.js +1 -1
- package/dist/components/List/List.test.js +78 -0
- package/dist/components/List/index.js +24 -0
- package/dist/components/Modal/Modal.test.js +94 -0
- package/dist/components/Modal/index.js +37 -0
- package/dist/components/MultiSelect/MultiSelect.test.js +2 -1
- package/dist/components/MultiSelect/index.js +4 -3
- package/dist/components/NavBar/NavBar.test.js +54 -0
- package/dist/components/NavBar/index.js +139 -0
- package/dist/components/Notification/Notification.test.js +64 -0
- package/dist/components/Notification/__mocks__/styles.module.css.js +9 -0
- package/dist/components/Notification/index.js +61 -0
- package/dist/components/NotificationContainer/NotificationContainer.test.js +28 -0
- package/dist/components/NotificationContainer/index.js +15 -0
- package/dist/components/ProgressBar/ProgressBar.test.js +24 -0
- package/dist/components/ProgressBar/__mocks__/styles.module.css.js +9 -0
- package/dist/components/ProgressBar/index.js +50 -0
- package/dist/components/Radio/Radio.test.js +8 -7
- package/dist/components/Radio/index.js +10 -10
- package/dist/components/Range/Range.test.js +5 -4
- package/dist/components/Range/index.js +13 -12
- package/dist/components/Select/Select.test.js +6 -5
- package/dist/components/Select/index.js +8 -7
- package/dist/components/Skeleton/Skeleton.test.js +26 -0
- package/dist/components/Skeleton/__mocks__/styles.module.css.js +8 -0
- package/dist/components/Skeleton/index.js +34 -0
- package/dist/components/Spacer/Spacer.test.js +2 -1
- package/dist/components/Spacer/index.js +1 -1
- package/dist/components/Spinner/Spinner.test.js +18 -0
- package/dist/components/Spinner/__mocks__/styles.module.css.js +12 -0
- package/dist/components/Spinner/index.js +39 -0
- package/dist/components/Stack/Stack.test.js +2 -1
- package/dist/components/Stack/index.js +1 -1
- package/dist/components/Switch/Switch.test.js +4 -3
- package/dist/components/Switch/index.js +9 -8
- package/dist/components/Table/Table.test.js +2 -1
- package/dist/components/Table/index.js +1 -1
- package/dist/components/Tabs/Context.js +11 -0
- package/dist/components/Tabs/Tabs.test.js +49 -0
- package/dist/components/Tabs/__mocks__/styles.module.css.js +8 -0
- package/dist/components/Tabs/index.js +89 -0
- package/dist/components/Text/Text.test.js +2 -1
- package/dist/components/Text/index.js +1 -1
- package/dist/components/Textarea/Textarea.test.js +2 -1
- package/dist/components/Textarea/index.js +13 -12
- package/dist/components/Tooltip/Tooltip.test.js +43 -0
- package/dist/components/Tooltip/index.js +45 -0
- package/dist/{index-BtY6pil2.js → index-BXkubhGb.js} +1 -1
- package/dist/index-Bgo8MuTU.js +4279 -0
- package/dist/{index-DhqFdMqD.js → index-RF23qrF-.js} +172 -190
- package/dist/lib/components/Accordion/Accordion.test.d.ts +0 -0
- package/dist/lib/components/Accordion/index.d.ts +13 -0
- package/dist/lib/components/Alert/Alert.test.d.ts +0 -0
- package/dist/lib/components/Alert/__mocks__/styles.module.css.d.ts +9 -0
- package/dist/lib/components/Alert/index.d.ts +15 -0
- package/dist/lib/components/Avatar/Avatar.test.d.ts +0 -0
- package/dist/lib/components/Avatar/index.d.ts +25 -0
- package/dist/lib/components/Badge/Badge.test.d.ts +0 -0
- package/dist/lib/components/Badge/__mocks__/styles.module.css.d.ts +8 -0
- package/dist/lib/components/Badge/index.d.ts +18 -0
- package/dist/lib/components/Card/Card.test.d.ts +0 -0
- package/dist/lib/components/Card/__mocks__/styles.module.css.d.ts +9 -0
- package/dist/lib/components/Card/index.d.ts +22 -0
- package/dist/lib/components/Carousel/Carousel.test.d.ts +0 -0
- package/dist/lib/components/Carousel/index.d.ts +9 -0
- package/dist/lib/components/Drawer/Drawer.test.d.ts +0 -0
- package/dist/lib/components/Drawer/__mocks__/styles.module.css.d.ts +7 -0
- package/dist/lib/components/Drawer/index.d.ts +19 -0
- package/dist/lib/components/Grid/index.d.ts +9 -1
- package/dist/lib/components/Heading/index.d.ts +0 -2
- package/dist/lib/components/List/List.test.d.ts +1 -0
- package/dist/lib/components/List/index.d.ts +15 -0
- package/dist/lib/components/Modal/Modal.test.d.ts +1 -0
- package/dist/lib/components/Modal/index.d.ts +10 -0
- package/dist/lib/components/NavBar/NavBar.test.d.ts +1 -0
- package/dist/lib/components/NavBar/index.d.ts +16 -0
- package/dist/lib/components/Notification/Notification.test.d.ts +1 -0
- package/dist/lib/components/Notification/__mocks__/styles.module.css.d.ts +7 -0
- package/dist/lib/components/Notification/index.d.ts +17 -0
- package/dist/lib/components/NotificationContainer/NotificationContainer.test.d.ts +1 -0
- package/dist/lib/components/NotificationContainer/index.d.ts +6 -0
- package/dist/lib/components/ProgressBar/ProgressBar.test.d.ts +1 -0
- package/dist/lib/components/ProgressBar/__mocks__/styles.module.css.d.ts +7 -0
- package/dist/lib/components/ProgressBar/index.d.ts +15 -0
- package/dist/lib/components/Skeleton/Skeleton.test.d.ts +1 -0
- package/dist/lib/components/Skeleton/__mocks__/styles.module.css.d.ts +6 -0
- package/dist/lib/components/Skeleton/index.d.ts +15 -0
- package/dist/lib/components/Spinner/Spinner.test.d.ts +1 -0
- package/dist/lib/components/Spinner/__mocks__/styles.module.css.d.ts +10 -0
- package/dist/lib/components/Spinner/index.d.ts +20 -0
- package/dist/lib/components/Tabs/Context.d.ts +10 -0
- package/dist/lib/components/Tabs/Tabs.test.d.ts +0 -0
- package/dist/lib/components/Tabs/__mocks__/styles.module.css.d.ts +6 -0
- package/dist/lib/components/Tabs/index.d.ts +27 -0
- package/dist/lib/components/Tooltip/Tooltip.test.d.ts +0 -0
- package/dist/lib/components/Tooltip/index.d.ts +16 -0
- package/dist/lib/main.d.ts +19 -0
- package/dist/lib/utils/NotificationManager/NotificationManager.test.d.ts +1 -0
- package/dist/lib/utils/NotificationManager/index.d.ts +10 -0
- package/dist/lib/utils/ThemeProvider/index.d.ts +7 -0
- package/dist/main.js +78 -44
- package/dist/plus-Cs7TaIK9.js +14 -0
- package/dist/utils/NotificationManager/NotificationManager.test.js +34 -0
- package/dist/utils/NotificationManager/index.js +70 -0
- package/dist/utils/RenderAsRichtext.tsx/index.js +5 -0
- package/dist/utils/ThemeProvider/index.js +13 -0
- package/dist/vi.B-PuvDzu-a048kFcX.js +41965 -0
- package/dist/x-CnsEH4Ox.js +14 -0
- package/package.json +3 -2
- package/dist/index-BWTAh3RO.js +0 -57529
- /package/dist/lib/utils/{renderRichText.d.ts → RenderAsRichtext.tsx/index.d.ts} +0 -0
- /package/dist/utils/{renderRichText.js → RenderAsRichtext.js} +0 -0
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type AccordionItem = {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
content: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
type AccordionProps = {
|
|
8
|
+
items: AccordionItem[];
|
|
9
|
+
multiple?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare function Accordion({ items, multiple, className, }: AccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const variantClassMap: {
|
|
2
|
+
readonly info: string;
|
|
3
|
+
readonly success: string;
|
|
4
|
+
readonly warning: string;
|
|
5
|
+
readonly error: string;
|
|
6
|
+
};
|
|
7
|
+
type Variant = keyof typeof variantClassMap;
|
|
8
|
+
type AlertProps = {
|
|
9
|
+
message: string;
|
|
10
|
+
variant?: Variant;
|
|
11
|
+
onClose?: () => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function Alert({ message, variant, onClose, className, }: AlertProps): import("react/jsx-runtime").JSX.Element | null;
|
|
15
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const sizeClassMap: {
|
|
2
|
+
readonly sm: string;
|
|
3
|
+
readonly md: string;
|
|
4
|
+
readonly lg: string;
|
|
5
|
+
};
|
|
6
|
+
declare const statusClassMap: {
|
|
7
|
+
readonly online: string;
|
|
8
|
+
readonly offline: string;
|
|
9
|
+
readonly busy: string;
|
|
10
|
+
};
|
|
11
|
+
type Size = keyof typeof sizeClassMap;
|
|
12
|
+
type Status = keyof typeof statusClassMap;
|
|
13
|
+
type AvatarProps = {
|
|
14
|
+
src?: string;
|
|
15
|
+
alt?: string;
|
|
16
|
+
size?: Size;
|
|
17
|
+
initials?: string;
|
|
18
|
+
status?: Status;
|
|
19
|
+
borderColor?: string;
|
|
20
|
+
backgroundColor?: string;
|
|
21
|
+
onClick?: () => void;
|
|
22
|
+
className?: string;
|
|
23
|
+
};
|
|
24
|
+
export declare function Avatar({ src, alt, size, initials, status, borderColor, backgroundColor, onClick, className, }: AvatarProps): import("react/jsx-runtime").JSX.Element;
|
|
25
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const variantClassMap: {
|
|
3
|
+
readonly default: string;
|
|
4
|
+
readonly success: string;
|
|
5
|
+
readonly warning: string;
|
|
6
|
+
readonly error: string;
|
|
7
|
+
readonly info: string;
|
|
8
|
+
};
|
|
9
|
+
type Variant = keyof typeof variantClassMap;
|
|
10
|
+
type BadgeProps = {
|
|
11
|
+
text: string;
|
|
12
|
+
variant?: Variant;
|
|
13
|
+
icon?: React.ReactNode;
|
|
14
|
+
onClick?: () => void;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare function Badge({ text, variant, icon, onClick, className, }: BadgeProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const variantClassMap: {
|
|
3
|
+
readonly default: string;
|
|
4
|
+
readonly outlined: string;
|
|
5
|
+
readonly shadow: string;
|
|
6
|
+
readonly imageTop: string;
|
|
7
|
+
readonly imageBackground: string;
|
|
8
|
+
};
|
|
9
|
+
type Variant = keyof typeof variantClassMap;
|
|
10
|
+
type CardProps = {
|
|
11
|
+
title?: string;
|
|
12
|
+
content?: React.ReactNode;
|
|
13
|
+
footer?: React.ReactNode;
|
|
14
|
+
imageSrc?: string;
|
|
15
|
+
imageAlt?: string;
|
|
16
|
+
onClick?: () => void;
|
|
17
|
+
variant?: Variant;
|
|
18
|
+
clickable?: boolean;
|
|
19
|
+
className?: string;
|
|
20
|
+
};
|
|
21
|
+
export declare function Card({ title, content, footer, imageSrc, imageAlt, onClick, variant, clickable, className, }: CardProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type CarouselProps = {
|
|
3
|
+
items: React.ReactNode[];
|
|
4
|
+
autoPlay?: boolean;
|
|
5
|
+
autoPlayInterval?: number;
|
|
6
|
+
className?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare function Carousel({ items, autoPlay, autoPlayInterval, className, }: CarouselProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const positionClassMap: {
|
|
3
|
+
readonly left: string;
|
|
4
|
+
readonly right: string;
|
|
5
|
+
readonly top: string;
|
|
6
|
+
readonly bottom: string;
|
|
7
|
+
};
|
|
8
|
+
type Position = keyof typeof positionClassMap;
|
|
9
|
+
type DrawerProps = {
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
onClose: () => void;
|
|
12
|
+
position?: Position;
|
|
13
|
+
overlay?: boolean;
|
|
14
|
+
ariaLabel?: string;
|
|
15
|
+
children: React.ReactNode;
|
|
16
|
+
className?: string;
|
|
17
|
+
};
|
|
18
|
+
export declare function Drawer({ isOpen, onClose, position, overlay, ariaLabel, children, className, }: DrawerProps): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -1,6 +1,14 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
type BreakpointColumns = {
|
|
3
|
+
xs?: number | string;
|
|
4
|
+
sm?: number | string;
|
|
5
|
+
md?: number | string;
|
|
6
|
+
lg?: number | string;
|
|
7
|
+
xl?: number | string;
|
|
8
|
+
"2xl"?: number | string;
|
|
9
|
+
};
|
|
2
10
|
type GridProps = {
|
|
3
|
-
columns?: number | string;
|
|
11
|
+
columns?: number | string | BreakpointColumns;
|
|
4
12
|
gap?: string;
|
|
5
13
|
areas?: string[][];
|
|
6
14
|
autoFitMinMax?: string;
|
|
@@ -185,8 +185,6 @@ export declare function Heading({ level, className, children, ...restProps }: He
|
|
|
185
185
|
onProgressCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
186
186
|
onRateChange?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
187
187
|
onRateChangeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
188
|
-
onResize?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
189
|
-
onResizeCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
190
188
|
onSeeked?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
191
189
|
onSeekedCapture?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
192
190
|
onSeeking?: React.ReactEventHandler<HTMLHeadingElement> | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export type ListItem = {
|
|
3
|
+
content: React.ReactNode;
|
|
4
|
+
id: string | number;
|
|
5
|
+
className?: string;
|
|
6
|
+
renderItem?: (item: React.ReactNode) => React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
type ListProps = {
|
|
9
|
+
items: ListItem[];
|
|
10
|
+
ordered?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
onItemClick?: (item: ListItem) => void;
|
|
13
|
+
};
|
|
14
|
+
export declare function List({ items, ordered, className, onItemClick, }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ModalProps = {
|
|
3
|
+
content: React.ReactNode;
|
|
4
|
+
trigger: React.ReactNode;
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function Modal({ content, trigger, isOpen: controlledIsOpen, onClose, className, }: ModalProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type NavItem = {
|
|
3
|
+
label: string;
|
|
4
|
+
href?: string;
|
|
5
|
+
sublinks?: NavItem[];
|
|
6
|
+
isExternal?: boolean;
|
|
7
|
+
onClick?: () => void;
|
|
8
|
+
};
|
|
9
|
+
type NavbarProps = {
|
|
10
|
+
logo?: React.ReactNode;
|
|
11
|
+
items: NavItem[];
|
|
12
|
+
isSticky?: boolean;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function Navbar({ logo, items, isSticky, className, }: NavbarProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
declare const variantClassMap: {
|
|
2
|
+
readonly info: string;
|
|
3
|
+
readonly success: string;
|
|
4
|
+
readonly warning: string;
|
|
5
|
+
readonly error: string;
|
|
6
|
+
};
|
|
7
|
+
type Variant = keyof typeof variantClassMap;
|
|
8
|
+
export type NotificationProps = {
|
|
9
|
+
id: string;
|
|
10
|
+
message: string;
|
|
11
|
+
variant?: Variant;
|
|
12
|
+
duration?: number;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare function Notification({ message, variant, duration, onClose, className, }: NotificationProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NotificationProps } from '../../main';
|
|
2
|
+
type NotificationContainerProps = {
|
|
3
|
+
notifications: NotificationProps[];
|
|
4
|
+
};
|
|
5
|
+
export declare function NotificationContainer({ notifications, }: NotificationContainerProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const variantClassMap: {
|
|
2
|
+
readonly primary: string;
|
|
3
|
+
readonly success: string;
|
|
4
|
+
readonly warning: string;
|
|
5
|
+
readonly danger: string;
|
|
6
|
+
};
|
|
7
|
+
type Variant = keyof typeof variantClassMap;
|
|
8
|
+
type ProgressBarProps = {
|
|
9
|
+
progress: number;
|
|
10
|
+
variant?: Variant;
|
|
11
|
+
showLabel?: boolean;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function ProgressBar({ progress, variant, showLabel, className, }: ProgressBarProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare const variantClassMap: {
|
|
2
|
+
text: string;
|
|
3
|
+
circle: string;
|
|
4
|
+
rectangle: string;
|
|
5
|
+
};
|
|
6
|
+
type Variant = keyof typeof variantClassMap;
|
|
7
|
+
type SkeletonProps = {
|
|
8
|
+
width?: string | number;
|
|
9
|
+
height?: string | number;
|
|
10
|
+
borderRadius?: string | number;
|
|
11
|
+
variant?: Variant;
|
|
12
|
+
className?: string;
|
|
13
|
+
};
|
|
14
|
+
export declare function Skeleton({ width, height, borderRadius, variant, className, }: SkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const sizeClassMap: {
|
|
2
|
+
readonly small: string;
|
|
3
|
+
readonly medium: string;
|
|
4
|
+
readonly large: string;
|
|
5
|
+
};
|
|
6
|
+
type Size = keyof typeof sizeClassMap;
|
|
7
|
+
declare const colorClassMap: {
|
|
8
|
+
readonly primary: string;
|
|
9
|
+
readonly success: string;
|
|
10
|
+
readonly warning: string;
|
|
11
|
+
readonly danger: string;
|
|
12
|
+
};
|
|
13
|
+
type Color = keyof typeof colorClassMap;
|
|
14
|
+
type SpinnerProps = {
|
|
15
|
+
size?: Size;
|
|
16
|
+
color?: Color;
|
|
17
|
+
className?: string;
|
|
18
|
+
};
|
|
19
|
+
export declare function Spinner({ size, color, className, }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Align } from '.';
|
|
3
|
+
export type TabsContextType = {
|
|
4
|
+
activeIndex: number;
|
|
5
|
+
setActiveIndex: React.Dispatch<React.SetStateAction<number>>;
|
|
6
|
+
idPrefix: string;
|
|
7
|
+
align: Align;
|
|
8
|
+
};
|
|
9
|
+
export declare const TabsContext: React.Context<TabsContextType | null>;
|
|
10
|
+
export declare function useTabsContext(): TabsContextType;
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const alignClassMap: {
|
|
3
|
+
left: string;
|
|
4
|
+
center: string;
|
|
5
|
+
right: string;
|
|
6
|
+
};
|
|
7
|
+
export type Align = keyof typeof alignClassMap;
|
|
8
|
+
type TabsProps = {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
defaultIndex?: number;
|
|
11
|
+
align?: Align;
|
|
12
|
+
};
|
|
13
|
+
export declare function Tabs({ children, defaultIndex, align, }: TabsProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export declare namespace Tabs {
|
|
15
|
+
var List: ({ children }: {
|
|
16
|
+
children: ReactNode;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
var Trigger: ({ children, index }: {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
index: number;
|
|
21
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
var Panel: ({ children, index }: {
|
|
23
|
+
children: ReactNode;
|
|
24
|
+
index: number;
|
|
25
|
+
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
26
|
+
}
|
|
27
|
+
export default Tabs;
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
declare const positionClassMap: {
|
|
3
|
+
readonly top: string;
|
|
4
|
+
readonly bottom: string;
|
|
5
|
+
readonly left: string;
|
|
6
|
+
readonly right: string;
|
|
7
|
+
};
|
|
8
|
+
type Position = keyof typeof positionClassMap;
|
|
9
|
+
type TooltipProps = {
|
|
10
|
+
content: React.ReactNode;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
position?: Position;
|
|
13
|
+
className?: string;
|
|
14
|
+
};
|
|
15
|
+
export declare function Tooltip({ content, children, position, className, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export {};
|
package/dist/lib/main.d.ts
CHANGED
|
@@ -13,6 +13,25 @@ export { Spacer } from './components/Spacer';
|
|
|
13
13
|
export { Divider } from './components/Divider';
|
|
14
14
|
export { Table } from './components/Table';
|
|
15
15
|
export type { TableColumn } from './components/Table';
|
|
16
|
+
export { List } from './components/List';
|
|
17
|
+
export type { ListItem } from './components/List';
|
|
18
|
+
export { Card } from './components/Card';
|
|
19
|
+
export { Avatar } from './components/Avatar';
|
|
20
|
+
export { Badge } from './components/Badge';
|
|
21
|
+
export { Tooltip } from './components/Tooltip';
|
|
22
|
+
export { Modal } from './components/Modal';
|
|
23
|
+
export { Accordion } from './components/Accordion';
|
|
24
|
+
export { Alert } from './components/Alert';
|
|
25
|
+
export { Notification } from './components/Notification';
|
|
26
|
+
export type { NotificationProps } from './components/Notification';
|
|
27
|
+
export { NotificationContainer } from './components/NotificationContainer';
|
|
28
|
+
export { ProgressBar } from './components/ProgressBar';
|
|
29
|
+
export { Spinner } from './components/Spinner';
|
|
30
|
+
export { Skeleton } from './components/Skeleton';
|
|
31
|
+
export { Carousel } from './components/Carousel';
|
|
32
|
+
export { Navbar } from './components/NavBar';
|
|
33
|
+
export { Drawer } from './components/Drawer';
|
|
34
|
+
export { Tabs } from './components/Tabs';
|
|
16
35
|
export { Form } from './components/Form';
|
|
17
36
|
export { Label } from './components/Label';
|
|
18
37
|
export { Input } from './components/Input';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { NotificationProps } from '../../main';
|
|
3
|
+
type NotificationManagerType = {
|
|
4
|
+
showNotification: (message: string, variant?: NotificationProps["variant"], duration?: number) => void;
|
|
5
|
+
};
|
|
6
|
+
export declare const NotificationManager: React.FC<{
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const useNotifications: () => NotificationManagerType;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
type ThemeProviderProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
theme?: Partial<Record<string, string>>;
|
|
5
|
+
};
|
|
6
|
+
export declare function ThemeProvider({ children, theme }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|