ag-common 0.0.264 → 0.0.265
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.
|
@@ -56,7 +56,7 @@ const Content = styled_components_1.default.div `
|
|
|
56
56
|
&[data-open='false'] {
|
|
57
57
|
padding: 1rem;
|
|
58
58
|
background-color: white;
|
|
59
|
-
|
|
59
|
+
filter: drop-shadow(1px 1px 0.5rem #555);
|
|
60
60
|
border-radius: 1rem;
|
|
61
61
|
}
|
|
62
62
|
`;
|
|
@@ -82,7 +82,6 @@ const Hamburger = styled_components_1.default.div `
|
|
|
82
82
|
}
|
|
83
83
|
border-radius: 50%;
|
|
84
84
|
border: solid 1px rgba(0, 0, 0, 0.5);
|
|
85
|
-
|
|
86
85
|
cursor: pointer;
|
|
87
86
|
`;
|
|
88
87
|
const ChevronStyled = (0, styled_components_1.default)(Chevron_1.Chevron) `
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
export declare const HardOutline
|
|
3
|
-
export declare const Shadow: (colour?: string) => import("styled-components").FlattenSimpleInterpolation;
|
|
2
|
+
export declare const HardOutline: import("styled-components").FlattenSimpleInterpolation;
|
|
4
3
|
export declare const NoTextSelect: import("styled-components").FlattenSimpleInterpolation;
|
|
5
4
|
export declare const TextOverflowEllipsis: import("styled-components").FlattenSimpleInterpolation;
|
|
6
5
|
export declare const CssTransparentBlock: import("styled-components").FlattenSimpleInterpolation;
|
package/dist/ui/styles/common.js
CHANGED
|
@@ -23,21 +23,15 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.bounce = exports.FullScreenPage = exports.noDrag = exports.Card = exports.FadeBottom = exports.CssTransparentBlock = exports.TextOverflowEllipsis = exports.NoTextSelect = exports.
|
|
26
|
+
exports.bounce = exports.FullScreenPage = exports.noDrag = exports.Card = exports.FadeBottom = exports.CssTransparentBlock = exports.TextOverflowEllipsis = exports.NoTextSelect = exports.HardOutline = void 0;
|
|
27
27
|
const colours_1 = require("./colours");
|
|
28
28
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
29
|
-
exports.HardOutline = `
|
|
30
|
-
filter: drop-shadow(1px 1px 0px var(--outlinecolour))
|
|
31
|
-
drop-shadow(
|
|
29
|
+
exports.HardOutline = (0, styled_components_1.css) `
|
|
30
|
+
filter: drop-shadow(1px 1px 0px var(--outlinecolour))
|
|
31
|
+
drop-shadow(-1px 1px 0px var(--outlinecolour))
|
|
32
|
+
drop-shadow(1px -1px 0px var(--outlinecolour))
|
|
33
|
+
drop-shadow(-1px -1px 0px var(--outlinecolour));
|
|
32
34
|
`;
|
|
33
|
-
const Shadow = (
|
|
34
|
-
/**
|
|
35
|
-
* colour of shadow, default #555
|
|
36
|
-
*/
|
|
37
|
-
colour = '#555') => (0, styled_components_1.css) `
|
|
38
|
-
filter: drop-shadow(1px 1px 0.5rem ${colour});
|
|
39
|
-
`;
|
|
40
|
-
exports.Shadow = Shadow;
|
|
41
35
|
exports.NoTextSelect = (0, styled_components_1.css) `
|
|
42
36
|
user-select: none; /* supported by Chrome and Opera */
|
|
43
37
|
-webkit-user-select: none; /* Safari */
|