@nimbus-ds/components 5.23.0-rc.1 → 5.23.0

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Accordion/index.js +1 -1
  3. package/dist/Alert/index.d.ts +60 -0
  4. package/dist/Alert/index.js +1 -1
  5. package/dist/Badge/index.js +1 -1
  6. package/dist/Box/index.d.ts +6 -3
  7. package/dist/Button/index.js +1 -1
  8. package/dist/CHANGELOG.md +6 -0
  9. package/dist/Card/index.js +1 -1
  10. package/dist/Checkbox/index.js +1 -1
  11. package/dist/Chip/index.d.ts +59 -0
  12. package/dist/Chip/index.js +1 -1
  13. package/dist/FileUploader/index.d.ts +98 -0
  14. package/dist/FileUploader/index.js +1 -1
  15. package/dist/Icon/index.d.ts +120 -0
  16. package/dist/Icon/index.js +1 -1
  17. package/dist/IconButton/index.js +1 -1
  18. package/dist/Input/index.d.ts +76 -0
  19. package/dist/Input/index.js +1 -1
  20. package/dist/Label/index.js +1 -1
  21. package/dist/Link/index.d.ts +115 -0
  22. package/dist/Link/index.js +1 -1
  23. package/dist/List/index.js +1 -1
  24. package/dist/Modal/index.d.ts +232 -0
  25. package/dist/Modal/index.js +1 -1
  26. package/dist/MultiSelect/index.d.ts +107 -0
  27. package/dist/MultiSelect/index.js +1 -1
  28. package/dist/Pagination/index.d.ts +41 -0
  29. package/dist/Pagination/index.js +1 -1
  30. package/dist/Popover/index.d.ts +165 -0
  31. package/dist/ProgressBar/index.js +1 -1
  32. package/dist/Radio/index.d.ts +62 -0
  33. package/dist/Radio/index.js +1 -1
  34. package/dist/ScrollPane/index.d.ts +889 -0
  35. package/dist/ScrollPane/index.js +1 -1
  36. package/dist/SegmentedControl/index.d.ts +6 -3
  37. package/dist/SegmentedControl/index.js +1 -1
  38. package/dist/Select/index.d.ts +81 -0
  39. package/dist/Select/index.js +1 -1
  40. package/dist/Sidebar/index.js +1 -1
  41. package/dist/Skeleton/index.d.ts +31 -0
  42. package/dist/Spinner/index.d.ts +53 -0
  43. package/dist/Stepper/index.d.ts +869 -0
  44. package/dist/Stepper/index.js +1 -1
  45. package/dist/Tag/index.js +1 -1
  46. package/dist/Text/index.js +1 -1
  47. package/dist/Textarea/index.js +1 -1
  48. package/dist/Thumbnail/index.d.ts +73 -0
  49. package/dist/Thumbnail/index.js +1 -1
  50. package/dist/Title/index.js +1 -1
  51. package/dist/Toast/index.d.ts +56 -0
  52. package/dist/Toast/index.js +1 -1
  53. package/dist/Toggle/index.js +1 -1
  54. package/dist/Tooltip/index.d.ts +46 -0
  55. package/dist/Tooltip/index.js +1 -1
  56. package/dist/components-props.json +1 -0
  57. package/dist/index.d.ts +6 -3
  58. package/dist/index.js +1 -1
  59. package/package.json +1 -1
@@ -0,0 +1,98 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { HTMLAttributes, InputHTMLAttributes } from 'react';
5
+
6
+ export type AspectRatio = "1/1" | "16/9" | "9/16" | "4/3" | "3/4" | "2/1" | "1/2";
7
+ export type Cursor = "auto" | "pointer" | "not-allowed" | "grab" | "inherit";
8
+ declare const fileUploader: {
9
+ sprinkle: ((props: {
10
+ aspectRatio?: "none" | AspectRatio | undefined;
11
+ flexDirection?: "row" | "column" | undefined;
12
+ cursor?: Cursor | undefined;
13
+ }) => string) & {
14
+ properties: Set<"aspectRatio" | "cursor" | "flexDirection">;
15
+ };
16
+ properties: {
17
+ aspectRatio: readonly [
18
+ "none",
19
+ ...AspectRatio[]
20
+ ];
21
+ flexDirection: readonly [
22
+ "row",
23
+ "column"
24
+ ];
25
+ cursor: Cursor[];
26
+ };
27
+ classnames: {
28
+ container: string;
29
+ container__input: string;
30
+ disabled: string;
31
+ skeleton: string;
32
+ };
33
+ };
34
+ export interface SkeletonProperties {
35
+ /**
36
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
37
+ */
38
+ width: string;
39
+ /**
40
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
41
+ */
42
+ height: string;
43
+ /**
44
+ * The border radius of the skeleton.
45
+ */
46
+ borderRadius?: string;
47
+ /**
48
+ * This is an attribute used to identify a DOM node for testing purposes.
49
+ */
50
+ "data-testid"?: string;
51
+ }
52
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
53
+ export type FileUploaderSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & Partial<Pick<FileUploaderProps, "aspectRatio">> & {
54
+ /**
55
+ * This is an attribute used to identify a DOM node for testing purposes.
56
+ */
57
+ "data-testid"?: string;
58
+ };
59
+ export type FileUploaderSkeletonProps = FileUploaderSkeletonProperties;
60
+ export declare const FileUploaderSkeleton: React.FC<FileUploaderSkeletonProps>;
61
+ export interface FileUploaderComponents {
62
+ Skeleton: typeof FileUploaderSkeleton;
63
+ }
64
+ export interface FileUploaderProperties {
65
+ /**
66
+ * Provide additional context to the action.
67
+ */
68
+ placeholder?: string;
69
+ /**
70
+ * Accept file types
71
+ * @default image/jpeg,image/gif,image/png
72
+ */
73
+ accept?: string;
74
+ /**
75
+ * Height value of the file uploader. Defaults to 100%.
76
+ * @default 100%
77
+ */
78
+ height?: string;
79
+ /**
80
+ * Width value of the file uploader. Defaults to 100%.
81
+ * @default 100%
82
+ */
83
+ width?: string;
84
+ /**
85
+ * Permitted aspect ratios for the size of the file uploader.
86
+ * @default 1/1
87
+ */
88
+ aspectRatio?: typeof fileUploader.properties.aspectRatio[number];
89
+ /**
90
+ * Defines the position of the placeholder in relation to the icon.
91
+ * @default column
92
+ */
93
+ flexDirection?: typeof fileUploader.properties.flexDirection[number];
94
+ }
95
+ export type FileUploaderProps = FileUploaderProperties & InputHTMLAttributes<HTMLInputElement>;
96
+ export declare const FileUploader: React.FC<FileUploaderProps> & FileUploaderComponents;
97
+
98
+ export {};