@infineon/infineon-design-system-stencil 20.38.6 → 20.38.7

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.
@@ -23,7 +23,8 @@ export default {
23
23
  },
24
24
  position: {
25
25
  options: ['left', 'right'],
26
- control: { type: 'radio' }
26
+ control: { type: 'radio' },
27
+ if: { arg: 'direction', eq: 'horizontal' }
27
28
  },
28
29
  target: {
29
30
  options: ['_blank', '_self', '_parent'],
@@ -65,13 +66,8 @@ const DefaultTemplate = (args) => `<ifx-card direction="${args.direction}" href=
65
66
  </ifx-card-links>` : ""}
66
67
  </ifx-card>`;
67
68
  export const Default = DefaultTemplate.bind({});
68
- Default.argTypes = {
69
- src: "https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg",
70
- position: {
71
- table: {
72
- disable: true
73
- }
74
- }
69
+ Default.args = {
70
+ src: "https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg"
75
71
  };
76
72
  const HorizontalTemplate = (args) => `<ifx-card direction="${args.direction}" href="${args.href}" target="${args.target}">
77
73
  <ifx-card-image position="${args.position}" src="${args.src}" alt="" slot="img"></ifx-card-image>
@@ -90,6 +86,11 @@ const HorizontalTemplate = (args) => `<ifx-card direction="${args.direction}" hr
90
86
  ${args.description}
91
87
  </ifx-card-text>`
92
88
  : ""}
89
+ ${args.button === 'button'
90
+ ? `<ifx-card-links slot="buttons">
91
+ <ifx-button variant="primary">Button</ifx-button>
92
+ <ifx-button variant="secondary">Button</ifx-button>
93
+ </ifx-card-links>` : ""}
93
94
  ${args.button === 'link'
94
95
  ? `<ifx-card-links slot="buttons">
95
96
  <ifx-link color="primary" href="https://google.com" target="_blank" underline="false">
@@ -103,17 +104,15 @@ const HorizontalTemplate = (args) => `<ifx-card direction="${args.direction}" hr
103
104
  </ifx-card-links>` : ""}
104
105
  </ifx-card>`;
105
106
  export const Horizontal = HorizontalTemplate.bind({});
106
- Horizontal.argTypes = {
107
+ Horizontal.args = {
107
108
  direction: 'horizontal',
108
- src: "https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg",
109
- image: {
109
+ src: "https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg"
110
+ };
111
+ Horizontal.argTypes = {
112
+ direction: {
110
113
  table: {
111
114
  disable: true
112
115
  }
113
- },
114
- button: {
115
- options: ['link', 'none'],
116
- control: { type: 'radio' },
117
- },
116
+ }
118
117
  };
119
118
  //# sourceMappingURL=card.stories.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.stories.js","sourceRoot":"","sources":["../../../src/components/card/card.stories.ts"],"names":[],"mappings":"AACA,eAAe;EACb,KAAK,EAAE,iBAAiB;EACxB,IAAI,EAAE,CAAC,UAAU,CAAC;EAClB,IAAI,EAAE;IACJ,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,gGAAgG;IAC7G,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,OAAO;IACjB,GAAG,EAAE,+EAA+E;GACrF;EAED,QAAQ,EAAE;IACR,MAAM,EAAE;MACN,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;MACnC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KAC3B;IACD,SAAS,EAAE;MACT,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;MACnC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KAC3B;IAED,QAAQ,EAAE;MACR,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;MAC1B,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KAC3B;IACD,MAAM,EAAE;MACN,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;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A,IAAI,CAAC,QAAQ;EACjB,CAAC,CAAC;YACM,IAAI,CAAC,QAAQ;+BACM;EAC3B,CAAC,CAAC,EAAE;UACE,IAAI,CAAC,WAAW;EACtB,CAAC,CAAC;cACQ,IAAI,CAAC,WAAW;6BACD;EACzB,CAAC,CAAC,EAAE;YACI,IAAI,CAAC,MAAM,KAAK,MAAM;EAC9B,CAAC,CAAC;;;;;;;;;0BASoB,CAAC,CAAC,CAAC,EAAE;cACjB,CAAC;AAGf,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,UAAU,CAAC,QAAQ,GAAG;EACpB,SAAS,EAAE,YAAY;EACvB,GAAG,EAAE,+EAA+E;EACpF,KAAK,EAAE;IACL,KAAK,EAAE;MACL,OAAO,EAAE,IAAI;KACd;GACF;EACD,MAAM,EAAE;IACN,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IACzB,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;GAC3B;CACF,CAAA","sourcesContent":["\nexport default {\n title: \"Components/Card\",\n tags: ['autodocs'],\n args: {\n direction: 'vertical',\n overline: \"Overline\",\n headline: \"Headline\",\n description: \"Some quick example text to build on the card title and make up the bulk of the card's content.\",\n button: 'button',\n href: \"\",\n target: '_blank',\n position: 'right',\n src: \"https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg\"\n },\n\n argTypes: {\n button: {\n options: ['button', 'link', 'none'],\n control: { type: 'radio' }\n },\n direction: {\n options: ['horizontal', 'vertical'],\n control: { type: 'radio' }\n },\n\n position: {\n options: ['left', 'right'],\n control: { type: 'radio' }\n },\n target: {\n options: ['_blank', '_self', '_parent'],\n control: { type: 'radio' }\n }\n }\n};\n\nconst DefaultTemplate = (args) =>\n `<ifx-card direction=\"${args.direction}\" href=\"${args.href}\" target=\"${args.target}\">\n <ifx-card-image position=\"${args.position}\" src=\"${args.src}\" alt=\"\" slot=\"img\"></ifx-card-image>\n ${args.overline\n ? `<ifx-card-overline>\n ${args.overline}\n </ifx-card-overline>`\n : \"\"}\n ${args.headline\n ? `<ifx-card-headline>\n ${args.headline}\n </ifx-card-headline>`\n : \"\"}\n ${args.description\n ? `<ifx-card-text>\n ${args.description}\n </ifx-card-text>` : \"\"}\n ${args.button === 'button'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-button variant=\"primary\">Button</ifx-button>\n <ifx-button variant=\"secondary\">Button</ifx-button>\n </ifx-card-links>` : \"\"}\n ${args.button === 'link'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-link href=\"https://google.com\" target=\"_blank\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n <ifx-link href=\"https://yahoo.com\" target=\"_blank\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n </ifx-card-links>` : \"\"}\n </ifx-card>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {\n src: \"https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg\",\n position: {\n table: {\n disable: true\n }\n }\n}\n\nconst HorizontalTemplate = (args) =>\n `<ifx-card direction=\"${args.direction}\" href=\"${args.href}\" target=\"${args.target}\">\n <ifx-card-image position=\"${args.position}\" src=\"${args.src}\" alt=\"\" slot=\"img\"></ifx-card-image>\n ${args.overline\n ? `<ifx-card-overline>\n ${args.overline}\n </ifx-card-overline>`\n : \"\"}\n ${args.headline\n ? `<ifx-card-headline>\n ${args.headline}\n </ifx-card-headline>`\n : \"\"}\n ${args.description\n ? `<ifx-card-text>\n ${args.description}\n </ifx-card-text>`\n : \"\"}\n ${args.button === 'link'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-link color=\"primary\" href=\"https://google.com\" target=\"_blank\" underline=\"false\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n <ifx-link color=\"primary\" href=\"https://yahoo.com\" target=\"_blank\" underline=\"false\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n </ifx-card-links>` : \"\"}\n </ifx-card>`;\n\n\nexport const Horizontal = HorizontalTemplate.bind({});\nHorizontal.argTypes = {\n direction: 'horizontal',\n src: \"https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg\",\n image: {\n table: {\n disable: true\n }\n },\n button: {\n options: ['link', 'none'],\n control: { type: 'radio' },\n },\n}\n\n"]}
1
+ {"version":3,"file":"card.stories.js","sourceRoot":"","sources":["../../../src/components/card/card.stories.ts"],"names":[],"mappings":"AACA,eAAe;EACb,KAAK,EAAE,iBAAiB;EACxB,IAAI,EAAE,CAAC,UAAU,CAAC;EAClB,IAAI,EAAE;IACJ,SAAS,EAAE,UAAU;IACrB,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,gGAAgG;IAC7G,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,EAAE;IACR,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,OAAO;IACjB,GAAG,EAAE,+EAA+E;GACrF;EAED,QAAQ,EAAE;IACR,MAAM,EAAE;MACN,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC;MACnC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KAC3B;IACD,SAAS,EAAE;MACT,OAAO,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;MACnC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;KAC3B;IAED,QAAQ,EAAE;MACR,OAAO,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;MAC1B,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAC;MACzB,EAAE,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,EAAE,EAAE,YAAY,EAAC;KAC1C;IAED,MAAM,EAAE;MACN,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,SAA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;+BACM;EAC3B,CAAC,CAAC,EAAE;UACE,IAAI,CAAC,WAAW;EACtB,CAAC,CAAC;cACQ,IAAI,CAAC,WAAW;6BACD;EACzB,CAAC,CAAC,EAAE;QACA,IAAI,CAAC,MAAM,KAAK,QAAQ;EAC5B,CAAC,CAAC;;;4BAGsB,CAAC,CAAC,CAAC,EAAE;YACrB,IAAI,CAAC,MAAM,KAAK,MAAM;EAC9B,CAAC,CAAC;;;;;;;;;0BASoB,CAAC,CAAC,CAAC,EAAE;cACjB,CAAC;AAGf,MAAM,CAAC,MAAM,UAAU,GAAG,kBAAkB,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AACtD,UAAU,CAAC,IAAI,GAAG;EAChB,SAAS,EAAE,YAAY;EACvB,GAAG,EAAE,+EAA+E;CACrF,CAAA;AACD,UAAU,CAAC,QAAQ,GAAG;EACpB,SAAS,EAAE;IACT,KAAK,EAAC;MACJ,OAAO,EAAE,IAAI;KACd;GACF;CACF,CAAA","sourcesContent":["\nexport default {\n title: \"Components/Card\",\n tags: ['autodocs'],\n args: {\n direction: 'vertical',\n overline: \"Overline\",\n headline: \"Headline\",\n description: \"Some quick example text to build on the card title and make up the bulk of the card's content.\",\n button: 'button',\n href: \"\",\n target: '_blank',\n position: 'right',\n src: \"https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg\"\n },\n\n argTypes: {\n button: {\n options: ['button', 'link', 'none'],\n control: { type: 'radio' }\n },\n direction: {\n options: ['horizontal', 'vertical'],\n control: { type: 'radio' }\n },\n\n position: {\n options: ['left', 'right'],\n control: { type: 'radio'},\n if: { arg: 'direction', eq: 'horizontal'}\n },\n\n target: {\n options: ['_blank', '_self', '_parent'],\n control: { type: 'radio' }\n }\n }\n};\n\nconst DefaultTemplate = (args) =>\n `<ifx-card direction=\"${args.direction}\" href=\"${args.href}\" target=\"${args.target}\">\n <ifx-card-image position=\"${args.position}\" src=\"${args.src}\" alt=\"\" slot=\"img\"></ifx-card-image>\n ${args.overline\n ? `<ifx-card-overline>\n ${args.overline}\n </ifx-card-overline>`\n : \"\"}\n ${args.headline\n ? `<ifx-card-headline>\n ${args.headline}\n </ifx-card-headline>`\n : \"\"}\n ${args.description\n ? `<ifx-card-text>\n ${args.description}\n </ifx-card-text>` : \"\"}\n ${args.button === 'button'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-button variant=\"primary\">Button</ifx-button>\n <ifx-button variant=\"secondary\">Button</ifx-button>\n </ifx-card-links>` : \"\"}\n ${args.button === 'link'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-link href=\"https://google.com\" target=\"_blank\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n <ifx-link href=\"https://yahoo.com\" target=\"_blank\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n </ifx-card-links>` : \"\"}\n </ifx-card>`;\n\nexport const Default = DefaultTemplate.bind({});\nDefault.args = {\n src: \"https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg\"\n}\n\nconst HorizontalTemplate = (args) =>\n `<ifx-card direction=\"${args.direction}\" href=\"${args.href}\" target=\"${args.target}\">\n <ifx-card-image position=\"${args.position}\" src=\"${args.src}\" alt=\"\" slot=\"img\"></ifx-card-image>\n ${args.overline\n ? `<ifx-card-overline>\n ${args.overline}\n </ifx-card-overline>`\n : \"\"}\n ${args.headline\n ? `<ifx-card-headline>\n ${args.headline}\n </ifx-card-headline>`\n : \"\"}\n ${args.description\n ? `<ifx-card-text>\n ${args.description}\n </ifx-card-text>`\n : \"\"}\n ${args.button === 'button'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-button variant=\"primary\">Button</ifx-button>\n <ifx-button variant=\"secondary\">Button</ifx-button>\n </ifx-card-links>` : \"\"}\n ${args.button === 'link'\n ? `<ifx-card-links slot=\"buttons\">\n <ifx-link color=\"primary\" href=\"https://google.com\" target=\"_blank\" underline=\"false\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n <ifx-link color=\"primary\" href=\"https://yahoo.com\" target=\"_blank\" underline=\"false\">\n <ifx-icon icon=\"calendar16\"></ifx-icon>\n Link\n </ifx-link>\n </ifx-card-links>` : \"\"}\n </ifx-card>`;\n\n\nexport const Horizontal = HorizontalTemplate.bind({});\nHorizontal.args = {\n direction: 'horizontal',\n src: \"https://upload.wikimedia.org/wikipedia/commons/e/e4/Latte_and_dark_coffee.jpg\"\n}\nHorizontal.argTypes = {\n direction: {\n table:{\n disable: true\n }\n }\n}\n"]}
@@ -30,6 +30,10 @@ declare const _default: {
30
30
  control: {
31
31
  type: string;
32
32
  };
33
+ if: {
34
+ arg: string;
35
+ eq: string;
36
+ };
33
37
  };
34
38
  target: {
35
39
  options: string[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infineon/infineon-design-system-stencil",
3
- "version": "20.38.6",
3
+ "version": "20.38.7",
4
4
  "private": false,
5
5
  "description": "Infineon design system Stencil web components",
6
6
  "homepage": "https://github.com/Infineon/infineon-design-system-stencil#readme",