@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
|
|
6
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,24 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
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
|
-
|
|
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:
|
|
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
|
-
|
|
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:
|
|
4
|
+
component: import('react').ForwardRefExoticComponent<import('./Input').InputProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
6
5
|
parameters: {
|
|
7
6
|
layout: string;
|
|
8
7
|
};
|