@pingux/astro 2.84.0-alpha.1 → 2.84.0-alpha.2
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 +5 -2
- package/lib/cjs/components/CodeView/CodeView.styles.d.ts +2 -1
- package/lib/cjs/components/CodeView/CodeView.styles.js +4 -3
- package/lib/cjs/components/Link/Link.js +3 -1
- package/lib/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -0
- package/lib/cjs/components/MenuItem/MenuItem.styles.js +2 -1
- package/lib/cjs/components/Tabs/Tabs.js +0 -1
- package/lib/cjs/components/Tabs/Tabs.style.d.ts +1 -0
- package/lib/cjs/components/Tabs/Tabs.style.js +2 -1
- package/lib/cjs/styles/theme.js +5 -1
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +105 -0
- package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +134 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +278 -6
- package/lib/cjs/styles/themes/next-gen/next-gen.js +31 -4
- package/lib/cjs/styles/themes/next-gen/spacing.d.ts +9 -0
- package/lib/cjs/styles/themes/next-gen/spacing.js +17 -0
- package/lib/cjs/styles/themes/next-gen/text.d.ts +2 -2
- package/lib/cjs/styles/themes/next-gen/text.js +8 -13
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +36 -3
- package/lib/cjs/styles/themes/next-gen/variants/button.js +25 -5
- package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +20 -0
- package/lib/cjs/styles/themes/next-gen/variants/cards.js +28 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +56 -0
- package/lib/cjs/styles/themes/next-gen/variants/links.js +62 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +7 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +9 -2
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +31 -1
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +38 -5
- package/lib/cjs/types/codeView.d.ts +1 -0
- package/lib/cjs/types/link.d.ts +1 -0
- package/lib/components/CodeView/CodeView.js +5 -2
- package/lib/components/CodeView/CodeView.styles.js +4 -3
- package/lib/components/Link/Link.js +3 -1
- package/lib/components/MenuItem/MenuItem.styles.js +2 -1
- package/lib/components/Tabs/Tabs.js +0 -1
- package/lib/components/Tabs/Tabs.style.js +2 -1
- package/lib/styles/theme.js +5 -1
- package/lib/styles/themes/next-gen/codeView/codeView.js +126 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
- package/lib/styles/themes/next-gen/next-gen.js +31 -4
- package/lib/styles/themes/next-gen/spacing.js +9 -0
- package/lib/styles/themes/next-gen/text.js +8 -13
- package/lib/styles/themes/next-gen/variants/button.js +25 -5
- package/lib/styles/themes/next-gen/variants/cards.js +20 -0
- package/lib/styles/themes/next-gen/variants/links.js +54 -0
- package/lib/styles/themes/next-gen/variants/text.js +9 -2
- package/lib/styles/themes/next-gen/variants/variants.js +38 -5
- package/package.json +1 -1
@@ -1,5 +1,6 @@
|
|
1
1
|
import './open_sans.css';
|
2
2
|
declare const _default: {
|
3
|
+
breakpoints: string[];
|
3
4
|
name: string;
|
4
5
|
colors: {
|
5
6
|
critical: {
|
@@ -197,11 +198,12 @@ declare const _default: {
|
|
197
198
|
buttons: {
|
198
199
|
neutral: {
|
199
200
|
'&.is-pressed': {
|
200
|
-
|
201
|
+
color: string;
|
201
202
|
};
|
202
203
|
'&.is-hovered': {
|
203
|
-
|
204
|
+
borderColor: string;
|
204
205
|
};
|
206
|
+
transition: string;
|
205
207
|
alignItems: string;
|
206
208
|
justifyContent: string;
|
207
209
|
minWidth: string;
|
@@ -230,7 +232,6 @@ declare const _default: {
|
|
230
232
|
outlineColor: string;
|
231
233
|
outlineOffset: string;
|
232
234
|
};
|
233
|
-
transition: string;
|
234
235
|
color: string;
|
235
236
|
};
|
236
237
|
primary: {
|
@@ -613,6 +614,7 @@ declare const _default: {
|
|
613
614
|
};
|
614
615
|
iconButtons: {
|
615
616
|
base: {
|
617
|
+
cursor: string;
|
616
618
|
transition: string;
|
617
619
|
outline: string;
|
618
620
|
borderRadius: string;
|
@@ -696,6 +698,7 @@ declare const _default: {
|
|
696
698
|
position: string;
|
697
699
|
top: number;
|
698
700
|
right: number;
|
701
|
+
cursor: string;
|
699
702
|
transition: string;
|
700
703
|
outline: string;
|
701
704
|
borderRadius: string;
|
@@ -759,6 +762,7 @@ declare const _default: {
|
|
759
762
|
};
|
760
763
|
};
|
761
764
|
messageCloseButton: {
|
765
|
+
cursor: string;
|
762
766
|
transition: string;
|
763
767
|
outline: string;
|
764
768
|
borderRadius: string;
|
@@ -786,11 +790,41 @@ declare const _default: {
|
|
786
790
|
};
|
787
791
|
};
|
788
792
|
};
|
793
|
+
headerNav: {
|
794
|
+
borderRadius: string;
|
795
|
+
path: {
|
796
|
+
fill: string;
|
797
|
+
};
|
798
|
+
px: string;
|
799
|
+
py: string;
|
800
|
+
width: string;
|
801
|
+
'&.is-hovered': {
|
802
|
+
path: {
|
803
|
+
fill: string;
|
804
|
+
};
|
805
|
+
};
|
806
|
+
'&.is-pressed': {
|
807
|
+
path: {
|
808
|
+
fill: string;
|
809
|
+
};
|
810
|
+
};
|
811
|
+
cursor: string;
|
812
|
+
transition: string;
|
813
|
+
outline: string;
|
814
|
+
border: string;
|
815
|
+
borderColor: string;
|
816
|
+
'&.is-focused': {
|
817
|
+
outline: string;
|
818
|
+
outlineColor: string;
|
819
|
+
outlineOffset: string;
|
820
|
+
};
|
821
|
+
};
|
789
822
|
};
|
790
823
|
modalCloseButton: {
|
791
824
|
position: string;
|
792
825
|
top: number;
|
793
826
|
right: number;
|
827
|
+
cursor: string;
|
794
828
|
transition: string;
|
795
829
|
outline: string;
|
796
830
|
borderRadius: string;
|
@@ -939,8 +973,8 @@ declare const _default: {
|
|
939
973
|
};
|
940
974
|
};
|
941
975
|
fontSizes: {
|
942
|
-
xs:
|
943
|
-
sm:
|
976
|
+
xs: string;
|
977
|
+
sm: string;
|
944
978
|
md: string;
|
945
979
|
lg: string;
|
946
980
|
xl: string;
|
@@ -956,6 +990,7 @@ declare const _default: {
|
|
956
990
|
};
|
957
991
|
lineHeights: {
|
958
992
|
body: string;
|
993
|
+
md: string;
|
959
994
|
};
|
960
995
|
text: {
|
961
996
|
h1: {
|
@@ -1005,6 +1040,7 @@ declare const _default: {
|
|
1005
1040
|
};
|
1006
1041
|
placeholder: {
|
1007
1042
|
color: string;
|
1043
|
+
fontWeight: number;
|
1008
1044
|
};
|
1009
1045
|
paragraph: {
|
1010
1046
|
lineHeight: string;
|
@@ -1012,11 +1048,29 @@ declare const _default: {
|
|
1012
1048
|
listViewItemText: {
|
1013
1049
|
fontWeight: number;
|
1014
1050
|
};
|
1051
|
+
small: {
|
1052
|
+
fontSize: string;
|
1053
|
+
color: string;
|
1054
|
+
fontFamily: string;
|
1055
|
+
lineHeight: string;
|
1056
|
+
};
|
1015
1057
|
};
|
1016
1058
|
fonts: {
|
1017
1059
|
standard: string;
|
1018
1060
|
body: string;
|
1019
1061
|
heading: string;
|
1062
|
+
codeView: string;
|
1063
|
+
};
|
1064
|
+
sizes: {
|
1065
|
+
container: {
|
1066
|
+
xs: string[];
|
1067
|
+
sm: string[];
|
1068
|
+
md: string[];
|
1069
|
+
lg: string[];
|
1070
|
+
xl: string[];
|
1071
|
+
xx: string[];
|
1072
|
+
fluid: string[];
|
1073
|
+
};
|
1020
1074
|
};
|
1021
1075
|
badges: {
|
1022
1076
|
primary: {
|
@@ -1194,6 +1248,88 @@ declare const _default: {
|
|
1194
1248
|
};
|
1195
1249
|
};
|
1196
1250
|
};
|
1251
|
+
space: {
|
1252
|
+
xs: string;
|
1253
|
+
sm: string;
|
1254
|
+
md: string;
|
1255
|
+
lg: string;
|
1256
|
+
xl: string;
|
1257
|
+
xx: string;
|
1258
|
+
};
|
1259
|
+
links: {
|
1260
|
+
nextGen: {
|
1261
|
+
color: string;
|
1262
|
+
fontSize: string;
|
1263
|
+
py: string;
|
1264
|
+
px: string;
|
1265
|
+
textDecoration: string;
|
1266
|
+
borderRadius: string;
|
1267
|
+
lineHeight: string;
|
1268
|
+
minHeight: string;
|
1269
|
+
fontFamily: string;
|
1270
|
+
'&.is-hovered': {
|
1271
|
+
color: string;
|
1272
|
+
};
|
1273
|
+
'&.is-pressed': {
|
1274
|
+
color: string;
|
1275
|
+
};
|
1276
|
+
};
|
1277
|
+
sideNav: {
|
1278
|
+
px: string;
|
1279
|
+
display: string;
|
1280
|
+
position: string;
|
1281
|
+
'&:before': {
|
1282
|
+
position: string;
|
1283
|
+
display: string;
|
1284
|
+
borderRadius: string;
|
1285
|
+
content: string;
|
1286
|
+
top: string;
|
1287
|
+
right: string;
|
1288
|
+
bottom: number;
|
1289
|
+
left: string;
|
1290
|
+
transition: string;
|
1291
|
+
};
|
1292
|
+
'&.is-selected': {
|
1293
|
+
color: string;
|
1294
|
+
'&:before': {
|
1295
|
+
backgroundColor: string;
|
1296
|
+
};
|
1297
|
+
};
|
1298
|
+
color: string;
|
1299
|
+
fontSize: string;
|
1300
|
+
py: string;
|
1301
|
+
textDecoration: string;
|
1302
|
+
borderRadius: string;
|
1303
|
+
lineHeight: string;
|
1304
|
+
minHeight: string;
|
1305
|
+
fontFamily: string;
|
1306
|
+
'&.is-hovered': {
|
1307
|
+
color: string;
|
1308
|
+
};
|
1309
|
+
'&.is-pressed': {
|
1310
|
+
color: string;
|
1311
|
+
};
|
1312
|
+
};
|
1313
|
+
};
|
1314
|
+
cards: {
|
1315
|
+
interactive: {
|
1316
|
+
boxShadow: string;
|
1317
|
+
borderRadius: string;
|
1318
|
+
border: string;
|
1319
|
+
borderColor: string;
|
1320
|
+
transition: string;
|
1321
|
+
'&.is-focused': {
|
1322
|
+
outline: string;
|
1323
|
+
outlineColor: string;
|
1324
|
+
outlineOffset: string;
|
1325
|
+
};
|
1326
|
+
'&.is-hovered': {
|
1327
|
+
outline: string;
|
1328
|
+
borderColor: string;
|
1329
|
+
bg: string;
|
1330
|
+
};
|
1331
|
+
};
|
1332
|
+
};
|
1197
1333
|
variants: {
|
1198
1334
|
navBar: {
|
1199
1335
|
container: {
|
@@ -1434,6 +1570,9 @@ declare const _default: {
|
|
1434
1570
|
bg: string;
|
1435
1571
|
};
|
1436
1572
|
};
|
1573
|
+
separator: {
|
1574
|
+
my: string;
|
1575
|
+
};
|
1437
1576
|
};
|
1438
1577
|
avatar: {
|
1439
1578
|
xl: {
|
@@ -1470,8 +1609,12 @@ declare const _default: {
|
|
1470
1609
|
};
|
1471
1610
|
};
|
1472
1611
|
listViewItem: {
|
1612
|
+
rightOfData: {
|
1613
|
+
flexShrink: number;
|
1614
|
+
whiteSpace: string;
|
1615
|
+
};
|
1473
1616
|
iconContainer: {
|
1474
|
-
|
1617
|
+
ml: string;
|
1475
1618
|
};
|
1476
1619
|
styledListItem: {
|
1477
1620
|
bg: string;
|
@@ -1564,6 +1707,135 @@ declare const _default: {
|
|
1564
1707
|
fontSize: string;
|
1565
1708
|
};
|
1566
1709
|
};
|
1710
|
+
codeView: {
|
1711
|
+
wrapper: {
|
1712
|
+
backgroundColor: string;
|
1713
|
+
borderRadius: string;
|
1714
|
+
'> button >svg': {
|
1715
|
+
color: string;
|
1716
|
+
path: {
|
1717
|
+
fill: string;
|
1718
|
+
};
|
1719
|
+
};
|
1720
|
+
'> pre': {
|
1721
|
+
p: string;
|
1722
|
+
};
|
1723
|
+
};
|
1724
|
+
};
|
1725
|
+
tabs: {
|
1726
|
+
gap: string;
|
1727
|
+
};
|
1728
|
+
menu: {
|
1729
|
+
p: string;
|
1730
|
+
border: string;
|
1731
|
+
borderColor: string;
|
1732
|
+
};
|
1733
|
+
};
|
1734
|
+
overrides: {
|
1735
|
+
codeView: {
|
1736
|
+
theme: {
|
1737
|
+
plain: {
|
1738
|
+
color: string;
|
1739
|
+
backgroundColor: string;
|
1740
|
+
};
|
1741
|
+
styles: ({
|
1742
|
+
types: string[];
|
1743
|
+
style: {
|
1744
|
+
color: string;
|
1745
|
+
background?: undefined;
|
1746
|
+
fontWeight?: undefined;
|
1747
|
+
cursor?: undefined;
|
1748
|
+
};
|
1749
|
+
} | {
|
1750
|
+
types: string[];
|
1751
|
+
style: {
|
1752
|
+
color: string;
|
1753
|
+
background: string;
|
1754
|
+
fontWeight?: undefined;
|
1755
|
+
cursor?: undefined;
|
1756
|
+
};
|
1757
|
+
} | {
|
1758
|
+
types: string[];
|
1759
|
+
style: {
|
1760
|
+
fontWeight: string;
|
1761
|
+
color?: undefined;
|
1762
|
+
background?: undefined;
|
1763
|
+
cursor?: undefined;
|
1764
|
+
};
|
1765
|
+
} | {
|
1766
|
+
types: string[];
|
1767
|
+
style: {
|
1768
|
+
cursor: string;
|
1769
|
+
color?: undefined;
|
1770
|
+
background?: undefined;
|
1771
|
+
fontWeight?: undefined;
|
1772
|
+
};
|
1773
|
+
})[];
|
1774
|
+
};
|
1775
|
+
wrapper: {
|
1776
|
+
bg: string;
|
1777
|
+
border: string;
|
1778
|
+
borderColor: string;
|
1779
|
+
width: number;
|
1780
|
+
height: number;
|
1781
|
+
my: string;
|
1782
|
+
overflow: string;
|
1783
|
+
alignItems: string;
|
1784
|
+
'&.is-focused, &:focus': {
|
1785
|
+
boxShadow: string;
|
1786
|
+
outline: string;
|
1787
|
+
};
|
1788
|
+
pre: {
|
1789
|
+
backgroundColor: string;
|
1790
|
+
padding: string;
|
1791
|
+
height: string;
|
1792
|
+
width: string;
|
1793
|
+
overflowX: string;
|
1794
|
+
overflowY: string;
|
1795
|
+
fontSize: string;
|
1796
|
+
'& .token-line': {
|
1797
|
+
display: string;
|
1798
|
+
alignItems: string;
|
1799
|
+
'& .token': {
|
1800
|
+
whiteSpace: string;
|
1801
|
+
wordBreak: string;
|
1802
|
+
};
|
1803
|
+
};
|
1804
|
+
fontFamily: string;
|
1805
|
+
lineHeight: number;
|
1806
|
+
};
|
1807
|
+
'&.has-no-copy-button': {
|
1808
|
+
pre: {
|
1809
|
+
p: string;
|
1810
|
+
};
|
1811
|
+
};
|
1812
|
+
'&.has-line-numbers': {
|
1813
|
+
pre: {
|
1814
|
+
p: string;
|
1815
|
+
overflow: string;
|
1816
|
+
'& .token-line:first-of-type *': {
|
1817
|
+
pt: string;
|
1818
|
+
};
|
1819
|
+
'& .token-line': {
|
1820
|
+
display: string;
|
1821
|
+
'& .token': {
|
1822
|
+
whiteSpace: string;
|
1823
|
+
};
|
1824
|
+
};
|
1825
|
+
};
|
1826
|
+
};
|
1827
|
+
};
|
1828
|
+
lineNo: {
|
1829
|
+
display: string;
|
1830
|
+
userSelect: string;
|
1831
|
+
px: string;
|
1832
|
+
m: string;
|
1833
|
+
bg: string;
|
1834
|
+
minWidth: number;
|
1835
|
+
color: string;
|
1836
|
+
lineHeight: string;
|
1837
|
+
};
|
1838
|
+
};
|
1567
1839
|
};
|
1568
1840
|
};
|
1569
1841
|
export default _default;
|
@@ -18,36 +18,63 @@ exports["default"] = void 0;
|
|
18
18
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
19
19
|
var _deepmerge = _interopRequireDefault(require("deepmerge"));
|
20
20
|
var _theme = _interopRequireDefault(require("../../theme.js"));
|
21
|
+
var _codeView = _interopRequireDefault(require("./codeView/codeView"));
|
21
22
|
var _colors = _interopRequireDefault(require("./colors/colors"));
|
22
23
|
var _button = _interopRequireDefault(require("./variants/button"));
|
24
|
+
var _cards = _interopRequireDefault(require("./variants/cards"));
|
25
|
+
var _links = _interopRequireDefault(require("./variants/links"));
|
23
26
|
var _text = require("./variants/text");
|
24
27
|
var _variants = _interopRequireWildcard(require("./variants/variants"));
|
25
28
|
var _forms = _interopRequireDefault(require("./forms"));
|
29
|
+
var _spacing = _interopRequireDefault(require("./spacing"));
|
26
30
|
var _text2 = require("./text");
|
27
31
|
require("./open_sans.css");
|
28
32
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
29
33
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { _Object$defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
30
34
|
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; }
|
31
35
|
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; }
|
36
|
+
var breakpoints = ['0px', '576px', '768px', '992px', '1200px', '1600px'];
|
32
37
|
var nextGenTheme = {
|
33
38
|
name: 'Next Gen',
|
34
39
|
colors: _colors["default"],
|
40
|
+
breakpoints: breakpoints,
|
35
41
|
buttons: _button["default"],
|
36
42
|
forms: _forms["default"],
|
37
43
|
fontSizes: _text2.fontSizes,
|
38
44
|
fontWeights: _text2.fontWeights,
|
39
45
|
lineHeights: {
|
40
|
-
body: '1.5'
|
46
|
+
body: '1.5',
|
47
|
+
md: '1.75'
|
41
48
|
},
|
42
49
|
text: _text.text,
|
43
50
|
fonts: {
|
44
51
|
standard: '"Open Sans", sans-serif',
|
45
52
|
body: '"Open Sans", sans-serif',
|
46
|
-
heading: '"Open Sans", sans-serif'
|
53
|
+
heading: '"Open Sans", sans-serif',
|
54
|
+
codeView: 'Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace'
|
55
|
+
},
|
56
|
+
sizes: {
|
57
|
+
container: {
|
58
|
+
xs: ['100%', '540px', '720px', '960px', '1140px', '1540px'],
|
59
|
+
sm: ['100%', '540px', '720px', '960px', '1140px', '1540px'],
|
60
|
+
md: ['100%', '100%', '720px', '960px', '1140px', '1540px'],
|
61
|
+
lg: ['100%', '100%', '100%', '960px', '1140px', '1540px'],
|
62
|
+
xl: ['100%', '100%', '100%', '100%', '1140px', '1540px'],
|
63
|
+
xx: ['100%', '100%', '100%', '100%', '100%', '1540px'],
|
64
|
+
fluid: ['100%', '100%', '100%', '100%', '100%', '100%']
|
65
|
+
}
|
47
66
|
},
|
48
67
|
badges: _variants.badges,
|
49
|
-
|
68
|
+
space: _spacing["default"],
|
69
|
+
links: _links["default"],
|
70
|
+
cards: _cards["default"],
|
71
|
+
variants: _variants["default"],
|
72
|
+
overrides: {
|
73
|
+
codeView: _codeView["default"]
|
74
|
+
}
|
50
75
|
};
|
51
76
|
var mergedTheme = (0, _deepmerge["default"])(_theme["default"], nextGenTheme);
|
52
|
-
var _default = _objectSpread({}, mergedTheme)
|
77
|
+
var _default = _objectSpread(_objectSpread({}, mergedTheme), {}, {
|
78
|
+
breakpoints: breakpoints
|
79
|
+
});
|
53
80
|
exports["default"] = _default;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
"use strict";
|
2
|
+
|
3
|
+
var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
|
4
|
+
_Object$defineProperty(exports, "__esModule", {
|
5
|
+
value: true
|
6
|
+
});
|
7
|
+
exports["default"] = void 0;
|
8
|
+
var scale = {
|
9
|
+
xs: '.25rem',
|
10
|
+
sm: '.5rem',
|
11
|
+
md: '1rem',
|
12
|
+
lg: '1.5rem',
|
13
|
+
xl: '3rem',
|
14
|
+
xx: '4rem'
|
15
|
+
};
|
16
|
+
var _default = scale;
|
17
|
+
exports["default"] = _default;
|
@@ -8,20 +8,15 @@ _Object$defineProperty(exports, "__esModule", {
|
|
8
8
|
exports.fontWeights = exports.fontSizes = void 0;
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
|
10
10
|
var _fontWeights;
|
11
|
-
var baseSize = 15;
|
12
|
-
var majorMultiplier = 1.15;
|
13
|
-
var getFontSize = function getFontSize(major) {
|
14
|
-
return Math.round(baseSize * Math.pow(majorMultiplier, major));
|
15
|
-
};
|
16
11
|
var fontSizes = {
|
17
|
-
'xs':
|
18
|
-
'sm':
|
19
|
-
'md': '
|
20
|
-
'lg': '
|
21
|
-
'xl': '
|
22
|
-
'xx': '
|
23
|
-
'xxx': '
|
12
|
+
'xs': '0.75rem',
|
13
|
+
'sm': '0.875rem',
|
14
|
+
'md': '.9375rem',
|
15
|
+
'lg': '1.171875rem',
|
16
|
+
'xl': '1.40625rem',
|
17
|
+
'xx': '1.640625rem',
|
18
|
+
'xxx': '2.109375rem'
|
24
19
|
};
|
25
20
|
exports.fontSizes = fontSizes;
|
26
|
-
var fontWeights = (_fontWeights = {}, (0, _defineProperty2["default"])(_fontWeights, -1,
|
21
|
+
var fontWeights = (_fontWeights = {}, (0, _defineProperty2["default"])(_fontWeights, -1, 300), (0, _defineProperty2["default"])(_fontWeights, 0, 400), (0, _defineProperty2["default"])(_fontWeights, 1, 400), (0, _defineProperty2["default"])(_fontWeights, 2, 600), (0, _defineProperty2["default"])(_fontWeights, 3, 600), _fontWeights);
|
27
22
|
exports.fontWeights = fontWeights;
|
@@ -1,11 +1,12 @@
|
|
1
1
|
declare const buttons: {
|
2
2
|
neutral: {
|
3
3
|
'&.is-pressed': {
|
4
|
-
|
4
|
+
color: string;
|
5
5
|
};
|
6
6
|
'&.is-hovered': {
|
7
|
-
|
7
|
+
borderColor: string;
|
8
8
|
};
|
9
|
+
transition: string;
|
9
10
|
alignItems: string;
|
10
11
|
justifyContent: string;
|
11
12
|
minWidth: string;
|
@@ -34,7 +35,6 @@ declare const buttons: {
|
|
34
35
|
outlineColor: string;
|
35
36
|
outlineOffset: string;
|
36
37
|
};
|
37
|
-
transition: string;
|
38
38
|
color: string;
|
39
39
|
};
|
40
40
|
primary: {
|
@@ -417,6 +417,7 @@ declare const buttons: {
|
|
417
417
|
};
|
418
418
|
iconButtons: {
|
419
419
|
base: {
|
420
|
+
cursor: string;
|
420
421
|
transition: string;
|
421
422
|
outline: string;
|
422
423
|
borderRadius: string;
|
@@ -500,6 +501,7 @@ declare const buttons: {
|
|
500
501
|
position: string;
|
501
502
|
top: number;
|
502
503
|
right: number;
|
504
|
+
cursor: string;
|
503
505
|
transition: string;
|
504
506
|
outline: string;
|
505
507
|
borderRadius: string;
|
@@ -563,6 +565,7 @@ declare const buttons: {
|
|
563
565
|
};
|
564
566
|
};
|
565
567
|
messageCloseButton: {
|
568
|
+
cursor: string;
|
566
569
|
transition: string;
|
567
570
|
outline: string;
|
568
571
|
borderRadius: string;
|
@@ -590,11 +593,41 @@ declare const buttons: {
|
|
590
593
|
};
|
591
594
|
};
|
592
595
|
};
|
596
|
+
headerNav: {
|
597
|
+
borderRadius: string;
|
598
|
+
path: {
|
599
|
+
fill: string;
|
600
|
+
};
|
601
|
+
px: string;
|
602
|
+
py: string;
|
603
|
+
width: string;
|
604
|
+
'&.is-hovered': {
|
605
|
+
path: {
|
606
|
+
fill: string;
|
607
|
+
};
|
608
|
+
};
|
609
|
+
'&.is-pressed': {
|
610
|
+
path: {
|
611
|
+
fill: string;
|
612
|
+
};
|
613
|
+
};
|
614
|
+
cursor: string;
|
615
|
+
transition: string;
|
616
|
+
outline: string;
|
617
|
+
border: string;
|
618
|
+
borderColor: string;
|
619
|
+
'&.is-focused': {
|
620
|
+
outline: string;
|
621
|
+
outlineColor: string;
|
622
|
+
outlineOffset: string;
|
623
|
+
};
|
624
|
+
};
|
593
625
|
};
|
594
626
|
modalCloseButton: {
|
595
627
|
position: string;
|
596
628
|
top: number;
|
597
629
|
right: number;
|
630
|
+
cursor: string;
|
598
631
|
transition: string;
|
599
632
|
outline: string;
|
600
633
|
borderRadius: string;
|
@@ -54,14 +54,14 @@ var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
|
54
54
|
},
|
55
55
|
'&.is-focused': _objectSpread({}, defaultFocus)
|
56
56
|
});
|
57
|
-
var neutral = _objectSpread(_objectSpread({
|
57
|
+
var neutral = _objectSpread(_objectSpread(_objectSpread({
|
58
58
|
color: 'gray-600'
|
59
|
-
}, buttonBase), {}, {
|
59
|
+
}, buttonBase), transitions), {}, {
|
60
60
|
'&.is-pressed': {
|
61
|
-
|
61
|
+
color: 'white'
|
62
62
|
},
|
63
63
|
'&.is-hovered': {
|
64
|
-
|
64
|
+
borderColor: 'primary'
|
65
65
|
}
|
66
66
|
});
|
67
67
|
var primary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
@@ -159,6 +159,7 @@ var primaryWithIcon = _objectSpread(_objectSpread({}, primary), {}, {
|
|
159
159
|
color: 'white'
|
160
160
|
});
|
161
161
|
var baseIconButton = {
|
162
|
+
cursor: 'pointer',
|
162
163
|
transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out',
|
163
164
|
outline: 'none',
|
164
165
|
borderRadius: '28px',
|
@@ -238,7 +239,26 @@ var iconButtons = {
|
|
238
239
|
}
|
239
240
|
}, transitions)
|
240
241
|
},
|
241
|
-
messageCloseButton: _objectSpread({}, baseIconButton)
|
242
|
+
messageCloseButton: _objectSpread({}, baseIconButton),
|
243
|
+
headerNav: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
244
|
+
borderRadius: '4px',
|
245
|
+
path: {
|
246
|
+
fill: 'gray-800'
|
247
|
+
},
|
248
|
+
px: 'md',
|
249
|
+
py: 'sm',
|
250
|
+
width: '56px',
|
251
|
+
'&.is-hovered': {
|
252
|
+
path: {
|
253
|
+
fill: 'gray-500'
|
254
|
+
}
|
255
|
+
},
|
256
|
+
'&.is-pressed': {
|
257
|
+
path: {
|
258
|
+
fill: 'gray-500'
|
259
|
+
}
|
260
|
+
}
|
261
|
+
})
|
242
262
|
};
|
243
263
|
var buttons = {
|
244
264
|
neutral: neutral,
|
@@ -0,0 +1,20 @@
|
|
1
|
+
declare const _default: {
|
2
|
+
interactive: {
|
3
|
+
boxShadow: string;
|
4
|
+
borderRadius: string;
|
5
|
+
border: string;
|
6
|
+
borderColor: string;
|
7
|
+
transition: string;
|
8
|
+
'&.is-focused': {
|
9
|
+
outline: string;
|
10
|
+
outlineColor: string;
|
11
|
+
outlineOffset: string;
|
12
|
+
};
|
13
|
+
'&.is-hovered': {
|
14
|
+
outline: string;
|
15
|
+
borderColor: string;
|
16
|
+
bg: string;
|
17
|
+
};
|
18
|
+
};
|
19
|
+
};
|
20
|
+
export default _default;
|