@michelangelo-ai/core 0.2.0 → 0.2.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/dist/components/form/layout/form-group/form-group.d.ts.map +1 -1
- package/dist/components/form/layout/form-group/types.d.ts +16 -7
- package/dist/components/form/layout/form-group/types.d.ts.map +1 -1
- package/dist/michelangelo-core.cjs +1 -1
- package/dist/michelangelo-core.js +21 -17
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-group.d.ts","sourceRoot":"","sources":["../../../../../components/form/layout/form-group/form-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,
|
|
1
|
+
{"version":3,"file":"form-group.d.ts","sourceRoot":"","sources":["../../../../../components/form/layout/form-group/form-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiF9C,CAAC"}
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
import type { ReactNode } from 'react';
|
|
2
2
|
import type { BoxOverrides } from '../../../../components/box/types';
|
|
3
|
-
|
|
3
|
+
interface FormGroupBaseProps {
|
|
4
4
|
title?: string;
|
|
5
5
|
/** Text displayed below title, **Markdown supported** */
|
|
6
6
|
description?: string;
|
|
7
7
|
/** Help tooltip text, displayed next to title. **Markdown supported** */
|
|
8
8
|
tooltip?: string;
|
|
9
|
-
/**
|
|
10
|
-
* Controls whether the group can be collapsed to hide its children
|
|
11
|
-
*
|
|
12
|
-
* @default false
|
|
13
|
-
*/
|
|
14
|
-
collapsible?: boolean;
|
|
15
9
|
/** Additional content for the header (e.g., action buttons) */
|
|
16
10
|
endEnhancer?: ReactNode;
|
|
17
11
|
/** BaseUI overrides for the underlying Box container */
|
|
18
12
|
overrides?: BoxOverrides;
|
|
19
13
|
children: ReactNode;
|
|
20
14
|
}
|
|
15
|
+
interface StaticFormGroupProps extends FormGroupBaseProps {
|
|
16
|
+
collapsible?: false;
|
|
17
|
+
expanded?: never;
|
|
18
|
+
onToggle?: never;
|
|
19
|
+
}
|
|
20
|
+
interface CollapsibleFormGroupProps extends FormGroupBaseProps {
|
|
21
|
+
/** Enables collapsing the group to hide its children */
|
|
22
|
+
collapsible: true;
|
|
23
|
+
/** Controlled expanded state — requires `onToggle` to respond to user interaction */
|
|
24
|
+
expanded?: boolean;
|
|
25
|
+
/** Called when the collapsible group is toggled */
|
|
26
|
+
onToggle?: (expanded: boolean) => void;
|
|
27
|
+
}
|
|
28
|
+
export type FormGroupProps = StaticFormGroupProps | CollapsibleFormGroupProps;
|
|
29
|
+
export {};
|
|
21
30
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/layout/form-group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../components/form/layout/form-group/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAE/D,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,yEAAyE;IACzE,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,SAAS,CAAC;IAExB,wDAAwD;IACxD,SAAS,CAAC,EAAE,YAAY,CAAC;IAEzB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,UAAU,oBAAqB,SAAQ,kBAAkB;IACvD,WAAW,CAAC,EAAE,KAAK,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB;AAED,UAAU,yBAA0B,SAAQ,kBAAkB;IAC5D,wDAAwD;IACxD,WAAW,EAAE,IAAI,CAAC;IAElB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,mDAAmD;IACnD,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;CACxC;AAED,MAAM,MAAM,cAAc,GAAG,oBAAoB,GAAG,yBAAyB,CAAC"}
|