@buoy-gg/images 7.0.3 → 7.0.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/lib/commonjs/components/ImagesIcon.js +11 -51
- package/lib/commonjs/components/ImagesIcon.js.map +1 -1
- package/lib/module/components/ImagesIcon.js +7 -50
- package/lib/module/components/ImagesIcon.js.map +1 -1
- package/lib/typescript/components/ImagesIcon.d.ts +6 -10
- package/lib/typescript/components/ImagesIcon.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/ImagesIcon.tsx +6 -63
|
@@ -3,57 +3,17 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/** Tool accent color (photo violet). */
|
|
11
|
-
const IMAGES_ICON_COLOR = exports.IMAGES_ICON_COLOR = "#C084FC";
|
|
12
|
-
/**
|
|
13
|
-
* Dependency-free "picture" glyph: rounded frame with a sun dot and a
|
|
14
|
-
* mountain-ish baseline, rendered from plain views.
|
|
15
|
-
*/
|
|
16
|
-
function ImagesIcon({
|
|
17
|
-
size,
|
|
18
|
-
color = IMAGES_ICON_COLOR
|
|
19
|
-
}) {
|
|
20
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
21
|
-
style: [styles.frame, {
|
|
22
|
-
width: size,
|
|
23
|
-
height: size,
|
|
24
|
-
borderRadius: size * 0.2,
|
|
25
|
-
borderColor: color
|
|
26
|
-
}],
|
|
27
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
28
|
-
style: [styles.sun, {
|
|
29
|
-
width: size * 0.18,
|
|
30
|
-
height: size * 0.18,
|
|
31
|
-
borderRadius: size * 0.09,
|
|
32
|
-
backgroundColor: color,
|
|
33
|
-
top: size * 0.18,
|
|
34
|
-
right: size * 0.2
|
|
35
|
-
}]
|
|
36
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Text, {
|
|
37
|
-
style: {
|
|
38
|
-
color,
|
|
39
|
-
fontSize: size * 0.52,
|
|
40
|
-
fontWeight: "700",
|
|
41
|
-
lineHeight: size * 0.62,
|
|
42
|
-
marginTop: size * 0.28
|
|
43
|
-
},
|
|
44
|
-
children: "▲"
|
|
45
|
-
})]
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
const styles = _reactNative.StyleSheet.create({
|
|
49
|
-
frame: {
|
|
50
|
-
borderWidth: 1.5,
|
|
51
|
-
alignItems: "center",
|
|
52
|
-
justifyContent: "flex-end",
|
|
53
|
-
overflow: "hidden"
|
|
54
|
-
},
|
|
55
|
-
sun: {
|
|
56
|
-
position: "absolute"
|
|
6
|
+
Object.defineProperty(exports, "IMAGES_ICON_COLOR", {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: function () {
|
|
9
|
+
return _sharedUi.IMAGES_ICON_COLOR;
|
|
57
10
|
}
|
|
58
11
|
});
|
|
12
|
+
Object.defineProperty(exports, "ImagesIcon", {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _sharedUi.ImagesIcon;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
var _sharedUi = require("@buoy-gg/shared-ui");
|
|
59
19
|
//# sourceMappingURL=ImagesIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["_sharedUi","require"],"sourceRoot":"../../../src","sources":["components/ImagesIcon.tsx"],"mappings":";;;;;;;;;;;;;;;;;AAQA,IAAAA,SAAA,GAAAC,OAAA","ignoreList":[]}
|
|
@@ -1,55 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
import { View, Text, StyleSheet } from "react-native";
|
|
4
|
-
|
|
5
|
-
/** Tool accent color (photo violet). */
|
|
6
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
7
|
-
export const IMAGES_ICON_COLOR = "#C084FC";
|
|
8
3
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
4
|
+
* ImagesIcon — re-exported from the Buoy Icon Format.
|
|
5
|
+
*
|
|
6
|
+
* The artwork lives in shared/icons/images.json and is generated into
|
|
7
|
+
* @buoy-gg/floating-tools-core, so React Native, the desktop dashboard and
|
|
8
|
+
* Flutter all render the same drawing. Edit the JSON, then `pnpm icons`.
|
|
11
9
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
color = IMAGES_ICON_COLOR
|
|
15
|
-
}) {
|
|
16
|
-
return /*#__PURE__*/_jsxs(View, {
|
|
17
|
-
style: [styles.frame, {
|
|
18
|
-
width: size,
|
|
19
|
-
height: size,
|
|
20
|
-
borderRadius: size * 0.2,
|
|
21
|
-
borderColor: color
|
|
22
|
-
}],
|
|
23
|
-
children: [/*#__PURE__*/_jsx(View, {
|
|
24
|
-
style: [styles.sun, {
|
|
25
|
-
width: size * 0.18,
|
|
26
|
-
height: size * 0.18,
|
|
27
|
-
borderRadius: size * 0.09,
|
|
28
|
-
backgroundColor: color,
|
|
29
|
-
top: size * 0.18,
|
|
30
|
-
right: size * 0.2
|
|
31
|
-
}]
|
|
32
|
-
}), /*#__PURE__*/_jsx(Text, {
|
|
33
|
-
style: {
|
|
34
|
-
color,
|
|
35
|
-
fontSize: size * 0.52,
|
|
36
|
-
fontWeight: "700",
|
|
37
|
-
lineHeight: size * 0.62,
|
|
38
|
-
marginTop: size * 0.28
|
|
39
|
-
},
|
|
40
|
-
children: "▲"
|
|
41
|
-
})]
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
const styles = StyleSheet.create({
|
|
45
|
-
frame: {
|
|
46
|
-
borderWidth: 1.5,
|
|
47
|
-
alignItems: "center",
|
|
48
|
-
justifyContent: "flex-end",
|
|
49
|
-
overflow: "hidden"
|
|
50
|
-
},
|
|
51
|
-
sun: {
|
|
52
|
-
position: "absolute"
|
|
53
|
-
}
|
|
54
|
-
});
|
|
10
|
+
|
|
11
|
+
export { ImagesIcon, IMAGES_ICON_COLOR } from "@buoy-gg/shared-ui";
|
|
55
12
|
//# sourceMappingURL=ImagesIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["
|
|
1
|
+
{"version":3,"names":["ImagesIcon","IMAGES_ICON_COLOR"],"sourceRoot":"../../../src","sources":["components/ImagesIcon.tsx"],"mappings":";;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,SAASA,UAAU,EAAEC,iBAAiB,QAAQ,oBAAoB","ignoreList":[]}
|
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
/** Tool accent color (photo violet). */
|
|
2
|
-
export declare const IMAGES_ICON_COLOR = "#C084FC";
|
|
3
|
-
interface ImagesIconProps {
|
|
4
|
-
size: number;
|
|
5
|
-
color?: string;
|
|
6
|
-
}
|
|
7
1
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
2
|
+
* ImagesIcon — re-exported from the Buoy Icon Format.
|
|
3
|
+
*
|
|
4
|
+
* The artwork lives in shared/icons/images.json and is generated into
|
|
5
|
+
* @buoy-gg/floating-tools-core, so React Native, the desktop dashboard and
|
|
6
|
+
* Flutter all render the same drawing. Edit the JSON, then `pnpm icons`.
|
|
10
7
|
*/
|
|
11
|
-
export
|
|
12
|
-
export {};
|
|
8
|
+
export { ImagesIcon, IMAGES_ICON_COLOR } from "@buoy-gg/shared-ui";
|
|
13
9
|
//# sourceMappingURL=ImagesIcon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ImagesIcon.d.ts","sourceRoot":"","sources":["../../../src/components/ImagesIcon.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ImagesIcon.d.ts","sourceRoot":"","sources":["../../../src/components/ImagesIcon.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buoy-gg/images",
|
|
3
|
-
"version": "7.0.
|
|
3
|
+
"version": "7.0.5",
|
|
4
4
|
"description": "Debug every image in your React Native app — live load registry, cache verdicts (memory/disk/network), timings, oversize + wasted-memory checks, and failure diagnosis for RN <Image> and expo-image. Part of Buoy devtools.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"**/index.*"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@buoy-gg/shared-ui": "7.0.
|
|
21
|
+
"@buoy-gg/shared-ui": "7.0.5"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"expo-image": "*",
|
|
@@ -1,66 +1,9 @@
|
|
|
1
|
-
import { View, Text, StyleSheet } from "react-native";
|
|
2
|
-
|
|
3
|
-
/** Tool accent color (photo violet). */
|
|
4
|
-
export const IMAGES_ICON_COLOR = "#C084FC";
|
|
5
|
-
|
|
6
|
-
interface ImagesIconProps {
|
|
7
|
-
size: number;
|
|
8
|
-
color?: string;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
1
|
/**
|
|
12
|
-
*
|
|
13
|
-
*
|
|
2
|
+
* ImagesIcon — re-exported from the Buoy Icon Format.
|
|
3
|
+
*
|
|
4
|
+
* The artwork lives in shared/icons/images.json and is generated into
|
|
5
|
+
* @buoy-gg/floating-tools-core, so React Native, the desktop dashboard and
|
|
6
|
+
* Flutter all render the same drawing. Edit the JSON, then `pnpm icons`.
|
|
14
7
|
*/
|
|
15
|
-
export function ImagesIcon({ size, color = IMAGES_ICON_COLOR }: ImagesIconProps) {
|
|
16
|
-
return (
|
|
17
|
-
<View
|
|
18
|
-
style={[
|
|
19
|
-
styles.frame,
|
|
20
|
-
{
|
|
21
|
-
width: size,
|
|
22
|
-
height: size,
|
|
23
|
-
borderRadius: size * 0.2,
|
|
24
|
-
borderColor: color,
|
|
25
|
-
},
|
|
26
|
-
]}
|
|
27
|
-
>
|
|
28
|
-
<View
|
|
29
|
-
style={[
|
|
30
|
-
styles.sun,
|
|
31
|
-
{
|
|
32
|
-
width: size * 0.18,
|
|
33
|
-
height: size * 0.18,
|
|
34
|
-
borderRadius: size * 0.09,
|
|
35
|
-
backgroundColor: color,
|
|
36
|
-
top: size * 0.18,
|
|
37
|
-
right: size * 0.2,
|
|
38
|
-
},
|
|
39
|
-
]}
|
|
40
|
-
/>
|
|
41
|
-
<Text
|
|
42
|
-
style={{
|
|
43
|
-
color,
|
|
44
|
-
fontSize: size * 0.52,
|
|
45
|
-
fontWeight: "700",
|
|
46
|
-
lineHeight: size * 0.62,
|
|
47
|
-
marginTop: size * 0.28,
|
|
48
|
-
}}
|
|
49
|
-
>
|
|
50
|
-
{"▲"}
|
|
51
|
-
</Text>
|
|
52
|
-
</View>
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
8
|
|
|
56
|
-
|
|
57
|
-
frame: {
|
|
58
|
-
borderWidth: 1.5,
|
|
59
|
-
alignItems: "center",
|
|
60
|
-
justifyContent: "flex-end",
|
|
61
|
-
overflow: "hidden",
|
|
62
|
-
},
|
|
63
|
-
sun: {
|
|
64
|
-
position: "absolute",
|
|
65
|
-
},
|
|
66
|
-
});
|
|
9
|
+
export { ImagesIcon, IMAGES_ICON_COLOR } from "@buoy-gg/shared-ui";
|