@elmethis/qwik 0.0.33 → 0.0.34
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 +12 -15
- package/lib/index.qwik.mjs +12 -15
- package/lib/style.css +18 -58
- package/package.json +10 -10
package/lib/index.qwik.cjs
CHANGED
|
@@ -739,7 +739,8 @@ const ElmInlineText = qwik.component$((props) => {
|
|
|
739
739
|
rel: "noopener noreferrer",
|
|
740
740
|
children: [
|
|
741
741
|
props.favicon && /* @__PURE__ */ jsxRuntime.jsx(ElmInlineIcon, {
|
|
742
|
-
src: props.favicon
|
|
742
|
+
src: props.favicon,
|
|
743
|
+
alt: `Favicon of ${props.text}`
|
|
743
744
|
}),
|
|
744
745
|
wrappedVnode
|
|
745
746
|
]
|
|
@@ -2200,30 +2201,24 @@ const ElmSquareLoadingIcon = qwik.component$(({ size = "3rem", dimensions = 4 })
|
|
|
2200
2201
|
}, `${rowIndex}-${columnIndex}`)))
|
|
2201
2202
|
});
|
|
2202
2203
|
});
|
|
2203
|
-
const image$1 = "
|
|
2204
|
-
const fallback = "
|
|
2204
|
+
const image$1 = "_image_sf1wj_12";
|
|
2205
|
+
const fallback = "_fallback_sf1wj_34";
|
|
2205
2206
|
const styles$h = {
|
|
2206
|
-
"block-image": "_block-
|
|
2207
|
-
"image-container": "_image-
|
|
2207
|
+
"block-image": "_block-image_sf1wj_1",
|
|
2208
|
+
"image-container": "_image-container_sf1wj_12",
|
|
2208
2209
|
image: image$1,
|
|
2209
2210
|
fallback,
|
|
2210
|
-
"caption-box": "_caption-
|
|
2211
|
-
"modal-container": "_modal-
|
|
2211
|
+
"caption-box": "_caption-box_sf1wj_44",
|
|
2212
|
+
"modal-container": "_modal-container_sf1wj_56"
|
|
2212
2213
|
};
|
|
2213
2214
|
const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, height, enableModal = true, srcset, sizes, style }) => {
|
|
2214
2215
|
const isLoading = qwik.useSignal(true);
|
|
2215
2216
|
const isShowModal = qwik.useSignal(false);
|
|
2216
|
-
const modalRef = qwik.useSignal();
|
|
2217
2217
|
const handleImageLoad = qwik.$(() => {
|
|
2218
2218
|
isLoading.value = false;
|
|
2219
2219
|
});
|
|
2220
2220
|
const handleToggleModal = qwik.$(() => {
|
|
2221
2221
|
if (enableModal && !isLoading.value) {
|
|
2222
|
-
if (isShowModal.value) {
|
|
2223
|
-
modalRef.value?.hidePopover();
|
|
2224
|
-
} else {
|
|
2225
|
-
modalRef.value?.showPopover();
|
|
2226
|
-
}
|
|
2227
2222
|
isShowModal.value = !isShowModal.value;
|
|
2228
2223
|
}
|
|
2229
2224
|
});
|
|
@@ -2243,10 +2238,12 @@ const ElmBlockImage = qwik.component$(({ src, alt, caption: caption2, width, hei
|
|
|
2243
2238
|
}
|
|
2244
2239
|
});
|
|
2245
2240
|
const Modal = /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
2246
|
-
ref: modalRef,
|
|
2247
2241
|
class: styles$h["modal-container"],
|
|
2242
|
+
style: {
|
|
2243
|
+
pointerEvents: isShowModal.value ? "auto" : "none",
|
|
2244
|
+
"--opacity": isShowModal.value ? 1 : 0
|
|
2245
|
+
},
|
|
2248
2246
|
onClick$: handleToggleModal,
|
|
2249
|
-
popover: "manual",
|
|
2250
2247
|
children: ImageComponent
|
|
2251
2248
|
});
|
|
2252
2249
|
return /* @__PURE__ */ jsxRuntime.jsxs("figure", {
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -737,7 +737,8 @@ const ElmInlineText = component$((props) => {
|
|
|
737
737
|
rel: "noopener noreferrer",
|
|
738
738
|
children: [
|
|
739
739
|
props.favicon && /* @__PURE__ */ jsx(ElmInlineIcon, {
|
|
740
|
-
src: props.favicon
|
|
740
|
+
src: props.favicon,
|
|
741
|
+
alt: `Favicon of ${props.text}`
|
|
741
742
|
}),
|
|
742
743
|
wrappedVnode
|
|
743
744
|
]
|
|
@@ -2198,30 +2199,24 @@ const ElmSquareLoadingIcon = component$(({ size = "3rem", dimensions = 4 }) => {
|
|
|
2198
2199
|
}, `${rowIndex}-${columnIndex}`)))
|
|
2199
2200
|
});
|
|
2200
2201
|
});
|
|
2201
|
-
const image$1 = "
|
|
2202
|
-
const fallback = "
|
|
2202
|
+
const image$1 = "_image_sf1wj_12";
|
|
2203
|
+
const fallback = "_fallback_sf1wj_34";
|
|
2203
2204
|
const styles$h = {
|
|
2204
|
-
"block-image": "_block-
|
|
2205
|
-
"image-container": "_image-
|
|
2205
|
+
"block-image": "_block-image_sf1wj_1",
|
|
2206
|
+
"image-container": "_image-container_sf1wj_12",
|
|
2206
2207
|
image: image$1,
|
|
2207
2208
|
fallback,
|
|
2208
|
-
"caption-box": "_caption-
|
|
2209
|
-
"modal-container": "_modal-
|
|
2209
|
+
"caption-box": "_caption-box_sf1wj_44",
|
|
2210
|
+
"modal-container": "_modal-container_sf1wj_56"
|
|
2210
2211
|
};
|
|
2211
2212
|
const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height, enableModal = true, srcset, sizes, style }) => {
|
|
2212
2213
|
const isLoading = useSignal(true);
|
|
2213
2214
|
const isShowModal = useSignal(false);
|
|
2214
|
-
const modalRef = useSignal();
|
|
2215
2215
|
const handleImageLoad = $(() => {
|
|
2216
2216
|
isLoading.value = false;
|
|
2217
2217
|
});
|
|
2218
2218
|
const handleToggleModal = $(() => {
|
|
2219
2219
|
if (enableModal && !isLoading.value) {
|
|
2220
|
-
if (isShowModal.value) {
|
|
2221
|
-
modalRef.value?.hidePopover();
|
|
2222
|
-
} else {
|
|
2223
|
-
modalRef.value?.showPopover();
|
|
2224
|
-
}
|
|
2225
2220
|
isShowModal.value = !isShowModal.value;
|
|
2226
2221
|
}
|
|
2227
2222
|
});
|
|
@@ -2241,10 +2236,12 @@ const ElmBlockImage = component$(({ src, alt, caption: caption2, width, height,
|
|
|
2241
2236
|
}
|
|
2242
2237
|
});
|
|
2243
2238
|
const Modal = /* @__PURE__ */ jsx("div", {
|
|
2244
|
-
ref: modalRef,
|
|
2245
2239
|
class: styles$h["modal-container"],
|
|
2240
|
+
style: {
|
|
2241
|
+
pointerEvents: isShowModal.value ? "auto" : "none",
|
|
2242
|
+
"--opacity": isShowModal.value ? 1 : 0
|
|
2243
|
+
},
|
|
2246
2244
|
onClick$: handleToggleModal,
|
|
2247
|
-
popover: "manual",
|
|
2248
2245
|
children: ImageComponent
|
|
2249
2246
|
});
|
|
2250
2247
|
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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/qwik",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.34",
|
|
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
|
},
|