@elmethis/qwik 0.0.37 → 0.0.38
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 +37 -14
- package/lib/index.qwik.mjs +37 -14
- package/lib/style.css +18 -12
- package/lib-types/components/containments/elm-tabs.d.ts +3 -3
- package/package.json +2 -2
package/lib/index.qwik.cjs
CHANGED
|
@@ -651,7 +651,7 @@ const text$2 = "_text_zryur_1";
|
|
|
651
651
|
const textStyles = {
|
|
652
652
|
text: text$2
|
|
653
653
|
};
|
|
654
|
-
const icon$3 = "
|
|
654
|
+
const icon$3 = "_icon_1tbvt_1";
|
|
655
655
|
const styles$x = {
|
|
656
656
|
icon: icon$3
|
|
657
657
|
};
|
|
@@ -871,17 +871,17 @@ const ElmParallax = qwik.component$(({ images }) => {
|
|
|
871
871
|
]
|
|
872
872
|
});
|
|
873
873
|
});
|
|
874
|
-
const tab = "
|
|
875
|
-
const active$2 = "
|
|
874
|
+
const tab = "_tab_hloyu_18";
|
|
875
|
+
const active$2 = "_active_hloyu_40";
|
|
876
876
|
const styles$u = {
|
|
877
|
-
"elm-tabs": "_elm-
|
|
878
|
-
"tab-container": "_tab-
|
|
877
|
+
"elm-tabs": "_elm-tabs_hloyu_1",
|
|
878
|
+
"tab-container": "_tab-container_hloyu_18",
|
|
879
879
|
tab,
|
|
880
880
|
active: active$2,
|
|
881
|
-
"tab-content-container": "_tab-content-
|
|
882
|
-
"tab-content": "_tab-
|
|
881
|
+
"tab-content-container": "_tab-content-container_hloyu_51",
|
|
882
|
+
"tab-content": "_tab-content_hloyu_51"
|
|
883
883
|
};
|
|
884
|
-
const ElmTabs = qwik.component$(({
|
|
884
|
+
const ElmTabs = qwik.component$(({ tabLabels, tabContents }) => {
|
|
885
885
|
const selectedTabIndex = qwik.useSignal(0);
|
|
886
886
|
const selectTab = qwik.$((index) => {
|
|
887
887
|
selectedTabIndex.value = index;
|
|
@@ -891,7 +891,7 @@ const ElmTabs = qwik.component$(({ renderTabFunctions$, renderTabContentFunction
|
|
|
891
891
|
children: [
|
|
892
892
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
893
893
|
class: styles$u["tab-container"],
|
|
894
|
-
children:
|
|
894
|
+
children: tabLabels.map((tabLabel, index) => /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
895
895
|
class: [
|
|
896
896
|
styles$u["tab"],
|
|
897
897
|
{
|
|
@@ -899,15 +899,20 @@ const ElmTabs = qwik.component$(({ renderTabFunctions$, renderTabContentFunction
|
|
|
899
899
|
}
|
|
900
900
|
],
|
|
901
901
|
onClick$: () => selectTab(index),
|
|
902
|
-
children:
|
|
902
|
+
children: tabLabel
|
|
903
903
|
}, index))
|
|
904
904
|
}),
|
|
905
905
|
/* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
906
906
|
class: styles$u["tab-content-container"],
|
|
907
|
-
children: /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
908
|
-
class:
|
|
909
|
-
|
|
910
|
-
|
|
907
|
+
children: tabContents.map((content2, index) => /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
908
|
+
class: [
|
|
909
|
+
styles$u["tab-content"],
|
|
910
|
+
{
|
|
911
|
+
[styles$u["active"]]: selectedTabIndex.value === index
|
|
912
|
+
}
|
|
913
|
+
],
|
|
914
|
+
children: content2
|
|
915
|
+
}, index))
|
|
911
916
|
})
|
|
912
917
|
]
|
|
913
918
|
});
|
|
@@ -3063,6 +3068,24 @@ const ElmJarkup = qwik.component$((props) => {
|
|
|
3063
3068
|
expression: component.props.expression,
|
|
3064
3069
|
block: true
|
|
3065
3070
|
}, key);
|
|
3071
|
+
case "Tabs": {
|
|
3072
|
+
const labels = [];
|
|
3073
|
+
const contents = [];
|
|
3074
|
+
for (const tab2 of component.slots.default) {
|
|
3075
|
+
labels.push(tab2.slots.labels);
|
|
3076
|
+
contents.push(tab2.slots.contents);
|
|
3077
|
+
}
|
|
3078
|
+
const renderedLabels = labels.map((label2, index2) => /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
3079
|
+
children: render(label2)
|
|
3080
|
+
}, index2));
|
|
3081
|
+
const renderedContents = contents.map((content2, index2) => /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
3082
|
+
children: render(content2)
|
|
3083
|
+
}, index2));
|
|
3084
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ElmTabs, {
|
|
3085
|
+
tabLabels: renderedLabels,
|
|
3086
|
+
tabContents: renderedContents
|
|
3087
|
+
});
|
|
3088
|
+
}
|
|
3066
3089
|
case "Table":
|
|
3067
3090
|
return /* @__PURE__ */ jsxRuntime.jsxs(ElmTable, {
|
|
3068
3091
|
caption: component.props?.caption,
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -649,7 +649,7 @@ const text$2 = "_text_zryur_1";
|
|
|
649
649
|
const textStyles = {
|
|
650
650
|
text: text$2
|
|
651
651
|
};
|
|
652
|
-
const icon$3 = "
|
|
652
|
+
const icon$3 = "_icon_1tbvt_1";
|
|
653
653
|
const styles$x = {
|
|
654
654
|
icon: icon$3
|
|
655
655
|
};
|
|
@@ -869,17 +869,17 @@ const ElmParallax = component$(({ images }) => {
|
|
|
869
869
|
]
|
|
870
870
|
});
|
|
871
871
|
});
|
|
872
|
-
const tab = "
|
|
873
|
-
const active$2 = "
|
|
872
|
+
const tab = "_tab_hloyu_18";
|
|
873
|
+
const active$2 = "_active_hloyu_40";
|
|
874
874
|
const styles$u = {
|
|
875
|
-
"elm-tabs": "_elm-
|
|
876
|
-
"tab-container": "_tab-
|
|
875
|
+
"elm-tabs": "_elm-tabs_hloyu_1",
|
|
876
|
+
"tab-container": "_tab-container_hloyu_18",
|
|
877
877
|
tab,
|
|
878
878
|
active: active$2,
|
|
879
|
-
"tab-content-container": "_tab-content-
|
|
880
|
-
"tab-content": "_tab-
|
|
879
|
+
"tab-content-container": "_tab-content-container_hloyu_51",
|
|
880
|
+
"tab-content": "_tab-content_hloyu_51"
|
|
881
881
|
};
|
|
882
|
-
const ElmTabs = component$(({
|
|
882
|
+
const ElmTabs = component$(({ tabLabels, tabContents }) => {
|
|
883
883
|
const selectedTabIndex = useSignal(0);
|
|
884
884
|
const selectTab = $((index) => {
|
|
885
885
|
selectedTabIndex.value = index;
|
|
@@ -889,7 +889,7 @@ const ElmTabs = component$(({ renderTabFunctions$, renderTabContentFunctions$ })
|
|
|
889
889
|
children: [
|
|
890
890
|
/* @__PURE__ */ jsx("div", {
|
|
891
891
|
class: styles$u["tab-container"],
|
|
892
|
-
children:
|
|
892
|
+
children: tabLabels.map((tabLabel, index) => /* @__PURE__ */ jsx("div", {
|
|
893
893
|
class: [
|
|
894
894
|
styles$u["tab"],
|
|
895
895
|
{
|
|
@@ -897,15 +897,20 @@ const ElmTabs = component$(({ renderTabFunctions$, renderTabContentFunctions$ })
|
|
|
897
897
|
}
|
|
898
898
|
],
|
|
899
899
|
onClick$: () => selectTab(index),
|
|
900
|
-
children:
|
|
900
|
+
children: tabLabel
|
|
901
901
|
}, index))
|
|
902
902
|
}),
|
|
903
903
|
/* @__PURE__ */ jsx("div", {
|
|
904
904
|
class: styles$u["tab-content-container"],
|
|
905
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
906
|
-
class:
|
|
907
|
-
|
|
908
|
-
|
|
905
|
+
children: tabContents.map((content2, index) => /* @__PURE__ */ jsx("div", {
|
|
906
|
+
class: [
|
|
907
|
+
styles$u["tab-content"],
|
|
908
|
+
{
|
|
909
|
+
[styles$u["active"]]: selectedTabIndex.value === index
|
|
910
|
+
}
|
|
911
|
+
],
|
|
912
|
+
children: content2
|
|
913
|
+
}, index))
|
|
909
914
|
})
|
|
910
915
|
]
|
|
911
916
|
});
|
|
@@ -3061,6 +3066,24 @@ const ElmJarkup = component$((props) => {
|
|
|
3061
3066
|
expression: component.props.expression,
|
|
3062
3067
|
block: true
|
|
3063
3068
|
}, key);
|
|
3069
|
+
case "Tabs": {
|
|
3070
|
+
const labels = [];
|
|
3071
|
+
const contents = [];
|
|
3072
|
+
for (const tab2 of component.slots.default) {
|
|
3073
|
+
labels.push(tab2.slots.labels);
|
|
3074
|
+
contents.push(tab2.slots.contents);
|
|
3075
|
+
}
|
|
3076
|
+
const renderedLabels = labels.map((label2, index2) => /* @__PURE__ */ jsx("span", {
|
|
3077
|
+
children: render(label2)
|
|
3078
|
+
}, index2));
|
|
3079
|
+
const renderedContents = contents.map((content2, index2) => /* @__PURE__ */ jsx("div", {
|
|
3080
|
+
children: render(content2)
|
|
3081
|
+
}, index2));
|
|
3082
|
+
return /* @__PURE__ */ jsx(ElmTabs, {
|
|
3083
|
+
tabLabels: renderedLabels,
|
|
3084
|
+
tabContents: renderedContents
|
|
3085
|
+
});
|
|
3086
|
+
}
|
|
3064
3087
|
case "Table":
|
|
3065
3088
|
return /* @__PURE__ */ jsxs(ElmTable, {
|
|
3066
3089
|
caption: component.props?.caption,
|
package/lib/style.css
CHANGED
|
@@ -184,21 +184,22 @@
|
|
|
184
184
|
[data-theme=dark] ._text_zryur_1::selection {
|
|
185
185
|
color: #3e434b;
|
|
186
186
|
background-color: var(--color, #cccfd5);
|
|
187
|
-
}.
|
|
187
|
+
}._icon_1tbvt_1 {
|
|
188
188
|
margin: 0;
|
|
189
189
|
padding: 0;
|
|
190
190
|
display: inline-block;
|
|
191
|
-
vertical-align:
|
|
192
|
-
|
|
191
|
+
vertical-align: top;
|
|
192
|
+
width: 0.95lh;
|
|
193
|
+
height: 0.95lh;
|
|
193
194
|
}
|
|
194
|
-
.
|
|
195
|
+
._icon_1tbvt_1::selection {
|
|
195
196
|
filter: brightness(1000%);
|
|
196
197
|
background-color: var(--color, rgba(0, 0, 0, 0.25));
|
|
197
198
|
}
|
|
198
|
-
[data-theme=dark] .
|
|
199
|
+
[data-theme=dark] ._icon_1tbvt_1 {
|
|
199
200
|
color: var(--color, rgba(255, 255, 255, 0.7));
|
|
200
201
|
}
|
|
201
|
-
[data-theme=dark] .
|
|
202
|
+
[data-theme=dark] ._icon_1tbvt_1::selection {
|
|
202
203
|
color: rgba(0, 0, 0, 0.7);
|
|
203
204
|
background-color: var(--color, rgba(255, 255, 255, 0.25));
|
|
204
205
|
}._code_1sw1e_1 {
|
|
@@ -240,7 +241,7 @@
|
|
|
240
241
|
}
|
|
241
242
|
[data-theme=dark] ._parallax_1kb0k_1 {
|
|
242
243
|
opacity: 0.1;
|
|
243
|
-
}._elm-
|
|
244
|
+
}._elm-tabs_hloyu_1 {
|
|
244
245
|
display: flex;
|
|
245
246
|
flex-direction: column;
|
|
246
247
|
gap: 0;
|
|
@@ -257,13 +258,13 @@
|
|
|
257
258
|
}
|
|
258
259
|
}
|
|
259
260
|
|
|
260
|
-
._tab-
|
|
261
|
+
._tab-container_hloyu_18 {
|
|
261
262
|
display: flex;
|
|
262
263
|
flex-direction: row;
|
|
263
264
|
border-bottom: solid 1px oklch(from gray l c h / 0.3);
|
|
264
265
|
}
|
|
265
266
|
|
|
266
|
-
.
|
|
267
|
+
._tab_hloyu_18 {
|
|
267
268
|
box-sizing: border-box;
|
|
268
269
|
min-width: 6rem;
|
|
269
270
|
padding: 1rem;
|
|
@@ -279,7 +280,7 @@
|
|
|
279
280
|
background-color 200ms,
|
|
280
281
|
border-color 200ms;
|
|
281
282
|
|
|
282
|
-
&.
|
|
283
|
+
&._active_hloyu_40 {
|
|
283
284
|
background-color: oklch(from #7cbac5 l c h / 0.025);
|
|
284
285
|
border-bottom-color: #7cbac5;
|
|
285
286
|
cursor: default;
|
|
@@ -290,18 +291,23 @@
|
|
|
290
291
|
}
|
|
291
292
|
}
|
|
292
293
|
|
|
293
|
-
._tab-content-
|
|
294
|
+
._tab-content-container_hloyu_51 {
|
|
294
295
|
box-sizing: border-box;
|
|
295
296
|
width: 100%;
|
|
296
297
|
padding: 1em;
|
|
297
298
|
}
|
|
298
299
|
|
|
299
|
-
._tab-
|
|
300
|
+
._tab-content_hloyu_51 {
|
|
300
301
|
width: 100%;
|
|
301
302
|
margin: 0;
|
|
302
303
|
transition:
|
|
303
304
|
transform 200ms,
|
|
304
305
|
opacity 200ms;
|
|
306
|
+
display: none;
|
|
307
|
+
|
|
308
|
+
&._active_hloyu_40 {
|
|
309
|
+
display: block;
|
|
310
|
+
}
|
|
305
311
|
|
|
306
312
|
@starting-style {
|
|
307
313
|
transform: translateY(-8px);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { JSXOutput
|
|
1
|
+
import type { JSXOutput } from "@builder.io/qwik";
|
|
2
2
|
export interface ElmTabsProps {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
tabLabels: JSXOutput[];
|
|
4
|
+
tabContents: JSXOutput[];
|
|
5
5
|
}
|
|
6
6
|
export declare const ElmTabs: import("@builder.io/qwik").Component<ElmTabsProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elmethis/qwik",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.38",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"eslint": "10.1.0",
|
|
46
46
|
"eslint-plugin-qwik": "1.19.2",
|
|
47
47
|
"globals": "17.4.0",
|
|
48
|
-
"jarkup-ts": "^0.
|
|
48
|
+
"jarkup-ts": "^0.11.0",
|
|
49
49
|
"np": "^11.0.2",
|
|
50
50
|
"prettier": "3.8.1",
|
|
51
51
|
"sass": "^1.98.0",
|