@greghowe79/the-lib 0.6.2 → 0.6.3
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/components/hero/styles.css.qwik.cjs +1 -1
- package/lib/components/hero/styles.css.qwik.mjs +1 -1
- package/lib/components/onboarding/onboardingsteps.qwik.cjs +25 -0
- package/lib/components/onboarding/onboardingsteps.qwik.mjs +25 -0
- package/lib/components/onboarding/styles.css.qwik.cjs +3 -0
- package/lib/components/onboarding/styles.css.qwik.mjs +4 -0
- package/lib/index.qwik.cjs +2 -0
- package/lib/index.qwik.mjs +3 -1
- package/lib-types/components/onboarding/onboardingsteps.d.ts +12 -0
- package/lib-types/index.d.ts +1 -0
- package/lib-types/stories/onboardingsteps.stories.d.ts +6 -0
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const styles = ".hero {\r\n font-family: 'Roboto Condensed', sans-serif;\r\n background-color: rgb(0, 51, 153);\r\n text-align: center;\r\n padding: 6.25rem 1.25rem;\r\n}\r\n\r\n.hero h1 {\r\n font-size:
|
|
2
|
+
const styles = ".hero {\r\n font-family: 'Roboto Condensed', sans-serif;\r\n background-color: rgb(0, 51, 153);\r\n text-align: center;\r\n padding: 6.25rem 1.25rem;\r\n}\r\n\r\n.hero h1 {\r\n font-size: 4rem;\r\n font-weight: 500;\r\n margin-bottom: 1.25rem;\r\n color: white;\r\n}\r\n\r\n.hero p {\r\n font-size: 2rem;\r\n font-weight: 400;\r\n margin-bottom: 1.875rem;\r\n color: white;\r\n}\r\n";
|
|
3
3
|
module.exports = styles;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const styles = ".hero {\r\n font-family: 'Roboto Condensed', sans-serif;\r\n background-color: rgb(0, 51, 153);\r\n text-align: center;\r\n padding: 6.25rem 1.25rem;\r\n}\r\n\r\n.hero h1 {\r\n font-size:
|
|
1
|
+
const styles = ".hero {\r\n font-family: 'Roboto Condensed', sans-serif;\r\n background-color: rgb(0, 51, 153);\r\n text-align: center;\r\n padding: 6.25rem 1.25rem;\r\n}\r\n\r\n.hero h1 {\r\n font-size: 4rem;\r\n font-weight: 500;\r\n margin-bottom: 1.25rem;\r\n color: white;\r\n}\r\n\r\n.hero p {\r\n font-size: 2rem;\r\n font-weight: 400;\r\n margin-bottom: 1.875rem;\r\n color: white;\r\n}\r\n";
|
|
2
2
|
export {
|
|
3
3
|
styles as default
|
|
4
4
|
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
|
|
4
|
+
const qwik = require("@builder.io/qwik");
|
|
5
|
+
require("@fontsource/roboto-condensed/500.css");
|
|
6
|
+
const styles = require("./styles.css.qwik.cjs");
|
|
7
|
+
const OnboardingSteps = qwik.component$(({ steps }) => {
|
|
8
|
+
qwik.useStylesScoped$(styles);
|
|
9
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
10
|
+
class: "steps-container",
|
|
11
|
+
children: steps.map((step) => /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
12
|
+
class: "step",
|
|
13
|
+
children: [
|
|
14
|
+
step.icon,
|
|
15
|
+
/* @__PURE__ */ jsxRuntime.jsx("h2", {
|
|
16
|
+
children: step.title
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", {
|
|
19
|
+
children: step.description
|
|
20
|
+
})
|
|
21
|
+
]
|
|
22
|
+
}, step.id))
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
exports.OnboardingSteps = OnboardingSteps;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { jsx, jsxs } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
+
import { component$, useStylesScoped$ } from "@builder.io/qwik";
|
|
3
|
+
import "@fontsource/roboto-condensed/500.css";
|
|
4
|
+
import styles from "./styles.css.qwik.mjs";
|
|
5
|
+
const OnboardingSteps = component$(({ steps }) => {
|
|
6
|
+
useStylesScoped$(styles);
|
|
7
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8
|
+
class: "steps-container",
|
|
9
|
+
children: steps.map((step) => /* @__PURE__ */ jsxs("div", {
|
|
10
|
+
class: "step",
|
|
11
|
+
children: [
|
|
12
|
+
step.icon,
|
|
13
|
+
/* @__PURE__ */ jsx("h2", {
|
|
14
|
+
children: step.title
|
|
15
|
+
}),
|
|
16
|
+
/* @__PURE__ */ jsx("p", {
|
|
17
|
+
children: step.description
|
|
18
|
+
})
|
|
19
|
+
]
|
|
20
|
+
}, step.id))
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
export {
|
|
24
|
+
OnboardingSteps
|
|
25
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const styles = ".steps-container {\r\n display: grid;\r\n grid-template-columns: 1fr 1fr 1fr;\r\n padding: 2rem;\r\n color: white;\r\n justify-items: center;\r\n width: 1000px;\r\n font-family: 'Roboto Condensed', sans-serif;\r\n}\r\n\r\n.step {\r\n text-align: center;\r\n max-width: 230px;\r\n margin: 20px;\r\n padding: 20px;\r\n border-radius: 8px;\r\n background-color: #00c9b7;\r\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);\r\n transition:\r\n transform 0.2s ease,\r\n box-shadow 0.2s ease;\r\n}\r\n\r\n.step:hover {\r\n transform: translateY(-5px);\r\n box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);\r\n}\r\n\r\n.step :global(svg) {\r\n width: 200px;\r\n height: 200px;\r\n margin-bottom: 0.75rem;\r\n display: inline-block;\r\n}\r\n\r\n.step h2 {\r\n font-size: 2rem;\r\n margin-bottom: 0.25rem;\r\n font-weight: 500;\r\n}\r\n\r\n.step p {\r\n font-size: 1rem;\r\n}\r\n";
|
|
3
|
+
module.exports = styles;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
const styles = ".steps-container {\r\n display: grid;\r\n grid-template-columns: 1fr 1fr 1fr;\r\n padding: 2rem;\r\n color: white;\r\n justify-items: center;\r\n width: 1000px;\r\n font-family: 'Roboto Condensed', sans-serif;\r\n}\r\n\r\n.step {\r\n text-align: center;\r\n max-width: 230px;\r\n margin: 20px;\r\n padding: 20px;\r\n border-radius: 8px;\r\n background-color: #00c9b7;\r\n box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);\r\n transition:\r\n transform 0.2s ease,\r\n box-shadow 0.2s ease;\r\n}\r\n\r\n.step:hover {\r\n transform: translateY(-5px);\r\n box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);\r\n}\r\n\r\n.step :global(svg) {\r\n width: 200px;\r\n height: 200px;\r\n margin-bottom: 0.75rem;\r\n display: inline-block;\r\n}\r\n\r\n.step h2 {\r\n font-size: 2rem;\r\n margin-bottom: 0.25rem;\r\n font-weight: 500;\r\n}\r\n\r\n.step p {\r\n font-size: 1rem;\r\n}\r\n";
|
|
2
|
+
export {
|
|
3
|
+
styles as default
|
|
4
|
+
};
|
package/lib/index.qwik.cjs
CHANGED
|
@@ -8,6 +8,7 @@ const modal = require("./components/modal/modal.qwik.cjs");
|
|
|
8
8
|
const loader = require("./components/loader/loader.qwik.cjs");
|
|
9
9
|
const input = require("./components/input/input.qwik.cjs");
|
|
10
10
|
const hero = require("./components/hero/hero.qwik.cjs");
|
|
11
|
+
const onboardingsteps = require("./components/onboarding/onboardingsteps.qwik.cjs");
|
|
11
12
|
exports.Logo = logo.Logo;
|
|
12
13
|
exports.Counter = counter.Counter;
|
|
13
14
|
exports.Button = button.Button;
|
|
@@ -16,3 +17,4 @@ exports.Modal = modal.Modal;
|
|
|
16
17
|
exports.Loader = loader.Loader;
|
|
17
18
|
exports.Input = input.Input;
|
|
18
19
|
exports.Hero = hero.Hero;
|
|
20
|
+
exports.OnboardingSteps = onboardingsteps.OnboardingSteps;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { Modal } from "./components/modal/modal.qwik.mjs";
|
|
|
6
6
|
import { Loader } from "./components/loader/loader.qwik.mjs";
|
|
7
7
|
import { Input } from "./components/input/input.qwik.mjs";
|
|
8
8
|
import { Hero } from "./components/hero/hero.qwik.mjs";
|
|
9
|
+
import { OnboardingSteps } from "./components/onboarding/onboardingsteps.qwik.mjs";
|
|
9
10
|
export {
|
|
10
11
|
Button,
|
|
11
12
|
Counter,
|
|
@@ -14,5 +15,6 @@ export {
|
|
|
14
15
|
Loader,
|
|
15
16
|
Logo,
|
|
16
17
|
Modal,
|
|
17
|
-
NavigationMenu
|
|
18
|
+
NavigationMenu,
|
|
19
|
+
OnboardingSteps
|
|
18
20
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { JSXOutput } from '@builder.io/qwik';
|
|
2
|
+
import '@fontsource/roboto-condensed/500.css';
|
|
3
|
+
export type StepProp = {
|
|
4
|
+
id: string;
|
|
5
|
+
icon: JSXOutput;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string;
|
|
8
|
+
};
|
|
9
|
+
export interface StepsProps {
|
|
10
|
+
steps: StepProp[];
|
|
11
|
+
}
|
|
12
|
+
export declare const OnboardingSteps: import("@builder.io/qwik").Component<StepsProps>;
|
package/lib-types/index.d.ts
CHANGED
|
@@ -6,3 +6,4 @@ export { Modal } from './components/modal/modal';
|
|
|
6
6
|
export { Loader } from './components/loader/loader';
|
|
7
7
|
export { Input } from './components/input/input';
|
|
8
8
|
export { Hero } from './components/hero/hero';
|
|
9
|
+
export { OnboardingSteps } from './components/onboarding/onboardingsteps';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from 'storybook-framework-qwik';
|
|
2
|
+
import { type StepsProps } from '../components/onboarding/onboardingsteps';
|
|
3
|
+
declare const meta: Meta<StepsProps>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<StepsProps>;
|
|
6
|
+
export declare const StepsCard: Story;
|