@cloudscape-design/components-themeable 3.0.1129 → 3.0.1130

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 (121) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/app-layout/visual-refresh-toolbar/drawer/styles.scss +1 -1
  3. package/lib/internal/scss/input/styles.scss +9 -62
  4. package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +87 -99
  5. package/lib/internal/scss/internal/styles/forms/mixins.scss +19 -42
  6. package/lib/internal/scss/steps/styles.scss +63 -0
  7. package/lib/internal/template/alert/styles.css.js +27 -27
  8. package/lib/internal/template/alert/styles.scoped.css +50 -50
  9. package/lib/internal/template/alert/styles.selectors.js +27 -27
  10. package/lib/internal/template/annotation-context/annotation/styles.css.js +24 -24
  11. package/lib/internal/template/annotation-context/annotation/styles.scoped.css +32 -32
  12. package/lib/internal/template/annotation-context/annotation/styles.selectors.js +24 -24
  13. package/lib/internal/template/app-layout/notifications/styles.css.js +3 -3
  14. package/lib/internal/template/app-layout/notifications/styles.scoped.css +7 -7
  15. package/lib/internal/template/app-layout/notifications/styles.selectors.js +3 -3
  16. package/lib/internal/template/app-layout/visual-refresh/styles.css.js +86 -86
  17. package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +258 -258
  18. package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +86 -86
  19. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.css.js +27 -27
  20. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.scoped.css +84 -84
  21. package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/styles.selectors.js +27 -27
  22. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.css.js +4 -4
  23. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.scoped.css +7 -7
  24. package/lib/internal/template/app-layout/visual-refresh-toolbar/navigation/styles.selectors.js +4 -4
  25. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.css.js +27 -27
  26. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.scoped.css +54 -54
  27. package/lib/internal/template/app-layout/visual-refresh-toolbar/skeleton/styles.selectors.js +27 -27
  28. package/lib/internal/template/attribute-editor/styles.css.js +15 -15
  29. package/lib/internal/template/attribute-editor/styles.scoped.css +28 -28
  30. package/lib/internal/template/attribute-editor/styles.selectors.js +15 -15
  31. package/lib/internal/template/breadcrumb-group/item/styles.css.js +7 -7
  32. package/lib/internal/template/breadcrumb-group/item/styles.scoped.css +28 -28
  33. package/lib/internal/template/breadcrumb-group/item/styles.selectors.js +7 -7
  34. package/lib/internal/template/button/styles.css.js +22 -22
  35. package/lib/internal/template/button/styles.scoped.css +256 -256
  36. package/lib/internal/template/button/styles.selectors.js +22 -22
  37. package/lib/internal/template/button-dropdown/item-element/styles.css.js +16 -16
  38. package/lib/internal/template/button-dropdown/item-element/styles.scoped.css +27 -27
  39. package/lib/internal/template/button-dropdown/item-element/styles.selectors.js +16 -16
  40. package/lib/internal/template/checkbox/styles.css.js +3 -3
  41. package/lib/internal/template/checkbox/styles.scoped.css +11 -11
  42. package/lib/internal/template/checkbox/styles.selectors.js +3 -3
  43. package/lib/internal/template/content-layout/styles.css.js +14 -14
  44. package/lib/internal/template/content-layout/styles.scoped.css +27 -27
  45. package/lib/internal/template/content-layout/styles.selectors.js +14 -14
  46. package/lib/internal/template/flashbar/styles.css.js +50 -50
  47. package/lib/internal/template/flashbar/styles.scoped.css +187 -187
  48. package/lib/internal/template/flashbar/styles.selectors.js +50 -50
  49. package/lib/internal/template/help-panel/styles.css.js +6 -6
  50. package/lib/internal/template/help-panel/styles.scoped.css +73 -73
  51. package/lib/internal/template/help-panel/styles.selectors.js +6 -6
  52. package/lib/internal/template/input/index.d.ts.map +1 -1
  53. package/lib/internal/template/input/index.js +2 -3
  54. package/lib/internal/template/input/index.js.map +1 -1
  55. package/lib/internal/template/input/interfaces.d.ts +0 -48
  56. package/lib/internal/template/input/interfaces.d.ts.map +1 -1
  57. package/lib/internal/template/input/interfaces.js.map +1 -1
  58. package/lib/internal/template/input/internal.d.ts.map +1 -1
  59. package/lib/internal/template/input/internal.js +2 -3
  60. package/lib/internal/template/input/internal.js.map +1 -1
  61. package/lib/internal/template/input/styles.css.js +13 -13
  62. package/lib/internal/template/input/styles.scoped.css +49 -66
  63. package/lib/internal/template/input/styles.selectors.js +13 -13
  64. package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
  65. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.css.js +20 -20
  66. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.scoped.css +48 -48
  67. package/lib/internal/template/internal/components/drag-handle-wrapper/styles.selectors.js +20 -20
  68. package/lib/internal/template/internal/components/dropdown/styles.css.js +20 -20
  69. package/lib/internal/template/internal/components/dropdown/styles.scoped.css +38 -38
  70. package/lib/internal/template/internal/components/dropdown/styles.selectors.js +20 -20
  71. package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
  72. package/lib/internal/template/internal/components/token-list/styles.scoped.css +25 -25
  73. package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
  74. package/lib/internal/template/internal/environment.js +2 -2
  75. package/lib/internal/template/internal/environment.json +2 -2
  76. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts +0 -12
  77. package/lib/internal/template/internal/generated/custom-css-properties/index.d.ts.map +1 -1
  78. package/lib/internal/template/internal/generated/custom-css-properties/index.js +86 -98
  79. package/lib/internal/template/internal/generated/custom-css-properties/index.js.map +1 -1
  80. package/lib/internal/template/link/styles.css.js +20 -20
  81. package/lib/internal/template/link/styles.scoped.css +103 -103
  82. package/lib/internal/template/link/styles.selectors.js +20 -20
  83. package/lib/internal/template/radio-group/styles.css.js +10 -10
  84. package/lib/internal/template/radio-group/styles.scoped.css +22 -22
  85. package/lib/internal/template/radio-group/styles.selectors.js +10 -10
  86. package/lib/internal/template/select/parts/filter.d.ts +1 -1
  87. package/lib/internal/template/select/parts/filter.d.ts.map +1 -1
  88. package/lib/internal/template/slider/styles.css.js +26 -26
  89. package/lib/internal/template/slider/styles.scoped.css +86 -86
  90. package/lib/internal/template/slider/styles.selectors.js +26 -26
  91. package/lib/internal/template/spinner/styles.css.js +13 -13
  92. package/lib/internal/template/spinner/styles.scoped.css +39 -39
  93. package/lib/internal/template/spinner/styles.selectors.js +13 -13
  94. package/lib/internal/template/status-indicator/internal.d.ts +7 -0
  95. package/lib/internal/template/status-indicator/internal.d.ts.map +1 -1
  96. package/lib/internal/template/status-indicator/internal.js +6 -3
  97. package/lib/internal/template/status-indicator/internal.js.map +1 -1
  98. package/lib/internal/template/steps/interfaces.d.ts +22 -0
  99. package/lib/internal/template/steps/interfaces.d.ts.map +1 -1
  100. package/lib/internal/template/steps/interfaces.js.map +1 -1
  101. package/lib/internal/template/steps/internal.d.ts +1 -1
  102. package/lib/internal/template/steps/internal.d.ts.map +1 -1
  103. package/lib/internal/template/steps/internal.js +31 -7
  104. package/lib/internal/template/steps/internal.js.map +1 -1
  105. package/lib/internal/template/steps/styles.css.js +9 -6
  106. package/lib/internal/template/steps/styles.scoped.css +58 -7
  107. package/lib/internal/template/steps/styles.selectors.js +9 -6
  108. package/lib/internal/template/tag-editor/styles.css.js +3 -3
  109. package/lib/internal/template/tag-editor/styles.scoped.css +13 -13
  110. package/lib/internal/template/tag-editor/styles.selectors.js +3 -3
  111. package/lib/internal/template/text-content/styles.css.js +1 -1
  112. package/lib/internal/template/text-content/styles.scoped.css +66 -66
  113. package/lib/internal/template/text-content/styles.selectors.js +1 -1
  114. package/lib/internal/template/toggle/styles.css.js +10 -10
  115. package/lib/internal/template/toggle/styles.scoped.css +23 -23
  116. package/lib/internal/template/toggle/styles.selectors.js +10 -10
  117. package/package.json +1 -1
  118. package/lib/internal/template/input/styles.d.ts +0 -3
  119. package/lib/internal/template/input/styles.d.ts.map +0 -1
  120. package/lib/internal/template/input/styles.js +0 -42
  121. package/lib/internal/template/input/styles.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/input/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { BaseKeyDetail, CancelableEventHandler, NonCancelableEventHandler } from '../internal/events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../internal/utils/with-native-attributes';\n\nexport interface BaseInputProps {\n /**\n * Specifies the text entered into the form element.\n */\n value: string;\n\n /**\n * Specifies the name of the control used in HTML forms.\n */\n name?: string;\n\n /**\n * Specifies the placeholder text rendered when the value is an empty string.\n */\n placeholder?: string;\n\n /**\n * Specifies if the control is disabled, which prevents the\n * user from modifying the value and prevents the value from\n * being included in a form submission. A disabled control can't\n * receive focus.\n */\n disabled?: boolean;\n\n /**\n * Specifies if the control is read-only, which prevents the\n * user from modifying the value but includes it in a form\n * submission. A read-only control can receive focus.\n *\n * Don't use read-only inputs outside a form.\n */\n readOnly?: boolean;\n\n /**\n * Indicates whether the control should be focused as\n * soon as the page loads, which enables the user to\n * start typing without having to manually focus the control. Don't\n * use this option on pages where the control may be\n * scrolled out of the viewport.\n */\n autoFocus?: boolean;\n\n /**\n * Adds an `aria-label` to the native control.\n *\n * Use this if you don't have a visible label for this control.\n */\n ariaLabel?: string;\n\n /**\n * Specifies whether to add `aria-required` to the native control.\n */\n ariaRequired?: boolean;\n\n /**\n * Called when input focus is removed from the UI control.\n */\n onBlur?: NonCancelableEventHandler<null>;\n\n /**\n * Called when input focus is moved to the UI control.\n */\n onFocus?: NonCancelableEventHandler<null>;\n\n /**\n * Called whenever a user changes the input value (by typing or pasting).\n * The event `detail` contains the current value of the field.\n */\n onChange?: NonCancelableEventHandler<InputProps.ChangeDetail>;\n\n /**\n * Attributes to add to the native `input` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeInputAttributes?: NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>;\n}\n\nexport interface InputAutoCorrect {\n /**\n * Specifies whether to disable browser autocorrect and related features.\n * If you set this to `true`, it disables any native browser capabilities\n * that automatically correct user input, such as `autocorrect` and\n * `autocapitalize`. If you don't set it, the behavior follows the default behavior\n * of the user's browser.\n */\n disableBrowserAutocorrect?: boolean;\n}\n\nexport interface InputAutoComplete {\n /**\n * Specifies whether to enable a browser's autocomplete functionality for this input.\n * In some cases it might be appropriate to disable autocomplete (for example, for security-sensitive fields).\n * To use it correctly, set the `name` property.\n *\n * You can either provide a boolean value to set the property to \"on\" or \"off\", or specify a string value\n * for the [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute.\n */\n autoComplete?: boolean | string;\n}\n\nexport interface InputSpellcheck {\n /**\n * Specifies the value of the `spellcheck` attribute on the native control.\n * This value controls the native browser capability to check for spelling/grammar errors.\n * If not set, the browser default behavior is to perform spellchecking.\n * For more details, check the [spellcheck MDN article](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck).\n *\n * Enhanced spellchecking features of your browser and/or operating system may send input values to external parties.\n * Make sure it’s deactivated for fields with sensitive information to prevent\n * inadvertently sending data (such as user passwords) to third parties.\n */\n spellcheck?: boolean;\n}\n\nexport interface InputKeyEvents {\n /**\n * Called when the underlying native textarea emits a `keydown` event.\n * The event `detail` contains the `keyCode` and information\n * about modifiers (that is, CTRL, ALT, SHIFT, META, etc.).\n */\n onKeyDown?: CancelableEventHandler<InputProps.KeyDetail>;\n\n /**\n * Called when the underlying native textarea emits a `keyup` event.\n * The event `detail` contains the `keyCode` and information\n * about modifiers (that is, CTRL, ALT, SHIFT, META, etc.).\n */\n onKeyUp?: CancelableEventHandler<InputProps.KeyDetail>;\n}\n\nexport interface InputClearLabel {\n /**\n * Adds an `aria-label` to the clear button inside the search input.\n * @i18n\n */\n clearAriaLabel?: string;\n}\n\nexport interface InputProps\n extends BaseComponentProps,\n BaseInputProps,\n InputKeyEvents,\n InputAutoCorrect,\n InputAutoComplete,\n InputSpellcheck,\n InputClearLabel,\n FormFieldValidationControlProps {\n /**\n * Specifies the type of control to render.\n * Inputs with a `number` type use the native element behavior, which might\n * be slightly different across browsers.\n */\n type?: InputProps.Type;\n\n /**\n * Adds a hint to the browser about the type of data a user may enter into this field.\n * Some devices may render a different virtual keyboard depending on this value.\n * This value may not be supported by all browsers or devices.\n */\n inputMode?: InputProps.InputMode;\n\n /**\n * The step attribute is a number that specifies the granularity that the value\n * must adhere to or the keyword \"any\". It is valid for the numeric input types,\n * including the date, month, week, time, datetime-local, number and range types.\n */\n step?: InputProps.Step;\n\n /**\n * @awsuiSystem core\n */\n style?: InputProps.Style;\n}\n\nexport namespace InputProps {\n export type Type = 'text' | 'password' | 'search' | 'number' | 'email' | 'url';\n export type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n export type Step = number | 'any';\n\n export type ChangeDetail = BaseChangeDetail;\n export type KeyDetail = BaseKeyDetail;\n\n export interface Ref {\n /**\n * Sets input focus onto the UI control.\n */\n focus(): void;\n\n /**\n * Selects all text in the input control.\n */\n select(): void;\n }\n\n export interface Style {\n root?: {\n backgroundColor?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n borderColor?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n borderRadius?: string;\n borderWidth?: string;\n boxShadow?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n color?: {\n default?: string;\n disabled?: string;\n focus?: string;\n hover?: string;\n readonly?: string;\n };\n fontSize?: string;\n fontWeight?: string;\n paddingBlock?: string;\n paddingInline?: string;\n };\n placeholder?: {\n color?: string;\n fontSize?: string;\n fontStyle?: string;\n fontWeight?: string;\n };\n }\n}\n\nexport interface BaseChangeDetail {\n value: string;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/input/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\nimport { FormFieldValidationControlProps } from '../internal/context/form-field-context';\nimport { BaseKeyDetail, CancelableEventHandler, NonCancelableEventHandler } from '../internal/events';\n/**\n * @awsuiSystem core\n */\nimport { NativeAttributes } from '../internal/utils/with-native-attributes';\n\nexport interface BaseInputProps {\n /**\n * Specifies the text entered into the form element.\n */\n value: string;\n\n /**\n * Specifies the name of the control used in HTML forms.\n */\n name?: string;\n\n /**\n * Specifies the placeholder text rendered when the value is an empty string.\n */\n placeholder?: string;\n\n /**\n * Specifies if the control is disabled, which prevents the\n * user from modifying the value and prevents the value from\n * being included in a form submission. A disabled control can't\n * receive focus.\n */\n disabled?: boolean;\n\n /**\n * Specifies if the control is read-only, which prevents the\n * user from modifying the value but includes it in a form\n * submission. A read-only control can receive focus.\n *\n * Don't use read-only inputs outside a form.\n */\n readOnly?: boolean;\n\n /**\n * Indicates whether the control should be focused as\n * soon as the page loads, which enables the user to\n * start typing without having to manually focus the control. Don't\n * use this option on pages where the control may be\n * scrolled out of the viewport.\n */\n autoFocus?: boolean;\n\n /**\n * Adds an `aria-label` to the native control.\n *\n * Use this if you don't have a visible label for this control.\n */\n ariaLabel?: string;\n\n /**\n * Specifies whether to add `aria-required` to the native control.\n */\n ariaRequired?: boolean;\n\n /**\n * Called when input focus is removed from the UI control.\n */\n onBlur?: NonCancelableEventHandler<null>;\n\n /**\n * Called when input focus is moved to the UI control.\n */\n onFocus?: NonCancelableEventHandler<null>;\n\n /**\n * Called whenever a user changes the input value (by typing or pasting).\n * The event `detail` contains the current value of the field.\n */\n onChange?: NonCancelableEventHandler<InputProps.ChangeDetail>;\n\n /**\n * Attributes to add to the native `input` element.\n * Some attributes will be automatically combined with internal attribute values:\n * - `className` will be appended.\n * - Event handlers will be chained, unless the default is prevented.\n *\n * We do not support using this attribute to apply custom styling.\n *\n * @awsuiSystem core\n */\n nativeInputAttributes?: NativeAttributes<React.InputHTMLAttributes<HTMLInputElement>>;\n}\n\nexport interface InputAutoCorrect {\n /**\n * Specifies whether to disable browser autocorrect and related features.\n * If you set this to `true`, it disables any native browser capabilities\n * that automatically correct user input, such as `autocorrect` and\n * `autocapitalize`. If you don't set it, the behavior follows the default behavior\n * of the user's browser.\n */\n disableBrowserAutocorrect?: boolean;\n}\n\nexport interface InputAutoComplete {\n /**\n * Specifies whether to enable a browser's autocomplete functionality for this input.\n * In some cases it might be appropriate to disable autocomplete (for example, for security-sensitive fields).\n * To use it correctly, set the `name` property.\n *\n * You can either provide a boolean value to set the property to \"on\" or \"off\", or specify a string value\n * for the [autocomplete](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute.\n */\n autoComplete?: boolean | string;\n}\n\nexport interface InputSpellcheck {\n /**\n * Specifies the value of the `spellcheck` attribute on the native control.\n * This value controls the native browser capability to check for spelling/grammar errors.\n * If not set, the browser default behavior is to perform spellchecking.\n * For more details, check the [spellcheck MDN article](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/spellcheck).\n *\n * Enhanced spellchecking features of your browser and/or operating system may send input values to external parties.\n * Make sure it’s deactivated for fields with sensitive information to prevent\n * inadvertently sending data (such as user passwords) to third parties.\n */\n spellcheck?: boolean;\n}\n\nexport interface InputKeyEvents {\n /**\n * Called when the underlying native textarea emits a `keydown` event.\n * The event `detail` contains the `keyCode` and information\n * about modifiers (that is, CTRL, ALT, SHIFT, META, etc.).\n */\n onKeyDown?: CancelableEventHandler<InputProps.KeyDetail>;\n\n /**\n * Called when the underlying native textarea emits a `keyup` event.\n * The event `detail` contains the `keyCode` and information\n * about modifiers (that is, CTRL, ALT, SHIFT, META, etc.).\n */\n onKeyUp?: CancelableEventHandler<InputProps.KeyDetail>;\n}\n\nexport interface InputClearLabel {\n /**\n * Adds an `aria-label` to the clear button inside the search input.\n * @i18n\n */\n clearAriaLabel?: string;\n}\n\nexport interface InputProps\n extends BaseComponentProps,\n BaseInputProps,\n InputKeyEvents,\n InputAutoCorrect,\n InputAutoComplete,\n InputSpellcheck,\n InputClearLabel,\n FormFieldValidationControlProps {\n /**\n * Specifies the type of control to render.\n * Inputs with a `number` type use the native element behavior, which might\n * be slightly different across browsers.\n */\n type?: InputProps.Type;\n\n /**\n * Adds a hint to the browser about the type of data a user may enter into this field.\n * Some devices may render a different virtual keyboard depending on this value.\n * This value may not be supported by all browsers or devices.\n */\n inputMode?: InputProps.InputMode;\n\n /**\n * The step attribute is a number that specifies the granularity that the value\n * must adhere to or the keyword \"any\". It is valid for the numeric input types,\n * including the date, month, week, time, datetime-local, number and range types.\n */\n step?: InputProps.Step;\n}\n\nexport namespace InputProps {\n export type Type = 'text' | 'password' | 'search' | 'number' | 'email' | 'url';\n export type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';\n export type Step = number | 'any';\n\n export type ChangeDetail = BaseChangeDetail;\n export type KeyDetail = BaseKeyDetail;\n\n export interface Ref {\n /**\n * Sets input focus onto the UI control.\n */\n focus(): void;\n\n /**\n * Selects all text in the input control.\n */\n select(): void;\n }\n}\nexport interface BaseChangeDetail {\n value: string;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/input/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsB,MAAM,OAAO,CAAC;AAW3C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAgB,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,+BAA+B,EAAuB,MAAM,wCAAwC,CAAC;AAC9G,OAAO,EAA6C,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ent } 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
- {"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,OA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B,EAAE,CAAC;QAC1E,CAAC,CAAC,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAExC,UAAU,IAAI,CACb,8BAAM,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC;YACpE,oBAAC,YAAY,IAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,QAAQ,IAAI,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,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,EACd,KAAK,EAAE,cAAc,CAAC,KAAK,CAAC,IAC5B;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 { 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,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAsB,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAmC,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC9G,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAA6B,MAAM,oB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,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_13ehy_145",
5
- "input": "awsui_input_2rhyz_13ehy_149",
6
- "input-readonly": "awsui_input-readonly_2rhyz_13ehy_197",
7
- "input-invalid": "awsui_input-invalid_2rhyz_13ehy_266",
8
- "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_13ehy_275",
9
- "input-warning": "awsui_input-warning_2rhyz_13ehy_278",
10
- "input-type-search": "awsui_input-type-search_2rhyz_13ehy_290",
11
- "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_13ehy_303",
12
- "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_13ehy_306",
13
- "input-container": "awsui_input-container_2rhyz_13ehy_313",
14
- "input-icon-left": "awsui_input-icon-left_2rhyz_13ehy_318",
15
- "input-icon-right": "awsui_input-icon-right_2rhyz_13ehy_325",
16
- "input-button-right": "awsui_input-button-right_2rhyz_13ehy_331"
4
+ "root": "awsui_root_2rhyz_1hvex_145",
5
+ "input": "awsui_input_2rhyz_1hvex_149",
6
+ "input-readonly": "awsui_input-readonly_2rhyz_1hvex_196",
7
+ "input-invalid": "awsui_input-invalid_2rhyz_1hvex_249",
8
+ "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1hvex_258",
9
+ "input-warning": "awsui_input-warning_2rhyz_1hvex_261",
10
+ "input-type-search": "awsui_input-type-search_2rhyz_1hvex_273",
11
+ "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1hvex_286",
12
+ "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1hvex_289",
13
+ "input-container": "awsui_input-container_2rhyz_1hvex_296",
14
+ "input-icon-left": "awsui_input-icon-left_2rhyz_1hvex_301",
15
+ "input-icon-right": "awsui_input-icon-right_2rhyz_1hvex_308",
16
+ "input-button-right": "awsui_input-button-right_2rhyz_1hvex_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_13ehy_145:not(#\9) {
145
+ .awsui_root_2rhyz_1hvex_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_13ehy_149:not(#\9) {
149
+ .awsui_input_2rhyz_1hvex_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-jatbiv, 4px);
180
180
  padding-inline: var(--space-field-horizontal-n5peob, 8px);
181
- color: var(--awsui-style-color-default-b75yp7, var(--color-text-body-default-5qid0u, #16191f));
181
+ color: var(--color-text-body-default-5qid0u, #16191f);
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-1z2buq, #ffffff));
185
+ background-color: var(--color-background-input-default-1z2buq, #ffffff);
186
186
  border-start-start-radius: var(--border-radius-input-4vr9on, 2px);
187
187
  border-start-end-radius: var(--border-radius-input-4vr9on, 2px);
188
188
  border-end-start-radius: var(--border-radius-input-4vr9on, 2px);
189
189
  border-end-end-radius: var(--border-radius-input-4vr9on, 2px);
190
- border-block: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-default-txli8y, #687078));
191
- border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-default-txli8y, #687078));
192
- box-shadow: var(--awsui-style-box-shadow-default-b75yp7);
190
+ border-block: var(--border-width-field-9k1tdz, 1px) solid var(--color-border-input-default-txli8y, #687078);
191
+ border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--color-border-input-default-txli8y, #687078);
193
192
  font-size: var(--font-size-body-m-vv54cm, 14px);
194
193
  line-height: var(--line-height-body-m-bedeoh, 22px);
195
194
  block-size: var(--size-vertical-input-8gzd1t, 32px);
196
195
  }
197
- .awsui_input_2rhyz_13ehy_149.awsui_input-readonly_2rhyz_13ehy_197:not(#\9) {
198
- background-color: var(--awsui-style-background-readonly-b75yp7, var(--awsui-style-background-default-b75yp7, var(--color-background-input-default-1z2buq, #ffffff)));
199
- border-block: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-readonly-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-disabled-tz38ro, #eaeded)));
200
- border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-readonly-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-disabled-tz38ro, #eaeded)));
201
- color: var(--awsui-style-color-readonly-b75yp7, var(--awsui-style-color-default-b75yp7, var(--color-text-body-default-5qid0u, #16191f)));
202
- box-shadow: var(--awsui-style-box-shadow-readonly-b75yp7);
196
+ .awsui_input_2rhyz_1hvex_149.awsui_input-readonly_2rhyz_1hvex_196:not(#\9) {
197
+ background-color: var(--color-background-input-default-1z2buq, #ffffff);
198
+ border-block: var(--border-width-field-9k1tdz, 1px) solid var(--color-border-input-disabled-tz38ro, #eaeded);
199
+ border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--color-border-input-disabled-tz38ro, #eaeded);
203
200
  }
204
- .awsui_input_2rhyz_13ehy_149:not(#\9)::-webkit-input-placeholder {
205
- color: var(--awsui-style-placeholder-color-b75yp7, var(--color-text-input-placeholder-hvcry0, #687078));
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_1hvex_149:not(#\9)::-webkit-input-placeholder {
202
+ color: var(--color-text-input-placeholder-hvcry0, #687078);
203
+ font-style: italic;
209
204
  -webkit-user-select: none;
210
205
  user-select: none;
211
206
  }
212
- .awsui_input_2rhyz_13ehy_149:not(#\9)::-moz-placeholder {
213
- color: var(--awsui-style-placeholder-color-b75yp7, var(--color-text-input-placeholder-hvcry0, #687078));
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_1hvex_149:not(#\9)::-moz-placeholder {
208
+ color: var(--color-text-input-placeholder-hvcry0, #687078);
209
+ font-style: italic;
217
210
  opacity: 1;
218
211
  }
219
- .awsui_input_2rhyz_13ehy_149:not(#\9):-moz-placeholder {
220
- color: var(--awsui-style-placeholder-color-b75yp7, var(--color-text-input-placeholder-hvcry0, #687078));
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_1hvex_149:not(#\9):-moz-placeholder {
213
+ color: var(--color-text-input-placeholder-hvcry0, #687078);
214
+ font-style: italic;
224
215
  opacity: 1;
225
216
  }
226
- .awsui_input_2rhyz_13ehy_149:not(#\9):focus {
217
+ .awsui_input_2rhyz_1hvex_149:not(#\9):focus {
227
218
  outline: 2px dotted transparent;
228
- border-block: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-focus-b75yp7, var(--color-border-input-focused-lslq4r, #0073bb));
229
- border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-focus-b75yp7, var(--color-border-input-focused-lslq4r, #0073bb));
219
+ border-block: var(--border-width-field-9k1tdz, 1px) solid var(--color-border-input-focused-lslq4r, #0073bb);
220
+ border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--color-border-input-focused-lslq4r, #0073bb);
230
221
  border-start-start-radius: var(--border-radius-input-4vr9on, 2px);
231
222
  border-start-end-radius: var(--border-radius-input-4vr9on, 2px);
232
223
  border-end-start-radius: var(--border-radius-input-4vr9on, 2px);
233
224
  border-end-end-radius: var(--border-radius-input-4vr9on, 2px);
234
- box-shadow: var(--awsui-style-box-shadow-focus-b75yp7, 0 0 0 var(--border-control-focus-ring-shadow-spread-ql2vj7, 1px) var(--color-border-item-focused-r5f6xl, #0073bb));
235
- color: var(--awsui-style-color-focus-b75yp7, var(--color-text-body-default-5qid0u, #16191f));
236
- background-color: var(--awsui-style-background-focus-b75yp7, var(--color-background-input-default-1z2buq, #ffffff));
225
+ box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-ql2vj7, 1px) var(--color-border-item-focused-r5f6xl, #0073bb);
237
226
  }
238
- .awsui_input_2rhyz_13ehy_149:not(#\9):disabled {
239
- background-color: var(--awsui-style-background-disabled-b75yp7, var(--color-background-input-disabled-4vlau3, #eaeded));
240
- border-block: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-disabled-b75yp7, var(--color-border-input-disabled-tz38ro, #eaeded));
241
- border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--awsui-style-border-color-disabled-b75yp7, var(--color-border-input-disabled-tz38ro, #eaeded));
242
- color: var(--awsui-style-color-disabled-b75yp7, var(--color-text-input-disabled-y5t5v9, #879596));
227
+ .awsui_input_2rhyz_1hvex_149:not(#\9):disabled {
228
+ background-color: var(--color-background-input-disabled-4vlau3, #eaeded);
229
+ border-block: var(--border-width-field-9k1tdz, 1px) solid var(--color-border-input-disabled-tz38ro, #eaeded);
230
+ border-inline: var(--border-width-field-9k1tdz, 1px) solid var(--color-border-input-disabled-tz38ro, #eaeded);
231
+ color: var(--color-text-input-disabled-y5t5v9, #879596);
232
+ cursor: auto;
243
233
  cursor: default;
244
- box-shadow: var(--awsui-style-box-shadow-disabled-b75yp7);
245
234
  }
246
- .awsui_input_2rhyz_13ehy_149:not(#\9):disabled::-webkit-input-placeholder {
235
+ .awsui_input_2rhyz_1hvex_149:not(#\9):disabled::-webkit-input-placeholder {
247
236
  color: var(--color-text-input-placeholder-disabled-x4lauf, #687078);
248
237
  -webkit-user-select: none;
249
238
  user-select: none;
250
239
  }
251
- .awsui_input_2rhyz_13ehy_149:not(#\9):disabled::-moz-placeholder {
240
+ .awsui_input_2rhyz_1hvex_149:not(#\9):disabled::-moz-placeholder {
252
241
  color: var(--color-text-input-placeholder-disabled-x4lauf, #687078);
253
242
  opacity: 1;
254
243
  }
255
- .awsui_input_2rhyz_13ehy_149:not(#\9):disabled:-moz-placeholder {
244
+ .awsui_input_2rhyz_1hvex_149:not(#\9):disabled:-moz-placeholder {
256
245
  color: var(--color-text-input-placeholder-disabled-x4lauf, #687078);
257
246
  opacity: 1;
258
247
  }
259
- .awsui_input_2rhyz_13ehy_149:not(#\9):invalid {
248
+ .awsui_input_2rhyz_1hvex_149:not(#\9):invalid {
260
249
  box-shadow: none;
261
250
  }
262
- .awsui_input_2rhyz_13ehy_149:not(#\9):hover:not(:focus):not(:disabled):not(.awsui_input-readonly_2rhyz_13ehy_197) {
263
- border-color: var(--awsui-style-border-color-hover-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-border-input-default-txli8y, #687078)));
264
- color: var(--awsui-style-color-hover-b75yp7, var(--awsui-style-border-color-default-b75yp7, var(--color-text-body-default-5qid0u, #16191f)));
265
- background-color: var(--awsui-style-background-hover-b75yp7, var(--awsui-style-background-default-b75yp7, var(--color-background-input-default-1z2buq, #ffffff)));
266
- box-shadow: var(--awsui-style-box-shadow-hover-b75yp7, --awsui-style-box-shadow-default-b75yp7);
267
- }
268
- .awsui_input_2rhyz_13ehy_149.awsui_input-invalid_2rhyz_13ehy_266:not(#\9) {
251
+ .awsui_input_2rhyz_1hvex_149.awsui_input-invalid_2rhyz_1hvex_249:not(#\9) {
269
252
  color: var(--color-text-status-error-aknuvu, #d13212);
270
253
  border-color: var(--color-text-status-error-aknuvu, #d13212);
271
254
  padding-inline-start: calc(var(--space-field-horizontal-n5peob, 8px) - (var(--border-invalid-width-z5cnpo, 4px) - var(--border-width-field-9k1tdz, 1px)));
272
255
  border-inline-start-width: var(--border-invalid-width-z5cnpo, 4px);
273
256
  }
274
- .awsui_input_2rhyz_13ehy_149.awsui_input-invalid_2rhyz_13ehy_266:not(#\9):focus {
257
+ .awsui_input_2rhyz_1hvex_149.awsui_input-invalid_2rhyz_1hvex_249:not(#\9):focus {
275
258
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-t0us6n, 1px) var(--color-border-item-focused-r5f6xl, #0073bb);
276
259
  }
277
- .awsui_input_2rhyz_13ehy_149.awsui_input-invalid_2rhyz_13ehy_266.awsui_input-has-icon-left_2rhyz_13ehy_275:not(#\9) {
260
+ .awsui_input_2rhyz_1hvex_149.awsui_input-invalid_2rhyz_1hvex_249.awsui_input-has-icon-left_2rhyz_1hvex_258:not(#\9) {
278
261
  padding-inline-start: calc(var(--space-field-icon-offset-ihoxql, 32px) - (var(--border-invalid-width-z5cnpo, 4px) - var(--border-width-field-9k1tdz, 1px)));
279
262
  }
280
- .awsui_input_2rhyz_13ehy_149.awsui_input-warning_2rhyz_13ehy_278:not(#\9) {
263
+ .awsui_input_2rhyz_1hvex_149.awsui_input-warning_2rhyz_1hvex_261:not(#\9) {
281
264
  color: var(--color-text-status-warning-9b45qh, #906806);
282
265
  border-color: var(--color-text-status-warning-9b45qh, #906806);
283
266
  padding-inline-start: calc(var(--space-field-horizontal-n5peob, 8px) - (var(--border-invalid-width-z5cnpo, 4px) - var(--border-width-field-9k1tdz, 1px)));
284
267
  border-inline-start-width: var(--border-invalid-width-z5cnpo, 4px);
285
268
  }
286
- .awsui_input_2rhyz_13ehy_149.awsui_input-warning_2rhyz_13ehy_278:not(#\9):focus {
269
+ .awsui_input_2rhyz_1hvex_149.awsui_input-warning_2rhyz_1hvex_261:not(#\9):focus {
287
270
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-t0us6n, 1px) var(--color-border-item-focused-r5f6xl, #0073bb);
288
271
  }
289
- .awsui_input_2rhyz_13ehy_149.awsui_input-warning_2rhyz_13ehy_278.awsui_input-has-icon-left_2rhyz_13ehy_275:not(#\9) {
272
+ .awsui_input_2rhyz_1hvex_149.awsui_input-warning_2rhyz_1hvex_261.awsui_input-has-icon-left_2rhyz_1hvex_258:not(#\9) {
290
273
  padding-inline-start: calc(var(--space-field-icon-offset-ihoxql, 32px) - (var(--border-invalid-width-z5cnpo, 4px) - var(--border-width-field-9k1tdz, 1px)));
291
274
  }
292
- .awsui_input_2rhyz_13ehy_149.awsui_input-type-search_2rhyz_13ehy_290:not(#\9) {
275
+ .awsui_input_2rhyz_1hvex_149.awsui_input-type-search_2rhyz_1hvex_273:not(#\9) {
293
276
  box-sizing: border-box;
294
277
  -webkit-appearance: none;
295
278
  }
296
- .awsui_input_2rhyz_13ehy_149.awsui_input-type-search_2rhyz_13ehy_290:not(#\9)::-webkit-search-decoration {
279
+ .awsui_input_2rhyz_1hvex_149.awsui_input-type-search_2rhyz_1hvex_273:not(#\9)::-webkit-search-decoration {
297
280
  -webkit-appearance: none;
298
281
  }
299
- .awsui_input_2rhyz_13ehy_149.awsui_input-type-search_2rhyz_13ehy_290:not(#\9)::-webkit-search-cancel-button {
282
+ .awsui_input_2rhyz_1hvex_149.awsui_input-type-search_2rhyz_1hvex_273:not(#\9)::-webkit-search-cancel-button {
300
283
  display: none;
301
284
  }
302
- .awsui_input_2rhyz_13ehy_149.awsui_input-has-icon-left_2rhyz_13ehy_275:not(#\9) {
285
+ .awsui_input_2rhyz_1hvex_149.awsui_input-has-icon-left_2rhyz_1hvex_258:not(#\9) {
303
286
  padding-inline-start: var(--space-field-icon-offset-ihoxql, 32px);
304
287
  }
305
- .awsui_input_2rhyz_13ehy_149.awsui_input-has-icon-right_2rhyz_13ehy_303:not(#\9) {
288
+ .awsui_input_2rhyz_1hvex_149.awsui_input-has-icon-right_2rhyz_1hvex_286:not(#\9) {
306
289
  padding-inline-end: var(--space-field-icon-offset-ihoxql, 32px);
307
290
  }
308
- .awsui_input_2rhyz_13ehy_149.awsui_input-has-no-border-radius_2rhyz_13ehy_306:not(#\9) {
291
+ .awsui_input_2rhyz_1hvex_149.awsui_input-has-no-border-radius_2rhyz_1hvex_289:not(#\9) {
309
292
  border-start-start-radius: var(--border-radius-dropdown-oaxffg, 0px);
310
293
  border-start-end-radius: var(--border-radius-dropdown-oaxffg, 0px);
311
294
  border-end-start-radius: var(--border-radius-dropdown-oaxffg, 0px);
312
295
  border-end-end-radius: var(--border-radius-dropdown-oaxffg, 0px);
313
296
  }
314
297
 
315
- .awsui_input-container_2rhyz_13ehy_313:not(#\9) {
298
+ .awsui_input-container_2rhyz_1hvex_296:not(#\9) {
316
299
  display: flex;
317
300
  position: relative;
318
301
  }
319
302
 
320
- .awsui_input-icon-left_2rhyz_13ehy_318:not(#\9) {
303
+ .awsui_input-icon-left_2rhyz_1hvex_301:not(#\9) {
321
304
  position: absolute;
322
305
  pointer-events: none;
323
306
  inset-inline-start: var(--space-field-horizontal-n5peob, 8px);
324
307
  inset-block-start: calc(50% - var(--line-height-body-m-bedeoh, 22px) / 2);
325
308
  }
326
309
 
327
- .awsui_input-icon-right_2rhyz_13ehy_325:not(#\9) {
310
+ .awsui_input-icon-right_2rhyz_1hvex_308:not(#\9) {
328
311
  position: absolute;
329
312
  inset-block-start: calc(calc(50% - var(--line-height-body-m-bedeoh, 22px) / 2) - var(--space-xxxs-3w1kr2, 2px));
330
313
  inset-inline-end: calc(var(--space-field-horizontal-n5peob, 8px) - var(--space-xxs-jnczic, 4px));
331
314
  }
332
315
 
333
- .awsui_input-button-right_2rhyz_13ehy_331:not(#\9) {
316
+ .awsui_input-button-right_2rhyz_1hvex_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_13ehy_145",
6
- "input": "awsui_input_2rhyz_13ehy_149",
7
- "input-readonly": "awsui_input-readonly_2rhyz_13ehy_197",
8
- "input-invalid": "awsui_input-invalid_2rhyz_13ehy_266",
9
- "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_13ehy_275",
10
- "input-warning": "awsui_input-warning_2rhyz_13ehy_278",
11
- "input-type-search": "awsui_input-type-search_2rhyz_13ehy_290",
12
- "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_13ehy_303",
13
- "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_13ehy_306",
14
- "input-container": "awsui_input-container_2rhyz_13ehy_313",
15
- "input-icon-left": "awsui_input-icon-left_2rhyz_13ehy_318",
16
- "input-icon-right": "awsui_input-icon-right_2rhyz_13ehy_325",
17
- "input-button-right": "awsui_input-button-right_2rhyz_13ehy_331"
5
+ "root": "awsui_root_2rhyz_1hvex_145",
6
+ "input": "awsui_input_2rhyz_1hvex_149",
7
+ "input-readonly": "awsui_input-readonly_2rhyz_1hvex_196",
8
+ "input-invalid": "awsui_input-invalid_2rhyz_1hvex_249",
9
+ "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1hvex_258",
10
+ "input-warning": "awsui_input-warning_2rhyz_1hvex_261",
11
+ "input-type-search": "awsui_input-type-search_2rhyz_1hvex_273",
12
+ "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1hvex_286",
13
+ "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1hvex_289",
14
+ "input-container": "awsui_input-container_2rhyz_1hvex_296",
15
+ "input-icon-left": "awsui_input-icon-left_2rhyz_1hvex_301",
16
+ "input-icon-right": "awsui_input-icon-right_2rhyz_1hvex_308",
17
+ "input-button-right": "awsui_input-button-right_2rhyz_1hvex_314"
18
18
  };
19
19
 
@@ -3913,5 +3913,5 @@
3913
3913
  }
3914
3914
  }
3915
3915
  :root {
3916
- --awsui-version-info-a5c0ddf5: true;
3916
+ --awsui-version-info-f44f577a: true;
3917
3917
  }
@@ -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_4ftju_169",
5
- "direction-button-wrapper-motion-enter": "awsui_direction-button-wrapper-motion-enter_155yk_4ftju_189",
6
- "direction-button-wrapper-motion-entering": "awsui_direction-button-wrapper-motion-entering_155yk_4ftju_189",
7
- "direction-button-wrapper-motion-exit": "awsui_direction-button-wrapper-motion-exit_155yk_4ftju_189",
8
- "direction-button-wrapper-motion-exiting": "awsui_direction-button-wrapper-motion-exiting_155yk_4ftju_189",
9
- "drag-handle-entry": "awsui_drag-handle-entry_155yk_4ftju_1",
10
- "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_155yk_4ftju_1",
11
- "drag-handle-exit": "awsui_drag-handle-exit_155yk_4ftju_1",
12
- "awsui-motion-fade-out-0": "awsui_awsui-motion-fade-out-0_155yk_4ftju_1",
13
- "direction-button-wrapper-block-start": "awsui_direction-button-wrapper-block-start_155yk_4ftju_229",
14
- "direction-button-wrapper-block-end": "awsui_direction-button-wrapper-block-end_155yk_4ftju_233",
15
- "direction-button-wrapper-inline-start": "awsui_direction-button-wrapper-inline-start_155yk_4ftju_237",
16
- "direction-button-wrapper-inline-end": "awsui_direction-button-wrapper-inline-end_155yk_4ftju_248",
17
- "contents": "awsui_contents_155yk_4ftju_259",
18
- "portal-overlay": "awsui_portal-overlay_155yk_4ftju_263",
19
- "portal-overlay-contents": "awsui_portal-overlay-contents_155yk_4ftju_271",
20
- "drag-handle": "awsui_drag-handle_155yk_4ftju_275",
21
- "direction-button-wrapper-hidden": "awsui_direction-button-wrapper-hidden_155yk_4ftju_288",
22
- "direction-button": "awsui_direction-button_155yk_4ftju_169",
23
- "direction-button-disabled": "awsui_direction-button-disabled_155yk_4ftju_331"
4
+ "direction-button-wrapper": "awsui_direction-button-wrapper_155yk_1rmoh_169",
5
+ "direction-button-wrapper-motion-enter": "awsui_direction-button-wrapper-motion-enter_155yk_1rmoh_189",
6
+ "direction-button-wrapper-motion-entering": "awsui_direction-button-wrapper-motion-entering_155yk_1rmoh_189",
7
+ "direction-button-wrapper-motion-exit": "awsui_direction-button-wrapper-motion-exit_155yk_1rmoh_189",
8
+ "direction-button-wrapper-motion-exiting": "awsui_direction-button-wrapper-motion-exiting_155yk_1rmoh_189",
9
+ "drag-handle-entry": "awsui_drag-handle-entry_155yk_1rmoh_1",
10
+ "awsui-motion-fade-in": "awsui_awsui-motion-fade-in_155yk_1rmoh_1",
11
+ "drag-handle-exit": "awsui_drag-handle-exit_155yk_1rmoh_1",
12
+ "awsui-motion-fade-out-0": "awsui_awsui-motion-fade-out-0_155yk_1rmoh_1",
13
+ "direction-button-wrapper-block-start": "awsui_direction-button-wrapper-block-start_155yk_1rmoh_229",
14
+ "direction-button-wrapper-block-end": "awsui_direction-button-wrapper-block-end_155yk_1rmoh_233",
15
+ "direction-button-wrapper-inline-start": "awsui_direction-button-wrapper-inline-start_155yk_1rmoh_237",
16
+ "direction-button-wrapper-inline-end": "awsui_direction-button-wrapper-inline-end_155yk_1rmoh_248",
17
+ "contents": "awsui_contents_155yk_1rmoh_259",
18
+ "portal-overlay": "awsui_portal-overlay_155yk_1rmoh_263",
19
+ "portal-overlay-contents": "awsui_portal-overlay-contents_155yk_1rmoh_271",
20
+ "drag-handle": "awsui_drag-handle_155yk_1rmoh_275",
21
+ "direction-button-wrapper-hidden": "awsui_direction-button-wrapper-hidden_155yk_1rmoh_288",
22
+ "direction-button": "awsui_direction-button_155yk_1rmoh_169",
23
+ "direction-button-disabled": "awsui_direction-button-disabled_155yk_1rmoh_331"
24
24
  };
25
25