@carbon/ibm-products-web-components 0.30.0 → 0.31.0-rc.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.
Files changed (51) hide show
  1. package/custom-elements.json +143 -0
  2. package/es/components/about-modal/_story-assets/ansible-logo.svg.js +11 -0
  3. package/es/components/about-modal/_story-assets/ansible-logo.svg.js.map +1 -0
  4. package/es/components/about-modal/_story-assets/grafana-logo.svg.js +11 -0
  5. package/es/components/about-modal/_story-assets/grafana-logo.svg.js.map +1 -0
  6. package/es/components/about-modal/_story-assets/js-logo.svg.js +11 -0
  7. package/es/components/about-modal/_story-assets/js-logo.svg.js.map +1 -0
  8. package/es/components/about-modal/about-modal-helpers.d.ts +15 -0
  9. package/es/components/about-modal/about-modal-helpers.js +141 -0
  10. package/es/components/about-modal/about-modal-helpers.js.map +1 -0
  11. package/es/components/notification-panel/notification-panel-footer.figma.js +31 -0
  12. package/es/components/notification-panel/notification-panel-footer.figma.js.map +1 -0
  13. package/es/components/notification-panel/notification-panel.figma.js +114 -0
  14. package/es/components/notification-panel/notification-panel.figma.js.map +1 -0
  15. package/es/components/notification-panel/notification.figma.js +55 -0
  16. package/es/components/notification-panel/notification.figma.js.map +1 -0
  17. package/es/index.d.ts +1 -1
  18. package/es/index.js +1 -1
  19. package/es/packages/ibm-products-web-components/package.json.js +1 -1
  20. package/es/patterns/step-flow/_story-assets/step-side-panel.d.ts +38 -0
  21. package/es/patterns/step-flow/_story-assets/step-side-panel.js +217 -0
  22. package/es/patterns/step-flow/_story-assets/step-side-panel.js.map +1 -0
  23. package/es/patterns/step-flow/_story-assets/step-side-panel.scss.js +13 -0
  24. package/es/patterns/step-flow/_story-assets/step-side-panel.scss.js.map +1 -0
  25. package/es-custom/components/about-modal/_story-assets/ansible-logo.svg.js +11 -0
  26. package/es-custom/components/about-modal/_story-assets/ansible-logo.svg.js.map +1 -0
  27. package/es-custom/components/about-modal/_story-assets/grafana-logo.svg.js +11 -0
  28. package/es-custom/components/about-modal/_story-assets/grafana-logo.svg.js.map +1 -0
  29. package/es-custom/components/about-modal/_story-assets/js-logo.svg.js +11 -0
  30. package/es-custom/components/about-modal/_story-assets/js-logo.svg.js.map +1 -0
  31. package/es-custom/components/about-modal/about-modal-helpers.d.ts +15 -0
  32. package/es-custom/components/about-modal/about-modal-helpers.js +141 -0
  33. package/es-custom/components/about-modal/about-modal-helpers.js.map +1 -0
  34. package/es-custom/components/notification-panel/notification-panel-footer.figma.js +31 -0
  35. package/es-custom/components/notification-panel/notification-panel-footer.figma.js.map +1 -0
  36. package/es-custom/components/notification-panel/notification-panel.figma.js +114 -0
  37. package/es-custom/components/notification-panel/notification-panel.figma.js.map +1 -0
  38. package/es-custom/components/notification-panel/notification.figma.js +55 -0
  39. package/es-custom/components/notification-panel/notification.figma.js.map +1 -0
  40. package/es-custom/index.d.ts +1 -1
  41. package/es-custom/index.js +1 -1
  42. package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
  43. package/es-custom/patterns/step-flow/_story-assets/step-side-panel.d.ts +38 -0
  44. package/es-custom/patterns/step-flow/_story-assets/step-side-panel.js +217 -0
  45. package/es-custom/patterns/step-flow/_story-assets/step-side-panel.js.map +1 -0
  46. package/es-custom/patterns/step-flow/_story-assets/step-side-panel.scss.js +13 -0
  47. package/es-custom/patterns/step-flow/_story-assets/step-side-panel.scss.js.map +1 -0
  48. package/lib/components/about-modal/about-modal-helpers.d.ts +15 -0
  49. package/lib/index.d.ts +1 -1
  50. package/lib/patterns/step-flow/_story-assets/step-side-panel.d.ts +38 -0
  51. package/package.json +5 -4
@@ -0,0 +1,141 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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 { html } from 'lit';
9
+ import { prefix } from '../../globals/settings.js';
10
+ import img$1 from './_story-assets/ansible-logo.svg.js';
11
+ import img from './_story-assets/grafana-logo.svg.js';
12
+ import img$2 from './_story-assets/js-logo.svg.js';
13
+
14
+ /**
15
+ * @license
16
+ *
17
+ * Copyright IBM Corp. 2026
18
+ *
19
+ * This source code is licensed under the Apache-2.0 license found in the
20
+ * LICENSE file in the root directory of this source tree.
21
+ */
22
+ const blockClass = `${prefix}--about-modal`;
23
+ const storyPrefix = 'about-modal-stories__';
24
+ const getTitle = (index) => {
25
+ switch (index) {
26
+ case 0:
27
+ return html `IBM Product name`;
28
+ case 1:
29
+ return html `IBM Product name example that is longer than one line`;
30
+ case 2:
31
+ return html `IBM <span style="font-weight: 600">Product name</span>`;
32
+ default:
33
+ return null;
34
+ }
35
+ };
36
+ const getAdditionalInfo = (index) => {
37
+ switch (index) {
38
+ case 1:
39
+ return html `
40
+ <p class=${`${blockClass}__footer-label`}>Powered by</p>
41
+ <img
42
+ src=${img}
43
+ alt="Grafana"
44
+ class=${`${blockClass}__footer--tech-logo`}
45
+ />
46
+ <img
47
+ src=${img$1}
48
+ alt="Ansible"
49
+ class=${`${blockClass}__footer--tech-logo`}
50
+ />
51
+ <img
52
+ src=${img$2}
53
+ alt="JavaScript"
54
+ class=${`${blockClass}__footer--tech-logo`}
55
+ />
56
+ `;
57
+ default:
58
+ return null;
59
+ }
60
+ };
61
+ const getContent = (index) => {
62
+ switch (index) {
63
+ case 1:
64
+ return html `This Web site contains proprietary notices and copyright
65
+ information, the terms of which must be observed and followed.`;
66
+ case 2:
67
+ return html `This Web site contains proprietary notices and copyright
68
+ information, the terms of which must be observed and followed. Please see
69
+ the tab entitled 'Copyright and trademark information' for related
70
+ information. IBM grants you a non-exclusive, non-transferable, limited
71
+ permission to access and display the Web pages within this site as a
72
+ customer or potential customer of IBM provided you comply with these Terms
73
+ of Use, and all copyright, trademark, and other proprietary notices remain
74
+ intact.`;
75
+ case 3:
76
+ return html `This Web site contains proprietary notices and copyright
77
+ information, the terms of which must be observed and followed. Please see
78
+ the tab entitled 'Copyright and trademark information' for related
79
+ information. IBM grants you a non-exclusive, non-transferable, limited
80
+ permission to access and display the Web pages within this site as a
81
+ customer or potential customer of IBM provided you comply with these Terms
82
+ of Use, and all copyright, trademark, and other proprietary notices remain
83
+ intact. You may only use a crawler to crawl this Web site as permitted by
84
+ this Web site's robots.txt protocol, and IBM may block any crawlers in its
85
+ sole discretion. The use authorized under this agreement is non-commercial
86
+ in nature (e.g., you may not sell the content you access on or through
87
+ this Web site.) All other use of this site is prohibited. Except for the
88
+ limited permission in the preceding paragraph, IBM does not grant you any
89
+ express or implied rights or licenses under any patents, trademarks,
90
+ copyrights, or other proprietary or intellectual property rights. You may
91
+ not mirror any of the content from this site on another Web site or in any
92
+ other media. Any software and other materials that are made available for
93
+ downloading, access, or other use from this site with their own license
94
+ terms will be governed by such terms, conditions, and notices. Your
95
+ failure to comply with such terms or any of the terms on this site will
96
+ result in automatic termination of any rights granted to you, without
97
+ prior notice, and you must immediately destroy all copies of downloaded
98
+ materials in your possession, custody or control. This Web site contains
99
+ proprietary notices and copyright information, the terms of which must be
100
+ observed and followed. Please see the tab entitled “Copyright and
101
+ trademark information” for related information. IBM grants you a
102
+ non-exclusive, non-transferable, limited permission to access and display
103
+ the Web pages within this site as a customer or potential customer of IBM
104
+ provided you comply with these Terms of Use, and all copyright, trademark,
105
+ and other proprietary notices remain intact. You may only use a crawler to
106
+ crawl this Web site as permitted by this Web site’s robots.txt protocol,
107
+ and IBM may block any crawlers in its sole discretion. The use authorized
108
+ under this agreement is non-commercial in nature (e.g., you may not sell
109
+ the content you access on or through this Web site.) All other use of this
110
+ site is prohibited. Except for the limited permission in the preceding
111
+ paragraph, IBM does not grant you any express or implied rights or
112
+ licenses under any patents, trademarks, copyrights, or other proprietary
113
+ or intellectual property rights. You may not mirror any of the content
114
+ from this site on another Web site or in any other media. Any software and
115
+ other materials that are made available for downloading, access, or other
116
+ use from this site with their own license terms will be governed by such
117
+ terms, conditions, and notices. Your failure to comply with such terms or
118
+ any of the terms on this site will result in automatic termination of any
119
+ rights granted to you, without prior notice, and you must immediately
120
+ destroy all copies of downloaded materials in your possession, custody or
121
+ control.`;
122
+ default:
123
+ return null;
124
+ }
125
+ };
126
+ const getLinks = (index) => {
127
+ if (index > 0) {
128
+ const links = [];
129
+ for (let i = 0; i < index; i++) {
130
+ const link = html `<cds-custom-link href="#"> Link action </cds-custom-link>`;
131
+ links.push(link);
132
+ }
133
+ return links;
134
+ }
135
+ else {
136
+ return null;
137
+ }
138
+ };
139
+
140
+ export { blockClass, getAdditionalInfo, getContent, getLinks, getTitle, storyPrefix };
141
+ //# sourceMappingURL=about-modal-helpers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"about-modal-helpers.js","sources":["../../../src/components/about-modal/about-modal-helpers.ts"],"sourcesContent":[null],"names":["grafanaLogo","ansibleLogo","jsLogo"],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;AAOG;AAQU,MAAA,UAAU,GAAG,CAAG,EAAA,MAAM;AAC5B,MAAM,WAAW,GAAG;AACd,MAAA,QAAQ,GAAG,CAAC,KAAK,KAAI;IAChC,QAAQ,KAAK;AACX,QAAA,KAAK,CAAC;YACJ,OAAO,IAAI,CAAA,CAAA,gBAAA,CAAkB;AAC/B,QAAA,KAAK,CAAC;YACJ,OAAO,IAAI,CAAA,CAAA,qDAAA,CAAuD;AACpE,QAAA,KAAK,CAAC;YACJ,OAAO,IAAI,CAAA,CAAA,sDAAA,CAAwD;AACrE,QAAA;AACE,YAAA,OAAO,IAAI;;AAEjB;AAEa,MAAA,iBAAiB,GAAG,CAAC,KAAK,KAAI;IACzC,QAAQ,KAAK;AACX,QAAA,KAAK,CAAC;AACJ,YAAA,OAAO,IAAI,CAAA;AACE,iBAAA,EAAA,CAAA,EAAG,UAAU,CAAgB,cAAA,CAAA,CAAA;;gBAEhCA,GAAW;;AAET,gBAAA,EAAA,CAAA,EAAG,UAAU,CAAqB,mBAAA,CAAA;;;gBAGpCC,KAAW;;AAET,gBAAA,EAAA,CAAA,EAAG,UAAU,CAAqB,mBAAA,CAAA;;;gBAGpCC,KAAM;;AAEJ,gBAAA,EAAA,CAAA,EAAG,UAAU,CAAqB,mBAAA,CAAA;;OAE7C;AACH,QAAA;AACE,YAAA,OAAO,IAAI;;AAEjB;AAEa,MAAA,UAAU,GAAG,CAAC,KAAK,KAAI;IAClC,QAAQ,KAAK;AACX,QAAA,KAAK,CAAC;AACJ,YAAA,OAAO,IAAI,CAAA,CAAA;qEACoD;AACjE,QAAA,KAAK,CAAC;AACJ,YAAA,OAAO,IAAI,CAAA,CAAA;;;;;;;cAOH;AACV,QAAA,KAAK,CAAC;AACJ,YAAA,OAAO,IAAI,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eA6CF;AACX,QAAA;AACE,YAAA,OAAO,IAAI;;AAEjB;AAEa,MAAA,QAAQ,GAAG,CAAC,KAAK,KAAI;AAChC,IAAA,IAAI,KAAK,GAAG,CAAC,EAAE;QACb,MAAM,KAAK,GAAqB,EAAE;AAClC,QAAA,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE;AAC9B,YAAA,MAAM,IAAI,GAAG,IAAI,CAAA,6CAA6C;AAC9D,YAAA,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC;;AAElB,QAAA,OAAO,KAAK;;SACP;AACL,QAAA,OAAO,IAAI;;AAEf;;;;"}
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
+ /**
11
+ * Copyright IBM Corp. 2025
12
+ *
13
+ * This source code is licensed under the Apache-2.0 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+
17
+
18
+ figma.connect(
19
+ 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=10574-240285',
20
+ {
21
+ example: () =>
22
+ html`<c4p-notification-footer
23
+ slot="footer"
24
+ viewAllLabel="View all (16)"
25
+ ></c4p-notification-footer>`,
26
+ imports: [
27
+ "import '@carbon/ibm-products-web-components/es/components/notification-panel/index.js'",
28
+ ],
29
+ }
30
+ );
31
+ //# sourceMappingURL=notification-panel-footer.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-panel-footer.figma.js","sources":["../../../src/components/notification-panel/notification-panel-footer.figma.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2025\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport figma, { html } from '@figma/code-connect/html';\n\nfigma.connect(\n 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=10574-240285',\n {\n example: () =>\n html`<c4p-notification-footer\n slot=\"footer\"\n viewAllLabel=\"View all (16)\"\n ></c4p-notification-footer>`,\n imports: [\n \"import '@carbon/ibm-products-web-components/es/components/notification-panel/index.js'\",\n ],\n }\n);\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,KAAK,CAAC,OAAO;AACb,EAAE,4HAA4H;AAC9H,EAAE;AACF,IAAI,OAAO,EAAE;AACb,MAAM,IAAI,CAAC;AACX;AACA;AACA,iCAAiC,CAAC;AAClC,IAAI,OAAO,EAAE;AACb,MAAM,wFAAwF;AAC9F,KAAK;AACL;AACA,CAAC"}
@@ -0,0 +1,114 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
+ /**
11
+ * Copyright IBM Corp. 2025
12
+ *
13
+ * This source code is licensed under the Apache-2.0 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+
17
+
18
+ const sharedProps = {
19
+ title: figma.nestedProps('Header', {
20
+ text: figma.textContent('"Notifications"'),
21
+ }),
22
+ doNotDisturbLabel: figma.nestedProps('Toggle', {
23
+ text: figma.textContent('Value'),
24
+ }),
25
+ };
26
+
27
+ figma.connect(
28
+ 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf?node-id=10574%3A240266',
29
+ {
30
+ variant: { 'Empty state': false },
31
+ props: {
32
+ ...sharedProps,
33
+ },
34
+
35
+ example: (props) =>
36
+ html`<c4p-notification-panel
37
+ open
38
+ title-text="${props.title.text}"
39
+ today-text="Today"
40
+ previous-text="Previous"
41
+ dismiss-all-label="Dismiss all"
42
+ donot-disturb-label="${props.doNotDisturbLabel.text}"
43
+ date-time-locale="en-US"
44
+ >
45
+ <c4p-notification
46
+ slot="previous"
47
+ type="success"
48
+ unread="true"
49
+ .timestamp="Time stamp [00:00:00]"
50
+ >
51
+ <h4 slot="title">Title</h4>
52
+ <div slot="description">Message</div>
53
+ </c4p-notification>
54
+
55
+ <c4p-notification
56
+ slot="previous"
57
+ type="error"
58
+ unread="false"
59
+ .timestamp="Time stamp [00:00:00]"
60
+ >
61
+ <h4 slot="title">Title</h4>
62
+ <div slot="description">Message</div>
63
+ </c4p-notification>
64
+
65
+ <c4p-notification
66
+ slot="previous"
67
+ type="warning"
68
+ unread="false"
69
+ .timestamp="Time stamp [00:00:00]"
70
+ >
71
+ <h4 slot="title">Title</h4>
72
+ <div slot="description">Message</div>
73
+ </c4p-notification>
74
+
75
+ <c4p-notification-footer
76
+ slot="footer"
77
+ view-all-label="View all (16)"
78
+ ></c4p-notification-footer>
79
+ </c4p-notification-panel>`,
80
+ imports: [
81
+ "import '@carbon/ibm-products-web-components/es/components/notification-panel/index.js'",
82
+ ],
83
+ }
84
+ );
85
+
86
+ figma.connect(
87
+ 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf?node-id=10574%3A240266',
88
+ {
89
+ variant: { 'Empty state': true },
90
+ props: {
91
+ ...sharedProps,
92
+ emptyStateLabel: figma.nestedProps(
93
+ 'Empty state | (v11) Carbon for IBM Products',
94
+ {
95
+ text: figma.string('Title text'),
96
+ }
97
+ ),
98
+ },
99
+
100
+ example: (props) =>
101
+ html`<c4p-notification-panel
102
+ open
103
+ title-text="${props.title.text}"
104
+ dismiss-all-label="Dismiss all"
105
+ donot-disturb-label="${props.doNotDisturbLabel.text}"
106
+ empty-state-label="${props.emptyStateLabel.text}"
107
+ >
108
+ </c4p-notification-panel>`,
109
+ imports: [
110
+ "import '@carbon/ibm-products-web-components/es/components/notification-panel/index.js'",
111
+ ],
112
+ }
113
+ );
114
+ //# sourceMappingURL=notification-panel.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification-panel.figma.js","sources":["../../../src/components/notification-panel/notification-panel.figma.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2025\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport figma, { html } from '@figma/code-connect/html';\n\nconst sharedProps = {\n title: figma.nestedProps('Header', {\n text: figma.textContent('\"Notifications\"'),\n }),\n doNotDisturbLabel: figma.nestedProps('Toggle', {\n text: figma.textContent('Value'),\n }),\n};\n\nfigma.connect(\n 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf?node-id=10574%3A240266',\n {\n variant: { 'Empty state': false },\n props: {\n ...sharedProps,\n },\n\n example: (props) =>\n html`<c4p-notification-panel\n open\n title-text=\"${props.title.text}\"\n today-text=\"Today\"\n previous-text=\"Previous\"\n dismiss-all-label=\"Dismiss all\"\n donot-disturb-label=\"${props.doNotDisturbLabel.text}\"\n date-time-locale=\"en-US\"\n >\n <c4p-notification\n slot=\"previous\"\n type=\"success\"\n unread=\"true\"\n .timestamp=\"Time stamp [00:00:00]\"\n >\n <h4 slot=\"title\">Title</h4>\n <div slot=\"description\">Message</div>\n </c4p-notification>\n\n <c4p-notification\n slot=\"previous\"\n type=\"error\"\n unread=\"false\"\n .timestamp=\"Time stamp [00:00:00]\"\n >\n <h4 slot=\"title\">Title</h4>\n <div slot=\"description\">Message</div>\n </c4p-notification>\n\n <c4p-notification\n slot=\"previous\"\n type=\"warning\"\n unread=\"false\"\n .timestamp=\"Time stamp [00:00:00]\"\n >\n <h4 slot=\"title\">Title</h4>\n <div slot=\"description\">Message</div>\n </c4p-notification>\n\n <c4p-notification-footer\n slot=\"footer\"\n view-all-label=\"View all (16)\"\n ></c4p-notification-footer>\n </c4p-notification-panel>`,\n imports: [\n \"import '@carbon/ibm-products-web-components/es/components/notification-panel/index.js'\",\n ],\n }\n);\n\nfigma.connect(\n 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf?node-id=10574%3A240266',\n {\n variant: { 'Empty state': true },\n props: {\n ...sharedProps,\n emptyStateLabel: figma.nestedProps(\n 'Empty state | (v11) Carbon for IBM Products',\n {\n text: figma.string('Title text'),\n }\n ),\n },\n\n example: (props) =>\n html`<c4p-notification-panel\n open\n title-text=\"${props.title.text}\"\n dismiss-all-label=\"Dismiss all\"\n donot-disturb-label=\"${props.doNotDisturbLabel.text}\"\n empty-state-label=\"${props.emptyStateLabel.text}\"\n >\n </c4p-notification-panel>`,\n imports: [\n \"import '@carbon/ibm-products-web-components/es/components/notification-panel/index.js'\",\n ],\n }\n);\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,MAAM,WAAW,GAAG;AACpB,EAAE,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE;AACrC,IAAI,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,iBAAiB,CAAC;AAC9C,GAAG,CAAC;AACJ,EAAE,iBAAiB,EAAE,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE;AACjD,IAAI,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,OAAO,CAAC;AACpC,GAAG,CAAC;AACJ,CAAC;;AAED,KAAK,CAAC,OAAO;AACb,EAAE,4EAA4E;AAC9E,EAAE;AACF,IAAI,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;AACrC,IAAI,KAAK,EAAE;AACX,MAAM,GAAG,WAAW;AACpB,KAAK;;AAEL,IAAI,OAAO,EAAE,CAAC,KAAK;AACnB,MAAM,IAAI,CAAC;AACX;AACA,oBAAoB,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;AACvC;AACA;AACA;AACA,6BAA6B,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC;AAC5D;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA,+BAA+B,CAAC;AAChC,IAAI,OAAO,EAAE;AACb,MAAM,wFAAwF;AAC9F,KAAK;AACL;AACA,CAAC;;AAED,KAAK,CAAC,OAAO;AACb,EAAE,4EAA4E;AAC9E,EAAE;AACF,IAAI,OAAO,EAAE,EAAE,aAAa,EAAE,IAAI,EAAE;AACpC,IAAI,KAAK,EAAE;AACX,MAAM,GAAG,WAAW;AACpB,MAAM,eAAe,EAAE,KAAK,CAAC,WAAW;AACxC,QAAQ,6CAA6C;AACrD,QAAQ;AACR,UAAU,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC;AAC1C;AACA,OAAO;AACP,KAAK;;AAEL,IAAI,OAAO,EAAE,CAAC,KAAK;AACnB,MAAM,IAAI,CAAC;AACX;AACA,oBAAoB,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC;AACvC;AACA,6BAA6B,EAAE,KAAK,CAAC,iBAAiB,CAAC,IAAI,CAAC;AAC5D,2BAA2B,EAAE,KAAK,CAAC,eAAe,CAAC,IAAI,CAAC;AACxD;AACA,+BAA+B,CAAC;AAChC,IAAI,OAAO,EAAE;AACb,MAAM,wFAAwF;AAC9F,KAAK;AACL;AACA,CAAC"}
@@ -0,0 +1,55 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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
+ /**
11
+ * Copyright IBM Corp. 2025
12
+ *
13
+ * This source code is licensed under the Apache-2.0 license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */
16
+
17
+
18
+ figma.connect(
19
+ 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=10574-240216',
20
+ {
21
+ variant: { State: 'Enabled' },
22
+ props: {
23
+ type: figma.nestedProps('Status icon', {
24
+ value: figma.enum('Status', {
25
+ Normal: 'Success',
26
+ Information: 'informational',
27
+ Failure: 'error',
28
+ 'Warning yellow': 'warning',
29
+ }),
30
+ }),
31
+ timestamp: figma.boolean('Time stamp', {
32
+ true: figma.string('Time stamp text'),
33
+ false: '',
34
+ }),
35
+ titleText: figma.boolean('Title', {
36
+ true: figma.string('Title text'),
37
+ false: '',
38
+ }),
39
+ messageText: figma.boolean('Message', {
40
+ true: figma.string('Message text'),
41
+ false: '',
42
+ }),
43
+ },
44
+
45
+ example: (props) =>
46
+ html`<c4p-notification
47
+ type=${props.type.value}
48
+ timestamp=${props.timestamp}
49
+ >
50
+ <h4 slot="title">${props.titleText}</h4>
51
+ <div slot="description">${props.messageText}</div>
52
+ </c4p-notification>`,
53
+ }
54
+ );
55
+ //# sourceMappingURL=notification.figma.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notification.figma.js","sources":["../../../src/components/notification-panel/notification.figma.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2025\n *\n * This source code is licensed under the Apache-2.0 license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport figma, { html } from '@figma/code-connect/html';\n\nfigma.connect(\n 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=10574-240216',\n {\n variant: { State: 'Enabled' },\n props: {\n type: figma.nestedProps('Status icon', {\n value: figma.enum('Status', {\n Normal: 'Success',\n Information: 'informational',\n Failure: 'error',\n 'Warning yellow': 'warning',\n }),\n }),\n timestamp: figma.boolean('Time stamp', {\n true: figma.string('Time stamp text'),\n false: '',\n }),\n titleText: figma.boolean('Title', {\n true: figma.string('Title text'),\n false: '',\n }),\n messageText: figma.boolean('Message', {\n true: figma.string('Message text'),\n false: '',\n }),\n },\n\n example: (props) =>\n html`<c4p-notification\n type=${props.type.value}\n timestamp=${props.timestamp}\n >\n <h4 slot=\"title\">${props.titleText}</h4>\n <div slot=\"description\">${props.messageText}</div>\n </c4p-notification>`,\n }\n);\n"],"names":[],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAIA,KAAK,CAAC,OAAO;AACb,EAAE,4HAA4H;AAC9H,EAAE;AACF,IAAI,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE;AACjC,IAAI,KAAK,EAAE;AACX,MAAM,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,aAAa,EAAE;AAC7C,QAAQ,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE;AACpC,UAAU,MAAM,EAAE,SAAS;AAC3B,UAAU,WAAW,EAAE,eAAe;AACtC,UAAU,OAAO,EAAE,OAAO;AAC1B,UAAU,gBAAgB,EAAE,SAAS;AACrC,SAAS,CAAC;AACV,OAAO,CAAC;AACR,MAAM,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,EAAE;AAC7C,QAAQ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,iBAAiB,CAAC;AAC7C,QAAQ,KAAK,EAAE,EAAE;AACjB,OAAO,CAAC;AACR,MAAM,SAAS,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE;AACxC,QAAQ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC;AACxC,QAAQ,KAAK,EAAE,EAAE;AACjB,OAAO,CAAC;AACR,MAAM,WAAW,EAAE,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE;AAC5C,QAAQ,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC;AAC1C,QAAQ,KAAK,EAAE,EAAE;AACjB,OAAO,CAAC;AACR,KAAK;;AAEL,IAAI,OAAO,EAAE,CAAC,KAAK;AACnB,MAAM,IAAI,CAAC;AACX,aAAa,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK;AAC/B,kBAAkB,EAAE,KAAK,CAAC,SAAS;AACnC;AACA,yBAAyB,EAAE,KAAK,CAAC,SAAS,CAAC;AAC3C,gCAAgC,EAAE,KAAK,CAAC,WAAW,CAAC;AACpD,yBAAyB,CAAC;AAC1B;AACA,CAAC"}
@@ -10,7 +10,7 @@ export { default as CDSSidePanel } from './components/side-panel/side-panel';
10
10
  export { default as CDSTearsheet } from './components/tearsheet/tearsheet';
11
11
  export { default as CDSFullPageError } from './components/full-page-error/full-page-error';
12
12
  export { default as CDSAboutModal } from './components/about-modal/about-modal';
13
- export { default as CDSUseravatar } from './components/user-avatar/user-avatar';
13
+ export { default as CDSUserAvatar } from './components/user-avatar/user-avatar';
14
14
  export { default as CDSOptionsTile } from './components/options-tile/options-tile';
15
15
  export { default as CDSTruncatedText } from './components/truncated-text/truncated-text';
16
16
  export { default as CDSPageHeader } from './components/page-header/page-header';
@@ -9,7 +9,7 @@ export { default as CDSSidePanel } from './components/side-panel/side-panel.js';
9
9
  export { default as CDSTearsheet } from './components/tearsheet/tearsheet.js';
10
10
  export { default as CDSFullPageError } from './components/full-page-error/full-page-error.js';
11
11
  export { default as CDSAboutModal } from './components/about-modal/about-modal.js';
12
- export { default as CDSUseravatar } from './components/user-avatar/user-avatar.js';
12
+ export { default as CDSUserAvatar } from './components/user-avatar/user-avatar.js';
13
13
  export { default as CDSOptionsTile } from './components/options-tile/options-tile.js';
14
14
  export { default as CDSTruncatedText } from './components/truncated-text/truncated-text.js';
15
15
  export { default as CDSPageHeader } from './components/page-header/page-header.js';
@@ -5,7 +5,7 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- var version = "0.30.0-rc.0";
8
+ var version = "0.30.0";
9
9
  var packageJson = {
10
10
  version: version};
11
11
 
@@ -0,0 +1,38 @@
1
+ /**
2
+ * @license
3
+ *
4
+ * Copyright IBM Corp. 2025
5
+ *
6
+ * This source code is licensed under the Apache-2.0 license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+ import { LitElement } from 'lit';
10
+ import '../../../components/side-panel/index.js';
11
+ import '@carbon/web-components/es-custom/components/text-input/index.js';
12
+ import '@carbon/web-components/es-custom/components/button/index.js';
13
+ import '@carbon/web-components/es-custom/components/progress-indicator/index.js';
14
+ import '../step-group';
15
+ declare const StepSidePanel_base: typeof LitElement;
16
+ export declare class StepSidePanel extends StepSidePanel_base {
17
+ open: boolean;
18
+ private _email;
19
+ private _city;
20
+ private _state;
21
+ private _openHandler;
22
+ private _handleCancelButton;
23
+ private _handleBackButton;
24
+ private _handleNextButton;
25
+ private _handleEmailInput;
26
+ private _handleCityInput;
27
+ private _handleStateInput;
28
+ private _stepInfo;
29
+ connectedCallback(): void;
30
+ render(): import("lit-html").TemplateResult<1>;
31
+ static styles: any;
32
+ }
33
+ declare global {
34
+ interface HTMLElementTagNameMap {
35
+ 'step-side-panel': StepSidePanel;
36
+ }
37
+ }
38
+ export {};
@@ -0,0 +1,217 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024
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 { __decorate } from 'tslib';
9
+ import { LitElement, nothing, html } from 'lit';
10
+ import { state, customElement } from 'lit/decorators.js';
11
+ import '../../../components/side-panel/side-panel.js';
12
+ import '@carbon/web-components/es-custom/components/text-input/index.js';
13
+ import '@carbon/web-components/es-custom/components/button/index.js';
14
+ import '@carbon/web-components/es-custom/components/progress-indicator/index.js';
15
+ import { StepInstance } from '../step-flow-signal.js';
16
+ import { SignalWatcher } from '@lit-labs/signals';
17
+ import '../step-group.js';
18
+ import styles from './step-side-panel.scss.js';
19
+
20
+ /**
21
+ * @license
22
+ *
23
+ * Copyright IBM Corp. 2025
24
+ *
25
+ * This source code is licensed under the Apache-2.0 license found in the
26
+ * LICENSE file in the root directory of this source tree.
27
+ */
28
+ const blockClass = 'c4p--step-side-panel';
29
+ let StepSidePanel = class StepSidePanel extends SignalWatcher(LitElement) {
30
+ constructor() {
31
+ super(...arguments);
32
+ this.open = true;
33
+ this._email = '';
34
+ this._city = '';
35
+ this._state = '';
36
+ this._stepInfo = new StepInstance();
37
+ }
38
+ _openHandler() {
39
+ this.open = !this.open;
40
+ }
41
+ _handleCancelButton() {
42
+ this._openHandler();
43
+ this._stepInfo.reset();
44
+ }
45
+ _handleBackButton() {
46
+ const { currentStep } = this._stepInfo.data;
47
+ if (currentStep === 0) {
48
+ return;
49
+ }
50
+ return this._stepInfo.handlePrevious();
51
+ }
52
+ _handleNextButton() {
53
+ const { currentStep, totalSteps } = this._stepInfo.data;
54
+ if (currentStep + 1 === totalSteps) {
55
+ this._openHandler();
56
+ this._stepInfo.reset();
57
+ return;
58
+ }
59
+ return this._stepInfo.handleNext();
60
+ }
61
+ _handleEmailInput(e) {
62
+ const savedFormState = structuredClone(this._stepInfo.data.formState);
63
+ savedFormState.email = e.target.value;
64
+ this._stepInfo.updateFormState = savedFormState;
65
+ }
66
+ _handleCityInput(e) {
67
+ const savedFormState = structuredClone(this._stepInfo.data.formState);
68
+ savedFormState.city = e.target.value;
69
+ this._stepInfo.updateFormState = savedFormState;
70
+ }
71
+ _handleStateInput(e) {
72
+ const savedFormState = structuredClone(this._stepInfo.data.formState);
73
+ savedFormState.state = e.target.value;
74
+ this._stepInfo.updateFormState = savedFormState;
75
+ }
76
+ connectedCallback() {
77
+ super.connectedCallback();
78
+ this._stepInfo.updateTotalStepCount = 3;
79
+ }
80
+ render() {
81
+ const { formState, totalSteps, currentStep } = this._stepInfo.data;
82
+ return html `
83
+ <div>
84
+ <cds-custom-button @click=${this._openHandler}>Create partitions</cds-custom-button>
85
+ <c4p-side-panel
86
+ @c4p-side-panel-closed=${this._openHandler}
87
+ class="${blockClass}"
88
+ ?animate-title=${false}
89
+ include-overlay
90
+ ?open=${this.open}
91
+ size="md"
92
+ title="Create partitions"
93
+ >
94
+ <div slot="subtitle">
95
+ Specify the details of the partitions you're creating
96
+ </div>
97
+ <div slot="below-title">
98
+ <cds-custom-progress-indicator class="progress-indicator">
99
+ <cds-custom-progress-step
100
+ label="First step"
101
+ state=${currentStep + 1 === 1 ? 'current' : 'complete'}
102
+ ></cds-custom-progress-step>
103
+ <cds-custom-progress-step
104
+ label="Second step"
105
+ state=${currentStep + 1 === 2
106
+ ? 'current'
107
+ : currentStep + 1 < 2
108
+ ? 'incomplete'
109
+ : 'complete'}
110
+ ></cds-custom-progress-step>
111
+ <cds-custom-progress-step
112
+ label="Third step"
113
+ state=${currentStep + 1 === 3
114
+ ? 'current'
115
+ : currentStep + 1 < 3
116
+ ? 'incomplete'
117
+ : 'complete'}
118
+ ></cds-custom-progress-step>
119
+ </cds-custom-progress-indicator>
120
+ </div>
121
+ <h3
122
+ class="${blockClass}__form-title-text ${blockClass}__content-text"
123
+ >
124
+ Core configuration
125
+ </h3>
126
+ <p
127
+ class="${blockClass}__form-description-text ${blockClass}__content-text"
128
+ >
129
+ We recommend you fill out and evaluate these details at a minimum
130
+ before deploying your topic.
131
+ </p>
132
+ <step-group>
133
+ ${currentStep + 1 === 1
134
+ ? html ` <cds-custom-text-input
135
+ label="Email"
136
+ id="tearsheet-story-text-input-a"
137
+ value=${this._email}
138
+ @input="${this._handleEmailInput}"
139
+ ></cds-custom-text-input>`
140
+ : nothing}
141
+ ${currentStep + 1 === 2
142
+ ? html ` <cds-custom-text-input
143
+ label="City"
144
+ id="tearsheet-story-text-input-city"
145
+ value=${this._city}
146
+ @input="${this._handleCityInput}"
147
+ ></cds-custom-text-input>`
148
+ : nothing}
149
+ ${currentStep + 1 === 2
150
+ ? html ` <cds-custom-text-input
151
+ label="State"
152
+ id="tearsheet-story-text-input-state"
153
+ value=${this._state}
154
+ @input="${this._handleStateInput}"
155
+ ></cds-custom-text-input>`
156
+ : nothing}
157
+ ${currentStep + 1 === 3
158
+ ? html `<div>
159
+ <!-- //cspell: disable -->
160
+ <cds-custom-code-snippet
161
+ type="multi"
162
+ copy-text=""
163
+ maxcollapsednumberofrows="15"
164
+ maxexpandednumberofrows=""
165
+ mincollapsednumberofrows="3"
166
+ minexpandednumberofrows=""
167
+ show-less-text="Show less"
168
+ show-more-text="Show more"
169
+ feedback=""
170
+ feedback-timeout="0"
171
+ tooltip-content="Copy to clipboard"
172
+ >
173
+ ${JSON.stringify(formState, null, 2)}
174
+ </cds-custom-code-snippet>
175
+ <!-- //cspell: enable -->
176
+ </div>`
177
+ : nothing}
178
+ </step-group>
179
+ <cds-custom-button
180
+ slot="actions"
181
+ kind="ghost"
182
+ @click=${this._handleCancelButton}
183
+ >Cancel</cds-custom-button
184
+ >
185
+ <cds-custom-button
186
+ slot="actions"
187
+ kind="secondary"
188
+ @click=${this._handleBackButton}
189
+ >Back</cds-custom-button
190
+ >
191
+ <cds-custom-button slot="actions" @click=${this._handleNextButton}>
192
+ ${currentStep + 1 < totalSteps ? 'Next' : 'Submit'}
193
+ </cds-custom-button>
194
+ </c4p-side-panel>
195
+ </div>
196
+ `;
197
+ }
198
+ };
199
+ StepSidePanel.styles = styles;
200
+ __decorate([
201
+ state()
202
+ ], StepSidePanel.prototype, "open", void 0);
203
+ __decorate([
204
+ state()
205
+ ], StepSidePanel.prototype, "_email", void 0);
206
+ __decorate([
207
+ state()
208
+ ], StepSidePanel.prototype, "_city", void 0);
209
+ __decorate([
210
+ state()
211
+ ], StepSidePanel.prototype, "_state", void 0);
212
+ StepSidePanel = __decorate([
213
+ customElement('step-side-panel')
214
+ ], StepSidePanel);
215
+
216
+ export { StepSidePanel };
217
+ //# sourceMappingURL=step-side-panel.js.map