@shoplflow/base 0.13.9 → 0.14.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/dist/index.cjs +18 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +89 -1
- package/dist/index.d.ts +89 -1
- package/dist/index.js +19 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -11,6 +11,7 @@ import { $Values } from '@shoplflow/utils';
|
|
|
11
11
|
import { Middleware } from '@floating-ui/react-dom';
|
|
12
12
|
import { AutoPlacementOptions, Placement } from '@floating-ui/react';
|
|
13
13
|
import { OffsetOptions } from '@floating-ui/core';
|
|
14
|
+
import { positionValues } from 'react-custom-scrollbars-2';
|
|
14
15
|
|
|
15
16
|
declare type DomainType = 'SHOPL' | 'HADA';
|
|
16
17
|
|
|
@@ -596,6 +597,93 @@ declare const StyledPopper: _emotion_styled.StyledComponent<{
|
|
|
596
597
|
as?: React$1.ElementType<any> | undefined;
|
|
597
598
|
} & Pick<PopperTriggerProps, "height" | "width">, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
598
599
|
|
|
600
|
+
interface ScrollAreaProps extends ScrollAreaOptionProps, ChildrenProps {
|
|
601
|
+
}
|
|
602
|
+
interface ScrollAreaOptionProps {
|
|
603
|
+
id?: string;
|
|
604
|
+
/**
|
|
605
|
+
* (Function) 스크롤 이벤트 핸들러
|
|
606
|
+
*/
|
|
607
|
+
onScroll?: React$1.UIEventHandler<any>;
|
|
608
|
+
/**
|
|
609
|
+
* (Function) 애니메이션 프레임 내에서 실행됩니다.
|
|
610
|
+
*/
|
|
611
|
+
onScrollFrame?: (values: positionValues) => void;
|
|
612
|
+
/**
|
|
613
|
+
* 스크롤이 시작될 때 호출됩니다.
|
|
614
|
+
*/
|
|
615
|
+
onScrollStart?: () => void;
|
|
616
|
+
/**
|
|
617
|
+
* 스크롤이 멈출 때 호출됩니다.
|
|
618
|
+
*/
|
|
619
|
+
onScrollStop?: () => void;
|
|
620
|
+
/**
|
|
621
|
+
* 컴포넌트가 업데이트될 때마다 호출됩니다. 애니메이션 프레임 내에서 실행됩니다.
|
|
622
|
+
*/
|
|
623
|
+
onUpdate?: (values: positionValues) => void;
|
|
624
|
+
/**
|
|
625
|
+
* 콘텐츠가 렌더링될 요소
|
|
626
|
+
*/
|
|
627
|
+
renderView?: React$1.ComponentType<any>;
|
|
628
|
+
/**
|
|
629
|
+
* 수평 트랙 요소
|
|
630
|
+
*/
|
|
631
|
+
renderTrackHorizontal?: React$1.ComponentType<any>;
|
|
632
|
+
/**
|
|
633
|
+
* 수직 트랙 요소
|
|
634
|
+
*/
|
|
635
|
+
renderTrackVertical?: React$1.ComponentType<any>;
|
|
636
|
+
/**
|
|
637
|
+
* 수평 스크롤 바 요소
|
|
638
|
+
*/
|
|
639
|
+
renderThumbHorizontal?: React$1.ComponentType<any>;
|
|
640
|
+
/**
|
|
641
|
+
* 수직 스크롤 바 요소
|
|
642
|
+
*/
|
|
643
|
+
renderThumbVertical?: React$1.ComponentType<any>;
|
|
644
|
+
tagName?: string;
|
|
645
|
+
/**
|
|
646
|
+
* 컨테이너가 오버플로되지 않을 때 트랙을 숨깁니다
|
|
647
|
+
*/
|
|
648
|
+
hideTracksWhenNotNeeded?: boolean;
|
|
649
|
+
autoHide?: boolean;
|
|
650
|
+
/**
|
|
651
|
+
* 숨김 지연 시간(ms). (기본값: 1000)
|
|
652
|
+
*/
|
|
653
|
+
autoHideTimeout?: number;
|
|
654
|
+
/**
|
|
655
|
+
* 숨김 지속 시간(ms). (기본값: 200)
|
|
656
|
+
*/
|
|
657
|
+
autoHideDuration?: number;
|
|
658
|
+
/**
|
|
659
|
+
* 스크롤 바의 고정 크기를 px 단위로 설정합니다.
|
|
660
|
+
*/
|
|
661
|
+
thumbSize?: number;
|
|
662
|
+
/**
|
|
663
|
+
* 최소 스크롤 바 크기를 px 단위로 설정합니다. (기본값: 30)
|
|
664
|
+
*/
|
|
665
|
+
thumbMinSize?: number;
|
|
666
|
+
/**
|
|
667
|
+
* 범용 렌더링 활성화 (기본값: false)
|
|
668
|
+
*/
|
|
669
|
+
universal?: boolean;
|
|
670
|
+
/**
|
|
671
|
+
* 자동 높이 모드 활성화. (기본값: true)
|
|
672
|
+
*/
|
|
673
|
+
autoHeight?: boolean;
|
|
674
|
+
/**
|
|
675
|
+
* 자동 높이 모드의 최소 높이 설정 (기본값: 0)
|
|
676
|
+
*/
|
|
677
|
+
autoHeightMin?: number | string;
|
|
678
|
+
/**
|
|
679
|
+
* 자동 높이 모드의 최대 높이 설정 (기본값: 200)
|
|
680
|
+
*/
|
|
681
|
+
autoHeightMax?: number | string;
|
|
682
|
+
style?: React$1.CSSProperties;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare const ScrollArea: ({ children, ...rest }: ScrollAreaProps) => react_jsx_runtime.JSX.Element;
|
|
686
|
+
|
|
599
687
|
declare const dropdownOptionVar: {
|
|
600
688
|
readonly CLICK: "CLICK";
|
|
601
689
|
readonly OUTSIDE_CLICK: "OUTSIDE_CLICK";
|
|
@@ -1038,4 +1126,4 @@ interface MinusBoxOptionProps {
|
|
|
1038
1126
|
|
|
1039
1127
|
declare const MinusButton: React__default.ForwardRefExoticComponent<MinusBoxProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1040
1128
|
|
|
1041
|
-
export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, Dropdown, DropdownButtonIcon, DropdownButtonProps, DropdownContentProps, DropdownOptionProps, DropdownOptionVar, DropdownProps, DropdownSizeVariantType, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, Input, InputButton, InputButtonOptionProps, InputButtonProps, InputOptionProps, InputProps, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusBoxOptionProps, MinusBoxProps, MinusButton, Modal, ModalBodyOptionProps, ModalBodyProps, ModalContainerOptionProps, ModalContainerProps, ModalFooterOptionProps, ModalFooterProps, ModalFooterType, ModalHeaderOptionProps, ModalHeaderProps, ModalHeaderType, ModalPortal as ModalProvider, ModalSize, ModalSizeType, MotionStack, MotionStackComponentType, Popper, PopperOptionProps, PopperPortal, PopperPortalProps, PopperProps, PopperTrigger, PopperTriggerProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledPopper, StyledStack, Switch, SwitchOptionProps, SwitchProps, Text, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
|
1129
|
+
export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, Dropdown, DropdownButtonIcon, DropdownButtonProps, DropdownContentProps, DropdownOptionProps, DropdownOptionVar, DropdownProps, DropdownSizeVariantType, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, Input, InputButton, InputButtonOptionProps, InputButtonProps, InputOptionProps, InputProps, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusBoxOptionProps, MinusBoxProps, MinusButton, Modal, ModalBodyOptionProps, ModalBodyProps, ModalContainerOptionProps, ModalContainerProps, ModalFooterOptionProps, ModalFooterProps, ModalFooterType, ModalHeaderOptionProps, ModalHeaderProps, ModalHeaderType, ModalPortal as ModalProvider, ModalSize, ModalSizeType, MotionStack, MotionStackComponentType, Popper, PopperOptionProps, PopperPortal, PopperPortalProps, PopperProps, PopperTrigger, PopperTriggerProps, ScrollArea, ScrollAreaOptionProps, ScrollAreaProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledPopper, StyledStack, Switch, SwitchOptionProps, SwitchProps, Text, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ import { $Values } from '@shoplflow/utils';
|
|
|
11
11
|
import { Middleware } from '@floating-ui/react-dom';
|
|
12
12
|
import { AutoPlacementOptions, Placement } from '@floating-ui/react';
|
|
13
13
|
import { OffsetOptions } from '@floating-ui/core';
|
|
14
|
+
import { positionValues } from 'react-custom-scrollbars-2';
|
|
14
15
|
|
|
15
16
|
declare type DomainType = 'SHOPL' | 'HADA';
|
|
16
17
|
|
|
@@ -596,6 +597,93 @@ declare const StyledPopper: _emotion_styled.StyledComponent<{
|
|
|
596
597
|
as?: React$1.ElementType<any> | undefined;
|
|
597
598
|
} & Pick<PopperTriggerProps, "height" | "width">, React$1.DetailedHTMLProps<React$1.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
598
599
|
|
|
600
|
+
interface ScrollAreaProps extends ScrollAreaOptionProps, ChildrenProps {
|
|
601
|
+
}
|
|
602
|
+
interface ScrollAreaOptionProps {
|
|
603
|
+
id?: string;
|
|
604
|
+
/**
|
|
605
|
+
* (Function) 스크롤 이벤트 핸들러
|
|
606
|
+
*/
|
|
607
|
+
onScroll?: React$1.UIEventHandler<any>;
|
|
608
|
+
/**
|
|
609
|
+
* (Function) 애니메이션 프레임 내에서 실행됩니다.
|
|
610
|
+
*/
|
|
611
|
+
onScrollFrame?: (values: positionValues) => void;
|
|
612
|
+
/**
|
|
613
|
+
* 스크롤이 시작될 때 호출됩니다.
|
|
614
|
+
*/
|
|
615
|
+
onScrollStart?: () => void;
|
|
616
|
+
/**
|
|
617
|
+
* 스크롤이 멈출 때 호출됩니다.
|
|
618
|
+
*/
|
|
619
|
+
onScrollStop?: () => void;
|
|
620
|
+
/**
|
|
621
|
+
* 컴포넌트가 업데이트될 때마다 호출됩니다. 애니메이션 프레임 내에서 실행됩니다.
|
|
622
|
+
*/
|
|
623
|
+
onUpdate?: (values: positionValues) => void;
|
|
624
|
+
/**
|
|
625
|
+
* 콘텐츠가 렌더링될 요소
|
|
626
|
+
*/
|
|
627
|
+
renderView?: React$1.ComponentType<any>;
|
|
628
|
+
/**
|
|
629
|
+
* 수평 트랙 요소
|
|
630
|
+
*/
|
|
631
|
+
renderTrackHorizontal?: React$1.ComponentType<any>;
|
|
632
|
+
/**
|
|
633
|
+
* 수직 트랙 요소
|
|
634
|
+
*/
|
|
635
|
+
renderTrackVertical?: React$1.ComponentType<any>;
|
|
636
|
+
/**
|
|
637
|
+
* 수평 스크롤 바 요소
|
|
638
|
+
*/
|
|
639
|
+
renderThumbHorizontal?: React$1.ComponentType<any>;
|
|
640
|
+
/**
|
|
641
|
+
* 수직 스크롤 바 요소
|
|
642
|
+
*/
|
|
643
|
+
renderThumbVertical?: React$1.ComponentType<any>;
|
|
644
|
+
tagName?: string;
|
|
645
|
+
/**
|
|
646
|
+
* 컨테이너가 오버플로되지 않을 때 트랙을 숨깁니다
|
|
647
|
+
*/
|
|
648
|
+
hideTracksWhenNotNeeded?: boolean;
|
|
649
|
+
autoHide?: boolean;
|
|
650
|
+
/**
|
|
651
|
+
* 숨김 지연 시간(ms). (기본값: 1000)
|
|
652
|
+
*/
|
|
653
|
+
autoHideTimeout?: number;
|
|
654
|
+
/**
|
|
655
|
+
* 숨김 지속 시간(ms). (기본값: 200)
|
|
656
|
+
*/
|
|
657
|
+
autoHideDuration?: number;
|
|
658
|
+
/**
|
|
659
|
+
* 스크롤 바의 고정 크기를 px 단위로 설정합니다.
|
|
660
|
+
*/
|
|
661
|
+
thumbSize?: number;
|
|
662
|
+
/**
|
|
663
|
+
* 최소 스크롤 바 크기를 px 단위로 설정합니다. (기본값: 30)
|
|
664
|
+
*/
|
|
665
|
+
thumbMinSize?: number;
|
|
666
|
+
/**
|
|
667
|
+
* 범용 렌더링 활성화 (기본값: false)
|
|
668
|
+
*/
|
|
669
|
+
universal?: boolean;
|
|
670
|
+
/**
|
|
671
|
+
* 자동 높이 모드 활성화. (기본값: true)
|
|
672
|
+
*/
|
|
673
|
+
autoHeight?: boolean;
|
|
674
|
+
/**
|
|
675
|
+
* 자동 높이 모드의 최소 높이 설정 (기본값: 0)
|
|
676
|
+
*/
|
|
677
|
+
autoHeightMin?: number | string;
|
|
678
|
+
/**
|
|
679
|
+
* 자동 높이 모드의 최대 높이 설정 (기본값: 200)
|
|
680
|
+
*/
|
|
681
|
+
autoHeightMax?: number | string;
|
|
682
|
+
style?: React$1.CSSProperties;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare const ScrollArea: ({ children, ...rest }: ScrollAreaProps) => react_jsx_runtime.JSX.Element;
|
|
686
|
+
|
|
599
687
|
declare const dropdownOptionVar: {
|
|
600
688
|
readonly CLICK: "CLICK";
|
|
601
689
|
readonly OUTSIDE_CLICK: "OUTSIDE_CLICK";
|
|
@@ -1038,4 +1126,4 @@ interface MinusBoxOptionProps {
|
|
|
1038
1126
|
|
|
1039
1127
|
declare const MinusButton: React__default.ForwardRefExoticComponent<MinusBoxProps & React__default.RefAttributes<HTMLButtonElement>>;
|
|
1040
1128
|
|
|
1041
|
-
export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, Dropdown, DropdownButtonIcon, DropdownButtonProps, DropdownContentProps, DropdownOptionProps, DropdownOptionVar, DropdownProps, DropdownSizeVariantType, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, Input, InputButton, InputButtonOptionProps, InputButtonProps, InputOptionProps, InputProps, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusBoxOptionProps, MinusBoxProps, MinusButton, Modal, ModalBodyOptionProps, ModalBodyProps, ModalContainerOptionProps, ModalContainerProps, ModalFooterOptionProps, ModalFooterProps, ModalFooterType, ModalHeaderOptionProps, ModalHeaderProps, ModalHeaderType, ModalPortal as ModalProvider, ModalSize, ModalSizeType, MotionStack, MotionStackComponentType, Popper, PopperOptionProps, PopperPortal, PopperPortalProps, PopperProps, PopperTrigger, PopperTriggerProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledPopper, StyledStack, Switch, SwitchOptionProps, SwitchProps, Text, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
|
1129
|
+
export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVar, ButtonStyleVar, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, Dropdown, DropdownButtonIcon, DropdownButtonProps, DropdownContentProps, DropdownOptionProps, DropdownOptionVar, DropdownProps, DropdownSizeVariantType, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVar, IconButtonStyleVar, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, Input, InputButton, InputButtonOptionProps, InputButtonProps, InputOptionProps, InputProps, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusBoxOptionProps, MinusBoxProps, MinusButton, Modal, ModalBodyOptionProps, ModalBodyProps, ModalContainerOptionProps, ModalContainerProps, ModalFooterOptionProps, ModalFooterProps, ModalFooterType, ModalHeaderOptionProps, ModalHeaderProps, ModalHeaderType, ModalPortal as ModalProvider, ModalSize, ModalSizeType, MotionStack, MotionStackComponentType, Popper, PopperOptionProps, PopperPortal, PopperPortalProps, PopperProps, PopperTrigger, PopperTriggerProps, ScrollArea, ScrollAreaOptionProps, ScrollAreaProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledPopper, StyledStack, Switch, SwitchOptionProps, SwitchProps, Text, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
package/dist/index.js
CHANGED
|
@@ -619,14 +619,21 @@ var BodyContainer = styled5.div`
|
|
|
619
619
|
flex: 1;
|
|
620
620
|
${({ isIncludeHeader }) => getModalBodyTopBottomPadding(isIncludeHeader)}
|
|
621
621
|
`;
|
|
622
|
+
var ModalBodyContainerInner = styled5.div`
|
|
623
|
+
display: grid;
|
|
624
|
+
align-self: stretch;
|
|
625
|
+
flex-direction: column;
|
|
626
|
+
flex-grow: 1;
|
|
627
|
+
//스크롤 생성시 하단 padding 적용하기 위한 설정
|
|
628
|
+
height: calc(100%);
|
|
629
|
+
box-sizing: border-box;
|
|
630
|
+
`;
|
|
622
631
|
var ModalBodyContent = styled5.div`
|
|
623
632
|
display: flex;
|
|
624
633
|
flex-direction: column;
|
|
625
|
-
|
|
626
|
-
max-width: ${({ sizeVar }) => getModalWidthFromSize(sizeVar)}px;
|
|
634
|
+
height: 100%;
|
|
627
635
|
box-sizing: border-box;
|
|
628
636
|
padding: 0 24px;
|
|
629
|
-
overflow: hidden;
|
|
630
637
|
background: ${colorTokens.neutral0};
|
|
631
638
|
`;
|
|
632
639
|
var FooterContainer = styled5.div`
|
|
@@ -692,6 +699,11 @@ var ModalFooter = ({ children }) => {
|
|
|
692
699
|
};
|
|
693
700
|
ModalFooter[MODAL_FOOTER_KEY] = true;
|
|
694
701
|
var ModalFooter_default = ModalFooter;
|
|
702
|
+
var ScrollArea = (_a) => {
|
|
703
|
+
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
|
704
|
+
return /* @__PURE__ */ jsx(Scrollbars, __spreadProps(__spreadValues({ autoHide: true, autoHideTimeout: 1e3, autoHideDuration: 200 }, rest), { "data-shoplflow": "ScrollArea", children }));
|
|
705
|
+
};
|
|
706
|
+
var ScrollArea_default = ScrollArea;
|
|
695
707
|
var ModalBody = ({
|
|
696
708
|
children,
|
|
697
709
|
isIncludeHeader = false,
|
|
@@ -726,20 +738,18 @@ var ModalBody = ({
|
|
|
726
738
|
const heightUnderMaxHeight = windowHeight - topBottomMargin - headerFooterHeight;
|
|
727
739
|
const heightOverMaxHeight = 1200 - topBottomMargin - headerFooterHeight;
|
|
728
740
|
return /* @__PURE__ */ jsx(BodyContainer, { isIncludeHeader, height: setAutoHeightMin(), children: /* @__PURE__ */ jsx(
|
|
729
|
-
|
|
741
|
+
ScrollArea_default,
|
|
730
742
|
{
|
|
731
743
|
id: `scrollbar`,
|
|
744
|
+
universal: true,
|
|
732
745
|
autoHeight: !modalContainerHeight,
|
|
733
746
|
autoHeightMin: setAutoHeightMin(),
|
|
734
747
|
autoHeightMax: windowHeight > 1200 ? heightOverMaxHeight : heightUnderMaxHeight,
|
|
735
|
-
autoHide: true,
|
|
736
|
-
autoHideTimeout: 1e3,
|
|
737
|
-
autoHideDuration: 200,
|
|
738
748
|
style: {
|
|
739
749
|
height: "100%",
|
|
740
750
|
overflow: "hidden"
|
|
741
751
|
},
|
|
742
|
-
children: /* @__PURE__ */ jsx(ModalBodyContent, { isIncludeHeader, sizeVar, children })
|
|
752
|
+
children: /* @__PURE__ */ jsx(ModalBodyContainerInner, { children: /* @__PURE__ */ jsx(ModalBodyContent, { isIncludeHeader, sizeVar, children }) })
|
|
743
753
|
}
|
|
744
754
|
) });
|
|
745
755
|
};
|
|
@@ -2266,6 +2276,6 @@ var MinusButton = forwardRef((_a, ref) => {
|
|
|
2266
2276
|
});
|
|
2267
2277
|
var MinusButton_default = MinusButton;
|
|
2268
2278
|
|
|
2269
|
-
export { Button_default as Button, Callout_default as Callout, CalloutTypes, ChipButton_default as ChipButton, ChipButtonSizeVariants, ChipButtonStyleVariants, ChipToggle_default as ChipToggle, ChipToggleSizeVariants, ChipToggleStyleVariants, Dropdown_default as Dropdown, DropdownButtonIcon, Icon_default as Icon, IconButton_default as IconButton, IconSizeVariants, Input_default as Input, InputButton_default as InputButton, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusButton_default as MinusButton, Modal, ModalPortal_default as ModalProvider, ModalSize, MotionStack, Popper_default as Popper, PopperPortal2 as PopperPortal, PopperTrigger, ShoplflowProvider_default as ShoplflowProvider, Stack_default as Stack, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledPopper, StyledStack, Switch_default as Switch, Text_default as Text, TextArea_default as TextArea, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
|
2279
|
+
export { Button_default as Button, Callout_default as Callout, CalloutTypes, ChipButton_default as ChipButton, ChipButtonSizeVariants, ChipButtonStyleVariants, ChipToggle_default as ChipToggle, ChipToggleSizeVariants, ChipToggleStyleVariants, Dropdown_default as Dropdown, DropdownButtonIcon, Icon_default as Icon, IconButton_default as IconButton, IconSizeVariants, Input_default as Input, InputButton_default as InputButton, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, MinusButton_default as MinusButton, Modal, ModalPortal_default as ModalProvider, ModalSize, MotionStack, Popper_default as Popper, PopperPortal2 as PopperPortal, PopperTrigger, ScrollArea_default as ScrollArea, ShoplflowProvider_default as ShoplflowProvider, Stack_default as Stack, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledPopper, StyledStack, Switch_default as Switch, Text_default as Text, TextArea_default as TextArea, borderRadiusTokens, boxShadowTokens, buttonSizeVar, buttonStyleVar, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, iconButtonSizeVar, iconButtonStyleVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
|
2270
2280
|
//# sourceMappingURL=out.js.map
|
|
2271
2281
|
//# sourceMappingURL=index.js.map
|