@sunggang/ui-lib 0.4.65 → 0.4.67
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/Form.cjs.js +4 -4
- package/Form.esm.js +4 -4
- package/index.cjs.css +3 -0
- package/index.esm.css +3 -0
- package/package.json +1 -1
- package/src/lib/Form/demo.d.ts +50 -1
package/Form.cjs.js
CHANGED
|
@@ -7519,7 +7519,7 @@ var EditableCombobox = function(param) {
|
|
|
7519
7519
|
placeholder: placeholder,
|
|
7520
7520
|
disabled: disabled,
|
|
7521
7521
|
className: [
|
|
7522
|
-
"w-full h-11 rounded-2xl px-4 pr-20 border border-solid border-[#B4B4B4]",
|
|
7522
|
+
"w-full h-11 rounded-2xl px-4 pr-20 border border-solid border-[#B4B4B4] customInput editable-combobox",
|
|
7523
7523
|
"transition-colors duration-200",
|
|
7524
7524
|
disabled ? "text-[#B0B0B0] bg-[#e5e7eb] cursor-not-allowed" : "bg-white text-[#6f6f6f] hover:border-[#6f6f6f] focus:border-[#6f6f6f] focus:outline-none"
|
|
7525
7525
|
].join(" ")
|
|
@@ -7553,7 +7553,7 @@ var EditableCombobox = function(param) {
|
|
|
7553
7553
|
]
|
|
7554
7554
|
}),
|
|
7555
7555
|
isOpen && !disabled && /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
7556
|
-
className: "absolute z-
|
|
7556
|
+
className: "absolute z-[9999] w-full mt-1 bg-white border border-[#B4B4B4] rounded-2xl shadow-lg max-h-60 overflow-hidden",
|
|
7557
7557
|
children: /*#__PURE__*/ jsxRuntime.jsx("div", {
|
|
7558
7558
|
className: "overflow-y-auto max-h-60",
|
|
7559
7559
|
children: filteredOptions.length > 0 ? filteredOptions.map(function(option, index) {
|
|
@@ -8359,7 +8359,7 @@ var FieldArray = function(param) {
|
|
|
8359
8359
|
].join(" "),
|
|
8360
8360
|
children: [
|
|
8361
8361
|
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
8362
|
-
className: "flex-1",
|
|
8362
|
+
className: "flex-1 min-h-[96px]",
|
|
8363
8363
|
children: [
|
|
8364
8364
|
/*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
8365
8365
|
className: "font-medium mb-2",
|
|
@@ -8477,7 +8477,7 @@ var FieldArray = function(param) {
|
|
|
8477
8477
|
]
|
|
8478
8478
|
}),
|
|
8479
8479
|
maxItems && /*#__PURE__*/ jsxRuntime.jsxs("div", {
|
|
8480
|
-
className: "text-xs text-[#777777]",
|
|
8480
|
+
className: "text-xs text-[#777777] pb-4",
|
|
8481
8481
|
children: [
|
|
8482
8482
|
"已新增 ",
|
|
8483
8483
|
fields.length,
|
package/Form.esm.js
CHANGED
|
@@ -7492,7 +7492,7 @@ var EditableCombobox = function(param) {
|
|
|
7492
7492
|
placeholder: placeholder,
|
|
7493
7493
|
disabled: disabled,
|
|
7494
7494
|
className: [
|
|
7495
|
-
"w-full h-11 rounded-2xl px-4 pr-20 border border-solid border-[#B4B4B4]",
|
|
7495
|
+
"w-full h-11 rounded-2xl px-4 pr-20 border border-solid border-[#B4B4B4] customInput editable-combobox",
|
|
7496
7496
|
"transition-colors duration-200",
|
|
7497
7497
|
disabled ? "text-[#B0B0B0] bg-[#e5e7eb] cursor-not-allowed" : "bg-white text-[#6f6f6f] hover:border-[#6f6f6f] focus:border-[#6f6f6f] focus:outline-none"
|
|
7498
7498
|
].join(" ")
|
|
@@ -7526,7 +7526,7 @@ var EditableCombobox = function(param) {
|
|
|
7526
7526
|
]
|
|
7527
7527
|
}),
|
|
7528
7528
|
isOpen && !disabled && /*#__PURE__*/ jsx$1("div", {
|
|
7529
|
-
className: "absolute z-
|
|
7529
|
+
className: "absolute z-[9999] w-full mt-1 bg-white border border-[#B4B4B4] rounded-2xl shadow-lg max-h-60 overflow-hidden",
|
|
7530
7530
|
children: /*#__PURE__*/ jsx$1("div", {
|
|
7531
7531
|
className: "overflow-y-auto max-h-60",
|
|
7532
7532
|
children: filteredOptions.length > 0 ? filteredOptions.map(function(option, index) {
|
|
@@ -8332,7 +8332,7 @@ var FieldArray = function(param) {
|
|
|
8332
8332
|
].join(" "),
|
|
8333
8333
|
children: [
|
|
8334
8334
|
/*#__PURE__*/ jsxs("div", {
|
|
8335
|
-
className: "flex-1",
|
|
8335
|
+
className: "flex-1 min-h-[96px]",
|
|
8336
8336
|
children: [
|
|
8337
8337
|
/*#__PURE__*/ jsxs("div", {
|
|
8338
8338
|
className: "font-medium mb-2",
|
|
@@ -8450,7 +8450,7 @@ var FieldArray = function(param) {
|
|
|
8450
8450
|
]
|
|
8451
8451
|
}),
|
|
8452
8452
|
maxItems && /*#__PURE__*/ jsxs("div", {
|
|
8453
|
-
className: "text-xs text-[#777777]",
|
|
8453
|
+
className: "text-xs text-[#777777] pb-4",
|
|
8454
8454
|
children: [
|
|
8455
8455
|
"已新增 ",
|
|
8456
8456
|
fields.length,
|
package/index.cjs.css
CHANGED
package/index.esm.css
CHANGED
package/package.json
CHANGED
package/src/lib/Form/demo.d.ts
CHANGED
|
@@ -9,7 +9,56 @@ export declare const ticketBundleOptions: {
|
|
|
9
9
|
name: string;
|
|
10
10
|
value: number;
|
|
11
11
|
}[];
|
|
12
|
-
export declare const config: (getValues: (name: string) => unknown) => (FormItem[] |
|
|
12
|
+
export declare const config: (getValues: (name: string) => unknown) => (FormItem[] | {
|
|
13
|
+
type: string;
|
|
14
|
+
name: string;
|
|
15
|
+
label: string;
|
|
16
|
+
fieldArrayConfig: {
|
|
17
|
+
fields: ({
|
|
18
|
+
name: string;
|
|
19
|
+
label: string;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
validateOption: {
|
|
22
|
+
required: string;
|
|
23
|
+
validate: (value: any) => true | "姓名至少需要 2 個字元";
|
|
24
|
+
};
|
|
25
|
+
options?: undefined;
|
|
26
|
+
} | {
|
|
27
|
+
name: string;
|
|
28
|
+
label: string;
|
|
29
|
+
placeholder: string;
|
|
30
|
+
options: {
|
|
31
|
+
value: string;
|
|
32
|
+
name: string;
|
|
33
|
+
}[];
|
|
34
|
+
validateOption: {
|
|
35
|
+
required: string;
|
|
36
|
+
validate?: undefined;
|
|
37
|
+
};
|
|
38
|
+
} | {
|
|
39
|
+
name: string;
|
|
40
|
+
label: string;
|
|
41
|
+
options: {
|
|
42
|
+
value: string;
|
|
43
|
+
name: string;
|
|
44
|
+
}[];
|
|
45
|
+
placeholder?: undefined;
|
|
46
|
+
validateOption?: undefined;
|
|
47
|
+
} | {
|
|
48
|
+
name: string;
|
|
49
|
+
label: string;
|
|
50
|
+
placeholder: string;
|
|
51
|
+
validateOption?: undefined;
|
|
52
|
+
options?: undefined;
|
|
53
|
+
})[];
|
|
54
|
+
addButtonText: string;
|
|
55
|
+
removeButtonText: string;
|
|
56
|
+
maxItems: number;
|
|
57
|
+
minItems: number;
|
|
58
|
+
defaultItemCount: number;
|
|
59
|
+
addButtonPosition: string;
|
|
60
|
+
};
|
|
61
|
+
}[] | ({
|
|
13
62
|
type: string;
|
|
14
63
|
name: string;
|
|
15
64
|
label: string;
|