@delightui/components 0.1.141 → 0.1.142

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
@@ -481,11 +481,10 @@ type TextDecorationEnum = 'None' | 'Underline' | 'Strikethrough';
481
481
  * Enum for text transformations.
482
482
  */
483
483
  type TextTransformEnum = typeof transforms[number];
484
- interface TextProps {
485
- /**
486
- * Additional class for styling.
487
- */
488
- className?: string;
484
+ /**
485
+ * Props used to handle text style.
486
+ */
487
+ type TextStylingProps = {
489
488
  /**
490
489
  * Type of the text.
491
490
  * @default 'BodyMedium'
@@ -496,20 +495,6 @@ interface TextProps {
496
495
  * @default 'Regular'
497
496
  */
498
497
  weight?: TextWeightEnum;
499
- /**
500
- * The content to be displayed as text.
501
- */
502
- children?: React.ReactNode;
503
- /**
504
- * Flag to prevent text from wrapping.
505
- * @default false
506
- */
507
- noWrap?: boolean;
508
- /**
509
- * Flag to handle how white space inside an element is handled.
510
- * @default false
511
- */
512
- whiteSpaceNoWrap?: boolean;
513
498
  /**
514
499
  * Flag to italicize the text.
515
500
  * @default false
@@ -525,15 +510,35 @@ interface TextProps {
525
510
  * @default false
526
511
  */
527
512
  ellipsis?: boolean;
513
+ /**
514
+ * Modify the element type used for rendering
515
+ */
516
+ as?: React.ElementType<any, 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span'>;
517
+ };
518
+ interface TextProps extends TextStylingProps {
519
+ /**
520
+ * Additional class for styling.
521
+ */
522
+ className?: string;
523
+ /**
524
+ * The content to be displayed as text.
525
+ */
526
+ children?: React.ReactNode;
527
+ /**
528
+ * Flag to prevent text from wrapping.
529
+ * @default false
530
+ */
531
+ noWrap?: boolean;
532
+ /**
533
+ * Flag to handle how white space inside an element is handled.
534
+ * @default false
535
+ */
536
+ whiteSpaceNoWrap?: boolean;
528
537
  /**
529
538
  * Transform style for the text.
530
539
  * @default 'None'
531
540
  */
532
541
  transform?: TextTransformEnum;
533
- /**
534
- * Modify the element type used for rendering
535
- */
536
- as?: React.ElementType<any, 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span'>;
537
542
  }
538
543
 
539
544
  /**
@@ -2231,17 +2236,21 @@ type DropzoneStatus = 'Empty' | 'Loading' | 'Uploaded';
2231
2236
  type DropzoneProps = ControlledFormComponentProps<File[]> & {
2232
2237
  className?: string;
2233
2238
  /**
2234
- * The empty state of the dropzone.
2239
+ * the view when no file is selected.
2235
2240
  */
2236
2241
  empty?: React.ReactNode;
2237
2242
  /**
2238
- * The loading state of the dropzone.
2243
+ * the view when files are validating or processed.
2239
2244
  */
2240
2245
  loading?: React.ReactNode;
2241
2246
  /**
2242
- * The uploaded state of the dropzone.
2247
+ * the view when files are accepted.
2243
2248
  */
2244
2249
  uploaded?: React.ReactNode;
2250
+ /**
2251
+ * the view when the files are being dragged over dropzone.
2252
+ */
2253
+ drag?: React.ReactNode;
2245
2254
  /**
2246
2255
  * The accepted file types based on mime type.
2247
2256
  * @example
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delightui/components",
3
- "version": "0.1.141",
3
+ "version": "0.1.142",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "start": "vite",