@hybridcore/ui 1.5.37 → 1.5.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/instance-form/index.js +198 -183
- package/dist/components/tabs/index.js +167 -167
- package/dist/components/tabs/styled.js +3 -3
- package/dist/main.d.ts +6 -1
- package/package.json +1 -1
|
@@ -9,10 +9,10 @@ const e = t(o, {
|
|
|
9
9
|
})), s = t(o, {
|
|
10
10
|
name: "SNTabs",
|
|
11
11
|
// The component name
|
|
12
|
-
slot: "
|
|
12
|
+
slot: "tabContentContainer"
|
|
13
13
|
// The slot name
|
|
14
|
-
})(({ bottomoffset:
|
|
15
|
-
maxHeight: `calc(100vh - ${
|
|
14
|
+
})(({ bottomoffset: n = 0 }) => ({
|
|
15
|
+
maxHeight: `calc(100vh - ${n}px)`
|
|
16
16
|
}));
|
|
17
17
|
export {
|
|
18
18
|
s as TabContentContainer,
|
package/dist/main.d.ts
CHANGED
|
@@ -244,6 +244,7 @@ declare interface FieldOptions {
|
|
|
244
244
|
minDate?: Dayjs;
|
|
245
245
|
helperText?: React.ReactNode;
|
|
246
246
|
component?: React.ReactNode;
|
|
247
|
+
maxChar?: number;
|
|
247
248
|
[key: string]: string | number | object | boolean;
|
|
248
249
|
}
|
|
249
250
|
|
|
@@ -270,7 +271,7 @@ declare function importKey(jwk: any): Promise<CryptoKey>;
|
|
|
270
271
|
|
|
271
272
|
export declare const InstanceForm: <T extends ONTOLOGY.Object | ONTOLOGY.Event | ONTOLOGY.Agent | ONTOLOGY.File, K extends INSTANCE.CreateObjectDTO | INSTANCE.UpdateObjectDTO | INSTANCE.CreateEventDTO | INSTANCE.UpdateEventDTO | INSTANCE.CreateAgentDTO | INSTANCE.CreateFileDTO | INSTANCE.UpdateFileDTO>(props: InstanceFormProps<T, K> & default_2.RefAttributes<InstanceFormHandle>) => default_2.ReactNode | null;
|
|
272
273
|
|
|
273
|
-
declare interface InstanceFormHandle {
|
|
274
|
+
export declare interface InstanceFormHandle {
|
|
274
275
|
/**
|
|
275
276
|
*
|
|
276
277
|
* @returns
|
|
@@ -290,6 +291,10 @@ declare interface InstanceFormHandle {
|
|
|
290
291
|
* @returns
|
|
291
292
|
*/
|
|
292
293
|
getFormValue: (name: any) => any;
|
|
294
|
+
/**
|
|
295
|
+
* @returns whether any form field has been modified
|
|
296
|
+
*/
|
|
297
|
+
isDirty(): boolean;
|
|
293
298
|
}
|
|
294
299
|
|
|
295
300
|
declare interface InstanceFormProps<
|