@cloudscape-design/components 3.0.1140 → 3.0.1142
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/interfaces.d.ts +13 -0
- package/alert/interfaces.d.ts.map +1 -1
- package/alert/interfaces.js.map +1 -1
- package/alert/internal.d.ts.map +1 -1
- package/alert/internal.js +35 -3
- package/alert/internal.js.map +1 -1
- package/autosuggest/index.js +1 -1
- package/autosuggest/interfaces.d.ts +47 -0
- package/autosuggest/interfaces.d.ts.map +1 -1
- package/autosuggest/interfaces.js.map +1 -1
- package/autosuggest/internal.d.ts.map +1 -1
- package/autosuggest/internal.js +2 -2
- package/autosuggest/internal.js.map +1 -1
- package/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/collapsible-flashbar.js +14 -13
- package/flashbar/collapsible-flashbar.js.map +1 -1
- package/flashbar/common.d.ts +3 -2
- package/flashbar/common.d.ts.map +1 -1
- package/flashbar/common.js +67 -1
- package/flashbar/common.js.map +1 -1
- package/flashbar/flash.d.ts.map +1 -1
- package/flashbar/flash.js +4 -4
- package/flashbar/flash.js.map +1 -1
- package/flashbar/interfaces.d.ts +8 -0
- package/flashbar/interfaces.d.ts.map +1 -1
- package/flashbar/interfaces.js.map +1 -1
- package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
- package/flashbar/non-collapsible-flashbar.js +7 -6
- package/flashbar/non-collapsible-flashbar.js.map +1 -1
- package/input/styles.css.js +13 -13
- package/input/styles.d.ts.map +1 -1
- package/input/styles.js +26 -36
- package/input/styles.js.map +1 -1
- package/input/styles.scoped.css +34 -34
- package/input/styles.selectors.js +13 -13
- package/internal/base-component/styles.scoped.css +1 -1
- package/internal/components/autosuggest-input/index.d.ts +2 -1
- package/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/internal/components/autosuggest-input/index.js +2 -2
- package/internal/components/autosuggest-input/index.js.map +1 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/manifest.json +1 -1
- package/internal/persistence/index.d.ts +14 -0
- package/internal/persistence/index.d.ts.map +1 -0
- package/internal/persistence/index.js +42 -0
- package/internal/persistence/index.js.map +1 -0
- package/package.json +1 -1
- package/text-filter/index.js +10 -17
- package/text-filter/interfaces.d.ts +47 -0
- package/text-filter/interfaces.d.ts.map +1 -1
- package/text-filter/interfaces.js.map +1 -1
- package/text-filter/internal-do-not-use-core.js +25 -0
- package/text-filter/internal.d.ts.map +1 -1
- package/text-filter/internal.js +2 -2
- package/text-filter/internal.js.map +1 -1
- package/text-filter/styles.d.ts +2 -0
- package/text-filter/styles.d.ts.map +1 -0
- package/text-filter/styles.js +44 -0
- package/text-filter/styles.js.map +1 -0
- /package/text-filter/{index.js.map → internal-do-not-use-core.js.map} +0 -0
|
@@ -7,13 +7,14 @@ import { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-tool
|
|
|
7
7
|
import { useInternalI18n } from '../i18n/context';
|
|
8
8
|
import { Transition } from '../internal/components/transition';
|
|
9
9
|
import { getComponentsAnalyticsMetadata, getItemAnalyticsMetadata } from './analytics-metadata/utils';
|
|
10
|
-
import { useFlashbar } from './common';
|
|
10
|
+
import { useFlashbar, useFlashbarVisibility } from './common';
|
|
11
11
|
import { TIMEOUT_FOR_ENTERING_ANIMATION } from './constant';
|
|
12
12
|
import { Flash } from './flash';
|
|
13
13
|
import styles from './styles.css.js';
|
|
14
14
|
export default function NonCollapsibleFlashbar({ items, i18nStrings, style, ...restProps }) {
|
|
15
|
+
const visibleItems = useFlashbarVisibility(items);
|
|
15
16
|
const { allItemsHaveId, baseProps, isReducedMotion, isVisualRefresh, mergedRef, flashRefs, handleFlashDismissed } = useFlashbar({
|
|
16
|
-
items,
|
|
17
|
+
items: visibleItems,
|
|
17
18
|
...restProps,
|
|
18
19
|
});
|
|
19
20
|
const i18n = useInternalI18n('flashbar');
|
|
@@ -37,12 +38,12 @@ export default function NonCollapsibleFlashbar({ items, i18nStrings, style, ...r
|
|
|
37
38
|
* from the flashbar will render with visual transitions.
|
|
38
39
|
*/
|
|
39
40
|
function renderFlatItemsWithTransitions() {
|
|
40
|
-
if (motionDisabled || !
|
|
41
|
+
if (motionDisabled || !visibleItems) {
|
|
41
42
|
return;
|
|
42
43
|
}
|
|
43
44
|
return (
|
|
44
45
|
// This is a proxy for <ul>, so we're not applying a class to another actual component.
|
|
45
|
-
React.createElement(TransitionGroup, { component: "ul", className: styles['flash-list'], "aria-label": ariaLabel },
|
|
46
|
+
React.createElement(TransitionGroup, { component: "ul", className: styles['flash-list'], "aria-label": ariaLabel }, visibleItems.map((item, index) => {
|
|
46
47
|
var _a;
|
|
47
48
|
return (React.createElement(Transition, { transitionChangeDelay: { entering: TIMEOUT_FOR_ENTERING_ANIMATION }, key: (_a = item.id) !== null && _a !== void 0 ? _a : index, in: true }, (state, transitionRootElement) => {
|
|
48
49
|
var _a;
|
|
@@ -55,10 +56,10 @@ export default function NonCollapsibleFlashbar({ items, i18nStrings, style, ...r
|
|
|
55
56
|
* from the flashbar will render without visual transitions.
|
|
56
57
|
*/
|
|
57
58
|
function renderFlatItemsWithoutTransitions() {
|
|
58
|
-
if (!motionDisabled || !
|
|
59
|
+
if (!motionDisabled || !visibleItems) {
|
|
59
60
|
return;
|
|
60
61
|
}
|
|
61
|
-
return (React.createElement("ul", { className: styles['flash-list'], "aria-label": ariaLabel, ...getAnalyticsMetadataAttribute(getComponentsAnalyticsMetadata(
|
|
62
|
+
return (React.createElement("ul", { className: styles['flash-list'], "aria-label": ariaLabel, ...getAnalyticsMetadataAttribute(getComponentsAnalyticsMetadata(visibleItems.length, false)) }, visibleItems.map((item, index) => {
|
|
62
63
|
var _a, _b;
|
|
63
64
|
return (React.createElement("li", { key: (_a = item.id) !== null && _a !== void 0 ? _a : index, className: styles['flash-list-item'], ...getAnalyticsMetadataAttribute(getItemAnalyticsMetadata(index + 1, item.type || 'info', item.id)) }, renderItem(item, (_b = item.id) !== null && _b !== void 0 ? _b : index)));
|
|
64
65
|
})));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"non-collapsible-flashbar.js","sourceRoot":"","sources":["../../../src/flashbar/non-collapsible-flashbar.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"non-collapsible-flashbar.js","sourceRoot":"","sources":["../../../src/flashbar/non-collapsible-flashbar.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,6BAA6B,EAAE,MAAM,kEAAkE,CAAC;AAEjH,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,8BAA8B,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtG,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,8BAA8B,EAAE,MAAM,YAAY,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,OAAO,MAAM,MAAM,iBAAiB,CA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n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport { TransitionGroup } from 'react-transition-group';\nimport clsx from 'clsx';\n\nimport { getAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport { useInternalI18n } from '../i18n/context';\nimport { Transition } from '../internal/components/transition';\nimport { getComponentsAnalyticsMetadata, getItemAnalyticsMetadata } from './analytics-metadata/utils';\nimport { useFlashbar, useFlashbarVisibility } from './common';\nimport { TIMEOUT_FOR_ENTERING_ANIMATION } from './constant';\nimport { Flash } from './flash';\nimport { FlashbarProps, InternalFlashbarProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\nexport default function NonCollapsibleFlashbar({ items, i18nStrings, style, ...restProps }: InternalFlashbarProps) {\n const visibleItems = useFlashbarVisibility(items);\n\n const { allItemsHaveId, baseProps, isReducedMotion, isVisualRefresh, mergedRef, flashRefs, handleFlashDismissed } =\n useFlashbar({\n items: visibleItems,\n ...restProps,\n });\n\n const i18n = useInternalI18n('flashbar');\n const ariaLabel = i18n('i18nStrings.ariaLabel', i18nStrings?.ariaLabel);\n const iconAriaLabels = {\n errorIconAriaLabel: i18n('i18nStrings.errorIconAriaLabel', i18nStrings?.errorIconAriaLabel),\n inProgressIconAriaLabel: i18n('i18nStrings.inProgressIconAriaLabel', i18nStrings?.inProgressIconAriaLabel),\n infoIconAriaLabel: i18n('i18nStrings.infoIconAriaLabel', i18nStrings?.infoIconAriaLabel),\n successIconAriaLabel: i18n('i18nStrings.successIconAriaLabel', i18nStrings?.successIconAriaLabel),\n warningIconAriaLabel: i18n('i18nStrings.warningIconAriaLabel', i18nStrings?.warningIconAriaLabel),\n };\n\n /**\n * All the flash items should have ids so we can identify which DOM element is being\n * removed from the DOM to animate it. Motion will be disabled if any of the provided\n * flash messages does not contain an `id`.\n */\n const motionDisabled = isReducedMotion || !isVisualRefresh || !allItemsHaveId;\n\n const animateFlash = !isReducedMotion && isVisualRefresh;\n\n /**\n * If the flashbar is flat and motion is `enabled` then the adding and removing of items\n * from the flashbar will render with visual transitions.\n */\n function renderFlatItemsWithTransitions() {\n if (motionDisabled || !visibleItems) {\n return;\n }\n\n return (\n // This is a proxy for <ul>, so we're not applying a class to another actual component.\n\n <TransitionGroup component=\"ul\" className={styles['flash-list']} aria-label={ariaLabel}>\n {visibleItems.map((item, index) => (\n <Transition\n transitionChangeDelay={{ entering: TIMEOUT_FOR_ENTERING_ANIMATION }}\n key={item.id ?? index}\n in={true}\n >\n {(state: string, transitionRootElement: React.Ref<HTMLDivElement> | undefined) => (\n <li className={styles['flash-list-item']}>\n {renderItem(item, item.id ?? index, transitionRootElement, state)}\n </li>\n )}\n </Transition>\n ))}\n </TransitionGroup>\n );\n }\n\n /**\n * If the flashbar is flat and motion is `disabled` then the adding and removing of items\n * from the flashbar will render without visual transitions.\n */\n function renderFlatItemsWithoutTransitions() {\n if (!motionDisabled || !visibleItems) {\n return;\n }\n\n return (\n <ul\n className={styles['flash-list']}\n aria-label={ariaLabel}\n {...getAnalyticsMetadataAttribute(getComponentsAnalyticsMetadata(visibleItems.length, false))}\n >\n {visibleItems.map((item, index) => (\n <li\n key={item.id ?? index}\n className={styles['flash-list-item']}\n {...getAnalyticsMetadataAttribute(getItemAnalyticsMetadata(index + 1, item.type || 'info', item.id))}\n >\n {renderItem(item, item.id ?? index)}\n </li>\n ))}\n </ul>\n );\n }\n\n /**\n * This is a shared render function for a single flashbar item to be used\n * by the stacking, motion, and non-motion item group render functions.\n */\n function renderItem(\n item: FlashbarProps.MessageDefinition,\n key: string | number,\n transitionRootElement?: React.Ref<HTMLDivElement> | undefined,\n transitionState?: string | undefined\n ) {\n return (\n <Flash\n className={clsx(animateFlash && styles['flash-with-motion'], isVisualRefresh && styles['flash-refresh'])}\n key={key}\n ref={el => {\n flashRefs.current[key] = el;\n // If there's a transition root element ref, update it too\n if (transitionRootElement && typeof transitionRootElement === 'function') {\n transitionRootElement(el);\n } else if (\n transitionRootElement &&\n typeof transitionRootElement === 'object' &&\n 'current' in transitionRootElement\n ) {\n (transitionRootElement as React.MutableRefObject<HTMLDivElement | null>).current = el;\n }\n }}\n transitionState={transitionState}\n i18nStrings={iconAriaLabels}\n style={style}\n onDismissed={handleFlashDismissed}\n {...item}\n />\n );\n }\n\n // The handleFlashDismissed function is now provided by the useFlashbar hook\n\n return (\n <div {...baseProps} className={clsx(baseProps.className, styles.flashbar)} ref={mergedRef}>\n {renderFlatItemsWithTransitions()}\n {renderFlatItemsWithoutTransitions()}\n </div>\n );\n}\n"]}
|
package/input/styles.css.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"root": "
|
|
5
|
-
"input": "
|
|
6
|
-
"input-readonly": "awsui_input-
|
|
7
|
-
"input-invalid": "awsui_input-
|
|
8
|
-
"input-has-icon-left": "awsui_input-has-icon-
|
|
9
|
-
"input-warning": "awsui_input-
|
|
10
|
-
"input-type-search": "awsui_input-type-
|
|
11
|
-
"input-has-icon-right": "awsui_input-has-icon-
|
|
12
|
-
"input-has-no-border-radius": "awsui_input-has-no-border-
|
|
13
|
-
"input-container": "awsui_input-
|
|
14
|
-
"input-icon-left": "awsui_input-icon-
|
|
15
|
-
"input-icon-right": "awsui_input-icon-
|
|
16
|
-
"input-button-right": "awsui_input-button-
|
|
4
|
+
"root": "awsui_root_2rhyz_i4lok_145",
|
|
5
|
+
"input": "awsui_input_2rhyz_i4lok_149",
|
|
6
|
+
"input-readonly": "awsui_input-readonly_2rhyz_i4lok_203",
|
|
7
|
+
"input-invalid": "awsui_input-invalid_2rhyz_i4lok_266",
|
|
8
|
+
"input-has-icon-left": "awsui_input-has-icon-left_2rhyz_i4lok_275",
|
|
9
|
+
"input-warning": "awsui_input-warning_2rhyz_i4lok_278",
|
|
10
|
+
"input-type-search": "awsui_input-type-search_2rhyz_i4lok_290",
|
|
11
|
+
"input-has-icon-right": "awsui_input-has-icon-right_2rhyz_i4lok_303",
|
|
12
|
+
"input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_i4lok_306",
|
|
13
|
+
"input-container": "awsui_input-container_2rhyz_i4lok_313",
|
|
14
|
+
"input-icon-left": "awsui_input-icon-left_2rhyz_i4lok_318",
|
|
15
|
+
"input-icon-right": "awsui_input-icon-right_2rhyz_i4lok_325",
|
|
16
|
+
"input-button-right": "awsui_input-button-right_2rhyz_i4lok_331"
|
|
17
17
|
};
|
|
18
18
|
|
package/input/styles.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/input/styles.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/input/styles.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,CAAC,kBAuCxD"}
|
package/input/styles.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
import { SYSTEM } from '../internal/environment';
|
|
4
4
|
import customCssProps from '../internal/generated/custom-css-properties';
|
|
5
5
|
export function getInputStyles(style) {
|
|
6
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9;
|
|
6
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25;
|
|
7
7
|
let properties = {};
|
|
8
|
-
if (
|
|
8
|
+
if (SYSTEM === 'core') {
|
|
9
9
|
properties = {
|
|
10
10
|
borderRadius: (_a = style === null || style === void 0 ? void 0 : style.root) === null || _a === void 0 ? void 0 : _a.borderRadius,
|
|
11
11
|
borderWidth: (_b = style === null || style === void 0 ? void 0 : style.root) === null || _b === void 0 ? void 0 : _b.borderWidth,
|
|
@@ -13,40 +13,30 @@ export function getInputStyles(style) {
|
|
|
13
13
|
fontWeight: (_d = style === null || style === void 0 ? void 0 : style.root) === null || _d === void 0 ? void 0 : _d.fontWeight,
|
|
14
14
|
paddingBlock: (_e = style === null || style === void 0 ? void 0 : style.root) === null || _e === void 0 ? void 0 : _e.paddingBlock,
|
|
15
15
|
paddingInline: (_f = style === null || style === void 0 ? void 0 : style.root) === null || _f === void 0 ? void 0 : _f.paddingInline,
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
[customCssProps.styleColorHover]: (_3 = style.root.color) === null || _3 === void 0 ? void 0 : _3.hover,
|
|
41
|
-
[customCssProps.styleColorFocus]: (_4 = style.root.color) === null || _4 === void 0 ? void 0 : _4.focus,
|
|
42
|
-
[customCssProps.styleColorReadonly]: (_5 = style.root.color) === null || _5 === void 0 ? void 0 : _5.readonly,
|
|
43
|
-
}),
|
|
44
|
-
...((style === null || style === void 0 ? void 0 : style.placeholder) && {
|
|
45
|
-
[customCssProps.stylePlaceholderColor]: (_6 = style.placeholder) === null || _6 === void 0 ? void 0 : _6.color,
|
|
46
|
-
[customCssProps.stylePlaceholderFontSize]: (_7 = style.placeholder) === null || _7 === void 0 ? void 0 : _7.fontSize,
|
|
47
|
-
[customCssProps.stylePlaceholderFontWeight]: (_8 = style.placeholder) === null || _8 === void 0 ? void 0 : _8.fontWeight,
|
|
48
|
-
[customCssProps.stylePlaceholderFontStyle]: (_9 = style.placeholder) === null || _9 === void 0 ? void 0 : _9.fontStyle,
|
|
49
|
-
}),
|
|
16
|
+
[customCssProps.styleBackgroundDefault]: (_h = (_g = style === null || style === void 0 ? void 0 : style.root) === null || _g === void 0 ? void 0 : _g.backgroundColor) === null || _h === void 0 ? void 0 : _h.default,
|
|
17
|
+
[customCssProps.styleBackgroundDisabled]: (_k = (_j = style === null || style === void 0 ? void 0 : style.root) === null || _j === void 0 ? void 0 : _j.backgroundColor) === null || _k === void 0 ? void 0 : _k.disabled,
|
|
18
|
+
[customCssProps.styleBackgroundHover]: (_m = (_l = style === null || style === void 0 ? void 0 : style.root) === null || _l === void 0 ? void 0 : _l.backgroundColor) === null || _m === void 0 ? void 0 : _m.hover,
|
|
19
|
+
[customCssProps.styleBackgroundFocus]: (_p = (_o = style === null || style === void 0 ? void 0 : style.root) === null || _o === void 0 ? void 0 : _o.backgroundColor) === null || _p === void 0 ? void 0 : _p.focus,
|
|
20
|
+
[customCssProps.styleBackgroundReadonly]: (_r = (_q = style === null || style === void 0 ? void 0 : style.root) === null || _q === void 0 ? void 0 : _q.backgroundColor) === null || _r === void 0 ? void 0 : _r.readonly,
|
|
21
|
+
[customCssProps.styleBorderColorDefault]: (_t = (_s = style === null || style === void 0 ? void 0 : style.root) === null || _s === void 0 ? void 0 : _s.borderColor) === null || _t === void 0 ? void 0 : _t.default,
|
|
22
|
+
[customCssProps.styleBorderColorDisabled]: (_v = (_u = style === null || style === void 0 ? void 0 : style.root) === null || _u === void 0 ? void 0 : _u.borderColor) === null || _v === void 0 ? void 0 : _v.disabled,
|
|
23
|
+
[customCssProps.styleBorderColorHover]: (_x = (_w = style === null || style === void 0 ? void 0 : style.root) === null || _w === void 0 ? void 0 : _w.borderColor) === null || _x === void 0 ? void 0 : _x.hover,
|
|
24
|
+
[customCssProps.styleBorderColorFocus]: (_z = (_y = style === null || style === void 0 ? void 0 : style.root) === null || _y === void 0 ? void 0 : _y.borderColor) === null || _z === void 0 ? void 0 : _z.focus,
|
|
25
|
+
[customCssProps.styleBorderColorReadonly]: (_1 = (_0 = style === null || style === void 0 ? void 0 : style.root) === null || _0 === void 0 ? void 0 : _0.borderColor) === null || _1 === void 0 ? void 0 : _1.readonly,
|
|
26
|
+
[customCssProps.styleBoxShadowDefault]: (_3 = (_2 = style === null || style === void 0 ? void 0 : style.root) === null || _2 === void 0 ? void 0 : _2.boxShadow) === null || _3 === void 0 ? void 0 : _3.default,
|
|
27
|
+
[customCssProps.styleBoxShadowDisabled]: (_5 = (_4 = style === null || style === void 0 ? void 0 : style.root) === null || _4 === void 0 ? void 0 : _4.boxShadow) === null || _5 === void 0 ? void 0 : _5.disabled,
|
|
28
|
+
[customCssProps.styleBoxShadowHover]: (_7 = (_6 = style === null || style === void 0 ? void 0 : style.root) === null || _6 === void 0 ? void 0 : _6.boxShadow) === null || _7 === void 0 ? void 0 : _7.hover,
|
|
29
|
+
[customCssProps.styleBoxShadowFocus]: (_9 = (_8 = style === null || style === void 0 ? void 0 : style.root) === null || _8 === void 0 ? void 0 : _8.boxShadow) === null || _9 === void 0 ? void 0 : _9.focus,
|
|
30
|
+
[customCssProps.styleBoxShadowReadonly]: (_11 = (_10 = style === null || style === void 0 ? void 0 : style.root) === null || _10 === void 0 ? void 0 : _10.boxShadow) === null || _11 === void 0 ? void 0 : _11.readonly,
|
|
31
|
+
[customCssProps.styleColorDefault]: (_13 = (_12 = style === null || style === void 0 ? void 0 : style.root) === null || _12 === void 0 ? void 0 : _12.color) === null || _13 === void 0 ? void 0 : _13.default,
|
|
32
|
+
[customCssProps.styleColorDisabled]: (_15 = (_14 = style === null || style === void 0 ? void 0 : style.root) === null || _14 === void 0 ? void 0 : _14.color) === null || _15 === void 0 ? void 0 : _15.disabled,
|
|
33
|
+
[customCssProps.styleColorHover]: (_17 = (_16 = style === null || style === void 0 ? void 0 : style.root) === null || _16 === void 0 ? void 0 : _16.color) === null || _17 === void 0 ? void 0 : _17.hover,
|
|
34
|
+
[customCssProps.styleColorFocus]: (_19 = (_18 = style === null || style === void 0 ? void 0 : style.root) === null || _18 === void 0 ? void 0 : _18.color) === null || _19 === void 0 ? void 0 : _19.focus,
|
|
35
|
+
[customCssProps.styleColorReadonly]: (_21 = (_20 = style === null || style === void 0 ? void 0 : style.root) === null || _20 === void 0 ? void 0 : _20.color) === null || _21 === void 0 ? void 0 : _21.readonly,
|
|
36
|
+
[customCssProps.stylePlaceholderColor]: (_22 = style === null || style === void 0 ? void 0 : style.placeholder) === null || _22 === void 0 ? void 0 : _22.color,
|
|
37
|
+
[customCssProps.stylePlaceholderFontSize]: (_23 = style === null || style === void 0 ? void 0 : style.placeholder) === null || _23 === void 0 ? void 0 : _23.fontSize,
|
|
38
|
+
[customCssProps.stylePlaceholderFontWeight]: (_24 = style === null || style === void 0 ? void 0 : style.placeholder) === null || _24 === void 0 ? void 0 : _24.fontWeight,
|
|
39
|
+
[customCssProps.stylePlaceholderFontStyle]: (_25 = style === null || style === void 0 ? void 0 : style.placeholder) === null || _25 === void 0 ? void 0 : _25.fontStyle,
|
|
50
40
|
};
|
|
51
41
|
return properties;
|
|
52
42
|
}
|
package/input/styles.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/input/styles.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,cAAc,MAAM,6CAA6C,CAAC;AAGzE,MAAM,UAAU,cAAc,CAAC,KAA0B;;IACvD,IAAI,UAAU,GAAG,EAAE,CAAC;IAEpB,IAAI,
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../src/input/styles.tsx"],"names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AK,CAAE,WAAW,4CAAE,SAAS;SAC1E,CAAC;QAEF,OAAO,UAAU,CAAC;IACpB,CAAC;AACH,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { SYSTEM } from '../internal/environment';\nimport customCssProps from '../internal/generated/custom-css-properties';\nimport { InputProps } from './interfaces';\n\nexport function getInputStyles(style: InputProps['style']) {\n let properties = {};\n\n if (SYSTEM === 'core') {\n properties = {\n borderRadius: style?.root?.borderRadius,\n borderWidth: style?.root?.borderWidth,\n fontSize: style?.root?.fontSize,\n fontWeight: style?.root?.fontWeight,\n paddingBlock: style?.root?.paddingBlock,\n paddingInline: style?.root?.paddingInline,\n [customCssProps.styleBackgroundDefault]: style?.root?.backgroundColor?.default,\n [customCssProps.styleBackgroundDisabled]: style?.root?.backgroundColor?.disabled,\n [customCssProps.styleBackgroundHover]: style?.root?.backgroundColor?.hover,\n [customCssProps.styleBackgroundFocus]: style?.root?.backgroundColor?.focus,\n [customCssProps.styleBackgroundReadonly]: style?.root?.backgroundColor?.readonly,\n [customCssProps.styleBorderColorDefault]: style?.root?.borderColor?.default,\n [customCssProps.styleBorderColorDisabled]: style?.root?.borderColor?.disabled,\n [customCssProps.styleBorderColorHover]: style?.root?.borderColor?.hover,\n [customCssProps.styleBorderColorFocus]: style?.root?.borderColor?.focus,\n [customCssProps.styleBorderColorReadonly]: style?.root?.borderColor?.readonly,\n [customCssProps.styleBoxShadowDefault]: style?.root?.boxShadow?.default,\n [customCssProps.styleBoxShadowDisabled]: style?.root?.boxShadow?.disabled,\n [customCssProps.styleBoxShadowHover]: style?.root?.boxShadow?.hover,\n [customCssProps.styleBoxShadowFocus]: style?.root?.boxShadow?.focus,\n [customCssProps.styleBoxShadowReadonly]: style?.root?.boxShadow?.readonly,\n [customCssProps.styleColorDefault]: style?.root?.color?.default,\n [customCssProps.styleColorDisabled]: style?.root?.color?.disabled,\n [customCssProps.styleColorHover]: style?.root?.color?.hover,\n [customCssProps.styleColorFocus]: style?.root?.color?.focus,\n [customCssProps.styleColorReadonly]: style?.root?.color?.readonly,\n [customCssProps.stylePlaceholderColor]: style?.placeholder?.color,\n [customCssProps.stylePlaceholderFontSize]: style?.placeholder?.fontSize,\n [customCssProps.stylePlaceholderFontWeight]: style?.placeholder?.fontWeight,\n [customCssProps.stylePlaceholderFontStyle]: style?.placeholder?.fontStyle,\n };\n\n return properties;\n }\n}\n"]}
|
package/input/styles.scoped.css
CHANGED
|
@@ -142,11 +142,11 @@
|
|
|
142
142
|
*/
|
|
143
143
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
144
144
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
145
|
-
.
|
|
145
|
+
.awsui_root_2rhyz_i4lok_145:not(#\9) {
|
|
146
146
|
/* used in test-utils for component to distinguish input from other input-like components, for example autosuggest */
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
.
|
|
149
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9) {
|
|
150
150
|
border-collapse: separate;
|
|
151
151
|
border-spacing: 0;
|
|
152
152
|
box-sizing: border-box;
|
|
@@ -194,20 +194,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
194
194
|
line-height: var(--line-height-body-m-2mh3ke, 20px);
|
|
195
195
|
block-size: var(--size-vertical-input-p1d7xx, 32px);
|
|
196
196
|
}
|
|
197
|
-
.
|
|
197
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9):hover {
|
|
198
198
|
border-color: var(--awsui-style-border-color-hover-d43v8n, var(--awsui-style-border-color-default-d43v8n, var(--color-border-input-default-317xk5, #8c8c94)));
|
|
199
199
|
color: var(--awsui-style-color-hover-d43v8n, var(--awsui-style-border-color-default-d43v8n, var(--color-text-body-default-vvtq8u, #0f141a)));
|
|
200
200
|
background-color: var(--awsui-style-background-hover-d43v8n, var(--awsui-style-background-default-d43v8n, var(--color-background-input-default-ifz5bb, #ffffff)));
|
|
201
201
|
box-shadow: var(--awsui-style-box-shadow-hover-d43v8n, --awsui-style-box-shadow-default-d43v8n);
|
|
202
202
|
}
|
|
203
|
-
.
|
|
203
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-readonly_2rhyz_i4lok_203:not(#\9) {
|
|
204
204
|
background-color: var(--awsui-style-background-readonly-d43v8n, var(--awsui-style-background-default-d43v8n, var(--color-background-input-default-ifz5bb, #ffffff)));
|
|
205
205
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-readonly-d43v8n, var(--awsui-style-border-color-default-d43v8n, var(--color-border-input-disabled-zgnzvk, #ebebf0)));
|
|
206
206
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-readonly-d43v8n, var(--awsui-style-border-color-default-d43v8n, var(--color-border-input-disabled-zgnzvk, #ebebf0)));
|
|
207
207
|
color: var(--awsui-style-color-readonly-d43v8n, var(--awsui-style-color-default-d43v8n, var(--color-text-body-default-vvtq8u, #0f141a)));
|
|
208
208
|
box-shadow: var(--awsui-style-box-shadow-readonly-d43v8n);
|
|
209
209
|
}
|
|
210
|
-
.
|
|
210
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9)::-webkit-input-placeholder {
|
|
211
211
|
color: var(--awsui-style-placeholder-color-d43v8n, var(--color-text-input-placeholder-dclg8u, #656871));
|
|
212
212
|
font-size: var(--awsui-style-placeholder-font-size-d43v8n);
|
|
213
213
|
font-style: var(--awsui-style-placeholder-font-style-d43v8n, italic);
|
|
@@ -215,21 +215,21 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
215
215
|
-webkit-user-select: none;
|
|
216
216
|
user-select: none;
|
|
217
217
|
}
|
|
218
|
-
.
|
|
218
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9)::-moz-placeholder {
|
|
219
219
|
color: var(--awsui-style-placeholder-color-d43v8n, var(--color-text-input-placeholder-dclg8u, #656871));
|
|
220
220
|
font-size: var(--awsui-style-placeholder-font-size-d43v8n);
|
|
221
221
|
font-style: var(--awsui-style-placeholder-font-style-d43v8n, italic);
|
|
222
222
|
font-weight: var(--awsui-style-placeholder-font-weight-d43v8n);
|
|
223
223
|
opacity: 1;
|
|
224
224
|
}
|
|
225
|
-
.
|
|
225
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9):-moz-placeholder {
|
|
226
226
|
color: var(--awsui-style-placeholder-color-d43v8n, var(--color-text-input-placeholder-dclg8u, #656871));
|
|
227
227
|
font-size: var(--awsui-style-placeholder-font-size-d43v8n);
|
|
228
228
|
font-style: var(--awsui-style-placeholder-font-style-d43v8n, italic);
|
|
229
229
|
font-weight: var(--awsui-style-placeholder-font-weight-d43v8n);
|
|
230
230
|
opacity: 1;
|
|
231
231
|
}
|
|
232
|
-
.
|
|
232
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9):focus {
|
|
233
233
|
outline: 2px dotted transparent;
|
|
234
234
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-focus-d43v8n, var(--color-border-input-focused-4z0pgn, #006ce0));
|
|
235
235
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-focus-d43v8n, var(--color-border-input-focused-4z0pgn, #006ce0));
|
|
@@ -241,7 +241,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
241
241
|
color: var(--awsui-style-color-focus-d43v8n, var(--color-text-body-default-vvtq8u, #0f141a));
|
|
242
242
|
background-color: var(--awsui-style-background-focus-d43v8n, var(--color-background-input-default-ifz5bb, #ffffff));
|
|
243
243
|
}
|
|
244
|
-
.
|
|
244
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9):disabled {
|
|
245
245
|
background-color: var(--awsui-style-background-disabled-d43v8n, var(--color-background-input-disabled-dihaja, #ebebf0));
|
|
246
246
|
border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-disabled-d43v8n, var(--color-border-input-disabled-zgnzvk, #ebebf0));
|
|
247
247
|
border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-disabled-d43v8n, var(--color-border-input-disabled-zgnzvk, #ebebf0));
|
|
@@ -249,87 +249,87 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
249
249
|
cursor: default;
|
|
250
250
|
box-shadow: var(--awsui-style-box-shadow-disabled-d43v8n);
|
|
251
251
|
}
|
|
252
|
-
.
|
|
253
|
-
color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
|
|
252
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9):disabled::-webkit-input-placeholder {
|
|
253
|
+
color: var(--awsui-style-placeholder-color-d43v8n, var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb));
|
|
254
254
|
-webkit-user-select: none;
|
|
255
255
|
user-select: none;
|
|
256
256
|
}
|
|
257
|
-
.
|
|
258
|
-
color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
|
|
257
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9):disabled::-moz-placeholder {
|
|
258
|
+
color: var(--awsui-style-placeholder-color-d43v8n, var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb));
|
|
259
259
|
opacity: 1;
|
|
260
260
|
}
|
|
261
|
-
.
|
|
262
|
-
color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
|
|
261
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9):disabled:-moz-placeholder {
|
|
262
|
+
color: var(--awsui-style-placeholder-color-d43v8n, var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb));
|
|
263
263
|
opacity: 1;
|
|
264
264
|
}
|
|
265
|
-
.
|
|
265
|
+
.awsui_input_2rhyz_i4lok_149:not(#\9):invalid {
|
|
266
266
|
box-shadow: none;
|
|
267
267
|
}
|
|
268
|
-
.
|
|
268
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-invalid_2rhyz_i4lok_266:not(#\9) {
|
|
269
269
|
color: var(--awsui-style-color-default-d43v8n, var(--color-text-status-error-ksqavh, #db0000));
|
|
270
270
|
border-color: var(--awsui-style-border-color-default-d43v8n, var(--color-text-status-error-ksqavh, #db0000));
|
|
271
271
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
272
272
|
border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
|
|
273
273
|
}
|
|
274
|
-
.
|
|
275
|
-
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
274
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-invalid_2rhyz_i4lok_266:not(#\9):focus {
|
|
275
|
+
box-shadow: var(--awsui-style-box-shadow-focus-d43v8n, 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0));
|
|
276
276
|
}
|
|
277
|
-
.
|
|
277
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-invalid_2rhyz_i4lok_266.awsui_input-has-icon-left_2rhyz_i4lok_275:not(#\9) {
|
|
278
278
|
padding-inline-start: calc(var(--space-field-icon-offset-ikwzwx, 36px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
279
279
|
}
|
|
280
|
-
.
|
|
280
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-warning_2rhyz_i4lok_278:not(#\9) {
|
|
281
281
|
color: var(--awsui-style-color-default-d43v8n, var(--color-text-status-warning-6meo06, #855900));
|
|
282
282
|
border-color: var(--awsui-style-border-color-default-d43v8n, var(--color-text-status-warning-6meo06, #855900));
|
|
283
283
|
padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
284
284
|
border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
|
|
285
285
|
}
|
|
286
|
-
.
|
|
287
|
-
box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
|
|
286
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-warning_2rhyz_i4lok_278:not(#\9):focus {
|
|
287
|
+
box-shadow: var(--awsui-style-box-shadow-focus-d43v8n, 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0));
|
|
288
288
|
}
|
|
289
|
-
.
|
|
289
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-warning_2rhyz_i4lok_278.awsui_input-has-icon-left_2rhyz_i4lok_275:not(#\9) {
|
|
290
290
|
padding-inline-start: calc(var(--space-field-icon-offset-ikwzwx, 36px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
|
|
291
291
|
}
|
|
292
|
-
.
|
|
292
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-type-search_2rhyz_i4lok_290:not(#\9) {
|
|
293
293
|
box-sizing: border-box;
|
|
294
294
|
-webkit-appearance: none;
|
|
295
295
|
}
|
|
296
|
-
.
|
|
296
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-type-search_2rhyz_i4lok_290:not(#\9)::-webkit-search-decoration {
|
|
297
297
|
-webkit-appearance: none;
|
|
298
298
|
}
|
|
299
|
-
.
|
|
299
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-type-search_2rhyz_i4lok_290:not(#\9)::-webkit-search-cancel-button {
|
|
300
300
|
display: none;
|
|
301
301
|
}
|
|
302
|
-
.
|
|
302
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-has-icon-left_2rhyz_i4lok_275:not(#\9) {
|
|
303
303
|
padding-inline-start: var(--space-field-icon-offset-ikwzwx, 36px);
|
|
304
304
|
}
|
|
305
|
-
.
|
|
305
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-has-icon-right_2rhyz_i4lok_303:not(#\9) {
|
|
306
306
|
padding-inline-end: var(--space-field-icon-offset-ikwzwx, 36px);
|
|
307
307
|
}
|
|
308
|
-
.
|
|
308
|
+
.awsui_input_2rhyz_i4lok_149.awsui_input-has-no-border-radius_2rhyz_i4lok_306:not(#\9) {
|
|
309
309
|
border-start-start-radius: var(--border-radius-dropdown-fgc2a1, 8px);
|
|
310
310
|
border-start-end-radius: var(--border-radius-dropdown-fgc2a1, 8px);
|
|
311
311
|
border-end-start-radius: var(--border-radius-dropdown-fgc2a1, 8px);
|
|
312
312
|
border-end-end-radius: var(--border-radius-dropdown-fgc2a1, 8px);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
|
-
.awsui_input-
|
|
315
|
+
.awsui_input-container_2rhyz_i4lok_313:not(#\9) {
|
|
316
316
|
display: flex;
|
|
317
317
|
position: relative;
|
|
318
318
|
}
|
|
319
319
|
|
|
320
|
-
.awsui_input-icon-
|
|
320
|
+
.awsui_input-icon-left_2rhyz_i4lok_318:not(#\9) {
|
|
321
321
|
position: absolute;
|
|
322
322
|
pointer-events: none;
|
|
323
323
|
inset-inline-start: var(--space-field-horizontal-0aq2ch, 12px);
|
|
324
324
|
inset-block-start: calc(50% - var(--line-height-body-m-2mh3ke, 20px) / 2);
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
.awsui_input-icon-
|
|
327
|
+
.awsui_input-icon-right_2rhyz_i4lok_325:not(#\9) {
|
|
328
328
|
position: absolute;
|
|
329
329
|
inset-block-start: calc(calc(50% - var(--line-height-body-m-2mh3ke, 20px) / 2) - var(--space-xxxs-pajhad, 2px));
|
|
330
330
|
inset-inline-end: calc(var(--space-field-horizontal-0aq2ch, 12px) - var(--space-xxs-hwfkai, 4px));
|
|
331
331
|
}
|
|
332
332
|
|
|
333
|
-
.awsui_input-button-
|
|
333
|
+
.awsui_input-button-right_2rhyz_i4lok_331:not(#\9) {
|
|
334
334
|
/* used in test-utils */
|
|
335
335
|
}
|
|
@@ -2,18 +2,18 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"root": "
|
|
6
|
-
"input": "
|
|
7
|
-
"input-readonly": "awsui_input-
|
|
8
|
-
"input-invalid": "awsui_input-
|
|
9
|
-
"input-has-icon-left": "awsui_input-has-icon-
|
|
10
|
-
"input-warning": "awsui_input-
|
|
11
|
-
"input-type-search": "awsui_input-type-
|
|
12
|
-
"input-has-icon-right": "awsui_input-has-icon-
|
|
13
|
-
"input-has-no-border-radius": "awsui_input-has-no-border-
|
|
14
|
-
"input-container": "awsui_input-
|
|
15
|
-
"input-icon-left": "awsui_input-icon-
|
|
16
|
-
"input-icon-right": "awsui_input-icon-
|
|
17
|
-
"input-button-right": "awsui_input-button-
|
|
5
|
+
"root": "awsui_root_2rhyz_i4lok_145",
|
|
6
|
+
"input": "awsui_input_2rhyz_i4lok_149",
|
|
7
|
+
"input-readonly": "awsui_input-readonly_2rhyz_i4lok_203",
|
|
8
|
+
"input-invalid": "awsui_input-invalid_2rhyz_i4lok_266",
|
|
9
|
+
"input-has-icon-left": "awsui_input-has-icon-left_2rhyz_i4lok_275",
|
|
10
|
+
"input-warning": "awsui_input-warning_2rhyz_i4lok_278",
|
|
11
|
+
"input-type-search": "awsui_input-type-search_2rhyz_i4lok_290",
|
|
12
|
+
"input-has-icon-right": "awsui_input-has-icon-right_2rhyz_i4lok_303",
|
|
13
|
+
"input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_i4lok_306",
|
|
14
|
+
"input-container": "awsui_input-container_2rhyz_i4lok_313",
|
|
15
|
+
"input-icon-left": "awsui_input-icon-left_2rhyz_i4lok_318",
|
|
16
|
+
"input-icon-right": "awsui_input-icon-right_2rhyz_i4lok_325",
|
|
17
|
+
"input-button-right": "awsui_input-button-right_2rhyz_i4lok_331"
|
|
18
18
|
};
|
|
19
19
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { AutosuggestProps } from '../../../autosuggest/interfaces';
|
|
3
|
-
import { BaseChangeDetail, BaseInputProps, InputAutoCorrect, InputClearLabel, InputKeyEvents } from '../../../input/interfaces';
|
|
3
|
+
import { BaseChangeDetail, BaseInputProps, InputAutoCorrect, InputClearLabel, InputKeyEvents, InputProps } from '../../../input/interfaces';
|
|
4
4
|
import { BaseComponentProps } from '../../base-component';
|
|
5
5
|
import { FormFieldValidationControlProps } from '../../context/form-field-context';
|
|
6
6
|
import { NonCancelableEventHandler } from '../../events';
|
|
@@ -21,6 +21,7 @@ interface AutosuggestInputProps extends BaseComponentProps, BaseInputProps, Inpu
|
|
|
21
21
|
onPressArrowDown?: () => void;
|
|
22
22
|
onPressArrowUp?: () => void;
|
|
23
23
|
onPressEnter?: () => boolean;
|
|
24
|
+
style?: InputProps['style'];
|
|
24
25
|
}
|
|
25
26
|
interface AutosuggestInputFocusOptions {
|
|
26
27
|
preventDropdown?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/autosuggest-input/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAGrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/components/autosuggest-input/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAgE,MAAM,OAAO,CAAC;AAGrF,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EACL,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB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GAAG;IAC/D,KAAK,CAAC,OAAO,CAAC,EAAE,4BAA4B,GAAG,IAAI,CAAC;IACpD,IAAI,IAAI,IAAI,CAAC;IACb,KAAK,IAAI,IAAI,CAAC;CACf;AAED,QAAA,MAAM,gBAAgB,mGAgRrB,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -11,7 +11,7 @@ import { nodeBelongs } from '../../utils/node-belongs';
|
|
|
11
11
|
import { processAttributes } from '../../utils/with-native-attributes';
|
|
12
12
|
import Dropdown from '../dropdown';
|
|
13
13
|
import styles from './styles.css.js';
|
|
14
|
-
const AutosuggestInput = React.forwardRef(({ value, onChange, onBlur, onFocus, onKeyUp, onKeyDown, name, placeholder, disabled, readOnly, autoFocus, ariaLabel, ariaRequired, disableBrowserAutocorrect = false, expandToViewport, ariaControls, ariaActivedescendant, clearAriaLabel, dropdownExpanded = true, dropdownContentKey, dropdownContentFocusable = false, dropdownContent = null, dropdownFooter = null, dropdownWidth, loopFocus, nativeInputAttributes, onCloseDropdown, onDelayedInput, onPressArrowDown, onPressArrowUp, onPressEnter, __internalRootRef, ...restProps }, ref) => {
|
|
14
|
+
const AutosuggestInput = React.forwardRef(({ value, onChange, onBlur, onFocus, onKeyUp, onKeyDown, name, placeholder, disabled, readOnly, autoFocus, ariaLabel, ariaRequired, disableBrowserAutocorrect = false, expandToViewport, ariaControls, ariaActivedescendant, clearAriaLabel, dropdownExpanded = true, dropdownContentKey, dropdownContentFocusable = false, dropdownContent = null, dropdownFooter = null, dropdownWidth, loopFocus, nativeInputAttributes, onCloseDropdown, onDelayedInput, onPressArrowDown, onPressArrowUp, onPressEnter, style, __internalRootRef, ...restProps }, ref) => {
|
|
15
15
|
const baseProps = getBaseProps(restProps);
|
|
16
16
|
const formFieldContext = useFormFieldContext(restProps);
|
|
17
17
|
const inputRef = useRef(null);
|
|
@@ -174,7 +174,7 @@ const AutosuggestInput = React.forwardRef(({ value, onChange, onBlur, onFocus, o
|
|
|
174
174
|
}
|
|
175
175
|
};
|
|
176
176
|
return (React.createElement("div", { ...baseProps, className: clsx(baseProps.className, styles.root), ref: __internalRootRef },
|
|
177
|
-
React.createElement(Dropdown, { minWidth: dropdownWidth, stretchWidth: !dropdownWidth, stretchBeyondTriggerWidth: true, contentKey: dropdownContentKey, onFocus: handleFocus, onBlur: handleBlur, trigger: React.createElement(InternalInput, { type: "visualSearch", value: value, onChange: event => handleChange(event.detail.value), __onDelayedInput: event => handleDelayedInput(event.detail.value), onKeyDown: handleKeyDown, onKeyUp: onKeyUp, disabled: disabled, disableBrowserAutocorrect: disableBrowserAutocorrect, readOnly: readOnly, ariaRequired: ariaRequired, clearAriaLabel: clearAriaLabel, ref: inputRef, autoComplete: false, nativeInputAttributes: processAttributes(nativeAttributes, nativeInputAttributes, 'Autosuggest'), __skipNativeAttributesWarnings: Object.keys(nativeAttributes), ...formFieldContext }), onMouseDown: handleDropdownMouseDown, open: open && (!!dropdownContent || !!dropdownFooter), footer: dropdownFooterRef && (React.createElement("div", { ref: dropdownFooterRef, className: styles['dropdown-footer'], onKeyDown: handleDropdownKeyDown }, open && dropdownFooter ? dropdownFooter : null)), expandToViewport: expandToViewport, loopFocus: loopFocus }, open && dropdownContent ? (React.createElement("div", { ref: dropdownContentRef, className: styles['dropdown-content'] }, dropdownContent)) : null)));
|
|
177
|
+
React.createElement(Dropdown, { minWidth: dropdownWidth, stretchWidth: !dropdownWidth, stretchBeyondTriggerWidth: true, contentKey: dropdownContentKey, onFocus: handleFocus, onBlur: handleBlur, trigger: React.createElement(InternalInput, { type: "visualSearch", value: value, onChange: event => handleChange(event.detail.value), __onDelayedInput: event => handleDelayedInput(event.detail.value), onKeyDown: handleKeyDown, onKeyUp: onKeyUp, disabled: disabled, disableBrowserAutocorrect: disableBrowserAutocorrect, readOnly: readOnly, ariaRequired: ariaRequired, clearAriaLabel: clearAriaLabel, ref: inputRef, autoComplete: false, nativeInputAttributes: processAttributes(nativeAttributes, nativeInputAttributes, 'Autosuggest'), __skipNativeAttributesWarnings: Object.keys(nativeAttributes), style: style, ...formFieldContext }), onMouseDown: handleDropdownMouseDown, open: open && (!!dropdownContent || !!dropdownFooter), footer: dropdownFooterRef && (React.createElement("div", { ref: dropdownFooterRef, className: styles['dropdown-footer'], onKeyDown: handleDropdownKeyDown }, open && dropdownFooter ? dropdownFooter : null)), expandToViewport: expandToViewport, loopFocus: loopFocus }, open && dropdownContent ? (React.createElement("div", { ref: dropdownContentRef, className: styles['dropdown-content'] }, dropdownContent)) : null)));
|
|
178
178
|
});
|
|
179
179
|
export default AutosuggestInput;
|
|
180
180
|
//# sourceMappingURL=index.js.map
|