@nr1e/qwik-ui 0.0.12 → 0.0.13
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,32 @@
|
|
|
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 CheckboxField = qwik.component$((props) => {
|
|
6
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", {
|
|
7
|
+
class: "fieldset",
|
|
8
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs("label", {
|
|
9
|
+
class: "label",
|
|
10
|
+
...props.id && {
|
|
11
|
+
for: props.id
|
|
12
|
+
},
|
|
13
|
+
children: [
|
|
14
|
+
/* @__PURE__ */ jsxRuntime.jsx("input", {
|
|
15
|
+
type: "checkbox",
|
|
16
|
+
...props.name && {
|
|
17
|
+
name: props.name
|
|
18
|
+
},
|
|
19
|
+
...props.id && {
|
|
20
|
+
id: props.id
|
|
21
|
+
},
|
|
22
|
+
...props.checked && {
|
|
23
|
+
checked: props.checked
|
|
24
|
+
},
|
|
25
|
+
class: "checkbox"
|
|
26
|
+
}),
|
|
27
|
+
props.label
|
|
28
|
+
]
|
|
29
|
+
})
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
exports.CheckboxField = CheckboxField;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx, jsxs } from "@builder.io/qwik/jsx-runtime";
|
|
2
|
+
import { component$ } from "@builder.io/qwik";
|
|
3
|
+
const CheckboxField = component$((props) => {
|
|
4
|
+
return /* @__PURE__ */ jsx("div", {
|
|
5
|
+
class: "fieldset",
|
|
6
|
+
children: /* @__PURE__ */ jsxs("label", {
|
|
7
|
+
class: "label",
|
|
8
|
+
...props.id && {
|
|
9
|
+
for: props.id
|
|
10
|
+
},
|
|
11
|
+
children: [
|
|
12
|
+
/* @__PURE__ */ jsx("input", {
|
|
13
|
+
type: "checkbox",
|
|
14
|
+
...props.name && {
|
|
15
|
+
name: props.name
|
|
16
|
+
},
|
|
17
|
+
...props.id && {
|
|
18
|
+
id: props.id
|
|
19
|
+
},
|
|
20
|
+
...props.checked && {
|
|
21
|
+
checked: props.checked
|
|
22
|
+
},
|
|
23
|
+
class: "checkbox"
|
|
24
|
+
}),
|
|
25
|
+
props.label
|
|
26
|
+
]
|
|
27
|
+
})
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
export {
|
|
31
|
+
CheckboxField
|
|
32
|
+
};
|
package/lib/index.qwik.cjs
CHANGED
|
@@ -4,6 +4,7 @@ const alertError = require("./components/alert-error.qwik.cjs");
|
|
|
4
4
|
const alertInfo = require("./components/alert-info.qwik.cjs");
|
|
5
5
|
const alertSuccess = require("./components/alert-success.qwik.cjs");
|
|
6
6
|
const alertWarning = require("./components/alert-warning.qwik.cjs");
|
|
7
|
+
const checkboxField = require("./components/checkbox-field.qwik.cjs");
|
|
7
8
|
const dialog = require("./components/dialog.qwik.cjs");
|
|
8
9
|
const paceBar = require("./components/pace-bar.qwik.cjs");
|
|
9
10
|
const selectField = require("./components/select-field.qwik.cjs");
|
|
@@ -13,6 +14,7 @@ exports.AlertError = alertError.AlertError;
|
|
|
13
14
|
exports.AlertInfo = alertInfo.AlertInfo;
|
|
14
15
|
exports.AlertSuccess = alertSuccess.AlertSuccess;
|
|
15
16
|
exports.AlertWarning = alertWarning.AlertWarning;
|
|
17
|
+
exports.CheckboxField = checkboxField.CheckboxField;
|
|
16
18
|
exports.Dialog = dialog.Dialog;
|
|
17
19
|
exports.PaceBar = paceBar.PaceBar;
|
|
18
20
|
exports.SelectField = selectField.SelectField;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -2,6 +2,7 @@ import { AlertError } from "./components/alert-error.qwik.mjs";
|
|
|
2
2
|
import { AlertInfo } from "./components/alert-info.qwik.mjs";
|
|
3
3
|
import { AlertSuccess } from "./components/alert-success.qwik.mjs";
|
|
4
4
|
import { AlertWarning } from "./components/alert-warning.qwik.mjs";
|
|
5
|
+
import { CheckboxField } from "./components/checkbox-field.qwik.mjs";
|
|
5
6
|
import { Dialog } from "./components/dialog.qwik.mjs";
|
|
6
7
|
import { PaceBar } from "./components/pace-bar.qwik.mjs";
|
|
7
8
|
import { SelectField } from "./components/select-field.qwik.mjs";
|
|
@@ -12,6 +13,7 @@ export {
|
|
|
12
13
|
AlertInfo,
|
|
13
14
|
AlertSuccess,
|
|
14
15
|
AlertWarning,
|
|
16
|
+
CheckboxField,
|
|
15
17
|
Dialog,
|
|
16
18
|
PaceBar,
|
|
17
19
|
SelectField,
|
|
@@ -4,5 +4,4 @@ export interface CheckboxFieldProps {
|
|
|
4
4
|
name?: string;
|
|
5
5
|
checked?: boolean;
|
|
6
6
|
}
|
|
7
|
-
declare const
|
|
8
|
-
export default _default;
|
|
7
|
+
export declare const CheckboxField: import("@builder.io/qwik").Component<CheckboxFieldProps>;
|