sparkle-design 0.9.0 → 1.0.1
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/README.en.md +77 -157
- package/README.md +77 -157
- package/package.json +32 -2
- package/dist/components/ui/badge/index.figma.d.ts +0 -1
- package/dist/components/ui/badge/index.figma.js +0 -28
- package/dist/components/ui/breadcrumb/index.figma.d.ts +0 -1
- package/dist/components/ui/breadcrumb/index.figma.js +0 -28
- package/dist/components/ui/button/index.figma.d.ts +0 -1
- package/dist/components/ui/button/index.figma.js +0 -59
- package/dist/components/ui/card/index.figma.d.ts +0 -1
- package/dist/components/ui/card/index.figma.js +0 -28
- package/dist/components/ui/checkbox/index.figma.d.ts +0 -1
- package/dist/components/ui/checkbox/index.figma.js +0 -34
- package/dist/components/ui/dialog/index.figma.d.ts +0 -1
- package/dist/components/ui/dialog/index.figma.js +0 -21
- package/dist/components/ui/divider/index.figma.d.ts +0 -1
- package/dist/components/ui/divider/index.figma.js +0 -39
- package/dist/components/ui/form/index.figma.d.ts +0 -1
- package/dist/components/ui/form/index.figma.js +0 -129
- package/dist/components/ui/icon/index.figma.d.ts +0 -1
- package/dist/components/ui/icon/index.figma.js +0 -1858
- package/dist/components/ui/icon-button/index.figma.d.ts +0 -1
- package/dist/components/ui/icon-button/index.figma.js +0 -43
- package/dist/components/ui/inline-message/index.figma.d.ts +0 -1
- package/dist/components/ui/inline-message/index.figma.js +0 -26
- package/dist/components/ui/input/index.figma.d.ts +0 -1
- package/dist/components/ui/input/index.figma.js +0 -36
- package/dist/components/ui/input-password/index.figma.d.ts +0 -1
- package/dist/components/ui/input-password/index.figma.js +0 -36
- package/dist/components/ui/link/index.figma.d.ts +0 -1
- package/dist/components/ui/link/index.figma.js +0 -22
- package/dist/components/ui/modal/index.figma.d.ts +0 -1
- package/dist/components/ui/modal/index.figma.js +0 -61
- package/dist/components/ui/overlay/index.figma.d.ts +0 -1
- package/dist/components/ui/overlay/index.figma.js +0 -14
- package/dist/components/ui/radio/index.figma.d.ts +0 -1
- package/dist/components/ui/radio/index.figma.js +0 -63
- package/dist/components/ui/select/index.figma.d.ts +0 -1
- package/dist/components/ui/select/index.figma.js +0 -30
- package/dist/components/ui/skeleton/index.figma.d.ts +0 -1
- package/dist/components/ui/skeleton/index.figma.js +0 -14
- package/dist/components/ui/slider/index.figma.d.ts +0 -1
- package/dist/components/ui/slider/index.figma.js +0 -28
- package/dist/components/ui/spinner/index.figma.d.ts +0 -1
- package/dist/components/ui/spinner/index.figma.js +0 -16
- package/dist/components/ui/switch/index.figma.d.ts +0 -1
- package/dist/components/ui/switch/index.figma.js +0 -27
- package/dist/components/ui/tabs/index.figma.d.ts +0 -1
- package/dist/components/ui/tabs/index.figma.js +0 -55
- package/dist/components/ui/tag/index.figma.d.ts +0 -1
- package/dist/components/ui/tag/index.figma.js +0 -32
- package/dist/components/ui/textarea/index.figma.d.ts +0 -1
- package/dist/components/ui/textarea/index.figma.js +0 -27
- package/dist/components/ui/toast/index.figma.d.ts +0 -1
- package/dist/components/ui/toast/index.figma.js +0 -26
- package/dist/components/ui/tooltip/index.figma.d.ts +0 -1
- package/dist/components/ui/tooltip/index.figma.js +0 -23
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import figma from "@figma/code-connect";
|
|
3
|
-
import { Badge } from "./index.js";
|
|
4
|
-
/**
|
|
5
|
-
* -- This file was auto-generated by Code Connect --
|
|
6
|
-
* `props` includes a mapping from your code props to Figma properties.
|
|
7
|
-
* You should check this is correct, and update the `example` function
|
|
8
|
-
* to return the code example you'd like to see in Figma
|
|
9
|
-
*/
|
|
10
|
-
figma.connect(Badge, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=1274%3A1622", {
|
|
11
|
-
props: {
|
|
12
|
-
// These props were automatically mapped based on your linked code:
|
|
13
|
-
size: figma.enum("size", {
|
|
14
|
-
xs: "xs",
|
|
15
|
-
sm: "sm",
|
|
16
|
-
md: "md",
|
|
17
|
-
lg: "lg",
|
|
18
|
-
}),
|
|
19
|
-
variant: figma.enum("variant", {
|
|
20
|
-
normal: "normal",
|
|
21
|
-
emphasis: "emphasis",
|
|
22
|
-
}),
|
|
23
|
-
isGapped: figma.boolean("isGapped"),
|
|
24
|
-
// No matching props could be found for these Figma properties:
|
|
25
|
-
number: figma.string("number"),
|
|
26
|
-
},
|
|
27
|
-
example: props => (_jsx(Badge, { size: props.size, variant: props.variant, isGapped: props.isGapped, children: props.number })),
|
|
28
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import figma from "@figma/code-connect";
|
|
3
|
-
import { Breadcrumb, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, } from "./index.js";
|
|
4
|
-
/**
|
|
5
|
-
* -- This file was auto-generated by Code Connect --
|
|
6
|
-
* None of your props could be automatically mapped to Figma properties.
|
|
7
|
-
* You should update the `props` object to include a mapping from your
|
|
8
|
-
* code props to Figma properties, and update the `example` function to
|
|
9
|
-
* return the code example you'd like to see in Figma
|
|
10
|
-
*/
|
|
11
|
-
figma.connect(Breadcrumb, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=2755%3A25149", {
|
|
12
|
-
props: {},
|
|
13
|
-
example: props => (_jsx(Breadcrumb, { children: _jsxs(BreadcrumbList, { children: [_jsx(BreadcrumbItem, { children: _jsx(BreadcrumbLink, { href: "/", children: "Home" }) }), _jsx(BreadcrumbSeparator, { children: "/" }), _jsx(BreadcrumbItem, { children: _jsx(BreadcrumbPage, { children: "Current Page" }) })] }) })),
|
|
14
|
-
});
|
|
15
|
-
/**
|
|
16
|
-
* -- This file was auto-generated by Code Connect --
|
|
17
|
-
* None of your props could be automatically mapped to Figma properties.
|
|
18
|
-
* You should update the `props` object to include a mapping from your
|
|
19
|
-
* code props to Figma properties, and update the `example` function to
|
|
20
|
-
* return the code example you'd like to see in Figma
|
|
21
|
-
*/
|
|
22
|
-
figma.connect(BreadcrumbItem, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=252%3A8944", {
|
|
23
|
-
props: {
|
|
24
|
-
// No matching props could be found for these Figma properties:
|
|
25
|
-
// "isCurrent": figma.boolean('isCurrent')
|
|
26
|
-
},
|
|
27
|
-
example: props => (_jsx(BreadcrumbItem, { children: _jsx(BreadcrumbPage, { children: "Current Page" }) })),
|
|
28
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import figma from "@figma/code-connect";
|
|
3
|
-
import { Button } from "./index.js";
|
|
4
|
-
/**
|
|
5
|
-
* -- This file was auto-generated by Code Connect --
|
|
6
|
-
* `props` includes a mapping from your code props to Figma properties.
|
|
7
|
-
* You should check this is correct, and update the `example` function
|
|
8
|
-
* to return the code example you'd like to see in Figma
|
|
9
|
-
*/
|
|
10
|
-
figma.connect(Button, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=11672%3A4288", {
|
|
11
|
-
props: {
|
|
12
|
-
// These props were automatically mapped based on your linked code:
|
|
13
|
-
size: figma.enum("size", {
|
|
14
|
-
sm: "sm",
|
|
15
|
-
md: "md",
|
|
16
|
-
lg: "lg",
|
|
17
|
-
}),
|
|
18
|
-
variant: figma.enum("variant", {
|
|
19
|
-
solid: "solid",
|
|
20
|
-
outline: "outline",
|
|
21
|
-
ghost: "ghost",
|
|
22
|
-
}),
|
|
23
|
-
theme: figma.enum("theme", {
|
|
24
|
-
primary: "primary",
|
|
25
|
-
neutral: "neutral",
|
|
26
|
-
negative: "negative",
|
|
27
|
-
}),
|
|
28
|
-
isLoading: figma.enum("state", {
|
|
29
|
-
loading: true,
|
|
30
|
-
}),
|
|
31
|
-
isDisabled: figma.enum("state", {
|
|
32
|
-
disabled: true,
|
|
33
|
-
}),
|
|
34
|
-
disabled: figma.enum("state", {
|
|
35
|
-
disabled: true,
|
|
36
|
-
}),
|
|
37
|
-
label: figma.string("label"),
|
|
38
|
-
// No matching props could be found for these Figma properties:
|
|
39
|
-
// "isFocused": figma.boolean('isFocused'),
|
|
40
|
-
suffixIcon: figma.boolean("isSuffixIcon", {
|
|
41
|
-
// FIXME: 複数箇所でアイコンのインスタンスを参照しようとするとCode Connectがエラーになるためコメントアウト中
|
|
42
|
-
// true: figma.instance("suffixIcon").getProps<{
|
|
43
|
-
// icon: string;
|
|
44
|
-
// size: number;
|
|
45
|
-
// fill: boolean;
|
|
46
|
-
// }>(),
|
|
47
|
-
true: "expand_more",
|
|
48
|
-
false: undefined,
|
|
49
|
-
}),
|
|
50
|
-
prefixIcon: figma.boolean("isPrefixIcon", {
|
|
51
|
-
true: figma.instance("prefixIcon").getProps(),
|
|
52
|
-
false: undefined,
|
|
53
|
-
}),
|
|
54
|
-
},
|
|
55
|
-
example: props => {
|
|
56
|
-
var _a;
|
|
57
|
-
return (_jsx(Button, { size: props.size, variant: props.variant, theme: props.theme, isLoading: props.isLoading, isDisabled: props.isDisabled, disabled: props.disabled, prefixIcon: (_a = props.prefixIcon) === null || _a === void 0 ? void 0 : _a.icon, suffixIcon: props.suffixIcon, children: props.label }));
|
|
58
|
-
},
|
|
59
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import figma from "@figma/code-connect";
|
|
3
|
-
import { Card, ClickableCard, CardHeader, CardTitle, CardControl, CardDescription, CardContent, CardFooter, } from "./index.js";
|
|
4
|
-
/**
|
|
5
|
-
* Card - 基本的なカードコンポーネント
|
|
6
|
-
* en: Card - Basic card component
|
|
7
|
-
*/
|
|
8
|
-
figma.connect(Card, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=1274-60861&t=A1ymB6VaQrqwNcKU-4", {
|
|
9
|
-
props: {},
|
|
10
|
-
example: props => (_jsxs(Card, { children: [_jsxs(CardHeader, { children: [_jsxs(CardTitle, { children: ["\u30BF\u30A4\u30C8\u30EB", _jsx(CardDescription, { className: "character-3-regular-pro text-text-low", children: "Description" })] }), _jsx(CardControl, { children: "Control" })] }), _jsx(CardContent, { children: "Content" }), _jsx(CardFooter, { children: "Footer" })] })),
|
|
11
|
-
});
|
|
12
|
-
/**
|
|
13
|
-
* ClickableCard - クリック可能なカードコンポーネント
|
|
14
|
-
* en: ClickableCard - Clickable card component
|
|
15
|
-
*/
|
|
16
|
-
figma.connect(ClickableCard, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=8271-617&t=A1ymB6VaQrqwNcKU-4", {
|
|
17
|
-
props: {
|
|
18
|
-
/**
|
|
19
|
-
* 無効化状態
|
|
20
|
-
* en: Disabled state
|
|
21
|
-
*/
|
|
22
|
-
isDisabled: figma.enum("state", {
|
|
23
|
-
disabled: true,
|
|
24
|
-
default: false,
|
|
25
|
-
}),
|
|
26
|
-
},
|
|
27
|
-
example: props => (_jsxs(ClickableCard, { isDisabled: props.isDisabled, children: [_jsxs(CardHeader, { children: [_jsxs(CardTitle, { children: ["\u30BF\u30A4\u30C8\u30EB", _jsx(CardDescription, { className: "character-3-regular-pro text-text-low", children: "Description" })] }), _jsx(CardControl, { children: "Control" })] }), _jsx(CardContent, { children: "Content" })] })),
|
|
28
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import figma from "@figma/code-connect";
|
|
3
|
-
import { Checkbox } from "./index.js";
|
|
4
|
-
/**
|
|
5
|
-
* -- This file was auto-generated by Code Connect --
|
|
6
|
-
* `props` includes a mapping from your code props to Figma properties.
|
|
7
|
-
* You should check this is correct, and update the `example` function
|
|
8
|
-
* to return the code example you'd like to see in Figma
|
|
9
|
-
*/
|
|
10
|
-
figma.connect(Checkbox, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=176%3A7554", {
|
|
11
|
-
props: {
|
|
12
|
-
// These props were automatically mapped based on your linked code:
|
|
13
|
-
size: figma.enum("size", {
|
|
14
|
-
sm: "sm",
|
|
15
|
-
md: "md",
|
|
16
|
-
lg: "lg",
|
|
17
|
-
}),
|
|
18
|
-
isInvalid: figma.boolean("isInvalid"),
|
|
19
|
-
label: figma.string("label"),
|
|
20
|
-
indeterminate: figma.enum("body", {
|
|
21
|
-
indeterminate: true,
|
|
22
|
-
}),
|
|
23
|
-
defaultChecked: figma.enum("body", {
|
|
24
|
-
checked: true,
|
|
25
|
-
}),
|
|
26
|
-
isDisabled: figma.enum("state", {
|
|
27
|
-
disabled: true,
|
|
28
|
-
}),
|
|
29
|
-
// No matching props could be found for these Figma properties:
|
|
30
|
-
// "isLabel": figma.boolean('isLabel'),
|
|
31
|
-
// "isFocused": figma.boolean('isFocused'),
|
|
32
|
-
},
|
|
33
|
-
example: props => (_jsx(Checkbox, { size: props.size, isInvalid: props.isInvalid, label: props.label, indeterminate: props.indeterminate, isDisabled: props.isDisabled, defaultChecked: props.defaultChecked })),
|
|
34
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import figma from "@figma/code-connect";
|
|
3
|
-
import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogDescription, DialogFooter, DialogCancel, DialogAction, } from "./index.js";
|
|
4
|
-
/**
|
|
5
|
-
* -- This file was auto-generated by Code Connect --
|
|
6
|
-
* `props` includes a mapping from your code props to Figma properties.
|
|
7
|
-
* You should check this is correct, and update the `example` function
|
|
8
|
-
* to return the code example you'd like to see in Figma
|
|
9
|
-
*/
|
|
10
|
-
figma.connect(Dialog, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=14857-825", {
|
|
11
|
-
props: {
|
|
12
|
-
variant: figma.enum("status", {
|
|
13
|
-
neutral: "neutral",
|
|
14
|
-
warning: "warning",
|
|
15
|
-
negative: "negative",
|
|
16
|
-
}),
|
|
17
|
-
title: figma.string("title"),
|
|
18
|
-
description: figma.string("description"),
|
|
19
|
-
},
|
|
20
|
-
example: props => (_jsx(Dialog, { children: _jsxs(DialogContent, { children: [_jsxs(DialogHeader, { children: [_jsx(DialogTitle, { children: props.title }), _jsx(DialogDescription, { children: props.description })] }), _jsxs(DialogFooter, { children: [_jsx(DialogCancel, { children: "\u30AD\u30E3\u30F3\u30BB\u30EB" }), _jsx(DialogAction, { children: "\u4FDD\u5B58" })] })] }) })),
|
|
21
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import figma from "@figma/code-connect";
|
|
3
|
-
import { Divider } from "./index.js";
|
|
4
|
-
/**
|
|
5
|
-
* -- This file was auto-generated by Code Connect --
|
|
6
|
-
* `props` includes a mapping from your code props to Figma properties.
|
|
7
|
-
* You should check this is correct, and update the `example` function
|
|
8
|
-
* to return the code example you'd like to see in Figma
|
|
9
|
-
*/
|
|
10
|
-
figma.connect(Divider, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=817-5328&t=lCPcHH1Zd0uroqLb-4", {
|
|
11
|
-
props: {
|
|
12
|
-
/**
|
|
13
|
-
* ディバイダーの強調度
|
|
14
|
-
* en: Emphasis level of the divider
|
|
15
|
-
*/
|
|
16
|
-
emphasis: figma.enum("emphasis", {
|
|
17
|
-
low: "low",
|
|
18
|
-
middle: "middle",
|
|
19
|
-
high: "high",
|
|
20
|
-
}),
|
|
21
|
-
/**
|
|
22
|
-
* 線のスタイル
|
|
23
|
-
* en: Line style
|
|
24
|
-
*/
|
|
25
|
-
lineStyle: figma.enum("style", {
|
|
26
|
-
solid: "solid",
|
|
27
|
-
dashed: "dashed",
|
|
28
|
-
}),
|
|
29
|
-
/**
|
|
30
|
-
* ディバイダーの方向
|
|
31
|
-
* en: Direction of the divider
|
|
32
|
-
*/
|
|
33
|
-
direction: figma.enum("direction", {
|
|
34
|
-
horizontal: "horizontal",
|
|
35
|
-
vertical: "vertical",
|
|
36
|
-
}),
|
|
37
|
-
},
|
|
38
|
-
example: props => (_jsx(Divider, { emphasis: props.emphasis, lineStyle: props.lineStyle, direction: props.direction })),
|
|
39
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import figma from "@figma/code-connect";
|
|
3
|
-
import { Input } from "../input/index.js";
|
|
4
|
-
import { FormErrorMessage, FormHeader, FormHelperMessage, FormControl, } from "./index.js";
|
|
5
|
-
/**
|
|
6
|
-
* -- This file was auto-generated by Code Connect --
|
|
7
|
-
* None of your props could be automatically mapped to Figma properties.
|
|
8
|
-
* You should update the `props` object to include a mapping from your
|
|
9
|
-
* code props to Figma properties, and update the `example` function to
|
|
10
|
-
* return the code example you'd like to see in Figma
|
|
11
|
-
*/
|
|
12
|
-
// figma.connect(
|
|
13
|
-
// Form,
|
|
14
|
-
// "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=1274%3A66278",
|
|
15
|
-
// {
|
|
16
|
-
// props: {
|
|
17
|
-
// // No matching props could be found for these Figma properties:
|
|
18
|
-
// // "isErrorMessage": figma.boolean('isErrorMessage'),
|
|
19
|
-
// // "isHelpMessage": figma.boolean('isHelpMessage')
|
|
20
|
-
// },
|
|
21
|
-
// example: props => {
|
|
22
|
-
// return (
|
|
23
|
-
// <Form {...UseFormReturnType}>
|
|
24
|
-
// <FormField
|
|
25
|
-
// name="example"
|
|
26
|
-
// render={({ field, fieldState }) => (
|
|
27
|
-
// <FormItem>
|
|
28
|
-
// <FormHeader label="ラベル" />
|
|
29
|
-
// <FormHelperMessage>ヘルプメッセージ</FormHelperMessage>
|
|
30
|
-
// <FormControl>
|
|
31
|
-
// <Input
|
|
32
|
-
// placeholder="サンプルテキスト"
|
|
33
|
-
// {...field}
|
|
34
|
-
// {...fieldState}
|
|
35
|
-
// isInvalid={fieldState.invalid}
|
|
36
|
-
// />
|
|
37
|
-
// </FormControl>
|
|
38
|
-
// <FormErrorMessage />
|
|
39
|
-
// </FormItem>
|
|
40
|
-
// )}
|
|
41
|
-
// />
|
|
42
|
-
// </Form>
|
|
43
|
-
// );
|
|
44
|
-
// },
|
|
45
|
-
// }
|
|
46
|
-
// );
|
|
47
|
-
/**
|
|
48
|
-
* -- This file was auto-generated by Code Connect --
|
|
49
|
-
* None of your props could be automatically mapped to Figma properties.
|
|
50
|
-
* You should update the `props` object to include a mapping from your
|
|
51
|
-
* code props to Figma properties, and update the `example` function to
|
|
52
|
-
* return the code example you'd like to see in Figma
|
|
53
|
-
*/
|
|
54
|
-
figma.connect(FormErrorMessage, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=573%3A6321", {
|
|
55
|
-
props: {
|
|
56
|
-
// No matching props could be found for these Figma properties:
|
|
57
|
-
// "label": figma.string('label')
|
|
58
|
-
},
|
|
59
|
-
example: props => _jsx(FormErrorMessage, {}),
|
|
60
|
-
});
|
|
61
|
-
/**
|
|
62
|
-
* -- This file was auto-generated by Code Connect --
|
|
63
|
-
* `props` includes a mapping from your code props to Figma properties.
|
|
64
|
-
* You should check this is correct, and update the `example` function
|
|
65
|
-
* to return the code example you'd like to see in Figma
|
|
66
|
-
*/
|
|
67
|
-
figma.connect(FormHeader, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=573%3A4867", {
|
|
68
|
-
props: {
|
|
69
|
-
// These props were automatically mapped based on your linked code:
|
|
70
|
-
label: figma.string("label"),
|
|
71
|
-
isRequired: figma.boolean("isRequired"),
|
|
72
|
-
// No matching props could be found for these Figma properties:
|
|
73
|
-
helpText: figma.boolean("isHintTrigger", {
|
|
74
|
-
true: "有効",
|
|
75
|
-
false: undefined,
|
|
76
|
-
}),
|
|
77
|
-
},
|
|
78
|
-
example: props => (_jsx(FormHeader, { label: props.label, isRequired: props.isRequired, helpText: props.helpText })),
|
|
79
|
-
});
|
|
80
|
-
/**
|
|
81
|
-
* -- This file was auto-generated by Code Connect --
|
|
82
|
-
* None of your props could be automatically mapped to Figma properties.
|
|
83
|
-
* You should update the `props` object to include a mapping from your
|
|
84
|
-
* code props to Figma properties, and update the `example` function to
|
|
85
|
-
* return the code example you'd like to see in Figma
|
|
86
|
-
*/
|
|
87
|
-
figma.connect(FormHelperMessage, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=574%3A10563", {
|
|
88
|
-
props: {
|
|
89
|
-
// No matching props could be found for these Figma properties:
|
|
90
|
-
label: figma.string("label"),
|
|
91
|
-
},
|
|
92
|
-
example: props => _jsx(FormHelperMessage, { children: props.label }),
|
|
93
|
-
});
|
|
94
|
-
/**
|
|
95
|
-
* -- This file was auto-generated by Code Connect --
|
|
96
|
-
* None of your props could be automatically mapped to Figma properties.
|
|
97
|
-
* You should update the `props` object to include a mapping from your
|
|
98
|
-
* code props to Figma properties, and update the `example` function to
|
|
99
|
-
* return the code example you'd like to see in Figma
|
|
100
|
-
*/
|
|
101
|
-
figma.connect(FormControl, "https://www.figma.com/design/7alBZXZf65YgcII41TWT0r/Sparkle-Design?node-id=2831%3A2244", {
|
|
102
|
-
props: {
|
|
103
|
-
// No matching props could be found for these Figma properties:
|
|
104
|
-
// "unitLabel1": figma.string('unitLabel 1'),
|
|
105
|
-
// "unitLabel2": figma.string('unitLabel 2'),
|
|
106
|
-
// "unitLabel3": figma.string('unitLabel 3'),
|
|
107
|
-
// "isShowUnitLabel": figma.boolean('isShowUnitLabel'),
|
|
108
|
-
// "type": figma.enum('type', {
|
|
109
|
-
// "input": "input",
|
|
110
|
-
// "input unit 2": "input-unit-2",
|
|
111
|
-
// "input range": "input-range",
|
|
112
|
-
// "number": "number",
|
|
113
|
-
// "number range": "number-range",
|
|
114
|
-
// "select": "select",
|
|
115
|
-
// "select range": "select-range",
|
|
116
|
-
// "date": "date",
|
|
117
|
-
// "date range": "date-range",
|
|
118
|
-
// "time": "time",
|
|
119
|
-
// "time range": "time-range",
|
|
120
|
-
// "password": "password",
|
|
121
|
-
// "file": "file",
|
|
122
|
-
// "textarea": "textarea",
|
|
123
|
-
// "radio": "radio",
|
|
124
|
-
// "checkbox": "checkbox",
|
|
125
|
-
// "input unit 3": "input-unit-3"
|
|
126
|
-
// })
|
|
127
|
-
},
|
|
128
|
-
example: props => (_jsx(FormControl, { children: _jsx(Input, { placeholder: "\u30B5\u30F3\u30D7\u30EB\u30C6\u30AD\u30B9\u30C8" }) })),
|
|
129
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|