ag-common 0.0.484 → 0.0.486
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.
|
@@ -18,3 +18,7 @@ export declare const noDrag: {
|
|
|
18
18
|
};
|
|
19
19
|
/** apply bounce effect given a condition */
|
|
20
20
|
export declare const bounce: (bounceattr: string) => import("@emotion/react").SerializedStyles;
|
|
21
|
+
export declare const Card: import("@emotion/styled").StyledComponent<{
|
|
22
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
23
|
+
as?: import("react").ElementType<any> | undefined;
|
|
24
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
package/dist/ui/styles/common.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bounce = exports.noDrag = exports.TextOverflowEllipsis = exports.NoTextSelect = exports.HardOutline = void 0;
|
|
6
|
+
exports.Card = exports.bounce = exports.noDrag = exports.TextOverflowEllipsis = exports.NoTextSelect = exports.HardOutline = void 0;
|
|
4
7
|
const react_1 = require("@emotion/react");
|
|
8
|
+
const styled_1 = __importDefault(require("@emotion/styled"));
|
|
9
|
+
const colours_1 = require("./colours");
|
|
5
10
|
/** function that returns css that gives a text outline drop shadow.
|
|
6
11
|
* @param outlineColour default='white'
|
|
7
12
|
* @param sizePx default = 1px
|
|
@@ -59,3 +64,13 @@ const bounce = (bounceattr) => (0, react_1.css) `
|
|
|
59
64
|
}
|
|
60
65
|
`;
|
|
61
66
|
exports.bounce = bounce;
|
|
67
|
+
exports.Card = styled_1.default.div `
|
|
68
|
+
background-color: white;
|
|
69
|
+
margin: 0.5rem;
|
|
70
|
+
|
|
71
|
+
position: relative;
|
|
72
|
+
border-radius: 0.5rem;
|
|
73
|
+
max-width: 40rem;
|
|
74
|
+
padding: 1rem;
|
|
75
|
+
border: solid 2px ${colours_1.colours.lighter};
|
|
76
|
+
`;
|
|
@@ -2,10 +2,10 @@ export declare const vSmallScreenPx = 500;
|
|
|
2
2
|
export declare const smallScreenPx = 1024;
|
|
3
3
|
export declare const bigScreenPx = 2000;
|
|
4
4
|
/** use in media query: @ media ${condition} */
|
|
5
|
-
export declare const vSmallScreen:
|
|
5
|
+
export declare const vSmallScreen = "(max-width: 500px)";
|
|
6
6
|
/** use in media query: @ media ${condition} */
|
|
7
|
-
export declare const smallScreen:
|
|
7
|
+
export declare const smallScreen = "(max-width: 1024px)";
|
|
8
8
|
/** use in media query: @ media ${condition} */
|
|
9
|
-
export declare const bigScreen:
|
|
9
|
+
export declare const bigScreen = "(min-width: 1024px)";
|
|
10
10
|
/** use in media query: @ media ${condition} */
|
|
11
|
-
export declare const vBigScreen:
|
|
11
|
+
export declare const vBigScreen = "(min-width: 2000px)";
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.
|
|
2
|
+
"version": "0.0.486",
|
|
3
3
|
"name": "ag-common",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"@storybook/theming": "7.3.2",
|
|
55
55
|
"@types/jest": "29.5.4",
|
|
56
56
|
"@types/jsonwebtoken": "9.0.2",
|
|
57
|
-
"@types/node": "20.5.
|
|
57
|
+
"@types/node": "20.5.7",
|
|
58
58
|
"@types/react": "18.2.21",
|
|
59
59
|
"@types/react-dom": "18.2.7",
|
|
60
60
|
"cross-env": "7.0.3",
|
|
61
|
-
"eslint-config-e7npm": "0.0.
|
|
61
|
+
"eslint-config-e7npm": "0.0.30",
|
|
62
62
|
"jest": "29.6.4",
|
|
63
63
|
"rimraf": "5.0.1",
|
|
64
64
|
"storybook": "7.3.2",
|