@uxf/styles 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/components/AccesibleSvg/index.js +10 -6
- package/constants/index.d.ts +15 -13
- package/constants/index.js +5 -15
- package/mixins/appearanceReset.js +2 -2
- package/mixins/aspectRatio.d.ts +2 -2
- package/mixins/aspectRatio.js +3 -4
- package/mixins/injectCss.js +2 -2
- package/mixins/inputAutofill.js +2 -2
- package/mixins/inputReset.js +2 -2
- package/mixins/multilineTruncate.js +2 -2
- package/mixins/noWrap.js +2 -2
- package/mixins/reboot.js +2 -2
- package/mixins/responsiveHidden.d.ts +2 -1
- package/mixins/responsiveHidden.js +2 -2
- package/mixins/responsiveHideVisually.d.ts +2 -1
- package/mixins/responsiveHideVisually.js +2 -6
- package/mixins/responsiveMultilineTruncate.d.ts +2 -1
- package/mixins/responsiveMultilineTruncate.js +2 -2
- package/mixins/responsiveNoWrap.d.ts +2 -1
- package/mixins/responsiveNoWrap.js +2 -2
- package/mixins/responsiveTruncate.d.ts +2 -1
- package/mixins/responsiveTruncate.js +2 -2
- package/mixins/selectReset.d.ts +2 -1
- package/mixins/selectReset.js +2 -2
- package/mixins/textAreaReset.js +2 -2
- package/mixins/truncate.js +2 -2
- package/package.json +25 -32
- package/properties/background.d.ts +2 -2
- package/properties/background.js +4 -4
- package/properties/borders.d.ts +2 -2
- package/properties/borders.js +9 -9
- package/properties/breaks.d.ts +2 -2
- package/properties/breaks.js +5 -5
- package/properties/character.d.ts +2 -2
- package/properties/character.js +10 -10
- package/properties/child.d.ts +2 -2
- package/properties/child.js +9 -9
- package/properties/colors.d.ts +2 -2
- package/properties/colors.js +4 -4
- package/properties/column.d.ts +2 -2
- package/properties/column.js +8 -8
- package/properties/display.d.ts +2 -2
- package/properties/display.js +3 -3
- package/properties/flexChild.d.ts +2 -2
- package/properties/flexChild.js +7 -7
- package/properties/flexParent.d.ts +2 -2
- package/properties/flexParent.js +8 -8
- package/properties/floating.d.ts +2 -2
- package/properties/floating.js +4 -4
- package/properties/gridChild.d.ts +2 -2
- package/properties/gridChild.js +5 -5
- package/properties/gridParent.d.ts +2 -2
- package/properties/gridParent.js +18 -18
- package/properties/interactions.d.ts +2 -2
- package/properties/interactions.js +6 -6
- package/properties/margins.d.ts +2 -2
- package/properties/margins.js +6 -6
- package/properties/maxLines.d.ts +1 -1
- package/properties/maxLines.js +3 -4
- package/properties/objectFitting.d.ts +2 -2
- package/properties/objectFitting.js +4 -4
- package/properties/overflow.d.ts +2 -2
- package/properties/overflow.js +5 -5
- package/properties/paddings.d.ts +2 -2
- package/properties/paddings.js +6 -6
- package/properties/paragraph.d.ts +1 -1
- package/properties/paragraph.js +6 -7
- package/properties/perspective.d.ts +2 -2
- package/properties/perspective.js +4 -4
- package/properties/position.d.ts +2 -2
- package/properties/position.js +9 -9
- package/properties/shadows.d.ts +2 -2
- package/properties/shadows.js +4 -4
- package/properties/sizing.d.ts +2 -2
- package/properties/sizing.js +8 -8
- package/properties/spacings.d.ts +2 -2
- package/properties/spacings.js +2 -2
- package/properties/textDecoration.d.ts +2 -2
- package/properties/textDecoration.js +3 -3
- package/properties/transform.d.ts +2 -2
- package/properties/transform.js +5 -5
- package/properties/transitions.js +2 -2
- package/properties/typography.d.ts +1 -1
- package/properties/typography.js +2 -2
- package/properties/visibility.d.ts +1 -1
- package/properties/visibility.js +5 -6
- package/utils/columnsToPercent.js +2 -2
- package/utils/em.d.ts +1 -0
- package/utils/em.js +9 -0
- package/utils/encodedSvg.js +2 -2
- package/utils/formatAspectRatio.d.ts +2 -1
- package/utils/formatAspectRatio.js +4 -4
- package/utils/formatGridColumns.js +4 -4
- package/utils/formatValue.d.ts +3 -4
- package/utils/formatValue.js +7 -10
- package/utils/hiDPI.d.ts +1 -0
- package/utils/hiDPI.js +21 -0
- package/utils/percent.js +2 -2
- package/utils/rem.d.ts +1 -0
- package/utils/rem.js +9 -0
- package/utils/responsive.js +24 -24
- package/utils/responsiveMixin.d.ts +2 -1
- package/utils/responsiveMixin.js +7 -7
- package/utils/transition.js +3 -3
- package/utils/withUnit.js +2 -2
- package/utils/hexToRgb.d.ts +0 -1
- package/utils/hexToRgb.js +0 -10
package/README.md
CHANGED
|
@@ -12,7 +12,11 @@ var __assign = (this && this.__assign) || function () {
|
|
|
12
12
|
};
|
|
13
13
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
14
14
|
if (k2 === undefined) k2 = k;
|
|
15
|
-
Object.
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
18
|
+
}
|
|
19
|
+
Object.defineProperty(o, k2, desc);
|
|
16
20
|
}) : (function(o, m, k, k2) {
|
|
17
21
|
if (k2 === undefined) k2 = k;
|
|
18
22
|
o[k2] = m[k];
|
|
@@ -46,15 +50,15 @@ var slugify_1 = require("@uxf/core/utils/slugify");
|
|
|
46
50
|
var react_1 = __importStar(require("react"));
|
|
47
51
|
var AccessibleSvgComponent = function (props) {
|
|
48
52
|
var children = props.children, description = props.description, id = props.id, _a = props.preserveAspectRatio, preserveAspectRatio = _a === void 0 ? "xMidYMid meet" : _a, _b = props.role, role = _b === void 0 ? "img" : _b, title = props.title, viewBox = props.viewBox, restProps = __rest(props, ["children", "description", "id", "preserveAspectRatio", "role", "title", "viewBox"]);
|
|
49
|
-
var idPrefix = "svg__"
|
|
50
|
-
var titleId = idPrefix
|
|
51
|
-
var descriptionId = idPrefix
|
|
53
|
+
var idPrefix = "svg__".concat((0, slugify_1.slugify)(id));
|
|
54
|
+
var titleId = "".concat(idPrefix, "__title");
|
|
55
|
+
var descriptionId = "".concat(idPrefix, "__desc");
|
|
52
56
|
var ariaLabelledBy = [titleId, description].filter(function (i) { return i; }).join(" ");
|
|
53
57
|
return (react_1.default.createElement("svg", __assign({ "aria-labelledby": ariaLabelledBy, id: id, preserveAspectRatio: preserveAspectRatio, role: role, viewBox: viewBox }, restProps),
|
|
54
58
|
react_1.default.createElement("title", { id: titleId }, title),
|
|
55
59
|
!!description && react_1.default.createElement("desc", { id: descriptionId }, description),
|
|
56
60
|
children));
|
|
57
61
|
};
|
|
58
|
-
exports.AccessibleSvg = react_1.memo(AccessibleSvgComponent);
|
|
62
|
+
exports.AccessibleSvg = (0, react_1.memo)(AccessibleSvgComponent);
|
|
59
63
|
exports.AccessibleSvg.displayName = "AccessibleSvg";
|
|
60
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
64
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29tcG9uZW50cy9BY2Nlc2libGVTdmcvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLG1EQUFrRDtBQUNsRCw2Q0FBa0U7QUFVbEUsSUFBTSxzQkFBc0IsR0FBMkIsVUFBQyxLQUFLO0lBRXJELElBQUEsUUFBUSxHQVFSLEtBQUssU0FSRyxFQUNSLFdBQVcsR0FPWCxLQUFLLFlBUE0sRUFDWCxFQUFFLEdBTUYsS0FBSyxHQU5ILEVBQ0YsS0FLQSxLQUFLLG9CQUxnQyxFQUFyQyxtQkFBbUIsbUJBQUcsZUFBZSxLQUFBLEVBQ3JDLEtBSUEsS0FBSyxLQUpPLEVBQVosSUFBSSxtQkFBRyxLQUFLLEtBQUEsRUFDWixLQUFLLEdBR0wsS0FBSyxNQUhBLEVBQ0wsT0FBTyxHQUVQLEtBQUssUUFGRSxFQUNKLFNBQVMsVUFDWixLQUFLLEVBVEgsb0ZBU0wsQ0FEZSxDQUNOO0lBRVYsSUFBTSxRQUFRLEdBQUcsZUFBUSxJQUFBLGlCQUFPLEVBQUMsRUFBRSxDQUFDLENBQUUsQ0FBQztJQUN2QyxJQUFNLE9BQU8sR0FBRyxVQUFHLFFBQVEsWUFBUyxDQUFDO0lBQ3JDLElBQU0sYUFBYSxHQUFHLFVBQUcsUUFBUSxXQUFRLENBQUM7SUFDMUMsSUFBTSxjQUFjLEdBQUcsQ0FBQyxPQUFPLEVBQUUsV0FBVyxDQUFDLENBQUMsTUFBTSxDQUFDLFVBQUMsQ0FBQyxJQUFLLE9BQUEsQ0FBQyxFQUFELENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsQ0FBQztJQUV6RSxPQUFPLENBQ0gsbUVBQ3FCLGNBQWMsRUFDL0IsRUFBRSxFQUFFLEVBQUUsRUFDTixtQkFBbUIsRUFBRSxtQkFBbUIsRUFDeEMsSUFBSSxFQUFFLElBQUksRUFDVixPQUFPLEVBQUUsT0FBTyxJQUNaLFNBQVM7UUFFYix5Q0FBTyxFQUFFLEVBQUUsT0FBTyxJQUFHLEtBQUssQ0FBUztRQUNsQyxDQUFDLENBQUMsV0FBVyxJQUFJLHdDQUFNLEVBQUUsRUFBRSxhQUFhLElBQUcsV0FBVyxDQUFRO1FBQzlELFFBQVEsQ0FDUCxDQUNULENBQUM7QUFDTixDQUFDLENBQUM7QUFFVyxRQUFBLGFBQWEsR0FBRyxJQUFBLFlBQUksRUFBQyxzQkFBc0IsQ0FBQyxDQUFDO0FBRTFELHFCQUFhLENBQUMsV0FBVyxHQUFHLGVBQWUsQ0FBQyJ9
|
package/constants/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
/** @deprecated Moved to @uxf/core package and renamed.
|
|
2
|
+
* Use 'import { CLASSES } from "@uxf/core/constants/classes";' instead. */
|
|
3
|
+
export declare const Classes: {
|
|
4
|
+
readonly FOCUS_VISIBLE: "focus-visible";
|
|
5
|
+
readonly IS_ACTIVE: "is-active";
|
|
6
|
+
readonly IS_BUSY: "is-busy";
|
|
7
|
+
readonly IS_DISABLED: "is-disabled";
|
|
8
|
+
readonly IS_FOCUSED: "is-focused";
|
|
9
|
+
readonly IS_HOVERED: "is-hovered";
|
|
10
|
+
readonly IS_HOVERABLE: "is-hoverable";
|
|
11
|
+
readonly IS_INVALID: "is-invalid";
|
|
12
|
+
readonly IS_READONLY: "is-readonly";
|
|
13
|
+
readonly IS_SELECTED: "is-selected";
|
|
14
|
+
readonly IS_NOT_HOVERABLE: "is-not-hoverable";
|
|
15
|
+
};
|
package/constants/index.js
CHANGED
|
@@ -1,18 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Classes = void 0;
|
|
4
|
-
var
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
Classes["IS_DISABLED"] = "is-disabled";
|
|
10
|
-
Classes["IS_FOCUSED"] = "is-focused";
|
|
11
|
-
Classes["IS_HOVERED"] = "is-hovered";
|
|
12
|
-
Classes["IS_HOVERABLE"] = "is-hoverable";
|
|
13
|
-
Classes["IS_INVALID"] = "is-invalid";
|
|
14
|
-
Classes["IS_READONLY"] = "is-readonly";
|
|
15
|
-
Classes["IS_SELECTED"] = "is-selected";
|
|
16
|
-
Classes["IS_NOT_HOVERABLE"] = "is-not-hoverable";
|
|
17
|
-
})(Classes = exports.Classes || (exports.Classes = {}));
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uc3RhbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLElBQVksT0FZWDtBQVpELFdBQVksT0FBTztJQUNmLDBDQUErQixDQUFBO0lBQy9CLGtDQUF1QixDQUFBO0lBQ3ZCLDhCQUFtQixDQUFBO0lBQ25CLHNDQUEyQixDQUFBO0lBQzNCLG9DQUF5QixDQUFBO0lBQ3pCLG9DQUF5QixDQUFBO0lBQ3pCLHdDQUE2QixDQUFBO0lBQzdCLG9DQUF5QixDQUFBO0lBQ3pCLHNDQUEyQixDQUFBO0lBQzNCLHNDQUEyQixDQUFBO0lBQzNCLGdEQUFxQyxDQUFBO0FBQ3pDLENBQUMsRUFaVyxPQUFPLEdBQVAsZUFBTyxLQUFQLGVBQU8sUUFZbEIifQ==
|
|
4
|
+
var classes_1 = require("@uxf/core/constants/classes");
|
|
5
|
+
/** @deprecated Moved to @uxf/core package and renamed.
|
|
6
|
+
* Use 'import { CLASSES } from "@uxf/core/constants/classes";' instead. */
|
|
7
|
+
exports.Classes = classes_1.CLASSES;
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29uc3RhbnRzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHVEQUFzRDtBQUV0RDsyRUFDMkU7QUFDOUQsUUFBQSxPQUFPLEdBQUcsaUJBQU8sQ0FBQyJ9
|
|
@@ -6,6 +6,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.appearanceReset = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
|
-
exports.appearanceReset = styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n appearance: none;\n background-color: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n"], ["\n appearance: none;\n background-color: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n"])));
|
|
9
|
+
exports.appearanceReset = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n appearance: none;\n background-color: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n"], ["\n appearance: none;\n background-color: transparent;\n border: 0;\n border-radius: 0;\n box-shadow: none;\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n"])));
|
|
10
10
|
var templateObject_1;
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwZWFyYW5jZVJlc2V0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21peGlucy9hcHBlYXJhbmNlUmVzZXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLHVEQUF3QztBQUUzQixRQUFBLGVBQWUsT0FBRyx1QkFBRywrUEFBQSwyTEFTakMsS0FBQyJ9
|
package/mixins/aspectRatio.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ResponsiveProperty } from "../types";
|
|
2
|
-
export declare const aspectRatio: <B extends
|
|
1
|
+
import { BreakpointsType, ResponsiveProperty } from "../types";
|
|
2
|
+
export declare const aspectRatio: <B extends BreakpointsType>(breakpoints: B, ratio: ResponsiveProperty.AspectRatio) => import("styled-components").FlattenSimpleInterpolation | null;
|
package/mixins/aspectRatio.js
CHANGED
|
@@ -10,11 +10,10 @@ var formatAspectRatio_1 = require("../utils/formatAspectRatio");
|
|
|
10
10
|
var responsive_1 = require("../utils/responsive");
|
|
11
11
|
var aspectRatio = function (breakpoints, ratio) {
|
|
12
12
|
return (Array.isArray(ratio) && ratio.some(function (i) { return i; })) || ratio
|
|
13
|
-
? styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &::before {\n content: \"\";\n display: block;\n width: 100%;\n\n ", ";\n }\n "], ["\n &::before {\n content: \"\";\n display: block;\n width: 100%;\n\n ",
|
|
14
|
-
|
|
15
|
-
paddingBottom: formatAspectRatio_1.formatResponsiveAspectRatio(ratio),
|
|
13
|
+
? (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &::before {\n content: \"\";\n display: block;\n width: 100%;\n\n ", ";\n }\n "], ["\n &::before {\n content: \"\";\n display: block;\n width: 100%;\n\n ", ";\n }\n "])), (0, responsive_1.facepaintMin)(breakpoints)({
|
|
14
|
+
paddingBottom: (0, formatAspectRatio_1.formatResponsiveAspectRatio)(ratio),
|
|
16
15
|
})) : null;
|
|
17
16
|
};
|
|
18
17
|
exports.aspectRatio = aspectRatio;
|
|
19
18
|
var templateObject_1;
|
|
20
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXNwZWN0UmF0aW8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWl4aW5zL2FzcGVjdFJhdGlvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSx1REFBd0M7QUFDeEMsZ0VBQXlFO0FBQ3pFLGtEQUFtRDtBQUc1QyxJQUFNLFdBQVcsR0FBRyxVQUE0QixXQUFjLEVBQUUsS0FBcUM7SUFDeEcsT0FBQSxDQUFDLEtBQUssQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDLElBQUksS0FBSyxDQUFDLElBQUksQ0FBQyxVQUFDLENBQUMsSUFBSyxPQUFBLENBQUMsRUFBRCxDQUFDLENBQUMsQ0FBQyxJQUFJLEtBQUs7UUFDbkQsQ0FBQyxLQUFDLHVCQUFHLDhQQUFBLHdKQU1PLEVBRUEsZ0NBRVQsS0FKUyxJQUFBLHlCQUFZLEVBQUMsV0FBVyxDQUFDLENBQUM7WUFDeEIsYUFBYSxFQUFFLElBQUEsK0NBQTJCLEVBQUMsS0FBSyxDQUFDO1NBQ3BELENBQUMsRUFHWixDQUFDLENBQUMsSUFBSTtBQVpWLENBWVUsQ0FBQztBQWJGLFFBQUEsV0FBVyxlQWFUIn0=
|
package/mixins/injectCss.js
CHANGED
|
@@ -8,10 +8,10 @@ exports.injectCss = void 0;
|
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
9
|
var injectCss = function (style) {
|
|
10
10
|
if (style && style.some(function (i) { return i; })) {
|
|
11
|
-
return styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n && {\n ", "\n }\n "], ["\n && {\n ", "\n }\n "])), style);
|
|
11
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n && {\n ", "\n }\n "], ["\n && {\n ", "\n }\n "])), style);
|
|
12
12
|
}
|
|
13
13
|
return null;
|
|
14
14
|
};
|
|
15
15
|
exports.injectCss = injectCss;
|
|
16
16
|
var templateObject_1;
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5qZWN0Q3NzLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21peGlucy9pbmplY3RDc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLHVEQUFvRTtBQUU3RCxJQUFNLFNBQVMsR0FBRyxVQUFDLEtBQWtDO0lBQ3hELElBQUksS0FBSyxJQUFJLEtBQUssQ0FBQyxJQUFJLENBQUMsVUFBQyxDQUFDLElBQUssT0FBQSxDQUFDLEVBQUQsQ0FBQyxDQUFDLEVBQUU7UUFDL0IsV0FBTyx1QkFBRyx1SUFBQSxzQ0FFQSxFQUFLLDJCQUVkLEtBRlMsS0FBSyxFQUViO0tBQ0w7SUFDRCxPQUFPLElBQUksQ0FBQztBQUNoQixDQUFDLENBQUM7QUFUVyxRQUFBLFNBQVMsYUFTcEIifQ==
|
package/mixins/inputAutofill.js
CHANGED
|
@@ -6,7 +6,7 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.inputAutofill = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
|
-
var inputAutofill = function (background, color) { return styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:-webkit-autofill {\n -webkit-box-shadow: 0 0 0 1000px ", " inset;\n -webkit-text-fill-color: ", " !important;\n }\n &:-moz-autofill {\n -moz-box-shadow: 0 0 0 1000px ", " inset;\n -moz-text-fill-color: ", " !important;\n }\n &:-o-autofill {\n -o-box-shadow: 0 0 0 1000px ", " inset;\n -o-text-fill-color: ", " !important;\n }\n &:-khtml-autofill {\n -khtml-box-shadow: 0 0 0 1000px ", " inset;\n -khtml-text-fill-color: ", " !important;\n }\n /* stylelint-enable */\n"], ["\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:-webkit-autofill {\n -webkit-box-shadow: 0 0 0 1000px ", " inset;\n -webkit-text-fill-color: ", " !important;\n }\n &:-moz-autofill {\n -moz-box-shadow: 0 0 0 1000px ", " inset;\n -moz-text-fill-color: ", " !important;\n }\n &:-o-autofill {\n -o-box-shadow: 0 0 0 1000px ", " inset;\n -o-text-fill-color: ", " !important;\n }\n &:-khtml-autofill {\n -khtml-box-shadow: 0 0 0 1000px ", " inset;\n -khtml-text-fill-color: ", " !important;\n }\n /* stylelint-enable */\n"])), background, color, background, color, background, color, background, color); };
|
|
9
|
+
var inputAutofill = function (background, color) { return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:-webkit-autofill {\n -webkit-box-shadow: 0 0 0 1000px ", " inset;\n -webkit-text-fill-color: ", " !important;\n }\n &:-moz-autofill {\n -moz-box-shadow: 0 0 0 1000px ", " inset;\n -moz-text-fill-color: ", " !important;\n }\n &:-o-autofill {\n -o-box-shadow: 0 0 0 1000px ", " inset;\n -o-text-fill-color: ", " !important;\n }\n &:-khtml-autofill {\n -khtml-box-shadow: 0 0 0 1000px ", " inset;\n -khtml-text-fill-color: ", " !important;\n }\n /* stylelint-enable */\n"], ["\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:-webkit-autofill {\n -webkit-box-shadow: 0 0 0 1000px ", " inset;\n -webkit-text-fill-color: ", " !important;\n }\n &:-moz-autofill {\n -moz-box-shadow: 0 0 0 1000px ", " inset;\n -moz-text-fill-color: ", " !important;\n }\n &:-o-autofill {\n -o-box-shadow: 0 0 0 1000px ", " inset;\n -o-text-fill-color: ", " !important;\n }\n &:-khtml-autofill {\n -khtml-box-shadow: 0 0 0 1000px ", " inset;\n -khtml-text-fill-color: ", " !important;\n }\n /* stylelint-enable */\n"])), background, color, background, color, background, color, background, color); };
|
|
10
10
|
exports.inputAutofill = inputAutofill;
|
|
11
11
|
var templateObject_1;
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXRBdXRvZmlsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taXhpbnMvaW5wdXRBdXRvZmlsbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsdURBQXdDO0FBR2pDLElBQU0sYUFBYSxHQUFHLFVBQUMsVUFBeUIsRUFBRSxLQUFvQixJQUFLLFdBQUEsdUJBQUcsbXNCQUFBLHlKQUcxQyxFQUFVLDRDQUNsQixFQUFLLG9GQUdBLEVBQVUseUNBQ2xCLEVBQUssZ0ZBR0MsRUFBVSx1Q0FDbEIsRUFBSyx3RkFHTyxFQUFVLDJDQUNsQixFQUFLLG1EQUd0QyxLQWhCMEMsVUFBVSxFQUNsQixLQUFLLEVBR0EsVUFBVSxFQUNsQixLQUFLLEVBR0MsVUFBVSxFQUNsQixLQUFLLEVBR08sVUFBVSxFQUNsQixLQUFLLEdBaEIyQyxDQW1CakYsQ0FBQztBQW5CVyxRQUFBLGFBQWEsaUJBbUJ4QiJ9
|
package/mixins/inputReset.js
CHANGED
|
@@ -7,6 +7,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.inputReset = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
9
|
var appearanceReset_1 = require("./appearanceReset");
|
|
10
|
-
exports.inputReset = styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-moz-placeholder {\n opacity: 1;\n }\n\n &::-ms-clear,\n &::-ms-reveal {\n display: none;\n }\n\n &::-webkit-calendar-picker-indicator,\n &::-webkit-clear-button,\n &::-webkit-inner-spin-button,\n &::-webkit-outer-spin-button {\n margin: 0;\n -webkit-appearance: none;\n }\n\n &[type=\"date\"],\n &[type=\"datetime\"],\n &[type=\"datetime-local\"],\n &[type=\"month\"],\n &[type=\"number\"],\n &[type=\"time\"],\n &[type=\"week\"] {\n -webkit-appearance: none;\n -moz-appearance: textfield;\n }\n /* stylelint-enable */\n"], ["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-moz-placeholder {\n opacity: 1;\n }\n\n &::-ms-clear,\n &::-ms-reveal {\n display: none;\n }\n\n &::-webkit-calendar-picker-indicator,\n &::-webkit-clear-button,\n &::-webkit-inner-spin-button,\n &::-webkit-outer-spin-button {\n margin: 0;\n -webkit-appearance: none;\n }\n\n &[type=\"date\"],\n &[type=\"datetime\"],\n &[type=\"datetime-local\"],\n &[type=\"month\"],\n &[type=\"number\"],\n &[type=\"time\"],\n &[type=\"week\"] {\n -webkit-appearance: none;\n -moz-appearance: textfield;\n }\n /* stylelint-enable */\n"])), appearanceReset_1.appearanceReset);
|
|
10
|
+
exports.inputReset = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-moz-placeholder {\n opacity: 1;\n }\n\n &::-ms-clear,\n &::-ms-reveal {\n display: none;\n }\n\n &::-webkit-calendar-picker-indicator,\n &::-webkit-clear-button,\n &::-webkit-inner-spin-button,\n &::-webkit-outer-spin-button {\n margin: 0;\n -webkit-appearance: none;\n }\n\n &[type=\"date\"],\n &[type=\"datetime\"],\n &[type=\"datetime-local\"],\n &[type=\"month\"],\n &[type=\"number\"],\n &[type=\"time\"],\n &[type=\"week\"] {\n -webkit-appearance: none;\n -moz-appearance: textfield;\n }\n /* stylelint-enable */\n"], ["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-moz-placeholder {\n opacity: 1;\n }\n\n &::-ms-clear,\n &::-ms-reveal {\n display: none;\n }\n\n &::-webkit-calendar-picker-indicator,\n &::-webkit-clear-button,\n &::-webkit-inner-spin-button,\n &::-webkit-outer-spin-button {\n margin: 0;\n -webkit-appearance: none;\n }\n\n &[type=\"date\"],\n &[type=\"datetime\"],\n &[type=\"datetime-local\"],\n &[type=\"month\"],\n &[type=\"number\"],\n &[type=\"time\"],\n &[type=\"week\"] {\n -webkit-appearance: none;\n -moz-appearance: textfield;\n }\n /* stylelint-enable */\n"])), appearanceReset_1.appearanceReset);
|
|
11
11
|
var templateObject_1;
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5wdXRSZXNldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taXhpbnMvaW5wdXRSZXNldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsdURBQXdDO0FBQ3hDLHFEQUFvRDtBQUV2QyxRQUFBLFVBQVUsT0FBRyx1QkFBRyw0MEJBQUEsUUFDdkIsRUFBZSw4dkJBbUNwQixLQW5DSyxpQ0FBZSxFQW1DbkIifQ==
|
|
@@ -8,8 +8,8 @@ exports.multilineTruncate = void 0;
|
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
9
|
var multilineTruncate = function (lines) {
|
|
10
10
|
return lines
|
|
11
|
-
? styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable property-no-vendor-prefix, value-no-vendor-prefix */\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n overflow: hidden;\n /* stylelint-enable */\n "], ["\n /* stylelint-disable property-no-vendor-prefix, value-no-vendor-prefix */\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n overflow: hidden;\n /* stylelint-enable */\n "])), lines) : null;
|
|
11
|
+
? (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable property-no-vendor-prefix, value-no-vendor-prefix */\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n overflow: hidden;\n /* stylelint-enable */\n "], ["\n /* stylelint-disable property-no-vendor-prefix, value-no-vendor-prefix */\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: vertical;\n overflow: hidden;\n /* stylelint-enable */\n "])), lines) : null;
|
|
12
12
|
};
|
|
13
13
|
exports.multilineTruncate = multilineTruncate;
|
|
14
14
|
var templateObject_1;
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibXVsdGlsaW5lVHJ1bmNhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWl4aW5zL211bHRpbGluZVRydW5jYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSx1REFBd0M7QUFFakMsSUFBTSxpQkFBaUIsR0FBRyxVQUFDLEtBQWM7SUFDNUMsT0FBQSxLQUFLO1FBQ0QsQ0FBQyxLQUFDLHVCQUFHLDZXQUFBLG9LQUd1QixFQUFLLG1JQUk5QixLQUp5QixLQUFLLEVBS2pDLENBQUMsQ0FBQyxJQUFJO0FBVFYsQ0FTVSxDQUFDO0FBVkYsUUFBQSxpQkFBaUIscUJBVWYifQ==
|
package/mixins/noWrap.js
CHANGED
|
@@ -6,6 +6,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.noWrap = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
|
-
exports.noWrap = styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n white-space: nowrap;\n"], ["\n white-space: nowrap;\n"])));
|
|
9
|
+
exports.noWrap = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n white-space: nowrap;\n"], ["\n white-space: nowrap;\n"])));
|
|
10
10
|
var templateObject_1;
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibm9XcmFwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21peGlucy9ub1dyYXAudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLHVEQUF3QztBQUUzQixRQUFBLE1BQU0sT0FBRyx1QkFBRyxrR0FBQSw4QkFFeEIsS0FBQyJ9
|
package/mixins/reboot.js
CHANGED
|
@@ -10,8 +10,8 @@ var SYSTEM_FONTS = 'system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarel
|
|
|
10
10
|
var SYSTEM_FONTS_MONOSPACE = "SFMono-Regular, Menlo, Monaco, Consolas, Roboto Mono, Ubuntu Monospace, Noto Mono, Oxygen Mono, Liberation Mono, monospace";
|
|
11
11
|
var reboot = function (options) {
|
|
12
12
|
var _a, _b, _c, _d, _e;
|
|
13
|
-
return styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable */\n *,\n *::before,\n *::after {\n background-repeat: no-repeat;\n box-sizing: border-box;\n }\n\n ::before,\n ::after {\n text-decoration: inherit;\n vertical-align: inherit;\n }\n\n html {\n cursor: default;\n font-family: sans-serif;\n font-size: 1rem;\n line-height: 1.15;\n overflow-wrap: break-word;\n tab-size: 4;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(#000, 0);\n }\n\n @-ms-viewport {\n width: device-width;\n }\n\n article,\n aside,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n main,\n nav,\n section {\n display: block;\n }\n\n body {\n background-color: ", ";\n color: ", ";\n font-family: ", ";\n font-size: 1em;\n font-weight: ", ";\n line-height: ", ";\n margin: 0;\n text-align: left;\n }\n\n [tabindex=\"-1\"]:focus {\n outline: 0 !important;\n }\n\n hr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p {\n margin: 0;\n }\n\n abbr[title],\n abbr[data-original-title] {\n border-bottom: 0;\n cursor: help;\n text-decoration: underline;\n text-decoration: underline dotted;\n }\n\n address {\n font-style: normal;\n line-height: inherit;\n margin: 0;\n }\n\n ol,\n ul,\n dl {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n ol ol,\n ul ul,\n ol ul,\n ul ol {\n margin: 0;\n }\n\n dt {\n font-weight: unset;\n }\n\n dd {\n margin: 0;\n }\n\n blockquote {\n margin: 0;\n }\n\n dfn {\n font-style: italic;\n }\n\n b,\n strong {\n font-weight: bolder;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n a {\n background-color: transparent;\n color: ", ";\n text-decoration: underline;\n -webkit-text-decoration-skip: objects;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: ", ";\n font-size: 1em;\n }\n\n pre {\n margin: 0;\n overflow: auto;\n -ms-overflow-style: scrollbar;\n }\n\n figure {\n margin: 0;\n }\n\n img {\n border-style: none;\n }\n\n svg {\n overflow: hidden;\n }\n\n audio,\n canvas,\n iframe,\n img,\n svg,\n video {\n vertical-align: middle;\n }\n\n table {\n border-collapse: collapse;\n }\n\n caption {\n caption-side: bottom;\n color: unset;\n text-align: left;\n padding: 0;\n }\n\n th {\n text-align: inherit;\n }\n\n label {\n display: inline-block;\n margin: 0;\n }\n\n button {\n border-radius: 0;\n }\n\n button:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n }\n\n input,\n button,\n select,\n optgroup,\n textarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button,\n html [type=\"button\"],\n [type=\"reset\"],\n [type=\"submit\"] {\n -webkit-appearance: button;\n }\n\n button::-moz-focus-inner,\n [type=\"button\"]::-moz-focus-inner,\n [type=\"reset\"]::-moz-focus-inner,\n [type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n input[type=\"radio\"],\n input[type=\"checkbox\"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n input[type=\"date\"],\n input[type=\"time\"],\n input[type=\"datetime-local\"],\n input[type=\"month\"] {\n -webkit-appearance: listbox;\n }\n\n [type=\"color\"],\n [type=\"range\"] {\n border-width: 0;\n padding: 0;\n }\n\n textarea {\n overflow: auto;\n resize: vertical;\n }\n\n fieldset {\n border: 0;\n margin: 0;\n min-width: 0;\n padding: 0;\n }\n\n legend {\n color: inherit;\n display: block;\n font-size: 1em;\n line-height: inherit;\n margin: 0;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n width: 100%;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n [type=\"number\"]::-webkit-inner-spin-button,\n [type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n }\n\n [type=\"search\"] {\n outline-offset: -2px;\n -webkit-appearance: none;\n }\n\n [type=\"search\"]::-webkit-search-cancel-button,\n [type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n\n ::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n }\n\n output {\n display: inline-block;\n }\n\n summary {\n display: list-item;\n cursor: pointer;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none;\n }\n\n svg:not([fill]) {\n fill: currentColor;\n }\n\n a,\n area,\n button,\n input,\n label,\n select,\n summary,\n textarea,\n [tabindex] {\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n }\n\n [aria-busy=\"true\"] {\n cursor: progress;\n }\n\n [aria-controls] {\n cursor: pointer;\n }\n\n [aria-disabled=\"true\"],\n [disabled] {\n cursor: default;\n }\n\n [aria-hidden=\"false\"][hidden] {\n display: initial !important;\n }\n\n [aria-hidden=\"false\"][hidden]:not(:focus) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n }\n /* stylelint-enable */\n"], ["\n /* stylelint-disable */\n *,\n *::before,\n *::after {\n background-repeat: no-repeat;\n box-sizing: border-box;\n }\n\n ::before,\n ::after {\n text-decoration: inherit;\n vertical-align: inherit;\n }\n\n html {\n cursor: default;\n font-family: sans-serif;\n font-size: 1rem;\n line-height: 1.15;\n overflow-wrap: break-word;\n tab-size: 4;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(#000, 0);\n }\n\n @-ms-viewport {\n width: device-width;\n }\n\n article,\n aside,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n main,\n nav,\n section {\n display: block;\n }\n\n body {\n background-color: ", ";\n color: ", ";\n font-family: ", ";\n font-size: 1em;\n font-weight: ", ";\n line-height: ", ";\n margin: 0;\n text-align: left;\n }\n\n [tabindex=\"-1\"]:focus {\n outline: 0 !important;\n }\n\n hr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p {\n margin: 0;\n }\n\n abbr[title],\n abbr[data-original-title] {\n border-bottom: 0;\n cursor: help;\n text-decoration: underline;\n text-decoration: underline dotted;\n }\n\n address {\n font-style: normal;\n line-height: inherit;\n margin: 0;\n }\n\n ol,\n ul,\n dl {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n ol ol,\n ul ul,\n ol ul,\n ul ol {\n margin: 0;\n }\n\n dt {\n font-weight: unset;\n }\n\n dd {\n margin: 0;\n }\n\n blockquote {\n margin: 0;\n }\n\n dfn {\n font-style: italic;\n }\n\n b,\n strong {\n font-weight: bolder;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n a {\n background-color: transparent;\n color: ", ";\n text-decoration: underline;\n -webkit-text-decoration-skip: objects;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: ", ";\n font-size: 1em;\n }\n\n pre {\n margin: 0;\n overflow: auto;\n -ms-overflow-style: scrollbar;\n }\n\n figure {\n margin: 0;\n }\n\n img {\n border-style: none;\n }\n\n svg {\n overflow: hidden;\n }\n\n audio,\n canvas,\n iframe,\n img,\n svg,\n video {\n vertical-align: middle;\n }\n\n table {\n border-collapse: collapse;\n }\n\n caption {\n caption-side: bottom;\n color: unset;\n text-align: left;\n padding: 0;\n }\n\n th {\n text-align: inherit;\n }\n\n label {\n display: inline-block;\n margin: 0;\n }\n\n button {\n border-radius: 0;\n }\n\n button:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n }\n\n input,\n button,\n select,\n optgroup,\n textarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button,\n html [type=\"button\"],\n [type=\"reset\"],\n [type=\"submit\"] {\n -webkit-appearance: button;\n }\n\n button::-moz-focus-inner,\n [type=\"button\"]::-moz-focus-inner,\n [type=\"reset\"]::-moz-focus-inner,\n [type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n input[type=\"radio\"],\n input[type=\"checkbox\"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n input[type=\"date\"],\n input[type=\"time\"],\n input[type=\"datetime-local\"],\n input[type=\"month\"] {\n -webkit-appearance: listbox;\n }\n\n [type=\"color\"],\n [type=\"range\"] {\n border-width: 0;\n padding: 0;\n }\n\n textarea {\n overflow: auto;\n resize: vertical;\n }\n\n fieldset {\n border: 0;\n margin: 0;\n min-width: 0;\n padding: 0;\n }\n\n legend {\n color: inherit;\n display: block;\n font-size: 1em;\n line-height: inherit;\n margin: 0;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n width: 100%;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n [type=\"number\"]::-webkit-inner-spin-button,\n [type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n }\n\n [type=\"search\"] {\n outline-offset: -2px;\n -webkit-appearance: none;\n }\n\n [type=\"search\"]::-webkit-search-cancel-button,\n [type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n\n ::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n }\n\n output {\n display: inline-block;\n }\n\n summary {\n display: list-item;\n cursor: pointer;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none;\n }\n\n svg:not([fill]) {\n fill: currentColor;\n }\n\n a,\n area,\n button,\n input,\n label,\n select,\n summary,\n textarea,\n [tabindex] {\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n }\n\n [aria-busy=\"true\"] {\n cursor: progress;\n }\n\n [aria-controls] {\n cursor: pointer;\n }\n\n [aria-disabled=\"true\"],\n [disabled] {\n cursor: default;\n }\n\n [aria-hidden=\"false\"][hidden] {\n display: initial !important;\n }\n\n [aria-hidden=\"false\"][hidden]:not(:focus) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n }\n /* stylelint-enable */\n"])), (_a = options === null || options === void 0 ? void 0 : options.bodyBg) !== null && _a !== void 0 ? _a : "#fff", (_b = options === null || options === void 0 ? void 0 : options.bodyColor) !== null && _b !== void 0 ? _b : "#000", [options === null || options === void 0 ? void 0 : options.fontFamilyBase, SYSTEM_FONTS].filter(function (i) { return i; }).join(", "), (_c = options === null || options === void 0 ? void 0 : options.fontWeightBase) !== null && _c !== void 0 ? _c : 400, (_d = options === null || options === void 0 ? void 0 : options.lineHeightBase) !== null && _d !== void 0 ? _d : 1, (_e = options === null || options === void 0 ? void 0 : options.linkColor) !== null && _e !== void 0 ? _e : "#007bff", [options === null || options === void 0 ? void 0 : options.fontFamilyMonospace, SYSTEM_FONTS_MONOSPACE].filter(function (i) { return i; }).join(", "));
|
|
13
|
+
return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n /* stylelint-disable */\n *,\n *::before,\n *::after {\n background-repeat: no-repeat;\n box-sizing: border-box;\n }\n\n ::before,\n ::after {\n text-decoration: inherit;\n vertical-align: inherit;\n }\n\n html {\n cursor: default;\n font-family: sans-serif;\n font-size: 1rem;\n line-height: 1.15;\n overflow-wrap: break-word;\n tab-size: 4;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(#000, 0);\n }\n\n @-ms-viewport {\n width: device-width;\n }\n\n article,\n aside,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n main,\n nav,\n section {\n display: block;\n }\n\n body {\n background-color: ", ";\n color: ", ";\n font-family: ", ";\n font-size: 1em;\n font-weight: ", ";\n line-height: ", ";\n margin: 0;\n text-align: left;\n }\n\n [tabindex=\"-1\"]:focus {\n outline: 0 !important;\n }\n\n hr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p {\n margin: 0;\n }\n\n abbr[title],\n abbr[data-original-title] {\n border-bottom: 0;\n cursor: help;\n text-decoration: underline;\n text-decoration: underline dotted;\n }\n\n address {\n font-style: normal;\n line-height: inherit;\n margin: 0;\n }\n\n ol,\n ul,\n dl {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n ol ol,\n ul ul,\n ol ul,\n ul ol {\n margin: 0;\n }\n\n dt {\n font-weight: unset;\n }\n\n dd {\n margin: 0;\n }\n\n blockquote {\n margin: 0;\n }\n\n dfn {\n font-style: italic;\n }\n\n b,\n strong {\n font-weight: bolder;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n a {\n background-color: transparent;\n color: ", ";\n text-decoration: underline;\n -webkit-text-decoration-skip: objects;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: ", ";\n font-size: 1em;\n }\n\n pre {\n margin: 0;\n overflow: auto;\n -ms-overflow-style: scrollbar;\n }\n\n figure {\n margin: 0;\n }\n\n img {\n border-style: none;\n }\n\n svg {\n overflow: hidden;\n }\n\n audio,\n canvas,\n iframe,\n img,\n svg,\n video {\n vertical-align: middle;\n }\n\n table {\n border-collapse: collapse;\n }\n\n caption {\n caption-side: bottom;\n color: unset;\n text-align: left;\n padding: 0;\n }\n\n th {\n text-align: inherit;\n }\n\n label {\n display: inline-block;\n margin: 0;\n }\n\n button {\n border-radius: 0;\n }\n\n button:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n }\n\n input,\n button,\n select,\n optgroup,\n textarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button,\n html [type=\"button\"],\n [type=\"reset\"],\n [type=\"submit\"] {\n -webkit-appearance: button;\n }\n\n button::-moz-focus-inner,\n [type=\"button\"]::-moz-focus-inner,\n [type=\"reset\"]::-moz-focus-inner,\n [type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n input[type=\"radio\"],\n input[type=\"checkbox\"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n input[type=\"date\"],\n input[type=\"time\"],\n input[type=\"datetime-local\"],\n input[type=\"month\"] {\n -webkit-appearance: listbox;\n }\n\n [type=\"color\"],\n [type=\"range\"] {\n border-width: 0;\n padding: 0;\n }\n\n textarea {\n overflow: auto;\n resize: vertical;\n }\n\n fieldset {\n border: 0;\n margin: 0;\n min-width: 0;\n padding: 0;\n }\n\n legend {\n color: inherit;\n display: block;\n font-size: 1em;\n line-height: inherit;\n margin: 0;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n width: 100%;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n [type=\"number\"]::-webkit-inner-spin-button,\n [type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n }\n\n [type=\"search\"] {\n outline-offset: -2px;\n -webkit-appearance: none;\n }\n\n [type=\"search\"]::-webkit-search-cancel-button,\n [type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n\n ::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n }\n\n output {\n display: inline-block;\n }\n\n summary {\n display: list-item;\n cursor: pointer;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none;\n }\n\n svg:not([fill]) {\n fill: currentColor;\n }\n\n a,\n area,\n button,\n input,\n label,\n select,\n summary,\n textarea,\n [tabindex] {\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n }\n\n [aria-busy=\"true\"] {\n cursor: progress;\n }\n\n [aria-controls] {\n cursor: pointer;\n }\n\n [aria-disabled=\"true\"],\n [disabled] {\n cursor: default;\n }\n\n [aria-hidden=\"false\"][hidden] {\n display: initial !important;\n }\n\n [aria-hidden=\"false\"][hidden]:not(:focus) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n }\n /* stylelint-enable */\n"], ["\n /* stylelint-disable */\n *,\n *::before,\n *::after {\n background-repeat: no-repeat;\n box-sizing: border-box;\n }\n\n ::before,\n ::after {\n text-decoration: inherit;\n vertical-align: inherit;\n }\n\n html {\n cursor: default;\n font-family: sans-serif;\n font-size: 1rem;\n line-height: 1.15;\n overflow-wrap: break-word;\n tab-size: 4;\n -webkit-text-size-adjust: 100%;\n -ms-text-size-adjust: 100%;\n -ms-overflow-style: scrollbar;\n -webkit-tap-highlight-color: rgba(#000, 0);\n }\n\n @-ms-viewport {\n width: device-width;\n }\n\n article,\n aside,\n figcaption,\n figure,\n footer,\n header,\n hgroup,\n main,\n nav,\n section {\n display: block;\n }\n\n body {\n background-color: ", ";\n color: ", ";\n font-family: ", ";\n font-size: 1em;\n font-weight: ", ";\n line-height: ", ";\n margin: 0;\n text-align: left;\n }\n\n [tabindex=\"-1\"]:focus {\n outline: 0 !important;\n }\n\n hr {\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p {\n margin: 0;\n }\n\n abbr[title],\n abbr[data-original-title] {\n border-bottom: 0;\n cursor: help;\n text-decoration: underline;\n text-decoration: underline dotted;\n }\n\n address {\n font-style: normal;\n line-height: inherit;\n margin: 0;\n }\n\n ol,\n ul,\n dl {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n ol ol,\n ul ul,\n ol ul,\n ul ol {\n margin: 0;\n }\n\n dt {\n font-weight: unset;\n }\n\n dd {\n margin: 0;\n }\n\n blockquote {\n margin: 0;\n }\n\n dfn {\n font-style: italic;\n }\n\n b,\n strong {\n font-weight: bolder;\n }\n\n small {\n font-size: 80%;\n }\n\n sub,\n sup {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n sub {\n bottom: -0.25em;\n }\n\n sup {\n top: -0.5em;\n }\n\n a {\n background-color: transparent;\n color: ", ";\n text-decoration: underline;\n -webkit-text-decoration-skip: objects;\n }\n\n pre,\n code,\n kbd,\n samp {\n font-family: ", ";\n font-size: 1em;\n }\n\n pre {\n margin: 0;\n overflow: auto;\n -ms-overflow-style: scrollbar;\n }\n\n figure {\n margin: 0;\n }\n\n img {\n border-style: none;\n }\n\n svg {\n overflow: hidden;\n }\n\n audio,\n canvas,\n iframe,\n img,\n svg,\n video {\n vertical-align: middle;\n }\n\n table {\n border-collapse: collapse;\n }\n\n caption {\n caption-side: bottom;\n color: unset;\n text-align: left;\n padding: 0;\n }\n\n th {\n text-align: inherit;\n }\n\n label {\n display: inline-block;\n margin: 0;\n }\n\n button {\n border-radius: 0;\n }\n\n button:focus {\n outline: 1px dotted;\n outline: 5px auto -webkit-focus-ring-color;\n }\n\n input,\n button,\n select,\n optgroup,\n textarea {\n font-family: inherit;\n font-size: inherit;\n line-height: inherit;\n margin: 0;\n }\n\n button,\n input {\n overflow: visible;\n }\n\n button,\n select {\n text-transform: none;\n }\n\n button,\n html [type=\"button\"],\n [type=\"reset\"],\n [type=\"submit\"] {\n -webkit-appearance: button;\n }\n\n button::-moz-focus-inner,\n [type=\"button\"]::-moz-focus-inner,\n [type=\"reset\"]::-moz-focus-inner,\n [type=\"submit\"]::-moz-focus-inner {\n border-style: none;\n padding: 0;\n }\n\n input[type=\"radio\"],\n input[type=\"checkbox\"] {\n box-sizing: border-box;\n padding: 0;\n }\n\n input[type=\"date\"],\n input[type=\"time\"],\n input[type=\"datetime-local\"],\n input[type=\"month\"] {\n -webkit-appearance: listbox;\n }\n\n [type=\"color\"],\n [type=\"range\"] {\n border-width: 0;\n padding: 0;\n }\n\n textarea {\n overflow: auto;\n resize: vertical;\n }\n\n fieldset {\n border: 0;\n margin: 0;\n min-width: 0;\n padding: 0;\n }\n\n legend {\n color: inherit;\n display: block;\n font-size: 1em;\n line-height: inherit;\n margin: 0;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n width: 100%;\n }\n\n progress {\n vertical-align: baseline;\n }\n\n [type=\"number\"]::-webkit-inner-spin-button,\n [type=\"number\"]::-webkit-outer-spin-button {\n height: auto;\n }\n\n [type=\"search\"] {\n outline-offset: -2px;\n -webkit-appearance: none;\n }\n\n [type=\"search\"]::-webkit-search-cancel-button,\n [type=\"search\"]::-webkit-search-decoration {\n -webkit-appearance: none;\n }\n\n ::-webkit-file-upload-button {\n font: inherit;\n -webkit-appearance: button;\n }\n\n output {\n display: inline-block;\n }\n\n summary {\n display: list-item;\n cursor: pointer;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none;\n }\n\n svg:not([fill]) {\n fill: currentColor;\n }\n\n a,\n area,\n button,\n input,\n label,\n select,\n summary,\n textarea,\n [tabindex] {\n -ms-touch-action: manipulation;\n touch-action: manipulation;\n }\n\n [aria-busy=\"true\"] {\n cursor: progress;\n }\n\n [aria-controls] {\n cursor: pointer;\n }\n\n [aria-disabled=\"true\"],\n [disabled] {\n cursor: default;\n }\n\n [aria-hidden=\"false\"][hidden] {\n display: initial !important;\n }\n\n [aria-hidden=\"false\"][hidden]:not(:focus) {\n clip: rect(0, 0, 0, 0);\n position: absolute;\n }\n /* stylelint-enable */\n"])), (_a = options === null || options === void 0 ? void 0 : options.bodyBg) !== null && _a !== void 0 ? _a : "#fff", (_b = options === null || options === void 0 ? void 0 : options.bodyColor) !== null && _b !== void 0 ? _b : "#000", [options === null || options === void 0 ? void 0 : options.fontFamilyBase, SYSTEM_FONTS].filter(function (i) { return i; }).join(", "), (_c = options === null || options === void 0 ? void 0 : options.fontWeightBase) !== null && _c !== void 0 ? _c : 400, (_d = options === null || options === void 0 ? void 0 : options.lineHeightBase) !== null && _d !== void 0 ? _d : 1, (_e = options === null || options === void 0 ? void 0 : options.linkColor) !== null && _e !== void 0 ? _e : "#007bff", [options === null || options === void 0 ? void 0 : options.fontFamilyMonospace, SYSTEM_FONTS_MONOSPACE].filter(function (i) { return i; }).join(", "));
|
|
14
14
|
};
|
|
15
15
|
exports.reboot = reboot;
|
|
16
16
|
var templateObject_1;
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVib290LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21peGlucy9yZWJvb3QudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLHVEQUF3QztBQUV4QyxJQUFNLFlBQVksR0FDZCxvS0FBb0ssQ0FBQztBQUN6SyxJQUFNLHNCQUFzQixHQUN4Qiw0SEFBNEgsQ0FBQztBQVkxSCxJQUFNLE1BQU0sR0FBRyxVQUFDLE9BQXVCOztJQUFLLFdBQUEsdUJBQUcsazJNQUFBLHkzQkE4QzFCLEVBQXlCLG9CQUNwQyxFQUE0QiwwQkFDdEIsRUFBbUUsbURBRW5FLEVBQThCLDBCQUM5QixFQUE0QiwrMkNBaUdsQyxFQUErQixtS0FTekIsRUFBa0YsMHdIQTJOeEcsS0ExVTJCLE1BQUEsT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFFLE1BQU0sbUNBQUksTUFBTSxFQUNwQyxNQUFBLE9BQU8sYUFBUCxPQUFPLHVCQUFQLE9BQU8sQ0FBRSxTQUFTLG1DQUFJLE1BQU0sRUFDdEIsQ0FBQyxPQUFPLGFBQVAsT0FBTyx1QkFBUCxPQUFPLENBQUUsY0FBYyxFQUFFLFlBQVksQ0FBQyxDQUFDLE1BQU0sQ0FBQyxVQUFDLENBQUMsSUFBSyxPQUFBLENBQUMsRUFBRCxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBRW5FLE1BQUEsT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFFLGNBQWMsbUNBQUksR0FBRyxFQUM5QixNQUFBLE9BQU8sYUFBUCxPQUFPLHVCQUFQLE9BQU8sQ0FBRSxjQUFjLG1DQUFJLENBQUMsRUFpR2xDLE1BQUEsT0FBTyxhQUFQLE9BQU8sdUJBQVAsT0FBTyxDQUFFLFNBQVMsbUNBQUksU0FBUyxFQVN6QixDQUFDLE9BQU8sYUFBUCxPQUFPLHVCQUFQLE9BQU8sQ0FBRSxtQkFBbUIsRUFBRSxzQkFBc0IsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxVQUFDLENBQUMsSUFBSyxPQUFBLENBQUMsRUFBRCxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEVBMk54RztDQUFBLENBQUM7QUF4WFcsUUFBQSxNQUFNLFVBd1hqQiJ9
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { BreakpointsType, ResponsiveConditionProperty } from "../types";
|
|
2
|
+
export declare const responsiveHidden: <B extends BreakpointsType>(breakpoints: B, condition?: ResponsiveConditionProperty<B> | undefined) => import("styled-components").FlattenSimpleInterpolation | null;
|
|
@@ -9,9 +9,9 @@ var styled_components_1 = require("styled-components");
|
|
|
9
9
|
var responsiveMixin_1 = require("../utils/responsiveMixin");
|
|
10
10
|
var responsiveHidden = function (breakpoints, condition) {
|
|
11
11
|
return condition
|
|
12
|
-
? responsiveMixin_1.responsiveMixin(breakpoints, styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: none !important;\n "], ["\n display: none !important;\n "]))), condition)
|
|
12
|
+
? (0, responsiveMixin_1.responsiveMixin)(breakpoints, (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: none !important;\n "], ["\n display: none !important;\n "]))), condition)
|
|
13
13
|
: null;
|
|
14
14
|
};
|
|
15
15
|
exports.responsiveHidden = responsiveHidden;
|
|
16
16
|
var templateObject_1;
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2l2ZUhpZGRlbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taXhpbnMvcmVzcG9uc2l2ZUhpZGRlbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsdURBQXdDO0FBQ3hDLDREQUEyRDtBQUdwRCxJQUFNLGdCQUFnQixHQUFHLFVBQzVCLFdBQWMsRUFDZCxTQUEwQztJQUUxQyxPQUFBLFNBQVM7UUFDTCxDQUFDLENBQUMsSUFBQSxpQ0FBZSxFQUNYLFdBQVcsTUFDWCx1QkFBRyxtSUFBQSwrREFFRixNQUNELFNBQVMsQ0FDWjtRQUNILENBQUMsQ0FBQyxJQUFJO0FBUlYsQ0FRVSxDQUFDO0FBWkYsUUFBQSxnQkFBZ0Isb0JBWWQifQ==
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { BreakpointsType, ResponsiveConditionProperty } from "../types";
|
|
2
|
+
export declare const responsiveHideVisually: <B extends BreakpointsType>(breakpoints: B, condition?: ResponsiveConditionProperty<B> | undefined) => import("styled-components").FlattenSimpleInterpolation | null;
|
|
@@ -3,19 +3,15 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
3
3
|
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
4
|
return cooked;
|
|
5
5
|
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
7
|
exports.responsiveHideVisually = void 0;
|
|
11
|
-
var hideVisually_1 = __importDefault(require("polished/lib/mixins/hideVisually"));
|
|
12
8
|
var styled_components_1 = require("styled-components");
|
|
13
9
|
var responsiveMixin_1 = require("../utils/responsiveMixin");
|
|
14
10
|
var responsiveHideVisually = function (breakpoints, condition) {
|
|
15
11
|
return condition
|
|
16
|
-
? responsiveMixin_1.responsiveMixin(breakpoints, styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &&& {\n
|
|
12
|
+
? (0, responsiveMixin_1.responsiveMixin)(breakpoints, (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n &&& {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: 1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n }\n "], ["\n &&& {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: 1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n }\n "]))), condition)
|
|
17
13
|
: null;
|
|
18
14
|
};
|
|
19
15
|
exports.responsiveHideVisually = responsiveHideVisually;
|
|
20
16
|
var templateObject_1;
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2l2ZUhpZGVWaXN1YWxseS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taXhpbnMvcmVzcG9uc2l2ZUhpZGVWaXN1YWxseS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsdURBQXdDO0FBRXhDLDREQUEyRDtBQUVwRCxJQUFNLHNCQUFzQixHQUFHLFVBQ2xDLFdBQWMsRUFDZCxTQUEwQztJQUUxQyxPQUFBLFNBQVM7UUFDTCxDQUFDLENBQUMsSUFBQSxpQ0FBZSxFQUNYLFdBQVcsTUFDWCx1QkFBRyxnZUFBQSw0WkFZRixNQUNELFNBQVMsQ0FDWjtRQUNILENBQUMsQ0FBQyxJQUFJO0FBbEJWLENBa0JVLENBQUM7QUF0QkYsUUFBQSxzQkFBc0IsMEJBc0JwQiJ9
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { BreakpointsType, ResponsiveConditionProperty } from "../types";
|
|
2
|
+
export declare const responsiveMultilineTruncate: <B extends BreakpointsType>(breakpoints: B, lines?: number | undefined, condition?: ResponsiveConditionProperty<B> | undefined) => import("styled-components").FlattenSimpleInterpolation | null;
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.responsiveMultilineTruncate = void 0;
|
|
4
4
|
var responsiveMixin_1 = require("../utils/responsiveMixin");
|
|
5
5
|
var multilineTruncate_1 = require("./multilineTruncate");
|
|
6
|
-
var responsiveMultilineTruncate = function (breakpoints, lines, condition) { return (lines ? responsiveMixin_1.responsiveMixin(breakpoints, multilineTruncate_1.multilineTruncate(lines), condition) : null); };
|
|
6
|
+
var responsiveMultilineTruncate = function (breakpoints, lines, condition) { return (lines ? (0, responsiveMixin_1.responsiveMixin)(breakpoints, (0, multilineTruncate_1.multilineTruncate)(lines), condition) : null); };
|
|
7
7
|
exports.responsiveMultilineTruncate = responsiveMultilineTruncate;
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2l2ZU11bHRpbGluZVRydW5jYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21peGlucy9yZXNwb25zaXZlTXVsdGlsaW5lVHJ1bmNhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsNERBQTJEO0FBRTNELHlEQUF3RDtBQUVqRCxJQUFNLDJCQUEyQixHQUFHLFVBQ3ZDLFdBQWMsRUFDZCxLQUFjLEVBQ2QsU0FBMEMsSUFDekMsT0FBQSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsSUFBQSxpQ0FBZSxFQUFDLFdBQVcsRUFBRSxJQUFBLHFDQUFpQixFQUFDLEtBQUssQ0FBQyxFQUFFLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsRUFBbEYsQ0FBa0YsQ0FBQztBQUozRSxRQUFBLDJCQUEyQiwrQkFJZ0QifQ==
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { BreakpointsType, ResponsiveConditionProperty } from "../types";
|
|
2
|
+
export declare const responsiveNoWrap: <B extends BreakpointsType>(breakpoints: B, condition?: ResponsiveConditionProperty<B> | undefined) => import("styled-components").FlattenSimpleInterpolation | null;
|
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.responsiveNoWrap = void 0;
|
|
4
4
|
var responsiveMixin_1 = require("../utils/responsiveMixin");
|
|
5
5
|
var noWrap_1 = require("./noWrap");
|
|
6
|
-
var responsiveNoWrap = function (breakpoints, condition) { return (condition ? responsiveMixin_1.responsiveMixin(breakpoints, noWrap_1.noWrap, condition) : null); };
|
|
6
|
+
var responsiveNoWrap = function (breakpoints, condition) { return (condition ? (0, responsiveMixin_1.responsiveMixin)(breakpoints, noWrap_1.noWrap, condition) : null); };
|
|
7
7
|
exports.responsiveNoWrap = responsiveNoWrap;
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
8
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2l2ZU5vV3JhcC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taXhpbnMvcmVzcG9uc2l2ZU5vV3JhcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw0REFBMkQ7QUFFM0QsbUNBQWtDO0FBRTNCLElBQU0sZ0JBQWdCLEdBQUcsVUFDNUIsV0FBYyxFQUNkLFNBQTBDLElBQ3pDLE9BQUEsQ0FBQyxTQUFTLENBQUMsQ0FBQyxDQUFDLElBQUEsaUNBQWUsRUFBQyxXQUFXLEVBQUUsZUFBTSxFQUFFLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsRUFBcEUsQ0FBb0UsQ0FBQztBQUg3RCxRQUFBLGdCQUFnQixvQkFHNkMifQ==
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { BreakpointsType, ResponsiveConditionProperty } from "../types";
|
|
2
|
+
export declare const responsiveTruncate: <B extends BreakpointsType>(breakpoints: B, condition?: ResponsiveConditionProperty<B> | undefined) => import("styled-components").FlattenSimpleInterpolation | null;
|
|
@@ -10,9 +10,9 @@ var responsiveMixin_1 = require("../utils/responsiveMixin");
|
|
|
10
10
|
var truncate_1 = require("./truncate");
|
|
11
11
|
var responsiveTruncate = function (breakpoints, condition) {
|
|
12
12
|
return condition
|
|
13
|
-
? responsiveMixin_1.responsiveMixin(breakpoints, styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), truncate_1.truncate), condition)
|
|
13
|
+
? (0, responsiveMixin_1.responsiveMixin)(breakpoints, (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), truncate_1.truncate), condition)
|
|
14
14
|
: null;
|
|
15
15
|
};
|
|
16
16
|
exports.responsiveTruncate = responsiveTruncate;
|
|
17
17
|
var templateObject_1;
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVzcG9uc2l2ZVRydW5jYXRlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL21peGlucy9yZXNwb25zaXZlVHJ1bmNhdGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUFBLHVEQUF3QztBQUN4Qyw0REFBMkQ7QUFFM0QsdUNBQXNDO0FBRS9CLElBQU0sa0JBQWtCLEdBQUcsVUFDOUIsV0FBYyxFQUNkLFNBQTBDO0lBRTFDLE9BQUEsU0FBUztRQUNMLENBQUMsQ0FBQyxJQUFBLGlDQUFlLEVBQ1gsV0FBVyxNQUNYLHVCQUFHLDhHQUFBLHNCQUNHLEVBQVEsa0JBQ2IsS0FESyxtQkFBUSxHQUVkLFNBQVMsQ0FDWjtRQUNILENBQUMsQ0FBQyxJQUFJO0FBUlYsQ0FRVSxDQUFDO0FBWkYsUUFBQSxrQkFBa0Isc0JBWWhCIn0=
|
package/mixins/selectReset.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Property } from "csstype";
|
|
2
|
+
export declare const selectReset: (fontFamily?: Property.FontFamily | undefined) => import("styled-components").FlattenSimpleInterpolation;
|
package/mixins/selectReset.js
CHANGED
|
@@ -7,7 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.selectReset = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
9
|
var appearanceReset_1 = require("./appearanceReset");
|
|
10
|
-
var selectReset = function (fontFamily) { return styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-ms-expand {\n display: none;\n }\n /* stylelint-enable */\n\n option {\n font-family: ", ";\n font-size: 0.8rem;\n font-weight: 400;\n }\n"], ["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-ms-expand {\n display: none;\n }\n /* stylelint-enable */\n\n option {\n font-family: ", ";\n font-size: 0.8rem;\n font-weight: 400;\n }\n"])), appearanceReset_1.appearanceReset, fontFamily !== null && fontFamily !== void 0 ? fontFamily : null); };
|
|
10
|
+
var selectReset = function (fontFamily) { return (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-ms-expand {\n display: none;\n }\n /* stylelint-enable */\n\n option {\n font-family: ", ";\n font-size: 0.8rem;\n font-weight: 400;\n }\n"], ["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-ms-expand {\n display: none;\n }\n /* stylelint-enable */\n\n option {\n font-family: ", ";\n font-size: 0.8rem;\n font-weight: 400;\n }\n"])), appearanceReset_1.appearanceReset, fontFamily !== null && fontFamily !== void 0 ? fontFamily : null); };
|
|
11
11
|
exports.selectReset = selectReset;
|
|
12
12
|
var templateObject_1;
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsZWN0UmVzZXQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWl4aW5zL3NlbGVjdFJlc2V0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFDQSx1REFBd0M7QUFDeEMscURBQW9EO0FBRTdDLElBQU0sV0FBVyxHQUFHLFVBQUMsVUFBZ0MsSUFBSyxXQUFBLHVCQUFHLHNaQUFBLFFBQzlELEVBQWUsbVFBYUUsRUFBa0IsbUVBSXhDLEtBakJLLGlDQUFlLEVBYUUsVUFBVSxhQUFWLFVBQVUsY0FBVixVQUFVLEdBQUksSUFBSSxHQWR3QixDQWtCaEUsQ0FBQztBQWxCVyxRQUFBLFdBQVcsZUFrQnRCIn0=
|
package/mixins/textAreaReset.js
CHANGED
|
@@ -7,6 +7,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7
7
|
exports.textAreaReset = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
9
|
var appearanceReset_1 = require("./appearanceReset");
|
|
10
|
-
exports.textAreaReset = styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-moz-placeholder {\n opacity: 1;\n }\n /* stylelint-enable */\n"], ["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-moz-placeholder {\n opacity: 1;\n }\n /* stylelint-enable */\n"])), appearanceReset_1.appearanceReset);
|
|
10
|
+
exports.textAreaReset = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-moz-placeholder {\n opacity: 1;\n }\n /* stylelint-enable */\n"], ["\n ", ";\n\n /* stylelint-disable property-no-vendor-prefix, no-descending-specificity */\n &:invalid {\n box-shadow: none;\n }\n\n &::-moz-placeholder {\n opacity: 1;\n }\n /* stylelint-enable */\n"])), appearanceReset_1.appearanceReset);
|
|
11
11
|
var templateObject_1;
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGV4dEFyZWFSZXNldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9taXhpbnMvdGV4dEFyZWFSZXNldC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBQUEsdURBQXdDO0FBQ3hDLHFEQUFvRDtBQUV2QyxRQUFBLGFBQWEsT0FBRyx1QkFBRywrU0FBQSxRQUMxQixFQUFlLGlPQVdwQixLQVhLLGlDQUFlLEVBV25CIn0=
|
package/mixins/truncate.js
CHANGED
|
@@ -6,6 +6,6 @@ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cook
|
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.truncate = void 0;
|
|
8
8
|
var styled_components_1 = require("styled-components");
|
|
9
|
-
exports.truncate = styled_components_1.css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: normal;\n"], ["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: normal;\n"])));
|
|
9
|
+
exports.truncate = (0, styled_components_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: normal;\n"], ["\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n word-wrap: normal;\n"])));
|
|
10
10
|
var templateObject_1;
|
|
11
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
11
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJ1bmNhdGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvbWl4aW5zL3RydW5jYXRlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7QUFBQSx1REFBd0M7QUFFM0IsUUFBQSxRQUFRLE9BQUcsdUJBQUcsK0tBQUEsMkdBSzFCLEtBQUMifQ==
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/styles",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,47 +21,40 @@
|
|
|
21
21
|
"url": "git+https://gitlab.com/uxf-npm/styles.git"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"@types/
|
|
26
|
-
"@types/react": "^
|
|
27
|
-
"@types/react-dom": "^
|
|
28
|
-
"@types/styled-components": "^5.1.
|
|
29
|
-
"@
|
|
30
|
-
"@
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"eslint": "7.17.0",
|
|
34
|
-
"eslint-config-prettier": "^7.1.0",
|
|
35
|
-
"eslint-plugin-prettier": "^3.3.1",
|
|
36
|
-
"eslint-plugin-react": "^7.22.0",
|
|
37
|
-
"eslint-plugin-react-hooks": "^4.2.0",
|
|
24
|
+
"@stylelint/postcss-css-in-js": "^0.37.2",
|
|
25
|
+
"@types/facepaint": "^1.2.2",
|
|
26
|
+
"@types/react": "^17.0.2",
|
|
27
|
+
"@types/react-dom": "^17.0.2",
|
|
28
|
+
"@types/styled-components": "^5.1.24",
|
|
29
|
+
"@uxf/core": "^2.1.4",
|
|
30
|
+
"@uxf/eslint-config": "^1.2.3",
|
|
31
|
+
"csstype": "^3.0.11",
|
|
32
|
+
"eslint": "^8.12.0",
|
|
38
33
|
"facepaint": "^1.2.1",
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"prettier": "^2.
|
|
43
|
-
"react": "^
|
|
44
|
-
"react-dom": "^
|
|
45
|
-
"styled-components": "^5.
|
|
46
|
-
"stylelint": "^
|
|
47
|
-
"stylelint-config-recommended": "^
|
|
34
|
+
"parcel": "^2.0.1",
|
|
35
|
+
"postcss": "^8.4.12",
|
|
36
|
+
"postcss-syntax": "^0.36.2",
|
|
37
|
+
"prettier": "^2.6.1",
|
|
38
|
+
"react": "^17.0.2",
|
|
39
|
+
"react-dom": "^17.0.2",
|
|
40
|
+
"styled-components": "^5.3.3",
|
|
41
|
+
"stylelint": "^14.6.1",
|
|
42
|
+
"stylelint-config-recommended": "^7.0.0",
|
|
48
43
|
"stylelint-config-styled-components": "^0.1.1",
|
|
49
44
|
"stylelint-processor-styled-components": "^1.10.0",
|
|
50
|
-
"typescript": "^4.
|
|
45
|
+
"typescript": "^4.5.4"
|
|
51
46
|
},
|
|
52
47
|
"peerDependencies": {
|
|
53
|
-
"@uxf/core": "^
|
|
48
|
+
"@uxf/core": "^2.0.0",
|
|
54
49
|
"facepaint": "^1.2.1",
|
|
55
|
-
"
|
|
56
|
-
"react": "^16 || ^17",
|
|
57
|
-
"
|
|
58
|
-
"styled-components": "^5.2.1"
|
|
50
|
+
"react": "^16 || ^17 || ^18",
|
|
51
|
+
"react-dom": "^16 || ^17 || ^18",
|
|
52
|
+
"styled-components": "^5.3.0"
|
|
59
53
|
},
|
|
60
54
|
"author": "",
|
|
61
55
|
"license": "ISC",
|
|
62
56
|
"bugs": {
|
|
63
57
|
"url": "https://gitlab.com/uxf-npm/styles/issues"
|
|
64
58
|
},
|
|
65
|
-
"homepage": "https://gitlab.com/uxf-npm/styles#readme"
|
|
66
|
-
"dependencies": {}
|
|
59
|
+
"homepage": "https://gitlab.com/uxf-npm/styles#readme"
|
|
67
60
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Breakpoints, ResponsiveProperty } from "../types";
|
|
1
|
+
import { Breakpoints, BreakpointsType, ResponsiveProperty } from "../types";
|
|
2
2
|
export interface Background {
|
|
3
3
|
$backgroundColor?: ResponsiveProperty.Color;
|
|
4
4
|
$background?: ResponsiveProperty.Background;
|
|
5
5
|
}
|
|
6
|
-
export declare const background: <B extends
|
|
6
|
+
export declare const background: <B extends BreakpointsType>({ breakpoints, $backgroundColor, $background, }: Background & Breakpoints<B>) => import("styled-components").FlattenSimpleInterpolation;
|
package/properties/background.js
CHANGED
|
@@ -5,10 +5,10 @@ var formatValue_1 = require("../utils/formatValue");
|
|
|
5
5
|
var responsive_1 = require("../utils/responsive");
|
|
6
6
|
var background = function (_a) {
|
|
7
7
|
var breakpoints = _a.breakpoints, $backgroundColor = _a.$backgroundColor, $background = _a.$background;
|
|
8
|
-
return responsive_1.resolveResponsiveProperties(breakpoints, {
|
|
9
|
-
backgroundColor: formatValue_1.formatResponsiveValue($backgroundColor),
|
|
10
|
-
background: formatValue_1.formatResponsiveValue($background),
|
|
8
|
+
return (0, responsive_1.resolveResponsiveProperties)(breakpoints, {
|
|
9
|
+
backgroundColor: (0, formatValue_1.formatResponsiveValue)($backgroundColor),
|
|
10
|
+
background: (0, formatValue_1.formatResponsiveValue)($background),
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
13
|
exports.background = background;
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFja2dyb3VuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wcm9wZXJ0aWVzL2JhY2tncm91bmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0Esb0RBQTZEO0FBQzdELGtEQUFrRTtBQU8zRCxJQUFNLFVBQVUsR0FBRyxVQUE0QixFQUl4QjtRQUgxQixXQUFXLGlCQUFBLEVBQ1gsZ0JBQWdCLHNCQUFBLEVBQ2hCLFdBQVcsaUJBQUE7SUFFWCxPQUFBLElBQUEsd0NBQTJCLEVBQUMsV0FBVyxFQUFFO1FBQ3JDLGVBQWUsRUFBRSxJQUFBLG1DQUFxQixFQUFDLGdCQUFnQixDQUFDO1FBQ3hELFVBQVUsRUFBRSxJQUFBLG1DQUFxQixFQUFDLFdBQVcsQ0FBQztLQUNqRCxDQUFDO0FBSEYsQ0FHRSxDQUFDO0FBUk0sUUFBQSxVQUFVLGNBUWhCIn0=
|