@cloudscape-design/components-themeable 3.0.1223 → 3.0.1225
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/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/internal/styles/typography/mixins.scss +1 -0
- package/lib/internal/scss/prompt-input/styles.scss +1 -0
- package/lib/internal/template/app-layout/interfaces.d.ts +1 -1
- package/lib/internal/template/app-layout/interfaces.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js +1 -1
- package/lib/internal/template/app-layout/visual-refresh-toolbar/toolbar/index.js.map +1 -1
- package/lib/internal/template/box/styles.css.js +192 -192
- package/lib/internal/template/box/styles.scoped.css +239 -237
- package/lib/internal/template/box/styles.selectors.js +192 -192
- package/lib/internal/template/button/internal.js +1 -1
- package/lib/internal/template/button/internal.js.map +1 -1
- package/lib/internal/template/file-input/internal.d.ts.map +1 -1
- package/lib/internal/template/file-input/internal.js +6 -1
- package/lib/internal/template/file-input/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 +68 -67
- package/lib/internal/template/help-panel/styles.selectors.js +6 -6
- package/lib/internal/template/internal/base-component/styles.scoped.css +2 -1
- 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 +1 -0
- package/lib/internal/template/internal/generated/styles/tokens.js +1 -0
- package/lib/internal/template/internal/generated/theming/index.cjs +13 -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 +13 -0
- package/lib/internal/template/link/interfaces.d.ts +6 -6
- package/lib/internal/template/link/interfaces.js.map +1 -1
- package/lib/internal/template/link/styles.css.js +20 -20
- package/lib/internal/template/link/styles.scoped.css +72 -71
- package/lib/internal/template/link/styles.selectors.js +20 -20
- package/lib/internal/template/popover/styles.css.js +57 -57
- package/lib/internal/template/popover/styles.scoped.css +91 -89
- package/lib/internal/template/popover/styles.selectors.js +57 -57
- package/lib/internal/template/prompt-input/styles.css.js +17 -17
- package/lib/internal/template/prompt-input/styles.scoped.css +40 -39
- package/lib/internal/template/prompt-input/styles.selectors.js +17 -17
- package/lib/internal/template/property-filter/controller.d.ts.map +1 -1
- package/lib/internal/template/property-filter/controller.js +2 -2
- package/lib/internal/template/property-filter/controller.js.map +1 -1
- package/lib/internal/template/property-filter/filter-options.js +2 -1
- package/lib/internal/template/property-filter/filter-options.js.map +1 -1
- package/lib/internal/template/property-filter/internal.d.ts.map +1 -1
- package/lib/internal/template/property-filter/internal.js +5 -1
- package/lib/internal/template/property-filter/internal.js.map +1 -1
- package/lib/internal/template/property-filter/token.d.ts.map +1 -1
- package/lib/internal/template/property-filter/token.js +8 -4
- package/lib/internal/template/property-filter/token.js.map +1 -1
- package/lib/internal/template/property-filter/utils.d.ts +3 -1
- package/lib/internal/template/property-filter/utils.d.ts.map +1 -1
- package/lib/internal/template/property-filter/utils.js +14 -2
- package/lib/internal/template/property-filter/utils.js.map +1 -1
- package/lib/internal/template/text-content/styles.css.js +1 -1
- package/lib/internal/template/text-content/styles.scoped.css +61 -60
- package/lib/internal/template/text-content/styles.selectors.js +1 -1
- package/package.json +1 -1
|
@@ -250,6 +250,7 @@ $invalid-border-offset: constants.$invalid-control-left-padding;
|
|
|
250
250
|
flex-shrink: 1;
|
|
251
251
|
box-sizing: border-box;
|
|
252
252
|
@include styles.text-flex-wrapping;
|
|
253
|
+
padding-inline-end: awsui.$space-scaled-xxs;
|
|
253
254
|
&.with-paddings {
|
|
254
255
|
padding-inline: styles.$control-padding-horizontal;
|
|
255
256
|
padding-block-start: awsui.$space-scaled-s;
|
|
@@ -38,7 +38,7 @@ export interface BaseLayoutProps extends BaseComponentProps {
|
|
|
38
38
|
* #### DrawerAriaLabels
|
|
39
39
|
* - `drawerName` (string) - Label for the drawer itself, and for the drawer trigger button tooltip text.
|
|
40
40
|
* - `closeButton` (string) - (Optional) Label for the close button.
|
|
41
|
-
* - `triggerButton` (string) - (Optional) Label for the trigger button.
|
|
41
|
+
* - `triggerButton` (string) - (Optional) Label for the trigger button. When `badge` is true, include the badge information in the label (for example, "Notifications, has unread messages").
|
|
42
42
|
* - `resizeHandle` (string) - (Optional) Label for the resize handle.
|
|
43
43
|
*/
|
|
44
44
|
drawers?: Array<AppLayoutProps.Drawer>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/app-layout/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { IconProps } from '../icon/interfaces';\nimport { FlowType } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { SomeRequired } from '../internal/types';\n\nexport interface BaseLayoutProps extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * * `flowType` - Identifies the type of flow represented by the component.\n * **Note:** This API is currently experimental.\n * @analytics\n */\n analyticsMetadata?: AppLayoutProps.AnalyticsMetadata;\n\n /**\n * Determines the default behavior of the component based on some predefined page layouts.\n * Individual properties will always take precedence over the default coming from the content type.\n */\n contentType?: AppLayoutProps.ContentType;\n\n /**\n * Drawers property. If you set both `drawers` and `tools`, `drawers` will take precedence.\n\n * Each Drawer is an item in the drawers wrapper with the following properties:\n * * id (string) - the id of the drawer.\n * * content (React.ReactNode) - the content in the drawer.\n * * trigger (DrawerTrigger) - the button that opens and closes the active drawer.\n * * ariaLabels (DrawerAriaLabels) - the labels for the interactive elements of the drawer.\n * * badge (boolean) - Adds a badge to the corner of the icon to indicate a state change. For example: Unread notifications.\n * * resizable (boolean) - if the drawer is resizable or not.\n * * defaultSize (number) - starting size of the drawer. if not set, defaults to 290.\n * * onResize (({ size: number }) => void) - Fired when the active drawer is resized.\n *\n * #### DrawerTrigger\n * - `iconName` (IconProps.Name) - (Optional) Specifies the icon to be displayed.\n * - `iconSvg` (React.ReactNode) - (Optional) Specifies the SVG of a custom icon. For more information, see [SVG icon guidelines](/components/icon/?tabId=api#slots)\n *\n * #### DrawerAriaLabels\n * - `drawerName` (string) - Label for the drawer itself, and for the drawer trigger button tooltip text.\n * - `closeButton` (string) - (Optional) Label for the close button.\n * - `triggerButton` (string) - (Optional) Label for the trigger button.\n * - `resizeHandle` (string) - (Optional) Label for the resize handle.\n */\n drawers?: Array<AppLayoutProps.Drawer>;\n\n /**\n * The active drawer id. If you want to clear the active drawer, use `null`.\n */\n activeDrawerId?: string | null;\n\n /**\n * Fired when the active drawer is toggled.\n */\n onDrawerChange?: NonCancelableEventHandler<AppLayoutProps.DrawerChangeDetail>;\n\n /**\n * If `true`, disables outer paddings for the content slot.\n */\n disableContentPaddings?: boolean;\n\n /**\n * State of the navigation drawer.\n */\n navigationOpen?: boolean;\n\n /**\n * Navigation drawer width in pixels.\n */\n navigationWidth?: number;\n\n /**\n * If `true`, the navigation drawer is not displayed at all.\n */\n navigationHide?: boolean;\n\n /**\n * State of the tools drawer.\n */\n toolsOpen?: boolean;\n\n /**\n * If `true`, the tools drawer is not displayed at all.\n */\n toolsHide?: boolean;\n\n /**\n * Tools drawer width in pixels.\n */\n toolsWidth?: number;\n\n /**\n * Maximum main content panel width in pixels.\n *\n * If set to `Number.MAX_VALUE`, the main content panel will occupy the full available width.\n */\n maxContentWidth?: number;\n\n /**\n * Minimum main content panel width in pixels.\n */\n minContentWidth?: number;\n\n /**\n * If true, the notification slot is rendered above the scrollable\n * content area so it is always visible.\n */\n stickyNotifications?: boolean;\n\n /**\n * CSS selector for the application header.\n */\n headerSelector?: string;\n\n /**\n * CSS selector for the application footer.\n */\n footerSelector?: string;\n\n /**\n * Aria labels for the drawer operating buttons. Use this property to ensure accessibility.\n *\n * * `navigation` (string) - Label for the landmark that wraps the navigation drawer.\n * * `navigationClose` (string) - Label for the button that closes the navigation drawer.\n * * `navigationToggle` (string) - Label for the button that opens the navigation drawer.\n * * `notification` (string) - Label for the region that contains notification messages.\n * * `tools` (string) - Label for the landmark that wraps the tools drawer.\n * * `toolsClose` (string) - Label for the button that closes the tools drawer.\n * * `toolsToggle` (string) - Label for the button that opens the tools drawer.\n * * `drawers` (string) - Label for the landmark that wraps the active drawer.\n * * `drawersOverflow` (string) - Label for the ellipsis button with any overflow drawers.\n * * `drawersOverflowWithBadge` (string) - Label for the ellipsis button with any overflow drawers, with a badge.\n *\n * Example:\n * ```\n * {\n * navigation: \"Navigation drawer\",\n * navigationClose: \"Close navigation drawer\",\n * navigationToggle: \"Open navigation drawer\",\n * notifications: \"Notifications\",\n * tools: \"Help panel\",\n * toolsClose: \"Close help panel\",\n * toolsToggle: \"Open help panel\",\n * drawers: \"Drawers\",\n * drawersOverflow: \"Overflow drawers\",\n * drawersOverflowWithBadge: \"Overflow drawers (Unread notifications)\"\n * }\n * ```\n * @i18n\n */\n ariaLabels?: AppLayoutProps.Labels;\n\n /**\n * Navigation drawer.\n */\n navigation?: React.ReactNode;\n\n /**\n * Top area of the page content.\n * @deprecated Replaced by the `header` slot of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n contentHeader?: React.ReactNode;\n\n /**\n * Disables overlap between `contentHeader` and `content` slots.\n * @deprecated Replaced by the `disableOverlap` property of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n disableContentHeaderOverlap?: boolean;\n\n /**\n * Determines the visual treatment for the breadcrumbs and notifications slots. Specifically:\n * * `default` - Does not apply any visual treatment.\n * * `high-contrast` - Applies high-contrast to both slots. Use in conjunction with `headerVariant=\"high-contrast\"` in ContentLayout.\n * @visualrefresh\n */\n headerVariant?: 'default' | 'high-contrast';\n\n /**\n * Main content.\n */\n content?: React.ReactNode;\n\n /**\n * Tools drawer.\n */\n tools?: React.ReactNode;\n\n /**\n * Displayed on top of the main content in the scrollable area.\n *\n * Conceived to contain notifications (flash messages).\n */\n notifications?: React.ReactNode;\n\n /**\n * Use this slot to add the [breadcrumb group component](/components/breadcrumb-group/) to the app layout.\n */\n breadcrumbs?: React.ReactNode;\n\n /**\n * Fired when the navigation drawer is toggled.\n */\n onNavigationChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Fired when the tools drawer is toggled.\n */\n onToolsChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Use this slot to add the [split panel component](/components/split-panel/) to the app layout.\n *\n * Note: If provided, this property should be set to `null` or `undefined` if a split panel should not be rendered.\n */\n splitPanel?: React.ReactNode;\n\n /**\n * The size of the split panel in pixels.\n */\n splitPanelSize?: number;\n\n /**\n * State of the split panel.\n */\n splitPanelOpen?: boolean;\n /**\n * Controls the split panel preferences.\n *\n * By default, the preference is `{ position: 'bottom' }`\n */\n splitPanelPreferences?: AppLayoutProps.SplitPanelPreferences;\n /**\n * Fired when the split panel is resized.\n */\n onSplitPanelResize?: NonCancelableEventHandler<AppLayoutProps.SplitPanelResizeDetail>;\n /**\n * Fired when the split panel is toggled.\n */\n onSplitPanelToggle?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n /**\n * Fired when the split panel preferences change.\n */\n onSplitPanelPreferencesChange?: NonCancelableEventHandler<AppLayoutProps.SplitPanelPreferences>;\n}\n\nexport interface AppLayoutProps extends BaseLayoutProps {\n /**\n * Activates a backwards-compatibility mode for applications with non-fixed headers and footers.\n * @deprecated This layout is being phased out and may miss some features.\n */\n disableBodyScroll?: boolean;\n}\n\nexport namespace AppLayoutProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: FlowType;\n }\n\n export type ContentType = 'default' | 'form' | 'table' | 'cards' | 'wizard' | 'dashboard';\n\n export interface Ref {\n /**\n * Manually closes the navigation drawer if it is necessary for the current\n * viewport size.\n */\n closeNavigationIfNecessary(): void;\n\n /**\n * Opens the tools panel if it is not already open. Note that it is preferable\n * to control the state by listening to `toolsChange` and providing `toolsOpen`.\n */\n openTools(): void;\n\n /**\n * Focuses the tools panel if it is open. Use this to focus the tools panel\n * after changing the content, for example when clicking on an 'info' link while\n * the panel is already open.\n */\n focusToolsClose(): void;\n\n /**\n * Focuses the active drawer. Use this to focus the active drawer after opening it programmatically.\n */\n focusActiveDrawer(): void;\n\n /**\n * Focuses the split panel if it is open.\n */\n focusSplitPanel(): void;\n }\n\n export interface Drawer {\n id: string;\n content: React.ReactNode;\n trigger?: {\n iconName?: IconProps.Name;\n iconSvg?: React.ReactNode;\n customIcon?: React.ReactNode;\n };\n ariaLabels: DrawerAriaLabels;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number }>;\n preserveInactiveContent?: boolean;\n }\n\n export interface DrawerAriaLabels {\n drawerName: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n }\n\n export interface Labels {\n notifications?: string;\n\n navigation?: string;\n navigationToggle?: string;\n navigationClose?: string;\n\n tools?: string;\n toolsToggle?: string;\n toolsClose?: string;\n\n drawers?: string;\n drawersOverflow?: string;\n drawersOverflowWithBadge?: string;\n }\n\n export interface ChangeDetail {\n open: boolean;\n }\n\n export interface SplitPanelResizeDetail {\n size: number;\n }\n\n export interface SplitPanelPreferences {\n position: 'side' | 'bottom';\n }\n // Duplicated the positions because using this definition in SplitPanelPreferences would display\n // 'AppLayoutProps.SplitPanelPosition' on the API docs instead of the string values.\n export type SplitPanelPosition = 'side' | 'bottom';\n\n export interface DrawerChangeDetail {\n activeDrawerId: string | null;\n }\n}\n\nexport type AppLayoutPropsWithDefaults = SomeRequired<\n Omit<AppLayoutProps, 'headerSelector' | 'footerSelector'>,\n 'contentType' | 'navigationWidth' | 'toolsWidth' | 'minContentWidth' | 'navigationOpen' | 'onNavigationChange'\n> & {\n placement: {\n insetBlockStart: number;\n insetBlockEnd: number;\n insetInlineStart: number;\n insetInlineEnd: number;\n inlineSize: number;\n };\n};\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/app-layout/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { IconProps } from '../icon/interfaces';\nimport { FlowType } from '../internal/analytics/interfaces';\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\nimport { SomeRequired } from '../internal/types';\n\nexport interface BaseLayoutProps extends BaseComponentProps {\n /**\n * Specifies additional analytics-related metadata.\n * * `instanceIdentifier` - A unique string that identifies this component instance in your application.\n * * `flowType` - Identifies the type of flow represented by the component.\n * **Note:** This API is currently experimental.\n * @analytics\n */\n analyticsMetadata?: AppLayoutProps.AnalyticsMetadata;\n\n /**\n * Determines the default behavior of the component based on some predefined page layouts.\n * Individual properties will always take precedence over the default coming from the content type.\n */\n contentType?: AppLayoutProps.ContentType;\n\n /**\n * Drawers property. If you set both `drawers` and `tools`, `drawers` will take precedence.\n\n * Each Drawer is an item in the drawers wrapper with the following properties:\n * * id (string) - the id of the drawer.\n * * content (React.ReactNode) - the content in the drawer.\n * * trigger (DrawerTrigger) - the button that opens and closes the active drawer.\n * * ariaLabels (DrawerAriaLabels) - the labels for the interactive elements of the drawer.\n * * badge (boolean) - Adds a badge to the corner of the icon to indicate a state change. For example: Unread notifications.\n * * resizable (boolean) - if the drawer is resizable or not.\n * * defaultSize (number) - starting size of the drawer. if not set, defaults to 290.\n * * onResize (({ size: number }) => void) - Fired when the active drawer is resized.\n *\n * #### DrawerTrigger\n * - `iconName` (IconProps.Name) - (Optional) Specifies the icon to be displayed.\n * - `iconSvg` (React.ReactNode) - (Optional) Specifies the SVG of a custom icon. For more information, see [SVG icon guidelines](/components/icon/?tabId=api#slots)\n *\n * #### DrawerAriaLabels\n * - `drawerName` (string) - Label for the drawer itself, and for the drawer trigger button tooltip text.\n * - `closeButton` (string) - (Optional) Label for the close button.\n * - `triggerButton` (string) - (Optional) Label for the trigger button. When `badge` is true, include the badge information in the label (for example, \"Notifications, has unread messages\").\n * - `resizeHandle` (string) - (Optional) Label for the resize handle.\n */\n drawers?: Array<AppLayoutProps.Drawer>;\n\n /**\n * The active drawer id. If you want to clear the active drawer, use `null`.\n */\n activeDrawerId?: string | null;\n\n /**\n * Fired when the active drawer is toggled.\n */\n onDrawerChange?: NonCancelableEventHandler<AppLayoutProps.DrawerChangeDetail>;\n\n /**\n * If `true`, disables outer paddings for the content slot.\n */\n disableContentPaddings?: boolean;\n\n /**\n * State of the navigation drawer.\n */\n navigationOpen?: boolean;\n\n /**\n * Navigation drawer width in pixels.\n */\n navigationWidth?: number;\n\n /**\n * If `true`, the navigation drawer is not displayed at all.\n */\n navigationHide?: boolean;\n\n /**\n * State of the tools drawer.\n */\n toolsOpen?: boolean;\n\n /**\n * If `true`, the tools drawer is not displayed at all.\n */\n toolsHide?: boolean;\n\n /**\n * Tools drawer width in pixels.\n */\n toolsWidth?: number;\n\n /**\n * Maximum main content panel width in pixels.\n *\n * If set to `Number.MAX_VALUE`, the main content panel will occupy the full available width.\n */\n maxContentWidth?: number;\n\n /**\n * Minimum main content panel width in pixels.\n */\n minContentWidth?: number;\n\n /**\n * If true, the notification slot is rendered above the scrollable\n * content area so it is always visible.\n */\n stickyNotifications?: boolean;\n\n /**\n * CSS selector for the application header.\n */\n headerSelector?: string;\n\n /**\n * CSS selector for the application footer.\n */\n footerSelector?: string;\n\n /**\n * Aria labels for the drawer operating buttons. Use this property to ensure accessibility.\n *\n * * `navigation` (string) - Label for the landmark that wraps the navigation drawer.\n * * `navigationClose` (string) - Label for the button that closes the navigation drawer.\n * * `navigationToggle` (string) - Label for the button that opens the navigation drawer.\n * * `notification` (string) - Label for the region that contains notification messages.\n * * `tools` (string) - Label for the landmark that wraps the tools drawer.\n * * `toolsClose` (string) - Label for the button that closes the tools drawer.\n * * `toolsToggle` (string) - Label for the button that opens the tools drawer.\n * * `drawers` (string) - Label for the landmark that wraps the active drawer.\n * * `drawersOverflow` (string) - Label for the ellipsis button with any overflow drawers.\n * * `drawersOverflowWithBadge` (string) - Label for the ellipsis button with any overflow drawers, with a badge.\n *\n * Example:\n * ```\n * {\n * navigation: \"Navigation drawer\",\n * navigationClose: \"Close navigation drawer\",\n * navigationToggle: \"Open navigation drawer\",\n * notifications: \"Notifications\",\n * tools: \"Help panel\",\n * toolsClose: \"Close help panel\",\n * toolsToggle: \"Open help panel\",\n * drawers: \"Drawers\",\n * drawersOverflow: \"Overflow drawers\",\n * drawersOverflowWithBadge: \"Overflow drawers (Unread notifications)\"\n * }\n * ```\n * @i18n\n */\n ariaLabels?: AppLayoutProps.Labels;\n\n /**\n * Navigation drawer.\n */\n navigation?: React.ReactNode;\n\n /**\n * Top area of the page content.\n * @deprecated Replaced by the `header` slot of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n contentHeader?: React.ReactNode;\n\n /**\n * Disables overlap between `contentHeader` and `content` slots.\n * @deprecated Replaced by the `disableOverlap` property of the [content layout](/components/content-layout/) component.\n * @visualrefresh\n */\n disableContentHeaderOverlap?: boolean;\n\n /**\n * Determines the visual treatment for the breadcrumbs and notifications slots. Specifically:\n * * `default` - Does not apply any visual treatment.\n * * `high-contrast` - Applies high-contrast to both slots. Use in conjunction with `headerVariant=\"high-contrast\"` in ContentLayout.\n * @visualrefresh\n */\n headerVariant?: 'default' | 'high-contrast';\n\n /**\n * Main content.\n */\n content?: React.ReactNode;\n\n /**\n * Tools drawer.\n */\n tools?: React.ReactNode;\n\n /**\n * Displayed on top of the main content in the scrollable area.\n *\n * Conceived to contain notifications (flash messages).\n */\n notifications?: React.ReactNode;\n\n /**\n * Use this slot to add the [breadcrumb group component](/components/breadcrumb-group/) to the app layout.\n */\n breadcrumbs?: React.ReactNode;\n\n /**\n * Fired when the navigation drawer is toggled.\n */\n onNavigationChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Fired when the tools drawer is toggled.\n */\n onToolsChange?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n\n /**\n * Use this slot to add the [split panel component](/components/split-panel/) to the app layout.\n *\n * Note: If provided, this property should be set to `null` or `undefined` if a split panel should not be rendered.\n */\n splitPanel?: React.ReactNode;\n\n /**\n * The size of the split panel in pixels.\n */\n splitPanelSize?: number;\n\n /**\n * State of the split panel.\n */\n splitPanelOpen?: boolean;\n /**\n * Controls the split panel preferences.\n *\n * By default, the preference is `{ position: 'bottom' }`\n */\n splitPanelPreferences?: AppLayoutProps.SplitPanelPreferences;\n /**\n * Fired when the split panel is resized.\n */\n onSplitPanelResize?: NonCancelableEventHandler<AppLayoutProps.SplitPanelResizeDetail>;\n /**\n * Fired when the split panel is toggled.\n */\n onSplitPanelToggle?: NonCancelableEventHandler<AppLayoutProps.ChangeDetail>;\n /**\n * Fired when the split panel preferences change.\n */\n onSplitPanelPreferencesChange?: NonCancelableEventHandler<AppLayoutProps.SplitPanelPreferences>;\n}\n\nexport interface AppLayoutProps extends BaseLayoutProps {\n /**\n * Activates a backwards-compatibility mode for applications with non-fixed headers and footers.\n * @deprecated This layout is being phased out and may miss some features.\n */\n disableBodyScroll?: boolean;\n}\n\nexport namespace AppLayoutProps {\n export interface AnalyticsMetadata {\n instanceIdentifier?: string;\n flowType?: FlowType;\n }\n\n export type ContentType = 'default' | 'form' | 'table' | 'cards' | 'wizard' | 'dashboard';\n\n export interface Ref {\n /**\n * Manually closes the navigation drawer if it is necessary for the current\n * viewport size.\n */\n closeNavigationIfNecessary(): void;\n\n /**\n * Opens the tools panel if it is not already open. Note that it is preferable\n * to control the state by listening to `toolsChange` and providing `toolsOpen`.\n */\n openTools(): void;\n\n /**\n * Focuses the tools panel if it is open. Use this to focus the tools panel\n * after changing the content, for example when clicking on an 'info' link while\n * the panel is already open.\n */\n focusToolsClose(): void;\n\n /**\n * Focuses the active drawer. Use this to focus the active drawer after opening it programmatically.\n */\n focusActiveDrawer(): void;\n\n /**\n * Focuses the split panel if it is open.\n */\n focusSplitPanel(): void;\n }\n\n export interface Drawer {\n id: string;\n content: React.ReactNode;\n trigger?: {\n iconName?: IconProps.Name;\n iconSvg?: React.ReactNode;\n customIcon?: React.ReactNode;\n };\n ariaLabels: DrawerAriaLabels;\n badge?: boolean;\n resizable?: boolean;\n defaultSize?: number;\n onResize?: NonCancelableEventHandler<{ size: number }>;\n preserveInactiveContent?: boolean;\n }\n\n export interface DrawerAriaLabels {\n drawerName: string;\n closeButton?: string;\n triggerButton?: string;\n resizeHandle?: string;\n resizeHandleTooltipText?: string;\n }\n\n export interface Labels {\n notifications?: string;\n\n navigation?: string;\n navigationToggle?: string;\n navigationClose?: string;\n\n tools?: string;\n toolsToggle?: string;\n toolsClose?: string;\n\n drawers?: string;\n drawersOverflow?: string;\n drawersOverflowWithBadge?: string;\n }\n\n export interface ChangeDetail {\n open: boolean;\n }\n\n export interface SplitPanelResizeDetail {\n size: number;\n }\n\n export interface SplitPanelPreferences {\n position: 'side' | 'bottom';\n }\n // Duplicated the positions because using this definition in SplitPanelPreferences would display\n // 'AppLayoutProps.SplitPanelPosition' on the API docs instead of the string values.\n export type SplitPanelPosition = 'side' | 'bottom';\n\n export interface DrawerChangeDetail {\n activeDrawerId: string | null;\n }\n}\n\nexport type AppLayoutPropsWithDefaults = SomeRequired<\n Omit<AppLayoutProps, 'headerSelector' | 'footerSelector'>,\n 'contentType' | 'navigationWidth' | 'toolsWidth' | 'minContentWidth' | 'navigationOpen' | 'onNavigationChange'\n> & {\n placement: {\n insetBlockStart: number;\n insetBlockEnd: number;\n insetInlineStart: number;\n insetInlineEnd: number;\n inlineSize: number;\n };\n};\n"]}
|
|
@@ -72,7 +72,7 @@ toolbarProps = {}, featureNotificationsProps, }) {
|
|
|
72
72
|
onActiveAiDrawerChange === null || onActiveAiDrawerChange === void 0 ? void 0 : onActiveAiDrawerChange((_a = aiDrawer === null || aiDrawer === void 0 ? void 0 : aiDrawer.id) !== null && _a !== void 0 ? _a : null, { initiatedByUserAction: true });
|
|
73
73
|
}, ref: aiDrawerFocusRef, selected: !drawerExpandedMode && !!activeAiDrawerId, disabled: anyPanelOpenInMobile, variant: ((_c = aiDrawer === null || aiDrawer === void 0 ? void 0 : aiDrawer.trigger) === null || _c === void 0 ? void 0 : _c.customIcon) ? 'custom' : 'circle', testId: `awsui-app-layout-trigger-${aiDrawer === null || aiDrawer === void 0 ? void 0 : aiDrawer.id}`, isForPreviousActiveDrawer: true })));
|
|
74
74
|
}),
|
|
75
|
-
React.createElement(ToolbarContainer, { hasAiDrawer: !!
|
|
75
|
+
React.createElement(ToolbarContainer, { hasAiDrawer: !!activeAiDrawerId },
|
|
76
76
|
hasNavigation && (React.createElement("nav", { ...navLandmarkAttributes, className: clsx(styles['universal-toolbar-nav']) },
|
|
77
77
|
React.createElement(TriggerButton, { ariaLabel: (_a = ariaLabels === null || ariaLabels === void 0 ? void 0 : ariaLabels.navigationToggle) !== null && _a !== void 0 ? _a : undefined, ariaExpanded: !drawerExpandedMode && navigationOpen, iconName: "menu", className: testutilStyles['navigation-toggle'], onClick: () => {
|
|
78
78
|
if (setExpandedDrawerId) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/toolbar/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2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AAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,mCAAI,EAAE,EACtD,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,EAC1C,qBAAqB,EAAE,CAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,SAAS,EAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,SAAS,EAC3F,kBAAkB,EAAE,kBAAkB,EACtC,kBAAkB,EAAE,kBAAkB,EACtC,QAAQ,EAAE,oBAAoB,EAC9B,yBAAyB,EAAE,yBAAyB,EACpD,qBAAqB,EAAE,qBAAqB,EAC5C,aAAa,EAAE,MAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,mCAAI,EAAE,EAClE,sBAAsB,EAAE,sBAAsB,aAAtB,sBAAsB,cAAtB,sBAAsB,GAAI,EAAE,EACpD,2BAA2B,EAAE,2BAA2B,EACxD,gBAAgB,EAAE,gBAAgB,EAClC,mBAAmB,EAAE,mBAAoB,EACzC,aAAa,EAAE,aAAa,EAC5B,gCAAgC,EAAE,gCAAgC,EAClE,0BAA0B,EAAE,0BAA0B,EACtD,yBAAyB,EAAE,yBAAyB,GACpD,CACE,CACP,CACgB,CACP,CACf,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,8BAA8B,EAAE,eAAe,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport { Transition } from 'react-transition-group';\nimport clsx from 'clsx';\n\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\n\nimport { createWidgetizedComponent } from '../../../internal/widgets';\nimport { AppLayoutProps } from '../../interfaces';\nimport { OnChangeParams } from '../../utils/use-drawers';\nimport { Focusable, FocusControlMultipleStates } from '../../utils/use-focus-control';\nimport { AppLayoutInternals } from '../interfaces';\nimport { ToolbarSkeleton } from '../skeleton/skeleton-parts';\nimport { ToolbarSlot } from '../skeleton/slots';\nimport { ToolbarBreadcrumbsSection, ToolbarContainer } from '../skeleton/toolbar-container';\nimport { FeatureNotificationsProps } from '../state/use-feature-notifications';\nimport { DrawerTriggers, SplitPanelToggleProps } from './drawer-triggers';\nimport TriggerButton from './trigger-button';\n\nimport sharedStyles from '../../resize/styles.css.js';\nimport testutilStyles from '../../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\nexport { SplitPanelToggleProps };\n\nexport interface ToolbarProps {\n ariaLabels?: AppLayoutProps.Labels;\n // navigation\n hasNavigation?: boolean;\n navigationOpen?: boolean;\n onNavigationToggle?: (open: boolean) => void;\n navigationFocusRef?: React.Ref<Focusable>;\n\n // breadcrumbs\n hasBreadcrumbsPortal?: boolean;\n\n // split panel\n hasSplitPanel?: boolean;\n splitPanelToggleProps?: SplitPanelToggleProps;\n splitPanelFocusRef?: React.Ref<Focusable>;\n onSplitPanelToggle?: () => void;\n\n // drawers\n activeDrawerId?: string | null;\n drawers?: ReadonlyArray<AppLayoutProps.Drawer>;\n drawersFocusRef?: React.Ref<Focusable>;\n bottomDrawersFocusRef?: React.Ref<Focusable>;\n globalDrawersFocusControl?: FocusControlMultipleStates;\n onActiveDrawerChange?: (drawerId: string | null, params: OnChangeParams) => void;\n globalDrawers?: ReadonlyArray<AppLayoutProps.Drawer> | undefined;\n activeGlobalDrawersIds?: ReadonlyArray<string>;\n onActiveGlobalDrawersChange?: ((drawerId: string, params: OnChangeParams) => void) | undefined;\n bottomDrawers?: ReadonlyArray<AppLayoutProps.Drawer> | undefined;\n activeGlobalBottomDrawerId?: string | null;\n onActiveGlobalBottomDrawerChange?: (value: string | null, params: OnChangeParams) => void;\n\n expandedDrawerId?: string | null;\n setExpandedDrawerId?: (value: string | null) => void;\n\n aiDrawer?: AppLayoutProps.Drawer;\n onActiveAiDrawerChange?: (value: string | null) => void;\n activeAiDrawerId?: string | null;\n aiDrawerFocusRef?: React.Ref<Focusable>;\n}\n\nexport interface AppLayoutToolbarImplementationProps {\n appLayoutInternals: AppLayoutInternals;\n toolbarProps: ToolbarProps;\n featureNotificationsProps?: FeatureNotificationsProps;\n}\n\nexport function AppLayoutToolbarImplementation({\n appLayoutInternals,\n // the value could be undefined if this component is loaded as a widget by a different app layout version\n // not testable in a single-version setup\n toolbarProps = {},\n featureNotificationsProps,\n}: AppLayoutToolbarImplementationProps) {\n const {\n breadcrumbs,\n discoveredBreadcrumbs,\n verticalOffsets,\n isMobile,\n setToolbarHeight,\n aiDrawer,\n activeAiDrawer,\n onActiveAiDrawerChange,\n } = appLayoutInternals;\n const {\n ariaLabels,\n activeDrawerId,\n drawers,\n drawersFocusRef,\n onActiveDrawerChange,\n globalDrawersFocusControl,\n globalDrawers,\n activeGlobalDrawersIds,\n onActiveGlobalDrawersChange,\n hasNavigation,\n navigationOpen,\n navigationFocusRef,\n onNavigationToggle,\n hasSplitPanel,\n splitPanelFocusRef,\n splitPanelToggleProps,\n onSplitPanelToggle,\n expandedDrawerId,\n setExpandedDrawerId,\n aiDrawerFocusRef,\n onActiveGlobalBottomDrawerChange,\n activeGlobalBottomDrawerId,\n bottomDrawersFocusRef,\n bottomDrawers,\n } = toolbarProps;\n const drawerExpandedMode = !!expandedDrawerId;\n const ref = useRef<HTMLElement>(null);\n const aiDrawerTransitionRef = useRef<HTMLDivElement>(null);\n const activeAiDrawerId = activeAiDrawer?.id;\n useResizeObserver(ref, entry => setToolbarHeight(entry.borderBoxHeight));\n useEffect(() => {\n return () => {\n setToolbarHeight(0);\n };\n // unmount effect only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const anyPanelOpenInMobile =\n !!isMobile &&\n (!!activeDrawerId ||\n !!activeGlobalDrawersIds?.length ||\n !!activeAiDrawerId ||\n !!activeGlobalBottomDrawerId ||\n (!!navigationOpen && !!hasNavigation));\n useEffect(() => {\n if (anyPanelOpenInMobile) {\n document.body.classList.add(styles['block-body-scroll']);\n } else {\n document.body.classList.remove(styles['block-body-scroll']);\n }\n return () => {\n document.body.classList.remove(styles['block-body-scroll']);\n };\n }, [anyPanelOpenInMobile]);\n\n const navLandmarkAttributes = navigationOpen\n ? { role: 'presentation' }\n : { role: 'navigation', 'aria-label': ariaLabels?.navigation };\n\n return (\n <ToolbarSlot\n ref={ref}\n className={clsx((aiDrawer?.trigger || !!activeAiDrawerId) && styles['with-ai-drawer'], {\n [testutilStyles['mobile-bar']]: isMobile,\n })}\n style={{\n insetBlockStart: verticalOffsets.toolbar,\n }}\n >\n <Transition\n in={!!(aiDrawer?.trigger && !activeAiDrawerId)}\n timeout={{ enter: 0, exit: 165 }}\n mountOnEnter={true}\n unmountOnExit={true}\n nodeRef={aiDrawerTransitionRef}\n >\n {state => (\n <div\n className={clsx(!!aiDrawer?.trigger?.customIcon && styles['universal-toolbar-ai-custom'], [\n sharedStyles['with-motion-horizontal'],\n ])}\n style={{\n opacity: ['entering', 'exiting'].includes(state) ? 0 : 1,\n }}\n >\n <TriggerButton\n ariaLabel={aiDrawer?.ariaLabels?.triggerButton}\n ariaExpanded={!!activeAiDrawerId}\n iconName={aiDrawer?.trigger!.iconName}\n iconSvg={aiDrawer?.trigger!.iconSvg}\n customSvg={aiDrawer?.trigger!.customIcon}\n className={testutilStyles['ai-drawer-toggle']}\n onClick={() => {\n if (setExpandedDrawerId) {\n setExpandedDrawerId(null);\n }\n onActiveAiDrawerChange?.(aiDrawer?.id ?? null, { initiatedByUserAction: true });\n }}\n ref={aiDrawerFocusRef}\n selected={!drawerExpandedMode && !!activeAiDrawerId}\n disabled={anyPanelOpenInMobile}\n variant={aiDrawer?.trigger?.customIcon ? 'custom' : 'circle'}\n testId={`awsui-app-layout-trigger-${aiDrawer?.id}`}\n isForPreviousActiveDrawer={true}\n />\n </div>\n )}\n </Transition>\n <ToolbarContainer hasAiDrawer={!!aiDrawer?.trigger}>\n {hasNavigation && (\n <nav {...navLandmarkAttributes} className={clsx(styles['universal-toolbar-nav'])}>\n <TriggerButton\n ariaLabel={ariaLabels?.navigationToggle ?? undefined}\n ariaExpanded={!drawerExpandedMode && navigationOpen}\n iconName=\"menu\"\n className={testutilStyles['navigation-toggle']}\n onClick={() => {\n if (setExpandedDrawerId) {\n setExpandedDrawerId(null);\n }\n if (navigationOpen && expandedDrawerId) {\n return;\n }\n onNavigationToggle?.(!navigationOpen);\n }}\n ref={navigationFocusRef}\n selected={!drawerExpandedMode && navigationOpen}\n disabled={anyPanelOpenInMobile}\n />\n </nav>\n )}\n {(breadcrumbs || discoveredBreadcrumbs) && (\n <ToolbarBreadcrumbsSection\n ownBreadcrumbs={appLayoutInternals.breadcrumbs}\n discoveredBreadcrumbs={appLayoutInternals.discoveredBreadcrumbs}\n includeTestUtils={true}\n />\n )}\n {(drawers?.length ||\n globalDrawers?.length ||\n bottomDrawers?.length ||\n (hasSplitPanel && splitPanelToggleProps?.displayed)) && (\n <div className={clsx(styles['universal-toolbar-drawers'])}>\n <DrawerTriggers\n ariaLabels={ariaLabels}\n activeDrawerId={activeDrawerId ?? null}\n drawers={drawers?.filter(item => !!item.trigger) ?? []}\n drawersFocusRef={drawersFocusRef}\n onActiveDrawerChange={onActiveDrawerChange}\n splitPanelToggleProps={splitPanelToggleProps?.displayed ? splitPanelToggleProps : undefined}\n splitPanelFocusRef={splitPanelFocusRef}\n onSplitPanelToggle={onSplitPanelToggle}\n disabled={anyPanelOpenInMobile}\n globalDrawersFocusControl={globalDrawersFocusControl}\n bottomDrawersFocusRef={bottomDrawersFocusRef}\n globalDrawers={globalDrawers?.filter(item => !!item.trigger) ?? []}\n activeGlobalDrawersIds={activeGlobalDrawersIds ?? []}\n onActiveGlobalDrawersChange={onActiveGlobalDrawersChange}\n expandedDrawerId={expandedDrawerId}\n setExpandedDrawerId={setExpandedDrawerId!}\n bottomDrawers={bottomDrawers}\n onActiveGlobalBottomDrawerChange={onActiveGlobalBottomDrawerChange}\n activeGlobalBottomDrawerId={activeGlobalBottomDrawerId}\n featureNotificationsProps={featureNotificationsProps}\n />\n </div>\n )}\n </ToolbarContainer>\n </ToolbarSlot>\n );\n}\n\nexport const AppLayoutToolbar = createWidgetizedComponent(AppLayoutToolbarImplementation, ToolbarSkeleton);\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/app-layout/visual-refresh-toolbar/toolbar/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,iBAAiB,EAAE,MAAM,+CAA+C,CAAC;AAElF,OAAO,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAKtE,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAE5F,OAAO,EAAE,cAAc,EAAyB,MAAM,mBAAmB,CAAC;AAC1E,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,YAAY,MAAM,4BAA4B,CAAC;AACtD,OAAO,cAAc,MAAM,kCAAkC,CAAC;AAC9D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAkDrC,MAAM,UAAU,8BAA8B,CAAC,EAC7C,kBAAkB;AAClB,yGAAyG;AACzG,yCAAyC;AACzC,YAAY,GAAG,EAAE,EACjB,yBAAyB,GACW;;IACpC,MAAM,EACJ,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,QAAQ,EACR,gBAAgB,EAChB,QAAQ,EACR,cAAc,EACd,sBAAsB,GACvB,GAAG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EAAE,mBAAoB,EACzC,aAAa,EAAE,aAAa,EAC5B,gCAAgC,EAAE,gCAAgC,EAClE,0BAA0B,EAAE,0BAA0B,EACtD,yBAAyB,EAAE,yBAAyB,GACpD,CACE,CACP,CACgB,CACP,CACf,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,gBAAgB,GAAG,yBAAyB,CAAC,8BAA8B,EAAE,eAAe,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useRef } from 'react';\nimport { Transition } from 'react-transition-group';\nimport clsx from 'clsx';\n\nimport { useResizeObserver } from '@cloudscape-design/component-toolkit/internal';\n\nimport { createWidgetizedComponent } from '../../../internal/widgets';\nimport { AppLayoutProps } from '../../interfaces';\nimport { OnChangeParams } from '../../utils/use-drawers';\nimport { Focusable, FocusControlMultipleStates } from '../../utils/use-focus-control';\nimport { AppLayoutInternals } from '../interfaces';\nimport { ToolbarSkeleton } from '../skeleton/skeleton-parts';\nimport { ToolbarSlot } from '../skeleton/slots';\nimport { ToolbarBreadcrumbsSection, ToolbarContainer } from '../skeleton/toolbar-container';\nimport { FeatureNotificationsProps } from '../state/use-feature-notifications';\nimport { DrawerTriggers, SplitPanelToggleProps } from './drawer-triggers';\nimport TriggerButton from './trigger-button';\n\nimport sharedStyles from '../../resize/styles.css.js';\nimport testutilStyles from '../../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\nexport { SplitPanelToggleProps };\n\nexport interface ToolbarProps {\n ariaLabels?: AppLayoutProps.Labels;\n // navigation\n hasNavigation?: boolean;\n navigationOpen?: boolean;\n onNavigationToggle?: (open: boolean) => void;\n navigationFocusRef?: React.Ref<Focusable>;\n\n // breadcrumbs\n hasBreadcrumbsPortal?: boolean;\n\n // split panel\n hasSplitPanel?: boolean;\n splitPanelToggleProps?: SplitPanelToggleProps;\n splitPanelFocusRef?: React.Ref<Focusable>;\n onSplitPanelToggle?: () => void;\n\n // drawers\n activeDrawerId?: string | null;\n drawers?: ReadonlyArray<AppLayoutProps.Drawer>;\n drawersFocusRef?: React.Ref<Focusable>;\n bottomDrawersFocusRef?: React.Ref<Focusable>;\n globalDrawersFocusControl?: FocusControlMultipleStates;\n onActiveDrawerChange?: (drawerId: string | null, params: OnChangeParams) => void;\n globalDrawers?: ReadonlyArray<AppLayoutProps.Drawer> | undefined;\n activeGlobalDrawersIds?: ReadonlyArray<string>;\n onActiveGlobalDrawersChange?: ((drawerId: string, params: OnChangeParams) => void) | undefined;\n bottomDrawers?: ReadonlyArray<AppLayoutProps.Drawer> | undefined;\n activeGlobalBottomDrawerId?: string | null;\n onActiveGlobalBottomDrawerChange?: (value: string | null, params: OnChangeParams) => void;\n\n expandedDrawerId?: string | null;\n setExpandedDrawerId?: (value: string | null) => void;\n\n aiDrawer?: AppLayoutProps.Drawer;\n onActiveAiDrawerChange?: (value: string | null) => void;\n activeAiDrawerId?: string | null;\n aiDrawerFocusRef?: React.Ref<Focusable>;\n}\n\nexport interface AppLayoutToolbarImplementationProps {\n appLayoutInternals: AppLayoutInternals;\n toolbarProps: ToolbarProps;\n featureNotificationsProps?: FeatureNotificationsProps;\n}\n\nexport function AppLayoutToolbarImplementation({\n appLayoutInternals,\n // the value could be undefined if this component is loaded as a widget by a different app layout version\n // not testable in a single-version setup\n toolbarProps = {},\n featureNotificationsProps,\n}: AppLayoutToolbarImplementationProps) {\n const {\n breadcrumbs,\n discoveredBreadcrumbs,\n verticalOffsets,\n isMobile,\n setToolbarHeight,\n aiDrawer,\n activeAiDrawer,\n onActiveAiDrawerChange,\n } = appLayoutInternals;\n const {\n ariaLabels,\n activeDrawerId,\n drawers,\n drawersFocusRef,\n onActiveDrawerChange,\n globalDrawersFocusControl,\n globalDrawers,\n activeGlobalDrawersIds,\n onActiveGlobalDrawersChange,\n hasNavigation,\n navigationOpen,\n navigationFocusRef,\n onNavigationToggle,\n hasSplitPanel,\n splitPanelFocusRef,\n splitPanelToggleProps,\n onSplitPanelToggle,\n expandedDrawerId,\n setExpandedDrawerId,\n aiDrawerFocusRef,\n onActiveGlobalBottomDrawerChange,\n activeGlobalBottomDrawerId,\n bottomDrawersFocusRef,\n bottomDrawers,\n } = toolbarProps;\n const drawerExpandedMode = !!expandedDrawerId;\n const ref = useRef<HTMLElement>(null);\n const aiDrawerTransitionRef = useRef<HTMLDivElement>(null);\n const activeAiDrawerId = activeAiDrawer?.id;\n useResizeObserver(ref, entry => setToolbarHeight(entry.borderBoxHeight));\n useEffect(() => {\n return () => {\n setToolbarHeight(0);\n };\n // unmount effect only\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const anyPanelOpenInMobile =\n !!isMobile &&\n (!!activeDrawerId ||\n !!activeGlobalDrawersIds?.length ||\n !!activeAiDrawerId ||\n !!activeGlobalBottomDrawerId ||\n (!!navigationOpen && !!hasNavigation));\n useEffect(() => {\n if (anyPanelOpenInMobile) {\n document.body.classList.add(styles['block-body-scroll']);\n } else {\n document.body.classList.remove(styles['block-body-scroll']);\n }\n return () => {\n document.body.classList.remove(styles['block-body-scroll']);\n };\n }, [anyPanelOpenInMobile]);\n\n const navLandmarkAttributes = navigationOpen\n ? { role: 'presentation' }\n : { role: 'navigation', 'aria-label': ariaLabels?.navigation };\n\n return (\n <ToolbarSlot\n ref={ref}\n className={clsx((aiDrawer?.trigger || !!activeAiDrawerId) && styles['with-ai-drawer'], {\n [testutilStyles['mobile-bar']]: isMobile,\n })}\n style={{\n insetBlockStart: verticalOffsets.toolbar,\n }}\n >\n <Transition\n in={!!(aiDrawer?.trigger && !activeAiDrawerId)}\n timeout={{ enter: 0, exit: 165 }}\n mountOnEnter={true}\n unmountOnExit={true}\n nodeRef={aiDrawerTransitionRef}\n >\n {state => (\n <div\n className={clsx(!!aiDrawer?.trigger?.customIcon && styles['universal-toolbar-ai-custom'], [\n sharedStyles['with-motion-horizontal'],\n ])}\n style={{\n opacity: ['entering', 'exiting'].includes(state) ? 0 : 1,\n }}\n >\n <TriggerButton\n ariaLabel={aiDrawer?.ariaLabels?.triggerButton}\n ariaExpanded={!!activeAiDrawerId}\n iconName={aiDrawer?.trigger!.iconName}\n iconSvg={aiDrawer?.trigger!.iconSvg}\n customSvg={aiDrawer?.trigger!.customIcon}\n className={testutilStyles['ai-drawer-toggle']}\n onClick={() => {\n if (setExpandedDrawerId) {\n setExpandedDrawerId(null);\n }\n onActiveAiDrawerChange?.(aiDrawer?.id ?? null, { initiatedByUserAction: true });\n }}\n ref={aiDrawerFocusRef}\n selected={!drawerExpandedMode && !!activeAiDrawerId}\n disabled={anyPanelOpenInMobile}\n variant={aiDrawer?.trigger?.customIcon ? 'custom' : 'circle'}\n testId={`awsui-app-layout-trigger-${aiDrawer?.id}`}\n isForPreviousActiveDrawer={true}\n />\n </div>\n )}\n </Transition>\n <ToolbarContainer hasAiDrawer={!!activeAiDrawerId}>\n {hasNavigation && (\n <nav {...navLandmarkAttributes} className={clsx(styles['universal-toolbar-nav'])}>\n <TriggerButton\n ariaLabel={ariaLabels?.navigationToggle ?? undefined}\n ariaExpanded={!drawerExpandedMode && navigationOpen}\n iconName=\"menu\"\n className={testutilStyles['navigation-toggle']}\n onClick={() => {\n if (setExpandedDrawerId) {\n setExpandedDrawerId(null);\n }\n if (navigationOpen && expandedDrawerId) {\n return;\n }\n onNavigationToggle?.(!navigationOpen);\n }}\n ref={navigationFocusRef}\n selected={!drawerExpandedMode && navigationOpen}\n disabled={anyPanelOpenInMobile}\n />\n </nav>\n )}\n {(breadcrumbs || discoveredBreadcrumbs) && (\n <ToolbarBreadcrumbsSection\n ownBreadcrumbs={appLayoutInternals.breadcrumbs}\n discoveredBreadcrumbs={appLayoutInternals.discoveredBreadcrumbs}\n includeTestUtils={true}\n />\n )}\n {(drawers?.length ||\n globalDrawers?.length ||\n bottomDrawers?.length ||\n (hasSplitPanel && splitPanelToggleProps?.displayed)) && (\n <div className={clsx(styles['universal-toolbar-drawers'])}>\n <DrawerTriggers\n ariaLabels={ariaLabels}\n activeDrawerId={activeDrawerId ?? null}\n drawers={drawers?.filter(item => !!item.trigger) ?? []}\n drawersFocusRef={drawersFocusRef}\n onActiveDrawerChange={onActiveDrawerChange}\n splitPanelToggleProps={splitPanelToggleProps?.displayed ? splitPanelToggleProps : undefined}\n splitPanelFocusRef={splitPanelFocusRef}\n onSplitPanelToggle={onSplitPanelToggle}\n disabled={anyPanelOpenInMobile}\n globalDrawersFocusControl={globalDrawersFocusControl}\n bottomDrawersFocusRef={bottomDrawersFocusRef}\n globalDrawers={globalDrawers?.filter(item => !!item.trigger) ?? []}\n activeGlobalDrawersIds={activeGlobalDrawersIds ?? []}\n onActiveGlobalDrawersChange={onActiveGlobalDrawersChange}\n expandedDrawerId={expandedDrawerId}\n setExpandedDrawerId={setExpandedDrawerId!}\n bottomDrawers={bottomDrawers}\n onActiveGlobalBottomDrawerChange={onActiveGlobalBottomDrawerChange}\n activeGlobalBottomDrawerId={activeGlobalBottomDrawerId}\n featureNotificationsProps={featureNotificationsProps}\n />\n </div>\n )}\n </ToolbarContainer>\n </ToolbarSlot>\n );\n}\n\nexport const AppLayoutToolbar = createWidgetizedComponent(AppLayoutToolbarImplementation, ToolbarSkeleton);\n"]}
|
|
@@ -1,197 +1,197 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"box": "
|
|
5
|
-
"p-variant": "awsui_p-
|
|
6
|
-
"color-default": "awsui_color-
|
|
7
|
-
"b-variant": "awsui_b-
|
|
8
|
-
"strong-variant": "awsui_strong-
|
|
9
|
-
"code-variant": "awsui_code-
|
|
10
|
-
"pre-variant": "awsui_pre-
|
|
11
|
-
"samp-variant": "awsui_samp-
|
|
12
|
-
"h1-variant": "awsui_h1-
|
|
13
|
-
"h2-variant": "awsui_h2-
|
|
14
|
-
"h3-variant": "awsui_h3-
|
|
15
|
-
"h4-variant": "awsui_h4-
|
|
16
|
-
"h5-variant": "awsui_h5-
|
|
17
|
-
"small-variant": "awsui_small-
|
|
18
|
-
"a-variant": "awsui_a-
|
|
19
|
-
"font-size-default": "awsui_font-size-
|
|
20
|
-
"font-weight-default": "awsui_font-weight-
|
|
21
|
-
"key-label-variant": "awsui_key-label-
|
|
22
|
-
"gen-ai-label-variant": "awsui_gen-ai-label-
|
|
23
|
-
"value-large-variant": "awsui_value-large-
|
|
24
|
-
"inline-code-variant": "awsui_inline-code-
|
|
25
|
-
"font-weight-heavy": "awsui_font-weight-
|
|
26
|
-
"color-inverted": "awsui_color-
|
|
27
|
-
"color-text-label": "awsui_color-text-
|
|
28
|
-
"color-text-body-secondary": "awsui_color-text-body-
|
|
29
|
-
"color-text-status-error": "awsui_color-text-status-
|
|
30
|
-
"color-text-status-success": "awsui_color-text-status-
|
|
31
|
-
"color-text-status-info": "awsui_color-text-status-
|
|
32
|
-
"color-text-status-inactive": "awsui_color-text-status-
|
|
33
|
-
"color-text-status-warning": "awsui_color-text-status-
|
|
34
|
-
"color-inherit": "awsui_color-
|
|
35
|
-
"font-size-body-s": "awsui_font-size-body-
|
|
36
|
-
"font-size-body-m": "awsui_font-size-body-
|
|
37
|
-
"font-size-heading-xs": "awsui_font-size-heading-
|
|
38
|
-
"font-size-heading-s": "awsui_font-size-heading-
|
|
39
|
-
"font-size-heading-m": "awsui_font-size-heading-
|
|
40
|
-
"font-size-heading-l": "awsui_font-size-heading-
|
|
41
|
-
"font-size-heading-xl": "awsui_font-size-heading-
|
|
42
|
-
"font-size-display-l": "awsui_font-size-display-
|
|
43
|
-
"font-weight-light": "awsui_font-weight-
|
|
44
|
-
"font-weight-normal": "awsui_font-weight-
|
|
45
|
-
"font-weight-bold": "awsui_font-weight-
|
|
46
|
-
"t-left": "awsui_t-
|
|
47
|
-
"t-right": "awsui_t-
|
|
48
|
-
"t-center": "awsui_t-
|
|
49
|
-
"p-n": "awsui_p-
|
|
50
|
-
"p-top-n": "awsui_p-top-
|
|
51
|
-
"p-vertical-n": "awsui_p-vertical-
|
|
52
|
-
"p-right-n": "awsui_p-right-
|
|
53
|
-
"p-horizontal-n": "awsui_p-horizontal-
|
|
54
|
-
"p-bottom-n": "awsui_p-bottom-
|
|
55
|
-
"p-left-n": "awsui_p-left-
|
|
56
|
-
"p-xxxs": "awsui_p-
|
|
57
|
-
"p-top-xxxs": "awsui_p-top-
|
|
58
|
-
"p-vertical-xxxs": "awsui_p-vertical-
|
|
59
|
-
"p-right-xxxs": "awsui_p-right-
|
|
60
|
-
"p-horizontal-xxxs": "awsui_p-horizontal-
|
|
61
|
-
"p-bottom-xxxs": "awsui_p-bottom-
|
|
62
|
-
"p-left-xxxs": "awsui_p-left-
|
|
63
|
-
"p-xxs": "awsui_p-
|
|
64
|
-
"p-top-xxs": "awsui_p-top-
|
|
65
|
-
"p-vertical-xxs": "awsui_p-vertical-
|
|
66
|
-
"p-right-xxs": "awsui_p-right-
|
|
67
|
-
"p-horizontal-xxs": "awsui_p-horizontal-
|
|
68
|
-
"p-bottom-xxs": "awsui_p-bottom-
|
|
69
|
-
"p-left-xxs": "awsui_p-left-
|
|
70
|
-
"p-xs": "awsui_p-
|
|
71
|
-
"p-top-xs": "awsui_p-top-
|
|
72
|
-
"p-vertical-xs": "awsui_p-vertical-
|
|
73
|
-
"p-right-xs": "awsui_p-right-
|
|
74
|
-
"p-horizontal-xs": "awsui_p-horizontal-
|
|
75
|
-
"p-bottom-xs": "awsui_p-bottom-
|
|
76
|
-
"p-left-xs": "awsui_p-left-
|
|
77
|
-
"p-s": "awsui_p-
|
|
78
|
-
"p-top-s": "awsui_p-top-
|
|
79
|
-
"p-vertical-s": "awsui_p-vertical-
|
|
80
|
-
"p-right-s": "awsui_p-right-
|
|
81
|
-
"p-horizontal-s": "awsui_p-horizontal-
|
|
82
|
-
"p-bottom-s": "awsui_p-bottom-
|
|
83
|
-
"p-left-s": "awsui_p-left-
|
|
84
|
-
"p-m": "awsui_p-
|
|
85
|
-
"p-top-m": "awsui_p-top-
|
|
86
|
-
"p-vertical-m": "awsui_p-vertical-
|
|
87
|
-
"p-right-m": "awsui_p-right-
|
|
88
|
-
"p-horizontal-m": "awsui_p-horizontal-
|
|
89
|
-
"p-bottom-m": "awsui_p-bottom-
|
|
90
|
-
"p-left-m": "awsui_p-left-
|
|
91
|
-
"p-l": "awsui_p-
|
|
92
|
-
"p-top-l": "awsui_p-top-
|
|
93
|
-
"p-vertical-l": "awsui_p-vertical-
|
|
94
|
-
"p-right-l": "awsui_p-right-
|
|
95
|
-
"p-horizontal-l": "awsui_p-horizontal-
|
|
96
|
-
"p-bottom-l": "awsui_p-bottom-
|
|
97
|
-
"p-left-l": "awsui_p-left-
|
|
98
|
-
"p-xl": "awsui_p-
|
|
99
|
-
"p-top-xl": "awsui_p-top-
|
|
100
|
-
"p-vertical-xl": "awsui_p-vertical-
|
|
101
|
-
"p-right-xl": "awsui_p-right-
|
|
102
|
-
"p-horizontal-xl": "awsui_p-horizontal-
|
|
103
|
-
"p-bottom-xl": "awsui_p-bottom-
|
|
104
|
-
"p-left-xl": "awsui_p-left-
|
|
105
|
-
"p-xxl": "awsui_p-
|
|
106
|
-
"p-top-xxl": "awsui_p-top-
|
|
107
|
-
"p-vertical-xxl": "awsui_p-vertical-
|
|
108
|
-
"p-right-xxl": "awsui_p-right-
|
|
109
|
-
"p-horizontal-xxl": "awsui_p-horizontal-
|
|
110
|
-
"p-bottom-xxl": "awsui_p-bottom-
|
|
111
|
-
"p-left-xxl": "awsui_p-left-
|
|
112
|
-
"p-xxxl": "awsui_p-
|
|
113
|
-
"p-top-xxxl": "awsui_p-top-
|
|
114
|
-
"p-vertical-xxxl": "awsui_p-vertical-
|
|
115
|
-
"p-right-xxxl": "awsui_p-right-
|
|
116
|
-
"p-horizontal-xxxl": "awsui_p-horizontal-
|
|
117
|
-
"p-bottom-xxxl": "awsui_p-bottom-
|
|
118
|
-
"p-left-xxxl": "awsui_p-left-
|
|
119
|
-
"m-n": "awsui_m-
|
|
120
|
-
"m-top-n": "awsui_m-top-
|
|
121
|
-
"m-vertical-n": "awsui_m-vertical-
|
|
122
|
-
"m-right-n": "awsui_m-right-
|
|
123
|
-
"m-horizontal-n": "awsui_m-horizontal-
|
|
124
|
-
"m-bottom-n": "awsui_m-bottom-
|
|
125
|
-
"m-left-n": "awsui_m-left-
|
|
126
|
-
"m-xxxs": "awsui_m-
|
|
127
|
-
"m-top-xxxs": "awsui_m-top-
|
|
128
|
-
"m-vertical-xxxs": "awsui_m-vertical-
|
|
129
|
-
"m-right-xxxs": "awsui_m-right-
|
|
130
|
-
"m-horizontal-xxxs": "awsui_m-horizontal-
|
|
131
|
-
"m-bottom-xxxs": "awsui_m-bottom-
|
|
132
|
-
"m-left-xxxs": "awsui_m-left-
|
|
133
|
-
"m-xxs": "awsui_m-
|
|
134
|
-
"m-top-xxs": "awsui_m-top-
|
|
135
|
-
"m-vertical-xxs": "awsui_m-vertical-
|
|
136
|
-
"m-right-xxs": "awsui_m-right-
|
|
137
|
-
"m-horizontal-xxs": "awsui_m-horizontal-
|
|
138
|
-
"m-bottom-xxs": "awsui_m-bottom-
|
|
139
|
-
"m-left-xxs": "awsui_m-left-
|
|
140
|
-
"m-xs": "awsui_m-
|
|
141
|
-
"m-top-xs": "awsui_m-top-
|
|
142
|
-
"m-vertical-xs": "awsui_m-vertical-
|
|
143
|
-
"m-right-xs": "awsui_m-right-
|
|
144
|
-
"m-horizontal-xs": "awsui_m-horizontal-
|
|
145
|
-
"m-bottom-xs": "awsui_m-bottom-
|
|
146
|
-
"m-left-xs": "awsui_m-left-
|
|
147
|
-
"m-s": "awsui_m-
|
|
148
|
-
"m-top-s": "awsui_m-top-
|
|
149
|
-
"m-vertical-s": "awsui_m-vertical-
|
|
150
|
-
"m-right-s": "awsui_m-right-
|
|
151
|
-
"m-horizontal-s": "awsui_m-horizontal-
|
|
152
|
-
"m-bottom-s": "awsui_m-bottom-
|
|
153
|
-
"m-left-s": "awsui_m-left-
|
|
154
|
-
"m-m": "awsui_m-
|
|
155
|
-
"m-top-m": "awsui_m-top-
|
|
156
|
-
"m-vertical-m": "awsui_m-vertical-
|
|
157
|
-
"m-right-m": "awsui_m-right-
|
|
158
|
-
"m-horizontal-m": "awsui_m-horizontal-
|
|
159
|
-
"m-bottom-m": "awsui_m-bottom-
|
|
160
|
-
"m-left-m": "awsui_m-left-
|
|
161
|
-
"m-l": "awsui_m-
|
|
162
|
-
"m-top-l": "awsui_m-top-
|
|
163
|
-
"m-vertical-l": "awsui_m-vertical-
|
|
164
|
-
"m-right-l": "awsui_m-right-
|
|
165
|
-
"m-horizontal-l": "awsui_m-horizontal-
|
|
166
|
-
"m-bottom-l": "awsui_m-bottom-
|
|
167
|
-
"m-left-l": "awsui_m-left-
|
|
168
|
-
"m-xl": "awsui_m-
|
|
169
|
-
"m-top-xl": "awsui_m-top-
|
|
170
|
-
"m-vertical-xl": "awsui_m-vertical-
|
|
171
|
-
"m-right-xl": "awsui_m-right-
|
|
172
|
-
"m-horizontal-xl": "awsui_m-horizontal-
|
|
173
|
-
"m-bottom-xl": "awsui_m-bottom-
|
|
174
|
-
"m-left-xl": "awsui_m-left-
|
|
175
|
-
"m-xxl": "awsui_m-
|
|
176
|
-
"m-top-xxl": "awsui_m-top-
|
|
177
|
-
"m-vertical-xxl": "awsui_m-vertical-
|
|
178
|
-
"m-right-xxl": "awsui_m-right-
|
|
179
|
-
"m-horizontal-xxl": "awsui_m-horizontal-
|
|
180
|
-
"m-bottom-xxl": "awsui_m-bottom-
|
|
181
|
-
"m-left-xxl": "awsui_m-left-
|
|
182
|
-
"m-xxxl": "awsui_m-
|
|
183
|
-
"m-top-xxxl": "awsui_m-top-
|
|
184
|
-
"m-vertical-xxxl": "awsui_m-vertical-
|
|
185
|
-
"m-right-xxxl": "awsui_m-right-
|
|
186
|
-
"m-horizontal-xxxl": "awsui_m-horizontal-
|
|
187
|
-
"m-bottom-xxxl": "awsui_m-bottom-
|
|
188
|
-
"m-left-xxxl": "awsui_m-left-
|
|
189
|
-
"d-block": "awsui_d-
|
|
190
|
-
"d-inline": "awsui_d-
|
|
191
|
-
"d-inline-block": "awsui_d-inline-
|
|
192
|
-
"d-none": "awsui_d-
|
|
193
|
-
"f-left": "awsui_f-
|
|
194
|
-
"f-right": "awsui_f-
|
|
195
|
-
"root": "
|
|
4
|
+
"box": "awsui_box_18wu0_1q0fz_172",
|
|
5
|
+
"p-variant": "awsui_p-variant_18wu0_1q0fz_172",
|
|
6
|
+
"color-default": "awsui_color-default_18wu0_1q0fz_172",
|
|
7
|
+
"b-variant": "awsui_b-variant_18wu0_1q0fz_172",
|
|
8
|
+
"strong-variant": "awsui_strong-variant_18wu0_1q0fz_172",
|
|
9
|
+
"code-variant": "awsui_code-variant_18wu0_1q0fz_172",
|
|
10
|
+
"pre-variant": "awsui_pre-variant_18wu0_1q0fz_172",
|
|
11
|
+
"samp-variant": "awsui_samp-variant_18wu0_1q0fz_172",
|
|
12
|
+
"h1-variant": "awsui_h1-variant_18wu0_1q0fz_176",
|
|
13
|
+
"h2-variant": "awsui_h2-variant_18wu0_1q0fz_176",
|
|
14
|
+
"h3-variant": "awsui_h3-variant_18wu0_1q0fz_176",
|
|
15
|
+
"h4-variant": "awsui_h4-variant_18wu0_1q0fz_176",
|
|
16
|
+
"h5-variant": "awsui_h5-variant_18wu0_1q0fz_176",
|
|
17
|
+
"small-variant": "awsui_small-variant_18wu0_1q0fz_180",
|
|
18
|
+
"a-variant": "awsui_a-variant_18wu0_1q0fz_184",
|
|
19
|
+
"font-size-default": "awsui_font-size-default_18wu0_1q0fz_188",
|
|
20
|
+
"font-weight-default": "awsui_font-weight-default_18wu0_1q0fz_229",
|
|
21
|
+
"key-label-variant": "awsui_key-label-variant_18wu0_1q0fz_271",
|
|
22
|
+
"gen-ai-label-variant": "awsui_gen-ai-label-variant_18wu0_1q0fz_278",
|
|
23
|
+
"value-large-variant": "awsui_value-large-variant_18wu0_1q0fz_285",
|
|
24
|
+
"inline-code-variant": "awsui_inline-code-variant_18wu0_1q0fz_292",
|
|
25
|
+
"font-weight-heavy": "awsui_font-weight-heavy_18wu0_1q0fz_306",
|
|
26
|
+
"color-inverted": "awsui_color-inverted_18wu0_1q0fz_311",
|
|
27
|
+
"color-text-label": "awsui_color-text-label_18wu0_1q0fz_314",
|
|
28
|
+
"color-text-body-secondary": "awsui_color-text-body-secondary_18wu0_1q0fz_317",
|
|
29
|
+
"color-text-status-error": "awsui_color-text-status-error_18wu0_1q0fz_320",
|
|
30
|
+
"color-text-status-success": "awsui_color-text-status-success_18wu0_1q0fz_323",
|
|
31
|
+
"color-text-status-info": "awsui_color-text-status-info_18wu0_1q0fz_326",
|
|
32
|
+
"color-text-status-inactive": "awsui_color-text-status-inactive_18wu0_1q0fz_329",
|
|
33
|
+
"color-text-status-warning": "awsui_color-text-status-warning_18wu0_1q0fz_332",
|
|
34
|
+
"color-inherit": "awsui_color-inherit_18wu0_1q0fz_335",
|
|
35
|
+
"font-size-body-s": "awsui_font-size-body-s_18wu0_1q0fz_338",
|
|
36
|
+
"font-size-body-m": "awsui_font-size-body-m_18wu0_1q0fz_343",
|
|
37
|
+
"font-size-heading-xs": "awsui_font-size-heading-xs_18wu0_1q0fz_347",
|
|
38
|
+
"font-size-heading-s": "awsui_font-size-heading-s_18wu0_1q0fz_352",
|
|
39
|
+
"font-size-heading-m": "awsui_font-size-heading-m_18wu0_1q0fz_357",
|
|
40
|
+
"font-size-heading-l": "awsui_font-size-heading-l_18wu0_1q0fz_362",
|
|
41
|
+
"font-size-heading-xl": "awsui_font-size-heading-xl_18wu0_1q0fz_367",
|
|
42
|
+
"font-size-display-l": "awsui_font-size-display-l_18wu0_1q0fz_372",
|
|
43
|
+
"font-weight-light": "awsui_font-weight-light_18wu0_1q0fz_377",
|
|
44
|
+
"font-weight-normal": "awsui_font-weight-normal_18wu0_1q0fz_380",
|
|
45
|
+
"font-weight-bold": "awsui_font-weight-bold_18wu0_1q0fz_383",
|
|
46
|
+
"t-left": "awsui_t-left_18wu0_1q0fz_390",
|
|
47
|
+
"t-right": "awsui_t-right_18wu0_1q0fz_394",
|
|
48
|
+
"t-center": "awsui_t-center_18wu0_1q0fz_398",
|
|
49
|
+
"p-n": "awsui_p-n_18wu0_1q0fz_415",
|
|
50
|
+
"p-top-n": "awsui_p-top-n_18wu0_1q0fz_420",
|
|
51
|
+
"p-vertical-n": "awsui_p-vertical-n_18wu0_1q0fz_421",
|
|
52
|
+
"p-right-n": "awsui_p-right-n_18wu0_1q0fz_425",
|
|
53
|
+
"p-horizontal-n": "awsui_p-horizontal-n_18wu0_1q0fz_426",
|
|
54
|
+
"p-bottom-n": "awsui_p-bottom-n_18wu0_1q0fz_430",
|
|
55
|
+
"p-left-n": "awsui_p-left-n_18wu0_1q0fz_435",
|
|
56
|
+
"p-xxxs": "awsui_p-xxxs_18wu0_1q0fz_440",
|
|
57
|
+
"p-top-xxxs": "awsui_p-top-xxxs_18wu0_1q0fz_445",
|
|
58
|
+
"p-vertical-xxxs": "awsui_p-vertical-xxxs_18wu0_1q0fz_446",
|
|
59
|
+
"p-right-xxxs": "awsui_p-right-xxxs_18wu0_1q0fz_450",
|
|
60
|
+
"p-horizontal-xxxs": "awsui_p-horizontal-xxxs_18wu0_1q0fz_451",
|
|
61
|
+
"p-bottom-xxxs": "awsui_p-bottom-xxxs_18wu0_1q0fz_455",
|
|
62
|
+
"p-left-xxxs": "awsui_p-left-xxxs_18wu0_1q0fz_460",
|
|
63
|
+
"p-xxs": "awsui_p-xxs_18wu0_1q0fz_465",
|
|
64
|
+
"p-top-xxs": "awsui_p-top-xxs_18wu0_1q0fz_470",
|
|
65
|
+
"p-vertical-xxs": "awsui_p-vertical-xxs_18wu0_1q0fz_471",
|
|
66
|
+
"p-right-xxs": "awsui_p-right-xxs_18wu0_1q0fz_475",
|
|
67
|
+
"p-horizontal-xxs": "awsui_p-horizontal-xxs_18wu0_1q0fz_476",
|
|
68
|
+
"p-bottom-xxs": "awsui_p-bottom-xxs_18wu0_1q0fz_480",
|
|
69
|
+
"p-left-xxs": "awsui_p-left-xxs_18wu0_1q0fz_485",
|
|
70
|
+
"p-xs": "awsui_p-xs_18wu0_1q0fz_490",
|
|
71
|
+
"p-top-xs": "awsui_p-top-xs_18wu0_1q0fz_495",
|
|
72
|
+
"p-vertical-xs": "awsui_p-vertical-xs_18wu0_1q0fz_496",
|
|
73
|
+
"p-right-xs": "awsui_p-right-xs_18wu0_1q0fz_500",
|
|
74
|
+
"p-horizontal-xs": "awsui_p-horizontal-xs_18wu0_1q0fz_501",
|
|
75
|
+
"p-bottom-xs": "awsui_p-bottom-xs_18wu0_1q0fz_505",
|
|
76
|
+
"p-left-xs": "awsui_p-left-xs_18wu0_1q0fz_510",
|
|
77
|
+
"p-s": "awsui_p-s_18wu0_1q0fz_515",
|
|
78
|
+
"p-top-s": "awsui_p-top-s_18wu0_1q0fz_520",
|
|
79
|
+
"p-vertical-s": "awsui_p-vertical-s_18wu0_1q0fz_521",
|
|
80
|
+
"p-right-s": "awsui_p-right-s_18wu0_1q0fz_525",
|
|
81
|
+
"p-horizontal-s": "awsui_p-horizontal-s_18wu0_1q0fz_526",
|
|
82
|
+
"p-bottom-s": "awsui_p-bottom-s_18wu0_1q0fz_530",
|
|
83
|
+
"p-left-s": "awsui_p-left-s_18wu0_1q0fz_535",
|
|
84
|
+
"p-m": "awsui_p-m_18wu0_1q0fz_540",
|
|
85
|
+
"p-top-m": "awsui_p-top-m_18wu0_1q0fz_545",
|
|
86
|
+
"p-vertical-m": "awsui_p-vertical-m_18wu0_1q0fz_546",
|
|
87
|
+
"p-right-m": "awsui_p-right-m_18wu0_1q0fz_550",
|
|
88
|
+
"p-horizontal-m": "awsui_p-horizontal-m_18wu0_1q0fz_551",
|
|
89
|
+
"p-bottom-m": "awsui_p-bottom-m_18wu0_1q0fz_555",
|
|
90
|
+
"p-left-m": "awsui_p-left-m_18wu0_1q0fz_560",
|
|
91
|
+
"p-l": "awsui_p-l_18wu0_1q0fz_435",
|
|
92
|
+
"p-top-l": "awsui_p-top-l_18wu0_1q0fz_570",
|
|
93
|
+
"p-vertical-l": "awsui_p-vertical-l_18wu0_1q0fz_571",
|
|
94
|
+
"p-right-l": "awsui_p-right-l_18wu0_1q0fz_575",
|
|
95
|
+
"p-horizontal-l": "awsui_p-horizontal-l_18wu0_1q0fz_576",
|
|
96
|
+
"p-bottom-l": "awsui_p-bottom-l_18wu0_1q0fz_580",
|
|
97
|
+
"p-left-l": "awsui_p-left-l_18wu0_1q0fz_585",
|
|
98
|
+
"p-xl": "awsui_p-xl_18wu0_1q0fz_590",
|
|
99
|
+
"p-top-xl": "awsui_p-top-xl_18wu0_1q0fz_595",
|
|
100
|
+
"p-vertical-xl": "awsui_p-vertical-xl_18wu0_1q0fz_596",
|
|
101
|
+
"p-right-xl": "awsui_p-right-xl_18wu0_1q0fz_600",
|
|
102
|
+
"p-horizontal-xl": "awsui_p-horizontal-xl_18wu0_1q0fz_601",
|
|
103
|
+
"p-bottom-xl": "awsui_p-bottom-xl_18wu0_1q0fz_605",
|
|
104
|
+
"p-left-xl": "awsui_p-left-xl_18wu0_1q0fz_610",
|
|
105
|
+
"p-xxl": "awsui_p-xxl_18wu0_1q0fz_615",
|
|
106
|
+
"p-top-xxl": "awsui_p-top-xxl_18wu0_1q0fz_620",
|
|
107
|
+
"p-vertical-xxl": "awsui_p-vertical-xxl_18wu0_1q0fz_621",
|
|
108
|
+
"p-right-xxl": "awsui_p-right-xxl_18wu0_1q0fz_625",
|
|
109
|
+
"p-horizontal-xxl": "awsui_p-horizontal-xxl_18wu0_1q0fz_626",
|
|
110
|
+
"p-bottom-xxl": "awsui_p-bottom-xxl_18wu0_1q0fz_630",
|
|
111
|
+
"p-left-xxl": "awsui_p-left-xxl_18wu0_1q0fz_635",
|
|
112
|
+
"p-xxxl": "awsui_p-xxxl_18wu0_1q0fz_640",
|
|
113
|
+
"p-top-xxxl": "awsui_p-top-xxxl_18wu0_1q0fz_645",
|
|
114
|
+
"p-vertical-xxxl": "awsui_p-vertical-xxxl_18wu0_1q0fz_646",
|
|
115
|
+
"p-right-xxxl": "awsui_p-right-xxxl_18wu0_1q0fz_650",
|
|
116
|
+
"p-horizontal-xxxl": "awsui_p-horizontal-xxxl_18wu0_1q0fz_651",
|
|
117
|
+
"p-bottom-xxxl": "awsui_p-bottom-xxxl_18wu0_1q0fz_655",
|
|
118
|
+
"p-left-xxxl": "awsui_p-left-xxxl_18wu0_1q0fz_660",
|
|
119
|
+
"m-n": "awsui_m-n_18wu0_1q0fz_665",
|
|
120
|
+
"m-top-n": "awsui_m-top-n_18wu0_1q0fz_670",
|
|
121
|
+
"m-vertical-n": "awsui_m-vertical-n_18wu0_1q0fz_671",
|
|
122
|
+
"m-right-n": "awsui_m-right-n_18wu0_1q0fz_675",
|
|
123
|
+
"m-horizontal-n": "awsui_m-horizontal-n_18wu0_1q0fz_676",
|
|
124
|
+
"m-bottom-n": "awsui_m-bottom-n_18wu0_1q0fz_680",
|
|
125
|
+
"m-left-n": "awsui_m-left-n_18wu0_1q0fz_685",
|
|
126
|
+
"m-xxxs": "awsui_m-xxxs_18wu0_1q0fz_690",
|
|
127
|
+
"m-top-xxxs": "awsui_m-top-xxxs_18wu0_1q0fz_695",
|
|
128
|
+
"m-vertical-xxxs": "awsui_m-vertical-xxxs_18wu0_1q0fz_696",
|
|
129
|
+
"m-right-xxxs": "awsui_m-right-xxxs_18wu0_1q0fz_700",
|
|
130
|
+
"m-horizontal-xxxs": "awsui_m-horizontal-xxxs_18wu0_1q0fz_701",
|
|
131
|
+
"m-bottom-xxxs": "awsui_m-bottom-xxxs_18wu0_1q0fz_705",
|
|
132
|
+
"m-left-xxxs": "awsui_m-left-xxxs_18wu0_1q0fz_710",
|
|
133
|
+
"m-xxs": "awsui_m-xxs_18wu0_1q0fz_715",
|
|
134
|
+
"m-top-xxs": "awsui_m-top-xxs_18wu0_1q0fz_720",
|
|
135
|
+
"m-vertical-xxs": "awsui_m-vertical-xxs_18wu0_1q0fz_721",
|
|
136
|
+
"m-right-xxs": "awsui_m-right-xxs_18wu0_1q0fz_725",
|
|
137
|
+
"m-horizontal-xxs": "awsui_m-horizontal-xxs_18wu0_1q0fz_726",
|
|
138
|
+
"m-bottom-xxs": "awsui_m-bottom-xxs_18wu0_1q0fz_730",
|
|
139
|
+
"m-left-xxs": "awsui_m-left-xxs_18wu0_1q0fz_735",
|
|
140
|
+
"m-xs": "awsui_m-xs_18wu0_1q0fz_740",
|
|
141
|
+
"m-top-xs": "awsui_m-top-xs_18wu0_1q0fz_745",
|
|
142
|
+
"m-vertical-xs": "awsui_m-vertical-xs_18wu0_1q0fz_746",
|
|
143
|
+
"m-right-xs": "awsui_m-right-xs_18wu0_1q0fz_750",
|
|
144
|
+
"m-horizontal-xs": "awsui_m-horizontal-xs_18wu0_1q0fz_751",
|
|
145
|
+
"m-bottom-xs": "awsui_m-bottom-xs_18wu0_1q0fz_755",
|
|
146
|
+
"m-left-xs": "awsui_m-left-xs_18wu0_1q0fz_760",
|
|
147
|
+
"m-s": "awsui_m-s_18wu0_1q0fz_765",
|
|
148
|
+
"m-top-s": "awsui_m-top-s_18wu0_1q0fz_770",
|
|
149
|
+
"m-vertical-s": "awsui_m-vertical-s_18wu0_1q0fz_771",
|
|
150
|
+
"m-right-s": "awsui_m-right-s_18wu0_1q0fz_775",
|
|
151
|
+
"m-horizontal-s": "awsui_m-horizontal-s_18wu0_1q0fz_776",
|
|
152
|
+
"m-bottom-s": "awsui_m-bottom-s_18wu0_1q0fz_780",
|
|
153
|
+
"m-left-s": "awsui_m-left-s_18wu0_1q0fz_785",
|
|
154
|
+
"m-m": "awsui_m-m_18wu0_1q0fz_790",
|
|
155
|
+
"m-top-m": "awsui_m-top-m_18wu0_1q0fz_795",
|
|
156
|
+
"m-vertical-m": "awsui_m-vertical-m_18wu0_1q0fz_796",
|
|
157
|
+
"m-right-m": "awsui_m-right-m_18wu0_1q0fz_800",
|
|
158
|
+
"m-horizontal-m": "awsui_m-horizontal-m_18wu0_1q0fz_801",
|
|
159
|
+
"m-bottom-m": "awsui_m-bottom-m_18wu0_1q0fz_805",
|
|
160
|
+
"m-left-m": "awsui_m-left-m_18wu0_1q0fz_810",
|
|
161
|
+
"m-l": "awsui_m-l_18wu0_1q0fz_685",
|
|
162
|
+
"m-top-l": "awsui_m-top-l_18wu0_1q0fz_820",
|
|
163
|
+
"m-vertical-l": "awsui_m-vertical-l_18wu0_1q0fz_821",
|
|
164
|
+
"m-right-l": "awsui_m-right-l_18wu0_1q0fz_825",
|
|
165
|
+
"m-horizontal-l": "awsui_m-horizontal-l_18wu0_1q0fz_826",
|
|
166
|
+
"m-bottom-l": "awsui_m-bottom-l_18wu0_1q0fz_830",
|
|
167
|
+
"m-left-l": "awsui_m-left-l_18wu0_1q0fz_835",
|
|
168
|
+
"m-xl": "awsui_m-xl_18wu0_1q0fz_840",
|
|
169
|
+
"m-top-xl": "awsui_m-top-xl_18wu0_1q0fz_845",
|
|
170
|
+
"m-vertical-xl": "awsui_m-vertical-xl_18wu0_1q0fz_846",
|
|
171
|
+
"m-right-xl": "awsui_m-right-xl_18wu0_1q0fz_850",
|
|
172
|
+
"m-horizontal-xl": "awsui_m-horizontal-xl_18wu0_1q0fz_851",
|
|
173
|
+
"m-bottom-xl": "awsui_m-bottom-xl_18wu0_1q0fz_855",
|
|
174
|
+
"m-left-xl": "awsui_m-left-xl_18wu0_1q0fz_860",
|
|
175
|
+
"m-xxl": "awsui_m-xxl_18wu0_1q0fz_865",
|
|
176
|
+
"m-top-xxl": "awsui_m-top-xxl_18wu0_1q0fz_870",
|
|
177
|
+
"m-vertical-xxl": "awsui_m-vertical-xxl_18wu0_1q0fz_871",
|
|
178
|
+
"m-right-xxl": "awsui_m-right-xxl_18wu0_1q0fz_875",
|
|
179
|
+
"m-horizontal-xxl": "awsui_m-horizontal-xxl_18wu0_1q0fz_876",
|
|
180
|
+
"m-bottom-xxl": "awsui_m-bottom-xxl_18wu0_1q0fz_880",
|
|
181
|
+
"m-left-xxl": "awsui_m-left-xxl_18wu0_1q0fz_885",
|
|
182
|
+
"m-xxxl": "awsui_m-xxxl_18wu0_1q0fz_890",
|
|
183
|
+
"m-top-xxxl": "awsui_m-top-xxxl_18wu0_1q0fz_895",
|
|
184
|
+
"m-vertical-xxxl": "awsui_m-vertical-xxxl_18wu0_1q0fz_896",
|
|
185
|
+
"m-right-xxxl": "awsui_m-right-xxxl_18wu0_1q0fz_900",
|
|
186
|
+
"m-horizontal-xxxl": "awsui_m-horizontal-xxxl_18wu0_1q0fz_901",
|
|
187
|
+
"m-bottom-xxxl": "awsui_m-bottom-xxxl_18wu0_1q0fz_905",
|
|
188
|
+
"m-left-xxxl": "awsui_m-left-xxxl_18wu0_1q0fz_910",
|
|
189
|
+
"d-block": "awsui_d-block_18wu0_1q0fz_915",
|
|
190
|
+
"d-inline": "awsui_d-inline_18wu0_1q0fz_918",
|
|
191
|
+
"d-inline-block": "awsui_d-inline-block_18wu0_1q0fz_921",
|
|
192
|
+
"d-none": "awsui_d-none_18wu0_1q0fz_924",
|
|
193
|
+
"f-left": "awsui_f-left_18wu0_1q0fz_928",
|
|
194
|
+
"f-right": "awsui_f-right_18wu0_1q0fz_932",
|
|
195
|
+
"root": "awsui_root_18wu0_1q0fz_936"
|
|
196
196
|
};
|
|
197
197
|
|