@inzumer/ui-library 0.1.2 → 1.0.1
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/LICENSE +21 -0
- package/dist/chunk-2HCMNEIQ.js +25 -0
- package/dist/chunk-2HCMNEIQ.js.map +1 -0
- package/dist/chunk-5IHM2545.js +40 -0
- package/dist/chunk-5IHM2545.js.map +1 -0
- package/dist/chunk-6LLGTBM6.js +9 -0
- package/dist/chunk-6LLGTBM6.js.map +1 -0
- package/dist/chunk-7HQFLM4A.js +31 -0
- package/dist/chunk-7HQFLM4A.js.map +1 -0
- package/dist/chunk-BKPP4D3Q.js +62 -0
- package/dist/chunk-BKPP4D3Q.js.map +1 -0
- package/dist/chunk-BNEEI7S5.js +28 -0
- package/dist/chunk-BNEEI7S5.js.map +1 -0
- package/dist/chunk-D4I5OF3C.js +43 -0
- package/dist/chunk-D4I5OF3C.js.map +1 -0
- package/dist/chunk-HCLY7B4H.js +90 -0
- package/dist/chunk-HCLY7B4H.js.map +1 -0
- package/dist/chunk-JCJP427C.js +31 -0
- package/dist/chunk-JCJP427C.js.map +1 -0
- package/dist/chunk-K35XIA25.js +81 -0
- package/dist/chunk-K35XIA25.js.map +1 -0
- package/dist/chunk-KWSZ2S34.js +76 -0
- package/dist/chunk-KWSZ2S34.js.map +1 -0
- package/dist/chunk-LK2EJ4H6.js +78 -0
- package/dist/chunk-LK2EJ4H6.js.map +1 -0
- package/dist/chunk-N5CLCKR3.js +71 -0
- package/dist/chunk-N5CLCKR3.js.map +1 -0
- package/dist/chunk-P4CV2EPR.js +72 -0
- package/dist/chunk-P4CV2EPR.js.map +1 -0
- package/dist/chunk-P4Z7HH66.js +14 -0
- package/dist/chunk-P4Z7HH66.js.map +1 -0
- package/dist/chunk-PE6XEC7Y.js +27 -0
- package/dist/chunk-PE6XEC7Y.js.map +1 -0
- package/dist/chunk-PVDRNAYK.js +68 -0
- package/dist/chunk-PVDRNAYK.js.map +1 -0
- package/dist/chunk-UL33H4AD.js +24 -0
- package/dist/chunk-UL33H4AD.js.map +1 -0
- package/dist/chunk-ZABQF65Z.js +74 -0
- package/dist/chunk-ZABQF65Z.js.map +1 -0
- package/dist/components/atoms/Button/index.d.ts +23 -0
- package/dist/components/atoms/Button/index.js +4 -0
- package/dist/components/atoms/Button/index.js.map +1 -0
- package/dist/components/atoms/Icon/index.d.ts +19 -0
- package/dist/components/atoms/Icon/index.js +4 -0
- package/dist/components/atoms/Icon/index.js.map +1 -0
- package/dist/components/atoms/Image/index.d.ts +23 -0
- package/dist/components/atoms/Image/index.js +4 -0
- package/dist/components/atoms/Image/index.js.map +1 -0
- package/dist/components/atoms/Input/index.d.ts +25 -0
- package/dist/components/atoms/Input/index.js +5 -0
- package/dist/components/atoms/Input/index.js.map +1 -0
- package/dist/components/atoms/Link/index.d.ts +21 -0
- package/dist/components/atoms/Link/index.js +4 -0
- package/dist/components/atoms/Link/index.js.map +1 -0
- package/dist/components/atoms/RichText/index.d.ts +25 -0
- package/dist/components/atoms/RichText/index.js +4 -0
- package/dist/components/atoms/RichText/index.js.map +1 -0
- package/dist/components/atoms/Switch/index.d.ts +15 -0
- package/dist/components/atoms/Switch/index.js +5 -0
- package/dist/components/atoms/Switch/index.js.map +1 -0
- package/dist/components/molecules/BottomSheet/index.d.ts +19 -0
- package/dist/components/molecules/BottomSheet/index.js +8 -0
- package/dist/components/molecules/BottomSheet/index.js.map +1 -0
- package/dist/components/molecules/Breadcrumbs/index.d.ts +20 -0
- package/dist/components/molecules/Breadcrumbs/index.js +6 -0
- package/dist/components/molecules/Breadcrumbs/index.js.map +1 -0
- package/dist/components/molecules/Card/index.d.ts +25 -0
- package/dist/components/molecules/Card/index.js +5 -0
- package/dist/components/molecules/Card/index.js.map +1 -0
- package/dist/components/molecules/Language/index.d.ts +19 -0
- package/dist/components/molecules/Language/index.js +4 -0
- package/dist/components/molecules/Language/index.js.map +1 -0
- package/dist/components/molecules/Modal/index.d.ts +19 -0
- package/dist/components/molecules/Modal/index.js +8 -0
- package/dist/components/molecules/Modal/index.js.map +1 -0
- package/dist/components/molecules/Snackbar/index.d.ts +27 -0
- package/dist/components/molecules/Snackbar/index.js +5 -0
- package/dist/components/molecules/Snackbar/index.js.map +1 -0
- package/dist/components/molecules/Timeline/index.d.ts +16 -0
- package/dist/components/molecules/Timeline/index.js +5 -0
- package/dist/components/molecules/Timeline/index.js.map +1 -0
- package/dist/hooks/useDelayedUnmount/index.d.ts +10 -0
- package/dist/hooks/useDelayedUnmount/index.js +3 -0
- package/dist/hooks/useDelayedUnmount/index.js.map +1 -0
- package/dist/hooks/useDismissableLayer/index.d.ts +6 -0
- package/dist/hooks/useDismissableLayer/index.js +3 -0
- package/dist/hooks/useDismissableLayer/index.js.map +1 -0
- package/dist/hooks/useMediaQuery/index.d.ts +3 -0
- package/dist/hooks/useMediaQuery/index.js +3 -0
- package/dist/hooks/useMediaQuery/index.js.map +1 -0
- package/dist/hooks/useMergedRef/index.d.ts +6 -0
- package/dist/hooks/useMergedRef/index.js +3 -0
- package/dist/hooks/useMergedRef/index.js.map +1 -0
- package/dist/index.d.ts +24 -0
- package/dist/index.js +21 -0
- package/dist/index.js.map +1 -0
- package/dist/utils/cn/index.d.ts +5 -0
- package/dist/utils/cn/index.js +3 -0
- package/dist/utils/cn/index.js.map +1 -0
- package/package.json +117 -72
- package/README.md +0 -133
- package/dist/cjs/index.js +0 -2
- package/dist/cjs/index.js.map +0 -1
- package/dist/es/components/atoms/Button/Button.js +0 -54
- package/dist/es/components/atoms/Button/Button.js.map +0 -1
- package/dist/es/components/atoms/Button/Button.styles.js +0 -54
- package/dist/es/components/atoms/Button/Button.styles.js.map +0 -1
- package/dist/es/index.js +0 -17
- package/dist/es/index.js.map +0 -1
- package/dist/es/tokens/colors.js +0 -40
- package/dist/es/tokens/colors.js.map +0 -1
- package/dist/es/tokens/motion.js +0 -15
- package/dist/es/tokens/motion.js.map +0 -1
- package/dist/es/tokens/radius.js +0 -10
- package/dist/es/tokens/radius.js.map +0 -1
- package/dist/es/tokens/spacing.js +0 -12
- package/dist/es/tokens/spacing.js.map +0 -1
- package/dist/es/tokens/typography.js +0 -24
- package/dist/es/tokens/typography.js.map +0 -1
- package/dist/es/tokens/z-index.js +0 -12
- package/dist/es/tokens/z-index.js.map +0 -1
- package/dist/es/utils/cn.js +0 -9
- package/dist/es/utils/cn.js.map +0 -1
- package/dist/globals.css +0 -1
- package/dist/types/index.d.ts +0 -122
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { InputHTMLAttributes } from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const inputStyles: (props?: ({
|
|
7
|
+
state?: "default" | "error" | null | undefined;
|
|
8
|
+
inputSize?: "sm" | "md" | "lg" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
+
|
|
11
|
+
type InputProps = InputHTMLAttributes<HTMLInputElement> & VariantProps<typeof inputStyles> & {
|
|
12
|
+
label?: string;
|
|
13
|
+
hint?: string;
|
|
14
|
+
error?: string;
|
|
15
|
+
};
|
|
16
|
+
declare const Input: react.ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & VariantProps<(props?: ({
|
|
17
|
+
state?: "default" | "error" | null | undefined;
|
|
18
|
+
inputSize?: "sm" | "md" | "lg" | null | undefined;
|
|
19
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
20
|
+
label?: string;
|
|
21
|
+
hint?: string;
|
|
22
|
+
error?: string;
|
|
23
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
24
|
+
|
|
25
|
+
export { Input, type InputProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { AnchorHTMLAttributes, ElementType } from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const linkStyles: (props?: ({
|
|
7
|
+
underline?: "none" | "always" | "hover" | null | undefined;
|
|
8
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
9
|
+
|
|
10
|
+
type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement> & VariantProps<typeof linkStyles> & {
|
|
11
|
+
as?: ElementType;
|
|
12
|
+
external?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const Link: react.ForwardRefExoticComponent<AnchorHTMLAttributes<HTMLAnchorElement> & VariantProps<(props?: ({
|
|
15
|
+
underline?: "none" | "always" | "hover" | null | undefined;
|
|
16
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
17
|
+
as?: ElementType;
|
|
18
|
+
external?: boolean;
|
|
19
|
+
} & react.RefAttributes<HTMLAnchorElement>>;
|
|
20
|
+
|
|
21
|
+
export { Link, type LinkProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ElementType } from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const richTextStyles: (props?: ({
|
|
7
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "s1" | "s2" | "s3" | "s4" | "p1" | "p2" | "p3" | "p4" | null | undefined;
|
|
8
|
+
weight?: "bold" | "light" | "normal" | null | undefined;
|
|
9
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
+
|
|
11
|
+
type RichTextVariant = NonNullable<VariantProps<typeof richTextStyles>['variant']>;
|
|
12
|
+
declare const elementByVariant: Record<RichTextVariant, ElementType>;
|
|
13
|
+
type RichTextProps = HTMLAttributes<HTMLElement> & VariantProps<typeof richTextStyles> & {
|
|
14
|
+
as?: ElementType;
|
|
15
|
+
bold?: boolean;
|
|
16
|
+
};
|
|
17
|
+
declare const RichText: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & VariantProps<(props?: ({
|
|
18
|
+
variant?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "s1" | "s2" | "s3" | "s4" | "p1" | "p2" | "p3" | "p4" | null | undefined;
|
|
19
|
+
weight?: "bold" | "light" | "normal" | null | undefined;
|
|
20
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string> & {
|
|
21
|
+
as?: ElementType;
|
|
22
|
+
bold?: boolean;
|
|
23
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
24
|
+
|
|
25
|
+
export { RichText, type RichTextProps, type RichTextVariant, elementByVariant };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { InputHTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type SwitchProps = Omit<InputHTMLAttributes<HTMLInputElement>, 'type' | 'size' | 'onChange' | 'checked'> & {
|
|
5
|
+
checked: boolean;
|
|
6
|
+
onCheckedChange: (checked: boolean) => void;
|
|
7
|
+
label?: string;
|
|
8
|
+
};
|
|
9
|
+
declare const Switch: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "type" | "onChange" | "checked"> & {
|
|
10
|
+
checked: boolean;
|
|
11
|
+
onCheckedChange: (checked: boolean) => void;
|
|
12
|
+
label?: string;
|
|
13
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
14
|
+
|
|
15
|
+
export { Switch, type SwitchProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type BottomSheetProps = Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
5
|
+
open: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
closeOnBackdropClick?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const BottomSheet: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
12
|
+
open: boolean;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
title?: ReactNode;
|
|
15
|
+
footer?: ReactNode;
|
|
16
|
+
closeOnBackdropClick?: boolean;
|
|
17
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
|
|
19
|
+
export { BottomSheet, type BottomSheetProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { BottomSheet } from '../../../chunk-K35XIA25.js';
|
|
2
|
+
import '../../../chunk-JCJP427C.js';
|
|
3
|
+
import '../../../chunk-P4Z7HH66.js';
|
|
4
|
+
import '../../../chunk-BNEEI7S5.js';
|
|
5
|
+
import '../../../chunk-P4CV2EPR.js';
|
|
6
|
+
import '../../../chunk-6LLGTBM6.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { ReactNode, HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
interface BreadcrumbItem {
|
|
5
|
+
id?: string;
|
|
6
|
+
label: ReactNode;
|
|
7
|
+
href: string;
|
|
8
|
+
}
|
|
9
|
+
type BreadcrumbsProps = HTMLAttributes<HTMLElement> & {
|
|
10
|
+
items: BreadcrumbItem[];
|
|
11
|
+
current: ReactNode;
|
|
12
|
+
separator?: ReactNode;
|
|
13
|
+
};
|
|
14
|
+
declare const Breadcrumbs: react.ForwardRefExoticComponent<HTMLAttributes<HTMLElement> & {
|
|
15
|
+
items: BreadcrumbItem[];
|
|
16
|
+
current: ReactNode;
|
|
17
|
+
separator?: ReactNode;
|
|
18
|
+
} & react.RefAttributes<HTMLElement>>;
|
|
19
|
+
|
|
20
|
+
export { type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
type CardProps = HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
noPadding?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const Card: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
8
|
+
noPadding?: boolean;
|
|
9
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
type CardHeaderProps = HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
declare const CardHeader: react.ForwardRefExoticComponent<CardHeaderProps & react.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
type CardTitleProps = HTMLAttributes<HTMLHeadingElement> & {
|
|
13
|
+
as?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
14
|
+
};
|
|
15
|
+
declare const CardTitle: react.ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & {
|
|
16
|
+
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6";
|
|
17
|
+
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
18
|
+
type CardDescriptionProps = HTMLAttributes<HTMLParagraphElement>;
|
|
19
|
+
declare const CardDescription: react.ForwardRefExoticComponent<CardDescriptionProps & react.RefAttributes<HTMLParagraphElement>>;
|
|
20
|
+
type CardContentProps = HTMLAttributes<HTMLDivElement>;
|
|
21
|
+
declare const CardContent: react.ForwardRefExoticComponent<CardContentProps & react.RefAttributes<HTMLDivElement>>;
|
|
22
|
+
type CardFooterProps = HTMLAttributes<HTMLDivElement>;
|
|
23
|
+
declare const CardFooter: react.ForwardRefExoticComponent<CardFooterProps & react.RefAttributes<HTMLDivElement>>;
|
|
24
|
+
|
|
25
|
+
export { Card, CardContent, type CardContentProps, CardDescription, type CardDescriptionProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, type CardProps, CardTitle, type CardTitleProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes } from 'react';
|
|
3
|
+
|
|
4
|
+
interface LanguageOption {
|
|
5
|
+
value: string;
|
|
6
|
+
label: string;
|
|
7
|
+
}
|
|
8
|
+
type LanguageProps = Omit<HTMLAttributes<HTMLDivElement>, 'onChange'> & {
|
|
9
|
+
options: LanguageOption[];
|
|
10
|
+
value: string;
|
|
11
|
+
onChange: (value: string) => void;
|
|
12
|
+
};
|
|
13
|
+
declare const Language: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "onChange"> & {
|
|
14
|
+
options: LanguageOption[];
|
|
15
|
+
value: string;
|
|
16
|
+
onChange: (value: string) => void;
|
|
17
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
|
|
19
|
+
export { Language, type LanguageOption, type LanguageProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
type ModalProps = Omit<HTMLAttributes<HTMLDivElement>, 'title'> & {
|
|
5
|
+
open: boolean;
|
|
6
|
+
onClose: () => void;
|
|
7
|
+
title?: ReactNode;
|
|
8
|
+
footer?: ReactNode;
|
|
9
|
+
closeOnBackdropClick?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const Modal: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "title"> & {
|
|
12
|
+
open: boolean;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
title?: ReactNode;
|
|
15
|
+
footer?: ReactNode;
|
|
16
|
+
closeOnBackdropClick?: boolean;
|
|
17
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
18
|
+
|
|
19
|
+
export { Modal, type ModalProps };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { Modal } from '../../../chunk-LK2EJ4H6.js';
|
|
2
|
+
import '../../../chunk-JCJP427C.js';
|
|
3
|
+
import '../../../chunk-P4Z7HH66.js';
|
|
4
|
+
import '../../../chunk-BNEEI7S5.js';
|
|
5
|
+
import '../../../chunk-P4CV2EPR.js';
|
|
6
|
+
import '../../../chunk-6LLGTBM6.js';
|
|
7
|
+
//# sourceMappingURL=index.js.map
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
4
|
+
import { VariantProps } from 'class-variance-authority';
|
|
5
|
+
|
|
6
|
+
declare const snackbarStyles: (props?: ({
|
|
7
|
+
status?: "error" | "info" | "success" | "warning" | null | undefined;
|
|
8
|
+
visible?: boolean | null | undefined;
|
|
9
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
|
+
|
|
11
|
+
type SnackbarProps = Omit<HTMLAttributes<HTMLDivElement>, 'children'> & Omit<VariantProps<typeof snackbarStyles>, 'visible'> & {
|
|
12
|
+
open: boolean;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
message: ReactNode;
|
|
15
|
+
duration?: number;
|
|
16
|
+
};
|
|
17
|
+
declare const Snackbar: react.ForwardRefExoticComponent<Omit<HTMLAttributes<HTMLDivElement>, "children"> & Omit<VariantProps<(props?: ({
|
|
18
|
+
status?: "error" | "info" | "success" | "warning" | null | undefined;
|
|
19
|
+
visible?: boolean | null | undefined;
|
|
20
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string>, "visible"> & {
|
|
21
|
+
open: boolean;
|
|
22
|
+
onClose: () => void;
|
|
23
|
+
message: ReactNode;
|
|
24
|
+
duration?: number;
|
|
25
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
26
|
+
|
|
27
|
+
export { Snackbar, type SnackbarProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as react from 'react';
|
|
2
|
+
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
interface TimelineItem {
|
|
5
|
+
id?: string;
|
|
6
|
+
title: ReactNode;
|
|
7
|
+
description: ReactNode[];
|
|
8
|
+
}
|
|
9
|
+
type TimelineProps = HTMLAttributes<HTMLUListElement> & {
|
|
10
|
+
items: TimelineItem[];
|
|
11
|
+
};
|
|
12
|
+
declare const Timeline: react.ForwardRefExoticComponent<HTMLAttributes<HTMLUListElement> & {
|
|
13
|
+
items: TimelineItem[];
|
|
14
|
+
} & react.RefAttributes<HTMLUListElement>>;
|
|
15
|
+
|
|
16
|
+
export { Timeline, type TimelineItem, type TimelineProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps a node mounted for `exitDurationMs` after `open` flips to false, so a CSS exit
|
|
3
|
+
* transition has time to play before the node is actually removed from the DOM.
|
|
4
|
+
*/
|
|
5
|
+
declare const useDelayedUnmount: (open: boolean, exitDurationMs: number) => {
|
|
6
|
+
mounted: boolean;
|
|
7
|
+
visible: boolean;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export { useDelayedUnmount };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
|
|
3
|
+
/** Closes an overlay (dialog, sheet, ...) on Escape or on pointerdown outside `panelRef`. */
|
|
4
|
+
declare const useDismissableLayer: (open: boolean, onClose: () => void, panelRef: RefObject<HTMLElement | null>, closeOnBackdropClick?: boolean) => void;
|
|
5
|
+
|
|
6
|
+
export { useDismissableLayer };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export { Button, ButtonProps } from './components/atoms/Button/index.js';
|
|
2
|
+
export { Icon, IconProps } from './components/atoms/Icon/index.js';
|
|
3
|
+
export { Image, ImageProps } from './components/atoms/Image/index.js';
|
|
4
|
+
export { Input, InputProps } from './components/atoms/Input/index.js';
|
|
5
|
+
export { Link, LinkProps } from './components/atoms/Link/index.js';
|
|
6
|
+
export { RichText, RichTextProps, RichTextVariant, elementByVariant } from './components/atoms/RichText/index.js';
|
|
7
|
+
export { Switch, SwitchProps } from './components/atoms/Switch/index.js';
|
|
8
|
+
export { BottomSheet, BottomSheetProps } from './components/molecules/BottomSheet/index.js';
|
|
9
|
+
export { BreadcrumbItem, Breadcrumbs, BreadcrumbsProps } from './components/molecules/Breadcrumbs/index.js';
|
|
10
|
+
export { Card, CardContent, CardContentProps, CardDescription, CardDescriptionProps, CardFooter, CardFooterProps, CardHeader, CardHeaderProps, CardProps, CardTitle, CardTitleProps } from './components/molecules/Card/index.js';
|
|
11
|
+
export { Language, LanguageOption, LanguageProps } from './components/molecules/Language/index.js';
|
|
12
|
+
export { Modal, ModalProps } from './components/molecules/Modal/index.js';
|
|
13
|
+
export { Snackbar, SnackbarProps } from './components/molecules/Snackbar/index.js';
|
|
14
|
+
export { Timeline, TimelineItem, TimelineProps } from './components/molecules/Timeline/index.js';
|
|
15
|
+
export { useDelayedUnmount } from './hooks/useDelayedUnmount/index.js';
|
|
16
|
+
export { useDismissableLayer } from './hooks/useDismissableLayer/index.js';
|
|
17
|
+
export { useMediaQuery } from './hooks/useMediaQuery/index.js';
|
|
18
|
+
export { useMergedRef } from './hooks/useMergedRef/index.js';
|
|
19
|
+
export { cn } from './utils/cn/index.js';
|
|
20
|
+
import 'react';
|
|
21
|
+
import 'class-variance-authority/types';
|
|
22
|
+
import 'class-variance-authority';
|
|
23
|
+
import 'react/jsx-runtime';
|
|
24
|
+
import 'clsx';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export { useMediaQuery } from './chunk-2HCMNEIQ.js';
|
|
2
|
+
export { BottomSheet } from './chunk-K35XIA25.js';
|
|
3
|
+
export { Breadcrumbs } from './chunk-PE6XEC7Y.js';
|
|
4
|
+
export { Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle } from './chunk-N5CLCKR3.js';
|
|
5
|
+
export { Language } from './chunk-HCLY7B4H.js';
|
|
6
|
+
export { Modal } from './chunk-LK2EJ4H6.js';
|
|
7
|
+
export { useDismissableLayer } from './chunk-JCJP427C.js';
|
|
8
|
+
export { useMergedRef } from './chunk-P4Z7HH66.js';
|
|
9
|
+
export { Snackbar } from './chunk-BKPP4D3Q.js';
|
|
10
|
+
export { Timeline } from './chunk-UL33H4AD.js';
|
|
11
|
+
export { useDelayedUnmount } from './chunk-BNEEI7S5.js';
|
|
12
|
+
export { Button } from './chunk-KWSZ2S34.js';
|
|
13
|
+
export { Icon } from './chunk-7HQFLM4A.js';
|
|
14
|
+
export { Image } from './chunk-5IHM2545.js';
|
|
15
|
+
export { Input } from './chunk-PVDRNAYK.js';
|
|
16
|
+
export { Link } from './chunk-D4I5OF3C.js';
|
|
17
|
+
export { Switch } from './chunk-ZABQF65Z.js';
|
|
18
|
+
export { RichText, elementByVariant } from './chunk-P4CV2EPR.js';
|
|
19
|
+
export { cn } from './chunk-6LLGTBM6.js';
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|