@dfds-ui/spacing 2.2.0-alpha.624b924f → 2.2.0-alpha.762c8caf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/index.d.ts +2 -0
- package/cjs/index.js +27 -0
- package/cjs/spacing.d.ts +20 -0
- package/cjs/spacing.js +24 -0
- package/index.d.ts +2 -0
- package/index.js +2 -0
- package/package.json +2 -2
- package/spacing.d.ts +20 -0
- package/spacing.js +17 -0
package/cjs/index.d.ts
ADDED
package/cjs/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
spacing: true
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "spacing", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return _spacing.default;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
var _spacing = _interopRequireWildcard(require("./spacing"));
|
|
16
|
+
Object.keys(_spacing).forEach(function (key) {
|
|
17
|
+
if (key === "default" || key === "__esModule") return;
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
19
|
+
if (key in exports && exports[key] === _spacing[key]) return;
|
|
20
|
+
Object.defineProperty(exports, key, {
|
|
21
|
+
enumerable: true,
|
|
22
|
+
get: function () {
|
|
23
|
+
return _spacing[key];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
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); }
|
package/cjs/spacing.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const spacing: {
|
|
2
|
+
/** 0.25rem (4px) */
|
|
3
|
+
xxs: string;
|
|
4
|
+
/** 0.5rem (8px) */
|
|
5
|
+
xs: string;
|
|
6
|
+
/** 1rem (16px) */
|
|
7
|
+
s: string;
|
|
8
|
+
/** 1.5rem (24px) */
|
|
9
|
+
m: string;
|
|
10
|
+
/** 2rem (32px) */
|
|
11
|
+
l: string;
|
|
12
|
+
/** 3rem (48px) */
|
|
13
|
+
xl: string;
|
|
14
|
+
/** 4rem (64px) */
|
|
15
|
+
xxl: string;
|
|
16
|
+
};
|
|
17
|
+
declare type ValueOf<T> = T[keyof T];
|
|
18
|
+
export declare type SpacingValue = ValueOf<typeof spacing>;
|
|
19
|
+
export declare type SpacingKey = keyof typeof spacing;
|
|
20
|
+
export default spacing;
|
package/cjs/spacing.js
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
const spacing = {
|
|
8
|
+
/** 0.25rem (4px) */
|
|
9
|
+
xxs: '.25rem',
|
|
10
|
+
/** 0.5rem (8px) */
|
|
11
|
+
xs: '.5rem',
|
|
12
|
+
/** 1rem (16px) */
|
|
13
|
+
s: '1rem',
|
|
14
|
+
/** 1.5rem (24px) */
|
|
15
|
+
m: '1.5rem',
|
|
16
|
+
/** 2rem (32px) */
|
|
17
|
+
l: '2rem',
|
|
18
|
+
/** 3rem (48px) */
|
|
19
|
+
xl: '3rem',
|
|
20
|
+
/** 4rem (64px) */
|
|
21
|
+
xxl: '4rem'
|
|
22
|
+
};
|
|
23
|
+
var _default = spacing;
|
|
24
|
+
exports.default = _default;
|
package/index.d.ts
ADDED
package/index.js
ADDED
package/package.json
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
"description": "Defines spacing",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.2.0-alpha.
|
|
6
|
+
"version": "2.2.0-alpha.762c8caf",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
10
10
|
"typings": "./index.d.ts",
|
|
11
|
-
"gitHead": "
|
|
11
|
+
"gitHead": "762c8caff2d9b459f0387be0aa9252a5e25acb6c",
|
|
12
12
|
"esnext": "",
|
|
13
13
|
"publishConfig": {
|
|
14
14
|
"access": "public"
|
package/spacing.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const spacing: {
|
|
2
|
+
/** 0.25rem (4px) */
|
|
3
|
+
xxs: string;
|
|
4
|
+
/** 0.5rem (8px) */
|
|
5
|
+
xs: string;
|
|
6
|
+
/** 1rem (16px) */
|
|
7
|
+
s: string;
|
|
8
|
+
/** 1.5rem (24px) */
|
|
9
|
+
m: string;
|
|
10
|
+
/** 2rem (32px) */
|
|
11
|
+
l: string;
|
|
12
|
+
/** 3rem (48px) */
|
|
13
|
+
xl: string;
|
|
14
|
+
/** 4rem (64px) */
|
|
15
|
+
xxl: string;
|
|
16
|
+
};
|
|
17
|
+
declare type ValueOf<T> = T[keyof T];
|
|
18
|
+
export declare type SpacingValue = ValueOf<typeof spacing>;
|
|
19
|
+
export declare type SpacingKey = keyof typeof spacing;
|
|
20
|
+
export default spacing;
|
package/spacing.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var spacing = {
|
|
2
|
+
/** 0.25rem (4px) */
|
|
3
|
+
xxs: '.25rem',
|
|
4
|
+
/** 0.5rem (8px) */
|
|
5
|
+
xs: '.5rem',
|
|
6
|
+
/** 1rem (16px) */
|
|
7
|
+
s: '1rem',
|
|
8
|
+
/** 1.5rem (24px) */
|
|
9
|
+
m: '1.5rem',
|
|
10
|
+
/** 2rem (32px) */
|
|
11
|
+
l: '2rem',
|
|
12
|
+
/** 3rem (48px) */
|
|
13
|
+
xl: '3rem',
|
|
14
|
+
/** 4rem (64px) */
|
|
15
|
+
xxl: '4rem'
|
|
16
|
+
};
|
|
17
|
+
export default spacing;
|