@youngonesworks/ui 0.1.51 → 0.1.53
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.
- package/dist/components/passwordInput/index.d.ts +1 -1
- package/dist/components/textInput/TextInput.stories.d.ts +4 -0
- package/dist/components/textInput/index.d.ts +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
export declare const PasswordInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
3
3
|
rightSection?: React.ReactNode;
|
|
4
4
|
leftSection?: React.ReactNode;
|
|
5
|
-
label?: React.ReactNode;
|
|
5
|
+
label?: React.ReactNode | string;
|
|
6
6
|
className?: string;
|
|
7
7
|
min?: string | undefined | number;
|
|
8
8
|
max?: string | undefined | number;
|
|
@@ -6,3 +6,7 @@ type Story = StoryObj<typeof TextInput>;
|
|
|
6
6
|
export declare const Default: Story;
|
|
7
7
|
export declare const WithIcon: Story;
|
|
8
8
|
export declare const Password: Story;
|
|
9
|
+
export declare const LeftSection: Story;
|
|
10
|
+
export declare const ErrorState: Story;
|
|
11
|
+
export declare const NumberWithMinMax: Story;
|
|
12
|
+
export declare const PasswordAutofill: Story;
|
|
@@ -3,7 +3,7 @@ import { type ChangeEvent, type FocusEvent, type InputHTMLAttributes, type Keybo
|
|
|
3
3
|
export type TextInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
4
|
rightSection?: React.ReactNode;
|
|
5
5
|
leftSection?: React.ReactNode;
|
|
6
|
-
label?: React.ReactNode;
|
|
6
|
+
label?: React.ReactNode | string;
|
|
7
7
|
className?: string;
|
|
8
8
|
min?: string | undefined | number;
|
|
9
9
|
max?: string | undefined | number;
|
|
@@ -23,7 +23,7 @@ export type TextInputProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
23
23
|
export declare const TextInput: React.ForwardRefExoticComponent<React.InputHTMLAttributes<HTMLInputElement> & {
|
|
24
24
|
rightSection?: React.ReactNode;
|
|
25
25
|
leftSection?: React.ReactNode;
|
|
26
|
-
label?: React.ReactNode;
|
|
26
|
+
label?: React.ReactNode | string;
|
|
27
27
|
className?: string;
|
|
28
28
|
min?: string | undefined | number;
|
|
29
29
|
max?: string | undefined | number;
|
package/dist/index.cjs
CHANGED
|
@@ -103150,11 +103150,11 @@ const TextInput = react.default.forwardRef(({ rightSection, leftSection, classNa
|
|
|
103150
103150
|
"data-testid": "TextInput",
|
|
103151
103151
|
className: clsx_default("relative", wrapperClassName),
|
|
103152
103152
|
children: [
|
|
103153
|
-
label
|
|
103153
|
+
typeof label === "string" ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)("label", {
|
|
103154
103154
|
htmlFor: props.id,
|
|
103155
103155
|
className: "mb-2 flex items-center gap-1 text-xs font-medium text-black",
|
|
103156
103156
|
children: label
|
|
103157
|
-
}),
|
|
103157
|
+
}) : label,
|
|
103158
103158
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
103159
103159
|
className: "relative",
|
|
103160
103160
|
children: [
|