@greghowe79/the-lib 0.6.0 → 0.6.2
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/hero.qwik.cjs +1 -1
- package/lib/components/hero/hero.qwik.mjs +1 -1
- package/lib/components/hero/styles.css.qwik.cjs +1 -1
- package/lib/components/hero/styles.css.qwik.mjs +1 -1
- package/lib/components/input/input.qwik.cjs +2 -2
- package/lib/components/input/input.qwik.mjs +2 -2
- package/lib/components/input/styles.css.qwik.cjs +1 -1
- package/lib/components/input/styles.css.qwik.mjs +1 -1
- package/lib-types/components/input/input.d.ts +1 -0
- package/lib-types/stories/input.stories.d.ts +1 -0
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ const styles = require("./styles.css.qwik.cjs");
|
|
|
6
6
|
require("@fontsource/roboto-condensed/500.css");
|
|
7
7
|
const Hero = qwik.component$(({ title, content }) => {
|
|
8
8
|
qwik.useStylesScoped$(styles);
|
|
9
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("
|
|
9
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", {
|
|
10
10
|
class: "hero",
|
|
11
11
|
children: [
|
|
12
12
|
/* @__PURE__ */ jsxRuntime.jsx("h1", {
|
|
@@ -4,7 +4,7 @@ import styles from "./styles.css.qwik.mjs";
|
|
|
4
4
|
import "@fontsource/roboto-condensed/500.css";
|
|
5
5
|
const Hero = component$(({ title, content }) => {
|
|
6
6
|
useStylesScoped$(styles);
|
|
7
|
-
return /* @__PURE__ */ jsxs("
|
|
7
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
8
8
|
class: "hero",
|
|
9
9
|
children: [
|
|
10
10
|
/* @__PURE__ */ jsx("h1", {
|
|
@@ -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: 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
|
+
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
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: 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
|
|
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
2
|
export {
|
|
3
3
|
styles as default
|
|
4
4
|
};
|
|
@@ -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:
|
|
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:
|
|
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
|
};
|