@elmethis/qwik 0.0.10 → 0.0.11
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
CHANGED
|
@@ -1290,7 +1290,7 @@ const ElmFragmentIdentifier = qwik.component$(({ id }) => {
|
|
|
1290
1290
|
children: "#"
|
|
1291
1291
|
});
|
|
1292
1292
|
});
|
|
1293
|
-
const styles$6 = '.heading-common {\n margin: 0;\n position: relative;\n font-size: var(--font-size);\n line-height: var(--font-size);\n opacity: var(--opacity);\n transition: color 400ms, opacity 800ms;\n}\n\n.h1::after {\n position: absolute;\n content: "";\n bottom: -4px;\n left: 0;\n width: 100%;\n height: 0.25px;\n background-color: rgba(0, 0, 0, 0.5);\n transition: transform 800ms;\n transform: scaleX(var(--scale));\n}\n[data-theme=dark] .h1::after {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.h1::before {\n position: absolute;\n content: "";\n bottom: -6px;\n left: 45%;\n width: 10%;\n height: 2px;\n background-color: rgba(0, 0, 0, 0.6);\n transition: transform 800ms;\n transform: scaleY(var(--scale));\n transform-origin: top;\n}\n[data-theme=dark] .h1::before {\n background-color: rgba(255, 255, 255, 0.6);\n}\n\n.h2 {\n
|
|
1293
|
+
const styles$6 = '.heading-common {\n margin: 0;\n position: relative;\n font-size: var(--font-size);\n line-height: var(--font-size);\n opacity: var(--opacity);\n transition: color 400ms, opacity 800ms;\n}\n\n.h1::after {\n position: absolute;\n content: "";\n bottom: -4px;\n left: 0;\n width: 100%;\n height: 0.25px;\n background-color: rgba(0, 0, 0, 0.5);\n transition: transform 800ms;\n transform: scaleX(var(--scale));\n}\n[data-theme=dark] .h1::after {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.h1::before {\n position: absolute;\n content: "";\n bottom: -6px;\n left: 45%;\n width: 10%;\n height: 2px;\n background-color: rgba(0, 0, 0, 0.6);\n transition: transform 800ms;\n transform: scaleY(var(--scale));\n transform-origin: top;\n}\n[data-theme=dark] .h1::before {\n background-color: rgba(255, 255, 255, 0.6);\n}\n\n.h2::after {\n position: absolute;\n content: "";\n right: 2px;\n bottom: -4px;\n width: 6px;\n height: 8px;\n opacity: 0.8;\n transform: skewX(-25deg);\n background-color: rgba(0, 0, 0, 0.8);\n}\n[data-theme=dark] .h2::after {\n background-color: rgba(255, 255, 255, 0.8);\n}\n.h2::before {\n position: absolute;\n content: "";\n right: 10px;\n bottom: -4px;\n width: 6px;\n height: 8px;\n opacity: 0.8;\n transform: skewX(-25deg);\n background-color: rgba(0, 0, 0, 0.8);\n}\n[data-theme=dark] .h2::before {\n background-color: rgba(255, 255, 255, 0.8);\n}\n.h2__underline {\n overflow: hidden;\n position: absolute;\n content: "";\n bottom: -6px;\n left: 0;\n width: 100%;\n height: 0.25px;\n background-color: rgba(0, 0, 0, 0.5);\n transition: transform 800ms;\n transform: scaleX(var(--scale));\n transform-origin: left;\n}\n[data-theme=dark] .h2__underline {\n background-color: rgba(255, 255, 255, 0.5);\n}\n\n.h3 {\n box-sizing: border-box;\n padding-left: 0.75rem;\n}\n.h3::after {\n position: absolute;\n content: "";\n width: 3px;\n height: 12px;\n top: calc(50% - 8px);\n left: 0;\n background-color: rgba(0, 0, 0, 0.5);\n}\n[data-theme=dark] .h3::after {\n background-color: rgba(255, 255, 255, 0.5);\n}\n\n.h4 {\n position: relative;\n}\n\n.h5 {\n position: relative;\n}\n\n.h6 {\n position: relative;\n}';
|
|
1294
1294
|
const SIZE_MAP = Object.freeze({
|
|
1295
1295
|
1: 1.5,
|
|
1296
1296
|
2: 1.4,
|
|
@@ -1313,7 +1313,9 @@ const ElmHeading = qwik.component$(({ level, text, id }) => {
|
|
|
1313
1313
|
"--font-size": `${SIZE_MAP[level]}em`
|
|
1314
1314
|
},
|
|
1315
1315
|
children: [
|
|
1316
|
-
|
|
1316
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1317
|
+
children: text
|
|
1318
|
+
}),
|
|
1317
1319
|
/* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {}),
|
|
1318
1320
|
id && /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1319
1321
|
style: {
|
|
@@ -1322,6 +1324,10 @@ const ElmHeading = qwik.component$(({ level, text, id }) => {
|
|
|
1322
1324
|
children: /* @__PURE__ */ jsxRuntime.jsx(ElmFragmentIdentifier, {
|
|
1323
1325
|
id
|
|
1324
1326
|
})
|
|
1327
|
+
}),
|
|
1328
|
+
level === 2 && /* @__PURE__ */ jsxRuntime.jsx("span", {
|
|
1329
|
+
class: "h2__underline",
|
|
1330
|
+
"aria-hidden": "true"
|
|
1325
1331
|
})
|
|
1326
1332
|
]
|
|
1327
1333
|
});
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1288,7 +1288,7 @@ const ElmFragmentIdentifier = component$(({ id }) => {
|
|
|
1288
1288
|
children: "#"
|
|
1289
1289
|
});
|
|
1290
1290
|
});
|
|
1291
|
-
const styles$6 = '.heading-common {\n margin: 0;\n position: relative;\n font-size: var(--font-size);\n line-height: var(--font-size);\n opacity: var(--opacity);\n transition: color 400ms, opacity 800ms;\n}\n\n.h1::after {\n position: absolute;\n content: "";\n bottom: -4px;\n left: 0;\n width: 100%;\n height: 0.25px;\n background-color: rgba(0, 0, 0, 0.5);\n transition: transform 800ms;\n transform: scaleX(var(--scale));\n}\n[data-theme=dark] .h1::after {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.h1::before {\n position: absolute;\n content: "";\n bottom: -6px;\n left: 45%;\n width: 10%;\n height: 2px;\n background-color: rgba(0, 0, 0, 0.6);\n transition: transform 800ms;\n transform: scaleY(var(--scale));\n transform-origin: top;\n}\n[data-theme=dark] .h1::before {\n background-color: rgba(255, 255, 255, 0.6);\n}\n\n.h2 {\n
|
|
1291
|
+
const styles$6 = '.heading-common {\n margin: 0;\n position: relative;\n font-size: var(--font-size);\n line-height: var(--font-size);\n opacity: var(--opacity);\n transition: color 400ms, opacity 800ms;\n}\n\n.h1::after {\n position: absolute;\n content: "";\n bottom: -4px;\n left: 0;\n width: 100%;\n height: 0.25px;\n background-color: rgba(0, 0, 0, 0.5);\n transition: transform 800ms;\n transform: scaleX(var(--scale));\n}\n[data-theme=dark] .h1::after {\n background-color: rgba(255, 255, 255, 0.5);\n}\n.h1::before {\n position: absolute;\n content: "";\n bottom: -6px;\n left: 45%;\n width: 10%;\n height: 2px;\n background-color: rgba(0, 0, 0, 0.6);\n transition: transform 800ms;\n transform: scaleY(var(--scale));\n transform-origin: top;\n}\n[data-theme=dark] .h1::before {\n background-color: rgba(255, 255, 255, 0.6);\n}\n\n.h2::after {\n position: absolute;\n content: "";\n right: 2px;\n bottom: -4px;\n width: 6px;\n height: 8px;\n opacity: 0.8;\n transform: skewX(-25deg);\n background-color: rgba(0, 0, 0, 0.8);\n}\n[data-theme=dark] .h2::after {\n background-color: rgba(255, 255, 255, 0.8);\n}\n.h2::before {\n position: absolute;\n content: "";\n right: 10px;\n bottom: -4px;\n width: 6px;\n height: 8px;\n opacity: 0.8;\n transform: skewX(-25deg);\n background-color: rgba(0, 0, 0, 0.8);\n}\n[data-theme=dark] .h2::before {\n background-color: rgba(255, 255, 255, 0.8);\n}\n.h2__underline {\n overflow: hidden;\n position: absolute;\n content: "";\n bottom: -6px;\n left: 0;\n width: 100%;\n height: 0.25px;\n background-color: rgba(0, 0, 0, 0.5);\n transition: transform 800ms;\n transform: scaleX(var(--scale));\n transform-origin: left;\n}\n[data-theme=dark] .h2__underline {\n background-color: rgba(255, 255, 255, 0.5);\n}\n\n.h3 {\n box-sizing: border-box;\n padding-left: 0.75rem;\n}\n.h3::after {\n position: absolute;\n content: "";\n width: 3px;\n height: 12px;\n top: calc(50% - 8px);\n left: 0;\n background-color: rgba(0, 0, 0, 0.5);\n}\n[data-theme=dark] .h3::after {\n background-color: rgba(255, 255, 255, 0.5);\n}\n\n.h4 {\n position: relative;\n}\n\n.h5 {\n position: relative;\n}\n\n.h6 {\n position: relative;\n}';
|
|
1292
1292
|
const SIZE_MAP = Object.freeze({
|
|
1293
1293
|
1: 1.5,
|
|
1294
1294
|
2: 1.4,
|
|
@@ -1311,7 +1311,9 @@ const ElmHeading = component$(({ level, text, id }) => {
|
|
|
1311
1311
|
"--font-size": `${SIZE_MAP[level]}em`
|
|
1312
1312
|
},
|
|
1313
1313
|
children: [
|
|
1314
|
-
|
|
1314
|
+
/* @__PURE__ */ jsx("span", {
|
|
1315
|
+
children: text
|
|
1316
|
+
}),
|
|
1315
1317
|
/* @__PURE__ */ jsx(Slot, {}),
|
|
1316
1318
|
id && /* @__PURE__ */ jsx("span", {
|
|
1317
1319
|
style: {
|
|
@@ -1320,6 +1322,10 @@ const ElmHeading = component$(({ level, text, id }) => {
|
|
|
1320
1322
|
children: /* @__PURE__ */ jsx(ElmFragmentIdentifier, {
|
|
1321
1323
|
id
|
|
1322
1324
|
})
|
|
1325
|
+
}),
|
|
1326
|
+
level === 2 && /* @__PURE__ */ jsx("span", {
|
|
1327
|
+
class: "h2__underline",
|
|
1328
|
+
"aria-hidden": "true"
|
|
1323
1329
|
})
|
|
1324
1330
|
]
|
|
1325
1331
|
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type QRLEventHandlerMulti } from "@builder.io/qwik";
|
|
2
|
+
export interface ElmBreadcrumbProps {
|
|
3
|
+
links: Array<{
|
|
4
|
+
/**
|
|
5
|
+
* The text to display.
|
|
6
|
+
*/
|
|
7
|
+
text: string;
|
|
8
|
+
/**
|
|
9
|
+
* The action to perform when the link is clicked.
|
|
10
|
+
*/
|
|
11
|
+
onClick$?: QRLEventHandlerMulti<PointerEvent, HTMLElement>;
|
|
12
|
+
}>;
|
|
13
|
+
}
|
|
14
|
+
export declare const ElmBreadcrumb: import("@builder.io/qwik").Component<ElmBreadcrumbProps>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmBreadcrumb } from "./elm-breadcrumb";
|
|
3
|
+
declare const meta: Meta<typeof ElmBreadcrumb>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const Long: Story;
|