@pingux/astro 2.88.0-alpha.3 → 2.89.0-alpha.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/lib/cjs/components/CodeView/CodeView.js +29 -4
- package/lib/cjs/components/CodeView/CodeView.test.js +10 -0
- package/lib/cjs/components/CopyText/CopyText.js +2 -2
- package/lib/cjs/components/NavigationHeader/HeaderAccountMenu.d.ts +9 -0
- package/lib/cjs/components/NavigationHeader/HeaderAccountMenu.js +75 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.d.ts +9 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.js +49 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.mdx +31 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.d.ts +12 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.stories.js +210 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.test.d.ts +1 -0
- package/lib/cjs/components/NavigationHeader/NavigationHeader.test.js +361 -0
- package/lib/cjs/components/NavigationHeader/index.d.ts +1 -0
- package/lib/cjs/components/NavigationHeader/index.js +14 -0
- package/lib/cjs/hooks/useField/useField.d.ts +78 -78
- package/lib/cjs/index.d.ts +2 -0
- package/lib/cjs/index.js +55 -36
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +15 -1
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +22 -6
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +4 -2
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +261 -7
- package/lib/cjs/styles/themes/next-gen/next-gen.js +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +5 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +6 -4
- package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.d.ts +140 -0
- package/lib/cjs/styles/themes/next-gen/variants/navigationHeader.js +131 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +107 -6
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +15 -9
- package/lib/cjs/types/codeView.d.ts +3 -2
- package/lib/cjs/types/copyText.d.ts +1 -1
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +65 -54
- package/lib/cjs/utils/devUtils/constants/images.d.ts +2 -0
- package/lib/cjs/utils/devUtils/constants/images.js +6 -2
- package/lib/components/CodeView/CodeView.js +30 -5
- package/lib/components/CodeView/CodeView.test.js +10 -0
- package/lib/components/CopyText/CopyText.js +2 -2
- package/lib/components/NavigationHeader/HeaderAccountMenu.js +66 -0
- package/lib/components/NavigationHeader/NavigationHeader.js +37 -0
- package/lib/components/NavigationHeader/NavigationHeader.mdx +31 -0
- package/lib/components/NavigationHeader/NavigationHeader.stories.js +195 -0
- package/lib/components/NavigationHeader/NavigationHeader.test.js +358 -0
- package/lib/components/NavigationHeader/index.js +1 -0
- package/lib/index.js +2 -0
- package/lib/styles/themes/next-gen/codeView/codeView.js +20 -5
- package/lib/styles/themes/next-gen/convertedComponentList.js +2 -1
- package/lib/styles/themes/next-gen/next-gen.js +2 -0
- package/lib/styles/themes/next-gen/variants/button.js +6 -4
- package/lib/styles/themes/next-gen/variants/navigationHeader.js +123 -0
- package/lib/styles/themes/next-gen/variants/variants.js +14 -8
- package/lib/types/index.js +1 -0
- package/lib/utils/devUtils/constants/images.js +3 -1
- package/package.json +1 -1
@@ -818,6 +818,11 @@ declare const _default: {
|
|
818
818
|
outlineOffset: string;
|
819
819
|
};
|
820
820
|
};
|
821
|
+
copyButton: {
|
822
|
+
path: {
|
823
|
+
fill: string;
|
824
|
+
};
|
825
|
+
};
|
821
826
|
};
|
822
827
|
modalCloseButton: {
|
823
828
|
position: string;
|
@@ -1259,6 +1264,145 @@ declare const _default: {
|
|
1259
1264
|
};
|
1260
1265
|
};
|
1261
1266
|
};
|
1267
|
+
navigationHeader: {
|
1268
|
+
headerPlaceholder: {
|
1269
|
+
fontSize: string;
|
1270
|
+
ml: string;
|
1271
|
+
color: string;
|
1272
|
+
lineHeight: string;
|
1273
|
+
fontWeight: string;
|
1274
|
+
'&.is-hovered': {
|
1275
|
+
color: string;
|
1276
|
+
};
|
1277
|
+
};
|
1278
|
+
link: {
|
1279
|
+
fontSize: string;
|
1280
|
+
fontFamily: string;
|
1281
|
+
py: string;
|
1282
|
+
px: string;
|
1283
|
+
fontWeight: string;
|
1284
|
+
color: string;
|
1285
|
+
textDecoration: string;
|
1286
|
+
borderRadius: string;
|
1287
|
+
'&.is-hovered': {
|
1288
|
+
textDecoration: string;
|
1289
|
+
color: string;
|
1290
|
+
};
|
1291
|
+
'&.is-focused': {
|
1292
|
+
textDecoration: string;
|
1293
|
+
outline: string;
|
1294
|
+
outlineColor: string;
|
1295
|
+
};
|
1296
|
+
'&.is-pressed': {
|
1297
|
+
textDecoration: string;
|
1298
|
+
};
|
1299
|
+
'&.is-visited': {
|
1300
|
+
textDecoration: string;
|
1301
|
+
};
|
1302
|
+
};
|
1303
|
+
logoBand: {
|
1304
|
+
p: number;
|
1305
|
+
fontSize: string;
|
1306
|
+
fontFamily: string;
|
1307
|
+
py: string;
|
1308
|
+
px: string;
|
1309
|
+
fontWeight: string;
|
1310
|
+
color: string;
|
1311
|
+
textDecoration: string;
|
1312
|
+
borderRadius: string;
|
1313
|
+
'&.is-hovered': {
|
1314
|
+
textDecoration: string;
|
1315
|
+
color: string;
|
1316
|
+
};
|
1317
|
+
'&.is-focused': {
|
1318
|
+
textDecoration: string;
|
1319
|
+
outline: string;
|
1320
|
+
outlineColor: string;
|
1321
|
+
};
|
1322
|
+
'&.is-pressed': {
|
1323
|
+
textDecoration: string;
|
1324
|
+
};
|
1325
|
+
'&.is-visited': {
|
1326
|
+
textDecoration: string;
|
1327
|
+
};
|
1328
|
+
};
|
1329
|
+
container: {
|
1330
|
+
fontFamily: string;
|
1331
|
+
borderBottom: string;
|
1332
|
+
borderColor: string;
|
1333
|
+
bg: string;
|
1334
|
+
height: string;
|
1335
|
+
justifyContent: string;
|
1336
|
+
};
|
1337
|
+
wrapper: {
|
1338
|
+
px: string[];
|
1339
|
+
maxWidth: string;
|
1340
|
+
mx: string;
|
1341
|
+
width: string;
|
1342
|
+
};
|
1343
|
+
dropdownMenu: {
|
1344
|
+
maxWidth: string;
|
1345
|
+
p: string;
|
1346
|
+
'& > li': {
|
1347
|
+
p: string;
|
1348
|
+
};
|
1349
|
+
};
|
1350
|
+
dropdownMenuItem: {
|
1351
|
+
padding: string;
|
1352
|
+
pr: string;
|
1353
|
+
'&.is-hovered': {
|
1354
|
+
textDecoration: string;
|
1355
|
+
};
|
1356
|
+
'&.is-pressed': {
|
1357
|
+
textDecoration: string;
|
1358
|
+
};
|
1359
|
+
'&.is-focused': {
|
1360
|
+
textDecoration: string;
|
1361
|
+
};
|
1362
|
+
'&.is-visited': {
|
1363
|
+
textDecoration: string;
|
1364
|
+
};
|
1365
|
+
fontSize: string;
|
1366
|
+
fontFamily: string;
|
1367
|
+
py: string;
|
1368
|
+
px: string;
|
1369
|
+
fontWeight: string;
|
1370
|
+
color: string;
|
1371
|
+
textDecoration: string;
|
1372
|
+
borderRadius: string;
|
1373
|
+
};
|
1374
|
+
accountButton: {
|
1375
|
+
display: string;
|
1376
|
+
width: string;
|
1377
|
+
height: string;
|
1378
|
+
cursor: string;
|
1379
|
+
p: string;
|
1380
|
+
px: string;
|
1381
|
+
py: string;
|
1382
|
+
border: string;
|
1383
|
+
borderRadius: string;
|
1384
|
+
bg: string;
|
1385
|
+
'&.is-hovered': {
|
1386
|
+
bg: string;
|
1387
|
+
border: string;
|
1388
|
+
boxShadow: string;
|
1389
|
+
};
|
1390
|
+
'&.is-pressed': {
|
1391
|
+
bg: string;
|
1392
|
+
border: string;
|
1393
|
+
boxShadow: string;
|
1394
|
+
};
|
1395
|
+
'&.is-focused': {
|
1396
|
+
bg: string;
|
1397
|
+
outline: string;
|
1398
|
+
outlineColor: string;
|
1399
|
+
};
|
1400
|
+
'&.is-visited': {
|
1401
|
+
bg: string;
|
1402
|
+
};
|
1403
|
+
minWidth: string;
|
1404
|
+
};
|
1405
|
+
};
|
1262
1406
|
space: {
|
1263
1407
|
xs: string;
|
1264
1408
|
sm: string;
|
@@ -1572,6 +1716,9 @@ declare const _default: {
|
|
1572
1716
|
separator: {
|
1573
1717
|
base: {
|
1574
1718
|
bg: string;
|
1719
|
+
'&.is-vertical': {
|
1720
|
+
m: string;
|
1721
|
+
};
|
1575
1722
|
};
|
1576
1723
|
};
|
1577
1724
|
menuItem: {
|
@@ -1749,19 +1896,117 @@ declare const _default: {
|
|
1749
1896
|
};
|
1750
1897
|
};
|
1751
1898
|
codeView: {
|
1899
|
+
theme: {
|
1900
|
+
plain: {
|
1901
|
+
color: string;
|
1902
|
+
backgroundColor: string;
|
1903
|
+
};
|
1904
|
+
styles: ({
|
1905
|
+
types: string[];
|
1906
|
+
style: {
|
1907
|
+
color: string;
|
1908
|
+
background?: undefined;
|
1909
|
+
fontWeight?: undefined;
|
1910
|
+
cursor?: undefined;
|
1911
|
+
};
|
1912
|
+
} | {
|
1913
|
+
types: string[];
|
1914
|
+
style: {
|
1915
|
+
color: string;
|
1916
|
+
background: string;
|
1917
|
+
fontWeight?: undefined;
|
1918
|
+
cursor?: undefined;
|
1919
|
+
};
|
1920
|
+
} | {
|
1921
|
+
types: string[];
|
1922
|
+
style: {
|
1923
|
+
fontWeight: string;
|
1924
|
+
color?: undefined;
|
1925
|
+
background?: undefined;
|
1926
|
+
cursor?: undefined;
|
1927
|
+
};
|
1928
|
+
} | {
|
1929
|
+
types: string[];
|
1930
|
+
style: {
|
1931
|
+
cursor: string;
|
1932
|
+
color?: undefined;
|
1933
|
+
background?: undefined;
|
1934
|
+
fontWeight?: undefined;
|
1935
|
+
};
|
1936
|
+
})[];
|
1937
|
+
};
|
1752
1938
|
wrapper: {
|
1753
1939
|
backgroundColor: string;
|
1940
|
+
border: string;
|
1941
|
+
borderColor: string;
|
1754
1942
|
borderRadius: string;
|
1755
|
-
|
1756
|
-
|
1757
|
-
|
1758
|
-
|
1943
|
+
width: number;
|
1944
|
+
height: number;
|
1945
|
+
my: string;
|
1946
|
+
overflow: string;
|
1947
|
+
alignItems: string;
|
1948
|
+
'&.is-focused, &:focus': {
|
1949
|
+
boxShadow: string;
|
1950
|
+
outline: string;
|
1951
|
+
};
|
1952
|
+
pre: {
|
1953
|
+
backgroundColor: string;
|
1954
|
+
padding: string;
|
1955
|
+
height: string;
|
1956
|
+
width: string;
|
1957
|
+
overflowX: string;
|
1958
|
+
overflowY: string;
|
1959
|
+
fontSize: string;
|
1960
|
+
'& .token-line': {
|
1961
|
+
display: string;
|
1962
|
+
alignItems: string;
|
1963
|
+
'& .token': {
|
1964
|
+
whiteSpace: string;
|
1965
|
+
wordBreak: string;
|
1966
|
+
};
|
1967
|
+
};
|
1968
|
+
fontFamily: string;
|
1969
|
+
lineHeight: string;
|
1970
|
+
};
|
1971
|
+
'&.has-no-copy-button': {
|
1972
|
+
pre: {
|
1973
|
+
p: string;
|
1759
1974
|
};
|
1760
1975
|
};
|
1761
|
-
'
|
1762
|
-
|
1976
|
+
'&.has-line-numbers': {
|
1977
|
+
pre: {
|
1978
|
+
p: string;
|
1979
|
+
overflow: string;
|
1980
|
+
'& .token-line:first-of-type *': {
|
1981
|
+
pt: string;
|
1982
|
+
};
|
1983
|
+
'& .token-line': {
|
1984
|
+
display: string;
|
1985
|
+
'& .token': {
|
1986
|
+
whiteSpace: string;
|
1987
|
+
};
|
1988
|
+
};
|
1989
|
+
};
|
1763
1990
|
};
|
1764
1991
|
};
|
1992
|
+
lineNo: {
|
1993
|
+
display: string;
|
1994
|
+
userSelect: string;
|
1995
|
+
px: string;
|
1996
|
+
m: string;
|
1997
|
+
bg: string;
|
1998
|
+
minWidth: number;
|
1999
|
+
color: string;
|
2000
|
+
lineHeight: string;
|
2001
|
+
};
|
2002
|
+
header: {
|
2003
|
+
color: string;
|
2004
|
+
px: string;
|
2005
|
+
width: string;
|
2006
|
+
border: string;
|
2007
|
+
borderColor: string;
|
2008
|
+
lineHeight: string;
|
2009
|
+
};
|
1765
2010
|
};
|
1766
2011
|
tabs: {
|
1767
2012
|
gap: string;
|
@@ -1817,9 +2062,10 @@ declare const _default: {
|
|
1817
2062
|
})[];
|
1818
2063
|
};
|
1819
2064
|
wrapper: {
|
1820
|
-
|
2065
|
+
backgroundColor: string;
|
1821
2066
|
border: string;
|
1822
2067
|
borderColor: string;
|
2068
|
+
borderRadius: string;
|
1823
2069
|
width: number;
|
1824
2070
|
height: number;
|
1825
2071
|
my: string;
|
@@ -1879,6 +2125,14 @@ declare const _default: {
|
|
1879
2125
|
color: string;
|
1880
2126
|
lineHeight: string;
|
1881
2127
|
};
|
2128
|
+
header: {
|
2129
|
+
color: string;
|
2130
|
+
px: string;
|
2131
|
+
width: string;
|
2132
|
+
border: string;
|
2133
|
+
borderColor: string;
|
2134
|
+
lineHeight: string;
|
2135
|
+
};
|
1882
2136
|
};
|
1883
2137
|
};
|
1884
2138
|
};
|
@@ -24,6 +24,7 @@ var _button = _interopRequireDefault(require("./variants/button"));
|
|
24
24
|
var _cards = _interopRequireDefault(require("./variants/cards"));
|
25
25
|
var _images = _interopRequireDefault(require("./variants/images"));
|
26
26
|
var _links = _interopRequireDefault(require("./variants/links"));
|
27
|
+
var _navigationHeader = _interopRequireDefault(require("./variants/navigationHeader"));
|
27
28
|
var _text = require("./variants/text");
|
28
29
|
var _variants = _interopRequireWildcard(require("./variants/variants"));
|
29
30
|
var _forms = _interopRequireDefault(require("./forms"));
|
@@ -58,6 +59,7 @@ var nextGenTheme = {
|
|
58
59
|
},
|
59
60
|
sizes: _sizes["default"],
|
60
61
|
badges: _variants.badges,
|
62
|
+
navigationHeader: _navigationHeader["default"],
|
61
63
|
space: _spacing["default"],
|
62
64
|
links: _links["default"],
|
63
65
|
cards: _cards["default"],
|
@@ -15,6 +15,7 @@ _Object$defineProperty(exports, "__esModule", {
|
|
15
15
|
exports["default"] = void 0;
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
17
17
|
var _chromaJs = _interopRequireDefault(require("chroma-js"));
|
18
|
+
var _codeView = require("../codeView/codeView");
|
18
19
|
var _colors = _interopRequireDefault(require("../colors/colors"));
|
19
20
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
20
21
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
@@ -243,22 +244,23 @@ var iconButtons = {
|
|
243
244
|
headerNav: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
244
245
|
borderRadius: '4px',
|
245
246
|
path: {
|
246
|
-
fill: '
|
247
|
+
fill: 'text.primary'
|
247
248
|
},
|
248
249
|
px: 'md',
|
249
250
|
py: 'sm',
|
250
251
|
width: '56px',
|
251
252
|
'&.is-hovered': {
|
252
253
|
path: {
|
253
|
-
fill: '
|
254
|
+
fill: 'text.secondary'
|
254
255
|
}
|
255
256
|
},
|
256
257
|
'&.is-pressed': {
|
257
258
|
path: {
|
258
|
-
fill: '
|
259
|
+
fill: 'text.secondary'
|
259
260
|
}
|
260
261
|
}
|
261
|
-
})
|
262
|
+
}),
|
263
|
+
copyButton: _codeView.copyButton
|
262
264
|
};
|
263
265
|
var buttons = {
|
264
266
|
neutral: neutral,
|
@@ -0,0 +1,140 @@
|
|
1
|
+
declare const navigationHeader: {
|
2
|
+
headerPlaceholder: {
|
3
|
+
fontSize: string;
|
4
|
+
ml: string;
|
5
|
+
color: string;
|
6
|
+
lineHeight: string;
|
7
|
+
fontWeight: string;
|
8
|
+
'&.is-hovered': {
|
9
|
+
color: string;
|
10
|
+
};
|
11
|
+
};
|
12
|
+
link: {
|
13
|
+
fontSize: string;
|
14
|
+
fontFamily: string;
|
15
|
+
py: string;
|
16
|
+
px: string;
|
17
|
+
fontWeight: string;
|
18
|
+
color: string;
|
19
|
+
textDecoration: string;
|
20
|
+
borderRadius: string;
|
21
|
+
'&.is-hovered': {
|
22
|
+
textDecoration: string;
|
23
|
+
color: string;
|
24
|
+
};
|
25
|
+
'&.is-focused': {
|
26
|
+
textDecoration: string;
|
27
|
+
outline: string;
|
28
|
+
outlineColor: string;
|
29
|
+
};
|
30
|
+
'&.is-pressed': {
|
31
|
+
textDecoration: string;
|
32
|
+
};
|
33
|
+
'&.is-visited': {
|
34
|
+
textDecoration: string;
|
35
|
+
};
|
36
|
+
};
|
37
|
+
logoBand: {
|
38
|
+
p: number;
|
39
|
+
fontSize: string;
|
40
|
+
fontFamily: string;
|
41
|
+
py: string;
|
42
|
+
px: string;
|
43
|
+
fontWeight: string;
|
44
|
+
color: string;
|
45
|
+
textDecoration: string;
|
46
|
+
borderRadius: string;
|
47
|
+
'&.is-hovered': {
|
48
|
+
textDecoration: string;
|
49
|
+
color: string;
|
50
|
+
};
|
51
|
+
'&.is-focused': {
|
52
|
+
textDecoration: string;
|
53
|
+
outline: string;
|
54
|
+
outlineColor: string;
|
55
|
+
};
|
56
|
+
'&.is-pressed': {
|
57
|
+
textDecoration: string;
|
58
|
+
};
|
59
|
+
'&.is-visited': {
|
60
|
+
textDecoration: string;
|
61
|
+
};
|
62
|
+
};
|
63
|
+
container: {
|
64
|
+
fontFamily: string;
|
65
|
+
borderBottom: string;
|
66
|
+
borderColor: string;
|
67
|
+
bg: string;
|
68
|
+
height: string;
|
69
|
+
justifyContent: string;
|
70
|
+
};
|
71
|
+
wrapper: {
|
72
|
+
px: string[];
|
73
|
+
maxWidth: string;
|
74
|
+
mx: string;
|
75
|
+
width: string;
|
76
|
+
};
|
77
|
+
dropdownMenu: {
|
78
|
+
maxWidth: string;
|
79
|
+
p: string;
|
80
|
+
'& > li': {
|
81
|
+
p: string;
|
82
|
+
};
|
83
|
+
};
|
84
|
+
dropdownMenuItem: {
|
85
|
+
padding: string;
|
86
|
+
pr: string;
|
87
|
+
'&.is-hovered': {
|
88
|
+
textDecoration: string;
|
89
|
+
};
|
90
|
+
'&.is-pressed': {
|
91
|
+
textDecoration: string;
|
92
|
+
};
|
93
|
+
'&.is-focused': {
|
94
|
+
textDecoration: string;
|
95
|
+
};
|
96
|
+
'&.is-visited': {
|
97
|
+
textDecoration: string;
|
98
|
+
};
|
99
|
+
fontSize: string;
|
100
|
+
fontFamily: string;
|
101
|
+
py: string;
|
102
|
+
px: string;
|
103
|
+
fontWeight: string;
|
104
|
+
color: string;
|
105
|
+
textDecoration: string;
|
106
|
+
borderRadius: string;
|
107
|
+
};
|
108
|
+
accountButton: {
|
109
|
+
display: string;
|
110
|
+
width: string;
|
111
|
+
height: string;
|
112
|
+
cursor: string;
|
113
|
+
p: string;
|
114
|
+
px: string;
|
115
|
+
py: string;
|
116
|
+
border: string;
|
117
|
+
borderRadius: string;
|
118
|
+
bg: string;
|
119
|
+
'&.is-hovered': {
|
120
|
+
bg: string;
|
121
|
+
border: string;
|
122
|
+
boxShadow: string;
|
123
|
+
};
|
124
|
+
'&.is-pressed': {
|
125
|
+
bg: string;
|
126
|
+
border: string;
|
127
|
+
boxShadow: string;
|
128
|
+
};
|
129
|
+
'&.is-focused': {
|
130
|
+
bg: string;
|
131
|
+
outline: string;
|
132
|
+
outlineColor: string;
|
133
|
+
};
|
134
|
+
'&.is-visited': {
|
135
|
+
bg: string;
|
136
|
+
};
|
137
|
+
minWidth: string;
|
138
|
+
};
|
139
|
+
};
|
140
|
+
export default navigationHeader;
|
@@ -0,0 +1,131 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
|
4
|
+
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
|
5
|
+
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
6
|
+
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
|
7
|
+
var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
|
8
|
+
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
|
9
|
+
var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
|
10
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
11
|
+
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
12
|
+
_Object$defineProperty(exports, "__esModule", {
|
13
|
+
value: true
|
14
|
+
});
|
15
|
+
exports["default"] = void 0;
|
16
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
17
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
18
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
19
|
+
var defaultFocus = {
|
20
|
+
outline: '2px solid',
|
21
|
+
outlineColor: 'active'
|
22
|
+
};
|
23
|
+
var link = {
|
24
|
+
fontSize: 'md',
|
25
|
+
fontFamily: 'standard',
|
26
|
+
py: 'sm',
|
27
|
+
px: 'md',
|
28
|
+
fontWeight: '1',
|
29
|
+
color: 'text.primary',
|
30
|
+
textDecoration: 'none',
|
31
|
+
borderRadius: '3px',
|
32
|
+
'&.is-hovered': {
|
33
|
+
textDecoration: 'none',
|
34
|
+
color: 'text.secondary'
|
35
|
+
},
|
36
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
37
|
+
textDecoration: 'none'
|
38
|
+
}),
|
39
|
+
'&.is-pressed': {
|
40
|
+
textDecoration: 'none'
|
41
|
+
},
|
42
|
+
'&.is-visited': {
|
43
|
+
textDecoration: 'none'
|
44
|
+
}
|
45
|
+
};
|
46
|
+
var logoBand = _objectSpread(_objectSpread({}, link), {}, {
|
47
|
+
p: 0
|
48
|
+
});
|
49
|
+
var headerPlaceholder = {
|
50
|
+
fontSize: 'lg',
|
51
|
+
ml: 'md',
|
52
|
+
color: 'text.primary',
|
53
|
+
lineHeight: 'body',
|
54
|
+
fontWeight: '1',
|
55
|
+
'&.is-hovered': {
|
56
|
+
color: 'text.secondary'
|
57
|
+
}
|
58
|
+
};
|
59
|
+
var navigationHeader = {
|
60
|
+
headerPlaceholder: headerPlaceholder,
|
61
|
+
link: link,
|
62
|
+
logoBand: logoBand,
|
63
|
+
container: {
|
64
|
+
fontFamily: 'standard',
|
65
|
+
borderBottom: '1px solid',
|
66
|
+
borderColor: 'gray-300',
|
67
|
+
bg: '#fff',
|
68
|
+
height: '4.5rem',
|
69
|
+
justifyContent: 'center'
|
70
|
+
},
|
71
|
+
wrapper: {
|
72
|
+
px: ['1.5rem', '1.5rem', '1.5rem', '3rem', '3rem', '3rem'],
|
73
|
+
maxWidth: '1540px',
|
74
|
+
mx: 'auto',
|
75
|
+
width: '100%'
|
76
|
+
},
|
77
|
+
dropdownMenu: {
|
78
|
+
maxWidth: 'unset',
|
79
|
+
p: 'sm',
|
80
|
+
'& > li': {
|
81
|
+
p: '0'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
dropdownMenuItem: _objectSpread(_objectSpread({}, link), {}, {
|
85
|
+
padding: '.675rem 1rem',
|
86
|
+
pr: '2.25rem',
|
87
|
+
'&.is-hovered': {
|
88
|
+
textDecoration: 'none'
|
89
|
+
},
|
90
|
+
'&.is-pressed': {
|
91
|
+
textDecoration: 'none'
|
92
|
+
},
|
93
|
+
'&.is-focused': {
|
94
|
+
textDecoration: 'none'
|
95
|
+
},
|
96
|
+
'&.is-visited': {
|
97
|
+
textDecoration: 'none'
|
98
|
+
}
|
99
|
+
}),
|
100
|
+
accountButton: {
|
101
|
+
display: 'flex',
|
102
|
+
width: 'auto',
|
103
|
+
height: 'auto',
|
104
|
+
cursor: 'pointer',
|
105
|
+
p: '0',
|
106
|
+
px: 'sm',
|
107
|
+
py: '1px',
|
108
|
+
border: 'none',
|
109
|
+
borderRadius: '3px',
|
110
|
+
bg: 'transparent',
|
111
|
+
'&.is-hovered': {
|
112
|
+
bg: 'transparent',
|
113
|
+
border: 'none',
|
114
|
+
boxShadow: 'none'
|
115
|
+
},
|
116
|
+
'&.is-pressed': {
|
117
|
+
bg: 'transparent',
|
118
|
+
border: 'none',
|
119
|
+
boxShadow: 'none'
|
120
|
+
},
|
121
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
122
|
+
bg: 'transparent'
|
123
|
+
}),
|
124
|
+
'&.is-visited': {
|
125
|
+
bg: 'transparent'
|
126
|
+
},
|
127
|
+
minWidth: '50px'
|
128
|
+
}
|
129
|
+
};
|
130
|
+
var _default = navigationHeader;
|
131
|
+
exports["default"] = _default;
|