@cloudscape-design/components-themeable 3.0.376 → 3.0.377
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/alert/styles.scss +27 -40
- package/lib/internal/scss/button-dropdown/styles.scss +4 -0
- package/lib/internal/scss/mixed-line-bar-chart/styles.scss +0 -5
- package/lib/internal/scss/table/sticky-scrollbar/styles.scss +3 -2
- package/lib/internal/template/alert/internal.d.ts.map +1 -1
- package/lib/internal/template/alert/internal.js +13 -14
- package/lib/internal/template/alert/internal.js.map +1 -1
- package/lib/internal/template/alert/styles.css.js +25 -25
- package/lib/internal/template/alert/styles.scoped.css +52 -66
- package/lib/internal/template/alert/styles.selectors.js +25 -25
- package/lib/internal/template/breadcrumb-group/internal.d.ts.map +1 -1
- package/lib/internal/template/breadcrumb-group/internal.js +5 -5
- package/lib/internal/template/breadcrumb-group/internal.js.map +1 -1
- package/lib/internal/template/button-dropdown/interfaces.d.ts +9 -1
- package/lib/internal/template/button-dropdown/interfaces.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
- package/lib/internal/template/button-dropdown/internal.d.ts.map +1 -1
- package/lib/internal/template/button-dropdown/internal.js +9 -2
- package/lib/internal/template/button-dropdown/internal.js.map +1 -1
- package/lib/internal/template/button-dropdown/styles.css.js +15 -14
- package/lib/internal/template/button-dropdown/styles.scoped.css +25 -21
- package/lib/internal/template/button-dropdown/styles.selectors.js +15 -14
- package/lib/internal/template/form/index.d.ts.map +1 -1
- package/lib/internal/template/form/index.js +2 -1
- package/lib/internal/template/form/index.js.map +1 -1
- package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts +1 -1
- package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
- package/lib/internal/template/internal/analytics/components/analytics-funnel.js +92 -26
- package/lib/internal/template/internal/analytics/components/analytics-funnel.js.map +1 -1
- package/lib/internal/template/internal/analytics/context/analytics-context.d.ts +4 -0
- package/lib/internal/template/internal/analytics/context/analytics-context.d.ts.map +1 -1
- package/lib/internal/template/internal/analytics/context/analytics-context.js +4 -0
- package/lib/internal/template/internal/analytics/context/analytics-context.js.map +1 -1
- package/lib/internal/template/internal/analytics/hooks/use-funnel.d.ts +2 -0
- package/lib/internal/template/internal/analytics/hooks/use-funnel.d.ts.map +1 -1
- package/lib/internal/template/internal/components/menu-dropdown/index.d.ts +1 -1
- package/lib/internal/template/internal/components/menu-dropdown/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/menu-dropdown/index.js +7 -5
- package/lib/internal/template/internal/components/menu-dropdown/index.js.map +1 -1
- package/lib/internal/template/internal/components/menu-dropdown/interfaces.d.ts +1 -0
- package/lib/internal/template/internal/components/menu-dropdown/interfaces.d.ts.map +1 -1
- package/lib/internal/template/internal/components/menu-dropdown/interfaces.js.map +1 -1
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/mixed-line-bar-chart/bar-series.d.ts.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/bar-series.js +14 -3
- package/lib/internal/template/mixed-line-bar-chart/bar-series.js.map +1 -1
- package/lib/internal/template/mixed-line-bar-chart/styles.css.js +11 -11
- package/lib/internal/template/mixed-line-bar-chart/styles.scoped.css +17 -22
- package/lib/internal/template/mixed-line-bar-chart/styles.selectors.js +11 -11
- package/lib/internal/template/modal/internal.d.ts.map +1 -1
- package/lib/internal/template/modal/internal.js +14 -12
- package/lib/internal/template/modal/internal.js.map +1 -1
- package/lib/internal/template/progress-bar/index.d.ts.map +1 -1
- package/lib/internal/template/progress-bar/index.js +7 -4
- package/lib/internal/template/progress-bar/index.js.map +1 -1
- package/lib/internal/template/table/body-cell/td-element.d.ts +2 -1
- package/lib/internal/template/table/body-cell/td-element.d.ts.map +1 -1
- package/lib/internal/template/table/body-cell/td-element.js +3 -3
- package/lib/internal/template/table/body-cell/td-element.js.map +1 -1
- package/lib/internal/template/table/header-cell/index.d.ts +1 -1
- package/lib/internal/template/table/header-cell/index.d.ts.map +1 -1
- package/lib/internal/template/table/header-cell/index.js +2 -2
- package/lib/internal/template/table/header-cell/index.js.map +1 -1
- package/lib/internal/template/table/internal.d.ts.map +1 -1
- package/lib/internal/template/table/internal.js +12 -14
- package/lib/internal/template/table/internal.js.map +1 -1
- package/lib/internal/template/table/table-role/index.d.ts +3 -1
- package/lib/internal/template/table/table-role/index.d.ts.map +1 -1
- package/lib/internal/template/table/table-role/index.js +2 -1
- package/lib/internal/template/table/table-role/index.js.map +1 -1
- package/lib/internal/template/table/table-role/interfaces.d.ts +18 -0
- package/lib/internal/template/table/table-role/interfaces.d.ts.map +1 -0
- package/lib/internal/template/table/table-role/interfaces.js +4 -0
- package/lib/internal/template/table/table-role/interfaces.js.map +1 -0
- package/lib/internal/template/table/table-role/table-role-helper.d.ts +16 -4
- package/lib/internal/template/table/table-role/table-role-helper.d.ts.map +1 -1
- package/lib/internal/template/table/table-role/table-role-helper.js +39 -4
- package/lib/internal/template/table/table-role/table-role-helper.js.map +1 -1
- package/lib/internal/template/table/table-role/use-grid-navigation.d.ts +7 -0
- package/lib/internal/template/table/table-role/use-grid-navigation.d.ts.map +1 -0
- package/lib/internal/template/table/table-role/use-grid-navigation.js +185 -0
- package/lib/internal/template/table/table-role/use-grid-navigation.js.map +1 -0
- package/lib/internal/template/table/table-role/utils.d.ts +23 -0
- package/lib/internal/template/table/table-role/utils.d.ts.map +1 -0
- package/lib/internal/template/table/table-role/utils.js +141 -0
- package/lib/internal/template/table/table-role/utils.js.map +1 -0
- package/lib/internal/template/table/thead.d.ts.map +1 -1
- package/lib/internal/template/table/thead.js +4 -4
- package/lib/internal/template/table/thead.js.map +1 -1
- package/lib/internal/template/test-utils/dom/button-dropdown/index.js +1 -3
- package/lib/internal/template/test-utils/dom/button-dropdown/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/button-dropdown/index.js +1 -3
- package/lib/internal/template/test-utils/selectors/button-dropdown/index.js.map +1 -1
- package/lib/internal/template/test-utils/tsconfig.tsbuildinfo +1 -1
- package/lib/internal/template/wizard/index.d.ts.map +1 -1
- package/lib/internal/template/wizard/index.js +8 -1
- package/lib/internal/template/wizard/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -23,22 +23,27 @@
|
|
|
23
23
|
.alert {
|
|
24
24
|
@include styles.styles-reset;
|
|
25
25
|
position: relative;
|
|
26
|
-
display:
|
|
27
|
-
|
|
28
|
-
align-items: flex-start;
|
|
29
|
-
// display: grid;
|
|
30
|
-
grid-template-columns: auto auto 1fr;
|
|
31
|
-
|
|
26
|
+
display: grid;
|
|
27
|
+
grid-template-columns: 1fr;
|
|
32
28
|
border-radius: awsui.$border-radius-alert;
|
|
33
29
|
border: awsui.$border-field-width solid;
|
|
34
30
|
padding: awsui.$space-alert-vertical awsui.$space-alert-horizontal;
|
|
35
31
|
background-color: awsui.$color-background-container-content;
|
|
36
|
-
}
|
|
37
32
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
33
|
+
&.with-dismiss,
|
|
34
|
+
&.with-action {
|
|
35
|
+
grid-template-columns: 1fr auto;
|
|
36
|
+
}
|
|
37
|
+
&.with-action.with-dismiss {
|
|
38
|
+
grid-template-columns: 1fr auto auto;
|
|
39
|
+
}
|
|
40
|
+
// Below the breakpoint, arrange actions below the content
|
|
41
|
+
&.breakpoint-default.with-action {
|
|
42
|
+
grid-template-columns: 1fr auto;
|
|
43
|
+
}
|
|
44
|
+
&.breakpoint-default:not(.with-dismiss) {
|
|
45
|
+
grid-template-columns: 1fr;
|
|
46
|
+
}
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
.header {
|
|
@@ -56,8 +61,8 @@
|
|
|
56
61
|
}
|
|
57
62
|
|
|
58
63
|
.alert-focus-wrapper {
|
|
59
|
-
display:
|
|
60
|
-
|
|
64
|
+
display: grid;
|
|
65
|
+
grid-template-columns: min-content auto;
|
|
61
66
|
|
|
62
67
|
&:focus {
|
|
63
68
|
outline: none;
|
|
@@ -67,12 +72,8 @@
|
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
74
|
|
|
70
|
-
.alert-mobile-block {
|
|
71
|
-
display: flex;
|
|
72
|
-
flex: 1 1 0%;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
75
|
.text {
|
|
76
|
+
min-width: 0;
|
|
76
77
|
padding: awsui.$border-field-width 0; // To account for vertical misalignment due to button borders
|
|
77
78
|
margin: awsui.$space-scaled-xxs awsui.$space-xxs;
|
|
78
79
|
&.icon {
|
|
@@ -83,40 +84,30 @@
|
|
|
83
84
|
}
|
|
84
85
|
}
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
.root.breakpoint-default > div > .alert {
|
|
87
|
+
.breakpoint-default {
|
|
88
88
|
// Below the breakpoint, arrange actions below the content
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
margin-bottom: awsui.$space-xxs;
|
|
93
|
-
}
|
|
89
|
+
> .action {
|
|
90
|
+
grid-row: 2;
|
|
91
|
+
margin-bottom: awsui.$space-xxs;
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
// Indent actions according to the size of the alert icon
|
|
97
|
-
&.icon-size-medium > .
|
|
95
|
+
&.icon-size-medium > .action {
|
|
98
96
|
margin-left: calc(#{awsui.$size-icon-medium} + #{awsui.$space-xs});
|
|
99
97
|
}
|
|
100
|
-
&.icon-size-big > .
|
|
98
|
+
&.icon-size-big > .action {
|
|
101
99
|
margin-left: calc(#{awsui.$size-icon-big} + #{awsui.$space-xs});
|
|
102
100
|
}
|
|
103
|
-
&.icon-size-normal > .
|
|
101
|
+
&.icon-size-normal > .action {
|
|
104
102
|
margin-left: calc(#{awsui.$size-icon-normal} + #{awsui.$space-xs});
|
|
105
103
|
}
|
|
106
104
|
}
|
|
107
|
-
/* stylelint-enable selector-max-type */
|
|
108
|
-
|
|
109
|
-
.message {
|
|
110
|
-
flex: 1 1 0%;
|
|
111
|
-
min-width: 0;
|
|
112
|
-
}
|
|
113
105
|
|
|
114
106
|
.content {
|
|
115
107
|
/* used in test-utils */
|
|
116
108
|
}
|
|
117
109
|
|
|
118
110
|
.dismiss {
|
|
119
|
-
flex: 0 0 auto;
|
|
120
111
|
margin-right: calc(-1 * #{awsui.$space-xxs});
|
|
121
112
|
margin-left: awsui.$space-s;
|
|
122
113
|
}
|
|
@@ -125,10 +116,6 @@
|
|
|
125
116
|
/* used in test-utils */
|
|
126
117
|
}
|
|
127
118
|
|
|
128
|
-
.icon {
|
|
129
|
-
flex: 0 0 auto;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
119
|
$_border-colors: (
|
|
133
120
|
'error': awsui.$color-border-status-error,
|
|
134
121
|
'warning': awsui.$color-border-status-warning,
|
|
@@ -154,7 +141,7 @@ $_text-colors: (
|
|
|
154
141
|
.type-#{$type} {
|
|
155
142
|
border-color: #{map.get($_border-colors, $type)};
|
|
156
143
|
background-color: #{map.get($_background-colors, $type)};
|
|
157
|
-
> .alert-
|
|
144
|
+
> .alert-focus-wrapper > .icon {
|
|
158
145
|
color: #{map.get($_text-colors, $type)};
|
|
159
146
|
}
|
|
160
147
|
}
|
|
@@ -28,11 +28,6 @@
|
|
|
28
28
|
opacity: 0.3;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
.series--bar > .series__rect {
|
|
32
|
-
stroke: awsui.$color-background-container-content;
|
|
33
|
-
stroke-width: 2px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
31
|
.series--threshold {
|
|
37
32
|
stroke-dasharray: awsui.$border-line-chart-dash-array;
|
|
38
33
|
stroke-width: awsui.$border-line-chart-width;
|
|
@@ -28,7 +28,8 @@
|
|
|
28
28
|
|
|
29
29
|
&-offset {
|
|
30
30
|
// "offset" styles are needed for when sticky columns are enabled.
|
|
31
|
-
// We move the scrollbar lower
|
|
31
|
+
// We move the scrollbar lower, so it doesn't overlap interactive elements (such as checkboxes or links)
|
|
32
|
+
|
|
32
33
|
z-index: 800; // Higher than sticky columns
|
|
33
34
|
&:not(.is-visual-refresh) {
|
|
34
35
|
background-color: awsui.$color-background-container-content;
|
|
@@ -44,5 +45,5 @@
|
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
.is-visual-refresh {
|
|
47
|
-
// Used for
|
|
48
|
+
// Used for detecting Visual Refresh
|
|
48
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["alert/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAYtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAqBlF,QAAA,MAAM,aAAa;;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["alert/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAiB,MAAM,OAAO,CAAC;AAYtC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAqBlF,QAAA,MAAM,aAAa;;qEAuGlB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -37,25 +37,24 @@ const InternalAlert = React.forwardRef((_a, ref) => {
|
|
|
37
37
|
const isRefresh = useVisualRefresh();
|
|
38
38
|
const size = isRefresh ? 'normal' : header && children ? 'big' : 'normal';
|
|
39
39
|
const { discoveredActions, headerRef, contentRef } = useDiscoveredAction(type);
|
|
40
|
+
const hasAction = Boolean(action || buttonText || discoveredActions.length);
|
|
40
41
|
const analyticsAttributes = {
|
|
41
42
|
[DATA_ATTR_ANALYTICS_ALERT]: type,
|
|
42
43
|
};
|
|
43
|
-
return (React.createElement("div", Object.assign({}, baseProps, analyticsAttributes, { "aria-hidden": !visible, className: clsx(styles.root, { [styles.hidden]: !visible }, baseProps.className
|
|
44
|
+
return (React.createElement("div", Object.assign({}, baseProps, analyticsAttributes, { "aria-hidden": !visible, className: clsx(styles.root, { [styles.hidden]: !visible }, baseProps.className), ref: mergedRef }),
|
|
44
45
|
React.createElement(LinkDefaultVariantContext.Provider, { value: { defaultVariant: 'primary' } },
|
|
45
46
|
React.createElement(VisualContext, { contextName: "alert" },
|
|
46
|
-
React.createElement("div", { className: clsx(styles.alert, styles[`type-${type}`], styles[`icon-size-${size}`]) },
|
|
47
|
-
React.createElement("div", { className: styles['alert-
|
|
48
|
-
React.createElement("div", { className: styles
|
|
49
|
-
React.createElement(
|
|
50
|
-
|
|
51
|
-
React.createElement("div", { className: styles.
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
actionButton: styles['action-button'],
|
|
58
|
-
}, action: action, discoveredActions: discoveredActions, buttonText: buttonText, onButtonClick: () => fireNonCancelableEvent(onButtonClick) })),
|
|
47
|
+
React.createElement("div", { className: clsx(styles.alert, styles[`type-${type}`], styles[`icon-size-${size}`], hasAction && styles['with-action'], dismissible && styles['with-dismiss'], styles[`breakpoint-${breakpoint}`]) },
|
|
48
|
+
React.createElement("div", { className: styles['alert-focus-wrapper'], tabIndex: -1, ref: focusRef },
|
|
49
|
+
React.createElement("div", { className: clsx(styles.icon, styles.text), role: "img", "aria-label": statusIconAriaLabel },
|
|
50
|
+
React.createElement(InternalIcon, { name: typeToIcon[type], size: size })),
|
|
51
|
+
React.createElement("div", { className: clsx(styles.message, styles.text) },
|
|
52
|
+
header && (React.createElement("div", { className: styles.header, ref: headerRef }, header)),
|
|
53
|
+
React.createElement("div", { className: styles.content, ref: contentRef }, children))),
|
|
54
|
+
React.createElement(ActionsWrapper, { className: styles.action, testUtilClasses: {
|
|
55
|
+
actionSlot: styles['action-slot'],
|
|
56
|
+
actionButton: styles['action-button'],
|
|
57
|
+
}, action: action, discoveredActions: discoveredActions, buttonText: buttonText, onButtonClick: () => fireNonCancelableEvent(onButtonClick) }),
|
|
59
58
|
dismissible && (React.createElement("div", { className: styles.dismiss },
|
|
60
59
|
React.createElement(InternalButton, { className: styles['dismiss-button'], variant: "icon", iconName: "close", formAction: "none", ariaLabel: i18n('dismissAriaLabel', dismissAriaLabel), onClick: () => fireNonCancelableEvent(onDismiss) }))))))));
|
|
61
60
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["alert/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAClE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAC9E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AACrE,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAG9D,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AACxE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEn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GAAG,EAAE,UAAU,IAC5C,QAAQ,CACL,CACF,CACF;oBACN,oBAAC,cAAc,IACb,SAAS,EAAE,MAAM,CAAC,MAAM,EACxB,eAAe,EAAE;4BACf,UAAU,EAAE,MAAM,CAAC,aAAa,CAAC;4BACjC,YAAY,EAAE,MAAM,CAAC,eAAe,CAAC;yBACtC,EACD,MAAM,EAAE,MAAM,EACd,iBAAiB,EAAE,iBAAiB,EACpC,UAAU,EAAE,UAAU,EACtB,aAAa,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,aAAa,CAAC,GAC1D;oBACD,WAAW,IAAI,CACd,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO;wBAC5B,oBAAC,cAAc,IACb,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,EACnC,OAAO,EAAC,MAAM,EACd,QAAQ,EAAC,OAAO,EAChB,UAAU,EAAC,MAAM,EACjB,SAAS,EAAE,IAAI,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,EACrD,OAAO,EAAE,GAAG,EAAE,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAChD,CACE,CACP,CACG,CACQ,CACmB,CACjC,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\nimport { InternalButton } from '../button/internal';\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport VisualContext from '../internal/components/visual-context';\nimport styles from './styles.css.js';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport { AlertProps } from './interfaces';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { SomeRequired } from '../internal/types';\nimport { useInternalI18n } from '../i18n/context';\nimport { DATA_ATTR_ANALYTICS_ALERT } from '../internal/analytics/selectors';\nimport { LinkDefaultVariantContext } from '../internal/context/link-default-variant-context';\nimport { createUseDiscoveredAction } from '../internal/plugins/helpers';\nimport { awsuiPluginsInternal } from '../internal/plugins/api';\nimport { ActionsWrapper } from './actions-wrapper';\n\nconst typeToIcon: Record<AlertProps.Type, IconProps['name']> = {\n error: 'status-negative',\n warning: 'status-warning',\n success: 'status-positive',\n info: 'status-info',\n};\n\ntype InternalAlertProps = SomeRequired<AlertProps, 'type'> & InternalBaseComponentProps;\n\nconst useDiscoveredAction = createUseDiscoveredAction(awsuiPluginsInternal.alert.onActionRegistered);\n\nconst InternalAlert = React.forwardRef(\n (\n {\n type,\n statusIconAriaLabel,\n visible = true,\n dismissible,\n dismissAriaLabel,\n children,\n header,\n buttonText,\n action,\n onDismiss,\n onButtonClick,\n __internalRootRef = null,\n ...rest\n }: InternalAlertProps,\n ref: React.Ref<AlertProps.Ref>\n ) => {\n const baseProps = getBaseProps(rest);\n const i18n = useInternalI18n('alert');\n\n const focusRef = useRef<HTMLDivElement>(null);\n useForwardFocus(ref, focusRef);\n\n const [breakpoint, breakpointRef] = useContainerBreakpoints(['xs']);\n const mergedRef = useMergeRefs(breakpointRef, __internalRootRef);\n\n const isRefresh = useVisualRefresh();\n const size = isRefresh ? 'normal' : header && children ? 'big' : 'normal';\n\n const { discoveredActions, headerRef, contentRef } = useDiscoveredAction(type);\n\n const hasAction = Boolean(action || buttonText || discoveredActions.length);\n\n const analyticsAttributes = {\n [DATA_ATTR_ANALYTICS_ALERT]: type,\n };\n\n return (\n <div\n {...baseProps}\n {...analyticsAttributes}\n aria-hidden={!visible}\n className={clsx(styles.root, { [styles.hidden]: !visible }, baseProps.className)}\n ref={mergedRef}\n >\n <LinkDefaultVariantContext.Provider value={{ defaultVariant: 'primary' }}>\n <VisualContext contextName=\"alert\">\n <div\n className={clsx(\n styles.alert,\n styles[`type-${type}`],\n styles[`icon-size-${size}`],\n hasAction && styles['with-action'],\n dismissible && styles['with-dismiss'],\n styles[`breakpoint-${breakpoint}`]\n )}\n >\n <div className={styles['alert-focus-wrapper']} tabIndex={-1} ref={focusRef}>\n <div className={clsx(styles.icon, styles.text)} role=\"img\" aria-label={statusIconAriaLabel}>\n <InternalIcon name={typeToIcon[type]} size={size} />\n </div>\n <div className={clsx(styles.message, styles.text)}>\n {header && (\n <div className={styles.header} ref={headerRef}>\n {header}\n </div>\n )}\n <div className={styles.content} ref={contentRef}>\n {children}\n </div>\n </div>\n </div>\n <ActionsWrapper\n className={styles.action}\n testUtilClasses={{\n actionSlot: styles['action-slot'],\n actionButton: styles['action-button'],\n }}\n action={action}\n discoveredActions={discoveredActions}\n buttonText={buttonText}\n onButtonClick={() => fireNonCancelableEvent(onButtonClick)}\n />\n {dismissible && (\n <div className={styles.dismiss}>\n <InternalButton\n className={styles['dismiss-button']}\n variant=\"icon\"\n iconName=\"close\"\n formAction=\"none\"\n ariaLabel={i18n('dismissAriaLabel', dismissAriaLabel)}\n onClick={() => fireNonCancelableEvent(onDismiss)}\n />\n </div>\n )}\n </div>\n </VisualContext>\n </LinkDefaultVariantContext.Provider>\n </div>\n );\n }\n);\n\nexport default InternalAlert;\n"]}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"alert": "
|
|
5
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
6
|
-
"root": "
|
|
7
|
-
"hidden": "
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"action
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"icon-size-medium": "awsui_icon-size-
|
|
20
|
-
"icon-size-big": "awsui_icon-size-
|
|
21
|
-
"icon-size-normal": "awsui_icon-size-
|
|
22
|
-
"content": "
|
|
23
|
-
"dismiss": "
|
|
24
|
-
"dismiss-button": "awsui_dismiss-
|
|
25
|
-
"type-error": "awsui_type-
|
|
26
|
-
"type-warning": "awsui_type-
|
|
27
|
-
"type-success": "awsui_type-
|
|
28
|
-
"type-info": "awsui_type-
|
|
4
|
+
"alert": "awsui_alert_mx3cw_4axkb_93",
|
|
5
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_4axkb_1",
|
|
6
|
+
"root": "awsui_root_mx3cw_4axkb_119",
|
|
7
|
+
"hidden": "awsui_hidden_mx3cw_4axkb_135",
|
|
8
|
+
"with-dismiss": "awsui_with-dismiss_mx3cw_4axkb_158",
|
|
9
|
+
"with-action": "awsui_with-action_mx3cw_4axkb_158",
|
|
10
|
+
"breakpoint-default": "awsui_breakpoint-default_mx3cw_4axkb_164",
|
|
11
|
+
"header": "awsui_header_mx3cw_4axkb_171",
|
|
12
|
+
"action": "awsui_action_mx3cw_4axkb_175",
|
|
13
|
+
"action-slot": "awsui_action-slot_mx3cw_4axkb_180",
|
|
14
|
+
"action-button": "awsui_action-button_mx3cw_4axkb_181",
|
|
15
|
+
"alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_4axkb_185",
|
|
16
|
+
"text": "awsui_text_mx3cw_4axkb_211",
|
|
17
|
+
"icon": "awsui_icon_mx3cw_4axkb_216",
|
|
18
|
+
"message": "awsui_message_mx3cw_4axkb_219",
|
|
19
|
+
"icon-size-medium": "awsui_icon-size-medium_mx3cw_4axkb_227",
|
|
20
|
+
"icon-size-big": "awsui_icon-size-big_mx3cw_4axkb_230",
|
|
21
|
+
"icon-size-normal": "awsui_icon-size-normal_mx3cw_4axkb_233",
|
|
22
|
+
"content": "awsui_content_mx3cw_4axkb_237",
|
|
23
|
+
"dismiss": "awsui_dismiss_mx3cw_4axkb_241",
|
|
24
|
+
"dismiss-button": "awsui_dismiss-button_mx3cw_4axkb_246",
|
|
25
|
+
"type-error": "awsui_type-error_mx3cw_4axkb_250",
|
|
26
|
+
"type-warning": "awsui_type-warning_mx3cw_4axkb_258",
|
|
27
|
+
"type-success": "awsui_type-success_mx3cw_4axkb_266",
|
|
28
|
+
"type-info": "awsui_type-info_mx3cw_4axkb_274"
|
|
29
29
|
};
|
|
30
30
|
|
|
@@ -90,10 +90,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
90
90
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
91
91
|
SPDX-License-Identifier: Apache-2.0
|
|
92
92
|
*/
|
|
93
|
-
.
|
|
94
|
-
animation: awsui_awsui-motion-fade-
|
|
93
|
+
.awsui_alert_mx3cw_4axkb_93:not(#\9) {
|
|
94
|
+
animation: awsui_awsui-motion-fade-in_mx3cw_4axkb_1 var(--motion-duration-show-paced-wu1v6q, 180ms) var(--motion-easing-show-paced-72rrqw, ease-out);
|
|
95
95
|
}
|
|
96
|
-
@keyframes awsui_awsui-motion-fade-
|
|
96
|
+
@keyframes awsui_awsui-motion-fade-in_mx3cw_4axkb_1 {
|
|
97
97
|
from {
|
|
98
98
|
opacity: 0.2;
|
|
99
99
|
}
|
|
@@ -102,12 +102,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
@media (prefers-reduced-motion: reduce) {
|
|
105
|
-
.
|
|
105
|
+
.awsui_alert_mx3cw_4axkb_93:not(#\9) {
|
|
106
106
|
animation: none;
|
|
107
107
|
transition: none;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
.awsui-motion-disabled .
|
|
110
|
+
.awsui-motion-disabled .awsui_alert_mx3cw_4axkb_93:not(#\9), .awsui-mode-entering .awsui_alert_mx3cw_4axkb_93:not(#\9) {
|
|
111
111
|
animation: none;
|
|
112
112
|
transition: none;
|
|
113
113
|
}
|
|
@@ -116,7 +116,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
116
116
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
117
117
|
SPDX-License-Identifier: Apache-2.0
|
|
118
118
|
*/
|
|
119
|
-
.
|
|
119
|
+
.awsui_root_mx3cw_4axkb_119:not(#\9) {
|
|
120
120
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
121
121
|
border-collapse: separate;
|
|
122
122
|
border-spacing: 0;
|
|
@@ -158,11 +158,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
158
158
|
overflow: hidden;
|
|
159
159
|
display: block;
|
|
160
160
|
}
|
|
161
|
-
.
|
|
161
|
+
.awsui_root_mx3cw_4axkb_119.awsui_hidden_mx3cw_4axkb_135:not(#\9) {
|
|
162
162
|
display: none;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
.
|
|
165
|
+
.awsui_alert_mx3cw_4axkb_93:not(#\9) {
|
|
166
166
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
167
167
|
border-collapse: separate;
|
|
168
168
|
border-spacing: 0;
|
|
@@ -200,51 +200,55 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
200
200
|
-webkit-font-smoothing: auto;
|
|
201
201
|
-moz-osx-font-smoothing: auto;
|
|
202
202
|
position: relative;
|
|
203
|
-
display:
|
|
204
|
-
|
|
205
|
-
align-items: flex-start;
|
|
206
|
-
grid-template-columns: auto auto 1fr;
|
|
203
|
+
display: grid;
|
|
204
|
+
grid-template-columns: 1fr;
|
|
207
205
|
border-radius: var(--border-radius-alert-flb0mp, 2px);
|
|
208
206
|
border: var(--border-field-width-yoy972, 1px) solid;
|
|
209
207
|
padding: var(--space-alert-vertical-f4n3qs, 12px) var(--space-alert-horizontal-bwh51v, 20px);
|
|
210
208
|
background-color: var(--color-background-container-content-il2pe5, #ffffff);
|
|
211
209
|
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
210
|
+
.awsui_alert_mx3cw_4axkb_93.awsui_with-dismiss_mx3cw_4axkb_158:not(#\9), .awsui_alert_mx3cw_4axkb_93.awsui_with-action_mx3cw_4axkb_158:not(#\9) {
|
|
211
|
+
grid-template-columns: 1fr auto;
|
|
212
|
+
}
|
|
213
|
+
.awsui_alert_mx3cw_4axkb_93.awsui_with-action_mx3cw_4axkb_158.awsui_with-dismiss_mx3cw_4axkb_158:not(#\9) {
|
|
214
|
+
grid-template-columns: 1fr auto auto;
|
|
215
|
+
}
|
|
216
|
+
.awsui_alert_mx3cw_4axkb_93.awsui_breakpoint-default_mx3cw_4axkb_164.awsui_with-action_mx3cw_4axkb_158:not(#\9) {
|
|
217
|
+
grid-template-columns: 1fr auto;
|
|
218
|
+
}
|
|
219
|
+
.awsui_alert_mx3cw_4axkb_93.awsui_breakpoint-default_mx3cw_4axkb_164:not(#\9):not(.awsui_with-dismiss_mx3cw_4axkb_158) {
|
|
220
|
+
grid-template-columns: 1fr;
|
|
217
221
|
}
|
|
218
222
|
|
|
219
|
-
.
|
|
223
|
+
.awsui_header_mx3cw_4axkb_171:not(#\9) {
|
|
220
224
|
font-weight: 700;
|
|
221
225
|
}
|
|
222
226
|
|
|
223
|
-
.
|
|
227
|
+
.awsui_action_mx3cw_4axkb_175:not(#\9) {
|
|
224
228
|
white-space: nowrap;
|
|
225
229
|
margin-left: var(--space-alert-action-left-5t7fct, 20px);
|
|
226
230
|
}
|
|
227
231
|
|
|
228
|
-
.awsui_action-
|
|
229
|
-
.awsui_action-
|
|
232
|
+
.awsui_action-slot_mx3cw_4axkb_180:not(#\9),
|
|
233
|
+
.awsui_action-button_mx3cw_4axkb_181:not(#\9) {
|
|
230
234
|
/* used in test-utils */
|
|
231
235
|
}
|
|
232
236
|
|
|
233
|
-
.awsui_alert-focus-
|
|
234
|
-
display:
|
|
235
|
-
|
|
237
|
+
.awsui_alert-focus-wrapper_mx3cw_4axkb_185:not(#\9) {
|
|
238
|
+
display: grid;
|
|
239
|
+
grid-template-columns: min-content auto;
|
|
236
240
|
}
|
|
237
|
-
.awsui_alert-focus-
|
|
241
|
+
.awsui_alert-focus-wrapper_mx3cw_4axkb_185:not(#\9):focus {
|
|
238
242
|
outline: none;
|
|
239
243
|
}
|
|
240
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
244
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_4axkb_185:not(#\9):focus {
|
|
241
245
|
position: relative;
|
|
242
246
|
}
|
|
243
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
247
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_4axkb_185:not(#\9):focus {
|
|
244
248
|
outline: 2px dotted transparent;
|
|
245
249
|
outline-offset: calc(var(--space-button-focus-outline-gutter-s68ny8, 3px) - 1px);
|
|
246
250
|
}
|
|
247
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
251
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_4axkb_185:not(#\9):focus::before {
|
|
248
252
|
content: " ";
|
|
249
253
|
display: block;
|
|
250
254
|
position: absolute;
|
|
@@ -256,91 +260,73 @@ body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_1k712_181:n
|
|
|
256
260
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-v8nq2m, #0073bb);
|
|
257
261
|
}
|
|
258
262
|
|
|
259
|
-
.
|
|
260
|
-
|
|
261
|
-
flex: 1 1 0%;
|
|
262
|
-
}
|
|
263
|
-
|
|
264
|
-
.awsui_text_mx3cw_1k712_212:not(#\9) {
|
|
263
|
+
.awsui_text_mx3cw_4axkb_211:not(#\9) {
|
|
264
|
+
min-width: 0;
|
|
265
265
|
padding: var(--border-field-width-yoy972, 1px) 0;
|
|
266
266
|
margin: var(--space-scaled-xxs-t7ij38, 4px) var(--space-xxs-9rrxti, 4px);
|
|
267
267
|
}
|
|
268
|
-
.
|
|
268
|
+
.awsui_text_mx3cw_4axkb_211.awsui_icon_mx3cw_4axkb_216:not(#\9) {
|
|
269
269
|
margin-left: 0;
|
|
270
270
|
}
|
|
271
|
-
.
|
|
271
|
+
.awsui_text_mx3cw_4axkb_211.awsui_message_mx3cw_4axkb_219:not(#\9) {
|
|
272
272
|
margin-right: var(--space-alert-message-right-px48tx, 0px);
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
display: block;
|
|
278
|
-
}
|
|
279
|
-
.awsui_root_mx3cw_1k712_119.awsui_breakpoint-default_mx3cw_1k712_224 > div > .awsui_alert_mx3cw_1k712_93 > .awsui_alert-mobile-block_mx3cw_1k712_207 > .awsui_action_mx3cw_1k712_171:not(#\9) {
|
|
275
|
+
.awsui_breakpoint-default_mx3cw_4axkb_164 > .awsui_action_mx3cw_4axkb_175:not(#\9) {
|
|
276
|
+
grid-row: 2;
|
|
280
277
|
margin-bottom: var(--space-xxs-9rrxti, 4px);
|
|
281
278
|
}
|
|
282
|
-
.
|
|
279
|
+
.awsui_breakpoint-default_mx3cw_4axkb_164.awsui_icon-size-medium_mx3cw_4axkb_227 > .awsui_action_mx3cw_4axkb_175:not(#\9) {
|
|
283
280
|
margin-left: calc(var(--size-icon-medium-6sroof, 16px) + var(--space-xs-xf5ch3, 8px));
|
|
284
281
|
}
|
|
285
|
-
.
|
|
282
|
+
.awsui_breakpoint-default_mx3cw_4axkb_164.awsui_icon-size-big_mx3cw_4axkb_230 > .awsui_action_mx3cw_4axkb_175:not(#\9) {
|
|
286
283
|
margin-left: calc(var(--size-icon-big-hyxarq, 32px) + var(--space-xs-xf5ch3, 8px));
|
|
287
284
|
}
|
|
288
|
-
.
|
|
285
|
+
.awsui_breakpoint-default_mx3cw_4axkb_164.awsui_icon-size-normal_mx3cw_4axkb_233 > .awsui_action_mx3cw_4axkb_175:not(#\9) {
|
|
289
286
|
margin-left: calc(var(--size-icon-normal-wflv4k, 16px) + var(--space-xs-xf5ch3, 8px));
|
|
290
287
|
}
|
|
291
288
|
|
|
292
|
-
|
|
293
|
-
.awsui_message_mx3cw_1k712_219:not(#\9) {
|
|
294
|
-
flex: 1 1 0%;
|
|
295
|
-
min-width: 0;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
.awsui_content_mx3cw_1k712_246:not(#\9) {
|
|
289
|
+
.awsui_content_mx3cw_4axkb_237:not(#\9) {
|
|
299
290
|
/* used in test-utils */
|
|
300
291
|
}
|
|
301
292
|
|
|
302
|
-
.
|
|
303
|
-
flex: 0 0 auto;
|
|
293
|
+
.awsui_dismiss_mx3cw_4axkb_241:not(#\9) {
|
|
304
294
|
margin-right: calc(-1 * var(--space-xxs-9rrxti, 4px));
|
|
305
295
|
margin-left: var(--space-s-2025hl, 12px);
|
|
306
296
|
}
|
|
307
297
|
|
|
308
|
-
.awsui_dismiss-
|
|
298
|
+
.awsui_dismiss-button_mx3cw_4axkb_246:not(#\9) {
|
|
309
299
|
/* used in test-utils */
|
|
310
300
|
}
|
|
311
301
|
|
|
312
|
-
.
|
|
313
|
-
flex: 0 0 auto;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
.awsui_type-error_mx3cw_1k712_264:not(#\9) {
|
|
302
|
+
.awsui_type-error_mx3cw_4axkb_250:not(#\9) {
|
|
317
303
|
border-color: var(--color-border-status-error-xj05xm, #d13212);
|
|
318
304
|
background-color: var(--color-background-status-error-oemu7d, #fdf3f1);
|
|
319
305
|
}
|
|
320
|
-
.awsui_type-
|
|
306
|
+
.awsui_type-error_mx3cw_4axkb_250 > .awsui_alert-focus-wrapper_mx3cw_4axkb_185 > .awsui_icon_mx3cw_4axkb_216:not(#\9) {
|
|
321
307
|
color: var(--color-text-status-error-ofc4yr, #d13212);
|
|
322
308
|
}
|
|
323
309
|
|
|
324
|
-
.awsui_type-
|
|
310
|
+
.awsui_type-warning_mx3cw_4axkb_258:not(#\9) {
|
|
325
311
|
border-color: var(--color-border-status-warning-gda7pe, #906806);
|
|
326
312
|
background-color: var(--color-background-status-warning-c7n5t6, #fffce9);
|
|
327
313
|
}
|
|
328
|
-
.awsui_type-
|
|
314
|
+
.awsui_type-warning_mx3cw_4axkb_258 > .awsui_alert-focus-wrapper_mx3cw_4axkb_185 > .awsui_icon_mx3cw_4axkb_216:not(#\9) {
|
|
329
315
|
color: var(--color-text-status-warning-azn00c, #906806);
|
|
330
316
|
}
|
|
331
317
|
|
|
332
|
-
.awsui_type-
|
|
318
|
+
.awsui_type-success_mx3cw_4axkb_266:not(#\9) {
|
|
333
319
|
border-color: var(--color-border-status-success-ce6e1e, #1d8102);
|
|
334
320
|
background-color: var(--color-background-status-success-6fu96x, #f2f8f0);
|
|
335
321
|
}
|
|
336
|
-
.awsui_type-
|
|
322
|
+
.awsui_type-success_mx3cw_4axkb_266 > .awsui_alert-focus-wrapper_mx3cw_4axkb_185 > .awsui_icon_mx3cw_4axkb_216:not(#\9) {
|
|
337
323
|
color: var(--color-text-status-success-owjbj0, #1d8102);
|
|
338
324
|
}
|
|
339
325
|
|
|
340
|
-
.awsui_type-
|
|
326
|
+
.awsui_type-info_mx3cw_4axkb_274:not(#\9) {
|
|
341
327
|
border-color: var(--color-border-status-info-q9np44, #0073bb);
|
|
342
328
|
background-color: var(--color-background-status-info-pgxhez, #f1faff);
|
|
343
329
|
}
|
|
344
|
-
.awsui_type-
|
|
330
|
+
.awsui_type-info_mx3cw_4axkb_274 > .awsui_alert-focus-wrapper_mx3cw_4axkb_185 > .awsui_icon_mx3cw_4axkb_216:not(#\9) {
|
|
345
331
|
color: var(--color-text-status-info-aq7yd6, #0073bb);
|
|
346
332
|
}
|
|
@@ -2,30 +2,30 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"alert": "
|
|
6
|
-
"awsui-motion-fade-in": "awsui_awsui-motion-fade-
|
|
7
|
-
"root": "
|
|
8
|
-
"hidden": "
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"action
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"icon-size-medium": "awsui_icon-size-
|
|
21
|
-
"icon-size-big": "awsui_icon-size-
|
|
22
|
-
"icon-size-normal": "awsui_icon-size-
|
|
23
|
-
"content": "
|
|
24
|
-
"dismiss": "
|
|
25
|
-
"dismiss-button": "awsui_dismiss-
|
|
26
|
-
"type-error": "awsui_type-
|
|
27
|
-
"type-warning": "awsui_type-
|
|
28
|
-
"type-success": "awsui_type-
|
|
29
|
-
"type-info": "awsui_type-
|
|
5
|
+
"alert": "awsui_alert_mx3cw_4axkb_93",
|
|
6
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_4axkb_1",
|
|
7
|
+
"root": "awsui_root_mx3cw_4axkb_119",
|
|
8
|
+
"hidden": "awsui_hidden_mx3cw_4axkb_135",
|
|
9
|
+
"with-dismiss": "awsui_with-dismiss_mx3cw_4axkb_158",
|
|
10
|
+
"with-action": "awsui_with-action_mx3cw_4axkb_158",
|
|
11
|
+
"breakpoint-default": "awsui_breakpoint-default_mx3cw_4axkb_164",
|
|
12
|
+
"header": "awsui_header_mx3cw_4axkb_171",
|
|
13
|
+
"action": "awsui_action_mx3cw_4axkb_175",
|
|
14
|
+
"action-slot": "awsui_action-slot_mx3cw_4axkb_180",
|
|
15
|
+
"action-button": "awsui_action-button_mx3cw_4axkb_181",
|
|
16
|
+
"alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_4axkb_185",
|
|
17
|
+
"text": "awsui_text_mx3cw_4axkb_211",
|
|
18
|
+
"icon": "awsui_icon_mx3cw_4axkb_216",
|
|
19
|
+
"message": "awsui_message_mx3cw_4axkb_219",
|
|
20
|
+
"icon-size-medium": "awsui_icon-size-medium_mx3cw_4axkb_227",
|
|
21
|
+
"icon-size-big": "awsui_icon-size-big_mx3cw_4axkb_230",
|
|
22
|
+
"icon-size-normal": "awsui_icon-size-normal_mx3cw_4axkb_233",
|
|
23
|
+
"content": "awsui_content_mx3cw_4axkb_237",
|
|
24
|
+
"dismiss": "awsui_dismiss_mx3cw_4axkb_241",
|
|
25
|
+
"dismiss-button": "awsui_dismiss-button_mx3cw_4axkb_246",
|
|
26
|
+
"type-error": "awsui_type-error_mx3cw_4axkb_250",
|
|
27
|
+
"type-warning": "awsui_type-warning_mx3cw_4axkb_258",
|
|
28
|
+
"type-success": "awsui_type-success_mx3cw_4axkb_266",
|
|
29
|
+
"type-info": "awsui_type-info_mx3cw_4axkb_274"
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["breadcrumb-group/internal.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"lib/default/","sources":["breadcrumb-group/internal.tsx"],"names":[],"mappings":";AAUA,OAAO,EAAE,oBAAoB,EAAyB,MAAM,cAAc,CAAC;AAI3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AA6DlF,eAAO,MAAM,cAAc;;;;CAIzB,CAAC;AAEH,KAAK,4BAA4B,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,IAC/F,oBAAoB,CAAC,CAAC,CAAC,GAAG,0BAA0B,CAAC;AAEvD,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,CAAC,SAAS,oBAAoB,CAAC,IAAI,GAAG,oBAAoB,CAAC,IAAI,EAAE,EAC/G,KAAU,EACV,SAAS,EACT,eAAe,EACf,OAAO,EACP,QAAQ,EACR,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,4BAA4B,CAAC,CAAC,CAAC,eAiEjC"}
|