@plasmicpkgs/antd5 0.0.99 → 0.0.100
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/.tsbuildinfo +1 -1
- package/dist/antd.esm.js +2 -2
- package/dist/antd.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/skinny/registerAvatar.cjs.js +1 -1
- package/skinny/registerAvatar.cjs.js.map +1 -1
- package/skinny/registerAvatar.esm.js +1 -1
- package/skinny/registerAvatar.esm.js.map +1 -1
- package/skinny/registerSteps.cjs.js +1 -1
- package/skinny/registerSteps.cjs.js.map +1 -1
- package/skinny/registerSteps.esm.js +1 -1
- package/skinny/registerSteps.esm.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plasmicpkgs/antd5",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.100",
|
|
4
4
|
"description": "Plasmic registration calls for antd components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"publishConfig": {
|
|
79
79
|
"access": "public"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "22ba786f40927a31c96ddee0d8b699d4bf0ab569"
|
|
82
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerAvatar.cjs.js","sources":["../src/registerAvatar.tsx"],"sourcesContent":["import React from \"react\";\nimport { Avatar } from \"antd\";\nimport { Registerable, registerComponentHelper } from \"./utils\";\nimport { usePlasmicLink } from \"@plasmicapp/host\";\n\nexport function AntdAvatar({\n letters,\n href,\n target,\n ...props\n}: React.ComponentProps<typeof Avatar> & {\n letters?: string;\n href?: string;\n target?: boolean;\n}) {\n const avatar = <Avatar {...props} children={props.children || letters} />;\n const PlasmicLink = usePlasmicLink();\n return href ? (\n <PlasmicLink href={href} target={target ? \"_blank\" : undefined}>\n {avatar}\n </PlasmicLink>\n ) : (\n avatar\n );\n}\n\nexport function AntdAvatarGroup(\n props: React.ComponentProps<typeof Avatar.Group>\n) {\n return <Avatar.Group {...props} />;\n}\n\nexport function registerAvatar(loader?: Registerable) {\n registerComponentHelper(loader, AntdAvatar, {\n name: \"plasmic-antd5-avatar\",\n displayName: \"Avatar\",\n props: {\n href: {\n type: \"href\",\n displayName: \"Link to\",\n description: \"Destination to link to\",\n },\n target: {\n type: \"boolean\",\n displayName: \"Open in new tab\",\n hidden: (ps) => !ps.href,\n },\n letters: {\n type: \"string\",\n description: \"Letters to show\",\n defaultValue: \"AB\",\n },\n src: {\n type: \"imageUrl\",\n description: \"Image to display\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\", \"large\"],\n description: \"Set the size of avatar\",\n defaultValueHint: \"default\",\n },\n shape: {\n type: \"choice\",\n options: [\"circle\", \"round\"],\n description: \"Set the avatar shape\",\n defaultValueHint: \"
|
|
1
|
+
{"version":3,"file":"registerAvatar.cjs.js","sources":["../src/registerAvatar.tsx"],"sourcesContent":["import React from \"react\";\nimport { Avatar } from \"antd\";\nimport { Registerable, registerComponentHelper } from \"./utils\";\nimport { usePlasmicLink } from \"@plasmicapp/host\";\n\nexport function AntdAvatar({\n letters,\n href,\n target,\n ...props\n}: React.ComponentProps<typeof Avatar> & {\n letters?: string;\n href?: string;\n target?: boolean;\n}) {\n const avatar = <Avatar {...props} children={props.children || letters} />;\n const PlasmicLink = usePlasmicLink();\n return href ? (\n <PlasmicLink href={href} target={target ? \"_blank\" : undefined}>\n {avatar}\n </PlasmicLink>\n ) : (\n avatar\n );\n}\n\nexport function AntdAvatarGroup(\n props: React.ComponentProps<typeof Avatar.Group>\n) {\n return <Avatar.Group {...props} />;\n}\n\nexport function registerAvatar(loader?: Registerable) {\n registerComponentHelper(loader, AntdAvatar, {\n name: \"plasmic-antd5-avatar\",\n displayName: \"Avatar\",\n props: {\n href: {\n type: \"href\",\n displayName: \"Link to\",\n description: \"Destination to link to\",\n },\n target: {\n type: \"boolean\",\n displayName: \"Open in new tab\",\n hidden: (ps) => !ps.href,\n },\n letters: {\n type: \"string\",\n description: \"Letters to show\",\n defaultValue: \"AB\",\n },\n src: {\n type: \"imageUrl\",\n description: \"Image to display\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\", \"large\"],\n description: \"Set the size of avatar\",\n defaultValueHint: \"default\",\n },\n shape: {\n type: \"choice\",\n options: [\"circle\", \"round\"],\n description: \"Set the avatar shape\",\n defaultValueHint: \"circle\",\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerAvatar\",\n importName: \"AntdAvatar\",\n });\n}\n\nexport function registerAvatarGroup(loader?: Registerable) {\n registerComponentHelper(loader, AntdAvatarGroup, {\n name: \"plasmic-antd5-avatar-group\",\n displayName: \"AvatarGroup\",\n props: {\n children: {\n type: \"slot\",\n defaultValue: [1, 2, 3, 4].map((user) => ({\n type: \"component\",\n name: \"plasmic-antd5-tooltip\",\n props: {\n titleText: \"User \" + user,\n children: {\n type: \"component\",\n name: \"plasmic-antd5-avatar\",\n props: {\n letters: `U${user}`,\n },\n },\n },\n })),\n },\n maxCount: {\n type: \"number\",\n description: \"Max avatars to show\",\n defaultValue: 2,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\", \"large\"],\n description: \"Default size of avatars\",\n defaultValueHint: \"default\",\n },\n maxPopoverPlacement: {\n type: \"choice\",\n advanced: true,\n options: [\"top\", \"bottom\"],\n defaultValueHint: \"top\",\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerAvatar\",\n importName: \"AntdAvatarGroup\",\n });\n}\n"],"names":["Avatar","usePlasmicLink","React","registerComponentHelper"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKO,SAAS,WAAW,EASxB,EAAA;AATwB,EACzB,IAAA,EAAA,GAAA,EAAA,EAAA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AA;AAAA,eACf;AAAA,aACF;AAAA,WACF;AAAA,SACA,CAAA,CAAA;AAAA,OACJ;AAAA,MACA,QAAU,EAAA;AAAA,QACR,IAAM,EAAA,QAAA;AAAA,QACN,WAAa,EAAA,qBAAA;AAAA,QACb,YAAc,EAAA,CAAA;AAAA,OAChB;AAAA,MACA,IAAM,EAAA;AAAA,QACJ,IAAM,EAAA,QAAA;AAAA,QACN,OAAS,EAAA,CAAC,OAAS,EAAA,SAAA,EAAW,OAAO,CAAA;AAAA,QACrC,WAAa,EAAA,yBAAA;AAAA,QACb,gBAAkB,EAAA,SAAA;AAAA,OACpB;AAAA,MACA,mBAAqB,EAAA;AAAA,QACnB,IAAM,EAAA,QAAA;AAAA,QACN,QAAU,EAAA,IAAA;AAAA,QACV,OAAA,EAAS,CAAC,KAAA,EAAO,QAAQ,CAAA;AAAA,QACzB,gBAAkB,EAAA,KAAA;AAAA,OACpB;AAAA,KACF;AAAA,IACA,UAAY,EAAA,0CAAA;AAAA,IACZ,UAAY,EAAA,iBAAA;AAAA,GACb,CAAA,CAAA;AACH;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerAvatar.esm.js","sources":["../src/registerAvatar.tsx"],"sourcesContent":["import React from \"react\";\nimport { Avatar } from \"antd\";\nimport { Registerable, registerComponentHelper } from \"./utils\";\nimport { usePlasmicLink } from \"@plasmicapp/host\";\n\nexport function AntdAvatar({\n letters,\n href,\n target,\n ...props\n}: React.ComponentProps<typeof Avatar> & {\n letters?: string;\n href?: string;\n target?: boolean;\n}) {\n const avatar = <Avatar {...props} children={props.children || letters} />;\n const PlasmicLink = usePlasmicLink();\n return href ? (\n <PlasmicLink href={href} target={target ? \"_blank\" : undefined}>\n {avatar}\n </PlasmicLink>\n ) : (\n avatar\n );\n}\n\nexport function AntdAvatarGroup(\n props: React.ComponentProps<typeof Avatar.Group>\n) {\n return <Avatar.Group {...props} />;\n}\n\nexport function registerAvatar(loader?: Registerable) {\n registerComponentHelper(loader, AntdAvatar, {\n name: \"plasmic-antd5-avatar\",\n displayName: \"Avatar\",\n props: {\n href: {\n type: \"href\",\n displayName: \"Link to\",\n description: \"Destination to link to\",\n },\n target: {\n type: \"boolean\",\n displayName: \"Open in new tab\",\n hidden: (ps) => !ps.href,\n },\n letters: {\n type: \"string\",\n description: \"Letters to show\",\n defaultValue: \"AB\",\n },\n src: {\n type: \"imageUrl\",\n description: \"Image to display\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\", \"large\"],\n description: \"Set the size of avatar\",\n defaultValueHint: \"default\",\n },\n shape: {\n type: \"choice\",\n options: [\"circle\", \"round\"],\n description: \"Set the avatar shape\",\n defaultValueHint: \"
|
|
1
|
+
{"version":3,"file":"registerAvatar.esm.js","sources":["../src/registerAvatar.tsx"],"sourcesContent":["import React from \"react\";\nimport { Avatar } from \"antd\";\nimport { Registerable, registerComponentHelper } from \"./utils\";\nimport { usePlasmicLink } from \"@plasmicapp/host\";\n\nexport function AntdAvatar({\n letters,\n href,\n target,\n ...props\n}: React.ComponentProps<typeof Avatar> & {\n letters?: string;\n href?: string;\n target?: boolean;\n}) {\n const avatar = <Avatar {...props} children={props.children || letters} />;\n const PlasmicLink = usePlasmicLink();\n return href ? (\n <PlasmicLink href={href} target={target ? \"_blank\" : undefined}>\n {avatar}\n </PlasmicLink>\n ) : (\n avatar\n );\n}\n\nexport function AntdAvatarGroup(\n props: React.ComponentProps<typeof Avatar.Group>\n) {\n return <Avatar.Group {...props} />;\n}\n\nexport function registerAvatar(loader?: Registerable) {\n registerComponentHelper(loader, AntdAvatar, {\n name: \"plasmic-antd5-avatar\",\n displayName: \"Avatar\",\n props: {\n href: {\n type: \"href\",\n displayName: \"Link to\",\n description: \"Destination to link to\",\n },\n target: {\n type: \"boolean\",\n displayName: \"Open in new tab\",\n hidden: (ps) => !ps.href,\n },\n letters: {\n type: \"string\",\n description: \"Letters to show\",\n defaultValue: \"AB\",\n },\n src: {\n type: \"imageUrl\",\n description: \"Image to display\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\", \"large\"],\n description: \"Set the size of avatar\",\n defaultValueHint: \"default\",\n },\n shape: {\n type: \"choice\",\n options: [\"circle\", \"round\"],\n description: \"Set the avatar shape\",\n defaultValueHint: \"circle\",\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerAvatar\",\n importName: \"AntdAvatar\",\n });\n}\n\nexport function registerAvatarGroup(loader?: Registerable) {\n registerComponentHelper(loader, AntdAvatarGroup, {\n name: \"plasmic-antd5-avatar-group\",\n displayName: \"AvatarGroup\",\n props: {\n children: {\n type: \"slot\",\n defaultValue: [1, 2, 3, 4].map((user) => ({\n type: \"component\",\n name: \"plasmic-antd5-tooltip\",\n props: {\n titleText: \"User \" + user,\n children: {\n type: \"component\",\n name: \"plasmic-antd5-avatar\",\n props: {\n letters: `U${user}`,\n },\n },\n },\n })),\n },\n maxCount: {\n type: \"number\",\n description: \"Max avatars to show\",\n defaultValue: 2,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\", \"large\"],\n description: \"Default size of avatars\",\n defaultValueHint: \"default\",\n },\n maxPopoverPlacement: {\n type: \"choice\",\n advanced: true,\n options: [\"top\", \"bottom\"],\n defaultValueHint: \"top\",\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerAvatar\",\n importName: \"AntdAvatarGroup\",\n });\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKO,SAAS,WAAW,EASxB,EAAA;AATwB,EACzB,IAAA,EAAA,GAAA,EAAA,EAAA;AAAA,IAAA,OAAA;AAAA,IACA,IAAA;AAAA,IACA,MAAA;AAAA,GARF,GAK2B,EAItB,EAAA,KAAA,GAAA,SAAA,CAJsB,EAItB,EAAA;AAAA,IAHH,SAAA;AAAA,IACA,MAAA;AAAA,IACA,QAAA;AAAA,GAAA,CAAA,CAAA;AAOA,EAAM,MAAA,MAAA,uCAAU,MAAW,EAAA,aAAA,C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N,OAAS,EAAA,CAAC,OAAS,EAAA,SAAA,EAAW,OAAO,CAAA;AAAA,QACrC,WAAa,EAAA,yBAAA;AAAA,QACb,gBAAkB,EAAA,SAAA;AAAA,OACpB;AAAA,MACA,mBAAqB,EAAA;AAAA,QACnB,IAAM,EAAA,QAAA;AAAA,QACN,QAAU,EAAA,IAAA;AAAA,QACV,OAAA,EAAS,CAAC,KAAA,EAAO,QAAQ,CAAA;AAAA,QACzB,gBAAkB,EAAA,KAAA;AAAA,OACpB;AAAA,KACF;AAAA,IACA,UAAY,EAAA,0CAAA;AAAA,IACZ,UAAY,EAAA,iBAAA;AAAA,GACb,CAAA,CAAA;AACH;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerSteps.cjs.js","sources":["../src/registerSteps.tsx"],"sourcesContent":["import React from \"react\";\nimport { Steps } from \"antd\";\nimport { Registerable, registerComponentHelper } from \"./utils\";\n\nexport function AntdSteps(props: React.ComponentProps<typeof Steps>) {\n return <Steps {...props} />;\n}\n\nexport function registerSteps(loader?: Registerable) {\n const statusOptions = [\"wait\", \"process\", \"finish\", \"error\"];\n registerComponentHelper(loader, AntdSteps, {\n name: \"plasmic-antd5-steps\",\n displayName: \"Steps\",\n props: {\n items: {\n type: \"array\",\n itemType: {\n type: \"object\",\n nameFunc: (item) => item.title,\n fields: {\n title: \"string\",\n description: \"string\",\n subTitle: \"string\",\n disabled: \"boolean\",\n status: {\n displayName: \"Status\",\n type: \"choice\",\n options: statusOptions,\n defaultValueHint: \"wait\",\n },\n // TODO icon: 'slot',\n },\n },\n defaultValue: [\n {\n title: \"Applied\",\n description: \"Application has been submitted.\",\n },\n {\n title: \"In Review\",\n description: \"Application is being reviewed.\",\n },\n {\n title: \"Closed\",\n description: \"Final decision on the application.\",\n },\n ],\n },\n current: {\n type: \"number\",\n displayName: \"Current step\",\n defaultValue: 1,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\"],\n description: \"Set the size of steps\",\n defaultValueHint: \"default\",\n },\n direction: {\n type: \"choice\",\n options: [\"horizontal\", \"vertical\"],\n description: \"Direction of steps\",\n defaultValueHint: \"
|
|
1
|
+
{"version":3,"file":"registerSteps.cjs.js","sources":["../src/registerSteps.tsx"],"sourcesContent":["import React from \"react\";\nimport { Steps } from \"antd\";\nimport { Registerable, registerComponentHelper } from \"./utils\";\n\nexport function AntdSteps(props: React.ComponentProps<typeof Steps>) {\n return <Steps {...props} />;\n}\n\nexport function registerSteps(loader?: Registerable) {\n const statusOptions = [\"wait\", \"process\", \"finish\", \"error\"];\n registerComponentHelper(loader, AntdSteps, {\n name: \"plasmic-antd5-steps\",\n displayName: \"Steps\",\n props: {\n items: {\n type: \"array\",\n itemType: {\n type: \"object\",\n nameFunc: (item) => item.title,\n fields: {\n title: \"string\",\n description: \"string\",\n subTitle: \"string\",\n disabled: \"boolean\",\n status: {\n displayName: \"Status\",\n type: \"choice\",\n options: statusOptions,\n defaultValueHint: \"wait\",\n },\n // TODO icon: 'slot',\n },\n },\n defaultValue: [\n {\n title: \"Applied\",\n description: \"Application has been submitted.\",\n },\n {\n title: \"In Review\",\n description: \"Application is being reviewed.\",\n },\n {\n title: \"Closed\",\n description: \"Final decision on the application.\",\n },\n ],\n },\n current: {\n type: \"number\",\n displayName: \"Current step\",\n defaultValue: 1,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\"],\n description: \"Set the size of steps\",\n defaultValueHint: \"default\",\n },\n direction: {\n type: \"choice\",\n options: [\"horizontal\", \"vertical\"],\n description: \"Direction of steps\",\n defaultValueHint: \"horizontal\",\n },\n progressDot: {\n type: \"boolean\",\n displayName: \"Dot style\",\n },\n status: {\n displayName: \"Status of current step\",\n type: \"choice\",\n options: statusOptions,\n defaultValueHint: \"process\",\n },\n type: {\n type: \"choice\",\n options: [\"default\", \"navigation\", \"inline\"],\n defaultValueHint: \"default\",\n },\n percent: {\n advanced: true,\n type: \"number\",\n description: \"Number between 0 to 100\",\n },\n responsive: {\n advanced: true,\n type: \"boolean\",\n description: \"Change to vertical when screen narrower than 532px\",\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"step\",\n type: \"number\",\n },\n ],\n },\n },\n states: {\n current: {\n type: \"writable\",\n valueProp: \"current\",\n onChangeProp: \"onChange\",\n variableType: \"number\",\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerSteps\",\n importName: \"AntdSteps\",\n });\n}\n"],"names":["React","Steps","registerComponentHelper"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIO,SAAS,UAAU,KAA2C,EAAA;AACnE,EAAO,uBAAAA,sBAAA,CAAA,aAAA,CAACC,+BAAU,KAAO,CAAA,CAAA,CAAA;AAC3B,CAAA;AAEO,SAAS,cAAc,MAAuB,EAAA;AACnD,EAAA,MAAM,aAAgB,GAAA,CAAC,MAAQ,EAAA,SAAA,EAAW,UAAU,OAAO,CAAA,CAAA;AAC3D,EAAAC,6BAAA,CAAwB,QAAQ,SAAW,EAAA;AAAA,IACzC,IAAM,EAAA,qBAAA;AAAA,IACN,WAAa,EAAA,OAAA;AAAA,IACb,KAAO,EAAA;AAAA,MACL,KAAO,EAAA;AAAA,QACL,IAAM,EAAA,OAAA;AAAA,QACN,QAAU,EAAA;AAAA,UACR,IAAM,EAAA,QAAA;AAAA,UACN,QAAA,EAAU,CAAC,IAAA,KAAS,IAAK,CAAA,KAAA;AAAA,UACzB,MAAQ,EAAA;AAAA,YACN,KAAO,EAAA,QAAA;AAAA,YACP,WAAa,EAAA,QAAA;AAAA,YACb,QAAU,EAAA,QAAA;AAAA,YACV,QAAU,EAAA,SAAA;AAAA,YACV,MAAQ,EAAA;AAAA,cACN,WAAa,EAAA,QAAA;AAAA,cACb,IAAM,EAAA,QAAA;AAAA,cACN,OAAS,EAAA,aAAA;AAAA,cACT,gBAAkB,EAAA,MAAA;AAAA,aACpB;AAAA;AAAA,WAEF;AAAA,SACF;AAAA,QACA,YAAc,EAAA;AAAA,UACZ;AAAA,YACE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a,EAAA,yBAAA;AAAA,OACf;AAAA,MACA,UAAY,EAAA;AAAA,QACV,QAAU,EAAA,IAAA;AAAA,QACV,IAAM,EAAA,SAAA;AAAA,QACN,WAAa,EAAA,oDAAA;AAAA,OACf;AAAA,MACA,QAAU,EAAA;AAAA,QACR,IAAM,EAAA,cAAA;AAAA,QACN,QAAU,EAAA;AAAA,UACR;AAAA,YACE,IAAM,EAAA,MAAA;AAAA,YACN,IAAM,EAAA,QAAA;AAAA,WACR;AAAA,SACF;AAAA,OACF;AAAA,KACF;AAAA,IACA,MAAQ,EAAA;AAAA,MACN,OAAS,EAAA;AAAA,QACP,IAAM,EAAA,UAAA;AAAA,QACN,SAAW,EAAA,SAAA;AAAA,QACX,YAAc,EAAA,UAAA;AAAA,QACd,YAAc,EAAA,QAAA;AAAA,OAChB;AAAA,KACF;AAAA,IACA,UAAY,EAAA,yCAAA;AAAA,IACZ,UAAY,EAAA,WAAA;AAAA,GACb,CAAA,CAAA;AACH;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registerSteps.esm.js","sources":["../src/registerSteps.tsx"],"sourcesContent":["import React from \"react\";\nimport { Steps } from \"antd\";\nimport { Registerable, registerComponentHelper } from \"./utils\";\n\nexport function AntdSteps(props: React.ComponentProps<typeof Steps>) {\n return <Steps {...props} />;\n}\n\nexport function registerSteps(loader?: Registerable) {\n const statusOptions = [\"wait\", \"process\", \"finish\", \"error\"];\n registerComponentHelper(loader, AntdSteps, {\n name: \"plasmic-antd5-steps\",\n displayName: \"Steps\",\n props: {\n items: {\n type: \"array\",\n itemType: {\n type: \"object\",\n nameFunc: (item) => item.title,\n fields: {\n title: \"string\",\n description: \"string\",\n subTitle: \"string\",\n disabled: \"boolean\",\n status: {\n displayName: \"Status\",\n type: \"choice\",\n options: statusOptions,\n defaultValueHint: \"wait\",\n },\n // TODO icon: 'slot',\n },\n },\n defaultValue: [\n {\n title: \"Applied\",\n description: \"Application has been submitted.\",\n },\n {\n title: \"In Review\",\n description: \"Application is being reviewed.\",\n },\n {\n title: \"Closed\",\n description: \"Final decision on the application.\",\n },\n ],\n },\n current: {\n type: \"number\",\n displayName: \"Current step\",\n defaultValue: 1,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\"],\n description: \"Set the size of steps\",\n defaultValueHint: \"default\",\n },\n direction: {\n type: \"choice\",\n options: [\"horizontal\", \"vertical\"],\n description: \"Direction of steps\",\n defaultValueHint: \"
|
|
1
|
+
{"version":3,"file":"registerSteps.esm.js","sources":["../src/registerSteps.tsx"],"sourcesContent":["import React from \"react\";\nimport { Steps } from \"antd\";\nimport { Registerable, registerComponentHelper } from \"./utils\";\n\nexport function AntdSteps(props: React.ComponentProps<typeof Steps>) {\n return <Steps {...props} />;\n}\n\nexport function registerSteps(loader?: Registerable) {\n const statusOptions = [\"wait\", \"process\", \"finish\", \"error\"];\n registerComponentHelper(loader, AntdSteps, {\n name: \"plasmic-antd5-steps\",\n displayName: \"Steps\",\n props: {\n items: {\n type: \"array\",\n itemType: {\n type: \"object\",\n nameFunc: (item) => item.title,\n fields: {\n title: \"string\",\n description: \"string\",\n subTitle: \"string\",\n disabled: \"boolean\",\n status: {\n displayName: \"Status\",\n type: \"choice\",\n options: statusOptions,\n defaultValueHint: \"wait\",\n },\n // TODO icon: 'slot',\n },\n },\n defaultValue: [\n {\n title: \"Applied\",\n description: \"Application has been submitted.\",\n },\n {\n title: \"In Review\",\n description: \"Application is being reviewed.\",\n },\n {\n title: \"Closed\",\n description: \"Final decision on the application.\",\n },\n ],\n },\n current: {\n type: \"number\",\n displayName: \"Current step\",\n defaultValue: 1,\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"default\"],\n description: \"Set the size of steps\",\n defaultValueHint: \"default\",\n },\n direction: {\n type: \"choice\",\n options: [\"horizontal\", \"vertical\"],\n description: \"Direction of steps\",\n defaultValueHint: \"horizontal\",\n },\n progressDot: {\n type: \"boolean\",\n displayName: \"Dot style\",\n },\n status: {\n displayName: \"Status of current step\",\n type: \"choice\",\n options: statusOptions,\n defaultValueHint: \"process\",\n },\n type: {\n type: \"choice\",\n options: [\"default\", \"navigation\", \"inline\"],\n defaultValueHint: \"default\",\n },\n percent: {\n advanced: true,\n type: \"number\",\n description: \"Number between 0 to 100\",\n },\n responsive: {\n advanced: true,\n type: \"boolean\",\n description: \"Change to vertical when screen narrower than 532px\",\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"step\",\n type: \"number\",\n },\n ],\n },\n },\n states: {\n current: {\n type: \"writable\",\n valueProp: \"current\",\n onChangeProp: \"onChange\",\n variableType: \"number\",\n },\n },\n importPath: \"@plasmicpkgs/antd5/skinny/registerSteps\",\n importName: \"AntdSteps\",\n });\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAIO,SAAS,UAAU,KAA2C,EAAA;AACnE,EAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,0BAAU,KAAO,CAAA,CAAA,CAAA;AAC3B,CAAA;AAEO,SAAS,cAAc,MAAuB,EAAA;AACnD,EAAA,MAAM,aAAgB,GAAA,CAAC,MAAQ,EAAA,SAAA,EAAW,UAAU,OAAO,CAAA,CAAA;AAC3D,EAAA,uBAAA,CAAwB,QAAQ,SAAW,EAAA;AAAA,IACzC,IAAM,EAAA,qBAAA;AAAA,IACN,WAAa,EAAA,OAAA;AAAA,IACb,KAAO,EAAA;AAAA,MACL,KAAO,EAAA;AAAA,QACL,IAAM,EAAA,OAAA;AAAA,QACN,QAAU,EAAA;AAAA,UACR,IAAM,EAAA,QAAA;AAAA,UACN,QAAA,EAAU,CAAC,IAAA,KAAS,IAAK,CAAA,KAAA;AAAA,UACzB,MAAQ,EAAA;AAAA,YACN,KAAO,EAAA,QAAA;AAAA,YACP,WAAa,EAAA,QAAA;AAAA,YACb,QAAU,EAAA,QAAA;AAAA,YACV,QAAU,EAAA,SAAA;AAAA,YACV,MAAQ,EAAA;AAAA,cACN,WAAa,EAAA,QAAA;AAAA,cACb,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