@nimbus-ds/components 5.23.0-rc.1 → 5.24.0-rc.1
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/CHANGELOG.md +14 -0
- package/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.d.ts +60 -0
- package/dist/Alert/index.js +1 -1
- package/dist/Box/index.d.ts +6 -3
- package/dist/Button/index.d.ts +1 -1
- package/dist/CHANGELOG.md +14 -0
- package/dist/Chip/index.d.ts +59 -0
- package/dist/Chip/index.js +1 -1
- package/dist/FileUploader/index.d.ts +98 -0
- package/dist/FileUploader/index.js +1 -1
- package/dist/Icon/index.d.ts +120 -0
- package/dist/Icon/index.js +1 -1
- package/dist/IconButton/index.d.ts +7 -0
- package/dist/IconButton/index.js +1 -1
- package/dist/Input/index.d.ts +76 -0
- package/dist/Input/index.js +1 -1
- package/dist/Link/index.d.ts +115 -0
- package/dist/Modal/index.d.ts +232 -0
- package/dist/Modal/index.js +1 -1
- package/dist/MultiSelect/index.d.ts +107 -0
- package/dist/MultiSelect/index.js +1 -1
- package/dist/Pagination/index.d.ts +41 -0
- package/dist/Pagination/index.js +1 -1
- package/dist/Popover/index.d.ts +165 -0
- package/dist/Radio/index.d.ts +62 -0
- package/dist/ScrollPane/index.d.ts +889 -0
- package/dist/SegmentedControl/index.d.ts +6 -3
- package/dist/Select/index.d.ts +81 -0
- package/dist/Select/index.js +1 -1
- package/dist/Skeleton/index.d.ts +31 -0
- package/dist/Spinner/index.d.ts +53 -0
- package/dist/Stepper/index.d.ts +869 -0
- package/dist/Stepper/index.js +1 -1
- package/dist/Thumbnail/index.d.ts +73 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Toast/index.d.ts +56 -0
- package/dist/Toast/index.js +1 -1
- package/dist/Tooltip/index.d.ts +46 -0
- package/dist/index.d.ts +14 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { HTMLAttributes, ImgHTMLAttributes, ReactNode } from 'react';
|
|
5
|
+
|
|
6
|
+
export type AspectRatio = "1/1" | "16/9" | "9/16" | "4/3" | "3/4" | "2/1" | "1/2";
|
|
7
|
+
declare const thumbnail: {
|
|
8
|
+
sprinkle: ((props: {
|
|
9
|
+
aspectRatio?: AspectRatio | undefined;
|
|
10
|
+
}) => string) & {
|
|
11
|
+
properties: Set<"aspectRatio">;
|
|
12
|
+
};
|
|
13
|
+
properties: {
|
|
14
|
+
aspectRatio: AspectRatio[];
|
|
15
|
+
};
|
|
16
|
+
classnames: {
|
|
17
|
+
container: string;
|
|
18
|
+
container__image: string;
|
|
19
|
+
container__placeholder: string;
|
|
20
|
+
skeleton: string;
|
|
21
|
+
width: string;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export interface SkeletonProperties {
|
|
25
|
+
/**
|
|
26
|
+
* Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
|
|
27
|
+
*/
|
|
28
|
+
width: string;
|
|
29
|
+
/**
|
|
30
|
+
* Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
|
|
31
|
+
*/
|
|
32
|
+
height: string;
|
|
33
|
+
/**
|
|
34
|
+
* The border radius of the skeleton.
|
|
35
|
+
*/
|
|
36
|
+
borderRadius?: string;
|
|
37
|
+
/**
|
|
38
|
+
* This is an attribute used to identify a DOM node for testing purposes.
|
|
39
|
+
*/
|
|
40
|
+
"data-testid"?: string;
|
|
41
|
+
}
|
|
42
|
+
export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
|
|
43
|
+
export type ThumbnailSkeletonProperties = Partial<Pick<ThumbnailProps, "aspectRatio">> & Partial<Pick<SkeletonProps, "width" | "data-testid">>;
|
|
44
|
+
export type ThumbnailSkeletonProps = ThumbnailSkeletonProperties;
|
|
45
|
+
export declare const ThumbnailSkeleton: React.FC<ThumbnailSkeletonProps>;
|
|
46
|
+
export interface ThumbnailComponents {
|
|
47
|
+
Skeleton: typeof ThumbnailSkeleton;
|
|
48
|
+
}
|
|
49
|
+
export interface ThumbnailProperties {
|
|
50
|
+
/**
|
|
51
|
+
* The required alt attribute specifies an alternate text for an image, if the image cannot be displayed.
|
|
52
|
+
*/
|
|
53
|
+
alt: string;
|
|
54
|
+
/**
|
|
55
|
+
* The content of the thumbnail.
|
|
56
|
+
* @TJS-type React.ReactNode
|
|
57
|
+
*/
|
|
58
|
+
children?: ReactNode;
|
|
59
|
+
/**
|
|
60
|
+
* Permitted aspect ratios for the size of the thumbnail image.
|
|
61
|
+
* @default 1/1
|
|
62
|
+
*/
|
|
63
|
+
aspectRatio?: typeof thumbnail.properties.aspectRatio[number];
|
|
64
|
+
/**
|
|
65
|
+
* Width value of the thumbnail image. Defaults to 100%.
|
|
66
|
+
* @default 100%
|
|
67
|
+
*/
|
|
68
|
+
width?: string;
|
|
69
|
+
}
|
|
70
|
+
export type ThumbnailProps = ThumbnailProperties & ImgHTMLAttributes<HTMLImageElement>;
|
|
71
|
+
export declare const Thumbnail: React.FC<ThumbnailProps> & ThumbnailComponents;
|
|
72
|
+
|
|
73
|
+
export {};
|