@cloudscape-design/components 3.0.1317 → 3.0.1319

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 (276) hide show
  1. package/app-layout/drawer/overflow-menu.d.ts +2 -1
  2. package/app-layout/drawer/overflow-menu.d.ts.map +1 -1
  3. package/app-layout/drawer/overflow-menu.js.map +1 -1
  4. package/app-layout/visual-refresh-toolbar/drawer/global-ai-drawer.js.map +1 -1
  5. package/app-layout/visual-refresh-toolbar/drawer/global-bottom-drawer.js.map +1 -1
  6. package/app-layout/visual-refresh-toolbar/drawer/global-drawer.js.map +1 -1
  7. package/attribute-editor/styles.css.js +15 -15
  8. package/attribute-editor/styles.scoped.css +28 -25
  9. package/attribute-editor/styles.selectors.js +15 -15
  10. package/breadcrumb-group/implementation.d.ts +2 -1
  11. package/breadcrumb-group/implementation.d.ts.map +1 -1
  12. package/breadcrumb-group/implementation.js.map +1 -1
  13. package/breadcrumb-group/interfaces.d.ts +0 -4
  14. package/breadcrumb-group/interfaces.d.ts.map +1 -1
  15. package/breadcrumb-group/interfaces.js.map +1 -1
  16. package/breadcrumb-group/internal-interfaces.d.ts +5 -0
  17. package/breadcrumb-group/internal-interfaces.d.ts.map +1 -0
  18. package/breadcrumb-group/internal-interfaces.js +2 -0
  19. package/breadcrumb-group/internal-interfaces.js.map +1 -0
  20. package/breadcrumb-group/skeleton.js.map +1 -1
  21. package/button-dropdown/category-elements/category-element.d.ts +1 -1
  22. package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
  23. package/button-dropdown/category-elements/category-element.js.map +1 -1
  24. package/button-dropdown/category-elements/expandable-category-element.d.ts +1 -1
  25. package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  26. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  27. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +1 -1
  28. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  29. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  30. package/button-dropdown/interfaces.d.ts +1 -102
  31. package/button-dropdown/interfaces.d.ts.map +1 -1
  32. package/button-dropdown/interfaces.js.map +1 -1
  33. package/button-dropdown/internal-interfaces.d.ts +103 -0
  34. package/button-dropdown/internal-interfaces.d.ts.map +1 -0
  35. package/button-dropdown/internal-interfaces.js +2 -0
  36. package/button-dropdown/internal-interfaces.js.map +1 -0
  37. package/button-dropdown/internal.d.ts +2 -1
  38. package/button-dropdown/internal.d.ts.map +1 -1
  39. package/button-dropdown/internal.js.map +1 -1
  40. package/button-dropdown/item-element/index.d.ts +1 -1
  41. package/button-dropdown/item-element/index.d.ts.map +1 -1
  42. package/button-dropdown/item-element/index.js.map +1 -1
  43. package/button-dropdown/items-list.d.ts +1 -1
  44. package/button-dropdown/items-list.d.ts.map +1 -1
  45. package/button-dropdown/items-list.js.map +1 -1
  46. package/button-group/icon-button-item.d.ts +2 -1
  47. package/button-group/icon-button-item.d.ts.map +1 -1
  48. package/button-group/icon-button-item.js.map +1 -1
  49. package/button-group/icon-toggle-button-item.d.ts +2 -1
  50. package/button-group/icon-toggle-button-item.d.ts.map +1 -1
  51. package/button-group/icon-toggle-button-item.js.map +1 -1
  52. package/button-group/interfaces.d.ts +0 -14
  53. package/button-group/interfaces.d.ts.map +1 -1
  54. package/button-group/interfaces.js.map +1 -1
  55. package/button-group/internal-interfaces.d.ts +15 -0
  56. package/button-group/internal-interfaces.d.ts.map +1 -0
  57. package/button-group/internal-interfaces.js +2 -0
  58. package/button-group/internal-interfaces.js.map +1 -0
  59. package/button-group/internal.d.ts +2 -1
  60. package/button-group/internal.d.ts.map +1 -1
  61. package/button-group/internal.js.map +1 -1
  62. package/column-layout/flexible-column-layout/index.d.ts +1 -1
  63. package/column-layout/flexible-column-layout/index.d.ts.map +1 -1
  64. package/column-layout/flexible-column-layout/index.js.map +1 -1
  65. package/column-layout/grid-column-layout.d.ts +1 -1
  66. package/column-layout/grid-column-layout.d.ts.map +1 -1
  67. package/column-layout/grid-column-layout.js.map +1 -1
  68. package/column-layout/interfaces.d.ts +0 -9
  69. package/column-layout/interfaces.d.ts.map +1 -1
  70. package/column-layout/interfaces.js.map +1 -1
  71. package/column-layout/internal-interfaces.d.ts +10 -0
  72. package/column-layout/internal-interfaces.d.ts.map +1 -0
  73. package/column-layout/internal-interfaces.js +2 -0
  74. package/column-layout/internal-interfaces.js.map +1 -0
  75. package/column-layout/internal.d.ts +1 -1
  76. package/column-layout/internal.d.ts.map +1 -1
  77. package/column-layout/internal.js.map +1 -1
  78. package/expandable-section/expandable-section-container.d.ts +1 -1
  79. package/expandable-section/expandable-section-container.d.ts.map +1 -1
  80. package/expandable-section/expandable-section-container.js.map +1 -1
  81. package/expandable-section/expandable-section-header.d.ts +2 -1
  82. package/expandable-section/expandable-section-header.d.ts.map +1 -1
  83. package/expandable-section/expandable-section-header.js.map +1 -1
  84. package/expandable-section/interfaces.d.ts +0 -1
  85. package/expandable-section/interfaces.d.ts.map +1 -1
  86. package/expandable-section/interfaces.js.map +1 -1
  87. package/expandable-section/internal-interfaces.d.ts +2 -0
  88. package/expandable-section/internal-interfaces.d.ts.map +1 -0
  89. package/expandable-section/internal-interfaces.js +2 -0
  90. package/expandable-section/internal-interfaces.js.map +1 -0
  91. package/expandable-section/internal.d.ts +2 -1
  92. package/expandable-section/internal.d.ts.map +1 -1
  93. package/expandable-section/internal.js.map +1 -1
  94. package/expandable-section/styles.css.js +35 -35
  95. package/expandable-section/styles.scoped.css +71 -74
  96. package/expandable-section/styles.selectors.js +35 -35
  97. package/expandable-section/utils.d.ts +1 -1
  98. package/expandable-section/utils.d.ts.map +1 -1
  99. package/expandable-section/utils.js.map +1 -1
  100. package/flashbar/collapsible-flashbar.d.ts +1 -1
  101. package/flashbar/collapsible-flashbar.d.ts.map +1 -1
  102. package/flashbar/collapsible-flashbar.js.map +1 -1
  103. package/flashbar/common.d.ts +2 -1
  104. package/flashbar/common.d.ts.map +1 -1
  105. package/flashbar/common.js.map +1 -1
  106. package/flashbar/implementation.d.ts +1 -1
  107. package/flashbar/implementation.d.ts.map +1 -1
  108. package/flashbar/implementation.js.map +1 -1
  109. package/flashbar/interfaces.d.ts +1 -3
  110. package/flashbar/interfaces.d.ts.map +1 -1
  111. package/flashbar/interfaces.js.map +1 -1
  112. package/flashbar/internal-interfaces.d.ts +3 -0
  113. package/flashbar/internal-interfaces.d.ts.map +1 -0
  114. package/flashbar/internal-interfaces.js +2 -0
  115. package/flashbar/internal-interfaces.js.map +1 -0
  116. package/flashbar/non-collapsible-flashbar.d.ts +1 -1
  117. package/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
  118. package/flashbar/non-collapsible-flashbar.js.map +1 -1
  119. package/form-field/interfaces.d.ts +2 -15
  120. package/form-field/interfaces.d.ts.map +1 -1
  121. package/form-field/interfaces.js.map +1 -1
  122. package/form-field/internal-interfaces.d.ts +16 -0
  123. package/form-field/internal-interfaces.d.ts.map +1 -0
  124. package/form-field/internal-interfaces.js +2 -0
  125. package/form-field/internal-interfaces.js.map +1 -0
  126. package/form-field/internal.d.ts +1 -1
  127. package/form-field/internal.d.ts.map +1 -1
  128. package/form-field/internal.js.map +1 -1
  129. package/icon/generated/icons.d.ts +2 -0
  130. package/icon/generated/icons.d.ts.map +1 -1
  131. package/icon/generated/icons.js +7 -0
  132. package/icon/generated/icons.js.map +1 -1
  133. package/icon-provider/interfaces.d.ts +1 -1
  134. package/icon-provider/interfaces.d.ts.map +1 -1
  135. package/icon-provider/interfaces.js.map +1 -1
  136. package/internal/base-component/styles.scoped.css +1 -1
  137. package/internal/components/menu-dropdown/interfaces.d.ts +1 -1
  138. package/internal/components/menu-dropdown/interfaces.d.ts.map +1 -1
  139. package/internal/components/menu-dropdown/interfaces.js.map +1 -1
  140. package/internal/environment.js +2 -2
  141. package/internal/environment.json +2 -2
  142. package/internal/manifest.json +1 -1
  143. package/item-card/interfaces.d.ts +0 -19
  144. package/item-card/interfaces.d.ts.map +1 -1
  145. package/item-card/interfaces.js.map +1 -1
  146. package/item-card/internal-interfaces.d.ts +21 -0
  147. package/item-card/internal-interfaces.d.ts.map +1 -0
  148. package/item-card/internal-interfaces.js +2 -0
  149. package/item-card/internal-interfaces.js.map +1 -0
  150. package/item-card/internal.d.ts +1 -1
  151. package/item-card/internal.d.ts.map +1 -1
  152. package/item-card/internal.js.map +1 -1
  153. package/manifest.json +2 -2
  154. package/mixed-line-bar-chart/chart-container.d.ts +2 -1
  155. package/mixed-line-bar-chart/chart-container.d.ts.map +1 -1
  156. package/mixed-line-bar-chart/chart-container.js.map +1 -1
  157. package/mixed-line-bar-chart/chart-legend.d.ts +2 -1
  158. package/mixed-line-bar-chart/chart-legend.d.ts.map +1 -1
  159. package/mixed-line-bar-chart/chart-legend.js.map +1 -1
  160. package/mixed-line-bar-chart/data-series.d.ts +2 -1
  161. package/mixed-line-bar-chart/data-series.d.ts.map +1 -1
  162. package/mixed-line-bar-chart/data-series.js.map +1 -1
  163. package/mixed-line-bar-chart/domain.d.ts +2 -1
  164. package/mixed-line-bar-chart/domain.d.ts.map +1 -1
  165. package/mixed-line-bar-chart/domain.js.map +1 -1
  166. package/mixed-line-bar-chart/format-highlighted.d.ts +2 -1
  167. package/mixed-line-bar-chart/format-highlighted.d.ts.map +1 -1
  168. package/mixed-line-bar-chart/format-highlighted.js.map +1 -1
  169. package/mixed-line-bar-chart/interfaces.d.ts +0 -5
  170. package/mixed-line-bar-chart/interfaces.d.ts.map +1 -1
  171. package/mixed-line-bar-chart/interfaces.js.map +1 -1
  172. package/mixed-line-bar-chart/internal-interfaces.d.ts +6 -0
  173. package/mixed-line-bar-chart/internal-interfaces.d.ts.map +1 -0
  174. package/mixed-line-bar-chart/internal-interfaces.js +2 -0
  175. package/mixed-line-bar-chart/internal-interfaces.js.map +1 -0
  176. package/mixed-line-bar-chart/make-scaled-bar-groups.d.ts +2 -1
  177. package/mixed-line-bar-chart/make-scaled-bar-groups.d.ts.map +1 -1
  178. package/mixed-line-bar-chart/make-scaled-bar-groups.js.map +1 -1
  179. package/mixed-line-bar-chart/make-scaled-series.d.ts +2 -1
  180. package/mixed-line-bar-chart/make-scaled-series.d.ts.map +1 -1
  181. package/mixed-line-bar-chart/make-scaled-series.js.map +1 -1
  182. package/mixed-line-bar-chart/utils.d.ts +2 -1
  183. package/mixed-line-bar-chart/utils.d.ts.map +1 -1
  184. package/mixed-line-bar-chart/utils.js.map +1 -1
  185. package/navigable-group/interfaces.d.ts +0 -2
  186. package/navigable-group/interfaces.d.ts.map +1 -1
  187. package/navigable-group/interfaces.js.map +1 -1
  188. package/navigable-group/internal-interfaces.d.ts +3 -0
  189. package/navigable-group/internal-interfaces.d.ts.map +1 -0
  190. package/navigable-group/internal-interfaces.js +4 -0
  191. package/navigable-group/internal-interfaces.js.map +1 -0
  192. package/navigable-group/internal.d.ts +2 -1
  193. package/navigable-group/internal.d.ts.map +1 -1
  194. package/navigable-group/internal.js.map +1 -1
  195. package/package.json +1 -1
  196. package/popover/arrow.d.ts +1 -1
  197. package/popover/arrow.d.ts.map +1 -1
  198. package/popover/arrow.js.map +1 -1
  199. package/popover/container.d.ts +2 -1
  200. package/popover/container.d.ts.map +1 -1
  201. package/popover/container.js.map +1 -1
  202. package/popover/interfaces.d.ts +0 -4
  203. package/popover/interfaces.d.ts.map +1 -1
  204. package/popover/interfaces.js.map +1 -1
  205. package/popover/internal-interfaces.d.ts +4 -0
  206. package/popover/internal-interfaces.d.ts.map +1 -0
  207. package/popover/internal-interfaces.js +4 -0
  208. package/popover/internal-interfaces.js.map +1 -0
  209. package/popover/use-popover-position.d.ts +2 -1
  210. package/popover/use-popover-position.d.ts.map +1 -1
  211. package/popover/use-popover-position.js.map +1 -1
  212. package/popover/utils/positions.d.ts +2 -1
  213. package/popover/utils/positions.d.ts.map +1 -1
  214. package/popover/utils/positions.js.map +1 -1
  215. package/property-filter/controller.d.ts +2 -1
  216. package/property-filter/controller.d.ts.map +1 -1
  217. package/property-filter/controller.js.map +1 -1
  218. package/property-filter/i18n-utils.d.ts +2 -1
  219. package/property-filter/i18n-utils.d.ts.map +1 -1
  220. package/property-filter/i18n-utils.js.map +1 -1
  221. package/property-filter/interfaces.d.ts +2 -51
  222. package/property-filter/interfaces.d.ts.map +1 -1
  223. package/property-filter/interfaces.js.map +1 -1
  224. package/property-filter/internal-interfaces.d.ts +51 -0
  225. package/property-filter/internal-interfaces.d.ts.map +1 -0
  226. package/property-filter/internal-interfaces.js +4 -0
  227. package/property-filter/internal-interfaces.js.map +1 -0
  228. package/property-filter/internal.d.ts.map +1 -1
  229. package/property-filter/internal.js.map +1 -1
  230. package/property-filter/property-editor.d.ts +2 -1
  231. package/property-filter/property-editor.d.ts.map +1 -1
  232. package/property-filter/property-editor.js.map +1 -1
  233. package/property-filter/token-editor-inputs.d.ts +2 -1
  234. package/property-filter/token-editor-inputs.d.ts.map +1 -1
  235. package/property-filter/token-editor-inputs.js.map +1 -1
  236. package/property-filter/token-editor.d.ts +2 -1
  237. package/property-filter/token-editor.d.ts.map +1 -1
  238. package/property-filter/token-editor.js.map +1 -1
  239. package/property-filter/token.d.ts +2 -1
  240. package/property-filter/token.d.ts.map +1 -1
  241. package/property-filter/token.js.map +1 -1
  242. package/property-filter/utils.d.ts +2 -1
  243. package/property-filter/utils.d.ts.map +1 -1
  244. package/property-filter/utils.js.map +1 -1
  245. package/table/interfaces.d.ts +0 -1
  246. package/table/interfaces.d.ts.map +1 -1
  247. package/table/interfaces.js.map +1 -1
  248. package/table/internal-interfaces.d.ts +2 -0
  249. package/table/internal-interfaces.d.ts.map +1 -0
  250. package/table/internal-interfaces.js +2 -0
  251. package/table/internal-interfaces.js.map +1 -0
  252. package/table/selection/use-group-selection.d.ts +2 -1
  253. package/table/selection/use-group-selection.d.ts.map +1 -1
  254. package/table/selection/use-group-selection.js.map +1 -1
  255. package/table/selection/use-selection-focus-move.d.ts +1 -1
  256. package/table/selection/use-selection-focus-move.d.ts.map +1 -1
  257. package/table/selection/use-selection-focus-move.js.map +1 -1
  258. package/table/selection/use-selection.d.ts +2 -1
  259. package/table/selection/use-selection.d.ts.map +1 -1
  260. package/table/selection/use-selection.js.map +1 -1
  261. package/table/thead.d.ts +2 -1
  262. package/table/thead.d.ts.map +1 -1
  263. package/table/thead.js.map +1 -1
  264. package/table/use-table-focus-navigation.d.ts +2 -1
  265. package/table/use-table-focus-navigation.d.ts.map +1 -1
  266. package/table/use-table-focus-navigation.js.map +1 -1
  267. package/tooltip/interfaces.d.ts +0 -10
  268. package/tooltip/interfaces.d.ts.map +1 -1
  269. package/tooltip/interfaces.js.map +1 -1
  270. package/tooltip/internal-interfaces.d.ts +11 -0
  271. package/tooltip/internal-interfaces.d.ts.map +1 -0
  272. package/tooltip/internal-interfaces.js +2 -0
  273. package/tooltip/internal-interfaces.js.map +1 -0
  274. package/tooltip/internal.d.ts +1 -1
  275. package/tooltip/internal.d.ts.map +1 -1
  276. package/tooltip/internal.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/form-field/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE7C,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAA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,CAAC;AAE7D,MAAM,WAAW,cAAe,SAAQ,kBAAkB;IACxD;;;;;;;OAOG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;;;;;;;OAUG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAExB;;;OAGG;IACH,WAAW,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC;IAEzC;;OAEG;IACH,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEvB;;;OAGG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEnC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE9B;;;OAGG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAEjC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE5B;;;OAGG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE9B;;;;;OAKG;IACH,iBAAiB,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC;CACtD;AAED,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,iBAAiB;QAChC,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAC5B,YAAY,CAAC,EAAE,YAAY,CAAC;KAC7B;IAED,UAAiB,WAAW;QAC1B;;WAEG;QACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;QAE5B;;WAEG;QACH,oBAAoB,CAAC,EAAE,MAAM,CAAC;KAC/B;CACF"}
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/form-field/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { CSSProperties } from 'react';\n\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { AnalyticsMetadata, ErrorContext } from '../types/analytics';\nimport { BaseComponentProps } from '../types/base-component';\n\nexport interface FormFieldProps extends BaseComponentProps {\n /**\n * The ID of the primary form control. You can use this to set the\n * `for` attribute of a label for accessibility.\n *\n * If you don't set this property, the control group automatically sets\n * the label to the ID of an inner form control (for example, an [input](/components/input) component).\n * This only works well if you're using a single control in the form field.\n */\n controlId?: string;\n\n /**\n * Determines whether the primary control should expand to 12 columns.\n *\n * By default (or when this property is set to `false`), the primary control\n * occupies 9 columns. The secondary control uses the remaining 3 columns.\n * On smaller viewports, both components occupy 12 columns and stack on top of each other.\n *\n * If this property is set to `true`, the primary control uses the full\n * 12 columns. The secondary control (if present) also uses 12 columns, and the two\n * controls stack on top of each other.\n */\n stretch?: boolean;\n\n /**\n * The main label for the form field.\n */\n label?: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: FormFieldProps.I18nStrings;\n\n /**\n * Use to display an 'Info' link next to the label.\n */\n info?: React.ReactNode;\n\n /**\n * The primary form control (for example, input, textarea, etc.).\n * @displayname control\n */\n children?: React.ReactNode;\n\n /**\n * A secondary control. You can use this for custom actions and content.\n */\n secondaryControl?: React.ReactNode;\n\n /**\n * Detailed information about the form field that's displayed below the label.\n */\n description?: React.ReactNode;\n\n /**\n * Constraint text that's displayed below the control. Use this to provide\n * additional information about valid formats, etc.\n */\n constraintText?: React.ReactNode;\n\n /**\n * Character count constraint displayed adjacent to the constraintText. Use\n * this to provide an updated character count on each keypress that is debounced\n * for screen reader users.\n */\n characterCountText?: string;\n\n /**\n * Text that displays as a validation error message. If this is set to a\n * non-empty string, it will render the form field as invalid.\n */\n errorText?: React.ReactNode;\n\n /**\n * Text that displays as a validation warning message. If this is set to a\n * non-empty string, it will render the form field in a warning state.\n */\n warningText?: React.ReactNode;\n\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * * `errorContext` - Identifies the error category and sub-category.\n * @analytics\n */\n analyticsMetadata?: FormFieldProps.AnalyticsMetadata;\n}\n\nexport namespace FormFieldProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n errorContext?: ErrorContext;\n }\n\n export interface I18nStrings {\n /**\n * Provides a text alternative for the error icon in the error message.\n */\n errorIconAriaLabel?: string;\n\n /**\n * Provides a text alternative for the warning icon in the warning message.\n */\n warningIconAriaLabel?: string;\n }\n}\n\nexport interface InternalFormFieldProps extends FormFieldProps, InternalBaseComponentProps {\n /**\n * Visually hide the label.\n */\n __hideLabel?: boolean;\n\n /**\n * Disable the gutter applied by default.\n */\n __disableGutters?: boolean;\n __analyticsMetadata?: AnalyticsMetadata;\n __style?: CSSProperties;\n}\n"]}
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/form-field/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { ErrorContext } from '../types/analytics';\nimport { BaseComponentProps } from '../types/base-component';\n\nexport interface FormFieldProps extends BaseComponentProps {\n /**\n * The ID of the primary form control. You can use this to set the\n * `for` attribute of a label for accessibility.\n *\n * If you don't set this property, the control group automatically sets\n * the label to the ID of an inner form control (for example, an [input](/components/input) component).\n * This only works well if you're using a single control in the form field.\n */\n controlId?: string;\n\n /**\n * Determines whether the primary control should expand to 12 columns.\n *\n * By default (or when this property is set to `false`), the primary control\n * occupies 9 columns. The secondary control uses the remaining 3 columns.\n * On smaller viewports, both components occupy 12 columns and stack on top of each other.\n *\n * If this property is set to `true`, the primary control uses the full\n * 12 columns. The secondary control (if present) also uses 12 columns, and the two\n * controls stack on top of each other.\n */\n stretch?: boolean;\n\n /**\n * The main label for the form field.\n */\n label?: React.ReactNode;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: FormFieldProps.I18nStrings;\n\n /**\n * Use to display an 'Info' link next to the label.\n */\n info?: React.ReactNode;\n\n /**\n * The primary form control (for example, input, textarea, etc.).\n * @displayname control\n */\n children?: React.ReactNode;\n\n /**\n * A secondary control. You can use this for custom actions and content.\n */\n secondaryControl?: React.ReactNode;\n\n /**\n * Detailed information about the form field that's displayed below the label.\n */\n description?: React.ReactNode;\n\n /**\n * Constraint text that's displayed below the control. Use this to provide\n * additional information about valid formats, etc.\n */\n constraintText?: React.ReactNode;\n\n /**\n * Character count constraint displayed adjacent to the constraintText. Use\n * this to provide an updated character count on each keypress that is debounced\n * for screen reader users.\n */\n characterCountText?: string;\n\n /**\n * Text that displays as a validation error message. If this is set to a\n * non-empty string, it will render the form field as invalid.\n */\n errorText?: React.ReactNode;\n\n /**\n * Text that displays as a validation warning message. If this is set to a\n * non-empty string, it will render the form field in a warning state.\n */\n warningText?: React.ReactNode;\n\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * * `errorContext` - Identifies the error category and sub-category.\n * @analytics\n */\n analyticsMetadata?: FormFieldProps.AnalyticsMetadata;\n}\n\nexport namespace FormFieldProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n errorContext?: ErrorContext;\n }\n\n export interface I18nStrings {\n /**\n * Provides a text alternative for the error icon in the error message.\n */\n errorIconAriaLabel?: string;\n\n /**\n * Provides a text alternative for the warning icon in the warning message.\n */\n warningIconAriaLabel?: string;\n }\n}\n"]}
@@ -0,0 +1,16 @@
1
+ import { CSSProperties } from 'react';
2
+ import { InternalBaseComponentProps } from '../internal/hooks/use-base-component';
3
+ import { AnalyticsMetadata } from '../types/analytics';
4
+ import { FormFieldProps } from './interfaces';
5
+ export interface InternalFormFieldProps extends FormFieldProps, InternalBaseComponentProps {
6
+ /**
7
+ * Visually hide the label.
8
+ */
9
+ __hideLabel?: boolean;
10
+ /**
11
+ * Disable the gutter applied by default.
12
+ */
13
+ __disableGutters?: boolean;
14
+ __analyticsMetadata?: AnalyticsMetadata;
15
+ __style?: CSSProperties;
16
+ }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-interfaces.d.ts","sourceRoot":"","sources":["../../../src/form-field/internal-interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtC,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,WAAW,sBAAuB,SAAQ,cAAc,EAAE,0BAA0B;IACxF;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,mBAAmB,CAAC,EAAE,iBAAiB,CAAC;IACxC,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=internal-interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal-interfaces.js","sourceRoot":"","sources":["../../../src/form-field/internal-interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { CSSProperties } from 'react';\n\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { AnalyticsMetadata } from '../types/analytics';\nimport { FormFieldProps } from './interfaces';\n\nexport interface InternalFormFieldProps extends FormFieldProps, InternalBaseComponentProps {\n /**\n * Visually hide the label.\n */\n __hideLabel?: boolean;\n\n /**\n * Disable the gutter applied by default.\n */\n __disableGutters?: boolean;\n __analyticsMetadata?: AnalyticsMetadata;\n __style?: CSSProperties;\n}\n"]}
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { InternalFormFieldProps } from './interfaces';
2
+ import { InternalFormFieldProps } from './internal-interfaces';
3
3
  interface FormFieldErrorProps {
4
4
  id?: string;
5
5
  children?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/form-field/internal.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAyB3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAOtD,UAAU,mBAAmB;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,kBAAkB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,UAAU,qBAAqB;IAC7B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAID,wBAAgB,cAAc,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,EAAE,mBAAmB,eAqBvF;AAED,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,oBAAoB,EAAE,EAAE,qBAAqB,eAqB7F;AAED,wBAAgB,oBAAoB,CAAC,EACnC,EAAE,EACF,iBAAiB,EACjB,QAAQ,GACT,EAAE;IACD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,iBAAiB,EAAE,OAAO,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,eAMA;AAED,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EACxC,SAAS,EACT,OAAe,EACf,KAAK,EACL,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,kBAAkB,EAClB,SAAS,EACT,WAAW,EACX,WAAW,EACX,iBAAiB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AAS,IAAI,CACZ,oBAAC,cAAc,IAAC,EAAE,EAAE,OAAO,CAAC,KAAK,EAAE,kBAAkB,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,kBAAkB,IACnF,SAAS,CACK,CAClB;YACA,WAAW,IAAI,CACd,oBAAC,gBAAgB,IAAC,EAAE,EAAE,OAAO,CAAC,OAAO,EAAE,oBAAoB,EAAE,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,oBAAoB,IAC3F,WAAW,CACK,CACpB;YACA,CAAC,cAAc,IAAI,kBAAkB,CAAC,IAAI,CACzC,oBAAC,oBAAoB,IAAC,iBAAiB,EAAE,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,WAAW;gBAClE,cAAc,IAAI,CACjB,8BAAM,EAAE,EAAE,OAAO,CAAC,UAAU,EAAE,SAAS,EAAE,UAAU,CAAC,UAAU,IAC3D,cAAc,CACV,CACR;gBACA,kBAAkB,IAAI,CACrB;oBACG,CAAC,CAAC,cAAc,IAAI,GAAG;oBACxB,8BAAM,SAAS,EAAE,UAAU,CAAC,iBAAiB,CAAC,iBAAe,IAAI,IAC9D,kBAAkB,CACd;oBACP,oBAAC,gBAAgB,IAAC,EAAE,EAAE,OAAO,CAAC,cAAc,IAAG,2BAA2B,CAAoB,CAC7F,CACJ,CACoB,CACxB,CACG,CACP,CACG,CACP,CAAC;AACJ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalGrid from '../grid/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport InternalIcon from '../icon/internal';\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel, useFunnelStep, useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport {\n DATA_ATTR_FIELD_ERROR,\n DATA_ATTR_FIELD_LABEL,\n getFieldSlotSeletor,\n getSubStepAllSelector,\n getTextFromSelector,\n} from '../internal/analytics/selectors';\nimport { getBaseProps } from '../internal/base-component';\nimport ScreenreaderOnly from '../internal/components/screenreader-only';\nimport { FormFieldContext, useFormFieldContext } from '../internal/context/form-field-context';\nimport { InfoLinkLabelContext } from '../internal/context/info-link-label-context';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { joinStrings } from '../internal/utils/strings';\nimport InternalLiveRegion from '../live-region/internal';\nimport { InternalFormFieldProps } from './interfaces';\nimport { getAriaDescribedBy, getGridDefinition, getSlotIds } from './util';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\nimport testStyles from './test-classes/styles.css.js';\n\ninterface FormFieldErrorProps {\n id?: string;\n children?: React.ReactNode;\n errorIconAriaLabel?: string;\n}\n\ninterface FormFieldWarningProps {\n id?: string;\n children?: React.ReactNode;\n warningIconAriaLabel?: string;\n}\n\nconst CHARACTER_COUNT_DEBOUNCE_MS = 1000;\n\nexport function FormFieldError({ id, children, errorIconAriaLabel }: FormFieldErrorProps) {\n const i18n = useInternalI18n('form-field');\n const contentRef = useRef<HTMLDivElement | null>(null);\n const i18nErrorIconAriaLabel = i18n('i18nStrings.errorIconAriaLabel', errorIconAriaLabel);\n\n return (\n <>\n <div id={id} className={styles.error}>\n <div className={styles['error-icon-shake-wrapper']}>\n <div className={styles['error-icon-scale-wrapper']}>\n <InternalIcon name=\"status-negative\" size=\"small\" ariaLabel={i18nErrorIconAriaLabel} />\n </div>\n </div>\n <span className={styles.error__message} ref={contentRef}>\n {children}\n </span>\n </div>\n\n <InternalLiveRegion assertive={true} tagName=\"span\" sources={[i18nErrorIconAriaLabel, contentRef]} />\n </>\n );\n}\n\nexport function FormFieldWarning({ id, children, warningIconAriaLabel }: FormFieldWarningProps) {\n const i18n = useInternalI18n('form-field');\n const contentRef = useRef<HTMLDivElement | null>(null);\n const i18nWarningIconAriaLabel = i18n('i18nStrings.warningIconAriaLabel', warningIconAriaLabel);\n\n return (\n <>\n <div id={id} className={styles.warning}>\n <div className={styles['warning-icon-shake-wrapper']}>\n <div className={styles['warning-icon-scale-wrapper']}>\n <InternalIcon name=\"status-warning\" size=\"small\" ariaLabel={i18nWarningIconAriaLabel} />\n </div>\n </div>\n <span className={styles.warning__message} ref={contentRef}>\n {children}\n </span>\n </div>\n\n <InternalLiveRegion assertive={true} tagName=\"span\" sources={[i18nWarningIconAriaLabel, contentRef]} />\n </>\n );\n}\n\nexport function ConstraintTextRegion({\n id,\n hasValidationText,\n children,\n}: {\n id?: string;\n hasValidationText: boolean;\n children: React.ReactNode;\n}) {\n return (\n <div id={id} className={clsx(styles.constraint, hasValidationText && styles['constraint-has-validation-text'])}>\n {children}\n </div>\n );\n}\n\nexport default function InternalFormField({\n controlId,\n stretch = false,\n label,\n info,\n i18nStrings,\n children,\n secondaryControl,\n description,\n constraintText,\n characterCountText,\n errorText,\n warningText,\n __hideLabel,\n __internalRootRef,\n __disableGutters = false,\n __analyticsMetadata = undefined,\n __style = {},\n ...rest\n}: InternalFormFieldProps) {\n const rootRef = useRef<HTMLElement>();\n const ref = useMergeRefs(rootRef, __internalRootRef);\n const baseProps = getBaseProps(rest);\n const isRefresh = useVisualRefresh();\n\n const instanceUniqueId = useUniqueId('formField');\n const generatedControlId = controlId || instanceUniqueId;\n const formFieldId = controlId || generatedControlId;\n\n const { funnelIdentifier, funnelInteractionId, submissionAttempt, funnelState, errorCount } = useFunnel();\n const { stepIdentifier, stepNumber, stepNameSelector } = useFunnelStep();\n const { subStepIdentifier, subStepSelector, subStepNameSelector } = useFunnelSubStep();\n\n const showWarning = warningText && !errorText;\n\n if (warningText && errorText) {\n warnOnce('FileUpload', 'Both `errorText` and `warningText` exist. `warningText` will not be shown.');\n }\n\n const slotIds = getSlotIds(\n formFieldId,\n label,\n description,\n constraintText,\n characterCountText,\n errorText,\n showWarning ? warningText : undefined\n );\n\n const ariaDescribedBy = getAriaDescribedBy(slotIds);\n\n const gridDefinition = getGridDefinition(stretch, !!secondaryControl, isRefresh);\n\n const {\n ariaLabelledby: parentAriaLabelledby,\n ariaDescribedby: parentAriaDescribedby,\n invalid: parentInvalid,\n warning: parentWarning,\n } = useFormFieldContext({});\n\n const contextValuesWithoutControlId = {\n ariaLabelledby: joinStrings(parentAriaLabelledby, slotIds.label) || undefined,\n ariaDescribedby: joinStrings(parentAriaDescribedby, ariaDescribedBy) || undefined,\n invalid: !!errorText || !!parentInvalid,\n warning: (!!warningText && !errorText) || (!!parentWarning && !parentInvalid),\n };\n\n const analyticsAttributes = {\n [DATA_ATTR_FIELD_LABEL]: slotIds.label ? getFieldSlotSeletor(slotIds.label) : undefined,\n [DATA_ATTR_FIELD_ERROR]: slotIds.error ? getFieldSlotSeletor(slotIds.error) : undefined,\n };\n\n const debounceTimeoutRef = useRef<number | undefined>();\n const [debouncedCharacterCountText, setDebouncedCharacterCountText] = useState(characterCountText);\n\n useEffect(() => {\n debounceTimeoutRef.current = setTimeout(() => {\n setDebouncedCharacterCountText(characterCountText);\n }, CHARACTER_COUNT_DEBOUNCE_MS);\n return () => clearTimeout(debounceTimeoutRef.current);\n }, [characterCountText]);\n\n useEffect(() => {\n if (funnelInteractionId && errorText && funnelState.current !== 'complete') {\n const stepName = getTextFromSelector(stepNameSelector);\n const subStepName = getTextFromSelector(subStepNameSelector);\n\n errorCount.current++;\n\n // We don't want to report an error if it is hidden, e.g. inside an Expandable Section.\n const errorIsVisible = (rootRef.current?.getBoundingClientRect()?.width ?? 0) > 0;\n\n if (errorIsVisible) {\n FunnelMetrics.funnelSubStepError({\n funnelInteractionId,\n funnelIdentifier,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n subStepIdentifier,\n stepNumber,\n stepName,\n stepNameSelector,\n stepIdentifier,\n fieldErrorSelector: `${getFieldSlotSeletor(slotIds.error)} .${styles.error__message}`,\n fieldLabelSelector: getFieldSlotSeletor(slotIds.label),\n subStepAllSelector: getSubStepAllSelector(),\n fieldIdentifier: __analyticsMetadata?.instanceIdentifier,\n errorContext: __analyticsMetadata?.errorContext,\n });\n }\n\n return () => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n errorCount.current--;\n };\n }\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [funnelInteractionId, errorText, submissionAttempt, errorCount]);\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.root)}\n style={__style}\n ref={ref}\n {...analyticsAttributes}\n {...copyAnalyticsMetadataAttribute(rest)}\n >\n <div className={clsx(styles['label-wrapper'], __hideLabel && styles['visually-hidden'])}>\n {label && (\n <label\n className={clsx(styles.label, analyticsSelectors.label)}\n id={slotIds.label}\n htmlFor={generatedControlId}\n >\n {label}\n </label>\n )}\n <InfoLinkLabelContext.Provider value={slotIds.label}>\n {!__hideLabel && info && <span className={styles.info}>{info}</span>}\n </InfoLinkLabelContext.Provider>\n </div>\n\n {description && (\n <div className={styles.description} id={slotIds.description}>\n {description}\n </div>\n )}\n\n <div className={clsx(styles.controls, __hideLabel && styles['label-hidden'])}>\n <InternalGrid gridDefinition={gridDefinition} disableGutters={__disableGutters}>\n <FormFieldContext.Provider\n value={{\n controlId: generatedControlId,\n ...contextValuesWithoutControlId,\n }}\n >\n {children && <div className={styles.control}>{children}</div>}\n </FormFieldContext.Provider>\n\n {secondaryControl && (\n <FormFieldContext.Provider value={contextValuesWithoutControlId}>\n <div className={styles['secondary-control']}>{secondaryControl}</div>\n </FormFieldContext.Provider>\n )}\n </InternalGrid>\n </div>\n\n {(constraintText || characterCountText || errorText || warningText) && (\n <div className={styles.hints}>\n {errorText && (\n <FormFieldError id={slotIds.error} errorIconAriaLabel={i18nStrings?.errorIconAriaLabel}>\n {errorText}\n </FormFieldError>\n )}\n {showWarning && (\n <FormFieldWarning id={slotIds.warning} warningIconAriaLabel={i18nStrings?.warningIconAriaLabel}>\n {warningText}\n </FormFieldWarning>\n )}\n {(constraintText || characterCountText) && (\n <ConstraintTextRegion hasValidationText={!!errorText || !!warningText}>\n {constraintText && (\n <span id={slotIds.constraint} className={testStyles.constraint}>\n {constraintText}\n </span>\n )}\n {characterCountText && (\n <>\n {!!constraintText && ' '}\n <span className={testStyles['character-count']} aria-hidden={true}>\n {characterCountText}\n </span>\n <ScreenreaderOnly id={slotIds.characterCount}>{debouncedCharacterCountText}</ScreenreaderOnly>\n </>\n )}\n </ConstraintTextRegion>\n )}\n </div>\n )}\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/form-field/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AACpG,OAAO,EAAE,8BAA8B,EAAE,MAAM,kEAAkE,CAAC;AAElH,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AACpG,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,mBAAmB,GACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,0CAA0C,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,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DX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useMergeRefs, useUniqueId, warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport { copyAnalyticsMetadataAttribute } from '@cloudscape-design/component-toolkit/internal/analytics-metadata';\n\nimport InternalGrid from '../grid/internal';\nimport { useInternalI18n } from '../i18n/context';\nimport InternalIcon from '../icon/internal';\nimport { FunnelMetrics } from '../internal/analytics';\nimport { useFunnel, useFunnelStep, useFunnelSubStep } from '../internal/analytics/hooks/use-funnel';\nimport {\n DATA_ATTR_FIELD_ERROR,\n DATA_ATTR_FIELD_LABEL,\n getFieldSlotSeletor,\n getSubStepAllSelector,\n getTextFromSelector,\n} from '../internal/analytics/selectors';\nimport { getBaseProps } from '../internal/base-component';\nimport ScreenreaderOnly from '../internal/components/screenreader-only';\nimport { FormFieldContext, useFormFieldContext } from '../internal/context/form-field-context';\nimport { InfoLinkLabelContext } from '../internal/context/info-link-label-context';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { joinStrings } from '../internal/utils/strings';\nimport InternalLiveRegion from '../live-region/internal';\nimport { InternalFormFieldProps } from './internal-interfaces';\nimport { getAriaDescribedBy, getGridDefinition, getSlotIds } from './util';\n\nimport analyticsSelectors from './analytics-metadata/styles.css.js';\nimport styles from './styles.css.js';\nimport testStyles from './test-classes/styles.css.js';\n\ninterface FormFieldErrorProps {\n id?: string;\n children?: React.ReactNode;\n errorIconAriaLabel?: string;\n}\n\ninterface FormFieldWarningProps {\n id?: string;\n children?: React.ReactNode;\n warningIconAriaLabel?: string;\n}\n\nconst CHARACTER_COUNT_DEBOUNCE_MS = 1000;\n\nexport function FormFieldError({ id, children, errorIconAriaLabel }: FormFieldErrorProps) {\n const i18n = useInternalI18n('form-field');\n const contentRef = useRef<HTMLDivElement | null>(null);\n const i18nErrorIconAriaLabel = i18n('i18nStrings.errorIconAriaLabel', errorIconAriaLabel);\n\n return (\n <>\n <div id={id} className={styles.error}>\n <div className={styles['error-icon-shake-wrapper']}>\n <div className={styles['error-icon-scale-wrapper']}>\n <InternalIcon name=\"status-negative\" size=\"small\" ariaLabel={i18nErrorIconAriaLabel} />\n </div>\n </div>\n <span className={styles.error__message} ref={contentRef}>\n {children}\n </span>\n </div>\n\n <InternalLiveRegion assertive={true} tagName=\"span\" sources={[i18nErrorIconAriaLabel, contentRef]} />\n </>\n );\n}\n\nexport function FormFieldWarning({ id, children, warningIconAriaLabel }: FormFieldWarningProps) {\n const i18n = useInternalI18n('form-field');\n const contentRef = useRef<HTMLDivElement | null>(null);\n const i18nWarningIconAriaLabel = i18n('i18nStrings.warningIconAriaLabel', warningIconAriaLabel);\n\n return (\n <>\n <div id={id} className={styles.warning}>\n <div className={styles['warning-icon-shake-wrapper']}>\n <div className={styles['warning-icon-scale-wrapper']}>\n <InternalIcon name=\"status-warning\" size=\"small\" ariaLabel={i18nWarningIconAriaLabel} />\n </div>\n </div>\n <span className={styles.warning__message} ref={contentRef}>\n {children}\n </span>\n </div>\n\n <InternalLiveRegion assertive={true} tagName=\"span\" sources={[i18nWarningIconAriaLabel, contentRef]} />\n </>\n );\n}\n\nexport function ConstraintTextRegion({\n id,\n hasValidationText,\n children,\n}: {\n id?: string;\n hasValidationText: boolean;\n children: React.ReactNode;\n}) {\n return (\n <div id={id} className={clsx(styles.constraint, hasValidationText && styles['constraint-has-validation-text'])}>\n {children}\n </div>\n );\n}\n\nexport default function InternalFormField({\n controlId,\n stretch = false,\n label,\n info,\n i18nStrings,\n children,\n secondaryControl,\n description,\n constraintText,\n characterCountText,\n errorText,\n warningText,\n __hideLabel,\n __internalRootRef,\n __disableGutters = false,\n __analyticsMetadata = undefined,\n __style = {},\n ...rest\n}: InternalFormFieldProps) {\n const rootRef = useRef<HTMLElement>();\n const ref = useMergeRefs(rootRef, __internalRootRef);\n const baseProps = getBaseProps(rest);\n const isRefresh = useVisualRefresh();\n\n const instanceUniqueId = useUniqueId('formField');\n const generatedControlId = controlId || instanceUniqueId;\n const formFieldId = controlId || generatedControlId;\n\n const { funnelIdentifier, funnelInteractionId, submissionAttempt, funnelState, errorCount } = useFunnel();\n const { stepIdentifier, stepNumber, stepNameSelector } = useFunnelStep();\n const { subStepIdentifier, subStepSelector, subStepNameSelector } = useFunnelSubStep();\n\n const showWarning = warningText && !errorText;\n\n if (warningText && errorText) {\n warnOnce('FileUpload', 'Both `errorText` and `warningText` exist. `warningText` will not be shown.');\n }\n\n const slotIds = getSlotIds(\n formFieldId,\n label,\n description,\n constraintText,\n characterCountText,\n errorText,\n showWarning ? warningText : undefined\n );\n\n const ariaDescribedBy = getAriaDescribedBy(slotIds);\n\n const gridDefinition = getGridDefinition(stretch, !!secondaryControl, isRefresh);\n\n const {\n ariaLabelledby: parentAriaLabelledby,\n ariaDescribedby: parentAriaDescribedby,\n invalid: parentInvalid,\n warning: parentWarning,\n } = useFormFieldContext({});\n\n const contextValuesWithoutControlId = {\n ariaLabelledby: joinStrings(parentAriaLabelledby, slotIds.label) || undefined,\n ariaDescribedby: joinStrings(parentAriaDescribedby, ariaDescribedBy) || undefined,\n invalid: !!errorText || !!parentInvalid,\n warning: (!!warningText && !errorText) || (!!parentWarning && !parentInvalid),\n };\n\n const analyticsAttributes = {\n [DATA_ATTR_FIELD_LABEL]: slotIds.label ? getFieldSlotSeletor(slotIds.label) : undefined,\n [DATA_ATTR_FIELD_ERROR]: slotIds.error ? getFieldSlotSeletor(slotIds.error) : undefined,\n };\n\n const debounceTimeoutRef = useRef<number | undefined>();\n const [debouncedCharacterCountText, setDebouncedCharacterCountText] = useState(characterCountText);\n\n useEffect(() => {\n debounceTimeoutRef.current = setTimeout(() => {\n setDebouncedCharacterCountText(characterCountText);\n }, CHARACTER_COUNT_DEBOUNCE_MS);\n return () => clearTimeout(debounceTimeoutRef.current);\n }, [characterCountText]);\n\n useEffect(() => {\n if (funnelInteractionId && errorText && funnelState.current !== 'complete') {\n const stepName = getTextFromSelector(stepNameSelector);\n const subStepName = getTextFromSelector(subStepNameSelector);\n\n errorCount.current++;\n\n // We don't want to report an error if it is hidden, e.g. inside an Expandable Section.\n const errorIsVisible = (rootRef.current?.getBoundingClientRect()?.width ?? 0) > 0;\n\n if (errorIsVisible) {\n FunnelMetrics.funnelSubStepError({\n funnelInteractionId,\n funnelIdentifier,\n subStepSelector,\n subStepName,\n subStepNameSelector,\n subStepIdentifier,\n stepNumber,\n stepName,\n stepNameSelector,\n stepIdentifier,\n fieldErrorSelector: `${getFieldSlotSeletor(slotIds.error)} .${styles.error__message}`,\n fieldLabelSelector: getFieldSlotSeletor(slotIds.label),\n subStepAllSelector: getSubStepAllSelector(),\n fieldIdentifier: __analyticsMetadata?.instanceIdentifier,\n errorContext: __analyticsMetadata?.errorContext,\n });\n }\n\n return () => {\n // eslint-disable-next-line react-hooks/exhaustive-deps\n errorCount.current--;\n };\n }\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [funnelInteractionId, errorText, submissionAttempt, errorCount]);\n\n return (\n <div\n {...baseProps}\n className={clsx(baseProps.className, styles.root)}\n style={__style}\n ref={ref}\n {...analyticsAttributes}\n {...copyAnalyticsMetadataAttribute(rest)}\n >\n <div className={clsx(styles['label-wrapper'], __hideLabel && styles['visually-hidden'])}>\n {label && (\n <label\n className={clsx(styles.label, analyticsSelectors.label)}\n id={slotIds.label}\n htmlFor={generatedControlId}\n >\n {label}\n </label>\n )}\n <InfoLinkLabelContext.Provider value={slotIds.label}>\n {!__hideLabel && info && <span className={styles.info}>{info}</span>}\n </InfoLinkLabelContext.Provider>\n </div>\n\n {description && (\n <div className={styles.description} id={slotIds.description}>\n {description}\n </div>\n )}\n\n <div className={clsx(styles.controls, __hideLabel && styles['label-hidden'])}>\n <InternalGrid gridDefinition={gridDefinition} disableGutters={__disableGutters}>\n <FormFieldContext.Provider\n value={{\n controlId: generatedControlId,\n ...contextValuesWithoutControlId,\n }}\n >\n {children && <div className={styles.control}>{children}</div>}\n </FormFieldContext.Provider>\n\n {secondaryControl && (\n <FormFieldContext.Provider value={contextValuesWithoutControlId}>\n <div className={styles['secondary-control']}>{secondaryControl}</div>\n </FormFieldContext.Provider>\n )}\n </InternalGrid>\n </div>\n\n {(constraintText || characterCountText || errorText || warningText) && (\n <div className={styles.hints}>\n {errorText && (\n <FormFieldError id={slotIds.error} errorIconAriaLabel={i18nStrings?.errorIconAriaLabel}>\n {errorText}\n </FormFieldError>\n )}\n {showWarning && (\n <FormFieldWarning id={slotIds.warning} warningIconAriaLabel={i18nStrings?.warningIconAriaLabel}>\n {warningText}\n </FormFieldWarning>\n )}\n {(constraintText || characterCountText) && (\n <ConstraintTextRegion hasValidationText={!!errorText || !!warningText}>\n {constraintText && (\n <span id={slotIds.constraint} className={testStyles.constraint}>\n {constraintText}\n </span>\n )}\n {characterCountText && (\n <>\n {!!constraintText && ' '}\n <span className={testStyles['character-count']} aria-hidden={true}>\n {characterCountText}\n </span>\n <ScreenreaderOnly id={slotIds.characterCount}>{debouncedCharacterCountText}</ScreenreaderOnly>\n </>\n )}\n </ConstraintTextRegion>\n )}\n </div>\n )}\n </div>\n );\n}\n"]}
@@ -32,6 +32,7 @@ declare const icons: {
32
32
  "closed-caption": JSX.Element;
33
33
  "command-prompt": JSX.Element;
34
34
  contact: JSX.Element;
35
+ "convert-code": JSX.Element;
35
36
  copy: JSX.Element;
36
37
  "delete-marker": JSX.Element;
37
38
  dot: JSX.Element;
@@ -94,6 +95,7 @@ declare const icons: {
94
95
  settings: JSX.Element;
95
96
  share: JSX.Element;
96
97
  shrink: JSX.Element;
98
+ "side-bar": JSX.Element;
97
99
  "slash-divider": JSX.Element;
98
100
  slash: JSX.Element;
99
101
  "star-filled": JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/icon/generated/icons.tsx"],"names":[],"mappings":"AACE,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4IV,CAAC;AACF,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/icon/generated/icons.tsx"],"names":[],"mappings":"AACE,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8IV,CAAC;AACF,eAAe,KAAK,CAAC"}
@@ -80,6 +80,10 @@ const icons = {
80
80
  React.createElement("path", { d: "M4.71 11.3 8 8 4.71 4.71", className: "stroke-linejoin-round" })),
81
81
  "contact": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },
82
82
  React.createElement("path", { d: "M14 12c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1H2c-.55 0-1 .45-1 1v8c0 .55.45 1 1 1h4v3l4-3h4Z", className: "stroke-linejoin-round" })),
83
+ "convert-code": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },
84
+ React.createElement("path", { d: "M10 15h6M15 8V2a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h6" }),
85
+ React.createElement("path", { d: "M5 7.5 8.5 11 5 14.5" }),
86
+ React.createElement("path", { d: "M3 3h2v2H3zM6 3h2v2H6zM9 3h2v2H9z", className: "filled no-stroke" })),
83
87
  "copy": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },
84
88
  React.createElement("path", { d: "M15 5H5v10h10V5Z", className: "stroke-linejoin-round" }),
85
89
  React.createElement("path", { d: "M13 1H1v11", className: "stroke-linejoin-round" })),
@@ -257,6 +261,9 @@ const icons = {
257
261
  React.createElement("path", { d: "M3.5 11a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM12.5 6a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM12.5 15a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5ZM10.326 4.7 5.678 7.293M10.223 11.483l-4.448-1.96" })),
258
262
  "shrink": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },
259
263
  React.createElement("path", { d: "M10 1v5h5M10.71 5.29 15 1M1 10h5v5M5.3 10.7 1 15", className: "stroke-linejoin-round" })),
264
+ "side-bar": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },
265
+ React.createElement("path", { d: "M6 3v10" }),
266
+ React.createElement("rect", { x: "1", y: "3", width: "14", height: "10", rx: "1" })),
260
267
  "slash-divider": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },
261
268
  React.createElement("path", { d: "M10 2 6 14", className: "stroke-linejoin-round" })),
262
269
  "slash": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },