@soma-vertical-web/multi-lib 0.0.28 → 0.0.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@soma-vertical-web/multi-lib",
3
- "version": "0.0.28",
3
+ "version": "0.0.29",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -1,25 +1,7 @@
1
1
  import { TagProps } from '@soma-vertical-web/core-components/src/lib/Tag/interfaces';
2
2
  import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
3
+ import { FREIGHT_CALCULATIONType } from '../../../constants';
3
4
 
4
- export interface FreightConfigType {
5
- messages: {
6
- free_tax: string;
7
- unit_amout: string;
8
- title: string;
9
- prefix_days: string;
10
- remember_cep: string;
11
- delivered_by: string;
12
- delivered_amount_packages: string;
13
- text_input_label: string;
14
- text_input_btn: string;
15
- cep_not_found: string;
16
- select_size_tag: string;
17
- };
18
- icons: {
19
- delivery_truck: string;
20
- feedback_help: string;
21
- };
22
- }
23
5
  export interface FreightOption {
24
6
  id: string;
25
7
  name: string;
@@ -34,7 +16,7 @@ export interface PostalCodeInputProps {
34
16
  setError: Dispatch<SetStateAction<string>>;
35
17
  setIsButtonClicked: Dispatch<SetStateAction<boolean>>;
36
18
  onUpdateFreightItems: (items: any[]) => void;
37
- freightConfig: FreightConfigType;
19
+ freightConfig: FREIGHT_CALCULATIONType;
38
20
  toolTipZIndex: number;
39
21
  local?: string;
40
22
  component?: ReactNode;
@@ -49,7 +31,7 @@ export interface DeliveryStatusBarProps {
49
31
  setError?: Dispatch<SetStateAction<string>>;
50
32
  }
51
33
  export interface DeliveryInfoProps {
52
- freightConfig: FreightConfigType;
34
+ freightConfig: FREIGHT_CALCULATIONType;
53
35
  toolTipZIndex: number;
54
36
  icon: string;
55
37
  title: string;
@@ -78,7 +60,7 @@ export interface ShippingFreightContainerProps {
78
60
  }
79
61
  export interface ShippingFreightProps {
80
62
  children?: ReactNode;
81
- freightConfig: FreightConfigType;
63
+ freightConfig: FREIGHT_CALCULATIONType;
82
64
  }
83
65
  export interface FreightCalculationProps {
84
66
  size: TagProps['size'];
@@ -87,7 +69,7 @@ export interface FreightCalculationProps {
87
69
  skuId: string;
88
70
  quantity: number;
89
71
  CONSTANTS_PROPS: {
90
- freightConfig: FreightConfigType;
72
+ freightConfig: FREIGHT_CALCULATIONType;
91
73
  toolTipZIndex: number;
92
74
  deliveryInfoBoxesAllowed?: boolean;
93
75
  currency?: string;
@@ -290,7 +272,7 @@ export interface ShippingSimulationResponse {
290
272
  export interface FreightTooltipProps {
291
273
  parent: HTMLElement;
292
274
  isOpen: boolean;
293
- freightConfig: FreightConfigType;
275
+ freightConfig: FREIGHT_CALCULATIONType;
294
276
  toolTipZIndex: number;
295
277
  contentRef?: MutableRefObject<HTMLDivElement | null>;
296
278
  left?: number;