globalfy-design-system 0.19.0 → 0.21.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/Button/Button.d.ts +1 -1
- package/dist/components/atoms/Button/Button.stories.d.ts +1 -1
- package/dist/components/atoms/Checkbox/Checkbox.d.ts +1 -3
- package/dist/components/atoms/Checkbox/Checkbox.stories.d.ts +1 -2
- package/dist/components/atoms/DatePicker/DatePicker.d.ts +2 -0
- package/dist/components/atoms/DatePicker/DatePicker.stories.d.ts +11 -0
- package/dist/components/atoms/DatePicker/DatePicker.types.d.ts +2 -0
- package/dist/components/atoms/DatePicker/index.d.ts +2 -0
- package/dist/components/atoms/Icon/assets/selection.json.d.ts +36 -12
- package/dist/components/atoms/Input/Input.d.ts +13 -0
- package/dist/components/atoms/Input/Input.stories.d.ts +25 -0
- package/dist/components/atoms/Input/Input.types.d.ts +13 -0
- package/dist/components/atoms/Input/index.d.ts +2 -0
- package/dist/components/atoms/Popover/Popover.d.ts +2 -0
- package/dist/components/atoms/Popover/Popover.stories.d.ts +12 -0
- package/dist/components/atoms/Popover/Popover.types.d.ts +11 -0
- package/dist/components/atoms/Popover/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +3 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/molecules/DatePickerInput/DatePickerInput.d.ts +2 -0
- package/dist/components/molecules/DatePickerInput/DatePickerInput.stories.d.ts +9 -0
- package/dist/components/molecules/DatePickerInput/DatePickerInput.types.d.ts +6 -0
- package/dist/components/molecules/DatePickerInput/index.d.ts +2 -0
- package/dist/components/molecules/index.d.ts +1 -0
- package/dist/globalfy-design-system.js +32474 -25115
- package/dist/globalfy-design-system.umd.cjs +147 -73
- package/dist/main.d.ts +1 -0
- package/dist/style.css +1 -1
- package/dist/theme/colors.d.ts +180 -0
- package/dist/theme/index.d.ts +1 -0
- package/package.json +4 -1
- package/dist/shadcn/components/ui/button.d.ts +0 -11
- package/dist/shadcn/components/ui/checkbox.d.ts +0 -4
- package/dist/shadcn/components/ui/radio-group.d.ts +0 -5
- package/dist/shadcn/components/ui/switch.d.ts +0 -4
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ButtonProps } from ".";
|
|
2
|
-
export declare const Button: ({ children, size, variant, disabled, full, iconLeft, iconRight, className, hasLoading, isLoadingComplete, onClick, onLoadingAnimationComplete
|
|
2
|
+
export declare const Button: ({ children, size, variant, disabled, full, iconLeft, iconRight, className, hasLoading, isLoadingComplete, onClick, onLoadingAnimationComplete }: ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { StoryObj } from "@storybook/react";
|
|
2
2
|
declare const meta: {
|
|
3
3
|
title: string;
|
|
4
|
-
component: ({ children, size, variant, disabled, full, iconLeft, iconRight, className, hasLoading, isLoadingComplete, onClick, onLoadingAnimationComplete
|
|
4
|
+
component: ({ children, size, variant, disabled, full, iconLeft, iconRight, className, hasLoading, isLoadingComplete, onClick, onLoadingAnimationComplete }: import("./Button.types").ButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default meta;
|
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
3
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxPrimitive.CheckboxProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
1
|
+
export declare const Checkbox: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { StoryObj } from "@storybook/react";
|
|
3
2
|
declare const meta: {
|
|
4
3
|
title: string;
|
|
5
|
-
component:
|
|
4
|
+
component: () => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
tags: string[];
|
|
7
6
|
};
|
|
8
7
|
export default meta;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ ...props }: import("./DatePicker.types").DatePickerProps) => JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
export declare const Playground: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"IcoMoonType": "selection",
|
|
3
3
|
"icons": [
|
|
4
|
+
{
|
|
5
|
+
"icon": {
|
|
6
|
+
"paths": [
|
|
7
|
+
"M310.499 16.002c-23.478 0-42.513 19.035-42.513 42.513v0 31.663c-73.907 6.95-136.926 27.183-179.246 68.199-50.775 49.212-72.741 118.961-72.741 194.857v385.506c0 75.896 21.966 145.754 72.741 194.966s126.295 74.291 221.76 74.291h402.999c95.465 0 170.986-25.078 221.76-74.291s72.741-119.071 72.741-194.966v-385.506c0-75.896-21.966-145.644-72.741-194.857-42.318-41.017-105.339-61.249-179.246-68.199v-31.663c0-23.478-19.035-42.513-42.513-42.513v0c-23.478 0-42.513 19.035-42.513 42.513v0 25.463h-317.969v-25.463c0-23.478-19.035-42.513-42.513-42.513v0zM353.011 169.008h317.969v25.575c0 23.478 19.035 42.513 42.513 42.513v0c23.478 0 42.513-19.035 42.513-42.513v0-19.597c53.909 6.407 95.525 20.662 120.013 44.397 27.978 27.117 41.762 66.998 44.616 118.134h-817.293c2.854-51.13 16.643-91.016 44.616-118.134 24.489-23.736 66.107-37.991 120.013-44.397v19.597c0 23.478 19.035 42.513 42.513 42.513v0c23.478 0 42.513-19.035 42.513-42.513v0zM101.030 422.544h821.943v316.199c0 60.151-15.841 103.706-46.943 133.853s-81.639 50.375-162.53 50.375h-402.999c-80.887 0-131.424-20.23-162.53-50.375s-46.943-73.703-46.943-133.853zM325.335 546.544c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM511.779 546.544c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM698.217 546.544c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM325.335 682.611c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM511.779 682.611c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0zM698.217 682.611c-23.478 0-42.513 19.035-42.513 42.513v0c0 23.478 19.035 42.513 42.513 42.513v0h0.443c23.478 0 42.513-19.035 42.513-42.513v0c0-23.478-19.035-42.513-42.513-42.513v0z"
|
|
8
|
+
],
|
|
9
|
+
"attrs": [],
|
|
10
|
+
"isMulticolor": false,
|
|
11
|
+
"isMulticolor2": false,
|
|
12
|
+
"grid": 0,
|
|
13
|
+
"tags": ["calendar"],
|
|
14
|
+
"colorPermutations": {}
|
|
15
|
+
},
|
|
16
|
+
"attrs": [],
|
|
17
|
+
"properties": {
|
|
18
|
+
"order": 22,
|
|
19
|
+
"id": 13,
|
|
20
|
+
"name": "calendar",
|
|
21
|
+
"prevSize": 32,
|
|
22
|
+
"code": 59660
|
|
23
|
+
},
|
|
24
|
+
"setIdx": 0,
|
|
25
|
+
"setId": 2,
|
|
26
|
+
"iconIdx": 0
|
|
27
|
+
},
|
|
4
28
|
{
|
|
5
29
|
"icon": {
|
|
6
30
|
"paths": [
|
|
@@ -23,7 +47,7 @@ declare const _default: {
|
|
|
23
47
|
},
|
|
24
48
|
"setIdx": 0,
|
|
25
49
|
"setId": 2,
|
|
26
|
-
"iconIdx":
|
|
50
|
+
"iconIdx": 1
|
|
27
51
|
},
|
|
28
52
|
{
|
|
29
53
|
"icon": {
|
|
@@ -47,7 +71,7 @@ declare const _default: {
|
|
|
47
71
|
},
|
|
48
72
|
"setIdx": 0,
|
|
49
73
|
"setId": 2,
|
|
50
|
-
"iconIdx":
|
|
74
|
+
"iconIdx": 2
|
|
51
75
|
},
|
|
52
76
|
{
|
|
53
77
|
"icon": {
|
|
@@ -70,7 +94,7 @@ declare const _default: {
|
|
|
70
94
|
},
|
|
71
95
|
"setIdx": 0,
|
|
72
96
|
"setId": 2,
|
|
73
|
-
"iconIdx":
|
|
97
|
+
"iconIdx": 3
|
|
74
98
|
},
|
|
75
99
|
{
|
|
76
100
|
"icon": {
|
|
@@ -93,7 +117,7 @@ declare const _default: {
|
|
|
93
117
|
},
|
|
94
118
|
"setIdx": 0,
|
|
95
119
|
"setId": 2,
|
|
96
|
-
"iconIdx":
|
|
120
|
+
"iconIdx": 4
|
|
97
121
|
},
|
|
98
122
|
{
|
|
99
123
|
"icon": {
|
|
@@ -116,7 +140,7 @@ declare const _default: {
|
|
|
116
140
|
},
|
|
117
141
|
"setIdx": 0,
|
|
118
142
|
"setId": 2,
|
|
119
|
-
"iconIdx":
|
|
143
|
+
"iconIdx": 5
|
|
120
144
|
},
|
|
121
145
|
{
|
|
122
146
|
"icon": {
|
|
@@ -139,7 +163,7 @@ declare const _default: {
|
|
|
139
163
|
},
|
|
140
164
|
"setIdx": 0,
|
|
141
165
|
"setId": 2,
|
|
142
|
-
"iconIdx":
|
|
166
|
+
"iconIdx": 6
|
|
143
167
|
},
|
|
144
168
|
{
|
|
145
169
|
"icon": {
|
|
@@ -162,7 +186,7 @@ declare const _default: {
|
|
|
162
186
|
},
|
|
163
187
|
"setIdx": 0,
|
|
164
188
|
"setId": 2,
|
|
165
|
-
"iconIdx":
|
|
189
|
+
"iconIdx": 7
|
|
166
190
|
},
|
|
167
191
|
{
|
|
168
192
|
"icon": {
|
|
@@ -185,7 +209,7 @@ declare const _default: {
|
|
|
185
209
|
},
|
|
186
210
|
"setIdx": 0,
|
|
187
211
|
"setId": 2,
|
|
188
|
-
"iconIdx":
|
|
212
|
+
"iconIdx": 8
|
|
189
213
|
},
|
|
190
214
|
{
|
|
191
215
|
"icon": {
|
|
@@ -208,7 +232,7 @@ declare const _default: {
|
|
|
208
232
|
},
|
|
209
233
|
"setIdx": 0,
|
|
210
234
|
"setId": 2,
|
|
211
|
-
"iconIdx":
|
|
235
|
+
"iconIdx": 9
|
|
212
236
|
},
|
|
213
237
|
{
|
|
214
238
|
"icon": {
|
|
@@ -231,7 +255,7 @@ declare const _default: {
|
|
|
231
255
|
},
|
|
232
256
|
"setIdx": 0,
|
|
233
257
|
"setId": 2,
|
|
234
|
-
"iconIdx":
|
|
258
|
+
"iconIdx": 10
|
|
235
259
|
},
|
|
236
260
|
{
|
|
237
261
|
"icon": {
|
|
@@ -254,7 +278,7 @@ declare const _default: {
|
|
|
254
278
|
},
|
|
255
279
|
"setIdx": 0,
|
|
256
280
|
"setId": 2,
|
|
257
|
-
"iconIdx":
|
|
281
|
+
"iconIdx": 11
|
|
258
282
|
},
|
|
259
283
|
{
|
|
260
284
|
"icon": {
|
|
@@ -277,7 +301,7 @@ declare const _default: {
|
|
|
277
301
|
},
|
|
278
302
|
"setIdx": 0,
|
|
279
303
|
"setId": 2,
|
|
280
|
-
"iconIdx":
|
|
304
|
+
"iconIdx": 12
|
|
281
305
|
}
|
|
282
306
|
],
|
|
283
307
|
"height": 1024,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const Input: import("react").ForwardRefExoticComponent<{
|
|
3
|
+
label: string;
|
|
4
|
+
placeholder?: string | undefined;
|
|
5
|
+
message?: string | undefined;
|
|
6
|
+
icon?: string | undefined;
|
|
7
|
+
isInvalid?: boolean | undefined;
|
|
8
|
+
isValid?: boolean | undefined;
|
|
9
|
+
disabled?: boolean | undefined;
|
|
10
|
+
value?: string | undefined;
|
|
11
|
+
isDatePicker?: boolean | undefined;
|
|
12
|
+
iconAction?: (() => void) | undefined;
|
|
13
|
+
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
declare const meta: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("react").ForwardRefExoticComponent<{
|
|
6
|
+
label: string;
|
|
7
|
+
placeholder?: string | undefined;
|
|
8
|
+
message?: string | undefined;
|
|
9
|
+
icon?: string | undefined;
|
|
10
|
+
isInvalid?: boolean | undefined;
|
|
11
|
+
isValid?: boolean | undefined;
|
|
12
|
+
disabled?: boolean | undefined;
|
|
13
|
+
value?: string | undefined;
|
|
14
|
+
isDatePicker?: boolean | undefined;
|
|
15
|
+
iconAction?: (() => void) | undefined;
|
|
16
|
+
} & Omit<import("react").InputHTMLAttributes<HTMLInputElement>, "defaultValue" | "color" | "onFocus" | "onBlur" | "size"> & import("react").RefAttributes<HTMLInputElement>>;
|
|
17
|
+
tags: string[];
|
|
18
|
+
};
|
|
19
|
+
export default meta;
|
|
20
|
+
type Story = StoryObj<typeof meta>;
|
|
21
|
+
export declare const Playground: Story;
|
|
22
|
+
export declare const Disabled: Story;
|
|
23
|
+
export declare const WithMessage: Story;
|
|
24
|
+
export declare const WithIcon: Story;
|
|
25
|
+
export declare const States: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type InputProps = {
|
|
3
|
+
label: string;
|
|
4
|
+
placeholder?: string;
|
|
5
|
+
message?: string;
|
|
6
|
+
icon?: string;
|
|
7
|
+
isInvalid?: boolean;
|
|
8
|
+
isValid?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
value?: string;
|
|
11
|
+
isDatePicker?: boolean;
|
|
12
|
+
iconAction?: () => void;
|
|
13
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "size" | "defaultValue" | "color" | "onFocus" | "onBlur">;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ children, content, isOpen, side, align, onInteractOutside, ...props }: import("./Popover.types").PopoverProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export default meta;
|
|
11
|
+
type Story = StoryObj<typeof meta>;
|
|
12
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type PopoverProps = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
isOpen?: boolean;
|
|
6
|
+
onOpenChange?: (isOpen: boolean) => void;
|
|
7
|
+
onInteractOutside?: () => void;
|
|
8
|
+
defaultOpen?: boolean;
|
|
9
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
10
|
+
align?: "start" | "center" | "end";
|
|
11
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ label, initialDate, onSelect, dateFormat }: import("./DatePickerInput.types").DatePickerInputProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
tags: string[];
|
|
6
|
+
};
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Playground: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./DatePickerInput";
|