@cleen/ui 0.1.17 → 0.1.19

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 CHANGED
@@ -1206,6 +1206,7 @@ type EditableTextProps = Omit<ComponentProps<'div'>, 'onChange'> & {
1206
1206
  value?: string;
1207
1207
  defaultValue?: string;
1208
1208
  placeholder?: string;
1209
+ placeholderText?: string;
1209
1210
  canEdit?: boolean;
1210
1211
  onSave?: (value: string) => Promise<void> | void;
1211
1212
  onCancel?: () => Promise<void> | void;
@@ -1237,6 +1238,7 @@ type TextAreaProps = Omit<ComponentProps<'textarea'>, 'onChange'> & {
1237
1238
  value?: string;
1238
1239
  minHeight?: number;
1239
1240
  maxHeight?: number;
1241
+ autoResize?: boolean;
1240
1242
  onChange?: (value: string) => void;
1241
1243
  maxLengthLabelThreshold?: number;
1242
1244
  maxLengthLabel?: (remaining: number) => ReactNode;
@@ -1268,6 +1270,7 @@ type EditableTextAreaProps = Omit<ComponentProps<'div'>, 'onChange'> & {
1268
1270
  value?: string;
1269
1271
  defaultValue?: string;
1270
1272
  placeholder?: string;
1273
+ placeholderText?: string;
1271
1274
  canEdit?: boolean;
1272
1275
  onSave?: (value: string) => Promise<void> | void;
1273
1276
  onCancel?: () => Promise<void> | void;
@@ -1300,10 +1303,22 @@ type EditableCardProps = CardProps & {
1300
1303
  description?: string;
1301
1304
  /** Unified save callback for editable title and description fields */
1302
1305
  onSave?: (field: EditableCardField, value: string) => Promise<void> | void;
1306
+ classNames?: {
1307
+ /** Custom class name for the editable title element */
1308
+ titleTextInput?: ComponentClassnames<EditableTextProps>;
1309
+ /** Custom class name for the editable description element */
1310
+ descriptionTextInput?: ComponentClassnames<EditableTextAreaProps>;
1311
+ };
1312
+ styles?: {
1313
+ /** Custom style for the editable title element */
1314
+ titleTextInput?: ComponentStyles<EditableTextProps>;
1315
+ /** Custom style for the editable description element */
1316
+ descriptionTextInput?: ComponentStyles<EditableTextAreaProps>;
1317
+ };
1303
1318
  /** Props for the editable title text input */
1304
- titleProps?: Omit<EditableTextProps, 'value' | 'onSave'>;
1319
+ titleProps?: Omit<EditableTextProps, 'value' | 'onSave' | 'className' | 'classNames' | 'style' | 'styles'>;
1305
1320
  /** Props for the editable description text area */
1306
- descriptionProps?: Omit<EditableTextAreaProps, 'value' | 'onSave'>;
1321
+ descriptionProps?: Omit<EditableTextAreaProps, 'value' | 'onSave' | 'className' | 'classNames' | 'style' | 'styles'>;
1307
1322
  };
1308
1323
  /**
1309
1324
  * EditableCard is built on top of Card and provides inline editing for: