infinity-forge 7.2.5 → 7.2.6

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.
@@ -7,6 +7,7 @@ export * from './overlay/index.js';
7
7
  export * from './button/index.js';
8
8
  export * from './tooltip/index.js';
9
9
  export * from './warning/index.js';
10
+ export * from './spacing/index.js';
10
11
  export * from './sidebar/index.js';
11
12
  export * from './carousel/index.js';
12
13
  export * from './skeleton/index.js';
@@ -23,6 +23,7 @@ __exportStar(require("./overlay/index.js"), exports);
23
23
  __exportStar(require("./button/index.js"), exports);
24
24
  __exportStar(require("./tooltip/index.js"), exports);
25
25
  __exportStar(require("./warning/index.js"), exports);
26
+ __exportStar(require("./spacing/index.js"), exports);
26
27
  __exportStar(require("./sidebar/index.js"), exports);
27
28
  __exportStar(require("./carousel/index.js"), exports);
28
29
  __exportStar(require("./skeleton/index.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,2CAAwB;AACxB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,8CAA2B;AAC3B,8CAA2B;AAC3B,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,gDAA6B;AAC7B,kDAA+B;AAC/B,mDAAgC;AAChC,mDAAgC;AAChC,mDAAgC;AAChC,0DAAuC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/ui/components/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wCAAqB;AACrB,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,2CAAwB;AACxB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,4CAAyB;AACzB,6CAA0B;AAC1B,6CAA0B;AAC1B,8CAA2B;AAC3B,8CAA2B;AAC3B,8CAA2B;AAC3B,+CAA4B;AAC5B,+CAA4B;AAC5B,+CAA4B;AAC5B,gDAA6B;AAC7B,gDAA6B;AAC7B,kDAA+B;AAC/B,mDAAgC;AAChC,mDAAgC;AAChC,mDAAgC;AAChC,0DAAuC"}
@@ -0,0 +1,5 @@
1
+ export type SpacingProps = {
2
+ padding: number;
3
+ interval: number;
4
+ } & React.HTMLAttributes<HTMLDivElement>;
5
+ export declare function Spacing({ id, padding, interval, children, ...rest }: SpacingProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __assign = (this && this.__assign) || function () {
3
+ __assign = Object.assign || function(t) {
4
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
5
+ s = arguments[i];
6
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
7
+ t[p] = s[p];
8
+ }
9
+ return t;
10
+ };
11
+ return __assign.apply(this, arguments);
12
+ };
13
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
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);
20
+ }) : (function(o, m, k, k2) {
21
+ if (k2 === undefined) k2 = k;
22
+ o[k2] = m[k];
23
+ }));
24
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
25
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
26
+ }) : function(o, v) {
27
+ o["default"] = v;
28
+ });
29
+ var __importStar = (this && this.__importStar) || (function () {
30
+ var ownKeys = function(o) {
31
+ ownKeys = Object.getOwnPropertyNames || function (o) {
32
+ var ar = [];
33
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
34
+ return ar;
35
+ };
36
+ return ownKeys(o);
37
+ };
38
+ return function (mod) {
39
+ if (mod && mod.__esModule) return mod;
40
+ var result = {};
41
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
42
+ __setModuleDefault(result, mod);
43
+ return result;
44
+ };
45
+ })();
46
+ var __rest = (this && this.__rest) || function (s, e) {
47
+ var t = {};
48
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
49
+ t[p] = s[p];
50
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
51
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
52
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
53
+ t[p[i]] = s[p[i]];
54
+ }
55
+ return t;
56
+ };
57
+ Object.defineProperty(exports, "__esModule", { value: true });
58
+ exports.Spacing = Spacing;
59
+ var jsx_runtime_1 = require("react/jsx-runtime");
60
+ var error_boundary_1 = require("../error-boundary/index.js");
61
+ var S = __importStar(require("./styles.js"));
62
+ function Spacing(_a) {
63
+ var id = _a.id, padding = _a.padding, interval = _a.interval, children = _a.children, rest = __rest(_a, ["id", "padding", "interval", "children"]);
64
+ return ((0, jsx_runtime_1.jsx)(error_boundary_1.Error, { name: id || "Spacing", children: (0, jsx_runtime_1.jsx)(S.Spacing, __assign({ id: id, "$padding": padding, "$interval": interval }, rest, { children: children })) }));
65
+ }
66
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/ui/components/spacing/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,0BAcC;;AAvBD,oDAA0C;AAE1C,0CAA8B;AAO9B,SAAgB,OAAO,CAAC,EAMT;IALb,IAAA,EAAE,QAAA,EACF,OAAO,aAAA,EACP,QAAQ,cAAA,EACR,QAAQ,cAAA,EACL,IAAI,cALe,yCAMvB,CADQ;IAEP,OAAO,CACL,uBAAC,sBAAK,IAAC,IAAI,EAAE,EAAE,IAAI,SAAS,YAC1B,uBAAC,CAAC,CAAC,OAAO,aAAC,EAAE,EAAE,EAAE,cAAY,OAAO,eAAa,QAAQ,IAAM,IAAI,cAChE,QAAQ,IACC,GACN,CACT,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { SpacingProps } from './index.js';
2
+ export declare const Spacing: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").ClassAttributes<HTMLElement> & import("react").HTMLAttributes<HTMLElement>, {
3
+ $padding: SpacingProps["padding"];
4
+ $interval: SpacingProps["interval"];
5
+ }>> & string;
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
3
+ if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
4
+ return cooked;
5
+ };
6
+ var __importDefault = (this && this.__importDefault) || function (mod) {
7
+ return (mod && mod.__esModule) ? mod : { "default": mod };
8
+ };
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.Spacing = void 0;
11
+ var styled_components_1 = __importDefault(require("styled-components"));
12
+ var brakePoints = [1600, 1400, 1200, 1024, 768, 520, 400];
13
+ exports.Spacing = (0, styled_components_1.default)('section')(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: ", "px 0;\n\n ", "\n"], ["\n padding: ", "px 0;\n\n ", "\n"])), function (_a) {
14
+ var $padding = _a.$padding;
15
+ return Math.max(20, $padding);
16
+ }, function (_a) {
17
+ var $interval = _a.$interval, $padding = _a.$padding;
18
+ return brakePoints.map(function (breakPoint, index) {
19
+ return " @media only screen and (max-width: ".concat(breakPoint, "px) {\n padding: Math.max(20, ").concat($padding, " - ").concat($interval, " * ").concat(index + 1, ")}px\n 0;\n }");
20
+ });
21
+ });
22
+ var templateObject_1;
23
+ //# sourceMappingURL=styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/ui/components/spacing/styles.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wEAAsC;AAItC,IAAM,WAAW,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAA;AAE9C,QAAA,OAAO,GAAG,IAAA,2BAAM,EAAC,SAAS,CAAC,uGAGtC,eACW,EAAwC,aAEjD,EAME,IACL,KATY,UAAC,EAAY;QAAV,QAAQ,cAAA;IAAO,OAAA,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC;AAAtB,CAAsB,EAEjD,UAAC,EAAuB;QAArB,SAAS,eAAA,EAAE,QAAQ,cAAA;IACtB,OAAA,WAAW,CAAC,GAAG,CAAC,UAAC,UAAU,EAAE,KAAK;QAChC,OAAO,8CAAuC,UAAU,8CAClC,QAAQ,gBAAM,SAAS,gBAAM,KAAK,GAAG,CAAC,wBAE9D,CAAA;IACA,CAAC,CAAC;AALF,CAKE,EACL"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "infinity-forge",
3
- "version": "7.2.5",
3
+ "version": "7.2.6",
4
4
  "description": "codie Library",
5
5
  "main": "./dist/index",
6
6
  "module": "./dist/index",