@cloudscape-design/components 3.0.394 → 3.0.396
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/app-layout/drawer/index.d.ts.map +1 -1
- package/app-layout/drawer/index.js +5 -6
- package/app-layout/drawer/index.js.map +1 -1
- package/app-layout/drawer/interfaces.d.ts +2 -0
- package/app-layout/drawer/interfaces.d.ts.map +1 -1
- package/app-layout/drawer/interfaces.js.map +1 -1
- package/app-layout/index.d.ts.map +1 -1
- package/app-layout/index.js +25 -15
- package/app-layout/index.js.map +1 -1
- package/app-layout/mobile-toolbar/index.d.ts +3 -2
- package/app-layout/mobile-toolbar/index.d.ts.map +1 -1
- package/app-layout/mobile-toolbar/index.js +5 -6
- package/app-layout/mobile-toolbar/index.js.map +1 -1
- package/app-layout/test-classes/styles.css.js +17 -19
- package/app-layout/test-classes/styles.scoped.css +17 -25
- package/app-layout/test-classes/styles.selectors.js +17 -19
- package/app-layout/utils/use-drawers.d.ts +5 -3
- package/app-layout/utils/use-drawers.d.ts.map +1 -1
- package/app-layout/utils/use-drawers.js +36 -18
- package/app-layout/utils/use-drawers.js.map +1 -1
- package/app-layout/visual-refresh/context.d.ts +2 -1
- package/app-layout/visual-refresh/context.d.ts.map +1 -1
- package/app-layout/visual-refresh/context.js +6 -2
- package/app-layout/visual-refresh/context.js.map +1 -1
- package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
- package/app-layout/visual-refresh/drawers.js +19 -39
- package/app-layout/visual-refresh/drawers.js.map +1 -1
- package/app-layout/visual-refresh/layout.js +1 -1
- package/app-layout/visual-refresh/layout.js.map +1 -1
- package/app-layout/visual-refresh/mobile-toolbar.d.ts.map +1 -1
- package/app-layout/visual-refresh/mobile-toolbar.js +4 -6
- package/app-layout/visual-refresh/mobile-toolbar.js.map +1 -1
- package/app-layout/visual-refresh/split-panel.d.ts +3 -0
- package/app-layout/visual-refresh/split-panel.d.ts.map +1 -1
- package/app-layout/visual-refresh/split-panel.js +7 -7
- package/app-layout/visual-refresh/split-panel.js.map +1 -1
- package/app-layout/visual-refresh/styles.css.js +74 -75
- package/app-layout/visual-refresh/styles.scoped.css +171 -204
- package/app-layout/visual-refresh/styles.selectors.js +74 -75
- package/app-layout/visual-refresh/tools.d.ts +0 -6
- package/app-layout/visual-refresh/tools.d.ts.map +1 -1
- package/app-layout/visual-refresh/tools.js +2 -17
- package/app-layout/visual-refresh/tools.js.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/expandable-category-element.js +1 -2
- package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
- package/button-dropdown/category-elements/mobile-expandable-category-element.js +1 -2
- package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
- package/button-dropdown/item-element/index.d.ts.map +1 -1
- package/button-dropdown/item-element/index.js +1 -2
- package/button-dropdown/item-element/index.js.map +1 -1
- package/date-range-picker/index.d.ts.map +1 -1
- package/date-range-picker/index.js +5 -4
- package/date-range-picker/index.js.map +1 -1
- package/header/internal.d.ts.map +1 -1
- package/header/internal.js +3 -1
- package/header/internal.js.map +1 -1
- package/header/styles.css.js +33 -32
- package/header/styles.scoped.css +54 -48
- package/header/styles.selectors.js +33 -32
- package/internal/components/button-trigger/index.d.ts +1 -0
- package/internal/components/button-trigger/index.d.ts.map +1 -1
- package/internal/components/button-trigger/index.js +2 -2
- package/internal/components/button-trigger/index.js.map +1 -1
- package/internal/components/button-trigger/styles.css.js +10 -9
- package/internal/components/button-trigger/styles.scoped.css +27 -23
- package/internal/components/button-trigger/styles.selectors.js +10 -9
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/multiselect/index.d.ts.map +1 -1
- package/multiselect/index.js +3 -1
- package/multiselect/index.js.map +1 -1
- package/multiselect/interfaces.d.ts +1 -0
- package/multiselect/interfaces.d.ts.map +1 -1
- package/multiselect/interfaces.js.map +1 -1
- package/multiselect/internal.d.ts +3 -1
- package/multiselect/internal.d.ts.map +1 -1
- package/multiselect/internal.js +3 -3
- package/multiselect/internal.js.map +1 -1
- package/package.json +1 -1
- package/select/parts/styles.css.js +16 -9
- package/select/parts/styles.scoped.css +58 -9
- package/select/parts/styles.selectors.js +16 -9
- package/select/parts/trigger.d.ts +3 -1
- package/select/parts/trigger.d.ts.map +1 -1
- package/select/parts/trigger.js +22 -3
- package/select/parts/trigger.js.map +1 -1
- package/test-utils/dom/app-layout/index.d.ts +1 -3
- package/test-utils/dom/app-layout/index.js +1 -7
- package/test-utils/dom/app-layout/index.js.map +1 -1
- package/test-utils/selectors/app-layout/index.d.ts +1 -3
- package/test-utils/selectors/app-layout/index.js +1 -7
- package/test-utils/selectors/app-layout/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
|
@@ -69,20 +69,20 @@ function SplitPanelBottom() {
|
|
|
69
69
|
* but instead a direct child of the Tools component. The width constraints
|
|
70
70
|
* for this position are computed in the Tools component.
|
|
71
71
|
*/
|
|
72
|
+
/**
|
|
73
|
+
* This component has no opening animations because it causes lots of rerenders that makes the component lag. *
|
|
74
|
+
*/
|
|
72
75
|
function SplitPanelSide() {
|
|
73
|
-
const { isSplitPanelOpen, splitPanel, splitPanelPosition, splitPanelMaxWidth, splitPanelMinWidth,
|
|
76
|
+
const { isSplitPanelOpen, splitPanel, splitPanelPosition, splitPanelMaxWidth, splitPanelMinWidth, splitPanelControlId, } = useAppLayoutInternals();
|
|
74
77
|
if (!splitPanel) {
|
|
75
78
|
return null;
|
|
76
79
|
}
|
|
77
|
-
return (React.createElement(
|
|
78
|
-
[styles.animating]: state === 'entering',
|
|
80
|
+
return (React.createElement("section", { id: splitPanelControlId, "aria-hidden": !isSplitPanelOpen || splitPanelPosition === 'bottom' ? true : false, className: clsx(styles['split-panel-side'], styles[`position-${splitPanelPosition}`], {
|
|
79
81
|
[styles['is-split-panel-open']]: isSplitPanelOpen,
|
|
80
|
-
}),
|
|
82
|
+
}), style: {
|
|
81
83
|
[customCssProps.splitPanelMaxWidth]: `${splitPanelMaxWidth}px`,
|
|
82
84
|
[customCssProps.splitPanelMinWidth]: `${splitPanelMinWidth}px`,
|
|
83
|
-
|
|
84
|
-
} },
|
|
85
|
-
React.createElement("div", { className: clsx(styles['animated-content']) }, splitPanelPosition === 'side' && splitPanel)))));
|
|
85
|
+
} }, splitPanelPosition === 'side' && splitPanel));
|
|
86
86
|
}
|
|
87
87
|
/**
|
|
88
88
|
* This logic will determine what the Split Panel position should be. It reconciles the possibility
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-panel.js","sourceRoot":"lib/default/","sources":["app-layout/visual-refresh/split-panel.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAA0B,MAAM,4CAA4C,CAAC;AAC/G,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAClE,OAAO,cAAc,MAAM,gDAAgD,CAAC;AAE5E;;;GAGG;AACH,SAAS,UAAU,CAAC,EAAE,QAAQ,EAAoC;IAChE,MAAM,EACJ,YAAY,EACZ,qBAAqB,EACrB,iCAAiC,EACjC,sBAAsB,EACtB,YAAY,EACZ,QAAQ,EACR,0BAA0B,EAC1B,gBAAgB,EAChB,yBAAyB,EACzB,iCAAiC,EACjC,mBAAmB,EACnB,kBAAkB,EAClB,cAAc,EACd,cAAc,GACf,GAAG,qBAAqB,EAAE,CAAC;IAE5B,MAAM,OAAO,GAA2B;QACtC,YAAY,EAAE,CAAC;QACf,YAAY,EAAE,GAAG,EAAE;YACjB,MAAM,eAAe,GAAG,QAAQ,C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I,CAAC,CAAC,CAAC,KAAK,EAChF,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC,YAAY,kBAAkB,EAAE,CAAC,EAAE;YACpF,CAAC,MAAM,CAAC,qBAAqB,CAAC,CAAC,EAAE,gBAAgB;SAClD,CAAC,EACF,KAAK,EAAE;YACL,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,GAAG,kBAAkB,IAAI;YAC9D,CAAC,cAAc,CAAC,kBAAkB,CAAC,EAAE,GAAG,kBAAkB,IAAI;SAC/D,IAEA,kBAAkB,KAAK,MAAM,IAAI,UAAU,CACpC,CACX,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CACnC,0BAAmC,EACnC,qBAAuE;IAEvE,IAAI,kBAAkB,GAAsC,QAAQ,CAAC;IAErE,IAAI,CAAC,0BAA0B,IAAI,CAAA,qBAAqB,aAArB,qBAAqB,uBAArB,qBAAqB,CAAE,QAAQ,MAAK,MAAM,EAAE;QAC7E,kBAAkB,GAAG,MAAM,CAAC;KAC7B;IAED,OAAO,kBAAkB,CAAC;AAC5B,CAAC;AACD,UAAU,CAAC,MAAM,GAAG,gBAAgB,CAAC;AACrC,UAAU,CAAC,IAAI,GAAG,cAAc,CAAC;AAEjC,eAAe,UAAU,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\nimport { useAppLayoutInternals } from './context';\nimport { SplitPanelContextProvider, SplitPanelContextProps } from '../../internal/context/split-panel-context';\nimport styles from './styles.css.js';\nimport { AppLayoutProps } from '../interfaces';\nimport { Transition } from '../../internal/components/transition';\nimport customCssProps from '../../internal/generated/custom-css-properties';\n\n/**\n * If there is no Split Panel in the AppLayout context then the SplitPanel\n * will pass through the AppLayout children without the context.\n */\nfunction SplitPanel({ children }: React.PropsWithChildren<unknown>) {\n const {\n footerHeight,\n handleSplitPanelClick,\n handleSplitPanelPreferencesChange,\n handleSplitPanelResize,\n headerHeight,\n isMobile,\n isSplitPanelForcedPosition,\n isSplitPanelOpen,\n setSplitPanelReportedSize,\n setSplitPanelReportedHeaderHeight,\n setSplitPanelToggle,\n splitPanelPosition,\n splitPanelRefs,\n splitPanelSize,\n } = useAppLayoutInternals();\n\n const context: SplitPanelContextProps = {\n bottomOffset: 0,\n getMaxHeight: () => {\n const availableHeight = document.documentElement.clientHeight - headerHeight - footerHeight;\n // If the page is likely zoomed in at 200%, allow the split panel to fill the content area.\n return availableHeight < 400 ? availableHeight - 40 : availableHeight - 250;\n },\n getMaxWidth: () => document.documentElement.clientWidth,\n isForcedPosition: isSplitPanelForcedPosition,\n isMobile,\n isOpen: isSplitPanelOpen,\n leftOffset: 0,\n onPreferencesChange: handleSplitPanelPreferencesChange,\n onResize: handleSplitPanelResize,\n onToggle: handleSplitPanelClick,\n position: splitPanelPosition,\n reportSize: setSplitPanelReportedSize,\n reportHeaderHeight: setSplitPanelReportedHeaderHeight,\n rightOffset: 0,\n size: splitPanelSize || 0,\n topOffset: 0,\n setSplitPanelToggle,\n refs: splitPanelRefs,\n };\n\n return <SplitPanelContextProvider value={context}>{children}</SplitPanelContextProvider>;\n}\n\n/**\n * This is the render function for the SplitPanel when it is in bottom position.\n * The Split Panel container will be another row entry in the grid definition in\n * the Layout component. The start and finish columns will be variable based\n * on the presence and state of the Navigation and Tools components.\n */\nfunction SplitPanelBottom() {\n const {\n disableBodyScroll,\n hasOpenDrawer,\n isNavigationOpen,\n isSplitPanelOpen,\n splitPanel,\n splitPanelPosition,\n splitPanelReportedSize,\n splitPanelReportedHeaderHeight,\n } = useAppLayoutInternals();\n\n if (!splitPanel) {\n return null;\n }\n\n return (\n <Transition in={isSplitPanelOpen ?? false} exit={false}>\n {(state, transitionEventsRef) => (\n <section\n className={clsx(styles['split-panel-bottom'], styles[`position-${splitPanelPosition}`], {\n [styles.animating]: state === 'entering',\n [styles['disable-body-scroll']]: disableBodyScroll,\n [styles['has-open-drawer']]: hasOpenDrawer,\n [styles['is-navigation-open']]: isNavigationOpen,\n [styles['is-split-panel-open']]: isSplitPanelOpen,\n })}\n ref={transitionEventsRef}\n style={{\n [customCssProps.splitPanelReportedSize]: `${splitPanelReportedSize}px`,\n [customCssProps.splitPanelReportedHeaderSize]: `${splitPanelReportedHeaderHeight}px`,\n }}\n >\n <SplitPanel></SplitPanel>\n {splitPanelPosition === 'bottom' && splitPanel}\n </section>\n )}\n </Transition>\n );\n}\n\n/**\n * This is the render function for the SplitPanel when it is side position.\n * The Split Panel will not be within the grid defined in the Layout component\n * but instead a direct child of the Tools component. The width constraints\n * for this position are computed in the Tools component.\n */\n\n/**\n * This component has no opening animations because it causes lots of rerenders that makes the component lag. *\n */\n\nfunction SplitPanelSide() {\n const {\n isSplitPanelOpen,\n splitPanel,\n splitPanelPosition,\n splitPanelMaxWidth,\n splitPanelMinWidth,\n splitPanelControlId,\n } = useAppLayoutInternals();\n\n if (!splitPanel) {\n return null;\n }\n\n return (\n <section\n id={splitPanelControlId}\n aria-hidden={!isSplitPanelOpen || splitPanelPosition === 'bottom' ? true : false}\n className={clsx(styles['split-panel-side'], styles[`position-${splitPanelPosition}`], {\n [styles['is-split-panel-open']]: isSplitPanelOpen,\n })}\n style={{\n [customCssProps.splitPanelMaxWidth]: `${splitPanelMaxWidth}px`,\n [customCssProps.splitPanelMinWidth]: `${splitPanelMinWidth}px`,\n }}\n >\n {splitPanelPosition === 'side' && splitPanel}\n </section>\n );\n}\n\n/**\n * This logic will determine what the Split Panel position should be. It reconciles the possibility\n * of being in forced position with the current selected position in the settings.\n */\nexport function getSplitPanelPosition(\n isSplitPanelForcedPosition: boolean,\n splitPanelPreferences: AppLayoutProps.SplitPanelPreferences | undefined\n) {\n let splitPanelPosition: AppLayoutProps.SplitPanelPosition = 'bottom';\n\n if (!isSplitPanelForcedPosition && splitPanelPreferences?.position === 'side') {\n splitPanelPosition = 'side';\n }\n\n return splitPanelPosition;\n}\nSplitPanel.Bottom = SplitPanelBottom;\nSplitPanel.Side = SplitPanelSide;\n\nexport default SplitPanel;\n"]}
|
|
@@ -1,80 +1,79 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"background": "
|
|
5
|
-
"scrolling-background": "awsui_scrolling-
|
|
6
|
-
"sticky-background": "awsui_sticky-
|
|
7
|
-
"has-sticky-notifications": "awsui_has-sticky-
|
|
8
|
-
"breadcrumbs": "
|
|
9
|
-
"has-sticky-background": "awsui_has-sticky-
|
|
10
|
-
"drawers-container": "awsui_drawers-
|
|
11
|
-
"has-open-drawer": "awsui_has-open-
|
|
12
|
-
"disable-body-scroll": "awsui_disable-body-
|
|
13
|
-
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-
|
|
14
|
-
"has-multiple-triggers": "awsui_has-multiple-
|
|
15
|
-
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-
|
|
16
|
-
"drawers-trigger-content": "awsui_drawers-trigger-
|
|
17
|
-
"drawers-trigger-overflow": "awsui_drawers-trigger-
|
|
18
|
-
"drawers-trigger": "awsui_drawers-
|
|
19
|
-
"drawer": "
|
|
20
|
-
"drawer-close-button": "awsui_drawer-close-
|
|
21
|
-
"drawer-content": "awsui_drawer-
|
|
22
|
-
"drawer-slider": "awsui_drawer-
|
|
23
|
-
"is-drawer-open": "awsui_is-drawer-
|
|
24
|
-
"content": "
|
|
25
|
-
"layout": "
|
|
26
|
-
"has-max-content-width": "awsui_has-max-content-
|
|
27
|
-
"content-type-dashboard": "awsui_content-type-
|
|
28
|
-
"is-overlap-disabled": "awsui_is-overlap-
|
|
29
|
-
"has-content-gap-left": "awsui_has-content-gap-
|
|
30
|
-
"has-content-gap-right": "awsui_has-content-gap-
|
|
31
|
-
"content-first-child-notifications": "awsui_content-first-child-
|
|
32
|
-
"has-breadcrumbs": "awsui_has-
|
|
33
|
-
"content-first-child-header": "awsui_content-first-child-
|
|
34
|
-
"has-header": "awsui_has-
|
|
35
|
-
"content-first-child-main": "awsui_content-first-child-
|
|
36
|
-
"disable-content-paddings": "awsui_disable-content-
|
|
37
|
-
"has-split-panel": "awsui_has-split-
|
|
38
|
-
"split-panel-position-bottom": "awsui_split-panel-position-
|
|
39
|
-
"block-body-scroll": "awsui_block-body-
|
|
40
|
-
"unfocusable": "
|
|
41
|
-
"container": "
|
|
42
|
-
"is-navigation-open": "awsui_is-navigation-
|
|
43
|
-
"is-tools-open": "awsui_is-tools-
|
|
44
|
-
"is-split-panel-open": "awsui_is-split-panel-
|
|
45
|
-
"split-panel-position-side": "awsui_split-panel-position-
|
|
46
|
-
"mobile-toolbar": "awsui_mobile-
|
|
47
|
-
"mobile-toolbar-nav": "awsui_mobile-toolbar-
|
|
48
|
-
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-
|
|
49
|
-
"mobile-toolbar-tools": "awsui_mobile-toolbar-
|
|
50
|
-
"navigation-container": "awsui_navigation-
|
|
51
|
-
"show-navigation": "awsui_show-
|
|
52
|
-
"animating": "
|
|
53
|
-
"showButtons": "
|
|
54
|
-
"navigation": "
|
|
55
|
-
"openNavigation": "
|
|
56
|
-
"animated-content": "awsui_animated-
|
|
57
|
-
"hide-navigation": "awsui_hide-
|
|
58
|
-
"notifications": "
|
|
59
|
-
"sticky-notifications": "awsui_sticky-
|
|
60
|
-
"split-panel-bottom": "awsui_split-panel-
|
|
61
|
-
"position-bottom": "awsui_position-
|
|
62
|
-
"openSplitPanelBottom": "
|
|
63
|
-
"split-panel-side": "awsui_split-panel-
|
|
64
|
-
"position-side": "awsui_position-
|
|
65
|
-
"
|
|
66
|
-
"tools
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"trigger
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"dot": "awsui_dot_hyvsj_1jtpy_1284"
|
|
4
|
+
"background": "awsui_background_hyvsj_ftcro_93",
|
|
5
|
+
"scrolling-background": "awsui_scrolling-background_hyvsj_ftcro_96",
|
|
6
|
+
"sticky-background": "awsui_sticky-background_hyvsj_ftcro_102",
|
|
7
|
+
"has-sticky-notifications": "awsui_has-sticky-notifications_hyvsj_ftcro_110",
|
|
8
|
+
"breadcrumbs": "awsui_breadcrumbs_hyvsj_ftcro_123",
|
|
9
|
+
"has-sticky-background": "awsui_has-sticky-background_hyvsj_ftcro_133",
|
|
10
|
+
"drawers-container": "awsui_drawers-container_hyvsj_ftcro_145",
|
|
11
|
+
"has-open-drawer": "awsui_has-open-drawer_hyvsj_ftcro_156",
|
|
12
|
+
"disable-body-scroll": "awsui_disable-body-scroll_hyvsj_ftcro_191",
|
|
13
|
+
"drawers-desktop-triggers-container": "awsui_drawers-desktop-triggers-container_hyvsj_ftcro_196",
|
|
14
|
+
"has-multiple-triggers": "awsui_has-multiple-triggers_hyvsj_ftcro_215",
|
|
15
|
+
"drawers-mobile-triggers-container": "awsui_drawers-mobile-triggers-container_hyvsj_ftcro_247",
|
|
16
|
+
"drawers-trigger-content": "awsui_drawers-trigger-content_hyvsj_ftcro_251",
|
|
17
|
+
"drawers-trigger-overflow": "awsui_drawers-trigger-overflow_hyvsj_ftcro_277",
|
|
18
|
+
"drawers-trigger": "awsui_drawers-trigger_hyvsj_ftcro_251",
|
|
19
|
+
"drawer": "awsui_drawer_hyvsj_ftcro_145",
|
|
20
|
+
"drawer-close-button": "awsui_drawer-close-button_hyvsj_ftcro_308",
|
|
21
|
+
"drawer-content": "awsui_drawer-content_hyvsj_ftcro_313",
|
|
22
|
+
"drawer-slider": "awsui_drawer-slider_hyvsj_ftcro_318",
|
|
23
|
+
"is-drawer-open": "awsui_is-drawer-open_hyvsj_ftcro_325",
|
|
24
|
+
"content": "awsui_content_hyvsj_ftcro_350",
|
|
25
|
+
"layout": "awsui_layout_hyvsj_ftcro_371",
|
|
26
|
+
"has-max-content-width": "awsui_has-max-content-width_hyvsj_ftcro_454",
|
|
27
|
+
"content-type-dashboard": "awsui_content-type-dashboard_hyvsj_ftcro_469",
|
|
28
|
+
"is-overlap-disabled": "awsui_is-overlap-disabled_hyvsj_ftcro_486",
|
|
29
|
+
"has-content-gap-left": "awsui_has-content-gap-left_hyvsj_ftcro_518",
|
|
30
|
+
"has-content-gap-right": "awsui_has-content-gap-right_hyvsj_ftcro_521",
|
|
31
|
+
"content-first-child-notifications": "awsui_content-first-child-notifications_hyvsj_ftcro_531",
|
|
32
|
+
"has-breadcrumbs": "awsui_has-breadcrumbs_hyvsj_ftcro_534",
|
|
33
|
+
"content-first-child-header": "awsui_content-first-child-header_hyvsj_ftcro_537",
|
|
34
|
+
"has-header": "awsui_has-header_hyvsj_ftcro_537",
|
|
35
|
+
"content-first-child-main": "awsui_content-first-child-main_hyvsj_ftcro_558",
|
|
36
|
+
"disable-content-paddings": "awsui_disable-content-paddings_hyvsj_ftcro_558",
|
|
37
|
+
"has-split-panel": "awsui_has-split-panel_hyvsj_ftcro_601",
|
|
38
|
+
"split-panel-position-bottom": "awsui_split-panel-position-bottom_hyvsj_ftcro_601",
|
|
39
|
+
"block-body-scroll": "awsui_block-body-scroll_hyvsj_ftcro_617",
|
|
40
|
+
"unfocusable": "awsui_unfocusable_hyvsj_ftcro_622",
|
|
41
|
+
"container": "awsui_container_hyvsj_ftcro_632",
|
|
42
|
+
"is-navigation-open": "awsui_is-navigation-open_hyvsj_ftcro_657",
|
|
43
|
+
"is-tools-open": "awsui_is-tools-open_hyvsj_ftcro_660",
|
|
44
|
+
"is-split-panel-open": "awsui_is-split-panel-open_hyvsj_ftcro_660",
|
|
45
|
+
"split-panel-position-side": "awsui_split-panel-position-side_hyvsj_ftcro_660",
|
|
46
|
+
"mobile-toolbar": "awsui_mobile-toolbar_hyvsj_ftcro_669",
|
|
47
|
+
"mobile-toolbar-nav": "awsui_mobile-toolbar-nav_hyvsj_ftcro_685",
|
|
48
|
+
"mobile-toolbar-breadcrumbs": "awsui_mobile-toolbar-breadcrumbs_hyvsj_ftcro_689",
|
|
49
|
+
"mobile-toolbar-tools": "awsui_mobile-toolbar-tools_hyvsj_ftcro_693",
|
|
50
|
+
"navigation-container": "awsui_navigation-container_hyvsj_ftcro_702",
|
|
51
|
+
"show-navigation": "awsui_show-navigation_hyvsj_ftcro_746",
|
|
52
|
+
"animating": "awsui_animating_hyvsj_ftcro_768",
|
|
53
|
+
"showButtons": "awsui_showButtons_hyvsj_ftcro_1",
|
|
54
|
+
"navigation": "awsui_navigation_hyvsj_ftcro_702",
|
|
55
|
+
"openNavigation": "awsui_openNavigation_hyvsj_ftcro_1",
|
|
56
|
+
"animated-content": "awsui_animated-content_hyvsj_ftcro_830",
|
|
57
|
+
"hide-navigation": "awsui_hide-navigation_hyvsj_ftcro_839",
|
|
58
|
+
"notifications": "awsui_notifications_hyvsj_ftcro_849",
|
|
59
|
+
"sticky-notifications": "awsui_sticky-notifications_hyvsj_ftcro_855",
|
|
60
|
+
"split-panel-bottom": "awsui_split-panel-bottom_hyvsj_ftcro_872",
|
|
61
|
+
"position-bottom": "awsui_position-bottom_hyvsj_ftcro_919",
|
|
62
|
+
"openSplitPanelBottom": "awsui_openSplitPanelBottom_hyvsj_ftcro_1",
|
|
63
|
+
"split-panel-side": "awsui_split-panel-side_hyvsj_ftcro_948",
|
|
64
|
+
"position-side": "awsui_position-side_hyvsj_ftcro_961",
|
|
65
|
+
"tools-container": "awsui_tools-container_hyvsj_ftcro_980",
|
|
66
|
+
"tools": "awsui_tools_hyvsj_ftcro_980",
|
|
67
|
+
"openTools": "awsui_openTools_hyvsj_ftcro_1",
|
|
68
|
+
"has-tools-form-persistence": "awsui_has-tools-form-persistence_hyvsj_ftcro_1075",
|
|
69
|
+
"hide-tools": "awsui_hide-tools_hyvsj_ftcro_1085",
|
|
70
|
+
"show-tools": "awsui_show-tools_hyvsj_ftcro_1097",
|
|
71
|
+
"has-tools-form": "awsui_has-tools-form_hyvsj_ftcro_1075",
|
|
72
|
+
"trigger-badge-wrapper": "awsui_trigger-badge-wrapper_hyvsj_ftcro_1157",
|
|
73
|
+
"trigger": "awsui_trigger_hyvsj_ftcro_1157",
|
|
74
|
+
"selected": "awsui_selected_hyvsj_ftcro_1221",
|
|
75
|
+
"badge": "awsui_badge_hyvsj_ftcro_1241",
|
|
76
|
+
"trigger-wrapper": "awsui_trigger-wrapper_hyvsj_ftcro_1245",
|
|
77
|
+
"dot": "awsui_dot_hyvsj_ftcro_1251"
|
|
79
78
|
};
|
|
80
79
|
|