@infineon/infineon-design-system-stencil 30.9.2--canary.1640.70fa3eaef8e23b3cce71878a1e99bd63e614a640.0 → 30.9.2--canary.1640.e256ac3279c78004e08519f7beeaf135d2602dc6.0
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.
@@ -3,7 +3,7 @@ export default {
|
|
3
3
|
title: 'Components/Notification',
|
4
4
|
tags: ['autodocs'],
|
5
5
|
args: {
|
6
|
-
|
6
|
+
label: "Sample Notification",
|
7
7
|
variant: 'success',
|
8
8
|
icon: 'c-check-16',
|
9
9
|
linkText: 'Link',
|
@@ -11,13 +11,13 @@ export default {
|
|
11
11
|
linkTarget: '_blank',
|
12
12
|
},
|
13
13
|
argTypes: {
|
14
|
-
|
15
|
-
name: '
|
16
|
-
description: 'Set the text
|
14
|
+
label: {
|
15
|
+
name: 'Label of Notification',
|
16
|
+
description: 'Set the text label of the *<ifx-notification>*.',
|
17
17
|
table: {
|
18
18
|
category: 'story controls',
|
19
19
|
type: {
|
20
|
-
summary:
|
20
|
+
summary: 'string'
|
21
21
|
}
|
22
22
|
}
|
23
23
|
},
|
@@ -88,7 +88,7 @@ const DefaultTemplate = args => {
|
|
88
88
|
link-text="${args.linkText}"
|
89
89
|
link-href="${args.linkHref}"
|
90
90
|
link-target="${args.linkTarget}">
|
91
|
-
${args.
|
91
|
+
${args.label}
|
92
92
|
</ifx-notification>`;
|
93
93
|
};
|
94
94
|
export const Default = DefaultTemplate.bind({});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"notification.stories.js","sourceRoot":"","sources":["../../../src/components/notification/notification.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAEjD,eAAe;IACb,KAAK,EAAE,yBAAyB;IAChC,IAAI,EAAE,CAAC,UAAU,CAAC;IAElB,IAAI,EAAE;QACJ,
|
1
|
+
{"version":3,"file":"notification.stories.js","sourceRoot":"","sources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;YACR,WAAW,EAAE,oBAAoB;YACjC,KAAK,EAAE;gBACL,QAAQ,EAAE,wBAAwB;gBAClC,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;QACD,QAAQ,EAAE;YACR,WAAW,EAAE,mBAAmB;YAChC,KAAK,EAAE;gBACL,QAAQ,EAAE,wBAAwB;gBAClC,IAAI,EAAE;oBACJ,OAAO,EAAE,QAAQ;iBAClB;aACF;SACF;QACD,UAAU,EAAE;YACV,OAAO,EAAE,CAAC,QAAQ,EAAE,OAAO,EAAE,SAAS,CAAC;YACvC,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;YAC1B,WAAW,EAAE,8CAA8C;YAC3D,KAAK,EAAE;gBACL,QAAQ,EAAE,wBAAwB;gBAClC,YAAY,EAAE;oBACZ,OAAO,EAAE,QAAQ;iBAClB;gBACD,IAAI,EAAE;oBACJ,OAAO,EAAE,0BAA0B;iBACpC;aACF;SACF;KACF;CACF,CAAC;AAEF,MAAM,eAAe,GAAG,IAAI,CAAC,EAAE;IAC7B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC;IAEnD,OAAO;YACG,IAAI;aACH,IAAI,CAAC,OAAO;eACV,IAAI,CAAC,QAAQ;eACb,IAAI,CAAC,QAAQ;iBACX,IAAI,CAAC,UAAU;IAC5B,IAAI,CAAC,KAAK;oBACM,CAAC;AACrB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;AAChD,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC","sourcesContent":["import { icons } from '@infineon/infineon-icons';\n\nexport default {\n title: 'Components/Notification',\n tags: ['autodocs'],\n\n args: {\n label: \"Sample Notification\",\n variant: 'success',\n icon: 'c-check-16',\n linkText: 'Link',\n linkHref: 'https://www.example.com',\n linkTarget: '_blank',\n },\n argTypes: {\n label: {\n name: 'Label of Notification',\n description: 'Set the text label of the *<ifx-notification>*.',\n table: {\n category: 'story controls',\n type: {\n summary: 'string'\n }\n }\n },\n variant: {\n description: 'Variant of the notification.',\n options: ['success', 'warning', 'error'],\n control: { type: 'radio' },\n table: {\n category: 'ifx-notification props',\n defaultValue: {\n summary: 'success'\n },\n type: {\n summary: 'success | warning | error'\n }\n }\n },\n icon: {\n description: 'The icon to be displayed in the notification. Choose \"none\" to display no icon.',\n options: ['none', ...Object.values(icons).map(i => i['name'])],\n control: { type: 'select' },\n table: {\n category: 'ifx-notification props',\n type: {\n summary: 'string'\n }\n }\n },\n linkText: {\n description: 'Text for the link.',\n table: {\n category: 'ifx-notification props',\n type: {\n summary: 'string'\n }\n }\n },\n linkHref: {\n description: 'URL for the link.',\n table: {\n category: 'ifx-notification props',\n type: {\n summary: 'string'\n }\n }\n },\n linkTarget: {\n options: ['_blank', '_self', '_parent'],\n control: { type: 'radio' },\n description: 'Specifies where to open the linked document.',\n table: {\n category: 'ifx-notification props',\n defaultValue: {\n summary: '_blank'\n },\n type: {\n summary: '_blank | _self | _parent'\n }\n }\n },\n },\n};\n\nconst DefaultTemplate = args => {\n const icon = args.icon === 'none' ? '' : args.icon;\n\n return `<ifx-notification \n icon = \"${icon}\"\n variant=\"${args.variant}\" \n link-text=\"${args.linkText}\" \n link-href=\"${args.linkHref}\"\n link-target=\"${args.linkTarget}\">\n ${args.label}\n</ifx-notification>`;\n}\n\nexport const Default = DefaultTemplate.bind({});\nDefault.argTypes = {};\n"]}
|
@@ -2,7 +2,7 @@ declare const _default: {
|
|
2
2
|
title: string;
|
3
3
|
tags: string[];
|
4
4
|
args: {
|
5
|
-
|
5
|
+
label: string;
|
6
6
|
variant: string;
|
7
7
|
icon: string;
|
8
8
|
linkText: string;
|
@@ -10,13 +10,13 @@ declare const _default: {
|
|
10
10
|
linkTarget: string;
|
11
11
|
};
|
12
12
|
argTypes: {
|
13
|
-
|
13
|
+
label: {
|
14
14
|
name: string;
|
15
15
|
description: string;
|
16
16
|
table: {
|
17
17
|
category: string;
|
18
18
|
type: {
|
19
|
-
summary:
|
19
|
+
summary: string;
|
20
20
|
};
|
21
21
|
};
|
22
22
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@infineon/infineon-design-system-stencil",
|
3
|
-
"version": "30.9.2--canary.1640.
|
3
|
+
"version": "30.9.2--canary.1640.e256ac3279c78004e08519f7beeaf135d2602dc6.0",
|
4
4
|
"private": false,
|
5
5
|
"description": "Infineon design system Stencil web components",
|
6
6
|
"homepage": "https://infineon.github.io/infineon-design-system-stencil",
|