globalfy-design-system 0.15.0 → 0.17.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/Icon/assets/selection.json.d.ts +35 -11
- package/dist/components/atoms/Switch/Switch.d.ts +1 -3
- package/dist/components/atoms/Switch/Switch.stories.d.ts +1 -2
- package/dist/components/atoms/Switch/Switch.types.d.ts +6 -1
- package/dist/components/atoms/Tooltip/Tooltip.d.ts +2 -0
- package/dist/components/atoms/Tooltip/Tooltip.stories.d.ts +18 -0
- package/dist/components/atoms/Tooltip/Tooltip.types.d.ts +13 -0
- package/dist/components/atoms/Tooltip/index.d.ts +2 -0
- package/dist/globalfy-design-system.js +12220 -11737
- package/dist/globalfy-design-system.umd.cjs +63 -63
- package/dist/style.css +1 -1
- package/package.json +2 -1
|
@@ -1,6 +1,30 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
2
|
"IcoMoonType": "selection",
|
|
3
3
|
"icons": [
|
|
4
|
+
{
|
|
5
|
+
"icon": {
|
|
6
|
+
"paths": [
|
|
7
|
+
"M92.308 1008.001l-76.307-76.31 419.692-419.691-419.692-419.692 76.307-76.307 419.692 419.692 419.691-419.692 76.31 76.307-419.692 419.692 419.692 419.691-76.31 76.31-419.691-419.692-419.692 419.692z"
|
|
8
|
+
],
|
|
9
|
+
"attrs": [],
|
|
10
|
+
"isMulticolor": false,
|
|
11
|
+
"isMulticolor2": false,
|
|
12
|
+
"grid": 0,
|
|
13
|
+
"tags": ["close"],
|
|
14
|
+
"colorPermutations": {}
|
|
15
|
+
},
|
|
16
|
+
"attrs": [],
|
|
17
|
+
"properties": {
|
|
18
|
+
"order": 20,
|
|
19
|
+
"id": 12,
|
|
20
|
+
"name": "close",
|
|
21
|
+
"prevSize": 32,
|
|
22
|
+
"code": 59659
|
|
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": {
|
|
@@ -46,7 +70,7 @@ declare const _default: {
|
|
|
46
70
|
},
|
|
47
71
|
"setIdx": 0,
|
|
48
72
|
"setId": 2,
|
|
49
|
-
"iconIdx":
|
|
73
|
+
"iconIdx": 2
|
|
50
74
|
},
|
|
51
75
|
{
|
|
52
76
|
"icon": {
|
|
@@ -69,7 +93,7 @@ declare const _default: {
|
|
|
69
93
|
},
|
|
70
94
|
"setIdx": 0,
|
|
71
95
|
"setId": 2,
|
|
72
|
-
"iconIdx":
|
|
96
|
+
"iconIdx": 3
|
|
73
97
|
},
|
|
74
98
|
{
|
|
75
99
|
"icon": {
|
|
@@ -92,7 +116,7 @@ declare const _default: {
|
|
|
92
116
|
},
|
|
93
117
|
"setIdx": 0,
|
|
94
118
|
"setId": 2,
|
|
95
|
-
"iconIdx":
|
|
119
|
+
"iconIdx": 4
|
|
96
120
|
},
|
|
97
121
|
{
|
|
98
122
|
"icon": {
|
|
@@ -115,7 +139,7 @@ declare const _default: {
|
|
|
115
139
|
},
|
|
116
140
|
"setIdx": 0,
|
|
117
141
|
"setId": 2,
|
|
118
|
-
"iconIdx":
|
|
142
|
+
"iconIdx": 5
|
|
119
143
|
},
|
|
120
144
|
{
|
|
121
145
|
"icon": {
|
|
@@ -138,7 +162,7 @@ declare const _default: {
|
|
|
138
162
|
},
|
|
139
163
|
"setIdx": 0,
|
|
140
164
|
"setId": 2,
|
|
141
|
-
"iconIdx":
|
|
165
|
+
"iconIdx": 6
|
|
142
166
|
},
|
|
143
167
|
{
|
|
144
168
|
"icon": {
|
|
@@ -161,7 +185,7 @@ declare const _default: {
|
|
|
161
185
|
},
|
|
162
186
|
"setIdx": 0,
|
|
163
187
|
"setId": 2,
|
|
164
|
-
"iconIdx":
|
|
188
|
+
"iconIdx": 7
|
|
165
189
|
},
|
|
166
190
|
{
|
|
167
191
|
"icon": {
|
|
@@ -184,7 +208,7 @@ declare const _default: {
|
|
|
184
208
|
},
|
|
185
209
|
"setIdx": 0,
|
|
186
210
|
"setId": 2,
|
|
187
|
-
"iconIdx":
|
|
211
|
+
"iconIdx": 8
|
|
188
212
|
},
|
|
189
213
|
{
|
|
190
214
|
"icon": {
|
|
@@ -207,7 +231,7 @@ declare const _default: {
|
|
|
207
231
|
},
|
|
208
232
|
"setIdx": 0,
|
|
209
233
|
"setId": 2,
|
|
210
|
-
"iconIdx":
|
|
234
|
+
"iconIdx": 9
|
|
211
235
|
},
|
|
212
236
|
{
|
|
213
237
|
"icon": {
|
|
@@ -230,7 +254,7 @@ declare const _default: {
|
|
|
230
254
|
},
|
|
231
255
|
"setIdx": 0,
|
|
232
256
|
"setId": 2,
|
|
233
|
-
"iconIdx":
|
|
257
|
+
"iconIdx": 10
|
|
234
258
|
},
|
|
235
259
|
{
|
|
236
260
|
"icon": {
|
|
@@ -253,7 +277,7 @@ declare const _default: {
|
|
|
253
277
|
},
|
|
254
278
|
"setIdx": 0,
|
|
255
279
|
"setId": 2,
|
|
256
|
-
"iconIdx":
|
|
280
|
+
"iconIdx": 11
|
|
257
281
|
}
|
|
258
282
|
],
|
|
259
283
|
"height": 1024,
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as SwitchPrimitives from "@radix-ui/react-switch";
|
|
3
1
|
import { SwitchProps } from "./Switch.types";
|
|
4
|
-
export declare const Switch:
|
|
2
|
+
export declare const Switch: ({ icons, className }: SwitchProps) => 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: ({ icons, className }: import("./Switch.types").SwitchProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
5
|
tags: string[];
|
|
7
6
|
};
|
|
8
7
|
export default meta;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ children, showArrow, startOpen, content, hasCloseButton, action, size }: import("./Tooltip.types").TooltipProps) => 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;
|
|
13
|
+
export declare const WithAction: Story;
|
|
14
|
+
export declare const WithArrow: Story;
|
|
15
|
+
export declare const WithCloseButton: Story;
|
|
16
|
+
export declare const WithCloseButtonAndAction: Story;
|
|
17
|
+
export declare const StartOpen: Story;
|
|
18
|
+
export declare const Sizes: () => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type TooltipProps = {
|
|
3
|
+
children: React.ReactElement;
|
|
4
|
+
content: React.ReactNode;
|
|
5
|
+
startOpen?: boolean;
|
|
6
|
+
showArrow?: boolean;
|
|
7
|
+
hasCloseButton?: boolean;
|
|
8
|
+
action?: {
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
label: string;
|
|
11
|
+
};
|
|
12
|
+
size?: "sm" | "lg";
|
|
13
|
+
};
|