@cloudscape-design/components 3.0.1119 → 3.0.1121

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.
Files changed (123) hide show
  1. package/alert/styles.css.js +27 -27
  2. package/alert/styles.scoped.css +50 -50
  3. package/alert/styles.selectors.js +27 -27
  4. package/annotation-context/annotation/styles.css.js +24 -24
  5. package/annotation-context/annotation/styles.scoped.css +32 -32
  6. package/annotation-context/annotation/styles.selectors.js +24 -24
  7. package/app-layout/notifications/styles.css.js +3 -3
  8. package/app-layout/notifications/styles.scoped.css +7 -7
  9. package/app-layout/notifications/styles.selectors.js +3 -3
  10. package/app-layout/visual-refresh/styles.css.js +86 -86
  11. package/app-layout/visual-refresh/styles.scoped.css +258 -258
  12. package/app-layout/visual-refresh/styles.selectors.js +86 -86
  13. package/app-layout/visual-refresh-toolbar/drawer/styles.css.js +27 -27
  14. package/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +84 -84
  15. package/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +27 -27
  16. package/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  17. package/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
  18. package/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  19. package/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +27 -27
  20. package/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +54 -54
  21. package/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +27 -27
  22. package/attribute-editor/styles.css.js +15 -15
  23. package/attribute-editor/styles.scoped.css +28 -28
  24. package/attribute-editor/styles.selectors.js +15 -15
  25. package/breadcrumb-group/item/styles.css.js +7 -7
  26. package/breadcrumb-group/item/styles.scoped.css +28 -28
  27. package/breadcrumb-group/item/styles.selectors.js +7 -7
  28. package/button/styles.css.js +22 -22
  29. package/button/styles.scoped.css +256 -256
  30. package/button/styles.selectors.js +22 -22
  31. package/button-dropdown/item-element/styles.css.js +16 -16
  32. package/button-dropdown/item-element/styles.scoped.css +27 -27
  33. package/button-dropdown/item-element/styles.selectors.js +16 -16
  34. package/checkbox/styles.css.js +3 -3
  35. package/checkbox/styles.scoped.css +11 -11
  36. package/checkbox/styles.selectors.js +3 -3
  37. package/content-layout/styles.css.js +14 -14
  38. package/content-layout/styles.scoped.css +27 -27
  39. package/content-layout/styles.selectors.js +14 -14
  40. package/flashbar/styles.css.js +50 -50
  41. package/flashbar/styles.scoped.css +187 -187
  42. package/flashbar/styles.selectors.js +50 -50
  43. package/help-panel/styles.css.js +6 -6
  44. package/help-panel/styles.scoped.css +73 -73
  45. package/help-panel/styles.selectors.js +6 -6
  46. package/input/index.d.ts.map +1 -1
  47. package/input/index.js +1 -1
  48. package/input/interfaces.d.ts +0 -47
  49. package/input/interfaces.d.ts.map +1 -1
  50. package/input/interfaces.js.map +1 -1
  51. package/input/internal-do-not-use-core.js +2 -3
  52. package/input/internal-do-not-use-core.js.map +1 -1
  53. package/input/internal.d.ts.map +1 -1
  54. package/input/internal.js +2 -3
  55. package/input/internal.js.map +1 -1
  56. package/input/styles.css.js +13 -13
  57. package/input/styles.scoped.css +49 -66
  58. package/input/styles.selectors.js +13 -13
  59. package/internal/base-component/styles.scoped.css +1 -1
  60. package/internal/components/drag-handle-wrapper/styles.css.js +20 -20
  61. package/internal/components/drag-handle-wrapper/styles.scoped.css +48 -48
  62. package/internal/components/drag-handle-wrapper/styles.selectors.js +20 -20
  63. package/internal/components/dropdown/styles.css.js +20 -20
  64. package/internal/components/dropdown/styles.scoped.css +38 -38
  65. package/internal/components/dropdown/styles.selectors.js +20 -20
  66. package/internal/components/token-list/styles.css.js +10 -10
  67. package/internal/components/token-list/styles.scoped.css +25 -25
  68. package/internal/components/token-list/styles.selectors.js +10 -10
  69. package/internal/environment.js +2 -2
  70. package/internal/environment.json +2 -2
  71. package/internal/generated/custom-css-properties/index.d.ts +0 -12
  72. package/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  73. package/internal/generated/custom-css-properties/index.js +86 -98
  74. package/internal/generated/custom-css-properties/index.js.map +1 -1
  75. package/internal/manifest.json +1 -1
  76. package/internal/plugins/widget/interfaces.d.ts +1 -1
  77. package/internal/plugins/widget/interfaces.d.ts.map +1 -1
  78. package/internal/plugins/widget/interfaces.js.map +1 -1
  79. package/link/styles.css.js +20 -20
  80. package/link/styles.scoped.css +103 -103
  81. package/link/styles.selectors.js +20 -20
  82. package/package.json +3 -1
  83. package/radio-group/styles.css.js +10 -10
  84. package/radio-group/styles.scoped.css +22 -22
  85. package/radio-group/styles.selectors.js +10 -10
  86. package/select/parts/filter.d.ts +1 -1
  87. package/select/parts/filter.d.ts.map +1 -1
  88. package/slider/styles.css.js +26 -26
  89. package/slider/styles.scoped.css +86 -86
  90. package/slider/styles.selectors.js +26 -26
  91. package/spinner/styles.css.js +13 -13
  92. package/spinner/styles.scoped.css +39 -39
  93. package/spinner/styles.selectors.js +13 -13
  94. package/status-indicator/internal.d.ts +14 -1
  95. package/status-indicator/internal.d.ts.map +1 -1
  96. package/status-indicator/internal.js +6 -3
  97. package/status-indicator/internal.js.map +1 -1
  98. package/steps/index.js +11 -13
  99. package/steps/interfaces.d.ts +18 -0
  100. package/steps/interfaces.d.ts.map +1 -1
  101. package/steps/interfaces.js.map +1 -1
  102. package/steps/internal-do-not-use-core.js +20 -0
  103. package/steps/internal.d.ts +2 -0
  104. package/steps/internal.d.ts.map +1 -1
  105. package/steps/internal.js +31 -7
  106. package/steps/internal.js.map +1 -1
  107. package/steps/styles.css.js +9 -6
  108. package/steps/styles.scoped.css +58 -7
  109. package/steps/styles.selectors.js +9 -6
  110. package/tag-editor/styles.css.js +3 -3
  111. package/tag-editor/styles.scoped.css +13 -13
  112. package/tag-editor/styles.selectors.js +3 -3
  113. package/text-content/styles.css.js +1 -1
  114. package/text-content/styles.scoped.css +66 -66
  115. package/text-content/styles.selectors.js +1 -1
  116. package/toggle/styles.css.js +10 -10
  117. package/toggle/styles.scoped.css +23 -23
  118. package/toggle/styles.selectors.js +10 -10
  119. package/input/styles.d.ts +0 -2
  120. package/input/styles.d.ts.map +0 -1
  121. package/input/styles.js +0 -42
  122. package/input/styles.js.map +0 -1
  123. /package/steps/{index.js.map → internal-do-not-use-core.js.map} +0 -0
@@ -10,7 +10,7 @@ import { applyDisplayName } from '../internal/utils/apply-display-name';
10
10
  import InternalInput from './internal';
11
11
  import styles from './styles.css.js';
12
12
  const Input = React.forwardRef((_a, ref) => {
13
- var { value, type = 'text', step, inputMode, autoComplete = true, spellcheck, disabled, readOnly, disableBrowserAutocorrect, onKeyDown, onKeyUp, onChange, onBlur, onFocus, ariaRequired, name, placeholder, autoFocus, ariaLabel, ariaLabelledby, ariaDescribedby, invalid, warning, controlId, clearAriaLabel, nativeInputAttributes, style } = _a, rest = __rest(_a, ["value", "type", "step", "inputMode", "autoComplete", "spellcheck", "disabled", "readOnly", "disableBrowserAutocorrect", "onKeyDown", "onKeyUp", "onChange", "onBlur", "onFocus", "ariaRequired", "name", "placeholder", "autoFocus", "ariaLabel", "ariaLabelledby", "ariaDescribedby", "invalid", "warning", "controlId", "clearAriaLabel", "nativeInputAttributes", "style"]);
13
+ var { value, type = 'text', step, inputMode, autoComplete = true, spellcheck, disabled, readOnly, disableBrowserAutocorrect, onKeyDown, onKeyUp, onChange, onBlur, onFocus, ariaRequired, name, placeholder, autoFocus, ariaLabel, ariaLabelledby, ariaDescribedby, invalid, warning, controlId, clearAriaLabel, nativeInputAttributes } = _a, rest = __rest(_a, ["value", "type", "step", "inputMode", "autoComplete", "spellcheck", "disabled", "readOnly", "disableBrowserAutocorrect", "onKeyDown", "onKeyUp", "onChange", "onBlur", "onFocus", "ariaRequired", "name", "placeholder", "autoFocus", "ariaLabel", "ariaLabelledby", "ariaDescribedby", "invalid", "warning", "controlId", "clearAriaLabel", "nativeInputAttributes"]);
14
14
  const baseComponentProps = useBaseComponent('Input', {
15
15
  props: { autoComplete, autoFocus, disableBrowserAutocorrect, inputMode, readOnly, spellcheck, type },
16
16
  });
@@ -51,8 +51,7 @@ const Input = React.forwardRef((_a, ref) => {
51
51
  warning,
52
52
  controlId,
53
53
  clearAriaLabel,
54
- nativeInputAttributes,
55
- style }), { className: clsx(styles.root, baseProps.className), __inheritFormFieldProps: true, __injectAnalyticsComponentMetadata: true })));
54
+ nativeInputAttributes }), { className: clsx(styles.root, baseProps.className), __inheritFormFieldProps: true, __injectAnalyticsComponentMetadata: true })));
56
55
  });
57
56
  applyDisplayName(Input, 'Input');
58
57
  export default Input;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;;AACb,OAAO,KAAK,EAAE,EAAO,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,aAAa,MAAM,YAAY,CAAC;AAEvC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAC5B,CACE,EA6Ba,EACb,GAAwB,EACxB,EAAE;QA/BF,EACE,KAAK,EACL,IAAI,GAAG,MAAM,EACb,IAAI,EACJ,SAAS,EACT,YAAY,GAAG,IAAI,EACnB,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,yBAAyB,EACzB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,SAAS,EACT,SAAS,EACT,cAAc,EACd,eAAe,EACf,OAAO,EACP,OAAO,EACP,SAAS,EACT,cAAc,EACd,qBAAqB,EACrB,KAAK,OAEM,EADR,IAAI,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AACjC,eAAe,KAAK,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React, { Ref, useImperativeHandle, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { InputProps } from './interfaces';\nimport InternalInput from './internal';\n\nimport styles from './styles.css.js';\n\nexport { InputProps };\n\nconst Input = React.forwardRef(\n (\n {\n value,\n type = 'text',\n step,\n inputMode,\n autoComplete = true,\n spellcheck,\n disabled,\n readOnly,\n disableBrowserAutocorrect,\n onKeyDown,\n onKeyUp,\n onChange,\n onBlur,\n onFocus,\n ariaRequired,\n name,\n placeholder,\n autoFocus,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n invalid,\n warning,\n controlId,\n clearAriaLabel,\n nativeInputAttributes,\n style,\n ...rest\n }: InputProps,\n ref: Ref<InputProps.Ref>\n ) => {\n const baseComponentProps = useBaseComponent('Input', {\n props: { autoComplete, autoFocus, disableBrowserAutocorrect, inputMode, readOnly, spellcheck, type },\n });\n const baseProps = getBaseProps(rest);\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n focus(...args: Parameters<HTMLElement['focus']>) {\n inputRef.current?.focus(...args);\n },\n select() {\n inputRef.current?.select();\n },\n }),\n [inputRef]\n );\n\n return (\n <InternalInput\n ref={inputRef}\n {...{\n ...baseProps,\n ...baseComponentProps,\n autoComplete,\n ariaLabel,\n ariaRequired,\n autoFocus,\n disabled,\n disableBrowserAutocorrect,\n name,\n onKeyDown,\n onKeyUp,\n onChange,\n onBlur,\n onFocus,\n placeholder,\n readOnly,\n type,\n step,\n inputMode,\n spellcheck,\n value,\n ariaDescribedby,\n ariaLabelledby,\n invalid,\n warning,\n controlId,\n clearAriaLabel,\n nativeInputAttributes,\n style,\n }}\n className={clsx(styles.root, baseProps.className)}\n __inheritFormFieldProps={true}\n __injectAnalyticsComponentMetadata={true}\n />\n );\n }\n);\n\napplyDisplayName(Input, 'Input');\nexport default Input;\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;;AACb,OAAO,KAAK,EAAE,EAAO,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AAExE,OAAO,aAAa,MAAM,YAAY,CAAC;AAEvC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAIrC,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAC5B,CACE,EA4Ba,EACb,GAAwB,EACxB,EAAE;QA9BF,EACE,KAAK,EACL,IAAI,GAAG,MAAM,EACb,IAAI,EACJ,SAAS,EACT,YAAY,GAAG,IAAI,EACnB,UAAU,EACV,QAAQ,EACR,QAAQ,EACR,yBAAyB,EACzB,SAAS,EACT,OAAO,EACP,QAAQ,EACR,MAAM,EACN,OAAO,EACP,YAAY,EACZ,IAAI,EACJ,WAAW,EACX,SAAS,EACT,SAAS,EACT,cAAc,EACd,eAAe,EACf,OAAO,EACP,OAAO,EACP,SAAS,EACT,cAAc,EACd,qBAAqB,OAEV,EADR,IAAI,cA3BT,sWA4BC,CADQ;IAIT,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,OAAO,EAAE;QACnD,KAAK,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,yBAAyB,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE;KACrG,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,QAAQ,GAAG,MAAM,CAAmB,IAAI,CAAC,CAAC;IAEhD,mBAAmB,CACjB,GAAG,EACH,GAAG,EAAE,CAAC,CAAC;QACL,KAAK,CAAC,GAAG,IAAsC;;YAC7C,MAAA,QAAQ,CAAC,OAAO,0CAAE,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;QACnC,CAAC;QACD,MAAM;;YACJ,MAAA,QAAQ,CAAC,OAAO,0CAAE,MAAM,EAAE,CAAC;QAC7B,CAAC;KACF,CAAC,EACF,CAAC,QAAQ,CAAC,CACX,CAAC;IAEF,OAAO,CACL,oBAAC,aAAa,kBACZ,GAAG,EAAE,QAAQ,kDAER,SAAS,GACT,kBAAkB,KACrB,YAAY;QACZ,SAAS;QACT,YAAY;QACZ,SAAS;QACT,QAAQ;QACR,yBAAyB;QACzB,IAAI;QACJ,SAAS;QACT,OAAO;QACP,QAAQ;QACR,MAAM;QACN,OAAO;QACP,WAAW;QACX,QAAQ;QACR,IAAI;QACJ,IAAI;QACJ,SAAS;QACT,UAAU;QACV,KAAK;QACL,eAAe;QACf,cAAc;QACd,OAAO;QACP,OAAO;QACP,SAAS;QACT,cAAc;QACd,qBAAqB,OAEvB,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,EACjD,uBAAuB,EAAE,IAAI,EAC7B,kCAAkC,EAAE,IAAI,IACxC,CACH,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,gBAAgB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;AACjC,eAAe,KAAK,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React, { Ref, useImperativeHandle, useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { InputProps } from './interfaces';\nimport InternalInput from './internal';\n\nimport styles from './styles.css.js';\n\nexport { InputProps };\n\nconst Input = React.forwardRef(\n (\n {\n value,\n type = 'text',\n step,\n inputMode,\n autoComplete = true,\n spellcheck,\n disabled,\n readOnly,\n disableBrowserAutocorrect,\n onKeyDown,\n onKeyUp,\n onChange,\n onBlur,\n onFocus,\n ariaRequired,\n name,\n placeholder,\n autoFocus,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n invalid,\n warning,\n controlId,\n clearAriaLabel,\n nativeInputAttributes,\n ...rest\n }: InputProps,\n ref: Ref<InputProps.Ref>\n ) => {\n const baseComponentProps = useBaseComponent('Input', {\n props: { autoComplete, autoFocus, disableBrowserAutocorrect, inputMode, readOnly, spellcheck, type },\n });\n const baseProps = getBaseProps(rest);\n\n const inputRef = useRef<HTMLInputElement>(null);\n\n useImperativeHandle(\n ref,\n () => ({\n focus(...args: Parameters<HTMLElement['focus']>) {\n inputRef.current?.focus(...args);\n },\n select() {\n inputRef.current?.select();\n },\n }),\n [inputRef]\n );\n\n return (\n <InternalInput\n ref={inputRef}\n {...{\n ...baseProps,\n ...baseComponentProps,\n autoComplete,\n ariaLabel,\n ariaRequired,\n autoFocus,\n disabled,\n disableBrowserAutocorrect,\n name,\n onKeyDown,\n onKeyUp,\n onChange,\n onBlur,\n onFocus,\n placeholder,\n readOnly,\n type,\n step,\n inputMode,\n spellcheck,\n value,\n ariaDescribedby,\n ariaLabelledby,\n invalid,\n warning,\n controlId,\n clearAriaLabel,\n nativeInputAttributes,\n }}\n className={clsx(styles.root, baseProps.className)}\n __inheritFormFieldProps={true}\n __injectAnalyticsComponentMetadata={true}\n />\n );\n }\n);\n\napplyDisplayName(Input, 'Input');\nexport default Input;\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/input/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsB,MAAM,OAAO,CAAC;AA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AAkC,CAAC,EAAE,OAAO,CAAC;IAC7C,8BAA8B,CAAC,EAAE,YAAY,CAAC;CAC/C;;AA+LD,wBAA+C"}
package/input/internal.js CHANGED
@@ -13,11 +13,10 @@ import { useFormFieldContext } from '../internal/context/form-field-context';
13
13
  import { fireKeyboardEvent, fireNonCancelableEvent } from '../internal/events';
14
14
  import { useDebounceCallback } from '../internal/hooks/use-debounce-callback';
15
15
  import WithNativeAttributes from '../internal/utils/with-native-attributes';
16
- import { getInputStyles } from './styles';
17
16
  import { convertAutoComplete, useSearchProps } from './utils';
18
17
  import styles from './styles.css.js';
19
18
  function InternalInput(_a, ref) {
20
- var { type = 'text', step, inputMode, autoComplete = true, ariaLabel, clearAriaLabel: clearAriaLabelOverride, name, value, placeholder, autoFocus, disabled, readOnly, disableBrowserAutocorrect, spellcheck, __noBorderRadius, __leftIcon, __leftIconVariant = 'subtle', __onLeftIconClick, ariaRequired, __rightIcon, __onRightIconClick, onKeyDown, onKeyUp, onChange, __onDelayedInput, __onBlurWithDetail, onBlur, onFocus, nativeInputAttributes, __internalRootRef, __inheritFormFieldProps, __injectAnalyticsComponentMetadata, __skipNativeAttributesWarnings, style } = _a, rest = __rest(_a, ["type", "step", "inputMode", "autoComplete", "ariaLabel", "clearAriaLabel", "name", "value", "placeholder", "autoFocus", "disabled", "readOnly", "disableBrowserAutocorrect", "spellcheck", "__noBorderRadius", "__leftIcon", "__leftIconVariant", "__onLeftIconClick", "ariaRequired", "__rightIcon", "__onRightIconClick", "onKeyDown", "onKeyUp", "onChange", "__onDelayedInput", "__onBlurWithDetail", "onBlur", "onFocus", "nativeInputAttributes", "__internalRootRef", "__inheritFormFieldProps", "__injectAnalyticsComponentMetadata", "__skipNativeAttributesWarnings", "style"]);
19
+ var { type = 'text', step, inputMode, autoComplete = true, ariaLabel, clearAriaLabel: clearAriaLabelOverride, name, value, placeholder, autoFocus, disabled, readOnly, disableBrowserAutocorrect, spellcheck, __noBorderRadius, __leftIcon, __leftIconVariant = 'subtle', __onLeftIconClick, ariaRequired, __rightIcon, __onRightIconClick, onKeyDown, onKeyUp, onChange, __onDelayedInput, __onBlurWithDetail, onBlur, onFocus, nativeInputAttributes, __internalRootRef, __inheritFormFieldProps, __injectAnalyticsComponentMetadata, __skipNativeAttributesWarnings } = _a, rest = __rest(_a, ["type", "step", "inputMode", "autoComplete", "ariaLabel", "clearAriaLabel", "name", "value", "placeholder", "autoFocus", "disabled", "readOnly", "disableBrowserAutocorrect", "spellcheck", "__noBorderRadius", "__leftIcon", "__leftIconVariant", "__onLeftIconClick", "ariaRequired", "__rightIcon", "__onRightIconClick", "onKeyDown", "onKeyUp", "onChange", "__onDelayedInput", "__onBlurWithDetail", "onBlur", "onFocus", "nativeInputAttributes", "__internalRootRef", "__inheritFormFieldProps", "__injectAnalyticsComponentMetadata", "__skipNativeAttributesWarnings"]);
21
20
  const baseProps = getBaseProps(rest);
22
21
  const i18n = useInternalI18n('input');
23
22
  const fireDelayedInput = useDebounceCallback((value) => fireNonCancelableEvent(__onDelayedInput, { value }));
@@ -103,7 +102,7 @@ function InternalInput(_a, ref) {
103
102
  : copyAnalyticsMetadataAttribute(rest))),
104
103
  __leftIcon && (React.createElement("span", { onClick: __onLeftIconClick, className: styles['input-icon-left'] },
105
104
  React.createElement(InternalIcon, { name: __leftIcon, variant: disabled || readOnly ? 'disabled' : __leftIconVariant }))),
106
- React.createElement(WithNativeAttributes, Object.assign({}, attributes, { tag: "input", componentName: "Input", nativeAttributes: nativeInputAttributes, skipWarnings: __skipNativeAttributesWarnings, ref: mergedRef, style: getInputStyles(style) })),
105
+ React.createElement(WithNativeAttributes, Object.assign({}, attributes, { tag: "input", componentName: "Input", nativeAttributes: nativeInputAttributes, skipWarnings: __skipNativeAttributesWarnings, ref: mergedRef })),
107
106
  __rightIcon && (React.createElement("span", Object.assign({ className: styles['input-icon-right'] }, (__rightIcon === 'close'
108
107
  ? getAnalyticsMetadataAttribute({
109
108
  action: 'clearInput',
@@ -1 +1 @@
1
- {"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AACJ,CAAC;AAED,eAAe,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,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 clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\nimport {\n copyAnalyticsMetadataAttribute,\n getAnalyticsMetadataAttribute,\n} from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalButton from '../button/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport { BaseComponentProps, getBaseProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps, useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireKeyboardEvent, fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useDebounceCallback } from '../internal/hooks/use-debounce-callback';\nimport WithNativeAttributes, { SkipWarnings } from '../internal/utils/with-native-attributes';\nimport {\n GeneratedAnalyticsMetadataInputClearInput,\n GeneratedAnalyticsMetadataInputComponent,\n} from './analytics-metadata/interfaces';\nimport { BaseChangeDetail, BaseInputProps, InputAutoCorrect, InputProps } from './interfaces';\nimport { getInputStyles } from './styles';\nimport { convertAutoComplete, useSearchProps } from './utils';\n\nimport styles from './styles.css.js';\n\nexport interface InternalInputProps\n extends BaseComponentProps,\n BaseInputProps,\n Omit<InputProps, 'type'>,\n InputAutoCorrect,\n FormFieldValidationControlProps,\n InternalBaseComponentProps {\n type?: InputProps['type'] | 'visualSearch';\n __leftIcon?: IconProps['name'];\n __leftIconVariant?: IconProps['variant'];\n __onLeftIconClick?: () => void;\n\n __rightIcon?: IconProps['name'];\n __onRightIconClick?: () => void;\n\n __noBorderRadius?: boolean;\n\n __onDelayedInput?: NonCancelableEventHandler<BaseChangeDetail>;\n __onBlurWithDetail?: NonCancelableEventHandler<{ relatedTarget: Node | null }>;\n\n __inheritFormFieldProps?: boolean;\n __injectAnalyticsComponentMetadata?: boolean;\n __skipNativeAttributesWarnings?: SkipWarnings;\n}\n\nfunction InternalInput(\n {\n type = 'text',\n step,\n inputMode,\n autoComplete = true,\n ariaLabel,\n clearAriaLabel: clearAriaLabelOverride,\n name,\n value,\n placeholder,\n autoFocus,\n disabled,\n readOnly,\n disableBrowserAutocorrect,\n spellcheck,\n __noBorderRadius,\n\n __leftIcon,\n __leftIconVariant = 'subtle',\n __onLeftIconClick,\n\n ariaRequired,\n\n __rightIcon,\n __onRightIconClick,\n\n onKeyDown,\n onKeyUp,\n onChange,\n __onDelayedInput,\n __onBlurWithDetail,\n onBlur,\n onFocus,\n nativeInputAttributes,\n __internalRootRef,\n __inheritFormFieldProps,\n __injectAnalyticsComponentMetadata,\n __skipNativeAttributesWarnings,\n style,\n ...rest\n }: InternalInputProps,\n ref: Ref<HTMLInputElement>\n) {\n const baseProps = getBaseProps(rest);\n const i18n = useInternalI18n('input');\n const fireDelayedInput = useDebounceCallback((value: string) => fireNonCancelableEvent(__onDelayedInput, { value }));\n\n const handleChange = (value: string) => {\n fireDelayedInput(value);\n fireNonCancelableEvent(onChange, { value });\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n const searchProps = useSearchProps(type, disabled, readOnly, value, inputRef, handleChange);\n __leftIcon = __leftIcon ?? searchProps.__leftIcon;\n __rightIcon = __rightIcon ?? searchProps.__rightIcon;\n __onRightIconClick = __onRightIconClick ?? searchProps.__onRightIconClick;\n\n const formFieldContext = useFormFieldContext(rest);\n const { ariaLabelledby, ariaDescribedby, controlId, invalid, warning } = __inheritFormFieldProps\n ? formFieldContext\n : rest;\n\n const attributes: React.InputHTMLAttributes<HTMLInputElement> = {\n 'aria-label': ariaLabel,\n // aria-labelledby has precedence over aria-label in accessible name calculation.\n // When aria-label is provided for Input, it should override aria-labelledBy from form-field context.\n // If both aria-label and aria-labelledby come from Input props, aria-labelledby will be used in accessible name\n 'aria-labelledby': ariaLabel && !rest.ariaLabelledby ? undefined : ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n name,\n placeholder,\n autoFocus,\n id: controlId,\n className: clsx(\n styles.input,\n type && styles[`input-type-${type}`],\n __rightIcon && styles['input-has-icon-right'],\n __leftIcon && styles['input-has-icon-left'],\n __noBorderRadius && styles['input-has-no-border-radius'],\n {\n [styles['input-readonly']]: readOnly,\n [styles['input-invalid']]: invalid,\n [styles['input-warning']]: warning && !invalid,\n }\n ),\n autoComplete: convertAutoComplete(autoComplete),\n disabled,\n readOnly,\n type,\n step,\n inputMode,\n spellCheck: spellcheck,\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 => handleChange(event.target.value)),\n onBlur: e => {\n fireNonCancelableEvent(onBlur);\n fireNonCancelableEvent(__onBlurWithDetail, { relatedTarget: e.relatedTarget });\n },\n onFocus: onFocus && (() => fireNonCancelableEvent(onFocus)),\n };\n\n if (type === 'number') {\n // Chrome and Safari have a weird built-in behavior of letting focused\n // number inputs be controlled by scrolling on them. However, they don't\n // lock the browser's scroll, so it's very easy to accidentally increment\n // the input while scrolling down the page.\n attributes.onWheel = event => event.currentTarget.blur();\n }\n\n if (disableBrowserAutocorrect) {\n attributes.autoCorrect = 'off';\n attributes.autoCapitalize = 'off';\n }\n\n // ensure aria properties are string literal \"true\"\n if (ariaRequired) {\n attributes['aria-required'] = 'true';\n }\n if (invalid) {\n attributes['aria-invalid'] = 'true';\n }\n\n const mergedRef = useMergeRefs(ref, inputRef);\n\n // type = \"visualSearch\" renders a type=\"text' input\n if (attributes.type === 'visualSearch') {\n attributes.type = 'text';\n }\n\n const componentAnalyticsMetadata: GeneratedAnalyticsMetadataInputComponent = {\n name: 'awsui.Input',\n label: 'input',\n properties: {\n value: value || '',\n },\n };\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles['input-container'])}\n ref={__internalRootRef}\n dir={type === 'email' ? 'ltr' : undefined}\n {...(__injectAnalyticsComponentMetadata\n ? getAnalyticsMetadataAttribute({ component: componentAnalyticsMetadata })\n : copyAnalyticsMetadataAttribute(rest))}\n >\n {__leftIcon && (\n <span onClick={__onLeftIconClick} className={styles['input-icon-left']}>\n <InternalIcon name={__leftIcon} variant={disabled || readOnly ? 'disabled' : __leftIconVariant} />\n </span>\n )}\n <WithNativeAttributes\n {...attributes}\n tag=\"input\"\n componentName=\"Input\"\n nativeAttributes={nativeInputAttributes}\n skipWarnings={__skipNativeAttributesWarnings}\n ref={mergedRef}\n style={getInputStyles(style)}\n />\n {__rightIcon && (\n <span\n className={styles['input-icon-right']}\n {...(__rightIcon === 'close'\n ? getAnalyticsMetadataAttribute({\n action: 'clearInput',\n } as Partial<GeneratedAnalyticsMetadataInputClearInput>)\n : {})}\n >\n <InternalButton\n // Used for test utils\n className={styles['input-button-right']}\n variant=\"inline-icon-pointer-target\"\n formAction=\"none\"\n iconName={__rightIcon}\n onClick={__onRightIconClick}\n ariaLabel={i18n('clearAriaLabel', clearAriaLabelOverride)}\n disabled={disabled}\n />\n </span>\n )}\n </div>\n );\n}\n\nexport default React.forwardRef(InternalInput);\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/input/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAO,MAAM,EAAE,MAAM,OAAO,CAAC;AAC3C,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAC7E,OAAO,EACL,8BAA8B,EAC9B,6BAA6B,GAC9B,MAAM,kEAAkE,CAAC;AAE1E,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,O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,CAAC,CAAC,iBAAiB,GAAI,CAC7F,CACR;QACD,oBAAC,oBAAoB,oBACf,UAAU,IACd,GAAG,EAAC,OAAO,EACX,aAAa,EAAC,OAAO,EACrB,gBAAgB,EAAE,qBAAqB,EACvC,YAAY,EAAE,8BAA8B,EAC5C,GAAG,EAAE,SAAS,IACd;QACD,WAAW,IAAI,CACd,4CACE,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,IACjC,CAAC,WAAW,KAAK,OAAO;YAC1B,CAAC,CAAC,6BAA6B,CAAC;gBAC5B,MAAM,EAAE,YAAY;aACiC,CAAC;YAC1D,CAAC,CAAC,EAAE,CAAC;YAEP,oBAAC,cAAc;YACb,sBAAsB;;gBAAtB,sBAAsB;gBACtB,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC,EACvC,OAAO,EAAC,4BAA4B,EACpC,UAAU,EAAC,MAAM,EACjB,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,kBAAkB,EAC3B,SAAS,EAAE,IAAI,CAAC,gBAAgB,EAAE,sBAAsB,CAAC,EACzD,QAAQ,EAAE,QAAQ,GAClB,CACG,CACR,CACG,CACP,CAAC;AACJ,CAAC;AAED,eAAe,KAAK,CAAC,UAAU,CAAC,aAAa,CAAC,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 clsx from 'clsx';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\nimport {\n copyAnalyticsMetadataAttribute,\n getAnalyticsMetadataAttribute,\n} from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalButton from '../button/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport { BaseComponentProps, getBaseProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps, useFormFieldContext } from '../internal/context/form-field-context';\nimport { fireKeyboardEvent, fireNonCancelableEvent, NonCancelableEventHandler } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useDebounceCallback } from '../internal/hooks/use-debounce-callback';\nimport WithNativeAttributes, { SkipWarnings } from '../internal/utils/with-native-attributes';\nimport {\n GeneratedAnalyticsMetadataInputClearInput,\n GeneratedAnalyticsMetadataInputComponent,\n} from './analytics-metadata/interfaces';\nimport { BaseChangeDetail, BaseInputProps, InputAutoCorrect, InputProps } from './interfaces';\nimport { convertAutoComplete, useSearchProps } from './utils';\n\nimport styles from './styles.css.js';\n\nexport interface InternalInputProps\n extends BaseComponentProps,\n BaseInputProps,\n Omit<InputProps, 'type'>,\n InputAutoCorrect,\n FormFieldValidationControlProps,\n InternalBaseComponentProps {\n type?: InputProps['type'] | 'visualSearch';\n __leftIcon?: IconProps['name'];\n __leftIconVariant?: IconProps['variant'];\n __onLeftIconClick?: () => void;\n\n __rightIcon?: IconProps['name'];\n __onRightIconClick?: () => void;\n\n __noBorderRadius?: boolean;\n\n __onDelayedInput?: NonCancelableEventHandler<BaseChangeDetail>;\n __onBlurWithDetail?: NonCancelableEventHandler<{ relatedTarget: Node | null }>;\n\n __inheritFormFieldProps?: boolean;\n __injectAnalyticsComponentMetadata?: boolean;\n __skipNativeAttributesWarnings?: SkipWarnings;\n}\n\nfunction InternalInput(\n {\n type = 'text',\n step,\n inputMode,\n autoComplete = true,\n ariaLabel,\n clearAriaLabel: clearAriaLabelOverride,\n name,\n value,\n placeholder,\n autoFocus,\n disabled,\n readOnly,\n disableBrowserAutocorrect,\n spellcheck,\n __noBorderRadius,\n\n __leftIcon,\n __leftIconVariant = 'subtle',\n __onLeftIconClick,\n\n ariaRequired,\n\n __rightIcon,\n __onRightIconClick,\n\n onKeyDown,\n onKeyUp,\n onChange,\n __onDelayedInput,\n __onBlurWithDetail,\n onBlur,\n onFocus,\n nativeInputAttributes,\n __internalRootRef,\n __inheritFormFieldProps,\n __injectAnalyticsComponentMetadata,\n __skipNativeAttributesWarnings,\n ...rest\n }: InternalInputProps,\n ref: Ref<HTMLInputElement>\n) {\n const baseProps = getBaseProps(rest);\n const i18n = useInternalI18n('input');\n const fireDelayedInput = useDebounceCallback((value: string) => fireNonCancelableEvent(__onDelayedInput, { value }));\n\n const handleChange = (value: string) => {\n fireDelayedInput(value);\n fireNonCancelableEvent(onChange, { value });\n };\n\n const inputRef = useRef<HTMLInputElement>(null);\n const searchProps = useSearchProps(type, disabled, readOnly, value, inputRef, handleChange);\n __leftIcon = __leftIcon ?? searchProps.__leftIcon;\n __rightIcon = __rightIcon ?? searchProps.__rightIcon;\n __onRightIconClick = __onRightIconClick ?? searchProps.__onRightIconClick;\n\n const formFieldContext = useFormFieldContext(rest);\n const { ariaLabelledby, ariaDescribedby, controlId, invalid, warning } = __inheritFormFieldProps\n ? formFieldContext\n : rest;\n\n const attributes: React.InputHTMLAttributes<HTMLInputElement> = {\n 'aria-label': ariaLabel,\n // aria-labelledby has precedence over aria-label in accessible name calculation.\n // When aria-label is provided for Input, it should override aria-labelledBy from form-field context.\n // If both aria-label and aria-labelledby come from Input props, aria-labelledby will be used in accessible name\n 'aria-labelledby': ariaLabel && !rest.ariaLabelledby ? undefined : ariaLabelledby,\n 'aria-describedby': ariaDescribedby,\n name,\n placeholder,\n autoFocus,\n id: controlId,\n className: clsx(\n styles.input,\n type && styles[`input-type-${type}`],\n __rightIcon && styles['input-has-icon-right'],\n __leftIcon && styles['input-has-icon-left'],\n __noBorderRadius && styles['input-has-no-border-radius'],\n {\n [styles['input-readonly']]: readOnly,\n [styles['input-invalid']]: invalid,\n [styles['input-warning']]: warning && !invalid,\n }\n ),\n autoComplete: convertAutoComplete(autoComplete),\n disabled,\n readOnly,\n type,\n step,\n inputMode,\n spellCheck: spellcheck,\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 => handleChange(event.target.value)),\n onBlur: e => {\n fireNonCancelableEvent(onBlur);\n fireNonCancelableEvent(__onBlurWithDetail, { relatedTarget: e.relatedTarget });\n },\n onFocus: onFocus && (() => fireNonCancelableEvent(onFocus)),\n };\n\n if (type === 'number') {\n // Chrome and Safari have a weird built-in behavior of letting focused\n // number inputs be controlled by scrolling on them. However, they don't\n // lock the browser's scroll, so it's very easy to accidentally increment\n // the input while scrolling down the page.\n attributes.onWheel = event => event.currentTarget.blur();\n }\n\n if (disableBrowserAutocorrect) {\n attributes.autoCorrect = 'off';\n attributes.autoCapitalize = 'off';\n }\n\n // ensure aria properties are string literal \"true\"\n if (ariaRequired) {\n attributes['aria-required'] = 'true';\n }\n if (invalid) {\n attributes['aria-invalid'] = 'true';\n }\n\n const mergedRef = useMergeRefs(ref, inputRef);\n\n // type = \"visualSearch\" renders a type=\"text' input\n if (attributes.type === 'visualSearch') {\n attributes.type = 'text';\n }\n\n const componentAnalyticsMetadata: GeneratedAnalyticsMetadataInputComponent = {\n name: 'awsui.Input',\n label: 'input',\n properties: {\n value: value || '',\n },\n };\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles['input-container'])}\n ref={__internalRootRef}\n dir={type === 'email' ? 'ltr' : undefined}\n {...(__injectAnalyticsComponentMetadata\n ? getAnalyticsMetadataAttribute({ component: componentAnalyticsMetadata })\n : copyAnalyticsMetadataAttribute(rest))}\n >\n {__leftIcon && (\n <span onClick={__onLeftIconClick} className={styles['input-icon-left']}>\n <InternalIcon name={__leftIcon} variant={disabled || readOnly ? 'disabled' : __leftIconVariant} />\n </span>\n )}\n <WithNativeAttributes\n {...attributes}\n tag=\"input\"\n componentName=\"Input\"\n nativeAttributes={nativeInputAttributes}\n skipWarnings={__skipNativeAttributesWarnings}\n ref={mergedRef}\n />\n {__rightIcon && (\n <span\n className={styles['input-icon-right']}\n {...(__rightIcon === 'close'\n ? getAnalyticsMetadataAttribute({\n action: 'clearInput',\n } as Partial<GeneratedAnalyticsMetadataInputClearInput>)\n : {})}\n >\n <InternalButton\n // Used for test utils\n className={styles['input-button-right']}\n variant=\"inline-icon-pointer-target\"\n formAction=\"none\"\n iconName={__rightIcon}\n onClick={__onRightIconClick}\n ariaLabel={i18n('clearAriaLabel', clearAriaLabelOverride)}\n disabled={disabled}\n />\n </span>\n )}\n </div>\n );\n}\n\nexport default React.forwardRef(InternalInput);\n"]}
@@ -1,18 +1,18 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_2rhyz_1jc9s_145",
5
- "input": "awsui_input_2rhyz_1jc9s_149",
6
- "input-readonly": "awsui_input-readonly_2rhyz_1jc9s_197",
7
- "input-invalid": "awsui_input-invalid_2rhyz_1jc9s_266",
8
- "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1jc9s_275",
9
- "input-warning": "awsui_input-warning_2rhyz_1jc9s_278",
10
- "input-type-search": "awsui_input-type-search_2rhyz_1jc9s_290",
11
- "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1jc9s_303",
12
- "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1jc9s_306",
13
- "input-container": "awsui_input-container_2rhyz_1jc9s_313",
14
- "input-icon-left": "awsui_input-icon-left_2rhyz_1jc9s_318",
15
- "input-icon-right": "awsui_input-icon-right_2rhyz_1jc9s_325",
16
- "input-button-right": "awsui_input-button-right_2rhyz_1jc9s_331"
4
+ "root": "awsui_root_2rhyz_1pxbp_145",
5
+ "input": "awsui_input_2rhyz_1pxbp_149",
6
+ "input-readonly": "awsui_input-readonly_2rhyz_1pxbp_196",
7
+ "input-invalid": "awsui_input-invalid_2rhyz_1pxbp_249",
8
+ "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1pxbp_258",
9
+ "input-warning": "awsui_input-warning_2rhyz_1pxbp_261",
10
+ "input-type-search": "awsui_input-type-search_2rhyz_1pxbp_273",
11
+ "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1pxbp_286",
12
+ "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1pxbp_289",
13
+ "input-container": "awsui_input-container_2rhyz_1pxbp_296",
14
+ "input-icon-left": "awsui_input-icon-left_2rhyz_1pxbp_301",
15
+ "input-icon-right": "awsui_input-icon-right_2rhyz_1pxbp_308",
16
+ "input-button-right": "awsui_input-button-right_2rhyz_1pxbp_314"
17
17
  };
18
18
 
@@ -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
- .awsui_root_2rhyz_1jc9s_145:not(#\9) {
145
+ .awsui_root_2rhyz_1pxbp_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
- .awsui_input_2rhyz_1jc9s_149:not(#\9) {
149
+ .awsui_input_2rhyz_1pxbp_149:not(#\9) {
150
150
  border-collapse: separate;
151
151
  border-spacing: 0;
152
152
  box-sizing: border-box;
@@ -178,158 +178,141 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
178
178
  -moz-osx-font-smoothing: auto;
179
179
  padding-block: var(--space-scaled-xxs-pfm1nx, 4px);
180
180
  padding-inline: var(--space-field-horizontal-0aq2ch, 12px);
181
- color: var(--awsui-style-color-default-b75yp7, var(--color-text-body-default-vvtq8u, #0f141a));
181
+ color: var(--color-text-body-default-vvtq8u, #0f141a);
182
182
  inline-size: 100%;
183
183
  cursor: text;
184
184
  box-sizing: border-box;
185
- background-color: var(--awsui-style-background-default-b75yp7, var(--color-background-input-default-ifz5bb, #ffffff));
185
+ background-color: var(--color-background-input-default-ifz5bb, #ffffff);
186
186
  border-start-start-radius: var(--border-radius-input-7q0str, 8px);
187
187
  border-start-end-radius: var(--border-radius-input-7q0str, 8px);
188
188
  border-end-start-radius: var(--border-radius-input-7q0str, 8px);
189
189
  border-end-end-radius: var(--border-radius-input-7q0str, 8px);
190
- border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-default-317xk5, #8c8c94));
191
- border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-default-317xk5, #8c8c94));
192
- box-shadow: var(--awsui-style-box-shadow-default-b75yp7);
190
+ border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-default-317xk5, #8c8c94);
191
+ border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-default-317xk5, #8c8c94);
193
192
  font-size: var(--font-size-body-m-a7nh2n, 14px);
194
193
  line-height: var(--line-height-body-m-2mh3ke, 20px);
195
194
  block-size: var(--size-vertical-input-p1d7xx, 32px);
196
195
  }
197
- .awsui_input_2rhyz_1jc9s_149.awsui_input-readonly_2rhyz_1jc9s_197:not(#\9) {
198
- background-color: var(--awsui-style-background-readonly-b75yp7, var(--awsui-style-background-default-b75yp7, var(--color-background-input-default-ifz5bb, #ffffff)));
199
- border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-readonly-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-disabled-zgnzvk, #ebebf0)));
200
- border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-readonly-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-disabled-zgnzvk, #ebebf0)));
201
- color: var(--awsui-style-color-readonly-b75yp7, var(--awsui-style-color-default-b75yp7, var(--color-text-body-default-vvtq8u, #0f141a)));
202
- box-shadow: var(--awsui-style-box-shadow-readonly-b75yp7);
196
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-readonly_2rhyz_1pxbp_196:not(#\9) {
197
+ background-color: var(--color-background-input-default-ifz5bb, #ffffff);
198
+ border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
199
+ border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
203
200
  }
204
- .awsui_input_2rhyz_1jc9s_149:not(#\9)::-webkit-input-placeholder {
205
- color: var(--awsui-style-placeholder-color-b75yp7, var(--color-text-input-placeholder-dclg8u, #656871));
206
- font-size: var(--awsui-style-placeholder-font-size-b75yp7);
207
- font-style: var(--awsui-style-placeholder-font-style-b75yp7, italic);
208
- font-weight: var(--awsui-style-placeholder-font-weight-b75yp7);
201
+ .awsui_input_2rhyz_1pxbp_149:not(#\9)::-webkit-input-placeholder {
202
+ color: var(--color-text-input-placeholder-dclg8u, #656871);
203
+ font-style: italic;
209
204
  -webkit-user-select: none;
210
205
  user-select: none;
211
206
  }
212
- .awsui_input_2rhyz_1jc9s_149:not(#\9)::-moz-placeholder {
213
- color: var(--awsui-style-placeholder-color-b75yp7, var(--color-text-input-placeholder-dclg8u, #656871));
214
- font-size: var(--awsui-style-placeholder-font-size-b75yp7);
215
- font-style: var(--awsui-style-placeholder-font-style-b75yp7, italic);
216
- font-weight: var(--awsui-style-placeholder-font-weight-b75yp7);
207
+ .awsui_input_2rhyz_1pxbp_149:not(#\9)::-moz-placeholder {
208
+ color: var(--color-text-input-placeholder-dclg8u, #656871);
209
+ font-style: italic;
217
210
  opacity: 1;
218
211
  }
219
- .awsui_input_2rhyz_1jc9s_149:not(#\9):-moz-placeholder {
220
- color: var(--awsui-style-placeholder-color-b75yp7, var(--color-text-input-placeholder-dclg8u, #656871));
221
- font-size: var(--awsui-style-placeholder-font-size-b75yp7);
222
- font-style: var(--awsui-style-placeholder-font-style-b75yp7, italic);
223
- font-weight: var(--awsui-style-placeholder-font-weight-b75yp7);
212
+ .awsui_input_2rhyz_1pxbp_149:not(#\9):-moz-placeholder {
213
+ color: var(--color-text-input-placeholder-dclg8u, #656871);
214
+ font-style: italic;
224
215
  opacity: 1;
225
216
  }
226
- .awsui_input_2rhyz_1jc9s_149:not(#\9):focus {
217
+ .awsui_input_2rhyz_1pxbp_149:not(#\9):focus {
227
218
  outline: 2px dotted transparent;
228
- border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-focus-b75yp7, var(--color-border-input-focused-4z0pgn, #006ce0));
229
- border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-focus-b75yp7, var(--color-border-input-focused-4z0pgn, #006ce0));
219
+ border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-focused-4z0pgn, #006ce0);
220
+ border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-focused-4z0pgn, #006ce0);
230
221
  border-start-start-radius: var(--border-radius-input-7q0str, 8px);
231
222
  border-start-end-radius: var(--border-radius-input-7q0str, 8px);
232
223
  border-end-start-radius: var(--border-radius-input-7q0str, 8px);
233
224
  border-end-end-radius: var(--border-radius-input-7q0str, 8px);
234
- box-shadow: var(--awsui-style-box-shadow-focus-b75yp7, 0 0 0 var(--border-control-focus-ring-shadow-spread-9mjajk, 1px) var(--color-border-item-focused-uk47pl, #006ce0));
235
- color: var(--awsui-style-color-focus-b75yp7, var(--color-text-body-default-vvtq8u, #0f141a));
236
- background-color: var(--awsui-style-background-focus-b75yp7, var(--color-background-input-default-ifz5bb, #ffffff));
225
+ box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-9mjajk, 1px) var(--color-border-item-focused-uk47pl, #006ce0);
237
226
  }
238
- .awsui_input_2rhyz_1jc9s_149:not(#\9):disabled {
239
- background-color: var(--awsui-style-background-disabled-b75yp7, var(--color-background-input-disabled-dihaja, #ebebf0));
240
- border-block: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-disabled-b75yp7, var(--color-border-input-disabled-zgnzvk, #ebebf0));
241
- border-inline: var(--border-width-field-2xc78x, 1px) solid var(--awsui-style-border-color-disabled-b75yp7, var(--color-border-input-disabled-zgnzvk, #ebebf0));
242
- color: var(--awsui-style-color-disabled-b75yp7, var(--color-text-input-disabled-wh1f3y, #b4b4bb));
227
+ .awsui_input_2rhyz_1pxbp_149:not(#\9):disabled {
228
+ background-color: var(--color-background-input-disabled-dihaja, #ebebf0);
229
+ border-block: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
230
+ border-inline: var(--border-width-field-2xc78x, 1px) solid var(--color-border-input-disabled-zgnzvk, #ebebf0);
231
+ color: var(--color-text-input-disabled-wh1f3y, #b4b4bb);
232
+ cursor: auto;
243
233
  cursor: default;
244
- box-shadow: var(--awsui-style-box-shadow-disabled-b75yp7);
245
234
  }
246
- .awsui_input_2rhyz_1jc9s_149:not(#\9):disabled::-webkit-input-placeholder {
235
+ .awsui_input_2rhyz_1pxbp_149:not(#\9):disabled::-webkit-input-placeholder {
247
236
  color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
248
237
  -webkit-user-select: none;
249
238
  user-select: none;
250
239
  }
251
- .awsui_input_2rhyz_1jc9s_149:not(#\9):disabled::-moz-placeholder {
240
+ .awsui_input_2rhyz_1pxbp_149:not(#\9):disabled::-moz-placeholder {
252
241
  color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
253
242
  opacity: 1;
254
243
  }
255
- .awsui_input_2rhyz_1jc9s_149:not(#\9):disabled:-moz-placeholder {
244
+ .awsui_input_2rhyz_1pxbp_149:not(#\9):disabled:-moz-placeholder {
256
245
  color: var(--color-text-input-placeholder-disabled-wg87og, #b4b4bb);
257
246
  opacity: 1;
258
247
  }
259
- .awsui_input_2rhyz_1jc9s_149:not(#\9):invalid {
248
+ .awsui_input_2rhyz_1pxbp_149:not(#\9):invalid {
260
249
  box-shadow: none;
261
250
  }
262
- .awsui_input_2rhyz_1jc9s_149:not(#\9):hover:not(:focus):not(:disabled):not(.awsui_input-readonly_2rhyz_1jc9s_197) {
263
- border-color: var(--awsui-style-border-color-hover-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-default-317xk5, #8c8c94)));
264
- color: var(--awsui-style-color-hover-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-text-body-default-vvtq8u, #0f141a)));
265
- background-color: var(--awsui-style-background-hover-b75yp7, var(--awsui-style-background-default-b75yp7, var(--color-background-input-default-ifz5bb, #ffffff)));
266
- box-shadow: var(--awsui-style-box-shadow-hover-b75yp7, --awsui-style-box-shadow-default-b75yp7);
267
- }
268
- .awsui_input_2rhyz_1jc9s_149.awsui_input-invalid_2rhyz_1jc9s_266:not(#\9) {
251
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-invalid_2rhyz_1pxbp_249:not(#\9) {
269
252
  color: var(--color-text-status-error-ksqavh, #db0000);
270
253
  border-color: var(--color-text-status-error-ksqavh, #db0000);
271
254
  padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
272
255
  border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
273
256
  }
274
- .awsui_input_2rhyz_1jc9s_149.awsui_input-invalid_2rhyz_1jc9s_266:not(#\9):focus {
257
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-invalid_2rhyz_1pxbp_249:not(#\9):focus {
275
258
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
276
259
  }
277
- .awsui_input_2rhyz_1jc9s_149.awsui_input-invalid_2rhyz_1jc9s_266.awsui_input-has-icon-left_2rhyz_1jc9s_275:not(#\9) {
260
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-invalid_2rhyz_1pxbp_249.awsui_input-has-icon-left_2rhyz_1pxbp_258:not(#\9) {
278
261
  padding-inline-start: calc(var(--space-field-icon-offset-ikwzwx, 36px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
279
262
  }
280
- .awsui_input_2rhyz_1jc9s_149.awsui_input-warning_2rhyz_1jc9s_278:not(#\9) {
263
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-warning_2rhyz_1pxbp_261:not(#\9) {
281
264
  color: var(--color-text-status-warning-6meo06, #855900);
282
265
  border-color: var(--color-text-status-warning-6meo06, #855900);
283
266
  padding-inline-start: calc(var(--space-field-horizontal-0aq2ch, 12px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
284
267
  border-inline-start-width: var(--border-invalid-width-3xd6e1, 8px);
285
268
  }
286
- .awsui_input_2rhyz_1jc9s_149.awsui_input-warning_2rhyz_1jc9s_278:not(#\9):focus {
269
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-warning_2rhyz_1pxbp_261:not(#\9):focus {
287
270
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-9jjf96, 2px) var(--color-border-item-focused-uk47pl, #006ce0);
288
271
  }
289
- .awsui_input_2rhyz_1jc9s_149.awsui_input-warning_2rhyz_1jc9s_278.awsui_input-has-icon-left_2rhyz_1jc9s_275:not(#\9) {
272
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-warning_2rhyz_1pxbp_261.awsui_input-has-icon-left_2rhyz_1pxbp_258:not(#\9) {
290
273
  padding-inline-start: calc(var(--space-field-icon-offset-ikwzwx, 36px) - (var(--border-invalid-width-3xd6e1, 8px) - var(--border-width-field-2xc78x, 1px)));
291
274
  }
292
- .awsui_input_2rhyz_1jc9s_149.awsui_input-type-search_2rhyz_1jc9s_290:not(#\9) {
275
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-type-search_2rhyz_1pxbp_273:not(#\9) {
293
276
  box-sizing: border-box;
294
277
  -webkit-appearance: none;
295
278
  }
296
- .awsui_input_2rhyz_1jc9s_149.awsui_input-type-search_2rhyz_1jc9s_290:not(#\9)::-webkit-search-decoration {
279
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-type-search_2rhyz_1pxbp_273:not(#\9)::-webkit-search-decoration {
297
280
  -webkit-appearance: none;
298
281
  }
299
- .awsui_input_2rhyz_1jc9s_149.awsui_input-type-search_2rhyz_1jc9s_290:not(#\9)::-webkit-search-cancel-button {
282
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-type-search_2rhyz_1pxbp_273:not(#\9)::-webkit-search-cancel-button {
300
283
  display: none;
301
284
  }
302
- .awsui_input_2rhyz_1jc9s_149.awsui_input-has-icon-left_2rhyz_1jc9s_275:not(#\9) {
285
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-has-icon-left_2rhyz_1pxbp_258:not(#\9) {
303
286
  padding-inline-start: var(--space-field-icon-offset-ikwzwx, 36px);
304
287
  }
305
- .awsui_input_2rhyz_1jc9s_149.awsui_input-has-icon-right_2rhyz_1jc9s_303:not(#\9) {
288
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-has-icon-right_2rhyz_1pxbp_286:not(#\9) {
306
289
  padding-inline-end: var(--space-field-icon-offset-ikwzwx, 36px);
307
290
  }
308
- .awsui_input_2rhyz_1jc9s_149.awsui_input-has-no-border-radius_2rhyz_1jc9s_306:not(#\9) {
291
+ .awsui_input_2rhyz_1pxbp_149.awsui_input-has-no-border-radius_2rhyz_1pxbp_289:not(#\9) {
309
292
  border-start-start-radius: var(--border-radius-dropdown-fgc2a1, 8px);
310
293
  border-start-end-radius: var(--border-radius-dropdown-fgc2a1, 8px);
311
294
  border-end-start-radius: var(--border-radius-dropdown-fgc2a1, 8px);
312
295
  border-end-end-radius: var(--border-radius-dropdown-fgc2a1, 8px);
313
296
  }
314
297
 
315
- .awsui_input-container_2rhyz_1jc9s_313:not(#\9) {
298
+ .awsui_input-container_2rhyz_1pxbp_296:not(#\9) {
316
299
  display: flex;
317
300
  position: relative;
318
301
  }
319
302
 
320
- .awsui_input-icon-left_2rhyz_1jc9s_318:not(#\9) {
303
+ .awsui_input-icon-left_2rhyz_1pxbp_301:not(#\9) {
321
304
  position: absolute;
322
305
  pointer-events: none;
323
306
  inset-inline-start: var(--space-field-horizontal-0aq2ch, 12px);
324
307
  inset-block-start: calc(50% - var(--line-height-body-m-2mh3ke, 20px) / 2);
325
308
  }
326
309
 
327
- .awsui_input-icon-right_2rhyz_1jc9s_325:not(#\9) {
310
+ .awsui_input-icon-right_2rhyz_1pxbp_308:not(#\9) {
328
311
  position: absolute;
329
312
  inset-block-start: calc(calc(50% - var(--line-height-body-m-2mh3ke, 20px) / 2) - var(--space-xxxs-pajhad, 2px));
330
313
  inset-inline-end: calc(var(--space-field-horizontal-0aq2ch, 12px) - var(--space-xxs-hwfkai, 4px));
331
314
  }
332
315
 
333
- .awsui_input-button-right_2rhyz_1jc9s_331:not(#\9) {
316
+ .awsui_input-button-right_2rhyz_1pxbp_314:not(#\9) {
334
317
  /* used in test-utils */
335
318
  }
@@ -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": "awsui_root_2rhyz_1jc9s_145",
6
- "input": "awsui_input_2rhyz_1jc9s_149",
7
- "input-readonly": "awsui_input-readonly_2rhyz_1jc9s_197",
8
- "input-invalid": "awsui_input-invalid_2rhyz_1jc9s_266",
9
- "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1jc9s_275",
10
- "input-warning": "awsui_input-warning_2rhyz_1jc9s_278",
11
- "input-type-search": "awsui_input-type-search_2rhyz_1jc9s_290",
12
- "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1jc9s_303",
13
- "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1jc9s_306",
14
- "input-container": "awsui_input-container_2rhyz_1jc9s_313",
15
- "input-icon-left": "awsui_input-icon-left_2rhyz_1jc9s_318",
16
- "input-icon-right": "awsui_input-icon-right_2rhyz_1jc9s_325",
17
- "input-button-right": "awsui_input-button-right_2rhyz_1jc9s_331"
5
+ "root": "awsui_root_2rhyz_1pxbp_145",
6
+ "input": "awsui_input_2rhyz_1pxbp_149",
7
+ "input-readonly": "awsui_input-readonly_2rhyz_1pxbp_196",
8
+ "input-invalid": "awsui_input-invalid_2rhyz_1pxbp_249",
9
+ "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1pxbp_258",
10
+ "input-warning": "awsui_input-warning_2rhyz_1pxbp_261",
11
+ "input-type-search": "awsui_input-type-search_2rhyz_1pxbp_273",
12
+ "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1pxbp_286",
13
+ "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1pxbp_289",
14
+ "input-container": "awsui_input-container_2rhyz_1pxbp_296",
15
+ "input-icon-left": "awsui_input-icon-left_2rhyz_1pxbp_301",
16
+ "input-icon-right": "awsui_input-icon-right_2rhyz_1pxbp_308",
17
+ "input-button-right": "awsui_input-button-right_2rhyz_1pxbp_314"
18
18
  };
19
19
 
@@ -2051,5 +2051,5 @@
2051
2051
  }
2052
2052
  }
2053
2053
  :root {
2054
- --awsui-version-info-191a662b: true;
2054
+ --awsui-version-info-f44f577a: true;
2055
2055
  }
@@ -1,25 +1,25 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "direction-button-wrapper": "awsui_direction-button-wrapper_155yk_1fgav_169",
5
- "direction-button-wrapper-motion-enter": "awsui_direction-button-wrapper-motion-enter_155yk_1fgav_189",
6
- "direction-button-wrapper-motion-entering": "awsui_direction-button-wrapper-motion-entering_155yk_1fgav_189",
7
- "direction-button-wrapper-motion-exit": "awsui_direction-button-wrapper-motion-exit_155yk_1fgav_189",
8
- "direction-button-wrapper-motion-exiting": "awsui_direction-button-wrapper-motion-exiting_155yk_1fgav_189",
9
- "drag-handle-entry": "awsui_drag-handle-entry_155yk_1fgav_1",
10
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_155yk_1fgav_1",
11
- "drag-handle-exit": "awsui_drag-handle-exit_155yk_1fgav_1",
12
- "awsui-motion-fade-out-0": "awsui_awsui-motion-fade-out-0_155yk_1fgav_1",
13
- "direction-button-wrapper-block-start": "awsui_direction-button-wrapper-block-start_155yk_1fgav_229",
14
- "direction-button-wrapper-block-end": "awsui_direction-button-wrapper-block-end_155yk_1fgav_233",
15
- "direction-button-wrapper-inline-start": "awsui_direction-button-wrapper-inline-start_155yk_1fgav_237",
16
- "direction-button-wrapper-inline-end": "awsui_direction-button-wrapper-inline-end_155yk_1fgav_248",
17
- "contents": "awsui_contents_155yk_1fgav_259",
18
- "portal-overlay": "awsui_portal-overlay_155yk_1fgav_263",
19
- "portal-overlay-contents": "awsui_portal-overlay-contents_155yk_1fgav_271",
20
- "drag-handle": "awsui_drag-handle_155yk_1fgav_275",
21
- "direction-button-wrapper-hidden": "awsui_direction-button-wrapper-hidden_155yk_1fgav_288",
22
- "direction-button": "awsui_direction-button_155yk_1fgav_169",
23
- "direction-button-disabled": "awsui_direction-button-disabled_155yk_1fgav_331"
4
+ "direction-button-wrapper": "awsui_direction-button-wrapper_155yk_fihhd_169",
5
+ "direction-button-wrapper-motion-enter": "awsui_direction-button-wrapper-motion-enter_155yk_fihhd_189",
6
+ "direction-button-wrapper-motion-entering": "awsui_direction-button-wrapper-motion-entering_155yk_fihhd_189",
7
+ "direction-button-wrapper-motion-exit": "awsui_direction-button-wrapper-motion-exit_155yk_fihhd_189",
8
+ "direction-button-wrapper-motion-exiting": "awsui_direction-button-wrapper-motion-exiting_155yk_fihhd_189",
9
+ "drag-handle-entry": "awsui_drag-handle-entry_155yk_fihhd_1",
10
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_155yk_fihhd_1",
11
+ "drag-handle-exit": "awsui_drag-handle-exit_155yk_fihhd_1",
12
+ "awsui-motion-fade-out-0": "awsui_awsui-motion-fade-out-0_155yk_fihhd_1",
13
+ "direction-button-wrapper-block-start": "awsui_direction-button-wrapper-block-start_155yk_fihhd_229",
14
+ "direction-button-wrapper-block-end": "awsui_direction-button-wrapper-block-end_155yk_fihhd_233",
15
+ "direction-button-wrapper-inline-start": "awsui_direction-button-wrapper-inline-start_155yk_fihhd_237",
16
+ "direction-button-wrapper-inline-end": "awsui_direction-button-wrapper-inline-end_155yk_fihhd_248",
17
+ "contents": "awsui_contents_155yk_fihhd_259",
18
+ "portal-overlay": "awsui_portal-overlay_155yk_fihhd_263",
19
+ "portal-overlay-contents": "awsui_portal-overlay-contents_155yk_fihhd_271",
20
+ "drag-handle": "awsui_drag-handle_155yk_fihhd_275",
21
+ "direction-button-wrapper-hidden": "awsui_direction-button-wrapper-hidden_155yk_fihhd_288",
22
+ "direction-button": "awsui_direction-button_155yk_fihhd_169",
23
+ "direction-button-disabled": "awsui_direction-button-disabled_155yk_fihhd_331"
24
24
  };
25
25