@soma-vertical-web/multi-lib 1.0.15 → 1.0.16
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/cms/ContentTypes/LPLojas/LPLojaClientWrapper.d.ts +3 -0
- package/cms/ContentTypes/LPLojas/LPLojasContent.d.ts +3 -0
- package/cms/ContentTypes/LPLojas/helpers.d.ts +12 -0
- package/cms/ContentTypes/LPLojas/typing.d.ts +32 -0
- package/cms/index.d.ts +1 -0
- package/cms/server.d.ts +1 -0
- package/contexts/contexts/lplojas/Context.d.ts +6 -0
- package/contexts/index.d.ts +4 -0
- package/data/api/master-data/search/index.d.ts +1 -1
- package/index.js +14 -14
- package/index.mjs +3709 -3465
- package/index2.js +1 -1
- package/index2.mjs +729 -651
- package/layout/index.d.ts +34 -0
- package/layout/template/LPLojas/Composite/Content/Content.d.ts +12 -0
- package/layout/template/LPLojas/Composite/Content/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/Details/Details.d.ts +7 -0
- package/layout/template/LPLojas/Composite/Details/Item.d.ts +7 -0
- package/layout/template/LPLojas/Composite/Details/Vendor.d.ts +7 -0
- package/layout/template/LPLojas/Composite/Details/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/Details/interfaces.d.ts +18 -0
- package/layout/template/LPLojas/Composite/DropDown/DropDown.d.ts +7 -0
- package/layout/template/LPLojas/Composite/DropDown/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/DropDown/interfaces.d.ts +10 -0
- package/layout/template/LPLojas/Composite/ReturnButton/ReturnButton.d.ts +11 -0
- package/layout/template/LPLojas/Composite/ReturnButton/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/Root.d.ts +7 -0
- package/layout/template/LPLojas/Composite/Section/Section.d.ts +12 -0
- package/layout/template/LPLojas/Composite/Section/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/Select/Select.d.ts +10 -0
- package/layout/template/LPLojas/Composite/Select/index.d.ts +1 -0
- package/layout/template/LPLojas/Composite/Title/Title.d.ts +7 -0
- package/layout/template/LPLojas/Composite/Title/index.d.ts +1 -0
- package/layout/template/LPLojas/constant.d.ts +1 -0
- package/layout/template/LPLojas/index.d.ts +35 -0
- package/layout/template/LPLojas/interfaces.d.ts +18 -0
- package/package.json +1 -1
- package/style.css +1 -1
package/layout/index.d.ts
CHANGED
|
@@ -334,6 +334,40 @@ export declare const layout: {
|
|
|
334
334
|
({ className, trends, CONSTANTS, SectionZone }: import('../types/layout/templates/SearchModal').SearchModalProps): import("react/jsx-runtime").JSX.Element;
|
|
335
335
|
displayName: string;
|
|
336
336
|
};
|
|
337
|
+
LPStores: {
|
|
338
|
+
Content: {
|
|
339
|
+
({ LPLOJAS_TEMPLATE_RETURN_BUTTON, ICONS, showVendor, }: import('./template/LPLojas/Composite/Content/Content').ContentProps): import("react/jsx-runtime").JSX.Element;
|
|
340
|
+
displayName: string;
|
|
341
|
+
};
|
|
342
|
+
Details: {
|
|
343
|
+
({ store, showVendor, ICONS }: import('./template/LPLojas/Composite/Details/interfaces').DetailsProps): import("react/jsx-runtime").JSX.Element;
|
|
344
|
+
displayName: string;
|
|
345
|
+
};
|
|
346
|
+
DropDown: {
|
|
347
|
+
({ ICONS, arrowDownIcon, arrowUpIcon, list, selectText, ...rest }: import('./template/LPLojas/Composite/DropDown/interfaces').DropDownProps): import("react/jsx-runtime").JSX.Element;
|
|
348
|
+
displayName: string;
|
|
349
|
+
};
|
|
350
|
+
ReturnButton: {
|
|
351
|
+
({ children, ICONS }: import('./template/LPLojas/Composite/ReturnButton/ReturnButton').ReturnButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
352
|
+
displayName: string;
|
|
353
|
+
};
|
|
354
|
+
Root: {
|
|
355
|
+
({ children, data }: import('./template/LPLojas/interfaces').RootProps): import("react/jsx-runtime").JSX.Element;
|
|
356
|
+
displayName: string;
|
|
357
|
+
};
|
|
358
|
+
Section: {
|
|
359
|
+
({ children, imgAlt, imgSrcDesk, imgSrcMob }: import('./template/LPLojas/Composite/Section/Section').SectionProps): import("react/jsx-runtime").JSX.Element;
|
|
360
|
+
displayName: string;
|
|
361
|
+
};
|
|
362
|
+
Select: {
|
|
363
|
+
({ ICONS }: import('./template/LPLojas/Composite/Select/Select').SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
364
|
+
displayName: string;
|
|
365
|
+
};
|
|
366
|
+
Title: {
|
|
367
|
+
({ children }: import('react').PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
368
|
+
displayName: string;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
337
371
|
};
|
|
338
372
|
utils: {
|
|
339
373
|
EventCollector: ({ page, data }: import('react').PropsWithChildren & import('../types/data/events').CollectorProps) => null;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ICONSType } from '../../../../../types/constants';
|
|
2
|
+
|
|
3
|
+
export interface ContentProps {
|
|
4
|
+
LPLOJAS_TEMPLATE_RETURN_BUTTON: string;
|
|
5
|
+
ICONS: ICONSType;
|
|
6
|
+
showVendor: boolean;
|
|
7
|
+
}
|
|
8
|
+
declare const Content: {
|
|
9
|
+
({ LPLOJAS_TEMPLATE_RETURN_BUTTON, ICONS, showVendor, }: ContentProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default Content;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Content';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Details';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IFlexProps } from '@soma-vertical-web/foundations';
|
|
2
|
+
import { StoreMetaData } from '../../interfaces';
|
|
3
|
+
import { ICONSType } from '../../../../../types/constants';
|
|
4
|
+
|
|
5
|
+
export interface ItemProps extends IFlexProps {
|
|
6
|
+
title?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
type?: 'default' | 'title';
|
|
9
|
+
}
|
|
10
|
+
export interface DetailsProps {
|
|
11
|
+
store: StoreMetaData;
|
|
12
|
+
showVendor?: boolean;
|
|
13
|
+
ICONS: ICONSType;
|
|
14
|
+
}
|
|
15
|
+
export interface VendorProps {
|
|
16
|
+
vendor: string;
|
|
17
|
+
ICONS: ICONSType;
|
|
18
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './DropDown';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DefaultDropDownProps } from '@soma-vertical-web/core-components/src/lib/DropDown/interfaces';
|
|
2
|
+
import { ICONSType } from '../../../../../types/constants';
|
|
3
|
+
|
|
4
|
+
export interface DropDownProps extends DefaultDropDownProps {
|
|
5
|
+
selectText: string;
|
|
6
|
+
arrowDownIcon?: React.ReactNode;
|
|
7
|
+
arrowUpIcon?: React.ReactNode;
|
|
8
|
+
list?: string[];
|
|
9
|
+
ICONS: ICONSType;
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { ICONSType } from '../../../../../types/constants';
|
|
3
|
+
|
|
4
|
+
export interface ReturnButtonProps extends PropsWithChildren {
|
|
5
|
+
ICONS: ICONSType;
|
|
6
|
+
}
|
|
7
|
+
declare const ReturnButton: {
|
|
8
|
+
({ children, ICONS }: ReturnButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
11
|
+
export default ReturnButton;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './ReturnButton';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface SectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
imgAlt: string;
|
|
5
|
+
imgSrcDesk: string;
|
|
6
|
+
imgSrcMob: string;
|
|
7
|
+
}
|
|
8
|
+
declare const Section: {
|
|
9
|
+
({ children, imgAlt, imgSrcDesk, imgSrcMob }: SectionProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
displayName: string;
|
|
11
|
+
};
|
|
12
|
+
export default Section;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Section';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ICONSType } from '../../../../../types/constants';
|
|
2
|
+
|
|
3
|
+
export interface SelectProps {
|
|
4
|
+
ICONS: ICONSType;
|
|
5
|
+
}
|
|
6
|
+
declare const Select: {
|
|
7
|
+
({ ICONS }: SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
export default Select;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Select';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Title';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const metaFields: readonly ["id", "endereco", "cidade", "complement", "district", "nome", "number", "telefone", "horario", "state", "celular", "vendedoras"];
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
declare const LPStores: {
|
|
2
|
+
Content: {
|
|
3
|
+
({ LPLOJAS_TEMPLATE_RETURN_BUTTON, ICONS, showVendor, }: import('./Composite/Content/Content').ContentProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
displayName: string;
|
|
5
|
+
};
|
|
6
|
+
Details: {
|
|
7
|
+
({ store, showVendor, ICONS }: import('./Composite/Details/interfaces').DetailsProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
displayName: string;
|
|
9
|
+
};
|
|
10
|
+
DropDown: {
|
|
11
|
+
({ ICONS, arrowDownIcon, arrowUpIcon, list, selectText, ...rest }: import('./Composite/DropDown/interfaces').DropDownProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
ReturnButton: {
|
|
15
|
+
({ children, ICONS }: import('./Composite/ReturnButton/ReturnButton').ReturnButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
displayName: string;
|
|
17
|
+
};
|
|
18
|
+
Root: {
|
|
19
|
+
({ children, data }: import('./interfaces').RootProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
displayName: string;
|
|
21
|
+
};
|
|
22
|
+
Section: {
|
|
23
|
+
({ children, imgAlt, imgSrcDesk, imgSrcMob }: import('./Composite/Section/Section').SectionProps): import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
Select: {
|
|
27
|
+
({ ICONS }: import('./Composite/Select/Select').SelectProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
displayName: string;
|
|
29
|
+
};
|
|
30
|
+
Title: {
|
|
31
|
+
({ children }: import('react').PropsWithChildren): import("react/jsx-runtime").JSX.Element;
|
|
32
|
+
displayName: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
export default LPStores;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HTMLAttributes, PropsWithChildren } from 'react';
|
|
2
|
+
import { metaFields } from './constant';
|
|
3
|
+
|
|
4
|
+
export type MetaFields = (typeof metaFields)[number];
|
|
5
|
+
export type StoreMetaData = {
|
|
6
|
+
[key in MetaFields]?: string | number | null;
|
|
7
|
+
};
|
|
8
|
+
export interface RootProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
+
data: StoreMetaData[];
|
|
10
|
+
}
|
|
11
|
+
export type LPStoreProviderProps = RootProps & PropsWithChildren;
|
|
12
|
+
export interface LPStoreContextProps extends RootProps {
|
|
13
|
+
handleSelectCity(city: string): void;
|
|
14
|
+
handleSelectStore(store: string): void;
|
|
15
|
+
clearSelectedStore(): void;
|
|
16
|
+
selectedCity: StoreMetaData[] | undefined;
|
|
17
|
+
selectedStore: string | undefined;
|
|
18
|
+
}
|