@ikas/loyalty-widget-renderer 1.0.0-alpha.8 → 1.0.0
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/build/_virtual/index.js +1 -1
- package/build/_virtual/index2.js +1 -0
- package/build/_virtual/react-is.production.js +1 -0
- package/build/_virtual/react-is.production.min.js +1 -0
- package/build/assets/badgeLevel1.d.ts +2 -2
- package/build/assets/badgeLevel2.d.ts +2 -2
- package/build/assets/badgeLevel3.d.ts +2 -2
- package/build/assets/badgeLevel4.d.ts +2 -2
- package/build/assets/icons/check-circle-fill.d.ts +2 -2
- package/build/assets/icons/check.d.ts +2 -2
- package/build/assets/icons/chevron-left.d.ts +2 -2
- package/build/assets/icons/x-close.d.ts +2 -2
- package/build/assets/index.d.ts +27 -27
- package/build/assets/widget-icons/illustraions/approvedChatIllustration.d.ts +2 -2
- package/build/assets/widget-icons/illustraions/bankCoin.d.ts +2 -2
- package/build/assets/widget-icons/illustraions/bigSaleMedal.d.ts +2 -2
- package/build/assets/widget-icons/illustraions/bubbleChatIllustration.d.ts +2 -2
- package/build/assets/widget-icons/illustraions/giftIllustration.d.ts +2 -2
- package/build/assets/widget-icons/illustraions/medal.d.ts +2 -2
- package/build/assets/widget-icons/illustraions/shippingBox.d.ts +2 -2
- package/build/assets/widget-icons/illustraions/shoppingCartIllustration.d.ts +2 -2
- package/build/assets/widget-icons/illustraions/tshirtIllustration.d.ts +2 -2
- package/build/assets/widget-icons/illustraions/usersIllustration.d.ts +2 -2
- package/build/assets/widget-icons/normal/bubbleChatDone.d.ts +2 -2
- package/build/assets/widget-icons/normal/commentAdd01.d.ts +2 -2
- package/build/assets/widget-icons/normal/couponPercent.d.ts +2 -2
- package/build/assets/widget-icons/normal/discountTag02.d.ts +2 -2
- package/build/assets/widget-icons/normal/gift.d.ts +2 -2
- package/build/assets/widget-icons/normal/moneyAdd01.d.ts +2 -2
- package/build/assets/widget-icons/normal/packageDelivered.d.ts +2 -2
- package/build/assets/widget-icons/normal/saveMoneyDollar.d.ts +2 -2
- package/build/assets/widget-icons/normal/shoppingBasketAdd02.d.ts +2 -2
- package/build/assets/widget-icons/normal/userAdd01.d.ts +2 -2
- package/build/ext/@emotion/is-prop-valid/dist/is-prop-valid.browser.esm.js +1 -0
- package/build/ext/@emotion/memoize/dist/memoize.browser.esm.js +1 -0
- package/build/ext/@emotion/stylis/dist/stylis.browser.esm.js +1 -0
- package/build/ext/@emotion/unitless/dist/unitless.browser.esm.js +1 -0
- package/build/ext/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +1 -0
- package/build/ext/hoist-non-react-statics/ext/react-is/cjs/react-is.development.js +9 -0
- package/build/ext/hoist-non-react-statics/ext/react-is/cjs/react-is.production.min.js +9 -0
- package/build/ext/hoist-non-react-statics/ext/react-is/index.js +1 -0
- package/build/ext/i18next/dist/esm/i18next.js +1 -1
- package/build/ext/react-i18next/dist/es/defaults.js +1 -1
- package/build/ext/react-i18next/dist/es/i18nInstance.js +1 -1
- package/build/ext/react-i18next/dist/es/useTranslation.js +1 -1
- package/build/ext/react-i18next/dist/es/utils.js +1 -1
- package/build/ext/react-is/cjs/react-is.development.js +10 -0
- package/build/ext/react-is/cjs/react-is.production.js +10 -0
- package/build/ext/react-is/index.js +1 -0
- package/build/ext/styled-components/dist/styled-components.browser.esm.js +1 -0
- package/build/index.d.ts +12 -11
- package/build/models/base.d.ts +4 -4
- package/build/models/button/index.d.ts +7 -7
- package/build/models/category/index.d.ts +5 -5
- package/build/models/image/index.d.ts +12 -12
- package/build/models/index.d.ts +28 -28
- package/build/models/loyalty-customer-info/index.d.ts +28 -28
- package/build/models/loyalty-program-earning-method/index.d.ts +51 -51
- package/build/models/loyalty-program-point-history/index.d.ts +17 -17
- package/build/models/loyalty-program-spending-method/index.d.ts +38 -38
- package/build/models/loyalty-widget/header/header-background/index.d.ts +9 -9
- package/build/models/loyalty-widget/header/index.d.ts +8 -8
- package/build/models/loyalty-widget/header-background/index.d.ts +9 -9
- package/build/models/loyalty-widget/index.d.ts +12 -12
- package/build/models/loyalty-widget/settings/index.d.ts +10 -10
- package/build/models/loyalty-widget/types/index.d.ts +29 -29
- package/build/models/types/index.d.ts +145 -145
- package/build/renderer/components/button/index.d.ts +15 -15
- package/build/renderer/components/button/style.d.ts +15 -15
- package/build/renderer/components/button/style.js +1 -1
- package/build/renderer/components/index.d.ts +5 -3
- package/build/renderer/components/loyalty-method-card/index.d.ts +23 -23
- package/build/renderer/components/loyalty-method-card/style.d.ts +22 -22
- package/build/renderer/components/loyalty-method-card/style.js +1 -1
- package/build/renderer/components/section-title/index.d.ts +8 -8
- package/build/renderer/components/section-title/style.d.ts +1 -1
- package/build/renderer/components/section-title/style.js +1 -1
- package/build/renderer/components/style/typography.d.ts +11 -11
- package/build/renderer/components/style/typography.js +1 -1
- package/build/renderer/index.d.ts +5 -7
- package/build/renderer/index.js +1 -1
- package/build/renderer/screens/credit-earning-methods-screen/index.d.ts +9 -9
- package/build/renderer/screens/credit-earning-methods-screen/index.js +1 -1
- package/build/renderer/screens/credit-earning-methods-screen/style.d.ts +5 -5
- package/build/renderer/screens/credit-earning-methods-screen/style.js +1 -1
- package/build/renderer/screens/credit-history-screen/index.d.ts +9 -9
- package/build/renderer/screens/credit-history-screen/index.js +1 -1
- package/build/renderer/screens/credit-history-screen/style.d.ts +17 -17
- package/build/renderer/screens/credit-history-screen/style.js +1 -1
- package/build/renderer/screens/credit-spending-methods-screen/index.d.ts +9 -9
- package/build/renderer/screens/credit-spending-methods-screen/index.js +1 -1
- package/build/renderer/screens/credit-spending-methods-screen/style.d.ts +8 -8
- package/build/renderer/screens/credit-spending-methods-screen/style.js +1 -1
- package/build/renderer/screens/loyalty-level-screen/index.d.ts +9 -9
- package/build/renderer/screens/loyalty-level-screen/index.js +1 -1
- package/build/renderer/screens/loyalty-level-screen/style.d.ts +32 -32
- package/build/renderer/screens/loyalty-level-screen/style.js +1 -1
- package/build/renderer/screens/main-screen/earning-methods-section/index.d.ts +14 -14
- package/build/renderer/screens/main-screen/earning-methods-section/index.js +1 -1
- package/build/renderer/screens/main-screen/header/auth-user-section/index.d.ts +7 -7
- package/build/renderer/screens/main-screen/header/auth-user-section/index.js +1 -1
- package/build/renderer/screens/main-screen/header/auth-user-section/style.d.ts +7 -7
- package/build/renderer/screens/main-screen/header/auth-user-section/style.js +1 -1
- package/build/renderer/screens/main-screen/header/index.d.ts +10 -10
- package/build/renderer/screens/main-screen/header/logo-section/index.d.ts +7 -7
- package/build/renderer/screens/main-screen/header/logo-section/style.d.ts +2 -2
- package/build/renderer/screens/main-screen/header/logo-section/style.js +1 -1
- package/build/renderer/screens/main-screen/header/style.d.ts +12 -12
- package/build/renderer/screens/main-screen/header/style.js +1 -1
- package/build/renderer/screens/main-screen/header/title-section/index.d.ts +7 -7
- package/build/renderer/screens/main-screen/header/title-section/index.js +1 -1
- package/build/renderer/screens/main-screen/header/title-section/style.d.ts +7 -7
- package/build/renderer/screens/main-screen/header/title-section/style.js +1 -1
- package/build/renderer/screens/main-screen/header/user-logged-section/index.d.ts +7 -7
- package/build/renderer/screens/main-screen/header/user-logged-section/index.js +1 -1
- package/build/renderer/screens/main-screen/header/user-logged-section/style.d.ts +18 -18
- package/build/renderer/screens/main-screen/header/user-logged-section/style.js +1 -1
- package/build/renderer/screens/main-screen/index.d.ts +9 -9
- package/build/renderer/screens/main-screen/index.js +1 -1
- package/build/renderer/screens/main-screen/program-info-section/index.d.ts +8 -8
- package/build/renderer/screens/main-screen/program-info-section/index.js +1 -1
- package/build/renderer/screens/main-screen/program-info-section/style.d.ts +8 -8
- package/build/renderer/screens/main-screen/program-info-section/style.js +1 -1
- package/build/renderer/screens/main-screen/spending-methods-section/dynamic-slider.d.ts +9 -9
- package/build/renderer/screens/main-screen/spending-methods-section/dynamic-slider.js +1 -1
- package/build/renderer/screens/main-screen/spending-methods-section/index.d.ts +13 -13
- package/build/renderer/screens/main-screen/spending-methods-section/index.js +1 -1
- package/build/renderer/screens/main-screen/style.d.ts +5 -5
- package/build/renderer/screens/main-screen/style.js +1 -1
- package/build/renderer/style.d.ts +6 -6
- package/build/renderer/style.js +1 -1
- package/build/renderer/utils/i18n.d.ts +2 -2
- package/build/renderer/utils/i18n.js +1 -1
- package/build/renderer/utils/loyalty-details.d.ts +12 -12
- package/build/renderer/utils/translations.d.ts +5 -5
- package/build/utils.d.ts +10 -10
- package/build/utils.js +1 -1
- package/package.json +13 -15
- package/build/ext/react-i18next/dist/es/I18nextProvider.js +0 -1
- package/build/ext/react-i18next/dist/es/IcuTransUtils/htmlEntityDecoder.js +0 -1
- package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -10
- package/build/ext/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -10
- package/build/ext/use-sync-external-store/shim/index.js +0 -1
- /package/build/_virtual/{use-sync-external-store-shim.development.js → react-is.development.js} +0 -0
- /package/build/_virtual/{use-sync-external-store-shim.production.js → react-is.development2.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { LoyaltyWidgetImage } from "../image";
|
|
2
|
-
import { LoyaltyWidgetButton } from "../button";
|
|
3
|
-
import { LoyaltyWidgetHeader } from "./header";
|
|
4
|
-
import { LoyaltyWidgetSettings } from "./settings";
|
|
5
|
-
export declare class LoyaltyWidget {
|
|
6
|
-
id: string;
|
|
7
|
-
settings: LoyaltyWidgetSettings;
|
|
8
|
-
header: LoyaltyWidgetHeader;
|
|
9
|
-
button: LoyaltyWidgetButton;
|
|
10
|
-
miniModeLogo: LoyaltyWidgetImage;
|
|
11
|
-
constructor(data?: Partial<LoyaltyWidget>);
|
|
12
|
-
}
|
|
1
|
+
import { LoyaltyWidgetImage } from "../image";
|
|
2
|
+
import { LoyaltyWidgetButton } from "../button";
|
|
3
|
+
import { LoyaltyWidgetHeader } from "./header";
|
|
4
|
+
import { LoyaltyWidgetSettings } from "./settings";
|
|
5
|
+
export declare class LoyaltyWidget {
|
|
6
|
+
id: string;
|
|
7
|
+
settings: LoyaltyWidgetSettings;
|
|
8
|
+
header: LoyaltyWidgetHeader;
|
|
9
|
+
button: LoyaltyWidgetButton;
|
|
10
|
+
miniModeLogo: LoyaltyWidgetImage;
|
|
11
|
+
constructor(data?: Partial<LoyaltyWidget>);
|
|
12
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { BadgeIconTypeEnum, LoyaltyWidgetLayoutTypeEnum, WidgetIconTypeEnum, WidgetPositionEnum } from "../types";
|
|
2
|
-
export declare class LoyaltyWidgetSettings {
|
|
3
|
-
position: WidgetPositionEnum;
|
|
4
|
-
type: LoyaltyWidgetLayoutTypeEnum;
|
|
5
|
-
primaryColor: string | null;
|
|
6
|
-
cartBorderRadius: number;
|
|
7
|
-
widgetIconType: WidgetIconTypeEnum;
|
|
8
|
-
badgeIconLevel: BadgeIconTypeEnum;
|
|
9
|
-
constructor(data?: Partial<LoyaltyWidgetSettings>);
|
|
10
|
-
}
|
|
1
|
+
import { BadgeIconTypeEnum, LoyaltyWidgetLayoutTypeEnum, WidgetIconTypeEnum, WidgetPositionEnum } from "../types";
|
|
2
|
+
export declare class LoyaltyWidgetSettings {
|
|
3
|
+
position: WidgetPositionEnum;
|
|
4
|
+
type: LoyaltyWidgetLayoutTypeEnum;
|
|
5
|
+
primaryColor: string | null;
|
|
6
|
+
cartBorderRadius: number;
|
|
7
|
+
widgetIconType: WidgetIconTypeEnum;
|
|
8
|
+
badgeIconLevel: BadgeIconTypeEnum;
|
|
9
|
+
constructor(data?: Partial<LoyaltyWidgetSettings>);
|
|
10
|
+
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export declare enum LoyaltyWidgetLayoutTypeEnum {
|
|
2
|
-
DRAWER = "DRAWER",
|
|
3
|
-
WIDGET = "WIDGET"
|
|
4
|
-
}
|
|
5
|
-
export declare enum BadgeIconTypeEnum {
|
|
6
|
-
LEVEL_1 = "LEVEL_1",
|
|
7
|
-
LEVEL_2 = "LEVEL_2",
|
|
8
|
-
LEVEL_3 = "LEVEL_3",
|
|
9
|
-
LEVEL_4 = "LEVEL_4",
|
|
10
|
-
NONE = "NONE"
|
|
11
|
-
}
|
|
12
|
-
export declare enum WidgetIconTypeEnum {
|
|
13
|
-
NORMAL = "NORMAL",
|
|
14
|
-
ILLUSTRATION = "ILLUSTRATION",
|
|
15
|
-
NONE = "NONE"
|
|
16
|
-
}
|
|
17
|
-
export declare enum WidgetPositionEnum {
|
|
18
|
-
LEFT = "LEFT",
|
|
19
|
-
RIGHT = "RIGHT"
|
|
20
|
-
}
|
|
21
|
-
export declare enum HeaderBackgroundTypeEnum {
|
|
22
|
-
COLOR = "COLOR",
|
|
23
|
-
GRADIENT = "GRADIENT",
|
|
24
|
-
IMAGE = "IMAGE"
|
|
25
|
-
}
|
|
26
|
-
export declare enum ImageTypeEnum {
|
|
27
|
-
SHOW = "LOGO",
|
|
28
|
-
NONE = "NONE"
|
|
29
|
-
}
|
|
1
|
+
export declare enum LoyaltyWidgetLayoutTypeEnum {
|
|
2
|
+
DRAWER = "DRAWER",
|
|
3
|
+
WIDGET = "WIDGET"
|
|
4
|
+
}
|
|
5
|
+
export declare enum BadgeIconTypeEnum {
|
|
6
|
+
LEVEL_1 = "LEVEL_1",
|
|
7
|
+
LEVEL_2 = "LEVEL_2",
|
|
8
|
+
LEVEL_3 = "LEVEL_3",
|
|
9
|
+
LEVEL_4 = "LEVEL_4",
|
|
10
|
+
NONE = "NONE"
|
|
11
|
+
}
|
|
12
|
+
export declare enum WidgetIconTypeEnum {
|
|
13
|
+
NORMAL = "NORMAL",
|
|
14
|
+
ILLUSTRATION = "ILLUSTRATION",
|
|
15
|
+
NONE = "NONE"
|
|
16
|
+
}
|
|
17
|
+
export declare enum WidgetPositionEnum {
|
|
18
|
+
LEFT = "LEFT",
|
|
19
|
+
RIGHT = "RIGHT"
|
|
20
|
+
}
|
|
21
|
+
export declare enum HeaderBackgroundTypeEnum {
|
|
22
|
+
COLOR = "COLOR",
|
|
23
|
+
GRADIENT = "GRADIENT",
|
|
24
|
+
IMAGE = "IMAGE"
|
|
25
|
+
}
|
|
26
|
+
export declare enum ImageTypeEnum {
|
|
27
|
+
SHOW = "LOGO",
|
|
28
|
+
NONE = "NONE"
|
|
29
|
+
}
|
|
@@ -1,145 +1,145 @@
|
|
|
1
|
-
import { LoyaltyProgramSpendingMethod } from "../loyalty-program-spending-method";
|
|
2
|
-
import type { LoyaltyProgramEarningMethod } from "../loyalty-program-earning-method";
|
|
3
|
-
import type { LoyaltyCustomerInfo } from "../loyalty-customer-info";
|
|
4
|
-
import type { LoyaltyWidget } from "../loyalty-widget";
|
|
5
|
-
import type { LoyaltyProgramPointHistory } from "../loyalty-program-point-history";
|
|
6
|
-
export declare enum LoyaltyWidgetScreenTypeEnum {
|
|
7
|
-
MAIN_SCREEN = "MAIN_SCREEN",
|
|
8
|
-
CREDIT_SPENDING_METHODS_SCREEN = "CREDIT_SPENDING_METHODS_SCREEN",
|
|
9
|
-
CREDIT_EARNING_METHODS_SCREEN = "CREDIT_EARNING_METHODS_SCREEN",
|
|
10
|
-
CREDIT_HISTORY_SCREEN = "CREDIT_HISTORY_SCREEN",
|
|
11
|
-
LOYALTY_LEVEL_SCREEN = "LOYALTY_LEVEL_SCREEN"
|
|
12
|
-
}
|
|
13
|
-
export declare enum EarningMethodTypeEnum {
|
|
14
|
-
BUY_PRODUCT = "BUY_PRODUCT",
|
|
15
|
-
CUSTOMER_REGISTER = "CUSTOMER_REGISTER",
|
|
16
|
-
CUSTOMER_REVIEW = "CUSTOMER_REVIEW",
|
|
17
|
-
CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT",
|
|
18
|
-
ENABLE_SUBSCRIPTION = "ENABLE_SUBSCRIPTION",
|
|
19
|
-
ORDER_CREATE = "ORDER_CREATE"
|
|
20
|
-
}
|
|
21
|
-
export declare enum LoyaltyProgramPointEarningTypeEnum {
|
|
22
|
-
DYNAMIC_ORDER_AMOUNT = "DYNAMIC_ORDER_AMOUNT",
|
|
23
|
-
DYNAMIC_ORDER_QUANTITY = "DYNAMIC_ORDER_QUANTITY",
|
|
24
|
-
STATIC = "STATIC"
|
|
25
|
-
}
|
|
26
|
-
export declare enum LoyaltyProgramMethodSpendingTypeEnum {
|
|
27
|
-
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
28
|
-
FREE_PRODUCT = "FREE_PRODUCT",
|
|
29
|
-
FREE_SHIPPING = "FREE_SHIPPING",
|
|
30
|
-
RATIO = "RATIO"
|
|
31
|
-
}
|
|
32
|
-
export declare enum LoyaltyProgramFilterTypeEnum {
|
|
33
|
-
CATEGORY = "CATEGORY",
|
|
34
|
-
DYNAMIC_CATEGORY = "DYNAMIC_CATEGORY",
|
|
35
|
-
PRODUCT_AND_VARIANT = "PRODUCT_AND_VARIANT",
|
|
36
|
-
PRODUCT_BRAND = "PRODUCT_BRAND",
|
|
37
|
-
PRODUCT_TAG = "PRODUCT_TAG"
|
|
38
|
-
}
|
|
39
|
-
export declare enum PeriodTypeEnum {
|
|
40
|
-
MONTH = "MONTH",
|
|
41
|
-
WEEK = "WEEK",
|
|
42
|
-
YEAR = "YEAR"
|
|
43
|
-
}
|
|
44
|
-
export declare class LoyaltyProgramPeriod {
|
|
45
|
-
period: string;
|
|
46
|
-
periodType: PeriodTypeEnum;
|
|
47
|
-
constructor(data?: Partial<LoyaltyProgramPeriod>);
|
|
48
|
-
}
|
|
49
|
-
export type Category = {
|
|
50
|
-
id: string;
|
|
51
|
-
name: string;
|
|
52
|
-
};
|
|
53
|
-
export type Product = {
|
|
54
|
-
id: string;
|
|
55
|
-
name: string;
|
|
56
|
-
};
|
|
57
|
-
export type Brand = {
|
|
58
|
-
id: string;
|
|
59
|
-
name: string;
|
|
60
|
-
};
|
|
61
|
-
export type Tag = {
|
|
62
|
-
id: string;
|
|
63
|
-
name: string;
|
|
64
|
-
};
|
|
65
|
-
export type AddLoyaltyToCartInput = {
|
|
66
|
-
amount?: number | null;
|
|
67
|
-
cartId: string;
|
|
68
|
-
loyaltyProgramId: string;
|
|
69
|
-
loyaltySpendingMethodId: string;
|
|
70
|
-
};
|
|
71
|
-
export type StringFilterInput = {
|
|
72
|
-
eq?: string;
|
|
73
|
-
ne?: string;
|
|
74
|
-
in?: string[];
|
|
75
|
-
nin?: string[];
|
|
76
|
-
contains?: string;
|
|
77
|
-
ncontains?: string;
|
|
78
|
-
startsWith?: string;
|
|
79
|
-
nstartsWith?: string;
|
|
80
|
-
endsWith?: string;
|
|
81
|
-
nendsWith?: string;
|
|
82
|
-
};
|
|
83
|
-
export type LoyaltyProgramTierTranslation = {
|
|
84
|
-
locale: string;
|
|
85
|
-
name: string;
|
|
86
|
-
};
|
|
87
|
-
export type LoyaltyProgramTier = {
|
|
88
|
-
createdAt?: string;
|
|
89
|
-
customerSegmentId?: string;
|
|
90
|
-
deleted: boolean;
|
|
91
|
-
id: string;
|
|
92
|
-
isActive: boolean;
|
|
93
|
-
loyaltyProgramId: string;
|
|
94
|
-
name: string;
|
|
95
|
-
period?: LoyaltyProgramPeriod;
|
|
96
|
-
pointsRequired?: number;
|
|
97
|
-
tierPointMultiplier?: number;
|
|
98
|
-
translations?: LoyaltyProgramTierTranslation[];
|
|
99
|
-
updatedAt?: string;
|
|
100
|
-
};
|
|
101
|
-
export type ListLoyaltyProgramTierInput = {
|
|
102
|
-
id?: StringFilterInput;
|
|
103
|
-
includeDeleted?: boolean;
|
|
104
|
-
loyaltyProgramId?: StringFilterInput;
|
|
105
|
-
};
|
|
106
|
-
export declare enum LoyaltyProgramPointHistoryTypeEnum {
|
|
107
|
-
EARN = "EARN",
|
|
108
|
-
SPEND = "SPEND"
|
|
109
|
-
}
|
|
110
|
-
export type LoyaltyProgramPointHistoryTypeEnumFilterInput = {
|
|
111
|
-
eq?: LoyaltyProgramPointHistoryTypeEnum;
|
|
112
|
-
in?: LoyaltyProgramPointHistoryTypeEnum[];
|
|
113
|
-
ne?: LoyaltyProgramPointHistoryTypeEnum;
|
|
114
|
-
nin?: LoyaltyProgramPointHistoryTypeEnum[];
|
|
115
|
-
};
|
|
116
|
-
export type ListLoyaltyProgramPointHistoryInput = {
|
|
117
|
-
customerId?: StringFilterInput;
|
|
118
|
-
includeDeleted?: boolean;
|
|
119
|
-
loyaltyProgramId?: StringFilterInput;
|
|
120
|
-
sort?: string;
|
|
121
|
-
type?: LoyaltyProgramPointHistoryTypeEnumFilterInput;
|
|
122
|
-
};
|
|
123
|
-
export type LoyaltyWidgetCallbacks = {
|
|
124
|
-
listSpendingMethodsByCartId: (cartId?: string | null) => Promise<LoyaltyProgramSpendingMethod[]>;
|
|
125
|
-
getLoyaltyCustomerInfo: () => Promise<LoyaltyCustomerInfo | null>;
|
|
126
|
-
listEarningMethods: () => Promise<LoyaltyProgramEarningMethod[]>;
|
|
127
|
-
listLoyaltyProgramTier: (input: ListLoyaltyProgramTierInput) => Promise<LoyaltyProgramTier[]>;
|
|
128
|
-
listLoyaltyProgramPointHistory: (input: ListLoyaltyProgramPointHistoryInput) => Promise<LoyaltyProgramPointHistory[]>;
|
|
129
|
-
useLoyaltyPoints: (input: AddLoyaltyToCartInput) => Promise<boolean>;
|
|
130
|
-
removeLoyaltyPointsFromCart: () => Promise<void>;
|
|
131
|
-
getLoyaltyWidget: () => Promise<LoyaltyWidget>;
|
|
132
|
-
onWidgetClose: () => void;
|
|
133
|
-
getProducts: (ids: string[]) => Promise<Product[]>;
|
|
134
|
-
getCategories: (ids: string[]) => Promise<Category[]>;
|
|
135
|
-
getBrands: (ids: string[]) => Promise<Brand[]>;
|
|
136
|
-
getTags: (ids: string[]) => Promise<Tag[]>;
|
|
137
|
-
};
|
|
138
|
-
export type IkasLoyaltyWidgetConfig = {
|
|
139
|
-
cartId?: string | null;
|
|
140
|
-
cdnURL: string;
|
|
141
|
-
merchantId: string;
|
|
142
|
-
currency: string;
|
|
143
|
-
locale: string;
|
|
144
|
-
callbacks: LoyaltyWidgetCallbacks;
|
|
145
|
-
};
|
|
1
|
+
import { LoyaltyProgramSpendingMethod } from "../loyalty-program-spending-method";
|
|
2
|
+
import type { LoyaltyProgramEarningMethod } from "../loyalty-program-earning-method";
|
|
3
|
+
import type { LoyaltyCustomerInfo } from "../loyalty-customer-info";
|
|
4
|
+
import type { LoyaltyWidget } from "../loyalty-widget";
|
|
5
|
+
import type { LoyaltyProgramPointHistory } from "../loyalty-program-point-history";
|
|
6
|
+
export declare enum LoyaltyWidgetScreenTypeEnum {
|
|
7
|
+
MAIN_SCREEN = "MAIN_SCREEN",
|
|
8
|
+
CREDIT_SPENDING_METHODS_SCREEN = "CREDIT_SPENDING_METHODS_SCREEN",
|
|
9
|
+
CREDIT_EARNING_METHODS_SCREEN = "CREDIT_EARNING_METHODS_SCREEN",
|
|
10
|
+
CREDIT_HISTORY_SCREEN = "CREDIT_HISTORY_SCREEN",
|
|
11
|
+
LOYALTY_LEVEL_SCREEN = "LOYALTY_LEVEL_SCREEN"
|
|
12
|
+
}
|
|
13
|
+
export declare enum EarningMethodTypeEnum {
|
|
14
|
+
BUY_PRODUCT = "BUY_PRODUCT",
|
|
15
|
+
CUSTOMER_REGISTER = "CUSTOMER_REGISTER",
|
|
16
|
+
CUSTOMER_REVIEW = "CUSTOMER_REVIEW",
|
|
17
|
+
CUSTOMER_SEGMENT = "CUSTOMER_SEGMENT",
|
|
18
|
+
ENABLE_SUBSCRIPTION = "ENABLE_SUBSCRIPTION",
|
|
19
|
+
ORDER_CREATE = "ORDER_CREATE"
|
|
20
|
+
}
|
|
21
|
+
export declare enum LoyaltyProgramPointEarningTypeEnum {
|
|
22
|
+
DYNAMIC_ORDER_AMOUNT = "DYNAMIC_ORDER_AMOUNT",
|
|
23
|
+
DYNAMIC_ORDER_QUANTITY = "DYNAMIC_ORDER_QUANTITY",
|
|
24
|
+
STATIC = "STATIC"
|
|
25
|
+
}
|
|
26
|
+
export declare enum LoyaltyProgramMethodSpendingTypeEnum {
|
|
27
|
+
FIXED_AMOUNT = "FIXED_AMOUNT",
|
|
28
|
+
FREE_PRODUCT = "FREE_PRODUCT",
|
|
29
|
+
FREE_SHIPPING = "FREE_SHIPPING",
|
|
30
|
+
RATIO = "RATIO"
|
|
31
|
+
}
|
|
32
|
+
export declare enum LoyaltyProgramFilterTypeEnum {
|
|
33
|
+
CATEGORY = "CATEGORY",
|
|
34
|
+
DYNAMIC_CATEGORY = "DYNAMIC_CATEGORY",
|
|
35
|
+
PRODUCT_AND_VARIANT = "PRODUCT_AND_VARIANT",
|
|
36
|
+
PRODUCT_BRAND = "PRODUCT_BRAND",
|
|
37
|
+
PRODUCT_TAG = "PRODUCT_TAG"
|
|
38
|
+
}
|
|
39
|
+
export declare enum PeriodTypeEnum {
|
|
40
|
+
MONTH = "MONTH",
|
|
41
|
+
WEEK = "WEEK",
|
|
42
|
+
YEAR = "YEAR"
|
|
43
|
+
}
|
|
44
|
+
export declare class LoyaltyProgramPeriod {
|
|
45
|
+
period: string;
|
|
46
|
+
periodType: PeriodTypeEnum;
|
|
47
|
+
constructor(data?: Partial<LoyaltyProgramPeriod>);
|
|
48
|
+
}
|
|
49
|
+
export type Category = {
|
|
50
|
+
id: string;
|
|
51
|
+
name: string;
|
|
52
|
+
};
|
|
53
|
+
export type Product = {
|
|
54
|
+
id: string;
|
|
55
|
+
name: string;
|
|
56
|
+
};
|
|
57
|
+
export type Brand = {
|
|
58
|
+
id: string;
|
|
59
|
+
name: string;
|
|
60
|
+
};
|
|
61
|
+
export type Tag = {
|
|
62
|
+
id: string;
|
|
63
|
+
name: string;
|
|
64
|
+
};
|
|
65
|
+
export type AddLoyaltyToCartInput = {
|
|
66
|
+
amount?: number | null;
|
|
67
|
+
cartId: string;
|
|
68
|
+
loyaltyProgramId: string;
|
|
69
|
+
loyaltySpendingMethodId: string;
|
|
70
|
+
};
|
|
71
|
+
export type StringFilterInput = {
|
|
72
|
+
eq?: string;
|
|
73
|
+
ne?: string;
|
|
74
|
+
in?: string[];
|
|
75
|
+
nin?: string[];
|
|
76
|
+
contains?: string;
|
|
77
|
+
ncontains?: string;
|
|
78
|
+
startsWith?: string;
|
|
79
|
+
nstartsWith?: string;
|
|
80
|
+
endsWith?: string;
|
|
81
|
+
nendsWith?: string;
|
|
82
|
+
};
|
|
83
|
+
export type LoyaltyProgramTierTranslation = {
|
|
84
|
+
locale: string;
|
|
85
|
+
name: string;
|
|
86
|
+
};
|
|
87
|
+
export type LoyaltyProgramTier = {
|
|
88
|
+
createdAt?: string;
|
|
89
|
+
customerSegmentId?: string;
|
|
90
|
+
deleted: boolean;
|
|
91
|
+
id: string;
|
|
92
|
+
isActive: boolean;
|
|
93
|
+
loyaltyProgramId: string;
|
|
94
|
+
name: string;
|
|
95
|
+
period?: LoyaltyProgramPeriod;
|
|
96
|
+
pointsRequired?: number;
|
|
97
|
+
tierPointMultiplier?: number;
|
|
98
|
+
translations?: LoyaltyProgramTierTranslation[];
|
|
99
|
+
updatedAt?: string;
|
|
100
|
+
};
|
|
101
|
+
export type ListLoyaltyProgramTierInput = {
|
|
102
|
+
id?: StringFilterInput;
|
|
103
|
+
includeDeleted?: boolean;
|
|
104
|
+
loyaltyProgramId?: StringFilterInput;
|
|
105
|
+
};
|
|
106
|
+
export declare enum LoyaltyProgramPointHistoryTypeEnum {
|
|
107
|
+
EARN = "EARN",
|
|
108
|
+
SPEND = "SPEND"
|
|
109
|
+
}
|
|
110
|
+
export type LoyaltyProgramPointHistoryTypeEnumFilterInput = {
|
|
111
|
+
eq?: LoyaltyProgramPointHistoryTypeEnum;
|
|
112
|
+
in?: LoyaltyProgramPointHistoryTypeEnum[];
|
|
113
|
+
ne?: LoyaltyProgramPointHistoryTypeEnum;
|
|
114
|
+
nin?: LoyaltyProgramPointHistoryTypeEnum[];
|
|
115
|
+
};
|
|
116
|
+
export type ListLoyaltyProgramPointHistoryInput = {
|
|
117
|
+
customerId?: StringFilterInput;
|
|
118
|
+
includeDeleted?: boolean;
|
|
119
|
+
loyaltyProgramId?: StringFilterInput;
|
|
120
|
+
sort?: string;
|
|
121
|
+
type?: LoyaltyProgramPointHistoryTypeEnumFilterInput;
|
|
122
|
+
};
|
|
123
|
+
export type LoyaltyWidgetCallbacks = {
|
|
124
|
+
listSpendingMethodsByCartId: (cartId?: string | null) => Promise<LoyaltyProgramSpendingMethod[]>;
|
|
125
|
+
getLoyaltyCustomerInfo: () => Promise<LoyaltyCustomerInfo | null>;
|
|
126
|
+
listEarningMethods: () => Promise<LoyaltyProgramEarningMethod[]>;
|
|
127
|
+
listLoyaltyProgramTier: (input: ListLoyaltyProgramTierInput) => Promise<LoyaltyProgramTier[]>;
|
|
128
|
+
listLoyaltyProgramPointHistory: (input: ListLoyaltyProgramPointHistoryInput) => Promise<LoyaltyProgramPointHistory[]>;
|
|
129
|
+
useLoyaltyPoints: (input: AddLoyaltyToCartInput) => Promise<boolean>;
|
|
130
|
+
removeLoyaltyPointsFromCart: () => Promise<void>;
|
|
131
|
+
getLoyaltyWidget: () => Promise<LoyaltyWidget>;
|
|
132
|
+
onWidgetClose: () => void;
|
|
133
|
+
getProducts: (ids: string[]) => Promise<Product[]>;
|
|
134
|
+
getCategories: (ids: string[]) => Promise<Category[]>;
|
|
135
|
+
getBrands: (ids: string[]) => Promise<Brand[]>;
|
|
136
|
+
getTags: (ids: string[]) => Promise<Tag[]>;
|
|
137
|
+
};
|
|
138
|
+
export type IkasLoyaltyWidgetConfig = {
|
|
139
|
+
cartId?: string | null;
|
|
140
|
+
cdnURL: string;
|
|
141
|
+
merchantId: string;
|
|
142
|
+
currency: string;
|
|
143
|
+
locale: string;
|
|
144
|
+
callbacks: LoyaltyWidgetCallbacks;
|
|
145
|
+
};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LoyaltyWidgetButton } from "../../../models/button";
|
|
3
|
-
import type { FontSizeKey, PaddingSize } from "./style";
|
|
4
|
-
type Props = {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
onClick?: () => void;
|
|
7
|
-
button: LoyaltyWidgetButton;
|
|
8
|
-
fontSize: FontSizeKey;
|
|
9
|
-
paddingSize: PaddingSize;
|
|
10
|
-
fullWidth?: boolean;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
isLoading?: boolean;
|
|
13
|
-
};
|
|
14
|
-
declare const Button: React.FC<Props>;
|
|
15
|
-
export default Button;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LoyaltyWidgetButton } from "../../../models/button";
|
|
3
|
+
import type { FontSizeKey, PaddingSize } from "./style";
|
|
4
|
+
type Props = {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
onClick?: () => void;
|
|
7
|
+
button: LoyaltyWidgetButton;
|
|
8
|
+
fontSize: FontSizeKey;
|
|
9
|
+
paddingSize: PaddingSize;
|
|
10
|
+
fullWidth?: boolean;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
isLoading?: boolean;
|
|
13
|
+
};
|
|
14
|
+
declare const Button: React.FC<Props>;
|
|
15
|
+
export default Button;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export type FontSizeKey = "textXSMedium" | "textSM" | "textSMMedium" | "textMDMedium" | "textLGSemiBold" | "displayXSSemiBold";
|
|
2
|
-
export type PaddingSize = "small" | "medium";
|
|
3
|
-
type ButtonProps = {
|
|
4
|
-
fullWidth: boolean;
|
|
5
|
-
fontSize: FontSizeKey;
|
|
6
|
-
paddingSize: PaddingSize;
|
|
7
|
-
borderRadius: number;
|
|
8
|
-
bgColor: string | null;
|
|
9
|
-
textColor: string | null;
|
|
10
|
-
borderColor: string | null;
|
|
11
|
-
disabled?: boolean;
|
|
12
|
-
};
|
|
13
|
-
export declare const Button: import("styled-components").StyledComponent<"button", any, ButtonProps, never>;
|
|
14
|
-
export declare const Loader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
-
export {};
|
|
1
|
+
export type FontSizeKey = "textXSMedium" | "textSM" | "textSMMedium" | "textMDMedium" | "textLGSemiBold" | "displayXSSemiBold";
|
|
2
|
+
export type PaddingSize = "small" | "medium";
|
|
3
|
+
type ButtonProps = {
|
|
4
|
+
fullWidth: boolean;
|
|
5
|
+
fontSize: FontSizeKey;
|
|
6
|
+
paddingSize: PaddingSize;
|
|
7
|
+
borderRadius: number;
|
|
8
|
+
bgColor: string | null;
|
|
9
|
+
textColor: string | null;
|
|
10
|
+
borderColor: string | null;
|
|
11
|
+
disabled?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export declare const Button: import("styled-components").StyledComponent<"button", any, ButtonProps, never>;
|
|
14
|
+
export declare const Loader: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
15
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import r,{keyframes as o}from
|
|
1
|
+
import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import r,{keyframes as o}from'./../../../ext/styled-components/dist/styled-components.browser.esm.js';import{textXSMedium as e,textSM as t,textSMMedium as i,textMDMedium as d,textLGSemiBold as a,displayXSSemiBold as s}from"../style/typography.js";var l,u,p,c={textXSMedium:e,textSM:t,textSMMedium:i,textMDMedium:d,textLGSemiBold:a,displayXSSemiBold:s},m={small:"8px",medium:"10px 16px"},b=r.button(l||(l=n(["\n border: none;\n cursor: ",";\n transition: all 0.2s ease;\n opacity: ",";\n pointer-events: ",";\n\n ","\n\n padding: ",";\n border-radius: ","px;\n width: ",";\n background-color: ",";\n color: ",";\n border: ",";\n\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n\n &:hover {\n opacity: 0.9;\n }\n"],["\n border: none;\n cursor: ",";\n transition: all 0.2s ease;\n opacity: ",";\n pointer-events: ",";\n\n ","\n\n padding: ",";\n border-radius: ","px;\n width: ",";\n background-color: ",";\n color: ",";\n border: ",";\n\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 8px;\n\n &:hover {\n opacity: 0.9;\n }\n"])),function(n){return n.disabled?"not-allowed":"pointer"},function(n){return n.disabled?.5:1},function(n){return n.disabled?"none":"auto"},function(n){return c[n.fontSize]},function(n){return m[n.paddingSize]},function(n){return n.borderRadius},function(n){return n.fullWidth?"100%":"auto"},function(n){var r;return null!==(r=n.bgColor)&&void 0!==r?r:"transparent"},function(n){var r;return null!==(r=n.textColor)&&void 0!==r?r:"inherit"},function(n){return n.borderColor?"1px solid ".concat(n.borderColor):"none"}),f=o(u||(u=n(["\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n"],["\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n"]))),x=r.div(p||(p=n(["\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top: 2px solid currentColor;\n border-radius: 50%;\n width: 14px;\n height: 14px;\n animation: "," 1s linear infinite;\n"],["\n border: 2px solid rgba(255, 255, 255, 0.3);\n border-top: 2px solid currentColor;\n border-radius: 50%;\n width: 14px;\n height: 14px;\n animation: "," 1s linear infinite;\n"])),f);export{b as Button,x as Loader};
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { default as Header } from "../screens/main-screen/header";
|
|
2
|
-
export { default as SectionTitle } from "./section-title";
|
|
3
|
-
export { default as Button } from "./button";
|
|
1
|
+
export { default as Header } from "../screens/main-screen/header";
|
|
2
|
+
export { default as SectionTitle } from "./section-title";
|
|
3
|
+
export { default as Button } from "./button";
|
|
4
|
+
export { default as RewardCard } from "./reward-card";
|
|
5
|
+
export { default as ProgramInfoCard } from "./program-info-card";
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { WidgetIconTypeEnum } from "models/loyalty-widget/types";
|
|
3
|
-
import { LoyaltyWidgetButton } from "models/button";
|
|
4
|
-
export type LoyaltyMethodCardProps = {
|
|
5
|
-
title: string;
|
|
6
|
-
description: string | React.ReactNode;
|
|
7
|
-
icon: React.ReactNode;
|
|
8
|
-
action?: {
|
|
9
|
-
text: string;
|
|
10
|
-
onClick: () => void;
|
|
11
|
-
};
|
|
12
|
-
isCompleted?: boolean;
|
|
13
|
-
mode: "card" | "accordion";
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
padding?: string;
|
|
16
|
-
settings: {
|
|
17
|
-
borderRadius: number;
|
|
18
|
-
widgetIconType: WidgetIconTypeEnum;
|
|
19
|
-
button: LoyaltyWidgetButton;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
declare const LoyaltyMethodCard: React.FC<LoyaltyMethodCardProps>;
|
|
23
|
-
export default LoyaltyMethodCard;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { WidgetIconTypeEnum } from "models/loyalty-widget/types";
|
|
3
|
+
import { LoyaltyWidgetButton } from "models/button";
|
|
4
|
+
export type LoyaltyMethodCardProps = {
|
|
5
|
+
title: string;
|
|
6
|
+
description: string | React.ReactNode;
|
|
7
|
+
icon: React.ReactNode;
|
|
8
|
+
action?: {
|
|
9
|
+
text: string;
|
|
10
|
+
onClick: () => void;
|
|
11
|
+
};
|
|
12
|
+
isCompleted?: boolean;
|
|
13
|
+
mode: "card" | "accordion";
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
padding?: string;
|
|
16
|
+
settings: {
|
|
17
|
+
borderRadius: number;
|
|
18
|
+
widgetIconType: WidgetIconTypeEnum;
|
|
19
|
+
button: LoyaltyWidgetButton;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
declare const LoyaltyMethodCard: React.FC<LoyaltyMethodCardProps>;
|
|
23
|
+
export default LoyaltyMethodCard;
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { WidgetIconTypeEnum } from "models/loyalty-widget/types";
|
|
2
|
-
export declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
-
$borderRadius: number;
|
|
4
|
-
$isCompleted?: boolean;
|
|
5
|
-
$padding?: string;
|
|
6
|
-
}, never>;
|
|
7
|
-
export declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
-
export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
-
$iconType: WidgetIconTypeEnum;
|
|
10
|
-
}, never>;
|
|
11
|
-
export declare const Content: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
-
export declare const Title: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
-
export declare const Description: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
-
export declare const AccordionWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
15
|
-
$isOpen: boolean;
|
|
16
|
-
}, never>;
|
|
17
|
-
export declare const AccordionInner: import("styled-components").StyledComponent<"div", any, {
|
|
18
|
-
$isOpen: boolean;
|
|
19
|
-
}, never>;
|
|
20
|
-
export declare const ArrowButton: import("styled-components").StyledComponent<"button", any, {
|
|
21
|
-
$isOpen: boolean;
|
|
22
|
-
}, never>;
|
|
1
|
+
import { WidgetIconTypeEnum } from "models/loyalty-widget/types";
|
|
2
|
+
export declare const Container: import("styled-components").StyledComponent<"div", any, {
|
|
3
|
+
$borderRadius: number;
|
|
4
|
+
$isCompleted?: boolean | undefined;
|
|
5
|
+
$padding?: string | undefined;
|
|
6
|
+
}, never>;
|
|
7
|
+
export declare const Header: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
8
|
+
export declare const IconWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
9
|
+
$iconType: WidgetIconTypeEnum;
|
|
10
|
+
}, never>;
|
|
11
|
+
export declare const Content: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
12
|
+
export declare const Title: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
13
|
+
export declare const Description: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
14
|
+
export declare const AccordionWrapper: import("styled-components").StyledComponent<"div", any, {
|
|
15
|
+
$isOpen: boolean;
|
|
16
|
+
}, never>;
|
|
17
|
+
export declare const AccordionInner: import("styled-components").StyledComponent<"div", any, {
|
|
18
|
+
$isOpen: boolean;
|
|
19
|
+
}, never>;
|
|
20
|
+
export declare const ArrowButton: import("styled-components").StyledComponent<"button", any, {
|
|
21
|
+
$isOpen: boolean;
|
|
22
|
+
}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import{WidgetIconTypeEnum as e}from"../../../models/loyalty-widget/types/index.js";import t,{css as r}from
|
|
1
|
+
import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import{WidgetIconTypeEnum as e}from"../../../models/loyalty-widget/types/index.js";import t,{css as r}from'./../../../ext/styled-components/dist/styled-components.browser.esm.js';import{textSMMedium as i,textSM as o}from"../style/typography.js";var s,a,d,p,l,f,c,x,g,u,m,b=t.div(s||(s=n(["\n display: flex;\n padding: ",";\n flex-direction: column;\n align-items: flex-start;\n align-self: stretch;\n border-radius: ","px;\n border: 1px solid #eef2f6;\n background: #fff;\n opacity: ",";\n user-select: none;\n"],["\n display: flex;\n padding: ",";\n flex-direction: column;\n align-items: flex-start;\n align-self: stretch;\n border-radius: ","px;\n border: 1px solid #eef2f6;\n background: #fff;\n opacity: ",";\n user-select: none;\n"])),function(n){return n.$padding||"16px 14px"},function(n){return n.$borderRadius},function(n){return n.$isCompleted?"0.8":"1"}),y=t.div(a||(a=n(["\n display: flex;\n align-items: center;\n gap: 12px;\n align-self: stretch;\n width: 100%;\n"],["\n display: flex;\n align-items: center;\n gap: 12px;\n align-self: stretch;\n width: 100%;\n"]))),h=t.div(l||(l=n(["\n display: flex;\n width: 36px;\n height: 36px;\n\n justify-content: center;\n align-items: center;\n\n ","\n\n ","\n"],["\n display: flex;\n width: 36px;\n height: 36px;\n\n justify-content: center;\n align-items: center;\n\n ","\n\n ","\n"])),function(t){return t.$iconType===e.ILLUSTRATION&&r(d||(d=n(["\n border-radius: 40px;\n background: #f6f6f6;\n "],["\n border-radius: 40px;\n background: #f6f6f6;\n "])))},function(t){return t.$iconType===e.NORMAL&&r(p||(p=n(["\n border-radius: 8px;\n border: 1px solid #e3e8ef;\n background: #fff;\n box-shadow: 0 -3px 1px 0 rgba(238, 242, 246, 0.5) inset,\n 0 4px 1px 0 rgba(38, 69, 109, 0), 0 2px 1px 0 rgba(38, 69, 109, 0.01),\n 0 1px 1px 0 rgba(38, 69, 109, 0.02), 0 1px 1px 0 rgba(38, 69, 109, 0.03);\n\n svg {\n color: #4b5565;\n }\n "],["\n border-radius: 8px;\n border: 1px solid #e3e8ef;\n background: #fff;\n box-shadow: 0 -3px 1px 0 rgba(238, 242, 246, 0.5) inset,\n 0 4px 1px 0 rgba(38, 69, 109, 0), 0 2px 1px 0 rgba(38, 69, 109, 0.01),\n 0 1px 1px 0 rgba(38, 69, 109, 0.02), 0 1px 1px 0 rgba(38, 69, 109, 0.03);\n\n svg {\n color: #4b5565;\n }\n "])))}),w=t.div(f||(f=n(["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 4px;\n flex: 1 0 0;\n"],["\n display: flex;\n flex-direction: column;\n align-items: flex-start;\n gap: 4px;\n flex: 1 0 0;\n"]))),v=t.div(c||(c=n(["\n color: #121926;\n ","\n"],["\n color: #121926;\n ","\n"])),i),j=t.div(x||(x=n(["\n color: #121926;\n ","\n"],["\n color: #121926;\n ","\n"])),o),$=t.div(g||(g=n(["\n display: grid;\n grid-template-rows: ",";\n transition: grid-template-rows 300ms ease-in-out;\n width: 100%;\n"],["\n display: grid;\n grid-template-rows: ",";\n transition: grid-template-rows 300ms ease-in-out;\n width: 100%;\n"])),function(n){return n.$isOpen?"1fr":"0fr"}),k=t.div(u||(u=n(["\n overflow: hidden;\n color: #4b5565;\n ","\n\n /* Spacing: We need 20px from header. */\n padding-top: ",";\n\n /* Optional: fade content in/out */\n opacity: ",";\n transition: opacity 300ms ease-in-out, padding-top 300ms ease-in-out;\n"],["\n overflow: hidden;\n color: #4b5565;\n ","\n\n /* Spacing: We need 20px from header. */\n padding-top: ",";\n\n /* Optional: fade content in/out */\n opacity: ",";\n transition: opacity 300ms ease-in-out, padding-top 300ms ease-in-out;\n"])),o,function(n){return n.$isOpen?"20px":"0px"},function(n){return n.$isOpen?1:0}),O=t.button(m||(m=n(["\n border: none;\n background: none;\n cursor: pointer;\n transform: rotate(",");\n transition: transform 0.2s ease-in-out;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #9aa4b2;\n padding: 4px;\n"],["\n border: none;\n background: none;\n cursor: pointer;\n transform: rotate(",");\n transition: transform 0.2s ease-in-out;\n display: flex;\n align-items: center;\n justify-content: center;\n color: #9aa4b2;\n padding: 4px;\n"])),function(n){return n.$isOpen?"270deg":"180deg"});export{k as AccordionInner,$ as AccordionWrapper,O as ArrowButton,b as Container,w as Content,j as Description,y as Header,h as IconWrapper,v as Title};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type Props = {
|
|
3
|
-
children: React.ReactNode;
|
|
4
|
-
style?: React.CSSProperties;
|
|
5
|
-
className?: string;
|
|
6
|
-
};
|
|
7
|
-
declare const SectionTitle: React.FC<Props>;
|
|
8
|
-
export default SectionTitle;
|
|
1
|
+
import React from "react";
|
|
2
|
+
type Props = {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
style?: React.CSSProperties;
|
|
5
|
+
className?: string;
|
|
6
|
+
};
|
|
7
|
+
declare const SectionTitle: React.FC<Props>;
|
|
8
|
+
export default SectionTitle;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const Title: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
1
|
+
export declare const Title: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import
|
|
1
|
+
import{__makeTemplateObject as n}from'./../../../ext/tslib/tslib.es6.mjs.js';import o from'./../../../ext/styled-components/dist/styled-components.browser.esm.js';import{textSMMedium as s}from"../style/typography.js";var m,p=o.div(m||(m=n(["\n ","\n margin: 0;\n padding: 16px 24px;\n"],["\n ","\n margin: 0;\n padding: 16px 24px;\n"])),s);export{p as Title};
|