@delightui/components 0.1.141 → 0.1.143
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/cjs/components/atoms/Text/Text.types.d.ts +28 -23
- package/dist/cjs/components/molecules/Nav/NavLink/NavLink.types.d.ts +1 -0
- package/dist/cjs/components/molecules/Select/Select.presenter.d.ts +1 -0
- package/dist/cjs/components/organisms/Dropzone/Dropzone.presenter.d.ts +2 -0
- package/dist/cjs/components/organisms/Dropzone/Dropzone.types.d.ts +7 -3
- package/dist/cjs/components/organisms/Form/UpdatedFormExample.d.ts +1 -1
- package/dist/cjs/lib/utils.d.ts +15 -0
- package/dist/cjs/library.css +179 -18
- package/dist/cjs/library.js +3 -3
- package/dist/cjs/library.js.map +1 -1
- package/dist/esm/components/atoms/Text/Text.types.d.ts +28 -23
- package/dist/esm/components/molecules/Nav/NavLink/NavLink.types.d.ts +1 -0
- package/dist/esm/components/molecules/Select/Select.presenter.d.ts +1 -0
- package/dist/esm/components/organisms/Dropzone/Dropzone.presenter.d.ts +2 -0
- package/dist/esm/components/organisms/Dropzone/Dropzone.types.d.ts +7 -3
- package/dist/esm/components/organisms/Form/UpdatedFormExample.d.ts +1 -1
- package/dist/esm/lib/utils.d.ts +15 -0
- package/dist/esm/library.css +179 -18
- package/dist/esm/library.js +2 -2
- package/dist/esm/library.js.map +1 -1
- package/dist/index.d.ts +35 -26
- package/package.json +1 -1
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
|
-
|
|
485
|
-
|
|
486
|
-
|
|
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
|
-
*
|
|
2239
|
+
* the view when no file is selected.
|
|
2235
2240
|
*/
|
|
2236
2241
|
empty?: React.ReactNode;
|
|
2237
2242
|
/**
|
|
2238
|
-
*
|
|
2243
|
+
* the view when files are validating or processed.
|
|
2239
2244
|
*/
|
|
2240
2245
|
loading?: React.ReactNode;
|
|
2241
2246
|
/**
|
|
2242
|
-
*
|
|
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
|