@shoplflow/base 0.22.0 → 0.22.2
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/AvatarNone-F5VQQNT7.png +0 -0
- package/dist/index.cjs +123 -48
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -7
- package/dist/index.d.ts +26 -7
- package/dist/index.js +123 -48
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.cts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactNode, ElementType, ComponentPropsWithoutRef, ReactElement, ComponentPropsWithRef, CSSProperties, HTMLAttributes, InputHTMLAttributes, MouseEvent } from 'react';
|
|
4
|
-
import
|
|
5
|
-
import { CustomDomComponent } from 'framer-motion';
|
|
3
|
+
import React__default, { ReactNode, ElementType, ComponentPropsWithoutRef, ReactElement, ImgHTMLAttributes, ComponentPropsWithRef, CSSProperties, HTMLAttributes, InputHTMLAttributes, MouseEvent } from 'react';
|
|
4
|
+
import { $Values } from '@shoplflow/utils';
|
|
6
5
|
import { IconSource } from '@shoplflow/shopl-assets';
|
|
7
6
|
import { IconSource as IconSource$1 } from '@shoplflow/hada-assets';
|
|
7
|
+
import * as framer_motion from 'framer-motion';
|
|
8
|
+
import { CustomDomComponent } from 'framer-motion';
|
|
8
9
|
import * as _emotion_styled from '@emotion/styled';
|
|
9
10
|
import * as _emotion_react from '@emotion/react';
|
|
10
|
-
import { $Values } from '@shoplflow/utils';
|
|
11
11
|
import { AutoPlacementOptions, Placement } from '@floating-ui/react';
|
|
12
12
|
export { arrow, flip, hide, inline, offset, shift, size } from '@floating-ui/react';
|
|
13
13
|
import { Middleware } from '@floating-ui/react-dom';
|
|
@@ -277,6 +277,25 @@ interface RightElementProps {
|
|
|
277
277
|
interface LeftAndRightElementProps extends RightElementProps, LeftElementProps {
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
+
declare const AvatarSizeVariants: {
|
|
281
|
+
readonly XS: "XS";
|
|
282
|
+
readonly S: "S";
|
|
283
|
+
readonly M: "M";
|
|
284
|
+
readonly L: "L";
|
|
285
|
+
readonly XL: "XL";
|
|
286
|
+
};
|
|
287
|
+
declare type AvatarSizeVariantType = $Values<typeof AvatarSizeVariants>;
|
|
288
|
+
interface AvatarProps extends AvatarOptionProps {
|
|
289
|
+
}
|
|
290
|
+
interface AvatarOptionProps extends SizeVariantProps<AvatarSizeVariantType>, ImgHTMLAttributes<HTMLImageElement> {
|
|
291
|
+
/**
|
|
292
|
+
* 아바타 우측 하단에 배지를 표시합니다.
|
|
293
|
+
*/
|
|
294
|
+
badge?: ReactNode;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare const Avatar: ({ src, badge, ...rest }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
298
|
+
|
|
280
299
|
declare type StackGenericProps<T extends StringElementType = 'div'> = RenderConfigProps & StackProps & HTMLPropsWithoutRef<T>;
|
|
281
300
|
declare type StackComponentType = <T extends StringElementType = 'div'>(props: StackGenericProps<T> & Pick<ComponentPropsWithRef<T>, 'ref'>) => ReactElement | null;
|
|
282
301
|
declare type MotionStackComponentType<T extends StringElementType = 'div'> = CustomDomComponent<RenderConfigProps & HTMLPropsWithoutRef<T> & StackProps>;
|
|
@@ -448,7 +467,7 @@ interface ChipToggleProps extends ChipToggleOptionProps, SelectedProps, DefaultS
|
|
|
448
467
|
interface ChipToggleOptionProps {
|
|
449
468
|
}
|
|
450
469
|
|
|
451
|
-
declare const ChipToggle: ({ text, isSelected, defaultSelected, color, styleVar, sizeVar, leftSource, rightSource, onClick, disabled, ...rest }: ChipToggleProps) => react_jsx_runtime.JSX.Element;
|
|
470
|
+
declare const ChipToggle: ({ text, isSelected, defaultSelected, color, radius, styleVar, sizeVar, leftSource, rightSource, onClick, disabled, ...rest }: ChipToggleProps) => react_jsx_runtime.JSX.Element;
|
|
452
471
|
|
|
453
472
|
declare const ChipButtonStyleVariants: {
|
|
454
473
|
readonly LINE: "LINE";
|
|
@@ -745,7 +764,7 @@ declare const Dropdown: {
|
|
|
745
764
|
Content: ({ children, width: initialWidth, type, onClick, ...rest }: DropdownContentProps) => react_jsx_runtime.JSX.Element;
|
|
746
765
|
};
|
|
747
766
|
|
|
748
|
-
declare const getDropdownHeightBySizeVar: (size: DropdownSizeVariantType) => "
|
|
767
|
+
declare const getDropdownHeightBySizeVar: (size: DropdownSizeVariantType) => "32px" | "40px";
|
|
749
768
|
declare const getDropdownFontSizeBySizeVar: (size: DropdownSizeVariantType) => "body1_400" | "body2_400";
|
|
750
769
|
declare const getDropdownStyleBySizeVar: (size: DropdownSizeVariantType) => _emotion_react.SerializedStyles;
|
|
751
770
|
declare const getDropdownIconSizeBySizeVar: (size: DropdownSizeVariantType) => _emotion_react.SerializedStyles;
|
|
@@ -1216,4 +1235,4 @@ interface RadioOptionProps extends SelectedProps, DefaultSelectedProps, DisableP
|
|
|
1216
1235
|
|
|
1217
1236
|
declare const Radio: ({ isSelected, defaultSelected, disabled, onClick, onMouseEnter, onMouseLeave, ...rest }: RadioProps) => react_jsx_runtime.JSX.Element;
|
|
1218
1237
|
|
|
1219
|
-
export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVariantType, ButtonSizeVariants, ButtonStyleVariantType, ButtonStyleVariants, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, Checkbox, CheckboxOptionProps, CheckboxProps, CheckboxStyleVariantType, CheckboxStyleVariants, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, Dropdown, DropdownButtonIcon, DropdownButtonProps, DropdownContentProps, DropdownOptionProps, DropdownOptionVariantType, DropdownProps, DropdownSizeVariantType, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVariantType, IconButtonSizeVariants, IconButtonStyleVariantType, IconButtonStyleVariants, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, Input, InputButton, InputButtonOptionProps, InputButtonProps, InputOptionProps, InputProps, List, ListContent2ColumnsProps, ListOptionProps, ListProps, ListText2RowsProps, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, Menu, MenuOptionProps, MenuProps, MenuSizeVariantType, MenuSizeVariants, 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, Radio, RadioOptionProps, RadioProps, ScrollArea, ScrollAreaOptionProps, ScrollAreaProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledInputButtonContent, StyledList, StyledMenu, StyledPopper, StyledStack, StyledText2Rows, Switch, SwitchOptionProps, SwitchProps, Tag, TagOptionProps, TagProps, TagSizeVariantType, TagSizeVariants, TagStyleVariantType, TagStyleVariants, Text, Text2Rows, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, getFontStylesBySizeVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
|
1238
|
+
export { Avatar, AvatarOptionProps, AvatarProps, AvatarSizeVariantType, AvatarSizeVariants, BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVariantType, ButtonSizeVariants, ButtonStyleVariantType, ButtonStyleVariants, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, Checkbox, CheckboxOptionProps, CheckboxProps, CheckboxStyleVariantType, CheckboxStyleVariants, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, Dropdown, DropdownButtonIcon, DropdownButtonProps, DropdownContentProps, DropdownOptionProps, DropdownOptionVariantType, DropdownProps, DropdownSizeVariantType, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVariantType, IconButtonSizeVariants, IconButtonStyleVariantType, IconButtonStyleVariants, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, Input, InputButton, InputButtonOptionProps, InputButtonProps, InputOptionProps, InputProps, List, ListContent2ColumnsProps, ListOptionProps, ListProps, ListText2RowsProps, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, Menu, MenuOptionProps, MenuProps, MenuSizeVariantType, MenuSizeVariants, 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, Radio, RadioOptionProps, RadioProps, ScrollArea, ScrollAreaOptionProps, ScrollAreaProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledInputButtonContent, StyledList, StyledMenu, StyledPopper, StyledStack, StyledText2Rows, Switch, SwitchOptionProps, SwitchProps, Tag, TagOptionProps, TagProps, TagSizeVariantType, TagSizeVariants, TagStyleVariantType, TagStyleVariants, Text, Text2Rows, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, getFontStylesBySizeVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as React$1 from 'react';
|
|
3
|
-
import React__default, { ReactNode, ElementType, ComponentPropsWithoutRef, ReactElement, ComponentPropsWithRef, CSSProperties, HTMLAttributes, InputHTMLAttributes, MouseEvent } from 'react';
|
|
4
|
-
import
|
|
5
|
-
import { CustomDomComponent } from 'framer-motion';
|
|
3
|
+
import React__default, { ReactNode, ElementType, ComponentPropsWithoutRef, ReactElement, ImgHTMLAttributes, ComponentPropsWithRef, CSSProperties, HTMLAttributes, InputHTMLAttributes, MouseEvent } from 'react';
|
|
4
|
+
import { $Values } from '@shoplflow/utils';
|
|
6
5
|
import { IconSource } from '@shoplflow/shopl-assets';
|
|
7
6
|
import { IconSource as IconSource$1 } from '@shoplflow/hada-assets';
|
|
7
|
+
import * as framer_motion from 'framer-motion';
|
|
8
|
+
import { CustomDomComponent } from 'framer-motion';
|
|
8
9
|
import * as _emotion_styled from '@emotion/styled';
|
|
9
10
|
import * as _emotion_react from '@emotion/react';
|
|
10
|
-
import { $Values } from '@shoplflow/utils';
|
|
11
11
|
import { AutoPlacementOptions, Placement } from '@floating-ui/react';
|
|
12
12
|
export { arrow, flip, hide, inline, offset, shift, size } from '@floating-ui/react';
|
|
13
13
|
import { Middleware } from '@floating-ui/react-dom';
|
|
@@ -277,6 +277,25 @@ interface RightElementProps {
|
|
|
277
277
|
interface LeftAndRightElementProps extends RightElementProps, LeftElementProps {
|
|
278
278
|
}
|
|
279
279
|
|
|
280
|
+
declare const AvatarSizeVariants: {
|
|
281
|
+
readonly XS: "XS";
|
|
282
|
+
readonly S: "S";
|
|
283
|
+
readonly M: "M";
|
|
284
|
+
readonly L: "L";
|
|
285
|
+
readonly XL: "XL";
|
|
286
|
+
};
|
|
287
|
+
declare type AvatarSizeVariantType = $Values<typeof AvatarSizeVariants>;
|
|
288
|
+
interface AvatarProps extends AvatarOptionProps {
|
|
289
|
+
}
|
|
290
|
+
interface AvatarOptionProps extends SizeVariantProps<AvatarSizeVariantType>, ImgHTMLAttributes<HTMLImageElement> {
|
|
291
|
+
/**
|
|
292
|
+
* 아바타 우측 하단에 배지를 표시합니다.
|
|
293
|
+
*/
|
|
294
|
+
badge?: ReactNode;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare const Avatar: ({ src, badge, ...rest }: AvatarProps) => react_jsx_runtime.JSX.Element;
|
|
298
|
+
|
|
280
299
|
declare type StackGenericProps<T extends StringElementType = 'div'> = RenderConfigProps & StackProps & HTMLPropsWithoutRef<T>;
|
|
281
300
|
declare type StackComponentType = <T extends StringElementType = 'div'>(props: StackGenericProps<T> & Pick<ComponentPropsWithRef<T>, 'ref'>) => ReactElement | null;
|
|
282
301
|
declare type MotionStackComponentType<T extends StringElementType = 'div'> = CustomDomComponent<RenderConfigProps & HTMLPropsWithoutRef<T> & StackProps>;
|
|
@@ -448,7 +467,7 @@ interface ChipToggleProps extends ChipToggleOptionProps, SelectedProps, DefaultS
|
|
|
448
467
|
interface ChipToggleOptionProps {
|
|
449
468
|
}
|
|
450
469
|
|
|
451
|
-
declare const ChipToggle: ({ text, isSelected, defaultSelected, color, styleVar, sizeVar, leftSource, rightSource, onClick, disabled, ...rest }: ChipToggleProps) => react_jsx_runtime.JSX.Element;
|
|
470
|
+
declare const ChipToggle: ({ text, isSelected, defaultSelected, color, radius, styleVar, sizeVar, leftSource, rightSource, onClick, disabled, ...rest }: ChipToggleProps) => react_jsx_runtime.JSX.Element;
|
|
452
471
|
|
|
453
472
|
declare const ChipButtonStyleVariants: {
|
|
454
473
|
readonly LINE: "LINE";
|
|
@@ -745,7 +764,7 @@ declare const Dropdown: {
|
|
|
745
764
|
Content: ({ children, width: initialWidth, type, onClick, ...rest }: DropdownContentProps) => react_jsx_runtime.JSX.Element;
|
|
746
765
|
};
|
|
747
766
|
|
|
748
|
-
declare const getDropdownHeightBySizeVar: (size: DropdownSizeVariantType) => "
|
|
767
|
+
declare const getDropdownHeightBySizeVar: (size: DropdownSizeVariantType) => "32px" | "40px";
|
|
749
768
|
declare const getDropdownFontSizeBySizeVar: (size: DropdownSizeVariantType) => "body1_400" | "body2_400";
|
|
750
769
|
declare const getDropdownStyleBySizeVar: (size: DropdownSizeVariantType) => _emotion_react.SerializedStyles;
|
|
751
770
|
declare const getDropdownIconSizeBySizeVar: (size: DropdownSizeVariantType) => _emotion_react.SerializedStyles;
|
|
@@ -1216,4 +1235,4 @@ interface RadioOptionProps extends SelectedProps, DefaultSelectedProps, DisableP
|
|
|
1216
1235
|
|
|
1217
1236
|
declare const Radio: ({ isSelected, defaultSelected, disabled, onClick, onMouseEnter, onMouseLeave, ...rest }: RadioProps) => react_jsx_runtime.JSX.Element;
|
|
1218
1237
|
|
|
1219
|
-
export { BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVariantType, ButtonSizeVariants, ButtonStyleVariantType, ButtonStyleVariants, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, Checkbox, CheckboxOptionProps, CheckboxProps, CheckboxStyleVariantType, CheckboxStyleVariants, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, Dropdown, DropdownButtonIcon, DropdownButtonProps, DropdownContentProps, DropdownOptionProps, DropdownOptionVariantType, DropdownProps, DropdownSizeVariantType, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVariantType, IconButtonSizeVariants, IconButtonStyleVariantType, IconButtonStyleVariants, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, Input, InputButton, InputButtonOptionProps, InputButtonProps, InputOptionProps, InputProps, List, ListContent2ColumnsProps, ListOptionProps, ListProps, ListText2RowsProps, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, Menu, MenuOptionProps, MenuProps, MenuSizeVariantType, MenuSizeVariants, 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, Radio, RadioOptionProps, RadioProps, ScrollArea, ScrollAreaOptionProps, ScrollAreaProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledInputButtonContent, StyledList, StyledMenu, StyledPopper, StyledStack, StyledText2Rows, Switch, SwitchOptionProps, SwitchProps, Tag, TagOptionProps, TagProps, TagSizeVariantType, TagSizeVariants, TagStyleVariantType, TagStyleVariants, Text, Text2Rows, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, getFontStylesBySizeVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
|
1238
|
+
export { Avatar, AvatarOptionProps, AvatarProps, AvatarSizeVariantType, AvatarSizeVariants, BackDropOptionProps, BackDropProps, BorderRadiusTokens, BoxShadowTokens, Button, ButtonComponent, ButtonOptionProps, ButtonProps, ButtonSizeVariantType, ButtonSizeVariants, ButtonStyleVariantType, ButtonStyleVariants, Callout, CalloutOptionProps, CalloutProps, CalloutType, CalloutTypes, Checkbox, CheckboxOptionProps, CheckboxProps, CheckboxStyleVariantType, CheckboxStyleVariants, ChipButton, ChipButtonOptionProps, ChipButtonProps, ChipButtonSizeVariantType, ChipButtonSizeVariants, ChipButtonStyleVariantType, ChipButtonStyleVariants, ChipToggle, ChipToggleOptionProps, ChipToggleProps, ChipToggleSizeVariantType, ChipToggleSizeVariants, ChipToggleStyleVariantType, ChipToggleStyleVariants, ColorTokens, Dropdown, DropdownButtonIcon, DropdownButtonProps, DropdownContentProps, DropdownOptionProps, DropdownOptionVariantType, DropdownProps, DropdownSizeVariantType, FontWeightTokens, Icon, IconButton, IconButtonComponent, IconButtonOptionProps, IconButtonProps, IconButtonSizeVariantType, IconButtonSizeVariants, IconButtonStyleVariantType, IconButtonStyleVariants, IconOptionProps, IconProps, IconSizeVariants, IconSizeVariantsType, Input, InputButton, InputButtonOptionProps, InputButtonProps, InputOptionProps, InputProps, List, ListContent2ColumnsProps, ListOptionProps, ListProps, ListText2RowsProps, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, Menu, MenuOptionProps, MenuProps, MenuSizeVariantType, MenuSizeVariants, 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, Radio, RadioOptionProps, RadioProps, ScrollArea, ScrollAreaOptionProps, ScrollAreaProps, ShoplflowProvider, ShoplflowProviderProps, SpacingTokens, Stack, StackComponentType, StackGenericProps, StackOptionProps, StackProps, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledInputButtonContent, StyledList, StyledMenu, StyledPopper, StyledStack, StyledText2Rows, Switch, SwitchOptionProps, SwitchProps, Tag, TagOptionProps, TagProps, TagSizeVariantType, TagSizeVariants, TagStyleVariantType, TagStyleVariants, Text, Text2Rows, TextArea, TextAreaOptionProps, TextAreaProps, TextOptionProps, TextProps, TypographyTokens, borderRadiusTokens, boxShadowTokens, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, getFontStylesBySizeVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React3 from 'react';
|
|
2
2
|
import React3__default, { createContext, forwardRef, useEffect, useState, useId, useCallback, useContext, useMemo } from 'react';
|
|
3
|
-
import
|
|
3
|
+
import styled6 from '@emotion/styled';
|
|
4
4
|
import { motion, AnimatePresence } from 'framer-motion';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import { createPortal } from 'react-dom';
|
|
@@ -154,7 +154,7 @@ var fadeInOut = {
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
};
|
|
157
|
-
var BackDropStyled =
|
|
157
|
+
var BackDropStyled = styled6(motion.div)`
|
|
158
158
|
display: flex;
|
|
159
159
|
align-items: center;
|
|
160
160
|
justify-content: center;
|
|
@@ -185,7 +185,7 @@ var ModalHandlerContext = createContext({
|
|
|
185
185
|
removeModal: noop
|
|
186
186
|
});
|
|
187
187
|
var ModalContext = createContext([]);
|
|
188
|
-
var SpaceMarginWrapper =
|
|
188
|
+
var SpaceMarginWrapper = styled6(motion.div)`
|
|
189
189
|
position: relative;
|
|
190
190
|
display: flex;
|
|
191
191
|
align-items: center;
|
|
@@ -484,7 +484,75 @@ var typographyTokens = {
|
|
|
484
484
|
caption_700,
|
|
485
485
|
caption_400
|
|
486
486
|
};
|
|
487
|
-
var
|
|
487
|
+
var getSizeBySizeVariant = (size2) => {
|
|
488
|
+
switch (size2) {
|
|
489
|
+
case "XS":
|
|
490
|
+
return "18px";
|
|
491
|
+
case "S":
|
|
492
|
+
return "24px";
|
|
493
|
+
case "M":
|
|
494
|
+
return "32px";
|
|
495
|
+
case "L":
|
|
496
|
+
return "48px";
|
|
497
|
+
case "XL":
|
|
498
|
+
return "72px";
|
|
499
|
+
default:
|
|
500
|
+
return "32px";
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
var StyledAvatar = styled6.picture`
|
|
504
|
+
display: flex;
|
|
505
|
+
align-items: center;
|
|
506
|
+
justify-content: center;
|
|
507
|
+
width: ${({ sizeVar }) => getSizeBySizeVariant(sizeVar)};
|
|
508
|
+
height: ${({ sizeVar }) => getSizeBySizeVariant(sizeVar)};
|
|
509
|
+
position: relative;
|
|
510
|
+
overflow: hidden;
|
|
511
|
+
border-radius: 50%;
|
|
512
|
+
`;
|
|
513
|
+
var StyledAvatarContainer = styled6.div`
|
|
514
|
+
display: flex;
|
|
515
|
+
align-items: center;
|
|
516
|
+
justify-content: center;
|
|
517
|
+
width: fit-content;
|
|
518
|
+
height: fit-content;
|
|
519
|
+
position: relative;
|
|
520
|
+
`;
|
|
521
|
+
var StyledAvatarImage = styled6.img`
|
|
522
|
+
width: 100%;
|
|
523
|
+
height: 100%;
|
|
524
|
+
`;
|
|
525
|
+
var StyledAvatarBadge = styled6.div`
|
|
526
|
+
position: absolute;
|
|
527
|
+
display: flex;
|
|
528
|
+
align-items: center;
|
|
529
|
+
justify-content: center;
|
|
530
|
+
width: fit-content;
|
|
531
|
+
height: fit-content;
|
|
532
|
+
bottom: 0;
|
|
533
|
+
right: 0;
|
|
534
|
+
`;
|
|
535
|
+
|
|
536
|
+
// src/assets/mocks/AvatarNone.png
|
|
537
|
+
var AvatarNone_default = "./AvatarNone-F5VQQNT7.png";
|
|
538
|
+
var Avatar = (_a) => {
|
|
539
|
+
var _b = _a, { src, badge } = _b, rest = __objRest(_b, ["src", "badge"]);
|
|
540
|
+
return /* @__PURE__ */ jsxs(StyledAvatarContainer, { children: [
|
|
541
|
+
/* @__PURE__ */ jsx(StyledAvatar, __spreadProps(__spreadValues({ "data-shoplflow": "Avatar" }, rest), { children: /* @__PURE__ */ jsx(StyledAvatarImage, { src: src != null ? src : AvatarNone_default }) })),
|
|
542
|
+
/* @__PURE__ */ jsx(StyledAvatarBadge, { children: badge })
|
|
543
|
+
] });
|
|
544
|
+
};
|
|
545
|
+
var Avatar_default = Avatar;
|
|
546
|
+
|
|
547
|
+
// src/components/Avatar/Avatar.types.ts
|
|
548
|
+
var AvatarSizeVariants = {
|
|
549
|
+
XS: "XS",
|
|
550
|
+
S: "S",
|
|
551
|
+
M: "M",
|
|
552
|
+
L: "L",
|
|
553
|
+
XL: "XL"
|
|
554
|
+
};
|
|
555
|
+
var StyledStack = styled6.div`
|
|
488
556
|
display: flex;
|
|
489
557
|
width: ${({ width }) => width};
|
|
490
558
|
height: ${({ height }) => height};
|
|
@@ -562,7 +630,7 @@ var setEllipsis = (maxLines) => {
|
|
|
562
630
|
text-overflow: ellipsis;
|
|
563
631
|
`;
|
|
564
632
|
};
|
|
565
|
-
var StyledText =
|
|
633
|
+
var StyledText = styled6.span`
|
|
566
634
|
display: ${({ display }) => display && display};
|
|
567
635
|
align-items: center;
|
|
568
636
|
color: ${({ color }) => color && colorTokens[color]};
|
|
@@ -657,7 +725,7 @@ var getModalBodyTopBottomPadding = (isIncludeHeader) => {
|
|
|
657
725
|
padding-bottom: 24px;
|
|
658
726
|
`;
|
|
659
727
|
};
|
|
660
|
-
var Container =
|
|
728
|
+
var Container = styled6.div`
|
|
661
729
|
display: flex;
|
|
662
730
|
flex-direction: column;
|
|
663
731
|
border-radius: ${borderRadiusTokens.borderRadius08};
|
|
@@ -671,7 +739,7 @@ var Container = styled5.div`
|
|
|
671
739
|
width: ${({ sizeVar }) => getModalWidthFromSize(sizeVar)}px;
|
|
672
740
|
max-width: ${({ sizeVar }) => getModalWidthFromSize(sizeVar)}px;
|
|
673
741
|
`;
|
|
674
|
-
var HeaderContainer =
|
|
742
|
+
var HeaderContainer = styled6.div`
|
|
675
743
|
display: flex;
|
|
676
744
|
width: 100%;
|
|
677
745
|
min-height: 64px;
|
|
@@ -680,7 +748,7 @@ var HeaderContainer = styled5.div`
|
|
|
680
748
|
padding: 12px 16px 12px 24px;
|
|
681
749
|
gap: 10px;
|
|
682
750
|
`;
|
|
683
|
-
var BodyContainer =
|
|
751
|
+
var BodyContainer = styled6.div`
|
|
684
752
|
display: flex;
|
|
685
753
|
width: 100%;
|
|
686
754
|
height: 100%;
|
|
@@ -692,7 +760,7 @@ var BodyContainer = styled5.div`
|
|
|
692
760
|
flex: 1;
|
|
693
761
|
${({ isIncludeHeader }) => getModalBodyTopBottomPadding(isIncludeHeader)}
|
|
694
762
|
`;
|
|
695
|
-
var ModalBodyContainerInner =
|
|
763
|
+
var ModalBodyContainerInner = styled6.div`
|
|
696
764
|
display: grid;
|
|
697
765
|
align-self: stretch;
|
|
698
766
|
flex-direction: column;
|
|
@@ -701,7 +769,7 @@ var ModalBodyContainerInner = styled5.div`
|
|
|
701
769
|
height: calc(100%);
|
|
702
770
|
box-sizing: border-box;
|
|
703
771
|
`;
|
|
704
|
-
var ModalBodyContent =
|
|
772
|
+
var ModalBodyContent = styled6.div`
|
|
705
773
|
display: flex;
|
|
706
774
|
flex-direction: column;
|
|
707
775
|
height: 100%;
|
|
@@ -709,7 +777,7 @@ var ModalBodyContent = styled5.div`
|
|
|
709
777
|
padding: 0 24px;
|
|
710
778
|
background: ${colorTokens.neutral0};
|
|
711
779
|
`;
|
|
712
|
-
var FooterContainer =
|
|
780
|
+
var FooterContainer = styled6.div`
|
|
713
781
|
display: flex;
|
|
714
782
|
width: 100%;
|
|
715
783
|
flex-direction: row;
|
|
@@ -840,7 +908,7 @@ var Modal = {
|
|
|
840
908
|
Body: ModalBody_default,
|
|
841
909
|
Footer: ModalFooter_default
|
|
842
910
|
};
|
|
843
|
-
var SwitchContainer =
|
|
911
|
+
var SwitchContainer = styled6.div`
|
|
844
912
|
width: 32px;
|
|
845
913
|
height: 32px;
|
|
846
914
|
border-radius: 6px;
|
|
@@ -853,7 +921,7 @@ var SwitchContainer = styled5.div`
|
|
|
853
921
|
background: ${({ isDisabled }) => !isDisabled && colorTokens.neutral400_5};
|
|
854
922
|
}
|
|
855
923
|
`;
|
|
856
|
-
var StyledSwitch =
|
|
924
|
+
var StyledSwitch = styled6.input`
|
|
857
925
|
appearance: none;
|
|
858
926
|
border: none;
|
|
859
927
|
border-radius: 12px;
|
|
@@ -974,7 +1042,11 @@ var getLineTypographyBySizeVar = (sizeVar) => {
|
|
|
974
1042
|
return "body2_400";
|
|
975
1043
|
}
|
|
976
1044
|
};
|
|
977
|
-
var solidStyle = ({
|
|
1045
|
+
var solidStyle = ({
|
|
1046
|
+
isSelected,
|
|
1047
|
+
color,
|
|
1048
|
+
$radius
|
|
1049
|
+
}) => css`
|
|
978
1050
|
padding: 7px 12px;
|
|
979
1051
|
gap: 4px;
|
|
980
1052
|
background: ${colorTokens.neutral150};
|
|
@@ -986,7 +1058,7 @@ var solidStyle = ({ isSelected, color, radius }) => css`
|
|
|
986
1058
|
background: ${colorTokens.neutral200};
|
|
987
1059
|
}
|
|
988
1060
|
|
|
989
|
-
${radius && css`
|
|
1061
|
+
${$radius && css`
|
|
990
1062
|
border-radius: ${borderRadiusTokens.borderRadius16};
|
|
991
1063
|
`};
|
|
992
1064
|
${isSelected && css`
|
|
@@ -999,7 +1071,7 @@ var solidStyle = ({ isSelected, color, radius }) => css`
|
|
|
999
1071
|
}
|
|
1000
1072
|
`};
|
|
1001
1073
|
`;
|
|
1002
|
-
var StyledChip =
|
|
1074
|
+
var StyledChip = styled6.button`
|
|
1003
1075
|
display: flex;
|
|
1004
1076
|
align-items: center;
|
|
1005
1077
|
justify-content: center;
|
|
@@ -1017,6 +1089,7 @@ var ChipToggle = (_a) => {
|
|
|
1017
1089
|
isSelected,
|
|
1018
1090
|
defaultSelected,
|
|
1019
1091
|
color = "neutral600",
|
|
1092
|
+
radius,
|
|
1020
1093
|
styleVar = ChipToggleStyleVariants.SOLID,
|
|
1021
1094
|
sizeVar,
|
|
1022
1095
|
leftSource,
|
|
@@ -1028,6 +1101,7 @@ var ChipToggle = (_a) => {
|
|
|
1028
1101
|
"isSelected",
|
|
1029
1102
|
"defaultSelected",
|
|
1030
1103
|
"color",
|
|
1104
|
+
"radius",
|
|
1031
1105
|
"styleVar",
|
|
1032
1106
|
"sizeVar",
|
|
1033
1107
|
"leftSource",
|
|
@@ -1044,6 +1118,7 @@ var ChipToggle = (_a) => {
|
|
|
1044
1118
|
StyledChip,
|
|
1045
1119
|
__spreadProps(__spreadValues({}, rest), {
|
|
1046
1120
|
color,
|
|
1121
|
+
$radius: radius,
|
|
1047
1122
|
isSelected: isToggled,
|
|
1048
1123
|
styleVar,
|
|
1049
1124
|
sizeVar,
|
|
@@ -1126,7 +1201,7 @@ var getStyleBySizeVar = (sizeVar) => {
|
|
|
1126
1201
|
`;
|
|
1127
1202
|
}
|
|
1128
1203
|
};
|
|
1129
|
-
var StyledChipButton =
|
|
1204
|
+
var StyledChipButton = styled6.button`
|
|
1130
1205
|
display: flex;
|
|
1131
1206
|
align-items: center;
|
|
1132
1207
|
justify-content: center;
|
|
@@ -1245,7 +1320,7 @@ var getStyleBySizeVar2 = (sizeVar) => {
|
|
|
1245
1320
|
`;
|
|
1246
1321
|
}
|
|
1247
1322
|
};
|
|
1248
|
-
var StyledButton =
|
|
1323
|
+
var StyledButton = styled6.button`
|
|
1249
1324
|
display: flex;
|
|
1250
1325
|
align-items: center;
|
|
1251
1326
|
justify-content: center;
|
|
@@ -1394,7 +1469,7 @@ var getStyleByStyleVar2 = (styleVar, color) => {
|
|
|
1394
1469
|
`;
|
|
1395
1470
|
}
|
|
1396
1471
|
};
|
|
1397
|
-
var StyledIconButton =
|
|
1472
|
+
var StyledIconButton = styled6.button`
|
|
1398
1473
|
display: flex;
|
|
1399
1474
|
flex-shrink: 0;
|
|
1400
1475
|
border-radius: ${borderRadiusTokens.borderRadius06};
|
|
@@ -1460,7 +1535,7 @@ var alertStyle = css`
|
|
|
1460
1535
|
fill: ${colorTokens.red300};
|
|
1461
1536
|
}
|
|
1462
1537
|
`;
|
|
1463
|
-
var StyledCallout =
|
|
1538
|
+
var StyledCallout = styled6.div`
|
|
1464
1539
|
display: flex;
|
|
1465
1540
|
justify-content: flex-start;
|
|
1466
1541
|
align-items: start;
|
|
@@ -1470,12 +1545,12 @@ var StyledCallout = styled5.div`
|
|
|
1470
1545
|
${({ styleVar }) => styleVar === "INFORMATION" && informationStyle}
|
|
1471
1546
|
${({ styleVar }) => styleVar === "ALERT" && alertStyle}
|
|
1472
1547
|
`;
|
|
1473
|
-
var StyledCalloutIcon =
|
|
1548
|
+
var StyledCalloutIcon = styled6.svg`
|
|
1474
1549
|
display: flex;
|
|
1475
1550
|
min-height: 20px;
|
|
1476
1551
|
min-width: 20px;
|
|
1477
1552
|
`;
|
|
1478
|
-
|
|
1553
|
+
styled6.div`
|
|
1479
1554
|
padding: 2px 0;
|
|
1480
1555
|
`;
|
|
1481
1556
|
var Callout = (_a) => {
|
|
@@ -1498,7 +1573,7 @@ var CalloutTypes = {
|
|
|
1498
1573
|
INFORMATION: "INFORMATION",
|
|
1499
1574
|
ALERT: "ALERT"
|
|
1500
1575
|
};
|
|
1501
|
-
var StyledPopper =
|
|
1576
|
+
var StyledPopper = styled6.div`
|
|
1502
1577
|
width: ${({ width }) => width != null ? width : "fit-content"};
|
|
1503
1578
|
height: ${({ height }) => height && height};
|
|
1504
1579
|
`;
|
|
@@ -1650,10 +1725,10 @@ var getDropdownIconSizeBySizeVar = (size2) => {
|
|
|
1650
1725
|
`;
|
|
1651
1726
|
}
|
|
1652
1727
|
};
|
|
1653
|
-
var StyledDropdown =
|
|
1728
|
+
var StyledDropdown = styled6.div`
|
|
1654
1729
|
width: ${({ width }) => width};
|
|
1655
1730
|
`;
|
|
1656
|
-
var StyledDropdownContent =
|
|
1731
|
+
var StyledDropdownContent = styled6.div`
|
|
1657
1732
|
display: flex;
|
|
1658
1733
|
flex-direction: column;
|
|
1659
1734
|
background: ${colorTokens.neutral0};
|
|
@@ -1662,7 +1737,7 @@ var StyledDropdownContent = styled5.div`
|
|
|
1662
1737
|
border-radius: 6px;
|
|
1663
1738
|
box-shadow: ${boxShadowTokens.dropShadow};
|
|
1664
1739
|
`;
|
|
1665
|
-
var StyledDropdownButton =
|
|
1740
|
+
var StyledDropdownButton = styled6.button`
|
|
1666
1741
|
display: flex;
|
|
1667
1742
|
flex-direction: row;
|
|
1668
1743
|
align-items: center;
|
|
@@ -1676,7 +1751,7 @@ var StyledDropdownButton = styled5.button`
|
|
|
1676
1751
|
cursor: not-allowed;
|
|
1677
1752
|
`}
|
|
1678
1753
|
`;
|
|
1679
|
-
var DropdownButtonIcon =
|
|
1754
|
+
var DropdownButtonIcon = styled6(motion.div)`
|
|
1680
1755
|
display: flex;
|
|
1681
1756
|
align-items: center;
|
|
1682
1757
|
justify-content: center;
|
|
@@ -1705,7 +1780,7 @@ var getBorderColorByStatus = ({ isFocused, isError, isHovered, disabled }) => {
|
|
|
1705
1780
|
}
|
|
1706
1781
|
return colorTokens.neutral300;
|
|
1707
1782
|
};
|
|
1708
|
-
var InputWrapper =
|
|
1783
|
+
var InputWrapper = styled6.label`
|
|
1709
1784
|
display: flex;
|
|
1710
1785
|
align-items: center;
|
|
1711
1786
|
width: ${({ width }) => width != null ? width : "100%"};
|
|
@@ -1751,7 +1826,7 @@ var getIconSize = (size2) => {
|
|
|
1751
1826
|
return "24px";
|
|
1752
1827
|
}
|
|
1753
1828
|
};
|
|
1754
|
-
var StyledIcon =
|
|
1829
|
+
var StyledIcon = styled6.svg`
|
|
1755
1830
|
width: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
|
|
1756
1831
|
min-width: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
|
|
1757
1832
|
height: ${({ sizeVar }) => sizeVar && getIconSize(sizeVar)};
|
|
@@ -1927,7 +2002,7 @@ var getFontStylesBySizeVar = (sizeVar) => {
|
|
|
1927
2002
|
return "body1_400";
|
|
1928
2003
|
}
|
|
1929
2004
|
};
|
|
1930
|
-
var StyledMenu =
|
|
2005
|
+
var StyledMenu = styled6.li`
|
|
1931
2006
|
display: flex;
|
|
1932
2007
|
width: 100%;
|
|
1933
2008
|
flex-direction: row;
|
|
@@ -2002,7 +2077,7 @@ var MenuSizeVariants = {
|
|
|
2002
2077
|
S: "S",
|
|
2003
2078
|
M: "M"
|
|
2004
2079
|
};
|
|
2005
|
-
var StyledList =
|
|
2080
|
+
var StyledList = styled6.li`
|
|
2006
2081
|
display: flex;
|
|
2007
2082
|
flex-direction: row;
|
|
2008
2083
|
width: 100%;
|
|
@@ -2017,7 +2092,7 @@ var StyledList = styled5.li`
|
|
|
2017
2092
|
background: ${colorTokens.neutral100};
|
|
2018
2093
|
}
|
|
2019
2094
|
`;
|
|
2020
|
-
var StyledText2Rows =
|
|
2095
|
+
var StyledText2Rows = styled6.div`
|
|
2021
2096
|
display: flex;
|
|
2022
2097
|
flex-direction: column;
|
|
2023
2098
|
justify-content: center;
|
|
@@ -2127,7 +2202,7 @@ var getColorsByStyleVariant = (styleVariant, color = "neutral700") => {
|
|
|
2127
2202
|
`;
|
|
2128
2203
|
}
|
|
2129
2204
|
};
|
|
2130
|
-
var StyledTag =
|
|
2205
|
+
var StyledTag = styled6.div`
|
|
2131
2206
|
display: flex;
|
|
2132
2207
|
align-items: center;
|
|
2133
2208
|
flex-direction: row;
|
|
@@ -2170,7 +2245,7 @@ var TagSizeVariants = {
|
|
|
2170
2245
|
S: "S",
|
|
2171
2246
|
M: "M"
|
|
2172
2247
|
};
|
|
2173
|
-
var StyledInput =
|
|
2248
|
+
var StyledInput = styled6.input`
|
|
2174
2249
|
padding: 4px 0 4px 12px;
|
|
2175
2250
|
background-color: transparent;
|
|
2176
2251
|
width: 100%;
|
|
@@ -2191,13 +2266,13 @@ var StyledInput = styled5.input`
|
|
|
2191
2266
|
-moz-appearance: textfield;
|
|
2192
2267
|
}
|
|
2193
2268
|
`;
|
|
2194
|
-
var RightElementWrapper =
|
|
2269
|
+
var RightElementWrapper = styled6.div`
|
|
2195
2270
|
display: flex;
|
|
2196
2271
|
flex-direction: row;
|
|
2197
2272
|
align-items: center;
|
|
2198
2273
|
padding: 0 8px 0 0;
|
|
2199
2274
|
`;
|
|
2200
|
-
var Wrapper =
|
|
2275
|
+
var Wrapper = styled6.div`
|
|
2201
2276
|
display: flex;
|
|
2202
2277
|
width: 100%;
|
|
2203
2278
|
justify-content: flex-end;
|
|
@@ -2401,7 +2476,7 @@ var Input = forwardRef(
|
|
|
2401
2476
|
}
|
|
2402
2477
|
);
|
|
2403
2478
|
var Input_default = Input;
|
|
2404
|
-
var StyledInputButton =
|
|
2479
|
+
var StyledInputButton = styled6.button`
|
|
2405
2480
|
display: flex;
|
|
2406
2481
|
flex-direction: row;
|
|
2407
2482
|
align-items: center;
|
|
@@ -2416,7 +2491,7 @@ var StyledInputButton = styled5.button`
|
|
|
2416
2491
|
cursor: not-allowed;
|
|
2417
2492
|
`}
|
|
2418
2493
|
`;
|
|
2419
|
-
var StyledInputButtonContent =
|
|
2494
|
+
var StyledInputButtonContent = styled6.input`
|
|
2420
2495
|
display: flex;
|
|
2421
2496
|
width: 100%;
|
|
2422
2497
|
border: none;
|
|
@@ -2483,7 +2558,7 @@ var InputButton = forwardRef(
|
|
|
2483
2558
|
children: /* @__PURE__ */ jsxs(StyledInputButton, { onClick: handleOnClick, disabled, children: [
|
|
2484
2559
|
/* @__PURE__ */ jsx(StyledInputButtonContent, __spreadValues({ className: "body1_400", defaultValue: text, ref }, rest)),
|
|
2485
2560
|
/* @__PURE__ */ jsxs(Stack_default.Horizontal, { align: "center", children: [
|
|
2486
|
-
|
|
2561
|
+
text && /* @__PURE__ */ jsx(IconButton_default, { sizeVar: "S", onClick: handleOnClear, styleVar: "GHOST", disabled, children: /* @__PURE__ */ jsx(Icon_default, { iconSource: assetFunction("DeleteIcon"), color: "neutral600" }) }),
|
|
2487
2562
|
rightSource
|
|
2488
2563
|
] })
|
|
2489
2564
|
] })
|
|
@@ -2492,7 +2567,7 @@ var InputButton = forwardRef(
|
|
|
2492
2567
|
}
|
|
2493
2568
|
);
|
|
2494
2569
|
var InputButton_default = InputButton;
|
|
2495
|
-
var BottomElementWrapper =
|
|
2570
|
+
var BottomElementWrapper = styled6.div`
|
|
2496
2571
|
display: flex;
|
|
2497
2572
|
width: 100%;
|
|
2498
2573
|
flex-direction: row;
|
|
@@ -2500,7 +2575,7 @@ var BottomElementWrapper = styled5.div`
|
|
|
2500
2575
|
gap: 8px;
|
|
2501
2576
|
background-color: ${colorTokens.neutral0};
|
|
2502
2577
|
`;
|
|
2503
|
-
var StyledTextarea =
|
|
2578
|
+
var StyledTextarea = styled6.textarea`
|
|
2504
2579
|
padding: 8px 12px 0 12px;
|
|
2505
2580
|
background-color: transparent;
|
|
2506
2581
|
resize: none;
|
|
@@ -2628,12 +2703,12 @@ var TextArea = forwardRef(
|
|
|
2628
2703
|
}
|
|
2629
2704
|
);
|
|
2630
2705
|
var TextArea_default = TextArea;
|
|
2631
|
-
var Container2 =
|
|
2706
|
+
var Container2 = styled6.div`
|
|
2632
2707
|
width: 32px;
|
|
2633
2708
|
height: 32px;
|
|
2634
2709
|
padding: 7px;
|
|
2635
2710
|
`;
|
|
2636
|
-
var IconButton2 =
|
|
2711
|
+
var IconButton2 = styled6.button`
|
|
2637
2712
|
display: flex;
|
|
2638
2713
|
width: 16px;
|
|
2639
2714
|
height: 16px;
|
|
@@ -2738,7 +2813,7 @@ var getStylesByStyleVariant = (styleVariant, isSelected, isHovered) => {
|
|
|
2738
2813
|
return "";
|
|
2739
2814
|
}
|
|
2740
2815
|
};
|
|
2741
|
-
var StyledCheckbox =
|
|
2816
|
+
var StyledCheckbox = styled6.button`
|
|
2742
2817
|
display: flex;
|
|
2743
2818
|
align-items: center;
|
|
2744
2819
|
justify-content: center;
|
|
@@ -2753,7 +2828,7 @@ var StyledCheckbox = styled5.button`
|
|
|
2753
2828
|
${({ styleVar, isSelected, isHovered }) => getStylesByStyleVariant(styleVar, isSelected, isHovered)};
|
|
2754
2829
|
${({ disabled }) => getDisabledStyle(disabled)}
|
|
2755
2830
|
`;
|
|
2756
|
-
var Container3 =
|
|
2831
|
+
var Container3 = styled6.button`
|
|
2757
2832
|
display: flex;
|
|
2758
2833
|
align-items: center;
|
|
2759
2834
|
justify-content: center;
|
|
@@ -2836,7 +2911,7 @@ var getSelectedStyle = (isHovered) => {
|
|
|
2836
2911
|
`}
|
|
2837
2912
|
`;
|
|
2838
2913
|
};
|
|
2839
|
-
var StyledRadio =
|
|
2914
|
+
var StyledRadio = styled6.div`
|
|
2840
2915
|
display: flex;
|
|
2841
2916
|
align-items: center;
|
|
2842
2917
|
justify-content: center;
|
|
@@ -2858,7 +2933,7 @@ var StyledRadio = styled5.div`
|
|
|
2858
2933
|
${({ isSelected, isHovered }) => isSelected && getSelectedStyle(isHovered)}
|
|
2859
2934
|
${({ disabled }) => getDisabledStyle(disabled)}
|
|
2860
2935
|
`;
|
|
2861
|
-
var Container4 =
|
|
2936
|
+
var Container4 = styled6.button`
|
|
2862
2937
|
display: flex;
|
|
2863
2938
|
align-items: center;
|
|
2864
2939
|
justify-content: center;
|
|
@@ -2909,6 +2984,6 @@ classnames/index.js:
|
|
|
2909
2984
|
*)
|
|
2910
2985
|
*/
|
|
2911
2986
|
|
|
2912
|
-
export { Button_default as Button, ButtonSizeVariants, ButtonStyleVariants, Callout_default as Callout, CalloutTypes, Checkbox_default as Checkbox, CheckboxStyleVariants, 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, IconButtonSizeVariants, IconButtonStyleVariants, IconSizeVariants, Input_default as Input, InputButton_default as InputButton, List_default as List, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, Menu_default as Menu, MenuSizeVariants, MinusButton_default as MinusButton, Modal, ModalPortal_default as ModalProvider, ModalSize, MotionStack, Popper_default as Popper, PopperPortal2 as PopperPortal, PopperTrigger, Radio_default as Radio, ScrollArea_default as ScrollArea, ShoplflowProvider_default as ShoplflowProvider, Stack_default as Stack, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledInputButtonContent, StyledList, StyledMenu, StyledPopper, StyledStack, StyledText2Rows, Switch_default as Switch, Tag_default as Tag, TagSizeVariants, TagStyleVariants, Text_default as Text, Text2Rows, TextArea_default as TextArea, borderRadiusTokens, boxShadowTokens, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, getFontStylesBySizeVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
|
2987
|
+
export { Avatar_default as Avatar, AvatarSizeVariants, Button_default as Button, ButtonSizeVariants, ButtonStyleVariants, Callout_default as Callout, CalloutTypes, Checkbox_default as Checkbox, CheckboxStyleVariants, 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, IconButtonSizeVariants, IconButtonStyleVariants, IconSizeVariants, Input_default as Input, InputButton_default as InputButton, List_default as List, MODAL_FOOTER_KEY, MODAL_HEADER_KEY, Menu_default as Menu, MenuSizeVariants, MinusButton_default as MinusButton, Modal, ModalPortal_default as ModalProvider, ModalSize, MotionStack, Popper_default as Popper, PopperPortal2 as PopperPortal, PopperTrigger, Radio_default as Radio, ScrollArea_default as ScrollArea, ShoplflowProvider_default as ShoplflowProvider, Stack_default as Stack, StyledDropdown, StyledDropdownButton, StyledDropdownContent, StyledIcon, StyledInputButton, StyledInputButtonContent, StyledList, StyledMenu, StyledPopper, StyledStack, StyledText2Rows, Switch_default as Switch, Tag_default as Tag, TagSizeVariants, TagStyleVariants, Text_default as Text, Text2Rows, TextArea_default as TextArea, borderRadiusTokens, boxShadowTokens, colorTokens, fontWeightTokens, getDomain, getDropdownFontSizeBySizeVar, getDropdownHeightBySizeVar, getDropdownIconSizeBySizeVar, getDropdownStyleBySizeVar, getFontStylesBySizeVar, spacingTokens, typographyTokens, useDomain, useHandleModal, useModalValue };
|
|
2913
2988
|
//# sourceMappingURL=out.js.map
|
|
2914
2989
|
//# sourceMappingURL=index.js.map
|