@cloudscape-design/components 3.0.1000 → 3.0.1002
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/styles.scoped.css +2 -4
- package/anchor-navigation/styles.scoped.css +1 -2
- package/annotation-context/annotation/styles.scoped.css +1 -2
- package/app-layout/visual-refresh/styles.scoped.css +2 -4
- package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +17 -17
- package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +35 -36
- package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +17 -17
- package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +1 -2
- package/app-layout/visual-refresh-toolbar/toolbar/index.js +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/styles.scoped.css +1 -2
- package/attribute-editor/styles.scoped.css +1 -2
- package/badge/styles.scoped.css +1 -2
- package/breadcrumb-group/styles.scoped.css +2 -4
- package/button/styles.scoped.css +1 -2
- package/button-dropdown/mobile-expandable-group/styles.scoped.css +1 -2
- package/button-group/styles.scoped.css +1 -2
- package/calendar/styles.scoped.css +1 -2
- package/cards/styles.scoped.css +1 -2
- package/checkbox/styles.scoped.css +1 -2
- package/code-editor/styles.scoped.css +1 -2
- package/collection-preferences/content-display/styles.scoped.css +1 -2
- package/collection-preferences/styles.scoped.css +1 -2
- package/column-layout/styles.scoped.css +1 -2
- package/container/styles.scoped.css +1 -2
- package/date-picker/styles.scoped.css +1 -2
- package/date-range-picker/styles.scoped.css +1 -2
- package/drawer/styles.scoped.css +1 -2
- package/expandable-section/styles.scoped.css +1 -2
- package/file-token-group/styles.scoped.css +1 -2
- package/flashbar/styles.scoped.css +1 -2
- package/form/styles.scoped.css +1 -2
- package/form-field/styles.scoped.css +1 -2
- package/grid/styles.scoped.css +1 -2
- package/header/styles.scoped.css +1 -2
- package/help-panel/styles.scoped.css +1 -2
- package/input/styles.scoped.css +1 -2
- package/internal/base-component/styles.scoped.css +3 -0
- package/internal/components/button-trigger/styles.scoped.css +1 -2
- package/internal/components/chart-filter/styles.scoped.css +1 -2
- package/internal/components/chart-legend/styles.scoped.css +1 -2
- package/internal/components/chart-popover/styles.scoped.css +1 -2
- package/internal/components/chart-series-details/styles.scoped.css +3 -6
- package/internal/components/chart-series-marker/styles.scoped.css +1 -2
- package/internal/components/chart-wrapper/styles.scoped.css +1 -2
- package/internal/components/dropdown/styles.scoped.css +1 -2
- package/internal/components/dropdown-footer/styles.scoped.css +1 -2
- package/internal/components/dropdown-status/styles.scoped.css +1 -2
- package/internal/components/menu-dropdown/styles.scoped.css +1 -2
- package/internal/components/option/styles.scoped.css +1 -2
- package/internal/components/options-list/styles.scoped.css +1 -2
- package/internal/components/token-list/styles.scoped.css +1 -2
- package/internal/environment.d.ts +1 -0
- package/internal/environment.js +2 -1
- package/internal/environment.json +2 -1
- package/internal/hooks/use-base-component/index.d.ts.map +1 -1
- package/internal/hooks/use-base-component/index.js +2 -0
- package/internal/hooks/use-base-component/index.js.map +1 -1
- package/internal/hooks/use-base-component/styles-check.d.ts +3 -0
- package/internal/hooks/use-base-component/styles-check.d.ts.map +1 -0
- package/internal/hooks/use-base-component/styles-check.js +46 -0
- package/internal/hooks/use-base-component/styles-check.js.map +1 -0
- package/internal/manifest.json +1 -1
- package/internal/metrics.d.ts.map +1 -1
- package/internal/metrics.js +2 -2
- package/internal/metrics.js.map +1 -1
- package/key-value-pairs/styles.scoped.css +2 -4
- package/link/styles.scoped.css +1 -2
- package/modal/styles.scoped.css +2 -4
- package/multiselect/styles.scoped.css +2 -4
- package/package.json +1 -1
- package/pagination/styles.scoped.css +1 -2
- package/popover/styles.scoped.css +3 -6
- package/progress-bar/styles.scoped.css +1 -2
- package/prompt-input/internal.d.ts.map +1 -1
- package/prompt-input/internal.js +3 -3
- package/prompt-input/internal.js.map +1 -1
- package/prompt-input/styles.scoped.css +4 -8
- package/property-filter/filtering-token/styles.scoped.css +1 -2
- package/property-filter/styles.scoped.css +2 -4
- package/radio-group/styles.scoped.css +1 -2
- package/segmented-control/interfaces.d.ts +2 -1
- package/segmented-control/interfaces.d.ts.map +1 -1
- package/segmented-control/interfaces.js.map +1 -1
- package/segmented-control/styles.scoped.css +1 -2
- package/select/styles.scoped.css +1 -2
- package/side-navigation/styles.scoped.css +1 -2
- package/slider/styles.scoped.css +1 -2
- package/split-panel/styles.scoped.css +1 -2
- package/steps/styles.scoped.css +1 -2
- package/table/expandable-rows/styles.scoped.css +1 -2
- package/table/resizer/styles.scoped.css +1 -2
- package/tabs/styles.scoped.css +1 -2
- package/text-content/styles.scoped.css +1 -2
- package/text-filter/styles.scoped.css +1 -2
- package/textarea/styles.scoped.css +1 -2
- package/tiles/styles.scoped.css +2 -4
- package/toggle/styles.scoped.css +1 -2
- package/token-group/styles.scoped.css +1 -2
- package/top-navigation/1.0-beta/styles.scoped.css +1 -2
- package/top-navigation/styles.scoped.css +3 -6
- package/tutorial-panel/components/tutorial-detail-view/styles.scoped.css +1 -2
- package/tutorial-panel/components/tutorial-list/styles.scoped.css +3 -6
- package/tutorial-panel/styles.scoped.css +1 -2
- package/wizard/styles.scoped.css +1 -2
package/prompt-input/internal.js
CHANGED
|
@@ -39,9 +39,9 @@ const InternalPromptInput = React.forwardRef((_a, ref) => {
|
|
|
39
39
|
}), [textareaRef]);
|
|
40
40
|
const handleKeyDown = (event) => {
|
|
41
41
|
fireKeyboardEvent(onKeyDown, event);
|
|
42
|
-
if (event.key === 'Enter' && !event.shiftKey) {
|
|
43
|
-
if (
|
|
44
|
-
event.
|
|
42
|
+
if (event.key === 'Enter' && !event.shiftKey && !event.nativeEvent.isComposing) {
|
|
43
|
+
if (event.currentTarget.form && !event.isDefaultPrevented()) {
|
|
44
|
+
event.currentTarget.form.requestSubmit();
|
|
45
45
|
}
|
|
46
46
|
event.preventDefault();
|
|
47
47
|
fireNonCancelableEvent(onAction, { value });
|
|
@@ -1 +1 @@
|
|
|
1
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AM,CACtB,CACP,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { Ref, useCallback, useEffect, useImperativeHandle, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useDensityMode } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalButton from '../button/internal';\nimport { convertAutoComplete } from '../input/utils';\nimport { getBaseProps } from '../internal/base-component';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireKeyboardEvent, fireNonCancelableEvent } from '../internal/events';\nimport * as tokens from '../internal/generated/styles/tokens';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { SomeRequired } from '../internal/types';\nimport { PromptInputProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\n\ninterface InternalPromptInputProps\n extends SomeRequired<PromptInputProps, 'maxRows' | 'minRows'>,\n InternalBaseComponentProps {}\n\nconst InternalPromptInput = React.forwardRef(\n (\n {\n value,\n actionButtonAriaLabel,\n actionButtonIconName,\n actionButtonIconUrl,\n actionButtonIconSvg,\n actionButtonIconAlt,\n ariaLabel,\n autoComplete,\n autoFocus,\n disableActionButton,\n disableBrowserAutocorrect,\n disabled,\n maxRows,\n minRows,\n name,\n onAction,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n onKeyUp,\n placeholder,\n readOnly,\n spellcheck,\n secondaryActions,\n secondaryContent,\n disableSecondaryActionsPaddings,\n disableSecondaryContentPaddings,\n __internalRootRef = null,\n ...rest\n }: InternalPromptInputProps,\n ref: Ref<PromptInputProps.Ref>\n ) => {\n const { ariaLabelledby, ariaDescribedby, controlId, invalid, warning } = useFormFieldContext(rest);\n\n const baseProps = getBaseProps(rest);\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n\n const isRefresh = useVisualRefresh();\n const isCompactMode = useDensityMode(textareaRef) === 'compact';\n\n const PADDING = isRefresh ? tokens.spaceXxs : tokens.spaceXxxs;\n const LINE_HEIGHT = tokens.lineHeightBodyM;\n const DEFAULT_MAX_ROWS = 3;\n\n useImperativeHandle(\n ref,\n () => ({\n focus(...args: Parameters<HTMLElement['focus']>) {\n textareaRef.current?.focus(...args);\n },\n select() {\n textareaRef.current?.select();\n },\n setSelectionRange(...args: Parameters<HTMLTextAreaElement['setSelectionRange']>) {\n textareaRef.current?.setSelectionRange(...args);\n },\n }),\n [textareaRef]\n );\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLTextAreaElement>) => {\n fireKeyboardEvent(onKeyDown, event);\n\n if (event.key === 'Enter' && !event.shiftKey) {\n if ('form' in event.target && event.target.form !== null && !event.isDefaultPrevented()) {\n (event.target.form as HTMLFormElement).requestSubmit();\n }\n\n event.preventDefault();\n fireNonCancelableEvent(onAction, { value });\n }\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {\n fireNonCancelableEvent(onChange, { value: event.target.value });\n adjustTextareaHeight();\n };\n\n const hasActionButton = actionButtonIconName || actionButtonIconSvg || actionButtonIconUrl;\n\n const adjustTextareaHeight = useCallback(() => {\n if (textareaRef.current) {\n // this is required so the scrollHeight becomes dynamic, otherwise it will be locked at the highest value for the size it reached e.g. 500px\n textareaRef.current.style.height = 'auto';\n\n const minTextareaHeight = `calc(${LINE_HEIGHT} + ${tokens.spaceScaledXxs} * 2)`; // the min height of Textarea with 1 row\n\n if (maxRows === -1) {\n const scrollHeight = `calc(${textareaRef.current.scrollHeight}px)`;\n textareaRef.current.style.height = `max(${scrollHeight}, ${minTextareaHeight})`;\n } else {\n const maxRowsHeight = `calc(${maxRows <= 0 ? DEFAULT_MAX_ROWS : maxRows} * (${LINE_HEIGHT} + ${PADDING} / 2) + ${PADDING})`;\n const scrollHeight = `calc(${textareaRef.current.scrollHeight}px)`;\n textareaRef.current.style.height = `min(max(${scrollHeight}, ${minTextareaHeight}), ${maxRowsHeight})`;\n }\n }\n }, [maxRows, LINE_HEIGHT, PADDING]);\n\n useEffect(() => {\n const handleResize = () => {\n adjustTextareaHeight();\n };\n\n window.addEventListener('resize', handleResize);\n\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n }, [adjustTextareaHeight]);\n\n useEffect(() => {\n adjustTextareaHeight();\n }, [value, adjustTextareaHeight, maxRows, isCompactMode]);\n\n const attributes: React.TextareaHTMLAttributes<HTMLTextAreaElement> = {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n 'aria-invalid': invalid ? 'true' : undefined,\n name,\n placeholder,\n autoFocus,\n className: clsx(styles.textarea, testutilStyles.textarea, {\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n }),\n autoComplete: convertAutoComplete(autoComplete),\n spellCheck: spellcheck,\n disabled,\n readOnly: readOnly ? true : undefined,\n rows: minRows,\n onKeyDown: handleKeyDown,\n onKeyUp: onKeyUp && (event => fireKeyboardEvent(onKeyUp, event)),\n // We set a default value on the component in order to force it into the controlled mode.\n value: value || '',\n onChange: handleChange,\n onBlur: onBlur && (() => fireNonCancelableEvent(onBlur)),\n onFocus: onFocus && (() => fireNonCancelableEvent(onFocus)),\n };\n\n if (disableBrowserAutocorrect) {\n attributes.autoCorrect = 'off';\n attributes.autoCapitalize = 'off';\n }\n\n const action = (\n <div className={styles.button}>\n <InternalButton\n className={clsx(styles['action-button'], testutilStyles['action-button'])}\n ariaLabel={actionButtonAriaLabel}\n disabled={disabled || readOnly || disableActionButton}\n __focusable={readOnly}\n iconName={actionButtonIconName}\n iconUrl={actionButtonIconUrl}\n iconSvg={actionButtonIconSvg}\n iconAlt={actionButtonIconAlt}\n onClick={() => fireNonCancelableEvent(onAction, { value })}\n variant=\"icon\"\n />\n </div>\n );\n\n return (\n <div\n {...baseProps}\n aria-label={ariaLabel}\n className={clsx(styles.root, testutilStyles.root, baseProps.className, {\n [styles['textarea-readonly']]: readOnly,\n [styles['textarea-invalid']]: invalid,\n [styles['textarea-warning']]: warning && !invalid,\n [styles.disabled]: disabled,\n })}\n ref={__internalRootRef}\n role=\"region\"\n >\n {secondaryContent && (\n <div\n className={clsx(styles['secondary-content'], testutilStyles['secondary-content'], {\n [styles['with-paddings']]: !disableSecondaryContentPaddings,\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n })}\n >\n {secondaryContent}\n </div>\n )}\n <div className={styles['textarea-wrapper']}>\n <textarea ref={textareaRef} id={controlId} {...attributes} />\n {hasActionButton && !secondaryActions && action}\n </div>\n {secondaryActions && (\n <div\n className={clsx(styles['secondary-actions'], testutilStyles['secondary-actions'], {\n [styles['with-paddings']]: !disableSecondaryActionsPaddings,\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n })}\n >\n {secondaryActions}\n <div className={styles.buffer} onClick={() => textareaRef.current?.focus()} />\n {hasActionButton && action}\n </div>\n )}\n </div>\n );\n }\n);\n\nexport default InternalPromptInput;\n"]}
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/prompt-input/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAO,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACxF,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,cAAc,EAAE,MAAM,+CAA+C,CAAC;AAE/E,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAC/E,OAAO,KAAK,MAAM,MAA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SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC;YACxC,gDAAU,GAAG,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,IAAM,UAAU,EAAI;YAC5D,eAAe,IAAI,CAAC,gBAAgB,IAAI,MAAM,CAC3C;QACL,gBAAgB,IAAI,CACnB,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,cAAc,CAAC,mBAAmB,CAAC,EAAE;gBAChF,CAAC,MAAM,CAAC,eAAe,CAAC,CAAC,EAAE,CAAC,+BAA+B;gBAC3D,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO;gBACzB,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAAO;aAC1B,CAAC;YAED,gBAAgB;YACjB,6BAAK,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,WAAW,CAAC,OAAO,0CAAE,KAAK,EAAE,CAAA,EAAA,GAAI;YAC7E,eAAe,IAAI,MAAM,CACtB,CACP,CACG,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,mBAAmB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { Ref, useCallback, useEffect, useImperativeHandle, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { useDensityMode } from '@cloudscape-design/component-toolkit/internal';\n\nimport InternalButton from '../button/internal';\nimport { convertAutoComplete } from '../input/utils';\nimport { getBaseProps } from '../internal/base-component';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireKeyboardEvent, fireNonCancelableEvent } from '../internal/events';\nimport * as tokens from '../internal/generated/styles/tokens';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { SomeRequired } from '../internal/types';\nimport { PromptInputProps } from './interfaces';\n\nimport styles from './styles.css.js';\nimport testutilStyles from './test-classes/styles.css.js';\n\ninterface InternalPromptInputProps\n extends SomeRequired<PromptInputProps, 'maxRows' | 'minRows'>,\n InternalBaseComponentProps {}\n\nconst InternalPromptInput = React.forwardRef(\n (\n {\n value,\n actionButtonAriaLabel,\n actionButtonIconName,\n actionButtonIconUrl,\n actionButtonIconSvg,\n actionButtonIconAlt,\n ariaLabel,\n autoComplete,\n autoFocus,\n disableActionButton,\n disableBrowserAutocorrect,\n disabled,\n maxRows,\n minRows,\n name,\n onAction,\n onBlur,\n onChange,\n onFocus,\n onKeyDown,\n onKeyUp,\n placeholder,\n readOnly,\n spellcheck,\n secondaryActions,\n secondaryContent,\n disableSecondaryActionsPaddings,\n disableSecondaryContentPaddings,\n __internalRootRef = null,\n ...rest\n }: InternalPromptInputProps,\n ref: Ref<PromptInputProps.Ref>\n ) => {\n const { ariaLabelledby, ariaDescribedby, controlId, invalid, warning } = useFormFieldContext(rest);\n\n const baseProps = getBaseProps(rest);\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n\n const isRefresh = useVisualRefresh();\n const isCompactMode = useDensityMode(textareaRef) === 'compact';\n\n const PADDING = isRefresh ? tokens.spaceXxs : tokens.spaceXxxs;\n const LINE_HEIGHT = tokens.lineHeightBodyM;\n const DEFAULT_MAX_ROWS = 3;\n\n useImperativeHandle(\n ref,\n () => ({\n focus(...args: Parameters<HTMLElement['focus']>) {\n textareaRef.current?.focus(...args);\n },\n select() {\n textareaRef.current?.select();\n },\n setSelectionRange(...args: Parameters<HTMLTextAreaElement['setSelectionRange']>) {\n textareaRef.current?.setSelectionRange(...args);\n },\n }),\n [textareaRef]\n );\n\n const handleKeyDown = (event: React.KeyboardEvent<HTMLTextAreaElement>) => {\n fireKeyboardEvent(onKeyDown, event);\n\n if (event.key === 'Enter' && !event.shiftKey && !event.nativeEvent.isComposing) {\n if (event.currentTarget.form && !event.isDefaultPrevented()) {\n event.currentTarget.form.requestSubmit();\n }\n event.preventDefault();\n fireNonCancelableEvent(onAction, { value });\n }\n };\n\n const handleChange = (event: React.ChangeEvent<HTMLTextAreaElement>) => {\n fireNonCancelableEvent(onChange, { value: event.target.value });\n adjustTextareaHeight();\n };\n\n const hasActionButton = actionButtonIconName || actionButtonIconSvg || actionButtonIconUrl;\n\n const adjustTextareaHeight = useCallback(() => {\n if (textareaRef.current) {\n // this is required so the scrollHeight becomes dynamic, otherwise it will be locked at the highest value for the size it reached e.g. 500px\n textareaRef.current.style.height = 'auto';\n\n const minTextareaHeight = `calc(${LINE_HEIGHT} + ${tokens.spaceScaledXxs} * 2)`; // the min height of Textarea with 1 row\n\n if (maxRows === -1) {\n const scrollHeight = `calc(${textareaRef.current.scrollHeight}px)`;\n textareaRef.current.style.height = `max(${scrollHeight}, ${minTextareaHeight})`;\n } else {\n const maxRowsHeight = `calc(${maxRows <= 0 ? DEFAULT_MAX_ROWS : maxRows} * (${LINE_HEIGHT} + ${PADDING} / 2) + ${PADDING})`;\n const scrollHeight = `calc(${textareaRef.current.scrollHeight}px)`;\n textareaRef.current.style.height = `min(max(${scrollHeight}, ${minTextareaHeight}), ${maxRowsHeight})`;\n }\n }\n }, [maxRows, LINE_HEIGHT, PADDING]);\n\n useEffect(() => {\n const handleResize = () => {\n adjustTextareaHeight();\n };\n\n window.addEventListener('resize', handleResize);\n\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n }, [adjustTextareaHeight]);\n\n useEffect(() => {\n adjustTextareaHeight();\n }, [value, adjustTextareaHeight, maxRows, isCompactMode]);\n\n const attributes: React.TextareaHTMLAttributes<HTMLTextAreaElement> = {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n 'aria-invalid': invalid ? 'true' : undefined,\n name,\n placeholder,\n autoFocus,\n className: clsx(styles.textarea, testutilStyles.textarea, {\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n }),\n autoComplete: convertAutoComplete(autoComplete),\n spellCheck: spellcheck,\n disabled,\n readOnly: readOnly ? true : undefined,\n rows: minRows,\n onKeyDown: handleKeyDown,\n onKeyUp: onKeyUp && (event => fireKeyboardEvent(onKeyUp, event)),\n // We set a default value on the component in order to force it into the controlled mode.\n value: value || '',\n onChange: handleChange,\n onBlur: onBlur && (() => fireNonCancelableEvent(onBlur)),\n onFocus: onFocus && (() => fireNonCancelableEvent(onFocus)),\n };\n\n if (disableBrowserAutocorrect) {\n attributes.autoCorrect = 'off';\n attributes.autoCapitalize = 'off';\n }\n\n const action = (\n <div className={styles.button}>\n <InternalButton\n className={clsx(styles['action-button'], testutilStyles['action-button'])}\n ariaLabel={actionButtonAriaLabel}\n disabled={disabled || readOnly || disableActionButton}\n __focusable={readOnly}\n iconName={actionButtonIconName}\n iconUrl={actionButtonIconUrl}\n iconSvg={actionButtonIconSvg}\n iconAlt={actionButtonIconAlt}\n onClick={() => fireNonCancelableEvent(onAction, { value })}\n variant=\"icon\"\n />\n </div>\n );\n\n return (\n <div\n {...baseProps}\n aria-label={ariaLabel}\n className={clsx(styles.root, testutilStyles.root, baseProps.className, {\n [styles['textarea-readonly']]: readOnly,\n [styles['textarea-invalid']]: invalid,\n [styles['textarea-warning']]: warning && !invalid,\n [styles.disabled]: disabled,\n })}\n ref={__internalRootRef}\n role=\"region\"\n >\n {secondaryContent && (\n <div\n className={clsx(styles['secondary-content'], testutilStyles['secondary-content'], {\n [styles['with-paddings']]: !disableSecondaryContentPaddings,\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n })}\n >\n {secondaryContent}\n </div>\n )}\n <div className={styles['textarea-wrapper']}>\n <textarea ref={textareaRef} id={controlId} {...attributes} />\n {hasActionButton && !secondaryActions && action}\n </div>\n {secondaryActions && (\n <div\n className={clsx(styles['secondary-actions'], testutilStyles['secondary-actions'], {\n [styles['with-paddings']]: !disableSecondaryActionsPaddings,\n [styles.invalid]: invalid,\n [styles.warning]: warning,\n })}\n >\n {secondaryActions}\n <div className={styles.buffer} onClick={() => textareaRef.current?.focus()} />\n {hasActionButton && action}\n </div>\n )}\n </div>\n );\n }\n);\n\nexport default InternalPromptInput;\n"]}
|
|
@@ -155,8 +155,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
155
155
|
font-style: normal;
|
|
156
156
|
font-variant: normal;
|
|
157
157
|
font-stretch: normal;
|
|
158
|
-
|
|
159
|
-
hyphens: none;
|
|
158
|
+
hyphens: none;
|
|
160
159
|
letter-spacing: normal;
|
|
161
160
|
list-style: disc outside none;
|
|
162
161
|
tab-size: 8;
|
|
@@ -269,8 +268,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
269
268
|
font-style: normal;
|
|
270
269
|
font-variant: normal;
|
|
271
270
|
font-stretch: normal;
|
|
272
|
-
|
|
273
|
-
hyphens: none;
|
|
271
|
+
hyphens: none;
|
|
274
272
|
letter-spacing: normal;
|
|
275
273
|
list-style: disc outside none;
|
|
276
274
|
tab-size: 8;
|
|
@@ -387,8 +385,7 @@ body[data-awsui-focus-visible=true] .awsui_button_55fkh_25oqf_346 > .awsui_actio
|
|
|
387
385
|
font-style: normal;
|
|
388
386
|
font-variant: normal;
|
|
389
387
|
font-stretch: normal;
|
|
390
|
-
|
|
391
|
-
hyphens: none;
|
|
388
|
+
hyphens: none;
|
|
392
389
|
letter-spacing: normal;
|
|
393
390
|
list-style: disc outside none;
|
|
394
391
|
tab-size: 8;
|
|
@@ -433,8 +430,7 @@ body[data-awsui-focus-visible=true] .awsui_button_55fkh_25oqf_346 > .awsui_actio
|
|
|
433
430
|
font-style: normal;
|
|
434
431
|
font-variant: normal;
|
|
435
432
|
font-stretch: normal;
|
|
436
|
-
|
|
437
|
-
hyphens: none;
|
|
433
|
+
hyphens: none;
|
|
438
434
|
letter-spacing: normal;
|
|
439
435
|
list-style: disc outside none;
|
|
440
436
|
tab-size: 8;
|
|
@@ -163,8 +163,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
163
163
|
font-style: normal;
|
|
164
164
|
font-variant: normal;
|
|
165
165
|
font-stretch: normal;
|
|
166
|
-
|
|
167
|
-
hyphens: none;
|
|
166
|
+
hyphens: none;
|
|
168
167
|
letter-spacing: normal;
|
|
169
168
|
list-style: disc outside none;
|
|
170
169
|
tab-size: 8;
|
|
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
font-style: normal;
|
|
155
155
|
font-variant: normal;
|
|
156
156
|
font-stretch: normal;
|
|
157
|
-
|
|
158
|
-
hyphens: none;
|
|
157
|
+
hyphens: none;
|
|
159
158
|
letter-spacing: normal;
|
|
160
159
|
list-style: disc outside none;
|
|
161
160
|
tab-size: 8;
|
|
@@ -312,8 +311,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
312
311
|
font-style: normal;
|
|
313
312
|
font-variant: normal;
|
|
314
313
|
font-stretch: normal;
|
|
315
|
-
|
|
316
|
-
hyphens: none;
|
|
314
|
+
hyphens: none;
|
|
317
315
|
letter-spacing: normal;
|
|
318
316
|
list-style: disc outside none;
|
|
319
317
|
tab-size: 8;
|
|
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
font-style: normal;
|
|
155
155
|
font-variant: normal;
|
|
156
156
|
font-stretch: normal;
|
|
157
|
-
|
|
158
|
-
hyphens: none;
|
|
157
|
+
hyphens: none;
|
|
159
158
|
letter-spacing: normal;
|
|
160
159
|
list-style: disc outside none;
|
|
161
160
|
tab-size: 8;
|
|
@@ -8,7 +8,8 @@ export interface SegmentedControlProps extends BaseComponentProps {
|
|
|
8
8
|
*/
|
|
9
9
|
selectedId: string | null;
|
|
10
10
|
/**
|
|
11
|
-
* An array of objects representing options.
|
|
11
|
+
* An array of objects representing options. Only up to 6 options are supported.
|
|
12
|
+
* Each segment has the following properties:
|
|
12
13
|
*
|
|
13
14
|
* - `id` (string) - The ID of the segment.
|
|
14
15
|
* - `disabled` [boolean] - (Optional) Determines whether the segment is disabled, which prevents the user from selecting it.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/segmented-control/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/segmented-control/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,qBAAsB,SAAQ,kBAAkB;IAC/D;;OAEG;IACH,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1B;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,EAAE,aAAa,CAAC,qBAAqB,CAAC,MAAM,CAAC,CAAC;IAEtD;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC,qBAAqB,CAAC,YAAY,CAAC,CAAC;CAC1E;AAED,yBAAiB,qBAAqB,CAAC;IACrC,UAAiB,MAAM;QACrB,EAAE,EAAE,MAAM,CAAC;QACX,QAAQ,CAAC,EAAE,OAAO,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,QAAQ,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;QAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;QAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;KACf;IAED,UAAiB,YAAY;QAC3B,UAAU,EAAE,MAAM,CAAC;KACpB;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/segmented-control/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface SegmentedControlProps extends BaseComponentProps {\n /**\n * ID of the selected option. If you want to clear the selection, use `null`.\n */\n selectedId: string | null;\n\n /**\n * An array of objects representing options. Each segment has the following properties:\n *\n * - `id` (string) - The ID of the segment.\n * - `disabled` [boolean] - (Optional) Determines whether the segment is disabled, which prevents the user from selecting it.\n * - `disabledReason` (string) - (Optional) Displays tooltip near the segment when disabled. Use to provide additional context.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`, or `iconName` without `text`.\n * This is required when you use an icon without `text`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * - `text` (string) - (Optional) Specifies the text of the segment.\n */\n options?: ReadonlyArray<SegmentedControlProps.Option>;\n\n /**\n * Defines the label of the entire segmented control. In the standard view (that is, all individual segments are visible),\n * this label is used as `aria-label` on the group of segments. In a narrow container, where this component is displayed as a select component,\n * the label is visible and attached to the select component, unless `ariaLabelledBy` is defined. Don't use `label` and `ariaLabelledBy` at the same time.\n */\n label?: string;\n\n /**\n * Adds aria-labelledby to the component. Create a visually hidden element with an ID and set this property to that ID. If you don't want the label to be visible in narrow containers, use this property instead of `label`.\n */\n ariaLabelledby?: string;\n\n /**\n * Called when the user selects a different segment.\n */\n onChange?: NonCancelableEventHandler<SegmentedControlProps.ChangeDetail>;\n}\n\nexport namespace SegmentedControlProps {\n export interface Option {\n id: string;\n disabled?: boolean;\n disabledReason?: string;\n iconName?: IconProps.Name;\n iconAlt?: string;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n text?: string;\n }\n\n export interface ChangeDetail {\n selectedId: string;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/segmented-control/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { IconProps } from '../icon/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface SegmentedControlProps extends BaseComponentProps {\n /**\n * ID of the selected option. If you want to clear the selection, use `null`.\n */\n selectedId: string | null;\n\n /**\n * An array of objects representing options. Only up to 6 options are supported.\n * Each segment has the following properties:\n *\n * - `id` (string) - The ID of the segment.\n * - `disabled` [boolean] - (Optional) Determines whether the segment is disabled, which prevents the user from selecting it.\n * - `disabledReason` (string) - (Optional) Displays tooltip near the segment when disabled. Use to provide additional context.\n * - `iconName` (string) - (Optional) Specifies the name of the icon, used with the [icon component](/components/icon/).\n * - `iconAlt` (string) - (Optional) Specifies alternate text for the icon when using `iconUrl`, or `iconName` without `text`.\n * This is required when you use an icon without `text`.\n * - `iconUrl` (string) - (Optional) Specifies the URL of a custom icon.\n * - `iconSvg` (ReactNode) - (Optional) Custom SVG icon. Equivalent to the `svg` slot of the [icon component](/components/icon/).\n * - `text` (string) - (Optional) Specifies the text of the segment.\n */\n options?: ReadonlyArray<SegmentedControlProps.Option>;\n\n /**\n * Defines the label of the entire segmented control. In the standard view (that is, all individual segments are visible),\n * this label is used as `aria-label` on the group of segments. In a narrow container, where this component is displayed as a select component,\n * the label is visible and attached to the select component, unless `ariaLabelledBy` is defined. Don't use `label` and `ariaLabelledBy` at the same time.\n */\n label?: string;\n\n /**\n * Adds aria-labelledby to the component. Create a visually hidden element with an ID and set this property to that ID. If you don't want the label to be visible in narrow containers, use this property instead of `label`.\n */\n ariaLabelledby?: string;\n\n /**\n * Called when the user selects a different segment.\n */\n onChange?: NonCancelableEventHandler<SegmentedControlProps.ChangeDetail>;\n}\n\nexport namespace SegmentedControlProps {\n export interface Option {\n id: string;\n disabled?: boolean;\n disabledReason?: string;\n iconName?: IconProps.Name;\n iconAlt?: string;\n iconUrl?: string;\n iconSvg?: React.ReactNode;\n text?: string;\n }\n\n export interface ChangeDetail {\n selectedId: string;\n }\n}\n"]}
|
|
@@ -303,8 +303,7 @@ body[data-awsui-focus-visible=true] .awsui_segment_8cbea_rg0r6_161:not(#\9):focu
|
|
|
303
303
|
font-style: normal;
|
|
304
304
|
font-variant: normal;
|
|
305
305
|
font-stretch: normal;
|
|
306
|
-
|
|
307
|
-
hyphens: none;
|
|
306
|
+
hyphens: none;
|
|
308
307
|
letter-spacing: normal;
|
|
309
308
|
list-style: disc outside none;
|
|
310
309
|
tab-size: 8;
|
package/select/styles.scoped.css
CHANGED
|
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
font-style: normal;
|
|
155
155
|
font-variant: normal;
|
|
156
156
|
font-stretch: normal;
|
|
157
|
-
|
|
158
|
-
hyphens: none;
|
|
157
|
+
hyphens: none;
|
|
159
158
|
letter-spacing: normal;
|
|
160
159
|
list-style: disc outside none;
|
|
161
160
|
tab-size: 8;
|
|
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
font-style: normal;
|
|
155
155
|
font-variant: normal;
|
|
156
156
|
font-stretch: normal;
|
|
157
|
-
|
|
158
|
-
hyphens: none;
|
|
157
|
+
hyphens: none;
|
|
159
158
|
letter-spacing: normal;
|
|
160
159
|
list-style: disc outside none;
|
|
161
160
|
tab-size: 8;
|
package/slider/styles.scoped.css
CHANGED
|
@@ -162,8 +162,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
162
162
|
font-style: normal;
|
|
163
163
|
font-variant: normal;
|
|
164
164
|
font-stretch: normal;
|
|
165
|
-
|
|
166
|
-
hyphens: none;
|
|
165
|
+
hyphens: none;
|
|
167
166
|
letter-spacing: normal;
|
|
168
167
|
list-style: disc outside none;
|
|
169
168
|
tab-size: 8;
|
|
@@ -162,8 +162,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
162
162
|
font-style: normal;
|
|
163
163
|
font-variant: normal;
|
|
164
164
|
font-stretch: normal;
|
|
165
|
-
|
|
166
|
-
hyphens: none;
|
|
165
|
+
hyphens: none;
|
|
167
166
|
letter-spacing: normal;
|
|
168
167
|
list-style: disc outside none;
|
|
169
168
|
tab-size: 8;
|
package/steps/styles.scoped.css
CHANGED
|
@@ -190,8 +190,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
190
190
|
font-style: normal;
|
|
191
191
|
font-variant: normal;
|
|
192
192
|
font-stretch: normal;
|
|
193
|
-
|
|
194
|
-
hyphens: none;
|
|
193
|
+
hyphens: none;
|
|
195
194
|
letter-spacing: normal;
|
|
196
195
|
list-style: disc outside none;
|
|
197
196
|
tab-size: 8;
|
|
@@ -191,8 +191,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
191
191
|
font-style: normal;
|
|
192
192
|
font-variant: normal;
|
|
193
193
|
font-stretch: normal;
|
|
194
|
-
|
|
195
|
-
hyphens: none;
|
|
194
|
+
hyphens: none;
|
|
196
195
|
letter-spacing: normal;
|
|
197
196
|
list-style: disc outside none;
|
|
198
197
|
tab-size: 8;
|
|
@@ -181,8 +181,7 @@ th:not(#\9):not(:last-child) > .awsui_divider-active_x7peu_1w169_167 {
|
|
|
181
181
|
font-style: normal;
|
|
182
182
|
font-variant: normal;
|
|
183
183
|
font-stretch: normal;
|
|
184
|
-
|
|
185
|
-
hyphens: none;
|
|
184
|
+
hyphens: none;
|
|
186
185
|
letter-spacing: normal;
|
|
187
186
|
list-style: disc outside none;
|
|
188
187
|
tab-size: 8;
|
package/tabs/styles.scoped.css
CHANGED
|
@@ -542,8 +542,7 @@ body[data-awsui-focus-visible=true] .awsui_tabs-tab-link_14rmt_nmfdw_436:not(#\9
|
|
|
542
542
|
font-style: normal;
|
|
543
543
|
font-variant: normal;
|
|
544
544
|
font-stretch: normal;
|
|
545
|
-
|
|
546
|
-
hyphens: none;
|
|
545
|
+
hyphens: none;
|
|
547
546
|
letter-spacing: normal;
|
|
548
547
|
list-style: disc outside none;
|
|
549
548
|
tab-size: 8;
|
|
@@ -155,8 +155,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
155
155
|
font-style: normal;
|
|
156
156
|
font-variant: normal;
|
|
157
157
|
font-stretch: normal;
|
|
158
|
-
|
|
159
|
-
hyphens: none;
|
|
158
|
+
hyphens: none;
|
|
160
159
|
letter-spacing: normal;
|
|
161
160
|
list-style: disc outside none;
|
|
162
161
|
tab-size: 8;
|
|
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
font-style: normal;
|
|
155
155
|
font-variant: normal;
|
|
156
156
|
font-stretch: normal;
|
|
157
|
-
|
|
158
|
-
hyphens: none;
|
|
157
|
+
hyphens: none;
|
|
159
158
|
letter-spacing: normal;
|
|
160
159
|
list-style: disc outside none;
|
|
161
160
|
tab-size: 8;
|
|
@@ -158,8 +158,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
158
158
|
font-style: normal;
|
|
159
159
|
font-variant: normal;
|
|
160
160
|
font-stretch: normal;
|
|
161
|
-
|
|
162
|
-
hyphens: none;
|
|
161
|
+
hyphens: none;
|
|
163
162
|
letter-spacing: normal;
|
|
164
163
|
list-style: disc outside none;
|
|
165
164
|
tab-size: 8;
|
package/tiles/styles.scoped.css
CHANGED
|
@@ -198,8 +198,7 @@ div.awsui_column-layout_vj6p7_1p9yl_189:not(#\9) {
|
|
|
198
198
|
font-style: normal;
|
|
199
199
|
font-variant: normal;
|
|
200
200
|
font-stretch: normal;
|
|
201
|
-
|
|
202
|
-
hyphens: none;
|
|
201
|
+
hyphens: none;
|
|
203
202
|
letter-spacing: normal;
|
|
204
203
|
list-style: disc outside none;
|
|
205
204
|
tab-size: 8;
|
|
@@ -369,8 +368,7 @@ div.awsui_column-layout_vj6p7_1p9yl_189 > .awsui_grid_vj6p7_1p9yl_221.awsui_grid
|
|
|
369
368
|
font-style: normal;
|
|
370
369
|
font-variant: normal;
|
|
371
370
|
font-stretch: normal;
|
|
372
|
-
|
|
373
|
-
hyphens: none;
|
|
371
|
+
hyphens: none;
|
|
374
372
|
letter-spacing: normal;
|
|
375
373
|
list-style: disc outside none;
|
|
376
374
|
tab-size: 8;
|
package/toggle/styles.scoped.css
CHANGED
|
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
font-style: normal;
|
|
155
155
|
font-variant: normal;
|
|
156
156
|
font-stretch: normal;
|
|
157
|
-
|
|
158
|
-
hyphens: none;
|
|
157
|
+
hyphens: none;
|
|
159
158
|
letter-spacing: normal;
|
|
160
159
|
list-style: disc outside none;
|
|
161
160
|
tab-size: 8;
|
|
@@ -170,8 +170,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
170
170
|
font-style: normal;
|
|
171
171
|
font-variant: normal;
|
|
172
172
|
font-stretch: normal;
|
|
173
|
-
|
|
174
|
-
hyphens: none;
|
|
173
|
+
hyphens: none;
|
|
175
174
|
letter-spacing: normal;
|
|
176
175
|
list-style: disc outside none;
|
|
177
176
|
tab-size: 8;
|
|
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
font-style: normal;
|
|
155
155
|
font-variant: normal;
|
|
156
156
|
font-stretch: normal;
|
|
157
|
-
|
|
158
|
-
hyphens: none;
|
|
157
|
+
hyphens: none;
|
|
159
158
|
letter-spacing: normal;
|
|
160
159
|
list-style: disc outside none;
|
|
161
160
|
tab-size: 8;
|
|
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
font-style: normal;
|
|
155
155
|
font-variant: normal;
|
|
156
156
|
font-stretch: normal;
|
|
157
|
-
|
|
158
|
-
hyphens: none;
|
|
157
|
+
hyphens: none;
|
|
159
158
|
letter-spacing: normal;
|
|
160
159
|
list-style: disc outside none;
|
|
161
160
|
tab-size: 8;
|
|
@@ -377,8 +376,7 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_1wtuq_215 > .awsui_ide
|
|
|
377
376
|
font-style: normal;
|
|
378
377
|
font-variant: normal;
|
|
379
378
|
font-stretch: normal;
|
|
380
|
-
|
|
381
|
-
hyphens: none;
|
|
379
|
+
hyphens: none;
|
|
382
380
|
letter-spacing: normal;
|
|
383
381
|
list-style: disc outside none;
|
|
384
382
|
tab-size: 8;
|
|
@@ -450,8 +448,7 @@ body[data-awsui-focus-visible=true] .awsui_identity_k5dlb_1wtuq_215 > .awsui_ide
|
|
|
450
448
|
font-style: normal;
|
|
451
449
|
font-variant: normal;
|
|
452
450
|
font-stretch: normal;
|
|
453
|
-
|
|
454
|
-
hyphens: none;
|
|
451
|
+
hyphens: none;
|
|
455
452
|
letter-spacing: normal;
|
|
456
453
|
list-style: disc outside none;
|
|
457
454
|
tab-size: 8;
|
|
@@ -190,8 +190,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
190
190
|
font-style: normal;
|
|
191
191
|
font-variant: normal;
|
|
192
192
|
font-stretch: normal;
|
|
193
|
-
|
|
194
|
-
hyphens: none;
|
|
193
|
+
hyphens: none;
|
|
195
194
|
letter-spacing: normal;
|
|
196
195
|
list-style: disc outside none;
|
|
197
196
|
tab-size: 8;
|
|
@@ -224,8 +224,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
224
224
|
font-style: normal;
|
|
225
225
|
font-variant: normal;
|
|
226
226
|
font-stretch: normal;
|
|
227
|
-
|
|
228
|
-
hyphens: none;
|
|
227
|
+
hyphens: none;
|
|
229
228
|
letter-spacing: normal;
|
|
230
229
|
list-style: disc outside none;
|
|
231
230
|
tab-size: 8;
|
|
@@ -261,8 +260,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
261
260
|
font-style: normal;
|
|
262
261
|
font-variant: normal;
|
|
263
262
|
font-stretch: normal;
|
|
264
|
-
|
|
265
|
-
hyphens: none;
|
|
263
|
+
hyphens: none;
|
|
266
264
|
letter-spacing: normal;
|
|
267
265
|
list-style: disc outside none;
|
|
268
266
|
tab-size: 8;
|
|
@@ -364,8 +362,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
364
362
|
font-style: normal;
|
|
365
363
|
font-variant: normal;
|
|
366
364
|
font-stretch: normal;
|
|
367
|
-
|
|
368
|
-
hyphens: none;
|
|
365
|
+
hyphens: none;
|
|
369
366
|
letter-spacing: normal;
|
|
370
367
|
list-style: disc outside none;
|
|
371
368
|
tab-size: 8;
|
|
@@ -190,8 +190,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
190
190
|
font-style: normal;
|
|
191
191
|
font-variant: normal;
|
|
192
192
|
font-stretch: normal;
|
|
193
|
-
|
|
194
|
-
hyphens: none;
|
|
193
|
+
hyphens: none;
|
|
195
194
|
letter-spacing: normal;
|
|
196
195
|
list-style: disc outside none;
|
|
197
196
|
tab-size: 8;
|
package/wizard/styles.scoped.css
CHANGED
|
@@ -154,8 +154,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
154
154
|
font-style: normal;
|
|
155
155
|
font-variant: normal;
|
|
156
156
|
font-stretch: normal;
|
|
157
|
-
|
|
158
|
-
hyphens: none;
|
|
157
|
+
hyphens: none;
|
|
159
158
|
letter-spacing: normal;
|
|
160
159
|
list-style: disc outside none;
|
|
161
160
|
tab-size: 8;
|