@cronocode/react-box 3.0.21 → 3.1.1
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/box.d.ts +6 -1
- package/box.mjs +4 -4
- package/components/baseSvg.cjs +1 -1
- package/components/baseSvg.d.ts +1 -1
- package/components/button.cjs +1 -1
- package/components/checkbox.cjs +1 -1
- package/components/dataGrid/components/dataGridBody.d.ts +7 -0
- package/components/dataGrid/components/dataGridBottomBar.d.ts +6 -0
- package/components/dataGrid/components/dataGridColumnGroups.d.ts +1 -1
- package/components/dataGrid/components/dataGridContent.d.ts +6 -0
- package/components/dataGrid/components/dataGridHeader.d.ts +6 -0
- package/components/dataGrid/components/dataGridHeaderCellContextMenu.d.ts +6 -0
- package/components/dataGrid/components/dataGridHeaderCellResizer.d.ts +6 -0
- package/components/dataGrid/components/dataGridPagination.d.ts +1 -1
- package/components/dataGrid/components/dataGridTopBar.d.ts +6 -0
- package/components/dataGrid/components/dataGridTopBarContextMenu.d.ts +6 -0
- package/components/dataGrid/contracts/dataGridContract.d.ts +16 -0
- package/components/dataGrid/models/columnModel.d.ts +1 -1
- package/components/dataGrid/models/gridModel.d.ts +15 -7
- package/components/dataGrid/models/groupRowModel.d.ts +3 -2
- package/components/dataGrid/models/rowModel.d.ts +8 -7
- package/components/dataGrid.cjs +1 -1
- package/components/dataGrid.d.ts +1 -1
- package/components/dataGrid.mjs +511 -576
- package/components/dropdown.cjs +1 -1
- package/components/dropdown.mjs +111 -135
- package/components/flex.cjs +1 -1
- package/components/form.cjs +1 -1
- package/components/form.mjs +1 -1
- package/components/grid.cjs +1 -1
- package/components/radioButton.cjs +1 -1
- package/components/radioButton.mjs +10 -10
- package/components/semantics.d.ts +25 -25
- package/components/semantics.mjs +1 -1
- package/components/textarea.cjs +1 -1
- package/components/textbox.cjs +1 -1
- package/components/tooltip.cjs +1 -1
- package/components/tooltip.d.ts +6 -3
- package/components/tooltip.mjs +34 -34
- package/core/boxStyles.d.ts +28 -4
- package/core/boxStylesFormatters.d.ts +1 -1
- package/core/coreTypes.d.ts +1 -1
- package/core/extends/boxComponents.d.ts +194 -18
- package/core.cjs +3 -3
- package/core.mjs +476 -306
- package/icons/expandIcon.d.ts +2 -0
- package/icons/sortIcon.d.ts +2 -0
- package/package.json +22 -14
- package/ssg.cjs +1 -1
- package/ssg.mjs +17 -16
- package/utils/object/objectUtils.d.ts +2 -2
- package/icons/arrowIcon.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cronocode/react-box",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./box.cjs",
|
|
6
6
|
"module": "./box.mjs",
|
|
7
7
|
"types": "./box.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
+
"types": "./box.d.ts",
|
|
10
11
|
"import": "./box.mjs",
|
|
11
|
-
"require": "./box.cjs"
|
|
12
|
-
"types": "./box.d.ts"
|
|
13
|
-
},
|
|
14
|
-
"./types": {
|
|
15
|
-
"types": "./types.d.ts"
|
|
12
|
+
"require": "./box.cjs"
|
|
16
13
|
},
|
|
17
14
|
"./ssg": {
|
|
15
|
+
"types": "./ssg.d.ts",
|
|
18
16
|
"import": "./ssg.mjs",
|
|
19
|
-
"require": "./ssg.cjs"
|
|
20
|
-
"types": "./ssg.d.ts"
|
|
17
|
+
"require": "./ssg.cjs"
|
|
21
18
|
},
|
|
22
19
|
"./components/*": {
|
|
20
|
+
"types": "./components/*.d.ts",
|
|
23
21
|
"import": "./components/*.mjs",
|
|
24
|
-
"require": "./components/*.cjs"
|
|
25
|
-
|
|
22
|
+
"require": "./components/*.cjs"
|
|
23
|
+
},
|
|
24
|
+
"./types": {
|
|
25
|
+
"types": "./types.d.ts"
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
@@ -34,7 +34,8 @@
|
|
|
34
34
|
"build:dev": "vite build --mode dev",
|
|
35
35
|
"compile": "tsc --noEmit --skipLibCheck",
|
|
36
36
|
"test": "vitest",
|
|
37
|
-
"test:all": "vitest run"
|
|
37
|
+
"test:all": "vitest run",
|
|
38
|
+
"lint": "eslint ."
|
|
38
39
|
},
|
|
39
40
|
"repository": {
|
|
40
41
|
"type": "git",
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
"@cronocode/identity-factory": "^0.0.6"
|
|
56
57
|
},
|
|
57
58
|
"devDependencies": {
|
|
59
|
+
"@eslint/js": "^9.30.1",
|
|
58
60
|
"@rollup/pluginutils": "^5.1.0",
|
|
59
61
|
"@testing-library/dom": "^10.4.0",
|
|
60
62
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -66,15 +68,21 @@
|
|
|
66
68
|
"@types/react-dom": "^18.3.0",
|
|
67
69
|
"@vitejs/plugin-react": "^4.3.1",
|
|
68
70
|
"autoprefixer": "^10.4.20",
|
|
71
|
+
"eslint": "^9.30.1",
|
|
72
|
+
"eslint-plugin-import": "^2.32.0",
|
|
73
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
74
|
+
"eslint-plugin-react-refresh": "^0.4.20",
|
|
75
|
+
"globals": "^16.3.0",
|
|
69
76
|
"happy-dom": "^15.7.4",
|
|
70
77
|
"prettier": "^3.3.3",
|
|
71
78
|
"prismjs": "^1.29.0",
|
|
72
79
|
"react": "^18.3.1",
|
|
73
80
|
"react-dom": "^18.3.1",
|
|
74
|
-
"react-router-dom": "^6.
|
|
81
|
+
"react-router-dom": "^7.6.3",
|
|
75
82
|
"typescript": "^5.6.2",
|
|
76
|
-
"
|
|
83
|
+
"typescript-eslint": "^8.36.0",
|
|
84
|
+
"vite": "^7.0.3",
|
|
77
85
|
"vite-plugin-dts": "^4.2.1",
|
|
78
|
-
"vitest": "^2.
|
|
86
|
+
"vitest": "^3.2.4"
|
|
79
87
|
}
|
|
80
88
|
}
|
package/ssg.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react-dom/server"),l=require("./core.cjs"),r={innerHTML:""},a={head:{insertBefore(t,n){return t}},getElementById(){return r},createElement(){return{setAttribute(t,n){}}}};global.document=a;function d(t,n=!0){let e=u.renderToStaticMarkup(t);if(l.StylesContext.flush(),n){const s="<head>",o=e.indexOf(s);if(o>-1){const i=`<style id="crono-styles">${r.innerHTML}</style>`,c=o+s.length;e=e.substring(0,c)+i+e.substring(c)}}return l.StylesContext.clear(),{html:e,styles:r.innerHTML}}exports.renderToStaticMarkup=d;
|
package/ssg.mjs
CHANGED
|
@@ -1,35 +1,36 @@
|
|
|
1
|
-
import { h as o } from "./core.mjs";
|
|
2
1
|
import a from "react-dom/server";
|
|
3
|
-
|
|
2
|
+
import { g as i } from "./core.mjs";
|
|
3
|
+
const r = {
|
|
4
4
|
innerHTML: ""
|
|
5
|
-
},
|
|
5
|
+
}, u = {
|
|
6
6
|
head: {
|
|
7
|
-
insertBefore() {
|
|
7
|
+
insertBefore(t, n) {
|
|
8
|
+
return t;
|
|
8
9
|
}
|
|
9
10
|
},
|
|
10
11
|
getElementById() {
|
|
11
|
-
return
|
|
12
|
+
return r;
|
|
12
13
|
},
|
|
13
14
|
createElement() {
|
|
14
15
|
return {
|
|
15
|
-
setAttribute() {
|
|
16
|
+
setAttribute(t, n) {
|
|
16
17
|
}
|
|
17
18
|
};
|
|
18
19
|
}
|
|
19
20
|
};
|
|
20
|
-
global.document =
|
|
21
|
-
function f(
|
|
22
|
-
let e = a.renderToStaticMarkup(
|
|
23
|
-
if (
|
|
24
|
-
const
|
|
25
|
-
if (
|
|
26
|
-
const c = `<style id="crono-styles">${
|
|
27
|
-
e = e.substring(0,
|
|
21
|
+
global.document = u;
|
|
22
|
+
function f(t, n = !0) {
|
|
23
|
+
let e = a.renderToStaticMarkup(t);
|
|
24
|
+
if (i.flush(), n) {
|
|
25
|
+
const s = "<head>", o = e.indexOf(s);
|
|
26
|
+
if (o > -1) {
|
|
27
|
+
const c = `<style id="crono-styles">${r.innerHTML}</style>`, l = o + s.length;
|
|
28
|
+
e = e.substring(0, l) + c + e.substring(l);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
|
-
return
|
|
31
|
+
return i.clear(), {
|
|
31
32
|
html: e,
|
|
32
|
-
styles:
|
|
33
|
+
styles: r.innerHTML
|
|
33
34
|
};
|
|
34
35
|
}
|
|
35
36
|
export {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
declare namespace ObjectUtils {
|
|
2
2
|
function buildProps<T extends {
|
|
3
|
-
props?:
|
|
4
|
-
}, TKey extends keyof T>(props: T, keys: Readonly<TKey[]>, extraTagProps?:
|
|
3
|
+
props?: object;
|
|
4
|
+
}, TKey extends keyof T>(props: T, keys: Readonly<TKey[]>, extraTagProps?: object): T;
|
|
5
5
|
function isObject(value: unknown): value is object;
|
|
6
6
|
function mergeDeep<T>(...objects: T[]): T;
|
|
7
7
|
function isKeyOf<T extends object>(key: any, obj: T): key is keyof T;
|
package/icons/arrowIcon.d.ts
DELETED