@cloudscape-design/components 3.0.1174 → 3.0.1176
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/alert/styles.css.js +27 -27
- package/alert/styles.scoped.css +50 -50
- package/alert/styles.selectors.js +27 -27
- package/annotation-context/annotation/styles.css.js +13 -13
- package/annotation-context/annotation/styles.scoped.css +21 -21
- package/annotation-context/annotation/styles.selectors.js +13 -13
- package/app-layout/notifications/styles.css.js +3 -3
- package/app-layout/notifications/styles.scoped.css +7 -7
- package/app-layout/notifications/styles.selectors.js +3 -3
- package/app-layout/visual-refresh/styles.css.js +86 -86
- package/app-layout/visual-refresh/styles.scoped.css +258 -258
- package/app-layout/visual-refresh/styles.selectors.js +86 -86
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +30 -30
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +87 -87
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +30 -30
- package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
- package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
- package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
- package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +27 -27
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +54 -54
- package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +27 -27
- package/attribute-editor/styles.css.js +15 -15
- package/attribute-editor/styles.scoped.css +28 -28
- package/attribute-editor/styles.selectors.js +15 -15
- package/breadcrumb-group/item/styles.css.js +7 -7
- package/breadcrumb-group/item/styles.scoped.css +28 -28
- package/breadcrumb-group/item/styles.selectors.js +7 -7
- package/button/styles.css.js +22 -22
- package/button/styles.scoped.css +256 -256
- package/button/styles.selectors.js +22 -22
- package/button-dropdown/item-element/styles.css.js +20 -20
- package/button-dropdown/item-element/styles.scoped.css +34 -34
- package/button-dropdown/item-element/styles.selectors.js +20 -20
- package/checkbox/styles.css.js +3 -3
- package/checkbox/styles.scoped.css +11 -11
- package/checkbox/styles.selectors.js +3 -3
- package/content-layout/styles.css.js +14 -14
- package/content-layout/styles.scoped.css +27 -27
- package/content-layout/styles.selectors.js +14 -14
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +187 -187
- package/flashbar/styles.selectors.js +50 -50
- package/help-panel/styles.css.js +6 -6
- package/help-panel/styles.scoped.css +73 -73
- package/help-panel/styles.selectors.js +6 -6
- package/input/styles.css.js +13 -13
- package/input/styles.scoped.css +74 -74
- package/input/styles.selectors.js +13 -13
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/drag-handle-wrapper/styles.css.js +30 -30
- package/internal/components/drag-handle-wrapper/styles.scoped.css +58 -58
- package/internal/components/drag-handle-wrapper/styles.selectors.js +30 -30
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +38 -38
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/components/radio-button/styles.css.js +7 -7
- package/internal/components/radio-button/styles.scoped.css +18 -18
- package/internal/components/radio-button/styles.selectors.js +7 -7
- package/internal/components/token-list/styles.css.js +10 -10
- package/internal/components/token-list/styles.scoped.css +25 -25
- package/internal/components/token-list/styles.selectors.js +10 -10
- package/internal/do-not-use/feature-prompt/index.d.ts +5 -0
- package/internal/do-not-use/feature-prompt/index.d.ts.map +1 -0
- package/internal/do-not-use/feature-prompt/index.js +15 -0
- package/internal/do-not-use/feature-prompt/index.js.map +1 -0
- package/internal/do-not-use/feature-prompt/interfaces.d.ts +68 -0
- package/internal/do-not-use/feature-prompt/interfaces.d.ts.map +1 -0
- package/internal/do-not-use/feature-prompt/interfaces.js +4 -0
- package/internal/do-not-use/feature-prompt/interfaces.js.map +1 -0
- package/internal/do-not-use/feature-prompt/internal.d.ts +7 -0
- package/internal/do-not-use/feature-prompt/internal.d.ts.map +1 -0
- package/internal/do-not-use/feature-prompt/internal.js +43 -0
- package/internal/do-not-use/feature-prompt/internal.js.map +1 -0
- package/internal/do-not-use/feature-prompt/styles.css.js +4 -0
- package/internal/do-not-use/feature-prompt/styles.scoped.css +4 -0
- package/internal/do-not-use/feature-prompt/styles.selectors.js +5 -0
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/custom-css-properties/index.d.ts +7 -0
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +138 -131
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/link/styles.css.js +20 -20
- package/link/styles.scoped.css +103 -103
- package/link/styles.selectors.js +20 -20
- package/package.json +1 -1
- package/popover/body.d.ts +3 -12
- package/popover/body.d.ts.map +1 -1
- package/popover/body.js +4 -3
- package/popover/body.js.map +1 -1
- package/progress-bar/styles.css.js +19 -19
- package/progress-bar/styles.scoped.css +56 -56
- package/progress-bar/styles.selectors.js +19 -19
- package/prompt-input/styles.css.js +17 -17
- package/prompt-input/styles.scoped.css +79 -79
- package/prompt-input/styles.selectors.js +17 -17
- package/segmented-control/styles.css.js +16 -16
- package/segmented-control/styles.scoped.css +46 -46
- package/segmented-control/styles.selectors.js +16 -16
- package/slider/index.d.ts +1 -0
- package/slider/index.d.ts.map +1 -1
- package/slider/index.js +2 -2
- package/slider/index.js.map +1 -1
- package/slider/interfaces.d.ts +23 -0
- package/slider/interfaces.d.ts.map +1 -1
- package/slider/interfaces.js.map +1 -1
- package/slider/internal.d.ts +4 -1
- package/slider/internal.d.ts.map +1 -1
- package/slider/internal.js +3 -2
- package/slider/internal.js.map +1 -1
- package/slider/styles.css.js +26 -26
- package/slider/styles.d.ts +11 -0
- package/slider/styles.d.ts.map +1 -0
- package/slider/styles.js +20 -0
- package/slider/styles.js.map +1 -0
- package/slider/styles.scoped.css +165 -163
- package/slider/styles.selectors.js +26 -26
- package/spinner/styles.css.js +13 -13
- package/spinner/styles.scoped.css +39 -39
- package/spinner/styles.selectors.js +13 -13
- package/tabs/styles.css.js +30 -30
- package/tabs/styles.scoped.css +76 -76
- package/tabs/styles.selectors.js +30 -30
- package/tag-editor/styles.css.js +3 -3
- package/tag-editor/styles.scoped.css +13 -13
- package/tag-editor/styles.selectors.js +3 -3
- package/test-utils/dom/internal/feature-prompt.d.ts +7 -0
- package/test-utils/dom/internal/feature-prompt.js +20 -0
- package/test-utils/dom/internal/feature-prompt.js.map +1 -0
- package/test-utils/selectors/internal/feature-prompt.d.ts +7 -0
- package/test-utils/selectors/internal/feature-prompt.js +26 -0
- package/test-utils/selectors/internal/feature-prompt.js.map +1 -0
- package/text-content/styles.css.js +1 -1
- package/text-content/styles.scoped.css +66 -66
- package/text-content/styles.selectors.js +1 -1
- package/textarea/styles.css.js +5 -5
- package/textarea/styles.scoped.css +45 -45
- package/textarea/styles.selectors.js +5 -5
- package/toggle/styles.css.js +10 -10
- package/toggle/styles.scoped.css +23 -23
- package/toggle/styles.selectors.js +10 -10
|
@@ -2,25 +2,25 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"dropdown-content-wrapper": "awsui_dropdown-content-
|
|
6
|
-
"awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-
|
|
7
|
-
"refresh": "
|
|
8
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
9
|
-
"root": "
|
|
10
|
-
"interior": "
|
|
11
|
-
"dropdown": "
|
|
12
|
-
"use-portal": "awsui_use-
|
|
13
|
-
"is-empty": "awsui_is-
|
|
14
|
-
"dropdown-drop-up": "awsui_dropdown-drop-
|
|
15
|
-
"with-limited-width": "awsui_with-limited-
|
|
16
|
-
"dropdown-drop-left": "awsui_dropdown-drop-
|
|
17
|
-
"dropdown-drop-right": "awsui_dropdown-drop-
|
|
18
|
-
"occupy-entire-width": "awsui_occupy-entire-
|
|
19
|
-
"stretch-beyond-trigger-width": "awsui_stretch-beyond-trigger-
|
|
20
|
-
"hide-block-border": "awsui_hide-block-
|
|
21
|
-
"open": "
|
|
22
|
-
"nowrap": "
|
|
23
|
-
"dropdown-content": "awsui_dropdown-
|
|
24
|
-
"stretch-trigger-height": "awsui_stretch-trigger-
|
|
5
|
+
"dropdown-content-wrapper": "awsui_dropdown-content-wrapper_qwoo0_kjdpc_153",
|
|
6
|
+
"awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_qwoo0_kjdpc_1",
|
|
7
|
+
"refresh": "awsui_refresh_qwoo0_kjdpc_174",
|
|
8
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_qwoo0_kjdpc_1",
|
|
9
|
+
"root": "awsui_root_qwoo0_kjdpc_199",
|
|
10
|
+
"interior": "awsui_interior_qwoo0_kjdpc_232",
|
|
11
|
+
"dropdown": "awsui_dropdown_qwoo0_kjdpc_153",
|
|
12
|
+
"use-portal": "awsui_use-portal_qwoo0_kjdpc_242",
|
|
13
|
+
"is-empty": "awsui_is-empty_qwoo0_kjdpc_288",
|
|
14
|
+
"dropdown-drop-up": "awsui_dropdown-drop-up_qwoo0_kjdpc_295",
|
|
15
|
+
"with-limited-width": "awsui_with-limited-width_qwoo0_kjdpc_299",
|
|
16
|
+
"dropdown-drop-left": "awsui_dropdown-drop-left_qwoo0_kjdpc_302",
|
|
17
|
+
"dropdown-drop-right": "awsui_dropdown-drop-right_qwoo0_kjdpc_305",
|
|
18
|
+
"occupy-entire-width": "awsui_occupy-entire-width_qwoo0_kjdpc_308",
|
|
19
|
+
"stretch-beyond-trigger-width": "awsui_stretch-beyond-trigger-width_qwoo0_kjdpc_311",
|
|
20
|
+
"hide-block-border": "awsui_hide-block-border_qwoo0_kjdpc_318",
|
|
21
|
+
"open": "awsui_open_qwoo0_kjdpc_327",
|
|
22
|
+
"nowrap": "awsui_nowrap_qwoo0_kjdpc_336",
|
|
23
|
+
"dropdown-content": "awsui_dropdown-content_qwoo0_kjdpc_153",
|
|
24
|
+
"stretch-trigger-height": "awsui_stretch-trigger-height_qwoo0_kjdpc_347"
|
|
25
25
|
};
|
|
26
26
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"radio-control": "awsui_radio-
|
|
5
|
-
"outline": "
|
|
6
|
-
"styled-circle-border": "awsui_styled-circle-
|
|
7
|
-
"styled-circle-disabled": "awsui_styled-circle-
|
|
8
|
-
"styled-circle-readonly": "awsui_styled-circle-
|
|
9
|
-
"styled-circle-fill": "awsui_styled-circle-
|
|
10
|
-
"styled-circle-checked": "awsui_styled-circle-
|
|
4
|
+
"radio-control": "awsui_radio-control_1v1hk_pog42_145",
|
|
5
|
+
"outline": "awsui_outline_1v1hk_pog42_153",
|
|
6
|
+
"styled-circle-border": "awsui_styled-circle-border_1v1hk_pog42_176",
|
|
7
|
+
"styled-circle-disabled": "awsui_styled-circle-disabled_1v1hk_pog42_180",
|
|
8
|
+
"styled-circle-readonly": "awsui_styled-circle-readonly_1v1hk_pog42_180",
|
|
9
|
+
"styled-circle-fill": "awsui_styled-circle-fill_1v1hk_pog42_185",
|
|
10
|
+
"styled-circle-checked": "awsui_styled-circle-checked_1v1hk_pog42_201"
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
*/
|
|
143
143
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
144
144
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
145
|
-
.awsui_radio-
|
|
145
|
+
.awsui_radio-control_1v1hk_pog42_145:not(#\9) {
|
|
146
146
|
margin-block-start: calc((var(--line-height-body-m-2mh3ke, 20px) - var(--size-control-adm93y, 16px)) / 2);
|
|
147
147
|
min-block-size: var(--size-control-adm93y, 16px);
|
|
148
148
|
min-inline-size: var(--size-control-adm93y, 16px);
|
|
@@ -150,15 +150,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
150
150
|
inline-size: var(--size-control-adm93y, 16px);
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
-
.
|
|
154
|
-
--awsui-style-focus-ring-box-shadow-
|
|
153
|
+
.awsui_outline_1v1hk_pog42_153:not(#\9) {
|
|
154
|
+
--awsui-style-focus-ring-box-shadow-4hh3rt: 0 0 0 var(--awsui-style-focus-ring-border-width-4hh3rt, 2px) var(--awsui-style-focus-ring-border-color-4hh3rt, var(--color-border-item-focused-uk47pl, #006ce0));
|
|
155
155
|
position: relative;
|
|
156
156
|
}
|
|
157
|
-
.
|
|
157
|
+
.awsui_outline_1v1hk_pog42_153:not(#\9) {
|
|
158
158
|
outline: 2px dotted transparent;
|
|
159
159
|
outline-offset: calc(2px - 1px);
|
|
160
160
|
}
|
|
161
|
-
.
|
|
161
|
+
.awsui_outline_1v1hk_pog42_153:not(#\9)::before {
|
|
162
162
|
content: " ";
|
|
163
163
|
display: block;
|
|
164
164
|
position: absolute;
|
|
@@ -166,46 +166,46 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
166
166
|
inset-block-start: calc(-1 * 2px);
|
|
167
167
|
inline-size: calc(100% + 2px + 2px);
|
|
168
168
|
block-size: calc(100% + 2px + 2px);
|
|
169
|
-
border-start-start-radius: var(--awsui-style-focus-ring-border-radius-
|
|
170
|
-
border-start-end-radius: var(--awsui-style-focus-ring-border-radius-
|
|
171
|
-
border-end-start-radius: var(--awsui-style-focus-ring-border-radius-
|
|
172
|
-
border-end-end-radius: var(--awsui-style-focus-ring-border-radius-
|
|
173
|
-
box-shadow: var(--awsui-style-focus-ring-box-shadow-
|
|
169
|
+
border-start-start-radius: var(--awsui-style-focus-ring-border-radius-4hh3rt, var(--border-radius-control-circular-focus-ring-yjhscw, 4px));
|
|
170
|
+
border-start-end-radius: var(--awsui-style-focus-ring-border-radius-4hh3rt, var(--border-radius-control-circular-focus-ring-yjhscw, 4px));
|
|
171
|
+
border-end-start-radius: var(--awsui-style-focus-ring-border-radius-4hh3rt, var(--border-radius-control-circular-focus-ring-yjhscw, 4px));
|
|
172
|
+
border-end-end-radius: var(--awsui-style-focus-ring-border-radius-4hh3rt, var(--border-radius-control-circular-focus-ring-yjhscw, 4px));
|
|
173
|
+
box-shadow: var(--awsui-style-focus-ring-box-shadow-4hh3rt);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
.awsui_styled-circle-
|
|
176
|
+
.awsui_styled-circle-border_1v1hk_pog42_176:not(#\9) {
|
|
177
177
|
stroke: var(--color-border-control-default-sh3548, #8c8c94);
|
|
178
178
|
fill: var(--color-background-control-default-4jb21l, #ffffff);
|
|
179
179
|
}
|
|
180
|
-
.awsui_styled-circle-
|
|
180
|
+
.awsui_styled-circle-border_1v1hk_pog42_176.awsui_styled-circle-disabled_1v1hk_pog42_180:not(#\9), .awsui_styled-circle-border_1v1hk_pog42_176.awsui_styled-circle-readonly_1v1hk_pog42_180:not(#\9) {
|
|
181
181
|
fill: var(--color-background-control-disabled-1f3718, #dedee3);
|
|
182
182
|
stroke: var(--color-background-control-disabled-1f3718, #dedee3);
|
|
183
183
|
}
|
|
184
184
|
|
|
185
|
-
.awsui_styled-circle-
|
|
185
|
+
.awsui_styled-circle-fill_1v1hk_pog42_185:not(#\9) {
|
|
186
186
|
stroke: var(--color-background-control-checked-ka7kc2, #006ce0);
|
|
187
187
|
fill: var(--color-foreground-control-default-eto4wy, #ffffff);
|
|
188
188
|
opacity: 0;
|
|
189
189
|
transition: opacity var(--motion-duration-transition-quick-mcm2y0, 90ms) var(--motion-easing-transition-quick-qxak3i, linear);
|
|
190
190
|
}
|
|
191
191
|
@media (prefers-reduced-motion: reduce) {
|
|
192
|
-
.awsui_styled-circle-
|
|
192
|
+
.awsui_styled-circle-fill_1v1hk_pog42_185:not(#\9) {
|
|
193
193
|
animation: none;
|
|
194
194
|
transition: none;
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
.awsui-motion-disabled .awsui_styled-circle-
|
|
197
|
+
.awsui-motion-disabled .awsui_styled-circle-fill_1v1hk_pog42_185:not(#\9), .awsui-mode-entering .awsui_styled-circle-fill_1v1hk_pog42_185:not(#\9) {
|
|
198
198
|
animation: none;
|
|
199
199
|
transition: none;
|
|
200
200
|
}
|
|
201
|
-
.awsui_styled-circle-
|
|
201
|
+
.awsui_styled-circle-fill_1v1hk_pog42_185.awsui_styled-circle-checked_1v1hk_pog42_201:not(#\9) {
|
|
202
202
|
opacity: 1;
|
|
203
203
|
}
|
|
204
|
-
.awsui_styled-circle-
|
|
204
|
+
.awsui_styled-circle-fill_1v1hk_pog42_185.awsui_styled-circle-disabled_1v1hk_pog42_180:not(#\9) {
|
|
205
205
|
fill: var(--color-foreground-control-disabled-txi6cf, #ffffff);
|
|
206
206
|
stroke: var(--color-background-control-disabled-1f3718, #dedee3);
|
|
207
207
|
}
|
|
208
|
-
.awsui_styled-circle-
|
|
208
|
+
.awsui_styled-circle-fill_1v1hk_pog42_185.awsui_styled-circle-readonly_1v1hk_pog42_180:not(#\9) {
|
|
209
209
|
fill: var(--color-foreground-control-read-only-7ydvuj, #656871);
|
|
210
210
|
stroke: var(--color-background-control-disabled-1f3718, #dedee3);
|
|
211
211
|
}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"radio-control": "awsui_radio-
|
|
6
|
-
"outline": "
|
|
7
|
-
"styled-circle-border": "awsui_styled-circle-
|
|
8
|
-
"styled-circle-disabled": "awsui_styled-circle-
|
|
9
|
-
"styled-circle-readonly": "awsui_styled-circle-
|
|
10
|
-
"styled-circle-fill": "awsui_styled-circle-
|
|
11
|
-
"styled-circle-checked": "awsui_styled-circle-
|
|
5
|
+
"radio-control": "awsui_radio-control_1v1hk_pog42_145",
|
|
6
|
+
"outline": "awsui_outline_1v1hk_pog42_153",
|
|
7
|
+
"styled-circle-border": "awsui_styled-circle-border_1v1hk_pog42_176",
|
|
8
|
+
"styled-circle-disabled": "awsui_styled-circle-disabled_1v1hk_pog42_180",
|
|
9
|
+
"styled-circle-readonly": "awsui_styled-circle-readonly_1v1hk_pog42_180",
|
|
10
|
+
"styled-circle-fill": "awsui_styled-circle-fill_1v1hk_pog42_185",
|
|
11
|
+
"styled-circle-checked": "awsui_styled-circle-checked_1v1hk_pog42_201"
|
|
12
12
|
};
|
|
13
13
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"horizontal": "
|
|
6
|
-
"vertical": "
|
|
7
|
-
"list": "
|
|
8
|
-
"grid": "
|
|
9
|
-
"list-item": "awsui_list-
|
|
10
|
-
"toggle-container-inline": "awsui_toggle-container-
|
|
11
|
-
"toggle": "
|
|
12
|
-
"description": "
|
|
13
|
-
"separator": "
|
|
4
|
+
"root": "awsui_root_gfwv3_9i0ap_193",
|
|
5
|
+
"horizontal": "awsui_horizontal_gfwv3_9i0ap_196",
|
|
6
|
+
"vertical": "awsui_vertical_gfwv3_9i0ap_202",
|
|
7
|
+
"list": "awsui_list_gfwv3_9i0ap_207",
|
|
8
|
+
"grid": "awsui_grid_gfwv3_9i0ap_226",
|
|
9
|
+
"list-item": "awsui_list-item_gfwv3_9i0ap_238",
|
|
10
|
+
"toggle-container-inline": "awsui_toggle-container-inline_gfwv3_9i0ap_245",
|
|
11
|
+
"toggle": "awsui_toggle_gfwv3_9i0ap_245",
|
|
12
|
+
"description": "awsui_description_gfwv3_9i0ap_337",
|
|
13
|
+
"separator": "awsui_separator_gfwv3_9i0ap_341"
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -190,21 +190,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
190
190
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
191
191
|
SPDX-License-Identifier: Apache-2.0
|
|
192
192
|
*/
|
|
193
|
-
.
|
|
193
|
+
.awsui_root_gfwv3_9i0ap_193:not(#\9) {
|
|
194
194
|
gap: var(--space-scaled-xs-xwoogq, 8px);
|
|
195
195
|
}
|
|
196
|
-
.
|
|
196
|
+
.awsui_root_gfwv3_9i0ap_193.awsui_horizontal_gfwv3_9i0ap_196:not(#\9) {
|
|
197
197
|
display: flex;
|
|
198
198
|
gap: var(--space-xs-ymlm0b, 8px);
|
|
199
199
|
flex-direction: row;
|
|
200
200
|
flex-wrap: wrap;
|
|
201
201
|
}
|
|
202
|
-
.
|
|
202
|
+
.awsui_root_gfwv3_9i0ap_193.awsui_vertical_gfwv3_9i0ap_202:not(#\9) {
|
|
203
203
|
display: flex;
|
|
204
204
|
flex-direction: column;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
.
|
|
207
|
+
.awsui_list_gfwv3_9i0ap_207:not(#\9) {
|
|
208
208
|
display: contents;
|
|
209
209
|
list-style: none;
|
|
210
210
|
padding-block: 0;
|
|
@@ -212,43 +212,43 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
212
212
|
margin-block: 0;
|
|
213
213
|
margin-inline: 0;
|
|
214
214
|
}
|
|
215
|
-
.
|
|
215
|
+
.awsui_list_gfwv3_9i0ap_207.awsui_horizontal_gfwv3_9i0ap_196:not(#\9), .awsui_list_gfwv3_9i0ap_207.awsui_vertical_gfwv3_9i0ap_202:not(#\9) {
|
|
216
216
|
display: flex;
|
|
217
217
|
gap: var(--space-xs-ymlm0b, 8px);
|
|
218
218
|
}
|
|
219
|
-
.
|
|
219
|
+
.awsui_list_gfwv3_9i0ap_207.awsui_horizontal_gfwv3_9i0ap_196:not(#\9) {
|
|
220
220
|
flex-direction: row;
|
|
221
221
|
flex-wrap: wrap;
|
|
222
222
|
}
|
|
223
|
-
.
|
|
223
|
+
.awsui_list_gfwv3_9i0ap_207.awsui_vertical_gfwv3_9i0ap_202:not(#\9) {
|
|
224
224
|
flex-direction: column;
|
|
225
225
|
}
|
|
226
|
-
.
|
|
226
|
+
.awsui_list_gfwv3_9i0ap_207.awsui_grid_gfwv3_9i0ap_226:not(#\9) {
|
|
227
227
|
display: grid;
|
|
228
228
|
gap: var(--space-xs-ymlm0b, 8px);
|
|
229
229
|
grid-template-columns: repeat(auto-fill, 230px);
|
|
230
230
|
}
|
|
231
231
|
@media (max-width: 688px) {
|
|
232
|
-
.
|
|
232
|
+
.awsui_list_gfwv3_9i0ap_207.awsui_grid_gfwv3_9i0ap_226:not(#\9) {
|
|
233
233
|
display: flex;
|
|
234
234
|
flex-direction: column;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
.awsui_list-
|
|
238
|
+
.awsui_list-item_gfwv3_9i0ap_238:not(#\9) {
|
|
239
239
|
padding-block: 0;
|
|
240
240
|
padding-inline: 0;
|
|
241
241
|
margin-block: 0;
|
|
242
242
|
margin-inline: 0;
|
|
243
243
|
}
|
|
244
244
|
|
|
245
|
-
.awsui_toggle-container-
|
|
245
|
+
.awsui_toggle-container-inline_gfwv3_9i0ap_245:not(#\9) {
|
|
246
246
|
padding-inline-start: var(--space-xs-ymlm0b, 8px);
|
|
247
247
|
display: flex;
|
|
248
248
|
align-items: center;
|
|
249
249
|
}
|
|
250
250
|
|
|
251
|
-
.
|
|
251
|
+
.awsui_toggle_gfwv3_9i0ap_245:not(#\9) {
|
|
252
252
|
border-collapse: separate;
|
|
253
253
|
border-spacing: 0;
|
|
254
254
|
box-sizing: border-box;
|
|
@@ -288,7 +288,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
288
288
|
margin-inline-start: -1px;
|
|
289
289
|
text-underline-offset: 0.25em;
|
|
290
290
|
text-decoration-thickness: 1px;
|
|
291
|
-
color: var(--awsui-style-color-default-
|
|
291
|
+
color: var(--awsui-style-color-default-4hh3rt, var(--color-text-link-default-hude44, #006ce0));
|
|
292
292
|
font-weight: inherit;
|
|
293
293
|
letter-spacing: normal;
|
|
294
294
|
text-decoration-line: none;
|
|
@@ -299,34 +299,34 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
299
299
|
transition-duration: var(--motion-duration-refresh-only-medium-5rbn3k, 165ms);
|
|
300
300
|
}
|
|
301
301
|
@media (prefers-reduced-motion: reduce) {
|
|
302
|
-
.
|
|
302
|
+
.awsui_toggle_gfwv3_9i0ap_245:not(#\9) {
|
|
303
303
|
animation: none;
|
|
304
304
|
transition: none;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
.awsui-motion-disabled .
|
|
307
|
+
.awsui-motion-disabled .awsui_toggle_gfwv3_9i0ap_245:not(#\9), .awsui-mode-entering .awsui_toggle_gfwv3_9i0ap_245:not(#\9) {
|
|
308
308
|
animation: none;
|
|
309
309
|
transition: none;
|
|
310
310
|
}
|
|
311
|
-
.
|
|
311
|
+
.awsui_toggle_gfwv3_9i0ap_245:not(#\9):hover {
|
|
312
312
|
cursor: pointer;
|
|
313
|
-
color: var(--awsui-style-color-hover-
|
|
313
|
+
color: var(--awsui-style-color-hover-4hh3rt, var(--color-text-link-hover-2hfec2, #002b66));
|
|
314
314
|
}
|
|
315
|
-
.
|
|
315
|
+
.awsui_toggle_gfwv3_9i0ap_245:not(#\9):focus {
|
|
316
316
|
outline: none;
|
|
317
317
|
}
|
|
318
|
-
.
|
|
319
|
-
color: var(--awsui-style-color-active-
|
|
318
|
+
.awsui_toggle_gfwv3_9i0ap_245:not(#\9):active {
|
|
319
|
+
color: var(--awsui-style-color-active-4hh3rt, var(--color-text-link-hover-2hfec2, #002b66));
|
|
320
320
|
}
|
|
321
|
-
.
|
|
321
|
+
.awsui_toggle_gfwv3_9i0ap_245:not(#\9):active, .awsui_toggle_gfwv3_9i0ap_245:not(#\9):focus, .awsui_toggle_gfwv3_9i0ap_245:not(#\9):hover {
|
|
322
322
|
text-decoration-line: underline;
|
|
323
323
|
text-decoration-color: currentColor;
|
|
324
324
|
}
|
|
325
|
-
.
|
|
325
|
+
.awsui_toggle_gfwv3_9i0ap_245:not(#\9):active, .awsui_toggle_gfwv3_9i0ap_245:not(#\9):focus, .awsui_toggle_gfwv3_9i0ap_245:not(#\9):hover {
|
|
326
326
|
text-decoration: none;
|
|
327
327
|
text-decoration-color: transparent;
|
|
328
328
|
}
|
|
329
|
-
body[data-awsui-focus-visible=true] .
|
|
329
|
+
body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_9i0ap_245:not(#\9):focus {
|
|
330
330
|
outline: 2px dotted transparent;
|
|
331
331
|
border-block: var(--border-width-button-jm0qg7, 2px) solid var(--color-border-item-focused-uk47pl, #006ce0);
|
|
332
332
|
border-inline: var(--border-width-button-jm0qg7, 2px) solid var(--color-border-item-focused-uk47pl, #006ce0);
|
|
@@ -336,11 +336,11 @@ body[data-awsui-focus-visible=true] .awsui_toggle_gfwv3_167pt_245:not(#\9):focus
|
|
|
336
336
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
337
337
|
box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-9mjajk, 1px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
338
338
|
}
|
|
339
|
-
.
|
|
339
|
+
.awsui_toggle_gfwv3_9i0ap_245 > .awsui_description_gfwv3_9i0ap_337:not(#\9) {
|
|
340
340
|
margin-inline-start: var(--space-xxs-hwfkai, 4px);
|
|
341
341
|
}
|
|
342
342
|
|
|
343
|
-
.
|
|
343
|
+
.awsui_separator_gfwv3_9i0ap_341:not(#\9) {
|
|
344
344
|
margin-block: 0;
|
|
345
345
|
margin-inline: var(--space-scaled-m-m892r9, 16px);
|
|
346
346
|
inline-size: var(--border-divider-section-width-uwo8my, 1px);
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"horizontal": "
|
|
7
|
-
"vertical": "
|
|
8
|
-
"list": "
|
|
9
|
-
"grid": "
|
|
10
|
-
"list-item": "awsui_list-
|
|
11
|
-
"toggle-container-inline": "awsui_toggle-container-
|
|
12
|
-
"toggle": "
|
|
13
|
-
"description": "
|
|
14
|
-
"separator": "
|
|
5
|
+
"root": "awsui_root_gfwv3_9i0ap_193",
|
|
6
|
+
"horizontal": "awsui_horizontal_gfwv3_9i0ap_196",
|
|
7
|
+
"vertical": "awsui_vertical_gfwv3_9i0ap_202",
|
|
8
|
+
"list": "awsui_list_gfwv3_9i0ap_207",
|
|
9
|
+
"grid": "awsui_grid_gfwv3_9i0ap_226",
|
|
10
|
+
"list-item": "awsui_list-item_gfwv3_9i0ap_238",
|
|
11
|
+
"toggle-container-inline": "awsui_toggle-container-inline_gfwv3_9i0ap_245",
|
|
12
|
+
"toggle": "awsui_toggle_gfwv3_9i0ap_245",
|
|
13
|
+
"description": "awsui_description_gfwv3_9i0ap_337",
|
|
14
|
+
"separator": "awsui_separator_gfwv3_9i0ap_341"
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FeaturePromptProps } from './interfaces';
|
|
3
|
+
export { FeaturePromptProps };
|
|
4
|
+
declare const FeaturePrompt: React.ForwardRefExoticComponent<FeaturePromptProps & React.RefAttributes<FeaturePromptProps.Ref>>;
|
|
5
|
+
export default FeaturePrompt;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAK1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAGlD,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,QAAA,MAAM,aAAa,mGAYlB,CAAC;AAGF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import useBaseComponent from '../../hooks/use-base-component';
|
|
5
|
+
import { applyDisplayName } from '../../utils/apply-display-name';
|
|
6
|
+
import { getExternalProps } from '../../utils/external-props';
|
|
7
|
+
import InternalFeaturePrompt from './internal';
|
|
8
|
+
const FeaturePrompt = React.forwardRef(({ size = 'medium', position = 'top', ...rest }, ref) => {
|
|
9
|
+
const baseComponentProps = useBaseComponent('FeaturePrompt', { props: { size, position } });
|
|
10
|
+
const externalProps = getExternalProps(rest);
|
|
11
|
+
return (React.createElement(InternalFeaturePrompt, { ref: ref, size: size, position: position, ...externalProps, ...baseComponentProps }));
|
|
12
|
+
});
|
|
13
|
+
applyDisplayName(FeaturePrompt, 'FeaturePrompt');
|
|
14
|
+
export default FeaturePrompt;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,gBAAgB,MAAM,gCAAgC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,qBAAqB,MAAM,YAAY,CAAC;AAI/C,MAAM,aAAa,GAAG,KAAK,CAAC,UAAU,CACpC,CACE,EAAE,IAAI,GAAG,QAAQ,EAAE,QAAQ,GAAG,KAAK,EAAE,GAAG,IAAI,EAAsB,EAClE,GAAsC,EACzB,EAAE;IACf,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,eAAe,EAAE,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,CAAC,CAAC;IAE5F,MAAM,aAAa,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC7C,OAAO,CACL,oBAAC,qBAAqB,IAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,KAAM,aAAa,KAAM,kBAAkB,GAAI,CAC/G,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,aAAa,EAAE,eAAe,CAAC,CAAC;AACjD,eAAe,aAAa,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React from 'react';\n\nimport useBaseComponent from '../../hooks/use-base-component';\nimport { applyDisplayName } from '../../utils/apply-display-name';\nimport { getExternalProps } from '../../utils/external-props';\nimport { FeaturePromptProps } from './interfaces';\nimport InternalFeaturePrompt from './internal';\n\nexport { FeaturePromptProps };\n\nconst FeaturePrompt = React.forwardRef(\n (\n { size = 'medium', position = 'top', ...rest }: FeaturePromptProps,\n ref: React.Ref<FeaturePromptProps.Ref>\n ): JSX.Element => {\n const baseComponentProps = useBaseComponent('FeaturePrompt', { props: { size, position } });\n\n const externalProps = getExternalProps(rest);\n return (\n <InternalFeaturePrompt ref={ref} size={size} position={position} {...externalProps} {...baseComponentProps} />\n );\n }\n);\n\napplyDisplayName(FeaturePrompt, 'FeaturePrompt');\nexport default FeaturePrompt;\n"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { PopoverProps } from '../../../popover/interfaces';
|
|
2
|
+
import { NonCancelableEventHandler } from '../../events';
|
|
3
|
+
export interface FeaturePromptProps {
|
|
4
|
+
/**
|
|
5
|
+
* Called when the feature prompt shows.
|
|
6
|
+
*/
|
|
7
|
+
onShow?: NonCancelableEventHandler<null>;
|
|
8
|
+
/**
|
|
9
|
+
* Called when a user closes the prompt by using the close icon button,
|
|
10
|
+
* clicking outside the prompt, shifting focus out of the prompt or pressing ESC.
|
|
11
|
+
*/
|
|
12
|
+
onDismiss?: NonCancelableEventHandler<null>;
|
|
13
|
+
/**
|
|
14
|
+
* Determines where the feature prompt is displayed when opened, relative to the trigger.
|
|
15
|
+
* If the feature prompt doesn't have enough space to open in this direction, it
|
|
16
|
+
* automatically chooses a better direction based on available space.
|
|
17
|
+
*/
|
|
18
|
+
position?: FeaturePromptProps.Position;
|
|
19
|
+
/**
|
|
20
|
+
* Determines the maximum width for the feature prompt.
|
|
21
|
+
*/
|
|
22
|
+
size?: FeaturePromptProps.Size;
|
|
23
|
+
/**
|
|
24
|
+
* Specifies header content for the feature prompt.
|
|
25
|
+
*/
|
|
26
|
+
header: React.ReactNode;
|
|
27
|
+
/**
|
|
28
|
+
* Content of the feature prompt.
|
|
29
|
+
*/
|
|
30
|
+
content: React.ReactNode;
|
|
31
|
+
/**
|
|
32
|
+
* An object containing all the necessary localized strings required by the component.
|
|
33
|
+
* @i18n
|
|
34
|
+
*/
|
|
35
|
+
i18nStrings?: FeaturePromptProps.I18nStrings;
|
|
36
|
+
/**
|
|
37
|
+
* Function that returns the element to track for positioning the prompt.
|
|
38
|
+
* Use this when you want to position the prompt relative to an external element.
|
|
39
|
+
* Cannot be used together with the children prop.
|
|
40
|
+
*/
|
|
41
|
+
getTrack: () => null | HTMLElement | SVGElement;
|
|
42
|
+
/**
|
|
43
|
+
* Unique identifier for the tracked element. Used for tracking position changes
|
|
44
|
+
* when using getTrack.
|
|
45
|
+
*/
|
|
46
|
+
trackKey?: string | number;
|
|
47
|
+
}
|
|
48
|
+
export declare namespace FeaturePromptProps {
|
|
49
|
+
type Position = PopoverProps.Position;
|
|
50
|
+
type Size = PopoverProps.Size;
|
|
51
|
+
interface I18nStrings {
|
|
52
|
+
/**
|
|
53
|
+
* Adds an `aria-label` to the dismiss button for accessibility.
|
|
54
|
+
* @i18n
|
|
55
|
+
*/
|
|
56
|
+
dismissAriaLabel?: string;
|
|
57
|
+
}
|
|
58
|
+
interface Ref {
|
|
59
|
+
/**
|
|
60
|
+
* Use only if an element other than the trigger needs to be focused after dismissing the prompt.
|
|
61
|
+
*/
|
|
62
|
+
dismiss(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Shows the prompt and focuses its close button.
|
|
65
|
+
*/
|
|
66
|
+
show(): void;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,MAAM,cAAc,CAAC;AAEzD,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAEzC;;;OAGG;IACH,SAAS,CAAC,EAAE,yBAAyB,CAAC,IAAI,CAAC,CAAC;IAE5C;;;;OAIG;IACH,QAAQ,CAAC,EAAE,kBAAkB,CAAC,QAAQ,CAAC;IAEvC;;OAEG;IACH,IAAI,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC;IAE/B;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IAEzB;;;OAGG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC;IAE7C;;;;OAIG;IACH,QAAQ,EAAE,MAAM,IAAI,GAAG,WAAW,GAAG,UAAU,CAAC;IAEhD;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,KAAY,QAAQ,GAAG,YAAY,CAAC,QAAQ,CAAC;IAC7C,KAAY,IAAI,GAAG,YAAY,CAAC,IAAI,CAAC;IACrC,UAAiB,WAAW;QAC1B;;;WAGG;QACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;KAC3B;IACD,UAAiB,GAAG;QAClB;;WAEG;QACH,OAAO,IAAI,IAAI,CAAC;QAEhB;;WAEG;QACH,IAAI,IAAI,IAAI,CAAC;KACd;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { PopoverProps } from '../../../popover/interfaces';\nimport { NonCancelableEventHandler } from '../../events';\n\nexport interface FeaturePromptProps {\n /**\n * Called when the feature prompt shows.\n */\n onShow?: NonCancelableEventHandler<null>;\n\n /**\n * Called when a user closes the prompt by using the close icon button,\n * clicking outside the prompt, shifting focus out of the prompt or pressing ESC.\n */\n onDismiss?: NonCancelableEventHandler<null>;\n\n /**\n * Determines where the feature prompt is displayed when opened, relative to the trigger.\n * If the feature prompt doesn't have enough space to open in this direction, it\n * automatically chooses a better direction based on available space.\n */\n position?: FeaturePromptProps.Position;\n\n /**\n * Determines the maximum width for the feature prompt.\n */\n size?: FeaturePromptProps.Size;\n\n /**\n * Specifies header content for the feature prompt.\n */\n header: React.ReactNode;\n\n /**\n * Content of the feature prompt.\n */\n content: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: FeaturePromptProps.I18nStrings;\n\n /**\n * Function that returns the element to track for positioning the prompt.\n * Use this when you want to position the prompt relative to an external element.\n * Cannot be used together with the children prop.\n */\n getTrack: () => null | HTMLElement | SVGElement;\n\n /**\n * Unique identifier for the tracked element. Used for tracking position changes\n * when using getTrack.\n */\n trackKey?: string | number;\n}\n\nexport namespace FeaturePromptProps {\n export type Position = PopoverProps.Position;\n export type Size = PopoverProps.Size;\n export interface I18nStrings {\n /**\n * Adds an `aria-label` to the dismiss button for accessibility.\n * @i18n\n */\n dismissAriaLabel?: string;\n }\n export interface Ref {\n /**\n * Use only if an element other than the trigger needs to be focused after dismissing the prompt.\n */\n dismiss(): void;\n\n /**\n * Shows the prompt and focuses its close button.\n */\n show(): void;\n }\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InternalBaseComponentProps } from '../../hooks/use-base-component';
|
|
3
|
+
import { SomeRequired } from '../../types';
|
|
4
|
+
import { FeaturePromptProps } from './interfaces';
|
|
5
|
+
interface InternalFeaturePromptProps extends SomeRequired<FeaturePromptProps, 'size' | 'position'>, InternalBaseComponentProps {}
|
|
6
|
+
declare const _default: React.ForwardRefExoticComponent<InternalFeaturePromptProps & React.RefAttributes<FeaturePromptProps.Ref>>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/internal.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAgD,MAAM,OAAO,CAAC;AAUrE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAIlD,UAAU,0BACR,SAAQ,YAAY,CAAC,kBAAkB,EAAE,MAAM,GAAG,UAAU,CAAC,EAC3D,0BAA0B;CAAG;;AAgFjC,wBAAuD"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React, { useImperativeHandle, useRef, useState } from 'react';
|
|
4
|
+
import { Portal } from '@cloudscape-design/component-toolkit/internal';
|
|
5
|
+
import Arrow from '../../../popover/arrow';
|
|
6
|
+
import PopoverBody from '../../../popover/body';
|
|
7
|
+
import PopoverContainer from '../../../popover/container';
|
|
8
|
+
import { getBaseProps } from '../../base-component';
|
|
9
|
+
import ResetContextsForModal from '../../context/reset-contexts-for-modal';
|
|
10
|
+
import { fireNonCancelableEvent } from '../../events';
|
|
11
|
+
import styles from './styles.css.js';
|
|
12
|
+
function InternalFeaturePrompt({ onShow, onDismiss, header, content, i18nStrings, size, position, getTrack, trackKey, __internalRootRef, ...restProps }, ref) {
|
|
13
|
+
const baseProps = getBaseProps(restProps);
|
|
14
|
+
const [show, setShow] = useState(false);
|
|
15
|
+
const popoverBodyRef = useRef(null);
|
|
16
|
+
useImperativeHandle(ref, () => ({
|
|
17
|
+
dismiss: () => {
|
|
18
|
+
setShow(false);
|
|
19
|
+
fireNonCancelableEvent(onDismiss);
|
|
20
|
+
},
|
|
21
|
+
show: () => {
|
|
22
|
+
setShow(true);
|
|
23
|
+
fireNonCancelableEvent(onShow);
|
|
24
|
+
},
|
|
25
|
+
}));
|
|
26
|
+
return (React.createElement("span", { ...baseProps, className: styles.root, ref: __internalRootRef }, show && (React.createElement(Portal, null,
|
|
27
|
+
React.createElement(ResetContextsForModal, null,
|
|
28
|
+
React.createElement(PopoverContainer, { size: size, fixedWidth: false, position: position, getTrack: getTrack, trackKey: trackKey, variant: "annotation", arrow: position => React.createElement(Arrow, { position: position, variant: "info" }), zIndex: 7000, renderWithPortal: true },
|
|
29
|
+
React.createElement(PopoverBody, { ref: popoverBodyRef, dismissButton: true, dismissAriaLabel: i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.dismissAriaLabel, header: header, onDismiss: () => {
|
|
30
|
+
setShow(false);
|
|
31
|
+
fireNonCancelableEvent(onDismiss);
|
|
32
|
+
}, variant: "annotation", overflowVisible: "content", onBlur: event => {
|
|
33
|
+
var _a;
|
|
34
|
+
const relatedTarget = event.relatedTarget;
|
|
35
|
+
if (relatedTarget && ((_a = popoverBodyRef.current) === null || _a === void 0 ? void 0 : _a.contains(relatedTarget))) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
setShow(false);
|
|
39
|
+
fireNonCancelableEvent(onDismiss);
|
|
40
|
+
} }, content)))))));
|
|
41
|
+
}
|
|
42
|
+
export default React.forwardRef(InternalFeaturePrompt);
|
|
43
|
+
//# sourceMappingURL=internal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../../../src/internal/do-not-use/feature-prompt/internal.tsx"],"names":[],"mappings":"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","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useImperativeHandle, useRef, useState } from 'react';\n\nimport { Portal } from '@cloudscape-design/component-toolkit/internal';\n\nimport Arrow from '../../../popover/arrow';\nimport PopoverBody from '../../../popover/body';\nimport PopoverContainer from '../../../popover/container';\nimport { getBaseProps } from '../../base-component';\nimport ResetContextsForModal from '../../context/reset-contexts-for-modal';\nimport { fireNonCancelableEvent } from '../../events';\nimport { InternalBaseComponentProps } from '../../hooks/use-base-component';\nimport { SomeRequired } from '../../types';\nimport { FeaturePromptProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\ninterface InternalFeaturePromptProps\n extends SomeRequired<FeaturePromptProps, 'size' | 'position'>,\n InternalBaseComponentProps {}\n\nfunction InternalFeaturePrompt(\n {\n onShow,\n onDismiss,\n header,\n content,\n i18nStrings,\n size,\n position,\n getTrack,\n trackKey,\n __internalRootRef,\n ...restProps\n }: InternalFeaturePromptProps,\n ref: React.Ref<FeaturePromptProps.Ref>\n) {\n const baseProps = getBaseProps(restProps);\n const [show, setShow] = useState(false);\n\n const popoverBodyRef = useRef<HTMLDivElement | null>(null);\n\n useImperativeHandle(ref, () => ({\n dismiss: () => {\n setShow(false);\n fireNonCancelableEvent(onDismiss);\n },\n show: () => {\n setShow(true);\n fireNonCancelableEvent(onShow);\n },\n }));\n\n return (\n <span {...baseProps} className={styles.root} ref={__internalRootRef}>\n {show && (\n <Portal>\n <ResetContextsForModal>\n <PopoverContainer\n size={size}\n fixedWidth={false}\n position={position}\n getTrack={getTrack}\n trackKey={trackKey}\n variant=\"annotation\"\n arrow={position => <Arrow position={position} variant=\"info\" />}\n zIndex={7000}\n renderWithPortal={true}\n >\n <PopoverBody\n ref={popoverBodyRef}\n dismissButton={true}\n dismissAriaLabel={i18nStrings?.dismissAriaLabel}\n header={header}\n onDismiss={() => {\n setShow(false);\n fireNonCancelableEvent(onDismiss);\n }}\n variant=\"annotation\"\n overflowVisible=\"content\"\n onBlur={event => {\n const relatedTarget = event.relatedTarget;\n if (relatedTarget && popoverBodyRef.current?.contains(relatedTarget)) {\n return;\n }\n setShow(false);\n fireNonCancelableEvent(onDismiss);\n }}\n >\n {content}\n </PopoverBody>\n </PopoverContainer>\n </ResetContextsForModal>\n </Portal>\n )}\n </span>\n );\n}\n\nexport default React.forwardRef(InternalFeaturePrompt);\n"]}
|
package/internal/environment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (0f8232fb)";
|
|
3
|
+
export var GIT_SHA = "0f8232fb";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var SYSTEM = "core";
|
|
6
6
|
export var ALWAYS_VISUAL_REFRESH = true;
|