@crediblemark/build 0.22.2 → 0.22.7
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/README.md +1 -5
- package/dist/ArrayField-EPM4TV3J.mjs +538 -0
- package/dist/ArrayField-ZD5UTLNU.css +1216 -0
- package/dist/{Editor-XZF6CWVW.css → Editor-E7FALXHL.css} +7 -7
- package/dist/{Editor-ZC67OU2A.mjs → Editor-L674TD7T.mjs} +16 -18
- package/dist/ObjectField-MW3SSNKI.mjs +87 -0
- package/dist/ObjectField-SQKROKJM.css +1216 -0
- package/dist/{Render-WCX4AXOX.css → Render-JDXVKZXN.css} +1 -1
- package/dist/{Render-JBFI6HYN.mjs → Render-WP5OOTBB.mjs} +4 -7
- package/dist/chunk-2JUMF5G3.mjs +1145 -0
- package/dist/{chunk-VGDMWS44.mjs → chunk-4PJ4QMWI.mjs} +4 -25
- package/dist/{chunk-3AJBFQU4.mjs → chunk-64A37UUC.mjs} +19 -53
- package/dist/{chunk-QF3GD5WQ.mjs → chunk-67TMLSKM.mjs} +1 -5
- package/dist/{chunk-GUJDGRSM.mjs → chunk-7LXZOPYT.mjs} +5 -29
- package/dist/chunk-AEKBE267.mjs +19 -0
- package/dist/chunk-AFVEAZTD.mjs +2 -0
- package/dist/{chunk-IJHL7BIR.mjs → chunk-AL77I3BV.mjs} +1 -6
- package/dist/chunk-BFHV72KK.mjs +31 -0
- package/dist/{chunk-PHGC6QYB.mjs → chunk-DEUK76GN.mjs} +0 -5
- package/dist/{chunk-4SQOX3ZQ.mjs → chunk-DVK7K7D6.mjs} +5 -27
- package/dist/{chunk-VKBVSWU3.mjs → chunk-JNHQNNGW.mjs} +3672 -5905
- package/dist/{chunk-HHBUU7WF.mjs → chunk-JNMMY5D7.mjs} +1 -5
- package/dist/chunk-K27LFPQL.mjs +339 -0
- package/dist/{chunk-VFD76OD5.mjs → chunk-NYBWAKLT.mjs} +1 -5
- package/dist/chunk-RDTXKOE7.mjs +60 -0
- package/dist/{chunk-CDMESQDA.mjs → chunk-SMAWAXVX.mjs} +1 -10
- package/dist/{chunk-DSXRK4QJ.mjs → chunk-T6RT6PV4.mjs} +13 -62
- package/dist/{chunk-U2NVBXAC.mjs → chunk-ZY24NW7X.mjs} +246 -358
- package/dist/{full-ABQQRJAO.css → full-MY4DABK6.css} +6 -6
- package/dist/{full-LJRK5736.mjs → full-SGY5HNVB.mjs} +10 -14
- package/dist/index.css +588 -294
- package/dist/index.d.mts +5 -8
- package/dist/index.d.ts +5 -8
- package/dist/index.js +5985 -5656
- package/dist/index.mjs +23 -25
- package/dist/internal.mjs +3 -8
- package/dist/{loaded-NE2PIHUQ.mjs → loaded-2GLOBOVP.mjs} +7 -10
- package/dist/{loaded-N7VXUR4O.mjs → loaded-AH3CPHD2.mjs} +7 -10
- package/dist/{loaded-DWCENJKQ.mjs → loaded-ARSKBJWP.mjs} +7 -10
- package/dist/{loaded-SMEIWWHS.css → loaded-E7C36OKZ.css} +1 -1
- package/dist/no-external.css +299 -294
- package/dist/no-external.d.mts +1 -1
- package/dist/no-external.d.ts +1 -1
- package/dist/no-external.js +5985 -5656
- package/dist/no-external.mjs +23 -25
- package/dist/rsc.css +1 -1
- package/dist/rsc.js +5 -79
- package/dist/rsc.mjs +6 -12
- package/package.json +41 -36
- package/dist/chunk-B4BOBGYB.mjs +0 -42
- package/dist/chunk-YH7AXYKP.mjs +0 -109
package/dist/no-external.mjs
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
AutoField,
|
|
3
|
-
Button,
|
|
4
2
|
CredBuild,
|
|
5
3
|
Drawer,
|
|
6
4
|
DropZone,
|
|
7
|
-
FieldLabel,
|
|
8
5
|
Render,
|
|
9
6
|
blocksPlugin,
|
|
10
7
|
createUseCredBuild,
|
|
@@ -13,18 +10,25 @@ import {
|
|
|
13
10
|
outlinePlugin,
|
|
14
11
|
overrideKeys,
|
|
15
12
|
registerOverlayPortal,
|
|
16
|
-
renderContext,
|
|
17
|
-
setDeep,
|
|
18
13
|
useCredBuild,
|
|
19
14
|
useGetCredBuild
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-JNHQNNGW.mjs";
|
|
16
|
+
import "./chunk-AEKBE267.mjs";
|
|
17
|
+
import {
|
|
18
|
+
setDeep
|
|
19
|
+
} from "./chunk-K27LFPQL.mjs";
|
|
20
|
+
import {
|
|
21
|
+
AutoField,
|
|
22
|
+
Button,
|
|
23
|
+
FieldLabel
|
|
24
|
+
} from "./chunk-2JUMF5G3.mjs";
|
|
25
|
+
import "./chunk-4PJ4QMWI.mjs";
|
|
22
26
|
import {
|
|
23
27
|
migrate,
|
|
24
28
|
resolveAllData,
|
|
25
29
|
transformProps
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
30
|
+
} from "./chunk-DVK7K7D6.mjs";
|
|
31
|
+
import "./chunk-AL77I3BV.mjs";
|
|
28
32
|
import {
|
|
29
33
|
Action,
|
|
30
34
|
ActionBar,
|
|
@@ -33,23 +37,18 @@ import {
|
|
|
33
37
|
Label,
|
|
34
38
|
RichTextMenu,
|
|
35
39
|
Separator
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
43
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-T6RT6PV4.mjs";
|
|
41
|
+
import "./chunk-NYBWAKLT.mjs";
|
|
42
|
+
import "./chunk-67TMLSKM.mjs";
|
|
43
|
+
import "./chunk-JNMMY5D7.mjs";
|
|
44
|
+
import "./chunk-ZY24NW7X.mjs";
|
|
45
|
+
import "./chunk-64A37UUC.mjs";
|
|
46
|
+
import "./chunk-SMAWAXVX.mjs";
|
|
47
|
+
import "./chunk-BFHV72KK.mjs";
|
|
44
48
|
import {
|
|
45
49
|
walkTree
|
|
46
|
-
} from "./chunk-
|
|
47
|
-
import
|
|
48
|
-
init_react_import
|
|
49
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
50
|
-
|
|
51
|
-
// bundle/no-external.ts
|
|
52
|
-
init_react_import();
|
|
50
|
+
} from "./chunk-7LXZOPYT.mjs";
|
|
51
|
+
import "./chunk-AFVEAZTD.mjs";
|
|
53
52
|
export {
|
|
54
53
|
Action,
|
|
55
54
|
ActionBar,
|
|
@@ -73,7 +72,6 @@ export {
|
|
|
73
72
|
outlinePlugin,
|
|
74
73
|
overrideKeys,
|
|
75
74
|
registerOverlayPortal,
|
|
76
|
-
renderContext,
|
|
77
75
|
resolveAllData,
|
|
78
76
|
setDeep,
|
|
79
77
|
transformProps,
|
package/dist/rsc.css
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* css-module:/home/crediblemark/Project/
|
|
1
|
+
/* css-module:/home/crediblemark/Project/Credibuild/components/RichTextEditor/styles.module.css/#css-module-data */
|
|
2
2
|
._RichTextEditor_hp4qf_1 .ProseMirror {
|
|
3
3
|
white-space: pre-wrap;
|
|
4
4
|
word-wrap: break-word;
|
package/dist/rsc.js
CHANGED
|
@@ -8,9 +8,6 @@ var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
|
8
8
|
var __esm = (fn, res) => function __init() {
|
|
9
9
|
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
10
10
|
};
|
|
11
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
12
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
13
|
-
};
|
|
14
11
|
var __export = (target, all) => {
|
|
15
12
|
for (var name in all)
|
|
16
13
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -42,75 +39,13 @@ var init_react_import = __esm({
|
|
|
42
39
|
}
|
|
43
40
|
});
|
|
44
41
|
|
|
45
|
-
// ../node_modules/classnames/index.js
|
|
46
|
-
var require_classnames = __commonJS({
|
|
47
|
-
"../node_modules/classnames/index.js"(exports2, module2) {
|
|
48
|
-
"use strict";
|
|
49
|
-
init_react_import();
|
|
50
|
-
(function() {
|
|
51
|
-
"use strict";
|
|
52
|
-
var hasOwn = {}.hasOwnProperty;
|
|
53
|
-
function classNames() {
|
|
54
|
-
var classes = "";
|
|
55
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
56
|
-
var arg = arguments[i];
|
|
57
|
-
if (arg) {
|
|
58
|
-
classes = appendClass(classes, parseValue(arg));
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return classes;
|
|
62
|
-
}
|
|
63
|
-
function parseValue(arg) {
|
|
64
|
-
if (typeof arg === "string" || typeof arg === "number") {
|
|
65
|
-
return arg;
|
|
66
|
-
}
|
|
67
|
-
if (typeof arg !== "object") {
|
|
68
|
-
return "";
|
|
69
|
-
}
|
|
70
|
-
if (Array.isArray(arg)) {
|
|
71
|
-
return classNames.apply(null, arg);
|
|
72
|
-
}
|
|
73
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
74
|
-
return arg.toString();
|
|
75
|
-
}
|
|
76
|
-
var classes = "";
|
|
77
|
-
for (var key in arg) {
|
|
78
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
79
|
-
classes = appendClass(classes, key);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return classes;
|
|
83
|
-
}
|
|
84
|
-
function appendClass(value, newClass) {
|
|
85
|
-
if (!newClass) {
|
|
86
|
-
return value;
|
|
87
|
-
}
|
|
88
|
-
if (value) {
|
|
89
|
-
return value + " " + newClass;
|
|
90
|
-
}
|
|
91
|
-
return value + newClass;
|
|
92
|
-
}
|
|
93
|
-
if (typeof module2 !== "undefined" && module2.exports) {
|
|
94
|
-
classNames.default = classNames;
|
|
95
|
-
module2.exports = classNames;
|
|
96
|
-
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
97
|
-
define("classnames", [], function() {
|
|
98
|
-
return classNames;
|
|
99
|
-
});
|
|
100
|
-
} else {
|
|
101
|
-
window.classNames = classNames;
|
|
102
|
-
}
|
|
103
|
-
})();
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
|
|
107
42
|
// lib/get-class-name-factory.ts
|
|
108
43
|
var import_classnames, getClassNameFactory, get_class_name_factory_default;
|
|
109
44
|
var init_get_class_name_factory = __esm({
|
|
110
45
|
"lib/get-class-name-factory.ts"() {
|
|
111
46
|
"use strict";
|
|
112
47
|
init_react_import();
|
|
113
|
-
import_classnames = __toESM(
|
|
48
|
+
import_classnames = __toESM(require("classnames"));
|
|
114
49
|
getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (options = {}) => {
|
|
115
50
|
if (typeof options === "string") {
|
|
116
51
|
const descendant = options;
|
|
@@ -139,16 +74,16 @@ var init_get_class_name_factory = __esm({
|
|
|
139
74
|
}
|
|
140
75
|
});
|
|
141
76
|
|
|
142
|
-
// css-module:/home/crediblemark/Project/
|
|
77
|
+
// css-module:/home/crediblemark/Project/Credibuild/components/RichTextEditor/styles.module.css/#css-module-data
|
|
143
78
|
var init_css_module_data = __esm({
|
|
144
|
-
"css-module:/home/crediblemark/Project/
|
|
79
|
+
"css-module:/home/crediblemark/Project/Credibuild/components/RichTextEditor/styles.module.css/#css-module-data"() {
|
|
145
80
|
}
|
|
146
81
|
});
|
|
147
82
|
|
|
148
|
-
// css-module:/home/crediblemark/Project/
|
|
83
|
+
// css-module:/home/crediblemark/Project/Credibuild/components/RichTextEditor/styles.module.css#css-module
|
|
149
84
|
var styles_module_default;
|
|
150
85
|
var init_styles_module = __esm({
|
|
151
|
-
"css-module:/home/crediblemark/Project/
|
|
86
|
+
"css-module:/home/crediblemark/Project/Credibuild/components/RichTextEditor/styles.module.css#css-module"() {
|
|
152
87
|
"use strict";
|
|
153
88
|
init_react_import();
|
|
154
89
|
init_css_module_data();
|
|
@@ -1455,12 +1390,3 @@ function migrate(data, config, migrationOptions) {
|
|
|
1455
1390
|
transformProps,
|
|
1456
1391
|
walkTree
|
|
1457
1392
|
});
|
|
1458
|
-
/*! Bundled license information:
|
|
1459
|
-
|
|
1460
|
-
classnames/index.js:
|
|
1461
|
-
(*!
|
|
1462
|
-
Copyright (c) 2018 Jed Watson.
|
|
1463
|
-
Licensed under the MIT License (MIT), see
|
|
1464
|
-
http://jedwatson.github.io/classnames
|
|
1465
|
-
*)
|
|
1466
|
-
*/
|
package/dist/rsc.mjs
CHANGED
|
@@ -5,26 +5,20 @@ import {
|
|
|
5
5
|
transformProps,
|
|
6
6
|
useRichtextProps,
|
|
7
7
|
useSlots
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-DVK7K7D6.mjs";
|
|
9
|
+
import "./chunk-AL77I3BV.mjs";
|
|
10
|
+
import "./chunk-SMAWAXVX.mjs";
|
|
11
|
+
import "./chunk-BFHV72KK.mjs";
|
|
12
12
|
import {
|
|
13
13
|
rootAreaId,
|
|
14
14
|
rootDroppableId,
|
|
15
15
|
rootZone,
|
|
16
16
|
setupZone,
|
|
17
17
|
walkTree
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import
|
|
20
|
-
init_react_import
|
|
21
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
22
|
-
|
|
23
|
-
// bundle/rsc.tsx
|
|
24
|
-
init_react_import();
|
|
18
|
+
} from "./chunk-7LXZOPYT.mjs";
|
|
19
|
+
import "./chunk-AFVEAZTD.mjs";
|
|
25
20
|
|
|
26
21
|
// components/ServerRender/index.tsx
|
|
27
|
-
init_react_import();
|
|
28
22
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
29
23
|
function DropZoneRenderItem({
|
|
30
24
|
item,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crediblemark/build",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.7",
|
|
4
4
|
"description": "The open-source visual editor for React",
|
|
5
5
|
"author": "Rasyiqi Crediblemark",
|
|
6
6
|
"repository": {
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"build": "rm -rf dist && tsup bundle/index.ts bundle/rsc.tsx bundle/no-external.ts bundle/internal.ts",
|
|
73
73
|
"dev": "tsup bundle/index.ts bundle/rsc.tsx bundle/no-external.ts bundle/internal.ts --watch",
|
|
74
74
|
"test": "jest",
|
|
75
|
-
"prepublishOnly": "
|
|
75
|
+
"prepublishOnly": "bun run build"
|
|
76
76
|
},
|
|
77
77
|
"files": [
|
|
78
78
|
"dist",
|
|
@@ -81,25 +81,29 @@
|
|
|
81
81
|
],
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@juggle/resize-observer": "^3.4.0",
|
|
84
|
-
"@testing-library/jest-dom": "^6.
|
|
85
|
-
"@testing-library/react": "^16.
|
|
86
|
-
"@types/deep-diff": "^1.0.
|
|
84
|
+
"@testing-library/jest-dom": "^6.9.1",
|
|
85
|
+
"@testing-library/react": "^16.3.2",
|
|
86
|
+
"@types/deep-diff": "^1.0.5",
|
|
87
87
|
"@types/flat": "^5.0.5",
|
|
88
88
|
"@types/jest": "^29.5.14",
|
|
89
89
|
"@types/node": "^24.12.2",
|
|
90
90
|
"@types/object-hash": "^3.0.6",
|
|
91
|
-
"@types/react": "^19.2.
|
|
91
|
+
"@types/react": "^19.2.14",
|
|
92
92
|
"@types/react-dom": "^19.2.3",
|
|
93
93
|
"@types/uuid": "^10.0.0",
|
|
94
94
|
"css-box-model": "^1.2.1",
|
|
95
|
-
"eslint": "^8.57.
|
|
95
|
+
"eslint": "^8.57.1",
|
|
96
96
|
"identity-obj-proxy": "^3.0.0",
|
|
97
97
|
"jest": "^29.7.0",
|
|
98
|
-
"jest-environment-jsdom": "^30.
|
|
98
|
+
"jest-environment-jsdom": "^30.3.0",
|
|
99
99
|
"lucide-react": "^0.556.0",
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
100
|
+
"madge": "^8.0.0",
|
|
101
|
+
"postcss": "^8.5.14",
|
|
102
|
+
"postcss-modules": "^6.0.1",
|
|
103
|
+
"ts-jest": "^29.4.9",
|
|
104
|
+
"ts-node": "^10.9.2",
|
|
105
|
+
"tsup": "^8.5.1",
|
|
106
|
+
"typescript": "^5.9.3"
|
|
103
107
|
},
|
|
104
108
|
"dependencies": {
|
|
105
109
|
"@dnd-kit/abstract": "0.1.21",
|
|
@@ -110,38 +114,39 @@
|
|
|
110
114
|
"@dnd-kit/react": "0.1.18",
|
|
111
115
|
"@dnd-kit/state": "0.1.21",
|
|
112
116
|
"@radix-ui/react-popover": "^1.1.15",
|
|
113
|
-
"@tanstack/react-virtual": "^3.13.
|
|
114
|
-
"@tiptap/core": "^3.
|
|
115
|
-
"@tiptap/extension-blockquote": "^3.
|
|
116
|
-
"@tiptap/extension-bold": "^3.
|
|
117
|
-
"@tiptap/extension-code": "^3.
|
|
118
|
-
"@tiptap/extension-code-block": "^3.
|
|
119
|
-
"@tiptap/extension-document": "^3.
|
|
120
|
-
"@tiptap/extension-hard-break": "^3.
|
|
121
|
-
"@tiptap/extension-heading": "^3.
|
|
122
|
-
"@tiptap/extension-horizontal-rule": "^3.
|
|
123
|
-
"@tiptap/extension-italic": "^3.
|
|
124
|
-
"@tiptap/extension-link": "^3.
|
|
125
|
-
"@tiptap/extension-list": "^3.
|
|
126
|
-
"@tiptap/extension-paragraph": "^3.
|
|
127
|
-
"@tiptap/extension-strike": "^3.
|
|
128
|
-
"@tiptap/extension-text": "^3.
|
|
129
|
-
"@tiptap/extension-text-align": "^3.
|
|
130
|
-
"@tiptap/extension-underline": "^3.
|
|
131
|
-
"@tiptap/html": "^3.
|
|
132
|
-
"@tiptap/pm": "^3.
|
|
133
|
-
"@tiptap/react": "^3.
|
|
117
|
+
"@tanstack/react-virtual": "^3.13.24",
|
|
118
|
+
"@tiptap/core": "^3.22.5",
|
|
119
|
+
"@tiptap/extension-blockquote": "^3.22.5",
|
|
120
|
+
"@tiptap/extension-bold": "^3.22.5",
|
|
121
|
+
"@tiptap/extension-code": "^3.22.5",
|
|
122
|
+
"@tiptap/extension-code-block": "^3.22.5",
|
|
123
|
+
"@tiptap/extension-document": "^3.22.5",
|
|
124
|
+
"@tiptap/extension-hard-break": "^3.22.5",
|
|
125
|
+
"@tiptap/extension-heading": "^3.22.5",
|
|
126
|
+
"@tiptap/extension-horizontal-rule": "^3.22.5",
|
|
127
|
+
"@tiptap/extension-italic": "^3.22.5",
|
|
128
|
+
"@tiptap/extension-link": "^3.22.5",
|
|
129
|
+
"@tiptap/extension-list": "^3.22.5",
|
|
130
|
+
"@tiptap/extension-paragraph": "^3.22.5",
|
|
131
|
+
"@tiptap/extension-strike": "^3.22.5",
|
|
132
|
+
"@tiptap/extension-text": "^3.22.5",
|
|
133
|
+
"@tiptap/extension-text-align": "^3.22.5",
|
|
134
|
+
"@tiptap/extension-underline": "^3.22.5",
|
|
135
|
+
"@tiptap/html": "^3.22.5",
|
|
136
|
+
"@tiptap/pm": "^3.22.5",
|
|
137
|
+
"@tiptap/react": "^3.22.5",
|
|
138
|
+
"classnames": "^2.5.1",
|
|
134
139
|
"deep-diff": "^1.0.2",
|
|
135
140
|
"fast-equals": "5.2.2",
|
|
136
141
|
"flat": "^5.0.2",
|
|
137
|
-
"happy-dom": "^20.0
|
|
142
|
+
"happy-dom": "^20.9.0",
|
|
138
143
|
"object-hash": "^3.0.0",
|
|
139
|
-
"react-hotkeys-hook": "^4.6.
|
|
144
|
+
"react-hotkeys-hook": "^4.6.2",
|
|
140
145
|
"use-debounce": "^9.0.4",
|
|
141
146
|
"uuid": "^9.0.1",
|
|
142
|
-
"zustand": "^5.0.
|
|
147
|
+
"zustand": "^5.0.13"
|
|
143
148
|
},
|
|
144
149
|
"peerDependencies": {
|
|
145
|
-
"react": "^
|
|
150
|
+
"react": "^19.2.6"
|
|
146
151
|
}
|
|
147
152
|
}
|
package/dist/chunk-B4BOBGYB.mjs
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __esm = (fn, res) => function __init() {
|
|
8
|
-
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
9
|
-
};
|
|
10
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
11
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
|
|
30
|
-
// react-import.js
|
|
31
|
-
import React from "react";
|
|
32
|
-
var init_react_import = __esm({
|
|
33
|
-
"react-import.js"() {
|
|
34
|
-
"use strict";
|
|
35
|
-
}
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
export {
|
|
39
|
-
__commonJS,
|
|
40
|
-
__toESM,
|
|
41
|
-
init_react_import
|
|
42
|
-
};
|
package/dist/chunk-YH7AXYKP.mjs
DELETED
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
__commonJS,
|
|
3
|
-
__toESM,
|
|
4
|
-
init_react_import
|
|
5
|
-
} from "./chunk-B4BOBGYB.mjs";
|
|
6
|
-
|
|
7
|
-
// ../node_modules/classnames/index.js
|
|
8
|
-
var require_classnames = __commonJS({
|
|
9
|
-
"../node_modules/classnames/index.js"(exports, module) {
|
|
10
|
-
"use strict";
|
|
11
|
-
init_react_import();
|
|
12
|
-
(function() {
|
|
13
|
-
"use strict";
|
|
14
|
-
var hasOwn = {}.hasOwnProperty;
|
|
15
|
-
function classNames() {
|
|
16
|
-
var classes = "";
|
|
17
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
18
|
-
var arg = arguments[i];
|
|
19
|
-
if (arg) {
|
|
20
|
-
classes = appendClass(classes, parseValue(arg));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
return classes;
|
|
24
|
-
}
|
|
25
|
-
function parseValue(arg) {
|
|
26
|
-
if (typeof arg === "string" || typeof arg === "number") {
|
|
27
|
-
return arg;
|
|
28
|
-
}
|
|
29
|
-
if (typeof arg !== "object") {
|
|
30
|
-
return "";
|
|
31
|
-
}
|
|
32
|
-
if (Array.isArray(arg)) {
|
|
33
|
-
return classNames.apply(null, arg);
|
|
34
|
-
}
|
|
35
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
|
|
36
|
-
return arg.toString();
|
|
37
|
-
}
|
|
38
|
-
var classes = "";
|
|
39
|
-
for (var key in arg) {
|
|
40
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
41
|
-
classes = appendClass(classes, key);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
return classes;
|
|
45
|
-
}
|
|
46
|
-
function appendClass(value, newClass) {
|
|
47
|
-
if (!newClass) {
|
|
48
|
-
return value;
|
|
49
|
-
}
|
|
50
|
-
if (value) {
|
|
51
|
-
return value + " " + newClass;
|
|
52
|
-
}
|
|
53
|
-
return value + newClass;
|
|
54
|
-
}
|
|
55
|
-
if (typeof module !== "undefined" && module.exports) {
|
|
56
|
-
classNames.default = classNames;
|
|
57
|
-
module.exports = classNames;
|
|
58
|
-
} else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
|
|
59
|
-
define("classnames", [], function() {
|
|
60
|
-
return classNames;
|
|
61
|
-
});
|
|
62
|
-
} else {
|
|
63
|
-
window.classNames = classNames;
|
|
64
|
-
}
|
|
65
|
-
})();
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
// lib/get-class-name-factory.ts
|
|
70
|
-
init_react_import();
|
|
71
|
-
var import_classnames = __toESM(require_classnames());
|
|
72
|
-
var getClassNameFactory = (rootClass, styles, config = { baseClass: "" }) => (options = {}) => {
|
|
73
|
-
if (typeof options === "string") {
|
|
74
|
-
const descendant = options;
|
|
75
|
-
const style = styles[`${rootClass}-${descendant}`];
|
|
76
|
-
if (style) {
|
|
77
|
-
return config.baseClass + styles[`${rootClass}-${descendant}`] || "";
|
|
78
|
-
}
|
|
79
|
-
return "";
|
|
80
|
-
} else if (typeof options === "object") {
|
|
81
|
-
const modifiers = options;
|
|
82
|
-
const prefixedModifiers = {};
|
|
83
|
-
for (let modifier in modifiers) {
|
|
84
|
-
prefixedModifiers[styles[`${rootClass}--${modifier}`]] = modifiers[modifier];
|
|
85
|
-
}
|
|
86
|
-
const c = styles[rootClass];
|
|
87
|
-
return config.baseClass + (0, import_classnames.default)({
|
|
88
|
-
[c]: !!c,
|
|
89
|
-
// only apply the class if it exists
|
|
90
|
-
...prefixedModifiers
|
|
91
|
-
});
|
|
92
|
-
} else {
|
|
93
|
-
return config.baseClass + styles[rootClass] || "";
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
var get_class_name_factory_default = getClassNameFactory;
|
|
97
|
-
|
|
98
|
-
export {
|
|
99
|
-
get_class_name_factory_default
|
|
100
|
-
};
|
|
101
|
-
/*! Bundled license information:
|
|
102
|
-
|
|
103
|
-
classnames/index.js:
|
|
104
|
-
(*!
|
|
105
|
-
Copyright (c) 2018 Jed Watson.
|
|
106
|
-
Licensed under the MIT License (MIT), see
|
|
107
|
-
http://jedwatson.github.io/classnames
|
|
108
|
-
*)
|
|
109
|
-
*/
|