@stealthscale/component-disclosure 0.1.0

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,12 @@
1
+ //#region src/theme.d.ts
2
+ /**
3
+ * Publishes the preset that registers every recipe in this package, for an application's compiler
4
+ * to install.
5
+ *
6
+ * @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.
9
+ */
10
+ declare const _default: import("@stealthscale/theme/authoring").Preset;
11
+ //#endregion
12
+ export { _default as default };
package/dist/theme.js ADDED
@@ -0,0 +1,23 @@
1
+ import { a as recipe, i as recipe$1, n as recipe$3, r as recipe$2, t as recipe$4 } from "./recipe-BdO9ZFWU.js";
2
+ import { definePreset } from "@stealthscale/theme/authoring";
3
+ //#region src/theme.ts
4
+ /**
5
+ * Publishes the preset that registers every recipe in this package, for an application's compiler
6
+ * to install.
7
+ *
8
+ * @remarks
9
+ * The list is written by hand. The package's own specification reports a recipe file the list
10
+ * leaves out, so no generator runs here.
11
+ */
12
+ var theme_default = definePreset({
13
+ name: "@stealthscale/component-disclosure",
14
+ theme: { extend: { slotRecipes: {
15
+ collapsible: recipe,
16
+ menu: recipe$1,
17
+ popover: recipe$2,
18
+ tabs: recipe$3,
19
+ tooltip: recipe$4
20
+ } } }
21
+ });
22
+ //#endregion
23
+ export { theme_default as default };
package/package.json ADDED
@@ -0,0 +1,81 @@
1
+ {
2
+ "name": "@stealthscale/component-disclosure",
3
+ "version": "0.1.0",
4
+ "description": "Draws what is shown and hidden on the reader's say-so.",
5
+ "keywords": [
6
+ "accordion",
7
+ "components",
8
+ "disclosure",
9
+ "react"
10
+ ],
11
+ "homepage": "https://github.com/stealth-scale/config/tree/main/components/disclosure#readme",
12
+ "bugs": "https://github.com/stealth-scale/config/issues",
13
+ "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/stealth-scale/config.git",
17
+ "directory": "components/disclosure"
18
+ },
19
+ "files": [
20
+ "dist",
21
+ "LICENSE",
22
+ "README.md"
23
+ ],
24
+ "type": "module",
25
+ "sideEffects": false,
26
+ "imports": {
27
+ "#*": "./src/*"
28
+ },
29
+ "exports": {
30
+ ".": "./dist/index.js",
31
+ "./theme": "./dist/theme.js",
32
+ "./package.json": "./package.json"
33
+ },
34
+ "publishConfig": {
35
+ "access": "public"
36
+ },
37
+ "dependencies": {
38
+ "@zag-js/collapsible": "1.43.3",
39
+ "@zag-js/menu": "1.43.3",
40
+ "@zag-js/popover": "1.43.3",
41
+ "@zag-js/react": "1.43.3",
42
+ "@zag-js/tabs": "1.43.3",
43
+ "@zag-js/tooltip": "1.43.3",
44
+ "@zag-js/types": "1.43.3"
45
+ },
46
+ "devDependencies": {
47
+ "@arethetypeswrong/core": "^0.18.5",
48
+ "@rolldown/plugin-babel": "^0.2.4",
49
+ "@stealthscale/hooks": "^0.1.0",
50
+ "@stealthscale/theme": "^0.3.0",
51
+ "@stealthscale/vite-config": "^0.6.0",
52
+ "@stealthscale/vite-config-react": "^0.8.0",
53
+ "@stealthscale/vite-config-theme": "^0.1.0",
54
+ "@stealthscale/vite-config-typescript": "^0.3.0",
55
+ "@testing-library/react": "^16.3.0",
56
+ "@types/react": "^19.3.0",
57
+ "@types/react-dom": "^19.3.0",
58
+ "@zag-js/focus-visible": "1.43.3",
59
+ "babel-plugin-react-compiler": "^1.0.0",
60
+ "happy-dom": "^20.14.3",
61
+ "oxc-transform-react": "^0.149.0",
62
+ "publint": "^0.3.24",
63
+ "react": "^19.3.0",
64
+ "react-dom": "^19.3.0",
65
+ "typescript": "^7.0.2",
66
+ "vitest": "4.1.11"
67
+ },
68
+ "peerDependencies": {
69
+ "@stealthscale/hooks": "^0.1.0",
70
+ "@stealthscale/theme": "^0.3.0",
71
+ "react": "^19.3.0"
72
+ },
73
+ "engines": {
74
+ "node": ">=26.0.0"
75
+ },
76
+ "scripts": {
77
+ "build": "vp pack",
78
+ "check": "vp check",
79
+ "test": "vp test"
80
+ }
81
+ }