@cloudscape-design/components 3.0.606 → 3.0.608
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/annotation-context/annotation/styles.css.js +24 -24
- package/annotation-context/annotation/styles.scoped.css +30 -30
- package/annotation-context/annotation/styles.selectors.js +24 -24
- 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 +81 -81
- package/app-layout/visual-refresh/styles.scoped.css +275 -286
- package/app-layout/visual-refresh/styles.selectors.js +81 -81
- package/content-layout/styles.css.js +7 -7
- package/content-layout/styles.scoped.css +13 -15
- package/content-layout/styles.selectors.js +7 -7
- package/flashbar/styles.css.js +47 -47
- package/flashbar/styles.scoped.css +171 -171
- package/flashbar/styles.selectors.js +47 -47
- package/form-field/internal.d.ts.map +1 -1
- package/form-field/internal.js +10 -6
- package/form-field/internal.js.map +1 -1
- package/internal/components/dropdown/styles.css.js +20 -20
- package/internal/components/dropdown/styles.scoped.css +39 -39
- package/internal/components/dropdown/styles.selectors.js +20 -20
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
- package/internal/generated/custom-css-properties/index.js +44 -46
- package/internal/generated/custom-css-properties/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/popover/internal.js +1 -1
- package/popover/internal.js.map +1 -1
- package/popover/styles.css.js +50 -50
- package/popover/styles.scoped.css +64 -64
- package/popover/styles.selectors.js +50 -50
- package/spinner/styles.css.js +13 -13
- package/spinner/styles.scoped.css +39 -39
- package/spinner/styles.selectors.js +13 -13
- package/wizard/styles.css.js +32 -32
- package/wizard/styles.scoped.css +68 -68
- package/wizard/styles.selectors.js +32 -32
|
@@ -2,52 +2,52 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"flash-with-motion": "awsui_flash-with-
|
|
6
|
-
"enter": "
|
|
7
|
-
"flash-body": "awsui_flash-
|
|
8
|
-
"flash-message": "awsui_flash-
|
|
9
|
-
"flash-header": "awsui_flash-
|
|
10
|
-
"flash-content": "awsui_flash-
|
|
11
|
-
"action-button-wrapper": "awsui_action-button-
|
|
12
|
-
"dismiss-button-wrapper": "awsui_dismiss-button-
|
|
13
|
-
"flash-icon": "awsui_flash-
|
|
14
|
-
"entering": "
|
|
15
|
-
"entered": "
|
|
16
|
-
"exiting": "
|
|
17
|
-
"stack": "
|
|
18
|
-
"animation-running": "awsui_animation-
|
|
19
|
-
"item": "
|
|
20
|
-
"flash-list-item": "awsui_flash-list-
|
|
21
|
-
"notification-bar": "awsui_notification-
|
|
22
|
-
"collapsed": "
|
|
23
|
-
"animation-ready": "awsui_animation-
|
|
24
|
-
"expanded-only": "awsui_expanded-
|
|
25
|
-
"expanded": "
|
|
26
|
-
"flash": "
|
|
27
|
-
"collapsible": "
|
|
28
|
-
"short-list": "awsui_short-
|
|
29
|
-
"visual-refresh": "awsui_visual-
|
|
30
|
-
"status": "
|
|
31
|
-
"header": "
|
|
32
|
-
"item-count": "awsui_item-
|
|
33
|
-
"button": "
|
|
34
|
-
"type-count": "awsui_type-
|
|
35
|
-
"count-number": "awsui_count-
|
|
36
|
-
"icon": "
|
|
37
|
-
"floating": "
|
|
38
|
-
"flashbar": "
|
|
39
|
-
"flash-refresh": "awsui_flash-
|
|
40
|
-
"flash-list": "awsui_flash-
|
|
41
|
-
"flash-focus-container": "awsui_flash-focus-
|
|
42
|
-
"flash-text": "awsui_flash-
|
|
43
|
-
"dismiss-button": "awsui_dismiss-
|
|
44
|
-
"breakpoint-default": "awsui_breakpoint-
|
|
45
|
-
"action-button": "awsui_action-
|
|
46
|
-
"action-slot": "awsui_action-
|
|
47
|
-
"flash-type-success": "awsui_flash-type-
|
|
48
|
-
"flash-type-error": "awsui_flash-type-
|
|
49
|
-
"flash-type-info": "awsui_flash-type-
|
|
50
|
-
"flash-type-in-progress": "awsui_flash-type-in-
|
|
51
|
-
"flash-type-warning": "awsui_flash-type-
|
|
5
|
+
"flash-with-motion": "awsui_flash-with-motion_1q84n_pgrle_99",
|
|
6
|
+
"enter": "awsui_enter_1q84n_pgrle_99",
|
|
7
|
+
"flash-body": "awsui_flash-body_1q84n_pgrle_113",
|
|
8
|
+
"flash-message": "awsui_flash-message_1q84n_pgrle_113",
|
|
9
|
+
"flash-header": "awsui_flash-header_1q84n_pgrle_113",
|
|
10
|
+
"flash-content": "awsui_flash-content_1q84n_pgrle_114",
|
|
11
|
+
"action-button-wrapper": "awsui_action-button-wrapper_1q84n_pgrle_115",
|
|
12
|
+
"dismiss-button-wrapper": "awsui_dismiss-button-wrapper_1q84n_pgrle_116",
|
|
13
|
+
"flash-icon": "awsui_flash-icon_1q84n_pgrle_139",
|
|
14
|
+
"entering": "awsui_entering_1q84n_pgrle_152",
|
|
15
|
+
"entered": "awsui_entered_1q84n_pgrle_173",
|
|
16
|
+
"exiting": "awsui_exiting_1q84n_pgrle_278",
|
|
17
|
+
"stack": "awsui_stack_1q84n_pgrle_300",
|
|
18
|
+
"animation-running": "awsui_animation-running_1q84n_pgrle_300",
|
|
19
|
+
"item": "awsui_item_1q84n_pgrle_300",
|
|
20
|
+
"flash-list-item": "awsui_flash-list-item_1q84n_pgrle_301",
|
|
21
|
+
"notification-bar": "awsui_notification-bar_1q84n_pgrle_302",
|
|
22
|
+
"collapsed": "awsui_collapsed_1q84n_pgrle_322",
|
|
23
|
+
"animation-ready": "awsui_animation-ready_1q84n_pgrle_322",
|
|
24
|
+
"expanded-only": "awsui_expanded-only_1q84n_pgrle_322",
|
|
25
|
+
"expanded": "awsui_expanded_1q84n_pgrle_322",
|
|
26
|
+
"flash": "awsui_flash_1q84n_pgrle_99",
|
|
27
|
+
"collapsible": "awsui_collapsible_1q84n_pgrle_386",
|
|
28
|
+
"short-list": "awsui_short-list_1q84n_pgrle_392",
|
|
29
|
+
"visual-refresh": "awsui_visual-refresh_1q84n_pgrle_392",
|
|
30
|
+
"status": "awsui_status_1q84n_pgrle_605",
|
|
31
|
+
"header": "awsui_header_1q84n_pgrle_605",
|
|
32
|
+
"item-count": "awsui_item-count_1q84n_pgrle_606",
|
|
33
|
+
"button": "awsui_button_1q84n_pgrle_607",
|
|
34
|
+
"type-count": "awsui_type-count_1q84n_pgrle_640",
|
|
35
|
+
"count-number": "awsui_count-number_1q84n_pgrle_640",
|
|
36
|
+
"icon": "awsui_icon_1q84n_pgrle_674",
|
|
37
|
+
"floating": "awsui_floating_1q84n_pgrle_715",
|
|
38
|
+
"flashbar": "awsui_flashbar_1q84n_pgrle_723",
|
|
39
|
+
"flash-refresh": "awsui_flash-refresh_1q84n_pgrle_798",
|
|
40
|
+
"flash-list": "awsui_flash-list_1q84n_pgrle_301",
|
|
41
|
+
"flash-focus-container": "awsui_flash-focus-container_1q84n_pgrle_819",
|
|
42
|
+
"flash-text": "awsui_flash-text_1q84n_pgrle_849",
|
|
43
|
+
"dismiss-button": "awsui_dismiss-button_1q84n_pgrle_116",
|
|
44
|
+
"breakpoint-default": "awsui_breakpoint-default_1q84n_pgrle_891",
|
|
45
|
+
"action-button": "awsui_action-button_1q84n_pgrle_115",
|
|
46
|
+
"action-slot": "awsui_action-slot_1q84n_pgrle_901",
|
|
47
|
+
"flash-type-success": "awsui_flash-type-success_1q84n_pgrle_905",
|
|
48
|
+
"flash-type-error": "awsui_flash-type-error_1q84n_pgrle_909",
|
|
49
|
+
"flash-type-info": "awsui_flash-type-info_1q84n_pgrle_913",
|
|
50
|
+
"flash-type-in-progress": "awsui_flash-type-in-progress_1q84n_pgrle_914",
|
|
51
|
+
"flash-type-warning": "awsui_flash-type-warning_1q84n_pgrle_918"
|
|
52
52
|
};
|
|
53
53
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/form-field/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/form-field/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAajD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAgBtD,UAAU,mBAAmB;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,mBAAmB,eAwBvF;AAED,wBAAgB,cAAc,CAAC,EAC7B,EAAE,EACF,QAAQ,EACR,QAAQ,GACT,EAAE;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,eAMA;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,SAAS,EACT,OAAe,EACf,KAAK,EACL,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,SAAS,EACT,WAAW,EACX,iBAAwB,EACxB,gBAAwB,EACxB,GAAG,IAAI,EACR,EAAE,sBAAsB,eAgIxB"}
|
package/form-field/internal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __rest } from "tslib";
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
import React, { useEffect } from 'react';
|
|
4
|
+
import React, { useEffect, useRef } from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import { getBaseProps } from '../internal/base-component';
|
|
7
7
|
import { FormFieldContext, useFormFieldContext } from '../internal/context/form-field-context';
|
|
@@ -17,13 +17,17 @@ import { InfoLinkLabelContext } from '../internal/context/info-link-label-contex
|
|
|
17
17
|
import { FunnelMetrics } from '../internal/analytics';
|
|
18
18
|
import { useFunnel, useFunnelStep, useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';
|
|
19
19
|
import { DATA_ATTR_FIELD_ERROR, DATA_ATTR_FIELD_LABEL, getFieldSlotSeletor, getNameFromSelector, getSubStepAllSelector, } from '../internal/analytics/selectors';
|
|
20
|
+
import LiveRegion from '../internal/components/live-region';
|
|
20
21
|
export function FormFieldError({ id, children, errorIconAriaLabel }) {
|
|
21
22
|
const i18n = useInternalI18n('form-field');
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
const contentRef = useRef(null);
|
|
24
|
+
return (React.createElement(React.Fragment, null,
|
|
25
|
+
React.createElement("div", { id: id, className: styles.error },
|
|
26
|
+
React.createElement("div", { className: styles['error-icon-shake-wrapper'] },
|
|
27
|
+
React.createElement("div", { role: "img", "aria-label": i18n('i18nStrings.errorIconAriaLabel', errorIconAriaLabel), className: styles['error-icon-scale-wrapper'] },
|
|
28
|
+
React.createElement(InternalIcon, { name: "status-warning", size: "small" }))),
|
|
29
|
+
React.createElement("span", { className: styles.error__message, ref: contentRef }, children)),
|
|
30
|
+
React.createElement(LiveRegion, { assertive: true, source: [errorIconAriaLabel, contentRef] })));
|
|
27
31
|
}
|
|
28
32
|
export function ConstraintText({ id, hasError, children, }) {
|
|
29
33
|
return (React.createElement("div", { id: id, className: clsx(styles.constraint, hasError && styles['constraint-has-error']) }, children));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/form-field/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,IAAI,MA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AI,CAAQ,CACtC,CAC5B;QAEL,WAAW,IAAI,CACd,6BAAK,SAAS,EAAE,MAAM,CAAC,WAAW,EAAE,EAAE,EAAE,OAAO,CAAC,WAAW,IACxD,WAAW,CACR,CACP;QAED,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,QAAQ,EAAE,WAAW,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC;YAC1E,oBAAC,YAAY,IAAC,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB;gBAC5E,oBAAC,gBAAgB,CAAC,QAAQ,IACxB,KAAK,kBACH,SAAS,EAAE,kBAAkB,IAC1B,6BAA6B,KAGjC,QAAQ,IAAI,6BAAK,SAAS,EAAE,MAAM,CAAC,OAAO,IAAG,QAAQ,CAAO,CACnC;gBAE3B,gBAAgB,IAAI,CACnB,oBAAC,gBAAgB,CAAC,QAAQ,IAAC,KAAK,EAAE,6BAA6B;oBAC7D,6BAAK,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,IAAG,gBAAgB,CAAO,CAC3C,CAC7B,CACY,CACX;QAEL,CAAC,cAAc,IAAI,SAAS,CAAC,IAAI,CAChC,6BAAK,SAAS,EAAE,MAAM,CAAC,KAAK;YACzB,SAAS,IAAI,CACZ,oBAAC,cAAc,IAAC,EAAE,EAAE,OAAO,CAAC,KAAK,EAAE,kBAAkB,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,kBAAkB,IACnF,SAAS,CACK,CAClB;YACA,cAAc,IAAI,CACjB,oBAAC,cAAc,IAAC,EAAE,EAAE,OAAO,CAAC,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,SAAS,IAC1D,cAAc,CACA,CAClB,CACG,CACP,CACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { FormFieldContext, useFormFieldContext } from '../internal/context/form-field-context';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\nimport InternalGrid from '../grid/internal';\nimport InternalIcon from '../icon/internal';\nimport { getAriaDescribedBy, getGridDefinition, getSlotIds } from './util';\n\nimport styles from './styles.css.js';\nimport { InternalFormFieldProps } from './interfaces';\nimport { joinStrings } from '../internal/utils/strings';\nimport { useInternalI18n } from '../i18n/context';\nimport { InfoLinkLabelContext } from '../internal/context/info-link-label-context';\n\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel, useFunnelStep, useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport {\n DATA_ATTR_FIELD_ERROR,\n DATA_ATTR_FIELD_LABEL,\n getFieldSlotSeletor,\n getNameFromSelector,\n getSubStepAllSelector,\n} from '../internal/analytics/selectors';\n\ninterface FormFieldErrorProps {\n id?: string;\n children?: React.ReactNode;\n errorIconAriaLabel?: string;\n}\n\nexport function FormFieldError({ id, children, errorIconAriaLabel }: FormFieldErrorProps) {\n const i18n = useInternalI18n('form-field');\n\n return (\n <div id={id} className={styles.error}>\n <div className={styles['error-icon-shake-wrapper']}>\n <div\n role=\"img\"\n aria-label={i18n('i18nStrings.errorIconAriaLabel', errorIconAriaLabel)}\n className={styles['error-icon-scale-wrapper']}\n >\n <InternalIcon name=\"status-warning\" size=\"small\" />\n </div>\n </div>\n <span className={styles.error__message}>{children}</span>\n </div>\n );\n}\n\nexport function ConstraintText({\n id,\n hasError,\n children,\n}: {\n id?: string;\n hasError: boolean;\n children: React.ReactNode;\n}) {\n return (\n <div id={id} className={clsx(styles.constraint, hasError && styles['constraint-has-error'])}>\n {children}\n </div>\n );\n}\n\nexport default function InternalFormField({\n controlId,\n stretch = false,\n label,\n info,\n i18nStrings,\n children,\n secondaryControl,\n description,\n constraintText,\n errorText,\n __hideLabel,\n __internalRootRef = null,\n __disableGutters = false,\n ...rest\n}: InternalFormFieldProps) {\n const baseProps = getBaseProps(rest);\n const isRefresh = useVisualRefresh();\n\n const instanceUniqueId = useUniqueId('formField');\n const generatedControlId = controlId || instanceUniqueId;\n const formFieldId = controlId || generatedControlId;\n\n const { funnelInteractionId, submissionAttempt, funnelState, errorCount } = useFunnel();\n const { stepNumber, stepNameSelector } = useFunnelStep();\n const { subStepSelector, subStepNameSelector } = useFunnelSubStep();\n\n const slotIds = getSlotIds(formFieldId, label, description, constraintText, errorText);\n\n const ariaDescribedBy = getAriaDescribedBy(slotIds);\n\n const gridDefinition = getGridDefinition(stretch, !!secondaryControl, isRefresh);\n\n const {\n ariaLabelledby: parentAriaLabelledby,\n ariaDescribedby: parentAriaDescribedby,\n invalid: parentInvalid,\n } = useFormFieldContext({});\n\n const contextValuesWithoutControlId = {\n ariaLabelledby: joinStrings(parentAriaLabelledby, slotIds.label) || undefined,\n ariaDescribedby: joinStrings(parentAriaDescribedby, ariaDescribedBy) || undefined,\n invalid: !!errorText || !!parentInvalid,\n };\n\n const analyticsAttributes = {\n [DATA_ATTR_FIELD_LABEL]: slotIds.label ? getFieldSlotSeletor(slotIds.label) : undefined,\n [DATA_ATTR_FIELD_ERROR]: slotIds.error ? getFieldSlotSeletor(slotIds.error) : undefined,\n };\n\n useEffect(() => {\n if (funnelInteractionId && errorText && funnelState.current !== 'complete') {\n const stepName = getNameFromSelector(stepNameSelector);\n const subStepName = getNameFromSelector(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 = (__internalRootRef?.current?.getBoundingClientRect()?.width ?? 0) > 0;\n\n if (errorIsVisible) {\n FunnelMetrics.funnelSubStepError({\n funnelInteractionId,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n stepNumber,\n stepName,\n stepNameSelector,\n fieldErrorSelector: `${getFieldSlotSeletor(slotIds.error)} .${styles.error__message}`,\n fieldLabelSelector: getFieldSlotSeletor(slotIds.label),\n subStepAllSelector: getSubStepAllSelector(),\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, errorText, submissionAttempt, errorCount]);\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.root)}\n ref={__internalRootRef}\n {...analyticsAttributes}\n >\n <div className={clsx(__hideLabel && styles['visually-hidden'])}>\n {label && (\n <label className={styles.label} id={slotIds.label} htmlFor={generatedControlId}>\n {label}\n </label>\n )}\n <InfoLinkLabelContext.Provider value={slotIds.label}>\n {!__hideLabel && info && <span className={styles.info}>{info}</span>}\n </InfoLinkLabelContext.Provider>\n </div>\n\n {description && (\n <div className={styles.description} id={slotIds.description}>\n {description}\n </div>\n )}\n\n <div className={clsx(styles.controls, __hideLabel && styles['label-hidden'])}>\n <InternalGrid gridDefinition={gridDefinition} disableGutters={__disableGutters}>\n <FormFieldContext.Provider\n value={{\n controlId: generatedControlId,\n ...contextValuesWithoutControlId,\n }}\n >\n {children && <div className={styles.control}>{children}</div>}\n </FormFieldContext.Provider>\n\n {secondaryControl && (\n <FormFieldContext.Provider value={contextValuesWithoutControlId}>\n <div className={styles['secondary-control']}>{secondaryControl}</div>\n </FormFieldContext.Provider>\n )}\n </InternalGrid>\n </div>\n\n {(constraintText || errorText) && (\n <div className={styles.hints}>\n {errorText && (\n <FormFieldError id={slotIds.error} errorIconAriaLabel={i18nStrings?.errorIconAriaLabel}>\n {errorText}\n </FormFieldError>\n )}\n {constraintText && (\n <ConstraintText id={slotIds.constraint} hasError={!!errorText}>\n {constraintText}\n </ConstraintText>\n )}\n </div>\n )}\n </div>\n );\n}\n"]}
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/form-field/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACj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AC,UAAU,EAAE,QAAQ,EAAE,CAAC,CAAC,SAAS,IAC1D,cAAc,CACA,CAClB,CACG,CACP,CACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { FormFieldContext, useFormFieldContext } from '../internal/context/form-field-context';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\nimport InternalGrid from '../grid/internal';\nimport InternalIcon from '../icon/internal';\nimport { getAriaDescribedBy, getGridDefinition, getSlotIds } from './util';\n\nimport styles from './styles.css.js';\nimport { InternalFormFieldProps } from './interfaces';\nimport { joinStrings } from '../internal/utils/strings';\nimport { useInternalI18n } from '../i18n/context';\nimport { InfoLinkLabelContext } from '../internal/context/info-link-label-context';\n\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel, useFunnelStep, useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport {\n DATA_ATTR_FIELD_ERROR,\n DATA_ATTR_FIELD_LABEL,\n getFieldSlotSeletor,\n getNameFromSelector,\n getSubStepAllSelector,\n} from '../internal/analytics/selectors';\nimport LiveRegion from '../internal/components/live-region';\n\ninterface FormFieldErrorProps {\n id?: string;\n children?: React.ReactNode;\n errorIconAriaLabel?: string;\n}\n\nexport function FormFieldError({ id, children, errorIconAriaLabel }: FormFieldErrorProps) {\n const i18n = useInternalI18n('form-field');\n const contentRef = useRef<HTMLDivElement | null>(null);\n\n return (\n <>\n <div id={id} className={styles.error}>\n <div className={styles['error-icon-shake-wrapper']}>\n <div\n role=\"img\"\n aria-label={i18n('i18nStrings.errorIconAriaLabel', errorIconAriaLabel)}\n className={styles['error-icon-scale-wrapper']}\n >\n <InternalIcon name=\"status-warning\" size=\"small\" />\n </div>\n </div>\n <span className={styles.error__message} ref={contentRef}>\n {children}\n </span>\n </div>\n\n <LiveRegion assertive={true} source={[errorIconAriaLabel, contentRef]} />\n </>\n );\n}\n\nexport function ConstraintText({\n id,\n hasError,\n children,\n}: {\n id?: string;\n hasError: boolean;\n children: React.ReactNode;\n}) {\n return (\n <div id={id} className={clsx(styles.constraint, hasError && styles['constraint-has-error'])}>\n {children}\n </div>\n );\n}\n\nexport default function InternalFormField({\n controlId,\n stretch = false,\n label,\n info,\n i18nStrings,\n children,\n secondaryControl,\n description,\n constraintText,\n errorText,\n __hideLabel,\n __internalRootRef = null,\n __disableGutters = false,\n ...rest\n}: InternalFormFieldProps) {\n const baseProps = getBaseProps(rest);\n const isRefresh = useVisualRefresh();\n\n const instanceUniqueId = useUniqueId('formField');\n const generatedControlId = controlId || instanceUniqueId;\n const formFieldId = controlId || generatedControlId;\n\n const { funnelInteractionId, submissionAttempt, funnelState, errorCount } = useFunnel();\n const { stepNumber, stepNameSelector } = useFunnelStep();\n const { subStepSelector, subStepNameSelector } = useFunnelSubStep();\n\n const slotIds = getSlotIds(formFieldId, label, description, constraintText, errorText);\n\n const ariaDescribedBy = getAriaDescribedBy(slotIds);\n\n const gridDefinition = getGridDefinition(stretch, !!secondaryControl, isRefresh);\n\n const {\n ariaLabelledby: parentAriaLabelledby,\n ariaDescribedby: parentAriaDescribedby,\n invalid: parentInvalid,\n } = useFormFieldContext({});\n\n const contextValuesWithoutControlId = {\n ariaLabelledby: joinStrings(parentAriaLabelledby, slotIds.label) || undefined,\n ariaDescribedby: joinStrings(parentAriaDescribedby, ariaDescribedBy) || undefined,\n invalid: !!errorText || !!parentInvalid,\n };\n\n const analyticsAttributes = {\n [DATA_ATTR_FIELD_LABEL]: slotIds.label ? getFieldSlotSeletor(slotIds.label) : undefined,\n [DATA_ATTR_FIELD_ERROR]: slotIds.error ? getFieldSlotSeletor(slotIds.error) : undefined,\n };\n\n useEffect(() => {\n if (funnelInteractionId && errorText && funnelState.current !== 'complete') {\n const stepName = getNameFromSelector(stepNameSelector);\n const subStepName = getNameFromSelector(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 = (__internalRootRef?.current?.getBoundingClientRect()?.width ?? 0) > 0;\n\n if (errorIsVisible) {\n FunnelMetrics.funnelSubStepError({\n funnelInteractionId,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n stepNumber,\n stepName,\n stepNameSelector,\n fieldErrorSelector: `${getFieldSlotSeletor(slotIds.error)} .${styles.error__message}`,\n fieldLabelSelector: getFieldSlotSeletor(slotIds.label),\n subStepAllSelector: getSubStepAllSelector(),\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, errorText, submissionAttempt, errorCount]);\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.root)}\n ref={__internalRootRef}\n {...analyticsAttributes}\n >\n <div className={clsx(__hideLabel && styles['visually-hidden'])}>\n {label && (\n <label className={styles.label} id={slotIds.label} htmlFor={generatedControlId}>\n {label}\n </label>\n )}\n <InfoLinkLabelContext.Provider value={slotIds.label}>\n {!__hideLabel && info && <span className={styles.info}>{info}</span>}\n </InfoLinkLabelContext.Provider>\n </div>\n\n {description && (\n <div className={styles.description} id={slotIds.description}>\n {description}\n </div>\n )}\n\n <div className={clsx(styles.controls, __hideLabel && styles['label-hidden'])}>\n <InternalGrid gridDefinition={gridDefinition} disableGutters={__disableGutters}>\n <FormFieldContext.Provider\n value={{\n controlId: generatedControlId,\n ...contextValuesWithoutControlId,\n }}\n >\n {children && <div className={styles.control}>{children}</div>}\n </FormFieldContext.Provider>\n\n {secondaryControl && (\n <FormFieldContext.Provider value={contextValuesWithoutControlId}>\n <div className={styles['secondary-control']}>{secondaryControl}</div>\n </FormFieldContext.Provider>\n )}\n </InternalGrid>\n </div>\n\n {(constraintText || errorText) && (\n <div className={styles.hints}>\n {errorText && (\n <FormFieldError id={slotIds.error} errorIconAriaLabel={i18nStrings?.errorIconAriaLabel}>\n {errorText}\n </FormFieldError>\n )}\n {constraintText && (\n <ConstraintText id={slotIds.constraint} hasError={!!errorText}>\n {constraintText}\n </ConstraintText>\n )}\n </div>\n )}\n </div>\n );\n}\n"]}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"dropdown-content-wrapper": "awsui_dropdown-content-
|
|
5
|
-
"awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-
|
|
6
|
-
"refresh": "
|
|
7
|
-
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-
|
|
8
|
-
"root": "
|
|
9
|
-
"interior": "
|
|
10
|
-
"dropdown": "
|
|
11
|
-
"use-portal": "awsui_use-
|
|
12
|
-
"is-empty": "awsui_is-
|
|
13
|
-
"dropdown-drop-up": "awsui_dropdown-drop-
|
|
14
|
-
"with-limited-width": "awsui_with-limited-
|
|
15
|
-
"dropdown-drop-left": "awsui_dropdown-drop-
|
|
16
|
-
"dropdown-drop-right": "awsui_dropdown-drop-
|
|
17
|
-
"occupy-entire-width": "awsui_occupy-entire-
|
|
18
|
-
"stretch-beyond-trigger-width": "awsui_stretch-beyond-trigger-
|
|
19
|
-
"hide-block-border": "awsui_hide-block-
|
|
20
|
-
"open": "
|
|
21
|
-
"nowrap": "
|
|
22
|
-
"dropdown-content": "awsui_dropdown-
|
|
23
|
-
"stretch-trigger-height": "awsui_stretch-trigger-
|
|
4
|
+
"dropdown-content-wrapper": "awsui_dropdown-content-wrapper_qwoo0_3gt2b_99",
|
|
5
|
+
"awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_qwoo0_3gt2b_1",
|
|
6
|
+
"refresh": "awsui_refresh_qwoo0_3gt2b_120",
|
|
7
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_qwoo0_3gt2b_1",
|
|
8
|
+
"root": "awsui_root_qwoo0_3gt2b_149",
|
|
9
|
+
"interior": "awsui_interior_qwoo0_3gt2b_185",
|
|
10
|
+
"dropdown": "awsui_dropdown_qwoo0_3gt2b_99",
|
|
11
|
+
"use-portal": "awsui_use-portal_qwoo0_3gt2b_196",
|
|
12
|
+
"is-empty": "awsui_is-empty_qwoo0_3gt2b_248",
|
|
13
|
+
"dropdown-drop-up": "awsui_dropdown-drop-up_qwoo0_3gt2b_255",
|
|
14
|
+
"with-limited-width": "awsui_with-limited-width_qwoo0_3gt2b_259",
|
|
15
|
+
"dropdown-drop-left": "awsui_dropdown-drop-left_qwoo0_3gt2b_262",
|
|
16
|
+
"dropdown-drop-right": "awsui_dropdown-drop-right_qwoo0_3gt2b_268",
|
|
17
|
+
"occupy-entire-width": "awsui_occupy-entire-width_qwoo0_3gt2b_274",
|
|
18
|
+
"stretch-beyond-trigger-width": "awsui_stretch-beyond-trigger-width_qwoo0_3gt2b_277",
|
|
19
|
+
"hide-block-border": "awsui_hide-block-border_qwoo0_3gt2b_281",
|
|
20
|
+
"open": "awsui_open_qwoo0_3gt2b_287",
|
|
21
|
+
"nowrap": "awsui_nowrap_qwoo0_3gt2b_296",
|
|
22
|
+
"dropdown-content": "awsui_dropdown-content_qwoo0_3gt2b_99",
|
|
23
|
+
"stretch-trigger-height": "awsui_stretch-trigger-height_qwoo0_3gt2b_307"
|
|
24
24
|
};
|
|
25
25
|
|
|
@@ -96,10 +96,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
96
96
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
97
97
|
SPDX-License-Identifier: Apache-2.0
|
|
98
98
|
*/
|
|
99
|
-
.awsui_dropdown-content-
|
|
100
|
-
animation: awsui_awsui-motion-fade-in-
|
|
99
|
+
.awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9) {
|
|
100
|
+
animation: awsui_awsui-motion-fade-in-dropdown_qwoo0_3gt2b_1 var(--motion-duration-show-quick-aq3ump, 135ms) var(--motion-easing-show-quick-vc5zgd, ease-out);
|
|
101
101
|
}
|
|
102
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
102
|
+
@keyframes awsui_awsui-motion-fade-in-dropdown_qwoo0_3gt2b_1 {
|
|
103
103
|
from {
|
|
104
104
|
opacity: 0.4;
|
|
105
105
|
}
|
|
@@ -108,22 +108,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
@media (prefers-reduced-motion: reduce) {
|
|
111
|
-
.awsui_dropdown-content-
|
|
111
|
+
.awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9) {
|
|
112
112
|
animation: none;
|
|
113
113
|
transition: none;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
.awsui-motion-disabled .awsui_dropdown-content-
|
|
116
|
+
.awsui-motion-disabled .awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9) {
|
|
117
117
|
animation: none;
|
|
118
118
|
transition: none;
|
|
119
119
|
}
|
|
120
|
-
.awsui_dropdown-content-
|
|
120
|
+
.awsui_dropdown-content-wrapper_qwoo0_3gt2b_99.awsui_refresh_qwoo0_3gt2b_120:not(#\9) {
|
|
121
121
|
transform-origin: top;
|
|
122
|
-
animation-name: awsui_awsui-motion-fade-in-
|
|
122
|
+
animation-name: awsui_awsui-motion-fade-in-0_qwoo0_3gt2b_1;
|
|
123
123
|
animation-duration: var(--motion-duration-show-quick-aq3ump, 135ms);
|
|
124
124
|
animation-timing-function: var(--motion-easing-show-quick-vc5zgd, ease-out);
|
|
125
125
|
}
|
|
126
|
-
@keyframes awsui_awsui-motion-fade-in-
|
|
126
|
+
@keyframes awsui_awsui-motion-fade-in-0_qwoo0_3gt2b_1 {
|
|
127
127
|
from {
|
|
128
128
|
opacity: 0;
|
|
129
129
|
}
|
|
@@ -132,12 +132,12 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
134
|
@media (prefers-reduced-motion: reduce) {
|
|
135
|
-
.awsui_dropdown-content-
|
|
135
|
+
.awsui_dropdown-content-wrapper_qwoo0_3gt2b_99.awsui_refresh_qwoo0_3gt2b_120:not(#\9) {
|
|
136
136
|
animation: none;
|
|
137
137
|
transition: none;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
|
-
.awsui-motion-disabled .awsui_dropdown-content-
|
|
140
|
+
.awsui-motion-disabled .awsui_dropdown-content-wrapper_qwoo0_3gt2b_99.awsui_refresh_qwoo0_3gt2b_120:not(#\9), .awsui-mode-entering .awsui_dropdown-content-wrapper_qwoo0_3gt2b_99.awsui_refresh_qwoo0_3gt2b_120:not(#\9) {
|
|
141
141
|
animation: none;
|
|
142
142
|
transition: none;
|
|
143
143
|
}
|
|
@@ -146,7 +146,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
146
146
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
147
147
|
SPDX-License-Identifier: Apache-2.0
|
|
148
148
|
*/
|
|
149
|
-
.
|
|
149
|
+
.awsui_root_qwoo0_3gt2b_149:not(#\9) {
|
|
150
150
|
border-collapse: separate;
|
|
151
151
|
border-spacing: 0;
|
|
152
152
|
box-sizing: border-box;
|
|
@@ -183,11 +183,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
183
183
|
position: relative;
|
|
184
184
|
white-space: inherit;
|
|
185
185
|
}
|
|
186
|
-
.
|
|
186
|
+
.awsui_root_qwoo0_3gt2b_149.awsui_interior_qwoo0_3gt2b_185:not(#\9) {
|
|
187
187
|
position: static;
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
.
|
|
190
|
+
.awsui_dropdown_qwoo0_3gt2b_99:not(#\9) {
|
|
191
191
|
position: absolute;
|
|
192
192
|
display: none;
|
|
193
193
|
z-index: 2000;
|
|
@@ -195,24 +195,24 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
195
195
|
user-select: none;
|
|
196
196
|
transform-origin: top;
|
|
197
197
|
}
|
|
198
|
-
.
|
|
198
|
+
.awsui_dropdown_qwoo0_3gt2b_99.awsui_use-portal_qwoo0_3gt2b_196:not(#\9) {
|
|
199
199
|
z-index: 7000;
|
|
200
200
|
}
|
|
201
|
-
.
|
|
201
|
+
.awsui_dropdown_qwoo0_3gt2b_99:not(#\9):not(.awsui_interior_qwoo0_3gt2b_185) {
|
|
202
202
|
transform: translateY(0px);
|
|
203
203
|
transition: transform var(--motion-duration-show-quick-aq3ump, 135ms);
|
|
204
204
|
}
|
|
205
205
|
@media (prefers-reduced-motion: reduce) {
|
|
206
|
-
.
|
|
206
|
+
.awsui_dropdown_qwoo0_3gt2b_99:not(#\9):not(.awsui_interior_qwoo0_3gt2b_185) {
|
|
207
207
|
animation: none;
|
|
208
208
|
transition: none;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
.awsui-motion-disabled .
|
|
211
|
+
.awsui-motion-disabled .awsui_dropdown_qwoo0_3gt2b_99:not(#\9):not(.awsui_interior_qwoo0_3gt2b_185), .awsui-mode-entering .awsui_dropdown_qwoo0_3gt2b_99:not(#\9):not(.awsui_interior_qwoo0_3gt2b_185) {
|
|
212
212
|
animation: none;
|
|
213
213
|
transition: none;
|
|
214
214
|
}
|
|
215
|
-
.awsui_dropdown-content-
|
|
215
|
+
.awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9) {
|
|
216
216
|
position: relative;
|
|
217
217
|
background-color: var(--color-background-dropdown-item-default-be16w5, #ffffff);
|
|
218
218
|
outline: none;
|
|
@@ -224,7 +224,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
224
224
|
border-block: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-container-top-736buh, transparent);
|
|
225
225
|
box-sizing: border-box;
|
|
226
226
|
}
|
|
227
|
-
.awsui_dropdown-content-
|
|
227
|
+
.awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9)::after {
|
|
228
228
|
content: "";
|
|
229
229
|
position: absolute;
|
|
230
230
|
z-index: 1;
|
|
@@ -242,70 +242,70 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
242
242
|
pointer-events: none;
|
|
243
243
|
}
|
|
244
244
|
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
|
245
|
-
.awsui_dropdown-content-
|
|
245
|
+
.awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9) {
|
|
246
246
|
border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-container-top-736buh, transparent);
|
|
247
247
|
border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-container-top-736buh, transparent);
|
|
248
248
|
}
|
|
249
249
|
}
|
|
250
|
-
.awsui_dropdown-content-
|
|
250
|
+
.awsui_dropdown-content-wrapper_qwoo0_3gt2b_99.awsui_is-empty_qwoo0_3gt2b_248:not(#\9)::after {
|
|
251
251
|
display: none;
|
|
252
252
|
}
|
|
253
|
-
.
|
|
253
|
+
.awsui_dropdown_qwoo0_3gt2b_99 > .awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9) {
|
|
254
254
|
border-block-start: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-container-top-736buh, transparent);
|
|
255
255
|
border-block-end: var(--border-divider-list-width-27y3k5, 1px) solid var(--color-border-dropdown-group-yakmix, #b6bec9);
|
|
256
256
|
}
|
|
257
|
-
.awsui_dropdown-drop-
|
|
257
|
+
.awsui_dropdown-drop-up_qwoo0_3gt2b_255 > .awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9) {
|
|
258
258
|
transform-origin: bottom;
|
|
259
259
|
box-shadow: var(--shadow-dropup-xqkiza, 0px 4px 20px 1px rgba(0, 7, 22, 0.1));
|
|
260
260
|
}
|
|
261
|
-
.awsui_dropdown-drop-
|
|
261
|
+
.awsui_dropdown-drop-up_qwoo0_3gt2b_255.awsui_with-limited-width_qwoo0_3gt2b_259 > .awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9) {
|
|
262
262
|
border-block-start: none;
|
|
263
263
|
}
|
|
264
|
-
.awsui_dropdown-drop-
|
|
264
|
+
.awsui_dropdown-drop-left_qwoo0_3gt2b_262:not(#\9) {
|
|
265
265
|
inset-inline-end: 0;
|
|
266
266
|
}
|
|
267
|
-
.awsui_dropdown-drop-
|
|
267
|
+
.awsui_dropdown-drop-left_qwoo0_3gt2b_262:not(#\9):dir(rtl) {
|
|
268
268
|
inset-inline-end: unset;
|
|
269
269
|
}
|
|
270
|
-
.awsui_dropdown-drop-
|
|
270
|
+
.awsui_dropdown-drop-right_qwoo0_3gt2b_268:not(#\9) {
|
|
271
271
|
inset-inline-start: 0;
|
|
272
272
|
}
|
|
273
|
-
.awsui_dropdown-drop-
|
|
273
|
+
.awsui_dropdown-drop-right_qwoo0_3gt2b_268:not(#\9):dir(rtl) {
|
|
274
274
|
inset-inline-start: unset;
|
|
275
275
|
}
|
|
276
|
-
.
|
|
276
|
+
.awsui_dropdown_qwoo0_3gt2b_99.awsui_occupy-entire-width_qwoo0_3gt2b_274:not(#\9) {
|
|
277
277
|
min-inline-size: 100%;
|
|
278
278
|
}
|
|
279
|
-
.
|
|
279
|
+
.awsui_dropdown_qwoo0_3gt2b_99.awsui_stretch-beyond-trigger-width_qwoo0_3gt2b_277:not(#\9) {
|
|
280
280
|
inline-size: max-content;
|
|
281
|
-
max-inline-size: var(--awsui-dropdown-default-max-width-
|
|
281
|
+
max-inline-size: var(--awsui-dropdown-default-max-width-lgosor, 100%);
|
|
282
282
|
}
|
|
283
|
-
.
|
|
283
|
+
.awsui_dropdown_qwoo0_3gt2b_99.awsui_hide-block-border_qwoo0_3gt2b_281 > .awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9) {
|
|
284
284
|
border-block: none;
|
|
285
285
|
}
|
|
286
|
-
.
|
|
286
|
+
.awsui_dropdown_qwoo0_3gt2b_99.awsui_interior_qwoo0_3gt2b_185 > .awsui_dropdown-content-wrapper_qwoo0_3gt2b_99:not(#\9) {
|
|
287
287
|
margin-block-start: -1px;
|
|
288
288
|
}
|
|
289
|
-
.
|
|
289
|
+
.awsui_dropdown_qwoo0_3gt2b_99.awsui_open_qwoo0_3gt2b_287:not(#\9) {
|
|
290
290
|
display: block;
|
|
291
291
|
}
|
|
292
|
-
.
|
|
292
|
+
.awsui_dropdown_qwoo0_3gt2b_99.awsui_open_qwoo0_3gt2b_287:not(#\9):not(.awsui_interior_qwoo0_3gt2b_185).awsui_refresh_qwoo0_3gt2b_120[data-animating=true] {
|
|
293
293
|
transform: translateY(4px);
|
|
294
294
|
}
|
|
295
|
-
.
|
|
295
|
+
.awsui_dropdown_qwoo0_3gt2b_99.awsui_open_qwoo0_3gt2b_287:not(#\9):not(.awsui_interior_qwoo0_3gt2b_185).awsui_refresh_qwoo0_3gt2b_120[data-animating=true].awsui_dropdown-drop-up_qwoo0_3gt2b_255 {
|
|
296
296
|
transform: translateY(-4px);
|
|
297
297
|
}
|
|
298
|
-
.
|
|
298
|
+
.awsui_dropdown_qwoo0_3gt2b_99.awsui_open_qwoo0_3gt2b_287.awsui_nowrap_qwoo0_3gt2b_296:not(#\9) {
|
|
299
299
|
white-space: nowrap;
|
|
300
300
|
overflow: scroll;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
.awsui_dropdown-
|
|
303
|
+
.awsui_dropdown-content_qwoo0_3gt2b_99:not(#\9) {
|
|
304
304
|
display: flex;
|
|
305
305
|
flex-direction: column;
|
|
306
306
|
inline-size: 100%;
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
.awsui_stretch-trigger-
|
|
309
|
+
.awsui_stretch-trigger-height_qwoo0_3gt2b_307:not(#\9) {
|
|
310
310
|
block-size: 100%;
|
|
311
311
|
}
|
|
@@ -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_3gt2b_99",
|
|
6
|
+
"awsui-motion-fade-in-dropdown": "awsui_awsui-motion-fade-in-dropdown_qwoo0_3gt2b_1",
|
|
7
|
+
"refresh": "awsui_refresh_qwoo0_3gt2b_120",
|
|
8
|
+
"awsui-motion-fade-in-0": "awsui_awsui-motion-fade-in-0_qwoo0_3gt2b_1",
|
|
9
|
+
"root": "awsui_root_qwoo0_3gt2b_149",
|
|
10
|
+
"interior": "awsui_interior_qwoo0_3gt2b_185",
|
|
11
|
+
"dropdown": "awsui_dropdown_qwoo0_3gt2b_99",
|
|
12
|
+
"use-portal": "awsui_use-portal_qwoo0_3gt2b_196",
|
|
13
|
+
"is-empty": "awsui_is-empty_qwoo0_3gt2b_248",
|
|
14
|
+
"dropdown-drop-up": "awsui_dropdown-drop-up_qwoo0_3gt2b_255",
|
|
15
|
+
"with-limited-width": "awsui_with-limited-width_qwoo0_3gt2b_259",
|
|
16
|
+
"dropdown-drop-left": "awsui_dropdown-drop-left_qwoo0_3gt2b_262",
|
|
17
|
+
"dropdown-drop-right": "awsui_dropdown-drop-right_qwoo0_3gt2b_268",
|
|
18
|
+
"occupy-entire-width": "awsui_occupy-entire-width_qwoo0_3gt2b_274",
|
|
19
|
+
"stretch-beyond-trigger-width": "awsui_stretch-beyond-trigger-width_qwoo0_3gt2b_277",
|
|
20
|
+
"hide-block-border": "awsui_hide-block-border_qwoo0_3gt2b_281",
|
|
21
|
+
"open": "awsui_open_qwoo0_3gt2b_287",
|
|
22
|
+
"nowrap": "awsui_nowrap_qwoo0_3gt2b_296",
|
|
23
|
+
"dropdown-content": "awsui_dropdown-content_qwoo0_3gt2b_99",
|
|
24
|
+
"stretch-trigger-height": "awsui_stretch-trigger-height_qwoo0_3gt2b_307"
|
|
25
25
|
};
|
|
26
26
|
|
package/internal/environment.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/generated/custom-css-properties/index.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6ClD,CAAC;AACF,eAAe,sBAAsB,CAAC"}
|