@alfalab/core-components-bottom-sheet 7.3.1 → 7.4.0
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/component.js +8 -7
- package/component.js.map +1 -1
- package/components/footer/default.css +2 -2
- package/components/footer/default.module.css.js +1 -1
- package/components/footer/index.css +2 -2
- package/components/footer/index.module.css.js +1 -1
- package/components/footer/inverted.css +2 -2
- package/components/footer/inverted.module.css.js +1 -1
- package/components/header/default.css +4 -4
- package/components/header/default.module.css.js +1 -1
- package/components/header/index.css +13 -13
- package/components/header/index.module.css.js +1 -1
- package/components/header/inverted.css +4 -4
- package/components/header/inverted.module.css.js +1 -1
- package/cssm/component.js +8 -7
- package/cssm/component.js.map +1 -1
- package/cssm/index.module.css +3 -0
- package/cssm/types.d.ts +19 -0
- package/default.css +4 -4
- package/default.module.css.js +1 -1
- package/esm/component.js +8 -7
- package/esm/component.js.map +1 -1
- package/esm/components/footer/default.css +2 -2
- package/esm/components/footer/default.module.css.js +1 -1
- package/esm/components/footer/index.css +2 -2
- package/esm/components/footer/index.module.css.js +1 -1
- package/esm/components/footer/inverted.css +2 -2
- package/esm/components/footer/inverted.module.css.js +1 -1
- package/esm/components/header/default.css +4 -4
- package/esm/components/header/default.module.css.js +1 -1
- package/esm/components/header/index.css +13 -13
- package/esm/components/header/index.module.css.js +1 -1
- package/esm/components/header/inverted.css +4 -4
- package/esm/components/header/inverted.module.css.js +1 -1
- package/esm/default.css +4 -4
- package/esm/default.module.css.js +1 -1
- package/esm/index.css +47 -44
- package/esm/index.module.css.js +1 -1
- package/esm/index.module.css.js.map +1 -1
- package/esm/inverted.css +4 -4
- package/esm/inverted.module.css.js +1 -1
- package/esm/types.d.ts +19 -0
- package/index.css +47 -44
- package/index.module.css.js +1 -1
- package/index.module.css.js.map +1 -1
- package/inverted.css +4 -4
- package/inverted.module.css.js +1 -1
- package/modern/component.js +4 -3
- package/modern/component.js.map +1 -1
- package/modern/components/footer/default.css +2 -2
- package/modern/components/footer/default.module.css.js +1 -1
- package/modern/components/footer/index.css +2 -2
- package/modern/components/footer/index.module.css.js +1 -1
- package/modern/components/footer/inverted.css +2 -2
- package/modern/components/footer/inverted.module.css.js +1 -1
- package/modern/components/header/default.css +4 -4
- package/modern/components/header/default.module.css.js +1 -1
- package/modern/components/header/index.css +13 -13
- package/modern/components/header/index.module.css.js +1 -1
- package/modern/components/header/inverted.css +4 -4
- package/modern/components/header/inverted.module.css.js +1 -1
- package/modern/default.css +4 -4
- package/modern/default.module.css.js +1 -1
- package/modern/index.css +47 -44
- package/modern/index.module.css.js +1 -1
- package/modern/index.module.css.js.map +1 -1
- package/modern/inverted.css +4 -4
- package/modern/inverted.module.css.js +1 -1
- package/modern/types.d.ts +19 -0
- package/moderncssm/component.js +4 -3
- package/moderncssm/component.js.map +1 -1
- package/moderncssm/index.module.css +4 -0
- package/moderncssm/types.d.ts +19 -0
- package/package.json +2 -2
- package/src/component.tsx +14 -1
- package/src/index.module.css +7 -0
- package/src/types.ts +23 -0
- package/types.d.ts +19 -0
package/modern/component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../src/component.tsx"],"sourcesContent":["import React, {\n type CSSProperties,\n forwardRef,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport { use100vh } from 'react-div-100vh';\nimport mergeRefs from 'react-merge-refs';\nimport {\n type SwipeCallback,\n type SwipeEventData,\n type TapCallback,\n useSwipeable,\n} from 'react-swipeable';\nimport { type HandledEvents } from 'react-swipeable/es/types';\nimport cn from 'classnames';\n\nimport { BaseModal, unlockScroll } from '@alfalab/core-components-base-modal';\nimport { fnUtils, getDataTestId, isClient, os } from '@alfalab/core-components-shared';\n\nimport { Footer } from './components/footer/Component';\nimport { Header, type HeaderProps } from './components/header/Component';\nimport { SwipeableBackdrop } from './components/swipeable-backdrop/Component';\nimport { horizontalDirections } from './consts/swipeConsts';\nimport { type ShouldSkipSwipingParams } from './types/swipeTypes';\nimport { useVisualViewportSize } from './hooks';\nimport { type BottomSheetProps } from './types';\nimport {\n CLOSE_OFFSET,\n convertPercentToNumber,\n MARKER_HEIGHT,\n SCROLL_OFFSET,\n SWIPE_VELOCITY,\n TIMEOUT,\n} from './utils';\n\nimport defaultColors from './default.module.css';\nimport styles from './index.module.css';\nimport invertedColors from './inverted.module.css';\n\nconst { isNil } = fnUtils;\n\nconst adjustContainerHeightDefault = (value: number) => value;\n\nconst colorStyles = {\n default: defaultColors,\n inverted: invertedColors,\n} as const;\n\nexport const BottomSheet = forwardRef<HTMLDivElement, BottomSheetProps>(\n // eslint-disable-next-line complexity\n (\n {\n open,\n title,\n container,\n usePortal,\n backgroundColor,\n titleSize = 'default',\n subtitle,\n actionButton,\n contentClassName,\n containerClassName,\n containerProps,\n headerClassName,\n headerContentClassName,\n footerClassName,\n addonClassName,\n closerClassName,\n backerClassName,\n modalClassName,\n modalWrapperClassName,\n className,\n leftAddons,\n rightAddons,\n bottomAddons,\n hasCloser,\n hasBacker,\n titleAlign = 'left',\n trimTitle,\n stickyHeader,\n stickyFooter = true,\n initialHeight = 'default',\n hideOverlay,\n hideScrollbar,\n hideHeader,\n disableOverlayClick,\n disableBlockingScroll,\n disableFocusLock,\n children,\n zIndex,\n transitionProps = {},\n magneticAreas: magneticAreasProp,\n initialActiveAreaIndex,\n dataTestId,\n swipeable = true,\n swipeableContent = true,\n swipeThreshold = 5,\n scrollLocked: scrollLockedProp,\n backdropProps,\n scrollableContainerRef = () => null,\n bottomSheetInstanceRef,\n sheetContainerRef = () => null,\n headerOffset = 24,\n adjustContainerHeight = adjustContainerHeightDefault,\n onClose,\n onBack,\n onMagnetize,\n onSwipeStart,\n onSwipeEnd,\n disableRestoreFocus,\n disableAutoFocus,\n disableEscapeKeyDown,\n keepMounted,\n onMagnetizeEnd,\n onOffsetChange,\n showSwipeMarker = true,\n swipeableMarker,\n swipeableMarkerClassName,\n backButtonProps,\n iOSLock = false,\n virtualKeyboard = false,\n colors = 'default',\n preventScrollOnSwipe,\n },\n ref,\n ) => {\n const windowHeight = use100vh() ?? 0;\n const visualViewportSize = useVisualViewportSize();\n let fullHeight = virtualKeyboard ? (visualViewportSize?.height ?? 0) : windowHeight;\n // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.\n const isFirstRender = fullHeight === 0;\n\n fullHeight = adjustContainerHeight(fullHeight);\n\n const initialIndexRef = useRef<number | undefined>(initialActiveAreaIndex);\n\n const magneticAreas = useMemo(() => {\n if (magneticAreasProp) {\n return magneticAreasProp.map((area) =>\n convertPercentToNumber(area, fullHeight, headerOffset),\n );\n }\n let iOSViewHeight = 0;\n\n if (isClient()) {\n if (document?.documentElement?.clientHeight) {\n iOSViewHeight = adjustContainerHeight(document.documentElement.clientHeight);\n } else {\n iOSViewHeight = window?.innerHeight;\n }\n }\n\n const viewHeight = os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;\n\n return [0, viewHeight - headerOffset];\n }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);\n\n const lastMagneticArea = magneticAreas[magneticAreas.length - 1];\n\n const [sheetOffset, setSheetOffset] = useState(0);\n const [backdropOpacity, setBackdropOpacity] = useState(1);\n const [activeAreaIdx, setActiveAreaIdx] = useState(-1);\n\n const [swipingInProgress, setSwipingInProgress] = useState<boolean | null>(null);\n const scrollOccurred = useRef<boolean>(false);\n const headerRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n const sheetHeight = useRef(0);\n const sheetRef = useRef<HTMLDivElement>(null);\n const scrollableContainer = useRef<HTMLDivElement | null>(null);\n\n const activeArea = magneticAreas[activeAreaIdx];\n const emptyHeader = !hasCloser && !leftAddons && !title && !hasBacker && !rightAddons;\n const titleIsReactElement = React.isValidElement(title);\n\n const colorStyle = colorStyles[colors];\n\n const headerProps: HeaderProps = {\n ...(titleIsReactElement\n ? { children: title }\n : { title: title ? title?.toString() : undefined }),\n scrollableParentRef: scrollableContainer,\n headerRef,\n headerOffset,\n colors,\n className: cn(headerClassName, colorStyle.hasContent),\n contentClassName: headerContentClassName,\n addonClassName,\n closerClassName,\n backButtonClassName: backerClassName,\n leftAddons,\n rightAddons,\n bottomAddons,\n hasCloser,\n hasBackButton: hasBacker,\n align: titleAlign,\n trim: trimTitle,\n sticky: stickyHeader,\n dataTestId: getDataTestId(dataTestId, 'header'),\n onBack,\n titleSize,\n subtitle,\n onClose,\n backButtonProps,\n };\n\n const startSwiping = (event: HandledEvents) => {\n setSwipingInProgress((p) => {\n if (!p) onSwipeStart?.(event);\n\n return true;\n });\n };\n\n const stopSwiping = (event: HandledEvents | null) => {\n setSwipingInProgress((p) => {\n if (p) onSwipeEnd?.(event);\n\n return false;\n });\n scrollOccurred.current = false;\n };\n\n const getBackdropOpacity = (offset: number): number => {\n const canClose = magneticAreas[0] === 0;\n const secondArea = magneticAreas[1];\n const isSecondArea = secondArea === activeArea;\n\n if (canClose && isSecondArea && sheetOffset > lastMagneticArea - secondArea) {\n const opacity = 1 - (offset - (lastMagneticArea - secondArea)) / secondArea;\n\n return Math.max(0, Number(opacity.toFixed(2)));\n }\n\n return 1;\n };\n\n const getSheetOffset = (deltaY: number): number => {\n let offset = lastMagneticArea - activeArea + deltaY;\n const maxOffset = magneticAreas[0] === 0 ? 0 : lastMagneticArea - magneticAreas[0];\n\n if (maxOffset) {\n offset = Math.min(maxOffset, offset);\n }\n\n return Math.max(0, Math.round(offset));\n };\n\n const getActiveAreaIndex = (area?: number) => magneticAreas.findIndex((a) => a === area);\n\n const setSheetHeight = () => {\n if (sheetRef.current) {\n sheetHeight.current = sheetRef.current.getBoundingClientRect().height - sheetOffset;\n }\n };\n\n const handleTransitionEnd = (event: React.TransitionEvent) => {\n setSheetHeight();\n\n if (event.propertyName === 'transform' && event.target === event.currentTarget) {\n onMagnetizeEnd?.(getActiveAreaIndex(activeArea));\n }\n };\n\n const scrollToArea = (idx: number) => {\n if (isFirstRender) {\n initialIndexRef.current = idx;\n\n return;\n }\n\n stopSwiping(null);\n const nextArea = magneticAreas[idx];\n const nextAreaIdx = getActiveAreaIndex(nextArea);\n\n if (nextArea === 0) {\n if (iOSLock) {\n unlockScroll();\n }\n onClose();\n\n return;\n }\n\n if (nextAreaIdx !== -1) {\n setActiveAreaIdx(nextAreaIdx);\n setSheetOffset(lastMagneticArea - nextArea);\n onMagnetize?.(nextAreaIdx);\n }\n };\n\n const magnetize = (velocity: number, deltaY: number) => {\n const shouldMagnetizeDownByVelocity = deltaY >= 0 && velocity >= SWIPE_VELOCITY;\n const shouldMagnetizeUpByVelocity = deltaY < 0 && velocity >= SWIPE_VELOCITY;\n\n const updatePosition = (nextOffset: number, nextAreaIdx: number) => {\n setSheetOffset(nextOffset);\n setActiveAreaIdx((prevState) => (nextAreaIdx === -1 ? prevState : nextAreaIdx));\n\n if (nextAreaIdx !== -1) {\n onMagnetize?.(nextAreaIdx);\n\n // Если nextOffset == offset, то onTransitionEnd не отработает и onMagnetizeEnd не вызовется\n if (sheetOffset === nextOffset) {\n onMagnetizeEnd?.(nextAreaIdx);\n setSheetHeight();\n }\n }\n };\n\n if (shouldMagnetizeDownByVelocity) {\n const nextArea = magneticAreas\n .slice()\n .reverse()\n .find((area) => area < activeArea);\n\n if (nextArea === 0) {\n if (iOSLock) {\n unlockScroll();\n }\n\n onClose();\n\n return;\n }\n\n const nextOffset = nextArea\n ? lastMagneticArea - nextArea\n : lastMagneticArea - activeArea;\n const nextAreaIdx = getActiveAreaIndex(nextArea);\n\n updatePosition(nextOffset, nextAreaIdx);\n\n return;\n }\n\n if (shouldMagnetizeUpByVelocity) {\n const nextArea = magneticAreas.find((area) => area > activeArea);\n const nextAreaIdx = getActiveAreaIndex(nextArea);\n const nextOffset = nextArea ? lastMagneticArea - nextArea : 0;\n\n updatePosition(nextOffset, nextAreaIdx);\n\n return;\n }\n\n const offset = getSheetOffset(deltaY);\n const currentSheetHeight = lastMagneticArea - offset;\n const secondArea = magneticAreas[1];\n const isSecondArea = activeArea === secondArea;\n const canClose = magneticAreas[0] === 0 && deltaY >= 0;\n const shouldCloseByOffset =\n isSecondArea && canClose && 1 - currentSheetHeight / activeArea > CLOSE_OFFSET;\n\n if (shouldCloseByOffset) {\n if (iOSLock) {\n unlockScroll();\n }\n\n onClose();\n\n return;\n }\n\n const { nearestArea } = magneticAreas.reduceRight(\n (res, area) => {\n if (Math.abs(area - currentSheetHeight) < res.minOffset) {\n res.minOffset = area - currentSheetHeight;\n res.nearestArea = area;\n }\n\n return res;\n },\n {\n nearestArea: lastMagneticArea,\n minOffset: lastMagneticArea,\n },\n );\n\n if (nearestArea === 0) {\n if (iOSLock) {\n unlockScroll();\n }\n\n onClose();\n } else {\n const nextOffset = lastMagneticArea - nearestArea;\n const nextAreaIdx = getActiveAreaIndex(nearestArea);\n\n setBackdropOpacity(1);\n updatePosition(nextOffset, nextAreaIdx);\n }\n };\n\n /**\n * Если контент внутри шторки скроллится - то шторка не должна свайпаться\n * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки\n */\n const shouldSkipSwiping = (swipeParams: ShouldSkipSwipingParams) => {\n const { deltaY, startY, event, dir } = swipeParams;\n\n if (scrollLockedProp || swipingInProgress) return false;\n\n if (!swipeableContent && contentRef.current?.contains(event.target as HTMLElement)) {\n return true;\n }\n\n const scrollableNode = scrollableContainer.current;\n // Точка верхней границы (y координата)\n const bottomSheetTopY = fullHeight - sheetHeight.current;\n\n if (\n !scrollableNode ||\n (!stickyHeader && Math.abs(bottomSheetTopY - startY) <= MARKER_HEIGHT) ||\n (stickyHeader &&\n headerRef.current &&\n Math.abs(bottomSheetTopY - startY) <= headerRef.current.clientHeight)\n ) {\n return false;\n }\n\n const shouldScroll =\n deltaY >= 0\n ? scrollableNode.scrollTop > 0\n : scrollableNode.scrollHeight -\n scrollableNode.scrollTop -\n scrollableNode.clientHeight >\n SCROLL_OFFSET;\n\n if (!scrollOccurred.current && shouldScroll) {\n scrollOccurred.current = true;\n }\n\n // Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться\n if (horizontalDirections.includes(dir)) {\n return true;\n }\n\n return shouldScroll;\n };\n\n const handleSheetSwipeEnd: SwipeCallback = (swipeParams: SwipeEventData) => {\n const { initial, velocity, deltaY, event, dir } = swipeParams;\n const shouldPreventSwipe =\n scrollOccurred.current ||\n shouldSkipSwiping({ deltaY, startY: initial[1], event, dir });\n\n if (shouldPreventSwipe) {\n return;\n }\n\n magnetize(velocity, deltaY);\n };\n\n const handleSheetSwipeStart: SwipeCallback = (swipeParams: SwipeEventData) => {\n const { deltaY, initial, event, dir } = swipeParams;\n\n if (shouldSkipSwiping({ deltaY, startY: initial[1], event, dir })) {\n return;\n }\n\n startSwiping(event);\n };\n\n const handleTouchEnd: TapCallback = ({ event }) => stopSwiping(event);\n\n const handleSheetSwipeMove: SwipeCallback = (swipeParams: SwipeEventData) => {\n const { initial, deltaY, event, dir } = swipeParams;\n const shouldPreventSwipe =\n scrollOccurred.current ||\n shouldSkipSwiping({ deltaY, startY: initial[1], event, dir });\n\n if (shouldPreventSwipe) {\n return;\n }\n\n if (!swipingInProgress) {\n startSwiping(event);\n }\n\n const offset = getSheetOffset(deltaY);\n const opacity = getBackdropOpacity(offset);\n\n setSheetOffset(offset);\n setBackdropOpacity(opacity);\n };\n\n const sheetSwipeableHandlers = useSwipeable({\n onSwipeStart: handleSheetSwipeStart,\n onSwiping: handleSheetSwipeMove,\n onSwiped: handleSheetSwipeEnd,\n onTouchEndOrOnMouseUp: handleTouchEnd,\n trackMouse: swipeable,\n trackTouch: swipeable,\n delta: swipeThreshold,\n preventScrollOnSwipe,\n });\n\n const handleExited = (node: HTMLElement) => {\n const idx = initialIndexRef.current as number;\n\n setBackdropOpacity(1);\n setSheetOffset(isNil(idx) ? magneticAreas[0] : lastMagneticArea - magneticAreas[idx]);\n setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);\n onMagnetizeEnd?.(0);\n if (transitionProps.onExited) {\n transitionProps.onExited(node);\n }\n };\n\n const handleEnter = (node: HTMLElement, isAppearing: boolean) => {\n onMagnetize?.(initialIndexRef.current ?? magneticAreas.length - 1);\n\n if (transitionProps.onEnter) {\n transitionProps.onEnter(node, isAppearing);\n }\n };\n\n const handleExit = (node: HTMLElement) => {\n onMagnetize?.(0);\n\n if (transitionProps.onExit) {\n transitionProps.onExit(node);\n }\n };\n\n const handleEntered = (node: HTMLElement, isAppearing: boolean) => {\n setBackdropOpacity(1);\n setSheetHeight();\n // Ready for swiping\n setSwipingInProgress(false);\n onMagnetizeEnd?.(getActiveAreaIndex(activeArea));\n\n if (transitionProps.onEntered) {\n transitionProps.onEntered(node, isAppearing);\n }\n };\n\n useEffect(() => {\n if (!isFirstRender) {\n // Инициализируем стейт только после того, как была рассчитана высота вьюпорта\n if (activeAreaIdx === -1) {\n const idx = initialIndexRef.current as number;\n\n setSheetOffset(isNil(idx) ? 0 : lastMagneticArea - magneticAreas[idx]);\n setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);\n } else {\n setSheetOffset(activeArea ? lastMagneticArea - activeArea : 0);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isFirstRender, magneticAreas, lastMagneticArea]);\n\n useEffect(() => {\n if (!sheetRef.current) return;\n\n const maxOffset = fullHeight - headerOffset;\n\n const offset = open ? sheetOffset : maxOffset;\n\n const percent = (offset / maxOffset) * 100;\n\n onOffsetChange?.(offset, percent);\n }, [fullHeight, headerOffset, onOffsetChange, open, sheetOffset]);\n\n useImperativeHandle(bottomSheetInstanceRef, () => ({\n scrollToArea,\n }));\n\n const getSwipeStyles = (): CSSProperties =>\n sheetOffset ? { transform: `translateY(${sheetOffset}px)` } : {};\n\n const getHeightStyles = (): CSSProperties => ({\n height:\n !isFirstRender && (initialHeight === 'full' || magneticAreasProp)\n ? `${lastMagneticArea}px`\n : 'unset',\n maxHeight: isFirstRender ? 0 : `${lastMagneticArea}px`,\n marginBottom:\n virtualKeyboard && visualViewportSize && windowHeight > visualViewportSize.height\n ? windowHeight - visualViewportSize.height - visualViewportSize.offsetTop\n : undefined,\n });\n\n const renderMarker = () => {\n if (swipeableMarker) {\n return (\n <div className={cn(styles.marker, swipeableMarkerClassName)}>\n {swipeableMarker}\n </div>\n );\n }\n\n if (showSwipeMarker) {\n return (\n <div\n className={cn(\n styles.marker,\n styles.defaultMarker,\n colorStyle.defaultMarker,\n swipeableMarkerClassName,\n )}\n />\n );\n }\n\n return null;\n };\n\n const bgClassName =\n backgroundColor &&\n styles[`background-${backgroundColor}${colors === 'inverted' ? '-inverted' : ''}`];\n\n return (\n <BaseModal\n open={open}\n ref={ref}\n container={container}\n dataTestId={dataTestId}\n zIndex={zIndex}\n onClose={onClose}\n usePortal={usePortal}\n scrollHandler={scrollableContainer}\n Backdrop={SwipeableBackdrop}\n backdropProps={{\n ...backdropProps,\n className: styles.disabledPointerEvents,\n opacity: backdropOpacity,\n opacityTimeout: TIMEOUT,\n invisible: hideOverlay,\n }}\n disableBackdropClick={hideOverlay ? true : disableOverlayClick}\n className={cn(styles.modal, modalClassName)}\n wrapperClassName={cn(modalWrapperClassName, {\n [styles.disabledPointerEvents]: hideOverlay,\n })}\n disableBlockingScroll={disableBlockingScroll}\n disableFocusLock={disableFocusLock}\n transitionProps={{\n appear: true,\n timeout: TIMEOUT,\n classNames: styles,\n ...transitionProps,\n onExited: handleExited,\n onEntered: handleEntered,\n onEnter: handleEnter,\n onExit: handleExit,\n }}\n disableAutoFocus={disableAutoFocus}\n disableEscapeKeyDown={disableEscapeKeyDown}\n disableRestoreFocus={disableRestoreFocus}\n keepMounted={keepMounted}\n iOSLock={iOSLock}\n >\n <div\n className={cn(styles.wrapper, {\n [styles.fullscreen]: headerOffset === 0 && sheetOffset === 0,\n })}\n onTransitionEnd={setSheetHeight}\n >\n <div\n className={cn(\n styles.component,\n bgClassName,\n colorStyle.component,\n className,\n {\n [styles.withTransition]: swipingInProgress === false,\n [styles.safeAreaBottom]: os.isIOS(),\n },\n )}\n style={{\n ...getSwipeStyles(),\n ...getHeightStyles(),\n }}\n {...sheetSwipeableHandlers}\n ref={mergeRefs([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref])}\n onTransitionEnd={handleTransitionEnd}\n >\n {renderMarker()}\n <div\n {...containerProps}\n className={cn(\n styles.scrollableContainer,\n containerProps?.className,\n containerClassName,\n {\n [styles.scrollLocked]: scrollLockedProp || swipingInProgress,\n [styles.hiddenScrollbar]: hideScrollbar,\n },\n )}\n ref={mergeRefs([scrollableContainer, scrollableContainerRef])}\n >\n {!hideHeader && !emptyHeader && (\n <Header {...headerProps} showSwipeMarker={showSwipeMarker} />\n )}\n\n <div\n ref={contentRef}\n className={cn(\n styles.content,\n colorStyle.content,\n contentClassName,\n {\n [styles.noHeader]: hideHeader || emptyHeader,\n [styles.noFooter]: !actionButton,\n },\n )}\n data-test-id={getDataTestId(dataTestId, 'content')}\n >\n {children}\n </div>\n\n {actionButton && (\n <Footer\n sticky={stickyFooter}\n className={cn(bgClassName, footerClassName)}\n colors={colors}\n dataTestId={getDataTestId(dataTestId, 'footer')}\n >\n {actionButton}\n </Footer>\n )}\n </div>\n </div>\n </div>\n </BaseModal>\n );\n },\n);\n\nBottomSheet.displayName = 'BottomSheet';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA2CA,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO;AAEzB,MAAM,4BAA4B,GAAG,CAAC,KAAa,KAAK,KAAK;AAE7D,MAAM,WAAW,GAAG;AAChB,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,QAAQ,EAAE,cAAc;CAClB;AAEH,MAAM,WAAW,GAAG,UAAU;AACjC;AACA,CACI,EACI,IAAI,EACJ,KAAK,EACL,SAAS,EACT,SAAS,EACT,eAAe,EACf,SAAS,GAAG,SAAS,EACrB,QAAQ,EACR,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,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AS,EAAE,EAAE,CACT,MAAM,CAAC,mBAAmB,EAC1B,cAAc,EAAE,SAAS,EACzB,kBAAkB,EAClB;AACI,wBAAA,CAAC,MAAM,CAAC,YAAY,GAAG,gBAAgB,IAAI,iBAAiB;AAC5D,wBAAA,CAAC,MAAM,CAAC,eAAe,GAAG,aAAa;qBAC1C,CACJ,EACD,GAAG,EAAE,SAAS,CAAC,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,CAAC,EAAA;AAE5D,oBAAA,CAAC,UAAU,IAAI,CAAC,WAAW,KACxB,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EAAA,GAAK,WAAW,EAAE,eAAe,EAAE,eAAe,GAAI,CAChE;AAED,oBAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,OAAO,EACd,UAAU,CAAC,OAAO,EAClB,gBAAgB,EAChB;AACI,4BAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,UAAU,IAAI,WAAW;AAC5C,4BAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,CAAC,YAAY;yBACnC,CACJ,EAAA,cAAA,EACa,aAAa,CAAC,UAAU,EAAE,SAAS,CAAC,EAEjD,EAAA,QAAQ,CACP;AAEL,oBAAA,YAAY,KACT,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EACH,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC,EAC3C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC,EAE9C,EAAA,YAAY,CACR,CACZ,CACC,CACJ,CACJ,CACE;AAEpB,CAAC;AAGL,WAAW,CAAC,WAAW,GAAG,aAAa;;;;"}
|
|
1
|
+
{"version":3,"file":"component.js","sources":["../src/component.tsx"],"sourcesContent":["import React, {\n type CSSProperties,\n forwardRef,\n useEffect,\n useImperativeHandle,\n useMemo,\n useRef,\n useState,\n} from 'react';\nimport { use100vh } from 'react-div-100vh';\nimport mergeRefs from 'react-merge-refs';\nimport {\n type SwipeCallback,\n type SwipeEventData,\n type TapCallback,\n useSwipeable,\n} from 'react-swipeable';\nimport { type HandledEvents } from 'react-swipeable/es/types';\nimport cn from 'classnames';\n\nimport { BaseModal, unlockScroll } from '@alfalab/core-components-base-modal';\nimport { fnUtils, getDataTestId, isClient, os } from '@alfalab/core-components-shared';\n\nimport { Footer } from './components/footer/Component';\nimport { Header, type HeaderProps } from './components/header/Component';\nimport { SwipeableBackdrop } from './components/swipeable-backdrop/Component';\nimport { horizontalDirections } from './consts/swipeConsts';\nimport { type ShouldSkipSwipingParams } from './types/swipeTypes';\nimport { useVisualViewportSize } from './hooks';\nimport { type BottomSheetProps } from './types';\nimport {\n CLOSE_OFFSET,\n convertPercentToNumber,\n MARKER_HEIGHT,\n SCROLL_OFFSET,\n SWIPE_VELOCITY,\n TIMEOUT,\n} from './utils';\n\nimport defaultColors from './default.module.css';\nimport styles from './index.module.css';\nimport invertedColors from './inverted.module.css';\n\nconst { isNil } = fnUtils;\n\nconst adjustContainerHeightDefault = (value: number) => value;\n\nconst colorStyles = {\n default: defaultColors,\n inverted: invertedColors,\n} as const;\n\nexport const BottomSheet = forwardRef<HTMLDivElement, BottomSheetProps>(\n // eslint-disable-next-line complexity\n (\n {\n open,\n title,\n container,\n usePortal,\n backgroundColor,\n titleSize = 'default',\n subtitle,\n actionButton,\n bottomSheetWrapperClassName,\n contentClassName,\n containerClassName,\n containerProps,\n headerClassName,\n headerContentClassName,\n footerClassName,\n addonClassName,\n outerClassName,\n closerClassName,\n backerClassName,\n modalClassName,\n modalWrapperClassName,\n className,\n outerAddons,\n leftAddons,\n rightAddons,\n bottomAddons,\n hasCloser,\n hasBacker,\n titleAlign = 'left',\n trimTitle,\n stickyHeader,\n stickyFooter = true,\n initialHeight = 'default',\n hideOverlay,\n hideScrollbar,\n hideHeader,\n disableOverlayClick,\n disableBlockingScroll,\n scrollLock = true,\n disableFocusLock,\n children,\n zIndex,\n transitionProps = {},\n magneticAreas: magneticAreasProp,\n initialActiveAreaIndex,\n dataTestId,\n swipeable = true,\n swipeableContent = true,\n swipeThreshold = 5,\n scrollLocked: scrollLockedProp,\n backdropProps,\n scrollableContainerRef = () => null,\n bottomSheetInstanceRef,\n sheetContainerRef = () => null,\n headerOffset = 24,\n adjustContainerHeight = adjustContainerHeightDefault,\n onClose,\n onBack,\n onMagnetize,\n onSwipeStart,\n onSwipeEnd,\n disableRestoreFocus,\n disableAutoFocus,\n disableEscapeKeyDown,\n keepMounted,\n onMagnetizeEnd,\n onOffsetChange,\n showSwipeMarker = true,\n swipeableMarker,\n swipeableMarkerClassName,\n backButtonProps,\n iOSLock = false,\n virtualKeyboard = false,\n colors = 'default',\n preventScrollOnSwipe,\n },\n ref,\n ) => {\n const windowHeight = use100vh() ?? 0;\n const visualViewportSize = useVisualViewportSize();\n let fullHeight = virtualKeyboard ? (visualViewportSize?.height ?? 0) : windowHeight;\n // Хук use100vh рассчитывает высоту вьюпорта в useEffect, поэтому на первый рендер всегда возвращает null.\n const isFirstRender = fullHeight === 0;\n\n fullHeight = adjustContainerHeight(fullHeight);\n\n const initialIndexRef = useRef<number | undefined>(initialActiveAreaIndex);\n\n const magneticAreas = useMemo(() => {\n if (magneticAreasProp) {\n return magneticAreasProp.map((area) =>\n convertPercentToNumber(area, fullHeight, headerOffset),\n );\n }\n let iOSViewHeight = 0;\n\n if (isClient()) {\n if (document?.documentElement?.clientHeight) {\n iOSViewHeight = adjustContainerHeight(document.documentElement.clientHeight);\n } else {\n iOSViewHeight = window?.innerHeight;\n }\n }\n\n const viewHeight = os.isIOS() && !virtualKeyboard ? iOSViewHeight : fullHeight;\n\n return [0, viewHeight - headerOffset];\n }, [fullHeight, headerOffset, magneticAreasProp, virtualKeyboard, adjustContainerHeight]);\n\n const lastMagneticArea = magneticAreas[magneticAreas.length - 1];\n\n const [sheetOffset, setSheetOffset] = useState(0);\n const [backdropOpacity, setBackdropOpacity] = useState(1);\n const [activeAreaIdx, setActiveAreaIdx] = useState(-1);\n\n const [swipingInProgress, setSwipingInProgress] = useState<boolean | null>(null);\n const scrollOccurred = useRef<boolean>(false);\n const headerRef = useRef<HTMLDivElement>(null);\n const contentRef = useRef<HTMLDivElement>(null);\n const sheetHeight = useRef(0);\n const sheetRef = useRef<HTMLDivElement>(null);\n const scrollableContainer = useRef<HTMLDivElement | null>(null);\n\n const activeArea = magneticAreas[activeAreaIdx];\n const emptyHeader = !hasCloser && !leftAddons && !title && !hasBacker && !rightAddons;\n const titleIsReactElement = React.isValidElement(title);\n\n const colorStyle = colorStyles[colors];\n\n const headerProps: HeaderProps = {\n ...(titleIsReactElement\n ? { children: title }\n : { title: title ? title?.toString() : undefined }),\n scrollableParentRef: scrollableContainer,\n headerRef,\n headerOffset,\n colors,\n className: cn(headerClassName, colorStyle.hasContent),\n contentClassName: headerContentClassName,\n addonClassName,\n closerClassName,\n backButtonClassName: backerClassName,\n leftAddons,\n rightAddons,\n bottomAddons,\n hasCloser,\n hasBackButton: hasBacker,\n align: titleAlign,\n trim: trimTitle,\n sticky: stickyHeader,\n dataTestId: getDataTestId(dataTestId, 'header'),\n onBack,\n titleSize,\n subtitle,\n onClose,\n backButtonProps,\n };\n\n const startSwiping = (event: HandledEvents) => {\n setSwipingInProgress((p) => {\n if (!p) onSwipeStart?.(event);\n\n return true;\n });\n };\n\n const stopSwiping = (event: HandledEvents | null) => {\n setSwipingInProgress((p) => {\n if (p) onSwipeEnd?.(event);\n\n return false;\n });\n scrollOccurred.current = false;\n };\n\n const getBackdropOpacity = (offset: number): number => {\n const canClose = magneticAreas[0] === 0;\n const secondArea = magneticAreas[1];\n const isSecondArea = secondArea === activeArea;\n\n if (canClose && isSecondArea && sheetOffset > lastMagneticArea - secondArea) {\n const opacity = 1 - (offset - (lastMagneticArea - secondArea)) / secondArea;\n\n return Math.max(0, Number(opacity.toFixed(2)));\n }\n\n return 1;\n };\n\n const getSheetOffset = (deltaY: number): number => {\n let offset = lastMagneticArea - activeArea + deltaY;\n const maxOffset = magneticAreas[0] === 0 ? 0 : lastMagneticArea - magneticAreas[0];\n\n if (maxOffset) {\n offset = Math.min(maxOffset, offset);\n }\n\n return Math.max(0, Math.round(offset));\n };\n\n const getActiveAreaIndex = (area?: number) => magneticAreas.findIndex((a) => a === area);\n\n const setSheetHeight = () => {\n if (sheetRef.current) {\n sheetHeight.current = sheetRef.current.getBoundingClientRect().height - sheetOffset;\n }\n };\n\n const handleTransitionEnd = (event: React.TransitionEvent) => {\n setSheetHeight();\n\n if (event.propertyName === 'transform' && event.target === event.currentTarget) {\n onMagnetizeEnd?.(getActiveAreaIndex(activeArea));\n }\n };\n\n const scrollToArea = (idx: number) => {\n if (isFirstRender) {\n initialIndexRef.current = idx;\n\n return;\n }\n\n stopSwiping(null);\n const nextArea = magneticAreas[idx];\n const nextAreaIdx = getActiveAreaIndex(nextArea);\n\n if (nextArea === 0) {\n if (iOSLock) {\n unlockScroll();\n }\n onClose();\n\n return;\n }\n\n if (nextAreaIdx !== -1) {\n setActiveAreaIdx(nextAreaIdx);\n setSheetOffset(lastMagneticArea - nextArea);\n onMagnetize?.(nextAreaIdx);\n }\n };\n\n const magnetize = (velocity: number, deltaY: number) => {\n const shouldMagnetizeDownByVelocity = deltaY >= 0 && velocity >= SWIPE_VELOCITY;\n const shouldMagnetizeUpByVelocity = deltaY < 0 && velocity >= SWIPE_VELOCITY;\n\n const updatePosition = (nextOffset: number, nextAreaIdx: number) => {\n setSheetOffset(nextOffset);\n setActiveAreaIdx((prevState) => (nextAreaIdx === -1 ? prevState : nextAreaIdx));\n\n if (nextAreaIdx !== -1) {\n onMagnetize?.(nextAreaIdx);\n\n // Если nextOffset == offset, то onTransitionEnd не отработает и onMagnetizeEnd не вызовется\n if (sheetOffset === nextOffset) {\n onMagnetizeEnd?.(nextAreaIdx);\n setSheetHeight();\n }\n }\n };\n\n if (shouldMagnetizeDownByVelocity) {\n const nextArea = magneticAreas\n .slice()\n .reverse()\n .find((area) => area < activeArea);\n\n if (nextArea === 0) {\n if (iOSLock) {\n unlockScroll();\n }\n\n onClose();\n\n return;\n }\n\n const nextOffset = nextArea\n ? lastMagneticArea - nextArea\n : lastMagneticArea - activeArea;\n const nextAreaIdx = getActiveAreaIndex(nextArea);\n\n updatePosition(nextOffset, nextAreaIdx);\n\n return;\n }\n\n if (shouldMagnetizeUpByVelocity) {\n const nextArea = magneticAreas.find((area) => area > activeArea);\n const nextAreaIdx = getActiveAreaIndex(nextArea);\n const nextOffset = nextArea ? lastMagneticArea - nextArea : 0;\n\n updatePosition(nextOffset, nextAreaIdx);\n\n return;\n }\n\n const offset = getSheetOffset(deltaY);\n const currentSheetHeight = lastMagneticArea - offset;\n const secondArea = magneticAreas[1];\n const isSecondArea = activeArea === secondArea;\n const canClose = magneticAreas[0] === 0 && deltaY >= 0;\n const shouldCloseByOffset =\n isSecondArea && canClose && 1 - currentSheetHeight / activeArea > CLOSE_OFFSET;\n\n if (shouldCloseByOffset) {\n if (iOSLock) {\n unlockScroll();\n }\n\n onClose();\n\n return;\n }\n\n const { nearestArea } = magneticAreas.reduceRight(\n (res, area) => {\n if (Math.abs(area - currentSheetHeight) < res.minOffset) {\n res.minOffset = area - currentSheetHeight;\n res.nearestArea = area;\n }\n\n return res;\n },\n {\n nearestArea: lastMagneticArea,\n minOffset: lastMagneticArea,\n },\n );\n\n if (nearestArea === 0) {\n if (iOSLock) {\n unlockScroll();\n }\n\n onClose();\n } else {\n const nextOffset = lastMagneticArea - nearestArea;\n const nextAreaIdx = getActiveAreaIndex(nearestArea);\n\n setBackdropOpacity(1);\n updatePosition(nextOffset, nextAreaIdx);\n }\n };\n\n /**\n * Если контент внутри шторки скроллится - то шторка не должна свайпаться\n * Если шапка внутри шторки зафиксирована - то шторка должна свайпаться только в области шапки\n */\n const shouldSkipSwiping = (swipeParams: ShouldSkipSwipingParams) => {\n const { deltaY, startY, event, dir } = swipeParams;\n\n if (scrollLockedProp || swipingInProgress) return false;\n\n if (!swipeableContent && contentRef.current?.contains(event.target as HTMLElement)) {\n return true;\n }\n\n const scrollableNode = scrollableContainer.current;\n // Точка верхней границы (y координата)\n const bottomSheetTopY = fullHeight - sheetHeight.current;\n\n if (\n !scrollableNode ||\n (!stickyHeader && Math.abs(bottomSheetTopY - startY) <= MARKER_HEIGHT) ||\n (stickyHeader &&\n headerRef.current &&\n Math.abs(bottomSheetTopY - startY) <= headerRef.current.clientHeight)\n ) {\n return false;\n }\n\n const shouldScroll =\n deltaY >= 0\n ? scrollableNode.scrollTop > 0\n : scrollableNode.scrollHeight -\n scrollableNode.scrollTop -\n scrollableNode.clientHeight >\n SCROLL_OFFSET;\n\n if (!scrollOccurred.current && shouldScroll) {\n scrollOccurred.current = true;\n }\n\n // Если контент внутри шторки скроллится горизонально - то шторка не должна закрываться\n if (horizontalDirections.includes(dir)) {\n return true;\n }\n\n return shouldScroll;\n };\n\n const handleSheetSwipeEnd: SwipeCallback = (swipeParams: SwipeEventData) => {\n const { initial, velocity, deltaY, event, dir } = swipeParams;\n const shouldPreventSwipe =\n scrollOccurred.current ||\n shouldSkipSwiping({ deltaY, startY: initial[1], event, dir });\n\n if (shouldPreventSwipe) {\n return;\n }\n\n magnetize(velocity, deltaY);\n };\n\n const handleSheetSwipeStart: SwipeCallback = (swipeParams: SwipeEventData) => {\n const { deltaY, initial, event, dir } = swipeParams;\n\n if (shouldSkipSwiping({ deltaY, startY: initial[1], event, dir })) {\n return;\n }\n\n startSwiping(event);\n };\n\n const handleTouchEnd: TapCallback = ({ event }) => stopSwiping(event);\n\n const handleSheetSwipeMove: SwipeCallback = (swipeParams: SwipeEventData) => {\n const { initial, deltaY, event, dir } = swipeParams;\n const shouldPreventSwipe =\n scrollOccurred.current ||\n shouldSkipSwiping({ deltaY, startY: initial[1], event, dir });\n\n if (shouldPreventSwipe) {\n return;\n }\n\n if (!swipingInProgress) {\n startSwiping(event);\n }\n\n const offset = getSheetOffset(deltaY);\n const opacity = getBackdropOpacity(offset);\n\n setSheetOffset(offset);\n setBackdropOpacity(opacity);\n };\n\n const sheetSwipeableHandlers = useSwipeable({\n onSwipeStart: handleSheetSwipeStart,\n onSwiping: handleSheetSwipeMove,\n onSwiped: handleSheetSwipeEnd,\n onTouchEndOrOnMouseUp: handleTouchEnd,\n trackMouse: swipeable,\n trackTouch: swipeable,\n delta: swipeThreshold,\n preventScrollOnSwipe,\n });\n\n const handleExited = (node: HTMLElement) => {\n const idx = initialIndexRef.current as number;\n\n setBackdropOpacity(1);\n setSheetOffset(isNil(idx) ? magneticAreas[0] : lastMagneticArea - magneticAreas[idx]);\n setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);\n onMagnetizeEnd?.(0);\n if (transitionProps.onExited) {\n transitionProps.onExited(node);\n }\n };\n\n const handleEnter = (node: HTMLElement, isAppearing: boolean) => {\n onMagnetize?.(initialIndexRef.current ?? magneticAreas.length - 1);\n\n if (transitionProps.onEnter) {\n transitionProps.onEnter(node, isAppearing);\n }\n };\n\n const handleExit = (node: HTMLElement) => {\n onMagnetize?.(0);\n\n if (transitionProps.onExit) {\n transitionProps.onExit(node);\n }\n };\n\n const handleEntered = (node: HTMLElement, isAppearing: boolean) => {\n setBackdropOpacity(1);\n setSheetHeight();\n // Ready for swiping\n setSwipingInProgress(false);\n onMagnetizeEnd?.(getActiveAreaIndex(activeArea));\n\n if (transitionProps.onEntered) {\n transitionProps.onEntered(node, isAppearing);\n }\n };\n\n useEffect(() => {\n if (!isFirstRender) {\n // Инициализируем стейт только после того, как была рассчитана высота вьюпорта\n if (activeAreaIdx === -1) {\n const idx = initialIndexRef.current as number;\n\n setSheetOffset(isNil(idx) ? 0 : lastMagneticArea - magneticAreas[idx]);\n setActiveAreaIdx(isNil(idx) ? magneticAreas.length - 1 : idx);\n } else {\n setSheetOffset(activeArea ? lastMagneticArea - activeArea : 0);\n }\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [isFirstRender, magneticAreas, lastMagneticArea]);\n\n useEffect(() => {\n if (!sheetRef.current) return;\n\n const maxOffset = fullHeight - headerOffset;\n\n const offset = open ? sheetOffset : maxOffset;\n\n const percent = (offset / maxOffset) * 100;\n\n onOffsetChange?.(offset, percent);\n }, [fullHeight, headerOffset, onOffsetChange, open, sheetOffset]);\n\n useImperativeHandle(bottomSheetInstanceRef, () => ({\n scrollToArea,\n }));\n\n const getSwipeStyles = (): CSSProperties =>\n sheetOffset ? { transform: `translateY(${sheetOffset}px)` } : {};\n\n const getHeightStyles = (): CSSProperties => ({\n height:\n !isFirstRender && (initialHeight === 'full' || magneticAreasProp)\n ? `${lastMagneticArea}px`\n : 'unset',\n maxHeight: isFirstRender ? 0 : `${lastMagneticArea}px`,\n marginBottom:\n virtualKeyboard && visualViewportSize && windowHeight > visualViewportSize.height\n ? windowHeight - visualViewportSize.height - visualViewportSize.offsetTop\n : undefined,\n });\n\n const renderMarker = () => {\n if (swipeableMarker) {\n return (\n <div className={cn(styles.marker, swipeableMarkerClassName)}>\n {swipeableMarker}\n </div>\n );\n }\n\n if (showSwipeMarker) {\n return (\n <div\n className={cn(\n styles.marker,\n styles.defaultMarker,\n colorStyle.defaultMarker,\n swipeableMarkerClassName,\n )}\n />\n );\n }\n\n return null;\n };\n\n const bgClassName =\n backgroundColor &&\n styles[`background-${backgroundColor}${colors === 'inverted' ? '-inverted' : ''}`];\n\n return (\n <BaseModal\n open={open}\n ref={ref}\n container={container}\n dataTestId={dataTestId}\n zIndex={zIndex}\n onClose={onClose}\n usePortal={usePortal}\n scrollHandler={scrollableContainer}\n Backdrop={SwipeableBackdrop}\n backdropProps={{\n ...backdropProps,\n className: styles.disabledPointerEvents,\n opacity: backdropOpacity,\n opacityTimeout: TIMEOUT,\n invisible: hideOverlay,\n }}\n disableBackdropClick={hideOverlay ? true : disableOverlayClick}\n className={cn(styles.modal, modalClassName)}\n wrapperClassName={cn(modalWrapperClassName, {\n [styles.disabledPointerEvents]: hideOverlay,\n })}\n disableBlockingScroll={disableBlockingScroll}\n disableFocusLock={disableFocusLock}\n transitionProps={{\n appear: true,\n timeout: TIMEOUT,\n classNames: styles,\n ...transitionProps,\n onExited: handleExited,\n onEntered: handleEntered,\n onEnter: handleEnter,\n onExit: handleExit,\n }}\n disableAutoFocus={disableAutoFocus}\n disableEscapeKeyDown={disableEscapeKeyDown}\n disableRestoreFocus={disableRestoreFocus}\n keepMounted={keepMounted}\n iOSLock={iOSLock}\n scrollLock={scrollLock}\n >\n <div\n className={cn(styles.wrapper, bottomSheetWrapperClassName, {\n [styles.fullscreen]: headerOffset === 0 && sheetOffset === 0,\n })}\n onTransitionEnd={setSheetHeight}\n >\n {outerAddons && (\n <div\n className={cn(styles.outerClassName, outerClassName)}\n style={getSwipeStyles()}\n >\n {outerAddons}\n </div>\n )}\n <div\n className={cn(\n styles.component,\n bgClassName,\n colorStyle.component,\n className,\n {\n [styles.withTransition]: swipingInProgress === false,\n [styles.safeAreaBottom]: os.isIOS(),\n },\n )}\n style={{\n ...getSwipeStyles(),\n ...getHeightStyles(),\n }}\n {...sheetSwipeableHandlers}\n ref={mergeRefs([sheetRef, sheetContainerRef, sheetSwipeableHandlers.ref])}\n onTransitionEnd={handleTransitionEnd}\n >\n {renderMarker()}\n <div\n {...containerProps}\n className={cn(\n styles.scrollableContainer,\n containerProps?.className,\n containerClassName,\n {\n [styles.scrollLocked]: scrollLockedProp || swipingInProgress,\n [styles.hiddenScrollbar]: hideScrollbar,\n },\n )}\n ref={mergeRefs([scrollableContainer, scrollableContainerRef])}\n >\n {!hideHeader && !emptyHeader && (\n <Header {...headerProps} showSwipeMarker={showSwipeMarker} />\n )}\n\n <div\n ref={contentRef}\n className={cn(\n styles.content,\n colorStyle.content,\n contentClassName,\n {\n [styles.noHeader]: hideHeader || emptyHeader,\n [styles.noFooter]: !actionButton,\n },\n )}\n data-test-id={getDataTestId(dataTestId, 'content')}\n >\n {children}\n </div>\n\n {actionButton && (\n <Footer\n sticky={stickyFooter}\n className={cn(bgClassName, footerClassName)}\n colors={colors}\n dataTestId={getDataTestId(dataTestId, 'footer')}\n >\n {actionButton}\n </Footer>\n )}\n </div>\n </div>\n </div>\n </BaseModal>\n );\n },\n);\n\nBottomSheet.displayName = 'BottomSheet';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AA2CA,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO;AAEzB,MAAM,4BAA4B,GAAG,CAAC,KAAa,KAAK,KAAK;AAE7D,MAAM,WAAW,GAAG;AAChB,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,QAAQ,EAAE,cAAc;CAClB;AAEH,MAAM,WAAW,GAAG,UAAU;AACjC;AACA,CACI,EACI,IAAI,EACJ,KAAK,EACL,SAAS,EACT,SAAS,EACT,eAAe,EACf,SAAS,GAAG,SAAS,EACrB,QAAQ,EACR,YAAY,EACZ,2BAA2B,EAC3B,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,sBAAsB,EACtB,eAAe,EACf,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,cAAc,EACd,qBAAqB,EACrB,SAAS,EACT,WAAW,EACX,UAAU,EACV,WAAW,EACX,YAAY,EACZ,SAAS,EACT,SAAS,EACT,UAAU,GAAG,MAAM,EACnB,SAAS,EACT,YAAY,EACZ,YAAY,GAAG,IAAI,EACnB,aAAa,GAAG,SAAS,EACzB,WAAW,EACX,aAAa,EACb,UAAU,EACV,mBAAmB,EACnB,qBAAqB,EACrB,UAAU,GAAG,IAAI,EACjB,gBAAgB,EAChB,QAAQ,EACR,MAAM,EACN,eAAe,GAAG,EAAE,EACpB,aAAa,EAAE,iBAAiB,EAChC,sBAAsB,EACtB,UAAU,EACV,SAAS,GAAG,IAAI,EAChB,gBAAgB,GAAG,IAAI,EACvB,cAAc,GAAG,CAAC,EAClB,YAAY,EAAE,gBAAgB,EAC9B,aAAa,EACb,sBAAsB,GAAG,MAAM,IAAI,EACnC,sBAAsB,EACtB,iBAAiB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M,EAAA,EAAA,GAAK,WAAW,EAAE,eAAe,EAAE,eAAe,GAAI,CAChE;AAED,oBAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,GAAG,EAAE,UAAU,EACf,SAAS,EAAE,EAAE,CACT,MAAM,CAAC,OAAO,EACd,UAAU,CAAC,OAAO,EAClB,gBAAgB,EAChB;AACI,4BAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,UAAU,IAAI,WAAW;AAC5C,4BAAA,CAAC,MAAM,CAAC,QAAQ,GAAG,CAAC,YAAY;yBACnC,CACJ,EAAA,cAAA,EACa,aAAa,CAAC,UAAU,EAAE,SAAS,CAAC,EAEjD,EAAA,QAAQ,CACP;AAEL,oBAAA,YAAY,KACT,KAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EACH,MAAM,EAAE,YAAY,EACpB,SAAS,EAAE,EAAE,CAAC,WAAW,EAAE,eAAe,CAAC,EAC3C,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,aAAa,CAAC,UAAU,EAAE,QAAQ,CAAC,EAE9C,EAAA,YAAY,CACR,CACZ,CACC,CACJ,CACJ,CACE;AAEpB,CAAC;AAGL,WAAW,CAAC,WAAW,GAAG,aAAa;;;;"}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
--bottom-sheet-text-color: var(--color-light-text-primary);
|
|
7
7
|
--bottom-sheet-footer-background-color: var(--color-light-modal-bg-primary);
|
|
8
8
|
--bottom-sheet-footer-border-top: 1px solid var(--color-light-neutral-300);
|
|
9
|
-
} .bottom-
|
|
9
|
+
} .bottom-sheet__highlighted_1tsv0 {
|
|
10
10
|
background-color: var(--bottom-sheet-footer-background-color);
|
|
11
11
|
border-top: var(--bottom-sheet-footer-border-top);
|
|
12
|
-
} .bottom-
|
|
12
|
+
} .bottom-sheet__hasContent_1tsv0 {
|
|
13
13
|
color: var(--bottom-sheet-text-color);
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './default.css';
|
|
2
2
|
|
|
3
|
-
const defaultColors = {"highlighted":"bottom-
|
|
3
|
+
const defaultColors = {"highlighted":"bottom-sheet__highlighted_1tsv0","hasContent":"bottom-sheet__hasContent_1tsv0"};
|
|
4
4
|
|
|
5
5
|
export { defaultColors as default };
|
|
6
6
|
//# sourceMappingURL=default.module.css.js.map
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
--gap-m: 16px;
|
|
3
3
|
--gap-0: 0px;
|
|
4
4
|
--gap-16: var(--gap-m);
|
|
5
|
-
} .bottom-
|
|
5
|
+
} .bottom-sheet__footer_1a2jv {
|
|
6
6
|
padding: var(--gap-16) var(--gap-16);
|
|
7
|
-
} .bottom-
|
|
7
|
+
} .bottom-sheet__sticky_1a2jv {
|
|
8
8
|
position: sticky;
|
|
9
9
|
bottom: var(--gap-0);
|
|
10
10
|
z-index: 1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"footer":"bottom-
|
|
3
|
+
const styles = {"footer":"bottom-sheet__footer_1a2jv","sticky":"bottom-sheet__sticky_1a2jv"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
--bottom-sheet-text-color-inverted: var(--color-light-text-primary-inverted);
|
|
7
7
|
--bottom-sheet-footer-background-color-inverted: var(--color-light-modal-bg-primary-inverted);
|
|
8
8
|
--bottom-sheet-footer-border-top-inverted: 1px solid var(--color-light-neutral-300-inverted);
|
|
9
|
-
} .bottom-
|
|
9
|
+
} .bottom-sheet__highlighted_1yu7l {
|
|
10
10
|
background-color: var(--bottom-sheet-footer-background-color-inverted);
|
|
11
11
|
border-top: var(--bottom-sheet-footer-border-top-inverted);
|
|
12
|
-
} .bottom-
|
|
12
|
+
} .bottom-sheet__hasContent_1yu7l {
|
|
13
13
|
color: var(--bottom-sheet-text-color-inverted);
|
|
14
14
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './inverted.css';
|
|
2
2
|
|
|
3
|
-
const invertedColors = {"highlighted":"bottom-
|
|
3
|
+
const invertedColors = {"highlighted":"bottom-sheet__highlighted_1yu7l","hasContent":"bottom-sheet__hasContent_1yu7l"};
|
|
4
4
|
|
|
5
5
|
export { invertedColors as default };
|
|
6
6
|
//# sourceMappingURL=inverted.module.css.js.map
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
} :root {
|
|
5
5
|
--bottom-sheet-header-border-bottom: 1px solid var(--color-light-neutral-300);
|
|
6
6
|
--bottom-sheet-text-color: var(--color-light-text-primary);
|
|
7
|
-
} .bottom-
|
|
7
|
+
} .bottom-sheet__title_kfxvt {
|
|
8
8
|
color: var(--bottom-sheet-text-color);
|
|
9
|
-
} .bottom-
|
|
9
|
+
} .bottom-sheet__hasContent_kfxvt {
|
|
10
10
|
background-color: inherit;
|
|
11
|
-
} .bottom-
|
|
11
|
+
} .bottom-sheet__subtitle_kfxvt {
|
|
12
12
|
color: var(--bottom-sheet-text-color);
|
|
13
|
-
} .bottom-
|
|
13
|
+
} .bottom-sheet__highlighted_kfxvt {
|
|
14
14
|
border-bottom: var(--bottom-sheet-header-border-bottom);
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './default.css';
|
|
2
2
|
|
|
3
|
-
const defaultColors = {"title":"bottom-
|
|
3
|
+
const defaultColors = {"title":"bottom-sheet__title_kfxvt","hasContent":"bottom-sheet__hasContent_kfxvt","subtitle":"bottom-sheet__subtitle_kfxvt","highlighted":"bottom-sheet__highlighted_kfxvt"};
|
|
4
4
|
|
|
5
5
|
export { defaultColors as default };
|
|
6
6
|
//# sourceMappingURL=default.module.css.js.map
|
|
@@ -19,45 +19,45 @@
|
|
|
19
19
|
--bottom-sheet-subtitle-font-weight: 400;
|
|
20
20
|
--bottom-sheet-subtitle-line-height: 20px;
|
|
21
21
|
--bottom-sheet-subtitle-font-family: var(--font-family-system);
|
|
22
|
-
} .bottom-
|
|
22
|
+
} .bottom-sheet__headerBase_su7u7 {
|
|
23
23
|
border-top-left-radius: inherit;
|
|
24
24
|
border-top-right-radius: inherit;
|
|
25
25
|
z-index: 1;
|
|
26
|
-
} .bottom-
|
|
26
|
+
} .bottom-sheet__headerWrapper_su7u7 {
|
|
27
27
|
padding: var(--gap-12) var(--gap-8) var(--gap-4);
|
|
28
|
-
} .bottom-
|
|
28
|
+
} .bottom-sheet__headerWrapperWithoutSwipeMarker_su7u7 {
|
|
29
29
|
padding: var(--gap-8) var(--gap-8) var(--gap-4);
|
|
30
|
-
} .bottom-
|
|
30
|
+
} .bottom-sheet__header_su7u7 {
|
|
31
31
|
display: flex;
|
|
32
|
-
} .bottom-
|
|
32
|
+
} .bottom-sheet__sticky_su7u7 {
|
|
33
33
|
position: sticky;
|
|
34
34
|
top: var(--gap-0);
|
|
35
|
-
} .bottom-
|
|
35
|
+
} .bottom-sheet__justifyEnd_su7u7 {
|
|
36
36
|
justify-content: flex-end;
|
|
37
|
-
} .bottom-
|
|
37
|
+
} .bottom-sheet__addon_su7u7 {
|
|
38
38
|
display: flex;
|
|
39
39
|
justify-content: center;
|
|
40
40
|
align-items: center;
|
|
41
41
|
min-width: 48px;
|
|
42
42
|
height: 48px;
|
|
43
|
-
} .bottom-
|
|
43
|
+
} .bottom-sheet__addonFixed_su7u7 {
|
|
44
44
|
position: fixed;
|
|
45
|
-
} .bottom-
|
|
45
|
+
} .bottom-sheet__title_su7u7 {
|
|
46
46
|
padding: var(--gap-10) var(--gap-8);
|
|
47
47
|
width: 100%;
|
|
48
48
|
font-size: var(--bottom-sheet-title-font-size);
|
|
49
49
|
font-weight: var(--bottom-sheet-title-font-weight);
|
|
50
50
|
line-height: var(--bottom-sheet-title-line-height);
|
|
51
51
|
font-family: var(--bottom-sheet-title-font-family);
|
|
52
|
-
} .bottom-
|
|
52
|
+
} .bottom-sheet__titleCenter_su7u7 {
|
|
53
53
|
text-align: center;
|
|
54
|
-
} .bottom-
|
|
54
|
+
} .bottom-sheet__titleLeft_su7u7 {
|
|
55
55
|
text-align: left;
|
|
56
|
-
} .bottom-
|
|
56
|
+
} .bottom-sheet__trimTitle_su7u7 {
|
|
57
57
|
white-space: nowrap;
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
text-overflow: ellipsis;
|
|
60
|
-
} .bottom-
|
|
60
|
+
} .bottom-sheet__subtitle_su7u7 {
|
|
61
61
|
width: 100%;
|
|
62
62
|
font-size: var(--bottom-sheet-subtitle-font-size);
|
|
63
63
|
font-weight: var(--bottom-sheet-subtitle-font-weight);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './index.css';
|
|
2
2
|
|
|
3
|
-
const styles = {"headerWrapper":"bottom-
|
|
3
|
+
const styles = {"headerWrapper":"bottom-sheet__headerWrapper_su7u7 bottom-sheet__headerBase_su7u7","headerWrapperWithoutSwipeMarker":"bottom-sheet__headerWrapperWithoutSwipeMarker_su7u7 bottom-sheet__headerBase_su7u7","sticky":"bottom-sheet__sticky_su7u7","title":"bottom-sheet__title_su7u7","subtitle":"bottom-sheet__subtitle_su7u7"};
|
|
4
4
|
|
|
5
5
|
export { styles as default };
|
|
6
6
|
//# sourceMappingURL=index.module.css.js.map
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
} :root {
|
|
5
5
|
--bottom-sheet-header-border-bottom-inverted: 1px solid var(--color-light-neutral-300-inverted);
|
|
6
6
|
--bottom-sheet-text-color-inverted: var(--color-light-text-primary-inverted);
|
|
7
|
-
} .bottom-
|
|
7
|
+
} .bottom-sheet__title_n7jlc {
|
|
8
8
|
color: var(--bottom-sheet-text-color-inverted);
|
|
9
|
-
} .bottom-
|
|
9
|
+
} .bottom-sheet__hasContent_n7jlc {
|
|
10
10
|
background-color: inherit;
|
|
11
|
-
} .bottom-
|
|
11
|
+
} .bottom-sheet__subtitle_n7jlc {
|
|
12
12
|
color: var(--bottom-sheet-text-color-inverted);
|
|
13
|
-
} .bottom-
|
|
13
|
+
} .bottom-sheet__highlighted_n7jlc {
|
|
14
14
|
border-bottom: var(--bottom-sheet-header-border-bottom-inverted);
|
|
15
15
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './inverted.css';
|
|
2
2
|
|
|
3
|
-
const invertedColors = {"title":"bottom-
|
|
3
|
+
const invertedColors = {"title":"bottom-sheet__title_n7jlc","hasContent":"bottom-sheet__hasContent_n7jlc","subtitle":"bottom-sheet__subtitle_n7jlc","highlighted":"bottom-sheet__highlighted_n7jlc"};
|
|
4
4
|
|
|
5
5
|
export { invertedColors as default };
|
|
6
6
|
//# sourceMappingURL=inverted.module.css.js.map
|
package/modern/default.css
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
--bottom-sheet-background-color: var(--color-light-modal-bg-primary);
|
|
7
7
|
--bottom-sheet-marker-color: var(--color-light-neutral-translucent-300);
|
|
8
8
|
--bottom-sheet-text-color: var(--color-light-text-primary);
|
|
9
|
-
} .bottom-
|
|
9
|
+
} .bottom-sheet__component_whi6q {
|
|
10
10
|
background-color: var(--bottom-sheet-background-color);
|
|
11
|
-
} .bottom-
|
|
11
|
+
} .bottom-sheet__content_whi6q {
|
|
12
12
|
color: var(--bottom-sheet-text-color);
|
|
13
|
-
} .bottom-
|
|
13
|
+
} .bottom-sheet__defaultMarker_whi6q {
|
|
14
14
|
background-color: var(--bottom-sheet-marker-color);
|
|
15
|
-
} .bottom-
|
|
15
|
+
} .bottom-sheet__hasContent_whi6q {
|
|
16
16
|
color: var(--bottom-sheet-text-color);
|
|
17
17
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './default.css';
|
|
2
2
|
|
|
3
|
-
const defaultColors = {"component":"bottom-
|
|
3
|
+
const defaultColors = {"component":"bottom-sheet__component_whi6q","content":"bottom-sheet__content_whi6q","defaultMarker":"bottom-sheet__defaultMarker_whi6q","hasContent":"bottom-sheet__hasContent_whi6q"};
|
|
4
4
|
|
|
5
5
|
export { defaultColors as default };
|
|
6
6
|
//# sourceMappingURL=default.module.css.js.map
|
package/modern/index.css
CHANGED
|
@@ -40,34 +40,37 @@
|
|
|
40
40
|
--bottom-sheet-out-transition: transform 0.3s ease;
|
|
41
41
|
--bottom-sheet-top-radius: var(--border-radius-16);
|
|
42
42
|
--bottom-sheet-shadow: none;
|
|
43
|
-
} .bottom-
|
|
43
|
+
} .bottom-sheet__modal_dn46z {
|
|
44
44
|
bottom: var(--gap-0);
|
|
45
45
|
width: 100%;
|
|
46
46
|
max-width: 600px;
|
|
47
47
|
pointer-events: none;
|
|
48
48
|
touch-action: none;
|
|
49
|
-
} .bottom-
|
|
49
|
+
} .bottom-sheet__modal_dn46z.bottom-sheet__modal_dn46z {
|
|
50
50
|
background-color: transparent;
|
|
51
51
|
position: fixed;
|
|
52
|
-
} .bottom-
|
|
52
|
+
} .bottom-sheet__wrapper_dn46z {
|
|
53
53
|
transform: translateY(100%);
|
|
54
54
|
pointer-events: none;
|
|
55
55
|
touch-action: none;
|
|
56
56
|
border-top-right-radius: var(--bottom-sheet-top-radius);
|
|
57
57
|
border-top-left-radius: var(--bottom-sheet-top-radius);
|
|
58
58
|
transition: border-radius 0.3s ease;
|
|
59
|
-
} .bottom-
|
|
59
|
+
} .bottom-sheet__outerClassName_dn46z {
|
|
60
|
+
pointer-events: all;
|
|
61
|
+
} .bottom-sheet__fullscreen_dn46z {
|
|
60
62
|
border-radius: var(--border-radius-0);
|
|
61
|
-
} .bottom-
|
|
63
|
+
} .bottom-sheet__component_dn46z {
|
|
62
64
|
position: relative;
|
|
63
65
|
display: flex;
|
|
64
66
|
flex-direction: column;
|
|
65
67
|
border-radius: inherit;
|
|
66
68
|
pointer-events: all;
|
|
67
69
|
box-shadow: var(--bottom-sheet-shadow);
|
|
68
|
-
|
|
70
|
+
transform: translate(0, 0);
|
|
71
|
+
} .bottom-sheet__withTransition_dn46z {
|
|
69
72
|
transition: var(--bottom-sheet-out-transition);
|
|
70
|
-
} .bottom-
|
|
73
|
+
} .bottom-sheet__scrollableContainer_dn46z {
|
|
71
74
|
overflow: auto;
|
|
72
75
|
display: flex;
|
|
73
76
|
flex-direction: column;
|
|
@@ -76,7 +79,7 @@
|
|
|
76
79
|
background-color: inherit;
|
|
77
80
|
border-radius: inherit;
|
|
78
81
|
overscroll-behavior: contain;
|
|
79
|
-
} .bottom-
|
|
82
|
+
} .bottom-sheet__marker_dn46z {
|
|
80
83
|
position: fixed;
|
|
81
84
|
top: var(--gap-4);
|
|
82
85
|
right: var(--gap-0);
|
|
@@ -84,10 +87,10 @@
|
|
|
84
87
|
z-index: 1000;
|
|
85
88
|
width: 36px;
|
|
86
89
|
margin: var(--gap-0) auto;
|
|
87
|
-
} .bottom-
|
|
90
|
+
} .bottom-sheet__defaultMarker_dn46z {
|
|
88
91
|
height: 4px;
|
|
89
92
|
border-radius: var(--border-radius-20);
|
|
90
|
-
} .bottom-
|
|
93
|
+
} .bottom-sheet__content_dn46z {
|
|
91
94
|
position: relative;
|
|
92
95
|
z-index: 0;
|
|
93
96
|
display: flex;
|
|
@@ -96,75 +99,75 @@
|
|
|
96
99
|
padding: var(--gap-0) var(--gap-16);
|
|
97
100
|
background-color: inherit;
|
|
98
101
|
border-radius: inherit;
|
|
99
|
-
} .bottom-
|
|
102
|
+
} .bottom-sheet__noHeader_dn46z {
|
|
100
103
|
padding-top: var(--gap-16);
|
|
101
|
-
} .bottom-
|
|
104
|
+
} .bottom-sheet__noFooter_dn46z {
|
|
102
105
|
padding-bottom: var(--gap-16);
|
|
103
|
-
} .bottom-
|
|
106
|
+
} .bottom-sheet__scrollLocked_dn46z {
|
|
104
107
|
overflow: hidden;
|
|
105
|
-
} .bottom-
|
|
108
|
+
} .bottom-sheet__hiddenScrollbar_dn46z {
|
|
106
109
|
scrollbar-width: none;
|
|
107
|
-
} .bottom-
|
|
110
|
+
} .bottom-sheet__hiddenScrollbar_dn46z::-webkit-scrollbar {
|
|
108
111
|
width: 0;
|
|
109
112
|
height: 0;
|
|
110
|
-
} .bottom-
|
|
113
|
+
} .bottom-sheet__disabledPointerEvents_dn46z {
|
|
111
114
|
pointer-events: none;
|
|
112
|
-
} .bottom-
|
|
115
|
+
} .bottom-sheet__appear_dn46z .bottom-sheet__wrapper_dn46z, .bottom-sheet__enter_dn46z .bottom-sheet__wrapper_dn46z {
|
|
113
116
|
transition: none;
|
|
114
|
-
} .bottom-
|
|
117
|
+
} .bottom-sheet__appearActive_dn46z .bottom-sheet__wrapper_dn46z, .bottom-sheet__enterActive_dn46z .bottom-sheet__wrapper_dn46z {
|
|
115
118
|
transition: var(--bottom-sheet-in-transition);
|
|
116
119
|
transform: translateY(0);
|
|
117
|
-
} .bottom-
|
|
120
|
+
} .bottom-sheet__enterDone_dn46z .bottom-sheet__wrapper_dn46z, .bottom-sheet__appearDone_dn46z .bottom-sheet__wrapper_dn46z {
|
|
118
121
|
transform: translateY(0);
|
|
119
|
-
} .bottom-
|
|
122
|
+
} .bottom-sheet__exit_dn46z .bottom-sheet__wrapper_dn46z {
|
|
120
123
|
transform: translateY(0);
|
|
121
|
-
} .bottom-
|
|
124
|
+
} .bottom-sheet__exitActive_dn46z .bottom-sheet__wrapper_dn46z {
|
|
122
125
|
transition: var(--bottom-sheet-out-transition);
|
|
123
126
|
transform: translateY(100%);
|
|
124
|
-
} .bottom-
|
|
127
|
+
} .bottom-sheet__safeAreaBottom_dn46z {
|
|
125
128
|
padding-bottom: var(--sab);
|
|
126
|
-
} .bottom-sheet__background-
|
|
129
|
+
} .bottom-sheet__background-accent_dn46z {
|
|
127
130
|
background-color: var(--color-light-bg-accent);
|
|
128
|
-
} .bottom-sheet__background-
|
|
131
|
+
} .bottom-sheet__background-info_dn46z {
|
|
129
132
|
background-color: var(--color-light-bg-info);
|
|
130
|
-
} .bottom-sheet__background-attention-
|
|
133
|
+
} .bottom-sheet__background-attention-muted_dn46z {
|
|
131
134
|
background-color: var(--color-light-bg-attention-muted);
|
|
132
|
-
} .bottom-sheet__background-positive-
|
|
135
|
+
} .bottom-sheet__background-positive-muted_dn46z {
|
|
133
136
|
background-color: var(--color-light-bg-positive-muted);
|
|
134
|
-
} .bottom-sheet__background-negative-
|
|
137
|
+
} .bottom-sheet__background-negative-muted_dn46z {
|
|
135
138
|
background-color: var(--color-light-bg-negative-muted);
|
|
136
|
-
} .bottom-sheet__background-
|
|
139
|
+
} .bottom-sheet__background-primary_dn46z {
|
|
137
140
|
background-color: var(--color-light-bg-primary);
|
|
138
|
-
} .bottom-sheet__background-primary-
|
|
141
|
+
} .bottom-sheet__background-primary-inverted_dn46z {
|
|
139
142
|
background-color: var(--color-light-bg-primary-inverted);
|
|
140
|
-
} .bottom-sheet__background-
|
|
143
|
+
} .bottom-sheet__background-secondary_dn46z {
|
|
141
144
|
background-color: var(--color-light-bg-secondary);
|
|
142
|
-
} .bottom-sheet__background-secondary-
|
|
145
|
+
} .bottom-sheet__background-secondary-inverted_dn46z {
|
|
143
146
|
background-color: var(--color-light-bg-secondary-inverted);
|
|
144
|
-
} .bottom-sheet__background-
|
|
147
|
+
} .bottom-sheet__background-tertiary_dn46z {
|
|
145
148
|
background-color: var(--color-light-bg-tertiary);
|
|
146
|
-
} .bottom-sheet__background-tertiary-
|
|
149
|
+
} .bottom-sheet__background-tertiary-inverted_dn46z {
|
|
147
150
|
background-color: var(--color-light-bg-tertiary-inverted);
|
|
148
|
-
} .bottom-sheet__background-
|
|
151
|
+
} .bottom-sheet__background-quaternary_dn46z {
|
|
149
152
|
background-color: var(--color-light-bg-quaternary);
|
|
150
|
-
} .bottom-sheet__background-quaternary-
|
|
153
|
+
} .bottom-sheet__background-quaternary-inverted_dn46z {
|
|
151
154
|
background-color: var(--color-light-bg-quaternary-inverted);
|
|
152
|
-
} .bottom-sheet__background-specialbg-
|
|
155
|
+
} .bottom-sheet__background-specialbg-component_dn46z {
|
|
153
156
|
background-color: var(--color-light-specialbg-component);
|
|
154
|
-
} .bottom-sheet__background-specialbg-component-
|
|
157
|
+
} .bottom-sheet__background-specialbg-component-inverted_dn46z {
|
|
155
158
|
background-color: var(--color-light-specialbg-component-inverted);
|
|
156
|
-
} .bottom-sheet__background-specialbg-primary-
|
|
159
|
+
} .bottom-sheet__background-specialbg-primary-grouped_dn46z {
|
|
157
160
|
background-color: var(--color-light-specialbg-primary-grouped);
|
|
158
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
161
|
+
} .bottom-sheet__background-specialbg-secondary-grouped_dn46z {
|
|
159
162
|
background-color: var(--color-light-specialbg-secondary-grouped);
|
|
160
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
163
|
+
} .bottom-sheet__background-specialbg-tertiary-grouped_dn46z {
|
|
161
164
|
background-color: var(--color-light-specialbg-tertiary-grouped);
|
|
162
|
-
} .bottom-sheet__background-specialbg-secondary-
|
|
165
|
+
} .bottom-sheet__background-specialbg-secondary-transparent_dn46z {
|
|
163
166
|
background-color: var(--color-light-specialbg-secondary-transparent);
|
|
164
|
-
} .bottom-sheet__background-specialbg-secondary-transparent-
|
|
167
|
+
} .bottom-sheet__background-specialbg-secondary-transparent-inverted_dn46z {
|
|
165
168
|
background-color: var(--color-light-specialbg-secondary-transparent-inverted);
|
|
166
|
-
} .bottom-sheet__background-specialbg-tertiary-
|
|
169
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent_dn46z {
|
|
167
170
|
background-color: var(--color-light-specialbg-tertiary-transparent);
|
|
168
|
-
} .bottom-sheet__background-specialbg-tertiary-transparent-
|
|
171
|
+
} .bottom-sheet__background-specialbg-tertiary-transparent-inverted_dn46z {
|
|
169
172
|
background-color: var(--color-light-specialbg-tertiary-transparent-inverted);
|
|
170
173
|
}
|