@shoplflow/base 0.7.2 → 0.10.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.
@@ -1,2 +1,3 @@
1
1
  export { default as ChipButton } from './ChipButton';
2
+ export * from './ChipButton.styled';
2
3
  export * from './ChipButton.types';
@@ -1,2 +1,3 @@
1
1
  export { default as ChipToggle } from './ChipToggle';
2
+ export * from './ChipToggle.styled';
2
3
  export * from './ChipToggle.types';
@@ -1,6 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import type { ChildrenProps, SizeVariantProps } from '../../utils/type/ComponentProps';
3
- import type { $Values } from '../../utils/type/$values';
3
+ import type { $Values } from '@shoplflow/utils';
4
4
  export declare enum ModalSize {
5
5
  XXS = "XXS",
6
6
  XS = "XS",
@@ -41,6 +41,10 @@ export interface ModalBodyOptionProps {
41
41
  height?: number;
42
42
  sizeVar?: ModalSizeType;
43
43
  }
44
+ export declare const MODAL_BODY_KEY: unique symbol;
45
+ export interface ModalBodyType extends React.FC<ModalBodyProps> {
46
+ [MODAL_BODY_KEY]?: boolean;
47
+ }
44
48
  export interface ModalFooterProps extends ModalFooterOptionProps, ChildrenProps {
45
49
  }
46
50
  export interface ModalFooterOptionProps {
@@ -1,3 +1,3 @@
1
- import type { ModalBodyProps } from './Modal.types';
2
- declare const ModalBody: ({ children, isIncludeHeader, isIncludeFooter, sizeVar, height: modalContainerHeight, }: ModalBodyProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
1
+ import type { ModalBodyType } from './Modal.types';
2
+ declare const ModalBody: ModalBodyType;
3
3
  export default ModalBody;
@@ -1,3 +1,3 @@
1
1
  import type { ModalContainerProps } from './Modal.types';
2
- declare const ModalContainer: ({ children, outsideClick, sizeVar, ...rest }: ModalContainerProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
2
+ declare const ModalContainer: ({ children, outsideClick, ...rest }: ModalContainerProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
3
3
  export default ModalContainer;
@@ -1,7 +1,7 @@
1
1
  export declare const Modal: {
2
- Container: ({ children, outsideClick, sizeVar, ...rest }: import("./Modal.types").ModalContainerProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
2
+ Container: ({ children, outsideClick, ...rest }: import("./Modal.types").ModalContainerProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
3
3
  Header: import("./Modal.types").ModalHeaderType;
4
- Body: ({ children, isIncludeHeader, isIncludeFooter, sizeVar, height: modalContainerHeight, }: import("./Modal.types").ModalBodyProps) => import("@emotion/react/types/jsx-namespace").EmotionJSX.Element;
4
+ Body: import("./Modal.types").ModalBodyType;
5
5
  Footer: import("./Modal.types").ModalFooterType;
6
6
  };
7
7
  export * from './Modal.types';
@@ -1,10 +1,10 @@
1
1
  import type { ComponentPropsWithRef, CSSProperties, ReactElement } from 'react';
2
2
  import type { CustomDomComponent } from 'framer-motion';
3
3
  import type { BorderRadiusTokens, ColorTokens, SpacingTokens } from '../../styles';
4
- import type { ChildrenProps, HTMLPropsWithOutRef, RenderConfigProps, StringElementType } from '../../utils/type/ComponentProps';
5
- export type StackGenericProps<T extends StringElementType = 'div'> = RenderConfigProps & StackProps & HTMLPropsWithOutRef<T>;
4
+ import type { ChildrenProps, HTMLPropsWithoutRef, RenderConfigProps, StringElementType } from '../../utils/type/ComponentProps';
5
+ export type StackGenericProps<T extends StringElementType = 'div'> = RenderConfigProps & StackProps & HTMLPropsWithoutRef<T>;
6
6
  export type StackComponentType = <T extends StringElementType = 'div'>(props: StackGenericProps<T> & Pick<ComponentPropsWithRef<T>, 'ref'>) => ReactElement | null;
7
- export type MotionStackComponentType<T extends StringElementType = 'div'> = CustomDomComponent<RenderConfigProps & HTMLPropsWithOutRef<T> & StackProps>;
7
+ export type MotionStackComponentType<T extends StringElementType = 'div'> = CustomDomComponent<RenderConfigProps & HTMLPropsWithoutRef<T> & StackProps>;
8
8
  export interface StackProps extends StackOptionProps, ChildrenProps {
9
9
  }
10
10
  export interface StackOptionProps {
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ /// <reference types="react" />
2
2
  import type { TextProps } from './Text.types';
3
- declare const Text: React.ForwardRefExoticComponent<TextProps & React.RefAttributes<HTMLElement>>;
3
+ declare const Text: import("react").ForwardRefExoticComponent<TextProps & import("react").RefAttributes<unknown>>;
4
4
  export default Text;
@@ -2,5 +2,3 @@ export * from './useDomain';
2
2
  export * from './useHandleModal';
3
3
  export * from './useModalValue';
4
4
  export * from './useModalStore';
5
- export * from './useOutsideClick';
6
- export * from './useResizeObserver';
@@ -3,4 +3,5 @@ type UseDomainProps = {
3
3
  domain?: DomainType;
4
4
  };
5
5
  export declare const useDomain: ({ domain }: UseDomainProps) => void;
6
+ export declare const getDomain: () => "shopl" | "hada";
6
7
  export {};