@stealthscale/component-collections 0.0.1 → 0.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.
@@ -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
- * Publishes the preset that registers every recipe in this package, for an application's compiler
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 list is written by hand. The package's own specification reports a recipe file the list
8
- * leaves out, so no generator runs here.
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,26 @@
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
3
  //#region src/theme.ts
3
4
  /**
4
- * Publishes the preset that registers every recipe in this package, for an application's compiler
5
- * to install.
5
+ * Preset that registers this package's slot recipes, for an application's compiler to install.
6
6
  *
7
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.
8
+ * The nine recipes are listed by hand. A spec in this package fails when a recipe file is
9
+ * missing from the list, which catches the one mistake a generator would prevent.
10
10
  */
11
11
  var theme_default = definePreset({
12
12
  name: "@stealthscale/component-collections",
13
- theme: { extend: { recipes: {} } }
13
+ theme: { extend: { slotRecipes: {
14
+ dataList: recipe,
15
+ listbox: recipe$1,
16
+ sortable: recipe$2,
17
+ statusMatrix: recipe$3,
18
+ swipeActions: recipe$4,
19
+ table: recipe$5,
20
+ timeline: recipe$6,
21
+ transfer: recipe$7,
22
+ treeView: recipe$8
23
+ } } }
14
24
  });
15
25
  //#endregion
16
26
  export { theme_default as default };
package/package.json CHANGED
@@ -1,19 +1,21 @@
1
1
  {
2
2
  "name": "@stealthscale/component-collections",
3
- "version": "0.0.1",
4
- "description": "Draws many of a thing: the lists, tables and grids that render a set of records.",
3
+ "version": "0.1.1",
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/config/tree/main/components/collections#readme",
12
- "bugs": "https://github.com/stealth-scale/config/issues",
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/config.git",
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.1",
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.5",
39
- "@rolldown/plugin-babel": "^0.2.4",
40
- "@stealthscale/theme": "^0.3.0",
41
- "@stealthscale/vite-config": "^0.6.0",
42
- "@stealthscale/vite-config-react": "^0.8.0",
43
- "@stealthscale/vite-config-theme": "^0.1.0",
54
+ "@arethetypeswrong/core": "^0.18",
55
+ "@stealthscale/component-disclosure": "^0.2.2",
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.2.1",
44
65
  "@stealthscale/vite-config-typescript": "^0.3.0",
45
- "@testing-library/react": "^16.3.0",
46
- "@types/react": "^19.3.0",
47
- "@types/react-dom": "^19.3.0",
48
- "babel-plugin-react-compiler": "^1.0.0",
49
- "happy-dom": "^20.14.3",
50
- "oxc-transform-react": "^0.149.0",
51
- "publint": "^0.3.24",
52
- "react": "^19.3.0",
53
- "react-dom": "^19.3.0",
54
- "typescript": "^7.0.2",
55
- "vitest": "4.1.11"
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/theme": "^0.3.0",
59
- "react": "^19.3.0"
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"