@stealthscale/component-media 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.
- package/LICENSE +21 -0
- package/README.md +487 -0
- package/dist/cyclonedx/bom.json +1 -0
- package/dist/index.d.ts +700 -0
- package/dist/index.js +1890 -0
- package/dist/recipe-m4bX2c06.js +749 -0
- package/dist/rolldown-runtime-D7D4PA-g.js +13 -0
- package/dist/theme.d.ts +11 -0
- package/dist/theme.js +28 -0
- package/package.json +87 -0
|
@@ -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
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/theme.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Registers every recipe in the package in the preset an application's style compiler installs.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* The list is written by hand. `theme.spec.ts` fails when a recipe file is missing from it, so no
|
|
7
|
+
* generator writes it.
|
|
8
|
+
*/
|
|
9
|
+
declare const _default: import("@stealthscale/theme/authoring").Preset;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { _default as default };
|
package/dist/theme.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { a as recipe$5, c as recipe, n as recipe$6, o as recipe$1, r as recipe$2, s as recipe$4, t as recipe$3 } from "./recipe-m4bX2c06.js";
|
|
2
|
+
import { definePreset } from "@stealthscale/theme/authoring";
|
|
3
|
+
//#region src/theme.ts
|
|
4
|
+
/**
|
|
5
|
+
* Registers every recipe in the package in the preset an application's style compiler installs.
|
|
6
|
+
*
|
|
7
|
+
* @remarks
|
|
8
|
+
* The list is written by hand. `theme.spec.ts` fails when a recipe file is missing from it, so no
|
|
9
|
+
* generator writes it.
|
|
10
|
+
*/
|
|
11
|
+
var theme_default = definePreset({
|
|
12
|
+
name: "@stealthscale/component-media",
|
|
13
|
+
theme: { extend: {
|
|
14
|
+
recipes: {
|
|
15
|
+
audio: recipe,
|
|
16
|
+
avatarBadge: recipe$1,
|
|
17
|
+
iframe: recipe$2,
|
|
18
|
+
video: recipe$3
|
|
19
|
+
},
|
|
20
|
+
slotRecipes: {
|
|
21
|
+
avatar: recipe$4,
|
|
22
|
+
carousel: recipe$5,
|
|
23
|
+
imageCropper: recipe$6
|
|
24
|
+
}
|
|
25
|
+
} }
|
|
26
|
+
});
|
|
27
|
+
//#endregion
|
|
28
|
+
export { theme_default as default };
|
package/package.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@stealthscale/component-media",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Renders pictures of people and things, crops pictures, shows slides and plays clips: an avatar, an image cropper, a carousel and a video.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"avatar",
|
|
7
|
+
"carousel",
|
|
8
|
+
"components",
|
|
9
|
+
"image-cropper",
|
|
10
|
+
"media",
|
|
11
|
+
"react",
|
|
12
|
+
"video"
|
|
13
|
+
],
|
|
14
|
+
"homepage": "https://github.com/stealth-scale/scale/tree/main/components/media#readme",
|
|
15
|
+
"bugs": "https://github.com/stealth-scale/scale/issues",
|
|
16
|
+
"license": "MIT",
|
|
17
|
+
"repository": {
|
|
18
|
+
"type": "git",
|
|
19
|
+
"url": "git+https://github.com/stealth-scale/scale.git",
|
|
20
|
+
"directory": "components/media"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"LICENSE",
|
|
25
|
+
"README.md"
|
|
26
|
+
],
|
|
27
|
+
"type": "module",
|
|
28
|
+
"sideEffects": false,
|
|
29
|
+
"imports": {
|
|
30
|
+
"#*": "./src/*"
|
|
31
|
+
},
|
|
32
|
+
"exports": {
|
|
33
|
+
".": "./dist/index.js",
|
|
34
|
+
"./theme": "./dist/theme.js",
|
|
35
|
+
"./package.json": "./package.json"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@zag-js/avatar": "1.44.0",
|
|
42
|
+
"@zag-js/carousel": "1.44.0",
|
|
43
|
+
"@zag-js/dom-query": "1.44.0",
|
|
44
|
+
"@zag-js/image-cropper": "1.44.0",
|
|
45
|
+
"@zag-js/react": "1.44.0",
|
|
46
|
+
"@zag-js/types": "1.44.0",
|
|
47
|
+
"@zag-js/utils": "1.44.0"
|
|
48
|
+
},
|
|
49
|
+
"devDependencies": {
|
|
50
|
+
"@arethetypeswrong/core": "^0.18",
|
|
51
|
+
"@stealthscale/component-actions": "^0.1.0",
|
|
52
|
+
"@stealthscale/component-layout": "^0.1.0",
|
|
53
|
+
"@stealthscale/hooks": "^0.1.0",
|
|
54
|
+
"@stealthscale/theme": "^0.3.0",
|
|
55
|
+
"@stealthscale/vite-config": "^0.6.0",
|
|
56
|
+
"@stealthscale/vite-config-i18n": "^0.1.0",
|
|
57
|
+
"@stealthscale/vite-config-react": "^0.8.0",
|
|
58
|
+
"@stealthscale/vite-config-specimen": "^0.1.0",
|
|
59
|
+
"@stealthscale/vite-config-theme": "^0.1.0",
|
|
60
|
+
"@stealthscale/vite-config-typescript": "^0.3.0",
|
|
61
|
+
"@testing-library/react": "^16.3",
|
|
62
|
+
"@types/react": "^19.3",
|
|
63
|
+
"@types/react-dom": "^19.3",
|
|
64
|
+
"happy-dom": "^20.14",
|
|
65
|
+
"lucide-react": "^1.48",
|
|
66
|
+
"oxc-transform-react": "^0.151",
|
|
67
|
+
"publint": "^0.3",
|
|
68
|
+
"react": "^19.3",
|
|
69
|
+
"react-dom": "^19.3",
|
|
70
|
+
"typescript": "^7.0",
|
|
71
|
+
"vitest": "5.0.1"
|
|
72
|
+
},
|
|
73
|
+
"peerDependencies": {
|
|
74
|
+
"@stealthscale/component-actions": "^0.1.0",
|
|
75
|
+
"@stealthscale/hooks": "^0.1.0",
|
|
76
|
+
"@stealthscale/theme": "^0.3.0",
|
|
77
|
+
"react": "^19.3"
|
|
78
|
+
},
|
|
79
|
+
"engines": {
|
|
80
|
+
"node": ">=26.0.0"
|
|
81
|
+
},
|
|
82
|
+
"scripts": {
|
|
83
|
+
"build": "vp pack",
|
|
84
|
+
"check": "vp check",
|
|
85
|
+
"test": "vp test"
|
|
86
|
+
}
|
|
87
|
+
}
|