@nuskin/nextgen-header 1.0.0-library-setup.1 → 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/package-dist/index.css +22 -19
- package/package-dist/index.css.map +1 -1
- package/package-dist/index.d.ts +10 -48
- package/package-dist/index.js +838 -244
- package/package-dist/index.js.map +1 -1
- package/package.json +8 -12
- package/readme.md +40 -18
- package/package-dist/index.mjs +0 -253
- package/package-dist/index.mjs.map +0 -1
package/package-dist/index.css
CHANGED
|
@@ -1,71 +1,74 @@
|
|
|
1
|
-
/*
|
|
1
|
+
/* Global styles */
|
|
2
2
|
* {
|
|
3
3
|
margin: 0;
|
|
4
4
|
padding: 0;
|
|
5
5
|
box-sizing: border-box;
|
|
6
6
|
}
|
|
7
|
+
|
|
7
8
|
body {
|
|
8
|
-
font-family:
|
|
9
|
-
|
|
10
|
-
BlinkMacSystemFont,
|
|
11
|
-
"Segoe UI",
|
|
12
|
-
"Roboto",
|
|
13
|
-
"Oxygen",
|
|
14
|
-
"Ubuntu",
|
|
15
|
-
"Cantarell",
|
|
16
|
-
"Fira Sans",
|
|
17
|
-
"Droid Sans",
|
|
18
|
-
"Helvetica Neue",
|
|
9
|
+
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
|
10
|
+
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
|
19
11
|
sans-serif;
|
|
20
12
|
-webkit-font-smoothing: antialiased;
|
|
21
13
|
-moz-osx-font-smoothing: grayscale;
|
|
22
14
|
line-height: 1.6;
|
|
23
15
|
color: #333;
|
|
24
16
|
}
|
|
17
|
+
|
|
25
18
|
.container {
|
|
26
19
|
max-width: 1200px;
|
|
27
20
|
margin: 0 auto;
|
|
28
21
|
padding: 0 10px;
|
|
29
22
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
h3,
|
|
33
|
-
h4,
|
|
34
|
-
h5,
|
|
35
|
-
h6 {
|
|
23
|
+
|
|
24
|
+
/* Typography */
|
|
25
|
+
h1, h2, h3, h4, h5, h6 {
|
|
36
26
|
font-weight: 600;
|
|
37
27
|
line-height: 1.2;
|
|
38
28
|
margin-bottom: 1rem;
|
|
39
29
|
}
|
|
30
|
+
|
|
40
31
|
p {
|
|
41
32
|
margin-bottom: 1rem;
|
|
42
33
|
}
|
|
34
|
+
|
|
35
|
+
/* Buttons */
|
|
43
36
|
button {
|
|
44
37
|
font-family: inherit;
|
|
45
38
|
cursor: pointer;
|
|
46
39
|
border: none;
|
|
47
40
|
outline: none;
|
|
48
41
|
}
|
|
42
|
+
|
|
43
|
+
/* Links */
|
|
49
44
|
a {
|
|
50
45
|
color: #008ab0;
|
|
51
46
|
text-decoration: none;
|
|
52
47
|
}
|
|
48
|
+
|
|
53
49
|
a:link {
|
|
54
50
|
color: #008ab0;
|
|
55
51
|
}
|
|
52
|
+
|
|
56
53
|
a:visited {
|
|
57
54
|
color: #008ab0;
|
|
58
55
|
}
|
|
56
|
+
|
|
59
57
|
a:hover {
|
|
60
58
|
text-decoration: underline;
|
|
61
59
|
}
|
|
60
|
+
|
|
61
|
+
/* Images */
|
|
62
62
|
img {
|
|
63
63
|
max-width: 100%;
|
|
64
64
|
height: auto;
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
/* Responsive */
|
|
66
68
|
@media (max-width: 768px) {
|
|
67
69
|
.container {
|
|
68
70
|
padding: 0 10px;
|
|
69
71
|
}
|
|
70
72
|
}
|
|
71
|
-
|
|
73
|
+
|
|
74
|
+
/*# sourceMappingURL=index.css.map*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["
|
|
1
|
+
{"version":3,"file":"index.css","mappings":"AAAA,kBAAkB;AAClB;EACE,SAAS;EACT,UAAU;EACV,sBAAsB;AACxB;;AAEA;EACE;;cAEY;EACZ,mCAAmC;EACnC,kCAAkC;EAClC,gBAAgB;EAChB,WAAW;AACb;;AAEA;EACE,iBAAiB;EACjB,cAAc;EACd,eAAe;AACjB;;AAEA,eAAe;AACf;EACE,gBAAgB;EAChB,gBAAgB;EAChB,mBAAmB;AACrB;;AAEA;EACE,mBAAmB;AACrB;;AAEA,YAAY;AACZ;EACE,oBAAoB;EACpB,eAAe;EACf,YAAY;EACZ,aAAa;AACf;;AAEA,UAAU;AACV;EACE,cAAc;EACd,qBAAqB;AACvB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,0BAA0B;AAC5B;;AAEA,WAAW;AACX;EACE,eAAe;EACf,YAAY;AACd;;AAEA,eAAe;AACf;EACE;IACE,eAAe;EACjB;AACF,C","sources":["webpack://@nuskin/nextgen-header/./src/styles/globals.css"],"sourcesContent":["/* Global styles */\n* {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n}\n\nbody {\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',\n 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',\n sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n line-height: 1.6;\n color: #333;\n}\n\n.container {\n max-width: 1200px;\n margin: 0 auto;\n padding: 0 10px;\n}\n\n/* Typography */\nh1, h2, h3, h4, h5, h6 {\n font-weight: 600;\n line-height: 1.2;\n margin-bottom: 1rem;\n}\n\np {\n margin-bottom: 1rem;\n}\n\n/* Buttons */\nbutton {\n font-family: inherit;\n cursor: pointer;\n border: none;\n outline: none;\n}\n\n/* Links */\na {\n color: #008ab0;\n text-decoration: none;\n}\n\na:link {\n color: #008ab0;\n}\n\na:visited {\n color: #008ab0;\n}\n\na:hover {\n text-decoration: underline;\n}\n\n/* Images */\nimg {\n max-width: 100%;\n height: auto;\n}\n\n/* Responsive */\n@media (max-width: 768px) {\n .container {\n padding: 0 10px;\n }\n}"],"names":[],"sourceRoot":""}
|
package/package-dist/index.d.ts
CHANGED
|
@@ -1,51 +1,13 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { FC } from "react";
|
|
2
2
|
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export const Main: FC<MainProps>;
|
|
10
|
-
|
|
11
|
-
export interface HeaderMFEContextValue {
|
|
12
|
-
isMFE: boolean;
|
|
3
|
+
export interface HeaderProps {
|
|
4
|
+
/** Geographic / market code (e.g. US). Required on SSR unless `requestUrl` is passed into `renderAndExtractContext`. */
|
|
5
|
+
market?: string;
|
|
6
|
+
/** Language code (e.g. en). Same rules as `market`. */
|
|
7
|
+
language?: string;
|
|
13
8
|
}
|
|
14
9
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
language: string;
|
|
20
|
-
country: string;
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
export function getStackConfig(): {
|
|
24
|
-
contentType: string;
|
|
25
|
-
locale: string;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
export const stack: unknown;
|
|
29
|
-
|
|
30
|
-
export function getContent(
|
|
31
|
-
args?: {
|
|
32
|
-
url?: string;
|
|
33
|
-
uid?: string;
|
|
34
|
-
contentType?: string;
|
|
35
|
-
language?: string;
|
|
36
|
-
referenceFields?: string[];
|
|
37
|
-
},
|
|
38
|
-
): Promise<unknown | null>;
|
|
39
|
-
|
|
40
|
-
export function initLivePreview(): void;
|
|
41
|
-
|
|
42
|
-
export const onEntryChange: (...args: unknown[]) => unknown;
|
|
43
|
-
|
|
44
|
-
export function isEditingMode(): boolean;
|
|
45
|
-
|
|
46
|
-
export const CONTENTSTACK_API_KEY: string | undefined;
|
|
47
|
-
export const CONTENTSTACK_DELIVERY_TOKEN: string | undefined;
|
|
48
|
-
export const CONTENTSTACK_ENVIRONMENT: string | undefined;
|
|
49
|
-
export const CONTENTSTACK_PREVIEW_TOKEN: string | undefined;
|
|
50
|
-
export const referenceFields: string[];
|
|
51
|
-
export const VB_EmptyBlockParentClass: string;
|
|
10
|
+
/**
|
|
11
|
+
* Shell entry: styled container + resolves locale from `market`/`language` or the browser URL, then renders the header placeholder.
|
|
12
|
+
*/
|
|
13
|
+
export const Header: FC<HeaderProps>;
|