@cloudscape-design/components 3.0.58 → 3.0.60
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/attribute-editor/styles.scoped.css +4 -1
- package/autosuggest/internal.d.ts.map +1 -1
- package/autosuggest/internal.js +1 -5
- package/autosuggest/internal.js.map +1 -1
- package/breadcrumb-group/item/styles.scoped.css +2 -0
- package/flashbar/flash.d.ts.map +1 -1
- package/flashbar/flash.js +2 -2
- package/flashbar/flash.js.map +1 -1
- package/flashbar/interfaces.d.ts +2 -0
- package/flashbar/interfaces.d.ts.map +1 -1
- package/flashbar/interfaces.js.map +1 -1
- package/help-panel/styles.scoped.css +2 -0
- package/input/internal.js +1 -1
- package/input/internal.js.map +1 -1
- package/internal/components/autosuggest-input/index.d.ts +1 -1
- package/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/internal/components/autosuggest-input/index.js +42 -6
- package/internal/components/autosuggest-input/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/link/styles.scoped.css +18 -1
- package/package.json +1 -1
- package/property-filter/property-filter-autosuggest.d.ts.map +1 -1
- package/property-filter/property-filter-autosuggest.js +1 -5
- package/property-filter/property-filter-autosuggest.js.map +1 -1
- package/property-filter/styles.css.js +25 -30
- package/property-filter/styles.scoped.css +28 -55
- package/property-filter/styles.selectors.js +25 -30
- package/property-filter/token-editor.d.ts.map +1 -1
- package/property-filter/token-editor.js +13 -28
- package/property-filter/token-editor.js.map +1 -1
- package/tag-editor/styles.scoped.css +2 -0
- package/text-content/styles.scoped.css +6 -1
- package/textarea/index.js +1 -1
- package/textarea/index.js.map +1 -1
- package/token-group/styles.scoped.css +2 -0
|
@@ -198,10 +198,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
198
198
|
color: var(--color-text-link-default-5f186r, #0972d3);
|
|
199
199
|
font-weight: var(--font-link-primary-weight-91pybi, "inherit");
|
|
200
200
|
letter-spacing: var(--font-link-primary-letter-spacing-vmsgcx, "inherit");
|
|
201
|
-
text-decoration: var(--font-link-primary-decoration-wfgjh2, underline);
|
|
201
|
+
-webkit-text-decoration: var(--font-link-primary-decoration-wfgjh2, underline);
|
|
202
|
+
text-decoration: var(--font-link-primary-decoration-wfgjh2, underline);
|
|
202
203
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
203
204
|
text-decoration-color: var(--color-text-link-primary-underline-ga7rq8, #0972d3);
|
|
205
|
+
transition-property: color, -webkit-text-decoration;
|
|
204
206
|
transition-property: color, text-decoration;
|
|
207
|
+
transition-property: color, text-decoration, -webkit-text-decoration;
|
|
205
208
|
transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
|
|
206
209
|
}
|
|
207
210
|
@media (prefers-reduced-motion: reduce) {
|
|
@@ -247,7 +250,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
247
250
|
text-decoration: none;
|
|
248
251
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
249
252
|
text-decoration-color: transparent;
|
|
253
|
+
transition-property: color, -webkit-text-decoration;
|
|
250
254
|
transition-property: color, text-decoration;
|
|
255
|
+
transition-property: color, text-decoration, -webkit-text-decoration;
|
|
251
256
|
transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
|
|
252
257
|
}
|
|
253
258
|
@media (prefers-reduced-motion: reduce) {
|
package/textarea/index.js
CHANGED
|
@@ -52,7 +52,7 @@ var Textarea = React.forwardRef(function (_a, ref) {
|
|
|
52
52
|
attributes.spellCheck = 'false';
|
|
53
53
|
}
|
|
54
54
|
return (React.createElement("span", __assign({}, baseProps, { className: clsx(styles.root, baseProps.className), ref: __internalRootRef }),
|
|
55
|
-
React.createElement("textarea", __assign({ ref: textareaRef, id: controlId }, attributes))));
|
|
55
|
+
React.createElement("textarea", __assign({ ref: textareaRef, id: controlId }, attributes, { spellCheck: false }))));
|
|
56
56
|
});
|
|
57
57
|
applyDisplayName(Textarea, 'Textarea');
|
|
58
58
|
export default Textarea;
|
package/textarea/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/textarea/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAO,MAAM,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,eAAe,MAAM,iCAAiC,CAAC;AAC9D,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAIrD,IAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAC/B,UACE,EAmBgB,EAChB,GAA2B;;IAnBzB,IAAA,KAAK,WAAA,EACL,oBAAmB,EAAnB,YAAY,mBAAG,IAAI,KAAA,EACnB,QAAQ,cAAA,EACR,QAAQ,cAAA,EACR,yBAAyB,+BAAA,EACzB,wBAAwB,8BAAA,EACxB,SAAS,eAAA,EACT,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,MAAM,YAAA,EACN,OAAO,aAAA,EACP,YAAY,kBAAA,EACZ,IAAI,UAAA,EACJ,IAAI,UAAA,EACJ,WAAW,iBAAA,EACX,SAAS,eAAA,EACT,SAAS,eAAA,EACN,IAAI,cAlBT,4OAmBC,CADQ;IAID,IAAA,iBAAiB,GAAK,gBAAgB,CAAC,UAAU,CAAC,kBAAjC,CAAkC;IACrD,IAAA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C,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,iBAAiB;QAC5F,2CAAU,GAAG,EAAE,WAAW,EAAE,EAAE,EAAE,SAAS,IAAM,UAAU,IAAE,UAAU,EAAE,KAAK,IAAI,CAC3E,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AACvC,eAAe,QAAQ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { Ref, useRef } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { fireKeyboardEvent, fireNonCancelableEvent } from '../internal/events';\nimport { TextareaProps } from './interfaces';\nimport { useFormFieldContext } from '../internal/context/form-field-context';\nimport useForwardFocus from '../internal/hooks/forward-focus';\nimport clsx from 'clsx';\nimport styles from './styles.css.js';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { convertAutoComplete } from '../input/utils';\n\nexport { TextareaProps };\n\nconst Textarea = React.forwardRef(\n (\n {\n value,\n autoComplete = true,\n disabled,\n readOnly,\n disableBrowserAutocorrect,\n disableBrowserSpellcheck,\n onKeyDown,\n onKeyUp,\n onChange,\n onBlur,\n onFocus,\n ariaRequired,\n name,\n rows,\n placeholder,\n autoFocus,\n ariaLabel,\n ...rest\n }: TextareaProps,\n ref: Ref<TextareaProps.Ref>\n ) => {\n const { __internalRootRef } = useBaseComponent('Textarea');\n const { ariaLabelledby, ariaDescribedby, controlId, invalid } = useFormFieldContext(rest);\n const baseProps = getBaseProps(rest);\n\n const textareaRef = useRef<HTMLTextAreaElement>(null);\n useForwardFocus(ref, textareaRef);\n\n const attributes: React.TextareaHTMLAttributes<HTMLTextAreaElement> = {\n 'aria-label': ariaLabel,\n 'aria-labelledby': ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n 'aria-required': ariaRequired ? 'true' : undefined,\n 'aria-invalid': invalid ? 'true' : undefined,\n name,\n placeholder,\n autoFocus,\n className: clsx(styles.textarea, {\n [styles['textarea-readonly']]: readOnly,\n [styles['textarea-invalid']]: invalid,\n }),\n autoComplete: convertAutoComplete(autoComplete),\n disabled,\n readOnly: readOnly ? true : undefined,\n rows: rows || 3,\n onKeyDown: onKeyDown && (event => fireKeyboardEvent(onKeyDown, event)),\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: onChange && (event => fireNonCancelableEvent(onChange, { value: event.target.value })),\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 if (disableBrowserSpellcheck) {\n attributes.spellCheck = 'false';\n }\n\n return (\n <span {...baseProps} className={clsx(styles.root, baseProps.className)} ref={__internalRootRef}>\n <textarea ref={textareaRef} id={controlId} {...attributes} spellCheck={false} />\n </span>\n );\n }\n);\n\napplyDisplayName(Textarea, 'Textarea');\nexport default Textarea;\n"]}
|
|
@@ -236,7 +236,9 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
236
236
|
text-decoration: none;
|
|
237
237
|
/* stylelint-disable-next-line plugin/no-unsupported-browser-features */
|
|
238
238
|
text-decoration-color: transparent;
|
|
239
|
+
transition-property: color, -webkit-text-decoration;
|
|
239
240
|
transition-property: color, text-decoration;
|
|
241
|
+
transition-property: color, text-decoration, -webkit-text-decoration;
|
|
240
242
|
transition-duration: var(--motion-duration-refresh-only-medium-5flen2, 165ms);
|
|
241
243
|
display: flex;
|
|
242
244
|
align-items: center;
|