@greghowe79/the-lib 0.5.9 → 0.6.1

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.
@@ -14,7 +14,8 @@ const Hero = qwik.component$(({ title, content }) => {
14
14
  }),
15
15
  /* @__PURE__ */ jsxRuntime.jsx("p", {
16
16
  children: content
17
- })
17
+ }),
18
+ /* @__PURE__ */ jsxRuntime.jsx(qwik.Slot, {})
18
19
  ]
19
20
  });
20
21
  });
@@ -1,5 +1,5 @@
1
1
  import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
2
- import { component$, useStylesScoped$ } from "@builder.io/qwik";
2
+ import { component$, useStylesScoped$, Slot } from "@builder.io/qwik";
3
3
  import styles from "./styles.css.qwik.mjs";
4
4
  import "@fontsource/roboto-condensed/500.css";
5
5
  const Hero = component$(({ title, content }) => {
@@ -12,7 +12,8 @@ const Hero = component$(({ title, content }) => {
12
12
  }),
13
13
  /* @__PURE__ */ jsx("p", {
14
14
  children: content
15
- })
15
+ }),
16
+ /* @__PURE__ */ jsx(Slot, {})
16
17
  ]
17
18
  });
18
19
  });
@@ -4,7 +4,7 @@ const jsxRuntime = require("@builder.io/qwik/jsx-runtime");
4
4
  const qwik = require("@builder.io/qwik");
5
5
  const styles = require("./styles.css.qwik.cjs");
6
6
  require("@fontsource/roboto-condensed/500.css");
7
- const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate$, onInput$ }) => {
7
+ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate$, onInput$, bgLight }) => {
8
8
  qwik.useStylesScoped$(styles);
9
9
  const internalError = qwik.useSignal(null);
10
10
  const showError = error ?? internalError;
@@ -22,7 +22,7 @@ const Input = qwik.component$(({ id, type, placeholder, value, error, onValidate
22
22
  class: "input-container",
23
23
  children: [
24
24
  /* @__PURE__ */ jsxRuntime.jsx("label", {
25
- class: "input-label",
25
+ class: `input-label ${bgLight ? "bg_light" : ""}`,
26
26
  children: /* @__PURE__ */ jsxRuntime.jsx("input", {
27
27
  id,
28
28
  type,
@@ -2,7 +2,7 @@ import { jsxs, jsx } from "@builder.io/qwik/jsx-runtime";
2
2
  import { component$, useStylesScoped$, useSignal, $ } from "@builder.io/qwik";
3
3
  import styles from "./styles.css.qwik.mjs";
4
4
  import "@fontsource/roboto-condensed/500.css";
5
- const Input = component$(({ id, type, placeholder, value, error, onValidate$, onInput$ }) => {
5
+ const Input = component$(({ id, type, placeholder, value, error, onValidate$, onInput$, bgLight }) => {
6
6
  useStylesScoped$(styles);
7
7
  const internalError = useSignal(null);
8
8
  const showError = error ?? internalError;
@@ -20,7 +20,7 @@ const Input = component$(({ id, type, placeholder, value, error, onValidate$, on
20
20
  class: "input-container",
21
21
  children: [
22
22
  /* @__PURE__ */ jsx("label", {
23
- class: "input-label",
23
+ class: `input-label ${bgLight ? "bg_light" : ""}`,
24
24
  children: /* @__PURE__ */ jsx("input", {
25
25
  id,
26
26
  type,
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
- const styles = ".input-label:not([type='checkbox']) {\r\n border-radius: 8px;\r\n font-size: 13px;\r\n line-height: 1.85;\r\n letter-spacing: 1px;\r\n color: #333;\r\n position: relative;\r\n height: 50px;\r\n display: flex;\r\n min-width: 0;\r\n background: rgba(0, 0, 0, 0.04);\r\n transition:\r\n color 0.3s ease,\r\n box-shadow 0.3s ease,\r\n background 0.3s ease;\r\n}\r\n\r\n.input {\r\n background: transparent;\r\n padding: 0 15px;\r\n flex: 1;\r\n font-size: 16px;\r\n font-family: 'Roboto Condensed', sans-serif;\r\n font-weight: 100;\r\n letter-spacing: inherit;\r\n color: inherit;\r\n height: 100%;\r\n border: none;\r\n -webkit-appearance: none;\r\n -moz-appearance: none;\r\n appearance: none;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n opacity: 0.4;\r\n}\r\n\r\n.input:focus {\r\n outline: none;\r\n opacity: 1;\r\n}\r\n\r\n.error-message {\r\n color: #e74c3c;\r\n font-size: 0.875rem;\r\n margin-top: 0.25rem;\r\n font-size: 16px;\r\n font-family: 'Roboto Condensed', sans-serif;\r\n}\r\n";
2
+ const styles = ".input-label:not([type='checkbox']) {\r\n border-radius: 8px;\r\n font-size: 13px;\r\n line-height: 1.85;\r\n letter-spacing: 1px;\r\n color: #333;\r\n position: relative;\r\n height: 50px;\r\n display: flex;\r\n min-width: 0;\r\n background: rgba(0, 0, 0, 0.04);\r\n transition:\r\n color 0.3s ease,\r\n box-shadow 0.3s ease,\r\n background 0.3s ease;\r\n}\r\n\r\n.input-label.bg_light:not([type='checkbox']) {\r\n background: white;\r\n}\r\n\r\n.input {\r\n background: transparent;\r\n padding: 0 15px;\r\n flex: 1;\r\n font-size: 16px;\r\n font-family: 'Roboto Condensed', sans-serif;\r\n font-weight: 100;\r\n letter-spacing: inherit;\r\n color: inherit;\r\n height: 100%;\r\n border: none;\r\n -webkit-appearance: none;\r\n -moz-appearance: none;\r\n appearance: none;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n opacity: 0.4;\r\n}\r\n\r\n.input:focus {\r\n outline: none;\r\n opacity: 1;\r\n}\r\n\r\n.error-message {\r\n color: #e74c3c;\r\n font-size: 0.875rem;\r\n margin-top: 0.25rem;\r\n font-size: 16px;\r\n font-family: 'Roboto Condensed', sans-serif;\r\n}\r\n";
3
3
  module.exports = styles;
@@ -1,4 +1,4 @@
1
- const styles = ".input-label:not([type='checkbox']) {\r\n border-radius: 8px;\r\n font-size: 13px;\r\n line-height: 1.85;\r\n letter-spacing: 1px;\r\n color: #333;\r\n position: relative;\r\n height: 50px;\r\n display: flex;\r\n min-width: 0;\r\n background: rgba(0, 0, 0, 0.04);\r\n transition:\r\n color 0.3s ease,\r\n box-shadow 0.3s ease,\r\n background 0.3s ease;\r\n}\r\n\r\n.input {\r\n background: transparent;\r\n padding: 0 15px;\r\n flex: 1;\r\n font-size: 16px;\r\n font-family: 'Roboto Condensed', sans-serif;\r\n font-weight: 100;\r\n letter-spacing: inherit;\r\n color: inherit;\r\n height: 100%;\r\n border: none;\r\n -webkit-appearance: none;\r\n -moz-appearance: none;\r\n appearance: none;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n opacity: 0.4;\r\n}\r\n\r\n.input:focus {\r\n outline: none;\r\n opacity: 1;\r\n}\r\n\r\n.error-message {\r\n color: #e74c3c;\r\n font-size: 0.875rem;\r\n margin-top: 0.25rem;\r\n font-size: 16px;\r\n font-family: 'Roboto Condensed', sans-serif;\r\n}\r\n";
1
+ const styles = ".input-label:not([type='checkbox']) {\r\n border-radius: 8px;\r\n font-size: 13px;\r\n line-height: 1.85;\r\n letter-spacing: 1px;\r\n color: #333;\r\n position: relative;\r\n height: 50px;\r\n display: flex;\r\n min-width: 0;\r\n background: rgba(0, 0, 0, 0.04);\r\n transition:\r\n color 0.3s ease,\r\n box-shadow 0.3s ease,\r\n background 0.3s ease;\r\n}\r\n\r\n.input-label.bg_light:not([type='checkbox']) {\r\n background: white;\r\n}\r\n\r\n.input {\r\n background: transparent;\r\n padding: 0 15px;\r\n flex: 1;\r\n font-size: 16px;\r\n font-family: 'Roboto Condensed', sans-serif;\r\n font-weight: 100;\r\n letter-spacing: inherit;\r\n color: inherit;\r\n height: 100%;\r\n border: none;\r\n -webkit-appearance: none;\r\n -moz-appearance: none;\r\n appearance: none;\r\n white-space: nowrap;\r\n text-overflow: ellipsis;\r\n overflow: hidden;\r\n opacity: 0.4;\r\n}\r\n\r\n.input:focus {\r\n outline: none;\r\n opacity: 1;\r\n}\r\n\r\n.error-message {\r\n color: #e74c3c;\r\n font-size: 0.875rem;\r\n margin-top: 0.25rem;\r\n font-size: 16px;\r\n font-family: 'Roboto Condensed', sans-serif;\r\n}\r\n";
2
2
  export {
3
3
  styles as default
4
4
  };
@@ -9,5 +9,6 @@ export interface InputProps {
9
9
  error?: Signal<string | null>;
10
10
  onValidate$?: QRL<(value: string) => Promise<string>>;
11
11
  onInput$?: QRL<() => void>;
12
+ bgLight?: boolean;
12
13
  }
13
14
  export declare const Input: import("@builder.io/qwik").Component<InputProps>;
@@ -4,3 +4,4 @@ declare const meta: Meta<InputProps>;
4
4
  export default meta;
5
5
  type Story = StoryObj<InputProps>;
6
6
  export declare const Email: Story;
7
+ export declare const InputLightBackground: Story;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@greghowe79/the-lib",
3
- "version": "0.5.9",
3
+ "version": "0.6.1",
4
4
  "description": "Collection of fast components for Qwik",
5
5
  "main": "./lib/index.qwik.mjs",
6
6
  "qwik": "./lib/index.qwik.mjs",