@cloudscape-design/components 3.0.775 → 3.0.777
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/test-classes/styles.css.js +22 -20
- package/app-layout/test-classes/styles.scoped.css +28 -20
- package/app-layout/test-classes/styles.selectors.js +22 -20
- package/app-layout/visual-refresh/drawers.d.ts.map +1 -1
- package/app-layout/visual-refresh/drawers.js +5 -5
- package/app-layout/visual-refresh/drawers.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/index.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/index.js +1 -0
- package/app-layout/visual-refresh-toolbar/index.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/split-panel/styles.css.js +1 -1
- package/app-layout/visual-refresh-toolbar/split-panel/styles.scoped.css +2 -1
- package/app-layout/visual-refresh-toolbar/split-panel/styles.selectors.js +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/drawer-triggers.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.d.ts.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js +7 -7
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/index.js.map +1 -1
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.css.js +7 -9
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.scoped.css +19 -27
- package/app-layout/visual-refresh-toolbar/toolbar/trigger-button/styles.selectors.js +7 -9
- package/area-chart/internal.d.ts.map +1 -1
- package/area-chart/internal.js +1 -0
- package/area-chart/internal.js.map +1 -1
- package/area-chart/model/use-chart-model.d.ts +2 -1
- package/area-chart/model/use-chart-model.d.ts.map +1 -1
- package/area-chart/model/use-chart-model.js +2 -2
- package/area-chart/model/use-chart-model.js.map +1 -1
- package/internal/components/tooltip/index.d.ts +2 -1
- package/internal/components/tooltip/index.d.ts.map +1 -1
- package/internal/components/tooltip/index.js +2 -2
- package/internal/components/tooltip/index.js.map +1 -1
- package/internal/environment.js +1 -1
- package/internal/environment.json +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/popover/container.d.ts +2 -1
- package/popover/container.d.ts.map +1 -1
- package/popover/container.js +5 -4
- package/popover/container.js.map +1 -1
- package/popover/interfaces.d.ts +4 -0
- package/popover/interfaces.d.ts.map +1 -1
- package/popover/interfaces.js.map +1 -1
- package/popover/use-popover-position.d.ts +3 -1
- package/popover/use-popover-position.d.ts.map +1 -1
- package/popover/use-popover-position.js +21 -5
- package/popover/use-popover-position.js.map +1 -1
- package/popover/utils/positions.d.ts +2 -1
- package/popover/utils/positions.d.ts.map +1 -1
- package/popover/utils/positions.js +6 -0
- package/popover/utils/positions.js.map +1 -1
- package/prompt-input/interfaces.d.ts +16 -0
- package/prompt-input/interfaces.d.ts.map +1 -1
- package/prompt-input/interfaces.js.map +1 -1
- package/prompt-input/internal.d.ts.map +1 -1
- package/prompt-input/internal.js +28 -11
- package/prompt-input/internal.js.map +1 -1
- package/prompt-input/styles.css.js +14 -8
- package/prompt-input/styles.scoped.css +264 -68
- package/prompt-input/styles.selectors.js +14 -8
- package/prompt-input/test-classes/styles.css.js +5 -3
- package/prompt-input/test-classes/styles.scoped.css +11 -3
- package/prompt-input/test-classes/styles.selectors.js +5 -3
- package/select/parts/item.d.ts.map +1 -1
- package/select/parts/item.js +1 -1
- package/select/parts/item.js.map +1 -1
- package/select/parts/multiselect-item.d.ts.map +1 -1
- package/select/parts/multiselect-item.js +1 -1
- package/select/parts/multiselect-item.js.map +1 -1
- package/split-panel/implementation.js +1 -1
- package/split-panel/implementation.js.map +1 -1
- package/split-panel/side.d.ts.map +1 -1
- package/split-panel/side.js +3 -1
- package/split-panel/side.js.map +1 -1
- package/split-panel/styles.css.js +26 -26
- package/split-panel/styles.scoped.css +46 -43
- package/split-panel/styles.selectors.js +26 -26
- package/test-utils/dom/app-layout/index.d.ts +2 -0
- package/test-utils/dom/app-layout/index.js +6 -0
- package/test-utils/dom/app-layout/index.js.map +1 -1
- package/test-utils/dom/prompt-input/index.d.ts +2 -0
- package/test-utils/dom/prompt-input/index.js +6 -0
- package/test-utils/dom/prompt-input/index.js.map +1 -1
- package/test-utils/selectors/app-layout/index.d.ts +2 -0
- package/test-utils/selectors/app-layout/index.js +6 -0
- package/test-utils/selectors/app-layout/index.js.map +1 -1
- package/test-utils/selectors/prompt-input/index.d.ts +2 -0
- package/test-utils/selectors/prompt-input/index.js +6 -0
- package/test-utils/selectors/prompt-input/index.js.map +1 -1
- package/test-utils/tsconfig.tsbuildinfo +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../../src/split-panel/implementation.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAE/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAm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Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useAppLayoutToolbarEnabled } from '../app-layout/utils/feature-flags';\nimport { SizeControlProps } from '../app-layout/utils/interfaces';\nimport { useKeyboardEvents } from '../app-layout/utils/use-keyboard-events';\nimport { usePointerEvents } from '../app-layout/utils/use-pointer-events';\nimport { InternalButton } from '../button/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport PanelResizeHandle from '../internal/components/panel-resize-handle';\nimport { useSplitPanelContext } from '../internal/context/split-panel-context';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport globalVars from '../internal/styles/global-vars';\nimport { createWidgetizedForwardRef } from '../internal/widgets';\nimport { SplitPanelContentBottom } from './bottom';\nimport { SplitPanelProps } from './interfaces';\nimport PreferencesModal from './preferences-modal';\nimport { SplitPanelContentSide } from './side';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\nexport { SplitPanelProps };\n\nexport const SplitPanelImplementation = React.forwardRef<HTMLElement, SplitPanelProps>(\n (\n { header, children, hidePreferencesButton = false, closeBehavior = 'collapse', i18nStrings = {}, ...restProps },\n __internalRootRef\n ) => {\n const isRefresh = useVisualRefresh();\n const isToolbar = useAppLayoutToolbarEnabled();\n\n const {\n position,\n topOffset,\n bottomOffset,\n rightOffset,\n contentWidthStyles,\n isOpen,\n isForcedPosition,\n onPreferencesChange,\n onResize,\n onToggle,\n size,\n relativeSize,\n setSplitPanelToggle,\n refs,\n } = useSplitPanelContext();\n const baseProps = getBaseProps(restProps);\n const [isPreferencesOpen, setPreferencesOpen] = useState<boolean>(false);\n\n const appLayoutMaxWidth = isRefresh && position === 'bottom' ? contentWidthStyles : undefined;\n\n const openButtonAriaLabel = i18nStrings.openButtonAriaLabel;\n useEffect(() => {\n setSplitPanelToggle({ displayed: closeBehavior === 'collapse', ariaLabel: openButtonAriaLabel });\n }, [setSplitPanelToggle, openButtonAriaLabel, closeBehavior]);\n\n const splitPanelRefObject = useRef<HTMLDivElement>(null);\n\n const sizeControlProps: SizeControlProps = {\n position,\n panelRef: splitPanelRefObject,\n handleRef: refs.slider,\n onResize,\n hasTransitions: true,\n };\n const onSliderPointerDown = usePointerEvents(sizeControlProps);\n const onKeyDown = useKeyboardEvents(sizeControlProps);\n\n const contentStyle = {\n [globalVars.stickyVerticalTopOffset]: topOffset,\n [globalVars.stickyVerticalBottomOffset]: bottomOffset,\n };\n\n const panelHeaderId = useUniqueId('split-panel-header');\n\n const wrappedHeader = (\n <div className={clsx(styles.header, isToolbar && styles['with-toolbar'])} style={appLayoutMaxWidth}>\n <h2 className={clsx(styles['header-text'], testUtilStyles['header-text'])} id={panelHeaderId}>\n {header}\n </h2>\n <div className={styles['header-actions']}>\n {!hidePreferencesButton && isOpen && (\n <>\n <InternalButton\n className={testUtilStyles['preferences-button']}\n iconName=\"settings\"\n variant=\"icon\"\n onClick={() => setPreferencesOpen(true)}\n formAction=\"none\"\n ariaLabel={i18nStrings.preferencesTitle}\n ref={refs.preferences}\n />\n <span className={styles.divider} />\n </>\n )}\n\n {isOpen ? (\n <InternalButton\n className={testUtilStyles['close-button']}\n iconName={\n isRefresh && closeBehavior === 'collapse'\n ? position === 'side'\n ? 'angle-right'\n : 'angle-down'\n : 'close'\n }\n variant=\"icon\"\n onClick={onToggle}\n formAction=\"none\"\n ariaLabel={i18nStrings.closeButtonAriaLabel}\n ariaExpanded={isOpen}\n />\n ) : position === 'side' ? null : (\n <InternalButton\n className={testUtilStyles['open-button']}\n iconName=\"angle-up\"\n variant=\"icon\"\n formAction=\"none\"\n ariaLabel={i18nStrings.openButtonAriaLabel}\n ref={refs.toggle}\n ariaExpanded={isOpen}\n />\n )}\n </div>\n </div>\n );\n\n const resizeHandle = (\n <PanelResizeHandle\n ref={refs.slider}\n className={testUtilStyles.slider}\n ariaLabel={i18nStrings.resizeHandleAriaLabel}\n // Allows us to use the logical left/right keys to move the slider left/right,\n // but match aria keyboard behavior of using left/right to decrease/increase\n // the slider value.\n ariaValuenow={position === 'bottom' ? relativeSize : 100 - relativeSize}\n position={position}\n onKeyDown={onKeyDown}\n onPointerDown={onSliderPointerDown}\n />\n );\n\n /*\n This effect forces the browser to recalculate the layout\n whenever the split panel might have moved.\n\n This is needed as a workaround for a bug in Safari, which does\n not automatically calculate the new position of the split panel\n _content_ when the split panel moves.\n */\n useLayoutEffect(() => {\n const root = splitPanelRefObject.current;\n\n if (root) {\n const property = 'transform';\n const temporaryValue = 'translateZ(0)';\n\n const valueBefore = root.style[property];\n root.style[property] = temporaryValue;\n\n // This line forces the browser to recalculate the layout\n void root.offsetHeight;\n\n root.style[property] = valueBefore;\n }\n }, [rightOffset, __internalRootRef]);\n\n const mergedRef = useMergeRefs(splitPanelRefObject, __internalRootRef);\n\n if (closeBehavior === 'hide' && !isOpen) {\n return <></>;\n }\n\n /**\n * The AppLayout factor moved the circular buttons out of the\n * SplitPanel and into the Tools component. This conditional\n * is still needed for the early return to prevent execution\n * of the following code.\n */\n if (isRefresh && !isToolbar && !isOpen && position === 'side') {\n return <></>;\n }\n\n return (\n <>\n {position === 'side' && (\n <SplitPanelContentSide\n style={contentStyle}\n resizeHandle={resizeHandle}\n baseProps={baseProps}\n isOpen={isOpen}\n splitPanelRef={mergedRef}\n cappedSize={size}\n onToggle={onToggle}\n openButtonAriaLabel={openButtonAriaLabel}\n toggleRef={refs.toggle}\n header={wrappedHeader}\n panelHeaderId={panelHeaderId}\n >\n {children}\n </SplitPanelContentSide>\n )}\n\n {position === 'bottom' && (\n <SplitPanelContentBottom\n style={contentStyle}\n resizeHandle={resizeHandle}\n baseProps={baseProps}\n isOpen={isOpen}\n splitPanelRef={mergedRef}\n cappedSize={size}\n onToggle={onToggle}\n header={wrappedHeader}\n panelHeaderId={panelHeaderId}\n appLayoutMaxWidth={appLayoutMaxWidth}\n >\n {children}\n </SplitPanelContentBottom>\n )}\n {isPreferencesOpen && (\n <PreferencesModal\n visible={true}\n preferences={{ position }}\n disabledSidePosition={position === 'bottom' && isForcedPosition}\n isRefresh={isRefresh}\n i18nStrings={{\n header: i18nStrings.preferencesTitle,\n confirm: i18nStrings.preferencesConfirm,\n cancel: i18nStrings.preferencesCancel,\n positionLabel: i18nStrings.preferencesPositionLabel,\n positionDescription: i18nStrings.preferencesPositionDescription,\n positionBottom: i18nStrings.preferencesPositionBottom,\n positionSide: i18nStrings.preferencesPositionSide,\n }}\n onConfirm={preferences => {\n onPreferencesChange({ ...preferences });\n setPreferencesOpen(false);\n }}\n onDismiss={() => {\n setPreferencesOpen(false);\n }}\n />\n )}\n </>\n );\n }\n);\n\nexport const createWidgetizedSplitPanel = createWidgetizedForwardRef<\n SplitPanelProps,\n HTMLElement,\n typeof SplitPanelImplementation\n>(SplitPanelImplementation);\n"]}
|
|
1
|
+
{"version":3,"file":"implementation.js","sourceRoot":"","sources":["../../../src/split-panel/implementation.tsx"],"names":[],"mappings":";AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAE/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAC1E,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,iBAAiB,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,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EF,MAAM,CAAC,MAAM,0BAA0B,GAAG,0BAA0B,CAIlE,wBAAwB,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport clsx from 'clsx';\n\nimport { useAppLayoutToolbarEnabled } from '../app-layout/utils/feature-flags';\nimport { SizeControlProps } from '../app-layout/utils/interfaces';\nimport { useKeyboardEvents } from '../app-layout/utils/use-keyboard-events';\nimport { usePointerEvents } from '../app-layout/utils/use-pointer-events';\nimport { InternalButton } from '../button/internal';\nimport { getBaseProps } from '../internal/base-component';\nimport PanelResizeHandle from '../internal/components/panel-resize-handle';\nimport { useSplitPanelContext } from '../internal/context/split-panel-context';\nimport { useMergeRefs } from '../internal/hooks/use-merge-refs';\nimport { useUniqueId } from '../internal/hooks/use-unique-id';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport globalVars from '../internal/styles/global-vars';\nimport { createWidgetizedForwardRef } from '../internal/widgets';\nimport { SplitPanelContentBottom } from './bottom';\nimport { SplitPanelProps } from './interfaces';\nimport PreferencesModal from './preferences-modal';\nimport { SplitPanelContentSide } from './side';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\nexport { SplitPanelProps };\n\nexport const SplitPanelImplementation = React.forwardRef<HTMLElement, SplitPanelProps>(\n (\n { header, children, hidePreferencesButton = false, closeBehavior = 'collapse', i18nStrings = {}, ...restProps },\n __internalRootRef\n ) => {\n const isRefresh = useVisualRefresh();\n const isToolbar = useAppLayoutToolbarEnabled();\n\n const {\n position,\n topOffset,\n bottomOffset,\n rightOffset,\n contentWidthStyles,\n isOpen,\n isForcedPosition,\n onPreferencesChange,\n onResize,\n onToggle,\n size,\n relativeSize,\n setSplitPanelToggle,\n refs,\n } = useSplitPanelContext();\n const baseProps = getBaseProps(restProps);\n const [isPreferencesOpen, setPreferencesOpen] = useState<boolean>(false);\n\n const appLayoutMaxWidth = isRefresh && position === 'bottom' ? contentWidthStyles : undefined;\n\n const openButtonAriaLabel = i18nStrings.openButtonAriaLabel;\n useEffect(() => {\n setSplitPanelToggle({ displayed: closeBehavior === 'collapse', ariaLabel: openButtonAriaLabel });\n }, [setSplitPanelToggle, openButtonAriaLabel, closeBehavior]);\n\n const splitPanelRefObject = useRef<HTMLDivElement>(null);\n\n const sizeControlProps: SizeControlProps = {\n position,\n panelRef: splitPanelRefObject,\n handleRef: refs.slider,\n onResize,\n hasTransitions: true,\n };\n const onSliderPointerDown = usePointerEvents(sizeControlProps);\n const onKeyDown = useKeyboardEvents(sizeControlProps);\n\n const contentStyle = {\n [globalVars.stickyVerticalTopOffset]: topOffset,\n [globalVars.stickyVerticalBottomOffset]: bottomOffset,\n };\n\n const panelHeaderId = useUniqueId('split-panel-header');\n\n const wrappedHeader = (\n <div className={clsx(styles.header, isToolbar && styles['with-toolbar'])} style={appLayoutMaxWidth}>\n <h2 className={clsx(styles['header-text'], testUtilStyles['header-text'])} id={panelHeaderId}>\n {header}\n </h2>\n <div className={styles['header-actions']}>\n {!hidePreferencesButton && isOpen && (\n <>\n <InternalButton\n className={testUtilStyles['preferences-button']}\n iconName=\"settings\"\n variant=\"icon\"\n onClick={() => setPreferencesOpen(true)}\n formAction=\"none\"\n ariaLabel={i18nStrings.preferencesTitle}\n ref={refs.preferences}\n />\n <span className={styles.divider} />\n </>\n )}\n\n {isOpen ? (\n <InternalButton\n className={testUtilStyles['close-button']}\n iconName={\n isRefresh && closeBehavior === 'collapse'\n ? position === 'side'\n ? 'angle-right'\n : 'angle-down'\n : 'close'\n }\n variant=\"icon\"\n onClick={onToggle}\n formAction=\"none\"\n ariaLabel={i18nStrings.closeButtonAriaLabel}\n ariaExpanded={isOpen}\n />\n ) : isToolbar || position === 'side' ? null : (\n <InternalButton\n className={testUtilStyles['open-button']}\n iconName=\"angle-up\"\n variant=\"icon\"\n formAction=\"none\"\n ariaLabel={i18nStrings.openButtonAriaLabel}\n ref={refs.toggle}\n ariaExpanded={isOpen}\n />\n )}\n </div>\n </div>\n );\n\n const resizeHandle = (\n <PanelResizeHandle\n ref={refs.slider}\n className={testUtilStyles.slider}\n ariaLabel={i18nStrings.resizeHandleAriaLabel}\n // Allows us to use the logical left/right keys to move the slider left/right,\n // but match aria keyboard behavior of using left/right to decrease/increase\n // the slider value.\n ariaValuenow={position === 'bottom' ? relativeSize : 100 - relativeSize}\n position={position}\n onKeyDown={onKeyDown}\n onPointerDown={onSliderPointerDown}\n />\n );\n\n /*\n This effect forces the browser to recalculate the layout\n whenever the split panel might have moved.\n\n This is needed as a workaround for a bug in Safari, which does\n not automatically calculate the new position of the split panel\n _content_ when the split panel moves.\n */\n useLayoutEffect(() => {\n const root = splitPanelRefObject.current;\n\n if (root) {\n const property = 'transform';\n const temporaryValue = 'translateZ(0)';\n\n const valueBefore = root.style[property];\n root.style[property] = temporaryValue;\n\n // This line forces the browser to recalculate the layout\n void root.offsetHeight;\n\n root.style[property] = valueBefore;\n }\n }, [rightOffset, __internalRootRef]);\n\n const mergedRef = useMergeRefs(splitPanelRefObject, __internalRootRef);\n\n if (closeBehavior === 'hide' && !isOpen) {\n return <></>;\n }\n\n /**\n * The AppLayout factor moved the circular buttons out of the\n * SplitPanel and into the Tools component. This conditional\n * is still needed for the early return to prevent execution\n * of the following code.\n */\n if (isRefresh && !isToolbar && !isOpen && position === 'side') {\n return <></>;\n }\n\n return (\n <>\n {position === 'side' && (\n <SplitPanelContentSide\n style={contentStyle}\n resizeHandle={resizeHandle}\n baseProps={baseProps}\n isOpen={isOpen}\n splitPanelRef={mergedRef}\n cappedSize={size}\n onToggle={onToggle}\n openButtonAriaLabel={openButtonAriaLabel}\n toggleRef={refs.toggle}\n header={wrappedHeader}\n panelHeaderId={panelHeaderId}\n >\n {children}\n </SplitPanelContentSide>\n )}\n\n {position === 'bottom' && (\n <SplitPanelContentBottom\n style={contentStyle}\n resizeHandle={resizeHandle}\n baseProps={baseProps}\n isOpen={isOpen}\n splitPanelRef={mergedRef}\n cappedSize={size}\n onToggle={onToggle}\n header={wrappedHeader}\n panelHeaderId={panelHeaderId}\n appLayoutMaxWidth={appLayoutMaxWidth}\n >\n {children}\n </SplitPanelContentBottom>\n )}\n {isPreferencesOpen && (\n <PreferencesModal\n visible={true}\n preferences={{ position }}\n disabledSidePosition={position === 'bottom' && isForcedPosition}\n isRefresh={isRefresh}\n i18nStrings={{\n header: i18nStrings.preferencesTitle,\n confirm: i18nStrings.preferencesConfirm,\n cancel: i18nStrings.preferencesCancel,\n positionLabel: i18nStrings.preferencesPositionLabel,\n positionDescription: i18nStrings.preferencesPositionDescription,\n positionBottom: i18nStrings.preferencesPositionBottom,\n positionSide: i18nStrings.preferencesPositionSide,\n }}\n onConfirm={preferences => {\n onPreferencesChange({ ...preferences });\n setPreferencesOpen(false);\n }}\n onDismiss={() => {\n setPreferencesOpen(false);\n }}\n />\n )}\n </>\n );\n }\n);\n\nexport const createWidgetizedSplitPanel = createWidgetizedForwardRef<\n SplitPanelProps,\n HTMLElement,\n typeof SplitPanelImplementation\n>(SplitPanelImplementation);\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side.d.ts","sourceRoot":"","sources":["../../../src/split-panel/side.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAInD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAMtD,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;CAC7C;AAED,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,aAAa,EACb,SAAS,EACT,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,QAAQ,GACT,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"side.d.ts","sourceRoot":"","sources":["../../../src/split-panel/side.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAInD,OAAO,EAAE,sBAAsB,EAAE,MAAM,cAAc,CAAC;AAMtD,UAAU,0BAA2B,SAAQ,sBAAsB;IACjE,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;CAC7C;AAED,wBAAgB,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,aAAa,EACb,SAAS,EACT,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,QAAQ,GACT,EAAE,0BAA0B,eA8D5B"}
|
package/split-panel/side.js
CHANGED
|
@@ -23,7 +23,9 @@ export function SplitPanelContentSide({ style, baseProps, splitPanelRef, toggleR
|
|
|
23
23
|
top: topOffset,
|
|
24
24
|
bottom: bottomOffset,
|
|
25
25
|
}, onClick: () => !isOpen && onToggle(), "aria-labelledby": panelHeaderId, role: "region" },
|
|
26
|
-
isOpen ? (React.createElement("div", { className: styles['slider-wrapper-side'] }, resizeHandle)) : (React.createElement(InternalButton, { className: clsx(testUtilStyles['open-button'], styles['open-button-side']), iconName: "angle-left", variant: "icon", formAction: "none", ariaLabel: openButtonAriaLabel, ariaExpanded: isOpen,
|
|
26
|
+
isOpen ? (React.createElement("div", { className: clsx(styles['slider-wrapper-side'], isToolbar && styles['with-toolbar']) }, resizeHandle)) : (React.createElement(InternalButton, { className: clsx(testUtilStyles['open-button'], styles['open-button-side']), iconName: "angle-left", variant: "icon", formAction: "none", ariaLabel: openButtonAriaLabel, ariaExpanded: isOpen,
|
|
27
|
+
//toggleRef should only be assigned when there is no other trigger-buttons
|
|
28
|
+
ref: isRefresh || isToolbar ? null : toggleRef })),
|
|
27
29
|
React.createElement("div", { className: clsx(styles['content-side'], isToolbar && styles['with-toolbar']), "aria-hidden": !isOpen, style: { width: isToolbar ? cappedSize : '0px' } },
|
|
28
30
|
React.createElement("div", { className: styles['pane-header-wrapper-side'] }, header),
|
|
29
31
|
React.createElement("div", { className: styles['pane-content-wrapper-side'] }, children)))));
|
package/split-panel/side.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"side.js","sourceRoot":"","sources":["../../../src/split-panel/side.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,0BAA0B,EAAE,MAAM,mCAAmC,CAAC;AAE/E,OAAO,cAAc,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAGrE,OAAO,YAAY,MAAM,oCAAoC,CAAC;AAC9D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAO1D,MAAM,UAAU,qBAAqB,CAAC,EACpC,KAAK,EACL,SAAS,EACT,aAAa,EACb,SAAS,EACT,MAAM,EACN,QAAQ,EACR,YAAY,EACZ,MAAM,EACN,UAAU,EACV,mBAAmB,EACnB,aAAa,EACb,QAAQ,GACmB;IAC3B,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,GAAG,oBAAoB,EAAE,CAAC;IAC3D,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,MAAM,SAAS,GAAG,0BAA0B,EAAE,CAAC;IAC/C,OAAO,CACL,6CACM,SAAS,IACb,SAAS,EAAE,IAAI,CACb,SAAS,CAAC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qB,CAAC,EACxC,KAAK,EAAE;gBACL,GAAG,EAAE,SAAS;gBACd,MAAM,EAAE,YAAY;aACrB,EACD,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,MAAM,IAAI,QAAQ,EAAE,qBACnB,aAAa,EAC9B,IAAI,EAAC,QAAQ;YAEZ,MAAM,CAAC,CAAC,CAAC,CACR,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,EAAE,SAAS,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC,IAAG,YAAY,CAAO,CAC/G,CAAC,CAAC,CAAC,CACF,oBAAC,cAAc,IACb,SAAS,EAAE,IAAI,CAAC,cAAc,CAAC,aAAa,CAAC,EAAE,MAAM,CAAC,kBAAkB,CAAC,CAAC,EAC1E,QAAQ,EAAC,YAAY,EACrB,OAAO,EAAC,MAAM,EACd,UAAU,EAAC,MAAM,EACjB,SAAS,EAAE,mBAAmB,EAC9B,YAAY,EAAE,MAAM;gBACpB,0EAA0E;gBAC1E,GAAG,EAAE,SAAS,IAAI,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,GAC9C,CACH;YACD,6BACE,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,EAAE,SAAS,IAAI,MAAM,CAAC,cAAc,CAAC,CAAC,iBAC/D,CAAC,MAAM,EACpB,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,EAAE;gBAEhD,6BAAK,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC,IAAG,MAAM,CAAO;gBAClE,6BAAK,SAAS,EAAE,MAAM,CAAC,2BAA2B,CAAC,IAAG,QAAQ,CAAO,CACjE,CACF,CACF,CACP,CAAC;AACJ,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';\n\nimport { useAppLayoutToolbarEnabled } from '../app-layout/utils/feature-flags';\nimport { ButtonProps } from '../button/interfaces';\nimport InternalButton from '../button/internal';\nimport { useSplitPanelContext } from '../internal/context/split-panel-context';\nimport { useVisualRefresh } from '../internal/hooks/use-visual-mode';\nimport { SplitPanelContentProps } from './interfaces';\n\nimport sharedStyles from '../app-layout/resize/styles.css.js';\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\ninterface SplitPanelContentSideProps extends SplitPanelContentProps {\n openButtonAriaLabel?: string;\n toggleRef: React.RefObject<ButtonProps.Ref>;\n}\n\nexport function SplitPanelContentSide({\n style,\n baseProps,\n splitPanelRef,\n toggleRef,\n header,\n children,\n resizeHandle,\n isOpen,\n cappedSize,\n openButtonAriaLabel,\n panelHeaderId,\n onToggle,\n}: SplitPanelContentSideProps) {\n const { topOffset, bottomOffset } = useSplitPanelContext();\n const isRefresh = useVisualRefresh();\n const isToolbar = useAppLayoutToolbarEnabled();\n return (\n <div\n {...baseProps}\n className={clsx(\n baseProps.className,\n styles.drawer,\n styles['position-side'],\n testUtilStyles.root,\n sharedStyles['with-motion'],\n {\n [testUtilStyles['open-position-side']]: isOpen,\n [styles['drawer-closed']]: !isOpen,\n [styles['with-toolbar']]: isToolbar,\n [styles.refresh]: isRefresh,\n }\n )}\n style={{\n width: isOpen ? cappedSize : isRefresh ? '0px' : undefined,\n maxWidth: isRefresh ? '100%' : undefined,\n ...style,\n }}\n ref={splitPanelRef}\n >\n <div\n className={styles['drawer-content-side']}\n style={{\n top: topOffset,\n bottom: bottomOffset,\n }}\n onClick={() => !isOpen && onToggle()}\n aria-labelledby={panelHeaderId}\n role=\"region\"\n >\n {isOpen ? (\n <div className={clsx(styles['slider-wrapper-side'], isToolbar && styles['with-toolbar'])}>{resizeHandle}</div>\n ) : (\n <InternalButton\n className={clsx(testUtilStyles['open-button'], styles['open-button-side'])}\n iconName=\"angle-left\"\n variant=\"icon\"\n formAction=\"none\"\n ariaLabel={openButtonAriaLabel}\n ariaExpanded={isOpen}\n //toggleRef should only be assigned when there is no other trigger-buttons\n ref={isRefresh || isToolbar ? null : toggleRef}\n />\n )}\n <div\n className={clsx(styles['content-side'], isToolbar && styles['with-toolbar'])}\n aria-hidden={!isOpen}\n style={{ width: isToolbar ? cappedSize : '0px' }} // to prevent text wrapping upon entering\n >\n <div className={styles['pane-header-wrapper-side']}>{header}</div>\n <div className={styles['pane-content-wrapper-side']}>{children}</div>\n </div>\n </div>\n </div>\n );\n}\n"]}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"drawer": "
|
|
5
|
-
"drawer-closed": "awsui_drawer-
|
|
6
|
-
"refresh": "
|
|
7
|
-
"drawer-content-side": "awsui_drawer-content-
|
|
8
|
-
"drawer-content-bottom": "awsui_drawer-content-
|
|
9
|
-
"position-bottom": "awsui_position-
|
|
10
|
-
"with-toolbar": "awsui_with-
|
|
11
|
-
"position-side": "awsui_position-
|
|
12
|
-
"slider-wrapper-bottom": "awsui_slider-wrapper-
|
|
13
|
-
"slider-wrapper-side": "awsui_slider-wrapper-
|
|
14
|
-
"open-button-side": "awsui_open-button-
|
|
15
|
-
"pane-header-wrapper-bottom": "awsui_pane-header-wrapper-
|
|
16
|
-
"drawer-mobile": "awsui_drawer-
|
|
17
|
-
"drawer-disable-content-paddings": "awsui_drawer-disable-content-
|
|
18
|
-
"content-bottom": "awsui_content-
|
|
19
|
-
"pane-bottom-center-align": "awsui_pane-bottom-center-
|
|
20
|
-
"pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-
|
|
21
|
-
"pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-
|
|
22
|
-
"content-bottom-max-width": "awsui_content-bottom-max-
|
|
23
|
-
"content-side": "awsui_content-
|
|
24
|
-
"pane-header-wrapper-side": "awsui_pane-header-wrapper-
|
|
25
|
-
"pane-content-wrapper-side": "awsui_pane-content-wrapper-
|
|
26
|
-
"header": "
|
|
27
|
-
"header-text": "awsui_header-
|
|
28
|
-
"header-actions": "awsui_header-
|
|
29
|
-
"divider": "
|
|
4
|
+
"drawer": "awsui_drawer_1r9lg_pjawk_149",
|
|
5
|
+
"drawer-closed": "awsui_drawer-closed_1r9lg_pjawk_189",
|
|
6
|
+
"refresh": "awsui_refresh_1r9lg_pjawk_189",
|
|
7
|
+
"drawer-content-side": "awsui_drawer-content-side_1r9lg_pjawk_194",
|
|
8
|
+
"drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_pjawk_210",
|
|
9
|
+
"position-bottom": "awsui_position-bottom_1r9lg_pjawk_217",
|
|
10
|
+
"with-toolbar": "awsui_with-toolbar_1r9lg_pjawk_234",
|
|
11
|
+
"position-side": "awsui_position-side_1r9lg_pjawk_249",
|
|
12
|
+
"slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_pjawk_258",
|
|
13
|
+
"slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_pjawk_269",
|
|
14
|
+
"open-button-side": "awsui_open-button-side_1r9lg_pjawk_283",
|
|
15
|
+
"pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_pjawk_292",
|
|
16
|
+
"drawer-mobile": "awsui_drawer-mobile_1r9lg_pjawk_302",
|
|
17
|
+
"drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_pjawk_306",
|
|
18
|
+
"content-bottom": "awsui_content-bottom_1r9lg_pjawk_318",
|
|
19
|
+
"pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_pjawk_337",
|
|
20
|
+
"pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_pjawk_342",
|
|
21
|
+
"pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_pjawk_346",
|
|
22
|
+
"content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_pjawk_350",
|
|
23
|
+
"content-side": "awsui_content-side_1r9lg_pjawk_355",
|
|
24
|
+
"pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_pjawk_367",
|
|
25
|
+
"pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_pjawk_376",
|
|
26
|
+
"header": "awsui_header_1r9lg_pjawk_387",
|
|
27
|
+
"header-text": "awsui_header-text_1r9lg_pjawk_400",
|
|
28
|
+
"header-actions": "awsui_header-actions_1r9lg_pjawk_413",
|
|
29
|
+
"divider": "awsui_divider_1r9lg_pjawk_421"
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -146,7 +146,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
146
146
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
147
147
|
SPDX-License-Identifier: Apache-2.0
|
|
148
148
|
*/
|
|
149
|
-
.
|
|
149
|
+
.awsui_drawer_1r9lg_pjawk_149:not(#\9) {
|
|
150
150
|
border-collapse: separate;
|
|
151
151
|
border-spacing: 0;
|
|
152
152
|
box-sizing: border-box;
|
|
@@ -187,35 +187,35 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
187
187
|
background-color: var(--color-background-layout-panel-content-du0fbw, #ffffff);
|
|
188
188
|
z-index: 840;
|
|
189
189
|
}
|
|
190
|
-
.awsui_drawer-
|
|
190
|
+
.awsui_drawer-closed_1r9lg_pjawk_189:not(#\9):not(.awsui_refresh_1r9lg_pjawk_189) {
|
|
191
191
|
cursor: pointer;
|
|
192
192
|
min-inline-size: 40px;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
|
-
.awsui_drawer-content-
|
|
195
|
+
.awsui_drawer-content-side_1r9lg_pjawk_194:not(#\9) {
|
|
196
196
|
display: flex;
|
|
197
197
|
align-items: center;
|
|
198
198
|
block-size: 100%;
|
|
199
199
|
overflow: auto;
|
|
200
200
|
}
|
|
201
|
-
.awsui_drawer-content-
|
|
201
|
+
.awsui_drawer-content-side_1r9lg_pjawk_194 > [aria-hidden=true]:not(#\9), .awsui_drawer-closed_1r9lg_pjawk_189.awsui_refresh_1r9lg_pjawk_189 > .awsui_drawer-content-side_1r9lg_pjawk_194:not(#\9) {
|
|
202
202
|
display: none;
|
|
203
203
|
}
|
|
204
|
-
.awsui_drawer-
|
|
204
|
+
.awsui_drawer-closed_1r9lg_pjawk_189:not(#\9):not(.awsui_refresh_1r9lg_pjawk_189) > .awsui_drawer-content-side_1r9lg_pjawk_194 {
|
|
205
205
|
inline-size: 40px;
|
|
206
206
|
}
|
|
207
|
-
.awsui_drawer-
|
|
207
|
+
.awsui_drawer-closed_1r9lg_pjawk_189:not(#\9):not(.awsui_refresh_1r9lg_pjawk_189) > .awsui_drawer-content-side_1r9lg_pjawk_194:hover {
|
|
208
208
|
background: var(--color-background-layout-panel-hover-1ftnua, #ebebf0);
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
:not(#\9):not(.awsui_drawer-
|
|
211
|
+
:not(#\9):not(.awsui_drawer-closed_1r9lg_pjawk_189) > .awsui_drawer-content-bottom_1r9lg_pjawk_210 {
|
|
212
212
|
overflow-y: auto;
|
|
213
213
|
position: absolute;
|
|
214
214
|
inset: 0;
|
|
215
215
|
clip-path: border-box;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.awsui_position-
|
|
218
|
+
.awsui_position-bottom_1r9lg_pjawk_217:not(#\9) {
|
|
219
219
|
position: fixed;
|
|
220
220
|
overflow-y: auto;
|
|
221
221
|
border-block-start: var(--border-panel-top-width-7uc0w9, 1px) solid var(--color-border-divider-panel-bottom-c62zji, #c6c6cd);
|
|
@@ -224,39 +224,39 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
224
224
|
SplitPanel is no longer in fixed position in the DOM.
|
|
225
225
|
*/
|
|
226
226
|
}
|
|
227
|
-
.awsui_position-
|
|
227
|
+
.awsui_position-bottom_1r9lg_pjawk_217:not(#\9):not(.awsui_refresh_1r9lg_pjawk_189) {
|
|
228
228
|
box-shadow: var(--shadow-split-bottom-5e389u, 0px -36px 36px -36px rgba(0, 7, 22, 0.1));
|
|
229
229
|
border-inline-start: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-panel-bottom-c62zji, #c6c6cd);
|
|
230
230
|
border-inline-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-panel-bottom-c62zji, #c6c6cd);
|
|
231
231
|
}
|
|
232
|
-
.awsui_position-
|
|
232
|
+
.awsui_position-bottom_1r9lg_pjawk_217.awsui_drawer-closed_1r9lg_pjawk_189:not(#\9) {
|
|
233
233
|
overflow: hidden;
|
|
234
234
|
}
|
|
235
|
-
.awsui_position-
|
|
235
|
+
.awsui_position-bottom_1r9lg_pjawk_217.awsui_drawer-closed_1r9lg_pjawk_189.awsui_with-toolbar_1r9lg_pjawk_234:not(#\9) {
|
|
236
236
|
block-size: 0px;
|
|
237
237
|
border-block: none;
|
|
238
238
|
border-inline: none;
|
|
239
239
|
}
|
|
240
|
-
.awsui_position-
|
|
240
|
+
.awsui_position-bottom_1r9lg_pjawk_217.awsui_drawer-closed_1r9lg_pjawk_189:not(#\9):hover {
|
|
241
241
|
background: var(--color-background-layout-panel-hover-1ftnua, #ebebf0);
|
|
242
242
|
}
|
|
243
|
-
.awsui_position-
|
|
243
|
+
.awsui_position-bottom_1r9lg_pjawk_217 > .awsui_drawer-content-bottom_1r9lg_pjawk_210 > [aria-hidden=true]:not(#\9) {
|
|
244
244
|
display: none;
|
|
245
245
|
}
|
|
246
|
-
.awsui_position-
|
|
246
|
+
.awsui_position-bottom_1r9lg_pjawk_217.awsui_refresh_1r9lg_pjawk_189:not(#\9) {
|
|
247
247
|
position: relative;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
.awsui_position-
|
|
250
|
+
.awsui_position-side_1r9lg_pjawk_249:not(#\9) {
|
|
251
251
|
border-block-start: none;
|
|
252
252
|
box-shadow: var(--shadow-split-side-ggdtnk, -1px 0px 1px 0px #e9ebed, -36px 6px 36px -36px rgba(0, 7, 22, 0.1));
|
|
253
253
|
block-size: 100%;
|
|
254
254
|
}
|
|
255
|
-
.awsui_position-
|
|
255
|
+
.awsui_position-side_1r9lg_pjawk_249.awsui_with-toolbar_1r9lg_pjawk_234:not(#\9) {
|
|
256
256
|
box-shadow: none;
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
.awsui_slider-wrapper-
|
|
259
|
+
.awsui_slider-wrapper-bottom_1r9lg_pjawk_258:not(#\9) {
|
|
260
260
|
position: absolute;
|
|
261
261
|
inset-block-start: 0;
|
|
262
262
|
inset-inline-start: 0;
|
|
@@ -267,7 +267,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
267
267
|
z-index: 2;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
.awsui_slider-wrapper-
|
|
270
|
+
.awsui_slider-wrapper-side_1r9lg_pjawk_269:not(#\9) {
|
|
271
271
|
position: absolute;
|
|
272
272
|
inset-inline-start: 0;
|
|
273
273
|
inset-block-start: 0;
|
|
@@ -277,8 +277,11 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
277
277
|
align-items: center;
|
|
278
278
|
z-index: 1;
|
|
279
279
|
}
|
|
280
|
+
.awsui_slider-wrapper-side_1r9lg_pjawk_269.awsui_with-toolbar_1r9lg_pjawk_234:not(#\9) {
|
|
281
|
+
position: unset;
|
|
282
|
+
}
|
|
280
283
|
|
|
281
|
-
.awsui_open-button-
|
|
284
|
+
.awsui_open-button-side_1r9lg_pjawk_283:not(#\9) {
|
|
282
285
|
flex: 0 0 auto;
|
|
283
286
|
align-self: flex-start;
|
|
284
287
|
box-sizing: border-box;
|
|
@@ -287,7 +290,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
287
290
|
margin-inline: auto;
|
|
288
291
|
}
|
|
289
292
|
|
|
290
|
-
.awsui_pane-header-wrapper-
|
|
293
|
+
.awsui_pane-header-wrapper-bottom_1r9lg_pjawk_292:not(#\9) {
|
|
291
294
|
position: sticky;
|
|
292
295
|
inset-block-start: 0;
|
|
293
296
|
display: flex;
|
|
@@ -297,60 +300,60 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
297
300
|
padding-block: 0;
|
|
298
301
|
padding-inline: var(--space-layout-content-horizontal-7l52k3, 24px);
|
|
299
302
|
}
|
|
300
|
-
.awsui_drawer-
|
|
303
|
+
.awsui_drawer-mobile_1r9lg_pjawk_302 > .awsui_drawer-content-bottom_1r9lg_pjawk_210 > .awsui_pane-header-wrapper-bottom_1r9lg_pjawk_292:not(#\9) {
|
|
301
304
|
padding-block: 0;
|
|
302
305
|
padding-inline: var(--space-l-t419sm, 20px);
|
|
303
306
|
}
|
|
304
|
-
.awsui_drawer-disable-content-
|
|
307
|
+
.awsui_drawer-disable-content-paddings_1r9lg_pjawk_306 > .awsui_drawer-content-bottom_1r9lg_pjawk_210 > .awsui_pane-header-wrapper-bottom_1r9lg_pjawk_292:not(#\9) {
|
|
305
308
|
padding-block: 0;
|
|
306
309
|
padding-inline: var(--space-l-t419sm, 20px);
|
|
307
310
|
}
|
|
308
|
-
:not(#\9):not(.awsui_drawer-
|
|
311
|
+
:not(#\9):not(.awsui_drawer-closed_1r9lg_pjawk_189) > .awsui_drawer-content-bottom_1r9lg_pjawk_210 > .awsui_pane-header-wrapper-bottom_1r9lg_pjawk_292 {
|
|
309
312
|
background-color: var(--color-background-layout-panel-content-du0fbw, #ffffff);
|
|
310
313
|
border-block-end: var(--border-panel-header-width-3w1py7, 1px) solid var(--color-border-panel-header-nnst86, #c6c6cd);
|
|
311
314
|
}
|
|
312
|
-
.awsui_with-
|
|
315
|
+
.awsui_with-toolbar_1r9lg_pjawk_234:not(#\9):not(.awsui_drawer-closed_1r9lg_pjawk_189) > .awsui_drawer-content-bottom_1r9lg_pjawk_210 > .awsui_pane-header-wrapper-bottom_1r9lg_pjawk_292 {
|
|
313
316
|
border-color: transparent;
|
|
314
317
|
}
|
|
315
318
|
|
|
316
|
-
.awsui_content-
|
|
319
|
+
.awsui_content-bottom_1r9lg_pjawk_318:not(#\9) {
|
|
317
320
|
padding-block: 0;
|
|
318
321
|
padding-inline: var(--space-layout-content-horizontal-7l52k3, 24px);
|
|
319
322
|
margin-block-start: var(--space-panel-split-top-q1pux4, 20px);
|
|
320
323
|
position: relative;
|
|
321
324
|
z-index: 0;
|
|
322
325
|
}
|
|
323
|
-
.awsui_with-
|
|
326
|
+
.awsui_with-toolbar_1r9lg_pjawk_234 > .awsui_drawer-content-bottom_1r9lg_pjawk_210 > .awsui_content-bottom_1r9lg_pjawk_318:not(#\9) {
|
|
324
327
|
margin-block-start: 0px;
|
|
325
328
|
}
|
|
326
|
-
.awsui_drawer-
|
|
329
|
+
.awsui_drawer-mobile_1r9lg_pjawk_302 > .awsui_drawer-content-bottom_1r9lg_pjawk_210 > .awsui_content-bottom_1r9lg_pjawk_318:not(#\9) {
|
|
327
330
|
padding-block: 0;
|
|
328
331
|
padding-inline: var(--space-l-t419sm, 20px);
|
|
329
332
|
}
|
|
330
|
-
.awsui_drawer-disable-content-
|
|
333
|
+
.awsui_drawer-disable-content-paddings_1r9lg_pjawk_306 > .awsui_drawer-content-bottom_1r9lg_pjawk_210 > .awsui_content-bottom_1r9lg_pjawk_318:not(#\9) {
|
|
331
334
|
padding-block: 0;
|
|
332
335
|
padding-inline: 0;
|
|
333
336
|
}
|
|
334
337
|
|
|
335
|
-
.awsui_pane-bottom-center-
|
|
338
|
+
.awsui_pane-bottom-center-align_1r9lg_pjawk_337:not(#\9) {
|
|
336
339
|
display: flex;
|
|
337
340
|
justify-content: center;
|
|
338
341
|
}
|
|
339
342
|
|
|
340
|
-
.awsui_pane-bottom-content-nav-
|
|
343
|
+
.awsui_pane-bottom-content-nav-padding_1r9lg_pjawk_342:not(#\9) {
|
|
341
344
|
padding-inline-start: calc(var(--space-layout-toggle-diameter-hb85rk, 36px) + 2 * var(--space-layout-toggle-padding-lcu6qi, 12px));
|
|
342
345
|
}
|
|
343
346
|
|
|
344
|
-
.awsui_pane-bottom-content-tools-
|
|
347
|
+
.awsui_pane-bottom-content-tools-padding_1r9lg_pjawk_346:not(#\9) {
|
|
345
348
|
padding-inline-end: calc(var(--space-layout-toggle-diameter-hb85rk, 36px) + 2 * var(--space-layout-toggle-padding-lcu6qi, 12px));
|
|
346
349
|
}
|
|
347
350
|
|
|
348
|
-
.awsui_content-bottom-max-
|
|
351
|
+
.awsui_content-bottom-max-width_1r9lg_pjawk_350:not(#\9) {
|
|
349
352
|
flex-grow: 1;
|
|
350
353
|
max-inline-size: 100%;
|
|
351
354
|
}
|
|
352
355
|
|
|
353
|
-
.awsui_content-
|
|
356
|
+
.awsui_content-side_1r9lg_pjawk_355:not(#\9) {
|
|
354
357
|
flex: auto;
|
|
355
358
|
align-self: flex-start;
|
|
356
359
|
box-sizing: border-box;
|
|
@@ -359,30 +362,30 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
359
362
|
inset-inline: 0;
|
|
360
363
|
block-size: 100%;
|
|
361
364
|
}
|
|
362
|
-
.awsui_content-
|
|
365
|
+
.awsui_content-side_1r9lg_pjawk_355.awsui_with-toolbar_1r9lg_pjawk_234:not(#\9) {
|
|
363
366
|
position: absolute;
|
|
364
367
|
}
|
|
365
|
-
.awsui_content-
|
|
368
|
+
.awsui_content-side_1r9lg_pjawk_355 > .awsui_pane-header-wrapper-side_1r9lg_pjawk_367:not(#\9) {
|
|
366
369
|
padding-block: 0;
|
|
367
370
|
padding-inline-end: var(--space-m-udix3p, 16px);
|
|
368
371
|
padding-inline-start: var(--space-panel-side-left-5t0who, 28px);
|
|
369
372
|
border-block-end: var(--border-panel-header-width-3w1py7, 1px) solid var(--color-border-panel-header-nnst86, #c6c6cd);
|
|
370
373
|
}
|
|
371
|
-
.awsui_content-
|
|
374
|
+
.awsui_content-side_1r9lg_pjawk_355.awsui_with-toolbar_1r9lg_pjawk_234 > .awsui_pane-header-wrapper-side_1r9lg_pjawk_367:not(#\9) {
|
|
372
375
|
border-color: transparent;
|
|
373
376
|
}
|
|
374
|
-
.awsui_content-
|
|
377
|
+
.awsui_content-side_1r9lg_pjawk_355 > .awsui_pane-content-wrapper-side_1r9lg_pjawk_376:not(#\9) {
|
|
375
378
|
padding-block: 0;
|
|
376
379
|
padding-inline-start: var(--space-panel-side-left-5t0who, 28px);
|
|
377
380
|
padding-inline-end: var(--space-panel-side-right-xofg51, 24px);
|
|
378
381
|
margin-block-start: var(--space-panel-split-top-q1pux4, 20px);
|
|
379
382
|
margin-block-end: var(--space-panel-split-bottom-qwdduf, 20px);
|
|
380
383
|
}
|
|
381
|
-
.awsui_content-
|
|
384
|
+
.awsui_content-side_1r9lg_pjawk_355.awsui_with-toolbar_1r9lg_pjawk_234 > .awsui_pane-content-wrapper-side_1r9lg_pjawk_376:not(#\9) {
|
|
382
385
|
margin-block-start: 0px;
|
|
383
386
|
}
|
|
384
387
|
|
|
385
|
-
.
|
|
388
|
+
.awsui_header_1r9lg_pjawk_387:not(#\9) {
|
|
386
389
|
display: flex;
|
|
387
390
|
flex: auto;
|
|
388
391
|
flex-direction: row;
|
|
@@ -392,10 +395,10 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
392
395
|
margin-block: var(--size-vertical-panel-icon-offset-wy8j08, 15px);
|
|
393
396
|
margin-inline: 0;
|
|
394
397
|
}
|
|
395
|
-
.
|
|
398
|
+
.awsui_header_1r9lg_pjawk_387.awsui_with-toolbar_1r9lg_pjawk_234:not(#\9) {
|
|
396
399
|
margin-block: 10px;
|
|
397
400
|
}
|
|
398
|
-
.awsui_header-
|
|
401
|
+
.awsui_header-text_1r9lg_pjawk_400:not(#\9) {
|
|
399
402
|
font-size: var(--font-panel-header-size-edjz3l, 18px);
|
|
400
403
|
line-height: var(--font-panel-header-line-height-kxi4u2, 22px);
|
|
401
404
|
font-weight: var(--font-weight-heading-l-f8711v, 700);
|
|
@@ -408,7 +411,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
408
411
|
margin-block-start: calc(var(--space-scaled-xxs-7597g1, 4px) + 1px);
|
|
409
412
|
}
|
|
410
413
|
|
|
411
|
-
.awsui_header-
|
|
414
|
+
.awsui_header-actions_1r9lg_pjawk_413:not(#\9) {
|
|
412
415
|
display: flex;
|
|
413
416
|
flex-direction: row;
|
|
414
417
|
justify-content: space-between;
|
|
@@ -416,7 +419,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
416
419
|
margin-inline-start: var(--space-xs-zb16t3, 8px);
|
|
417
420
|
}
|
|
418
421
|
|
|
419
|
-
.
|
|
422
|
+
.awsui_divider_1r9lg_pjawk_421:not(#\9) {
|
|
420
423
|
border-inline-end: var(--border-divider-section-width-1061zr, 1px) solid var(--color-border-divider-default-cx07f2, #c6c6cd);
|
|
421
424
|
margin-block: var(--space-scaled-xxs-7597g1, 4px);
|
|
422
425
|
margin-inline: var(--space-scaled-xs-26e2du, 8px);
|
|
@@ -2,31 +2,31 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"drawer": "
|
|
6
|
-
"drawer-closed": "awsui_drawer-
|
|
7
|
-
"refresh": "
|
|
8
|
-
"drawer-content-side": "awsui_drawer-content-
|
|
9
|
-
"drawer-content-bottom": "awsui_drawer-content-
|
|
10
|
-
"position-bottom": "awsui_position-
|
|
11
|
-
"with-toolbar": "awsui_with-
|
|
12
|
-
"position-side": "awsui_position-
|
|
13
|
-
"slider-wrapper-bottom": "awsui_slider-wrapper-
|
|
14
|
-
"slider-wrapper-side": "awsui_slider-wrapper-
|
|
15
|
-
"open-button-side": "awsui_open-button-
|
|
16
|
-
"pane-header-wrapper-bottom": "awsui_pane-header-wrapper-
|
|
17
|
-
"drawer-mobile": "awsui_drawer-
|
|
18
|
-
"drawer-disable-content-paddings": "awsui_drawer-disable-content-
|
|
19
|
-
"content-bottom": "awsui_content-
|
|
20
|
-
"pane-bottom-center-align": "awsui_pane-bottom-center-
|
|
21
|
-
"pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-
|
|
22
|
-
"pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-
|
|
23
|
-
"content-bottom-max-width": "awsui_content-bottom-max-
|
|
24
|
-
"content-side": "awsui_content-
|
|
25
|
-
"pane-header-wrapper-side": "awsui_pane-header-wrapper-
|
|
26
|
-
"pane-content-wrapper-side": "awsui_pane-content-wrapper-
|
|
27
|
-
"header": "
|
|
28
|
-
"header-text": "awsui_header-
|
|
29
|
-
"header-actions": "awsui_header-
|
|
30
|
-
"divider": "
|
|
5
|
+
"drawer": "awsui_drawer_1r9lg_pjawk_149",
|
|
6
|
+
"drawer-closed": "awsui_drawer-closed_1r9lg_pjawk_189",
|
|
7
|
+
"refresh": "awsui_refresh_1r9lg_pjawk_189",
|
|
8
|
+
"drawer-content-side": "awsui_drawer-content-side_1r9lg_pjawk_194",
|
|
9
|
+
"drawer-content-bottom": "awsui_drawer-content-bottom_1r9lg_pjawk_210",
|
|
10
|
+
"position-bottom": "awsui_position-bottom_1r9lg_pjawk_217",
|
|
11
|
+
"with-toolbar": "awsui_with-toolbar_1r9lg_pjawk_234",
|
|
12
|
+
"position-side": "awsui_position-side_1r9lg_pjawk_249",
|
|
13
|
+
"slider-wrapper-bottom": "awsui_slider-wrapper-bottom_1r9lg_pjawk_258",
|
|
14
|
+
"slider-wrapper-side": "awsui_slider-wrapper-side_1r9lg_pjawk_269",
|
|
15
|
+
"open-button-side": "awsui_open-button-side_1r9lg_pjawk_283",
|
|
16
|
+
"pane-header-wrapper-bottom": "awsui_pane-header-wrapper-bottom_1r9lg_pjawk_292",
|
|
17
|
+
"drawer-mobile": "awsui_drawer-mobile_1r9lg_pjawk_302",
|
|
18
|
+
"drawer-disable-content-paddings": "awsui_drawer-disable-content-paddings_1r9lg_pjawk_306",
|
|
19
|
+
"content-bottom": "awsui_content-bottom_1r9lg_pjawk_318",
|
|
20
|
+
"pane-bottom-center-align": "awsui_pane-bottom-center-align_1r9lg_pjawk_337",
|
|
21
|
+
"pane-bottom-content-nav-padding": "awsui_pane-bottom-content-nav-padding_1r9lg_pjawk_342",
|
|
22
|
+
"pane-bottom-content-tools-padding": "awsui_pane-bottom-content-tools-padding_1r9lg_pjawk_346",
|
|
23
|
+
"content-bottom-max-width": "awsui_content-bottom-max-width_1r9lg_pjawk_350",
|
|
24
|
+
"content-side": "awsui_content-side_1r9lg_pjawk_355",
|
|
25
|
+
"pane-header-wrapper-side": "awsui_pane-header-wrapper-side_1r9lg_pjawk_367",
|
|
26
|
+
"pane-content-wrapper-side": "awsui_pane-content-wrapper-side_1r9lg_pjawk_376",
|
|
27
|
+
"header": "awsui_header_1r9lg_pjawk_387",
|
|
28
|
+
"header-text": "awsui_header-text_1r9lg_pjawk_400",
|
|
29
|
+
"header-actions": "awsui_header-actions_1r9lg_pjawk_413",
|
|
30
|
+
"divider": "awsui_divider_1r9lg_pjawk_421"
|
|
31
31
|
};
|
|
32
32
|
|
|
@@ -20,4 +20,6 @@ export default class AppLayoutWrapper extends ComponentWrapper {
|
|
|
20
20
|
findDrawerTriggerById(id: string): ElementWrapper<HTMLButtonElement> | null;
|
|
21
21
|
findDrawersOverflowTrigger(): ButtonDropdownWrapper | null;
|
|
22
22
|
findActiveDrawerResizeHandle(): ElementWrapper | null;
|
|
23
|
+
findToolbar(): ElementWrapper | null;
|
|
24
|
+
findDrawerTriggerTooltip(): ElementWrapper | null;
|
|
23
25
|
}
|
|
@@ -59,6 +59,12 @@ class AppLayoutWrapper extends dom_1.ComponentWrapper {
|
|
|
59
59
|
findActiveDrawerResizeHandle() {
|
|
60
60
|
return this.findByClassName(styles_selectors_js_1.default['drawers-slider']);
|
|
61
61
|
}
|
|
62
|
+
findToolbar() {
|
|
63
|
+
return this.findByClassName(styles_selectors_js_1.default.toolbar);
|
|
64
|
+
}
|
|
65
|
+
findDrawerTriggerTooltip() {
|
|
66
|
+
return (0, dom_1.createWrapper)().findByClassName(styles_selectors_js_1.default['trigger-tooltip']);
|
|
67
|
+
}
|
|
62
68
|
}
|
|
63
69
|
exports.default = AppLayoutWrapper;
|
|
64
70
|
AppLayoutWrapper.rootSelector = styles_selectors_js_1.default.root;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/app-layout/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/app-layout/index.ts"],"names":[],"mappings":";;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,gEAAyG;AAEzG,wDAAuD;AACvD,gDAA+C;AAE/C,8FAAkF;AAClF,+FAA6F;AAE7F,MAAqB,gBAAiB,SAAQ,sBAAgB;IAG5D,cAAc;QACZ,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,UAAU,CAAE,CAAC;IAC1D,CAAC;IAED,oBAAoB;QAClB,OAAO,IAAI,CAAC,eAAe,CAAoB,6BAAc,CAAC,mBAAmB,CAAC,CAAE,CAAC;IACvF,CAAC;IAED,mBAAmB;QACjB,OAAO,IAAI,CAAC,eAAe,CAAoB,6BAAc,CAAC,kBAAkB,CAAC,CAAE,CAAC;IACtF,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,OAAO,CAAE,CAAC;IACvD,CAAC;IAED,iBAAiB;QACf,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,aAAa,CAAC,CAAC;IAC5D,CAAC;IAED,eAAe;QACb,OAAO,IAAI,C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,CAAC;IAED,WAAW;QACT,OAAO,IAAI,CAAC,eAAe,CAAC,6BAAc,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,wBAAwB;QACtB,OAAO,IAAA,mBAAa,GAAE,CAAC,eAAe,CAAC,6BAAc,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAC5E,CAAC;;AA7EH,mCA8EC;AA7EQ,6BAAY,GAAG,6BAAc,CAAC,IAAI,CAAC"}
|
|
@@ -3,6 +3,8 @@ export default class PromptInputWrapper extends ComponentWrapper {
|
|
|
3
3
|
static rootSelector: string;
|
|
4
4
|
findNativeTextarea(): ElementWrapper<HTMLTextAreaElement>;
|
|
5
5
|
findActionButton(): ElementWrapper<HTMLButtonElement>;
|
|
6
|
+
findSecondaryActions(): ElementWrapper<HTMLDivElement>;
|
|
7
|
+
findSecondaryContent(): ElementWrapper<HTMLDivElement>;
|
|
6
8
|
/**
|
|
7
9
|
* Gets the value of the component.
|
|
8
10
|
*
|
|
@@ -19,6 +19,12 @@ class PromptInputWrapper extends dom_1.ComponentWrapper {
|
|
|
19
19
|
findActionButton() {
|
|
20
20
|
return this.findByClassName(styles_selectors_js_1.default['action-button']);
|
|
21
21
|
}
|
|
22
|
+
findSecondaryActions() {
|
|
23
|
+
return this.findByClassName(styles_selectors_js_1.default['secondary-actions']);
|
|
24
|
+
}
|
|
25
|
+
findSecondaryContent() {
|
|
26
|
+
return this.findByClassName(styles_selectors_js_1.default['secondary-content']);
|
|
27
|
+
}
|
|
22
28
|
/**
|
|
23
29
|
* Gets the value of the component.
|
|
24
30
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/test-utils/dom/prompt-input/index.ts"],"names":[],"mappings":";;;;;;;;AAAA,qEAAqE;AACrE,sCAAsC;AACtC,qDAAgD;AAEhD,gEAAmG;AACnG,4EAAmE;AAEnE,gGAAoF;AAEpF,MAAqB,kBAAmB,SAAQ,sBAAgB;IAG9D,kB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G;IACM,gBAAgB;QACvB,OAAO,IAAI,CAAC,kBAAkB,EAAE,CAAC,UAAU,EAAE,CAAC,KAAK,CAAC;IACtD,CAAC;IAED;;;;OAIG;IACM,gBAAgB,CAAC,KAAa;QACrC,MAAM,OAAO,GAAwB,IAAI,CAAC,kBAAkB,EAAE,CAAC,UAAU,EAAE,CAAC;QAC5E,IAAA,eAAG,EAAC,GAAG,EAAE;YACP,qBAAQ,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,MAAM,EAAE,EAAE,KAAK,EAA4B,EAAE,CAAC,CAAC;QAC5E,CAAC,CAAC,CAAC;IACL,CAAC;;AArCM,+BAAY,GAAG,6BAAc,CAAC,IAAI,CAAC;AAuBjC;IAAR,aAAO;0DAEP;AAOQ;IAAR,aAAO;0DAKP;AAtCH,qCAuCC"}
|
|
@@ -20,4 +20,6 @@ export default class AppLayoutWrapper extends ComponentWrapper {
|
|
|
20
20
|
findDrawerTriggerById(id: string): ElementWrapper;
|
|
21
21
|
findDrawersOverflowTrigger(): ButtonDropdownWrapper;
|
|
22
22
|
findActiveDrawerResizeHandle(): ElementWrapper;
|
|
23
|
+
findToolbar(): ElementWrapper;
|
|
24
|
+
findDrawerTriggerTooltip(): ElementWrapper;
|
|
23
25
|
}
|
|
@@ -59,6 +59,12 @@ class AppLayoutWrapper extends selectors_1.ComponentWrapper {
|
|
|
59
59
|
findActiveDrawerResizeHandle() {
|
|
60
60
|
return this.findByClassName(styles_selectors_js_1.default['drawers-slider']);
|
|
61
61
|
}
|
|
62
|
+
findToolbar() {
|
|
63
|
+
return this.findByClassName(styles_selectors_js_1.default.toolbar);
|
|
64
|
+
}
|
|
65
|
+
findDrawerTriggerTooltip() {
|
|
66
|
+
return (0, selectors_1.createWrapper)().findByClassName(styles_selectors_js_1.default['trigger-tooltip']);
|
|
67
|
+
}
|
|
62
68
|
}
|
|
63
69
|
exports.default = AppLayoutWrapper;
|
|
64
70
|
AppLayoutWrapper.rootSelector = styles_selectors_js_1.default.root;
|