ant-float-label 1.1.0 → 1.2.0

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Tim Ou
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Tim Ou
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,22 +1,51 @@
1
- # Antd 5 form style similar to MUI
2
-
3
- ```sh
4
- npm install ant-float-label
5
- ```
6
-
7
- ```js
8
- import {
9
- FloatDatePicker,
10
- FloatInput,
11
- FloatInputNumber,
12
- FloatSelect,
13
- FloatRangePicker,
14
- FloatCascader,
15
- FloatTreeSelect,
16
- FloatAutoComplete,
17
- FloatTimePicker,
18
- FloatPassword
19
- } from "ant-float-label";
20
- ```
21
-
22
- ![Alt text](image.png)
1
+ # Antd 5 form style similar to MUI
2
+
3
+ ```sh
4
+ npm install ant-float-label
5
+ ```
6
+
7
+ ```js
8
+ import {
9
+ FloatDatePicker,
10
+ FloatInput,
11
+ FloatInputNumber,
12
+ FloatSelect,
13
+ FloatRangePicker,
14
+ FloatCascader,
15
+ FloatTreeSelect,
16
+ FloatAutoComplete,
17
+ FloatTimePicker,
18
+ FloatPassword,
19
+ } from "ant-float-label";
20
+ ```
21
+
22
+ ![Alt text](image.png)
23
+
24
+ # useForm
25
+
26
+ ```js
27
+ import { Form } from "antd";
28
+ import { FloatAutoComplete, FloatFormItem } from "ant-float-label";
29
+
30
+ function TestUseForm() {
31
+ const [form] = Form.useForm();
32
+
33
+ return (
34
+ <Form name="test_form" form={form}>
35
+ <FloatFormItem
36
+ name="floatAutoComplete"
37
+ rules={[{ required: true }]}
38
+ label="FloatAutoComplete"
39
+ >
40
+ <FloatAutoComplete
41
+ options={[
42
+ { value: "11111111111" },
43
+ { value: "2222222222" },
44
+ { value: "3333333333" },
45
+ ]}
46
+ />
47
+ </FloatFormItem>
48
+ </Form>
49
+ );
50
+ }
51
+ ```
package/dist/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 Tim Ou
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2024 Tim Ou
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/README.md CHANGED
@@ -1,22 +1,51 @@
1
- # Antd 5 form style similar to MUI
2
-
3
- ```sh
4
- npm install ant-float-label
5
- ```
6
-
7
- ```js
8
- import {
9
- FloatDatePicker,
10
- FloatInput,
11
- FloatInputNumber,
12
- FloatSelect,
13
- FloatRangePicker,
14
- FloatCascader,
15
- FloatTreeSelect,
16
- FloatAutoComplete,
17
- FloatTimePicker,
18
- FloatPassword
19
- } from "ant-float-label";
20
- ```
21
-
22
- ![Alt text](image.png)
1
+ # Antd 5 form style similar to MUI
2
+
3
+ ```sh
4
+ npm install ant-float-label
5
+ ```
6
+
7
+ ```js
8
+ import {
9
+ FloatDatePicker,
10
+ FloatInput,
11
+ FloatInputNumber,
12
+ FloatSelect,
13
+ FloatRangePicker,
14
+ FloatCascader,
15
+ FloatTreeSelect,
16
+ FloatAutoComplete,
17
+ FloatTimePicker,
18
+ FloatPassword,
19
+ } from "ant-float-label";
20
+ ```
21
+
22
+ ![Alt text](image.png)
23
+
24
+ # useForm
25
+
26
+ ```js
27
+ import { Form } from "antd";
28
+ import { FloatAutoComplete, FloatFormItem } from "ant-float-label";
29
+
30
+ function TestUseForm() {
31
+ const [form] = Form.useForm();
32
+
33
+ return (
34
+ <Form name="test_form" form={form}>
35
+ <FloatFormItem
36
+ name="floatAutoComplete"
37
+ rules={[{ required: true }]}
38
+ label="FloatAutoComplete"
39
+ >
40
+ <FloatAutoComplete
41
+ options={[
42
+ { value: "11111111111" },
43
+ { value: "2222222222" },
44
+ { value: "3333333333" },
45
+ ]}
46
+ />
47
+ </FloatFormItem>
48
+ </Form>
49
+ );
50
+ }
51
+ ```
@@ -1,6 +1,8 @@
1
1
  import { AutoCompleteProps } from "antd";
2
+ import { FloattingLabelBoxProps } from "../FloattingLabelBox";
2
3
  import "./index.css";
3
4
  export interface FloatAutoCompleteProps extends AutoCompleteProps {
4
5
  required?: boolean;
6
+ labelBoxProps?: FloattingLabelBoxProps;
5
7
  }
6
- export declare function FloatAutoComplete({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }: FloatAutoCompleteProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function FloatAutoComplete({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, labelBoxProps, variant, ...restProps }: FloatAutoCompleteProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,10 @@
1
1
  import { CascaderProps } from "antd";
2
- export type FloatCascadertProps = CascaderProps & {
2
+ import { FloattingLabelBoxProps } from "../FloattingLabelBox";
3
+ export interface FloatCascadertProps extends CascaderProps {
4
+ multiple?: true;
3
5
  required?: boolean;
4
- };
5
- export declare function FloatCascader({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, ...restProps }: FloatCascadertProps): import("react/jsx-runtime").JSX.Element;
6
+ value?: any;
7
+ defaultValue?: any;
8
+ labelBoxProps?: FloattingLabelBoxProps;
9
+ }
10
+ export declare function FloatCascader({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, labelBoxProps, variant, ...restProps }: FloatCascadertProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import { DatePickerProps } from "antd";
2
2
  import "./index.css";
3
+ import { FloattingLabelBoxProps } from "../FloattingLabelBox";
3
4
  export interface FloatDatePickerProps extends DatePickerProps {
4
5
  required?: boolean;
6
+ labelBoxProps?: FloattingLabelBoxProps;
5
7
  }
6
- export declare function FloatDatePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, ...restProps }: FloatDatePickerProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function FloatDatePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, labelBoxProps, variant, ...restProps }: FloatDatePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import { InputProps } from "antd";
2
+ import { FloattingLabelBoxProps } from "../FloattingLabelBox";
2
3
  export interface FloatInputProps extends InputProps {
3
4
  required?: boolean;
5
+ labelBoxProps?: FloattingLabelBoxProps;
4
6
  }
5
- export declare function FloatInput({ placeholder, onFocus, onBlur, onChange, value, defaultValue, style, size, required, ...restProps }: FloatInputProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function FloatInput({ placeholder, onFocus, onBlur, onChange, value, defaultValue, style, size, required, labelBoxProps, variant, ...restProps }: FloatInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import { InputNumberProps } from "antd";
2
2
  import "./index.css";
3
+ import { FloattingLabelBoxProps } from "../FloattingLabelBox";
3
4
  export interface FloatInputNumberProps extends InputNumberProps {
4
5
  required?: boolean;
6
+ labelBoxProps?: FloattingLabelBoxProps;
5
7
  }
6
- export declare function FloatInputNumber({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }: FloatInputNumberProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function FloatInputNumber({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, labelBoxProps, variant, ...restProps }: FloatInputNumberProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
+ import { FloattingLabelBoxProps } from "../FloattingLabelBox";
1
2
  import { PasswordProps } from "antd/es/input";
2
3
  import "./index.css";
3
4
  export interface FloatPasswordProps extends PasswordProps {
4
5
  required?: boolean;
6
+ labelBoxProps?: FloattingLabelBoxProps;
5
7
  }
6
- export declare function FloatPassword({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }: FloatPasswordProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function FloatPassword({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, labelBoxProps, variant, ...restProps }: FloatPasswordProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import "./index.css";
2
2
  import { RangePickerProps } from "antd/es/date-picker";
3
+ import { FloattingLabelBoxProps } from "../FloattingLabelBox";
3
4
  export interface FloatRangePickerProps extends RangePickerProps {
4
5
  required?: boolean;
6
+ labelBoxProps?: FloattingLabelBoxProps;
5
7
  }
6
- export declare function FloatRangePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }: FloatRangePickerProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function FloatRangePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, labelBoxProps, variant, ...restProps }: FloatRangePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,6 +1,8 @@
1
1
  import { SelectProps } from "antd";
2
2
  import "./index.css";
3
+ import { FloattingLabelBoxProps } from "../FloattingLabelBox";
3
4
  export interface FloatSelectProps extends SelectProps {
4
5
  required?: boolean;
6
+ labelBoxProps?: FloattingLabelBoxProps;
5
7
  }
6
- export declare function FloatSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, ...restProps }: FloatSelectProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function FloatSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, labelBoxProps, variant, ...restProps }: FloatSelectProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import { TimePickerProps } from "antd";
2
+ import { FloattingLabelBoxProps } from "../FloattingLabelBox";
2
3
  export interface FloatTimePickerProps extends TimePickerProps {
3
4
  required?: boolean;
5
+ labelBoxProps?: FloattingLabelBoxProps;
4
6
  }
5
- export declare function FloatTimePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, ...restProps }: FloatTimePickerProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function FloatTimePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, labelBoxProps, variant, ...restProps }: FloatTimePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,7 @@
1
1
  import { TreeSelectProps } from "antd";
2
+ import { FloattingLabelBoxProps } from "../FloattingLabelBox";
2
3
  export interface FloatTreeSelectProps extends TreeSelectProps {
3
4
  required?: boolean;
5
+ labelBoxProps: FloattingLabelBoxProps;
4
6
  }
5
- export declare function FloatTreeSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, required, ...restProps }: FloatTreeSelectProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function FloatTreeSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, required, variant, labelBoxProps, ...restProps }: FloatTreeSelectProps): import("react/jsx-runtime").JSX.Element;
@@ -1,14 +1,18 @@
1
1
  /// <reference types="react" />
2
2
  import "./index.css";
3
3
  import { InputStatus } from "antd/es/_util/statusUtils";
4
+ import { Variant } from "antd/es/config-provider";
4
5
  export interface FloattingLabelBoxProps {
5
6
  focused?: boolean;
6
- haveValue?: boolean;
7
+ hasValue?: boolean;
7
8
  label?: React.ReactNode;
8
9
  children?: React.ReactNode;
9
10
  width?: string | number;
10
11
  height?: string | number;
11
12
  status?: InputStatus;
12
13
  required?: boolean;
14
+ fieldsetStyle?: React.CSSProperties;
15
+ labelStyle?: React.CSSProperties;
16
+ variant?: Variant;
13
17
  }
14
- export declare function FloattingLabelBox({ focused, haveValue, label, children, width, height, status, required, }: FloattingLabelBoxProps): import("react/jsx-runtime").JSX.Element;
18
+ export declare function FloattingLabelBox({ focused, hasValue, label, children, width, height, status, required, fieldsetStyle, labelStyle, variant, }: FloattingLabelBoxProps): import("react/jsx-runtime").JSX.Element;
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import React, { useMemo, useRef, useState, useContext, useCallback, useEffect }
5
5
  import { FormContext } from 'antd/es/form/context';
6
6
 
7
7
  const { useToken } = theme;
8
- function FloattingLabelBox({ focused, haveValue, label, children, width, height, status, required, }) {
8
+ function FloattingLabelBox({ focused, hasValue, label, children, width, height, status, required, fieldsetStyle, labelStyle, variant = "outlined", }) {
9
9
  const { token } = useToken();
10
10
  const statusColor = useMemo(() => {
11
11
  const colors = {
@@ -28,6 +28,30 @@ function FloattingLabelBox({ focused, haveValue, label, children, width, height,
28
28
  }
29
29
  return colors;
30
30
  }, [status, token]);
31
+ const borderStyleMemo = useMemo(() => {
32
+ const borderColor = focused ? statusColor.borderColorActive : statusColor.borderColor;
33
+ if (variant === "outlined") {
34
+ return {
35
+ border: '1px solid',
36
+ borderColor,
37
+ };
38
+ }
39
+ else if (variant === "underlined") {
40
+ return {
41
+ borderBottom: '1px solid',
42
+ borderBottomColor: borderColor,
43
+ borderTop: 'none',
44
+ borderLeft: 'none',
45
+ borderRight: 'none',
46
+ borderRadius: 0,
47
+ };
48
+ }
49
+ return {
50
+ border: 'none',
51
+ borderSize: 0,
52
+ borderColor: 'transparent',
53
+ };
54
+ }, [variant, focused, statusColor]);
31
55
  return (jsxs("div", { className: "ant-float-label-box", style: {
32
56
  width: width ?? "100%",
33
57
  height,
@@ -38,17 +62,17 @@ function FloattingLabelBox({ focused, haveValue, label, children, width, height,
38
62
  borderRadius: token.borderRadius,
39
63
  }, children: children }), jsx("label", { className: "ant-float-label-box-label", style: {
40
64
  color: focused ? statusColor.textColorActive : statusColor.textColor,
41
- height: focused || haveValue ? "auto" : "100%",
42
- transform: focused || haveValue
65
+ height: focused || hasValue ? "auto" : "100%",
66
+ transform: focused || hasValue
43
67
  ? "translate(14px, -9px) scale(0.75)"
44
68
  : `translate(1em, 0px) scale(1)`,
69
+ ...labelStyle,
45
70
  }, children: required ? (jsxs("div", { style: { display: "flex", gap: "0.3em", alignItems: "center" }, children: [jsx("span", { children: label }), jsx("span", { style: { marginTop: "3px" }, children: "*" })] })) : (label) }), jsx("fieldset", { style: {
46
- border: focused
47
- ? `2px solid ${statusColor.borderColorActive}`
48
- : `1px solid ${statusColor.borderColor}`,
49
71
  borderRadius: token.borderRadius,
72
+ ...borderStyleMemo,
73
+ ...fieldsetStyle
50
74
  }, className: "ant-float-label-box-fieldset", children: jsx("legend", { className: "ant-float-label-box-legend", style: {
51
- maxWidth: focused || haveValue ? "100%" : "0.01px",
75
+ maxWidth: focused || hasValue ? "100%" : "0.01px",
52
76
  }, children: label }) })] }));
53
77
  }
54
78
 
@@ -75,9 +99,6 @@ function useValueHandle({ defaultValue, value, id, onFocus, onBlur }) {
75
99
  setInputValue(value);
76
100
  }
77
101
  initFlag.current = true;
78
- return () => {
79
- initFlag.current = false;
80
- };
81
102
  }, [value]);
82
103
  useEffect(() => {
83
104
  if (form && id) {
@@ -93,7 +114,7 @@ function useValueHandle({ defaultValue, value, id, onFocus, onBlur }) {
93
114
  };
94
115
  }
95
116
 
96
- function FloatAutoComplete({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }) {
117
+ function FloatAutoComplete({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, labelBoxProps, variant, ...restProps }) {
97
118
  const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
98
119
  id: restProps.id,
99
120
  defaultValue,
@@ -107,14 +128,14 @@ function FloatAutoComplete({ placeholder, onFocus, onBlur, value, defaultValue,
107
128
  onChange(value, option);
108
129
  }
109
130
  }, [onChange]);
110
- return (jsx(FloattingLabelBox, { label: placeholder, required: required, focused: isFocus, haveValue: hasValue, width: style?.width, height: style?.height, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(AutoComplete, { style: {
131
+ return (jsx(FloattingLabelBox, { label: placeholder, required: required, focused: isFocus, hasValue: hasValue, width: style?.width, height: style?.height, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), variant: variant, ...labelBoxProps, children: jsx(AutoComplete, { style: {
111
132
  width: "100%",
112
133
  ...style,
113
134
  border: "none",
114
- }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHandler, rootClassName: "ant-float-label-form-auto-complete" }) }));
135
+ }, ...restProps, variant: "borderless", onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHandler, rootClassName: "ant-float-label-form-auto-complete" }) }));
115
136
  }
116
137
 
117
- function FloatCascader({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, ...restProps }) {
138
+ function FloatCascader({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, labelBoxProps, variant, ...restProps }) {
118
139
  const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
119
140
  id: restProps.id,
120
141
  defaultValue,
@@ -128,10 +149,10 @@ function FloatCascader({ placeholder, onFocus, onBlur, value, defaultValue, styl
128
149
  onChange(value, selectedOptions);
129
150
  }
130
151
  }, [onChange]);
131
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(Cascader, { style: { ...style, width: "100%", border: "none" }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changehandler, rootClassName: "ant-float-label-form-select" }) }));
152
+ return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, hasValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), variant: variant, ...labelBoxProps, children: jsx(Cascader, { style: { ...style, width: "100%", border: "none" }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changehandler, rootClassName: "ant-float-label-form-select" }) }));
132
153
  }
133
154
 
134
- function FloatDatePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, ...restProps }) {
155
+ function FloatDatePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, labelBoxProps, variant, ...restProps }) {
135
156
  const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
136
157
  id: restProps.id,
137
158
  defaultValue,
@@ -145,10 +166,10 @@ function FloatDatePicker({ placeholder, onFocus, onBlur, value, defaultValue, st
145
166
  onChange(value, dateString);
146
167
  }
147
168
  }, [onChange]);
148
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: hasValue, width: style?.width, height: style?.height, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), required: required, children: jsx(DatePicker, { style: { ...style, width: "100%", border: "none" }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHandler, rootClassName: "ant-float-label-form-picker", placeholder: "" }) }));
169
+ return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, hasValue: hasValue, width: style?.width, height: style?.height, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), required: required, variant: variant, ...labelBoxProps, children: jsx(DatePicker, { style: { ...style, width: "100%", border: "none" }, ...restProps, variant: "borderless", onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHandler, rootClassName: "ant-float-label-form-picker", placeholder: "" }) }));
149
170
  }
150
171
 
151
- function FloatInput({ placeholder, onFocus, onBlur, onChange, value, defaultValue, style, size, required, ...restProps }) {
172
+ function FloatInput({ placeholder, onFocus, onBlur, onChange, value, defaultValue, style, size, required, labelBoxProps, variant, ...restProps }) {
152
173
  const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
153
174
  id: restProps.id,
154
175
  defaultValue,
@@ -162,10 +183,10 @@ function FloatInput({ placeholder, onFocus, onBlur, onChange, value, defaultValu
162
183
  onChange(e);
163
184
  }
164
185
  }, [onChange]);
165
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(Input, { style: { ...style, width: "100%", border: "none" }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHandler, size: size }) }));
186
+ return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, hasValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), variant: variant, ...labelBoxProps, children: jsx(Input, { style: { ...style, width: "100%", border: "none" }, ...restProps, variant: "borderless", onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHandler, size: size }) }));
166
187
  }
167
188
 
168
- function FloatInputNumber({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }) {
189
+ function FloatInputNumber({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, labelBoxProps, variant, ...restProps }) {
169
190
  const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
170
191
  id: restProps.id,
171
192
  defaultValue,
@@ -179,11 +200,11 @@ function FloatInputNumber({ placeholder, onFocus, onBlur, value, defaultValue, s
179
200
  onChange(value);
180
201
  }
181
202
  }, [onChange]);
182
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(InputNumber, { style: { ...style, width: "100%", border: "none" }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHanlder, rootClassName: "ant-float-label-form-input-number" }) }));
203
+ return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, hasValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), ...labelBoxProps, variant: variant, children: jsx(InputNumber, { style: { ...style, width: "100%", border: "none" }, ...restProps, variant: "borderless", onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHanlder, rootClassName: "ant-float-label-form-input-number" }) }));
183
204
  }
184
205
 
185
206
  const { RangePicker } = DatePicker;
186
- function FloatRangePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }) {
207
+ function FloatRangePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, labelBoxProps, variant, ...restProps }) {
187
208
  const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
188
209
  id: restProps.id?.toString(),
189
210
  defaultValue,
@@ -197,13 +218,13 @@ function FloatRangePicker({ placeholder, onFocus, onBlur, value, defaultValue, s
197
218
  onChange(value, dateString);
198
219
  }
199
220
  }, [onChange]);
200
- const haveValue = useMemo(() => {
221
+ const hasValueFlag = useMemo(() => {
201
222
  return isFocus || hasValue;
202
223
  }, [hasValue, isFocus]);
203
- return (jsx(FloattingLabelBox, { label: haveValue && placeholder ? placeholder.join(" - ") : "", focused: isFocus, haveValue: haveValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(RangePicker, { style: { ...style, width: "100%", border: "none" }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHandler, rootClassName: "ant-float-label-form-picker", placeholder: hasValue ? ["", ""] : placeholder }) }));
224
+ return (jsx(FloattingLabelBox, { label: hasValueFlag && placeholder ? placeholder.join(" - ") : "", focused: isFocus, hasValue: hasValueFlag, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), variant: variant, ...labelBoxProps, children: jsx(RangePicker, { style: { ...style, width: "100%", border: "none" }, ...restProps, variant: "borderless", onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHandler, rootClassName: "ant-float-label-form-picker", placeholder: hasValue ? ["", ""] : placeholder }) }));
204
225
  }
205
226
 
206
- function FloatSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, ...restProps }) {
227
+ function FloatSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, labelBoxProps, variant, ...restProps }) {
207
228
  const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
208
229
  id: restProps.id?.toString(),
209
230
  defaultValue,
@@ -217,10 +238,10 @@ function FloatSelect({ placeholder, onFocus, onBlur, value, defaultValue, style,
217
238
  onChange(value, option);
218
239
  }
219
240
  }, [onChange]);
220
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(Select, { style: { ...style, width: "100%", border: "none" }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: changeHandler, mode: mode, rootClassName: "ant-float-label-form-select" }) }));
241
+ return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, hasValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), variant: variant, ...labelBoxProps, children: jsx(Select, { style: { ...style, width: "100%", border: "none" }, ...restProps, variant: "borderless", onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: changeHandler, mode: mode, rootClassName: "ant-float-label-form-select" }) }));
221
242
  }
222
243
 
223
- function FloatTimePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, ...restProps }) {
244
+ function FloatTimePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, labelBoxProps, variant, ...restProps }) {
224
245
  const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
225
246
  id: restProps.id?.toString(),
226
247
  defaultValue,
@@ -234,14 +255,14 @@ function FloatTimePicker({ placeholder, onFocus, onBlur, value, defaultValue, st
234
255
  onChange(value, option);
235
256
  }
236
257
  }, [onChange]);
237
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(TimePicker, { style: {
258
+ return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, hasValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), variant: variant, ...labelBoxProps, children: jsx(TimePicker, { style: {
238
259
  ...style,
239
260
  width: "100%",
240
261
  border: "none",
241
- }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: changeHandler, mode: mode, rootClassName: "ant-float-label-form-select", placeholder: "" }) }));
262
+ }, ...restProps, variant: "borderless", onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: changeHandler, mode: mode, rootClassName: "ant-float-label-form-select", placeholder: "" }) }));
242
263
  }
243
264
 
244
- function FloatTreeSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, required, ...restProps }) {
265
+ function FloatTreeSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, required, variant, labelBoxProps, ...restProps }) {
245
266
  const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
246
267
  id: restProps.id?.toString(),
247
268
  defaultValue,
@@ -255,15 +276,15 @@ function FloatTreeSelect({ placeholder, onFocus, onBlur, value, defaultValue, st
255
276
  onChange(value, labelList, extra);
256
277
  }
257
278
  }, [onChange]);
258
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(TreeSelect, { style: {
279
+ return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, hasValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), variant: variant, ...labelBoxProps, children: jsx(TreeSelect, { style: {
259
280
  ...style,
260
281
  width: "100%",
261
282
  border: "none",
262
- }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: changeHandler, rootClassName: "ant-float-label-form-select" }) }));
283
+ }, ...restProps, variant: "borderless", onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: changeHandler, rootClassName: "ant-float-label-form-select" }) }));
263
284
  }
264
285
 
265
286
  const { Password } = Input;
266
- function FloatPassword({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }) {
287
+ function FloatPassword({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, labelBoxProps, variant, ...restProps }) {
267
288
  const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
268
289
  id: restProps.id,
269
290
  defaultValue,
@@ -277,7 +298,7 @@ function FloatPassword({ placeholder, onFocus, onBlur, value, defaultValue, styl
277
298
  onChange(value);
278
299
  }
279
300
  }, [onChange]);
280
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(Password, { style: { ...style, width: "100%", border: "none" }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHanlder, rootClassName: "ant-float-label-form-input-password" }) }));
301
+ return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, hasValue: hasValue, width: style?.width, height: style?.height, required: required, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), variant: variant, ...labelBoxProps, children: jsx(Password, { style: { ...style, width: "100%", border: "none" }, ...restProps, variant: "borderless", onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHanlder, rootClassName: "ant-float-label-form-input-password" }) }));
281
302
  }
282
303
 
283
304
  function FloatFormItem({ children, label = "", rules, required, ...restProps }) {
@@ -295,3 +316,4 @@ function FloatFormItem({ children, label = "", rules, required, ...restProps })
295
316
  }
296
317
 
297
318
  export { FloatAutoComplete, FloatCascader, FloatDatePicker, FloatFormItem, FloatInput, FloatInputNumber, FloatPassword, FloatRangePicker, FloatSelect, FloatTimePicker, FloatTreeSelect, FloattingLabelBox };
319
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/component/FloattingLabelBox/index.tsx","../src/hook/useValueHandle.ts","../src/component/FloatAutoComplete/index.tsx","../src/component/FloatCascader/index.tsx","../src/component/FloatDatePicker/index.tsx","../src/component/FloatInput/index.tsx","../src/component/FloatInputNumber/index.tsx","../src/component/FloatRangePicker/index.tsx","../src/component/FloatSelect/index.tsx","../src/component/FloatTimePicker/index.tsx","../src/component/FloatTreeSelect/index.tsx","../src/component/FloatPassword/index.tsx","../src/component/FloatFormItem/index.tsx"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null,null],"names":["_jsxs","_jsx"],"mappings":";;;;;;AAMA,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AAgBrB,SAAU,iBAAiB,CAAC,EAChC,OAAO,EACP,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,KAAK,EACL,MAAM,EACN,MAAM,EACN,QAAQ,EACR,aAAa,EACb,UAAU,EACV,OAAO,GAAG,UAAU,GACG,EAAA;AACvB,IAAA,MAAM,EAAE,KAAK,EAAE,GAAG,QAAQ,EAAE,CAAC;AAE7B,IAAA,MAAM,WAAW,GAAG,OAAO,CAAC,MAAK;AAC/B,QAAA,MAAM,MAAM,GAAG;YACb,iBAAiB,EAAE,KAAK,CAAC,kBAAkB;YAC3C,eAAe,EAAE,KAAK,CAAC,YAAY;YACnC,SAAS,EAAE,KAAK,CAAC,iBAAiB;YAClC,WAAW,EAAE,KAAK,CAAC,WAAW;SAC/B,CAAC;AACF,QAAA,IAAI,MAAM,KAAK,SAAS,EAAE;AACxB,YAAA,MAAM,CAAC,iBAAiB,GAAG,KAAK,CAAC,kBAAkB,CAAC;AACpD,YAAA,MAAM,CAAC,eAAe,GAAG,KAAK,CAAC,sBAAsB,CAAC;AACt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,QAAQ,EACR,GAAG,SAAS,EACO,EAAA;AACnB,IAAA,MAAM,UAAU,GAAG,OAAO,CAAC,MAAK;AAC9B,QAAA,IAAI,QAAQ;AAAE,YAAA,OAAO,QAAQ,CAAC;QAC9B,OAAO,KAAK,EAAE,IAAI,CAChB,CAAC,KAAU,KAAK,KAAK,CAAC,QAAQ,KAAK,SAAS,IAAI,KAAK,CAAC,QAAQ,KAAK,KAAK,CACzE,CAAC;AACJ,KAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;AAEtB,IAAA,QACEA,GAAC,CAAA,IAAI,CAAC,IAAI,IAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAM,GAAA,SAAS,YACvD,QAAQ;AACP,cAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,EAAE;AAC3B,gBAAA,WAAW,EAAE,KAAK;AAClB,gBAAA,QAAQ,EAAE,UAAU;aACrB,CAAC;AACJ,cAAE,QAAQ,EACF,CAAA,EACZ;AACJ;;;;"}
package/dist/package.json CHANGED
@@ -1,33 +1,33 @@
1
- {
2
- "name": "ant-float-label",
3
- "version": "1.1.0",
4
- "description": "Antd 5 form style similar to MUI",
5
- "main": "dist/index.js",
6
- "module": "dist/index.js",
7
- "license": "MIT",
8
- "type": "module",
9
- "scripts": {
10
- "build": "rollup -c --bundleConfigAsCjs"
11
- },
12
- "files": [
13
- "/dist",
14
- "LICENSE"
15
- ],
16
- "devDependencies": {
17
- "@rollup/plugin-typescript": "^11.1.6",
18
- "@types/react": "^18.2.69",
19
- "@types/react-dom": "^18.2.22",
20
- "rollup": "^4.13.0",
21
- "rollup-plugin-copy": "^3.5.0",
22
- "rollup-plugin-delete": "^2.0.0",
23
- "rollup-plugin-dts": "^6.1.0",
24
- "rollup-plugin-import-css": "^3.5.0",
25
- "tslib": "^2.6.2",
26
- "typescript": "^5.4.3"
27
- },
28
- "dependencies": {
29
- "antd": "^5.15.3",
30
- "react": "^18.2.0",
31
- "react-dom": "^18.2.0"
32
- }
33
- }
1
+ {
2
+ "name": "ant-float-label",
3
+ "version": "1.2.0",
4
+ "description": "Antd 5 form style similar to MUI",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "license": "MIT",
8
+ "type": "module",
9
+ "scripts": {
10
+ "build": "rollup -c --bundleConfigAsCjs --sourcemap"
11
+ },
12
+ "files": [
13
+ "/dist",
14
+ "LICENSE"
15
+ ],
16
+ "devDependencies": {
17
+ "@rollup/plugin-typescript": "^11.1.6",
18
+ "@types/react": "^18.2.69",
19
+ "@types/react-dom": "^18.2.22",
20
+ "rollup": "^4.13.0",
21
+ "rollup-plugin-copy": "^3.5.0",
22
+ "rollup-plugin-delete": "^2.0.0",
23
+ "rollup-plugin-dts": "^6.1.0",
24
+ "rollup-plugin-import-css": "^3.5.0",
25
+ "tslib": "^2.6.2",
26
+ "typescript": "^5.4.3"
27
+ },
28
+ "dependencies": {
29
+ "antd": "^5.27.0",
30
+ "react": "^18.3.1",
31
+ "react-dom": "^18.3.1"
32
+ }
33
+ }
package/package.json CHANGED
@@ -1,33 +1,33 @@
1
- {
2
- "name": "ant-float-label",
3
- "version": "1.1.0",
4
- "description": "Antd 5 form style similar to MUI",
5
- "main": "dist/index.js",
6
- "module": "dist/index.js",
7
- "license": "MIT",
8
- "type": "module",
9
- "scripts": {
10
- "build": "rollup -c --bundleConfigAsCjs"
11
- },
12
- "files": [
13
- "/dist",
14
- "LICENSE"
15
- ],
16
- "devDependencies": {
17
- "@rollup/plugin-typescript": "^11.1.6",
18
- "@types/react": "^18.2.69",
19
- "@types/react-dom": "^18.2.22",
20
- "rollup": "^4.13.0",
21
- "rollup-plugin-copy": "^3.5.0",
22
- "rollup-plugin-delete": "^2.0.0",
23
- "rollup-plugin-dts": "^6.1.0",
24
- "rollup-plugin-import-css": "^3.5.0",
25
- "tslib": "^2.6.2",
26
- "typescript": "^5.4.3"
27
- },
28
- "dependencies": {
29
- "antd": "^5.15.3",
30
- "react": "^18.2.0",
31
- "react-dom": "^18.2.0"
32
- }
33
- }
1
+ {
2
+ "name": "ant-float-label",
3
+ "version": "1.2.0",
4
+ "description": "Antd 5 form style similar to MUI",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "license": "MIT",
8
+ "type": "module",
9
+ "scripts": {
10
+ "build": "rollup -c --bundleConfigAsCjs --sourcemap"
11
+ },
12
+ "files": [
13
+ "/dist",
14
+ "LICENSE"
15
+ ],
16
+ "devDependencies": {
17
+ "@rollup/plugin-typescript": "^11.1.6",
18
+ "@types/react": "^18.2.69",
19
+ "@types/react-dom": "^18.2.22",
20
+ "rollup": "^4.13.0",
21
+ "rollup-plugin-copy": "^3.5.0",
22
+ "rollup-plugin-delete": "^2.0.0",
23
+ "rollup-plugin-dts": "^6.1.0",
24
+ "rollup-plugin-import-css": "^3.5.0",
25
+ "tslib": "^2.6.2",
26
+ "typescript": "^5.4.3"
27
+ },
28
+ "dependencies": {
29
+ "antd": "^5.27.0",
30
+ "react": "^18.3.1",
31
+ "react-dom": "^18.3.1"
32
+ }
33
+ }