sparkle-design 1.0.0 → 1.0.2

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.
Files changed (57) hide show
  1. package/README.en.md +11 -1
  2. package/README.md +11 -1
  3. package/package.json +7 -3
  4. package/dist/components/ui/badge/index.figma.d.ts +0 -1
  5. package/dist/components/ui/badge/index.figma.js +0 -28
  6. package/dist/components/ui/breadcrumb/index.figma.d.ts +0 -1
  7. package/dist/components/ui/breadcrumb/index.figma.js +0 -28
  8. package/dist/components/ui/button/index.figma.d.ts +0 -1
  9. package/dist/components/ui/button/index.figma.js +0 -59
  10. package/dist/components/ui/card/index.figma.d.ts +0 -1
  11. package/dist/components/ui/card/index.figma.js +0 -28
  12. package/dist/components/ui/checkbox/index.figma.d.ts +0 -1
  13. package/dist/components/ui/checkbox/index.figma.js +0 -34
  14. package/dist/components/ui/dialog/index.figma.d.ts +0 -1
  15. package/dist/components/ui/dialog/index.figma.js +0 -21
  16. package/dist/components/ui/divider/index.figma.d.ts +0 -1
  17. package/dist/components/ui/divider/index.figma.js +0 -39
  18. package/dist/components/ui/form/index.figma.d.ts +0 -1
  19. package/dist/components/ui/form/index.figma.js +0 -129
  20. package/dist/components/ui/icon/index.figma.d.ts +0 -1
  21. package/dist/components/ui/icon/index.figma.js +0 -1858
  22. package/dist/components/ui/icon-button/index.figma.d.ts +0 -1
  23. package/dist/components/ui/icon-button/index.figma.js +0 -43
  24. package/dist/components/ui/inline-message/index.figma.d.ts +0 -1
  25. package/dist/components/ui/inline-message/index.figma.js +0 -26
  26. package/dist/components/ui/input/index.figma.d.ts +0 -1
  27. package/dist/components/ui/input/index.figma.js +0 -36
  28. package/dist/components/ui/input-password/index.figma.d.ts +0 -1
  29. package/dist/components/ui/input-password/index.figma.js +0 -36
  30. package/dist/components/ui/link/index.figma.d.ts +0 -1
  31. package/dist/components/ui/link/index.figma.js +0 -22
  32. package/dist/components/ui/modal/index.figma.d.ts +0 -1
  33. package/dist/components/ui/modal/index.figma.js +0 -61
  34. package/dist/components/ui/overlay/index.figma.d.ts +0 -1
  35. package/dist/components/ui/overlay/index.figma.js +0 -14
  36. package/dist/components/ui/radio/index.figma.d.ts +0 -1
  37. package/dist/components/ui/radio/index.figma.js +0 -63
  38. package/dist/components/ui/select/index.figma.d.ts +0 -1
  39. package/dist/components/ui/select/index.figma.js +0 -30
  40. package/dist/components/ui/skeleton/index.figma.d.ts +0 -1
  41. package/dist/components/ui/skeleton/index.figma.js +0 -14
  42. package/dist/components/ui/slider/index.figma.d.ts +0 -1
  43. package/dist/components/ui/slider/index.figma.js +0 -28
  44. package/dist/components/ui/spinner/index.figma.d.ts +0 -1
  45. package/dist/components/ui/spinner/index.figma.js +0 -16
  46. package/dist/components/ui/switch/index.figma.d.ts +0 -1
  47. package/dist/components/ui/switch/index.figma.js +0 -27
  48. package/dist/components/ui/tabs/index.figma.d.ts +0 -1
  49. package/dist/components/ui/tabs/index.figma.js +0 -55
  50. package/dist/components/ui/tag/index.figma.d.ts +0 -1
  51. package/dist/components/ui/tag/index.figma.js +0 -32
  52. package/dist/components/ui/textarea/index.figma.d.ts +0 -1
  53. package/dist/components/ui/textarea/index.figma.js +0 -27
  54. package/dist/components/ui/toast/index.figma.d.ts +0 -1
  55. package/dist/components/ui/toast/index.figma.js +0 -26
  56. package/dist/components/ui/tooltip/index.figma.d.ts +0 -1
  57. package/dist/components/ui/tooltip/index.figma.js +0 -23
package/README.en.md CHANGED
@@ -38,7 +38,7 @@ This automatically:
38
38
 
39
39
  1. Detects your package manager (pnpm / npm / yarn / bun)
40
40
  2. Adds `sparkle-design` to dependencies and `tailwindcss` + `@tailwindcss/postcss` to devDependencies
41
- 3. Generates `sparkle.config.json` / `postcss.config.mjs` / `globals.css` if missing
41
+ 3. Generates `sparkle.config.json` / `postcss.config.mjs` / Tailwind entry CSS (Next.js: `globals.css`, Vite: `index.css`) if missing
42
42
  4. Adds a Sparkle Design guard block and `lint:sparkle` script to `CLAUDE.md`
43
43
  5. Generates `sparkle-design.css` and `SparkleHead.tsx`
44
44
 
@@ -65,6 +65,16 @@ export default function RootLayout({ children }) {
65
65
 
66
66
  Customize primary color, fonts, border radius, and more via `sparkle.config.json`. To tweak settings inside Figma, the [Sparkle Design Theme Settings](https://www.figma.com/community/plugin/1443500367756891364/sparkle-design-theme-settings) plugin is available. See `sparkle-design-cli generate --help` for details.
67
67
 
68
+ > **⚠️ Note for TailwindCSS v4 when using sparkle-design as an npm package:** TailwindCSS v4 does not automatically scan utility classes inside `node_modules`. When consuming `sparkle-design` as an npm package, your entry CSS needs an `@source` directive like the one below:
69
+ >
70
+ > ```css
71
+ > @import "tailwindcss";
72
+ > @source "../../node_modules/sparkle-design/dist";
73
+ > @import "./sparkle-design.css";
74
+ > ```
75
+ >
76
+ > From `sparkle-design-cli` v2.0.6 onward, `generate` / `setup` **auto-scans your `package.json`** (dependencies / devDependencies) and automatically inserts the matching `@source` directive when it detects `sparkle-design`. No manual config is required. If you want to include additional design system packages, add them to `extend.source-packages` in `sparkle.config.json`; the detected packages and your explicit list will be merged.
77
+
68
78
  #### Installing as an AI Agent Skill (optional)
69
79
 
70
80
  If you use an AI agent such as Claude Code, Codex, or Cursor, you can also install the Sparkle Design skills with [Vercel's skills CLI](https://github.com/vercel-labs/skills) to have the agent walk you through setup.
package/README.md CHANGED
@@ -38,7 +38,7 @@ npx --yes sparkle-design-cli setup --assistant claude
38
38
 
39
39
  1. パッケージマネージャー(pnpm / npm / yarn / bun)を自動検出
40
40
  2. `sparkle-design` を dependencies、`tailwindcss` + `@tailwindcss/postcss` を devDependencies に追加
41
- 3. `sparkle.config.json` / `postcss.config.mjs` / `globals.css` を必要に応じて生成
41
+ 3. `sparkle.config.json` / `postcss.config.mjs` / Tailwind エントリ CSS(Next.js: `globals.css`、Vite: `index.css`)を必要に応じて生成
42
42
  4. `CLAUDE.md` に Sparkle Design ガードブロックと `lint:sparkle` スクリプトを追加
43
43
  5. `sparkle-design.css` と `SparkleHead.tsx` を生成
44
44
 
@@ -65,6 +65,16 @@ export default function RootLayout({ children }) {
65
65
 
66
66
  `sparkle.config.json` でプライマリカラー・フォント・角丸などをカスタマイズできます。Figma 上で設定を調整したい場合は [Sparkle Design Theme Settings](https://www.figma.com/community/plugin/1443500367756891364/sparkle-design-theme-settings) プラグインを利用できます。詳細は `sparkle-design-cli generate --help` を参照してください。
67
67
 
68
+ > **⚠️ TailwindCSS v4 で npm package として使う場合の注意:** TailwindCSS v4 は `node_modules` 内のユーティリティクラスを自動スキャンしないため、`sparkle-design` を npm package として使うときはエントリ CSS に以下のような `@source` ディレクティブが必要です。
69
+ >
70
+ > ```css
71
+ > @import "tailwindcss";
72
+ > @source "../../node_modules/sparkle-design/dist";
73
+ > @import "./sparkle-design.css";
74
+ > ```
75
+ >
76
+ > `sparkle-design-cli` v2.0.6 以降は、`generate` / `setup` 実行時に **`package.json` の dependencies / devDependencies を自動スキャン** し、`sparkle-design` が含まれていれば該当する `@source` を自動挿入します。`sparkle.config.json` 側で何も設定しなくても動きます。独自のデザインシステムパッケージを併用したい場合のみ `extend.source-packages` に追記すると、自動検出分と合算されます。
77
+
68
78
  #### AI エージェントに Skill として導入する場合(任意)
69
79
 
70
80
  Claude Code / Codex / Cursor などの AI エージェントを使っている場合は、[Vercel の skills CLI](https://github.com/vercel-labs/skills) 経由で Sparkle Design のスキルセットを導入しておくと、会話から誘導してもらうこともできます。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sparkle-design",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org",
6
6
  "access": "public"
@@ -53,7 +53,6 @@
53
53
  "update:public-domain": "node scripts/update-public-domain.mjs"
54
54
  },
55
55
  "dependencies": {
56
- "@figma/code-connect": "^1.3.4",
57
56
  "@hookform/resolvers": "^5.2.2",
58
57
  "class-variance-authority": "^0.7.1",
59
58
  "clsx": "^2.1.1",
@@ -71,6 +70,7 @@
71
70
  },
72
71
  "devDependencies": {
73
72
  "@chromatic-com/storybook": "^5.1.1",
73
+ "@figma/code-connect": "^1.3.4",
74
74
  "@storybook/addon-a11y": "^10.3.5",
75
75
  "@storybook/addon-docs": "^10.3.5",
76
76
  "@storybook/addon-onboarding": "^10.3.5",
@@ -124,7 +124,11 @@
124
124
  "glob@>=11.0.0 <11.1.0": "^11.1.0",
125
125
  "js-yaml@>=4.0.0 <4.1.1": "^4.1.1",
126
126
  "playwright": "^1.59.1",
127
- "form-data": "^4.0.4"
127
+ "form-data": "^4.0.4",
128
+ "hono": "^4.12.14",
129
+ "yaml@>=2.0.0 <2.8.3": "^2.8.3",
130
+ "@eslint/plugin-kit": "^0.3.4",
131
+ "brace-expansion@<1.1.13": "^1.1.13"
128
132
  }
129
133
  },
130
134
  "main": "./dist/index.js",
@@ -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 {};