ant-float-label 1.0.8 → 1.1.1

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/README.md CHANGED
@@ -6,17 +6,46 @@ npm install ant-float-label
6
6
 
7
7
  ```js
8
8
  import {
9
- FloatDatePicker,
10
- FloatInput,
11
- FloatInputNumber,
12
- FloatSelect,
13
- FloatRangePicker,
14
- FloatCascader,
15
- FloatTreeSelect,
16
- FloatAutoComplete,
17
- FloatTimePicker,
18
- FloatPassword
9
+ FloatDatePicker,
10
+ FloatInput,
11
+ FloatInputNumber,
12
+ FloatSelect,
13
+ FloatRangePicker,
14
+ FloatCascader,
15
+ FloatTreeSelect,
16
+ FloatAutoComplete,
17
+ FloatTimePicker,
18
+ FloatPassword,
19
19
  } from "ant-float-label";
20
20
  ```
21
21
 
22
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/README.md CHANGED
@@ -6,17 +6,46 @@ npm install ant-float-label
6
6
 
7
7
  ```js
8
8
  import {
9
- FloatDatePicker,
10
- FloatInput,
11
- FloatInputNumber,
12
- FloatSelect,
13
- FloatRangePicker,
14
- FloatCascader,
15
- FloatTreeSelect,
16
- FloatAutoComplete,
17
- FloatTimePicker,
18
- FloatPassword
9
+ FloatDatePicker,
10
+ FloatInput,
11
+ FloatInputNumber,
12
+ FloatSelect,
13
+ FloatRangePicker,
14
+ FloatCascader,
15
+ FloatTreeSelect,
16
+ FloatAutoComplete,
17
+ FloatTimePicker,
18
+ FloatPassword,
19
19
  } from "ant-float-label";
20
20
  ```
21
21
 
22
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,5 +1,6 @@
1
1
  import { AutoCompleteProps } from "antd";
2
2
  import "./index.css";
3
3
  export interface FloatAutoCompleteProps extends AutoCompleteProps {
4
+ required?: boolean;
4
5
  }
5
- export declare function FloatAutoComplete({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, ...restProps }: FloatAutoCompleteProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function FloatAutoComplete({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }: FloatAutoCompleteProps): import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,8 @@
1
1
  import { CascaderProps } from "antd";
2
- export type FloatCascadertProps = CascaderProps;
3
- export declare function FloatCascader({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, ...restProps }: FloatCascadertProps): import("react/jsx-runtime").JSX.Element;
2
+ export interface FloatCascadertProps extends CascaderProps {
3
+ multiple?: true;
4
+ required?: boolean;
5
+ value?: any;
6
+ defaultValue?: any;
7
+ }
8
+ export declare function FloatCascader({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, ...restProps }: FloatCascadertProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { DatePickerProps } from "antd";
2
2
  import "./index.css";
3
3
  export interface FloatDatePickerProps extends DatePickerProps {
4
+ required?: boolean;
4
5
  }
5
- export declare function FloatDatePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, ...restProps }: FloatDatePickerProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function FloatDatePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, ...restProps }: FloatDatePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import { FormItemProps } from "antd";
3
+ export interface FloatFormItemProps extends FormItemProps {
4
+ children?: JSX.Element;
5
+ }
6
+ export declare function FloatFormItem({ children, label, rules, required, ...restProps }: FloatFormItemProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { InputProps } from "antd";
2
2
  export interface FloatInputProps extends InputProps {
3
+ required?: boolean;
3
4
  }
4
- export declare function FloatInput({ placeholder, onFocus, onBlur, value, defaultValue, style, size, ...restProps }: FloatInputProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function FloatInput({ placeholder, onFocus, onBlur, onChange, value, defaultValue, style, size, required, ...restProps }: FloatInputProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { InputNumberProps } from "antd";
2
2
  import "./index.css";
3
3
  export interface FloatInputNumberProps extends InputNumberProps {
4
+ required?: boolean;
4
5
  }
5
- export declare function FloatInputNumber({ placeholder, onFocus, onBlur, value, defaultValue, style, size, ...restProps }: FloatInputNumberProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function FloatInputNumber({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }: FloatInputNumberProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { PasswordProps } from "antd/es/input";
2
2
  import "./index.css";
3
3
  export interface FloatPasswordProps extends PasswordProps {
4
+ required?: boolean;
4
5
  }
5
- export declare function FloatPassword({ placeholder, onFocus, onBlur, value, defaultValue, style, size, ...restProps }: FloatPasswordProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function FloatPassword({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }: FloatPasswordProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import "./index.css";
2
2
  import { RangePickerProps } from "antd/es/date-picker";
3
3
  export interface FloatRangePickerProps extends RangePickerProps {
4
+ required?: boolean;
4
5
  }
5
- export declare function FloatRangePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, ...restProps }: FloatRangePickerProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function FloatRangePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }: FloatRangePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +1,6 @@
1
1
  import { SelectProps } from "antd";
2
2
  import "./index.css";
3
3
  export interface FloatSelectProps extends SelectProps {
4
+ required?: boolean;
4
5
  }
5
- export declare function FloatSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, ...restProps }: FloatSelectProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function FloatSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, ...restProps }: FloatSelectProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { TimePickerProps } from "antd";
2
2
  export interface FloatTimePickerProps extends TimePickerProps {
3
+ required?: boolean;
3
4
  }
4
- export declare function FloatTimePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, ...restProps }: FloatTimePickerProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function FloatTimePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, ...restProps }: FloatTimePickerProps): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,5 @@
1
1
  import { TreeSelectProps } from "antd";
2
2
  export interface FloatTreeSelectProps extends TreeSelectProps {
3
+ required?: boolean;
3
4
  }
4
- export declare function FloatTreeSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, ...restProps }: FloatTreeSelectProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function FloatTreeSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, required, ...restProps }: FloatTreeSelectProps): import("react/jsx-runtime").JSX.Element;
@@ -9,5 +9,6 @@ export interface FloattingLabelBoxProps {
9
9
  width?: string | number;
10
10
  height?: string | number;
11
11
  status?: InputStatus;
12
+ required?: boolean;
12
13
  }
13
- export declare function FloattingLabelBox({ focused, haveValue, label, children, width, height, status, }: FloattingLabelBoxProps): import("react/jsx-runtime").JSX.Element;
14
+ export declare function FloattingLabelBox({ focused, haveValue, label, children, width, height, status, required, }: FloattingLabelBoxProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export declare function useValueHandle({ defaultValue, value, id, onFocus, onBlur }: {
3
+ defaultValue?: any;
4
+ value?: any;
5
+ id?: string;
6
+ onFocus?: (...args: any) => void;
7
+ onBlur?: (...args: any) => void;
8
+ }): {
9
+ hasValue: boolean;
10
+ handleChange: import("react").Dispatch<any>;
11
+ handleFocus: (...args: any) => void;
12
+ handleBlur: (...args: any) => void;
13
+ isFocus: boolean;
14
+ };
package/dist/index.css CHANGED
@@ -1,4 +1,4 @@
1
- .ant-float-label-box{position:relative;line-height:normal;}.ant-float-label-box-label{position:absolute;max-width:99%;overflow:hidden;text-overflow:ellipsis;left:0;top:0;font-size:0.85rem;white-space:nowrap;font-weight:400;transform-origin:top left;pointer-events:none;height:100%;display:flex;align-items:center;transition:color 200ms cubic-bezier(0,0,0.2,1) 0ms,transform 200ms cubic-bezier(0,0,0.2,1) 0ms,max-width 200ms cubic-bezier(0,0,0.2,1) 0ms;}.ant-float-label-box-fieldset{padding:0 8px;position:absolute;top:-5px;left:0;right:0;bottom:0;margin:0;pointer-events:none;text-align:left;box-sizing:border-box;min-width:0%;}.ant-float-label-box-legend{width:auto!important;overflow:hidden;display:block;padding:0!important;height:11px!important;font-size:0.85rem!important;visibility:hidden;transition:max-width 100ms cubic-bezier(0.0,0,0.2,1) 50ms;white-space:nowrap;padding-inline:0!important;}
1
+ .ant-float-label-box{position:relative;line-height:normal;}.ant-float-label-box-label{position:absolute;max-width:99%;overflow:hidden;text-overflow:ellipsis;left:0;top:0;font-size:0.85rem;white-space:nowrap;font-weight:400;transform-origin:top left;pointer-events:none;height:100%;display:flex;align-items:center;transition:color 200ms cubic-bezier(0,0,0.2,1) 0ms,transform 200ms cubic-bezier(0,0,0.2,1) 0ms,max-width 200ms cubic-bezier(0,0,0.2,1) 0ms;}.ant-float-label-box-fieldset{padding:0 8px;position:absolute;top:-5px;left:0;right:0;bottom:0;margin:0;pointer-events:none;text-align:left;box-sizing:border-box;min-width:0%;}.ant-float-label-box-legend{width:auto!important;overflow:hidden;display:block;padding:0!important;height:11px!important;font-size:0.85rem!important;visibility:hidden;transition:max-width 100ms cubic-bezier(0,0,0.2,1) 50ms;white-space:nowrap;padding-inline:0!important;}
2
2
  .ant-float-label-form-auto-complete .ant-select-selector {border:none!important;box-shadow:none!important;}
3
3
  .ant-float-label-form-picker {border:none!important;box-shadow:none!important;}
4
4
  .ant-float-label-form-input-number {border:none!important;box-shadow:none!important;}
package/dist/index.d.ts CHANGED
@@ -9,3 +9,4 @@ export * from "./component/FloatTimePicker";
9
9
  export * from "./component/FloattingLabelBox";
10
10
  export * from "./component/FloatTreeSelect";
11
11
  export * from "./component/FloatPassword";
12
+ export * from "./component/FloatFormItem";
package/dist/index.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import "./index.css"
2
2
  import { jsxs, jsx } from 'react/jsx-runtime';
3
- import { theme, AutoComplete, Cascader, DatePicker, Input, InputNumber, Select, TimePicker, TreeSelect } from 'antd';
4
- import { useMemo, useRef, useState, useCallback, useEffect } from 'react';
3
+ import { theme, Form, AutoComplete, Cascader, DatePicker, Input, InputNumber, Select, TimePicker, TreeSelect } from 'antd';
4
+ import React, { useMemo, useRef, useState, useContext, useCallback, useEffect } from 'react';
5
+ import { FormContext } from 'antd/es/form/context';
5
6
 
6
7
  const { useToken } = theme;
7
- function FloattingLabelBox({ focused, haveValue, label, children, width, height, status, }) {
8
+ function FloattingLabelBox({ focused, haveValue, label, children, width, height, status, required, }) {
8
9
  const { token } = useToken();
9
10
  const statusColor = useMemo(() => {
10
11
  const colors = {
@@ -41,7 +42,7 @@ function FloattingLabelBox({ focused, haveValue, label, children, width, height,
41
42
  transform: focused || haveValue
42
43
  ? "translate(14px, -9px) scale(0.75)"
43
44
  : `translate(1em, 0px) scale(1)`,
44
- }, children: label }), jsx("fieldset", { style: {
45
+ }, 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: {
45
46
  border: focused
46
47
  ? `2px solid ${statusColor.borderColorActive}`
47
48
  : `1px solid ${statusColor.borderColor}`,
@@ -51,371 +52,244 @@ function FloattingLabelBox({ focused, haveValue, label, children, width, height,
51
52
  }, children: label }) })] }));
52
53
  }
53
54
 
54
- function FloatAutoComplete({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, ...restProps }) {
55
+ function useValueHandle({ defaultValue, value, id, onFocus, onBlur }) {
55
56
  const initFlag = useRef(false);
56
57
  const [isFocus, setIsFocus] = useState(false);
58
+ const { form, name: formName } = useContext(FormContext);
57
59
  const [inputValue, setInputValue] = useState(defaultValue ?? value);
58
- const handleFocus = useCallback((e) => {
60
+ const changeValue = Form.useWatch(formName ? id?.replace(formName + "_", "") : id, form);
61
+ const handleFocus = useCallback((...args) => {
59
62
  setIsFocus(true);
60
- if (onFocus) {
61
- onFocus(e);
63
+ if (typeof onFocus === "function") {
64
+ onFocus(...args);
62
65
  }
63
66
  }, [onFocus]);
64
- const handleBlur = useCallback((e) => {
67
+ const handleBlur = useCallback((...args) => {
65
68
  setIsFocus(false);
66
- setInputValue(e.target.value);
67
- if (onBlur) {
68
- onBlur(e);
69
+ if (typeof onBlur === "function") {
70
+ onBlur(args);
69
71
  }
70
72
  }, [onBlur]);
71
- const handleChange = useCallback((value, option) => {
72
- setInputValue(value);
73
- if (onChange) {
74
- onChange(value, option);
75
- }
76
- }, [onChange]);
77
73
  useEffect(() => {
78
74
  if (initFlag.current) {
79
75
  setInputValue(value);
80
76
  }
81
77
  initFlag.current = true;
82
- return () => {
83
- initFlag.current = false;
84
- };
85
78
  }, [value]);
86
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: !!inputValue, width: style?.width, height: style?.height, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(AutoComplete, { style: {
79
+ useEffect(() => {
80
+ if (form && id) {
81
+ setInputValue(changeValue);
82
+ }
83
+ }, [changeValue, form]);
84
+ return {
85
+ hasValue: Array.isArray(inputValue) ? inputValue.length > 0 : typeof value === "number" ? true : !!inputValue,
86
+ handleChange: setInputValue,
87
+ handleFocus,
88
+ handleBlur,
89
+ isFocus
90
+ };
91
+ }
92
+
93
+ function FloatAutoComplete({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }) {
94
+ const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
95
+ id: restProps.id,
96
+ defaultValue,
97
+ value,
98
+ onFocus,
99
+ onBlur,
100
+ });
101
+ const changeHandler = useCallback((value, option) => {
102
+ handleChange(value);
103
+ if (onChange) {
104
+ onChange(value, option);
105
+ }
106
+ }, [onChange]);
107
+ 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: {
87
108
  width: "100%",
88
109
  ...style,
89
110
  border: "none",
90
- }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: handleChange, rootClassName: "ant-float-label-form-auto-complete" }) }));
111
+ }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, onChange: changeHandler, rootClassName: "ant-float-label-form-auto-complete" }) }));
91
112
  }
92
113
 
93
- function FloatCascader({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, ...restProps }) {
94
- const initFlag = useRef(false);
95
- const [isFocus, setIsFocus] = useState(false);
96
- const [inputValue, setInputValue] = useState(defaultValue ?? value);
97
- const handleFocus = useCallback((e) => {
98
- setIsFocus(true);
99
- if (onFocus) {
100
- onFocus(e);
101
- }
102
- }, [onFocus]);
103
- const handleBlur = useCallback((e) => {
104
- setIsFocus(false);
105
- if (onBlur) {
106
- onBlur(e);
107
- }
108
- }, [onBlur]);
109
- const handleChange = useCallback((value, selectedOptions) => {
110
- setInputValue(value);
114
+ function FloatCascader({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, ...restProps }) {
115
+ const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
116
+ id: restProps.id,
117
+ defaultValue,
118
+ value,
119
+ onFocus,
120
+ onBlur,
121
+ });
122
+ const changehandler = useCallback((value, selectedOptions) => {
123
+ handleChange(value);
111
124
  if (onChange) {
112
125
  onChange(value, selectedOptions);
113
126
  }
114
127
  }, [onChange]);
115
- useEffect(() => {
116
- if (initFlag.current) {
117
- setInputValue(value);
118
- }
119
- initFlag.current = true;
120
- return () => {
121
- initFlag.current = false;
122
- };
123
- }, [value]);
124
- const haveValue = useMemo(() => {
125
- const currValue = Array.isArray(inputValue) && inputValue.length === 0
126
- ? undefined
127
- : inputValue;
128
- return !!currValue;
129
- }, [inputValue]);
130
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: haveValue, width: style?.width, height: style?.height, 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, size: size, onChange: handleChange, rootClassName: "ant-float-label-form-select" }) }));
128
+ 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" }) }));
131
129
  }
132
130
 
133
- function FloatDatePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, ...restProps }) {
134
- const initFlag = useRef(false);
135
- const [isFocus, setIsFocus] = useState(false);
136
- const [inputValue, setInputValue] = useState(defaultValue ?? value);
137
- const handleFocus = useCallback((event, info) => {
138
- setIsFocus(true);
139
- if (onFocus) {
140
- onFocus(event, info);
141
- }
142
- }, [onFocus]);
143
- const handleBlur = useCallback((event, info) => {
144
- setIsFocus(false);
145
- if (onBlur) {
146
- onBlur(event, info);
147
- }
148
- }, [onBlur]);
149
- const handleChange = useCallback((value, dateString) => {
150
- setInputValue(value);
131
+ function FloatDatePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, required, onChange, ...restProps }) {
132
+ const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
133
+ id: restProps.id,
134
+ defaultValue,
135
+ value,
136
+ onFocus,
137
+ onBlur,
138
+ });
139
+ const changeHandler = useCallback((value, dateString) => {
140
+ handleChange(value);
151
141
  if (onChange) {
152
142
  onChange(value, dateString);
153
143
  }
154
144
  }, [onChange]);
155
- useEffect(() => {
156
- if (initFlag.current) {
157
- setInputValue(value);
158
- }
159
- initFlag.current = true;
160
- return () => {
161
- initFlag.current = false;
162
- };
163
- }, [value]);
164
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: !!inputValue, width: style?.width, height: style?.height, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(DatePicker, { style: { ...style, width: "100%", border: "none" }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: handleChange, rootClassName: "ant-float-label-form-picker", placeholder: "" }) }));
145
+ 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: "" }) }));
165
146
  }
166
147
 
167
- function FloatInput({ placeholder, onFocus, onBlur, value, defaultValue, style, size, ...restProps }) {
168
- const initFlag = useRef(false);
169
- const [isFocus, setIsFocus] = useState(false);
170
- const [inputValue, setInputValue] = useState(defaultValue ?? value);
171
- const handleFocus = useCallback((e) => {
172
- setIsFocus(true);
173
- if (onFocus) {
174
- onFocus(e);
175
- }
176
- }, [onFocus]);
177
- const handleBlur = useCallback((e) => {
178
- setIsFocus(false);
179
- setInputValue(e.target.value);
180
- if (onBlur) {
181
- onBlur(e);
182
- }
183
- }, [onBlur]);
184
- useEffect(() => {
185
- if (initFlag.current) {
186
- setInputValue(value);
148
+ function FloatInput({ placeholder, onFocus, onBlur, onChange, value, defaultValue, style, size, required, ...restProps }) {
149
+ const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
150
+ id: restProps.id,
151
+ defaultValue,
152
+ value,
153
+ onFocus,
154
+ onBlur,
155
+ });
156
+ const changeHandler = useCallback((e) => {
157
+ handleChange(e.target.value);
158
+ if (onChange) {
159
+ onChange(e);
187
160
  }
188
- initFlag.current = true;
189
- return () => {
190
- initFlag.current = false;
191
- };
192
- }, [value]);
193
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: !!inputValue, width: style?.width, height: style?.height, 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, size: size }) }));
161
+ }, [onChange]);
162
+ 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 }) }));
194
163
  }
195
164
 
196
- function FloatInputNumber({ placeholder, onFocus, onBlur, value, defaultValue, style, size, ...restProps }) {
197
- const initFlag = useRef(false);
198
- const [isFocus, setIsFocus] = useState(false);
199
- const [inputValue, setInputValue] = useState(defaultValue ?? value);
200
- const handleFocus = useCallback((e) => {
201
- setIsFocus(true);
202
- if (onFocus) {
203
- onFocus(e);
204
- }
205
- }, [onFocus]);
206
- const handleBlur = useCallback((e) => {
207
- setIsFocus(false);
208
- setInputValue(e.target.value);
209
- if (onBlur) {
210
- onBlur(e);
211
- }
212
- }, [onBlur]);
213
- useEffect(() => {
214
- if (initFlag.current) {
215
- setInputValue(value);
165
+ function FloatInputNumber({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }) {
166
+ const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
167
+ id: restProps.id,
168
+ defaultValue,
169
+ value,
170
+ onFocus,
171
+ onBlur,
172
+ });
173
+ const changeHanlder = useCallback((value) => {
174
+ handleChange(value);
175
+ if (onChange) {
176
+ onChange(value);
216
177
  }
217
- initFlag.current = true;
218
- return () => {
219
- initFlag.current = false;
220
- };
221
- }, [value]);
222
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: !!inputValue, width: style?.width, height: style?.height, 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, size: size, rootClassName: "ant-float-label-form-input-number" }) }));
178
+ }, [onChange]);
179
+ 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" }) }));
223
180
  }
224
181
 
225
182
  const { RangePicker } = DatePicker;
226
- function FloatRangePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, ...restProps }) {
227
- const initFlag = useRef(false);
228
- const [isFocus, setIsFocus] = useState(false);
229
- const [inputValue, setInputValue] = useState(defaultValue ?? value);
230
- const handleFocus = useCallback((event, info) => {
231
- setIsFocus(true);
232
- if (onFocus) {
233
- onFocus(event, info);
234
- }
235
- }, [onFocus]);
236
- const handleBlur = useCallback((event, info) => {
237
- setIsFocus(false);
238
- if (onBlur) {
239
- onBlur(event, info);
240
- }
241
- }, [onBlur]);
242
- const handleChange = useCallback((value, dateString) => {
243
- setInputValue(value);
183
+ function FloatRangePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }) {
184
+ const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
185
+ id: restProps.id?.toString(),
186
+ defaultValue,
187
+ value,
188
+ onFocus,
189
+ onBlur,
190
+ });
191
+ const changeHandler = useCallback((value, dateString) => {
192
+ handleChange(value);
244
193
  if (onChange) {
245
194
  onChange(value, dateString);
246
195
  }
247
196
  }, [onChange]);
248
- useEffect(() => {
249
- if (initFlag.current) {
250
- setInputValue(value);
251
- }
252
- initFlag.current = true;
253
- return () => {
254
- initFlag.current = false;
255
- };
256
- }, [value]);
257
197
  const haveValue = useMemo(() => {
258
- return !!(isFocus || inputValue);
259
- }, [inputValue, isFocus]);
260
- return (jsx(FloattingLabelBox, { label: haveValue && placeholder ? placeholder.join(" - ") : "", focused: isFocus, haveValue: haveValue, width: style?.width, height: style?.height, 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: handleChange, rootClassName: "ant-float-label-form-picker", placeholder: haveValue ? ["", ""] : placeholder }) }));
198
+ return isFocus || hasValue;
199
+ }, [hasValue, isFocus]);
200
+ 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 }) }));
261
201
  }
262
202
 
263
- function FloatSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, ...restProps }) {
264
- const initFlag = useRef(false);
265
- const [isFocus, setIsFocus] = useState(false);
266
- const [inputValue, setInputValue] = useState(defaultValue ?? value);
267
- const handleFocus = useCallback((e) => {
268
- setIsFocus(true);
269
- if (onFocus) {
270
- onFocus(e);
271
- }
272
- }, [onFocus]);
273
- const handleBlur = useCallback((e) => {
274
- setIsFocus(false);
275
- if (onBlur) {
276
- onBlur(e);
277
- }
278
- }, [onBlur]);
279
- const handleChange = useCallback((value, option) => {
280
- setInputValue(value);
203
+ function FloatSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, ...restProps }) {
204
+ const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
205
+ id: restProps.id?.toString(),
206
+ defaultValue,
207
+ value,
208
+ onFocus,
209
+ onBlur,
210
+ });
211
+ const changeHandler = useCallback((value, option) => {
212
+ handleChange(value);
281
213
  if (onChange) {
282
214
  onChange(value, option);
283
215
  }
284
216
  }, [onChange]);
285
- useEffect(() => {
286
- if (initFlag.current) {
287
- setInputValue(value);
288
- }
289
- initFlag.current = true;
290
- return () => {
291
- initFlag.current = false;
292
- };
293
- }, [value]);
294
- const haveValue = useMemo(() => {
295
- const currValue = Array.isArray(inputValue) && inputValue.length === 0
296
- ? undefined
297
- : inputValue;
298
- return !!currValue;
299
- }, [inputValue]);
300
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: haveValue, width: style?.width, height: style?.height, 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: handleChange, mode: mode, rootClassName: "ant-float-label-form-select" }) }));
217
+ 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" }) }));
301
218
  }
302
219
 
303
- function FloatTimePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, ...restProps }) {
304
- const initFlag = useRef(false);
305
- const [isFocus, setIsFocus] = useState(false);
306
- const [inputValue, setInputValue] = useState(defaultValue ?? value);
307
- const handleFocus = useCallback((e, info) => {
308
- setIsFocus(true);
309
- if (onFocus) {
310
- onFocus(e, info);
311
- }
312
- }, [onFocus]);
313
- const handleBlur = useCallback((e, info) => {
314
- setIsFocus(false);
315
- if (onBlur) {
316
- onBlur(e, info);
317
- }
318
- }, [onBlur]);
319
- const handleChange = useCallback((value, option) => {
320
- setInputValue(value);
220
+ function FloatTimePicker({ placeholder, onFocus, onBlur, value, defaultValue, style, size, mode, onChange, required, ...restProps }) {
221
+ const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
222
+ id: restProps.id?.toString(),
223
+ defaultValue,
224
+ value,
225
+ onFocus,
226
+ onBlur,
227
+ });
228
+ const changeHandler = useCallback((value, option) => {
229
+ handleChange(value);
321
230
  if (onChange) {
322
231
  onChange(value, option);
323
232
  }
324
233
  }, [onChange]);
325
- useEffect(() => {
326
- if (initFlag.current) {
327
- setInputValue(value);
328
- }
329
- initFlag.current = true;
330
- return () => {
331
- initFlag.current = false;
332
- };
333
- }, [value]);
334
- const haveValue = useMemo(() => {
335
- const currValue = Array.isArray(inputValue) && inputValue.length === 0
336
- ? undefined
337
- : inputValue;
338
- return !!currValue;
339
- }, [inputValue]);
340
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: haveValue, width: style?.width, height: style?.height, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(TimePicker, { style: {
234
+ 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: {
341
235
  ...style,
342
236
  width: "100%",
343
237
  border: "none",
344
- }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: handleChange, mode: mode, rootClassName: "ant-float-label-form-select", placeholder: "" }) }));
238
+ }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: changeHandler, mode: mode, rootClassName: "ant-float-label-form-select", placeholder: "" }) }));
345
239
  }
346
240
 
347
- function FloatTreeSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, ...restProps }) {
348
- const initFlag = useRef(false);
349
- const [isFocus, setIsFocus] = useState(false);
350
- const [inputValue, setInputValue] = useState(defaultValue ?? value);
351
- const handleFocus = useCallback((e) => {
352
- setIsFocus(true);
353
- if (onFocus) {
354
- onFocus(e);
355
- }
356
- }, [onFocus]);
357
- const handleBlur = useCallback((e) => {
358
- setIsFocus(false);
359
- if (onBlur) {
360
- onBlur(e);
361
- }
362
- }, [onBlur]);
363
- const handleChange = useCallback((value, labelList, extra) => {
364
- setInputValue(value);
241
+ function FloatTreeSelect({ placeholder, onFocus, onBlur, value, defaultValue, style, size, onChange, required, ...restProps }) {
242
+ const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
243
+ id: restProps.id?.toString(),
244
+ defaultValue,
245
+ value,
246
+ onFocus,
247
+ onBlur,
248
+ });
249
+ const changeHandler = useCallback((value, labelList, extra) => {
250
+ handleChange(value);
365
251
  if (onChange) {
366
252
  onChange(value, labelList, extra);
367
253
  }
368
254
  }, [onChange]);
369
- useEffect(() => {
370
- if (initFlag.current) {
371
- setInputValue(value);
372
- }
373
- initFlag.current = true;
374
- return () => {
375
- initFlag.current = false;
376
- };
377
- }, [value]);
378
- const haveValue = useMemo(() => {
379
- const currValue = Array.isArray(inputValue) && inputValue.length === 0
380
- ? undefined
381
- : inputValue;
382
- return !!currValue;
383
- }, [inputValue]);
384
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: haveValue, width: style?.width, height: style?.height, status: restProps.status || (restProps["aria-invalid"] ? "error" : undefined), children: jsx(TreeSelect, { style: {
255
+ 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: {
385
256
  ...style,
386
257
  width: "100%",
387
258
  border: "none",
388
- }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: handleChange, rootClassName: "ant-float-label-form-select" }) }));
259
+ }, variant: "borderless", ...restProps, onFocus: handleFocus, onBlur: handleBlur, value: value, defaultValue: defaultValue, size: size, onChange: changeHandler, rootClassName: "ant-float-label-form-select" }) }));
389
260
  }
390
261
 
391
262
  const { Password } = Input;
392
- function FloatPassword({ placeholder, onFocus, onBlur, value, defaultValue, style, size, ...restProps }) {
393
- const initFlag = useRef(false);
394
- const [isFocus, setIsFocus] = useState(false);
395
- const [inputValue, setInputValue] = useState(defaultValue ?? value);
396
- const handleFocus = useCallback((e) => {
397
- setIsFocus(true);
398
- if (onFocus) {
399
- onFocus(e);
400
- }
401
- }, [onFocus]);
402
- const handleBlur = useCallback((e) => {
403
- setIsFocus(false);
404
- setInputValue(e.target.value);
405
- if (onBlur) {
406
- onBlur(e);
407
- }
408
- }, [onBlur]);
409
- useEffect(() => {
410
- if (initFlag.current) {
411
- setInputValue(value);
263
+ function FloatPassword({ placeholder, onFocus, onBlur, value, defaultValue, style, onChange, required, ...restProps }) {
264
+ const { hasValue, handleChange, handleBlur, handleFocus, isFocus } = useValueHandle({
265
+ id: restProps.id,
266
+ defaultValue,
267
+ value,
268
+ onFocus,
269
+ onBlur,
270
+ });
271
+ const changeHanlder = useCallback((value) => {
272
+ handleChange(value);
273
+ if (onChange) {
274
+ onChange(value);
412
275
  }
413
- initFlag.current = true;
414
- return () => {
415
- initFlag.current = false;
416
- };
417
- }, [value]);
418
- return (jsx(FloattingLabelBox, { label: placeholder, focused: isFocus, haveValue: !!inputValue, width: style?.width, height: style?.height, 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, size: size, rootClassName: "ant-float-label-form-input-password" }) }));
276
+ }, [onChange]);
277
+ 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" }) }));
278
+ }
279
+
280
+ function FloatFormItem({ children, label = "", rules, required, ...restProps }) {
281
+ const isRequired = useMemo(() => {
282
+ if (required)
283
+ return required;
284
+ return rules?.some((value) => value.required !== undefined && value.required !== false);
285
+ }, [required, rules]);
286
+ return (jsx(Form.Item, { required: required, rules: rules, ...restProps, children: children
287
+ ? React.cloneElement(children, {
288
+ placeholder: label,
289
+ required: isRequired,
290
+ })
291
+ : children }));
419
292
  }
420
293
 
421
- export { FloatAutoComplete, FloatCascader, FloatDatePicker, FloatInput, FloatInputNumber, FloatPassword, FloatRangePicker, FloatSelect, FloatTimePicker, FloatTreeSelect, FloattingLabelBox };
294
+ export { FloatAutoComplete, FloatCascader, FloatDatePicker, FloatFormItem, FloatInput, FloatInputNumber, FloatPassword, FloatRangePicker, FloatSelect, FloatTimePicker, FloatTreeSelect, FloattingLabelBox };
295
+ //# 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":";;;;;;AAKA,MAAM,EAAE,QAAQ,EAAE,GAA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
2
2
  "name": "ant-float-label",
3
- "version": "1.0.7",
3
+ "version": "1.1.1",
4
4
  "description": "Antd 5 form style similar to MUI",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "license": "MIT",
8
8
  "type": "module",
9
9
  "scripts": {
10
- "build": "rollup -c --bundleConfigAsCjs"
10
+ "build": "rollup -c --bundleConfigAsCjs --sourcemap"
11
11
  },
12
12
  "files": [
13
13
  "/dist",
@@ -26,8 +26,8 @@
26
26
  "typescript": "^5.4.3"
27
27
  },
28
28
  "dependencies": {
29
- "antd": "^5.15.3",
30
- "react": "^18.2.0",
31
- "react-dom": "^18.2.0"
29
+ "antd": "^5.20.3",
30
+ "react": "^18.3.1",
31
+ "react-dom": "^18.3.1"
32
32
  }
33
33
  }
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "ant-float-label",
3
- "version": "1.0.8",
3
+ "version": "1.1.1",
4
4
  "description": "Antd 5 form style similar to MUI",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
7
7
  "license": "MIT",
8
8
  "type": "module",
9
9
  "scripts": {
10
- "build": "rollup -c --bundleConfigAsCjs"
10
+ "build": "rollup -c --bundleConfigAsCjs --sourcemap"
11
11
  },
12
12
  "files": [
13
13
  "/dist",
@@ -26,8 +26,8 @@
26
26
  "typescript": "^5.4.3"
27
27
  },
28
28
  "dependencies": {
29
- "antd": "^5.15.3",
30
- "react": "^18.2.0",
31
- "react-dom": "^18.2.0"
29
+ "antd": "^5.20.3",
30
+ "react": "^18.3.1",
31
+ "react-dom": "^18.3.1"
32
32
  }
33
33
  }