@caseparts-org/caseblocks 0.0.11 → 0.0.12

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.
@@ -3,4 +3,4 @@ import { HideAtProps } from '../HideAt';
3
3
  export interface InputProps extends React.InputHTMLAttributes<HTMLInputElement>, HideAtProps {
4
4
  label: string | null;
5
5
  }
6
- export declare function Input({ label, hideAt, className, ...otherProps }: InputProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
@@ -1,24 +1,26 @@
1
- import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
- import { c as m } from "../../clsx-OuTLNxxd.js";
3
- import { getHideAtStyles as r } from "../HideAt.js";
1
+ import { jsxs as a, jsx as i } from "react/jsx-runtime";
2
+ import m from "react";
3
+ import { c } from "../../clsx-OuTLNxxd.js";
4
+ import { getHideAtStyles as o } from "../HideAt.js";
4
5
  import '../../assets/Input.css';const u = "_input_1fwgs_1", e = {
5
6
  "input-container": "_input-container_1fwgs_1",
6
7
  input: u
7
- };
8
- function f({ label: n, hideAt: s, className: c, ...t }) {
9
- return /* @__PURE__ */ p("div", { className: e["input-container"], children: [
8
+ }, l = m.forwardRef(
9
+ ({ label: n, hideAt: s, className: p, ...t }, r) => /* @__PURE__ */ a("div", { className: e["input-container"], children: [
10
10
  n && /* @__PURE__ */ i("label", { htmlFor: t.name, children: n }),
11
11
  /* @__PURE__ */ i(
12
12
  "input",
13
13
  {
14
+ ref: r,
14
15
  id: t.name,
15
16
  type: "text",
16
- className: m(e.input, r(s), c),
17
+ className: c(e.input, o(s), p),
17
18
  ...t
18
19
  }
19
20
  )
20
- ] });
21
- }
21
+ ] })
22
+ );
23
+ l.displayName = "Input";
22
24
  export {
23
- f as Input
25
+ l as Input
24
26
  };
@@ -1,8 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react';
2
- import { Input } from './Input';
3
2
  declare const meta: {
4
3
  title: string;
5
- component: typeof Input;
4
+ component: import('react').ForwardRefExoticComponent<import('./Input').InputProps & import('react').RefAttributes<HTMLInputElement>>;
6
5
  parameters: {
7
6
  layout: string;
8
7
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@caseparts-org/caseblocks",
3
3
  "private": false,
4
- "version": "0.0.11",
4
+ "version": "0.0.12",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",