@cloudscape-design/components-themeable 3.0.1324 → 3.0.1326
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.
- package/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/badge/styles.scss +4 -4
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/link/constants.scss +2 -2
- package/lib/internal/scss/side-navigation/styles.scss +6 -0
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-ai-drawer.d.ts.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-ai-drawer.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-ai-drawer.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-bottom-drawer.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-bottom-drawer.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawer.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/drawer/global-drawer.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/index.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/state/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js +4 -4
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/after-main-slot.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/after-main-slot.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js +2 -2
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/before-main-slot.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/bottom-content-slot.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/top-content-slot.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/widget-areas/top-content-slot.js.map +1 -1
- package/lib/internal/template/badge/styles.css.js +10 -10
- package/lib/internal/template/badge/styles.scoped.css +14 -14
- package/lib/internal/template/badge/styles.selectors.js +10 -10
- package/lib/internal/template/code-editor/interfaces.js.map +1 -1
- package/lib/internal/template/error-boundary/interfaces.d.ts +1 -0
- package/lib/internal/template/error-boundary/interfaces.d.ts.map +1 -1
- package/lib/internal/template/error-boundary/interfaces.js.map +1 -1
- package/lib/internal/template/error-boundary/internal.d.ts +1 -1
- package/lib/internal/template/error-boundary/internal.d.ts.map +1 -1
- package/lib/internal/template/error-boundary/internal.js +7 -3
- package/lib/internal/template/error-boundary/internal.js.map +1 -1
- package/lib/internal/template/help-panel/styles.css.js +6 -6
- package/lib/internal/template/help-panel/styles.scoped.css +69 -69
- package/lib/internal/template/help-panel/styles.selectors.js +6 -6
- package/lib/internal/template/icon/generated/icons.d.ts +1 -0
- package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
- package/lib/internal/template/icon/generated/icons.js +2 -0
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
- package/lib/internal/template/internal/analytics/components/analytics-funnel.d.ts.map +1 -1
- package/lib/internal/template/internal/analytics/components/analytics-funnel.js +16 -5
- package/lib/internal/template/internal/analytics/components/analytics-funnel.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +17 -1
- package/lib/internal/template/internal/components/token-list/styles.css.js +10 -10
- package/lib/internal/template/internal/components/token-list/styles.scoped.css +24 -24
- package/lib/internal/template/internal/components/token-list/styles.selectors.js +10 -10
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/internal/generated/styles/tokens.d.ts +8 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +8 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +176 -0
- package/lib/internal/template/internal/generated/theming/index.cjs.d.ts +45 -0
- package/lib/internal/template/internal/generated/theming/index.d.ts +45 -0
- package/lib/internal/template/internal/generated/theming/index.js +176 -0
- package/lib/internal/template/internal/utils/external-props.js +7 -5
- package/lib/internal/template/internal/utils/external-props.js.map +1 -1
- package/lib/internal/template/link/styles.css.js +21 -21
- package/lib/internal/template/link/styles.scoped.css +86 -86
- package/lib/internal/template/link/styles.selectors.js +21 -21
- package/lib/internal/template/pagination/internal.d.ts.map +1 -1
- package/lib/internal/template/pagination/internal.js +2 -2
- package/lib/internal/template/pagination/internal.js.map +1 -1
- package/lib/internal/template/select/utils/connect-options.d.ts.map +1 -1
- package/lib/internal/template/select/utils/connect-options.js +11 -7
- package/lib/internal/template/select/utils/connect-options.js.map +1 -1
- package/lib/internal/template/select/utils/use-select.d.ts.map +1 -1
- package/lib/internal/template/select/utils/use-select.js +5 -4
- package/lib/internal/template/select/utils/use-select.js.map +1 -1
- package/lib/internal/template/side-navigation/parts.js +4 -3
- package/lib/internal/template/side-navigation/parts.js.map +1 -1
- package/lib/internal/template/side-navigation/styles.css.js +47 -46
- package/lib/internal/template/side-navigation/styles.scoped.css +76 -70
- package/lib/internal/template/side-navigation/styles.selectors.js +47 -46
- package/lib/internal/template/test-utils/dom/pagination/index.d.ts +9 -6
- package/lib/internal/template/test-utils/dom/pagination/index.js +15 -5
- package/lib/internal/template/test-utils/dom/pagination/index.js.map +1 -1
- package/lib/internal/template/test-utils/selectors/pagination/index.d.ts +8 -6
- package/lib/internal/template/test-utils/selectors/pagination/index.js +9 -5
- package/lib/internal/template/test-utils/selectors/pagination/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/code-editor/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Ace } from 'ace-builds';\n\nimport { BaseModalProps } from '../modal/interfaces';\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\nimport { FormFieldControlProps } from '../types/form-field';\n// eslint-disable-next-line @cloudscape-design/
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/code-editor/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { Ace } from 'ace-builds';\n\nimport { BaseModalProps } from '../modal/interfaces';\nimport { BaseComponentProps } from '../types/base-component';\nimport { NonCancelableEventHandler } from '../types/events';\nimport { FormFieldControlProps } from '../types/form-field';\n// eslint-disable-next-line @cloudscape-design/build-tools/no-internal-in-public-interfaces -- runtime constant; the available Ace modes are the single source of truth for the derived public language types.\nimport { AceModes } from './ace-modes';\n// eslint-disable-next-line @cloudscape-design/build-tools/no-internal-in-public-interfaces -- runtime constants; the available Ace themes are the single source of truth for the derived public theme types.\nimport { DarkThemes, LightThemes } from './ace-themes';\n\nexport interface CodeEditorProps extends BaseComponentProps, FormFieldControlProps, BaseModalProps {\n /**\n * The ace object.\n */\n ace: any;\n\n /**\n * Specifies the content that's displayed in the code editor.\n */\n value: string;\n\n /**\n * Specifies the programming language. You can use any of the programming languages supported by the `ace` object that you provide.\n * Alternatively, this can be used to set a language that is not supported by the default `language` list. Make sure you've added the highlighting support for this language to the Ace instance.\n * For more info on custom languages, see the [Code editor API](/components/code-editor?tabId=api) page.\n */\n language: CodeEditorProps.Language;\n\n /**\n * Specifies a custom label language. If set, it overrides the default language label.\n */\n languageLabel?: string;\n\n /**\n * An event handler called when the value changes.\n * The event `detail` contains the current value of the code editor content.\n * **Deprecated** Replaced by `onDelayedChange`.\n */\n onChange?: NonCancelableEventHandler<CodeEditorProps.ChangeDetail>;\n\n /**\n * An event handler called when the value changes.\n * The event `detail` contains the current value of the code editor content.\n * A user interaction can cause multiple change events to be emitted by the Ace editor. They are batched together into a single `onDelayedChange` event to avoid bugs when controlling the `value` field.\n */\n onDelayedChange?: NonCancelableEventHandler<CodeEditorProps.ChangeDetail>;\n\n /**\n * Annotations returned from Ace syntax checker after code validation.\n */\n onValidate?: NonCancelableEventHandler<CodeEditorProps.ValidateDetail>;\n\n /**\n * Specifies the component preferences.\n *\n * If set to `undefined`, the component uses the following default value:\n *\n * ```\n * {\n * wrapLines: true,\n * theme: 'dawn'\n * }\n * ```\n *\n * You can use any theme provided by Ace.\n */\n preferences?: Partial<CodeEditorProps.Preferences>;\n\n /**\n * List of Ace themes available for selection in preferences dialog. Make sure you include at least one light and at\n * least one dark theme. If not set explicitly, it will render all Ace themes available for selection, except\n * \"cloud_editor\" and \"cloud_editor_dark\".\n */\n themes?: CodeEditorProps.AvailableThemes;\n\n /**\n * Called when any of the preferences change.\n * The event `detail` contains the value of all the preferences as submitted by the user.\n *\n */\n onPreferencesChange: NonCancelableEventHandler<CodeEditorProps.Preferences>;\n\n /**\n * Renders the code editor in a loading state.\n */\n loading?: boolean;\n\n /**\n * Called when the user clicks the recovery button in the error state.\n * Use this to retry loading the code editor or to provide another option for the user to recover from the error.\n */\n onRecoveryClick?: NonCancelableEventHandler<void>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * The object should contain, among others:\n *\n * * `loadingState` - Specifies the text to display while the component is loading.\n * * `errorState` - Specifies the text to display if there is an error loading Ace.\n * * `errorStateRecovery`: Specifies the text for the recovery button that's displayed next to the error text.\n * Use the `recoveryClick` event to do a recovery action (for example, retrying the request).\n * @i18n\n */\n i18nStrings?: CodeEditorProps.I18nStrings;\n\n /**\n * Specifies the height of the code editor document.\n */\n editorContentHeight?: number;\n\n /**\n * Called when the user resizes the editor by dragging the resize icon.\n * The event `detail` contains the new height of the editor in pixels.\n */\n onEditorContentResize?: NonCancelableEventHandler<CodeEditorProps.ResizeDetail>;\n\n /**\n * Adds `aria-label` to the code editor's textarea element.\n */\n ariaLabel?: string;\n}\n\n// Prevents typescript from collapsing a string union type into a string type while still allowing any string.\n// This leads to more helpful editor suggestions for known values.\n// See: https://github.com/microsoft/TypeScript/issues/29729\ntype LiteralUnion<LiteralType, BaseType extends string> = LiteralType | (BaseType & { _?: never });\n\ntype BuiltInLanguage = (typeof AceModes)[number]['value'];\n\nexport namespace CodeEditorProps {\n export type Language = LiteralUnion<BuiltInLanguage, string>;\n export type Theme = (typeof LightThemes)[number]['value'] | (typeof DarkThemes)[number]['value'];\n\n export interface AvailableThemes {\n light: ReadonlyArray<string>;\n dark: ReadonlyArray<string>;\n }\n\n export interface Preferences {\n wrapLines: boolean;\n theme: Theme;\n }\n\n export interface I18nStrings {\n loadingState?: string;\n errorState?: string;\n errorStateRecovery?: string;\n\n editorGroupAriaLabel?: string;\n statusBarGroupAriaLabel?: string;\n\n cursorPosition?: (row: number, column: number) => string;\n errorsTab?: string;\n warningsTab?: string;\n preferencesButtonAriaLabel?: string;\n paneCloseButtonAriaLabel?: string;\n\n preferencesModalHeader?: string;\n preferencesModalCancel?: string;\n preferencesModalConfirm?: string;\n preferencesModalCloseAriaLabel?: string;\n preferencesModalWrapLines?: string;\n preferencesModalTheme?: string;\n preferencesModalLightThemes?: string;\n preferencesModalDarkThemes?: string;\n\n preferencesModalThemeFilteringPlaceholder?: string;\n preferencesModalThemeFilteringAriaLabel?: string;\n preferencesModalThemeFilteringClearAriaLabel?: string;\n\n resizeHandleAriaLabel?: string;\n resizeHandleTooltipText?: string;\n }\n export interface ResizeDetail {\n height: number;\n }\n export interface ChangeDetail {\n value: string;\n }\n\n export interface ValidateDetail {\n annotations: Ace.Annotation[];\n }\n\n export interface Ref {\n /**\n * Sets input focus onto the code editor control.\n */\n focus(): void;\n }\n}\n"]}
|
|
@@ -95,5 +95,6 @@ export interface BuiltInErrorBoundaryProps {
|
|
|
95
95
|
}
|
|
96
96
|
export interface AppLayoutBuiltInErrorBoundaryProps extends BuiltInErrorBoundaryProps {
|
|
97
97
|
renderFallback?: ErrorBoundaryProps['renderFallback'];
|
|
98
|
+
appLayoutPart?: string;
|
|
98
99
|
}
|
|
99
100
|
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/error-boundary/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,kBAAmB,SAAQ,kBAAkB;IAC5D;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;;;;OAQG;IACH,OAAO,EAAE,CAAC,MAAM,EAAE,kBAAkB,CAAC,aAAa,KAAK,IAAI,CAAC;IAE5D;;;;;;;;;;OAUG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IAEzB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,kBAAkB,CAAC,aAAa,KAAK,KAAK,CAAC,SAAS,CAAC;IAE9E;;;;;;;;;;;OAWG;IACH,WAAW,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC;IAE7C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,yBAAiB,kBAAkB,CAAC;IAClC,UAA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C,EAAE,OAAO,CAAC;CAC1B;AAED,MAAM,WAAW,kCAAmC,SAAQ,yBAAyB;IACnF,cAAc,CAAC,EAAE,kBAAkB,CAAC,gBAAgB,CAAC,CAAC;IACtD,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/error-boundary/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { ErrorInfo } from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\n\nexport interface ErrorBoundaryProps extends BaseComponentProps {\n /**\n * Optional identifier for the error boundary instance.\n *\n * When provided, the identifier is included in the `onError` callback payload.\n * In the rendered output, the boundary wraps its content in a `<div>` with the\n * attribute `data-awsui-boundary-id={errorBoundaryId}` to support debugging.\n */\n errorBoundaryId?: string;\n\n /**\n * Callback invoked when an error is intercepted by the boundary.\n * Use this function to record, log, or report errors (for example, to telemetry or monitoring systems).\n *\n * The callback receives a `detail` object containing:\n * * `error` (Error): The thrown error instance.\n * * `errorInfo` (React.ErrorInfo): Additional metadata captured by React.\n * * `errorBoundaryId` (optional, string): The boundary identifier, if defined.\n */\n onError: (detail: ErrorBoundaryProps.OnErrorDetail) => void;\n\n /**\n * Controls how nested error boundaries behave.\n *\n * Several components—such as app layout, container, and modal include built-in\n * error boundaries. These boundaries activate automatically when they detect\n * an ancestor boundary, inheriting configuration from the closest one.\n *\n * When `suppressNested` is set to `true`, nested built-in error boundaries\n * and nested standalone error boundaries with `suppressible=true` are disabled,\n * so the errors propagate further up and are captured by this error boundary.\n */\n suppressNested?: boolean;\n\n /**\n * When set to `true`, this error boundary can be suppressed by another error\n * boundary with `suppressNested=true`, rendered above in the components tree.\n */\n suppressible?: boolean;\n\n /**\n * Optional custom renderer for the fallback UI displayed when an error occurs.\n *\n * The function receives the default slots derived from i18n configuration:\n * * `header` (ReactNode): The fallback header text.\n * * `description` (ReactNode): The fallback description text.\n * * `action` (ReactNode): The fallback action element (a refresh button by default).\n *\n * Return a React node to fully override the default fallback presentation.\n */\n renderFallback?: (props: ErrorBoundaryProps.FallbackProps) => React.ReactNode;\n\n /**\n * Localized strings and components used in the fallback UI.\n *\n * * `headerText` (string): Header text displayed in the fallback view.\n * * `descriptionText` (string): Description text displayed in the fallback view. Supports embedding inline\n * feedback actions by including `<Feedback>` pseudo-tags when `components.Feedback` is provided.\n * * `refreshActionText` (string): Text for the default refresh action button.\n * * `components.Feedback` (React.ComponentType<I18nFeedbackProps>): A component used to render\n * inline feedback actions within the description text.\n *\n * @i18n\n */\n i18nStrings?: ErrorBoundaryProps.I18nStrings;\n\n /**\n * Child content rendered when no error has been captured.\n */\n children: React.ReactNode;\n}\n\nexport namespace ErrorBoundaryProps {\n export interface FallbackProps {\n header?: React.ReactNode;\n description?: React.ReactNode;\n action?: React.ReactNode;\n }\n\n export interface I18nStrings {\n headerText?: string;\n descriptionText?: string;\n refreshActionText?: string;\n components?: {\n Feedback?: React.ComponentType<I18nFeedbackProps>;\n };\n }\n\n export interface I18nFeedbackProps {\n children: React.ReactNode;\n }\n\n export interface OnErrorDetail {\n error: Error;\n errorInfo: ErrorInfo;\n errorBoundaryId?: string;\n }\n}\n\nexport interface BuiltInErrorBoundaryProps {\n children: React.ReactNode;\n wrapper?: (content: React.ReactNode) => React.ReactNode;\n suppressNested?: boolean;\n}\n\nexport interface AppLayoutBuiltInErrorBoundaryProps extends BuiltInErrorBoundaryProps {\n renderFallback?: ErrorBoundaryProps['renderFallback'];\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/error-boundary/interfaces.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { ErrorInfo } from 'react';\n\nimport { BaseComponentProps } from '../types/base-component';\n\nexport interface ErrorBoundaryProps extends BaseComponentProps {\n /**\n * Optional identifier for the error boundary instance.\n *\n * When provided, the identifier is included in the `onError` callback payload.\n * In the rendered output, the boundary wraps its content in a `<div>` with the\n * attribute `data-awsui-boundary-id={errorBoundaryId}` to support debugging.\n */\n errorBoundaryId?: string;\n\n /**\n * Callback invoked when an error is intercepted by the boundary.\n * Use this function to record, log, or report errors (for example, to telemetry or monitoring systems).\n *\n * The callback receives a `detail` object containing:\n * * `error` (Error): The thrown error instance.\n * * `errorInfo` (React.ErrorInfo): Additional metadata captured by React.\n * * `errorBoundaryId` (optional, string): The boundary identifier, if defined.\n */\n onError: (detail: ErrorBoundaryProps.OnErrorDetail) => void;\n\n /**\n * Controls how nested error boundaries behave.\n *\n * Several components—such as app layout, container, and modal include built-in\n * error boundaries. These boundaries activate automatically when they detect\n * an ancestor boundary, inheriting configuration from the closest one.\n *\n * When `suppressNested` is set to `true`, nested built-in error boundaries\n * and nested standalone error boundaries with `suppressible=true` are disabled,\n * so the errors propagate further up and are captured by this error boundary.\n */\n suppressNested?: boolean;\n\n /**\n * When set to `true`, this error boundary can be suppressed by another error\n * boundary with `suppressNested=true`, rendered above in the components tree.\n */\n suppressible?: boolean;\n\n /**\n * Optional custom renderer for the fallback UI displayed when an error occurs.\n *\n * The function receives the default slots derived from i18n configuration:\n * * `header` (ReactNode): The fallback header text.\n * * `description` (ReactNode): The fallback description text.\n * * `action` (ReactNode): The fallback action element (a refresh button by default).\n *\n * Return a React node to fully override the default fallback presentation.\n */\n renderFallback?: (props: ErrorBoundaryProps.FallbackProps) => React.ReactNode;\n\n /**\n * Localized strings and components used in the fallback UI.\n *\n * * `headerText` (string): Header text displayed in the fallback view.\n * * `descriptionText` (string): Description text displayed in the fallback view. Supports embedding inline\n * feedback actions by including `<Feedback>` pseudo-tags when `components.Feedback` is provided.\n * * `refreshActionText` (string): Text for the default refresh action button.\n * * `components.Feedback` (React.ComponentType<I18nFeedbackProps>): A component used to render\n * inline feedback actions within the description text.\n *\n * @i18n\n */\n i18nStrings?: ErrorBoundaryProps.I18nStrings;\n\n /**\n * Child content rendered when no error has been captured.\n */\n children: React.ReactNode;\n}\n\nexport namespace ErrorBoundaryProps {\n export interface FallbackProps {\n header?: React.ReactNode;\n description?: React.ReactNode;\n action?: React.ReactNode;\n }\n\n export interface I18nStrings {\n headerText?: string;\n descriptionText?: string;\n refreshActionText?: string;\n components?: {\n Feedback?: React.ComponentType<I18nFeedbackProps>;\n };\n }\n\n export interface I18nFeedbackProps {\n children: React.ReactNode;\n }\n\n export interface OnErrorDetail {\n error: Error;\n errorInfo: ErrorInfo;\n errorBoundaryId?: string;\n }\n}\n\nexport interface BuiltInErrorBoundaryProps {\n children: React.ReactNode;\n wrapper?: (content: React.ReactNode) => React.ReactNode;\n suppressNested?: boolean;\n}\n\nexport interface AppLayoutBuiltInErrorBoundaryProps extends BuiltInErrorBoundaryProps {\n renderFallback?: ErrorBoundaryProps['renderFallback'];\n appLayoutPart?: string;\n}\n"]}
|
|
@@ -13,6 +13,6 @@ interface InternalErrorBoundaryProps extends SomeRequired<ErrorBoundaryProps, 's
|
|
|
13
13
|
}
|
|
14
14
|
export declare function InternalErrorBoundary({ children, suppressNested, suppressible, __internalRootRef, ...props }: InternalErrorBoundaryProps): JSX.Element;
|
|
15
15
|
export declare function BuiltInErrorBoundary({ wrapper, suppressNested, children }: BuiltInErrorBoundaryProps): JSX.Element;
|
|
16
|
-
export declare function AppLayoutBuiltInErrorBoundary({ wrapper, suppressNested, children, renderFallback, }: AppLayoutBuiltInErrorBoundaryProps): JSX.Element;
|
|
16
|
+
export declare function AppLayoutBuiltInErrorBoundary({ wrapper, suppressNested, children, renderFallback, appLayoutPart, }: AppLayoutBuiltInErrorBoundaryProps): JSX.Element;
|
|
17
17
|
export {};
|
|
18
18
|
//# sourceMappingURL=internal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/error-boundary/internal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/error-boundary/internal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEjD,OAAO,EAAE,kCAAkC,EAAE,yBAAyB,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAKjH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,WAAW;QACnB,SAAS,CAAC,EAAE;YAAE,UAAU,CAAC,IAAI,IAAI,CAAC;YAAC,gBAAgB,CAAC,IAAI,IAAI,CAAA;SAAE,CAAC;KAChE;CACF;AAaD,UAAU,0BACR,SAAQ,YAAY,CAAC,kBAAkB,EAAE,gBAAgB,GAAG,cAAc,CAAC,EACzE,0BAA0B;CAAG;AAEjC,wBAAgB,qBAAqB,CAAC,EACpC,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,GAAG,KAAK,EACT,EAAE,0BAA0B,eA8B5B;AAED,wBAAgB,oBAAoB,CAAC,EAAE,OAAO,EAAE,cAAsB,EAAE,QAAQ,EAAE,EAAE,yBAAyB,eAa5G;AAED,wBAAgB,6BAA6B,CAAC,EAC5C,OAAO,EACP,cAAsB,EACtB,QAAQ,EACR,cAA4B,EAC5B,aAAa,GACd,EAAE,kCAAkC,eAuBpC"}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import React, { Component, createContext, useContext, useState } from 'react';
|
|
4
4
|
import { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';
|
|
5
|
+
import { metrics } from '../internal/metrics';
|
|
5
6
|
import { ErrorBoundaryFallback } from './fallback';
|
|
6
7
|
import styles from './styles.css.js';
|
|
7
8
|
const RootSuppressed = Symbol();
|
|
@@ -34,14 +35,17 @@ export function BuiltInErrorBoundary({ wrapper, suppressNested = false, children
|
|
|
34
35
|
return !thisSuppressed ? (React.createElement(ErrorBoundaryImpl, { ...context, wrapper: wrapper },
|
|
35
36
|
React.createElement(ErrorBoundariesContext.Provider, { value: { ...context, suppressed: nextSuppressed } }, children))) : (React.createElement(React.Fragment, null, children));
|
|
36
37
|
}
|
|
37
|
-
export function AppLayoutBuiltInErrorBoundary({ wrapper, suppressNested = false, children, renderFallback = () => React.createElement(React.Fragment, null), }) {
|
|
38
|
+
export function AppLayoutBuiltInErrorBoundary({ wrapper, suppressNested = false, children, renderFallback = () => React.createElement(React.Fragment, null), appLayoutPart, }) {
|
|
38
39
|
const context = useContext(ErrorBoundariesContext);
|
|
39
40
|
const thisSuppressed = context.suppressed === true || context.suppressed === RootSuppressed;
|
|
40
41
|
const nextSuppressed = suppressNested || thisSuppressed;
|
|
41
42
|
return (React.createElement(ErrorBoundaryImpl, { ...context, wrapper: wrapper, renderFallback: renderFallback, className: styles['app-layout-part-fallback'], onError: error => {
|
|
42
|
-
var _a;
|
|
43
|
+
var _a, _b, _c;
|
|
43
44
|
(_a = context === null || context === void 0 ? void 0 : context.onError) === null || _a === void 0 ? void 0 : _a.call(context, error);
|
|
44
|
-
|
|
45
|
+
metrics.sendOpsMetricObject('awsui-app-layout-error-boundary-fired', {
|
|
46
|
+
errorMessage: (_c = (_b = error === null || error === void 0 ? void 0 : error.error) === null || _b === void 0 ? void 0 : _b.message) !== null && _c !== void 0 ? _c : '',
|
|
47
|
+
appLayoutPart: appLayoutPart !== null && appLayoutPart !== void 0 ? appLayoutPart : '',
|
|
48
|
+
});
|
|
45
49
|
} },
|
|
46
50
|
React.createElement(ErrorBoundariesContext.Provider, { value: { ...context, suppressed: nextSuppressed, renderFallback } }, children)));
|
|
47
51
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/error-boundary/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;
|
|
1
|
+
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/error-boundary/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE9E,OAAO,EAAE,YAAY,EAAE,MAAM,+CAA+C,CAAC;AAG7E,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE9C,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAGnD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AASrC,MAAM,cAAc,GAAG,MAAM,EAAE,CAAC;AAEhC,MAAM,sBAAsB,GAAG,aAAa,CAI1C;IACA,OAAO,EAAE,GAAG,EAAE,GAAE,CAAC;IACjB,UAAU,EAAE,cAAc;CAC3B,CAAC,CAAC;AAMH,MAAM,UAAU,qBAAqB,CAAC,EACpC,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,iBAAiB,EACjB,GAAG,KAAK,EACmB;IAC3B,MAAM,OAAO,GAAG,UAAU,CAAC,sBAAsB,CAAC,CAAC;IACnD,MAAM,cAAc,GAAG,OAAO,CAAC,UAAU,KAAK,IAAI,IAAI,YAAY,CAAC;IACnE,MAAM,cAAc,GAAG,cAAc,IAAI,cAAc,CAAC;IAExD,MAAM,CAAC,WAAW,EAAE,cAAc,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,UAAU,GAAG,CAAC,IAA2B,EAAE,EAAE;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YAAY,KAA6B;QACvC,KAAK,CAAC,KAAK,CAAC,CAAC;QACb,IAAI,CAAC,KAAK,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;IACnC,CAAC;IAED,MAAM,CAAC,wBAAwB;QAC7B,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC5B,CAAC;IAED,iBAAiB,CAAC,KAAY,EAAE,SAA0B;;QACxD,MAAA,MAAA,IAAI,CAAC,KAAK,EAAC,OAAO,mDAAG,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,CAAC,KAAK,CAAC,eAAe,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED,MAAM;;QACJ,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;YAClD,MAAM,QAAQ,GAAG,oBAAC,qBAAqB,OAAK,IAAI,CAAC,KAAK,GAAI,CAAC;YAC3D,OAAO,MAAA,MAAA,MAAA,IAAI,CAAC,KAAK,EAAC,OAAO,mDAAG,QAAQ,CAAC,mCAAI,QAAQ,CAAC;QACpD,CAAC;QACD,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;IAC7B,CAAC;CACF","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport React, { Component, createContext, useContext, useState } from 'react';\n\nimport { useMergeRefs } from '@cloudscape-design/component-toolkit/internal';\n\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { metrics } from '../internal/metrics';\nimport { SomeRequired } from '../internal/types';\nimport { ErrorBoundaryFallback } from './fallback';\nimport { AppLayoutBuiltInErrorBoundaryProps, BuiltInErrorBoundaryProps, ErrorBoundaryProps } from './interfaces';\n\nimport styles from './styles.css.js';\n\n// Helper methods attached to the component's root node for e2e testing.\ndeclare global {\n interface HTMLElement {\n __awsui__?: { forceError?(): void; clearForcedError?(): void };\n }\n}\n\nconst RootSuppressed = Symbol();\n\nconst ErrorBoundariesContext = createContext<\n Pick<ErrorBoundaryProps, 'renderFallback' | 'i18nStrings' | 'onError' | 'errorBoundaryId'> & {\n suppressed: boolean | typeof RootSuppressed;\n }\n>({\n onError: () => {},\n suppressed: RootSuppressed,\n});\n\ninterface InternalErrorBoundaryProps\n extends SomeRequired<ErrorBoundaryProps, 'suppressNested' | 'suppressible'>,\n InternalBaseComponentProps {}\n\nexport function InternalErrorBoundary({\n children,\n suppressNested,\n suppressible,\n __internalRootRef,\n ...props\n}: InternalErrorBoundaryProps) {\n const context = useContext(ErrorBoundariesContext);\n const thisSuppressed = context.suppressed === true && suppressible;\n const nextSuppressed = suppressNested || thisSuppressed;\n\n const [forcedError, setForcedError] = useState(false);\n const setElement = (node: null | HTMLDivElement) => {\n if (node) {\n if (!node.__awsui__) {\n node.__awsui__ = {};\n }\n node.__awsui__.forceError = () => setForcedError(true);\n node.__awsui__.clearForcedError = () => setForcedError(false);\n }\n };\n const mergedRef = useMergeRefs(setElement, __internalRootRef);\n\n return (\n <div ref={mergedRef} className={styles['error-boundary']} data-awsui-boundary-id={props.errorBoundaryId}>\n {!thisSuppressed ? (\n <ErrorBoundaryImpl {...props} forcedError={forcedError}>\n <ErrorBoundariesContext.Provider value={{ ...props, suppressed: nextSuppressed }}>\n {children}\n </ErrorBoundariesContext.Provider>\n </ErrorBoundaryImpl>\n ) : (\n <>{children}</>\n )}\n </div>\n );\n}\n\nexport function BuiltInErrorBoundary({ wrapper, suppressNested = false, children }: BuiltInErrorBoundaryProps) {\n const context = useContext(ErrorBoundariesContext);\n const thisSuppressed = context.suppressed === true || context.suppressed === RootSuppressed;\n const nextSuppressed = suppressNested || thisSuppressed;\n return !thisSuppressed ? (\n <ErrorBoundaryImpl {...context} wrapper={wrapper}>\n <ErrorBoundariesContext.Provider value={{ ...context, suppressed: nextSuppressed }}>\n {children}\n </ErrorBoundariesContext.Provider>\n </ErrorBoundaryImpl>\n ) : (\n <>{children}</>\n );\n}\n\nexport function AppLayoutBuiltInErrorBoundary({\n wrapper,\n suppressNested = false,\n children,\n renderFallback = () => <></>,\n appLayoutPart,\n}: AppLayoutBuiltInErrorBoundaryProps) {\n const context = useContext(ErrorBoundariesContext);\n const thisSuppressed = context.suppressed === true || context.suppressed === RootSuppressed;\n const nextSuppressed = suppressNested || thisSuppressed;\n return (\n <ErrorBoundaryImpl\n {...context}\n wrapper={wrapper}\n renderFallback={renderFallback}\n className={styles['app-layout-part-fallback']}\n onError={error => {\n context?.onError?.(error);\n metrics.sendOpsMetricObject('awsui-app-layout-error-boundary-fired', {\n errorMessage: error?.error?.message ?? '',\n appLayoutPart: appLayoutPart ?? '',\n });\n }}\n >\n <ErrorBoundariesContext.Provider value={{ ...context, suppressed: nextSuppressed, renderFallback }}>\n {children}\n </ErrorBoundariesContext.Provider>\n </ErrorBoundaryImpl>\n );\n}\n\ninterface ErrorBoundaryState {\n hasError: boolean;\n}\n\ninterface ErrorBoundaryImplProps extends ErrorBoundaryProps {\n wrapper?: (content: React.ReactNode) => React.ReactNode;\n forcedError?: boolean;\n}\n\nclass ErrorBoundaryImpl extends Component<ErrorBoundaryImplProps, ErrorBoundaryState> {\n constructor(props: ErrorBoundaryImplProps) {\n super(props);\n this.state = { hasError: false };\n }\n\n static getDerivedStateFromError() {\n return { hasError: true };\n }\n\n componentDidCatch(error: Error, errorInfo: React.ErrorInfo): void {\n this.props.onError?.({ error, errorInfo, errorBoundaryId: this.props.errorBoundaryId });\n }\n\n render() {\n if (this.state.hasError || this.props.forcedError) {\n const fallback = <ErrorBoundaryFallback {...this.props} />;\n return this.props.wrapper?.(fallback) ?? fallback;\n }\n return this.props.children;\n }\n}\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"help-panel": "awsui_help-
|
|
5
|
-
"loading": "
|
|
6
|
-
"header": "
|
|
7
|
-
"with-toolbar": "awsui_with-
|
|
8
|
-
"content": "
|
|
9
|
-
"footer": "
|
|
4
|
+
"help-panel": "awsui_help-panel_1d237_w9ngm_181",
|
|
5
|
+
"loading": "awsui_loading_1d237_w9ngm_354",
|
|
6
|
+
"header": "awsui_header_1d237_w9ngm_359",
|
|
7
|
+
"with-toolbar": "awsui_with-toolbar_1d237_w9ngm_377",
|
|
8
|
+
"content": "awsui_content_1d237_w9ngm_396",
|
|
9
|
+
"footer": "awsui_footer_1d237_w9ngm_448"
|
|
10
10
|
};
|
|
11
11
|
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
*/
|
|
179
179
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
180
180
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
181
|
-
.awsui_help-
|
|
181
|
+
.awsui_help-panel_1d237_w9ngm_181:not(#\9) {
|
|
182
182
|
border-collapse: separate;
|
|
183
183
|
border-spacing: 0;
|
|
184
184
|
box-sizing: border-box;
|
|
@@ -214,36 +214,36 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
214
214
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
215
215
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
216
216
|
}
|
|
217
|
-
.awsui_help-
|
|
217
|
+
.awsui_help-panel_1d237_w9ngm_181 hr:not(#\9) {
|
|
218
218
|
border-block: none;
|
|
219
219
|
border-inline: none;
|
|
220
220
|
border-block-start: var(--border-divider-section-width-sznrdy, 1px) solid var(--color-border-divider-default-ipvpev, #eaeded);
|
|
221
221
|
margin-block: var(--space-scaled-xl-nxtcbc, 24px);
|
|
222
222
|
margin-inline: calc(-1 * var(--space-panel-divider-margin-horizontal-6msb21, 12px));
|
|
223
223
|
}
|
|
224
|
-
.awsui_help-
|
|
225
|
-
.awsui_help-
|
|
224
|
+
.awsui_help-panel_1d237_w9ngm_181 ol:not(#\9),
|
|
225
|
+
.awsui_help-panel_1d237_w9ngm_181 ul:not(#\9) {
|
|
226
226
|
padding-inline-start: var(--space-l-3cws6j, 20px);
|
|
227
227
|
list-style-position: outside;
|
|
228
228
|
margin-block: var(--space-s-4a5hs8, 12px);
|
|
229
229
|
margin-inline: 0;
|
|
230
230
|
}
|
|
231
|
-
.awsui_help-
|
|
231
|
+
.awsui_help-panel_1d237_w9ngm_181 li:not(#\9) {
|
|
232
232
|
margin-block: var(--space-scaled-xxs-jatbiv, 4px);
|
|
233
233
|
margin-inline: 0;
|
|
234
234
|
}
|
|
235
|
-
.awsui_help-
|
|
236
|
-
.awsui_help-
|
|
237
|
-
.awsui_help-
|
|
238
|
-
.awsui_help-
|
|
239
|
-
.awsui_help-
|
|
240
|
-
.awsui_help-
|
|
241
|
-
.awsui_help-
|
|
235
|
+
.awsui_help-panel_1d237_w9ngm_181 a:not(#\9),
|
|
236
|
+
.awsui_help-panel_1d237_w9ngm_181 h2:not(#\9),
|
|
237
|
+
.awsui_help-panel_1d237_w9ngm_181 h3:not(#\9),
|
|
238
|
+
.awsui_help-panel_1d237_w9ngm_181 h4:not(#\9),
|
|
239
|
+
.awsui_help-panel_1d237_w9ngm_181 h5:not(#\9),
|
|
240
|
+
.awsui_help-panel_1d237_w9ngm_181 pre:not(#\9),
|
|
241
|
+
.awsui_help-panel_1d237_w9ngm_181 code:not(#\9) {
|
|
242
242
|
margin-block: var(--space-xs-kw7k3v, 8px);
|
|
243
243
|
margin-inline: 0;
|
|
244
244
|
padding-block: 0;
|
|
245
245
|
}
|
|
246
|
-
.awsui_help-
|
|
246
|
+
.awsui_help-panel_1d237_w9ngm_181 code:not(#\9) {
|
|
247
247
|
font-size: var(--font-size-body-s-psgqn2, 12px);
|
|
248
248
|
line-height: var(--line-height-body-s-otgtsr, 16px);
|
|
249
249
|
letter-spacing: var(--letter-spacing-body-s-egrcsd, normal);
|
|
@@ -254,7 +254,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
254
254
|
word-wrap: break-word;
|
|
255
255
|
white-space: pre-wrap;
|
|
256
256
|
}
|
|
257
|
-
.awsui_help-
|
|
257
|
+
.awsui_help-panel_1d237_w9ngm_181 pre:not(#\9) {
|
|
258
258
|
font-size: var(--font-size-body-s-psgqn2, 12px);
|
|
259
259
|
line-height: var(--line-height-body-s-otgtsr, 16px);
|
|
260
260
|
letter-spacing: var(--letter-spacing-body-s-egrcsd, normal);
|
|
@@ -267,41 +267,41 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
267
267
|
padding-block: var(--space-xxs-jnczic, 4px);
|
|
268
268
|
padding-inline: var(--space-xxs-jnczic, 4px);
|
|
269
269
|
}
|
|
270
|
-
.awsui_help-
|
|
270
|
+
.awsui_help-panel_1d237_w9ngm_181 dl:not(#\9) {
|
|
271
271
|
margin-block: var(--space-s-4a5hs8, 12px);
|
|
272
272
|
margin-inline: 0;
|
|
273
273
|
/* stylelint-disable-next-line selector-max-universal */
|
|
274
274
|
}
|
|
275
|
-
.awsui_help-
|
|
275
|
+
.awsui_help-panel_1d237_w9ngm_181 dl *:not(#\9) {
|
|
276
276
|
margin-block: 0;
|
|
277
277
|
}
|
|
278
|
-
.awsui_help-
|
|
278
|
+
.awsui_help-panel_1d237_w9ngm_181 dt:not(#\9) {
|
|
279
279
|
margin-block-start: var(--space-xs-kw7k3v, 8px);
|
|
280
280
|
font-weight: var(--font-weight-bold-p16d06, 700);
|
|
281
281
|
}
|
|
282
|
-
.awsui_help-
|
|
282
|
+
.awsui_help-panel_1d237_w9ngm_181 dd:not(#\9) {
|
|
283
283
|
margin-block-start: 0;
|
|
284
284
|
margin-block-end: var(--space-xs-kw7k3v, 8px);
|
|
285
285
|
margin-inline: 0;
|
|
286
286
|
}
|
|
287
|
-
.awsui_help-
|
|
288
|
-
.awsui_help-
|
|
289
|
-
.awsui_help-
|
|
290
|
-
.awsui_help-
|
|
291
|
-
.awsui_help-
|
|
287
|
+
.awsui_help-panel_1d237_w9ngm_181 h2:not(#\9),
|
|
288
|
+
.awsui_help-panel_1d237_w9ngm_181 h3:not(#\9),
|
|
289
|
+
.awsui_help-panel_1d237_w9ngm_181 h4:not(#\9),
|
|
290
|
+
.awsui_help-panel_1d237_w9ngm_181 h5:not(#\9),
|
|
291
|
+
.awsui_help-panel_1d237_w9ngm_181 h6:not(#\9) {
|
|
292
292
|
margin-block-start: var(--space-xl-4dmkh1, 24px);
|
|
293
293
|
color: var(--color-text-heading-default-wlau07, #16191f);
|
|
294
294
|
}
|
|
295
|
-
.awsui_help-
|
|
295
|
+
.awsui_help-panel_1d237_w9ngm_181 > :not(#\9):last-child {
|
|
296
296
|
margin-block-end: var(--space-panel-content-bottom-igtxf0, 40px);
|
|
297
297
|
}
|
|
298
|
-
.awsui_help-
|
|
298
|
+
.awsui_help-panel_1d237_w9ngm_181 p:not(#\9) {
|
|
299
299
|
color: inherit;
|
|
300
300
|
text-decoration: none;
|
|
301
301
|
margin-block: var(--space-s-4a5hs8, 12px);
|
|
302
302
|
margin-inline: 0;
|
|
303
303
|
}
|
|
304
|
-
.awsui_help-
|
|
304
|
+
.awsui_help-panel_1d237_w9ngm_181 h1:not(#\9) {
|
|
305
305
|
font-family: var(--font-family-heading-gnchto, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
306
306
|
font-size: var(--font-size-heading-xl-w5di2k, 28px);
|
|
307
307
|
line-height: var(--line-height-heading-xl-vs1f23, 36px);
|
|
@@ -310,7 +310,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
310
310
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
311
311
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
312
312
|
}
|
|
313
|
-
.awsui_help-
|
|
313
|
+
.awsui_help-panel_1d237_w9ngm_181 h2:not(#\9) {
|
|
314
314
|
font-family: var(--font-family-heading-gnchto, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
315
315
|
font-size: var(--font-size-heading-l-qgg2za, 18px);
|
|
316
316
|
line-height: var(--line-height-heading-l-vhgtnq, 22px);
|
|
@@ -319,7 +319,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
319
319
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
320
320
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
321
321
|
}
|
|
322
|
-
.awsui_help-
|
|
322
|
+
.awsui_help-panel_1d237_w9ngm_181 h3:not(#\9) {
|
|
323
323
|
font-family: var(--font-family-heading-gnchto, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
324
324
|
font-size: var(--font-size-heading-m-56jjln, 18px);
|
|
325
325
|
line-height: var(--line-height-heading-m-irezqt, 22px);
|
|
@@ -328,7 +328,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
328
328
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
329
329
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
330
330
|
}
|
|
331
|
-
.awsui_help-
|
|
331
|
+
.awsui_help-panel_1d237_w9ngm_181 h4:not(#\9) {
|
|
332
332
|
font-family: var(--font-family-heading-gnchto, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
333
333
|
font-size: var(--font-size-heading-s-yde02v, 16px);
|
|
334
334
|
line-height: var(--line-height-heading-s-j2axh8, 20px);
|
|
@@ -337,7 +337,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
337
337
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
338
338
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
339
339
|
}
|
|
340
|
-
.awsui_help-
|
|
340
|
+
.awsui_help-panel_1d237_w9ngm_181 h5:not(#\9) {
|
|
341
341
|
font-family: var(--font-family-heading-gnchto, "Noto Sans", "Helvetica Neue", Roboto, Arial, sans-serif);
|
|
342
342
|
font-size: var(--font-size-heading-xs-c20ika, 16px);
|
|
343
343
|
line-height: var(--line-height-heading-xs-fuzanp, 20px);
|
|
@@ -346,17 +346,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
346
346
|
-webkit-font-smoothing: var(--font-smoothing-webkit-px4az4, auto);
|
|
347
347
|
-moz-osx-font-smoothing: var(--font-smoothing-moz-osx-ev3sgf, auto);
|
|
348
348
|
}
|
|
349
|
-
.awsui_help-
|
|
350
|
-
.awsui_help-
|
|
349
|
+
.awsui_help-panel_1d237_w9ngm_181 b:not(#\9),
|
|
350
|
+
.awsui_help-panel_1d237_w9ngm_181 strong:not(#\9) {
|
|
351
351
|
font-weight: var(--font-weight-bold-p16d06, 700);
|
|
352
352
|
}
|
|
353
353
|
|
|
354
|
-
.
|
|
354
|
+
.awsui_loading_1d237_w9ngm_354:not(#\9) {
|
|
355
355
|
padding-inline-start: var(--space-panel-side-left-07kpj4, 32px);
|
|
356
356
|
padding-inline-end: var(--space-panel-side-right-b77xx0, 32px);
|
|
357
357
|
}
|
|
358
358
|
|
|
359
|
-
.
|
|
359
|
+
.awsui_header_1d237_w9ngm_359:not(#\9) {
|
|
360
360
|
font-size: var(--font-panel-header-size-i1j838, 18px);
|
|
361
361
|
letter-spacing: var(--letter-spacing-heading-m-93y02s, normal);
|
|
362
362
|
line-height: var(--font-panel-header-line-height-z3wpa5, 22px);
|
|
@@ -374,15 +374,15 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
374
374
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
375
375
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
376
376
|
}
|
|
377
|
-
.awsui_with-
|
|
377
|
+
.awsui_with-toolbar_1d237_w9ngm_377 > .awsui_header_1d237_w9ngm_359:not(#\9) {
|
|
378
378
|
border-color: transparent;
|
|
379
379
|
margin-block-end: 0px;
|
|
380
380
|
}
|
|
381
|
-
.
|
|
382
|
-
.
|
|
383
|
-
.
|
|
384
|
-
.
|
|
385
|
-
.
|
|
381
|
+
.awsui_header_1d237_w9ngm_359 h2:not(#\9),
|
|
382
|
+
.awsui_header_1d237_w9ngm_359 h3:not(#\9),
|
|
383
|
+
.awsui_header_1d237_w9ngm_359 h4:not(#\9),
|
|
384
|
+
.awsui_header_1d237_w9ngm_359 h5:not(#\9),
|
|
385
|
+
.awsui_header_1d237_w9ngm_359 h6:not(#\9) {
|
|
386
386
|
font-size: var(--font-panel-header-size-i1j838, 18px);
|
|
387
387
|
letter-spacing: var(--letter-spacing-heading-m-93y02s, normal);
|
|
388
388
|
line-height: var(--font-panel-header-line-height-z3wpa5, 22px);
|
|
@@ -393,22 +393,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
393
393
|
margin-block: 0;
|
|
394
394
|
}
|
|
395
395
|
|
|
396
|
-
.
|
|
396
|
+
.awsui_content_1d237_w9ngm_396:not(#\9) {
|
|
397
397
|
color: var(--color-text-body-secondary-gaft81, #545b64);
|
|
398
398
|
padding-inline-start: var(--space-panel-side-left-07kpj4, 32px);
|
|
399
399
|
padding-inline-end: var(--space-panel-side-right-b77xx0, 32px);
|
|
400
400
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
401
401
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
402
402
|
}
|
|
403
|
-
.
|
|
404
|
-
.
|
|
405
|
-
.
|
|
406
|
-
.
|
|
407
|
-
.
|
|
408
|
-
.
|
|
403
|
+
.awsui_content_1d237_w9ngm_396 h2:not(#\9):first-child,
|
|
404
|
+
.awsui_content_1d237_w9ngm_396 h3:not(#\9):first-child,
|
|
405
|
+
.awsui_content_1d237_w9ngm_396 h4:not(#\9):first-child,
|
|
406
|
+
.awsui_content_1d237_w9ngm_396 h5:not(#\9):first-child,
|
|
407
|
+
.awsui_content_1d237_w9ngm_396 h6:not(#\9):first-child,
|
|
408
|
+
.awsui_content_1d237_w9ngm_396 p:not(#\9):first-child {
|
|
409
409
|
margin-block-start: 0;
|
|
410
410
|
}
|
|
411
|
-
.
|
|
411
|
+
.awsui_content_1d237_w9ngm_396 a:not(#\9) {
|
|
412
412
|
text-underline-offset: 0.25em;
|
|
413
413
|
text-decoration-thickness: var(--font-decoration-thickness-link-4tl2vi, 1px);
|
|
414
414
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
@@ -423,31 +423,31 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
423
423
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
424
424
|
}
|
|
425
425
|
@media (prefers-reduced-motion: reduce) {
|
|
426
|
-
.
|
|
426
|
+
.awsui_content_1d237_w9ngm_396 a:not(#\9) {
|
|
427
427
|
animation: none;
|
|
428
428
|
transition: none;
|
|
429
429
|
}
|
|
430
430
|
}
|
|
431
|
-
.awsui-motion-disabled .
|
|
431
|
+
.awsui-motion-disabled .awsui_content_1d237_w9ngm_396 a:not(#\9), .awsui-mode-entering .awsui_content_1d237_w9ngm_396 a:not(#\9) {
|
|
432
432
|
animation: none;
|
|
433
433
|
transition: none;
|
|
434
434
|
}
|
|
435
|
-
.
|
|
435
|
+
.awsui_content_1d237_w9ngm_396 a:not(#\9):hover {
|
|
436
436
|
cursor: pointer;
|
|
437
437
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
438
438
|
}
|
|
439
|
-
.
|
|
439
|
+
.awsui_content_1d237_w9ngm_396 a:not(#\9):focus {
|
|
440
440
|
outline: none;
|
|
441
441
|
}
|
|
442
|
-
.
|
|
442
|
+
.awsui_content_1d237_w9ngm_396 a:not(#\9):active {
|
|
443
443
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-hover-pqxtsy, #0a4a74));
|
|
444
444
|
}
|
|
445
|
-
.
|
|
445
|
+
.awsui_content_1d237_w9ngm_396 a:not(#\9):active, .awsui_content_1d237_w9ngm_396 a:not(#\9):focus, .awsui_content_1d237_w9ngm_396 a:not(#\9):hover {
|
|
446
446
|
text-decoration-line: underline;
|
|
447
447
|
text-decoration-color: var(--color-text-link-decoration-hover-jnu2g9, currentColor);
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
.
|
|
450
|
+
.awsui_footer_1d237_w9ngm_448:not(#\9) {
|
|
451
451
|
color: var(--color-text-body-secondary-gaft81, #545b64);
|
|
452
452
|
padding-block: 0;
|
|
453
453
|
padding-inline-start: var(--space-panel-side-left-07kpj4, 32px);
|
|
@@ -455,16 +455,16 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
455
455
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
456
456
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
457
457
|
}
|
|
458
|
-
.
|
|
458
|
+
.awsui_footer_1d237_w9ngm_448 ul:not(#\9) {
|
|
459
459
|
list-style: none;
|
|
460
460
|
padding-inline-start: 0;
|
|
461
461
|
}
|
|
462
|
-
.
|
|
462
|
+
.awsui_footer_1d237_w9ngm_448 a:not(#\9) {
|
|
463
463
|
text-underline-offset: 0.25em;
|
|
464
464
|
text-decoration-thickness: var(--font-decoration-thickness-link-4tl2vi, 1px);
|
|
465
465
|
text-decoration-style: var(--font-decoration-style-link-7y21z4, solid);
|
|
466
466
|
color: var(--awsui-style-color-default-6b9ypa, var(--color-text-link-secondary-default-6w6hsr, #0073bb));
|
|
467
|
-
font-weight: inherit;
|
|
467
|
+
font-weight: var(--font-weight-link-secondary-clvuxr, inherit);
|
|
468
468
|
letter-spacing: normal;
|
|
469
469
|
text-decoration-line: none;
|
|
470
470
|
text-decoration-color: transparent;
|
|
@@ -474,37 +474,37 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
474
474
|
transition-duration: var(--motion-duration-refresh-only-medium-h3wrr6, 0ms);
|
|
475
475
|
}
|
|
476
476
|
@media (prefers-reduced-motion: reduce) {
|
|
477
|
-
.
|
|
477
|
+
.awsui_footer_1d237_w9ngm_448 a:not(#\9) {
|
|
478
478
|
animation: none;
|
|
479
479
|
transition: none;
|
|
480
480
|
}
|
|
481
481
|
}
|
|
482
|
-
.awsui-motion-disabled .
|
|
482
|
+
.awsui-motion-disabled .awsui_footer_1d237_w9ngm_448 a:not(#\9), .awsui-mode-entering .awsui_footer_1d237_w9ngm_448 a:not(#\9) {
|
|
483
483
|
animation: none;
|
|
484
484
|
transition: none;
|
|
485
485
|
}
|
|
486
|
-
.
|
|
486
|
+
.awsui_footer_1d237_w9ngm_448 a:not(#\9):hover {
|
|
487
487
|
cursor: pointer;
|
|
488
488
|
color: var(--awsui-style-color-hover-6b9ypa, var(--color-text-link-secondary-hover-c3snug, #0a4a74));
|
|
489
489
|
}
|
|
490
|
-
.
|
|
490
|
+
.awsui_footer_1d237_w9ngm_448 a:not(#\9):focus {
|
|
491
491
|
outline: none;
|
|
492
492
|
}
|
|
493
|
-
.
|
|
493
|
+
.awsui_footer_1d237_w9ngm_448 a:not(#\9):active {
|
|
494
494
|
color: var(--awsui-style-color-active-6b9ypa, var(--color-text-link-secondary-hover-c3snug, #0a4a74));
|
|
495
495
|
}
|
|
496
|
-
.
|
|
496
|
+
.awsui_footer_1d237_w9ngm_448 a:not(#\9):active, .awsui_footer_1d237_w9ngm_448 a:not(#\9):focus, .awsui_footer_1d237_w9ngm_448 a:not(#\9):hover {
|
|
497
497
|
text-decoration-line: underline;
|
|
498
|
-
text-decoration-color: currentColor;
|
|
498
|
+
text-decoration-color: var(--color-text-link-decoration-hover-jnu2g9, currentColor);
|
|
499
499
|
}
|
|
500
500
|
|
|
501
|
-
.
|
|
502
|
-
.
|
|
501
|
+
.awsui_content_1d237_w9ngm_396:not(#\9),
|
|
502
|
+
.awsui_footer_1d237_w9ngm_448:not(#\9) {
|
|
503
503
|
/* stylelint-disable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
504
504
|
/* stylelint-enable @cloudscape-design/no-implicit-descendant, selector-max-type */
|
|
505
505
|
}
|
|
506
|
-
.
|
|
507
|
-
.
|
|
506
|
+
.awsui_content_1d237_w9ngm_396 a:not(#\9):focus,
|
|
507
|
+
.awsui_footer_1d237_w9ngm_448 a:not(#\9):focus {
|
|
508
508
|
outline: thin dotted;
|
|
509
509
|
outline: var(--border-link-focus-ring-outline-c5423y, 5px auto Highlight);
|
|
510
510
|
outline-offset: 2px;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"help-panel": "awsui_help-
|
|
6
|
-
"loading": "
|
|
7
|
-
"header": "
|
|
8
|
-
"with-toolbar": "awsui_with-
|
|
9
|
-
"content": "
|
|
10
|
-
"footer": "
|
|
5
|
+
"help-panel": "awsui_help-panel_1d237_w9ngm_181",
|
|
6
|
+
"loading": "awsui_loading_1d237_w9ngm_354",
|
|
7
|
+
"header": "awsui_header_1d237_w9ngm_359",
|
|
8
|
+
"with-toolbar": "awsui_with-toolbar_1d237_w9ngm_377",
|
|
9
|
+
"content": "awsui_content_1d237_w9ngm_396",
|
|
10
|
+
"footer": "awsui_footer_1d237_w9ngm_448"
|
|
11
11
|
};
|
|
12
12
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/icon/generated/icons.tsx"],"names":[],"mappings":"AACE,QAAA,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/icon/generated/icons.tsx"],"names":[],"mappings":"AACE,QAAA,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+IV,CAAC;AACF,eAAe,KAAK,CAAC"}
|
|
@@ -264,6 +264,8 @@ const icons = {
|
|
|
264
264
|
"side-bar": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },
|
|
265
265
|
React.createElement("path", { d: "M6 3v10" }),
|
|
266
266
|
React.createElement("rect", { x: "1", y: "3", width: "14", height: "10", rx: "1" })),
|
|
267
|
+
"sign-out": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },
|
|
268
|
+
React.createElement("path", { d: "M7 2H2v12h5m6.98-5.982L5.5 8.01m4.241 4.244 4.243-4.242-4.243-4.243", className: "stroke-linejoin-round" })),
|
|
267
269
|
"slash-divider": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },
|
|
268
270
|
React.createElement("path", { d: "M10 2 6 14", className: "stroke-linejoin-round" })),
|
|
269
271
|
"slash": React.createElement("svg", { viewBox: "0 0 16 16", xmlns: "http://www.w3.org/2000/svg", focusable: "false", "aria-hidden": "true" },
|