@lobehub/ui 5.55.0 → 5.56.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/es/EditableText/ControlInput.mjs +2 -2
- package/es/EditableText/ControlInput.mjs.map +1 -1
- package/es/SearchBar/SearchBar.mjs +2 -2
- package/es/SearchBar/SearchBar.mjs.map +1 -1
- package/es/base-ui/Checkbox/Checkbox.d.mts +6 -2
- package/es/base-ui/Checkbox/Checkbox.mjs +2 -1
- package/es/base-ui/Checkbox/Checkbox.mjs.map +1 -1
- package/es/base-ui/Checkbox/CheckboxGroup.mjs +2 -2
- package/es/base-ui/Checkbox/CheckboxGroup.mjs.map +1 -1
- package/es/base-ui/Checkbox/index.d.mts +2 -2
- package/es/base-ui/ColorPicker/ColorPicker.mjs +4 -4
- package/es/base-ui/ColorPicker/ColorPicker.mjs.map +1 -1
- package/es/base-ui/DatePicker/style.mjs +1 -0
- package/es/base-ui/DatePicker/style.mjs.map +1 -1
- package/es/base-ui/Form/components/FormGroup.mjs +13 -5
- package/es/base-ui/Form/components/FormGroup.mjs.map +1 -1
- package/es/base-ui/Form/index.d.mts +3 -0
- package/es/base-ui/Form/index.mjs +3 -0
- package/es/base-ui/Form/index.mjs.map +1 -1
- package/es/base-ui/Form/style.mjs +32 -6
- package/es/base-ui/Form/style.mjs.map +1 -1
- package/es/base-ui/FormKit/Field.d.mts +9 -0
- package/es/base-ui/FormKit/Field.mjs +167 -0
- package/es/base-ui/FormKit/Field.mjs.map +1 -0
- package/es/base-ui/FormKit/Form.mjs +96 -0
- package/es/base-ui/FormKit/Form.mjs.map +1 -0
- package/es/base-ui/FormKit/List.d.mts +34 -0
- package/es/base-ui/FormKit/List.mjs +102 -0
- package/es/base-ui/FormKit/List.mjs.map +1 -0
- package/es/base-ui/FormKit/SubmitFooter.d.mts +6 -0
- package/es/base-ui/FormKit/SubmitFooter.mjs +36 -0
- package/es/base-ui/FormKit/SubmitFooter.mjs.map +1 -0
- package/es/base-ui/FormKit/binding.mjs +23 -0
- package/es/base-ui/FormKit/binding.mjs.map +1 -0
- package/es/base-ui/FormKit/context.d.mts +7 -0
- package/es/base-ui/FormKit/context.mjs +14 -0
- package/es/base-ui/FormKit/context.mjs.map +1 -0
- package/es/base-ui/FormKit/engine/tanstack.mjs +293 -0
- package/es/base-ui/FormKit/engine/tanstack.mjs.map +1 -0
- package/es/base-ui/FormKit/engine/types.d.mts +6 -0
- package/es/base-ui/FormKit/index.d.mts +31 -0
- package/es/base-ui/FormKit/index.mjs +28 -0
- package/es/base-ui/FormKit/index.mjs.map +1 -0
- package/es/base-ui/FormKit/instance.mjs +67 -0
- package/es/base-ui/FormKit/instance.mjs.map +1 -0
- package/es/base-ui/FormKit/schema.d.mts +33 -0
- package/es/base-ui/FormKit/schema.mjs +23 -0
- package/es/base-ui/FormKit/schema.mjs.map +1 -0
- package/es/base-ui/FormKit/style.mjs +119 -0
- package/es/base-ui/FormKit/style.mjs.map +1 -0
- package/es/base-ui/FormKit/type.d.mts +122 -0
- package/es/base-ui/FormKit/useForm.d.mts +10 -0
- package/es/base-ui/FormKit/useForm.mjs +54 -0
- package/es/base-ui/FormKit/useForm.mjs.map +1 -0
- package/es/base-ui/FormKit/useStoreSelector.mjs +25 -0
- package/es/base-ui/FormKit/useStoreSelector.mjs.map +1 -0
- package/es/base-ui/FormKit/useWatch.d.mts +7 -0
- package/es/base-ui/FormKit/useWatch.mjs +12 -0
- package/es/base-ui/FormKit/useWatch.mjs.map +1 -0
- package/es/base-ui/Input/Input.d.mts +6 -2
- package/es/base-ui/Input/Input.mjs +2 -1
- package/es/base-ui/Input/Input.mjs.map +1 -1
- package/es/base-ui/Input/InputNumber.d.mts +6 -2
- package/es/base-ui/Input/InputNumber.mjs +13 -6
- package/es/base-ui/Input/InputNumber.mjs.map +1 -1
- package/es/base-ui/Input/InputPassword.d.mts +6 -2
- package/es/base-ui/Input/InputPassword.mjs +4 -3
- package/es/base-ui/Input/InputPassword.mjs.map +1 -1
- package/es/base-ui/Input/TextArea.d.mts +6 -2
- package/es/base-ui/Input/TextArea.mjs +2 -1
- package/es/base-ui/Input/TextArea.mjs.map +1 -1
- package/es/base-ui/Input/index.d.mts +5 -5
- package/es/base-ui/Input/style.d.mts +4 -1
- package/es/base-ui/Input/style.mjs +21 -8
- package/es/base-ui/Input/style.mjs.map +1 -1
- package/es/base-ui/Modal/Modal.mjs +4 -8
- package/es/base-ui/Modal/Modal.mjs.map +1 -1
- package/es/base-ui/Slider/SliderWithInput.mjs +2 -2
- package/es/base-ui/Slider/SliderWithInput.mjs.map +1 -1
- package/es/base-ui/Switch/Switch.mjs +2 -2
- package/es/base-ui/Switch/Switch.mjs.map +1 -1
- package/es/base-ui/Tree/TreeNode.mjs +2 -2
- package/es/base-ui/Tree/TreeNode.mjs.map +1 -1
- package/es/base-ui/index.d.mts +8 -8
- package/es/base-ui/index.mjs +6 -6
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.mjs +2 -2
- package/es/chat/ChatInputArea/components/ChatInputAreaInner.mjs.map +1 -1
- package/es/chat/MessageInput/MessageInput.mjs +2 -2
- package/es/chat/MessageInput/MessageInput.mjs.map +1 -1
- package/es/chat/MessageModal/MessageModal.mjs +2 -2
- package/es/chat/MessageModal/MessageModal.mjs.map +1 -1
- package/es/eslint/index.d.mts +27 -3
- package/es/eslint/index.mjs +7 -2
- package/es/eslint/index.mjs.map +1 -1
- package/es/eslint/noInlineFormSchema.mjs +44 -0
- package/es/eslint/noInlineFormSchema.mjs.map +1 -0
- package/es/i18n/resources/en/form.d.mts +4 -0
- package/es/i18n/resources/en/form.mjs +4 -0
- package/es/i18n/resources/en/form.mjs.map +1 -1
- package/es/i18n/resources/zhCn/form.d.mts +4 -0
- package/es/i18n/resources/zhCn/form.mjs +4 -0
- package/es/i18n/resources/zhCn/form.mjs.map +1 -1
- package/es/node_modules/.pnpm/@eslint_core@0.17.0/node_modules/@eslint/core/dist/esm/types.d.mts +1139 -0
- package/es/node_modules/.pnpm/@types_estree@1.0.9/node_modules/@types/estree/index.d.mts +528 -0
- package/es/node_modules/.pnpm/@types_json-schema@7.0.15/node_modules/@types/json-schema/index.d.mts +201 -0
- package/es/node_modules/.pnpm/eslint@9.39.5_jiti@2.6.1_supports-color@10.2.2/node_modules/eslint/lib/types/index.d.mts +962 -0
- package/package.json +6 -1
package/es/node_modules/.pnpm/@types_json-schema@7.0.15/node_modules/@types/json-schema/index.d.mts
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
//#region node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts
|
|
2
|
+
// ==================================================================================================
|
|
3
|
+
// JSON Schema Draft 04
|
|
4
|
+
// ==================================================================================================
|
|
5
|
+
/**
|
|
6
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
|
|
7
|
+
*/
|
|
8
|
+
type JSONSchema4TypeName = "string" //
|
|
9
|
+
| "number" | "integer" | "boolean" | "object" | "array" | "null" | "any";
|
|
10
|
+
/**
|
|
11
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-3.5
|
|
12
|
+
*/
|
|
13
|
+
type JSONSchema4Type = string //
|
|
14
|
+
| number | boolean | JSONSchema4Object | JSONSchema4Array | null;
|
|
15
|
+
// Workaround for infinite type recursion
|
|
16
|
+
interface JSONSchema4Object {
|
|
17
|
+
[key: string]: JSONSchema4Type;
|
|
18
|
+
}
|
|
19
|
+
// Workaround for infinite type recursion
|
|
20
|
+
// https://github.com/Microsoft/TypeScript/issues/3496#issuecomment-128553540
|
|
21
|
+
interface JSONSchema4Array extends Array<JSONSchema4Type> {}
|
|
22
|
+
/**
|
|
23
|
+
* Meta schema
|
|
24
|
+
*
|
|
25
|
+
* Recommended values:
|
|
26
|
+
* - 'http://json-schema.org/schema#'
|
|
27
|
+
* - 'http://json-schema.org/hyper-schema#'
|
|
28
|
+
* - 'http://json-schema.org/draft-04/schema#'
|
|
29
|
+
* - 'http://json-schema.org/draft-04/hyper-schema#'
|
|
30
|
+
* - 'http://json-schema.org/draft-03/schema#'
|
|
31
|
+
* - 'http://json-schema.org/draft-03/hyper-schema#'
|
|
32
|
+
*
|
|
33
|
+
* @see https://tools.ietf.org/html/draft-handrews-json-schema-validation-01#section-5
|
|
34
|
+
*/
|
|
35
|
+
type JSONSchema4Version = string;
|
|
36
|
+
/**
|
|
37
|
+
* JSON Schema V4
|
|
38
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-04
|
|
39
|
+
*/
|
|
40
|
+
interface JSONSchema4 {
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
$ref?: string | undefined;
|
|
43
|
+
$schema?: JSONSchema4Version | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* This attribute is a string that provides a short description of the
|
|
46
|
+
* instance property.
|
|
47
|
+
*
|
|
48
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.21
|
|
49
|
+
*/
|
|
50
|
+
title?: string | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* This attribute is a string that provides a full description of the of
|
|
53
|
+
* purpose the instance property.
|
|
54
|
+
*
|
|
55
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.22
|
|
56
|
+
*/
|
|
57
|
+
description?: string | undefined;
|
|
58
|
+
default?: JSONSchema4Type | undefined;
|
|
59
|
+
multipleOf?: number | undefined;
|
|
60
|
+
maximum?: number | undefined;
|
|
61
|
+
exclusiveMaximum?: boolean | undefined;
|
|
62
|
+
minimum?: number | undefined;
|
|
63
|
+
exclusiveMinimum?: boolean | undefined;
|
|
64
|
+
maxLength?: number | undefined;
|
|
65
|
+
minLength?: number | undefined;
|
|
66
|
+
pattern?: string | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* May only be defined when "items" is defined, and is a tuple of JSONSchemas.
|
|
69
|
+
*
|
|
70
|
+
* This provides a definition for additional items in an array instance
|
|
71
|
+
* when tuple definitions of the items is provided. This can be false
|
|
72
|
+
* to indicate additional items in the array are not allowed, or it can
|
|
73
|
+
* be a schema that defines the schema of the additional items.
|
|
74
|
+
*
|
|
75
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.6
|
|
76
|
+
*/
|
|
77
|
+
additionalItems?: boolean | JSONSchema4 | undefined;
|
|
78
|
+
/**
|
|
79
|
+
* This attribute defines the allowed items in an instance array, and
|
|
80
|
+
* MUST be a schema or an array of schemas. The default value is an
|
|
81
|
+
* empty schema which allows any value for items in the instance array.
|
|
82
|
+
*
|
|
83
|
+
* When this attribute value is a schema and the instance value is an
|
|
84
|
+
* array, then all the items in the array MUST be valid according to the
|
|
85
|
+
* schema.
|
|
86
|
+
*
|
|
87
|
+
* When this attribute value is an array of schemas and the instance
|
|
88
|
+
* value is an array, each position in the instance array MUST conform
|
|
89
|
+
* to the schema in the corresponding position for this array. This
|
|
90
|
+
* called tuple typing. When tuple typing is used, additional items are
|
|
91
|
+
* allowed, disallowed, or constrained by the "additionalItems"
|
|
92
|
+
* (Section 5.6) attribute using the same rules as
|
|
93
|
+
* "additionalProperties" (Section 5.4) for objects.
|
|
94
|
+
*
|
|
95
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.5
|
|
96
|
+
*/
|
|
97
|
+
items?: JSONSchema4 | JSONSchema4[] | undefined;
|
|
98
|
+
maxItems?: number | undefined;
|
|
99
|
+
minItems?: number | undefined;
|
|
100
|
+
uniqueItems?: boolean | undefined;
|
|
101
|
+
maxProperties?: number | undefined;
|
|
102
|
+
minProperties?: number | undefined;
|
|
103
|
+
/**
|
|
104
|
+
* This attribute indicates if the instance must have a value, and not
|
|
105
|
+
* be undefined. This is false by default, making the instance
|
|
106
|
+
* optional.
|
|
107
|
+
*
|
|
108
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.7
|
|
109
|
+
*/
|
|
110
|
+
required?: boolean | string[] | undefined;
|
|
111
|
+
/**
|
|
112
|
+
* This attribute defines a schema for all properties that are not
|
|
113
|
+
* explicitly defined in an object type definition. If specified, the
|
|
114
|
+
* value MUST be a schema or a boolean. If false is provided, no
|
|
115
|
+
* additional properties are allowed beyond the properties defined in
|
|
116
|
+
* the schema. The default value is an empty schema which allows any
|
|
117
|
+
* value for additional properties.
|
|
118
|
+
*
|
|
119
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.4
|
|
120
|
+
*/
|
|
121
|
+
additionalProperties?: boolean | JSONSchema4 | undefined;
|
|
122
|
+
definitions?: {
|
|
123
|
+
[k: string]: JSONSchema4;
|
|
124
|
+
} | undefined;
|
|
125
|
+
/**
|
|
126
|
+
* This attribute is an object with property definitions that define the
|
|
127
|
+
* valid values of instance object property values. When the instance
|
|
128
|
+
* value is an object, the property values of the instance object MUST
|
|
129
|
+
* conform to the property definitions in this object. In this object,
|
|
130
|
+
* each property definition's value MUST be a schema, and the property's
|
|
131
|
+
* name MUST be the name of the instance property that it defines. The
|
|
132
|
+
* instance property value MUST be valid according to the schema from
|
|
133
|
+
* the property definition. Properties are considered unordered, the
|
|
134
|
+
* order of the instance properties MAY be in any order.
|
|
135
|
+
*
|
|
136
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.2
|
|
137
|
+
*/
|
|
138
|
+
properties?: {
|
|
139
|
+
[k: string]: JSONSchema4;
|
|
140
|
+
} | undefined;
|
|
141
|
+
/**
|
|
142
|
+
* This attribute is an object that defines the schema for a set of
|
|
143
|
+
* property names of an object instance. The name of each property of
|
|
144
|
+
* this attribute's object is a regular expression pattern in the ECMA
|
|
145
|
+
* 262/Perl 5 format, while the value is a schema. If the pattern
|
|
146
|
+
* matches the name of a property on the instance object, the value of
|
|
147
|
+
* the instance's property MUST be valid against the pattern name's
|
|
148
|
+
* schema value.
|
|
149
|
+
*
|
|
150
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.3
|
|
151
|
+
*/
|
|
152
|
+
patternProperties?: {
|
|
153
|
+
[k: string]: JSONSchema4;
|
|
154
|
+
} | undefined;
|
|
155
|
+
dependencies?: {
|
|
156
|
+
[k: string]: JSONSchema4 | string[];
|
|
157
|
+
} | undefined;
|
|
158
|
+
/**
|
|
159
|
+
* This provides an enumeration of all possible values that are valid
|
|
160
|
+
* for the instance property. This MUST be an array, and each item in
|
|
161
|
+
* the array represents a possible value for the instance value. If
|
|
162
|
+
* this attribute is defined, the instance value MUST be one of the
|
|
163
|
+
* values in the array in order for the schema to be valid.
|
|
164
|
+
*
|
|
165
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.19
|
|
166
|
+
*/
|
|
167
|
+
enum?: JSONSchema4Type[] | undefined;
|
|
168
|
+
/**
|
|
169
|
+
* A single type, or a union of simple types
|
|
170
|
+
*/
|
|
171
|
+
type?: JSONSchema4TypeName | JSONSchema4TypeName[] | undefined;
|
|
172
|
+
allOf?: JSONSchema4[] | undefined;
|
|
173
|
+
anyOf?: JSONSchema4[] | undefined;
|
|
174
|
+
oneOf?: JSONSchema4[] | undefined;
|
|
175
|
+
not?: JSONSchema4 | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* The value of this property MUST be another schema which will provide
|
|
178
|
+
* a base schema which the current schema will inherit from. The
|
|
179
|
+
* inheritance rules are such that any instance that is valid according
|
|
180
|
+
* to the current schema MUST be valid according to the referenced
|
|
181
|
+
* schema. This MAY also be an array, in which case, the instance MUST
|
|
182
|
+
* be valid for all the schemas in the array. A schema that extends
|
|
183
|
+
* another schema MAY define additional attributes, constrain existing
|
|
184
|
+
* attributes, or add other constraints.
|
|
185
|
+
*
|
|
186
|
+
* Conceptually, the behavior of extends can be seen as validating an
|
|
187
|
+
* instance against all constraints in the extending schema as well as
|
|
188
|
+
* the extended schema(s).
|
|
189
|
+
*
|
|
190
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.26
|
|
191
|
+
*/
|
|
192
|
+
extends?: string | string[] | undefined;
|
|
193
|
+
/**
|
|
194
|
+
* @see https://tools.ietf.org/html/draft-zyp-json-schema-04#section-5.6
|
|
195
|
+
*/
|
|
196
|
+
[k: string]: any;
|
|
197
|
+
format?: string | undefined;
|
|
198
|
+
}
|
|
199
|
+
//#endregion
|
|
200
|
+
export { JSONSchema4, JSONSchema4Array, JSONSchema4Object, JSONSchema4Type, JSONSchema4TypeName, JSONSchema4Version };
|
|
201
|
+
//# sourceMappingURL=index.d.mts.map
|