Skip to content

Commit b3f6e67

Browse files
committed
fixes #1 applied to 0.0.18 updated demo looks
1 parent e9b5ceb commit b3f6e67

File tree

7 files changed

+1345
-1269
lines changed

7 files changed

+1345
-1269
lines changed

build/entry.tsx

Lines changed: 1337 additions & 1261 deletions
Large diffs are not rendered by default.

build/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<title>Free React UI</title>
99
<meta name="description" content="A collection of vanilla react and tailwind components, fields and output formats written in typescript." />
1010
<meta property="og:title" content="Bad Baby Bear Bots" />
11-
<meta property="og:url" content="https://cblanquera.github.io/frui" />
11+
<meta property="og:url" content="https://ossphilippines.github.io/frui" />
1212
<meta property="og:type" content="website" />
1313
<meta property="og:description" content="A collection of vanilla react and tailwind components, fields and output formats written in typescript." />
1414
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Open+Sans" />

docs/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Free React UI</title><meta name="description" content="A collection of vanilla react and tailwind components, fields and output formats written in typescript."/><meta property="og:title" content="Bad Baby Bear Bots"/><meta property="og:url" content="https://cblanquera.github.io/frui"/><meta property="og:type" content="website"/><meta property="og:description" content="A collection of vanilla react and tailwind components, fields and output formats written in typescript."/><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans"/><style>html, body, #root {
1+
<!doctype html><html lang="en"><head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width,initial-scale=1"/><title>Free React UI</title><meta name="description" content="A collection of vanilla react and tailwind components, fields and output formats written in typescript."/><meta property="og:title" content="Bad Baby Bear Bots"/><meta property="og:url" content="https://ossphilippines.github.io/frui"/><meta property="og:type" content="website"/><meta property="og:description" content="A collection of vanilla react and tailwind components, fields and output formats written in typescript."/><link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans"/><style>html, body, #root {
22
font-family: "Open Sans", Arial, Helvetica, sans-serif;
33
width: 100%;
44
margin: 0;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "frui",
3-
"version": "0.0.17",
3+
"version": "0.0.18",
44
"license": "MIT",
55
"description": "A collection of vanilla react and tailwind components written in typescript.",
66
"author": "Chris <chris@incept.asia>",

src/react/Control.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ const Control: React.FC<ControlProps> = (props) => {
4040

4141
return (
4242
<div style={map.styles.container} className={map.classNames.container}>
43-
{label && (
43+
{!!label && (
4444
<label style={map.styles.label} className={map.classNames.label}>
4545
{label}
4646
</label>
4747
)}
4848
<div style={map.styles.field} className={map.classNames.field}>
4949
{children}
5050
</div>
51-
{error?.length && (
51+
{!!error && error?.length > 0 && (
5252
<div className={map.classNames.error} style={map.styles.error}>
5353
{error}
5454
</div>

src/tailwind/Control.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,15 @@ const Control: React.FC<ControlProps> = (props) => {
4040

4141
return (
4242
<div style={map.styles.container} className={map.classNames.container}>
43-
{label && (
43+
{!!label && (
4444
<label style={map.styles.label} className={map.classNames.label}>
4545
{label}
4646
</label>
4747
)}
4848
<div style={map.styles.field} className={map.classNames.field}>
4949
{children}
5050
</div>
51-
{error?.length && (
51+
{!!error && error?.length > 0 && (
5252
<div className={map.classNames.error} style={map.styles.error}>
5353
{error}
5454
</div>

0 commit comments

Comments
 (0)