@feedmepos/mf-brand-app-builder 0.5.17 → 0.5.18
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/App-CKxXz-yv.js +109 -0
- package/dist/{AssetsSettings-CqLnxCVp.js → AssetsSettings-D7stEXBP.js} +11 -10
- package/dist/BaDivider-DWZv3fqi.js +10 -0
- package/dist/BrandkitView-CGFsc8gN.js +8434 -0
- package/dist/BuilderView-h-AD0K_z.js +9403 -0
- package/dist/ColorPicker-BsSFgHSF.js +156 -0
- package/dist/ColorPicker-CHzKbuCD.js +543 -0
- package/dist/{ImageUpload-CSFXBbR9.js → ImageUpload-Bu1QY9Tu.js} +11 -11
- package/dist/{LinkButton-BW3l1VVh.js → LinkButton-DS5DH9B8.js} +57 -56
- package/dist/{ListRepeater-ClJTp-6r.js → ListRepeater-Bjq_VTKB.js} +1 -1
- package/dist/{ManagementSettings-BC4fKORI.js → ManagementSettings-DWh1pA_2.js} +70 -56
- package/dist/ProjectView-BweZwCAj.js +680 -0
- package/dist/Select-DQrjO2Su.js +91 -0
- package/dist/StepperField-BeeZ_sl9.js +30 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/{app-PkUx7Ubo.js → app-DKN3IiyF.js} +143 -76
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +52 -0
- package/dist/{components → client/components}/src/components/ButtonList.vue.d.ts +2 -0
- package/dist/{components → client/components}/src/components/Homepage.vue.d.ts +2 -0
- package/dist/client/components/src/components/Member/MemberAchievements.vue.d.ts +33 -0
- package/dist/client/components/src/components/Member/MemberCards.vue.d.ts +19 -0
- package/dist/client/components/src/components/Member/MemberSummary.vue.d.ts +24 -0
- package/dist/client/components/src/components/Member/TransactionList.vue.d.ts +5 -0
- package/dist/client/components/src/components/NavigationBar.vue.d.ts +17 -0
- package/dist/{components → client/components}/src/components/atoms/Container.vue.d.ts +1 -0
- package/dist/{components → client/components}/src/main.d.ts +9 -1
- package/dist/client/components/src/utils/date.d.ts +22 -0
- package/dist/client/components/src/views/_Credit.vue.d.ts +20 -0
- package/dist/client/components/src/views/_MemberProfile.vue.d.ts +46 -0
- package/dist/client/components/src/views/_Point.vue.d.ts +20 -0
- package/dist/client/components/src/views/_Referral.vue.d.ts +31 -0
- package/dist/client/components/src/views/_ReferralTutorial.vue.d.ts +24 -0
- package/dist/{merchant → client/merchant}/src/api/business/index.d.ts +14 -0
- package/dist/{merchant → client/merchant}/src/api/template/index.d.ts +2 -2
- package/dist/{merchant → client/merchant}/src/app.d.ts +1 -1
- package/dist/client/merchant/src/components/brandkit/ColorSelection.vue.d.ts +15 -0
- package/dist/client/merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts +2 -0
- package/dist/{merchant → client/merchant}/src/components/element-sidebar/all-elements.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/components/inputs/ColorPicker.vue.d.ts +2 -1
- package/dist/client/merchant/src/components/inputs/LinkBrandkitColor.vue.d.ts +9 -0
- package/dist/client/merchant/src/components/template/TemplatePreview.vue.d.ts +8 -0
- package/dist/{merchant → client/merchant}/src/composables/useNode/index.d.ts +1 -1
- package/dist/client/merchant/src/composables/useToast/index.d.ts +8 -0
- package/dist/{merchant → client/merchant}/src/node-configs/branch-list/props.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/node-configs/button-list/props.d.ts +3 -0
- package/dist/{merchant → client/merchant}/src/node-configs/carousel/props.d.ts +1 -0
- package/dist/client/merchant/src/node-configs/container/props.d.ts +85 -0
- package/dist/{merchant → client/merchant}/src/node-configs/display-image/props.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/node-configs/display-text/props.d.ts +1 -0
- package/dist/client/merchant/src/node-configs/member-achievements/mock-data.d.ts +15 -0
- package/dist/client/merchant/src/node-configs/member-achievements/props.d.ts +40 -0
- package/dist/client/merchant/src/node-configs/member-achievements/schema.d.ts +2 -0
- package/dist/{merchant → client/merchant}/src/node-configs/member-card/props.d.ts +1 -0
- package/dist/client/merchant/src/node-configs/member-cards/mock-data.d.ts +3 -0
- package/dist/client/merchant/src/node-configs/member-cards/props.d.ts +24 -0
- package/dist/client/merchant/src/node-configs/member-cards/schema.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/member-history/mock-data.d.ts +843 -0
- package/dist/client/merchant/src/node-configs/member-history/props.d.ts +1692 -0
- package/dist/client/merchant/src/node-configs/member-history/schema.d.ts +3 -0
- package/dist/client/merchant/src/node-configs/member-profile/props.d.ts +449 -0
- package/dist/client/merchant/src/node-configs/member-profile/schema.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/member-referral/props.d.ts +98 -0
- package/dist/client/merchant/src/node-configs/member-referral/schema.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/member-referral-tutorial/props.d.ts +8 -0
- package/dist/client/merchant/src/node-configs/member-referral-tutorial/schema.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/member-summary/mock-data.d.ts +9 -0
- package/dist/client/merchant/src/node-configs/member-summary/props.d.ts +32 -0
- package/dist/client/merchant/src/node-configs/member-summary/schema.d.ts +2 -0
- package/dist/client/merchant/src/node-configs/mock-data.d.ts +7 -0
- package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/props.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/node-configs/order-method/props.d.ts +1 -0
- package/dist/{merchant → client/merchant}/src/node-configs/props.d.ts +8 -1
- package/dist/{merchant → client/merchant}/src/node-configs/schema.d.ts +8 -1
- package/dist/client/merchant/src/stores/business/index.d.ts +262 -0
- package/dist/{merchant → client/merchant}/src/stores/editor/index.d.ts +1 -1
- package/dist/{merchant → client/merchant}/src/stores/template/index.d.ts +88 -9
- package/dist/client/merchant/src/views/BuilderView.vue.d.ts +5 -0
- package/dist/client/merchant/src/views/views.d.ts +101 -0
- package/dist/{image-CZHt-VXw.js → image-BYlGZH0E.js} +1 -1
- package/dist/index-BvuwuHni.js +30 -0
- package/dist/index-DBOAICnu.js +198 -0
- package/dist/{index-C9F3TTHx.js → index-DDahVJiF.js} +206 -205
- package/dist/index-DzaJbB6y.js +40 -0
- package/dist/index-bSKZrhdP.js +90 -0
- package/dist/main-pKSbpQEA.js +7928 -0
- package/dist/package.json +8 -2
- package/dist/style.css +1 -1
- package/dist/views-BDWw3w14.js +119 -0
- package/dist/{index-BekN4F_2.js → vue-sonner-PX6Req0V.js} +263 -333
- package/package.json +8 -2
- package/dist/App-BK8oMq3l.js +0 -101
- package/dist/BuilderView-DRVOcsVV.js +0 -5501
- package/dist/ColorPicker-DAysa9fA.js +0 -22
- package/dist/Select-CbQFoAzb.js +0 -25
- package/dist/StepperField-DrHM9EDn.js +0 -29
- package/dist/index-B-LGv3nI.js +0 -188
- package/dist/index-BaHmjvBz.js +0 -25
- package/dist/main-DT3xX1S6.js +0 -6736
- package/dist/merchant/src/node-configs/container/props.d.ts +0 -57
- package/dist/merchant/src/node-configs/mock-data.d.ts +0 -3
- package/dist/merchant/src/stores/business/index.d.ts +0 -59
- package/dist/merchant/src/views/HomeView.vue.d.ts +0 -2
- /package/dist/{components → client/components}/src/components/BranchList.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/CountrySwitcher.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/ImageCarousel.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/ImageDisplay.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/MemberCard.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/OrderHistoryCard.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/OrderMethod.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/TextDisplay.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Button.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/CircularProgress.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Divider.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/Icon.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/LinkSlot.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/components/atoms/OrderTypeChip.vue.d.ts +0 -0
- /package/dist/{components → client/components}/src/utils/image.d.ts +0 -0
- /package/dist/{components → client/components}/src/views/OrderDetails.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/App.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/Entry.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/image/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/api/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/BaButtonGroup.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/BaDivider.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/atoms/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/Editor.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/EditorFloatingToobar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/EditorToolbar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/PreviewQrCode.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/TemplatePicker.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/editor/toolbar/TemplateShareMenu.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ButtonGroup.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ImageUpload.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/LinkButton.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/ListRepeater.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/Select.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/StepperField.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/Switch.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextAlign.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextDecorators.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextField.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/TextStyleList.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inputs/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/Inspector.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigSection.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTab.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTabItem.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/inspector/atoms/ConfigTabTitle.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/navigation-sidebar/NavigationSidebar.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/settings/AssetsSettings.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/components/settings/ManagementSettings.vue.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/helpers/businessUrl.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/main.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/branch-list/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/button-list/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/carousel/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/container/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-image/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/display-text/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/homepage/props.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/homepage/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/member-card/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/mock-data.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-history-card/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/node-configs/order-method/schema.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/plugin/formkit.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/router/index.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/router/shared.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/deep-to-raw.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/image.d.ts +0 -0
- /package/dist/{merchant → client/merchant}/src/utils/provider-keys.d.ts +0 -0
- /package/dist/{merchant/src/components/element-sidebar/ElementSidebar.vue.d.ts → client/merchant/src/views/BrandkitView.vue.d.ts} +0 -0
- /package/dist/{merchant/src/views/BuilderView.vue.d.ts → client/merchant/src/views/ProjectView.vue.d.ts} +0 -0
- /package/dist/{merchant → client/merchant}/src/views/SettingsView.vue.d.ts +0 -0
package/dist/app.js
CHANGED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
export type BrandFont = {
|
|
2
|
+
name: string;
|
|
3
|
+
source: 'google' | 'custom';
|
|
4
|
+
weights: string[];
|
|
5
|
+
files: {
|
|
6
|
+
[weight: string]: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export type BrandKit = {
|
|
10
|
+
colors: {
|
|
11
|
+
primary: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
accent: string;
|
|
14
|
+
background: {
|
|
15
|
+
base: string;
|
|
16
|
+
elevated: string;
|
|
17
|
+
};
|
|
18
|
+
neutral: {
|
|
19
|
+
light: string;
|
|
20
|
+
mid: string;
|
|
21
|
+
dark: string;
|
|
22
|
+
};
|
|
23
|
+
status: {
|
|
24
|
+
success: string;
|
|
25
|
+
warning: string;
|
|
26
|
+
error: string;
|
|
27
|
+
info?: string;
|
|
28
|
+
};
|
|
29
|
+
text: {
|
|
30
|
+
onPrimary: string;
|
|
31
|
+
primary: string;
|
|
32
|
+
secondary: string;
|
|
33
|
+
tertiary: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
fonts: {
|
|
37
|
+
brand: string;
|
|
38
|
+
heading?: string;
|
|
39
|
+
body?: string;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export type FdoMetadata = {
|
|
43
|
+
type: 'BUSINESS' | 'RESTAURANT';
|
|
44
|
+
country: string;
|
|
45
|
+
pwaConfig: {
|
|
46
|
+
short_name: string;
|
|
47
|
+
name: string;
|
|
48
|
+
background_color: string;
|
|
49
|
+
theme_color: string;
|
|
50
|
+
};
|
|
51
|
+
brandkit: BrandKit | null;
|
|
52
|
+
};
|
|
@@ -3,12 +3,14 @@ import { type ILink } from './atoms/LinkSlot.vue';
|
|
|
3
3
|
interface IListItem {
|
|
4
4
|
label: string;
|
|
5
5
|
imageUrl: string;
|
|
6
|
+
iconName: string;
|
|
6
7
|
linkTo: ILink;
|
|
7
8
|
}
|
|
8
9
|
interface IButtonListProps {
|
|
9
10
|
containerStyles: IContainerProps;
|
|
10
11
|
items: IListItem[];
|
|
11
12
|
itemsPerRow: number;
|
|
13
|
+
iconColor: string;
|
|
12
14
|
textColor: string;
|
|
13
15
|
}
|
|
14
16
|
declare const _default: import("vue").DefineComponent<IButtonListProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
@@ -5,6 +5,8 @@ interface IHomepageProps {
|
|
|
5
5
|
paddingLeft?: string;
|
|
6
6
|
paddingRight?: string;
|
|
7
7
|
backgroundColor?: string;
|
|
8
|
+
hideCountrySwitcher?: boolean;
|
|
9
|
+
showNavigationBar?: boolean;
|
|
8
10
|
}
|
|
9
11
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<IHomepageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IHomepageProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
10
12
|
default?(_: {}): any;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type IContainerProps } from '../atoms/Container.vue';
|
|
2
|
+
import type { ILink } from '../atoms/LinkSlot.vue';
|
|
3
|
+
interface IMembershipCardData {
|
|
4
|
+
memberImage: string;
|
|
5
|
+
memberName: string;
|
|
6
|
+
memberTierImageURL: string;
|
|
7
|
+
memberTierName: string;
|
|
8
|
+
memberCredit: number;
|
|
9
|
+
memberPoints: number;
|
|
10
|
+
memberTitles: string[];
|
|
11
|
+
memberCurrentTierTotal: number;
|
|
12
|
+
memberPointToNextTier: number;
|
|
13
|
+
membership: any;
|
|
14
|
+
}
|
|
15
|
+
interface IMemberAchievementProps {
|
|
16
|
+
containerStyles: IContainerProps;
|
|
17
|
+
data: IMembershipCardData | null;
|
|
18
|
+
showTier: boolean;
|
|
19
|
+
tierColor: string;
|
|
20
|
+
showTitle: boolean;
|
|
21
|
+
titleColor: string;
|
|
22
|
+
buttonTextColor: string;
|
|
23
|
+
buttonFillColor: string;
|
|
24
|
+
}
|
|
25
|
+
declare const _default: import("vue").DefineComponent<IMemberAchievementProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
|
+
linkClick: (link: ILink) => any;
|
|
27
|
+
}, string, import("vue").PublicProps, Readonly<IMemberAchievementProps> & Readonly<{
|
|
28
|
+
onLinkClick?: ((link: ILink) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
showTier: boolean;
|
|
31
|
+
showTitle: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type IContainerProps } from '../atoms/Container.vue';
|
|
2
|
+
import type { ILink } from '../atoms/LinkSlot.vue';
|
|
3
|
+
interface IMembershipCardData {
|
|
4
|
+
cards: any[];
|
|
5
|
+
}
|
|
6
|
+
interface IMemberCardsProps {
|
|
7
|
+
containerStyles: IContainerProps;
|
|
8
|
+
cardFillColor: string;
|
|
9
|
+
cardTextColor: string;
|
|
10
|
+
data: IMembershipCardData | null;
|
|
11
|
+
authLoading: boolean;
|
|
12
|
+
signedIn: boolean;
|
|
13
|
+
}
|
|
14
|
+
declare const _default: import("vue").DefineComponent<IMemberCardsProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
+
linkClick: (link: ILink) => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<IMemberCardsProps> & Readonly<{
|
|
17
|
+
onLinkClick?: ((link: ILink) => any) | undefined;
|
|
18
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { type IContainerProps } from '../atoms/Container.vue';
|
|
2
|
+
interface IMembershipSummaryData {
|
|
3
|
+
memberImage: string;
|
|
4
|
+
memberName: string;
|
|
5
|
+
memberPhone: string;
|
|
6
|
+
memberTierName: string | null;
|
|
7
|
+
memberPoints: number;
|
|
8
|
+
memberCurrentTierTotal: number;
|
|
9
|
+
memberPointToNextTier: number;
|
|
10
|
+
}
|
|
11
|
+
interface IMembershipSummaryProps {
|
|
12
|
+
containerStyles: IContainerProps;
|
|
13
|
+
data: IMembershipSummaryData | null;
|
|
14
|
+
thumbnailColorFillColor: string;
|
|
15
|
+
thumbnailTextColor: string;
|
|
16
|
+
textColor: string;
|
|
17
|
+
qrCodeColor: string;
|
|
18
|
+
}
|
|
19
|
+
declare const _default: import("vue").DefineComponent<IMembershipSummaryProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
+
openMemberQr: () => any;
|
|
21
|
+
}, string, import("vue").PublicProps, Readonly<IMembershipSummaryProps> & Readonly<{
|
|
22
|
+
onOpenMemberQr?: (() => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
transactions: any[];
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
5
|
+
export default _default;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
className?: string;
|
|
4
|
+
};
|
|
5
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
6
|
+
back: () => any;
|
|
7
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
8
|
+
onBack?: (() => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLElement>, {
|
|
10
|
+
append?(_: {}): any;
|
|
11
|
+
}>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -16,4 +16,12 @@ import Button from './components/atoms/Button.vue';
|
|
|
16
16
|
import OrderTypeChip from './components/atoms/OrderTypeChip.vue';
|
|
17
17
|
import LinkSlot from './components/atoms/LinkSlot.vue';
|
|
18
18
|
import OrderDetails from './views/OrderDetails.vue';
|
|
19
|
-
|
|
19
|
+
import MemberSummary from './components/Member/MemberSummary.vue';
|
|
20
|
+
import MemberCards from './components/Member/MemberCards.vue';
|
|
21
|
+
import MemberAchievements from './components/Member/MemberAchievements.vue';
|
|
22
|
+
import _MemberProfile from './views/_MemberProfile.vue';
|
|
23
|
+
import _Referral from './views/_Referral.vue';
|
|
24
|
+
import _ReferralTutorial from './views/_ReferralTutorial.vue';
|
|
25
|
+
import _Credit from './views/_Credit.vue';
|
|
26
|
+
import _Point from './views/_Point.vue';
|
|
27
|
+
export { Homepage, TextDisplay, ButtonList, Container, Icon, ImageDisplay, ImageCarousel, MemberCard, CircularProgress, Divider, OrderMethod, Button, BranchList, OrderHistoryCard, OrderTypeChip, OrderDetails, LinkSlot, CountrySwitcher, Homepage as MemberHomepage, MemberSummary, MemberCards, MemberAchievements, _MemberProfile, _Credit, _Point, _ReferralTutorial, _Referral, };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare const DateUtil: {
|
|
2
|
+
formatDateTime: (dateTime: string | Date | null | undefined) => string | undefined;
|
|
3
|
+
getStartEndFromDurations: (current: string, durations: {
|
|
4
|
+
start: string;
|
|
5
|
+
end: string;
|
|
6
|
+
}[]) => {
|
|
7
|
+
start: string;
|
|
8
|
+
end: string;
|
|
9
|
+
};
|
|
10
|
+
formatterBuilder: (date: string, format?: string, fromFormat?: string) => {
|
|
11
|
+
showWeekday: () => any;
|
|
12
|
+
showDay: () => any;
|
|
13
|
+
showMonth: () => any;
|
|
14
|
+
showYear: () => any;
|
|
15
|
+
showHour: ({ is24Hour }: {
|
|
16
|
+
is24Hour: boolean;
|
|
17
|
+
}) => any;
|
|
18
|
+
withComma: () => any;
|
|
19
|
+
build: () => string;
|
|
20
|
+
};
|
|
21
|
+
objectIdToDate: (id: string) => Date;
|
|
22
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type IHistoryPageData = {
|
|
2
|
+
member: any;
|
|
3
|
+
transactions: any[];
|
|
4
|
+
amount: number;
|
|
5
|
+
amountExpiring: number;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
isCompleted: boolean;
|
|
8
|
+
};
|
|
9
|
+
interface IHistoryPageProps {
|
|
10
|
+
data: IHistoryPageData | null;
|
|
11
|
+
designStyle: number;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import("vue").DefineComponent<IHistoryPageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
|
+
back: () => any;
|
|
15
|
+
"view-all": () => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<IHistoryPageProps> & Readonly<{
|
|
17
|
+
onBack?: (() => any) | undefined;
|
|
18
|
+
"onView-all"?: (() => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
interface MemberProfileProps {
|
|
2
|
+
memberState: {
|
|
3
|
+
currentTier: any;
|
|
4
|
+
expToNextTier: number;
|
|
5
|
+
tierIndex: number;
|
|
6
|
+
member: {
|
|
7
|
+
point: {
|
|
8
|
+
balance: number;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
membership: any;
|
|
12
|
+
referral: any;
|
|
13
|
+
} | null;
|
|
14
|
+
User: {
|
|
15
|
+
state: {
|
|
16
|
+
feedmeUser: any | null;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<MemberProfileProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
21
|
+
back: () => any;
|
|
22
|
+
"sign-in": () => any;
|
|
23
|
+
logout: () => any;
|
|
24
|
+
"show-member-q-r": () => any;
|
|
25
|
+
"join-member": () => any;
|
|
26
|
+
"invite-friends": () => any;
|
|
27
|
+
"account-settings": () => any;
|
|
28
|
+
"member-details": () => any;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<MemberProfileProps> & Readonly<{
|
|
30
|
+
onBack?: (() => any) | undefined;
|
|
31
|
+
"onSign-in"?: (() => any) | undefined;
|
|
32
|
+
onLogout?: (() => any) | undefined;
|
|
33
|
+
"onShow-member-q-r"?: (() => any) | undefined;
|
|
34
|
+
"onJoin-member"?: (() => any) | undefined;
|
|
35
|
+
"onInvite-friends"?: (() => any) | undefined;
|
|
36
|
+
"onAccount-settings"?: (() => any) | undefined;
|
|
37
|
+
"onMember-details"?: (() => any) | undefined;
|
|
38
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
39
|
+
default?(_: {}): any;
|
|
40
|
+
}>;
|
|
41
|
+
export default _default;
|
|
42
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
43
|
+
new (): {
|
|
44
|
+
$slots: S;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type IHistoryPageData = {
|
|
2
|
+
member: any;
|
|
3
|
+
transactions: any[];
|
|
4
|
+
amount: number;
|
|
5
|
+
amountExpiring: number;
|
|
6
|
+
isLoading: boolean;
|
|
7
|
+
isCompleted: boolean;
|
|
8
|
+
};
|
|
9
|
+
interface IHistoryPageProps {
|
|
10
|
+
data: IHistoryPageData | null;
|
|
11
|
+
designStyle: number;
|
|
12
|
+
}
|
|
13
|
+
declare const _default: import("vue").DefineComponent<IHistoryPageProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
14
|
+
back: () => any;
|
|
15
|
+
"view-all": () => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<IHistoryPageProps> & Readonly<{
|
|
17
|
+
onBack?: (() => any) | undefined;
|
|
18
|
+
"onView-all"?: (() => any) | undefined;
|
|
19
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
data: {
|
|
3
|
+
member: any;
|
|
4
|
+
referral: any;
|
|
5
|
+
submittingReferrerCode?: boolean;
|
|
6
|
+
submitReferrerCodeError?: string;
|
|
7
|
+
} | null;
|
|
8
|
+
};
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
10
|
+
back: () => any;
|
|
11
|
+
"copy-code": (code: string) => any;
|
|
12
|
+
"share-code": (code: string) => any;
|
|
13
|
+
"submit-code": (code: string) => any;
|
|
14
|
+
"invite-history": () => any;
|
|
15
|
+
"how-it-works": () => any;
|
|
16
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
+
onBack?: (() => any) | undefined;
|
|
18
|
+
"onCopy-code"?: ((code: string) => any) | undefined;
|
|
19
|
+
"onShare-code"?: ((code: string) => any) | undefined;
|
|
20
|
+
"onSubmit-code"?: ((code: string) => any) | undefined;
|
|
21
|
+
"onInvite-history"?: (() => any) | undefined;
|
|
22
|
+
"onHow-it-works"?: (() => any) | undefined;
|
|
23
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
24
|
+
default?(_: {}): any;
|
|
25
|
+
}>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
explanations?: {
|
|
3
|
+
label: string;
|
|
4
|
+
}[];
|
|
5
|
+
data: {
|
|
6
|
+
tableData: string[][];
|
|
7
|
+
programName: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
11
|
+
back: () => any;
|
|
12
|
+
tnc: () => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
onBack?: (() => any) | undefined;
|
|
15
|
+
onTnc?: (() => any) | undefined;
|
|
16
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
17
|
+
default?(_: {}): any;
|
|
18
|
+
}>;
|
|
19
|
+
export default _default;
|
|
20
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
21
|
+
new (): {
|
|
22
|
+
$slots: S;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type IBaResponse } from '..';
|
|
2
|
+
import type { BrandKit } from '../../../../../brand-core/src/entity';
|
|
2
3
|
/**
|
|
3
4
|
* Get all business and country info from top-level slug
|
|
4
5
|
* @param slug
|
|
@@ -23,6 +24,17 @@ declare function getBusinessMetadata(businessId: string): Promise<unknown>;
|
|
|
23
24
|
* @param appName
|
|
24
25
|
*/
|
|
25
26
|
declare function setBusinessMetadata(businessId: string, appName: string, country: string): Promise<unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* Get business brandkit
|
|
29
|
+
* @param businessId
|
|
30
|
+
* @returns
|
|
31
|
+
*/
|
|
32
|
+
declare function getBusinessBrandkit(businessId: string): Promise<BrandKit>;
|
|
33
|
+
/**
|
|
34
|
+
* Set business brandkit
|
|
35
|
+
* @param businessId
|
|
36
|
+
*/
|
|
37
|
+
declare function setBusinessBrandkit(businessId: string, brandkit: BrandKit): Promise<unknown>;
|
|
26
38
|
declare function updateBusinessProfile(businessId: string, payload: IBusinessProfilePayload): Promise<any>;
|
|
27
39
|
declare function getBusinessPremiumStatus(businessId: string): Promise<boolean>;
|
|
28
40
|
export declare const BusinessApi: {
|
|
@@ -30,6 +42,8 @@ export declare const BusinessApi: {
|
|
|
30
42
|
setShortUrl: typeof setShortUrl;
|
|
31
43
|
getBusinessMetadata: typeof getBusinessMetadata;
|
|
32
44
|
setBusinessMetadata: typeof setBusinessMetadata;
|
|
45
|
+
getBusinessBrandkit: typeof getBusinessBrandkit;
|
|
46
|
+
setBusinessBrandkit: typeof setBusinessBrandkit;
|
|
33
47
|
updateBusinessProfile: typeof updateBusinessProfile;
|
|
34
48
|
getBusinessPremiumStatus: typeof getBusinessPremiumStatus;
|
|
35
49
|
};
|
|
@@ -29,13 +29,13 @@ declare function uploadTemplate(businessId: string, draftsOrActive: 'drafts' | '
|
|
|
29
29
|
* @param templateId
|
|
30
30
|
* @returns
|
|
31
31
|
*/
|
|
32
|
-
declare function setMainPageTemplateId(businessId: string, templateId: string): Promise<string>;
|
|
32
|
+
declare function setMainPageTemplateId(businessId: string, templateId: string, type?: 'member'): Promise<string>;
|
|
33
33
|
/**
|
|
34
34
|
* Get current business's mainpage template ID
|
|
35
35
|
* @param businessId
|
|
36
36
|
* @returns Mainpage template ID
|
|
37
37
|
*/
|
|
38
|
-
declare function getMainTemplateId(businessId: string): Promise<string>;
|
|
38
|
+
declare function getMainTemplateId(businessId: string, type?: 'member'): Promise<string>;
|
|
39
39
|
/**
|
|
40
40
|
* Check if template exists in specified `draftsOrActive` state
|
|
41
41
|
* @param businessId
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const FmApp: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
-
export { routes } from
|
|
2
|
+
export { routes } from './router/shared';
|
|
3
3
|
export { FormKitPlugin } from './plugin/formkit';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import 'vue-accessible-color-picker/styles';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
initialColor: string;
|
|
4
|
+
color: string;
|
|
5
|
+
title: string;
|
|
6
|
+
description: string;
|
|
7
|
+
};
|
|
8
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
9
|
+
remove: () => any;
|
|
10
|
+
update: (value: string) => any;
|
|
11
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
+
onRemove?: (() => any) | undefined;
|
|
13
|
+
onUpdate?: ((value: string) => any) | undefined;
|
|
14
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
2
|
+
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { FormKitFrameworkContext } from '@formkit/core';
|
|
2
|
+
import 'vue-accessible-color-picker/styles';
|
|
2
3
|
interface IColorPickerProps {
|
|
3
4
|
context: FormKitFrameworkContext;
|
|
4
5
|
}
|
|
5
|
-
declare const _default: import("vue").DefineComponent<IColorPickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IColorPickerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {},
|
|
6
|
+
declare const _default: import("vue").DefineComponent<IColorPickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<IColorPickerProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
6
7
|
export default _default;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
color?: string;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
5
|
+
update: (v: string) => any;
|
|
6
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
7
|
+
onUpdate?: ((v: string) => any) | undefined;
|
|
8
|
+
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { predefinedTemplates } from '../../views/views';
|
|
2
|
+
type key = (typeof predefinedTemplates)[number]['type'];
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
type: key;
|
|
5
|
+
group: string;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @returns
|
|
4
4
|
*/
|
|
5
5
|
export declare function useNodeManager(): {
|
|
6
|
-
buildNewNode: (nodeType: string, data: any) => INodeComponent;
|
|
6
|
+
buildNewNode: (nodeType: string, data: any, props?: any) => INodeComponent;
|
|
7
7
|
copyNode: (node: INodeComponent) => void;
|
|
8
8
|
pasteNode: () => void;
|
|
9
9
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function useToast(): {
|
|
2
|
+
promise: <T = any, E = any>(fn: Promise<T> | (() => Promise<T>), config: {
|
|
3
|
+
loading: string | (() => string);
|
|
4
|
+
success?: string | (() => string);
|
|
5
|
+
error?: string | ((err: E) => string);
|
|
6
|
+
duration?: number;
|
|
7
|
+
}) => Promise<T>;
|
|
8
|
+
};
|
|
@@ -2,12 +2,14 @@ export declare const ButtonList: {
|
|
|
2
2
|
items: {
|
|
3
3
|
label: string;
|
|
4
4
|
imageUrl: string;
|
|
5
|
+
iconName: string;
|
|
5
6
|
linkTo: {
|
|
6
7
|
path: string;
|
|
7
8
|
isExternal: boolean;
|
|
8
9
|
};
|
|
9
10
|
}[];
|
|
10
11
|
itemsPerRow: number;
|
|
12
|
+
iconColor: string;
|
|
11
13
|
textColor: string;
|
|
12
14
|
containerStyles: {
|
|
13
15
|
paddingTop: string;
|
|
@@ -18,6 +20,7 @@ export declare const ButtonList: {
|
|
|
18
20
|
marginBottom: string;
|
|
19
21
|
marginLeft: string;
|
|
20
22
|
marginRight: string;
|
|
23
|
+
background: string | undefined;
|
|
21
24
|
backgroundColor: string;
|
|
22
25
|
borderRadius: string;
|
|
23
26
|
borderWidth: string;
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export interface IContainer {
|
|
2
|
+
paddingTop?: string;
|
|
3
|
+
paddingBottom?: string;
|
|
4
|
+
paddingLeft?: string;
|
|
5
|
+
paddingRight?: string;
|
|
6
|
+
marginTop?: string;
|
|
7
|
+
marginBottom?: string;
|
|
8
|
+
marginLeft?: string;
|
|
9
|
+
marginRight?: string;
|
|
10
|
+
background?: string;
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
borderRadius?: string;
|
|
13
|
+
borderWidth?: string;
|
|
14
|
+
borderColor?: string;
|
|
15
|
+
height?: string;
|
|
16
|
+
boxShadow?: string;
|
|
17
|
+
}
|
|
18
|
+
export declare const Container: {
|
|
19
|
+
containerStyles: {
|
|
20
|
+
paddingTop: string;
|
|
21
|
+
paddingBottom: string;
|
|
22
|
+
paddingLeft: string;
|
|
23
|
+
paddingRight: string;
|
|
24
|
+
marginTop: string;
|
|
25
|
+
marginBottom: string;
|
|
26
|
+
marginLeft: string;
|
|
27
|
+
marginRight: string;
|
|
28
|
+
backgroundColor: string;
|
|
29
|
+
borderRadius: string;
|
|
30
|
+
borderWidth: string;
|
|
31
|
+
borderColor: string;
|
|
32
|
+
height: string;
|
|
33
|
+
boxShadow: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* To build a default container styling
|
|
38
|
+
* @param style
|
|
39
|
+
* @returns {IContainer}
|
|
40
|
+
*/
|
|
41
|
+
/**
|
|
42
|
+
* Factory function to generate container style properties.
|
|
43
|
+
*
|
|
44
|
+
* @param style - An object implementing the `IContainer` interface, which defines
|
|
45
|
+
* the style properties for the container.
|
|
46
|
+
*
|
|
47
|
+
* @returns An object containing the computed `containerStyles` with default values
|
|
48
|
+
* applied for any missing properties in the input `style`.
|
|
49
|
+
*
|
|
50
|
+
* The `containerStyles` object includes:
|
|
51
|
+
* - `paddingTop`: The top padding of the container (default: '12px').
|
|
52
|
+
* - `paddingBottom`: The bottom padding of the container (default: '12px').
|
|
53
|
+
* - `paddingLeft`: The left padding of the container (default: '12px').
|
|
54
|
+
* - `paddingRight`: The right padding of the container (default: '12px').
|
|
55
|
+
* - `marginTop`: The top margin of the container (default: '0px').
|
|
56
|
+
* - `marginBottom`: The bottom margin of the container (default: '0px').
|
|
57
|
+
* - `marginLeft`: The left margin of the container (default: '0px').
|
|
58
|
+
* - `marginRight`: The right margin of the container (default: '0px').
|
|
59
|
+
* - `background`: The background property of the container (default: undefined).
|
|
60
|
+
* - `backgroundColor`: The background color of the container (default: '#FFFFFF').
|
|
61
|
+
* - `borderRadius`: The border radius of the container (default: '0px').
|
|
62
|
+
* - `borderWidth`: The border width of the container (default: '0px').
|
|
63
|
+
* - `borderColor`: The border color of the container (default: '#FFFFFF').
|
|
64
|
+
* - `height`: The height of the container (default: 'auto').
|
|
65
|
+
* - `boxShadow`: The box shadow of the container (default: 'none').
|
|
66
|
+
*/
|
|
67
|
+
export declare const ContainerFactory: (style: IContainer) => {
|
|
68
|
+
containerStyles: {
|
|
69
|
+
paddingTop: string;
|
|
70
|
+
paddingBottom: string;
|
|
71
|
+
paddingLeft: string;
|
|
72
|
+
paddingRight: string;
|
|
73
|
+
marginTop: string;
|
|
74
|
+
marginBottom: string;
|
|
75
|
+
marginLeft: string;
|
|
76
|
+
marginRight: string;
|
|
77
|
+
background: string | undefined;
|
|
78
|
+
backgroundColor: string;
|
|
79
|
+
borderRadius: string;
|
|
80
|
+
borderWidth: string;
|
|
81
|
+
borderColor: string;
|
|
82
|
+
height: string;
|
|
83
|
+
boxShadow: string;
|
|
84
|
+
};
|
|
85
|
+
};
|