|
| 1 | +/** |
| 2 | + * Copyright IBM Corp. 2025, 2025 |
| 3 | + * |
| 4 | + * This source code is licensed under the Apache-2.0 license found in the |
| 5 | + * LICENSE file in the root directory of this source tree. |
| 6 | + */ |
| 7 | + |
| 8 | +import figma, { html } from '@figma/code-connect/html'; |
| 9 | + |
| 10 | +figma.connect( |
| 11 | + 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=9478%3A404998', |
| 12 | + { |
| 13 | + props: { |
| 14 | + aboutModalContentProps: figma.nestedProps('_About modal content', { |
| 15 | + title: figma.string('Title text'), |
| 16 | + version: figma.string('Version'), |
| 17 | + content: figma.boolean('Content', { |
| 18 | + true: figma.string('Content text'), |
| 19 | + false: undefined, |
| 20 | + }), |
| 21 | + copyrightText: figma.string('Copyright text'), |
| 22 | + links: figma.children(['Link group']), |
| 23 | + }), |
| 24 | + |
| 25 | + footerBaseProps: figma.boolean('Powered by logos', { |
| 26 | + true: figma.nestedProps('_About modal footer base', { |
| 27 | + additionalInfo: figma.children('Slot'), |
| 28 | + }), |
| 29 | + false: { |
| 30 | + additionalInfo: undefined, |
| 31 | + }, |
| 32 | + }), |
| 33 | + }, |
| 34 | + example: (props) => |
| 35 | + html`<c4p-about-modal |
| 36 | + closeIconDescription="close" |
| 37 | + copyrightText=${props.aboutModalContentProps.copyrightText} |
| 38 | + .logo=${props.aboutModalContentProps.logo} |
| 39 | + .title=${props.aboutModalContentProps.title} |
| 40 | + .version=${props.aboutModalContentProps.version} |
| 41 | + .additionalInfo=${props.aboutModalContentProps.additionalInfo} |
| 42 | + .content=${props.aboutModalContentProps.content} |
| 43 | + .links=${props.aboutModalContentProps.links} |
| 44 | + aria-label="" |
| 45 | + ></c4p-about-modal>`, |
| 46 | + imports: [ |
| 47 | + "import '@carbon/ibm-products-web-components/es/components/about-modal/index.js'", |
| 48 | + ], |
| 49 | + } |
| 50 | +); |
0 commit comments