@greghowe79/the-lib 0.5.7 → 0.5.9

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.
@@ -0,0 +1,21 @@
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
+ const styles = require("./styles.css.qwik.cjs");
6
+ require("@fontsource/roboto-condensed/500.css");
7
+ const Hero = qwik.component$(({ title, content }) => {
8
+ qwik.useStylesScoped$(styles);
9
+ return /* @__PURE__ */ jsxRuntime.jsxs("section", {
10
+ class: "hero",
11
+ children: [
12
+ /* @__PURE__ */ jsxRuntime.jsx("h1", {
13
+ children: title
14
+ }),
15
+ /* @__PURE__ */ jsxRuntime.jsx("p", {
16
+ children: content
17
+ })
18
+ ]
19
+ });
20
+ });
21
+ exports.Hero = Hero;
@@ -0,0 +1,21 @@
1
+ import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
2
+ import { component$, useStylesScoped$ } from "@builder.io/qwik";
3
+ import styles from "./styles.css.qwik.mjs";
4
+ import "@fontsource/roboto-condensed/500.css";
5
+ const Hero = component$(({ title, content }) => {
6
+ useStylesScoped$(styles);
7
+ return /* @__PURE__ */ jsxs("section", {
8
+ class: "hero",
9
+ children: [
10
+ /* @__PURE__ */ jsx("h1", {
11
+ children: title
12
+ }),
13
+ /* @__PURE__ */ jsx("p", {
14
+ children: content
15
+ })
16
+ ]
17
+ });
18
+ });
19
+ export {
20
+ Hero
21
+ };
@@ -0,0 +1,3 @@
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: 3rem;\r\n margin-bottom: 1.25rem;\r\n color: white;\r\n}\r\n\r\n.hero p {\r\n font-size: 1.5rem;\r\n font-weight: 500;\r\n margin-bottom: 1.875rem;\r\n color: white;\r\n}\r\n";
3
+ module.exports = styles;
@@ -0,0 +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: 3rem;\r\n margin-bottom: 1.25rem;\r\n color: white;\r\n}\r\n\r\n.hero p {\r\n font-size: 1.5rem;\r\n font-weight: 500;\r\n margin-bottom: 1.875rem;\r\n color: white;\r\n}\r\n";
2
+ export {
3
+ styles as default
4
+ };
@@ -7,6 +7,7 @@ const NavigationMenu = require("./components/navigationmenu/NavigationMenu.qwik.
7
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
+ const hero = require("./components/hero/hero.qwik.cjs");
10
11
  exports.Logo = logo.Logo;
11
12
  exports.Counter = counter.Counter;
12
13
  exports.Button = button.Button;
@@ -14,3 +15,4 @@ exports.NavigationMenu = NavigationMenu.NavigationMenu;
14
15
  exports.Modal = modal.Modal;
15
16
  exports.Loader = loader.Loader;
16
17
  exports.Input = input.Input;
18
+ exports.Hero = hero.Hero;
@@ -5,9 +5,11 @@ import { NavigationMenu } from "./components/navigationmenu/NavigationMenu.qwik.
5
5
  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
+ import { Hero } from "./components/hero/hero.qwik.mjs";
8
9
  export {
9
10
  Button,
10
11
  Counter,
12
+ Hero,
11
13
  Input,
12
14
  Loader,
13
15
  Logo,
@@ -0,0 +1,6 @@
1
+ import '@fontsource/roboto-condensed/500.css';
2
+ export interface HeroProps {
3
+ title?: string;
4
+ content?: string;
5
+ }
6
+ export declare const Hero: import("@builder.io/qwik").Component<HeroProps>;
@@ -5,3 +5,4 @@ export { NavigationMenu } from './components/navigationmenu/NavigationMenu';
5
5
  export { Modal } from './components/modal/modal';
6
6
  export { Loader } from './components/loader/loader';
7
7
  export { Input } from './components/input/input';
8
+ export { Hero } from './components/hero/hero';
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from 'storybook-framework-qwik';
2
+ import { type HeroProps } from '../components/hero/hero';
3
+ declare const meta: Meta<HeroProps>;
4
+ export default meta;
5
+ type Story = StoryObj<HeroProps>;
6
+ export declare const HeroWithText: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",