@vespiario-thailand/design-system 0.0.2 → 0.0.3
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/Breadcrumb/BreadcrumbItem.d.ts +5 -0
- package/dist/components/Breadcrumb/BreadcrumbLink.d.ts +5 -0
- package/dist/components/Breadcrumb/index.d.ts +8 -0
- package/dist/components/Button/index.d.ts +2 -2
- package/dist/components/ButtonCross/index.d.ts +1 -2
- package/dist/components/Chip/index.d.ts +1 -2
- package/dist/components/Dialog/index.d.ts +1 -2
- package/dist/components/Icon/index.d.ts +2 -3
- package/dist/components/ImagePlaceholder/index.d.ts +1 -2
- package/dist/components/Logo/index.d.ts +1 -2
- package/dist/components/NumberSwitch/NumberSwitchButton.d.ts +4 -2
- package/dist/components/NumberSwitch/NumberSwitchInput.d.ts +2 -2
- package/dist/components/NumberSwitch/index.d.ts +1 -2
- package/dist/components/Popover/index.d.ts +1 -2
- package/dist/components/Select/SelectContent.d.ts +1 -2
- package/dist/components/Select/SelectItem.d.ts +1 -2
- package/dist/components/Select/SelectTrigger.d.ts +1 -2
- package/dist/components/Select/index.d.ts +12 -7
- package/dist/components/Slider/index.d.ts +2 -2
- package/dist/components/Stack/index.d.ts +1 -2
- package/dist/components/Switch/index.d.ts +1 -2
- package/dist/components/TextArea/index.d.ts +1 -2
- package/dist/components/TextField/index.d.ts +1 -2
- package/dist/components/TextFieldGroup/TextFieldGroupLeftElement.d.ts +1 -2
- package/dist/components/TextFieldGroup/TextFieldGroupRightElement.d.ts +1 -2
- package/dist/components/TextFieldGroup/index.d.ts +1 -2
- package/dist/components/TextFieldSlug/TextFieldSlugInput.d.ts +1 -2
- package/dist/components/TextFieldSlug/TextFieldSlugPrefix.d.ts +1 -2
- package/dist/components/TextFieldSlug/index.d.ts +2 -3
- package/dist/components/Tooltip/index.d.ts +2 -2
- package/dist/components/TouchPoint/TouchPointLabel.d.ts +1 -2
- package/dist/components/TouchPoint/index.d.ts +1 -2
- package/dist/components/Typo/index.d.ts +13 -7
- package/dist/constants/Typo/index.d.ts +1 -2
- package/dist/index.d.ts +22 -21
- package/dist/style.css +1 -1
- package/dist/types/Typo/index.d.ts +2 -3
- package/dist/vespa-design-system.cjs +45 -45
- package/dist/vespa-design-system.js.gz +0 -0
- package/dist/vespa-design-system.umd.cjs +41 -41
- package/package.json +6 -4
- package/dist/hooks/hooks/index.ts +0 -5
- package/dist/hooks/hooks/useClickOutside.ts +0 -34
- package/dist/hooks/hooks/useIsClient.ts +0 -13
- package/dist/hooks/hooks/useIsMounted.ts +0 -17
- package/dist/hooks/hooks/useIsomorphicLayoutEffect.ts +0 -5
- package/dist/hooks/hooks/useMergeRefs.ts +0 -15
- package/dist/vespa-design-system.js +0 -25211
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** libs */
|
|
2
|
+
import React, { LiHTMLAttributes } from 'react';
|
|
3
|
+
/** types */
|
|
4
|
+
export type BreadcrumbItemProps = LiHTMLAttributes<HTMLLIElement>;
|
|
5
|
+
export declare const BreadcrumbItem: React.ForwardRefExoticComponent<BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** libs */
|
|
2
|
+
import React, { AnchorHTMLAttributes } from 'react';
|
|
3
|
+
/** types */
|
|
4
|
+
export type BreadcrumbLinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
5
|
+
export declare const BreadcrumbLink: React.ForwardRefExoticComponent<BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** libs */
|
|
2
|
+
import React, { HTMLAttributes } from 'react';
|
|
3
|
+
/** types */
|
|
4
|
+
export type BreadcrumbProps = HTMLAttributes<HTMLDivElement>;
|
|
5
|
+
export declare const Breadcrumb: React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLDivElement>> & {
|
|
6
|
+
Item: React.ForwardRefExoticComponent<import("./BreadcrumbItem").BreadcrumbItemProps & React.RefAttributes<HTMLLIElement>>;
|
|
7
|
+
Link: React.ForwardRefExoticComponent<import("./BreadcrumbLink").BreadcrumbLinkProps & React.RefAttributes<HTMLAnchorElement>>;
|
|
8
|
+
};
|
|
@@ -17,5 +17,5 @@ type ConditionButtonIconType = {
|
|
|
17
17
|
iconRight?: never;
|
|
18
18
|
};
|
|
19
19
|
export type ButtonPropType = CommonButtonType & ConditionButtonIconType;
|
|
20
|
-
declare const Button: import("react").ForwardRefExoticComponent<ButtonPropType & import("react").RefAttributes<HTMLButtonElement>>;
|
|
21
|
-
export
|
|
20
|
+
export declare const Button: import("react").ForwardRefExoticComponent<ButtonPropType & import("react").RefAttributes<HTMLButtonElement>>;
|
|
21
|
+
export {};
|
|
@@ -5,7 +5,6 @@ import { ButtonCrossVariantsType } from '../../types/ButtonCross';
|
|
|
5
5
|
export type ButtonCrossProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
6
6
|
variant?: ButtonCrossVariantsType;
|
|
7
7
|
};
|
|
8
|
-
declare const ButtonCross: import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
8
|
+
export declare const ButtonCross: import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
9
9
|
variant?: "reset-input" | undefined;
|
|
10
10
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
|
-
export default ButtonCross;
|
|
@@ -5,7 +5,6 @@ import { ChipVariantsType } from '../../types/Chip';
|
|
|
5
5
|
export type ChipProps = HTMLAttributes<HTMLSpanElement> & {
|
|
6
6
|
variant?: ChipVariantsType;
|
|
7
7
|
};
|
|
8
|
-
declare const Chip: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & {
|
|
8
|
+
export declare const Chip: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & {
|
|
9
9
|
variant?: "light" | "dark" | undefined;
|
|
10
10
|
} & import("react").RefAttributes<HTMLSpanElement>>;
|
|
11
|
-
export default Chip;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as PrimitiveDialog from '@radix-ui/react-dialog';
|
|
2
|
-
declare const
|
|
2
|
+
export declare const Dialog: ((props: PrimitiveDialog.DialogProps) => JSX.Element) & {
|
|
3
3
|
Confirm: (props: PrimitiveDialog.DialogCloseProps) => JSX.Element;
|
|
4
4
|
Content: import("react").ForwardRefExoticComponent<PrimitiveDialog.DialogContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
5
|
Trigger: import("react").ForwardRefExoticComponent<PrimitiveDialog.DialogTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
6
|
};
|
|
7
|
-
export default CompoundDialog;
|
|
@@ -8,10 +8,9 @@ export type IconProps = HTMLAttributes<HTMLSpanElement> & {
|
|
|
8
8
|
color?: IconColorType;
|
|
9
9
|
iconClassName?: string;
|
|
10
10
|
};
|
|
11
|
-
declare const Icon: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & {
|
|
12
|
-
icon?: "pause" | "play" | "null-1" | "null-2" | "arrowhead-top" | "arrowhead-left" | "arrowhead-right" | "arrowhead-bottom" | "arrowhead-sm-top" | "arrowhead-sm-left" | "arrowhead-sm-
|
|
11
|
+
export declare const Icon: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLSpanElement> & {
|
|
12
|
+
icon?: "pause" | "play" | "stop" | "list" | "arrowhead-sm-right" | "null-1" | "null-2" | "arrowhead-top" | "arrowhead-left" | "arrowhead-right" | "arrowhead-bottom" | "arrowhead-sm-top" | "arrowhead-sm-left" | "arrowhead-sm-bottom" | "round-arrow-top" | "round-arrow-left" | "round-arrow-right" | "round-arrow-bottom" | "round-solid-arrow-top" | "round-solid-arrow-left" | "round-solid-arrow-right" | "round-solid-arrow-bottom" | "cross" | "plus" | "bar" | "double-bar" | "bow-tie" | "first" | "last" | "globe" | "tako" | "kebab" | "cheese" | "veggie" | "meatball" | "hamburger" | "vespa" | "check" | "align-left" | "align-center" | "align-justify-center" | "align-justify-full" | "align-justify-left" | "align-justify-right" | "align-object-bottom" | "align-object-center" | "align-object-left" | "align-object-middle" | "align-object-right" | "align-object-top" | "align-right" | "bag-1" | "bag-2" | "bag-3" | "bag-4" | "download-1" | "download-2" | "grid-1" | "grid-2" | "cloud-error" | "cloud-upload" | "cloud-download" | "cloud" | "star-1" | "star-2" | "star-3" | "star-4" | "star-5" | "upload-1" | "upload-2" | "clipboard" | undefined;
|
|
13
13
|
size?: "16" | "12" | "20" | "24" | "32" | "40" | "48" | "56" | "60" | "72" | "80" | undefined;
|
|
14
14
|
color?: "blue-500" | "green-500" | "light-green-500" | "yellow-500" | "dark-100" | "light-100" | "light-300" | "shade-dark-500" | "shade-light-500" | undefined;
|
|
15
15
|
iconClassName?: string | undefined;
|
|
16
16
|
} & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
|
-
export default Icon;
|
|
@@ -5,7 +5,6 @@ import { AspectRatioType } from '../../types/ImagePlaceholder';
|
|
|
5
5
|
export type ImagePlaceholderProps = HTMLAttributes<HTMLDivElement> & {
|
|
6
6
|
aspectRatio?: AspectRatioType;
|
|
7
7
|
};
|
|
8
|
-
declare const ImagePlaceholder: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
8
|
+
export declare const ImagePlaceholder: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
9
9
|
aspectRatio?: "1/1" | "3/4" | "4/3" | "16/9" | undefined;
|
|
10
10
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
|
-
export default ImagePlaceholder;
|
|
@@ -6,8 +6,7 @@ export type LogoProps = HTMLAttributes<HTMLImageElement> & {
|
|
|
6
6
|
logoColors?: LogoColorsType;
|
|
7
7
|
alt?: string;
|
|
8
8
|
};
|
|
9
|
-
declare const Logo: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLImageElement> & {
|
|
9
|
+
export declare const Logo: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLImageElement> & {
|
|
10
10
|
logoColors?: "light" | "dark" | "default" | undefined;
|
|
11
11
|
alt?: string | undefined;
|
|
12
12
|
} & import("react").RefAttributes<HTMLImageElement>>;
|
|
13
|
-
export default Logo;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/** libs */
|
|
2
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
|
-
|
|
3
|
+
export type NumberSwitchButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
|
+
variant?: 'decrease' | 'increase';
|
|
5
|
+
};
|
|
6
|
+
export declare const NumberSwitchButton: import("react").ForwardRefExoticComponent<ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
4
7
|
variant?: "decrease" | "increase" | undefined;
|
|
5
8
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
export default NumberSwitchButton;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** libs */
|
|
2
2
|
import { InputHTMLAttributes } from 'react';
|
|
3
3
|
type NumberSwitchInputProps = InputHTMLAttributes<HTMLInputElement>;
|
|
4
|
-
declare const NumberSwitchInput: import("react").ForwardRefExoticComponent<NumberSwitchInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
-
export
|
|
4
|
+
export declare const NumberSwitchInput: import("react").ForwardRefExoticComponent<NumberSwitchInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
5
|
+
export {};
|
|
@@ -4,7 +4,7 @@ export type NumberSwitchCtxType = {
|
|
|
4
4
|
isError?: boolean;
|
|
5
5
|
};
|
|
6
6
|
export declare const NumberSwitchCtx: import("react").Context<NumberSwitchCtxType>;
|
|
7
|
-
declare const
|
|
7
|
+
export declare const NumberSwitch: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
8
8
|
isError?: boolean | undefined;
|
|
9
9
|
} & import("react").RefAttributes<HTMLInputElement>> & {
|
|
10
10
|
Button: import("react").ForwardRefExoticComponent<import("react").ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
@@ -12,4 +12,3 @@ declare const CompoundNumberSwitch: import("react").ForwardRefExoticComponent<HT
|
|
|
12
12
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
13
|
Input: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & import("react").RefAttributes<HTMLInputElement>>;
|
|
14
14
|
};
|
|
15
|
-
export default CompoundNumberSwitch;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as PrimitivePopover from '@radix-ui/react-popover';
|
|
2
|
-
declare const
|
|
2
|
+
export declare const Popover: {
|
|
3
3
|
(props: PrimitivePopover.PopoverProps): JSX.Element;
|
|
4
4
|
displayName: string;
|
|
5
5
|
} & {
|
|
@@ -9,4 +9,3 @@ declare const CompoundPopover: {
|
|
|
9
9
|
Trigger: import("react").ForwardRefExoticComponent<PrimitivePopover.PopoverTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
Close: import("react").ForwardRefExoticComponent<PrimitivePopover.PopoverCloseProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
};
|
|
12
|
-
export default CompoundPopover;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
-
declare const SelectContent: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
-
export default SelectContent;
|
|
2
|
+
export declare const SelectContent: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
-
declare const SelectItem: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
3
|
-
export default SelectItem;
|
|
2
|
+
export declare const SelectItem: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
-
declare const SelectTrigger: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
3
|
-
export default SelectTrigger;
|
|
2
|
+
export declare const SelectTrigger: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
+
/** libs */
|
|
2
|
+
import { Dispatch, SetStateAction } from 'react';
|
|
1
3
|
import * as SelectPrimitive from '@radix-ui/react-select';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
4
|
+
export type SelectCtxType = {
|
|
5
|
+
contentWidth?: number | null;
|
|
6
|
+
setContentWidth?: Dispatch<SetStateAction<number | null>>;
|
|
5
7
|
};
|
|
6
|
-
declare const
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
export declare const SelectCtx: import("react").Context<SelectCtxType>;
|
|
9
|
+
export declare const Select: {
|
|
10
|
+
(props: SelectPrimitive.SelectProps): JSX.Element;
|
|
11
|
+
displayName: string;
|
|
12
|
+
} & {
|
|
13
|
+
Trigger: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
14
|
+
Content: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectContentProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
15
|
Item: import("react").ForwardRefExoticComponent<SelectPrimitive.SelectItemProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
16
|
};
|
|
11
|
-
export default CompoundSelect;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import * as SliderPrimitive from '@radix-ui/react-slider';
|
|
2
|
+
export declare const Slider: import("react").ForwardRefExoticComponent<SliderPrimitive.SliderProps & import("react").RefAttributes<HTMLSpanElement>>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
|
-
declare const Stack: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
2
|
+
export declare const Stack: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
3
3
|
direction?: "vertical" | "horizon" | undefined;
|
|
4
4
|
gap?: 0 | 4 | 8 | 16 | 12 | 20 | 24 | 32 | 40 | undefined;
|
|
5
5
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
6
|
-
export default Stack;
|
|
@@ -3,7 +3,6 @@ import * as SwitchPrimitive from '@radix-ui/react-switch';
|
|
|
3
3
|
export type SwitchProps = SwitchPrimitive.SwitchProps & {
|
|
4
4
|
isError?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const Switch: import("react").ForwardRefExoticComponent<SwitchPrimitive.SwitchProps & {
|
|
6
|
+
export declare const Switch: import("react").ForwardRefExoticComponent<SwitchPrimitive.SwitchProps & {
|
|
7
7
|
isError?: boolean | undefined;
|
|
8
8
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
9
|
-
export default Switch;
|
|
@@ -4,7 +4,6 @@ import { TextareaHTMLAttributes } from 'react';
|
|
|
4
4
|
export type TextAreaProps = TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
5
5
|
isError?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const TextArea: import("react").ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
7
|
+
export declare const TextArea: import("react").ForwardRefExoticComponent<TextareaHTMLAttributes<HTMLTextAreaElement> & {
|
|
8
8
|
isError?: boolean | undefined;
|
|
9
9
|
} & import("react").RefAttributes<HTMLTextAreaElement>>;
|
|
10
|
-
export default TextArea;
|
|
@@ -4,7 +4,6 @@ import { InputHTMLAttributes } from 'react';
|
|
|
4
4
|
export type TextFieldProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
5
5
|
isError?: boolean;
|
|
6
6
|
};
|
|
7
|
-
declare const TextField: import("react").ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
|
|
7
|
+
export declare const TextField: import("react").ForwardRefExoticComponent<InputHTMLAttributes<HTMLInputElement> & {
|
|
8
8
|
isError?: boolean | undefined;
|
|
9
9
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
10
|
-
export default TextField;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** libs */
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
3
|
export type TextFieldGroupLeftElementProps = HTMLAttributes<HTMLDivElement>;
|
|
4
|
-
declare const TextFieldGroupLeftElement: import("react").ForwardRefExoticComponent<TextFieldGroupLeftElementProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export default TextFieldGroupLeftElement;
|
|
4
|
+
export declare const TextFieldGroupLeftElement: import("react").ForwardRefExoticComponent<TextFieldGroupLeftElementProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/** libs */
|
|
2
2
|
import { HTMLAttributes } from 'react';
|
|
3
3
|
export type TextFieldGroupRightElementProps = HTMLAttributes<HTMLDivElement>;
|
|
4
|
-
declare const TextFieldGroupRightElement: import("react").ForwardRefExoticComponent<TextFieldGroupRightElementProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
5
|
-
export default TextFieldGroupRightElement;
|
|
4
|
+
export declare const TextFieldGroupRightElement: import("react").ForwardRefExoticComponent<TextFieldGroupRightElementProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -5,8 +5,7 @@ import { TextFieldGroupLeftElementProps } from './TextFieldGroupLeftElement';
|
|
|
5
5
|
import { TextFieldGroupRightElementProps } from './TextFieldGroupRightElement';
|
|
6
6
|
export type { TextFieldGroupLeftElementProps, TextFieldGroupRightElementProps };
|
|
7
7
|
export type TextFieldGroupProps = HTMLAttributes<HTMLDivElement>;
|
|
8
|
-
declare const
|
|
8
|
+
export declare const TextFieldGroup: import("react").ForwardRefExoticComponent<TextFieldGroupProps & import("react").RefAttributes<HTMLDivElement>> & {
|
|
9
9
|
LeftElement: import("react").ForwardRefExoticComponent<TextFieldGroupLeftElementProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
10
10
|
RightElement: import("react").ForwardRefExoticComponent<TextFieldGroupRightElementProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
11
|
};
|
|
12
|
-
export default CompoundTextFieldGroup;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/** components */
|
|
2
2
|
import { TextFieldProps } from '../TextField';
|
|
3
3
|
export type TextFieldSlugInputProps = TextFieldProps;
|
|
4
|
-
declare const TextFieldSlugInput: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
4
|
+
export declare const TextFieldSlugInput: import("react").ForwardRefExoticComponent<import("react").InputHTMLAttributes<HTMLInputElement> & {
|
|
5
5
|
isError?: boolean | undefined;
|
|
6
6
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
|
-
export default TextFieldSlugInput;
|
|
@@ -3,7 +3,6 @@ import { TextFieldGroupLeftElementProps } from '../TextFieldGroup';
|
|
|
3
3
|
export type TextFieldSlugPrefixProps = TextFieldGroupLeftElementProps & {
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
};
|
|
6
|
-
declare const TextFieldSlugPrefix: import("react").ForwardRefExoticComponent<TextFieldGroupLeftElementProps & {
|
|
6
|
+
export declare const TextFieldSlugPrefix: import("react").ForwardRefExoticComponent<TextFieldGroupLeftElementProps & {
|
|
7
7
|
disabled?: boolean | undefined;
|
|
8
8
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export default TextFieldSlugPrefix;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** components */
|
|
2
|
-
import { TextFieldGroupProps } from '../TextFieldGroup';
|
|
2
|
+
import { type TextFieldGroupProps } from '../TextFieldGroup';
|
|
3
3
|
export type TextFieldSlugCtxType = {
|
|
4
4
|
isError?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
@@ -9,7 +9,7 @@ export type TextFieldSlugProps = TextFieldGroupProps & {
|
|
|
9
9
|
isError?: boolean;
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
};
|
|
12
|
-
declare const
|
|
12
|
+
export declare const TextFieldSlug: import("react").ForwardRefExoticComponent<TextFieldGroupProps & {
|
|
13
13
|
isError?: boolean | undefined;
|
|
14
14
|
disabled?: boolean | undefined;
|
|
15
15
|
} & import("react").RefAttributes<HTMLDivElement>> & {
|
|
@@ -20,4 +20,3 @@ declare const CompoundTextFieldSlug: import("react").ForwardRefExoticComponent<T
|
|
|
20
20
|
isError?: boolean | undefined;
|
|
21
21
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
22
22
|
};
|
|
23
|
-
export default CompoundTextFieldSlug;
|
|
@@ -4,11 +4,11 @@ import { TooltipVariantsType } from '../../types/Tooltip';
|
|
|
4
4
|
export type TooltipProps = PrimitiveTooltip.TooltipContentProps & {
|
|
5
5
|
variant?: TooltipVariantsType;
|
|
6
6
|
};
|
|
7
|
-
declare const
|
|
7
|
+
export declare const TooltipProvider: import("react").FC<PrimitiveTooltip.TooltipProviderProps>;
|
|
8
|
+
export declare const Tooltip: ((props: PrimitiveTooltip.TooltipProps) => JSX.Element) & {
|
|
8
9
|
Content: import("react").ForwardRefExoticComponent<PrimitiveTooltip.TooltipContentProps & {
|
|
9
10
|
variant?: "light" | "dark" | undefined;
|
|
10
11
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
11
12
|
Portal: import("react").FC<PrimitiveTooltip.TooltipPortalProps>;
|
|
12
13
|
Trigger: import("react").ForwardRefExoticComponent<PrimitiveTooltip.TooltipTriggerProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
13
14
|
};
|
|
14
|
-
export default CompoundTooltip;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
/** libs */
|
|
2
2
|
import { HTMLAttributes, ReactNode } from 'react';
|
|
3
|
-
declare const TouchPointLabel: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
export declare const TouchPointLabel: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
|
|
4
4
|
isBorder?: boolean | undefined;
|
|
5
5
|
children?: ReactNode;
|
|
6
6
|
size?: "small" | "medium" | "large" | undefined;
|
|
7
7
|
shadow?: "none" | "100" | "200" | "300" | "400" | undefined;
|
|
8
8
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
9
|
-
export default TouchPointLabel;
|
|
@@ -2,5 +2,4 @@
|
|
|
2
2
|
import { ButtonHTMLAttributes } from 'react';
|
|
3
3
|
/** types */
|
|
4
4
|
export type TouchPointType = ButtonHTMLAttributes<HTMLButtonElement>;
|
|
5
|
-
declare const TouchPoint: import("react").ForwardRefExoticComponent<TouchPointType & import("react").RefAttributes<HTMLButtonElement>>;
|
|
6
|
-
export default TouchPoint;
|
|
5
|
+
export declare const TouchPoint: import("react").ForwardRefExoticComponent<TouchPointType & import("react").RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
/** libs */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import React, { HTMLAttributes, ElementType } from 'react';
|
|
3
|
+
/** types */
|
|
4
|
+
import { TextSizeType, TextStyleType, TextWeightType } from '../../types/Typo';
|
|
5
|
+
export type TypoProps = HTMLAttributes<HTMLElement> & {
|
|
6
|
+
as?: ElementType;
|
|
7
|
+
size?: TextSizeType;
|
|
8
|
+
textStyle?: TextStyleType;
|
|
9
|
+
weight?: TextWeightType;
|
|
10
|
+
};
|
|
11
|
+
export declare const Typo: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLElement> & {
|
|
12
|
+
as?: React.ElementType<any> | undefined;
|
|
6
13
|
size?: "body" | "caption" | "title-large" | "title-medium" | "title-small" | "title-small-alt" | "body-large" | "body-small" | undefined;
|
|
7
|
-
textStyle?: "
|
|
14
|
+
textStyle?: "normal" | "italic" | undefined;
|
|
8
15
|
weight?: "bold" | "normal" | undefined;
|
|
9
|
-
} & React.RefAttributes<
|
|
10
|
-
export default Typo;
|
|
16
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
declare const htmlTags: readonly ["h1", "h2", "h3", "h4", "h5", "h6", "p", "span"];
|
|
2
1
|
declare const textSizes: readonly ["title-large", "title-medium", "title-small", "title-small-alt", "body-large", "body", "body-small", "caption"];
|
|
3
2
|
declare const textStyles: readonly ["italic", "normal"];
|
|
4
3
|
declare const textWeights: readonly ["bold", "normal"];
|
|
5
|
-
export {
|
|
4
|
+
export { textSizes, textStyles, textWeights };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
/** components */
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
7
|
-
export {
|
|
8
|
-
export {
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
2
|
+
export { Button } from './components/Button';
|
|
3
|
+
export { ButtonCross } from './components/ButtonCross';
|
|
4
|
+
export { Chip } from './components/Chip';
|
|
5
|
+
export { Dialog } from './components/Dialog';
|
|
6
|
+
export { Icon } from './components/Icon';
|
|
7
|
+
export { ImagePlaceholder } from './components/ImagePlaceholder';
|
|
8
|
+
export { NumberSwitch } from './components/NumberSwitch';
|
|
9
|
+
export { Popover } from './components/Popover';
|
|
10
|
+
export { Select } from './components/Select';
|
|
11
|
+
export { Stack } from './components/Stack';
|
|
12
|
+
export { Switch } from './components/Switch';
|
|
13
|
+
export { TextArea } from './components/TextArea';
|
|
14
|
+
export { TextField } from './components/TextField';
|
|
15
|
+
export { TextFieldGroup } from './components/TextFieldGroup';
|
|
16
|
+
export { TextFieldSlug } from './components/TextFieldSlug';
|
|
17
|
+
export { Tooltip, TooltipProvider } from './components/Tooltip';
|
|
18
|
+
export { TouchPoint } from './components/TouchPoint';
|
|
19
|
+
export { Typo } from './components/Typo';
|
|
20
|
+
export { Logo } from './components/Logo';
|
|
21
|
+
export { Slider } from './components/Slider';
|
|
22
|
+
export { Breadcrumb } from './components/Breadcrumb';
|
|
22
23
|
/** types */
|
|
23
24
|
export type { ButtonSizeType, ButtonVariantType } from './types/Button';
|
|
24
25
|
export type { ButtonCrossVariantsType } from './types/ButtonCross';
|
|
@@ -28,5 +29,5 @@ export type { StackDirectionsType, StackGapsType } from './types/Stack';
|
|
|
28
29
|
export type { TouchPointSizeType, TouchPointShadowType } from './types/TouchPoint';
|
|
29
30
|
export type { AspectRatioType } from './types/ImagePlaceholder';
|
|
30
31
|
export type { TooltipVariantsType } from './types/Tooltip';
|
|
31
|
-
export type {
|
|
32
|
+
export type { TextSizeType, TextStyleType, TextWeightType } from './types/Typo';
|
|
32
33
|
export type { LogoColorsType } from './types/Logo';
|