@cloudscape-design/components 3.0.1321 → 3.0.1323
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/index.d.ts.map +1 -1
- package/alert/internal-do-not-use-core.js +5 -0
- package/alert/internal-do-not-use-core.js.map +1 -1
- package/alert/styles.css.js +27 -27
- package/alert/styles.scoped.css +44 -44
- package/alert/styles.selectors.js +27 -27
- package/box/interfaces.d.ts +1 -1
- package/box/interfaces.d.ts.map +1 -1
- package/box/interfaces.js.map +1 -1
- package/box/styles.css.js +193 -192
- package/box/styles.scoped.css +246 -241
- package/box/styles.selectors.js +193 -192
- package/code-editor/styles.css.js +33 -33
- package/code-editor/styles.scoped.css +147 -147
- package/code-editor/styles.selectors.js +33 -33
- package/flashbar/flash.d.ts.map +1 -1
- package/flashbar/flash.js +2 -2
- package/flashbar/flash.js.map +1 -1
- package/flashbar/index.d.ts.map +1 -1
- package/flashbar/index.js +5 -0
- package/flashbar/index.js.map +1 -1
- package/flashbar/style.d.ts +3 -0
- package/flashbar/style.d.ts.map +1 -1
- package/flashbar/style.js +9 -0
- package/flashbar/style.js.map +1 -1
- package/flashbar/styles.css.js +50 -50
- package/flashbar/styles.scoped.css +169 -151
- package/flashbar/styles.selectors.js +50 -50
- package/form-field/styles.css.js +24 -24
- package/form-field/styles.scoped.css +40 -40
- package/form-field/styles.selectors.js +24 -24
- package/icon/styles.css.js +41 -41
- package/icon/styles.scoped.css +94 -94
- package/icon/styles.selectors.js +41 -41
- package/input/styles.css.js +18 -18
- package/input/styles.scoped.css +38 -38
- package/input/styles.selectors.js +18 -18
- package/internal/base-component/styles.scoped.css +95 -57
- package/internal/components/button-trigger/styles.css.js +14 -14
- package/internal/components/button-trigger/styles.scoped.css +35 -35
- package/internal/components/button-trigger/styles.selectors.js +14 -14
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/styles/tokens.d.ts +14 -0
- package/internal/generated/styles/tokens.js +27 -13
- package/internal/generated/theming/index.cjs +282 -21
- package/internal/generated/theming/index.cjs.d.ts +126 -0
- package/internal/generated/theming/index.d.ts +126 -0
- package/internal/generated/theming/index.js +282 -21
- package/internal/manifest.json +1 -1
- package/manifest.json +2 -2
- package/package.json +1 -1
- package/popover/body.d.ts.map +1 -1
- package/popover/body.js +2 -2
- package/popover/body.js.map +1 -1
- package/prompt-input/styles.css.js +26 -26
- package/prompt-input/styles.scoped.css +61 -61
- package/prompt-input/styles.selectors.js +26 -26
- package/side-navigation/parts.d.ts.map +1 -1
- package/side-navigation/parts.js +37 -28
- package/side-navigation/parts.js.map +1 -1
- package/side-navigation/styles.css.js +46 -46
- package/side-navigation/styles.scoped.css +85 -111
- package/side-navigation/styles.selectors.js +46 -46
- package/slider/styles.css.js +26 -26
- package/slider/styles.scoped.css +112 -112
- package/slider/styles.selectors.js +26 -26
- package/status-indicator/styles.css.js +24 -24
- package/status-indicator/styles.scoped.css +59 -59
- package/status-indicator/styles.selectors.js +24 -24
- package/textarea/styles.css.js +5 -5
- package/textarea/styles.scoped.css +17 -17
- package/textarea/styles.selectors.js +5 -5
- package/tutorial-panel/components/tutorial-detail-view/styles.css.js +20 -20
- package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +23 -23
- package/tutorial-panel/components/tutorial-detail-view/styles.selectors.js +20 -20
package/alert/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/alert/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAYjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,QAAA,MAAM,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/alert/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAYjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,QAAA,MAAM,KAAK,mFA2GV,CAAC;AAGF,eAAe,KAAK,CAAC"}
|
|
@@ -13,9 +13,14 @@ import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
|
13
13
|
import InternalAlert from './internal';
|
|
14
14
|
import analyticsSelectors from './analytics-metadata/styles.css.js';
|
|
15
15
|
const Alert = React.forwardRef(({ type = 'info', visible = true, style, ...props }, ref) => {
|
|
16
|
+
var _a, _b;
|
|
16
17
|
const analyticsMetadata = getAnalyticsMetadataProps(props);
|
|
17
18
|
const baseComponentProps = useBaseComponent('Alert', {
|
|
18
19
|
props: { type, visible, dismissible: props.dismissible },
|
|
20
|
+
metadata: {
|
|
21
|
+
hasPersistenceConfig: !!((_a = props.persistenceConfig) === null || _a === void 0 ? void 0 : _a.uniqueKey),
|
|
22
|
+
crossServicePersistence: !!((_b = props.persistenceConfig) === null || _b === void 0 ? void 0 : _b.crossServicePersistence),
|
|
23
|
+
},
|
|
19
24
|
}, analyticsMetadata);
|
|
20
25
|
const rootRef = useRef(null);
|
|
21
26
|
const __internalRootRef = useMergeRefs(rootRef, baseComponentProps.__internalRootRef);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/alert/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAC1F,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAA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BAAmB;wBACnB,YAAY,EAAE,iBAAiB,CAAC,YAAY,IAAI,kBAAkB;qBACnE,CAAC,CAAC;gBACL,CAAC;YACH,CAAC;YAED,OAAO,GAAG,EAAE;gBACV,uDAAuD;gBACvD,UAAU,CAAC,OAAO,EAAE,CAAC;YACvB,CAAC,CAAC;QACJ,CAAC;QAED,uDAAuD;IACzD,CAAC,EAAE,CAAC,mBAAmB,EAAE,OAAO,EAAE,iBAAiB,EAAE,UAAU,CAAC,CAAC,CAAC;IAElE,MAAM,0BAA0B,GAA6C;QAC3E,IAAI,EAAE,aAAa;QACnB,KAAK,EAAE,IAAI,kBAAkB,CAAC,MAAM,EAAE;QACtC,UAAU,EAAE;YACV,IAAI;SACL;KACF,CAAC;IAEF,OAAO,CACL,oBAAC,aAAa,IACZ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,KACZ,KAAK,KACL,kBAAkB,EACtB,iBAAiB,EAAE,iBAAiB,EACpC,GAAG,EAAE,GAAG,EACR,aAAa,EAAE,aAAa,EAC5B,KAAK,EAAE,KAAK,KACR,6BAA6B,CAAC,EAAE,SAAS,EAAE,0BAA0B,EAAE,CAAC,GAC5E,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACjC,eAAe,KAAK,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React, { useEffect, useRef } from 'react';\n\nimport { useMergeRefs, useUniqueId } from '@cloudscape-design/component-toolkit/internal';\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel, useFunnelStep, useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport { getSubStepAllSelector, getTextFromSelector } from '../internal/analytics/selectors';\nimport { BasePropsWithAnalyticsMetadata, getAnalyticsMetadataProps } from '../internal/base-component';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { GeneratedAnalyticsMetadataAlertComponent } from './analytics-metadata/interfaces';\nimport { AlertProps } from './interfaces';\nimport InternalAlert from './internal';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\n\nexport { AlertProps };\n\nconst Alert = React.forwardRef(\n ({ type = 'info', visible = true, style, ...props }: AlertProps, ref: React.Ref<AlertProps.Ref>) => {\n const analyticsMetadata = getAnalyticsMetadataProps(props as BasePropsWithAnalyticsMetadata);\n\n const baseComponentProps = useBaseComponent(\n 'Alert',\n {\n props: { type, visible, dismissible: props.dismissible },\n metadata: {\n hasPersistenceConfig: !!props.persistenceConfig?.uniqueKey,\n crossServicePersistence: !!props.persistenceConfig?.crossServicePersistence,\n },\n },\n analyticsMetadata\n );\n const rootRef = useRef<HTMLElement>(null);\n const __internalRootRef = useMergeRefs(rootRef, baseComponentProps.__internalRootRef);\n\n const { funnelIdentifier, funnelInteractionId, funnelErrorContext, submissionAttempt, funnelState, errorCount } =\n useFunnel();\n const { stepNumber, stepNameSelector, stepIdentifier, subStepCount, stepErrorContext, subStepConfiguration } =\n useFunnelStep();\n const { subStepSelector, subStepNameSelector, subStepIdentifier, subStepErrorContext } = useFunnelSubStep();\n\n const messageSlotId = useUniqueId('alert-');\n\n useEffect(() => {\n if (funnelInteractionId && visible && type === 'error' && funnelState.current !== 'complete') {\n const stepName = getTextFromSelector(stepNameSelector);\n const subStepName = getTextFromSelector(subStepNameSelector);\n\n errorCount.current++;\n\n // We don't want to report an error if it is hidden, e.g. inside an Expandable Section.\n const errorIsVisible = (rootRef.current?.getBoundingClientRect()?.width ?? 0) > 0;\n\n if (errorIsVisible) {\n if (subStepSelector) {\n FunnelMetrics.funnelSubStepError({\n funnelInteractionId,\n funnelIdentifier,\n stepIdentifier,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n stepNumber,\n stepName,\n stepNameSelector,\n subStepAllSelector: getSubStepAllSelector(),\n subStepIdentifier,\n errorContext: analyticsMetadata.errorContext || subStepErrorContext,\n });\n } else if (stepNameSelector) {\n FunnelMetrics.funnelStepError({\n funnelInteractionId,\n stepNumber,\n stepNameSelector,\n stepName,\n stepIdentifier,\n currentDocument: rootRef.current?.ownerDocument,\n totalSubSteps: subStepCount.current,\n funnelIdentifier,\n subStepAllSelector: getSubStepAllSelector(),\n errorContext: analyticsMetadata.errorContext || stepErrorContext,\n subStepConfiguration: subStepConfiguration.current?.get(stepNumber),\n stepErrorSelector: '#' + messageSlotId,\n });\n } else {\n FunnelMetrics.funnelError({\n funnelIdentifier,\n funnelInteractionId,\n errorContext: analyticsMetadata.errorContext || funnelErrorContext,\n });\n }\n }\n\n return () => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n errorCount.current--;\n };\n }\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [funnelInteractionId, visible, submissionAttempt, errorCount]);\n\n const componentAnalyticsMetadata: GeneratedAnalyticsMetadataAlertComponent = {\n name: 'awsui.Alert',\n label: `.${analyticsSelectors.header}`,\n properties: {\n type,\n },\n };\n\n return (\n <InternalAlert\n type={type}\n visible={visible}\n {...props}\n {...baseComponentProps}\n __internalRootRef={__internalRootRef}\n ref={ref}\n messageSlotId={messageSlotId}\n style={style}\n {...getAnalyticsMetadataAttribute({ component: componentAnalyticsMetadata })}\n />\n );\n }\n);\n\napplyDisplayName(Alert, 'Alert');\nexport default Alert;\n"]}
|
package/alert/styles.css.js
CHANGED
|
@@ -1,32 +1,32 @@
|
|
|
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
|
-
"alert-wrapper": "awsui_alert-
|
|
9
|
-
"initial-hidden": "awsui_initial-
|
|
10
|
-
"header": "
|
|
11
|
-
"header-replacement": "awsui_header-
|
|
12
|
-
"action": "
|
|
13
|
-
"action-slot": "awsui_action-
|
|
14
|
-
"action-button": "awsui_action-
|
|
15
|
-
"alert-focus-wrapper": "awsui_alert-focus-
|
|
16
|
-
"text": "
|
|
17
|
-
"icon": "
|
|
18
|
-
"message": "
|
|
19
|
-
"action-wrapped": "awsui_action-
|
|
20
|
-
"icon-size-medium": "awsui_icon-size-
|
|
21
|
-
"icon-size-big": "awsui_icon-size-
|
|
22
|
-
"icon-size-normal": "awsui_icon-size-
|
|
23
|
-
"content": "
|
|
24
|
-
"content-replacement": "awsui_content-
|
|
25
|
-
"dismiss": "
|
|
26
|
-
"dismiss-button": "awsui_dismiss-
|
|
27
|
-
"type-error": "awsui_type-
|
|
28
|
-
"type-warning": "awsui_type-
|
|
29
|
-
"type-success": "awsui_type-
|
|
30
|
-
"type-info": "awsui_type-
|
|
4
|
+
"alert": "awsui_alert_mx3cw_7jl6m_193",
|
|
5
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_7jl6m_1",
|
|
6
|
+
"root": "awsui_root_mx3cw_7jl6m_215",
|
|
7
|
+
"hidden": "awsui_hidden_mx3cw_7jl6m_250",
|
|
8
|
+
"alert-wrapper": "awsui_alert-wrapper_mx3cw_7jl6m_301",
|
|
9
|
+
"initial-hidden": "awsui_initial-hidden_mx3cw_7jl6m_313",
|
|
10
|
+
"header": "awsui_header_mx3cw_7jl6m_318",
|
|
11
|
+
"header-replacement": "awsui_header-replacement_mx3cw_7jl6m_319",
|
|
12
|
+
"action": "awsui_action_mx3cw_7jl6m_323",
|
|
13
|
+
"action-slot": "awsui_action-slot_mx3cw_7jl6m_327",
|
|
14
|
+
"action-button": "awsui_action-button_mx3cw_7jl6m_328",
|
|
15
|
+
"alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_7jl6m_332",
|
|
16
|
+
"text": "awsui_text_mx3cw_7jl6m_363",
|
|
17
|
+
"icon": "awsui_icon_mx3cw_7jl6m_370",
|
|
18
|
+
"message": "awsui_message_mx3cw_7jl6m_373",
|
|
19
|
+
"action-wrapped": "awsui_action-wrapped_mx3cw_7jl6m_377",
|
|
20
|
+
"icon-size-medium": "awsui_icon-size-medium_mx3cw_7jl6m_381",
|
|
21
|
+
"icon-size-big": "awsui_icon-size-big_mx3cw_7jl6m_385",
|
|
22
|
+
"icon-size-normal": "awsui_icon-size-normal_mx3cw_7jl6m_389",
|
|
23
|
+
"content": "awsui_content_mx3cw_7jl6m_393",
|
|
24
|
+
"content-replacement": "awsui_content-replacement_mx3cw_7jl6m_394",
|
|
25
|
+
"dismiss": "awsui_dismiss_mx3cw_7jl6m_398",
|
|
26
|
+
"dismiss-button": "awsui_dismiss-button_mx3cw_7jl6m_403",
|
|
27
|
+
"type-error": "awsui_type-error_mx3cw_7jl6m_407",
|
|
28
|
+
"type-warning": "awsui_type-warning_mx3cw_7jl6m_415",
|
|
29
|
+
"type-success": "awsui_type-success_mx3cw_7jl6m_423",
|
|
30
|
+
"type-info": "awsui_type-info_mx3cw_7jl6m_431"
|
|
31
31
|
};
|
|
32
32
|
|
package/alert/styles.scoped.css
CHANGED
|
@@ -190,10 +190,10 @@ 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
|
-
.
|
|
194
|
-
animation: awsui_awsui-motion-fade-
|
|
193
|
+
.awsui_alert_mx3cw_7jl6m_193:not(#\9) {
|
|
194
|
+
animation: awsui_awsui-motion-fade-in_mx3cw_7jl6m_1 var(--motion-duration-show-paced-otsjh8, 180ms) var(--motion-easing-show-paced-ym6eyn, ease-out);
|
|
195
195
|
}
|
|
196
|
-
@keyframes awsui_awsui-motion-fade-
|
|
196
|
+
@keyframes awsui_awsui-motion-fade-in_mx3cw_7jl6m_1 {
|
|
197
197
|
from {
|
|
198
198
|
opacity: 0.2;
|
|
199
199
|
}
|
|
@@ -202,17 +202,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
@media (prefers-reduced-motion: reduce) {
|
|
205
|
-
.
|
|
205
|
+
.awsui_alert_mx3cw_7jl6m_193:not(#\9) {
|
|
206
206
|
animation: none;
|
|
207
207
|
transition: none;
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
|
-
.awsui-motion-disabled .
|
|
210
|
+
.awsui-motion-disabled .awsui_alert_mx3cw_7jl6m_193:not(#\9), .awsui-mode-entering .awsui_alert_mx3cw_7jl6m_193:not(#\9) {
|
|
211
211
|
animation: none;
|
|
212
212
|
transition: none;
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
.
|
|
215
|
+
.awsui_root_mx3cw_7jl6m_215:not(#\9) {
|
|
216
216
|
border-collapse: separate;
|
|
217
217
|
border-spacing: 0;
|
|
218
218
|
box-sizing: border-box;
|
|
@@ -247,11 +247,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
247
247
|
overflow: hidden;
|
|
248
248
|
display: block;
|
|
249
249
|
}
|
|
250
|
-
.
|
|
250
|
+
.awsui_root_mx3cw_7jl6m_215.awsui_hidden_mx3cw_7jl6m_250:not(#\9) {
|
|
251
251
|
display: none;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
.
|
|
254
|
+
.awsui_alert_mx3cw_7jl6m_193:not(#\9) {
|
|
255
255
|
border-collapse: separate;
|
|
256
256
|
border-spacing: 0;
|
|
257
257
|
box-sizing: border-box;
|
|
@@ -298,7 +298,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
298
298
|
--awsui-alert-focus-ring-box-shadow-6b9ypa: 0 0 0 var(--awsui-alert-focus-ring-border-width-6b9ypa, 2px) var(--awsui-alert-focus-ring-border-color-6b9ypa, var(--color-border-item-focused-uk47pl, #006ce0));
|
|
299
299
|
}
|
|
300
300
|
|
|
301
|
-
.awsui_alert-
|
|
301
|
+
.awsui_alert-wrapper_mx3cw_7jl6m_301:not(#\9) {
|
|
302
302
|
flex: 1;
|
|
303
303
|
display: flex;
|
|
304
304
|
flex-direction: row;
|
|
@@ -306,46 +306,46 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
306
306
|
column-gap: var(--space-alert-action-left-4s8zo5, 12px);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
.
|
|
309
|
+
.awsui_hidden_mx3cw_7jl6m_250:not(#\9) {
|
|
310
310
|
display: none;
|
|
311
311
|
}
|
|
312
312
|
|
|
313
|
-
.awsui_initial-
|
|
313
|
+
.awsui_initial-hidden_mx3cw_7jl6m_313:not(#\9) {
|
|
314
314
|
overflow: hidden;
|
|
315
315
|
block-size: 0;
|
|
316
316
|
}
|
|
317
317
|
|
|
318
|
-
.
|
|
319
|
-
.awsui_header-
|
|
318
|
+
.awsui_header_mx3cw_7jl6m_318:not(#\9),
|
|
319
|
+
.awsui_header-replacement_mx3cw_7jl6m_319:not(#\9) {
|
|
320
320
|
font-weight: var(--font-weight-alert-header-zg25o1, 700);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
|
-
.
|
|
323
|
+
.awsui_action_mx3cw_7jl6m_323:not(#\9) {
|
|
324
324
|
white-space: nowrap;
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
.awsui_action-
|
|
328
|
-
.awsui_action-
|
|
327
|
+
.awsui_action-slot_mx3cw_7jl6m_327:not(#\9),
|
|
328
|
+
.awsui_action-button_mx3cw_7jl6m_328:not(#\9) {
|
|
329
329
|
/* used in test-utils */
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
.awsui_alert-focus-
|
|
332
|
+
.awsui_alert-focus-wrapper_mx3cw_7jl6m_332:not(#\9) {
|
|
333
333
|
flex: 1;
|
|
334
334
|
min-inline-size: 70%;
|
|
335
335
|
display: grid;
|
|
336
336
|
grid-template-columns: min-content auto;
|
|
337
337
|
}
|
|
338
|
-
.awsui_alert-focus-
|
|
338
|
+
.awsui_alert-focus-wrapper_mx3cw_7jl6m_332:not(#\9):focus {
|
|
339
339
|
outline: none;
|
|
340
340
|
}
|
|
341
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
341
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_7jl6m_332:not(#\9):focus {
|
|
342
342
|
position: relative;
|
|
343
343
|
}
|
|
344
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
344
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_7jl6m_332:not(#\9):focus {
|
|
345
345
|
outline: 2px dotted transparent;
|
|
346
346
|
outline-offset: calc(var(--space-button-focus-outline-gutter-jj138g, 4px) - 1px);
|
|
347
347
|
}
|
|
348
|
-
body[data-awsui-focus-visible=true] .awsui_alert-focus-
|
|
348
|
+
body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_7jl6m_332:not(#\9):focus::before {
|
|
349
349
|
content: " ";
|
|
350
350
|
display: block;
|
|
351
351
|
position: absolute;
|
|
@@ -360,78 +360,78 @@ body[data-awsui-focus-visible=true] .awsui_alert-focus-wrapper_mx3cw_c2mjl_332:n
|
|
|
360
360
|
box-shadow: var(--awsui-alert-focus-ring-box-shadow-6b9ypa);
|
|
361
361
|
}
|
|
362
362
|
|
|
363
|
-
.
|
|
363
|
+
.awsui_text_mx3cw_7jl6m_363:not(#\9) {
|
|
364
364
|
min-inline-size: 0;
|
|
365
365
|
padding-block: var(--border-width-button-jm0qg7, 2px);
|
|
366
366
|
padding-inline: 0;
|
|
367
367
|
margin-block: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
368
368
|
margin-inline: var(--space-xxs-hwfkai, 4px);
|
|
369
369
|
}
|
|
370
|
-
.
|
|
370
|
+
.awsui_text_mx3cw_7jl6m_363.awsui_icon_mx3cw_7jl6m_370:not(#\9) {
|
|
371
371
|
margin-inline-start: 0;
|
|
372
372
|
}
|
|
373
|
-
.
|
|
373
|
+
.awsui_text_mx3cw_7jl6m_363.awsui_message_mx3cw_7jl6m_373:not(#\9) {
|
|
374
374
|
margin-inline-end: var(--space-alert-message-right-mrjbnn, 4px);
|
|
375
375
|
}
|
|
376
376
|
|
|
377
|
-
.awsui_action-
|
|
377
|
+
.awsui_action-wrapped_mx3cw_7jl6m_377:not(#\9) {
|
|
378
378
|
margin-block-end: var(--space-xxs-hwfkai, 4px);
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
.awsui_icon-size-
|
|
381
|
+
.awsui_icon-size-medium_mx3cw_7jl6m_381 > .awsui_alert-wrapper_mx3cw_7jl6m_301 > .awsui_action-wrapped_mx3cw_7jl6m_377:not(#\9) {
|
|
382
382
|
margin-inline-start: calc(var(--size-icon-medium-uv8xcz, 20px) + var(--space-xs-ymlm0b, 8px));
|
|
383
383
|
}
|
|
384
384
|
|
|
385
|
-
.awsui_icon-size-
|
|
385
|
+
.awsui_icon-size-big_mx3cw_7jl6m_385 > .awsui_alert-wrapper_mx3cw_7jl6m_301 > .awsui_action-wrapped_mx3cw_7jl6m_377:not(#\9) {
|
|
386
386
|
margin-inline-start: calc(var(--size-icon-big-7pq9l3, 32px) + var(--space-xs-ymlm0b, 8px));
|
|
387
387
|
}
|
|
388
388
|
|
|
389
|
-
.awsui_icon-size-
|
|
389
|
+
.awsui_icon-size-normal_mx3cw_7jl6m_389 > .awsui_alert-wrapper_mx3cw_7jl6m_301 > .awsui_action-wrapped_mx3cw_7jl6m_377:not(#\9) {
|
|
390
390
|
margin-inline-start: calc(var(--size-icon-normal-levt08, 16px) + var(--space-xs-ymlm0b, 8px));
|
|
391
391
|
}
|
|
392
392
|
|
|
393
|
-
.
|
|
394
|
-
.awsui_content-
|
|
393
|
+
.awsui_content_mx3cw_7jl6m_393:not(#\9),
|
|
394
|
+
.awsui_content-replacement_mx3cw_7jl6m_394:not(#\9) {
|
|
395
395
|
/* used in test-utils */
|
|
396
396
|
}
|
|
397
397
|
|
|
398
|
-
.
|
|
398
|
+
.awsui_dismiss_mx3cw_7jl6m_398:not(#\9) {
|
|
399
399
|
margin-inline-end: calc(-1 * var(--space-xxs-hwfkai, 4px));
|
|
400
400
|
margin-inline-start: var(--space-s-tvghoh, 12px);
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
.awsui_dismiss-
|
|
403
|
+
.awsui_dismiss-button_mx3cw_7jl6m_403:not(#\9) {
|
|
404
404
|
/* used in test-utils */
|
|
405
405
|
}
|
|
406
406
|
|
|
407
|
-
.awsui_type-
|
|
407
|
+
.awsui_type-error_mx3cw_7jl6m_407:not(#\9) {
|
|
408
408
|
border-color: var(--color-border-status-error-j8acpp, #db0000);
|
|
409
409
|
background-color: var(--color-background-status-error-mu3lcw, #fff5f5);
|
|
410
410
|
}
|
|
411
|
-
.awsui_type-
|
|
412
|
-
color: var(--awsui-alert-icon-color-6b9ypa, var(--color-text-status-error-
|
|
411
|
+
.awsui_type-error_mx3cw_7jl6m_407 > .awsui_alert-wrapper_mx3cw_7jl6m_301 > .awsui_alert-focus-wrapper_mx3cw_7jl6m_332 > .awsui_icon_mx3cw_7jl6m_370:not(#\9) {
|
|
412
|
+
color: var(--awsui-alert-icon-color-6b9ypa, var(--color-text-status-error-bwp1cm, #db0000));
|
|
413
413
|
}
|
|
414
414
|
|
|
415
|
-
.awsui_type-
|
|
415
|
+
.awsui_type-warning_mx3cw_7jl6m_415:not(#\9) {
|
|
416
416
|
border-color: var(--color-border-status-warning-j40pg7, #855900);
|
|
417
417
|
background-color: var(--color-background-status-warning-cv83up, #fffef0);
|
|
418
418
|
}
|
|
419
|
-
.awsui_type-
|
|
420
|
-
color: var(--awsui-alert-icon-color-6b9ypa, var(--color-text-status-warning-
|
|
419
|
+
.awsui_type-warning_mx3cw_7jl6m_415 > .awsui_alert-wrapper_mx3cw_7jl6m_301 > .awsui_alert-focus-wrapper_mx3cw_7jl6m_332 > .awsui_icon_mx3cw_7jl6m_370:not(#\9) {
|
|
420
|
+
color: var(--awsui-alert-icon-color-6b9ypa, var(--color-text-status-warning-ylxn5k, #855900));
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
.awsui_type-
|
|
423
|
+
.awsui_type-success_mx3cw_7jl6m_423:not(#\9) {
|
|
424
424
|
border-color: var(--color-border-status-success-8z5f8u, #00802f);
|
|
425
425
|
background-color: var(--color-background-status-success-h6b8bh, #effff1);
|
|
426
426
|
}
|
|
427
|
-
.awsui_type-
|
|
428
|
-
color: var(--awsui-alert-icon-color-6b9ypa, var(--color-text-status-success-
|
|
427
|
+
.awsui_type-success_mx3cw_7jl6m_423 > .awsui_alert-wrapper_mx3cw_7jl6m_301 > .awsui_alert-focus-wrapper_mx3cw_7jl6m_332 > .awsui_icon_mx3cw_7jl6m_370:not(#\9) {
|
|
428
|
+
color: var(--awsui-alert-icon-color-6b9ypa, var(--color-text-status-success-r9s7ha, #00802f));
|
|
429
429
|
}
|
|
430
430
|
|
|
431
|
-
.awsui_type-
|
|
431
|
+
.awsui_type-info_mx3cw_7jl6m_431:not(#\9) {
|
|
432
432
|
border-color: var(--color-border-status-info-qf6jok, #006ce0);
|
|
433
433
|
background-color: var(--color-background-status-info-sfobba, #f0fbff);
|
|
434
434
|
}
|
|
435
|
-
.awsui_type-
|
|
436
|
-
color: var(--awsui-alert-icon-color-6b9ypa, var(--color-text-status-info-
|
|
435
|
+
.awsui_type-info_mx3cw_7jl6m_431 > .awsui_alert-wrapper_mx3cw_7jl6m_301 > .awsui_alert-focus-wrapper_mx3cw_7jl6m_332 > .awsui_icon_mx3cw_7jl6m_370:not(#\9) {
|
|
436
|
+
color: var(--awsui-alert-icon-color-6b9ypa, var(--color-text-status-info-2ftgrk, #006ce0));
|
|
437
437
|
}
|
|
@@ -2,32 +2,32 @@
|
|
|
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
|
-
"alert-wrapper": "awsui_alert-
|
|
10
|
-
"initial-hidden": "awsui_initial-
|
|
11
|
-
"header": "
|
|
12
|
-
"header-replacement": "awsui_header-
|
|
13
|
-
"action": "
|
|
14
|
-
"action-slot": "awsui_action-
|
|
15
|
-
"action-button": "awsui_action-
|
|
16
|
-
"alert-focus-wrapper": "awsui_alert-focus-
|
|
17
|
-
"text": "
|
|
18
|
-
"icon": "
|
|
19
|
-
"message": "
|
|
20
|
-
"action-wrapped": "awsui_action-
|
|
21
|
-
"icon-size-medium": "awsui_icon-size-
|
|
22
|
-
"icon-size-big": "awsui_icon-size-
|
|
23
|
-
"icon-size-normal": "awsui_icon-size-
|
|
24
|
-
"content": "
|
|
25
|
-
"content-replacement": "awsui_content-
|
|
26
|
-
"dismiss": "
|
|
27
|
-
"dismiss-button": "awsui_dismiss-
|
|
28
|
-
"type-error": "awsui_type-
|
|
29
|
-
"type-warning": "awsui_type-
|
|
30
|
-
"type-success": "awsui_type-
|
|
31
|
-
"type-info": "awsui_type-
|
|
5
|
+
"alert": "awsui_alert_mx3cw_7jl6m_193",
|
|
6
|
+
"awsui-motion-fade-in": "awsui_awsui-motion-fade-in_mx3cw_7jl6m_1",
|
|
7
|
+
"root": "awsui_root_mx3cw_7jl6m_215",
|
|
8
|
+
"hidden": "awsui_hidden_mx3cw_7jl6m_250",
|
|
9
|
+
"alert-wrapper": "awsui_alert-wrapper_mx3cw_7jl6m_301",
|
|
10
|
+
"initial-hidden": "awsui_initial-hidden_mx3cw_7jl6m_313",
|
|
11
|
+
"header": "awsui_header_mx3cw_7jl6m_318",
|
|
12
|
+
"header-replacement": "awsui_header-replacement_mx3cw_7jl6m_319",
|
|
13
|
+
"action": "awsui_action_mx3cw_7jl6m_323",
|
|
14
|
+
"action-slot": "awsui_action-slot_mx3cw_7jl6m_327",
|
|
15
|
+
"action-button": "awsui_action-button_mx3cw_7jl6m_328",
|
|
16
|
+
"alert-focus-wrapper": "awsui_alert-focus-wrapper_mx3cw_7jl6m_332",
|
|
17
|
+
"text": "awsui_text_mx3cw_7jl6m_363",
|
|
18
|
+
"icon": "awsui_icon_mx3cw_7jl6m_370",
|
|
19
|
+
"message": "awsui_message_mx3cw_7jl6m_373",
|
|
20
|
+
"action-wrapped": "awsui_action-wrapped_mx3cw_7jl6m_377",
|
|
21
|
+
"icon-size-medium": "awsui_icon-size-medium_mx3cw_7jl6m_381",
|
|
22
|
+
"icon-size-big": "awsui_icon-size-big_mx3cw_7jl6m_385",
|
|
23
|
+
"icon-size-normal": "awsui_icon-size-normal_mx3cw_7jl6m_389",
|
|
24
|
+
"content": "awsui_content_mx3cw_7jl6m_393",
|
|
25
|
+
"content-replacement": "awsui_content-replacement_mx3cw_7jl6m_394",
|
|
26
|
+
"dismiss": "awsui_dismiss_mx3cw_7jl6m_398",
|
|
27
|
+
"dismiss-button": "awsui_dismiss-button_mx3cw_7jl6m_403",
|
|
28
|
+
"type-error": "awsui_type-error_mx3cw_7jl6m_407",
|
|
29
|
+
"type-warning": "awsui_type-warning_mx3cw_7jl6m_415",
|
|
30
|
+
"type-success": "awsui_type-success_mx3cw_7jl6m_423",
|
|
31
|
+
"type-info": "awsui_type-info_mx3cw_7jl6m_431"
|
|
32
32
|
};
|
|
33
33
|
|
package/box/interfaces.d.ts
CHANGED
|
@@ -136,7 +136,7 @@ export declare namespace BoxProps {
|
|
|
136
136
|
type Display = 'block' | 'inline' | 'inline-block' | 'none';
|
|
137
137
|
type TextAlign = 'left' | 'center' | 'right';
|
|
138
138
|
type Float = 'left' | 'right';
|
|
139
|
-
type FontSize = 'body-s' | 'body-m' | 'heading-xs' | 'heading-s' | 'heading-m' | 'heading-l' | 'heading-xl' | 'display-l';
|
|
139
|
+
type FontSize = 'body-s' | 'body-m' | 'heading-xs' | 'heading-s' | 'heading-m' | 'heading-l' | 'heading-xl' | 'display-l' | 'display-xl';
|
|
140
140
|
type FontWeight = 'light' | 'normal' | 'bold' | 'heavy';
|
|
141
141
|
type Color = 'inherit' | 'text-label' | 'text-body-secondary' | 'text-status-error' | 'text-status-success' | 'text-status-info' | 'text-status-inactive' | 'text-status-warning';
|
|
142
142
|
type SpacingSize = 'n' | 'xxxs' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';
|
package/box/interfaces.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/box/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D;;GAEG;AACH,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,MAAM,WAAW,QAAS,SAAQ,kBAAkB;IAClD;;;;;;;;;;;;;;OAcG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;;;OASG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC;IAC3B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,MAAM,CAAC,EAAE,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC;IACjD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,OAAO,CAAC,EAAE,QAAQ,CAAC,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC;IAClD;;OAEG;IACH,SAAS,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,QAAQ,CAAC,KAAK,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC;IAC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AAO,CAAC;IACrC,KAAY,QAAQ,GAChB,QAAQ,GACR,QAAQ,GACR,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAAW,GACX,YAAY,GACZ,WAAW,GACX,YAAY,CAAC;IACjB,KAAY,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,CAAC;IAC/D,KAAY,KAAK,GACb,SAAS,GACT,YAAY,GACZ,qBAAqB,GACrB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,GAClB,sBAAsB,GACtB,qBAAqB,CAAC;IAC1B,KAAY,WAAW,GAAG,GAAG,GAAG,MAAM,GAAG,KAAK,GAAG,IAAI,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,GAAG,KAAK,GAAG,MAAM,CAAC;IAChG,UAAiB,OAAO;QACtB,GAAG,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAC3B,KAAK,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAC7B,MAAM,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAC9B,IAAI,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAC5B,UAAU,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;QAClC,QAAQ,CAAC,EAAE,QAAQ,CAAC,WAAW,CAAC;KACjC;CACF"}
|
package/box/interfaces.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/box/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../types/base-component';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../types/native-attributes';\n\nexport interface BoxProps extends BaseComponentProps {\n /**\n * Defines the style of element to display.\n *\n * - If you set it to `'div'`, `'span'`, `'h1'`, `'h2'`, `'h3'`, `'h4'`, `'h5'`, `'p'`, `'strong'`, `'small'`, `'code'`, `'pre'`, or `'samp'`, the variant is also used as the HTML tag name.\n * - If you set it to `awsui-key-label`, the component will render a `div`,\n * styled for use as a key label in key-value pairs.\n * - If you set it to `awsui-gen-ai-label`, the component will render a `div`,\n * styled for use as a label indicating that content is produced by generative AI.\n * - If you set it to `awsui-value-large`, the component will render a `span`,\n * styled using \"Display large light\" typography.\n * - If you set it to `awsui-inline-code`, the component will render a `code` element,\n * styled with a background and padding for inline code snippets.\n *\n * Override the HTML tag by using property `tagOverride`.\n */\n variant?: BoxProps.Variant;\n /**\n * Overrides the default HTML tag provided by the variant.\n */\n tagOverride?: string;\n /**\n * Overrides the display of the element. You can set it to the following values:\n *\n * - `block` - Specifies block display.\n * - `inline` - Specifies inline display.\n * - `inline-block` - Specifies inline-block display.\n * - `none` - Hides the box.\n *\n * Note: If you don't set it, the display depends on the variant.\n */\n display?: BoxProps.Display;\n /**\n * Adds margins to the element. It can be the following:\n *\n * - A single string with a size. This applies the same margin to all sides (that is, top, right, bottom, left).\n * - An object specifying the size of the margin per side. The object has the following format:\n * ```\n * {\n * top: \"size of top margin\",\n * right: \"size of right margin\",\n * bottom: \"size of bottom margin\",\n * left: \"size of left margin\",\n * horizontal: \"size of left and right margin\",\n * vertical: \"size of top and bottom margin\",\n * }\n * ```\n *\n * The size can be `n`, `xxxs`, `xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`, `xxxl`, where `n` stands for none.\n * Sizes are automatically scaled down in compact mode.\n *\n * For example, `margin=\"s\"` adds a small margin to all sides.\n * `margin={{ right: \"l\", bottom: \"s\" }}` adds a small margin to the bottom and a large margin to the right.\n */\n margin?: BoxProps.SpacingSize | BoxProps.Spacing;\n /**\n * Adds padding to the element. It can be the following:\n *\n * - A single string with a size. This applies the same padding to all sides (that is, top, right, bottom, left).\n * - An object specifying the size of padding per side. The object has the following format:\n * ```\n * {\n * top: \"size of top padding\",\n * right: \"size of right padding\",\n * bottom: \"size of bottom padding\",\n * left: \"size of left padding\",\n * horizontal: \"size of left and right padding\",\n * vertical: \"size of top and bottom padding\",\n * }\n * ```\n *\n * The size can be `n`, `xxxs`, `xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`, `xxxl`, where `n` stands for none.\n * Sizes are automatically scaled down in compact mode.\n *\n * For example, `padding=\"s\"` adds small padding to all sides.\n * `padding={{ right: \"l\", bottom: \"s\" }}` adds small padding to the bottom and large padding to the right.\n */\n padding?: BoxProps.SpacingSize | BoxProps.Spacing;\n /**\n * Defines the text alignment within the element. You can set it to `left`, `center`, or `right`.\n */\n textAlign?: BoxProps.TextAlign;\n /**\n * Defines the floating behavior. You can set it to `left` or `right`.\n */\n float?: BoxProps.Float;\n /**\n * Overrides the font size and line height. If not set, the font size and line height depend on the variant.\n */\n fontSize?: BoxProps.FontSize;\n /**\n * Overrides the font weight. If not set, the value depends on the variant.\n * @visualrefresh 'heavy'\n */\n fontWeight?: BoxProps.FontWeight;\n /**\n * Overrides the text color. You can set it to the following values:\n *\n * - `inherit` - Inherits the color from the parent element. For example, use this to style content\n * in Flashbars and to style the `empty` and `noMatch` slots of the Table and Cards components.\n * - `text-label` - Specifies the text color for non-form labels. For example, use it for the key in key/value pairs.\n * - `text-body-secondary` - Specifies the color for secondary text.\n * - `text-status-error` - Specifies the color for error text and icons.\n * - `text-status-success` - Specifies the color for success text and icons.\n * - `text-status-info` - Specifies the color for info text and icon.\n * - `text-status-inactive` - Specifies the color for inactive and loading text and icons.\n * - `text-status-warning` - Specifies the color for warning text and icons.\n *\n * Note: If you don't set it, the text color depends on the variant.\n */\n color?: BoxProps.Color;\n /**\n * Content of the box.\n * @displayname content\n */\n children?: React.ReactNode;\n\n /**\n * Attributes to add to the native element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeAttributes?: NativeAttributes<React.HTMLAttributes<HTMLElement>>;\n}\n\nexport namespace BoxProps {\n export type Variant =\n | 'div'\n | 'span'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'p'\n | 'strong'\n | 'small'\n | 'code'\n | 'pre'\n | 'samp'\n | 'awsui-key-label'\n | 'awsui-gen-ai-label'\n | 'awsui-value-large'\n | 'awsui-inline-code';\n\n export type Display = 'block' | 'inline' | 'inline-block' | 'none';\n export type TextAlign = 'left' | 'center' | 'right';\n export type Float = 'left' | 'right';\n export type FontSize =\n | 'body-s'\n | 'body-m'\n | 'heading-xs'\n | 'heading-s'\n | 'heading-m'\n | 'heading-l'\n | 'heading-xl'\n | 'display-l';\n export type FontWeight = 'light' | 'normal' | 'bold' | 'heavy';\n export type Color =\n | 'inherit'\n | 'text-label'\n | 'text-body-secondary'\n | 'text-status-error'\n | 'text-status-success'\n | 'text-status-info'\n | 'text-status-inactive'\n | 'text-status-warning';\n export type SpacingSize = 'n' | 'xxxs' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';\n export interface Spacing {\n top?: BoxProps.SpacingSize;\n right?: BoxProps.SpacingSize;\n bottom?: BoxProps.SpacingSize;\n left?: BoxProps.SpacingSize;\n horizontal?: BoxProps.SpacingSize;\n vertical?: BoxProps.SpacingSize;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/box/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../types/base-component';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../types/native-attributes';\n\nexport interface BoxProps extends BaseComponentProps {\n /**\n * Defines the style of element to display.\n *\n * - If you set it to `'div'`, `'span'`, `'h1'`, `'h2'`, `'h3'`, `'h4'`, `'h5'`, `'p'`, `'strong'`, `'small'`, `'code'`, `'pre'`, or `'samp'`, the variant is also used as the HTML tag name.\n * - If you set it to `awsui-key-label`, the component will render a `div`,\n * styled for use as a key label in key-value pairs.\n * - If you set it to `awsui-gen-ai-label`, the component will render a `div`,\n * styled for use as a label indicating that content is produced by generative AI.\n * - If you set it to `awsui-value-large`, the component will render a `span`,\n * styled using \"Display large light\" typography.\n * - If you set it to `awsui-inline-code`, the component will render a `code` element,\n * styled with a background and padding for inline code snippets.\n *\n * Override the HTML tag by using property `tagOverride`.\n */\n variant?: BoxProps.Variant;\n /**\n * Overrides the default HTML tag provided by the variant.\n */\n tagOverride?: string;\n /**\n * Overrides the display of the element. You can set it to the following values:\n *\n * - `block` - Specifies block display.\n * - `inline` - Specifies inline display.\n * - `inline-block` - Specifies inline-block display.\n * - `none` - Hides the box.\n *\n * Note: If you don't set it, the display depends on the variant.\n */\n display?: BoxProps.Display;\n /**\n * Adds margins to the element. It can be the following:\n *\n * - A single string with a size. This applies the same margin to all sides (that is, top, right, bottom, left).\n * - An object specifying the size of the margin per side. The object has the following format:\n * ```\n * {\n * top: \"size of top margin\",\n * right: \"size of right margin\",\n * bottom: \"size of bottom margin\",\n * left: \"size of left margin\",\n * horizontal: \"size of left and right margin\",\n * vertical: \"size of top and bottom margin\",\n * }\n * ```\n *\n * The size can be `n`, `xxxs`, `xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`, `xxxl`, where `n` stands for none.\n * Sizes are automatically scaled down in compact mode.\n *\n * For example, `margin=\"s\"` adds a small margin to all sides.\n * `margin={{ right: \"l\", bottom: \"s\" }}` adds a small margin to the bottom and a large margin to the right.\n */\n margin?: BoxProps.SpacingSize | BoxProps.Spacing;\n /**\n * Adds padding to the element. It can be the following:\n *\n * - A single string with a size. This applies the same padding to all sides (that is, top, right, bottom, left).\n * - An object specifying the size of padding per side. The object has the following format:\n * ```\n * {\n * top: \"size of top padding\",\n * right: \"size of right padding\",\n * bottom: \"size of bottom padding\",\n * left: \"size of left padding\",\n * horizontal: \"size of left and right padding\",\n * vertical: \"size of top and bottom padding\",\n * }\n * ```\n *\n * The size can be `n`, `xxxs`, `xxs`, `xs`, `s`, `m`, `l`, `xl`, `xxl`, `xxxl`, where `n` stands for none.\n * Sizes are automatically scaled down in compact mode.\n *\n * For example, `padding=\"s\"` adds small padding to all sides.\n * `padding={{ right: \"l\", bottom: \"s\" }}` adds small padding to the bottom and large padding to the right.\n */\n padding?: BoxProps.SpacingSize | BoxProps.Spacing;\n /**\n * Defines the text alignment within the element. You can set it to `left`, `center`, or `right`.\n */\n textAlign?: BoxProps.TextAlign;\n /**\n * Defines the floating behavior. You can set it to `left` or `right`.\n */\n float?: BoxProps.Float;\n /**\n * Overrides the font size and line height. If not set, the font size and line height depend on the variant.\n */\n fontSize?: BoxProps.FontSize;\n /**\n * Overrides the font weight. If not set, the value depends on the variant.\n * @visualrefresh 'heavy'\n */\n fontWeight?: BoxProps.FontWeight;\n /**\n * Overrides the text color. You can set it to the following values:\n *\n * - `inherit` - Inherits the color from the parent element. For example, use this to style content\n * in Flashbars and to style the `empty` and `noMatch` slots of the Table and Cards components.\n * - `text-label` - Specifies the text color for non-form labels. For example, use it for the key in key/value pairs.\n * - `text-body-secondary` - Specifies the color for secondary text.\n * - `text-status-error` - Specifies the color for error text and icons.\n * - `text-status-success` - Specifies the color for success text and icons.\n * - `text-status-info` - Specifies the color for info text and icon.\n * - `text-status-inactive` - Specifies the color for inactive and loading text and icons.\n * - `text-status-warning` - Specifies the color for warning text and icons.\n *\n * Note: If you don't set it, the text color depends on the variant.\n */\n color?: BoxProps.Color;\n /**\n * Content of the box.\n * @displayname content\n */\n children?: React.ReactNode;\n\n /**\n * Attributes to add to the native element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeAttributes?: NativeAttributes<React.HTMLAttributes<HTMLElement>>;\n}\n\nexport namespace BoxProps {\n export type Variant =\n | 'div'\n | 'span'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'p'\n | 'strong'\n | 'small'\n | 'code'\n | 'pre'\n | 'samp'\n | 'awsui-key-label'\n | 'awsui-gen-ai-label'\n | 'awsui-value-large'\n | 'awsui-inline-code';\n\n export type Display = 'block' | 'inline' | 'inline-block' | 'none';\n export type TextAlign = 'left' | 'center' | 'right';\n export type Float = 'left' | 'right';\n export type FontSize =\n | 'body-s'\n | 'body-m'\n | 'heading-xs'\n | 'heading-s'\n | 'heading-m'\n | 'heading-l'\n | 'heading-xl'\n | 'display-l'\n | 'display-xl';\n export type FontWeight = 'light' | 'normal' | 'bold' | 'heavy';\n export type Color =\n | 'inherit'\n | 'text-label'\n | 'text-body-secondary'\n | 'text-status-error'\n | 'text-status-success'\n | 'text-status-info'\n | 'text-status-inactive'\n | 'text-status-warning';\n export type SpacingSize = 'n' | 'xxxs' | 'xxs' | 'xs' | 's' | 'm' | 'l' | 'xl' | 'xxl' | 'xxxl';\n export interface Spacing {\n top?: BoxProps.SpacingSize;\n right?: BoxProps.SpacingSize;\n bottom?: BoxProps.SpacingSize;\n left?: BoxProps.SpacingSize;\n horizontal?: BoxProps.SpacingSize;\n vertical?: BoxProps.SpacingSize;\n }\n}\n"]}
|