@capillarytech/blaze-ui 0.1.6-alpha.31 → 0.1.6-alpha.32
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/components/CapInput/CapInput.js +34 -25
- package/components/CapInput/Number.js +25 -19
- package/components/CapInput/Search.js +19 -13
- package/components/CapInput/TextArea.js +23 -17
- package/components/CapInput/index.js +13 -8
- package/components/CapInput/messages.js +6 -7
- package/components/CapInput/styles.js +8 -3
- package/components/CapSkeleton/CapSkeleton.js +15 -12
- package/components/CapSkeleton/index.js +7 -1
- package/components/CapSpin/CapSpin.js +22 -19
- package/components/CapSpin/index.js +7 -1
- package/components/CapTable/CapTable.js +44 -50
- package/components/CapTable/index.js +7 -2
- package/components/CapTable/loadable.js +18 -8
- package/components/CapTable/styles.js +10 -4
- package/components/CapTestSelect/CapTestSelect.js +24 -22
- package/components/CapTestSelect/index.js +7 -1
- package/components/CapUnifiedSelect/CapUnifiedSelect.js +218 -203
- package/components/CapUnifiedSelect/index.js +7 -1
- package/components/CapUnifiedSelect/messages.js +6 -2
- package/components/CapUnifiedSelect/styles.js +15 -10
- package/components/LocaleHoc/index.js +18 -9
- package/components/index.js +32 -13
- package/components/styled/index.js +13 -4
- package/components/styled/variables.js +62 -80
- package/components/translations/en.js +5 -1
- package/package.json +1 -1
- package/utils/index.js +7 -1
- package/utils/withStyles.js +7 -15
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _reactIntl = require("react-intl");
|
|
6
|
+
var _default = exports.default = (0, _reactIntl.defineMessages)({
|
|
3
7
|
selectPlaceholder: {
|
|
4
8
|
id: 'cap.unified.select.placeholder',
|
|
5
9
|
defaultMessage: 'Select an option'
|
|
@@ -1,31 +1,36 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.selectStyles = exports.StyledInfoIcon = exports.SelectWrapper = exports.SelectAllCheckbox = exports.SearchInputWrapper = exports.NoResultWrapper = exports.HeaderWrapper = exports.DropdownFooter = void 0;
|
|
5
|
+
var _styledComponents = _interopRequireWildcard(require("styled-components"));
|
|
6
|
+
var styledVars = _interopRequireWildcard(require("../styled/variables"));
|
|
7
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
8
|
+
const SelectWrapper = exports.SelectWrapper = _styledComponents.default.div.withConfig({
|
|
4
9
|
displayName: "SelectWrapper",
|
|
5
10
|
componentId: "sc-3v7xpu-0"
|
|
6
11
|
})(["display:flex;flex-direction:column;gap:8px;width:100%;&.disabled{cursor:not-allowed;}"]);
|
|
7
|
-
|
|
12
|
+
const HeaderWrapper = exports.HeaderWrapper = _styledComponents.default.div.withConfig({
|
|
8
13
|
displayName: "HeaderWrapper",
|
|
9
14
|
componentId: "sc-3v7xpu-1"
|
|
10
15
|
})(["display:flex;align-items:center;gap:4px;&.disabled{opacity:0.5;cursor:not-allowed;}"]);
|
|
11
|
-
|
|
16
|
+
const DropdownFooter = exports.DropdownFooter = _styledComponents.default.div.withConfig({
|
|
12
17
|
displayName: "DropdownFooter",
|
|
13
18
|
componentId: "sc-3v7xpu-2"
|
|
14
19
|
})(["display:flex;justify-content:space-between;align-items:center;padding:8px;border-top:1px solid #f0f0f0;.footer-buttons{display:flex;align-items:center;gap:8px;}.total-count{color:#8c8c8c;font-size:12px;}"]);
|
|
15
|
-
|
|
20
|
+
const SearchInputWrapper = exports.SearchInputWrapper = _styledComponents.default.div.withConfig({
|
|
16
21
|
displayName: "SearchInputWrapper",
|
|
17
22
|
componentId: "sc-3v7xpu-3"
|
|
18
23
|
})(["padding:8px;border-bottom:1px solid #f0f0f0;"]);
|
|
19
|
-
|
|
24
|
+
const SelectAllCheckbox = exports.SelectAllCheckbox = _styledComponents.default.div.withConfig({
|
|
20
25
|
displayName: "SelectAllCheckbox",
|
|
21
26
|
componentId: "sc-3v7xpu-4"
|
|
22
27
|
})(["display:flex;align-items:center;padding:8px 12px;cursor:pointer;font-weight:500;border-bottom:1px solid #f0f0f0;user-select:none;input[type=\"checkbox\"]{cursor:pointer;}"]);
|
|
23
|
-
|
|
28
|
+
const NoResultWrapper = exports.NoResultWrapper = _styledComponents.default.div.withConfig({
|
|
24
29
|
displayName: "NoResultWrapper",
|
|
25
30
|
componentId: "sc-3v7xpu-5"
|
|
26
31
|
})(["display:flex;flex-direction:column;align-items:center;justify-content:center;height:200px;color:#8c8c8c;font-size:14px;"]);
|
|
27
|
-
|
|
32
|
+
const StyledInfoIcon = exports.StyledInfoIcon = _styledComponents.default.span.withConfig({
|
|
28
33
|
displayName: "StyledInfoIcon",
|
|
29
34
|
componentId: "sc-3v7xpu-6"
|
|
30
35
|
})(["color:", ";font-size:16px;cursor:help;margin-left:4px;display:flex;align-items:center;&:hover{color:", ";}&.disabled{cursor:not-allowed;&:hover{color:", ";}}"], styledVars.CAP_G05, styledVars.CAP_G03, styledVars.CAP_G05);
|
|
31
|
-
|
|
36
|
+
const selectStyles = exports.selectStyles = (0, _styledComponents.css)(["&.cap-unified-select{width:100%;font-family:", ";}&.cap-unified-select-container{.ant-select-prefix{margin-left:-5px !important;font-size:14px !important;font-weight:400 !important;color:#091E42 !important;line-height:20px !important;}}"], styledVars.FONT_FAMILY);
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
6
|
+
var _reactIntl = require("react-intl");
|
|
7
|
+
var _en = _interopRequireDefault(require("../translations/en"));
|
|
8
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
5
11
|
const prefix = `blaze.components`;
|
|
6
12
|
const LocaleHoc = (WrapperComponent, customProps) => {
|
|
7
13
|
const Wrapper = props => {
|
|
8
14
|
const componentName = customProps.key;
|
|
9
|
-
const translatedDefaults =
|
|
15
|
+
const translatedDefaults = _en.default[componentName];
|
|
10
16
|
const {
|
|
11
17
|
intl
|
|
12
18
|
} = props;
|
|
13
|
-
const translatedProps = useMemo(() => {
|
|
19
|
+
const translatedProps = (0, _react.useMemo)(() => {
|
|
14
20
|
if (!translatedDefaults) return {};
|
|
15
21
|
return Object.keys(translatedDefaults).reduce((acc, key) => {
|
|
16
22
|
const id = `${prefix}.${componentName}.${key}`;
|
|
@@ -26,8 +32,11 @@ const LocaleHoc = (WrapperComponent, customProps) => {
|
|
|
26
32
|
return acc;
|
|
27
33
|
}, {});
|
|
28
34
|
}, [translatedDefaults, intl]);
|
|
29
|
-
return
|
|
35
|
+
return (0, _jsxRuntime.jsx)(WrapperComponent, {
|
|
36
|
+
...translatedProps,
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
30
39
|
};
|
|
31
|
-
return injectIntl(Wrapper);
|
|
40
|
+
return (0, _reactIntl.injectIntl)(Wrapper);
|
|
32
41
|
};
|
|
33
|
-
|
|
42
|
+
var _default = exports.default = LocaleHoc;
|
package/components/index.js
CHANGED
|
@@ -1,14 +1,33 @@
|
|
|
1
|
-
|
|
2
|
-
export { default as CapInput } from './CapInput';
|
|
3
|
-
export { default as CapTable } from './CapTable';
|
|
4
|
-
export { default as CapTestSelect } from './CapTestSelect'; // Test component for Ant Design v5 integration
|
|
1
|
+
"use strict";
|
|
5
2
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
var _exportNames = {
|
|
5
|
+
CapInput: true,
|
|
6
|
+
CapTable: true,
|
|
7
|
+
CapTestSelect: true,
|
|
8
|
+
LocaleHoc: true,
|
|
9
|
+
styled: true,
|
|
10
|
+
styledVars: true
|
|
11
|
+
};
|
|
12
|
+
exports.styledVars = exports.styled = exports.LocaleHoc = exports.CapTestSelect = exports.CapTable = exports.CapInput = void 0;
|
|
13
|
+
var _CapInput = _interopRequireDefault(require("./CapInput"));
|
|
14
|
+
exports.CapInput = _CapInput.default;
|
|
15
|
+
var _CapTable = _interopRequireDefault(require("./CapTable"));
|
|
16
|
+
exports.CapTable = _CapTable.default;
|
|
17
|
+
var _CapTestSelect = _interopRequireDefault(require("./CapTestSelect"));
|
|
18
|
+
exports.CapTestSelect = _CapTestSelect.default;
|
|
19
|
+
var _LocaleHoc = _interopRequireDefault(require("./LocaleHoc"));
|
|
20
|
+
exports.LocaleHoc = _LocaleHoc.default;
|
|
21
|
+
var _styledVars = _interopRequireWildcard(require("./styled/variables"));
|
|
22
|
+
exports.styledVars = _styledVars;
|
|
23
|
+
var _styled = _interopRequireDefault(require("./styled"));
|
|
24
|
+
exports.styled = _styled.default;
|
|
25
|
+
var _utils = require("../utils");
|
|
26
|
+
Object.keys(_utils).forEach(function (key) {
|
|
27
|
+
if (key === "default" || key === "__esModule") return;
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
29
|
+
if (key in exports && exports[key] === _utils[key]) return;
|
|
30
|
+
exports[key] = _utils[key];
|
|
31
|
+
});
|
|
32
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
33
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
@@ -1,5 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export default styledVars;
|
|
1
|
+
"use strict";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
var _exportNames = {};
|
|
5
|
+
exports.default = void 0;
|
|
6
|
+
var styledVars = _interopRequireWildcard(require("./variables"));
|
|
7
|
+
Object.keys(styledVars).forEach(function (key) {
|
|
8
|
+
if (key === "default" || key === "__esModule") return;
|
|
9
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
10
|
+
if (key in exports && exports[key] === styledVars[key]) return;
|
|
11
|
+
exports[key] = styledVars[key];
|
|
12
|
+
});
|
|
13
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
14
|
+
var _default = exports.default = styledVars;
|
|
@@ -1,88 +1,70 @@
|
|
|
1
|
-
|
|
2
|
-
//========================
|
|
1
|
+
"use strict";
|
|
3
2
|
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.TRANSITION_ALL = exports.SPACING_32 = exports.SPACING_24 = exports.SPACING_16 = exports.SPACING_12 = exports.SPACING_08 = exports.SPACING_04 = exports.RADIUS_08 = exports.RADIUS_04 = exports.FONT_WEIGHT_REGULAR = exports.FONT_WEIGHT_MEDIUM = exports.FONT_FAMILY = exports.CAP_YELLOW02 = exports.CAP_YELLOW01 = exports.CAP_YELLOW = exports.CAP_WHITE = exports.CAP_SECONDARY = exports.CAP_RED03 = exports.CAP_RED02 = exports.CAP_RED01 = exports.CAP_RED = exports.CAP_PURPLE04 = exports.CAP_PURPLE03 = exports.CAP_PURPLE02 = exports.CAP_PURPLE01 = exports.CAP_PURPLE = exports.CAP_PRIMARY = exports.CAP_PINK = exports.CAP_PALE_GREY = exports.CAP_ORANGE02 = exports.CAP_ORANGE01 = exports.CAP_ORANGE = exports.CAP_ICON = exports.CAP_GREEN02 = exports.CAP_GREEN01 = exports.CAP_G20 = exports.CAP_G19 = exports.CAP_G18 = exports.CAP_G17 = exports.CAP_G16 = exports.CAP_G15 = exports.CAP_G14 = exports.CAP_G13 = exports.CAP_G12 = exports.CAP_G11 = exports.CAP_G10 = exports.CAP_G09 = exports.CAP_G08 = exports.CAP_G07 = exports.CAP_G06 = exports.CAP_G05 = exports.CAP_G04 = exports.CAP_G03 = exports.CAP_G02 = exports.CAP_G01 = exports.CAP_BLUE02 = exports.CAP_BLUE01 = exports.CAP_BLUE = exports.CAP_BLACK = void 0;
|
|
5
|
+
const CAP_PRIMARY = exports.CAP_PRIMARY = {
|
|
6
6
|
base: "#47af46",
|
|
7
7
|
hover: "#1f9a1d",
|
|
8
8
|
disabled: "#a1d8a0"
|
|
9
9
|
};
|
|
10
|
-
|
|
11
|
-
// Secondary colors
|
|
12
|
-
export const CAP_SECONDARY = {
|
|
10
|
+
const CAP_SECONDARY = exports.CAP_SECONDARY = {
|
|
13
11
|
base: "#2466ea",
|
|
14
12
|
light: 'rgba("#2466ea", 0.1)'
|
|
15
13
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
// ==============
|
|
74
|
-
export const SPACING_04 = "4px";
|
|
75
|
-
export const SPACING_08 = "8px";
|
|
76
|
-
export const SPACING_12 = "12px";
|
|
77
|
-
export const SPACING_16 = "16px";
|
|
78
|
-
export const SPACING_24 = "24px";
|
|
79
|
-
export const SPACING_32 = "32px";
|
|
80
|
-
|
|
81
|
-
/* Border Radius */
|
|
82
|
-
// ==============
|
|
83
|
-
export const RADIUS_04 = "4px";
|
|
84
|
-
export const RADIUS_08 = "8px";
|
|
85
|
-
|
|
86
|
-
/* Transition */
|
|
87
|
-
// ==============
|
|
88
|
-
export const TRANSITION_ALL = "all 0.3s ease";
|
|
14
|
+
const CAP_ORANGE = exports.CAP_ORANGE = "#f87d23";
|
|
15
|
+
const CAP_ORANGE01 = exports.CAP_ORANGE01 = "#ffe5d2";
|
|
16
|
+
const CAP_ORANGE02 = exports.CAP_ORANGE02 = "#fa7d02";
|
|
17
|
+
const CAP_YELLOW = exports.CAP_YELLOW = "#fec52e";
|
|
18
|
+
const CAP_YELLOW01 = exports.CAP_YELLOW01 = "#e8bc25";
|
|
19
|
+
const CAP_YELLOW02 = exports.CAP_YELLOW02 = "#f9d438";
|
|
20
|
+
const CAP_BLUE = exports.CAP_BLUE = "#23cccc";
|
|
21
|
+
const CAP_PURPLE = exports.CAP_PURPLE = "#8517e5";
|
|
22
|
+
const CAP_PINK = exports.CAP_PINK = "#e51fa3";
|
|
23
|
+
const CAP_RED = exports.CAP_RED = "#ea213a";
|
|
24
|
+
const CAP_ICON = exports.CAP_ICON = "#7a869a";
|
|
25
|
+
const CAP_PALE_GREY = exports.CAP_PALE_GREY = "#e9f0fe";
|
|
26
|
+
const CAP_BLUE01 = exports.CAP_BLUE01 = "#2466eb";
|
|
27
|
+
const CAP_BLUE02 = exports.CAP_BLUE02 = "#1d61ee";
|
|
28
|
+
const CAP_RED01 = exports.CAP_RED01 = "#e51fa3";
|
|
29
|
+
const CAP_RED02 = exports.CAP_RED02 = "#f5222d";
|
|
30
|
+
const CAP_RED03 = exports.CAP_RED03 = "#ed1b34";
|
|
31
|
+
const CAP_PURPLE01 = exports.CAP_PURPLE01 = "#6563ff";
|
|
32
|
+
const CAP_PURPLE02 = exports.CAP_PURPLE02 = "#a451ff";
|
|
33
|
+
const CAP_PURPLE03 = exports.CAP_PURPLE03 = "#f2e7fe";
|
|
34
|
+
const CAP_PURPLE04 = exports.CAP_PURPLE04 = "#d4e1fc";
|
|
35
|
+
const CAP_GREEN01 = exports.CAP_GREEN01 = "#6bb56b";
|
|
36
|
+
const CAP_GREEN02 = exports.CAP_GREEN02 = "#ecf7ec";
|
|
37
|
+
const CAP_G01 = exports.CAP_G01 = "#091e42";
|
|
38
|
+
const CAP_G02 = exports.CAP_G02 = "#253858";
|
|
39
|
+
const CAP_G03 = exports.CAP_G03 = "#42526e";
|
|
40
|
+
const CAP_G04 = exports.CAP_G04 = "#5e6c84";
|
|
41
|
+
const CAP_G05 = exports.CAP_G05 = "#97a0af";
|
|
42
|
+
const CAP_G06 = exports.CAP_G06 = "#b3bac5";
|
|
43
|
+
const CAP_G07 = exports.CAP_G07 = "#dfe2e7";
|
|
44
|
+
const CAP_G08 = exports.CAP_G08 = "#ebecf0";
|
|
45
|
+
const CAP_G09 = exports.CAP_G09 = "#f4f5f7";
|
|
46
|
+
const CAP_G10 = exports.CAP_G10 = "#fafbfc";
|
|
47
|
+
const CAP_G11 = exports.CAP_G11 = "#7a869a";
|
|
48
|
+
const CAP_G12 = exports.CAP_G12 = "#e8e8e8";
|
|
49
|
+
const CAP_G13 = exports.CAP_G13 = "#ecece7";
|
|
50
|
+
const CAP_G14 = exports.CAP_G14 = "#e9f0fd";
|
|
51
|
+
const CAP_G15 = exports.CAP_G15 = "#efefef";
|
|
52
|
+
const CAP_G16 = exports.CAP_G16 = "#2a2a2a";
|
|
53
|
+
const CAP_G17 = exports.CAP_G17 = "#7F8185";
|
|
54
|
+
const CAP_G18 = exports.CAP_G18 = "#dcdee2";
|
|
55
|
+
const CAP_G19 = exports.CAP_G19 = "#8a9ab2";
|
|
56
|
+
const CAP_G20 = exports.CAP_G20 = "#c2c2c2";
|
|
57
|
+
const CAP_WHITE = exports.CAP_WHITE = "#ffffff";
|
|
58
|
+
const CAP_BLACK = exports.CAP_BLACK = "#000000";
|
|
59
|
+
const FONT_FAMILY = exports.FONT_FAMILY = '"Roboto", sans-serif';
|
|
60
|
+
const FONT_WEIGHT_REGULAR = exports.FONT_WEIGHT_REGULAR = 400;
|
|
61
|
+
const FONT_WEIGHT_MEDIUM = exports.FONT_WEIGHT_MEDIUM = 500;
|
|
62
|
+
const SPACING_04 = exports.SPACING_04 = "4px";
|
|
63
|
+
const SPACING_08 = exports.SPACING_08 = "8px";
|
|
64
|
+
const SPACING_12 = exports.SPACING_12 = "12px";
|
|
65
|
+
const SPACING_16 = exports.SPACING_16 = "16px";
|
|
66
|
+
const SPACING_24 = exports.SPACING_24 = "24px";
|
|
67
|
+
const SPACING_32 = exports.SPACING_32 = "32px";
|
|
68
|
+
const RADIUS_04 = exports.RADIUS_04 = "4px";
|
|
69
|
+
const RADIUS_08 = exports.RADIUS_08 = "8px";
|
|
70
|
+
const TRANSITION_ALL = exports.TRANSITION_ALL = "all 0.3s ease";
|
package/package.json
CHANGED
package/utils/index.js
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.withStyles = void 0;
|
|
5
|
+
var _withStyles = _interopRequireDefault(require("./withStyles"));
|
|
6
|
+
exports.withStyles = _withStyles.default;
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
package/utils/withStyles.js
CHANGED
|
@@ -1,23 +1,15 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
* @returns {React.ComponentType} Returns the enhanced styled component.
|
|
8
|
-
*/
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
6
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
7
|
const withStyledComponent = (WrappedComponent, styles) => {
|
|
10
|
-
|
|
11
|
-
* A styled component generated by combining WrappedComponent with additional styles.
|
|
12
|
-
* @type {React.ComponentType}
|
|
13
|
-
*/
|
|
14
|
-
const StyledComponent = styled(WrappedComponent).withConfig({
|
|
8
|
+
const StyledComponent = (0, _styledComponents.default)(WrappedComponent).withConfig({
|
|
15
9
|
displayName: "StyledComponent",
|
|
16
10
|
componentId: "sc-ujcdm3-0"
|
|
17
11
|
})(["", ";"], styles);
|
|
18
|
-
|
|
19
|
-
// Set default props from the original component to the styled component
|
|
20
12
|
StyledComponent.defaultProps = WrappedComponent.defaultProps;
|
|
21
13
|
return StyledComponent;
|
|
22
14
|
};
|
|
23
|
-
|
|
15
|
+
var _default = exports.default = withStyledComponent;
|