jcicl 0.0.177 → 0.0.179

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.
@@ -1,7 +1,8 @@
1
1
  import { LabeledInputProps } from '../../../../../../../../../src/components/composite/LabeledInput';
2
- export type AllInputProps = LabeledInputProps;
3
- export interface FormInputProps extends AllInputProps {
2
+ import { LabeledCheckboxProps } from '../../../../../../../../../src/components/composite/LabeledCheckbox';
3
+ export type AllInputProps = LabeledInputProps | LabeledCheckboxProps;
4
+ export type FormInputProps = AllInputProps & {
4
5
  type?: 'text' | 'dropdown' | 'date' | 'number' | 'checkbox' | 'radio' | 'textarea';
5
- }
6
+ };
6
7
  export declare const FormInput: React.FC<LabeledInputProps>;
7
8
  export default FormInput;
@@ -1,10 +1,11 @@
1
1
  import { jsx as o } from "react/jsx-runtime";
2
2
  import { LabeledInput as r } from "../LabeledInput/LabeledInput.js";
3
- const p = (t) => {
4
- const { type: e = "text" } = t;
5
- return /* @__PURE__ */ o(r, { ...t, type: e });
3
+ import { LabeledCheckbox as m } from "../LabeledCheckbox/LabeledCheckbox.js";
4
+ const a = (e) => {
5
+ const { type: t = "text" } = e;
6
+ return t === "checkbox" ? /* @__PURE__ */ o(m, { ...e }) : /* @__PURE__ */ o(r, { ...e, type: t });
6
7
  };
7
8
  export {
8
- p as FormInput,
9
- p as default
9
+ a as FormInput,
10
+ a as default
10
11
  };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jcicl",
3
3
  "private": false,
4
- "version": "0.0.177",
4
+ "version": "0.0.179",
5
5
  "description": "Component library for the websites of Johnson County Iowa",
6
6
  "license": "MIT",
7
7
  "homepage": "https://devops.jc.net/JCIT/Business%20Solutions%20Delivery/_git/JCComponentLibrary?path=%2FREADME.md&version=GBmaster",