@cloudscape-design/components 3.0.624 → 3.0.626

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 (168) hide show
  1. package/alert/index.d.ts.map +1 -1
  2. package/alert/index.js +9 -5
  3. package/alert/index.js.map +1 -1
  4. package/attribute-editor/interfaces.d.ts +4 -0
  5. package/attribute-editor/interfaces.d.ts.map +1 -1
  6. package/attribute-editor/interfaces.js.map +1 -1
  7. package/attribute-editor/row.d.ts.map +1 -1
  8. package/attribute-editor/row.js +4 -1
  9. package/attribute-editor/row.js.map +1 -1
  10. package/button/styles.css.js +19 -19
  11. package/button/styles.scoped.css +159 -151
  12. package/button/styles.selectors.js +19 -19
  13. package/container/index.js +1 -1
  14. package/container/index.js.map +1 -1
  15. package/date-picker/index.d.ts.map +1 -1
  16. package/date-picker/index.js +2 -2
  17. package/date-picker/index.js.map +1 -1
  18. package/date-range-picker/index.d.ts.map +1 -1
  19. package/date-range-picker/index.js +2 -2
  20. package/date-range-picker/index.js.map +1 -1
  21. package/drawer/styles.css.js +3 -3
  22. package/drawer/styles.scoped.css +13 -13
  23. package/drawer/styles.selectors.js +3 -3
  24. package/file-upload/interfaces.d.ts +14 -4
  25. package/file-upload/interfaces.d.ts.map +1 -1
  26. package/file-upload/interfaces.js.map +1 -1
  27. package/file-upload/internal.js +13 -7
  28. package/file-upload/internal.js.map +1 -1
  29. package/form/index.d.ts.map +1 -1
  30. package/form/index.js +17 -6
  31. package/form/index.js.map +1 -1
  32. package/form/internal.d.ts.map +1 -1
  33. package/form/internal.js +1 -14
  34. package/form/internal.js.map +1 -1
  35. package/form-field/index.d.ts.map +1 -1
  36. package/form-field/index.js +3 -2
  37. package/form-field/index.js.map +1 -1
  38. package/form-field/interfaces.d.ts +12 -1
  39. package/form-field/interfaces.d.ts.map +1 -1
  40. package/form-field/interfaces.js.map +1 -1
  41. package/form-field/internal.d.ts +9 -3
  42. package/form-field/internal.d.ts.map +1 -1
  43. package/form-field/internal.js +36 -11
  44. package/form-field/internal.js.map +1 -1
  45. package/form-field/styles.css.js +23 -19
  46. package/form-field/styles.scoped.css +45 -29
  47. package/form-field/styles.selectors.js +23 -19
  48. package/form-field/util.d.ts +3 -2
  49. package/form-field/util.d.ts.map +1 -1
  50. package/form-field/util.js +4 -3
  51. package/form-field/util.js.map +1 -1
  52. package/help-panel/styles.css.js +4 -4
  53. package/help-panel/styles.scoped.css +71 -71
  54. package/help-panel/styles.selectors.js +4 -4
  55. package/input/index.d.ts.map +1 -1
  56. package/input/index.js +2 -1
  57. package/input/index.js.map +1 -1
  58. package/input/internal.d.ts.map +1 -1
  59. package/input/internal.js +4 -1
  60. package/input/internal.js.map +1 -1
  61. package/input/styles.css.js +13 -12
  62. package/input/styles.scoped.css +46 -30
  63. package/input/styles.selectors.js +13 -12
  64. package/internal/analytics/components/analytics-funnel.d.ts +12 -12
  65. package/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
  66. package/internal/analytics/components/analytics-funnel.js +38 -25
  67. package/internal/analytics/components/analytics-funnel.js.map +1 -1
  68. package/internal/analytics/context/analytics-context.d.ts +7 -2
  69. package/internal/analytics/context/analytics-context.d.ts.map +1 -1
  70. package/internal/analytics/context/analytics-context.js.map +1 -1
  71. package/internal/analytics/hooks/use-funnel.d.ts +5 -1
  72. package/internal/analytics/hooks/use-funnel.d.ts.map +1 -1
  73. package/internal/analytics/hooks/use-funnel.js +9 -5
  74. package/internal/analytics/hooks/use-funnel.js.map +1 -1
  75. package/internal/analytics/interfaces.d.ts +23 -37
  76. package/internal/analytics/interfaces.d.ts.map +1 -1
  77. package/internal/analytics/interfaces.js.map +1 -1
  78. package/internal/base-component/index.d.ts +1 -1
  79. package/internal/base-component/index.d.ts.map +1 -1
  80. package/internal/base-component/index.js +1 -1
  81. package/internal/base-component/index.js.map +1 -1
  82. package/internal/base-component/styles.scoped.css +20 -0
  83. package/internal/components/button-trigger/index.d.ts +1 -0
  84. package/internal/components/button-trigger/index.d.ts.map +1 -1
  85. package/internal/components/button-trigger/index.js +2 -2
  86. package/internal/components/button-trigger/index.js.map +1 -1
  87. package/internal/components/button-trigger/styles.css.js +11 -10
  88. package/internal/components/button-trigger/styles.scoped.css +35 -24
  89. package/internal/components/button-trigger/styles.selectors.js +11 -10
  90. package/internal/context/form-field-context.d.ts +14 -1
  91. package/internal/context/form-field-context.d.ts.map +1 -1
  92. package/internal/context/form-field-context.js +1 -1
  93. package/internal/context/form-field-context.js.map +1 -1
  94. package/internal/environment.js +1 -1
  95. package/internal/environment.json +1 -1
  96. package/internal/generated/styles/tokens.d.ts +5 -0
  97. package/internal/generated/styles/tokens.js +5 -0
  98. package/internal/generated/theming/index.cjs +75 -0
  99. package/internal/generated/theming/index.js +75 -0
  100. package/internal/manifest.json +1 -1
  101. package/link/internal.d.ts.map +1 -1
  102. package/link/internal.js +9 -3
  103. package/link/internal.js.map +1 -1
  104. package/modal/body-scroll.d.ts.map +1 -1
  105. package/modal/body-scroll.js +5 -0
  106. package/modal/body-scroll.js.map +1 -1
  107. package/package.json +1 -1
  108. package/select/parts/filter.d.ts +1 -1
  109. package/select/parts/filter.d.ts.map +1 -1
  110. package/select/parts/trigger.d.ts.map +1 -1
  111. package/select/parts/trigger.js +2 -2
  112. package/select/parts/trigger.js.map +1 -1
  113. package/side-navigation/styles.css.js +28 -28
  114. package/side-navigation/styles.scoped.css +44 -43
  115. package/side-navigation/styles.selectors.js +28 -28
  116. package/table/body-cell/disabled-inline-editor.d.ts +1 -1
  117. package/table/body-cell/disabled-inline-editor.d.ts.map +1 -1
  118. package/table/body-cell/disabled-inline-editor.js +2 -2
  119. package/table/body-cell/disabled-inline-editor.js.map +1 -1
  120. package/table/body-cell/index.d.ts +1 -0
  121. package/table/body-cell/index.d.ts.map +1 -1
  122. package/table/body-cell/index.js +2 -2
  123. package/table/body-cell/index.js.map +1 -1
  124. package/table/body-cell/styles.css.js +44 -43
  125. package/table/body-cell/styles.scoped.css +167 -165
  126. package/table/body-cell/styles.selectors.js +44 -43
  127. package/table/internal.d.ts.map +1 -1
  128. package/table/internal.js +1 -1
  129. package/table/internal.js.map +1 -1
  130. package/test-utils/dom/file-upload/index.d.ts +2 -0
  131. package/test-utils/dom/file-upload/index.js +6 -0
  132. package/test-utils/dom/file-upload/index.js.map +1 -1
  133. package/test-utils/dom/form-field/index.d.ts +1 -0
  134. package/test-utils/dom/form-field/index.js +3 -0
  135. package/test-utils/dom/form-field/index.js.map +1 -1
  136. package/test-utils/selectors/file-upload/index.d.ts +2 -0
  137. package/test-utils/selectors/file-upload/index.js +6 -0
  138. package/test-utils/selectors/file-upload/index.js.map +1 -1
  139. package/test-utils/selectors/form-field/index.d.ts +1 -0
  140. package/test-utils/selectors/form-field/index.js +3 -0
  141. package/test-utils/selectors/form-field/index.js.map +1 -1
  142. package/test-utils/tsconfig.tsbuildinfo +1 -1
  143. package/textarea/index.d.ts.map +1 -1
  144. package/textarea/index.js +2 -1
  145. package/textarea/index.js.map +1 -1
  146. package/textarea/styles.css.js +5 -4
  147. package/textarea/styles.scoped.css +23 -12
  148. package/textarea/styles.selectors.js +5 -4
  149. package/token-group/styles.css.js +9 -8
  150. package/token-group/styles.scoped.css +27 -16
  151. package/token-group/styles.selectors.js +9 -8
  152. package/token-group/token.d.ts +3 -1
  153. package/token-group/token.d.ts.map +1 -1
  154. package/token-group/token.js +8 -5
  155. package/token-group/token.js.map +1 -1
  156. package/wizard/analytics.d.ts +2 -1
  157. package/wizard/analytics.d.ts.map +1 -1
  158. package/wizard/analytics.js +7 -3
  159. package/wizard/analytics.js.map +1 -1
  160. package/wizard/index.js +1 -1
  161. package/wizard/index.js.map +1 -1
  162. package/wizard/internal.d.ts.map +1 -1
  163. package/wizard/internal.js +2 -2
  164. package/wizard/internal.js.map +1 -1
  165. package/wizard/wizard-form.d.ts +4 -2
  166. package/wizard/wizard-form.d.ts.map +1 -1
  167. package/wizard/wizard-form.js +31 -19
  168. package/wizard/wizard-form.js.map +1 -1
@@ -2,9 +2,9 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "help-panel": "awsui_help-panel_1d237_xb6zh_100",
6
- "header": "awsui_header_1d237_xb6zh_269",
7
- "content": "awsui_content_1d237_xb6zh_300",
8
- "footer": "awsui_footer_1d237_xb6zh_346"
5
+ "help-panel": "awsui_help-panel_1d237_nqluc_100",
6
+ "header": "awsui_header_1d237_nqluc_269",
7
+ "content": "awsui_content_1d237_nqluc_300",
8
+ "footer": "awsui_footer_1d237_nqluc_346"
9
9
  };
10
10
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,QAAA,MAAM,KAAK,mFAuFV,CAAC;AAGF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":"AAGA,OAAO,KAA2C,MAAM,OAAO,CAAC;AAGhE,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAK1C,OAAO,EAAE,UAAU,EAAE,CAAC;AAEtB,QAAA,MAAM,KAAK,mFAyFV,CAAC;AAGF,eAAe,KAAK,CAAC"}
package/input/index.js CHANGED
@@ -9,7 +9,7 @@ import styles from './styles.css.js';
9
9
  import { applyDisplayName } from '../internal/utils/apply-display-name';
10
10
  import useBaseComponent from '../internal/hooks/use-base-component';
11
11
  const Input = React.forwardRef((_a, ref) => {
12
- 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, controlId, clearAriaLabel } = _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", "controlId", "clearAriaLabel"]);
12
+ 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 } = _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"]);
13
13
  const baseComponentProps = useBaseComponent('Input', {
14
14
  props: { autoComplete, autoFocus, disableBrowserAutocorrect, inputMode, readOnly, spellcheck, type },
15
15
  });
@@ -47,6 +47,7 @@ const Input = React.forwardRef((_a, ref) => {
47
47
  ariaDescribedby,
48
48
  ariaLabelledby,
49
49
  invalid,
50
+ warning,
50
51
  controlId,
51
52
  clearAriaLabel }), { className: clsx(styles.root, baseProps.className), __inheritFormFieldProps: true })));
52
53
  });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/input/index.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAO,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,aAAa,MAAM,YAAY,CAAC;AAEvC,OAAO,MAAM,MAAM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,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,SAAS;QACT,cAAc,OAEhB,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,EACjD,uBAAuB,EAAE,IAAI,IAC7B,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\nimport clsx from 'clsx';\nimport React, { Ref, useImperativeHandle, useRef } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport InternalInput from './internal';\nimport { InputProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\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 controlId,\n clearAriaLabel,\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 controlId,\n clearAriaLabel,\n }}\n className={clsx(styles.root, baseProps.className)}\n __inheritFormFieldProps={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,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAO,mBAAmB,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,aAAa,MAAM,YAAY,CAAC;AAEvC,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AAIpE,MAAM,KAAK,GAAG,KAAK,CAAC,UAAU,CAC5B,CACE,EA2Ba,EACb,GAAwB,EACxB,EAAE;QA7BF,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,WA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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\nimport clsx from 'clsx';\nimport React, { Ref, useImperativeHandle, useRef } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport InternalInput from './internal';\nimport { InputProps } from './interfaces';\nimport styles from './styles.css.js';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport useBaseComponent from '../internal/hooks/use-base-component';\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 ...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 }}\n className={clsx(styles.root, baseProps.className)}\n __inheritFormFieldProps={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;AAG3C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAG/C,OAAO,EAA6C,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC1G,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAgB,MAAM,4BAA4B,CAAC;AAG9E,OAAO,EAAE,+BAA+B,EAAuB,MAAM,wCAAwC,CAAC;AAC9G,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAIlF,MAAM,WAAW,kBACf,SAAQ,kBAAkB,EACxB,cAAc,EACd,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,EACxB,gBAAgB,EAChB,+BAA+B,EAC/B,0BAA0B;IAC5B,IAAI,CAAC,EAAE,UAAU,CAAC,MAAM,CAAC,GAAG,cAAc,CAAC;IAC3C,UAAU,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAC/B,iBAAiB,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACzC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE/B,WAAW,CAAC,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;IAChC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;IAEhC,kBAAkB,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;IACjE,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B,gBAAgB,CAAC,EAAE,yBAAyB,CAAC,gBAAgB,CAAC,CAAC;IA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AC,EAAE,yBAAyB,CAAC,gBAAgB,CAAC,CAAC;IAC/D,kBAAkB,CAAC,EAAE,yBAAyB,CAAC;QAAE,aAAa,EAAE,IAAI,GAAG,IAAI,CAAA;KAAE,CAAC,CAAC;IAE/E,uBAAuB,CAAC,EAAE,OAAO,CAAC;CACnC;;AAiKD,wBAA+C"}
package/input/internal.js CHANGED
@@ -28,7 +28,9 @@ function InternalInput(_a, ref) {
28
28
  __rightIcon = __rightIcon !== null && __rightIcon !== void 0 ? __rightIcon : searchProps.__rightIcon;
29
29
  __onRightIconClick = __onRightIconClick !== null && __onRightIconClick !== void 0 ? __onRightIconClick : searchProps.__onRightIconClick;
30
30
  const formFieldContext = useFormFieldContext(rest);
31
- const { ariaLabelledby, ariaDescribedby, controlId, invalid } = __inheritFormFieldProps ? formFieldContext : rest;
31
+ const { ariaLabelledby, ariaDescribedby, controlId, invalid, warning } = __inheritFormFieldProps
32
+ ? formFieldContext
33
+ : rest;
32
34
  const attributes = Object.assign({ 'aria-label': ariaLabel,
33
35
  // aria-labelledby has precedence over aria-label in accessible name calculation.
34
36
  // When aria-label is provided for Input, it should override aria-labelledBy from form-field context.
@@ -38,6 +40,7 @@ function InternalInput(_a, ref) {
38
40
  autoFocus, id: controlId, className: clsx(styles.input, type && styles[`input-type-${type}`], __rightIcon && styles['input-has-icon-right'], __leftIcon && styles['input-has-icon-left'], __noBorderRadius && styles['input-has-no-border-radius'], {
39
41
  [styles['input-readonly']]: readOnly,
40
42
  [styles['input-invalid']]: invalid,
43
+ [styles['input-warning']]: warning && !invalid,
41
44
  }), autoComplete: convertAutoComplete(autoComplete), disabled,
42
45
  readOnly,
43
46
  type,
@@ -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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AE,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';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport InternalButton from '../button/internal';\nimport { fireNonCancelableEvent, fireKeyboardEvent, NonCancelableEventHandler } from '../internal/events';\nimport { InputProps, BaseInputProps, InputAutoCorrect, BaseChangeDetail } from './interfaces';\nimport { BaseComponentProps, getBaseProps } from '../internal/base-component';\nimport { useSearchProps, convertAutoComplete } from './utils';\nimport { useDebounceCallback } from '../internal/hooks/use-debounce-callback';\nimport { FormFieldValidationControlProps, useFormFieldContext } from '../internal/context/form-field-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport styles from './styles.css.js';\nimport { useInternalI18n } from '../i18n/context';\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 __nativeAttributes?: React.InputHTMLAttributes<HTMLInputElement>;\n __noBorderRadius?: boolean;\n\n __onDelayedInput?: NonCancelableEventHandler<BaseChangeDetail>;\n __onBlurWithDetail?: NonCancelableEventHandler<{ relatedTarget: Node | null }>;\n\n __inheritFormFieldProps?: boolean;\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 __nativeAttributes,\n __internalRootRef,\n __inheritFormFieldProps,\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 } = __inheritFormFieldProps ? formFieldContext : 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 }\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 onBlur && fireNonCancelableEvent(onBlur);\n __onBlurWithDetail && fireNonCancelableEvent(__onBlurWithDetail, { relatedTarget: e.relatedTarget });\n },\n onFocus: onFocus && (() => fireNonCancelableEvent(onFocus)),\n ...__nativeAttributes,\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 return (\n <div {...baseProps} className={clsx(baseProps.className, styles['input-container'])} ref={__internalRootRef}>\n {__leftIcon && (\n <span onClick={__onLeftIconClick} className={styles['input-icon-left']}>\n <InternalIcon name={__leftIcon} variant={disabled || readOnly ? 'disabled' : __leftIconVariant} />\n </span>\n )}\n <input ref={mergedRef} {...attributes} />\n {__rightIcon && (\n <span className={styles['input-icon-right']}>\n <InternalButton\n // Used for test utils\n // eslint-disable-next-line react/forbid-component-props\n className={styles['input-button-right']}\n variant=\"inline-icon\"\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;AACxB,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAEhE,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAA6B,MAAM,oBAAoB,CAAC;AAE1G,OAAO,EAAsB,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAmC,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAE9G,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AA0BlD,SAAS,aAAa,CACpB,EAqCqB,EACrB,GAA0B;QAtC1B,EACE,IAAI,GAAG,MAAM,EACb,IAAI,EACJ,SAAS,EACT,YAAY,GAAG,IAAI,EACnB,SAAS,EACT,cAAc,EAAE,sBAAsB,EACtC,IAAI,EACJ,KAAK,EACL,WAAW,EACX,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,yBAAyB,EACzB,UAAU,EACV,gBAAgB,EAEhB,UAAU,EACV,iBAAiB,GAA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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,6CAAO,GAAG,EAAE,SAAS,IAAM,UAAU,EAAI;QACxC,WAAW,IAAI,CACd,8BAAM,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC;YACzC,oBAAC,cAAc;YACb,sBAAsB;YACtB,wDAAwD;;gBADxD,sBAAsB;gBACtB,wDAAwD;gBACxD,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC,EACvC,OAAO,EAAC,aAAa,EACrB,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';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { IconProps } from '../icon/interfaces';\nimport InternalIcon from '../icon/internal';\nimport InternalButton from '../button/internal';\nimport { fireNonCancelableEvent, fireKeyboardEvent, NonCancelableEventHandler } from '../internal/events';\nimport { InputProps, BaseInputProps, InputAutoCorrect, BaseChangeDetail } from './interfaces';\nimport { BaseComponentProps, getBaseProps } from '../internal/base-component';\nimport { useSearchProps, convertAutoComplete } from './utils';\nimport { useDebounceCallback } from '../internal/hooks/use-debounce-callback';\nimport { FormFieldValidationControlProps, useFormFieldContext } from '../internal/context/form-field-context';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport styles from './styles.css.js';\nimport { useInternalI18n } from '../i18n/context';\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 __nativeAttributes?: React.InputHTMLAttributes<HTMLInputElement>;\n __noBorderRadius?: boolean;\n\n __onDelayedInput?: NonCancelableEventHandler<BaseChangeDetail>;\n __onBlurWithDetail?: NonCancelableEventHandler<{ relatedTarget: Node | null }>;\n\n __inheritFormFieldProps?: boolean;\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 __nativeAttributes,\n __internalRootRef,\n __inheritFormFieldProps,\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 onBlur && fireNonCancelableEvent(onBlur);\n __onBlurWithDetail && fireNonCancelableEvent(__onBlurWithDetail, { relatedTarget: e.relatedTarget });\n },\n onFocus: onFocus && (() => fireNonCancelableEvent(onFocus)),\n ...__nativeAttributes,\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 return (\n <div {...baseProps} className={clsx(baseProps.className, styles['input-container'])} ref={__internalRootRef}>\n {__leftIcon && (\n <span onClick={__onLeftIconClick} className={styles['input-icon-left']}>\n <InternalIcon name={__leftIcon} variant={disabled || readOnly ? 'disabled' : __leftIconVariant} />\n </span>\n )}\n <input ref={mergedRef} {...attributes} />\n {__rightIcon && (\n <span className={styles['input-icon-right']}>\n <InternalButton\n // Used for test utils\n // eslint-disable-next-line react/forbid-component-props\n className={styles['input-button-right']}\n variant=\"inline-icon\"\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,17 +1,18 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_2rhyz_15wpl_99",
5
- "input": "awsui_input_2rhyz_15wpl_103",
6
- "input-readonly": "awsui_input-readonly_2rhyz_15wpl_153",
7
- "input-invalid": "awsui_input-invalid_2rhyz_15wpl_220",
8
- "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_15wpl_231",
9
- "input-type-search": "awsui_input-type-search_2rhyz_15wpl_236",
10
- "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_15wpl_252",
11
- "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_15wpl_255",
12
- "input-container": "awsui_input-container_2rhyz_15wpl_262",
13
- "input-icon-left": "awsui_input-icon-left_2rhyz_15wpl_267",
14
- "input-icon-right": "awsui_input-icon-right_2rhyz_15wpl_274",
15
- "input-button-right": "awsui_input-button-right_2rhyz_15wpl_280"
4
+ "root": "awsui_root_2rhyz_deb6p_99",
5
+ "input": "awsui_input_2rhyz_deb6p_103",
6
+ "input-readonly": "awsui_input-readonly_2rhyz_deb6p_153",
7
+ "input-invalid": "awsui_input-invalid_2rhyz_deb6p_220",
8
+ "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_deb6p_231",
9
+ "input-warning": "awsui_input-warning_2rhyz_deb6p_236",
10
+ "input-type-search": "awsui_input-type-search_2rhyz_deb6p_252",
11
+ "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_deb6p_268",
12
+ "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_deb6p_271",
13
+ "input-container": "awsui_input-container_2rhyz_deb6p_278",
14
+ "input-icon-left": "awsui_input-icon-left_2rhyz_deb6p_283",
15
+ "input-icon-right": "awsui_input-icon-right_2rhyz_deb6p_290",
16
+ "input-button-right": "awsui_input-button-right_2rhyz_deb6p_296"
16
17
  };
17
18
 
@@ -96,11 +96,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
96
96
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
97
97
  SPDX-License-Identifier: Apache-2.0
98
98
  */
99
- .awsui_root_2rhyz_15wpl_99:not(#\9) {
99
+ .awsui_root_2rhyz_deb6p_99:not(#\9) {
100
100
  /* used in test-utils for component to distinguish input from other input-like components, for example autosuggest */
101
101
  }
102
102
 
103
- .awsui_input_2rhyz_15wpl_103:not(#\9) {
103
+ .awsui_input_2rhyz_deb6p_103:not(#\9) {
104
104
  border-collapse: separate;
105
105
  border-spacing: 0;
106
106
  box-sizing: border-box;
@@ -151,36 +151,36 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
151
151
  line-height: var(--line-height-body-m-30ar75, 20px);
152
152
  block-size: var(--size-vertical-input-v5iwwf, 32px);
153
153
  }
154
- .awsui_input_2rhyz_15wpl_103.awsui_input-readonly_2rhyz_15wpl_153:not(#\9) {
154
+ .awsui_input_2rhyz_deb6p_103.awsui_input-readonly_2rhyz_deb6p_153:not(#\9) {
155
155
  background-color: var(--color-background-input-default-igdh5e, #ffffff);
156
156
  border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-disabled-rx2aau, #e9ebed);
157
157
  border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-disabled-rx2aau, #e9ebed);
158
158
  }
159
- .awsui_input_2rhyz_15wpl_103:not(#\9)::-webkit-input-placeholder {
159
+ .awsui_input_2rhyz_deb6p_103:not(#\9)::-webkit-input-placeholder {
160
160
  color: var(--color-text-input-placeholder-mx1ygd, #5f6b7a);
161
161
  font-style: italic;
162
162
  -webkit-user-select: none;
163
163
  user-select: none;
164
164
  }
165
- .awsui_input_2rhyz_15wpl_103:not(#\9)::-ms-input-placeholder {
165
+ .awsui_input_2rhyz_deb6p_103:not(#\9)::-ms-input-placeholder {
166
166
  color: var(--color-text-input-placeholder-mx1ygd, #5f6b7a);
167
167
  font-style: italic;
168
168
  }
169
- .awsui_input_2rhyz_15wpl_103:not(#\9)::-moz-placeholder {
169
+ .awsui_input_2rhyz_deb6p_103:not(#\9)::-moz-placeholder {
170
170
  color: var(--color-text-input-placeholder-mx1ygd, #5f6b7a);
171
171
  font-style: italic;
172
172
  opacity: 1;
173
173
  }
174
- .awsui_input_2rhyz_15wpl_103:not(#\9):-ms-input-placeholder {
174
+ .awsui_input_2rhyz_deb6p_103:not(#\9):-ms-input-placeholder {
175
175
  color: var(--color-text-input-placeholder-mx1ygd, #5f6b7a);
176
176
  font-style: italic;
177
177
  }
178
- .awsui_input_2rhyz_15wpl_103:not(#\9):-moz-placeholder {
178
+ .awsui_input_2rhyz_deb6p_103:not(#\9):-moz-placeholder {
179
179
  color: var(--color-text-input-placeholder-mx1ygd, #5f6b7a);
180
180
  font-style: italic;
181
181
  opacity: 1;
182
182
  }
183
- .awsui_input_2rhyz_15wpl_103:not(#\9):focus {
183
+ .awsui_input_2rhyz_deb6p_103:not(#\9):focus {
184
184
  outline: 2px dotted transparent;
185
185
  border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-focused-3d15sl, #033160);
186
186
  border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-focused-3d15sl, #033160);
@@ -190,7 +190,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
190
190
  border-end-end-radius: var(--border-radius-input-plgbrq, 8px);
191
191
  box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-0ctpjf, 0px) var(--color-border-item-focused-b2ntyl, #0972d3);
192
192
  }
193
- .awsui_input_2rhyz_15wpl_103:not(#\9):disabled {
193
+ .awsui_input_2rhyz_deb6p_103:not(#\9):disabled {
194
194
  background-color: var(--color-background-input-disabled-ab59a3, #e9ebed);
195
195
  border-block: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-disabled-rx2aau, #e9ebed);
196
196
  border-inline: var(--border-field-width-09w7vk, 2px) solid var(--color-border-input-disabled-rx2aau, #e9ebed);
@@ -198,29 +198,29 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
198
198
  cursor: auto;
199
199
  cursor: default;
200
200
  }
201
- .awsui_input_2rhyz_15wpl_103:not(#\9):disabled::-webkit-input-placeholder {
201
+ .awsui_input_2rhyz_deb6p_103:not(#\9):disabled::-webkit-input-placeholder {
202
202
  color: var(--color-text-input-placeholder-disabled-abhb0d, #9ba7b6);
203
203
  -webkit-user-select: none;
204
204
  user-select: none;
205
205
  }
206
- .awsui_input_2rhyz_15wpl_103:not(#\9):disabled::-ms-input-placeholder {
206
+ .awsui_input_2rhyz_deb6p_103:not(#\9):disabled::-ms-input-placeholder {
207
207
  color: var(--color-text-input-placeholder-disabled-abhb0d, #9ba7b6);
208
208
  }
209
- .awsui_input_2rhyz_15wpl_103:not(#\9):disabled::-moz-placeholder {
209
+ .awsui_input_2rhyz_deb6p_103:not(#\9):disabled::-moz-placeholder {
210
210
  color: var(--color-text-input-placeholder-disabled-abhb0d, #9ba7b6);
211
211
  opacity: 1;
212
212
  }
213
- .awsui_input_2rhyz_15wpl_103:not(#\9):disabled:-ms-input-placeholder {
213
+ .awsui_input_2rhyz_deb6p_103:not(#\9):disabled:-ms-input-placeholder {
214
214
  color: var(--color-text-input-placeholder-disabled-abhb0d, #9ba7b6);
215
215
  }
216
- .awsui_input_2rhyz_15wpl_103:not(#\9):disabled:-moz-placeholder {
216
+ .awsui_input_2rhyz_deb6p_103:not(#\9):disabled:-moz-placeholder {
217
217
  color: var(--color-text-input-placeholder-disabled-abhb0d, #9ba7b6);
218
218
  opacity: 1;
219
219
  }
220
- .awsui_input_2rhyz_15wpl_103:not(#\9):invalid {
220
+ .awsui_input_2rhyz_deb6p_103:not(#\9):invalid {
221
221
  box-shadow: none;
222
222
  }
223
- .awsui_input_2rhyz_15wpl_103.awsui_input-invalid_2rhyz_15wpl_220:not(#\9) {
223
+ .awsui_input_2rhyz_deb6p_103.awsui_input-invalid_2rhyz_deb6p_220:not(#\9) {
224
224
  color: var(--color-text-status-error-wdvepn, #d91515);
225
225
  border-color: var(--color-text-status-error-wdvepn, #d91515);
226
226
  padding-inline-start: calc(
@@ -228,58 +228,74 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
228
228
  );
229
229
  border-inline-start-width: var(--border-invalid-width-5ktjp2, 8px);
230
230
  }
231
- .awsui_input_2rhyz_15wpl_103.awsui_input-invalid_2rhyz_15wpl_220:not(#\9):focus {
231
+ .awsui_input_2rhyz_deb6p_103.awsui_input-invalid_2rhyz_deb6p_220:not(#\9):focus {
232
232
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-fhmbjn, 2px) var(--color-border-item-focused-b2ntyl, #0972d3);
233
233
  }
234
- .awsui_input_2rhyz_15wpl_103.awsui_input-invalid_2rhyz_15wpl_220.awsui_input-has-icon-left_2rhyz_15wpl_231:not(#\9) {
234
+ .awsui_input_2rhyz_deb6p_103.awsui_input-invalid_2rhyz_deb6p_220.awsui_input-has-icon-left_2rhyz_deb6p_231:not(#\9) {
235
235
  padding-inline-start: calc(
236
236
  var(--space-field-icon-offset-csk9vw, 36px) - (var(--border-invalid-width-5ktjp2, 8px) - var(--border-field-width-09w7vk, 2px))
237
237
  );
238
238
  }
239
- .awsui_input_2rhyz_15wpl_103.awsui_input-type-search_2rhyz_15wpl_236:not(#\9) {
239
+ .awsui_input_2rhyz_deb6p_103.awsui_input-warning_2rhyz_deb6p_236:not(#\9) {
240
+ color: var(--color-text-status-warning-yik8vi, #8d6605);
241
+ border-color: var(--color-text-status-warning-yik8vi, #8d6605);
242
+ padding-inline-start: calc(
243
+ var(--space-field-horizontal-gg19kw, 12px) - (var(--border-invalid-width-5ktjp2, 8px) - var(--border-field-width-09w7vk, 2px))
244
+ );
245
+ border-inline-start-width: var(--border-invalid-width-5ktjp2, 8px);
246
+ }
247
+ .awsui_input_2rhyz_deb6p_103.awsui_input-warning_2rhyz_deb6p_236:not(#\9):focus {
248
+ box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-fhmbjn, 2px) var(--color-border-item-focused-b2ntyl, #0972d3);
249
+ }
250
+ .awsui_input_2rhyz_deb6p_103.awsui_input-warning_2rhyz_deb6p_236.awsui_input-has-icon-left_2rhyz_deb6p_231:not(#\9) {
251
+ padding-inline-start: calc(
252
+ var(--space-field-icon-offset-csk9vw, 36px) - (var(--border-invalid-width-5ktjp2, 8px) - var(--border-field-width-09w7vk, 2px))
253
+ );
254
+ }
255
+ .awsui_input_2rhyz_deb6p_103.awsui_input-type-search_2rhyz_deb6p_252:not(#\9) {
240
256
  box-sizing: border-box;
241
257
  -webkit-appearance: none; /* stylelint-disable-line plugin/no-unsupported-browser-features */
242
258
  }
243
- .awsui_input_2rhyz_15wpl_103.awsui_input-type-search_2rhyz_15wpl_236:not(#\9)::-ms-clear {
259
+ .awsui_input_2rhyz_deb6p_103.awsui_input-type-search_2rhyz_deb6p_252:not(#\9)::-ms-clear {
244
260
  display: none;
245
261
  }
246
- .awsui_input_2rhyz_15wpl_103.awsui_input-type-search_2rhyz_15wpl_236:not(#\9)::-webkit-search-decoration {
262
+ .awsui_input_2rhyz_deb6p_103.awsui_input-type-search_2rhyz_deb6p_252:not(#\9)::-webkit-search-decoration {
247
263
  -webkit-appearance: none; /* stylelint-disable-line plugin/no-unsupported-browser-features */
248
264
  }
249
- .awsui_input_2rhyz_15wpl_103.awsui_input-type-search_2rhyz_15wpl_236:not(#\9)::-webkit-search-cancel-button {
265
+ .awsui_input_2rhyz_deb6p_103.awsui_input-type-search_2rhyz_deb6p_252:not(#\9)::-webkit-search-cancel-button {
250
266
  display: none;
251
267
  }
252
- .awsui_input_2rhyz_15wpl_103.awsui_input-has-icon-left_2rhyz_15wpl_231:not(#\9) {
268
+ .awsui_input_2rhyz_deb6p_103.awsui_input-has-icon-left_2rhyz_deb6p_231:not(#\9) {
253
269
  padding-inline-start: var(--space-field-icon-offset-csk9vw, 36px);
254
270
  }
255
- .awsui_input_2rhyz_15wpl_103.awsui_input-has-icon-right_2rhyz_15wpl_252:not(#\9) {
271
+ .awsui_input_2rhyz_deb6p_103.awsui_input-has-icon-right_2rhyz_deb6p_268:not(#\9) {
256
272
  padding-inline-end: var(--space-field-icon-offset-csk9vw, 36px);
257
273
  }
258
- .awsui_input_2rhyz_15wpl_103.awsui_input-has-no-border-radius_2rhyz_15wpl_255:not(#\9) {
274
+ .awsui_input_2rhyz_deb6p_103.awsui_input-has-no-border-radius_2rhyz_deb6p_271:not(#\9) {
259
275
  border-start-start-radius: var(--border-radius-dropdown-0dhh79, 8px);
260
276
  border-start-end-radius: var(--border-radius-dropdown-0dhh79, 8px);
261
277
  border-end-start-radius: var(--border-radius-dropdown-0dhh79, 8px);
262
278
  border-end-end-radius: var(--border-radius-dropdown-0dhh79, 8px);
263
279
  }
264
280
 
265
- .awsui_input-container_2rhyz_15wpl_262:not(#\9) {
281
+ .awsui_input-container_2rhyz_deb6p_278:not(#\9) {
266
282
  display: flex;
267
283
  position: relative;
268
284
  }
269
285
 
270
- .awsui_input-icon-left_2rhyz_15wpl_267:not(#\9) {
286
+ .awsui_input-icon-left_2rhyz_deb6p_283:not(#\9) {
271
287
  position: absolute;
272
288
  pointer-events: none;
273
289
  inset-inline-start: var(--space-field-horizontal-gg19kw, 12px);
274
290
  inset-block-start: calc(50% - var(--line-height-body-m-30ar75, 20px) / 2);
275
291
  }
276
292
 
277
- .awsui_input-icon-right_2rhyz_15wpl_274:not(#\9) {
293
+ .awsui_input-icon-right_2rhyz_deb6p_290:not(#\9) {
278
294
  position: absolute;
279
295
  inset-block-start: calc(50% - var(--line-height-body-m-30ar75, 20px) / 2);
280
296
  inset-inline-end: calc(var(--space-field-horizontal-gg19kw, 12px) - var(--space-xxs-p8yyaw, 4px));
281
297
  }
282
298
 
283
- .awsui_input-button-right_2rhyz_15wpl_280:not(#\9) {
299
+ .awsui_input-button-right_2rhyz_deb6p_296:not(#\9) {
284
300
  /* used in test-utils */
285
301
  }
@@ -2,17 +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_15wpl_99",
6
- "input": "awsui_input_2rhyz_15wpl_103",
7
- "input-readonly": "awsui_input-readonly_2rhyz_15wpl_153",
8
- "input-invalid": "awsui_input-invalid_2rhyz_15wpl_220",
9
- "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_15wpl_231",
10
- "input-type-search": "awsui_input-type-search_2rhyz_15wpl_236",
11
- "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_15wpl_252",
12
- "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_15wpl_255",
13
- "input-container": "awsui_input-container_2rhyz_15wpl_262",
14
- "input-icon-left": "awsui_input-icon-left_2rhyz_15wpl_267",
15
- "input-icon-right": "awsui_input-icon-right_2rhyz_15wpl_274",
16
- "input-button-right": "awsui_input-button-right_2rhyz_15wpl_280"
5
+ "root": "awsui_root_2rhyz_deb6p_99",
6
+ "input": "awsui_input_2rhyz_deb6p_103",
7
+ "input-readonly": "awsui_input-readonly_2rhyz_deb6p_153",
8
+ "input-invalid": "awsui_input-invalid_2rhyz_deb6p_220",
9
+ "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_deb6p_231",
10
+ "input-warning": "awsui_input-warning_2rhyz_deb6p_236",
11
+ "input-type-search": "awsui_input-type-search_2rhyz_deb6p_252",
12
+ "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_deb6p_268",
13
+ "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_deb6p_271",
14
+ "input-container": "awsui_input-container_2rhyz_deb6p_278",
15
+ "input-icon-left": "awsui_input-icon-left_2rhyz_deb6p_283",
16
+ "input-icon-right": "awsui_input-icon-right_2rhyz_deb6p_290",
17
+ "input-button-right": "awsui_input-button-right_2rhyz_deb6p_296"
17
18
  };
18
19
 
@@ -1,33 +1,33 @@
1
1
  import React from 'react';
2
2
  import { FunnelStepContextValue, FunnelSubStepContextValue } from '../context/analytics-context';
3
- import { AnalyticsMetadata, FunnelProps, FunnelStepProps, StepConfiguration } from '../interfaces';
3
+ import { AnalyticsMetadata, FunnelStartProps, FunnelStepProps, StepConfiguration } from '../interfaces';
4
4
  export declare const FUNNEL_VERSION = "1.4";
5
5
  interface AnalyticsFunnelProps {
6
6
  children?: React.ReactNode;
7
7
  stepConfiguration?: StepConfiguration[];
8
8
  funnelNameSelectors?: string[];
9
- funnelType: FunnelProps['funnelType'];
10
- optionalStepNumbers: FunnelProps['optionalStepNumbers'];
11
- totalFunnelSteps: FunnelProps['totalFunnelSteps'];
12
- instanceIdentifier?: AnalyticsMetadata['instanceIdentifier'];
13
- flowType?: AnalyticsMetadata['flowType'];
14
- errorContext?: AnalyticsMetadata['errorContext'];
9
+ funnelType: FunnelStartProps['funnelType'];
10
+ optionalStepNumbers: FunnelStartProps['optionalStepNumbers'];
11
+ totalFunnelSteps: FunnelStartProps['totalFunnelSteps'];
12
+ funnelIdentifier?: AnalyticsMetadata['instanceIdentifier'];
13
+ funnelFlowType?: AnalyticsMetadata['flowType'];
14
+ funnelErrorContext?: AnalyticsMetadata['errorContext'];
15
15
  }
16
16
  export declare const AnalyticsFunnel: (props: AnalyticsFunnelProps) => JSX.Element;
17
17
  export declare const CREATION_EDIT_FLOW_DONE_EVENT_NAME = "awsui-creation-edit-flow-done";
18
18
  interface AnalyticsFunnelStepProps {
19
- instanceIdentifier?: AnalyticsMetadata['instanceIdentifier'];
20
- errorContext?: AnalyticsMetadata['errorContext'];
19
+ stepIdentifier?: AnalyticsMetadata['instanceIdentifier'];
20
+ stepErrorContext?: AnalyticsMetadata['errorContext'];
21
21
  children?: React.ReactNode | ((props: FunnelStepContextValue) => React.ReactNode);
22
22
  stepNameSelector?: FunnelStepProps['stepNameSelector'];
23
23
  stepNumber: FunnelStepProps['stepNumber'];
24
24
  }
25
25
  export declare const AnalyticsFunnelStep: (props: AnalyticsFunnelStepProps) => JSX.Element;
26
26
  interface AnalyticsFunnelSubStepProps {
27
- instanceIdentifier?: AnalyticsMetadata['instanceIdentifier'];
28
- errorContext?: AnalyticsMetadata['errorContext'];
27
+ subStepIdentifier?: AnalyticsMetadata['instanceIdentifier'];
28
+ subStepErrorContext?: AnalyticsMetadata['errorContext'];
29
29
  children?: React.ReactNode | ((props: FunnelSubStepContextValue) => React.ReactNode);
30
30
  }
31
- export declare const AnalyticsFunnelSubStep: ({ children, instanceIdentifier }: AnalyticsFunnelSubStepProps) => JSX.Element;
31
+ export declare const AnalyticsFunnelSubStep: ({ children, subStepIdentifier, subStepErrorContext, }: AnalyticsFunnelSubStepProps) => JSX.Element;
32
32
  export {};
33
33
  //# sourceMappingURL=analytics-funnel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"analytics-funnel.d.ts","sourceRo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