@carbon/ibm-products-web-components 0.28.0 → 0.29.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.
- package/custom-elements.json +330 -182
- package/es/components/about-modal/about-modal.figma.js +27 -20
- package/es/components/about-modal/about-modal.figma.js.map +1 -1
- package/es/components/about-modal/about-modal.scss.js +1 -1
- package/es/components/checklist/checklist-item.figma.js +49 -0
- package/es/components/checklist/checklist-item.figma.js.map +1 -0
- package/es/components/checklist/checklist.figma.js +87 -0
- package/es/components/checklist/checklist.figma.js.map +1 -0
- package/es/components/checklist/checklist.js +12 -13
- package/es/components/checklist/checklist.js.map +1 -1
- package/es/components/checklist/checklist.scss.js +1 -1
- package/es/components/full-page-error/full-page-error.figma.js +52 -40
- package/es/components/full-page-error/full-page-error.figma.js.map +1 -1
- package/es/components/options-tile/options-file.figma.js +96 -0
- package/es/components/options-tile/options-file.figma.js.map +1 -0
- package/es/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.js +1 -1
- package/es/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
- package/es/components/tearsheet/tearsheet.scss.js +1 -1
- package/es/components/user-avatar/user-avatar.figma.js +91 -66
- package/es/components/user-avatar/user-avatar.figma.js.map +1 -1
- package/es/packages/ibm-products-web-components/package.json.js +1 -1
- package/es/patterns/step-flow/_story-assets/step-full-page.d.ts +41 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.js +257 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.js.map +1 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.scss.js +13 -0
- package/es/patterns/step-flow/_story-assets/step-full-page.scss.js.map +1 -0
- package/{lib/components → es/patterns}/step-flow/_story-assets/step-tearsheet.d.ts +2 -1
- package/es/{components → patterns}/step-flow/_story-assets/step-tearsheet.js +7 -3
- package/es/patterns/step-flow/_story-assets/step-tearsheet.js.map +1 -0
- package/es/patterns/step-flow/step-flow-signal.js.map +1 -0
- package/es/patterns/step-flow/step-flow-signal.test.js.map +1 -0
- package/es/patterns/step-flow/step-group.js.map +1 -0
- package/es/{components → patterns}/step-flow/story-styles.scss.js +1 -1
- package/es-custom/components/about-modal/about-modal.figma.js +27 -20
- package/es-custom/components/about-modal/about-modal.figma.js.map +1 -1
- package/es-custom/components/about-modal/about-modal.scss.js +1 -1
- package/es-custom/components/checklist/checklist-item.figma.js +49 -0
- package/es-custom/components/checklist/checklist-item.figma.js.map +1 -0
- package/es-custom/components/checklist/checklist.figma.js +87 -0
- package/es-custom/components/checklist/checklist.figma.js.map +1 -0
- package/es-custom/components/checklist/checklist.js +12 -13
- package/es-custom/components/checklist/checklist.js.map +1 -1
- package/es-custom/components/checklist/checklist.scss.js +1 -1
- package/es-custom/components/full-page-error/full-page-error.figma.js +52 -40
- package/es-custom/components/full-page-error/full-page-error.figma.js.map +1 -1
- package/es-custom/components/options-tile/options-file.figma.js +96 -0
- package/es-custom/components/options-tile/options-file.figma.js.map +1 -0
- package/es-custom/components/page-header/_story-assets/set-of-breadcrumbs.scss.js +1 -1
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.js +1 -1
- package/es-custom/components/page-header/_story-assets/set-of-tags/set-of-tags.scss.js +1 -1
- package/es-custom/components/tearsheet/tearsheet.scss.js +1 -1
- package/es-custom/components/user-avatar/user-avatar.figma.js +91 -66
- package/es-custom/components/user-avatar/user-avatar.figma.js.map +1 -1
- package/es-custom/packages/ibm-products-web-components/package.json.js +1 -1
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.d.ts +41 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.js +257 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.js.map +1 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.scss.js +13 -0
- package/es-custom/patterns/step-flow/_story-assets/step-full-page.scss.js.map +1 -0
- package/es-custom/{components → patterns}/step-flow/_story-assets/step-tearsheet.d.ts +2 -1
- package/es-custom/{components → patterns}/step-flow/_story-assets/step-tearsheet.js +7 -3
- package/es-custom/patterns/step-flow/_story-assets/step-tearsheet.js.map +1 -0
- package/es-custom/patterns/step-flow/step-flow-signal.js.map +1 -0
- package/es-custom/patterns/step-flow/step-flow-signal.test.js.map +1 -0
- package/es-custom/patterns/step-flow/step-group.js.map +1 -0
- package/es-custom/{components → patterns}/step-flow/story-styles.scss.js +1 -1
- package/lib/patterns/step-flow/_story-assets/step-full-page.d.ts +41 -0
- package/{es/components → lib/patterns}/step-flow/_story-assets/step-tearsheet.d.ts +2 -1
- package/package.json +9 -8
- package/scss/components/checklist/checklist.scss +6 -1
- package/es/components/about-modal/about-modal.figma.d.ts +0 -7
- package/es/components/full-page-error/full-page-error.figma.d.ts +0 -1
- package/es/components/step-flow/_story-assets/step-tearsheet.js.map +0 -1
- package/es/components/step-flow/step-flow-signal.js.map +0 -1
- package/es/components/step-flow/step-flow-signal.test.js.map +0 -1
- package/es/components/step-flow/step-group.js.map +0 -1
- package/es/components/user-avatar/user-avatar.figma.d.ts +0 -7
- package/es-custom/components/about-modal/about-modal.figma.d.ts +0 -7
- package/es-custom/components/full-page-error/full-page-error.figma.d.ts +0 -1
- package/es-custom/components/step-flow/_story-assets/step-tearsheet.js.map +0 -1
- package/es-custom/components/step-flow/step-flow-signal.js.map +0 -1
- package/es-custom/components/step-flow/step-flow-signal.test.js.map +0 -1
- package/es-custom/components/step-flow/step-group.js.map +0 -1
- package/es-custom/components/user-avatar/user-avatar.figma.d.ts +0 -7
- package/lib/components/about-modal/about-modal.figma.d.ts +0 -7
- package/lib/components/full-page-error/full-page-error.figma.d.ts +0 -1
- package/lib/components/user-avatar/user-avatar.figma.d.ts +0 -7
- /package/es/{components → patterns}/step-flow/index.d.ts +0 -0
- /package/es/{components → patterns}/step-flow/index.js +0 -0
- /package/es/{components → patterns}/step-flow/index.js.map +0 -0
- /package/es/{components → patterns}/step-flow/step-flow-signal.d.ts +0 -0
- /package/es/{components → patterns}/step-flow/step-flow-signal.js +0 -0
- /package/es/{components → patterns}/step-flow/step-flow-signal.test.d.ts +0 -0
- /package/es/{components → patterns}/step-flow/step-flow-signal.test.js +0 -0
- /package/es/{components → patterns}/step-flow/step-group.d.ts +0 -0
- /package/es/{components → patterns}/step-flow/step-group.js +0 -0
- /package/es/{components → patterns}/step-flow/story-styles.scss.js.map +0 -0
- /package/es-custom/{components → patterns}/step-flow/index.d.ts +0 -0
- /package/es-custom/{components → patterns}/step-flow/index.js +0 -0
- /package/es-custom/{components → patterns}/step-flow/index.js.map +0 -0
- /package/es-custom/{components → patterns}/step-flow/step-flow-signal.d.ts +0 -0
- /package/es-custom/{components → patterns}/step-flow/step-flow-signal.js +0 -0
- /package/es-custom/{components → patterns}/step-flow/step-flow-signal.test.d.ts +0 -0
- /package/es-custom/{components → patterns}/step-flow/step-flow-signal.test.js +0 -0
- /package/es-custom/{components → patterns}/step-flow/step-group.d.ts +0 -0
- /package/es-custom/{components → patterns}/step-flow/step-group.js +0 -0
- /package/es-custom/{components → patterns}/step-flow/story-styles.scss.js.map +0 -0
- /package/lib/{components → patterns}/step-flow/index.d.ts +0 -0
- /package/lib/{components → patterns}/step-flow/step-flow-signal.d.ts +0 -0
- /package/lib/{components → patterns}/step-flow/step-flow-signal.test.d.ts +0 -0
- /package/lib/{components → patterns}/step-flow/step-group.d.ts +0 -0
|
@@ -14,60 +14,69 @@ import './user-avatar.js';
|
|
|
14
14
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
15
15
|
* LICENSE file in the root directory of this source tree.
|
|
16
16
|
*/
|
|
17
|
+
|
|
18
|
+
|
|
17
19
|
const sharedProps = {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}),
|
|
34
|
-
bgProps: figma.nestedProps('Background', {
|
|
35
|
-
color: figma.enum('Color', {
|
|
36
|
-
Cyan: figma.enum('Sequence', {
|
|
37
|
-
Primary: 'order-1-cyan',
|
|
38
|
-
Secondary: 'order-7-cyan',
|
|
39
|
-
}),
|
|
40
|
-
Gray: figma.enum('Sequence', {
|
|
41
|
-
Primary: 'order-2-gray',
|
|
42
|
-
Secondary: 'order-8-gray',
|
|
43
|
-
}),
|
|
44
|
-
Green: figma.enum('Sequence', {
|
|
45
|
-
Primary: 'order-3-green',
|
|
46
|
-
Secondary: 'order-9-green',
|
|
47
|
-
}),
|
|
48
|
-
Magenta: figma.enum('Sequence', {
|
|
49
|
-
Primary: 'order-4-magenta',
|
|
50
|
-
Secondary: 'order-10-magenta',
|
|
51
|
-
}),
|
|
52
|
-
Purple: figma.enum('Sequence', {
|
|
53
|
-
Primary: 'order-5-purple',
|
|
54
|
-
Secondary: 'order-11-purple',
|
|
55
|
-
}),
|
|
56
|
-
Teal: figma.enum('Sequence', {
|
|
57
|
-
Primary: 'order-6-teal',
|
|
58
|
-
Secondary: 'order-12-teal',
|
|
59
|
-
}),
|
|
60
|
-
}),
|
|
20
|
+
name: figma.string('Initials text'),
|
|
21
|
+
size: figma.enum('Size', {
|
|
22
|
+
'Extra large': 'xl',
|
|
23
|
+
Large: 'lg',
|
|
24
|
+
Medium: 'md',
|
|
25
|
+
Small: 'sm',
|
|
26
|
+
}),
|
|
27
|
+
|
|
28
|
+
tooltipProps: figma.nestedProps('Tooltip', {
|
|
29
|
+
text: figma.string('Tooltip text'),
|
|
30
|
+
tooltipAlignment: figma.enum('🚫 Position', {
|
|
31
|
+
Top: 'top',
|
|
32
|
+
Right: 'right',
|
|
33
|
+
Bottom: 'bottom',
|
|
34
|
+
Left: 'left',
|
|
61
35
|
}),
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
36
|
+
}),
|
|
37
|
+
|
|
38
|
+
bgProps: figma.nestedProps('Background', {
|
|
39
|
+
color: figma.enum('Color', {
|
|
40
|
+
Cyan: figma.enum('Sequence', {
|
|
41
|
+
Primary: 'order-1-cyan',
|
|
42
|
+
Secondary: 'order-7-cyan',
|
|
43
|
+
}),
|
|
44
|
+
Gray: figma.enum('Sequence', {
|
|
45
|
+
Primary: 'order-2-gray',
|
|
46
|
+
Secondary: 'order-8-gray',
|
|
47
|
+
}),
|
|
48
|
+
Green: figma.enum('Sequence', {
|
|
49
|
+
Primary: 'order-3-green',
|
|
50
|
+
Secondary: 'order-9-green',
|
|
51
|
+
}),
|
|
52
|
+
Magenta: figma.enum('Sequence', {
|
|
53
|
+
Primary: 'order-4-magenta',
|
|
54
|
+
Secondary: 'order-10-magenta',
|
|
55
|
+
}),
|
|
56
|
+
Purple: figma.enum('Sequence', {
|
|
57
|
+
Primary: 'order-5-purple',
|
|
58
|
+
Secondary: 'order-11-purple',
|
|
59
|
+
}),
|
|
60
|
+
Teal: figma.enum('Sequence', {
|
|
61
|
+
Primary: 'order-6-teal',
|
|
62
|
+
Secondary: 'order-12-teal',
|
|
63
|
+
}),
|
|
65
64
|
}),
|
|
65
|
+
}),
|
|
66
|
+
Type: figma.enum('Type', {
|
|
67
|
+
'Single user': 'User',
|
|
68
|
+
'User group': 'Group',
|
|
69
|
+
}),
|
|
66
70
|
};
|
|
67
|
-
|
|
71
|
+
|
|
72
|
+
figma.connect(
|
|
73
|
+
'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4',
|
|
74
|
+
{
|
|
68
75
|
variant: { Type: 'Image' },
|
|
69
76
|
props: sharedProps,
|
|
70
|
-
|
|
77
|
+
|
|
78
|
+
example: ({ tooltipProps, name, size }) =>
|
|
79
|
+
html`<c4p-user-avatar
|
|
71
80
|
tooltip-alignment=${tooltipProps.tooltipAlignment}
|
|
72
81
|
tooltip-text=${tooltipProps.text}
|
|
73
82
|
name=${name}
|
|
@@ -77,13 +86,18 @@ figma.connect('https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Pro
|
|
|
77
86
|
>
|
|
78
87
|
</c4p-user-avatar> `,
|
|
79
88
|
imports: [
|
|
80
|
-
|
|
89
|
+
"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'",
|
|
81
90
|
],
|
|
82
|
-
}
|
|
83
|
-
|
|
91
|
+
}
|
|
92
|
+
);
|
|
93
|
+
|
|
94
|
+
figma.connect(
|
|
95
|
+
'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4',
|
|
96
|
+
{
|
|
84
97
|
variant: { Type: 'Initials' },
|
|
85
98
|
props: sharedProps,
|
|
86
|
-
example: ({ tooltipProps, name, size, bgProps }) =>
|
|
99
|
+
example: ({ tooltipProps, name, size, bgProps }) =>
|
|
100
|
+
html`<c4p-user-avatar
|
|
87
101
|
tooltip-alignment=${tooltipProps.tooltipAlignment}
|
|
88
102
|
tooltip-text=${tooltipProps.text}
|
|
89
103
|
name=${name}
|
|
@@ -92,13 +106,18 @@ figma.connect('https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Pro
|
|
|
92
106
|
>
|
|
93
107
|
</c4p-user-avatar> `,
|
|
94
108
|
imports: [
|
|
95
|
-
|
|
109
|
+
"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'",
|
|
96
110
|
],
|
|
97
|
-
}
|
|
98
|
-
|
|
111
|
+
}
|
|
112
|
+
);
|
|
113
|
+
|
|
114
|
+
figma.connect(
|
|
115
|
+
'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4',
|
|
116
|
+
{
|
|
99
117
|
variant: { Type: 'Single user' },
|
|
100
118
|
props: sharedProps,
|
|
101
|
-
example: ({ tooltipProps, name, size, bgProps, Type }) =>
|
|
119
|
+
example: ({ tooltipProps, name, size, bgProps, Type }) =>
|
|
120
|
+
html`<c4p-user-avatar
|
|
102
121
|
tooltip-alignment=${tooltipProps.tooltipAlignment}
|
|
103
122
|
tooltip-text=${tooltipProps.text}
|
|
104
123
|
name=${name}
|
|
@@ -109,15 +128,20 @@ figma.connect('https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Pro
|
|
|
109
128
|
\${iconLoader(${Type}, { slot: 'rendericon' })}
|
|
110
129
|
</c4p-user-avatar> `,
|
|
111
130
|
imports: [
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
131
|
+
"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'",
|
|
132
|
+
"import iconLoader from '@carbon/web-components/es/globals/internal/icon-loader.js'",
|
|
133
|
+
"import User from '@carbon/icons/es/user/16'",
|
|
115
134
|
],
|
|
116
|
-
}
|
|
117
|
-
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
|
|
138
|
+
figma.connect(
|
|
139
|
+
'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4',
|
|
140
|
+
{
|
|
118
141
|
variant: { Type: 'User group' },
|
|
119
142
|
props: sharedProps,
|
|
120
|
-
example: ({ tooltipProps, name, size, bgProps, Type }) =>
|
|
143
|
+
example: ({ tooltipProps, name, size, bgProps, Type }) =>
|
|
144
|
+
html`<c4p-user-avatar
|
|
121
145
|
tooltip-alignment=${tooltipProps.tooltipAlignment}
|
|
122
146
|
tooltip-text=${tooltipProps.text}
|
|
123
147
|
name=${name}
|
|
@@ -128,9 +152,10 @@ figma.connect('https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Pro
|
|
|
128
152
|
\${iconLoader(${Type}, { slot: 'rendericon' })}
|
|
129
153
|
</c4p-user-avatar> `,
|
|
130
154
|
imports: [
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
155
|
+
"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'",
|
|
156
|
+
"import iconLoader from '@carbon/web-components/es/globals/internal/icon-loader.js'",
|
|
157
|
+
"import Group from '@carbon/icons/es/group/16'",
|
|
134
158
|
],
|
|
135
|
-
}
|
|
159
|
+
}
|
|
160
|
+
);
|
|
136
161
|
//# sourceMappingURL=user-avatar.figma.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-avatar.figma.js","sources":["../../../src/components/user-avatar/user-avatar.figma.ts"],"sourcesContent":[
|
|
1
|
+
{"version":3,"file":"user-avatar.figma.js","sources":["../../../src/components/user-avatar/user-avatar.figma.ts"],"sourcesContent":["/**\n * Copyright IBM Corp. 2025, 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';\nimport './user-avatar';\n\nconst sharedProps = {\n name: figma.string('Initials text'),\n size: figma.enum('Size', {\n 'Extra large': 'xl',\n Large: 'lg',\n Medium: 'md',\n Small: 'sm',\n }),\n\n tooltipProps: figma.nestedProps('Tooltip', {\n text: figma.string('Tooltip text'),\n tooltipAlignment: figma.enum('🚫 Position', {\n Top: 'top',\n Right: 'right',\n Bottom: 'bottom',\n Left: 'left',\n }),\n }),\n\n bgProps: figma.nestedProps('Background', {\n color: figma.enum('Color', {\n Cyan: figma.enum('Sequence', {\n Primary: 'order-1-cyan',\n Secondary: 'order-7-cyan',\n }),\n Gray: figma.enum('Sequence', {\n Primary: 'order-2-gray',\n Secondary: 'order-8-gray',\n }),\n Green: figma.enum('Sequence', {\n Primary: 'order-3-green',\n Secondary: 'order-9-green',\n }),\n Magenta: figma.enum('Sequence', {\n Primary: 'order-4-magenta',\n Secondary: 'order-10-magenta',\n }),\n Purple: figma.enum('Sequence', {\n Primary: 'order-5-purple',\n Secondary: 'order-11-purple',\n }),\n Teal: figma.enum('Sequence', {\n Primary: 'order-6-teal',\n Secondary: 'order-12-teal',\n }),\n }),\n }),\n Type: figma.enum('Type', {\n 'Single user': 'User',\n 'User group': 'Group',\n }),\n};\n\nfigma.connect(\n 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4',\n {\n variant: { Type: 'Image' },\n props: sharedProps,\n\n example: ({ tooltipProps, name, size }) =>\n html`<c4p-user-avatar\n tooltip-alignment=${tooltipProps.tooltipAlignment}\n tooltip-text=${tooltipProps.text}\n name=${name}\n size=${size}\n image=\"/path/to/image\"\n image-description=\"Alt text for image\"\n >\n </c4p-user-avatar> `,\n imports: [\n \"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'\",\n ],\n }\n);\n\nfigma.connect(\n 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4',\n {\n variant: { Type: 'Initials' },\n props: sharedProps,\n example: ({ tooltipProps, name, size, bgProps }) =>\n html`<c4p-user-avatar\n tooltip-alignment=${tooltipProps.tooltipAlignment}\n tooltip-text=${tooltipProps.text}\n name=${name}\n size=${size}\n background-color=${bgProps.color}\n >\n </c4p-user-avatar> `,\n imports: [\n \"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'\",\n ],\n }\n);\n\nfigma.connect(\n 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4',\n {\n variant: { Type: 'Single user' },\n props: sharedProps,\n example: ({ tooltipProps, name, size, bgProps, Type }) =>\n html`<c4p-user-avatar\n tooltip-alignment=${tooltipProps.tooltipAlignment}\n tooltip-text=${tooltipProps.text}\n name=${name}\n size=${size}\n background-color=${bgProps.color}\n >\n <!-- Icon loaded via iconLoader helper from '@carbon/web-components' -->\n \\${iconLoader(${Type}, { slot: 'rendericon' })}\n </c4p-user-avatar> `,\n imports: [\n \"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'\",\n \"import iconLoader from '@carbon/web-components/es/globals/internal/icon-loader.js'\",\n \"import User from '@carbon/icons/es/user/16'\",\n ],\n }\n);\n\nfigma.connect(\n 'https://www.figma.com/design/0F9dKH2abAd7gSfvnacfWf/-v11--IBM-Products-%E2%80%93-Carbon-Design-System?node-id=15368-59379&t=lbewdWdJ4JB5izcw-4',\n {\n variant: { Type: 'User group' },\n props: sharedProps,\n example: ({ tooltipProps, name, size, bgProps, Type }) =>\n html`<c4p-user-avatar\n tooltip-alignment=${tooltipProps.tooltipAlignment}\n tooltip-text=${tooltipProps.text}\n name=${name}\n size=${size}\n background-color=${bgProps.color}\n >\n <!-- Icon loaded via iconLoader helper from '@carbon/web-components' -->\n \\${iconLoader(${Type}, { slot: 'rendericon' })}\n </c4p-user-avatar> `,\n imports: [\n \"import '@carbon/ibm-products-web-components/es/components/user-avatar/index.js'\",\n \"import iconLoader from '@carbon/web-components/es/globals/internal/icon-loader.js'\",\n \"import Group from '@carbon/icons/es/group/16'\",\n ],\n }\n);\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;;;AAKA,MAAM,WAAW,GAAG;AACpB,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,eAAe,CAAC;AACrC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE;AAC3B,IAAI,aAAa,EAAE,IAAI;AACvB,IAAI,KAAK,EAAE,IAAI;AACf,IAAI,MAAM,EAAE,IAAI;AAChB,IAAI,KAAK,EAAE,IAAI;AACf,GAAG,CAAC;;AAEJ,EAAE,YAAY,EAAE,KAAK,CAAC,WAAW,CAAC,SAAS,EAAE;AAC7C,IAAI,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,cAAc,CAAC;AACtC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.0 license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/
|
|
7
|
+
import { LitElement, PropertyValues } from 'lit';
|
|
8
|
+
import '@carbon/web-components/es-custom/components/progress-indicator/index.js';
|
|
9
|
+
import '@carbon/web-components/es-custom/components/stack/index.js';
|
|
10
|
+
import '@carbon/web-components/es-custom/components/code-snippet/index.js';
|
|
11
|
+
import '@carbon/web-components/es-custom/components/button/index.js';
|
|
12
|
+
import '@carbon/web-components/es-custom/components/grid/index';
|
|
13
|
+
import '../step-group';
|
|
14
|
+
declare const StepFullPage_base: typeof LitElement;
|
|
15
|
+
export declare class StepFullPage extends StepFullPage_base {
|
|
16
|
+
narrow: boolean;
|
|
17
|
+
private _open;
|
|
18
|
+
private _email;
|
|
19
|
+
private _city;
|
|
20
|
+
private _state;
|
|
21
|
+
private _trapFocusAPI;
|
|
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
|
+
disconnectedCallback(): void;
|
|
31
|
+
protected firstUpdated(_changedProperties: PropertyValues): void;
|
|
32
|
+
updated(changedProps: Map<string | number | symbol, unknown>): void;
|
|
33
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
34
|
+
static styles: any;
|
|
35
|
+
}
|
|
36
|
+
declare global {
|
|
37
|
+
interface HTMLElementTagNameMap {
|
|
38
|
+
'step-full-page': StepFullPage;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -0,0 +1,257 @@
|
|
|
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 { property, state, customElement } from 'lit/decorators.js';
|
|
11
|
+
import { SignalWatcher } from '@lit-labs/signals';
|
|
12
|
+
import styles from './step-full-page.scss.js';
|
|
13
|
+
import { StepInstance } from '../step-flow-signal.js';
|
|
14
|
+
import '@carbon/web-components/es-custom/components/progress-indicator/index.js';
|
|
15
|
+
import '@carbon/web-components/es-custom/components/stack/index.js';
|
|
16
|
+
import '@carbon/web-components/es-custom/components/code-snippet/index.js';
|
|
17
|
+
import '@carbon/web-components/es-custom/components/button/index.js';
|
|
18
|
+
import '@carbon/web-components/es-custom/components/grid/index';
|
|
19
|
+
import '../step-group.js';
|
|
20
|
+
import { registerFocusableContainers, trapFocus } from '../../../utilities/manageFocusTrap/manageFocusTrap.js';
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Copyright IBM Corp. 2025, 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
|
+
let StepFullPage = class StepFullPage extends SignalWatcher(LitElement) {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.narrow = false;
|
|
32
|
+
this._open = false;
|
|
33
|
+
this._email = '';
|
|
34
|
+
this._city = '';
|
|
35
|
+
this._state = '';
|
|
36
|
+
this._trapFocusAPI = null;
|
|
37
|
+
this._stepInfo = new StepInstance();
|
|
38
|
+
}
|
|
39
|
+
_handleCancelButton() {
|
|
40
|
+
this._open = false;
|
|
41
|
+
this._stepInfo.reset();
|
|
42
|
+
}
|
|
43
|
+
_handleBackButton() {
|
|
44
|
+
const { currentStep } = this._stepInfo.data;
|
|
45
|
+
if (currentStep === 0) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
return this._stepInfo.handlePrevious();
|
|
49
|
+
}
|
|
50
|
+
_handleNextButton() {
|
|
51
|
+
const { currentStep, totalSteps } = this._stepInfo.data;
|
|
52
|
+
if (currentStep + 1 === totalSteps) {
|
|
53
|
+
this._open = false;
|
|
54
|
+
this._stepInfo.reset();
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
return this._stepInfo.handleNext();
|
|
58
|
+
}
|
|
59
|
+
_handleEmailInput(e) {
|
|
60
|
+
const savedFormState = structuredClone(this._stepInfo.data.formState);
|
|
61
|
+
savedFormState.email = e.target.value;
|
|
62
|
+
this._stepInfo.updateFormState = savedFormState;
|
|
63
|
+
}
|
|
64
|
+
_handleCityInput(e) {
|
|
65
|
+
const savedFormState = structuredClone(this._stepInfo.data.formState);
|
|
66
|
+
savedFormState.city = e.target.value;
|
|
67
|
+
this._stepInfo.updateFormState = savedFormState;
|
|
68
|
+
}
|
|
69
|
+
_handleStateInput(e) {
|
|
70
|
+
const savedFormState = structuredClone(this._stepInfo.data.formState);
|
|
71
|
+
savedFormState.state = e.target.value;
|
|
72
|
+
this._stepInfo.updateFormState = savedFormState;
|
|
73
|
+
}
|
|
74
|
+
connectedCallback() {
|
|
75
|
+
super.connectedCallback();
|
|
76
|
+
this._stepInfo.updateTotalStepCount = 3;
|
|
77
|
+
}
|
|
78
|
+
disconnectedCallback() {
|
|
79
|
+
var _a;
|
|
80
|
+
(_a = this._trapFocusAPI) === null || _a === void 0 ? void 0 : _a.cleanup();
|
|
81
|
+
}
|
|
82
|
+
firstUpdated(_changedProperties) {
|
|
83
|
+
var _a;
|
|
84
|
+
registerFocusableContainers((_a = this.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('step-full-page'));
|
|
85
|
+
}
|
|
86
|
+
updated(changedProps) {
|
|
87
|
+
if (changedProps.has('_open')) {
|
|
88
|
+
const isOpen = this._open;
|
|
89
|
+
if (isOpen) {
|
|
90
|
+
// `focusableContainers` holds the containers where we can query DOM elements.
|
|
91
|
+
// Our strategy here is to let child/slotted components register their containers,
|
|
92
|
+
// which are then passed to `trapFocus`. This allows the utility to query elements
|
|
93
|
+
// directly without being blocked by shadow DOM boundaries.
|
|
94
|
+
this._trapFocusAPI = trapFocus();
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
render() {
|
|
99
|
+
const { formState, totalSteps, currentStep } = this._stepInfo.data;
|
|
100
|
+
return html ` <div class=${'step-full-page-with-util'} ?open=${this._open}>
|
|
101
|
+
<!-- slotted influencer -->
|
|
102
|
+
<div class="create-influencer" slot="influencer">
|
|
103
|
+
<cds-custom-progress-indicator
|
|
104
|
+
vertical
|
|
105
|
+
class=${`custom-step-util__dummy-content-block`}
|
|
106
|
+
>
|
|
107
|
+
<cds-custom-progress-step
|
|
108
|
+
label="First step"
|
|
109
|
+
state=${currentStep + 1 === 1 ? 'current' : 'complete'}
|
|
110
|
+
></cds-custom-progress-step>
|
|
111
|
+
<cds-custom-progress-step
|
|
112
|
+
label="Second step"
|
|
113
|
+
state=${currentStep + 1 === 2
|
|
114
|
+
? 'current'
|
|
115
|
+
: currentStep + 1 < 2
|
|
116
|
+
? 'incomplete'
|
|
117
|
+
: 'complete'}
|
|
118
|
+
></cds-custom-progress-step>
|
|
119
|
+
<cds-custom-progress-step
|
|
120
|
+
label="Third step"
|
|
121
|
+
state=${currentStep + 1 === 3
|
|
122
|
+
? 'current'
|
|
123
|
+
: currentStep + 1 < 3
|
|
124
|
+
? 'incomplete'
|
|
125
|
+
: 'complete'}
|
|
126
|
+
></cds-custom-progress-step>
|
|
127
|
+
</cds-custom-progress-indicator>
|
|
128
|
+
</div>
|
|
129
|
+
<cds-custom-layer level="1" class="create-full-page-layer">
|
|
130
|
+
<div class="create-full-page-wrapper">
|
|
131
|
+
<div class="upper-step-content">
|
|
132
|
+
<cds-custom-grid class="sb-grid">
|
|
133
|
+
<cds-custom-column lg="8" sm="4">
|
|
134
|
+
<div class="create-full-page-header">
|
|
135
|
+
<!-- slotted header label -->
|
|
136
|
+
<!-- <span slot="label">Optional label for context</span> -->
|
|
137
|
+
|
|
138
|
+
<!-- slotted header title -->
|
|
139
|
+
<h2>Step ${currentStep + 1}</h2>
|
|
140
|
+
<p class="create-full-page-subtitle">
|
|
141
|
+
Optional subtitle to display on a step
|
|
142
|
+
</p>
|
|
143
|
+
|
|
144
|
+
<!-- slotted header description -->
|
|
145
|
+
<p class="create-full-page-description">
|
|
146
|
+
Optional description to display on a step
|
|
147
|
+
</p>
|
|
148
|
+
</div>
|
|
149
|
+
</cds-custom-column>
|
|
150
|
+
</cds-custom-grid>
|
|
151
|
+
|
|
152
|
+
<!-- default slotted content -->
|
|
153
|
+
<step-group>
|
|
154
|
+
<cds-custom-grid class="sb-grid">
|
|
155
|
+
<cds-custom-column lg="8" sm="4">
|
|
156
|
+
${currentStep + 1 === 1
|
|
157
|
+
? html `<div>
|
|
158
|
+
<cds-custom-stack gap="6" orientation="horizontal">
|
|
159
|
+
<cds-custom-text-input
|
|
160
|
+
label="Email"
|
|
161
|
+
id="tearsheet-story-text-input-a"
|
|
162
|
+
value=${this._email}
|
|
163
|
+
@input="${this._handleEmailInput}"
|
|
164
|
+
></cds-custom-text-input>
|
|
165
|
+
</cds-custom-stack>
|
|
166
|
+
</div>`
|
|
167
|
+
: nothing}
|
|
168
|
+
${currentStep + 1 === 2
|
|
169
|
+
? html `<div>
|
|
170
|
+
<cds-custom-stack gap="6" orientation="horizontal">
|
|
171
|
+
<cds-custom-text-input
|
|
172
|
+
label="City"
|
|
173
|
+
id="tearsheet-story-text-input-city"
|
|
174
|
+
value=${this._city}
|
|
175
|
+
@input="${this._handleCityInput}"
|
|
176
|
+
></cds-custom-text-input>
|
|
177
|
+
<cds-custom-text-input
|
|
178
|
+
label="State"
|
|
179
|
+
id="tearsheet-story-text-input-state"
|
|
180
|
+
value=${this._state}
|
|
181
|
+
@input="${this._handleStateInput}"
|
|
182
|
+
></cds-custom-text-input>
|
|
183
|
+
</cds-custom-stack>
|
|
184
|
+
</div>`
|
|
185
|
+
: nothing}
|
|
186
|
+
${currentStep + 1 === 3
|
|
187
|
+
? html `<div>
|
|
188
|
+
<!-- //cspell: disable -->
|
|
189
|
+
<cds-custom-code-snippet
|
|
190
|
+
type="multi"
|
|
191
|
+
copy-text=""
|
|
192
|
+
maxcollapsednumberofrows="15"
|
|
193
|
+
maxexpandednumberofrows=""
|
|
194
|
+
mincollapsednumberofrows="3"
|
|
195
|
+
minexpandednumberofrows=""
|
|
196
|
+
show-less-text="Show less"
|
|
197
|
+
show-more-text="Show more"
|
|
198
|
+
feedback=""
|
|
199
|
+
feedback-timeout="0"
|
|
200
|
+
tooltip-content="Copy to clipboard"
|
|
201
|
+
>
|
|
202
|
+
${JSON.stringify(formState, null, 2)}
|
|
203
|
+
</cds-custom-code-snippet>
|
|
204
|
+
<!-- //cspell: enable -->
|
|
205
|
+
</div>`
|
|
206
|
+
: nothing}
|
|
207
|
+
</cds-custom-column>
|
|
208
|
+
</cds-custom-grid>
|
|
209
|
+
</step-group>
|
|
210
|
+
</div>
|
|
211
|
+
<div class="create-full-page-actions">
|
|
212
|
+
<cds-custom-button
|
|
213
|
+
slot="actions"
|
|
214
|
+
kind=${'ghost'}
|
|
215
|
+
class="create-full-page-action__cancel"
|
|
216
|
+
@click=${this._handleCancelButton}
|
|
217
|
+
>
|
|
218
|
+
Cancel
|
|
219
|
+
</cds-custom-button>
|
|
220
|
+
<cds-custom-button
|
|
221
|
+
slot="actions"
|
|
222
|
+
kind=${'secondary'}
|
|
223
|
+
@click=${this._handleBackButton}
|
|
224
|
+
>
|
|
225
|
+
Back
|
|
226
|
+
</cds-custom-button>
|
|
227
|
+
<cds-custom-button slot="actions" @click=${this._handleNextButton}>
|
|
228
|
+
${currentStep + 1 < totalSteps ? 'Next' : 'Submit'}
|
|
229
|
+
</cds-custom-button>
|
|
230
|
+
</div>
|
|
231
|
+
</div>
|
|
232
|
+
</cds-custom-layer>
|
|
233
|
+
</div>`;
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
StepFullPage.styles = styles;
|
|
237
|
+
__decorate([
|
|
238
|
+
property({ type: Boolean })
|
|
239
|
+
], StepFullPage.prototype, "narrow", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
state()
|
|
242
|
+
], StepFullPage.prototype, "_open", void 0);
|
|
243
|
+
__decorate([
|
|
244
|
+
state()
|
|
245
|
+
], StepFullPage.prototype, "_email", void 0);
|
|
246
|
+
__decorate([
|
|
247
|
+
state()
|
|
248
|
+
], StepFullPage.prototype, "_city", void 0);
|
|
249
|
+
__decorate([
|
|
250
|
+
state()
|
|
251
|
+
], StepFullPage.prototype, "_state", void 0);
|
|
252
|
+
StepFullPage = __decorate([
|
|
253
|
+
customElement('step-full-page')
|
|
254
|
+
], StepFullPage);
|
|
255
|
+
|
|
256
|
+
export { StepFullPage };
|
|
257
|
+
//# sourceMappingURL=step-full-page.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-full-page.js","sources":["../../../../src/patterns/step-flow/_story-assets/step-full-page.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;AAKG;AAyBU,IAAA,YAAY,GAAlB,MAAM,YAAa,SAAQ,aAAa,CAAC,UAAU,CAAC,CAAA;AAApD,IAAA,WAAA,GAAA;;QAEL,IAAM,CAAA,MAAA,GAAY,KAAK;QAEf,IAAK,CAAA,KAAA,GAAY,KAAK;QAGtB,IAAM,CAAA,MAAA,GAAW,EAAE;QAGnB,IAAK,CAAA,KAAA,GAAW,EAAE;QAGlB,IAAM,CAAA,MAAA,GAAW,EAAE;QAEnB,IAAa,CAAA,aAAA,GAAmC,IAAI;AAiDpD,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,YAAY,EAAE;;IA/C9B,mBAAmB,GAAA;AACzB,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK;AAClB,QAAA,IAAI,CAAC,SAAS,CAAC,KAAK,EAAE;;IAGhB,iBAAiB,GAAA;QACvB,MAAM,EAAE,WAAW,E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AA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAGpB,UAAA,CAAA;AADP,IAAA,KAAK;AACqB,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAGnB,UAAA,CAAA;AADP,IAAA,KAAK;AACsB,CAAA,EAAA,YAAA,CAAA,SAAA,EAAA,QAAA,EAAA,MAAA,CAAA;AAbjB,YAAY,GAAA,UAAA,CAAA;IADxB,aAAa,CAAC,gBAAgB;AAClB,CAAA,EAAA,YAAY,CA0OxB;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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 { css } from 'lit';
|
|
9
|
+
|
|
10
|
+
var styles = css([":host(step-full-page){block-size:100vh;color:var(--cds-text-primary,#161616);display:grid;grid-template-rows:minmax(auto,100%)}:host(step-full-page) .step-full-page-with-util{display:flex;margin:0;max-block-size:100%;overflow:hidden;padding:0}:host(step-full-page) .create-full-page-header{padding-block-end:1.5rem}:host(step-full-page) .create-full-page-header h2{font-size:var(--cds-heading-04-font-size,1.75rem);font-weight:var(--cds-heading-04-font-weight,400);letter-spacing:var(--cds-heading-04-letter-spacing,0);line-height:var(--cds-heading-04-line-height,1.28572)}:host(step-full-page) .create-full-page-wrapper{background-color:var(--cds-layer-01,#f4f4f4);block-size:calc(100% - 1.5rem);color:var(--cds-text-primary,#161616);display:flex;flex-direction:column;flex-grow:1;justify-content:space-between;overflow:auto;overflow-x:hidden;padding-block-start:1.5rem}:host(step-full-page) .create-influencer{border-inline-end:1px solid var(--cds-border-subtle);box-sizing:border-box;inline-size:256px;min-inline-size:256px;padding:1.5rem 2rem}:host(step-full-page) .create-full-page-subtitle{font-size:var(--cds-heading-compact-01-font-size,.875rem);font-weight:var(--cds-heading-compact-01-font-weight,600);letter-spacing:var(--cds-heading-compact-01-letter-spacing,.16px);line-height:var(--cds-heading-compact-01-line-height,1.28572)}:host(step-full-page) .create-full-page-description{font-size:var(--cds-body-01-font-size,.875rem);font-weight:var(--cds-body-01-font-weight,400);letter-spacing:var(--cds-body-01-letter-spacing,.16px);line-height:var(--cds-body-01-line-height,1.42857)}:host(step-full-page) .create-full-page-layer{inline-size:100%}:host(step-full-page) .create-full-page-actions{block-size:64px;border-block-start:1px solid var(--cds-border-subtle);display:grid;font-size:var(--cds-body-compact-01-font-size,.875rem);font-weight:var(--cds-body-compact-01-font-weight,400);grid-auto-rows:minmax(auto,auto);grid-template-columns:repeat(6,1fr);letter-spacing:var(--cds-body-compact-01-letter-spacing,.16px);line-height:var(--cds-body-compact-01-line-height,1.28572)}:host(step-full-page) .create-full-page-action__cancel{grid-column:span 4}:host(step-full-page) ::part(grid){max-inline-size:100%}"]);
|
|
11
|
+
|
|
12
|
+
export { styles as default };
|
|
13
|
+
//# sourceMappingURL=step-full-page.scss.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"step-full-page.scss.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -9,9 +9,10 @@ import '@carbon/web-components/es-custom/components/progress-indicator/index.js'
|
|
|
9
9
|
import '@carbon/web-components/es-custom/components/stack/index.js';
|
|
10
10
|
import '@carbon/web-components/es-custom/components/code-snippet/index.js';
|
|
11
11
|
import '../step-group';
|
|
12
|
-
import '
|
|
12
|
+
import '../../../components/tearsheet/index.js';
|
|
13
13
|
declare const StepTearsheet_base: typeof LitElement;
|
|
14
14
|
export declare class StepTearsheet extends StepTearsheet_base {
|
|
15
|
+
narrow: boolean;
|
|
15
16
|
private _open;
|
|
16
17
|
private _email;
|
|
17
18
|
private _city;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
import { __decorate } from 'tslib';
|
|
9
9
|
import { LitElement, nothing, html } from 'lit';
|
|
10
|
-
import { state, customElement } from 'lit/decorators.js';
|
|
10
|
+
import { property, state, customElement } from 'lit/decorators.js';
|
|
11
11
|
import { SignalWatcher } from '@lit-labs/signals';
|
|
12
12
|
import styles from '../story-styles.scss.js';
|
|
13
13
|
import { StepInstance } from '../step-flow-signal.js';
|
|
@@ -15,7 +15,7 @@ import '@carbon/web-components/es-custom/components/progress-indicator/index.js'
|
|
|
15
15
|
import '@carbon/web-components/es-custom/components/stack/index.js';
|
|
16
16
|
import '@carbon/web-components/es-custom/components/code-snippet/index.js';
|
|
17
17
|
import '../step-group.js';
|
|
18
|
-
import '
|
|
18
|
+
import '../../../components/tearsheet/tearsheet.js';
|
|
19
19
|
import { registerFocusableContainers, trapFocus } from '../../../utilities/manageFocusTrap/manageFocusTrap.js';
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -27,6 +27,7 @@ import { registerFocusableContainers, trapFocus } from '../../../utilities/manag
|
|
|
27
27
|
let StepTearsheet = class StepTearsheet extends SignalWatcher(LitElement) {
|
|
28
28
|
constructor() {
|
|
29
29
|
super(...arguments);
|
|
30
|
+
this.narrow = false;
|
|
30
31
|
this._open = false;
|
|
31
32
|
this._email = '';
|
|
32
33
|
this._city = '';
|
|
@@ -109,7 +110,7 @@ let StepTearsheet = class StepTearsheet extends SignalWatcher(LitElement) {
|
|
|
109
110
|
class=${'step-tearsheet-with-util'}
|
|
110
111
|
selector-initial-focus=${'#tearsheet-story-text-input-a'}
|
|
111
112
|
?open=${this._open}
|
|
112
|
-
width=${'wide'}
|
|
113
|
+
width=${this.narrow ? 'narrow' : 'wide'}
|
|
113
114
|
influencer-placement=${'left'}
|
|
114
115
|
prevent-close-on-click-outside
|
|
115
116
|
>
|
|
@@ -231,6 +232,9 @@ let StepTearsheet = class StepTearsheet extends SignalWatcher(LitElement) {
|
|
|
231
232
|
}
|
|
232
233
|
};
|
|
233
234
|
StepTearsheet.styles = styles; // `styles` here is a `CSSResult` generated by custom WebPack loader
|
|
235
|
+
__decorate([
|
|
236
|
+
property({ type: Boolean })
|
|
237
|
+
], StepTearsheet.prototype, "narrow", void 0);
|
|
234
238
|
__decorate([
|
|
235
239
|
state()
|
|
236
240
|
], StepTearsheet.prototype, "_open", void 0);
|