globalfy-design-system 1.49.1 → 1.51.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/atoms/Alert/Alert.d.ts +0 -1
- package/dist/components/atoms/Button/Button.d.ts +11 -155
- package/dist/components/atoms/Button/SpinnerIcon.d.ts +2 -66
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.stories.d.ts +3 -6
- package/dist/components/atoms/Chip/Chip.d.ts +1 -1
- package/dist/components/atoms/DatePicker/DatePicker.stories.d.ts +0 -1
- package/dist/components/atoms/DropdownList/CssVariants.d.ts +16 -204
- package/dist/components/atoms/DropdownList/DropdownComponents.d.ts +1 -1
- package/dist/components/atoms/DropdownList/DropdownProps.d.ts +1 -1
- package/dist/components/atoms/Flag/Flag.d.ts +1 -1
- package/dist/components/atoms/GlobCheckbox/GlobCheckbox.d.ts +1 -1
- package/dist/components/atoms/GlobCheckbox/GlobCheckbox.stories.d.ts +4 -4
- package/dist/components/atoms/Icon/Icon.d.ts +1 -1
- package/dist/components/atoms/Icon/glob-icons/glob-icons-list.d.ts +0 -1
- package/dist/components/atoms/Icon/unicons/UniconsIcons.d.ts +0 -1
- package/dist/components/atoms/Icon/unicons/uniconsIconsList.d.ts +0 -1
- package/dist/components/atoms/Input/Input.d.ts +14 -12
- package/dist/components/atoms/Input/Input.stories.d.ts +15 -14
- package/dist/components/atoms/Input/InputPassword.d.ts +1 -1
- package/dist/components/atoms/InputMask/InputMask.d.ts +13 -14
- package/dist/components/atoms/InputMask/InputMask.stories.d.ts +14 -14
- package/dist/components/atoms/PhoneNumberInput/PhoneNumberInput.d.ts +1 -1
- package/dist/components/atoms/PhoneNumberInput/PhoneNumberInput.stories.d.ts +1 -1
- package/dist/components/atoms/Popover/Popover.d.ts +0 -1
- package/dist/components/atoms/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/atoms/SegmentedControl/SegmentedControl.d.ts +1 -1
- package/dist/components/atoms/Tabs/Tabs.d.ts +1 -1
- package/dist/components/atoms/Tag/Tag.d.ts +1 -1
- package/dist/components/atoms/TextArea/TextArea.d.ts +9 -9
- package/dist/components/atoms/TextArea/TextArea.stories.d.ts +8 -8
- package/dist/components/atoms/TextInput/TextInput.d.ts +2 -2
- package/dist/components/atoms/TextInput/TextInput.stories.d.ts +1 -1
- package/dist/components/atoms/Tooltip/Tooltip.d.ts +0 -1
- package/dist/components/atoms/Typography/Typography.d.ts +1 -1
- package/dist/components/molecules/empty-state/empty-state.d.ts +0 -1
- package/dist/components/molecules/error-state/error-state.d.ts +0 -1
- package/dist/components/molecules/popover-menu/variants.d.ts +4 -68
- package/dist/globalfy-design-system.js +1562 -63761
- package/dist/globalfy-design-system.umd.cjs +142 -83
- package/dist/index-d0fbec66.js +7 -0
- package/dist/main-f599c3e3.js +75966 -0
- package/package.json +50 -50
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
2
|
|
|
3
3
|
export type InputProps = {
|
|
4
4
|
label?: string;
|
|
@@ -13,19 +13,21 @@ export type InputProps = {
|
|
|
13
13
|
isDatePicker?: boolean;
|
|
14
14
|
iconAction?: () => void;
|
|
15
15
|
iconSize?: 'small' | 'large';
|
|
16
|
+
spellCheck?: 'false' | 'true';
|
|
16
17
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'defaultValue' | 'color' | 'onFocus' | 'onBlur'>;
|
|
17
18
|
export type InputPasswordProps = Omit<InputProps, 'icon' | 'type' | 'isDatePicker'>;
|
|
18
19
|
export declare const Input: React.ForwardRefExoticComponent<{
|
|
19
|
-
label?: string
|
|
20
|
-
placeholder?: string
|
|
21
|
-
message?: string
|
|
20
|
+
label?: string;
|
|
21
|
+
placeholder?: string;
|
|
22
|
+
message?: string;
|
|
22
23
|
icon?: React.ReactNode;
|
|
23
|
-
isInvalid?: boolean
|
|
24
|
-
isRequired?: boolean
|
|
25
|
-
isValid?: boolean
|
|
26
|
-
disabled?: boolean
|
|
27
|
-
value?: string
|
|
28
|
-
isDatePicker?: boolean
|
|
29
|
-
iconAction?: (
|
|
30
|
-
iconSize?: "small" | "large"
|
|
24
|
+
isInvalid?: boolean;
|
|
25
|
+
isRequired?: boolean;
|
|
26
|
+
isValid?: boolean;
|
|
27
|
+
disabled?: boolean;
|
|
28
|
+
value?: string;
|
|
29
|
+
isDatePicker?: boolean;
|
|
30
|
+
iconAction?: () => void;
|
|
31
|
+
iconSize?: "small" | "large";
|
|
32
|
+
spellCheck?: "false" | "true";
|
|
31
33
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -2,20 +2,21 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import('react').ForwardRefExoticComponent<{
|
|
6
|
-
label?: string
|
|
7
|
-
placeholder?: string
|
|
8
|
-
message?: string
|
|
9
|
-
icon?:
|
|
10
|
-
isInvalid?: boolean
|
|
11
|
-
isRequired?: boolean
|
|
12
|
-
isValid?: boolean
|
|
13
|
-
disabled?: boolean
|
|
14
|
-
value?: string
|
|
15
|
-
isDatePicker?: boolean
|
|
16
|
-
iconAction?: (
|
|
17
|
-
iconSize?: "small" | "large"
|
|
18
|
-
|
|
5
|
+
component: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<{
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
isInvalid?: boolean;
|
|
11
|
+
isRequired?: boolean;
|
|
12
|
+
isValid?: boolean;
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
value?: string;
|
|
15
|
+
isDatePicker?: boolean;
|
|
16
|
+
iconAction?: () => void;
|
|
17
|
+
iconSize?: "small" | "large";
|
|
18
|
+
spellCheck?: "false" | "true";
|
|
19
|
+
} & Omit<import('../../../../node_modules/@types/react').InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('../../../../node_modules/@types/react').RefAttributes<HTMLInputElement>>;
|
|
19
20
|
tags: string[];
|
|
20
21
|
};
|
|
21
22
|
export default meta;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { InputPasswordProps } from '.';
|
|
2
2
|
|
|
3
|
-
export declare const InputPassword: import('react').ForwardRefExoticComponent<InputPasswordProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
3
|
+
export declare const InputPassword: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<InputPasswordProps & import('../../../../node_modules/@types/react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export type InputMaskProps = {
|
|
3
2
|
label?: string;
|
|
4
3
|
placeholder?: string;
|
|
@@ -13,17 +12,17 @@ export type InputMaskProps = {
|
|
|
13
12
|
mask?: string;
|
|
14
13
|
removeTopMargin?: boolean;
|
|
15
14
|
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'size' | 'defaultValue' | 'color' | 'onFocus' | 'onBlur'>;
|
|
16
|
-
export declare const InputMask: import('react').ForwardRefExoticComponent<{
|
|
17
|
-
label?: string
|
|
18
|
-
placeholder?: string
|
|
19
|
-
message?: string
|
|
15
|
+
export declare const InputMask: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<{
|
|
16
|
+
label?: string;
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
message?: string;
|
|
20
19
|
icon?: React.ReactNode;
|
|
21
|
-
isInvalid?: boolean
|
|
22
|
-
isValid?: boolean
|
|
23
|
-
disabled?: boolean
|
|
24
|
-
value?: string
|
|
25
|
-
isDatePicker?: boolean
|
|
26
|
-
iconAction?: (
|
|
27
|
-
mask?: string
|
|
28
|
-
removeTopMargin?: boolean
|
|
29
|
-
} & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
20
|
+
isInvalid?: boolean;
|
|
21
|
+
isValid?: boolean;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
value?: string;
|
|
24
|
+
isDatePicker?: boolean;
|
|
25
|
+
iconAction?: () => void;
|
|
26
|
+
mask?: string;
|
|
27
|
+
removeTopMargin?: boolean;
|
|
28
|
+
} & Omit<import('../../../../node_modules/@types/react').InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('../../../../node_modules/@types/react').RefAttributes<HTMLInputElement>>;
|
|
@@ -2,20 +2,20 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import('react').ForwardRefExoticComponent<{
|
|
6
|
-
label?: string
|
|
7
|
-
placeholder?: string
|
|
8
|
-
message?: string
|
|
9
|
-
icon?:
|
|
10
|
-
isInvalid?: boolean
|
|
11
|
-
isValid?: boolean
|
|
12
|
-
disabled?: boolean
|
|
13
|
-
value?: string
|
|
14
|
-
isDatePicker?: boolean
|
|
15
|
-
iconAction?: (
|
|
16
|
-
mask?: string
|
|
17
|
-
removeTopMargin?: boolean
|
|
18
|
-
} & Omit<import('react').InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('react').RefAttributes<HTMLInputElement>>;
|
|
5
|
+
component: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<{
|
|
6
|
+
label?: string;
|
|
7
|
+
placeholder?: string;
|
|
8
|
+
message?: string;
|
|
9
|
+
icon?: React.ReactNode;
|
|
10
|
+
isInvalid?: boolean;
|
|
11
|
+
isValid?: boolean;
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
value?: string;
|
|
14
|
+
isDatePicker?: boolean;
|
|
15
|
+
iconAction?: () => void;
|
|
16
|
+
mask?: string;
|
|
17
|
+
removeTopMargin?: boolean;
|
|
18
|
+
} & Omit<import('../../../../node_modules/@types/react').InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('../../../../node_modules/@types/react').RefAttributes<HTMLInputElement>>;
|
|
19
19
|
tags: string[];
|
|
20
20
|
};
|
|
21
21
|
export default meta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React } from '../../../../node_modules/@types/react';
|
|
2
2
|
import { ParsedCountry } from 'react-international-phone';
|
|
3
3
|
|
|
4
4
|
export type PhoneNumberInputProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, 'onChange' | 'value'> & {
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import('react').FC<import('./PhoneNumberInput').PhoneNumberInputProps>;
|
|
5
|
+
component: import('../../../../node_modules/@types/react').FC<import('./PhoneNumberInput').PhoneNumberInputProps>;
|
|
6
6
|
tags: string[];
|
|
7
7
|
};
|
|
8
8
|
export default meta;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
1
|
+
import { ReactNode } from '../../../../node_modules/@types/react';
|
|
2
2
|
|
|
3
3
|
export type TagColor = 'red' | 'orange' | 'lightGreen' | 'violet' | 'blue' | 'darkGreen' | 'gray' | 'yellow';
|
|
4
4
|
export type TagVariant = 'light' | 'dark' | 'ghost';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextareaHTMLAttributes } from 'react';
|
|
1
|
+
import { TextareaHTMLAttributes } from '../../../../node_modules/@types/react';
|
|
2
2
|
|
|
3
3
|
export type TextAreaProps = {
|
|
4
4
|
label?: string | React.ReactElement;
|
|
@@ -8,11 +8,11 @@ export type TextAreaProps = {
|
|
|
8
8
|
allowResize?: boolean;
|
|
9
9
|
value?: string;
|
|
10
10
|
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'defaultValue' | 'color' | 'onFocus' | 'onBlur'>;
|
|
11
|
-
export declare const TextArea: import('react').ForwardRefExoticComponent<{
|
|
12
|
-
label?: string |
|
|
13
|
-
message?: string
|
|
14
|
-
isInvalid?: boolean
|
|
15
|
-
isValid?: boolean
|
|
16
|
-
allowResize?: boolean
|
|
17
|
-
value?: string
|
|
18
|
-
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
11
|
+
export declare const TextArea: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<{
|
|
12
|
+
label?: string | React.ReactElement;
|
|
13
|
+
message?: string;
|
|
14
|
+
isInvalid?: boolean;
|
|
15
|
+
isValid?: boolean;
|
|
16
|
+
allowResize?: boolean;
|
|
17
|
+
value?: string;
|
|
18
|
+
} & Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('../../../../node_modules/@types/react').RefAttributes<HTMLTextAreaElement>>;
|
|
@@ -2,14 +2,14 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import('react').ForwardRefExoticComponent<{
|
|
6
|
-
label?: string |
|
|
7
|
-
message?: string
|
|
8
|
-
isInvalid?: boolean
|
|
9
|
-
isValid?: boolean
|
|
10
|
-
allowResize?: boolean
|
|
11
|
-
value?: string
|
|
12
|
-
} & Omit<import('react').TextareaHTMLAttributes<HTMLTextAreaElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('react').RefAttributes<HTMLTextAreaElement>>;
|
|
5
|
+
component: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<{
|
|
6
|
+
label?: string | React.ReactElement;
|
|
7
|
+
message?: string;
|
|
8
|
+
isInvalid?: boolean;
|
|
9
|
+
isValid?: boolean;
|
|
10
|
+
allowResize?: boolean;
|
|
11
|
+
value?: string;
|
|
12
|
+
} & Omit<import('../../../../node_modules/@types/react').TextareaHTMLAttributes<HTMLTextAreaElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import('../../../../node_modules/@types/react').RefAttributes<HTMLTextAreaElement>>;
|
|
13
13
|
tags: string[];
|
|
14
14
|
parameters: {
|
|
15
15
|
layout: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
1
|
+
import { InputHTMLAttributes } from '../../../../node_modules/@types/react';
|
|
2
2
|
|
|
3
3
|
interface Props {
|
|
4
4
|
label?: string;
|
|
@@ -12,5 +12,5 @@ interface Props {
|
|
|
12
12
|
}
|
|
13
13
|
export interface TextFieldProps extends InputHTMLAttributes<HTMLInputElement>, Props {
|
|
14
14
|
}
|
|
15
|
-
export declare const TextInput: import('react').ForwardRefExoticComponent<TextFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
15
|
+
export declare const TextInput: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<TextFieldProps & import('../../../../node_modules/@types/react').RefAttributes<HTMLInputElement>>;
|
|
16
16
|
export {};
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react';
|
|
|
2
2
|
|
|
3
3
|
declare const meta: {
|
|
4
4
|
title: string;
|
|
5
|
-
component: import('react').ForwardRefExoticComponent<import('./TextInput').TextFieldProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
5
|
+
component: import('../../../../node_modules/@types/react').ForwardRefExoticComponent<import('./TextInput').TextFieldProps & import('../../../../node_modules/@types/react').RefAttributes<HTMLInputElement>>;
|
|
6
6
|
tags: string[];
|
|
7
7
|
};
|
|
8
8
|
export default meta;
|
|
@@ -8,27 +8,7 @@ export declare const containerVariants: import('tailwind-variants').TVReturnType
|
|
|
8
8
|
true: string;
|
|
9
9
|
false: string;
|
|
10
10
|
};
|
|
11
|
-
}, undefined, "flex items-center gap-2 border-none",
|
|
12
|
-
align: {
|
|
13
|
-
left: string;
|
|
14
|
-
right: string;
|
|
15
|
-
center: string;
|
|
16
|
-
};
|
|
17
|
-
allowSort: {
|
|
18
|
-
true: string;
|
|
19
|
-
false: string;
|
|
20
|
-
};
|
|
21
|
-
}, {
|
|
22
|
-
align: {
|
|
23
|
-
left: string;
|
|
24
|
-
right: string;
|
|
25
|
-
center: string;
|
|
26
|
-
};
|
|
27
|
-
allowSort: {
|
|
28
|
-
true: string;
|
|
29
|
-
false: string;
|
|
30
|
-
};
|
|
31
|
-
}>, {
|
|
11
|
+
}, undefined, "flex items-center gap-2 border-none", {
|
|
32
12
|
align: {
|
|
33
13
|
left: string;
|
|
34
14
|
right: string;
|
|
@@ -48,46 +28,14 @@ export declare const containerVariants: import('tailwind-variants').TVReturnType
|
|
|
48
28
|
true: string;
|
|
49
29
|
false: string;
|
|
50
30
|
};
|
|
51
|
-
}, undefined, "flex items-center gap-2 border-none",
|
|
52
|
-
align: {
|
|
53
|
-
left: string;
|
|
54
|
-
right: string;
|
|
55
|
-
center: string;
|
|
56
|
-
};
|
|
57
|
-
allowSort: {
|
|
58
|
-
true: string;
|
|
59
|
-
false: string;
|
|
60
|
-
};
|
|
61
|
-
}, {
|
|
62
|
-
align: {
|
|
63
|
-
left: string;
|
|
64
|
-
right: string;
|
|
65
|
-
center: string;
|
|
66
|
-
};
|
|
67
|
-
allowSort: {
|
|
68
|
-
true: string;
|
|
69
|
-
false: string;
|
|
70
|
-
};
|
|
71
|
-
}>, unknown, unknown, undefined>>;
|
|
31
|
+
}, undefined, "flex items-center gap-2 border-none", unknown, unknown, undefined>>;
|
|
72
32
|
export declare const headVariants: import('tailwind-variants').TVReturnType<{
|
|
73
33
|
align: {
|
|
74
34
|
left: string;
|
|
75
35
|
right: string;
|
|
76
36
|
center: string;
|
|
77
37
|
};
|
|
78
|
-
}, undefined, "text-xs uppercase text-primary-grey-900",
|
|
79
|
-
align: {
|
|
80
|
-
left: string;
|
|
81
|
-
right: string;
|
|
82
|
-
center: string;
|
|
83
|
-
};
|
|
84
|
-
}, {
|
|
85
|
-
align: {
|
|
86
|
-
left: string;
|
|
87
|
-
right: string;
|
|
88
|
-
center: string;
|
|
89
|
-
};
|
|
90
|
-
}>, {
|
|
38
|
+
}, undefined, "text-xs uppercase text-primary-grey-900", {
|
|
91
39
|
align: {
|
|
92
40
|
left: string;
|
|
93
41
|
right: string;
|
|
@@ -99,16 +47,4 @@ export declare const headVariants: import('tailwind-variants').TVReturnType<{
|
|
|
99
47
|
right: string;
|
|
100
48
|
center: string;
|
|
101
49
|
};
|
|
102
|
-
}, undefined, "text-xs uppercase text-primary-grey-900",
|
|
103
|
-
align: {
|
|
104
|
-
left: string;
|
|
105
|
-
right: string;
|
|
106
|
-
center: string;
|
|
107
|
-
};
|
|
108
|
-
}, {
|
|
109
|
-
align: {
|
|
110
|
-
left: string;
|
|
111
|
-
right: string;
|
|
112
|
-
center: string;
|
|
113
|
-
};
|
|
114
|
-
}>, unknown, unknown, undefined>>;
|
|
50
|
+
}, undefined, "text-xs uppercase text-primary-grey-900", unknown, unknown, undefined>>;
|