globalfy-design-system 0.10.0 → 0.12.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/Avatar/Avatar.d.ts +1 -1
- package/dist/components/atoms/Avatar/Avatar.stories.d.ts +1 -1
- package/dist/components/atoms/Avatar/Avatar.types.d.ts +6 -5
- package/dist/components/atoms/Chip/Chip.d.ts +2 -0
- package/dist/components/atoms/Chip/Chip.stories.d.ts +9 -0
- package/dist/components/atoms/Chip/Chip.types.d.ts +11 -0
- package/dist/components/atoms/Chip/index.d.ts +2 -0
- package/dist/components/atoms/Icon/assets/selection.json.d.ts +7 -6
- package/dist/components/atoms/SegmentedControl/SegmentedControl.d.ts +2 -0
- package/dist/components/atoms/SegmentedControl/SegmentedControl.stories.d.ts +9 -0
- package/dist/components/atoms/SegmentedControl/SegmentedControl.types.d.ts +13 -0
- package/dist/components/atoms/SegmentedControl/index.d.ts +2 -0
- package/dist/components/atoms/index.d.ts +1 -0
- package/dist/globalfy-design-system.js +13742 -11718
- package/dist/globalfy-design-system.umd.cjs +68 -68
- package/dist/style.css +1 -1
- package/package.json +3 -2
- package/dist/components/atoms/Chips/Chips.d.ts +0 -2
- package/dist/components/atoms/Chips/Chips.stories.d.ts +0 -11
- package/dist/components/atoms/Chips/Chips.types.d.ts +0 -8
- package/dist/components/atoms/Chips/index.d.ts +0 -2
- package/dist/shadcn/components/ui/avatar.d.ts +0 -6
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AvatarProps } from "./Avatar.types";
|
|
2
|
-
export declare const Avatar: ({
|
|
2
|
+
export declare const Avatar: ({ size, className, border, image, label, ...props }: AvatarProps) => 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: ({
|
|
4
|
+
component: ({ size, className, border, image, label, ...props }: import("./Avatar.types").AvatarProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
5
|
tags: string[];
|
|
6
6
|
};
|
|
7
7
|
export default meta;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
1
|
export type AvatarProps = {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
size?: "sm" | "md" | "lg" | "xs";
|
|
3
|
+
image?: string;
|
|
4
|
+
label?: string;
|
|
5
5
|
border?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
className?: string;
|
|
7
|
+
"data-testid"?: string;
|
|
8
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ children, className, avatar, size, disabled, iconLeft, iconRight }: import("./Chip.types").ChipProps) => 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;
|
|
@@ -4,18 +4,19 @@ declare const _default: {
|
|
|
4
4
|
{
|
|
5
5
|
"icon": {
|
|
6
6
|
"paths": [
|
|
7
|
-
"
|
|
7
|
+
"M511.987 16c-149.541 0-272.515 116.646-272.515 261.345s122.974 261.318 272.515 261.318c149.541 0 272.54-116.619 272.54-261.318s-123-261.345-272.54-261.345zM511.987 69.327c122.036 0 219.215 93.514 219.215 208.019s-97.181 207.991-219.215 207.991c-122.036 0-219.189-93.488-219.189-207.991s97.154-208.019 219.189-208.019zM511.987 626.151c-122.143 0-233.304 38.294-314.957 101.757s-134.096 153.351-134.096 253.428c0 14.725 11.937 26.663 26.663 26.663v0c14.725 0 26.663-11.937 26.663-26.663v0c0-81.552 42.225-155.929 113.499-211.327s171.288-90.535 282.227-90.535c110.94 0 210.978 35.138 282.254 90.535s113.499 129.773 113.499 211.327c0 14.725 11.937 26.663 26.663 26.663v0c14.725 0 26.663-11.937 26.663-26.663v0c0-100.079-52.443-189.967-134.096-253.428s-192.841-101.757-314.984-101.757z"
|
|
8
8
|
],
|
|
9
|
-
"attrs": [
|
|
9
|
+
"attrs": [],
|
|
10
10
|
"isMulticolor": false,
|
|
11
11
|
"isMulticolor2": false,
|
|
12
12
|
"grid": 0,
|
|
13
|
-
"tags": ["user"]
|
|
13
|
+
"tags": ["user"],
|
|
14
|
+
"colorPermutations": {}
|
|
14
15
|
},
|
|
15
|
-
"attrs": [
|
|
16
|
+
"attrs": [],
|
|
16
17
|
"properties": {
|
|
17
|
-
"order":
|
|
18
|
-
"id":
|
|
18
|
+
"order": 18,
|
|
19
|
+
"id": 11,
|
|
19
20
|
"name": "user",
|
|
20
21
|
"prevSize": 32,
|
|
21
22
|
"code": 59658
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { StoryObj } from "@storybook/react";
|
|
2
|
+
declare const meta: {
|
|
3
|
+
title: string;
|
|
4
|
+
component: ({ tabs, size, className, ...props }: import("./SegmentedControl.types").SegmentedControlProps) => 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,13 @@
|
|
|
1
|
+
import { Key, ReactNode } from "react";
|
|
2
|
+
export type SegmentedControlProps = {
|
|
3
|
+
className?: string;
|
|
4
|
+
"data-testid"?: string;
|
|
5
|
+
size?: "sm" | "md" | "lg";
|
|
6
|
+
tabs: {
|
|
7
|
+
key: string;
|
|
8
|
+
title: string;
|
|
9
|
+
component?: ReactNode;
|
|
10
|
+
}[];
|
|
11
|
+
onSelectionChange?: (key: Key) => void;
|
|
12
|
+
selectedKey?: string | number | null;
|
|
13
|
+
};
|