@cleen/ui 0.1.17 → 0.1.18
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 +15 -2
- package/dist/index.js +5 -5
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1237,6 +1237,7 @@ type TextAreaProps = Omit<ComponentProps<'textarea'>, 'onChange'> & {
|
|
|
1237
1237
|
value?: string;
|
|
1238
1238
|
minHeight?: number;
|
|
1239
1239
|
maxHeight?: number;
|
|
1240
|
+
autoResize?: boolean;
|
|
1240
1241
|
onChange?: (value: string) => void;
|
|
1241
1242
|
maxLengthLabelThreshold?: number;
|
|
1242
1243
|
maxLengthLabel?: (remaining: number) => ReactNode;
|
|
@@ -1300,10 +1301,22 @@ type EditableCardProps = CardProps & {
|
|
|
1300
1301
|
description?: string;
|
|
1301
1302
|
/** Unified save callback for editable title and description fields */
|
|
1302
1303
|
onSave?: (field: EditableCardField, value: string) => Promise<void> | void;
|
|
1304
|
+
classNames?: {
|
|
1305
|
+
/** Custom class name for the editable title element */
|
|
1306
|
+
titleTextInput?: ComponentClassnames<EditableTextProps>;
|
|
1307
|
+
/** Custom class name for the editable description element */
|
|
1308
|
+
descriptionTextInput?: ComponentClassnames<EditableTextAreaProps>;
|
|
1309
|
+
};
|
|
1310
|
+
styles?: {
|
|
1311
|
+
/** Custom style for the editable title element */
|
|
1312
|
+
titleTextInput?: ComponentStyles<EditableTextProps>;
|
|
1313
|
+
/** Custom style for the editable description element */
|
|
1314
|
+
descriptionTextInput?: ComponentStyles<EditableTextAreaProps>;
|
|
1315
|
+
};
|
|
1303
1316
|
/** Props for the editable title text input */
|
|
1304
|
-
titleProps?: Omit<EditableTextProps, 'value' | 'onSave'>;
|
|
1317
|
+
titleProps?: Omit<EditableTextProps, 'value' | 'onSave' | 'className' | 'classNames' | 'style' | 'styles'>;
|
|
1305
1318
|
/** Props for the editable description text area */
|
|
1306
|
-
descriptionProps?: Omit<EditableTextAreaProps, 'value' | 'onSave'>;
|
|
1319
|
+
descriptionProps?: Omit<EditableTextAreaProps, 'value' | 'onSave' | 'className' | 'classNames' | 'style' | 'styles'>;
|
|
1307
1320
|
};
|
|
1308
1321
|
/**
|
|
1309
1322
|
* EditableCard is built on top of Card and provides inline editing for:
|