coles-solid-library 0.3.3 → 0.3.5
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/components/Form/formGroup.d.ts +7 -0
- package/dist/components/TableV2/row.d.ts +2 -1
- package/dist/components/TableV2/table.d.ts +8 -0
- package/dist/components/TableV2/tableProvider.d.ts +25 -18
- package/dist/index.esm.js +470 -323
- package/package.json +13 -3
- package/dist/components/TableV2/droprow.d.ts +0 -9
- package/dist/components/TableV2/formArrayTable.d.ts +0 -18
- package/dist/components/popup/popup.component.d.ts +0 -24
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coles-solid-library",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "A SolidJS mostly UI library",
|
|
5
5
|
"module": "dist/index.esm.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -14,7 +14,10 @@
|
|
|
14
14
|
"themes"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "rollup -c --bundleConfigAsCjs"
|
|
17
|
+
"build": "rollup -c --bundleConfigAsCjs",
|
|
18
|
+
"test": "vitest run",
|
|
19
|
+
"test:watch": "vitest",
|
|
20
|
+
"coverage": "vitest run --coverage"
|
|
18
21
|
},
|
|
19
22
|
"keywords": [],
|
|
20
23
|
"author": "",
|
|
@@ -31,17 +34,24 @@
|
|
|
31
34
|
"@rollup/plugin-babel": "^6.0.4",
|
|
32
35
|
"@rollup/plugin-commonjs": "^28.0.3",
|
|
33
36
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
37
|
+
"@solidjs/testing-library": "^0.8.9",
|
|
34
38
|
"@svgr/rollup": "^8.1.0",
|
|
39
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
35
40
|
"@types/node": "^22.13.9",
|
|
41
|
+
"@vitest/coverage-v8": "^2.1.5",
|
|
36
42
|
"autoprefixer": "^10.4.20",
|
|
37
43
|
"babel": "^6.23.0",
|
|
38
44
|
"babel-preset-solid": "^1.9.5",
|
|
45
|
+
"jsdom": "^24.1.3",
|
|
39
46
|
"rollup": "^4.34.9",
|
|
40
47
|
"rollup-plugin-glob-import": "^0.5.0",
|
|
41
48
|
"rollup-plugin-postcss": "^4.0.2",
|
|
42
49
|
"rollup-plugin-string": "^3.0.0",
|
|
43
50
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
44
51
|
"tslib": "^2.8.1",
|
|
45
|
-
"typescript": "^5.8.2"
|
|
52
|
+
"typescript": "^5.8.2",
|
|
53
|
+
"vite": "^5.4.11",
|
|
54
|
+
"vite-plugin-solid": "^2.10.2",
|
|
55
|
+
"vitest": "^2.1.5"
|
|
46
56
|
}
|
|
47
57
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Component, JSX } from "solid-js";
|
|
2
|
-
interface DropRowProps<T> extends Omit<JSX.HTMLAttributes<HTMLTableRowElement>, 'children'> {
|
|
3
|
-
children: (item: T, index: number) => JSX.Element;
|
|
4
|
-
isOpen?: boolean;
|
|
5
|
-
rowNumber?: number;
|
|
6
|
-
isDropHeader?: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare const DropRowBody: Component<DropRowProps<any>>;
|
|
9
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { JSX } from "solid-js";
|
|
2
|
-
interface FormArrayTableProps<T = any> {
|
|
3
|
-
children: JSX.Element;
|
|
4
|
-
formArrayPath: string;
|
|
5
|
-
columns: string[];
|
|
6
|
-
initialData?: T[];
|
|
7
|
-
style?: JSX.CSSProperties | string;
|
|
8
|
-
id?: string;
|
|
9
|
-
class?: string;
|
|
10
|
-
otherStyles?: {
|
|
11
|
-
thead?: any;
|
|
12
|
-
tbody?: any;
|
|
13
|
-
tfoot?: any;
|
|
14
|
-
colGroup?: any;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export declare const FormArrayTable: <T extends object>(props: FormArrayTableProps<T>) => JSX.Element;
|
|
18
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Accessor, Component, JSX, Setter } from "solid-js";
|
|
2
|
-
type Props = {
|
|
3
|
-
title: string;
|
|
4
|
-
show: [Accessor<boolean>, Setter<boolean>];
|
|
5
|
-
children?: JSX.Element;
|
|
6
|
-
width?: string;
|
|
7
|
-
height?: string;
|
|
8
|
-
translate?: {
|
|
9
|
-
x?: string;
|
|
10
|
-
y?: string;
|
|
11
|
-
};
|
|
12
|
-
styleType?: "primary" | "accent" | "tertiary";
|
|
13
|
-
onClick?: (e: MouseEvent) => void;
|
|
14
|
-
ref?: JSX.HTMLAttributes<HTMLDivElement>["ref"];
|
|
15
|
-
};
|
|
16
|
-
export declare const Modal: Component<Props>;
|
|
17
|
-
declare module "solid-js" {
|
|
18
|
-
namespace JSX {
|
|
19
|
-
interface Directives {
|
|
20
|
-
clickOutside: () => void;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
export {};
|