@elliemae/ds-system 1.60.0 → 2.0.0-alpha.12
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/cjs/arithmetic.js +12 -20
- package/cjs/constants.js +3 -4
- package/cjs/globalStyles.js +7 -9
- package/cjs/index.js +27 -17
- package/cjs/mobileUtilities.js +7 -17
- package/cjs/spaceUtilities.js +11 -20
- package/cjs/styled/index.d.js +2 -0
- package/cjs/styled/index.js +124 -0
- package/cjs/styled/styleGetters.js +44 -0
- package/cjs/styled/types.js +12 -0
- package/cjs/styled/utils.js +24 -0
- package/cjs/th.js +32 -0
- package/cjs/theme.js +1 -2
- package/cjs/themeProviderHOC.js +18 -12
- package/cjs/utils.js +52 -84
- package/esm/arithmetic.js +12 -16
- package/esm/constants.js +3 -4
- package/esm/globalStyles.js +7 -9
- package/esm/index.js +4 -9
- package/esm/mobileUtilities.js +6 -12
- package/esm/spaceUtilities.js +11 -20
- package/esm/styled/index.d.js +1 -0
- package/esm/styled/index.js +115 -0
- package/esm/styled/styleGetters.js +38 -0
- package/esm/styled/types.js +1 -0
- package/esm/styled/utils.js +18 -0
- package/esm/th.js +28 -0
- package/esm/theme.js +1 -2
- package/esm/themeProviderHOC.js +15 -10
- package/esm/utils.js +31 -71
- package/package.json +83 -12
- package/types/arithmetic.d.ts +5 -0
- package/types/constants.d.ts +11 -0
- package/types/globalStyles.d.ts +1 -0
- package/types/index.d.ts +9 -0
- package/types/mobileUtilities.d.ts +4 -0
- package/types/spaceUtilities.d.ts +13 -0
- package/types/styled/index.d.ts +2 -0
- package/types/styled/styleGetters.d.ts +4 -0
- package/types/styled/types.d.ts +28 -0
- package/types/styled/utils.d.ts +6 -0
- package/types/tests/arithmetic.test.d.ts +1 -0
- package/types/th.d.ts +14 -0
- package/types/theme.d.ts +2 -0
- package/types/themeProviderHOC.d.ts +2 -0
- package/types/utils.d.ts +27 -0
- package/arithmetic/package.json +0 -10
- package/cjs/arithmetic.js.map +0 -1
- package/cjs/constants.js.map +0 -1
- package/cjs/globalStyles.js.map +0 -1
- package/cjs/index.js.map +0 -1
- package/cjs/mobileUtilities.js.map +0 -1
- package/cjs/spaceUtilities.js.map +0 -1
- package/cjs/theme.js.map +0 -1
- package/cjs/themeProviderHOC.js.map +0 -1
- package/cjs/utils.js.map +0 -1
- package/constants/package.json +0 -10
- package/esm/arithmetic.js.map +0 -1
- package/esm/constants.js.map +0 -1
- package/esm/globalStyles.js.map +0 -1
- package/esm/index.js.map +0 -1
- package/esm/mobileUtilities.js.map +0 -1
- package/esm/spaceUtilities.js.map +0 -1
- package/esm/theme.js.map +0 -1
- package/esm/themeProviderHOC.js.map +0 -1
- package/esm/utils.js.map +0 -1
- package/globalStyles/package.json +0 -10
- package/mobileUtilities/package.json +0 -10
- package/spaceUtilities/package.json +0 -10
- package/theme/package.json +0 -10
- package/themeProviderHOC/package.json +0 -10
- package/utils/package.json +0 -10
package/esm/theme.js
CHANGED
package/esm/themeProviderHOC.js
CHANGED
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import
|
|
1
|
+
import 'core-js/modules/esnext.async-iterator.filter.js';
|
|
2
|
+
import 'core-js/modules/esnext.iterator.constructor.js';
|
|
3
|
+
import 'core-js/modules/esnext.iterator.filter.js';
|
|
4
|
+
import 'core-js/modules/esnext.async-iterator.for-each.js';
|
|
5
|
+
import 'core-js/modules/esnext.iterator.for-each.js';
|
|
6
|
+
import _jsx2 from '@babel/runtime/helpers/esm/jsx';
|
|
7
|
+
import _defineProperty from '@babel/runtime/helpers/esm/defineProperty';
|
|
8
|
+
import 'react';
|
|
2
9
|
import { ThemeProvider } from 'styled-components';
|
|
3
10
|
import { theme } from './theme.js';
|
|
4
|
-
import '
|
|
11
|
+
import { jsx } from 'react/jsx-runtime';
|
|
5
12
|
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
13
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
14
|
+
|
|
15
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
16
|
+
const themeProviderHOC = Component => props => /*#__PURE__*/_jsx2(ThemeProvider, {
|
|
17
|
+
theme: theme
|
|
18
|
+
}, void 0, /*#__PURE__*/jsx(Component, _objectSpread({}, props)));
|
|
13
19
|
|
|
14
20
|
export { themeProviderHOC };
|
|
15
|
-
//# sourceMappingURL=themeProviderHOC.js.map
|
package/esm/utils.js
CHANGED
|
@@ -1,27 +1,14 @@
|
|
|
1
|
-
import _taggedTemplateLiteral from '@babel/runtime/helpers/esm/taggedTemplateLiteral';
|
|
2
1
|
import { lighten } from 'polished';
|
|
3
2
|
export { rgba } from 'polished';
|
|
4
3
|
import { reduce } from 'lodash';
|
|
5
4
|
import { theme } from './theme.js';
|
|
6
5
|
import { toMobile } from './mobileUtilities.js';
|
|
7
|
-
import '
|
|
8
|
-
|
|
9
|
-
import 'react';
|
|
10
|
-
import './constants.js';
|
|
6
|
+
import { css, keyframes as keyframes$1 } from 'styled-components';
|
|
7
|
+
export { createGlobalStyle, css, keyframes as kfrm, useTheme, withTheme } from 'styled-components';
|
|
11
8
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var styled = require('styled-components');
|
|
15
|
-
|
|
16
|
-
var css = styled.css;
|
|
17
|
-
var kfrm = styled.keyframes;
|
|
18
|
-
var withTheme = styled.withTheme;
|
|
19
|
-
var useTheme = styled.useTheme;
|
|
20
|
-
var createGlobalStyle = styled.createGlobalStyle;
|
|
9
|
+
/* eslint-disable no-shadow */
|
|
21
10
|
function truncate(width) {
|
|
22
|
-
return
|
|
23
|
-
return css(["", " white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"], !!width || props.width ? "width: ".concat(props.width || width, ";") : '');
|
|
24
|
-
};
|
|
11
|
+
return props => css(["", " white-space:nowrap;overflow:hidden;text-overflow:ellipsis;"], !!width || props.width ? "width: ".concat(props.width || width, ";") : '');
|
|
25
12
|
}
|
|
26
13
|
function flexCenter() {
|
|
27
14
|
return "\n display: flex;\n justify-content: center;\n align-items: center;\n ";
|
|
@@ -30,58 +17,46 @@ function disabled() {
|
|
|
30
17
|
return "\n cursor: not-allowed;\n pointer-events: none;\n ";
|
|
31
18
|
}
|
|
32
19
|
function keyframes(obj) {
|
|
33
|
-
return
|
|
34
|
-
return "\n ".concat(result, "\n ").concat(key, "% {\n ").concat(value, "\n }\n ");
|
|
35
|
-
}, ''));
|
|
20
|
+
return keyframes$1(["", ""], reduce(obj, (result, value, key) => "\n ".concat(result, "\n ").concat(key, "% {\n ").concat(value, "\n }\n "), ''));
|
|
36
21
|
} // eslint-disable-next-line max-params
|
|
37
22
|
|
|
38
23
|
function boxShadow(top, left, blur, color) {
|
|
39
|
-
|
|
24
|
+
let inset = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
40
25
|
return "box-shadow: ".concat(inset ? 'inset' : '', " ").concat(top, " ").concat(left, " ").concat(blur, " ").concat(color, ";");
|
|
41
26
|
}
|
|
42
27
|
function color() {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return css(["color:", ";"],
|
|
46
|
-
return props.theme.colors[variant][type];
|
|
47
|
-
});
|
|
28
|
+
let variant = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'neutral';
|
|
29
|
+
let type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 400;
|
|
30
|
+
return css(["color:", ";"], props => props.theme.colors[variant][type]);
|
|
48
31
|
}
|
|
49
32
|
function border() {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
33
|
+
let color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : theme.colors.brand[600];
|
|
34
|
+
let size = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '1px';
|
|
35
|
+
let type = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'solid';
|
|
53
36
|
return "".concat(size, " ").concat(type, " ").concat(color);
|
|
54
37
|
}
|
|
55
38
|
function animation(animationKeyframes, animationLength, animationTimingFn) {
|
|
56
|
-
return
|
|
57
|
-
return css(["animation:", " ", " ", ";"], props.animationKeyframes || animationKeyframes, props.animationLength || animationLength, props.animationTimingFn || animationTimingFn);
|
|
58
|
-
};
|
|
39
|
+
return props => css(["animation:", " ", " ", ";"], props.animationKeyframes || animationKeyframes, props.animationLength || animationLength, props.animationTimingFn || animationTimingFn);
|
|
59
40
|
} // 0.0769
|
|
60
41
|
|
|
61
42
|
function focus() {
|
|
62
|
-
|
|
63
|
-
return
|
|
64
|
-
return css(["outline:none;border:1px solid ", ";box-shadow:inset 0 0 0 1px ", ";border-radius:2px;"], color, lighten(0.3, color));
|
|
65
|
-
};
|
|
43
|
+
let color = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : theme.colors.brand[600];
|
|
44
|
+
return () => css(["outline:none;border:1px solid ", ";box-shadow:inset 0 0 0 1px ", ";border-radius:2px;"], color, lighten(0.3, color));
|
|
66
45
|
}
|
|
67
46
|
function focusAfter(color) {
|
|
68
47
|
return css(["outline:none;position:relative;&:after{content:'';z-index:10;position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none;", "}"], focus(color));
|
|
69
48
|
}
|
|
70
49
|
function active() {
|
|
71
|
-
return
|
|
72
|
-
return css(["outline:none;border:1px solid ", ";border-radius:2px;"], props.theme.colors.brand[700]);
|
|
73
|
-
};
|
|
50
|
+
return props => css(["outline:none;border:1px solid ", ";border-radius:2px;"], props.theme.colors.brand[700]);
|
|
74
51
|
}
|
|
75
52
|
function hover() {
|
|
76
|
-
return
|
|
77
|
-
return css(["outline:1px solid ", ";outline-offset:-1px;"], props.theme.colors.brand[600]);
|
|
78
|
-
};
|
|
53
|
+
return props => css(["outline:1px solid ", ";outline-offset:-1px;"], props.theme.colors.brand[600]);
|
|
79
54
|
}
|
|
80
55
|
function textStyle(type) {
|
|
81
|
-
|
|
56
|
+
let weight = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'regular';
|
|
82
57
|
// eslint-disable-next-line complexity
|
|
83
|
-
return
|
|
84
|
-
|
|
58
|
+
return props => {
|
|
59
|
+
let cssVar = "font-weight: ".concat(props.theme.fontWeights[weight], ";"); // eslint-disable-next-line default-case
|
|
85
60
|
|
|
86
61
|
switch (type) {
|
|
87
62
|
case 'h1':
|
|
@@ -133,21 +108,15 @@ function textStyle(type) {
|
|
|
133
108
|
};
|
|
134
109
|
}
|
|
135
110
|
function iconColor() {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
return css(["fill:", ";"],
|
|
139
|
-
return props.theme.colors[variant][type];
|
|
140
|
-
});
|
|
111
|
+
let variant = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'neutral';
|
|
112
|
+
let type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 400;
|
|
113
|
+
return css(["fill:", ";"], props => props.theme.colors[variant][type]);
|
|
141
114
|
}
|
|
142
115
|
function fakeBorder() {
|
|
143
|
-
return css(["box-shadow:inset 0 0 0 1px ", ";border-radius:2px;"],
|
|
144
|
-
return props.theme.colors.neutral[200];
|
|
145
|
-
});
|
|
116
|
+
return css(["box-shadow:inset 0 0 0 1px ", ";border-radius:2px;"], props => props.theme.colors.neutral[200]);
|
|
146
117
|
}
|
|
147
118
|
function fakeActive() {
|
|
148
|
-
return css(["outline:none;box-shadow:inset 0 0 0 1px ", ";border-radius:2px;"],
|
|
149
|
-
return props.theme.colors.brand[700];
|
|
150
|
-
});
|
|
119
|
+
return css(["outline:none;box-shadow:inset 0 0 0 1px ", ";border-radius:2px;"], props => props.theme.colors.brand[700]);
|
|
151
120
|
}
|
|
152
121
|
function clearFocus() {
|
|
153
122
|
return "\n border: none;\n box-shadow: none;\n ";
|
|
@@ -156,21 +125,12 @@ function buttonLink() {
|
|
|
156
125
|
return "\n background-color: transparent;\n border: 1px solid transparent;\n cursor: pointer;\n ";
|
|
157
126
|
}
|
|
158
127
|
function transition() {
|
|
159
|
-
|
|
128
|
+
let t = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'all 1s ease';
|
|
160
129
|
return "\n transition: ".concat(t, ";\n ");
|
|
161
130
|
}
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
return css(["@media not all and (min-resolution:0.001dpcm){", "}"], styles);
|
|
167
|
-
}
|
|
168
|
-
function onlyFirefox(styles) {
|
|
169
|
-
return css(["@media screen and (min--moz-device-pixel-ratio:0){", "}"], styles);
|
|
170
|
-
}
|
|
171
|
-
function safariAndFirefoxBold(color) {
|
|
172
|
-
return css(["@media not all and (min-resolution:0.001dpcm){font-weight:400;-webkit-font-smoothing:subpixel-antialiased;-webkit-text-stroke:0.4px ", ";}@media screen and (min--moz-device-pixel-ratio:0){font-weight:400;-webkit-font-smoothing:subpixel-antialiased;-webkit-text-stroke:0.4px ", ";}"], color, color);
|
|
173
|
-
}
|
|
131
|
+
const onlySafariAndFirefox = styles => css(["@media not all and (min-resolution:0.001dpcm){", "}@media screen and (min--moz-device-pixel-ratio:0){", "}"], styles, styles);
|
|
132
|
+
const onlySafari = styles => "\n @media not all and (min-resolution: 0.001dpcm) {\n ".concat(styles, "\n }\n ");
|
|
133
|
+
const onlyFirefox = styles => "\n @media screen and (min--moz-device-pixel-ratio: 0) {\n ".concat(styles, "\n }\n ");
|
|
134
|
+
const safariAndFirefoxBold = color => "\n @media not all and (min-resolution: 0.001dpcm) {\n font-weight: 400;\n -webkit-font-smoothing: subpixel-antialiased;\n -webkit-text-stroke: 0.4px ".concat(color, ";\n }\n @media screen and (min--moz-device-pixel-ratio: 0) {\n font-weight: 400;\n -webkit-font-smoothing: subpixel-antialiased;\n -webkit-text-stroke: 0.4px ").concat(color, ";\n }\n");
|
|
174
135
|
|
|
175
|
-
export { active, animation, border, boxShadow, buttonLink, clearFocus, color,
|
|
176
|
-
//# sourceMappingURL=utils.js.map
|
|
136
|
+
export { active, animation, border, boxShadow, buttonLink, clearFocus, color, disabled, fakeActive, fakeBorder, flexCenter, focus, focusAfter, hover, iconColor, keyframes, onlyFirefox, onlySafari, onlySafariAndFirefox, safariAndFirefoxBold, textStyle, transition, truncate };
|
package/package.json
CHANGED
|
@@ -1,14 +1,82 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-alpha.12",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"description": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
5
|
+
"description": "ICE MT - Dimsum - System",
|
|
6
|
+
"module": "./esm/index.js",
|
|
7
|
+
"main": "./cjs/index.js",
|
|
8
|
+
"types": "./types/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./esm/index.js",
|
|
12
|
+
"require": "./cjs/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./utils": {
|
|
15
|
+
"import": "./esm/utils.js",
|
|
16
|
+
"require": "./cjs/utils.js"
|
|
17
|
+
},
|
|
18
|
+
"./themeProviderHOC": {
|
|
19
|
+
"import": "./esm/themeProviderHOC.js",
|
|
20
|
+
"require": "./cjs/themeProviderHOC.js"
|
|
21
|
+
},
|
|
22
|
+
"./theme": {
|
|
23
|
+
"import": "./esm/theme.js",
|
|
24
|
+
"require": "./cjs/theme.js"
|
|
25
|
+
},
|
|
26
|
+
"./th": {
|
|
27
|
+
"import": "./esm/th.js",
|
|
28
|
+
"require": "./cjs/th.js"
|
|
29
|
+
},
|
|
30
|
+
"./styled/utils": {
|
|
31
|
+
"import": "./esm/styled/utils.js",
|
|
32
|
+
"require": "./cjs/styled/utils.js"
|
|
33
|
+
},
|
|
34
|
+
"./styled/types": {
|
|
35
|
+
"import": "./esm/styled/types.js",
|
|
36
|
+
"require": "./cjs/styled/types.js"
|
|
37
|
+
},
|
|
38
|
+
"./styled/styleGetters": {
|
|
39
|
+
"import": "./esm/styled/styleGetters.js",
|
|
40
|
+
"require": "./cjs/styled/styleGetters.js"
|
|
41
|
+
},
|
|
42
|
+
"./styled": {
|
|
43
|
+
"import": "./esm/styled/index.js",
|
|
44
|
+
"require": "./cjs/styled/index.js"
|
|
45
|
+
},
|
|
46
|
+
"./spaceUtilities": {
|
|
47
|
+
"import": "./esm/spaceUtilities.js",
|
|
48
|
+
"require": "./cjs/spaceUtilities.js"
|
|
49
|
+
},
|
|
50
|
+
"./mobileUtilities": {
|
|
51
|
+
"import": "./esm/mobileUtilities.js",
|
|
52
|
+
"require": "./cjs/mobileUtilities.js"
|
|
53
|
+
},
|
|
54
|
+
"./globalStyles": {
|
|
55
|
+
"import": "./esm/globalStyles.js",
|
|
56
|
+
"require": "./cjs/globalStyles.js"
|
|
57
|
+
},
|
|
58
|
+
"./constants": {
|
|
59
|
+
"import": "./esm/constants.js",
|
|
60
|
+
"require": "./cjs/constants.js"
|
|
61
|
+
},
|
|
62
|
+
"./arithmetic": {
|
|
63
|
+
"import": "./esm/arithmetic.js",
|
|
64
|
+
"require": "./cjs/arithmetic.js"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
8
67
|
"sideEffects": [
|
|
9
68
|
"*.css",
|
|
10
69
|
"*.scss"
|
|
11
70
|
],
|
|
71
|
+
"repository": {
|
|
72
|
+
"type": "git",
|
|
73
|
+
"url": "https://git.elliemae.io/platform-ui/dimsum.git"
|
|
74
|
+
},
|
|
75
|
+
"engines": {
|
|
76
|
+
"npm": ">=7",
|
|
77
|
+
"node": ">=14"
|
|
78
|
+
},
|
|
79
|
+
"author": "ICE MT",
|
|
12
80
|
"scripts": {
|
|
13
81
|
"prebuild": "exit 0",
|
|
14
82
|
"predev": "exit 0",
|
|
@@ -17,20 +85,23 @@
|
|
|
17
85
|
},
|
|
18
86
|
"publishConfig": {
|
|
19
87
|
"access": "public",
|
|
20
|
-
"directory": "dist"
|
|
88
|
+
"directory": "dist",
|
|
89
|
+
"generateSubmodules": true
|
|
21
90
|
},
|
|
22
91
|
"dependencies": {
|
|
92
|
+
"@elliemae/ds-utilities": "2.0.0-alpha.12",
|
|
23
93
|
"polished": "~3.6.7"
|
|
24
94
|
},
|
|
25
95
|
"devDependencies": {
|
|
26
|
-
"@elliemae/pui-theme": "2.2.
|
|
27
|
-
"
|
|
96
|
+
"@elliemae/pui-theme": "~2.2.5",
|
|
97
|
+
"@testing-library/jest-dom": "~5.15.0",
|
|
98
|
+
"styled-components": "~5.3.3"
|
|
28
99
|
},
|
|
29
100
|
"peerDependencies": {
|
|
30
|
-
"@elliemae/pui-theme": "2.2.
|
|
31
|
-
"lodash": "^4.17.
|
|
32
|
-
"react": "~17.0.
|
|
33
|
-
"react-dom": "^17.0.
|
|
34
|
-
"styled-components": "^5.3.
|
|
101
|
+
"@elliemae/pui-theme": "^2.2.5",
|
|
102
|
+
"lodash": "^4.17.21",
|
|
103
|
+
"react": "~17.0.2",
|
|
104
|
+
"react-dom": "^17.0.2",
|
|
105
|
+
"styled-components": "^5.3.3"
|
|
35
106
|
}
|
|
36
107
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const desktopBaseFont = 13;
|
|
2
|
+
export declare const mobileBaseFont = 16;
|
|
3
|
+
export declare const translateUnits: {
|
|
4
|
+
'8px': string;
|
|
5
|
+
'16px': string;
|
|
6
|
+
'32px': string;
|
|
7
|
+
'48px': string;
|
|
8
|
+
'56px': string;
|
|
9
|
+
'64px': string;
|
|
10
|
+
'72px': string;
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const GlobalStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './globalStyles';
|
|
2
|
+
export * from './spaceUtilities';
|
|
3
|
+
export * from './mobileUtilities';
|
|
4
|
+
export * from './utils';
|
|
5
|
+
export * from './arithmetic';
|
|
6
|
+
export * from './th';
|
|
7
|
+
export * from './theme';
|
|
8
|
+
export * from './styled';
|
|
9
|
+
export { themeProviderHOC } from './themeProviderHOC';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare function mapGap(gutter: number | string): number | string;
|
|
2
|
+
export declare function mapGutter(gutter: string | number): string;
|
|
3
|
+
export declare function mapSpace(width: string | number): string;
|
|
4
|
+
export declare function fixSpaceGutter(width: string | number, gutter: string | number): string | string[];
|
|
5
|
+
export declare function fixSpace(width: string | number): string | string[];
|
|
6
|
+
/**
|
|
7
|
+
* Grid
|
|
8
|
+
*
|
|
9
|
+
* @param grid
|
|
10
|
+
*/
|
|
11
|
+
export declare function numbersToFr(grid: number[]): string[];
|
|
12
|
+
export declare function mapGrid(width: string | number): string;
|
|
13
|
+
export declare function mapTemplateGrid(grid: number[]): string | string[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { Theme, CSSObject } from './types';
|
|
2
|
+
export declare const getStyleOverrides: (name: string, theme: Theme) => CSSObject | null;
|
|
3
|
+
export declare const getVariantStyles: (name: string, theme: Theme) => Record<string, CSSObject>;
|
|
4
|
+
export declare const variantsResolver: (props: Record<string, unknown>, styles: CSSObject, theme: Theme, name: string) => CSSObject[keyof CSSObject][];
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { Theme as PuiTheme } from '@elliemae/pui-theme';
|
|
3
|
+
import { AnyStyledComponent, CSSObject, Interpolation, InterpolationFunction, StyledComponent, StyledComponentInnerAttrs, StyledComponentInnerComponent, StyledComponentInnerOtherProps, StyledComponentPropsWithRef, ThemedStyledProps } from 'styled-components';
|
|
4
|
+
export { CSSObject } from 'styled-components';
|
|
5
|
+
export interface Theme extends PuiTheme {
|
|
6
|
+
components?: {
|
|
7
|
+
[componentName: string]: {
|
|
8
|
+
styleOverrides?: CSSObject;
|
|
9
|
+
variants?: {
|
|
10
|
+
props: Record<string, {
|
|
11
|
+
toString: () => string;
|
|
12
|
+
}>;
|
|
13
|
+
style: CSSObject;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export declare type ThemedStyledFunctionBase<C extends keyof JSX.IntrinsicElements | React.ComponentType<any>, T extends object, O extends object = {}, A extends keyof any = never> = <U extends object = {}>(first: TemplateStringsArray | CSSObject | InterpolationFunction<ThemedStyledProps<StyledComponentPropsWithRef<C> & O & U, T>>, ...rest: Array<Interpolation<ThemedStyledProps<StyledComponentPropsWithRef<C> & O & U, T>>>) => StyledComponent<C, T, O & U, A>;
|
|
19
|
+
declare type ThemedStyledComponentFactories<T extends object> = {
|
|
20
|
+
[TTag in keyof JSX.IntrinsicElements]: ThemedStyledFunctionBase<TTag, T>;
|
|
21
|
+
};
|
|
22
|
+
export declare type StyledFunction = <C extends AnyStyledComponent | keyof JSX.IntrinsicElements | React.ComponentType<any>>(tag: C, options?: {
|
|
23
|
+
name: string | null;
|
|
24
|
+
slot: string | null;
|
|
25
|
+
}) => ThemedStyledFunctionBase<C extends AnyStyledComponent ? StyledComponentInnerComponent<C> : C, Theme, C extends AnyStyledComponent ? StyledComponentInnerOtherProps<C> : {}, C extends AnyStyledComponent ? StyledComponentInnerAttrs<C> : never>;
|
|
26
|
+
export interface StyledObject extends ThemedStyledComponentFactories<Theme> {
|
|
27
|
+
}
|
|
28
|
+
export declare type Styled = StyledFunction & StyledObject;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Theme } from './types';
|
|
2
|
+
export declare const isEmpty: (string: string) => boolean;
|
|
3
|
+
export declare const coerceWithDefaultTheme: (themeInput: Theme) => Theme;
|
|
4
|
+
export declare const propsToClassKey: (props: Record<string, {
|
|
5
|
+
toString: () => string;
|
|
6
|
+
}>) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/types/th.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare type thGetter = (value: string, dfault: string) => (theme: any) => string;
|
|
2
|
+
declare type thConstructor = ((property: string) => thGetter) & {
|
|
3
|
+
space: thGetter;
|
|
4
|
+
fontSize: thGetter;
|
|
5
|
+
fontWeight: thGetter;
|
|
6
|
+
lineHeight: thGetter;
|
|
7
|
+
letterSpacing: thGetter;
|
|
8
|
+
font: thGetter;
|
|
9
|
+
color: thGetter;
|
|
10
|
+
breakpoint: thGetter;
|
|
11
|
+
media: thGetter;
|
|
12
|
+
};
|
|
13
|
+
export declare const th: thConstructor;
|
|
14
|
+
export {};
|
package/types/theme.d.ts
ADDED
package/types/utils.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { rgba } from 'polished';
|
|
2
|
+
import { Keyframes } from 'styled-components';
|
|
3
|
+
import { css, withTheme, keyframes as kfrm, createGlobalStyle, useTheme } from 'styled-components';
|
|
4
|
+
export { withTheme, createGlobalStyle, rgba, useTheme, kfrm, css };
|
|
5
|
+
export declare function truncate(width?: string): (props: any) => import("styled-components").FlattenSimpleInterpolation;
|
|
6
|
+
export declare function flexCenter(): string;
|
|
7
|
+
export declare function disabled(): string;
|
|
8
|
+
export declare function keyframes(obj: Record<string, unknown>): Keyframes;
|
|
9
|
+
export declare function boxShadow(top: string, left: string, blur: string, color: string, inset?: boolean): string;
|
|
10
|
+
export declare function color(variant?: string, type?: number): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
11
|
+
export declare function border(color?: string, size?: string, type?: string): string;
|
|
12
|
+
export declare function animation(animationKeyframes: string, animationLength: string, animationTimingFn: string): (props: any) => import("styled-components").FlattenSimpleInterpolation;
|
|
13
|
+
export declare function focus(color?: string): () => import("styled-components").FlattenSimpleInterpolation;
|
|
14
|
+
export declare function focusAfter(color: string): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
15
|
+
export declare function active(): (props: any) => import("styled-components").FlattenSimpleInterpolation;
|
|
16
|
+
export declare function hover(): (props: any) => import("styled-components").FlattenSimpleInterpolation;
|
|
17
|
+
export declare function textStyle(type: string, weight?: string): (props: any) => string;
|
|
18
|
+
export declare function iconColor(variant?: string, type?: number): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
19
|
+
export declare function fakeBorder(): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
20
|
+
export declare function fakeActive(): import("styled-components").FlattenInterpolation<import("styled-components").ThemeProps<import("styled-components").DefaultTheme>>;
|
|
21
|
+
export declare function clearFocus(): string;
|
|
22
|
+
export declare function buttonLink(): string;
|
|
23
|
+
export declare function transition(t?: string): string;
|
|
24
|
+
export declare const onlySafariAndFirefox: (styles: string) => string;
|
|
25
|
+
export declare const onlySafari: (styles: string) => string;
|
|
26
|
+
export declare const onlyFirefox: (styles: string) => string;
|
|
27
|
+
export declare const safariAndFirefoxBold: (color: string) => string;
|
package/arithmetic/package.json
DELETED
package/cjs/arithmetic.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arithmetic.js","sources":["../../src/arithmetic.tsx"],"sourcesContent":["export function getNumberAndUnit(\n numberStrWithUnit: string,\n): { number: string; unit: string } {\n const [number, unit] = String(numberStrWithUnit).match(\n /[a-z]+|[(/^\\-?\\d*.\\d+|\\d+),?]+/gi,\n );\n return { number, unit };\n}\n\nexport function op(operator: string, n1: string, n2: string): string {\n const { number, unit } = getNumberAndUnit(n1);\n const { number: number2, unit: unit2 } = getNumberAndUnit(n2);\n switch (operator) {\n case '*':\n return Number(number) * Number(number2) + (unit || unit2);\n case '+':\n return Number(number) + Number(number2) + (unit || unit2);\n case '-':\n return Number(number) - Number(number2) + (unit || unit2);\n case '/':\n return Number(number) / Number(number2) + (unit || unit2);\n default:\n return Number(number) + Number(number2) + (unit || unit2);\n }\n}\n"],"names":["getNumberAndUnit","numberStrWithUnit","String","match","number","unit","op","operator","n1","n2","number2","unit2","Number"],"mappings":";;;;;;;;;;AAAO,SAASA,gBAAT,CACLC,iBADK,EAE6B;AAClC,sBAAuBC,MAAM,CAACD,iBAAD,CAAN,CAA0BE,KAA1B,CACrB,kCADqB,CAAvB;AAAA;AAAA,MAAOC,MAAP;AAAA,MAAeC,IAAf;;AAGA,SAAO;AAAED,IAAAA,MAAM,EAANA,MAAF;AAAUC,IAAAA,IAAI,EAAJA;AAAV,GAAP;AACD;AAEM,SAASC,EAAT,CAAYC,QAAZ,EAA8BC,EAA9B,EAA0CC,EAA1C,EAA8D;AACnE,0BAAyBT,gBAAgB,CAACQ,EAAD,CAAzC;AAAA,MAAQJ,MAAR,qBAAQA,MAAR;AAAA,MAAgBC,IAAhB,qBAAgBA,IAAhB;;AACA,2BAAyCL,gBAAgB,CAACS,EAAD,CAAzD;AAAA,MAAgBC,OAAhB,sBAAQN,MAAR;AAAA,MAA+BO,KAA/B,sBAAyBN,IAAzB;;AACA,UAAQE,QAAR;AACE,SAAK,GAAL;AACE,aAAOK,MAAM,CAACR,MAAD,CAAN,GAAiBQ,MAAM,CAACF,OAAD,CAAvB,IAAoCL,IAAI,IAAIM,KAA5C,CAAP;;AACF,SAAK,GAAL;AACE,aAAOC,MAAM,CAACR,MAAD,CAAN,GAAiBQ,MAAM,CAACF,OAAD,CAAvB,IAAoCL,IAAI,IAAIM,KAA5C,CAAP;;AACF,SAAK,GAAL;AACE,aAAOC,MAAM,CAACR,MAAD,CAAN,GAAiBQ,MAAM,CAACF,OAAD,CAAvB,IAAoCL,IAAI,IAAIM,KAA5C,CAAP;;AACF,SAAK,GAAL;AACE,aAAOC,MAAM,CAACR,MAAD,CAAN,GAAiBQ,MAAM,CAACF,OAAD,CAAvB,IAAoCL,IAAI,IAAIM,KAA5C,CAAP;;AACF;AACE,aAAOC,MAAM,CAACR,MAAD,CAAN,GAAiBQ,MAAM,CAACF,OAAD,CAAvB,IAAoCL,IAAI,IAAIM,KAA5C,CAAP;AAVJ;AAYD;;;;;"}
|
package/cjs/constants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["export const desktopBaseFont = 13;\n\nexport const mobileBaseFont = 16;\n\nexport const translateUnits = {\n '8px': '4px',\n '16px': '8px',\n '32px': '16px',\n '48px': '24px',\n '56px': '32px',\n '64px': '48px',\n '72px': '64px',\n};\n"],"names":["desktopBaseFont","mobileBaseFont","translateUnits"],"mappings":";;;;IAAaA,eAAe,GAAG;IAElBC,cAAc,GAAG;IAEjBC,cAAc,GAAG;AAC5B,SAAO,KADqB;AAE5B,UAAQ,KAFoB;AAG5B,UAAQ,MAHoB;AAI5B,UAAQ,MAJoB;AAK5B,UAAQ,MALoB;AAM5B,UAAQ,MANoB;AAO5B,UAAQ;AAPoB;;;;;;"}
|
package/cjs/globalStyles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalStyles.js","sources":["../../src/globalStyles.tsx"],"sourcesContent":["import { createGlobalStyle } from './utils';\n\nexport const GlobalStyles = createGlobalStyle`\n :root, body {\n overscroll-behavior-y: none;\n font-size: 16px;\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) { \n font-size: 13px;\n }\n }\n`;\n"],"names":["GlobalStyles","createGlobalStyle","theme","breakpoints","small"],"mappings":";;;;;;;;;;;;;;;;;;;;IAEaA,YAAY,GAAGC,uBAAH,sOAIA;AAAA,MAAGC,KAAH,QAAGA,KAAH;AAAA,SAAeA,KAAK,CAACC,WAAN,CAAkBC,KAAjC;AAAA,CAJA;;;;"}
|
package/cjs/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mobileUtilities.js","sources":["../../src/mobileUtilities.tsx"],"sourcesContent":["import { useState, useEffect } from 'react';\nimport { theme } from './theme';\nimport { desktopBaseFont, mobileBaseFont, translateUnits } from './constants';\n\n// eslint-disable-next-line no-underscore-dangle\nexport function __UNSAFE_SPACE_TO_DIMSUM(unit: string): string {\n if (translateUnits[unit]) return translateUnits[unit];\n return `${(parseFloat(unit) * (mobileBaseFont / desktopBaseFont)) / 2}px`;\n}\n\nexport function toMobile(unit: string): string {\n if (!isMobile()) return unit;\n return `${parseFloat(unit) * (desktopBaseFont / mobileBaseFont)}rem`;\n}\n\nexport const useIsMobile = (): boolean => {\n const [mobile, setMobile] = useState<boolean>(isMobile());\n useEffect(() => {\n function handleResize() {\n setMobile(isMobile());\n }\n if (window) window.addEventListener('resize', handleResize);\n return () => {\n if (window) window.removeEventListener('resize', handleResize);\n };\n }, []);\n if (!window) return false;\n return mobile;\n};\n\nexport const isMobile = (): boolean => {\n if (!window) return false;\n return (\n Number(theme.breakpoints.medium.split('px')[0]) - window.innerWidth >= 0\n );\n};\n"],"names":["__UNSAFE_SPACE_TO_DIMSUM","unit","translateUnits","parseFloat","mobileBaseFont","desktopBaseFont","toMobile","isMobile","useIsMobile","useState","mobile","setMobile","useEffect","handleResize","window","addEventListener","removeEventListener","Number","theme","breakpoints","medium","split","innerWidth"],"mappings":";;;;;;;;;;;;;;AAKO,SAASA,wBAAT,CAAkCC,IAAlC,EAAwD;AAC7D,MAAIC,wBAAc,CAACD,IAAD,CAAlB,EAA0B,OAAOC,wBAAc,CAACD,IAAD,CAArB;AAC1B,mBAAWE,UAAU,CAACF,IAAD,CAAV,IAAoBG,wBAAc,GAAGC,yBAArC,CAAD,GAA0D,CAApE;AACD;AAEM,SAASC,QAAT,CAAkBL,IAAlB,EAAwC;AAC7C,MAAI,CAACM,QAAQ,EAAb,EAAiB,OAAON,IAAP;AACjB,mBAAUE,UAAU,CAACF,IAAD,CAAV,IAAoBI,yBAAe,GAAGD,wBAAtC,CAAV;AACD;IAEYI,WAAW,GAAG,SAAdA,WAAc,GAAe;AACxC,kBAA4BC,cAAQ,CAAUF,QAAQ,EAAlB,CAApC;AAAA;AAAA,MAAOG,MAAP;AAAA,MAAeC,SAAf;;AACAC,EAAAA,eAAS,CAAC,YAAM;AACd,aAASC,YAAT,GAAwB;AACtBF,MAAAA,SAAS,CAACJ,QAAQ,EAAT,CAAT;AACD;;AACD,QAAIO,MAAJ,EAAYA,MAAM,CAACC,gBAAP,CAAwB,QAAxB,EAAkCF,YAAlC;AACZ,WAAO,YAAM;AACX,UAAIC,MAAJ,EAAYA,MAAM,CAACE,mBAAP,CAA2B,QAA3B,EAAqCH,YAArC;AACb,KAFD;AAGD,GARQ,EAQN,EARM,CAAT;AASA,MAAI,CAACC,MAAL,EAAa,OAAO,KAAP;AACb,SAAOJ,MAAP;AACD;IAEYH,QAAQ,GAAG,SAAXA,QAAW,GAAe;AACrC,MAAI,CAACO,MAAL,EAAa,OAAO,KAAP;AACb,SACEG,MAAM,CAACC,WAAK,CAACC,WAAN,CAAkBC,MAAlB,CAAyBC,KAAzB,CAA+B,IAA/B,EAAqC,CAArC,CAAD,CAAN,GAAkDP,MAAM,CAACQ,UAAzD,IAAuE,CADzE;AAGD;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"spaceUtilities.js","sources":["../../src/spaceUtilities.tsx"],"sourcesContent":["import { get } from 'lodash';\nimport { theme } from './theme';\n\nexport function mapGap(gutter: number | string): number | string {\n if (!gutter) return '0rem';\n if (String(gutter).includes('rem') || String(gutter).includes('px'))\n return gutter;\n return `${theme.space[gutter]}`;\n}\n\nexport function mapGutter(gutter: string | number): string {\n if (!gutter) return '0rem';\n return `${theme.space[gutter]} * 2`;\n}\n\nexport function mapSpace(width: string | number): string {\n if (typeof width === 'string')\n return get(theme, width) ? `${get(theme, width)}` : width;\n return `${width * 100}%`;\n}\n\nexport function fixSpaceGutter(\n width: string | number,\n gutter: string | number,\n): string | string[] {\n if (!width) return '';\n if (Array.isArray(width))\n return width.map((w) => `calc(${mapSpace(w)} - (${mapGutter(gutter)}))`);\n return `calc(${mapSpace(width)} - (${mapGutter(gutter)}))`;\n}\n\nexport function fixSpace(width: string | number): string | string[] {\n if (!width) return '';\n if (Array.isArray(width)) return width.map((w) => mapSpace(w));\n return mapSpace(width);\n}\n\n/**\n * Grid\n *\n * @param grid\n */\nexport function numbersToFr(grid: number[]): string[] {\n const den = grid.map((f) => (f < 1 ? Math.floor(1 / f) : f));\n return den.map((d) => `${d}fr`);\n}\nexport function mapGrid(width: string | number): string {\n if (get(theme, width)) return `${get(theme, width)}`;\n if (typeof width === 'string') return width;\n const den = width < 1 ? Math.floor(1 / width) : width;\n return `${den}fr`;\n}\n\nexport function mapTemplateGrid(grid: number[]): string | string[] {\n if (Array.isArray(grid)) {\n if (grid.some((w) => typeof w === 'string'))\n return grid.map((w) => mapGrid(w));\n return numbersToFr(grid);\n }\n return mapGrid(grid);\n}\n"],"names":["mapGap","gutter","String","includes","theme","space","mapGutter","mapSpace","width","get","fixSpaceGutter","Array","isArray","map","w","fixSpace","numbersToFr","grid","den","f","Math","floor","d","mapGrid","mapTemplateGrid","some"],"mappings":";;;;;;;;AAGO,SAASA,MAAT,CAAgBC,MAAhB,EAA0D;AAC/D,MAAI,CAACA,MAAL,EAAa,OAAO,MAAP;AACb,MAAIC,MAAM,CAACD,MAAD,CAAN,CAAeE,QAAf,CAAwB,KAAxB,KAAkCD,MAAM,CAACD,MAAD,CAAN,CAAeE,QAAf,CAAwB,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CAAD;AAAA,WAAQA,CAAC,GAAG,CAAJ,GAAQC,IAAI,CAACC,KAAL,CAAW,IAAIF,CAAf,CAAR,GAA4BA,CAApC;AAAA,GAAT,CAAZ;AACA,SAAOD,GAAG,CAACL,GAAJ,CAAQ,UAACS,CAAD;AAAA,qBAAUA,CAAV;AAAA,GAAR,CAAP;AACD;AACM,SAASC,OAAT,CAAiBf,KAAjB,EAAiD;AACtD,MAAIC,UAAG,CAACL,WAAD,EAAQI,KAAR,CAAP,EAAuB,iBAAUC,UAAG,CAACL,WAAD,EAAQI,KAAR,CAAb;AACvB,MAAI,OAAOA,KAAP,KAAiB,QAArB,EAA+B,OAAOA,KAAP;AAC/B,MAAMU,GAAG,GAAGV,KAAK,GAAG,CAAR,GAAYY,IAAI,CAACC,KAAL,CAAW,IAAIb,KAAf,CAAZ,GAAoCA,KAAhD;AACA,mBAAUU,GAAV;AACD;AAEM,SAASM,eAAT,CAAyBP,IAAzB,EAA4D;AACjE,MAAIN,KAAK,CAACC,OAAN,CAAcK,IAAd,CAAJ,EAAyB;AACvB,QAAIA,IAAI,CAACQ,IAAL,CAAU,UAACX,CAAD;AAAA,aAAO,OAAOA,CAAP,KAAa,QAApB;AAAA,KAAV,CAAJ,EACE,OAAOG,IAAI,CAACJ,GAAL,CAAS,UAACC,CAAD;AAAA,aAAOS,OAAO,CAACT,CAAD,CAAd;AAAA,KAAT,CAAP;AACF,WAAOE,WAAW,CAACC,IAAD,CAAlB;AACD;;AACD,SAAOM,OAAO,CAACN,IAAD,CAAd;AACD;;;;;;;;;;;"}
|
package/cjs/theme.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.js","sources":["../../src/theme.tsx"],"sourcesContent":["import { getDefaultTheme } from '@elliemae/pui-theme';\nimport type { Theme } from '@elliemae/pui-theme';\n\nexport const theme = getDefaultTheme() as Theme;\n"],"names":["theme","getDefaultTheme"],"mappings":";;;;;;IAGaA,KAAK,GAAGC,wBAAe;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"themeProviderHOC.js","sources":["../../src/themeProviderHOC.tsx"],"sourcesContent":["import React from 'react';\nimport { ThemeProvider } from 'styled-components';\nimport { theme } from './theme';\n\nexport const themeProviderHOC = (Component: React.ElementType) => (\n props: Record<string, unknown>,\n): JSX.Element => (\n <ThemeProvider theme={theme}>\n <Component {...props} />\n </ThemeProvider>\n);\n"],"names":["themeProviderHOC","Component","props","React","ThemeProvider","theme"],"mappings":";;;;;;;;;;;;;IAIaA,gBAAgB,GAAG,SAAnBA,gBAAmB,CAACC,SAAD;AAAA,SAAkC,UAChEC,KADgE;AAAA,wBAGhEC,wCAACC,8BAAD;AAAe,MAAA,KAAK,EAAEC;AAAtB,oBACEF,wCAAC,SAAD,EAAeD,KAAf,CADF,CAHgE;AAAA,GAAlC;AAAA;;;;"}
|
package/cjs/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../src/utils.tsx"],"sourcesContent":["/* eslint-disable no-shadow */\n/* eslint-disable max-lines */\n// https://github.com/styled-components/babel-plugin-styled-components/issues/216#issuecomment-516941240\nimport { lighten, rgba } from 'polished';\nimport { reduce } from 'lodash';\nimport { Keyframes } from 'styled-components';\nimport { theme } from './theme';\nimport { toMobile } from './mobileUtilities';\n// eslint-disable-next-line @typescript-eslint/no-var-requires\nconst styled = require('styled-components');\n\nconst { css } = styled;\nconst kfrm = styled.keyframes;\nconst { withTheme } = styled;\nconst { useTheme } = styled;\nconst { createGlobalStyle } = styled;\nexport { withTheme, createGlobalStyle, rgba, useTheme, kfrm, css };\n\nexport function truncate(width: string) {\n return (props): string => css`\n ${!!width || props.width ? `width: ${props.width || width};` : ''}\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n `;\n}\n\nexport function flexCenter(): string {\n return `\n display: flex;\n justify-content: center;\n align-items: center;\n `;\n}\n\nexport function disabled(): string {\n return `\n cursor: not-allowed;\n pointer-events: none;\n `;\n}\n\nexport function keyframes(obj: Record<string, unknown>): Keyframes {\n return kfrm`${reduce(\n obj,\n (result, value, key) => `\n ${result}\n ${key}% {\n ${value}\n }\n `,\n '',\n )}\n `;\n}\n\n// eslint-disable-next-line max-params\nexport function boxShadow(top: string, left: string, blur: string, color: string, inset = false): string {\n return `box-shadow: ${inset ? 'inset' : ''} ${top} ${left} ${blur} ${color};`;\n}\n\nexport function color(variant = 'neutral', type = 400): string {\n return css`\n color: ${(props) => props.theme.colors[variant][type]};\n `;\n}\n\nexport function border(color = theme.colors.brand[600], size = '1px', type = 'solid'): string {\n return `${size} ${type} ${color}`;\n}\n\nexport function animation(animationKeyframes: string, animationLength: string, animationTimingFn: string) {\n return (props): string => css`\n animation: ${props.animationKeyframes || animationKeyframes} ${props.animationLength || animationLength}\n ${props.animationTimingFn || animationTimingFn};\n `;\n}\n// 0.0769\nexport function focus(color: string = theme.colors.brand[600]) {\n return (): string => css`\n outline: none;\n border: 1px solid ${color};\n box-shadow: inset 0 0 0 1px ${lighten(0.3, color)};\n border-radius: 2px;\n `;\n}\n\nexport function focusAfter(color: string): string {\n return css`\n outline: none;\n position: relative;\n &:after {\n content: '';\n z-index: 10;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n ${focus(color)}\n }\n `;\n}\n\nexport function active() {\n return (props): string => css`\n outline: none;\n border: 1px solid ${props.theme.colors.brand[700]};\n border-radius: 2px;\n `;\n}\n\nexport function hover() {\n return (props): string => css`\n outline: 1px solid ${props.theme.colors.brand[600]};\n outline-offset: -1px;\n `;\n}\n\nexport function textStyle(type: string, weight = 'regular') {\n // eslint-disable-next-line complexity\n return (props): string => {\n let cssVar = `font-weight: ${props.theme.fontWeights[weight]};`;\n // eslint-disable-next-line default-case\n switch (type) {\n case 'h1':\n cssVar += `\n font-size: ${toMobile('2.7692rem')};\n line-height: normal;\n `;\n break;\n case 'h2':\n cssVar += `\n font-size: ${toMobile(props.theme.fontSizes.title[800])};\n line-height: normal;\n `;\n break;\n case 'h3':\n cssVar += `\n font-size: ${toMobile(props.theme.fontSizes.title[700])};\n line-height: 1.2;\n `;\n break;\n case 'h4':\n cssVar += `\n font-size: ${toMobile(props.theme.fontSizes.title[600])};\n line-height: normal;\n `;\n break;\n case 'h5':\n cssVar += `\n font-size: ${toMobile(props.theme.fontSizes.title[500])};\n line-height: normal;\n `;\n break;\n case 'section-header':\n cssVar += `\n font-size: ${toMobile(props.theme.fontSizes.title[500])};\n line-height: normal;\n text-transform: uppercase;\n `;\n break;\n case 'body':\n cssVar += `\n font-size: ${toMobile(props.theme.fontSizes.value[400])};\n line-height: normal;\n `;\n break;\n case 'body-small':\n cssVar += `\n font-size: ${toMobile(props.theme.fontSizes.value[300])};\n line-height: normal;\n `;\n break;\n case 'body-micro':\n cssVar += `\n font-size: ${toMobile(props.theme.fontSizes.microText[200])};\n line-height: normal;\n `;\n break;\n case 'list':\n cssVar += `\n font-size: ${toMobile(props.theme.fontSizes.value[400])};\n line-height: normal;\n `;\n break;\n case 'link':\n cssVar += `\n line-height: ${props.theme.xl};\n color: ${props.theme.colors.brand[600]};\n cursor: pointer;\n `;\n break;\n }\n return cssVar;\n };\n}\n\nexport function iconColor(variant = 'neutral', type = 400): string {\n return css`\n fill: ${(props) => props.theme.colors[variant][type]};\n `;\n}\n\nexport function fakeBorder(): string {\n return css`\n box-shadow: inset 0 0 0 1px ${(props) => props.theme.colors.neutral[200]};\n border-radius: 2px;\n `;\n}\n\nexport function fakeActive(): string {\n return css`\n outline: none;\n box-shadow: inset 0 0 0 1px ${(props) => props.theme.colors.brand[700]};\n border-radius: 2px;\n `;\n}\n\nexport function clearFocus(): string {\n return `\n border: none;\n box-shadow: none;\n `;\n}\n\nexport function buttonLink(): string {\n return `\n background-color: transparent;\n border: 1px solid transparent;\n cursor: pointer;\n `;\n}\n\nexport function transition(t = 'all 1s ease'): string {\n return `\n transition: ${t};\n `;\n}\n\nexport function onlySafariAndFiredox(styles: string): string {\n return css`\n @media not all and (min-resolution: 0.001dpcm) {\n ${styles}\n }\n @media screen and (min--moz-device-pixel-ratio: 0) {\n ${styles}\n }\n `;\n}\n\nexport function onlySafari(styles: string): string {\n return css`\n @media not all and (min-resolution: 0.001dpcm) {\n ${styles}\n }\n `;\n}\n\nexport function onlyFirefox(styles: string): string {\n return css`\n @media screen and (min--moz-device-pixel-ratio: 0) {\n ${styles}\n }\n `;\n}\n\nexport function safariAndFirefoxBold(color: string): string {\n return css`\n @media not all and (min-resolution: 0.001dpcm) {\n font-weight: 400;\n -webkit-font-smoothing: subpixel-antialiased;\n -webkit-text-stroke: 0.4px ${color};\n }\n @media screen and (min--moz-device-pixel-ratio: 0) {\n font-weight: 400;\n -webkit-font-smoothing: subpixel-antialiased;\n -webkit-text-stroke: 0.4px ${color};\n }\n `;\n}\n"],"names":["styled","require","css","kfrm","keyframes","withTheme","useTheme","createGlobalStyle","truncate","width","props","flexCenter","disabled","obj","reduce","result","value","key","boxShadow","top","left","blur","color","inset","variant","type","theme","colors","border","brand","size","animation","animationKeyframes","animationLength","animationTimingFn","focus","lighten","focusAfter","active","hover","textStyle","weight","cssVar","fontWeights","toMobile","fontSizes","title","microText","xl","iconColor","fakeBorder","neutral","fakeActive","clearFocus","buttonLink","transition","t","onlySafariAndFiredox","styles","onlySafari","onlyFirefox","safariAndFirefoxBold"],"mappings":";;;;;;;;;;;;;;;;;;;;AASA,IAAMA,MAAM,GAAGC,OAAO,CAAC,mBAAD,CAAtB;;IAEQC,GAAR,GAAgBF,MAAhB,CAAQE;IACFC,IAAI,GAAGH,MAAM,CAACI;IACZC,SAAR,GAAsBL,MAAtB,CAAQK;IACAC,QAAR,GAAqBN,MAArB,CAAQM;IACAC,iBAAR,GAA8BP,MAA9B,CAAQO;AAGD,SAASC,QAAT,CAAkBC,KAAlB,EAAiC;AACtC,SAAO,UAACC,KAAD;AAAA,WAAmBR,GAAnB,sEACH,CAAC,CAACO,KAAF,IAAWC,KAAK,CAACD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KD;AAEM,SAASG,oBAAT,CAA8BvC,KAA9B,EAAqD;AAC1D,SAAOpB,GAAP,+RAIiCoB,KAJjC,EASiCA,KATjC;AAYD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/constants/package.json
DELETED
package/esm/arithmetic.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arithmetic.js","sources":["../../src/arithmetic.tsx"],"sourcesContent":["export function getNumberAndUnit(\n numberStrWithUnit: string,\n): { number: string; unit: string } {\n const [number, unit] = String(numberStrWithUnit).match(\n /[a-z]+|[(/^\\-?\\d*.\\d+|\\d+),?]+/gi,\n );\n return { number, unit };\n}\n\nexport function op(operator: string, n1: string, n2: string): string {\n const { number, unit } = getNumberAndUnit(n1);\n const { number: number2, unit: unit2 } = getNumberAndUnit(n2);\n switch (operator) {\n case '*':\n return Number(number) * Number(number2) + (unit || unit2);\n case '+':\n return Number(number) + Number(number2) + (unit || unit2);\n case '-':\n return Number(number) - Number(number2) + (unit || unit2);\n case '/':\n return Number(number) / Number(number2) + (unit || unit2);\n default:\n return Number(number) + Number(number2) + (unit || unit2);\n }\n}\n"],"names":["getNumberAndUnit","numberStrWithUnit","String","match","number","unit","op","operator","n1","n2","number2","unit2","Number"],"mappings":";;AAAO,SAASA,gBAAT,CACLC,iBADK,EAE6B;AAClC,sBAAuBC,MAAM,CAACD,iBAAD,CAAN,CAA0BE,KAA1B,CACrB,kCADqB,CAAvB;AAAA;AAAA,MAAOC,MAAP;AAAA,MAAeC,IAAf;;AAGA,SAAO;AAAED,IAAAA,MAAM,EAANA,MAAF;AAAUC,IAAAA,IAAI,EAAJA;AAAV,GAAP;AACD;AAEM,SAASC,EAAT,CAAYC,QAAZ,EAA8BC,EAA9B,EAA0CC,EAA1C,EAA8D;AACnE,0BAAyBT,gBAAgB,CAACQ,EAAD,CAAzC;AAAA,MAAQJ,MAAR,qBAAQA,MAAR;AAAA,MAAgBC,IAAhB,qBAAgBA,IAAhB;;AACA,2BAAyCL,gBAAgB,CAACS,EAAD,CAAzD;AAAA,MAAgBC,OAAhB,sBAAQN,MAAR;AAAA,MAA+BO,KAA/B,sBAAyBN,IAAzB;;AACA,UAAQE,QAAR;AACE,SAAK,GAAL;AACE,aAAOK,MAAM,CAACR,MAAD,CAAN,GAAiBQ,MAAM,CAACF,OAAD,CAAvB,IAAoCL,IAAI,IAAIM,KAA5C,CAAP;;AACF,SAAK,GAAL;AACE,aAAOC,MAAM,CAACR,MAAD,CAAN,GAAiBQ,MAAM,CAACF,OAAD,CAAvB,IAAoCL,IAAI,IAAIM,KAA5C,CAAP;;AACF,SAAK,GAAL;AACE,aAAOC,MAAM,CAACR,MAAD,CAAN,GAAiBQ,MAAM,CAACF,OAAD,CAAvB,IAAoCL,IAAI,IAAIM,KAA5C,CAAP;;AACF,SAAK,GAAL;AACE,aAAOC,MAAM,CAACR,MAAD,CAAN,GAAiBQ,MAAM,CAACF,OAAD,CAAvB,IAAoCL,IAAI,IAAIM,KAA5C,CAAP;;AACF;AACE,aAAOC,MAAM,CAACR,MAAD,CAAN,GAAiBQ,MAAM,CAACF,OAAD,CAAvB,IAAoCL,IAAI,IAAIM,KAA5C,CAAP;AAVJ;AAYD;;;;"}
|
package/esm/constants.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sources":["../../src/constants.ts"],"sourcesContent":["export const desktopBaseFont = 13;\n\nexport const mobileBaseFont = 16;\n\nexport const translateUnits = {\n '8px': '4px',\n '16px': '8px',\n '32px': '16px',\n '48px': '24px',\n '56px': '32px',\n '64px': '48px',\n '72px': '64px',\n};\n"],"names":["desktopBaseFont","mobileBaseFont","translateUnits"],"mappings":"IAAaA,eAAe,GAAG;IAElBC,cAAc,GAAG;IAEjBC,cAAc,GAAG;AAC5B,SAAO,KADqB;AAE5B,UAAQ,KAFoB;AAG5B,UAAQ,MAHoB;AAI5B,UAAQ,MAJoB;AAK5B,UAAQ,MALoB;AAM5B,UAAQ,MANoB;AAO5B,UAAQ;AAPoB;;;;"}
|
package/esm/globalStyles.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"globalStyles.js","sources":["../../src/globalStyles.tsx"],"sourcesContent":["import { createGlobalStyle } from './utils';\n\nexport const GlobalStyles = createGlobalStyle`\n :root, body {\n overscroll-behavior-y: none;\n font-size: 16px;\n @media (min-width: ${({ theme }) => theme.breakpoints.small}) { \n font-size: 13px;\n }\n }\n`;\n"],"names":["GlobalStyles","createGlobalStyle","theme","breakpoints","small"],"mappings":";;;;;;;;;;;;IAEaA,YAAY,GAAGC,iBAAH,kNAIA;AAAA,MAAGC,KAAH,QAAGA,KAAH;AAAA,SAAeA,KAAK,CAACC,WAAN,CAAkBC,KAAjC;AAAA,CAJA;;;;"}
|
package/esm/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;"}
|