@elmethis/qwik 0.0.33 → 0.0.35
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/index.qwik.cjs +16 -17
- package/lib/index.qwik.mjs +16 -17
- package/lib/style.css +18 -58
- package/lib-types/components/icon/elm-inline-icon.d.ts +4 -0
- package/package.json +10 -10
package/lib/index.qwik.cjs
CHANGED
|
@@ -655,13 +655,15 @@ const icon$3 = "_icon_19g82_1";
|
|
|
655
655
|
const styles$w = {
|
|
656
656
|
icon: icon$3
|
|
657
657
|
};
|
|
658
|
-
const ElmInlineIcon = qwik.component$(({ src, alt }) => {
|
|
658
|
+
const ElmInlineIcon = qwik.component$(({ src, alt, width, height, size = 16 }) => {
|
|
659
659
|
return /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
660
660
|
class: styles$w.icon,
|
|
661
661
|
children: /* @__PURE__ */ jsxRuntime.jsx("img", {
|
|
662
662
|
src,
|
|
663
663
|
alt,
|
|
664
|
-
class: styles$w.icon
|
|
664
|
+
class: styles$w.icon,
|
|
665
|
+
width: width ?? size,
|
|
666
|
+
height: height ?? size
|
|
665
667
|
})
|
|
666
668
|
});
|
|
667
669
|
});
|
|
@@ -739,7 +741,8 @@ const ElmInlineText = qwik.component$((props) => {
|
|
|
739
741
|
rel: "noopener noreferrer",
|
|
740
742
|
children: [
|
|
741
743
|
props.favicon && /* @__PURE__ */ jsxRuntime.jsx(ElmInlineIcon, {
|
|
742
|
-
src: props.favicon
|
|
744
|
+
src: props.favicon,
|
|
745
|
+
alt: `Favicon of ${props.text}`
|
|
743
746
|
}),
|
|
744
747
|
wrappedVnode
|
|
745
748
|
]
|
|
@@ -2200,30 +2203,24 @@ const ElmSquareLoadingIcon = qwik.component$(({ size = "3rem", dimensions = 4 })
|
|
|
2200
2203
|
}, `${rowIndex}-${columnIndex}`)))
|
|
2201
2204
|
});
|
|
2202
2205
|
});
|
|
2203
|
-
const image$1 = "
|
|
2204
|
-
const fallback = "
|
|
2206
|
+
const image$1 = "_image_sf1wj_12";
|
|
2207
|
+
const fallback = "_fallback_sf1wj_34";
|
|
2205
2208
|
const styles$h = {
|
|
2206
|
-
"block-image": "_block-
|
|
2207
|
-
"image-container": "_image-
|
|
2209
|
+
"block-image": "_block-image_sf1wj_1",
|
|
2210
|
+
"image-container": "_image-container_sf1wj_12",
|
|
2208
2211
|
image: image$1,
|
|
2209
2212
|
fallback,
|
|
2210
|
-
"caption-box": "_caption-
|
|
2211
|
-
"modal-container": "_modal-
|
|
2213
|
+
"caption-box": "_caption-box_sf1wj_44",
|
|
2214
|
+
"modal-container": "_modal-container_sf1wj_56"
|
|
2212
2215
|
};
|
|
2213
2216
|
const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, height, enableModal = true, srcset, sizes, style }) => {
|
|
2214
2217
|
const isLoading = qwik.useSignal(true);
|
|
2215
2218
|
const isShowModal = qwik.useSignal(false);
|
|
2216
|
-
const modalRef = qwik.useSignal();
|
|
2217
2219
|
const handleImageLoad = qwik.$(() => {
|
|
2218
2220
|
isLoading.value = false;
|
|
2219
2221
|
});
|
|
2220
2222
|
const handleToggleModal = qwik.$(() => {
|
|
2221
2223
|
if (enableModal && !isLoading.value) {
|
|
2222
|
-
if (isShowModal.value) {
|
|
2223
|
-
modalRef.value?.hidePopover();
|
|
2224
|
-
} else {
|
|
2225
|
-
modalRef.value?.showPopover();
|
|
2226
|
-
}
|
|
2227
2224
|
isShowModal.value = !isShowModal.value;
|
|
2228
2225
|
}
|
|
2229
2226
|
});
|
|
@@ -2243,10 +2240,12 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
2243
2240
|
}
|
|
2244
2241
|
});
|
|
2245
2242
|
const Modal = /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2246
|
-
ref: modalRef,
|
|
2247
2243
|
class: styles$h["modal-container"],
|
|
2244
|
+
style: {
|
|
2245
|
+
pointerEvents: isShowModal.value ? "auto" : "none",
|
|
2246
|
+
"--opacity": isShowModal.value ? 1 : 0
|
|
2247
|
+
},
|
|
2248
2248
|
onClick$: handleToggleModal,
|
|
2249
|
-
popover: "manual",
|
|
2250
2249
|
children: ImageComponent
|
|
2251
2250
|
});
|
|
2252
2251
|
return /* @__PURE__ */ jsxRuntime.jsxs("figure", {
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -653,13 +653,15 @@ const icon$3 = "_icon_19g82_1";
|
|
|
653
653
|
const styles$w = {
|
|
654
654
|
icon: icon$3
|
|
655
655
|
};
|
|
656
|
-
const ElmInlineIcon = component$(({ src, alt }) => {
|
|
656
|
+
const ElmInlineIcon = component$(({ src, alt, width, height, size = 16 }) => {
|
|
657
657
|
return /* @__PURE__ */ jsx("span", {
|
|
658
658
|
class: styles$w.icon,
|
|
659
659
|
children: /* @__PURE__ */ jsx("img", {
|
|
660
660
|
src,
|
|
661
661
|
alt,
|
|
662
|
-
class: styles$w.icon
|
|
662
|
+
class: styles$w.icon,
|
|
663
|
+
width: width ?? size,
|
|
664
|
+
height: height ?? size
|
|
663
665
|
})
|
|
664
666
|
});
|
|
665
667
|
});
|
|
@@ -737,7 +739,8 @@ const ElmInlineText = component$((props) => {
|
|
|
737
739
|
rel: "noopener noreferrer",
|
|
738
740
|
children: [
|
|
739
741
|
props.favicon && /* @__PURE__ */ jsx(ElmInlineIcon, {
|
|
740
|
-
src: props.favicon
|
|
742
|
+
src: props.favicon,
|
|
743
|
+
alt: `Favicon of ${props.text}`
|
|
741
744
|
}),
|
|
742
745
|
wrappedVnode
|
|
743
746
|
]
|
|
@@ -2198,30 +2201,24 @@ const ElmSquareLoadingIcon = component$(({ size = "3rem", dimensions = 4 }) => {
|
|
|
2198
2201
|
}, `${rowIndex}-${columnIndex}`)))
|
|
2199
2202
|
});
|
|
2200
2203
|
});
|
|
2201
|
-
const image$1 = "
|
|
2202
|
-
const fallback = "
|
|
2204
|
+
const image$1 = "_image_sf1wj_12";
|
|
2205
|
+
const fallback = "_fallback_sf1wj_34";
|
|
2203
2206
|
const styles$h = {
|
|
2204
|
-
"block-image": "_block-
|
|
2205
|
-
"image-container": "_image-
|
|
2207
|
+
"block-image": "_block-image_sf1wj_1",
|
|
2208
|
+
"image-container": "_image-container_sf1wj_12",
|
|
2206
2209
|
image: image$1,
|
|
2207
2210
|
fallback,
|
|
2208
|
-
"caption-box": "_caption-
|
|
2209
|
-
"modal-container": "_modal-
|
|
2211
|
+
"caption-box": "_caption-box_sf1wj_44",
|
|
2212
|
+
"modal-container": "_modal-container_sf1wj_56"
|
|
2210
2213
|
};
|
|
2211
2214
|
const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height, enableModal = true, srcset, sizes, style }) => {
|
|
2212
2215
|
const isLoading = useSignal(true);
|
|
2213
2216
|
const isShowModal = useSignal(false);
|
|
2214
|
-
const modalRef = useSignal();
|
|
2215
2217
|
const handleImageLoad = $(() => {
|
|
2216
2218
|
isLoading.value = false;
|
|
2217
2219
|
});
|
|
2218
2220
|
const handleToggleModal = $(() => {
|
|
2219
2221
|
if (enableModal && !isLoading.value) {
|
|
2220
|
-
if (isShowModal.value) {
|
|
2221
|
-
modalRef.value?.hidePopover();
|
|
2222
|
-
} else {
|
|
2223
|
-
modalRef.value?.showPopover();
|
|
2224
|
-
}
|
|
2225
2222
|
isShowModal.value = !isShowModal.value;
|
|
2226
2223
|
}
|
|
2227
2224
|
});
|
|
@@ -2241,10 +2238,12 @@ const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height,
|
|
|
2241
2238
|
}
|
|
2242
2239
|
});
|
|
2243
2240
|
const Modal = /* @__PURE__ */ jsx("div", {
|
|
2244
|
-
ref: modalRef,
|
|
2245
2241
|
class: styles$h["modal-container"],
|
|
2242
|
+
style: {
|
|
2243
|
+
pointerEvents: isShowModal.value ? "auto" : "none",
|
|
2244
|
+
"--opacity": isShowModal.value ? 1 : 0
|
|
2245
|
+
},
|
|
2246
2246
|
onClick$: handleToggleModal,
|
|
2247
|
-
popover: "manual",
|
|
2248
2247
|
children: ImageComponent
|
|
2249
2248
|
});
|
|
2250
2249
|
return /* @__PURE__ */ jsxs("figure", {
|
package/lib/style.css
CHANGED
|
@@ -995,7 +995,7 @@
|
|
|
995
995
|
}
|
|
996
996
|
[data-theme=dark] ._square_13xd3_24 {
|
|
997
997
|
background-color: #b0b5be;
|
|
998
|
-
}._block-
|
|
998
|
+
}._block-image_sf1wj_1 {
|
|
999
999
|
margin-block: var(--margin-block, 0);
|
|
1000
1000
|
margin-inline: 0;
|
|
1001
1001
|
display: flex;
|
|
@@ -1006,32 +1006,31 @@
|
|
|
1006
1006
|
width: 100%;
|
|
1007
1007
|
}
|
|
1008
1008
|
|
|
1009
|
-
._image-
|
|
1009
|
+
._image-container_sf1wj_12 {
|
|
1010
1010
|
width: 100%;
|
|
1011
1011
|
height: 100%;
|
|
1012
1012
|
position: relative;
|
|
1013
|
-
|
|
1014
1013
|
display: flex;
|
|
1015
1014
|
justify-content: center;
|
|
1016
1015
|
align-items: center;
|
|
1017
1016
|
}
|
|
1018
1017
|
|
|
1019
|
-
.
|
|
1020
|
-
box-sizing: border-box;
|
|
1018
|
+
._image_sf1wj_12 {
|
|
1021
1019
|
max-width: 100%;
|
|
1022
1020
|
max-height: min(100%, 100vh);
|
|
1023
1021
|
height: auto;
|
|
1024
1022
|
border-radius: 0.25rem;
|
|
1025
|
-
box-shadow: 0 0 0.125rem
|
|
1023
|
+
box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.1);
|
|
1026
1024
|
transition: opacity 400ms;
|
|
1027
1025
|
opacity: var(--opacity, 1);
|
|
1028
1026
|
user-select: none;
|
|
1029
1027
|
aspect-ratio: var(--aspect-ratio, auto);
|
|
1030
|
-
|
|
1031
1028
|
cursor: var(--cursor);
|
|
1032
1029
|
}
|
|
1033
1030
|
|
|
1034
|
-
.
|
|
1031
|
+
._fallback_sf1wj_34 {
|
|
1032
|
+
width: 100%;
|
|
1033
|
+
height: 100%;
|
|
1035
1034
|
inset: 0 0 auto auto;
|
|
1036
1035
|
position: absolute;
|
|
1037
1036
|
transition: opacity 400ms;
|
|
@@ -1039,7 +1038,7 @@
|
|
|
1039
1038
|
pointer-events: none;
|
|
1040
1039
|
}
|
|
1041
1040
|
|
|
1042
|
-
._caption-
|
|
1041
|
+
._caption-box_sf1wj_44 {
|
|
1043
1042
|
box-sizing: border-box;
|
|
1044
1043
|
padding: 0rem 1rem;
|
|
1045
1044
|
display: flex;
|
|
@@ -1051,59 +1050,20 @@
|
|
|
1051
1050
|
transition: opacity 400ms;
|
|
1052
1051
|
}
|
|
1053
1052
|
|
|
1054
|
-
._modal-
|
|
1055
|
-
width:
|
|
1053
|
+
._modal-container_sf1wj_56 {
|
|
1054
|
+
width: 100vw;
|
|
1056
1055
|
height: 100vh;
|
|
1057
1056
|
display: flex;
|
|
1058
1057
|
justify-content: center;
|
|
1059
1058
|
align-items: center;
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
background-color:
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
transition:
|
|
1069
|
-
opacity 200ms,
|
|
1070
|
-
transform 200ms,
|
|
1071
|
-
display 200ms allow-discrete,
|
|
1072
|
-
overlay 200ms allow-discrete;
|
|
1073
|
-
|
|
1074
|
-
&::backdrop {
|
|
1075
|
-
background-color: oklch(from #23262a l c h / 0.8);
|
|
1076
|
-
opacity: 0;
|
|
1077
|
-
|
|
1078
|
-
transition:
|
|
1079
|
-
background-color 200ms,
|
|
1080
|
-
opacity 200ms,
|
|
1081
|
-
display 200ms allow-discrete,
|
|
1082
|
-
overlay 200ms allow-discrete;
|
|
1083
|
-
}
|
|
1084
|
-
|
|
1085
|
-
&:popover-open {
|
|
1086
|
-
opacity: 1;
|
|
1087
|
-
transform: scale(1);
|
|
1088
|
-
pointer-events: auto;
|
|
1089
|
-
|
|
1090
|
-
&::backdrop {
|
|
1091
|
-
opacity: 1;
|
|
1092
|
-
}
|
|
1093
|
-
}
|
|
1094
|
-
}
|
|
1095
|
-
|
|
1096
|
-
@starting-style {
|
|
1097
|
-
._modal-container_slok6_57:popover-open {
|
|
1098
|
-
opacity: 0;
|
|
1099
|
-
transform: scale(0.95);
|
|
1100
|
-
|
|
1101
|
-
&::backdrop {
|
|
1102
|
-
opacity: 0;
|
|
1103
|
-
}
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
._file_eqa3m_1 {
|
|
1059
|
+
position: fixed;
|
|
1060
|
+
inset: 0 0 auto auto;
|
|
1061
|
+
z-index: 100;
|
|
1062
|
+
background-color: rgba(35, 38, 42, 0.8);
|
|
1063
|
+
cursor: zoom-out;
|
|
1064
|
+
opacity: var(--opacity, 1);
|
|
1065
|
+
transition: opacity 200ms;
|
|
1066
|
+
}._file_eqa3m_1 {
|
|
1107
1067
|
margin-block: var(--margin-block, 0);
|
|
1108
1068
|
padding: 1rem;
|
|
1109
1069
|
display: grid;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Numberish } from "@builder.io/qwik";
|
|
1
2
|
export interface ElmInlineIconProps {
|
|
2
3
|
/**
|
|
3
4
|
* The source URL of the icon.
|
|
@@ -7,5 +8,8 @@ export interface ElmInlineIconProps {
|
|
|
7
8
|
* The alt text for the icon.
|
|
8
9
|
*/
|
|
9
10
|
alt?: string;
|
|
11
|
+
width?: Numberish;
|
|
12
|
+
height?: Numberish;
|
|
13
|
+
size?: Numberish;
|
|
10
14
|
}
|
|
11
15
|
export declare const ElmInlineIcon: import("@builder.io/qwik").Component<ElmInlineIconProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/qwik",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.35",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -38,30 +38,30 @@
|
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"@builder.io/qwik": "1.19.0",
|
|
40
40
|
"@eslint/js": "latest",
|
|
41
|
-
"@storybook/addon-docs": "8
|
|
42
|
-
"@storybook/addon-essentials": "8.6.
|
|
41
|
+
"@storybook/addon-docs": "8",
|
|
42
|
+
"@storybook/addon-essentials": "8.6.18",
|
|
43
43
|
"@types/lodash-es": "^4.17.12",
|
|
44
|
-
"@types/node": "
|
|
45
|
-
"eslint": "10.0.
|
|
46
|
-
"eslint-plugin-qwik": "1.19.
|
|
44
|
+
"@types/node": "25.5.0",
|
|
45
|
+
"eslint": "10.0.3",
|
|
46
|
+
"eslint-plugin-qwik": "1.19.2",
|
|
47
47
|
"globals": "17.4.0",
|
|
48
|
-
"jarkup-ts": "^0.
|
|
48
|
+
"jarkup-ts": "^0.9.0",
|
|
49
49
|
"np": "^11.0.2",
|
|
50
50
|
"prettier": "3.6.2",
|
|
51
51
|
"sass": "^1.97.3",
|
|
52
52
|
"storybook": "8",
|
|
53
53
|
"storybook-framework-qwik": "^0.4.0",
|
|
54
54
|
"typescript": "5.4.5",
|
|
55
|
-
"typescript-eslint": "8.
|
|
55
|
+
"typescript-eslint": "8.57.1",
|
|
56
56
|
"undici": "*",
|
|
57
57
|
"vite": "^6.4.1",
|
|
58
58
|
"vite-tsconfig-paths": "^6.1.1"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@mdi/js": "^7.4.47",
|
|
62
|
-
"katex": "^0.16.
|
|
62
|
+
"katex": "^0.16.38",
|
|
63
63
|
"lodash-es": "^4.17.23",
|
|
64
|
-
"marked": "^17.0.
|
|
64
|
+
"marked": "^17.0.4",
|
|
65
65
|
"polished": "^4.3.1",
|
|
66
66
|
"shiki": "^4.0.1"
|
|
67
67
|
},
|