@cloudscape-design/components-themeable 3.0.323 → 3.0.325

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 (97) hide show
  1. package/lib/internal/manifest.json +1 -1
  2. package/lib/internal/scss/pie-chart/styles.scss +1 -1
  3. package/lib/internal/scss/table/body-cell/styles.scss +1 -1
  4. package/lib/internal/template/app-layout/index.js +1 -1
  5. package/lib/internal/template/app-layout/index.js.map +1 -1
  6. package/lib/internal/template/app-layout/visual-refresh/context.js +1 -1
  7. package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
  8. package/lib/internal/template/area-chart/internal.js +1 -1
  9. package/lib/internal/template/area-chart/internal.js.map +1 -1
  10. package/lib/internal/template/autosuggest/internal.js +1 -1
  11. package/lib/internal/template/autosuggest/internal.js.map +1 -1
  12. package/lib/internal/template/collection-preferences/index.js +1 -1
  13. package/lib/internal/template/collection-preferences/index.js.map +1 -1
  14. package/lib/internal/template/date-range-picker/index.js +1 -1
  15. package/lib/internal/template/date-range-picker/index.js.map +1 -1
  16. package/lib/internal/template/date-range-picker/time-offset.js +1 -1
  17. package/lib/internal/template/date-range-picker/time-offset.js.map +1 -1
  18. package/lib/internal/template/expandable-section/expandable-section-header.js +1 -1
  19. package/lib/internal/template/expandable-section/expandable-section-header.js.map +1 -1
  20. package/lib/internal/template/file-upload/internal.js +1 -1
  21. package/lib/internal/template/file-upload/internal.js.map +1 -1
  22. package/lib/internal/template/flashbar/common.js +1 -1
  23. package/lib/internal/template/flashbar/common.js.map +1 -1
  24. package/lib/internal/template/flashbar/flash.js +1 -1
  25. package/lib/internal/template/flashbar/flash.js.map +1 -1
  26. package/lib/internal/template/grid/internal.js +2 -2
  27. package/lib/internal/template/grid/internal.js.map +1 -1
  28. package/lib/internal/template/i18n/provider.js +1 -1
  29. package/lib/internal/template/i18n/provider.js.map +1 -1
  30. package/lib/internal/template/icon/internal.js +1 -1
  31. package/lib/internal/template/icon/internal.js.map +1 -1
  32. package/lib/internal/template/input/styles.css.js +12 -12
  33. package/lib/internal/template/input/styles.scoped.css +31 -31
  34. package/lib/internal/template/input/styles.selectors.js +12 -12
  35. package/lib/internal/template/internal/base-component/styles.scoped.css +27 -11
  36. package/lib/internal/template/internal/components/button-trigger/styles.css.js +9 -9
  37. package/lib/internal/template/internal/components/button-trigger/styles.scoped.css +24 -24
  38. package/lib/internal/template/internal/components/button-trigger/styles.selectors.js +9 -9
  39. package/lib/internal/template/internal/components/checkbox-icon/styles.css.js +7 -7
  40. package/lib/internal/template/internal/components/checkbox-icon/styles.scoped.css +9 -9
  41. package/lib/internal/template/internal/components/checkbox-icon/styles.selectors.js +7 -7
  42. package/lib/internal/template/internal/components/masked-input/use-mask.js +2 -2
  43. package/lib/internal/template/internal/components/masked-input/use-mask.js.map +1 -1
  44. package/lib/internal/template/internal/components/option/index.js +1 -1
  45. package/lib/internal/template/internal/components/option/index.js.map +1 -1
  46. package/lib/internal/template/internal/environment.js +1 -1
  47. package/lib/internal/template/internal/generated/theming/index.cjs +54 -0
  48. package/lib/internal/template/internal/generated/theming/index.js +54 -0
  49. package/lib/internal/template/internal/hooks/check-controlled/index.js +1 -1
  50. package/lib/internal/template/internal/hooks/check-controlled/index.js.map +1 -1
  51. package/lib/internal/template/internal/hooks/use-controllable/index.js +1 -1
  52. package/lib/internal/template/internal/hooks/use-controllable/index.js.map +1 -1
  53. package/lib/internal/template/internal/hooks/use-visual-mode/index.js +1 -1
  54. package/lib/internal/template/internal/hooks/use-visual-mode/index.js.map +1 -1
  55. package/lib/internal/template/internal/utils/check-safe-url.js +1 -1
  56. package/lib/internal/template/internal/utils/check-safe-url.js.map +1 -1
  57. package/lib/internal/template/internal/utils/locale/normalize-locale.js +1 -1
  58. package/lib/internal/template/internal/utils/locale/normalize-locale.js.map +1 -1
  59. package/lib/internal/template/mixed-line-bar-chart/internal.js +1 -1
  60. package/lib/internal/template/mixed-line-bar-chart/internal.js.map +1 -1
  61. package/lib/internal/template/pie-chart/styles.css.js +27 -27
  62. package/lib/internal/template/pie-chart/styles.scoped.css +44 -44
  63. package/lib/internal/template/pie-chart/styles.selectors.js +27 -27
  64. package/lib/internal/template/popover/index.js +1 -1
  65. package/lib/internal/template/popover/index.js.map +1 -1
  66. package/lib/internal/template/progress-bar/index.js +1 -1
  67. package/lib/internal/template/progress-bar/index.js.map +1 -1
  68. package/lib/internal/template/radio-group/styles.css.js +9 -9
  69. package/lib/internal/template/radio-group/styles.scoped.css +16 -16
  70. package/lib/internal/template/radio-group/styles.selectors.js +9 -9
  71. package/lib/internal/template/select/utils/check-option-value-field.js +1 -1
  72. package/lib/internal/template/select/utils/check-option-value-field.js.map +1 -1
  73. package/lib/internal/template/side-navigation/util.js +1 -1
  74. package/lib/internal/template/side-navigation/util.js.map +1 -1
  75. package/lib/internal/template/split-panel/styles.css.js +59 -59
  76. package/lib/internal/template/split-panel/styles.scoped.css +82 -82
  77. package/lib/internal/template/split-panel/styles.selectors.js +59 -59
  78. package/lib/internal/template/table/body-cell/styles.css.js +28 -28
  79. package/lib/internal/template/table/body-cell/styles.scoped.css +70 -70
  80. package/lib/internal/template/table/body-cell/styles.selectors.js +28 -28
  81. package/lib/internal/template/table/use-column-widths.js +1 -1
  82. package/lib/internal/template/table/use-column-widths.js.map +1 -1
  83. package/lib/internal/template/table/utils.js +1 -1
  84. package/lib/internal/template/table/utils.js.map +1 -1
  85. package/lib/internal/template/textarea/styles.css.js +4 -4
  86. package/lib/internal/template/textarea/styles.scoped.css +13 -13
  87. package/lib/internal/template/textarea/styles.selectors.js +4 -4
  88. package/lib/internal/template/tiles/styles.css.js +28 -28
  89. package/lib/internal/template/tiles/styles.scoped.css +69 -69
  90. package/lib/internal/template/tiles/styles.selectors.js +28 -28
  91. package/lib/internal/template/wizard/internal.js +1 -1
  92. package/lib/internal/template/wizard/internal.js.map +1 -1
  93. package/package.json +1 -1
  94. package/lib/internal/template/internal/logging.d.ts +0 -2
  95. package/lib/internal/template/internal/logging.d.ts.map +0 -1
  96. package/lib/internal/template/internal/logging.js +0 -14
  97. package/lib/internal/template/internal/logging.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["grid/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAoB,MAAM,MAAM,CAAC;AACxC,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAc,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,KAAK,OAAO,MAAM,qBAAqB,CAAC;AAC/C,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAWhE,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CACnC,CACE,EAQoB,EACpB,GAAmB,EACnB,EAAE;QAVF,EACE,YAAY,EACZ,cAAc,GAAG,EAAE,EACnB,cAAc,GAAG,KAAK,EACtB,QAAQ,EACR,qBAAqB,EACrB,iBAAiB,GAAG,IAAI,OAEN,EADf,SAAS,cAPd,8GAQC,CADa;IAId,IAAI,CAAC,iBAAiB,EAAE,UAAU,CAAC,GAAwC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAC9G,IAAI,YAAY,KAAK,SAAS,EAAE;QAC9B,iBAAiB,GAAG,YAAY,CAAC;QACjC,UAAU,GAAG,GAAG,CAAC;KAClB;IAED,MAAM,SAAS,GAAG,YAAY,CAAC,SAAS,CAAC,CAAC;IAC1C;;KAEC;IACD,MAAM,iBAAiB,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;IAEpD,IAAI,aAAa,EAAE;QACjB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,EAAE,MAAM,CAAC,wBAAwB,CAAC,IAAG,KAAK,CAAO,CAC3D,CACP,CAAC;IACJ,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,SAAS,mBAAmB,CAC1B,IAAY,EACZ,OAAyD,EACzD,UAA6B;IAE7B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,OAAO,MAAM,CAAC,GAAG,IAAI,IAAI,OAAO,EAAE,CAAC,CAAC;KACrC;IACD,IAAI,UAAU,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,EAAE;QAChD,OAAO,IAAI,CAAC;KACb;IACD,OAAO,MAAM,CAAC,GAAG,IAAI,IAAI,sBAAsB,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC;AAC1E,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx, { ClassValue } from 'clsx';\nimport flattenChildren from 'react-keyed-flatten-children';\nimport { getBaseProps } from '../internal/base-component';\nimport { Breakpoint, matchBreakpointMapping } from '../internal/breakpoints';\nimport { isDevelopment } from '../internal/is-development';\nimport * as logging from '../internal/logging';\nimport styles from './styles.css.js';\nimport { GridProps } from './interfaces';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\n\nexport interface InternalGridProps extends GridProps, InternalBaseComponentProps {\n __breakpoint?: Breakpoint | null;\n\n /**\n * The handler that fires when the grid breakpoint changes.\n */\n __responsiveClassName?: (breakpoint: Breakpoint | null) => ClassValue;\n}\n\nconst InternalGrid = React.forwardRef(\n (\n {\n __breakpoint,\n gridDefinition = [],\n disableGutters = false,\n children,\n __responsiveClassName,\n __internalRootRef = null,\n ...restProps\n }: InternalGridProps,\n ref: React.Ref<any>\n ) => {\n let [defaultBreakpoint, defaultRef]: [Breakpoint | null, React.Ref<any>] = useContainerBreakpoints(undefined);\n if (__breakpoint !== undefined) {\n defaultBreakpoint = __breakpoint;\n defaultRef = ref;\n }\n\n const baseProps = getBaseProps(restProps);\n /*\n Flattening the children allows us to \"see through\" React Fragments and nested arrays.\n */\n const flattenedChildren = flattenChildren(children);\n\n if (isDevelopment) {\n const columnCount = gridDefinition.length;\n const childCount = flattenedChildren.length;\n if (columnCount !== childCount) {\n logging.warnOnce(\n 'Grid',\n `The number of children (${childCount}) does not match the number of columns defined (${columnCount}).`\n );\n }\n }\n\n const mergedRef = useMergeRefs(defaultRef, __internalRootRef);\n\n return (\n <div\n {...baseProps}\n className={clsx(\n styles.grid,\n baseProps.className,\n { [styles['no-gutters']]: disableGutters },\n __responsiveClassName ? __responsiveClassName(defaultBreakpoint) : null\n )}\n ref={mergedRef}\n >\n {flattenedChildren.map((child, i) => {\n // If this react child is a primitive value, the key will be undefined\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const key = (child as any).key;\n\n return (\n <div\n key={key}\n className={clsx(\n styles['grid-column'],\n getColumnClassNames('colspan', gridDefinition[i]?.colspan, defaultBreakpoint),\n getColumnClassNames('offset', gridDefinition[i]?.offset, defaultBreakpoint),\n getColumnClassNames('pull', gridDefinition[i]?.pull, defaultBreakpoint),\n getColumnClassNames('push', gridDefinition[i]?.push, defaultBreakpoint)\n )}\n >\n <div className={styles['restore-pointer-events']}>{child}</div>\n </div>\n );\n })}\n </div>\n );\n }\n);\n\nfunction getColumnClassNames(\n prop: string,\n mapping: undefined | number | GridProps.BreakpointMapping,\n breakpoint: Breakpoint | null\n): string | null {\n if (typeof mapping === 'number') {\n return styles[`${prop}-${mapping}`];\n }\n if (breakpoint === null || mapping === undefined) {\n return null;\n }\n return styles[`${prop}-${matchBreakpointMapping(mapping, breakpoint)}`];\n}\n\nexport default InternalGrid;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["grid/internal.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,CAC1B,IAAY,EACZ,OAAyD,EACzD,UAA6B;IAE7B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE;QAC/B,OAAO,MAAM,CAAC,GAAG,IAAI,IAAI,OAAO,EAAE,CAAC,CAAC;KACrC;IACD,IAAI,UAAU,KAAK,IAAI,IAAI,OAAO,KAAK,SAAS,EAAE;QAChD,OAAO,IAAI,CAAC;KACb;IACD,OAAO,MAAM,CAAC,GAAG,IAAI,IAAI,sBAAsB,CAAC,OAAO,EAAE,UAAU,CAAC,EAAE,CAAC,CAAC;AAC1E,CAAC;AAED,eAAe,YAAY,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx, { ClassValue } from 'clsx';\nimport flattenChildren from 'react-keyed-flatten-children';\nimport { getBaseProps } from '../internal/base-component';\nimport { Breakpoint, matchBreakpointMapping } from '../internal/breakpoints';\nimport { isDevelopment } from '../internal/is-development';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport styles from './styles.css.js';\nimport { GridProps } from './interfaces';\nimport { useContainerBreakpoints } from '../internal/hooks/container-queries';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\n\nexport interface InternalGridProps extends GridProps, InternalBaseComponentProps {\n __breakpoint?: Breakpoint | null;\n\n /**\n * The handler that fires when the grid breakpoint changes.\n */\n __responsiveClassName?: (breakpoint: Breakpoint | null) => ClassValue;\n}\n\nconst InternalGrid = React.forwardRef(\n (\n {\n __breakpoint,\n gridDefinition = [],\n disableGutters = false,\n children,\n __responsiveClassName,\n __internalRootRef = null,\n ...restProps\n }: InternalGridProps,\n ref: React.Ref<any>\n ) => {\n let [defaultBreakpoint, defaultRef]: [Breakpoint | null, React.Ref<any>] = useContainerBreakpoints(undefined);\n if (__breakpoint !== undefined) {\n defaultBreakpoint = __breakpoint;\n defaultRef = ref;\n }\n\n const baseProps = getBaseProps(restProps);\n /*\n Flattening the children allows us to \"see through\" React Fragments and nested arrays.\n */\n const flattenedChildren = flattenChildren(children);\n\n if (isDevelopment) {\n const columnCount = gridDefinition.length;\n const childCount = flattenedChildren.length;\n if (columnCount !== childCount) {\n warnOnce(\n 'Grid',\n `The number of children (${childCount}) does not match the number of columns defined (${columnCount}).`\n );\n }\n }\n\n const mergedRef = useMergeRefs(defaultRef, __internalRootRef);\n\n return (\n <div\n {...baseProps}\n className={clsx(\n styles.grid,\n baseProps.className,\n { [styles['no-gutters']]: disableGutters },\n __responsiveClassName ? __responsiveClassName(defaultBreakpoint) : null\n )}\n ref={mergedRef}\n >\n {flattenedChildren.map((child, i) => {\n // If this react child is a primitive value, the key will be undefined\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const key = (child as any).key;\n\n return (\n <div\n key={key}\n className={clsx(\n styles['grid-column'],\n getColumnClassNames('colspan', gridDefinition[i]?.colspan, defaultBreakpoint),\n getColumnClassNames('offset', gridDefinition[i]?.offset, defaultBreakpoint),\n getColumnClassNames('pull', gridDefinition[i]?.pull, defaultBreakpoint),\n getColumnClassNames('push', gridDefinition[i]?.push, defaultBreakpoint)\n )}\n >\n <div className={styles['restore-pointer-events']}>{child}</div>\n </div>\n );\n })}\n </div>\n );\n }\n);\n\nfunction getColumnClassNames(\n prop: string,\n mapping: undefined | number | GridProps.BreakpointMapping,\n breakpoint: Breakpoint | null\n): string | null {\n if (typeof mapping === 'number') {\n return styles[`${prop}-${mapping}`];\n }\n if (breakpoint === null || mapping === undefined) {\n return null;\n }\n return styles[`${prop}-${matchBreakpointMapping(mapping, breakpoint)}`];\n}\n\nexport default InternalGrid;\n"]}
@@ -4,7 +4,7 @@ import React, { useContext } from 'react';
4
4
  import IntlMessageFormat from 'intl-messageformat';
5
5
  import { InternalI18nContext } from './context';
6
6
  import { useTelemetry } from '../internal/hooks/use-telemetry';
7
- import { warnOnce } from '../internal/logging';
7
+ import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
8
8
  /**
9
9
  * Context to send parent messages down to child I18nProviders. This isn't
10
10
  * included in the InternalI18nContext to avoid components from depending on
@@ -1 +1 @@
1
- {"version":3,"file":"provider.js","sourceRoot":"lib/default/","sources":["i18n/provider.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAE,mBAAmB,EAAiC,MAAM,WAAW,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAoB/C;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAA6B,EAAE,CAAC,CAAC;AAEhF,MAAM,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAqB;IAC3G,YAAY,CAAC,cAAc,CAAC,CAAC;IAE7B,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,CAAC,cAAc,EAAE;QACtD,QAAQ,CACN,cAAc,EACd,mHAAmH,CACpH,CAAC;KACH;IAED,yEAAyE;IACzE,4EAA4E;IAC5E,MAAM,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC,CAAC;IACvD,MAAM,QAAQ,GAAG,aAAa,CAAC,CAAC,cAAc,EAAE,GAAG,aAAa,CAAC,CAAC,CAAC;IAEnE,IAAI,MAAc,CAAC;IACnB,IAAI,cAAc,EAAE;QAClB,+DAA+D;QAC/D,uEAAuE;QACvE,iCAAiC;QACjC,MAAM,GAAG,cAAc,CAAC,WAAW,EAAE,CAAC;KACvC;SAAM,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,QAAQ,CAAC,eAAe,CAAC,IAAI,EAAE;QAC3E,qDAAqD;QACrD,M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S,mBAAmB,CAAC,eAAuB;IAClD,MAAM,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,OAAO,CAAC,eAAe,CAAC,CAAC;KAC1B;IAED,MAAM,aAAa,GAAa,EAAE,CAAC;IACnC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACrC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;KACjD;IACD,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useContext } from 'react';\nimport IntlMessageFormat from 'intl-messageformat';\nimport { MessageFormatElement } from '@formatjs/icu-messageformat-parser';\n\nimport { InternalI18nContext, FormatFunction, CustomHandler } from './context';\nimport { useTelemetry } from '../internal/hooks/use-telemetry';\nimport { warnOnce } from '../internal/logging';\n\nexport interface I18nProviderProps {\n messages: ReadonlyArray<I18nProviderProps.Messages>;\n locale?: string;\n children: React.ReactNode;\n}\n\nexport namespace I18nProviderProps {\n export interface Messages {\n [namespace: string]: {\n [locale: string]: {\n [component: string]: {\n [key: string]: string | MessageFormatElement[];\n };\n };\n };\n }\n}\n\n/**\n * Context to send parent messages down to child I18nProviders. This isn't\n * included in the InternalI18nContext to avoid components from depending on\n * MessageFormatElement types.\n */\nconst I18nMessagesContext = React.createContext<I18nProviderProps.Messages>({});\n\nexport function I18nProvider({ messages: messagesArray, locale: providedLocale, children }: I18nProviderProps) {\n useTelemetry('I18nProvider');\n\n if (typeof document === 'undefined' && !providedLocale) {\n warnOnce(\n 'I18nProvider',\n 'An explicit locale was not provided during server rendering. This can lead to a hydration mismatch on the client.'\n );\n }\n\n // The provider accepts an array of configs. We merge parent messages and\n // flatten the tree early on so that accesses by key are simpler and faster.\n const parentMessages = useContext(I18nMessagesContext);\n const messages = mergeMessages([parentMessages, ...messagesArray]);\n\n let locale: string;\n if (providedLocale) {\n // If a locale is explicitly provided, use the string directly.\n // Locales have a recommended case, but are matched case-insensitively,\n // so we lowercase it internally.\n locale = providedLocale.toLowerCase();\n } else if (typeof document !== 'undefined' && document.documentElement.lang) {\n // Otherwise, use the value provided in the HTML tag.\n locale = document.documentElement.lang.toLowerCase();\n } else {\n // Lastly, fall back to English.\n locale = 'en';\n }\n\n const format: FormatFunction = <ReturnValue, FormatFnArgs extends Record<string, string | number>>(\n namespace: string,\n component: string,\n key: string,\n provided: ReturnValue,\n customHandler?: CustomHandler<ReturnValue, FormatFnArgs>\n ): ReturnValue => {\n // A general rule in the library is that undefined is basically\n // treated as \"not provided\". So even if a user explicitly provides an\n // undefined value, it will default to i18n values.\n if (provided !== undefined) {\n return provided;\n }\n\n // Widen the locale string (e.g. en-GB -> en) until we find a locale\n // that contains the message we need.\n let message: string | MessageFormatElement[] | undefined;\n const matchableLocales = getMatchableLocales(locale);\n for (const matchableLocale of matchableLocales) {\n const localeMessage = messages?.[namespace]?.[matchableLocale]?.[component]?.[key];\n if (localeMessage !== undefined) {\n message = localeMessage;\n break;\n }\n }\n\n // If a message wasn't found, exit early.\n if (message === undefined) {\n return provided;\n }\n\n const intlMessageFormat = new IntlMessageFormat(message, locale);\n if (customHandler) {\n return customHandler(args => intlMessageFormat.format(args) as string);\n }\n // Assuming `T extends string` since a customHandler wasn't provided.\n return intlMessageFormat.format() as ReturnValue;\n };\n\n return (\n <InternalI18nContext.Provider value={{ locale, format }}>\n <I18nMessagesContext.Provider value={messages}>{children}</I18nMessagesContext.Provider>\n </InternalI18nContext.Provider>\n );\n}\n\nfunction mergeMessages(sources: ReadonlyArray<I18nProviderProps.Messages>): I18nProviderProps.Messages {\n const result: I18nProviderProps.Messages = {};\n for (const messages of sources) {\n for (const namespace in messages) {\n if (!(namespace in result)) {\n result[namespace] = {};\n }\n for (const casedLocale in messages[namespace]) {\n const locale = casedLocale.toLowerCase();\n if (!(locale in result[namespace])) {\n result[namespace][locale] = {};\n }\n for (const component in messages[namespace][casedLocale]) {\n if (!(component in result[namespace][locale])) {\n result[namespace][locale][component] = {};\n }\n for (const key in messages[namespace][casedLocale][component]) {\n result[namespace][locale][component][key] = messages[namespace][casedLocale][component][key];\n }\n }\n }\n }\n }\n return result;\n}\n\nfunction getMatchableLocales(ietfLanguageTag: string): string[] {\n const parts = ietfLanguageTag.split('-');\n if (parts.length === 1) {\n return [ietfLanguageTag];\n }\n\n const localeStrings: string[] = [];\n for (let i = parts.length; i > 0; i--) {\n localeStrings.push(parts.slice(0, i).join('-'));\n }\n return localeStrings;\n}\n"]}
1
+ {"version":3,"file":"provider.js","sourceRoot":"lib/default/","sources":["i18n/provider.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,iBAAiB,MAAM,oBAAoB,CAAC;AAGnD,OAAO,EAAE,mBAAmB,EAAiC,MAAM,WAAW,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AAoBzE;;;;GAIG;AACH,MAAM,mBAAmB,GAAG,KAAK,CAAC,aAAa,CAA6B,EAAE,CAAC,CAAC;AAEhF,MAAM,UAAU,YAAY,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAqB;IAC3G,YAAY,CAAC,cAAc,CAAC,CAAC;IAE7B,IAAI,OAAO,QAAQ,KAAK,WAAW,IAAI,CAAC,cAAc,EAAE;QACtD,QAAQ,CACN,cAAc,EACd,mHAAmH,CACpH,CAAC;KACH;IAED,yEAAyE;IACzE,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AAM,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC;qBAC3C;oBACD,KAAK,MAAM,GAAG,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,EAAE;wBAC7D,MAAM,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,GAAG,QAAQ,CAAC,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,CAAC;qBAC9F;iBACF;aACF;SACF;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,SAAS,mBAAmB,CAAC,eAAuB;IAClD,MAAM,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;QACtB,OAAO,CAAC,eAAe,CAAC,CAAC;KAC1B;IAED,MAAM,aAAa,GAAa,EAAE,CAAC;IACnC,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;QACrC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;KACjD;IACD,OAAO,aAAa,CAAC;AACvB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { useContext } from 'react';\nimport IntlMessageFormat from 'intl-messageformat';\nimport { MessageFormatElement } from '@formatjs/icu-messageformat-parser';\n\nimport { InternalI18nContext, FormatFunction, CustomHandler } from './context';\nimport { useTelemetry } from '../internal/hooks/use-telemetry';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\n\nexport interface I18nProviderProps {\n messages: ReadonlyArray<I18nProviderProps.Messages>;\n locale?: string;\n children: React.ReactNode;\n}\n\nexport namespace I18nProviderProps {\n export interface Messages {\n [namespace: string]: {\n [locale: string]: {\n [component: string]: {\n [key: string]: string | MessageFormatElement[];\n };\n };\n };\n }\n}\n\n/**\n * Context to send parent messages down to child I18nProviders. This isn't\n * included in the InternalI18nContext to avoid components from depending on\n * MessageFormatElement types.\n */\nconst I18nMessagesContext = React.createContext<I18nProviderProps.Messages>({});\n\nexport function I18nProvider({ messages: messagesArray, locale: providedLocale, children }: I18nProviderProps) {\n useTelemetry('I18nProvider');\n\n if (typeof document === 'undefined' && !providedLocale) {\n warnOnce(\n 'I18nProvider',\n 'An explicit locale was not provided during server rendering. This can lead to a hydration mismatch on the client.'\n );\n }\n\n // The provider accepts an array of configs. We merge parent messages and\n // flatten the tree early on so that accesses by key are simpler and faster.\n const parentMessages = useContext(I18nMessagesContext);\n const messages = mergeMessages([parentMessages, ...messagesArray]);\n\n let locale: string;\n if (providedLocale) {\n // If a locale is explicitly provided, use the string directly.\n // Locales have a recommended case, but are matched case-insensitively,\n // so we lowercase it internally.\n locale = providedLocale.toLowerCase();\n } else if (typeof document !== 'undefined' && document.documentElement.lang) {\n // Otherwise, use the value provided in the HTML tag.\n locale = document.documentElement.lang.toLowerCase();\n } else {\n // Lastly, fall back to English.\n locale = 'en';\n }\n\n const format: FormatFunction = <ReturnValue, FormatFnArgs extends Record<string, string | number>>(\n namespace: string,\n component: string,\n key: string,\n provided: ReturnValue,\n customHandler?: CustomHandler<ReturnValue, FormatFnArgs>\n ): ReturnValue => {\n // A general rule in the library is that undefined is basically\n // treated as \"not provided\". So even if a user explicitly provides an\n // undefined value, it will default to i18n values.\n if (provided !== undefined) {\n return provided;\n }\n\n // Widen the locale string (e.g. en-GB -> en) until we find a locale\n // that contains the message we need.\n let message: string | MessageFormatElement[] | undefined;\n const matchableLocales = getMatchableLocales(locale);\n for (const matchableLocale of matchableLocales) {\n const localeMessage = messages?.[namespace]?.[matchableLocale]?.[component]?.[key];\n if (localeMessage !== undefined) {\n message = localeMessage;\n break;\n }\n }\n\n // If a message wasn't found, exit early.\n if (message === undefined) {\n return provided;\n }\n\n const intlMessageFormat = new IntlMessageFormat(message, locale);\n if (customHandler) {\n return customHandler(args => intlMessageFormat.format(args) as string);\n }\n // Assuming `T extends string` since a customHandler wasn't provided.\n return intlMessageFormat.format() as ReturnValue;\n };\n\n return (\n <InternalI18nContext.Provider value={{ locale, format }}>\n <I18nMessagesContext.Provider value={messages}>{children}</I18nMessagesContext.Provider>\n </InternalI18nContext.Provider>\n );\n}\n\nfunction mergeMessages(sources: ReadonlyArray<I18nProviderProps.Messages>): I18nProviderProps.Messages {\n const result: I18nProviderProps.Messages = {};\n for (const messages of sources) {\n for (const namespace in messages) {\n if (!(namespace in result)) {\n result[namespace] = {};\n }\n for (const casedLocale in messages[namespace]) {\n const locale = casedLocale.toLowerCase();\n if (!(locale in result[namespace])) {\n result[namespace][locale] = {};\n }\n for (const component in messages[namespace][casedLocale]) {\n if (!(component in result[namespace][locale])) {\n result[namespace][locale][component] = {};\n }\n for (const key in messages[namespace][casedLocale][component]) {\n result[namespace][locale][component][key] = messages[namespace][casedLocale][component][key];\n }\n }\n }\n }\n }\n return result;\n}\n\nfunction getMatchableLocales(ietfLanguageTag: string): string[] {\n const parts = ietfLanguageTag.split('-');\n if (parts.length === 1) {\n return [ietfLanguageTag];\n }\n\n const localeStrings: string[] = [];\n for (let i = parts.length; i > 0; i--) {\n localeStrings.push(parts.slice(0, i).join('-'));\n }\n return localeStrings;\n}\n"]}
@@ -4,7 +4,7 @@ import { __rest } from "tslib";
4
4
  import clsx from 'clsx';
5
5
  import React, { useLayoutEffect, useRef, useState } from 'react';
6
6
  import { getBaseProps } from '../internal/base-component';
7
- import { warnOnce } from '../internal/logging';
7
+ import { warnOnce } from '@cloudscape-design/component-toolkit/internal';
8
8
  import styles from './styles.css.js';
9
9
  import icons from './icons';
10
10
  import { useMergeRefs } from '../internal/hooks/use-merge-refs';
@@ -1 +1 @@
1
- {"version":3,"file":"internal.js","s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YACP,QAAQ,CACN,MAAM,EACN,gGAAgG,CACjG,CAAC;SACH;QACD,OAAO,CACL,8CAAU,SAAS,IAAE,GAAG,EAAE,SAAS,iBAAc,MAAM,EAAC,KAAK,EAAE,YAAY,KACxE,GAAG,CACC,CACR,CAAC;KACH;IAED,IAAI,GAAG,EAAE;QACP,OAAO,CACL,8CAAU,SAAS,IAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY;YACtD,6BAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAI,CACtB,CACR,CAAC;KACH;IAED,MAAM,SAAS,GAAG,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAE5E,OAAO,CACL,8CACM,SAAS;QACb,sFAAsF;QACtF,2CAA2C;QAC3C,uBAAuB,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EACxE,GAAG,EAAE,SAAS,EACd,KAAK,EAAE,YAAY,IACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAGF,eAAe,YAAY,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, { useLayoutEffect, useRef, useState } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { warnOnce } from '../internal/logging';\nimport styles from './styles.css.js';\nimport icons from './icons';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { IconProps } from './interfaces';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\ntype InternalIconProps = IconProps &\n InternalBaseComponentProps & {\n badge?: boolean;\n };\n\nfunction iconSizeMap(height: number | null) {\n if (height === null) {\n // This is the best guess for the contextual height while server rendering.\n return 'normal';\n }\n\n if (height >= 50) {\n return 'large';\n } else if (height >= 36) {\n return 'big';\n } else if (height >= 24) {\n return 'medium';\n } else if (height <= 16) {\n return 'small';\n } else {\n return 'normal';\n }\n}\n\nconst InternalIcon = ({\n name,\n size = 'normal',\n variant = 'normal',\n url,\n alt,\n svg,\n badge,\n __internalRootRef = null,\n ...props\n}: InternalIconProps) => {\n const iconRef = useRef<HTMLElement>(null);\n // To ensure a re-render is triggered on visual mode changes\n useVisualRefresh();\n const [parentHeight, setParentHeight] = useState<number | null>(null);\n const contextualSize = size === 'inherit';\n const iconSize = contextualSize ? iconSizeMap(parentHeight) : size;\n const inlineStyles = contextualSize && parentHeight !== null ? { height: `${parentHeight}px` } : {};\n const baseProps = getBaseProps(props);\n\n baseProps.className = clsx(\n baseProps.className,\n styles.icon,\n contextualSize && styles['icon-flex-height'],\n badge && styles.badge,\n !contextualSize && styles[`size-${iconSize}-mapped-height`],\n styles[`size-${iconSize}`],\n styles[`variant-${variant}`]\n );\n\n // Possible infinite loop is not a concern here because line\n // height should not change without an external state update.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useLayoutEffect(() => {\n if (!contextualSize || !iconRef.current) {\n return;\n }\n const { lineHeight } = getComputedStyle(iconRef.current);\n const newParentHeight = parseInt(lineHeight, 10);\n setParentHeight(newParentHeight);\n });\n\n const mergedRef = useMergeRefs(iconRef, __internalRootRef);\n\n if (svg) {\n if (url) {\n warnOnce(\n 'Icon',\n 'You have specified both `url` and `svg`. `svg` will take precedence and `url` will be ignored.'\n );\n }\n return (\n <span {...baseProps} ref={mergedRef} aria-hidden=\"true\" style={inlineStyles}>\n {svg}\n </span>\n );\n }\n\n if (url) {\n return (\n <span {...baseProps} ref={mergedRef} style={inlineStyles}>\n <img src={url} alt={alt} />\n </span>\n );\n }\n\n const validIcon = name && Object.prototype.hasOwnProperty.call(icons, name);\n\n return (\n <span\n {...baseProps}\n // dangerouslySetInnerHTML is safe here, as we control the content coming from `icons`\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={validIcon ? { __html: icons[name] } : undefined}\n ref={mergedRef}\n style={inlineStyles}\n />\n );\n};\n\nexport { InternalIconProps };\nexport default InternalIcon;\n"]}
1
+ {"version":3,"file":"internal.js","sourceRoot":"lib/default/","sources":["icon/internal.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,+CAA+C,CAAC;AACzE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,KAAK,MAAM,SAAS,CAAC;AAG5B,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAOrE,SAAS,WAAW,CAAC,MAAqB;IACxC,IAAI,MAAM,KAAK,IAAI,EAAE;QACnB,2EAA2E;QAC3E,OAAO,QAAQ,CAAC;KACjB;IAED,IAAI,MAAM,IAAI,EAAE,EAAE;QAChB,OAAO,OAAO,CAAC;KAChB;SAAM,IAAI,MAAM,IAAI,EAAE,EAAE;QACvB,OAAO,KAAK,CAAC;KACd;SAAM,IAAI,MAAM,IAAI,EAAE,EAAE;QACvB,OAAO,QAAQ,CAAC;KACjB;SAAM,IAAI,MAAM,IAAI,EAAE,EAAE;QACvB,OAAO,OAAO,CAAC;KAChB;SAAM;QACL,OAAO,QAAQ,CAAC;KACjB;AACH,CAAC;AAED,MAAM,YAAY,GAAG,CAAC,EAUF,EAAE,EAAE;QAVF,EACpB,IAAI,EACJ,IAAI,GAAG,QAAQ,EACf,OAAO,GAAG,QAAQ,EAClB,GAAG,EACH,GAAG,EACH,GAAG,EACH,KAAK,EACL,iBAAiB,GAAG,IAAI,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IACnC,CAAC,CAAC,CAAC;IAEH,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAE3D,IAAI,GAAG,EAAE;QACP,IAAI,GAAG,EAAE;YACP,QAAQ,CACN,MAAM,EACN,gGAAgG,CACjG,CAAC;SACH;QACD,OAAO,CACL,8CAAU,SAAS,IAAE,GAAG,EAAE,SAAS,iBAAc,MAAM,EAAC,KAAK,EAAE,YAAY,KACxE,GAAG,CACC,CACR,CAAC;KACH;IAED,IAAI,GAAG,EAAE;QACP,OAAO,CACL,8CAAU,SAAS,IAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,YAAY;YACtD,6BAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,GAAI,CACtB,CACR,CAAC;KACH;IAED,MAAM,SAAS,GAAG,IAAI,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;IAE5E,OAAO,CACL,8CACM,SAAS;QACb,sFAAsF;QACtF,2CAA2C;QAC3C,uBAAuB,EAAE,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,EACxE,GAAG,EAAE,SAAS,EACd,KAAK,EAAE,YAAY,IACnB,CACH,CAAC;AACJ,CAAC,CAAC;AAGF,eAAe,YAAY,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, { useLayoutEffect, useRef, useState } from 'react';\nimport { getBaseProps } from '../internal/base-component';\nimport { warnOnce } from '@cloudscape-design/component-toolkit/internal';\nimport styles from './styles.css.js';\nimport icons from './icons';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { IconProps } from './interfaces';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\n\ntype InternalIconProps = IconProps &\n InternalBaseComponentProps & {\n badge?: boolean;\n };\n\nfunction iconSizeMap(height: number | null) {\n if (height === null) {\n // This is the best guess for the contextual height while server rendering.\n return 'normal';\n }\n\n if (height >= 50) {\n return 'large';\n } else if (height >= 36) {\n return 'big';\n } else if (height >= 24) {\n return 'medium';\n } else if (height <= 16) {\n return 'small';\n } else {\n return 'normal';\n }\n}\n\nconst InternalIcon = ({\n name,\n size = 'normal',\n variant = 'normal',\n url,\n alt,\n svg,\n badge,\n __internalRootRef = null,\n ...props\n}: InternalIconProps) => {\n const iconRef = useRef<HTMLElement>(null);\n // To ensure a re-render is triggered on visual mode changes\n useVisualRefresh();\n const [parentHeight, setParentHeight] = useState<number | null>(null);\n const contextualSize = size === 'inherit';\n const iconSize = contextualSize ? iconSizeMap(parentHeight) : size;\n const inlineStyles = contextualSize && parentHeight !== null ? { height: `${parentHeight}px` } : {};\n const baseProps = getBaseProps(props);\n\n baseProps.className = clsx(\n baseProps.className,\n styles.icon,\n contextualSize && styles['icon-flex-height'],\n badge && styles.badge,\n !contextualSize && styles[`size-${iconSize}-mapped-height`],\n styles[`size-${iconSize}`],\n styles[`variant-${variant}`]\n );\n\n // Possible infinite loop is not a concern here because line\n // height should not change without an external state update.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useLayoutEffect(() => {\n if (!contextualSize || !iconRef.current) {\n return;\n }\n const { lineHeight } = getComputedStyle(iconRef.current);\n const newParentHeight = parseInt(lineHeight, 10);\n setParentHeight(newParentHeight);\n });\n\n const mergedRef = useMergeRefs(iconRef, __internalRootRef);\n\n if (svg) {\n if (url) {\n warnOnce(\n 'Icon',\n 'You have specified both `url` and `svg`. `svg` will take precedence and `url` will be ignored.'\n );\n }\n return (\n <span {...baseProps} ref={mergedRef} aria-hidden=\"true\" style={inlineStyles}>\n {svg}\n </span>\n );\n }\n\n if (url) {\n return (\n <span {...baseProps} ref={mergedRef} style={inlineStyles}>\n <img src={url} alt={alt} />\n </span>\n );\n }\n\n const validIcon = name && Object.prototype.hasOwnProperty.call(icons, name);\n\n return (\n <span\n {...baseProps}\n // dangerouslySetInnerHTML is safe here, as we control the content coming from `icons`\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={validIcon ? { __html: icons[name] } : undefined}\n ref={mergedRef}\n style={inlineStyles}\n />\n );\n};\n\nexport { InternalIconProps };\nexport default InternalIcon;\n"]}
@@ -1,17 +1,17 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "root": "awsui_root_2rhyz_1t9e3_93",
5
- "input": "awsui_input_2rhyz_1t9e3_97",
6
- "input-readonly": "awsui_input-readonly_2rhyz_1t9e3_120",
7
- "input-invalid": "awsui_input-invalid_2rhyz_1t9e3_181",
8
- "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1t9e3_192",
9
- "input-type-search": "awsui_input-type-search_2rhyz_1t9e3_197",
10
- "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1t9e3_213",
11
- "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1t9e3_216",
12
- "input-container": "awsui_input-container_2rhyz_1t9e3_220",
13
- "input-icon-left": "awsui_input-icon-left_2rhyz_1t9e3_225",
14
- "input-icon-right": "awsui_input-icon-right_2rhyz_1t9e3_232",
15
- "input-button-right": "awsui_input-button-right_2rhyz_1t9e3_238"
4
+ "root": "awsui_root_2rhyz_1pp0p_93",
5
+ "input": "awsui_input_2rhyz_1pp0p_97",
6
+ "input-readonly": "awsui_input-readonly_2rhyz_1pp0p_120",
7
+ "input-invalid": "awsui_input-invalid_2rhyz_1pp0p_181",
8
+ "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1pp0p_192",
9
+ "input-type-search": "awsui_input-type-search_2rhyz_1pp0p_197",
10
+ "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1pp0p_213",
11
+ "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1pp0p_216",
12
+ "input-container": "awsui_input-container_2rhyz_1pp0p_220",
13
+ "input-icon-left": "awsui_input-icon-left_2rhyz_1pp0p_225",
14
+ "input-icon-right": "awsui_input-icon-right_2rhyz_1pp0p_232",
15
+ "input-button-right": "awsui_input-button-right_2rhyz_1pp0p_238"
16
16
  };
17
17
 
@@ -90,11 +90,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_root_2rhyz_1t9e3_93:not(#\9) {
93
+ .awsui_root_2rhyz_1pp0p_93:not(#\9) {
94
94
  /* used in test-utils for component to distinguish input from other input-like components, for example autosuggest */
95
95
  }
96
96
 
97
- .awsui_input_2rhyz_1t9e3_97:not(#\9) {
97
+ .awsui_input_2rhyz_1pp0p_97:not(#\9) {
98
98
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
99
99
  border-collapse: separate;
100
100
  border-spacing: 0;
@@ -138,75 +138,75 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
138
138
  box-sizing: border-box;
139
139
  background-color: var(--color-background-input-default-16mzof, #ffffff);
140
140
  border-radius: var(--border-radius-input-gfayl6, 2px);
141
- border: var(--border-field-width-gmdyxy, 1px) solid var(--color-border-input-default-481bu3, #879596);
141
+ border: var(--border-field-width-gmdyxy, 1px) solid var(--color-border-input-default-3zchtj, #687078);
142
142
  font-size: var(--font-body-m-size-0qqejn, 14px);
143
143
  line-height: var(--font-body-m-line-height-9vkzhc, 22px);
144
144
  height: var(--size-vertical-input-yg5yti, 32px);
145
145
  }
146
- .awsui_input_2rhyz_1t9e3_97.awsui_input-readonly_2rhyz_1t9e3_120:not(#\9) {
146
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-readonly_2rhyz_1pp0p_120:not(#\9) {
147
147
  background-color: var(--color-background-input-default-16mzof, #ffffff);
148
148
  border: var(--border-field-width-gmdyxy, 1px) solid var(--color-border-input-disabled-4rrzz6, #eaeded);
149
149
  }
150
- .awsui_input_2rhyz_1t9e3_97:not(#\9)::-webkit-input-placeholder {
150
+ .awsui_input_2rhyz_1pp0p_97:not(#\9)::-webkit-input-placeholder {
151
151
  color: var(--color-text-input-placeholder-j38kg2, #687078);
152
152
  font-style: italic;
153
153
  -webkit-user-select: none;
154
154
  user-select: none;
155
155
  }
156
- .awsui_input_2rhyz_1t9e3_97:not(#\9)::-ms-input-placeholder {
156
+ .awsui_input_2rhyz_1pp0p_97:not(#\9)::-ms-input-placeholder {
157
157
  color: var(--color-text-input-placeholder-j38kg2, #687078);
158
158
  font-style: italic;
159
159
  }
160
- .awsui_input_2rhyz_1t9e3_97:not(#\9)::-moz-placeholder {
160
+ .awsui_input_2rhyz_1pp0p_97:not(#\9)::-moz-placeholder {
161
161
  color: var(--color-text-input-placeholder-j38kg2, #687078);
162
162
  font-style: italic;
163
163
  opacity: 1;
164
164
  }
165
- .awsui_input_2rhyz_1t9e3_97:not(#\9):-ms-input-placeholder {
165
+ .awsui_input_2rhyz_1pp0p_97:not(#\9):-ms-input-placeholder {
166
166
  color: var(--color-text-input-placeholder-j38kg2, #687078);
167
167
  font-style: italic;
168
168
  }
169
- .awsui_input_2rhyz_1t9e3_97:not(#\9):-moz-placeholder {
169
+ .awsui_input_2rhyz_1pp0p_97:not(#\9):-moz-placeholder {
170
170
  color: var(--color-text-input-placeholder-j38kg2, #687078);
171
171
  font-style: italic;
172
172
  opacity: 1;
173
173
  }
174
- .awsui_input_2rhyz_1t9e3_97:not(#\9):focus {
174
+ .awsui_input_2rhyz_1pp0p_97:not(#\9):focus {
175
175
  outline: 2px dotted transparent;
176
176
  border: var(--border-field-width-gmdyxy, 1px) solid var(--color-border-item-focused-4clyb1, #0073bb);
177
177
  border-radius: var(--border-radius-input-gfayl6, 2px);
178
178
  box-shadow: 0 0 0 var(--border-control-focus-ring-shadow-spread-qycpr2, 1px) var(--color-border-item-focused-4clyb1, #0073bb);
179
179
  }
180
- .awsui_input_2rhyz_1t9e3_97:not(#\9):disabled {
180
+ .awsui_input_2rhyz_1pp0p_97:not(#\9):disabled {
181
181
  background-color: var(--color-background-input-disabled-izitmw, #eaeded);
182
182
  border: var(--border-field-width-gmdyxy, 1px) solid var(--color-border-input-disabled-4rrzz6, #eaeded);
183
183
  color: var(--color-text-input-disabled-w14lvq, #879596);
184
184
  cursor: auto;
185
185
  cursor: default;
186
186
  }
187
- .awsui_input_2rhyz_1t9e3_97:not(#\9):disabled::-webkit-input-placeholder {
187
+ .awsui_input_2rhyz_1pp0p_97:not(#\9):disabled::-webkit-input-placeholder {
188
188
  color: var(--color-text-input-placeholder-disabled-x5vuev, #687078);
189
189
  -webkit-user-select: none;
190
190
  user-select: none;
191
191
  }
192
- .awsui_input_2rhyz_1t9e3_97:not(#\9):disabled::-ms-input-placeholder {
192
+ .awsui_input_2rhyz_1pp0p_97:not(#\9):disabled::-ms-input-placeholder {
193
193
  color: var(--color-text-input-placeholder-disabled-x5vuev, #687078);
194
194
  }
195
- .awsui_input_2rhyz_1t9e3_97:not(#\9):disabled::-moz-placeholder {
195
+ .awsui_input_2rhyz_1pp0p_97:not(#\9):disabled::-moz-placeholder {
196
196
  color: var(--color-text-input-placeholder-disabled-x5vuev, #687078);
197
197
  opacity: 1;
198
198
  }
199
- .awsui_input_2rhyz_1t9e3_97:not(#\9):disabled:-ms-input-placeholder {
199
+ .awsui_input_2rhyz_1pp0p_97:not(#\9):disabled:-ms-input-placeholder {
200
200
  color: var(--color-text-input-placeholder-disabled-x5vuev, #687078);
201
201
  }
202
- .awsui_input_2rhyz_1t9e3_97:not(#\9):disabled:-moz-placeholder {
202
+ .awsui_input_2rhyz_1pp0p_97:not(#\9):disabled:-moz-placeholder {
203
203
  color: var(--color-text-input-placeholder-disabled-x5vuev, #687078);
204
204
  opacity: 1;
205
205
  }
206
- .awsui_input_2rhyz_1t9e3_97:not(#\9):invalid {
206
+ .awsui_input_2rhyz_1pp0p_97:not(#\9):invalid {
207
207
  box-shadow: none;
208
208
  }
209
- .awsui_input_2rhyz_1t9e3_97.awsui_input-invalid_2rhyz_1t9e3_181:not(#\9) {
209
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-invalid_2rhyz_1pp0p_181:not(#\9) {
210
210
  color: var(--color-text-status-error-6ntion, #d13212);
211
211
  border-color: var(--color-text-status-error-6ntion, #d13212);
212
212
  padding-left: calc(
@@ -214,55 +214,55 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
214
214
  );
215
215
  border-left-width: var(--border-invalid-width-6tnuc9, 4px);
216
216
  }
217
- .awsui_input_2rhyz_1t9e3_97.awsui_input-invalid_2rhyz_1t9e3_181:not(#\9):focus {
217
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-invalid_2rhyz_1pp0p_181:not(#\9):focus {
218
218
  box-shadow: 0 0 0 var(--border-control-invalid-focus-ring-shadow-spread-56jreh, 1px) var(--color-border-item-focused-4clyb1, #0073bb);
219
219
  }
220
- .awsui_input_2rhyz_1t9e3_97.awsui_input-invalid_2rhyz_1t9e3_181.awsui_input-has-icon-left_2rhyz_1t9e3_192:not(#\9) {
220
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-invalid_2rhyz_1pp0p_181.awsui_input-has-icon-left_2rhyz_1pp0p_192:not(#\9) {
221
221
  padding-left: calc(
222
222
  var(--space-field-icon-offset-v49om3, 32px) - (var(--border-invalid-width-6tnuc9, 4px) - var(--border-field-width-gmdyxy, 1px))
223
223
  );
224
224
  }
225
- .awsui_input_2rhyz_1t9e3_97.awsui_input-type-search_2rhyz_1t9e3_197:not(#\9) {
225
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-type-search_2rhyz_1pp0p_197:not(#\9) {
226
226
  box-sizing: border-box;
227
227
  -webkit-appearance: none; /* stylelint-disable-line plugin/no-unsupported-browser-features */
228
228
  }
229
- .awsui_input_2rhyz_1t9e3_97.awsui_input-type-search_2rhyz_1t9e3_197:not(#\9)::-ms-clear {
229
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-type-search_2rhyz_1pp0p_197:not(#\9)::-ms-clear {
230
230
  display: none;
231
231
  }
232
- .awsui_input_2rhyz_1t9e3_97.awsui_input-type-search_2rhyz_1t9e3_197:not(#\9)::-webkit-search-decoration {
232
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-type-search_2rhyz_1pp0p_197:not(#\9)::-webkit-search-decoration {
233
233
  -webkit-appearance: none; /* stylelint-disable-line plugin/no-unsupported-browser-features */
234
234
  }
235
- .awsui_input_2rhyz_1t9e3_97.awsui_input-type-search_2rhyz_1t9e3_197:not(#\9)::-webkit-search-cancel-button {
235
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-type-search_2rhyz_1pp0p_197:not(#\9)::-webkit-search-cancel-button {
236
236
  display: none;
237
237
  }
238
- .awsui_input_2rhyz_1t9e3_97.awsui_input-has-icon-left_2rhyz_1t9e3_192:not(#\9) {
238
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-has-icon-left_2rhyz_1pp0p_192:not(#\9) {
239
239
  padding-left: var(--space-field-icon-offset-v49om3, 32px);
240
240
  }
241
- .awsui_input_2rhyz_1t9e3_97.awsui_input-has-icon-right_2rhyz_1t9e3_213:not(#\9) {
241
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-has-icon-right_2rhyz_1pp0p_213:not(#\9) {
242
242
  padding-right: var(--space-field-icon-offset-v49om3, 32px);
243
243
  }
244
- .awsui_input_2rhyz_1t9e3_97.awsui_input-has-no-border-radius_2rhyz_1t9e3_216:not(#\9) {
244
+ .awsui_input_2rhyz_1pp0p_97.awsui_input-has-no-border-radius_2rhyz_1pp0p_216:not(#\9) {
245
245
  border-radius: var(--border-radius-dropdown-svczfv, 0px);
246
246
  }
247
247
 
248
- .awsui_input-container_2rhyz_1t9e3_220:not(#\9) {
248
+ .awsui_input-container_2rhyz_1pp0p_220:not(#\9) {
249
249
  display: flex;
250
250
  position: relative;
251
251
  }
252
252
 
253
- .awsui_input-icon-left_2rhyz_1t9e3_225:not(#\9) {
253
+ .awsui_input-icon-left_2rhyz_1pp0p_225:not(#\9) {
254
254
  position: absolute;
255
255
  pointer-events: none;
256
256
  left: var(--space-field-horizontal-xg7uom, 8px);
257
257
  top: calc(50% - var(--font-body-m-line-height-9vkzhc, 22px) / 2);
258
258
  }
259
259
 
260
- .awsui_input-icon-right_2rhyz_1t9e3_232:not(#\9) {
260
+ .awsui_input-icon-right_2rhyz_1pp0p_232:not(#\9) {
261
261
  position: absolute;
262
262
  top: calc(50% - var(--font-body-m-line-height-9vkzhc, 22px) / 2);
263
263
  right: calc(var(--space-field-horizontal-xg7uom, 8px) - var(--space-xxs-xx079q, 4px));
264
264
  }
265
265
 
266
- .awsui_input-button-right_2rhyz_1t9e3_238:not(#\9) {
266
+ .awsui_input-button-right_2rhyz_1pp0p_238:not(#\9) {
267
267
  /* used in test-utils */
268
268
  }
@@ -2,17 +2,17 @@
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_1t9e3_93",
6
- "input": "awsui_input_2rhyz_1t9e3_97",
7
- "input-readonly": "awsui_input-readonly_2rhyz_1t9e3_120",
8
- "input-invalid": "awsui_input-invalid_2rhyz_1t9e3_181",
9
- "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1t9e3_192",
10
- "input-type-search": "awsui_input-type-search_2rhyz_1t9e3_197",
11
- "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1t9e3_213",
12
- "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1t9e3_216",
13
- "input-container": "awsui_input-container_2rhyz_1t9e3_220",
14
- "input-icon-left": "awsui_input-icon-left_2rhyz_1t9e3_225",
15
- "input-icon-right": "awsui_input-icon-right_2rhyz_1t9e3_232",
16
- "input-button-right": "awsui_input-button-right_2rhyz_1t9e3_238"
5
+ "root": "awsui_root_2rhyz_1pp0p_93",
6
+ "input": "awsui_input_2rhyz_1pp0p_97",
7
+ "input-readonly": "awsui_input-readonly_2rhyz_1pp0p_120",
8
+ "input-invalid": "awsui_input-invalid_2rhyz_1pp0p_181",
9
+ "input-has-icon-left": "awsui_input-has-icon-left_2rhyz_1pp0p_192",
10
+ "input-type-search": "awsui_input-type-search_2rhyz_1pp0p_197",
11
+ "input-has-icon-right": "awsui_input-has-icon-right_2rhyz_1pp0p_213",
12
+ "input-has-no-border-radius": "awsui_input-has-no-border-radius_2rhyz_1pp0p_216",
13
+ "input-container": "awsui_input-container_2rhyz_1pp0p_220",
14
+ "input-icon-left": "awsui_input-icon-left_2rhyz_1pp0p_225",
15
+ "input-icon-right": "awsui_input-icon-right_2rhyz_1pp0p_232",
16
+ "input-button-right": "awsui_input-button-right_2rhyz_1pp0p_238"
17
17
  };
18
18
 
@@ -235,7 +235,7 @@
235
235
  --color-border-container-divider-b2ream:#eaeded;
236
236
  --color-border-container-top-1t94bd:#eaeded;
237
237
  --color-border-control-checked-miuk2h:#0073bb;
238
- --color-border-control-default-f54s88:#879596;
238
+ --color-border-control-default-zx2mvl:#687078;
239
239
  --color-border-control-disabled-p74xpm:#d5dbdb;
240
240
  --color-border-divider-active-w8jlsh:#687078;
241
241
  --color-border-divider-default-uqjcpn:#eaeded;
@@ -247,7 +247,8 @@
247
247
  --color-border-dropdown-item-hover-jn30h1:#879596;
248
248
  --color-border-dropdown-item-dimmed-hover-ffe22s:#879596;
249
249
  --color-border-dropdown-item-top-xaio9x:#eaeded;
250
- --color-border-input-default-481bu3:#879596;
250
+ --color-border-editable-cell-hover-oi7qcj:#879596;
251
+ --color-border-input-default-3zchtj:#687078;
251
252
  --color-border-input-disabled-4rrzz6:#eaeded;
252
253
  --color-border-item-focused-4clyb1:#0073bb;
253
254
  --color-border-item-placeholder-ohwyrb:transparent;
@@ -273,6 +274,7 @@
273
274
  --color-foreground-control-disabled-7tx8eg:#ffffff;
274
275
  --color-shadow-default-bkdge5:rgba(0, 28, 36, 0.5);
275
276
  --color-shadow-layout-toggle-67ezos:#d5dbdb;
277
+ --color-stroke-chart-line-sahr4b:#879596;
276
278
  --color-text-accent-exu66k:#0073bb;
277
279
  --color-text-body-default-fckvk9:#16191f;
278
280
  --color-text-body-secondary-vrqm14:#545b64;
@@ -820,12 +822,14 @@
820
822
  --color-border-container-divider-b2ream:#414750;
821
823
  --color-border-container-top-1t94bd:#2a2e33;
822
824
  --color-border-control-checked-miuk2h:#00a1c9;
825
+ --color-border-control-default-zx2mvl:#879596;
823
826
  --color-border-control-disabled-p74xpm:#414750;
824
827
  --color-border-divider-default-uqjcpn:#414750;
825
828
  --color-border-divider-panel-bottom-l65byr:rgba(0, 0, 0, 0.3);
826
829
  --color-border-dropdown-group-5ahp44:#414750;
827
830
  --color-border-dropdown-item-default-enmspa:#414750;
828
831
  --color-border-dropdown-item-top-xaio9x:#414750;
832
+ --color-border-input-default-3zchtj:#879596;
829
833
  --color-border-input-disabled-4rrzz6:#414750;
830
834
  --color-border-item-focused-4clyb1:#00a1c9;
831
835
  --color-border-item-selected-044zoh:#00a1c9;
@@ -1092,12 +1096,14 @@
1092
1096
  --color-border-container-divider-b2ream:#414750;
1093
1097
  --color-border-container-top-1t94bd:#2a2e33;
1094
1098
  --color-border-control-checked-miuk2h:#00a1c9;
1099
+ --color-border-control-default-zx2mvl:#879596;
1095
1100
  --color-border-control-disabled-p74xpm:#414750;
1096
1101
  --color-border-divider-default-uqjcpn:#414750;
1097
1102
  --color-border-divider-panel-bottom-l65byr:rgba(0, 0, 0, 0.3);
1098
1103
  --color-border-dropdown-group-5ahp44:#414750;
1099
1104
  --color-border-dropdown-item-default-enmspa:#414750;
1100
1105
  --color-border-dropdown-item-top-xaio9x:#414750;
1106
+ --color-border-input-default-3zchtj:#879596;
1101
1107
  --color-border-input-disabled-4rrzz6:#414750;
1102
1108
  --color-border-item-focused-4clyb1:#00a1c9;
1103
1109
  --color-border-item-selected-044zoh:#00a1c9;
@@ -1284,7 +1290,7 @@
1284
1290
  --color-border-container-divider-b2ream:transparent;
1285
1291
  --color-border-container-top-1t94bd:transparent;
1286
1292
  --color-border-control-checked-miuk2h:#0972d3;
1287
- --color-border-control-default-f54s88:#7d8998;
1293
+ --color-border-control-default-zx2mvl:#7d8998;
1288
1294
  --color-border-control-disabled-p74xpm:#d1d5db;
1289
1295
  --color-border-divider-active-w8jlsh:#000716;
1290
1296
  --color-border-divider-default-uqjcpn:#e9ebed;
@@ -1296,7 +1302,8 @@
1296
1302
  --color-border-dropdown-item-hover-jn30h1:#7d8998;
1297
1303
  --color-border-dropdown-item-dimmed-hover-ffe22s:#7d8998;
1298
1304
  --color-border-dropdown-item-top-xaio9x:transparent;
1299
- --color-border-input-default-481bu3:#7d8998;
1305
+ --color-border-editable-cell-hover-oi7qcj:#7d8998;
1306
+ --color-border-input-default-3zchtj:#7d8998;
1300
1307
  --color-border-input-disabled-4rrzz6:#e9ebed;
1301
1308
  --color-border-item-focused-4clyb1:#0972d3;
1302
1309
  --color-border-item-placeholder-ohwyrb:#0972d3;
@@ -1320,6 +1327,7 @@
1320
1327
  --color-border-tutorial-9o8gmz:#d1d5db;
1321
1328
  --color-shadow-default-bkdge5:rgba(0, 7, 22, 0.12);
1322
1329
  --color-shadow-layout-toggle-67ezos:#d1d5db;
1330
+ --color-stroke-chart-line-sahr4b:#7d8998;
1323
1331
  --color-text-accent-exu66k:#0972d3;
1324
1332
  --color-text-body-default-fckvk9:#000716;
1325
1333
  --color-text-body-secondary-vrqm14:#414d5c;
@@ -1632,7 +1640,8 @@
1632
1640
  --color-border-dropdown-group-5ahp44:#414d5c;
1633
1641
  --color-border-dropdown-item-default-enmspa:#414d5c;
1634
1642
  --color-border-dropdown-item-hover-jn30h1:#5f6b7a;
1635
- --color-border-input-default-481bu3:#5f6b7a;
1643
+ --color-border-editable-cell-hover-oi7qcj:#5f6b7a;
1644
+ --color-border-input-default-3zchtj:#5f6b7a;
1636
1645
  --color-border-input-disabled-4rrzz6:#192534;
1637
1646
  --color-border-item-focused-4clyb1:#539fe5;
1638
1647
  --color-border-item-placeholder-ohwyrb:#539fe5;
@@ -1877,6 +1886,7 @@
1877
1886
  --color-border-container-divider-b2ream:transparent;
1878
1887
  --color-border-container-top-1t94bd:transparent;
1879
1888
  --color-border-control-checked-miuk2h:#539fe5;
1889
+ --color-border-control-default-zx2mvl:#7d8998;
1880
1890
  --color-border-control-disabled-p74xpm:#354150;
1881
1891
  --color-border-divider-active-w8jlsh:#fbfbfb;
1882
1892
  --color-border-divider-default-uqjcpn:#414d5c;
@@ -1887,7 +1897,8 @@
1887
1897
  --color-border-dropdown-item-default-enmspa:#414d5c;
1888
1898
  --color-border-dropdown-item-hover-jn30h1:#5f6b7a;
1889
1899
  --color-border-dropdown-item-top-xaio9x:transparent;
1890
- --color-border-input-default-481bu3:#5f6b7a;
1900
+ --color-border-editable-cell-hover-oi7qcj:#5f6b7a;
1901
+ --color-border-input-default-3zchtj:#5f6b7a;
1891
1902
  --color-border-input-disabled-4rrzz6:#192534;
1892
1903
  --color-border-item-focused-4clyb1:#539fe5;
1893
1904
  --color-border-item-placeholder-ohwyrb:#539fe5;
@@ -2071,7 +2082,8 @@
2071
2082
  --color-border-dropdown-group-5ahp44:#414d5c;
2072
2083
  --color-border-dropdown-item-default-enmspa:#414d5c;
2073
2084
  --color-border-dropdown-item-hover-jn30h1:#5f6b7a;
2074
- --color-border-input-default-481bu3:#5f6b7a;
2085
+ --color-border-editable-cell-hover-oi7qcj:#5f6b7a;
2086
+ --color-border-input-default-3zchtj:#5f6b7a;
2075
2087
  --color-border-input-disabled-4rrzz6:#192534;
2076
2088
  --color-border-item-focused-4clyb1:#539fe5;
2077
2089
  --color-border-item-placeholder-ohwyrb:#539fe5;
@@ -2255,7 +2267,8 @@
2255
2267
  --color-border-dropdown-group-5ahp44:#414d5c;
2256
2268
  --color-border-dropdown-item-default-enmspa:#414d5c;
2257
2269
  --color-border-dropdown-item-hover-jn30h1:#5f6b7a;
2258
- --color-border-input-default-481bu3:#5f6b7a;
2270
+ --color-border-editable-cell-hover-oi7qcj:#5f6b7a;
2271
+ --color-border-input-default-3zchtj:#5f6b7a;
2259
2272
  --color-border-input-disabled-4rrzz6:#192534;
2260
2273
  --color-border-item-focused-4clyb1:#539fe5;
2261
2274
  --color-border-item-placeholder-ohwyrb:#539fe5;
@@ -2451,7 +2464,8 @@
2451
2464
  --color-border-dropdown-group-5ahp44:#414d5c;
2452
2465
  --color-border-dropdown-item-default-enmspa:#414d5c;
2453
2466
  --color-border-dropdown-item-hover-jn30h1:#5f6b7a;
2454
- --color-border-input-default-481bu3:#5f6b7a;
2467
+ --color-border-editable-cell-hover-oi7qcj:#5f6b7a;
2468
+ --color-border-input-default-3zchtj:#5f6b7a;
2455
2469
  --color-border-input-disabled-4rrzz6:#192534;
2456
2470
  --color-border-item-focused-4clyb1:#539fe5;
2457
2471
  --color-border-item-placeholder-ohwyrb:#539fe5;
@@ -2722,7 +2736,8 @@
2722
2736
  --color-border-dropdown-group-5ahp44:#414d5c;
2723
2737
  --color-border-dropdown-item-default-enmspa:#414d5c;
2724
2738
  --color-border-dropdown-item-hover-jn30h1:#5f6b7a;
2725
- --color-border-input-default-481bu3:#5f6b7a;
2739
+ --color-border-editable-cell-hover-oi7qcj:#5f6b7a;
2740
+ --color-border-input-default-3zchtj:#5f6b7a;
2726
2741
  --color-border-input-disabled-4rrzz6:#192534;
2727
2742
  --color-border-item-focused-4clyb1:#fbfbfb;
2728
2743
  --color-border-item-placeholder-ohwyrb:#539fe5;
@@ -2905,7 +2920,8 @@
2905
2920
  --color-border-dropdown-group-5ahp44:#414d5c;
2906
2921
  --color-border-dropdown-item-default-enmspa:#414d5c;
2907
2922
  --color-border-dropdown-item-hover-jn30h1:#5f6b7a;
2908
- --color-border-input-default-481bu3:#5f6b7a;
2923
+ --color-border-editable-cell-hover-oi7qcj:#5f6b7a;
2924
+ --color-border-input-default-3zchtj:#5f6b7a;
2909
2925
  --color-border-input-disabled-4rrzz6:#192534;
2910
2926
  --color-border-item-focused-4clyb1:#fbfbfb;
2911
2927
  --color-border-item-placeholder-ohwyrb:#539fe5;
@@ -1,14 +1,14 @@
1
1
 
2
2
  import './styles.scoped.css';
3
3
  export default {
4
- "button-trigger": "awsui_button-trigger_18eso_pl8h6_97",
5
- "arrow": "awsui_arrow_18eso_pl8h6_97",
6
- "has-caret": "awsui_has-caret_18eso_pl8h6_137",
7
- "placeholder": "awsui_placeholder_18eso_pl8h6_140",
8
- "pressed": "awsui_pressed_18eso_pl8h6_153",
9
- "disabled": "awsui_disabled_18eso_pl8h6_156",
10
- "in-filtering-token": "awsui_in-filtering-token_18eso_pl8h6_165",
11
- "read-only": "awsui_read-only_18eso_pl8h6_171",
12
- "invalid": "awsui_invalid_18eso_pl8h6_188"
4
+ "button-trigger": "awsui_button-trigger_18eso_kczo4_97",
5
+ "arrow": "awsui_arrow_18eso_kczo4_97",
6
+ "has-caret": "awsui_has-caret_18eso_kczo4_137",
7
+ "placeholder": "awsui_placeholder_18eso_kczo4_140",
8
+ "pressed": "awsui_pressed_18eso_kczo4_153",
9
+ "disabled": "awsui_disabled_18eso_kczo4_156",
10
+ "in-filtering-token": "awsui_in-filtering-token_18eso_kczo4_165",
11
+ "read-only": "awsui_read-only_18eso_kczo4_171",
12
+ "invalid": "awsui_invalid_18eso_kczo4_188"
13
13
  };
14
14