@wrdagency/blockout 1.0.36 → 1.0.37
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/dist/assets/style11.css +1 -1
- package/dist/components/dashboard/grid.js +212 -69
- package/dist/components/dashboard/item.js +1546 -1508
- package/dist/components/dashboard/types.d.ts +6 -1
- package/dist/components/data-view/data/options.js +114 -82
- package/dist/index.js +40 -38
- package/dist/utils/array.d.ts +1 -0
- package/dist/utils/array.js +8 -7
- package/dist/utils/index.js +24 -22
- package/dist/utils/string.d.ts +1 -0
- package/dist/utils/string.js +13 -6
- package/package.json +1 -1
- package/dist/SquaresFour.es-iDUIyl5P.js +0 -38
package/dist/utils/index.js
CHANGED
|
@@ -1,29 +1,31 @@
|
|
|
1
|
-
import { chunk as
|
|
2
|
-
import { createComposite as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { getOrdinalSuffix as
|
|
5
|
-
import { clamp as
|
|
1
|
+
import { chunk as o, unique as t } from "./array.js";
|
|
2
|
+
import { createComposite as m, withProps as f } from "./components.js";
|
|
3
|
+
import { cn as i } from "./css.js";
|
|
4
|
+
import { getOrdinalSuffix as s } from "./date.js";
|
|
5
|
+
import { clamp as u, inverseLerp as l, lerp as c, remap as d, snap as C } from "./math.js";
|
|
6
6
|
import { noop as g } from "./noop.js";
|
|
7
|
-
import { dot as
|
|
8
|
-
import { basename as
|
|
9
|
-
import { isCurrent as
|
|
7
|
+
import { dot as O } from "./object.js";
|
|
8
|
+
import { basename as q, extension as v, filename as w, slugify as y, titleCase as L } from "./string.js";
|
|
9
|
+
import { isCurrent as S, isOutbound as j } from "./url.js";
|
|
10
10
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
q as basename,
|
|
12
|
+
o as chunk,
|
|
13
|
+
u as clamp,
|
|
14
|
+
i as cn,
|
|
15
|
+
m as createComposite,
|
|
16
|
+
O as dot,
|
|
17
17
|
v as extension,
|
|
18
18
|
w as filename,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
19
|
+
s as getOrdinalSuffix,
|
|
20
|
+
l as inverseLerp,
|
|
21
|
+
S as isCurrent,
|
|
22
|
+
j as isOutbound,
|
|
23
|
+
c as lerp,
|
|
24
24
|
g as noop,
|
|
25
|
-
|
|
25
|
+
d as remap,
|
|
26
26
|
y as slugify,
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
C as snap,
|
|
28
|
+
L as titleCase,
|
|
29
|
+
t as unique,
|
|
30
|
+
f as withProps
|
|
29
31
|
};
|
package/dist/utils/string.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ export declare function slugify(text: string): string;
|
|
|
2
2
|
export declare function basename(path: string): string;
|
|
3
3
|
export declare function filename(path: string): string;
|
|
4
4
|
export declare function extension(path: string): string | undefined;
|
|
5
|
+
export declare function titleCase(strring: string): string;
|
package/dist/utils/string.js
CHANGED
|
@@ -1,18 +1,25 @@
|
|
|
1
|
-
function
|
|
1
|
+
function t(e) {
|
|
2
2
|
return e.replace(/^\s+|\s+$/g, "").toLowerCase().replace(/[^a-z0-9 -]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-");
|
|
3
3
|
}
|
|
4
4
|
function n(e) {
|
|
5
5
|
return e.split(/[\\/]/).pop() || e;
|
|
6
6
|
}
|
|
7
|
-
function
|
|
7
|
+
function s(e) {
|
|
8
8
|
return n(e).split(".")[0];
|
|
9
9
|
}
|
|
10
|
-
function
|
|
10
|
+
function o(e) {
|
|
11
11
|
return n(e).split(".").pop();
|
|
12
12
|
}
|
|
13
|
+
function p(e) {
|
|
14
|
+
return e.replace(
|
|
15
|
+
/\w\S*/g,
|
|
16
|
+
(r) => r.charAt(0).toUpperCase() + r.substring(1).toLowerCase()
|
|
17
|
+
);
|
|
18
|
+
}
|
|
13
19
|
export {
|
|
14
20
|
n as basename,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
o as extension,
|
|
22
|
+
s as filename,
|
|
23
|
+
t as slugify,
|
|
24
|
+
p as titleCase
|
|
18
25
|
};
|
package/package.json
CHANGED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import * as a from "react";
|
|
2
|
-
import { w as h } from "./SSRBase.es-BUXS72ra.js";
|
|
3
|
-
const t = /* @__PURE__ */ new Map([
|
|
4
|
-
[
|
|
5
|
-
"bold",
|
|
6
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M100,36H56A20,20,0,0,0,36,56v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,100,36ZM96,96H60V60H96ZM200,36H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V56A20,20,0,0,0,200,36Zm-4,60H160V60h36Zm-96,40H56a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,100,136Zm-4,60H60V160H96Zm104-60H156a20,20,0,0,0-20,20v44a20,20,0,0,0,20,20h44a20,20,0,0,0,20-20V156A20,20,0,0,0,200,136Zm-4,60H160V160h36Z" }))
|
|
7
|
-
],
|
|
8
|
-
[
|
|
9
|
-
"duotone",
|
|
10
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement(
|
|
11
|
-
"path",
|
|
12
|
-
{
|
|
13
|
-
d: "M112,56v48a8,8,0,0,1-8,8H56a8,8,0,0,1-8-8V56a8,8,0,0,1,8-8h48A8,8,0,0,1,112,56Zm88-8H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V56A8,8,0,0,0,200,48Zm-96,96H56a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,104,144Zm96,0H152a8,8,0,0,0-8,8v48a8,8,0,0,0,8,8h48a8,8,0,0,0,8-8V152A8,8,0,0,0,200,144Z",
|
|
14
|
-
opacity: "0.2"
|
|
15
|
-
}
|
|
16
|
-
), /* @__PURE__ */ a.createElement("path", { d: "M200,136H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48ZM104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Z" }))
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"fill",
|
|
20
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M120,56v48a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V56A16,16,0,0,1,56,40h48A16,16,0,0,1,120,56Zm80-16H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm-96,96H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm96,0H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Z" }))
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"light",
|
|
24
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M104,42H56A14,14,0,0,0,42,56v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,104,42Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V56A14,14,0,0,0,200,42Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V56a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm-98,34H56a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,104,138Zm2,62a2,2,0,0,1-2,2H56a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Zm94-62H152a14,14,0,0,0-14,14v48a14,14,0,0,0,14,14h48a14,14,0,0,0,14-14V152A14,14,0,0,0,200,138Zm2,62a2,2,0,0,1-2,2H152a2,2,0,0,1-2-2V152a2,2,0,0,1,2-2h48a2,2,0,0,1,2,2Z" }))
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"regular",
|
|
28
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M104,40H56A16,16,0,0,0,40,56v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,104,40Zm0,64H56V56h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V56A16,16,0,0,0,200,40Zm0,64H152V56h48v48Zm-96,32H56a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,104,136Zm0,64H56V152h48v48Zm96-64H152a16,16,0,0,0-16,16v48a16,16,0,0,0,16,16h48a16,16,0,0,0,16-16V152A16,16,0,0,0,200,136Zm0,64H152V152h48v48Z" }))
|
|
29
|
-
],
|
|
30
|
-
[
|
|
31
|
-
"thin",
|
|
32
|
-
/* @__PURE__ */ a.createElement(a.Fragment, null, /* @__PURE__ */ a.createElement("path", { d: "M104,44H56A12,12,0,0,0,44,56v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,104,44Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V56A12,12,0,0,0,200,44Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V56a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4ZM104,140H56a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,104,140Zm4,60a4,4,0,0,1-4,4H56a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Zm92-60H152a12,12,0,0,0-12,12v48a12,12,0,0,0,12,12h48a12,12,0,0,0,12-12V152A12,12,0,0,0,200,140Zm4,60a4,4,0,0,1-4,4H152a4,4,0,0,1-4-4V152a4,4,0,0,1,4-4h48a4,4,0,0,1,4,4Z" }))
|
|
33
|
-
]
|
|
34
|
-
]), H = a.forwardRef((e, m) => /* @__PURE__ */ a.createElement(h, { ref: m, ...e, weights: t }));
|
|
35
|
-
H.displayName = "SquaresFourIcon";
|
|
36
|
-
export {
|
|
37
|
-
H as o
|
|
38
|
-
};
|