@sentecacommerce-theme/lib 0.11.104 → 0.11.108
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/cjs/components/GoogleOneTap/index.js +6 -3
- package/dist/cjs/components/GoogleOneTap/index.js.map +1 -1
- package/dist/cjs/index.js +8 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/postcss/index.js +20 -0
- package/dist/cjs/postcss/index.js.map +1 -0
- package/dist/cjs/postcss/tailwind/buttons-plugin.js +91 -0
- package/dist/cjs/postcss/tailwind/buttons-plugin.js.map +1 -0
- package/dist/cjs/postcss/tailwind/default-plugin.js +62 -0
- package/dist/cjs/postcss/tailwind/default-plugin.js.map +1 -0
- package/dist/cjs/postcss/tailwind/fonts-plugin.js +73 -0
- package/dist/cjs/postcss/tailwind/fonts-plugin.js.map +1 -0
- package/dist/cjs/postcss/tailwind/forms-plugin.js +58 -0
- package/dist/cjs/postcss/tailwind/forms-plugin.js.map +1 -0
- package/dist/cjs/postcss/tailwind/index.js +28 -0
- package/dist/cjs/postcss/tailwind/index.js.map +1 -0
- package/dist/cjs/postcss/tailwind/utils.js +55 -0
- package/dist/cjs/postcss/tailwind/utils.js.map +1 -0
- package/dist/cjs/postcss/types.js +29 -0
- package/dist/cjs/postcss/types.js.map +1 -0
- package/dist/cjs/seo/api/index.js +12 -0
- package/dist/cjs/seo/api/index.js.map +1 -0
- package/dist/cjs/seo/api/ssr/fetchRedirectByFrom.js +40 -0
- package/dist/cjs/seo/api/ssr/fetchRedirectByFrom.js.map +1 -0
- package/dist/cjs/seo/api/ssr/fetchSitemaps.js +43 -0
- package/dist/cjs/seo/api/ssr/fetchSitemaps.js.map +1 -0
- package/dist/cjs/seo/api/ssr/index.js +20 -0
- package/dist/cjs/seo/api/ssr/index.js.map +1 -0
- package/dist/cjs/seo/index.js +8 -0
- package/dist/cjs/seo/index.js.map +1 -1
- package/dist/esm/components/GoogleOneTap/index.js +6 -3
- package/dist/esm/components/GoogleOneTap/index.js.map +1 -1
- package/dist/esm/index.js +3 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/postcss/index.js +3 -0
- package/dist/esm/postcss/index.js.map +1 -0
- package/dist/esm/postcss/tailwind/buttons-plugin.js +89 -0
- package/dist/esm/postcss/tailwind/buttons-plugin.js.map +1 -0
- package/dist/esm/postcss/tailwind/default-plugin.js +56 -0
- package/dist/esm/postcss/tailwind/default-plugin.js.map +1 -0
- package/dist/esm/postcss/tailwind/fonts-plugin.js +71 -0
- package/dist/esm/postcss/tailwind/fonts-plugin.js.map +1 -0
- package/dist/esm/postcss/tailwind/forms-plugin.js +57 -0
- package/dist/esm/postcss/tailwind/forms-plugin.js.map +1 -0
- package/dist/esm/postcss/tailwind/index.js +4 -0
- package/dist/esm/postcss/tailwind/index.js.map +1 -0
- package/dist/esm/postcss/tailwind/utils.js +29 -0
- package/dist/esm/postcss/tailwind/utils.js.map +1 -0
- package/dist/esm/postcss/types.js +23 -0
- package/dist/esm/postcss/types.js.map +1 -0
- package/dist/esm/seo/api/index.js +2 -0
- package/dist/esm/seo/api/index.js.map +1 -0
- package/dist/esm/seo/api/ssr/fetchRedirectByFrom.js +12 -0
- package/dist/esm/seo/api/ssr/fetchRedirectByFrom.js.map +1 -0
- package/dist/esm/seo/api/ssr/fetchSitemaps.js +15 -0
- package/dist/esm/seo/api/ssr/fetchSitemaps.js.map +1 -0
- package/dist/esm/seo/api/ssr/index.js +3 -0
- package/dist/esm/seo/api/ssr/index.js.map +1 -0
- package/dist/esm/seo/index.js +1 -0
- package/dist/esm/seo/index.js.map +1 -1
- package/dist/types/components/GoogleOneTap/index.d.ts +3 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/postcss/index.d.ts +2 -0
- package/dist/types/postcss/tailwind/buttons-plugin.d.ts +4 -0
- package/dist/types/postcss/tailwind/default-plugin.d.ts +4 -0
- package/dist/types/postcss/tailwind/fonts-plugin.d.ts +4 -0
- package/dist/types/postcss/tailwind/forms-plugin.d.ts +4 -0
- package/dist/types/postcss/tailwind/index.d.ts +3 -0
- package/dist/types/postcss/tailwind/utils.d.ts +9 -0
- package/dist/types/postcss/types.d.ts +110 -0
- package/dist/types/seo/api/index.d.ts +1 -0
- package/dist/types/seo/api/ssr/fetchRedirectByFrom.d.ts +1 -0
- package/dist/types/seo/api/ssr/fetchSitemaps.d.ts +1 -0
- package/dist/types/seo/api/ssr/index.d.ts +2 -0
- package/dist/types/seo/index.d.ts +1 -0
- package/package.json +5 -4
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/postcss/tailwind/utils.ts"],"names":["getFontFamilyName","familyName","theme","fontFamily","fontFamilies","find","family","name","fallback","getScreenByKey","key","foundScreen","screens","default","getScreenMediaQuery","withMax","screen","max","min","getFontByKey","foundFont","fonts","font","toRem","num"],"mappings":";AAEA,OAAO,IAAMA,iBAAiB,GAAG,CAC/BC,UAD+B,EAE/BC,KAF+B,KAG5B;AACH,MAAMC,UAAU,GAAGD,KAAK,CAACE,YAAN,CAAmBC,IAAnB,CAChBC,MAAD,IAAYA,MAAM,CAACC,IAAP,KAAgBN,UADX,CAAnB;AAIA,SAAOE,UAAU,UAAOA,UAAU,CAACI,IAAlB,WAA2BJ,UAAU,CAACK,QAAtC,GAAmD,SAApE;AACD,CATM;AAWP,OAAO,IAAMC,cAAc,GAAG,CAC5BC,GAD4B,EAE5BR,KAF4B,KAGzB;AACH,MAAMS,WAAW,GAAGT,KAAK,CAACU,OAAN,CAAcF,GAAd,KAAsBR,KAAK,CAACU,OAAN,CAAcC,OAAxD;AAEA,SAAOF,WAAP;AACD,CAPM;AASP,OAAO,IAAMG,mBAAmB,GAAG,SAAtBA,mBAAsB,CACjCJ,GADiC,EAEjCR,KAFiC,EAGjCa,OAHiC,EAI9B;AAAA,MADHA,OACG;AADHA,IAAAA,OACG,GADO,KACP;AAAA;;AACH,MAAMC,MAAM,GAAGP,cAAc,CAACC,GAAD,EAAMR,KAAN,CAA7B;AAEA,MAAMe,GAAG,GAAGD,MAAM,CAACC,GAAP,IAAcF,OAAd,wBAA2CC,MAAM,CAACC,GAAlD,UAA4D,EAAxE;AAEA,iCAA6BD,MAAM,CAACE,GAApC,UAA4CD,GAA5C;AACD,CAVM;AAYP,OAAO,IAAME,YAAY,GAAG,CAACT,GAAD,EAAcR,KAAd,KAAwD;AAClF,MAAMkB,SAAS,GAAGlB,KAAK,CAACmB,KAAN,CAAYhB,IAAZ,CAAkBiB,IAAD,IAAUA,IAAI,CAACZ,GAAL,KAAaA,GAAxC,CAAlB;AAEA,MAAI,CAACU,SAAL,EAAgB,OAAOlB,KAAK,CAACmB,KAAN,CAAY,CAAZ,CAAP;AAEhB,sBACKD,SADL;AAEEnB,IAAAA,UAAU,EAAED,iBAAiB,CAACoB,SAAS,CAACnB,UAAX,EAAuBC,KAAvB;AAF/B;AAID,CATM;AAWP,OAAO,IAAMqB,KAAK,GAAIC,GAAD,IAAiB;AACpC,SAAQA,GAAG,GAAG,EAAP,GAAa,KAApB;AACD,CAFM","sourcesContent":["import { ScreenKeysEnum, TailwindStylesConfig } from '../types'\n\nexport const getFontFamilyName = (\n familyName: string,\n theme: TailwindStylesConfig<any, any>\n) => {\n const fontFamily = theme.fontFamilies.find(\n (family) => family.name === familyName\n )\n\n return fontFamily ? `\"${fontFamily.name}\",${fontFamily.fallback}` : 'inherit'\n}\n\nexport const getScreenByKey = (\n key: ScreenKeysEnum,\n theme: TailwindStylesConfig<any, any>\n) => {\n const foundScreen = theme.screens[key] || theme.screens.default\n\n return foundScreen\n}\n\nexport const getScreenMediaQuery = (\n key: ScreenKeysEnum,\n theme: TailwindStylesConfig<any, any>,\n withMax = false\n) => {\n const screen = getScreenByKey(key, theme)\n\n const max = screen.max && withMax ? ` and max-width: ${screen.max}px` : ''\n\n return `@media (min-width: ${screen.min}px${max})`\n}\n\nexport const getFontByKey = (key: string, theme: TailwindStylesConfig<any, any>) => {\n const foundFont = theme.fonts.find((font) => font.key === key)\n\n if (!foundFont) return theme.fonts[0]\n\n return {\n ...foundFont,\n familyName: getFontFamilyName(foundFont.familyName, theme),\n }\n}\n\nexport const toRem = (num: number) => {\n return (num / 10) + 'rem'\n}"],"file":"utils.js"}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export var ScreenKeysEnum;
|
2
|
+
|
3
|
+
(function (ScreenKeysEnum) {
|
4
|
+
ScreenKeysEnum["default"] = "default";
|
5
|
+
ScreenKeysEnum["sm"] = "sm";
|
6
|
+
ScreenKeysEnum["md"] = "md";
|
7
|
+
ScreenKeysEnum["lg"] = "lg";
|
8
|
+
ScreenKeysEnum["xl"] = "xl";
|
9
|
+
ScreenKeysEnum["xxl"] = "xxl";
|
10
|
+
})(ScreenKeysEnum || (ScreenKeysEnum = {}));
|
11
|
+
|
12
|
+
export var ButtonSizesEnum;
|
13
|
+
|
14
|
+
(function (ButtonSizesEnum) {
|
15
|
+
ButtonSizesEnum["xs"] = "xs";
|
16
|
+
ButtonSizesEnum["sm"] = "sm";
|
17
|
+
ButtonSizesEnum["md"] = "md";
|
18
|
+
ButtonSizesEnum["reg"] = "reg";
|
19
|
+
ButtonSizesEnum["lg"] = "lg";
|
20
|
+
ButtonSizesEnum["xl"] = "xl";
|
21
|
+
ButtonSizesEnum["xxl"] = "xxl";
|
22
|
+
})(ButtonSizesEnum || (ButtonSizesEnum = {}));
|
23
|
+
//# sourceMappingURL=types.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/postcss/types.ts"],"names":["ScreenKeysEnum","ButtonSizesEnum"],"mappings":"AAEA,WAAYA,cAAZ;;WAAYA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;AAAAA,EAAAA,c;GAAAA,c,KAAAA,c;;AASZ,WAAYC,eAAZ;;WAAYA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;AAAAA,EAAAA,e;GAAAA,e,KAAAA,e","sourcesContent":["import { NumberField, TextField } from '@sentecacommerce-theme/base'\n\nexport enum ScreenKeysEnum {\n default = 'default',\n sm = 'sm',\n md = 'md',\n lg = 'lg',\n xl = 'xl',\n xxl = 'xxl',\n}\n\nexport enum ButtonSizesEnum {\n xs = 'xs',\n sm = 'sm',\n md = 'md',\n reg = 'reg',\n lg = 'lg',\n xl = 'xl',\n xxl = 'xxl',\n}\n\nexport type ScreenGroupField<T> = {\n screen: ScreenKeysEnum\n} & T\n\nexport type ButtonField<T> = {\n key: TextField\n\n fontKey?: TextField\n\n backgroundColor: T\n textColor: T\n borderColor: T\n\n minWidth: NumberField\n paddingX: NumberField\n paddingY: NumberField\n minHeight: NumberField\n borderRadius: TextField\n\n opacity?: NumberField\n\n focusBoxShadowColor?: T\n\n borderWidth: NumberField\n\n hover?: {\n backgroundColor?: T\n textColor?: T\n borderColor?: T\n opacity?: NumberField\n boxShadow?: T\n }\n\n sizes?: {\n sizeKey: ButtonSizesEnum\n\n fontKey?: TextField\n minWidth: NumberField\n minHeight: NumberField\n paddingY: NumberField\n paddingX: NumberField\n }[]\n}\n\nexport type FontField = {\n key: TextField\n size: NumberField\n lineHeight: TextField\n weight: TextField\n\n familyName: TextField\n\n tags: TextField[]\n}\n\nexport interface TailwindStylesConfig<ColorEnum, ColorsObject> {\n colors: ColorsObject\n\n screens: {\n [key in ScreenKeysEnum]: {\n min: NumberField\n max?: NumberField\n }\n }\n\n fontFamilies: {\n name: TextField\n fallback: TextField\n weight: TextField\n woff: TextField\n woff2: TextField\n eot?: TextField\n ttf?: TextField\n svg?: TextField\n }[]\n\n fonts: FontField[]\n\n defaultFont: ScreenGroupField<{ fontKey: TextField }>[]\n\n buttons: ButtonField<ColorEnum>[]\n\n forms?: {\n inputStyle: {\n borderColor: ColorEnum\n textColor: ColorEnum\n fontKey: TextField\n height: NumberField\n borderRadius: TextField\n paddingX: NumberField\n paddingY: NumberField\n\n focus: {\n textColor: ColorEnum\n borderColor: ColorEnum\n }\n\n hover: {\n textColor: ColorEnum\n borderColor: ColorEnum\n }\n }\n }\n\n spaceBetweenSections: ScreenGroupField<{ space: NumberField }>[]\n\n containerSizes: ScreenGroupField<{\n maxWidth: NumberField\n paddingX: NumberField\n }>[]\n\n bodyBackground: ColorEnum\n}"],"file":"types.js"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../src/seo/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAd","sourcesContent":["export * from './ssr'"],"file":"index.js"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
2
|
+
import { RedirectsGetByFrom } from '@sentecacommerce/sdk';
|
3
|
+
export var fetchRedirectByFrom = /*#__PURE__*/function () {
|
4
|
+
var _ref = _asyncToGenerator(function* (from) {
|
5
|
+
return yield RedirectsGetByFrom(from);
|
6
|
+
});
|
7
|
+
|
8
|
+
return function fetchRedirectByFrom(_x) {
|
9
|
+
return _ref.apply(this, arguments);
|
10
|
+
};
|
11
|
+
}();
|
12
|
+
//# sourceMappingURL=fetchRedirectByFrom.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/seo/api/ssr/fetchRedirectByFrom.ts"],"names":["RedirectsGetByFrom","fetchRedirectByFrom","from"],"mappings":";AAAA,SAASA,kBAAT,QAAmC,sBAAnC;AAEA,OAAO,IAAMC,mBAAmB;AAAA,+BAAG,WAAOC,IAAP,EAAwB;AACzD,iBAAaF,kBAAkB,CAACE,IAAD,CAA/B;AACD,GAF+B;;AAAA,kBAAnBD,mBAAmB;AAAA;AAAA;AAAA,GAAzB","sourcesContent":["import { RedirectsGetByFrom } from '@sentecacommerce/sdk'\n\nexport const fetchRedirectByFrom = async (from: string) => {\n return await RedirectsGetByFrom(from)\n}\n"],"file":"fetchRedirectByFrom.js"}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
|
2
|
+
import { SitemapsGetSitemapFiles } from '@sentecacommerce/sdk';
|
3
|
+
export var fetchSitemaps = /*#__PURE__*/function () {
|
4
|
+
var _ref = _asyncToGenerator(function* (storeKey, interfaceKey) {
|
5
|
+
return yield SitemapsGetSitemapFiles({
|
6
|
+
storeKey,
|
7
|
+
interfaceKey
|
8
|
+
});
|
9
|
+
});
|
10
|
+
|
11
|
+
return function fetchSitemaps(_x, _x2) {
|
12
|
+
return _ref.apply(this, arguments);
|
13
|
+
};
|
14
|
+
}();
|
15
|
+
//# sourceMappingURL=fetchSitemaps.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/seo/api/ssr/fetchSitemaps.ts"],"names":["SitemapsGetSitemapFiles","fetchSitemaps","storeKey","interfaceKey"],"mappings":";AAAA,SAASA,uBAAT,QAAwC,sBAAxC;AAEA,OAAO,IAAMC,aAAa;AAAA,+BAAG,WAAOC,QAAP,EAAyBC,YAAzB,EAAkD;AAC7E,iBAAaH,uBAAuB,CAAC;AAAEE,MAAAA,QAAF;AAAYC,MAAAA;AAAZ,KAAD,CAApC;AACD,GAFyB;;AAAA,kBAAbF,aAAa;AAAA;AAAA;AAAA,GAAnB","sourcesContent":["import { SitemapsGetSitemapFiles } from '@sentecacommerce/sdk'\n\nexport const fetchSitemaps = async (storeKey: string, interfaceKey: string) => {\n return await SitemapsGetSitemapFiles({ storeKey, interfaceKey })\n}"],"file":"fetchSitemaps.js"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../../../src/seo/api/ssr/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAd;AACA,cAAc,uBAAd","sourcesContent":["export * from './fetchSitemaps'\nexport * from './fetchRedirectByFrom'"],"file":"index.js"}
|
package/dist/esm/seo/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../../src/seo/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAd;AACA,cAAc,SAAd","sourcesContent":["export * from './components'\nexport * from './hooks'"],"file":"index.js"}
|
1
|
+
{"version":3,"sources":["../../../src/seo/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAd;AACA,cAAc,SAAd;AACA,cAAc,OAAd","sourcesContent":["export * from './components'\nexport * from './hooks'\nexport * from './api'"],"file":"index.js"}
|
package/dist/types/index.d.ts
CHANGED
@@ -0,0 +1,9 @@
|
|
1
|
+
import { ScreenKeysEnum, TailwindStylesConfig } from '../types';
|
2
|
+
export declare const getFontFamilyName: (familyName: string, theme: TailwindStylesConfig<any, any>) => string;
|
3
|
+
export declare const getScreenByKey: (key: ScreenKeysEnum, theme: TailwindStylesConfig<any, any>) => {
|
4
|
+
min: number;
|
5
|
+
max?: number | undefined;
|
6
|
+
};
|
7
|
+
export declare const getScreenMediaQuery: (key: ScreenKeysEnum, theme: TailwindStylesConfig<any, any>, withMax?: boolean) => string;
|
8
|
+
export declare const getFontByKey: (key: string, theme: TailwindStylesConfig<any, any>) => import("../types").FontField;
|
9
|
+
export declare const toRem: (num: number) => string;
|
@@ -0,0 +1,110 @@
|
|
1
|
+
import { NumberField, TextField } from '@sentecacommerce-theme/base';
|
2
|
+
export declare enum ScreenKeysEnum {
|
3
|
+
default = "default",
|
4
|
+
sm = "sm",
|
5
|
+
md = "md",
|
6
|
+
lg = "lg",
|
7
|
+
xl = "xl",
|
8
|
+
xxl = "xxl"
|
9
|
+
}
|
10
|
+
export declare enum ButtonSizesEnum {
|
11
|
+
xs = "xs",
|
12
|
+
sm = "sm",
|
13
|
+
md = "md",
|
14
|
+
reg = "reg",
|
15
|
+
lg = "lg",
|
16
|
+
xl = "xl",
|
17
|
+
xxl = "xxl"
|
18
|
+
}
|
19
|
+
export declare type ScreenGroupField<T> = {
|
20
|
+
screen: ScreenKeysEnum;
|
21
|
+
} & T;
|
22
|
+
export declare type ButtonField<T> = {
|
23
|
+
key: TextField;
|
24
|
+
fontKey?: TextField;
|
25
|
+
backgroundColor: T;
|
26
|
+
textColor: T;
|
27
|
+
borderColor: T;
|
28
|
+
minWidth: NumberField;
|
29
|
+
paddingX: NumberField;
|
30
|
+
paddingY: NumberField;
|
31
|
+
minHeight: NumberField;
|
32
|
+
borderRadius: TextField;
|
33
|
+
opacity?: NumberField;
|
34
|
+
focusBoxShadowColor?: T;
|
35
|
+
borderWidth: NumberField;
|
36
|
+
hover?: {
|
37
|
+
backgroundColor?: T;
|
38
|
+
textColor?: T;
|
39
|
+
borderColor?: T;
|
40
|
+
opacity?: NumberField;
|
41
|
+
boxShadow?: T;
|
42
|
+
};
|
43
|
+
sizes?: {
|
44
|
+
sizeKey: ButtonSizesEnum;
|
45
|
+
fontKey?: TextField;
|
46
|
+
minWidth: NumberField;
|
47
|
+
minHeight: NumberField;
|
48
|
+
paddingY: NumberField;
|
49
|
+
paddingX: NumberField;
|
50
|
+
}[];
|
51
|
+
};
|
52
|
+
export declare type FontField = {
|
53
|
+
key: TextField;
|
54
|
+
size: NumberField;
|
55
|
+
lineHeight: TextField;
|
56
|
+
weight: TextField;
|
57
|
+
familyName: TextField;
|
58
|
+
tags: TextField[];
|
59
|
+
};
|
60
|
+
export interface TailwindStylesConfig<ColorEnum, ColorsObject> {
|
61
|
+
colors: ColorsObject;
|
62
|
+
screens: {
|
63
|
+
[key in ScreenKeysEnum]: {
|
64
|
+
min: NumberField;
|
65
|
+
max?: NumberField;
|
66
|
+
};
|
67
|
+
};
|
68
|
+
fontFamilies: {
|
69
|
+
name: TextField;
|
70
|
+
fallback: TextField;
|
71
|
+
weight: TextField;
|
72
|
+
woff: TextField;
|
73
|
+
woff2: TextField;
|
74
|
+
eot?: TextField;
|
75
|
+
ttf?: TextField;
|
76
|
+
svg?: TextField;
|
77
|
+
}[];
|
78
|
+
fonts: FontField[];
|
79
|
+
defaultFont: ScreenGroupField<{
|
80
|
+
fontKey: TextField;
|
81
|
+
}>[];
|
82
|
+
buttons: ButtonField<ColorEnum>[];
|
83
|
+
forms?: {
|
84
|
+
inputStyle: {
|
85
|
+
borderColor: ColorEnum;
|
86
|
+
textColor: ColorEnum;
|
87
|
+
fontKey: TextField;
|
88
|
+
height: NumberField;
|
89
|
+
borderRadius: TextField;
|
90
|
+
paddingX: NumberField;
|
91
|
+
paddingY: NumberField;
|
92
|
+
focus: {
|
93
|
+
textColor: ColorEnum;
|
94
|
+
borderColor: ColorEnum;
|
95
|
+
};
|
96
|
+
hover: {
|
97
|
+
textColor: ColorEnum;
|
98
|
+
borderColor: ColorEnum;
|
99
|
+
};
|
100
|
+
};
|
101
|
+
};
|
102
|
+
spaceBetweenSections: ScreenGroupField<{
|
103
|
+
space: NumberField;
|
104
|
+
}>[];
|
105
|
+
containerSizes: ScreenGroupField<{
|
106
|
+
maxWidth: NumberField;
|
107
|
+
paddingX: NumberField;
|
108
|
+
}>[];
|
109
|
+
bodyBackground: ColorEnum;
|
110
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './ssr';
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const fetchRedirectByFrom: (from: string) => Promise<import("@sentecacommerce/sdk").CmsRedirectDTO>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export declare const fetchSitemaps: (storeKey: string, interfaceKey: string) => Promise<string[]>;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentecacommerce-theme/lib",
|
3
3
|
"sideEffects": false,
|
4
|
-
"version": "0.11.
|
4
|
+
"version": "0.11.108",
|
5
5
|
"main": "dist/cjs/index.js",
|
6
6
|
"module": "dist/esm/index.js",
|
7
7
|
"types": "dist/types/index.d.ts",
|
@@ -25,11 +25,12 @@
|
|
25
25
|
"build": "concurrently yarn:build:*",
|
26
26
|
"build:esm": "cross-env BABEL_ENV=esm babel src --root-mode upward --extensions .ts,.tsx -d dist/esm --source-maps",
|
27
27
|
"build:cjs": "cross-env BABEL_ENV=cjs babel src --root-mode upward --extensions .ts,.tsx -d dist/cjs --source-maps",
|
28
|
-
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types"
|
28
|
+
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types",
|
29
|
+
"dev": "yarn build:esm --watch"
|
29
30
|
},
|
30
|
-
"gitHead": "
|
31
|
+
"gitHead": "f74f5ac4c5ab7656cf7bd5a6e340eb01c17d7b69",
|
31
32
|
"dependencies": {
|
32
|
-
"@sentecacommerce-theme/base": "^0.11.
|
33
|
+
"@sentecacommerce-theme/base": "^0.11.108",
|
33
34
|
"@sentecacommerce/sdk": "^2.0.99",
|
34
35
|
"body-scroll-lock": "^3.1.5",
|
35
36
|
"copy-to-clipboard": "^3.3.1",
|