@stealthscale/component-collections 0.0.1 → 0.1.2
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 +684 -4
- package/dist/cyclonedx/bom.json +1 -1
- package/dist/index.d.ts +2148 -1
- package/dist/index.js +5697 -6
- package/dist/recipe-C1oaF8pO.js +2212 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/theme.d.ts +3 -4
- package/dist/theme.js +34 -14
- package/package.json +48 -24
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region \0rolldown/runtime.js
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __exportAll = (all, no_symbols) => {
|
|
4
|
+
let target = {};
|
|
5
|
+
for (var name in all) __defProp(target, name, {
|
|
6
|
+
get: all[name],
|
|
7
|
+
enumerable: true
|
|
8
|
+
});
|
|
9
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
10
|
+
return target;
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { __exportAll as t };
|
package/dist/theme.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
//#region src/theme.d.ts
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
4
|
-
* to install.
|
|
3
|
+
* Preset that registers this package's slot recipes, for an application's compiler to install.
|
|
5
4
|
*
|
|
6
5
|
* @remarks
|
|
7
|
-
* The
|
|
8
|
-
*
|
|
6
|
+
* The nine recipes are listed by hand. A spec in this package fails when a recipe file is
|
|
7
|
+
* missing from the list, which catches the one mistake a generator would prevent.
|
|
9
8
|
*/
|
|
10
9
|
declare const _default: import("@stealthscale/theme/authoring").Preset;
|
|
11
10
|
//#endregion
|
package/dist/theme.js
CHANGED
|
@@ -1,16 +1,36 @@
|
|
|
1
|
+
import { c as recipe$3, f as recipe, i as recipe$6, l as recipe$2, o as recipe$4, r as recipe$7, s as recipe$5, t as recipe$8, u as recipe$1 } from "./recipe-C1oaF8pO.js";
|
|
1
2
|
import { definePreset } from "@stealthscale/theme/authoring";
|
|
2
|
-
//#region src/theme.ts
|
|
3
|
-
/**
|
|
4
|
-
* Publishes the preset that registers every recipe in this package, for an application's compiler
|
|
5
|
-
* to install.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* The list is written by hand. The package's own specification reports a recipe file the list
|
|
9
|
-
* leaves out, so no generator runs here.
|
|
10
|
-
*/
|
|
11
|
-
var theme_default = definePreset({
|
|
12
|
-
name: "@stealthscale/component-collections",
|
|
13
|
-
theme: { extend: { recipes: {} } }
|
|
14
|
-
});
|
|
15
3
|
//#endregion
|
|
16
|
-
|
|
4
|
+
const theme_default$published = ((preset) => {
|
|
5
|
+
const extend = preset.theme.extend;
|
|
6
|
+
return {
|
|
7
|
+
...preset,
|
|
8
|
+
theme: {
|
|
9
|
+
...preset.theme,
|
|
10
|
+
extend: {
|
|
11
|
+
...extend,
|
|
12
|
+
"slotRecipes": {
|
|
13
|
+
...extend["slotRecipes"],
|
|
14
|
+
"listbox": {
|
|
15
|
+
...extend["slotRecipes"]["listbox"],
|
|
16
|
+
staticCss: [...extend["slotRecipes"]["listbox"].staticCss ?? [], { "variant": ["surface"] }]
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
})(definePreset({
|
|
23
|
+
name: "@stealthscale/component-collections",
|
|
24
|
+
theme: { extend: { slotRecipes: {
|
|
25
|
+
dataList: recipe,
|
|
26
|
+
listbox: recipe$1,
|
|
27
|
+
sortable: recipe$2,
|
|
28
|
+
statusMatrix: recipe$3,
|
|
29
|
+
swipeActions: recipe$4,
|
|
30
|
+
table: recipe$5,
|
|
31
|
+
timeline: recipe$6,
|
|
32
|
+
transfer: recipe$7,
|
|
33
|
+
treeView: recipe$8
|
|
34
|
+
} } }
|
|
35
|
+
}));
|
|
36
|
+
export { theme_default$published as default };
|
package/package.json
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stealthscale/component-collections",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.1.2",
|
|
4
|
+
"description": "Renders a set of records: lists, tables, grids, trees, and lists and boards a person reorders by dragging.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"collections",
|
|
7
7
|
"components",
|
|
8
|
+
"drag-and-drop",
|
|
8
9
|
"react",
|
|
10
|
+
"sortable",
|
|
9
11
|
"table"
|
|
10
12
|
],
|
|
11
|
-
"homepage": "https://github.com/stealth-scale/
|
|
12
|
-
"bugs": "https://github.com/stealth-scale/
|
|
13
|
+
"homepage": "https://github.com/stealth-scale/scale/tree/main/components/collections#readme",
|
|
14
|
+
"bugs": "https://github.com/stealth-scale/scale/issues",
|
|
13
15
|
"license": "MIT",
|
|
14
16
|
"repository": {
|
|
15
17
|
"type": "git",
|
|
16
|
-
"url": "git+https://github.com/stealth-scale/
|
|
18
|
+
"url": "git+https://github.com/stealth-scale/scale.git",
|
|
17
19
|
"directory": "components/collections"
|
|
18
20
|
},
|
|
19
21
|
"files": [
|
|
@@ -34,29 +36,51 @@
|
|
|
34
36
|
"publishConfig": {
|
|
35
37
|
"access": "public"
|
|
36
38
|
},
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"@dnd-kit/abstract": "^0.5",
|
|
41
|
+
"@dnd-kit/dom": "^0.5",
|
|
42
|
+
"@dnd-kit/helpers": "^0.5",
|
|
43
|
+
"@dnd-kit/react": "^0.5",
|
|
44
|
+
"@stealthscale/component-actions": "^0.2.2",
|
|
45
|
+
"@zag-js/collection": "1.45.0",
|
|
46
|
+
"@zag-js/focus-visible": "1.45.0",
|
|
47
|
+
"@zag-js/i18n-utils": "1.45.0",
|
|
48
|
+
"@zag-js/listbox": "1.45.0",
|
|
49
|
+
"@zag-js/react": "1.45.0",
|
|
50
|
+
"@zag-js/tree-view": "1.45.0",
|
|
51
|
+
"@zag-js/types": "1.45.0"
|
|
52
|
+
},
|
|
37
53
|
"devDependencies": {
|
|
38
|
-
"@arethetypeswrong/core": "^0.18
|
|
39
|
-
"@
|
|
40
|
-
"@stealthscale/
|
|
41
|
-
"@stealthscale/
|
|
42
|
-
"@stealthscale/
|
|
43
|
-
"@stealthscale/
|
|
54
|
+
"@arethetypeswrong/core": "^0.18",
|
|
55
|
+
"@stealthscale/component-disclosure": "^0.2.3",
|
|
56
|
+
"@stealthscale/component-layout": "^0.2.1",
|
|
57
|
+
"@stealthscale/component-primitives": "^0.3.0",
|
|
58
|
+
"@stealthscale/hooks": "^0.3.0",
|
|
59
|
+
"@stealthscale/theme": "^0.5.0",
|
|
60
|
+
"@stealthscale/vite-config": "^0.8.0",
|
|
61
|
+
"@stealthscale/vite-config-i18n": "^0.2.1",
|
|
62
|
+
"@stealthscale/vite-config-react": "^0.9.1",
|
|
63
|
+
"@stealthscale/vite-config-specimen": "^0.2.1",
|
|
64
|
+
"@stealthscale/vite-config-theme": "^0.3.0",
|
|
44
65
|
"@stealthscale/vite-config-typescript": "^0.3.0",
|
|
45
|
-
"@testing-library/react": "^16.3
|
|
46
|
-
"@types/react": "^19.3
|
|
47
|
-
"@types/react-dom": "^19.3
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"oxc-transform-react": "^0.
|
|
51
|
-
"publint": "^0.3
|
|
52
|
-
"react": "^19.3
|
|
53
|
-
"react-dom": "^19.3
|
|
54
|
-
"typescript": "^7.0
|
|
55
|
-
"vitest": "
|
|
66
|
+
"@testing-library/react": "^16.3",
|
|
67
|
+
"@types/react": "^19.3",
|
|
68
|
+
"@types/react-dom": "^19.3",
|
|
69
|
+
"happy-dom": "^20.14",
|
|
70
|
+
"lucide-react": "^1.52",
|
|
71
|
+
"oxc-transform-react": "^0.153",
|
|
72
|
+
"publint": "^0.3",
|
|
73
|
+
"react": "^19.3",
|
|
74
|
+
"react-dom": "^19.3",
|
|
75
|
+
"typescript": "^7.0",
|
|
76
|
+
"vitest": "5.0.3"
|
|
56
77
|
},
|
|
57
78
|
"peerDependencies": {
|
|
58
|
-
"@stealthscale/
|
|
59
|
-
"
|
|
79
|
+
"@stealthscale/component-primitives": "^0.3.0",
|
|
80
|
+
"@stealthscale/hooks": "^0.3.0",
|
|
81
|
+
"@stealthscale/theme": "^0.5.0",
|
|
82
|
+
"react": "^19.3",
|
|
83
|
+
"react-dom": "^19.3"
|
|
60
84
|
},
|
|
61
85
|
"engines": {
|
|
62
86
|
"node": ">=26.0.0"
|