@nimbus-ds/components 5.5.1 → 5.5.2
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/index.d.ts +38 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -3129,6 +3129,44 @@ export interface CardProperties {
|
|
|
3129
3129
|
}
|
|
3130
3130
|
export type CardProps = CardProperties & HTMLAttributes<HTMLElement>;
|
|
3131
3131
|
export declare const Card: React.FC<CardProps> & CardComponents;
|
|
3132
|
+
export interface CollapsibleBodyProperties {
|
|
3133
|
+
/**
|
|
3134
|
+
* The content of the collapsible body.
|
|
3135
|
+
* @TJS-type React.ReactNode
|
|
3136
|
+
*/
|
|
3137
|
+
children: ReactNode;
|
|
3138
|
+
/**
|
|
3139
|
+
* Show Collapsible.Body when state is open or closed.
|
|
3140
|
+
* @default open
|
|
3141
|
+
*/
|
|
3142
|
+
visibleWhen?: "open" | "closed";
|
|
3143
|
+
/**
|
|
3144
|
+
* Set the direction that Collapsible.Body going to open
|
|
3145
|
+
* @default none
|
|
3146
|
+
*/
|
|
3147
|
+
direction?: "top" | "bottom" | "none";
|
|
3148
|
+
}
|
|
3149
|
+
export type CollapsibleBodyProps = CollapsibleBodyProperties & HTMLAttributes<HTMLElement>;
|
|
3150
|
+
declare const CollapsibleBody: React.FC<CollapsibleBodyProps>;
|
|
3151
|
+
export interface CollapsibleItemProperties {
|
|
3152
|
+
/**
|
|
3153
|
+
* The content of the collapsible body.
|
|
3154
|
+
* @TJS-type React.ReactNode
|
|
3155
|
+
*/
|
|
3156
|
+
children: ReactNode;
|
|
3157
|
+
}
|
|
3158
|
+
export type CollapsibleItemProps = CollapsibleItemProperties;
|
|
3159
|
+
declare const CollapsibleItem: React.FC<CollapsibleItemProps>;
|
|
3160
|
+
export interface CollapsibleComponents {
|
|
3161
|
+
Body: typeof CollapsibleBody;
|
|
3162
|
+
Item: typeof CollapsibleItem;
|
|
3163
|
+
}
|
|
3164
|
+
export interface CollapsibleProperties {
|
|
3165
|
+
children?: ReactNode;
|
|
3166
|
+
open?: boolean;
|
|
3167
|
+
}
|
|
3168
|
+
export type CollapsibleBaseProps = CollapsibleProperties & Omit<HTMLAttributes<HTMLElement>, "onChange">;
|
|
3169
|
+
export declare const Collapsible: React.FC<CollapsibleProperties> & CollapsibleComponents;
|
|
3132
3170
|
export interface ModalBodyProperties {
|
|
3133
3171
|
/**
|
|
3134
3172
|
* The content of the modal body.
|