@soma-vertical-web/multi-lib 1.0.42 → 1.0.44

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,5 +1,5 @@
1
1
  import { TagProps } from '@soma-vertical-web/core-components/src/lib/Tag/interfaces';
2
- import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
2
+ import { Dispatch, PropsWithChildren, ReactNode, RefObject, SetStateAction } from 'react';
3
3
  import { FREIGHT_CALCULATIONType } from '../../../constants';
4
4
 
5
5
  export interface FreightOption {
@@ -27,8 +27,8 @@ export interface PostalCodeContainerProps {
27
27
  export interface DeliveryStatusBarProps {
28
28
  message: string;
29
29
  seller?: string;
30
- size?: TagProps['size'];
31
30
  setError?: Dispatch<SetStateAction<string>>;
31
+ hasCloseIcon?: boolean;
32
32
  }
33
33
  export interface DeliveryInfoProps {
34
34
  freightConfig: FREIGHT_CALCULATIONType;
@@ -274,11 +274,16 @@ export interface FreightTooltipProps {
274
274
  isOpen: boolean;
275
275
  freightConfig: FREIGHT_CALCULATIONType;
276
276
  toolTipZIndex: number;
277
- contentRef?: MutableRefObject<HTMLDivElement | null>;
277
+ contentRef?: RefObject<HTMLDivElement | null>;
278
278
  left?: number;
279
- target?: MutableRefObject<HTMLDivElement | null>;
279
+ target?: RefObject<HTMLDivElement | null>;
280
280
  top?: number;
281
281
  delay?: number;
282
282
  gap?: number;
283
283
  }
284
+ export interface FreightContextProps {
285
+ logisticsInfo: any[];
286
+ setLogisticsInfo: Dispatch<SetStateAction<any[]>>;
287
+ }
288
+ export type FreightProviderProps = PropsWithChildren;
284
289
  export {};
@@ -2,7 +2,7 @@ import { SolidVariantsType, VariantsType } from '@soma-vertical-web/core-compone
2
2
  import { Dispatch, PropsWithChildren, ReactNode, RefObject, SetStateAction } from 'react';
3
3
  import { HeaderCategories, HeaderNavLinks } from '../../../cms/ContentTypes/Header';
4
4
  import { AddToCartProviderProps } from '../../team-components/AddToCart';
5
- import { ALIGNMENT_MENUType, COMPONENT_LISTType, ICONSType, LOGIN_MENU_DESCRIPTIONType, LOGIN_MENU_OPTIONS_ARRAYType, LOGIN_MENU_TITLEType, LOGOUT_ICONType, LOGOUT_TEXTType, MENU_MOB_BTN_SIDEType, MENU_INFOType, MENU_NAVIGATION_BAR_ALLOWEDType, Z_INDEX_WARType, StoreConfigType, MINICART_CONFIGType, NAME_SPLIT_SYMBOLType, PLP_NOT_RESULTType, TEXTURE_IMAGEType, TOGGLE_STYLE_MODIFIERType, TIPBAR_CONFIGSType } from '../../../constants';
5
+ import { ALIGNMENT_MENUType, COMPONENT_LISTType, ICONSType, LOGIN_MENU_DESCRIPTIONType, LOGIN_MENU_OPTIONS_ARRAYType, LOGIN_MENU_TITLEType, LOGOUT_ICONType, LOGOUT_TEXTType, MENU_MOB_BTN_SIDEType, MENU_INFOType, MENU_NAVIGATION_BAR_ALLOWEDType, Z_INDEX_WARType, StoreConfigType, MINICART_CONFIGType, NAME_SPLIT_SYMBOLType, PLP_NOT_RESULTType, TEXTURE_IMAGEType, TOGGLE_STYLE_MODIFIERType, TIPBAR_CONFIGSType, FREIGHT_CALCULATIONType } from '../../../constants';
6
6
  import { DataSubmenu } from '../../../cms/Sections/HeaderSubmenu';
7
7
 
8
8
  export type HeaderPositionsType = 'absolute' | 'relative';
@@ -28,6 +28,7 @@ type HEADER_CONSTANTS = {
28
28
  TOGGLE_STYLE_MODIFIER: TOGGLE_STYLE_MODIFIERType;
29
29
  Z_INDEX_WAR: Z_INDEX_WARType;
30
30
  storeConfig: StoreConfigType;
31
+ FREIGHT_CALCULATION: FREIGHT_CALCULATIONType;
31
32
  };
32
33
  session: {
33
34
  LOGOUT_TEXT: LOGOUT_TEXTType;
@@ -1,7 +1,7 @@
1
1
  import { ButtonProps } from '@soma-vertical-web/core-components/src/lib/Button/interfaces';
2
2
  import { ToggleSizeProps } from '@soma-vertical-web/core-components/src/lib/ToggleSize/interfaces';
3
3
  import { CartContextProps, CartItemStore, NotificationsStore, NotificationStore } from '../../../contexts/store/cart';
4
- import { ICONSType, MESSAGE_CASHBACKType, MINICART_CONFIGType, NAME_SPLIT_SYMBOLType, PLP_NOT_RESULTType, StoreConfigType, TEXTURE_IMAGEType, TIPBAR_CONFIGSType, TOGGLE_STYLE_MODIFIERType, Z_INDEX_WARType } from '../../../constants';
4
+ import { FREIGHT_CALCULATIONType, ICONSType, MESSAGE_CASHBACKType, MINICART_CONFIGType, NAME_SPLIT_SYMBOLType, PLP_NOT_RESULTType, StoreConfigType, TEXTURE_IMAGEType, TIPBAR_CONFIGSType, TOGGLE_STYLE_MODIFIERType, Z_INDEX_WARType } from '../../../constants';
5
5
  import { InputCustomProps } from '@soma-vertical-web/core-components/src/lib/TextField/interfaces';
6
6
  import { PropsWithChildren } from 'react';
7
7
 
@@ -93,6 +93,7 @@ export type MiniCartProps = {
93
93
  Z_INDEX_WAR: Z_INDEX_WARType;
94
94
  storeConfig: StoreConfigType;
95
95
  minicartStyleModifiers?: string;
96
+ FREIGHT_CALCULATION: FREIGHT_CALCULATIONType;
96
97
  };
97
98
  export type CommonActionConstants = Pick<MiniCartProps, 'ICONS' | 'MINICART_CONFIG'>;
98
99
  export interface ActionsProps extends Pick<StepperProps, 'handleSendEvent'>, Pick<ButtonProps, 'size' | 'variant'>, CommonActionConstants {
@@ -106,6 +107,7 @@ export interface StepperProps {
106
107
  export interface CardProps extends Pick<ActionsProps, 'product'>, Omit<SkuCardProps, 'product'>, CommonActionConstants {
107
108
  index: number;
108
109
  available: boolean;
110
+ FREIGHT_CALCULATION: FREIGHT_CALCULATIONType;
109
111
  }
110
112
  export type StyleCardProps = {
111
113
  product: CartItemStore;
@@ -168,6 +170,7 @@ export interface ModalBodyProps extends PropsWithChildren {
168
170
  TOGGLE_STYLE_MODIFIER: TOGGLE_STYLE_MODIFIERType;
169
171
  TIPBAR_CONFIGS: TIPBAR_CONFIGSType;
170
172
  PLP_NOT_RESULT: PLP_NOT_RESULTType;
173
+ FREIGHT_CALCULATION: FREIGHT_CALCULATIONType;
171
174
  }
172
175
  export type ModalHeaderProps = {
173
176
  ICONS: ICONSType;