@nimbus-ds/components 5.21.3 → 5.23.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Accordion/index.js +1 -1
  3. package/dist/Alert/index.js +1 -1
  4. package/dist/Badge/index.js +1 -1
  5. package/dist/Box/index.d.ts +17 -13
  6. package/dist/Button/index.js +1 -1
  7. package/dist/CHANGELOG.md +6 -0
  8. package/dist/Card/index.js +1 -1
  9. package/dist/Checkbox/index.js +1 -1
  10. package/dist/Chip/index.js +1 -1
  11. package/dist/FileUploader/index.js +1 -1
  12. package/dist/Icon/index.js +1 -1
  13. package/dist/IconButton/index.js +1 -1
  14. package/dist/Input/index.js +1 -1
  15. package/dist/Label/index.js +1 -1
  16. package/dist/Link/index.js +1 -1
  17. package/dist/List/index.js +1 -1
  18. package/dist/Modal/index.js +1 -1
  19. package/dist/MultiSelect/index.js +1 -1
  20. package/dist/Pagination/index.js +1 -1
  21. package/dist/ProgressBar/index.js +1 -1
  22. package/dist/Radio/index.js +1 -1
  23. package/dist/ScrollPane/index.js +1 -1
  24. package/dist/SegmentedControl/index.d.ts +17 -13
  25. package/dist/SegmentedControl/index.js +1 -1
  26. package/dist/Select/index.js +1 -1
  27. package/dist/Sidebar/index.js +1 -1
  28. package/dist/Stepper/index.js +1 -1
  29. package/dist/Tag/index.js +1 -1
  30. package/dist/Text/index.js +1 -1
  31. package/dist/Textarea/index.d.ts +1 -1
  32. package/dist/Textarea/index.js +1 -1
  33. package/dist/Thumbnail/index.js +1 -1
  34. package/dist/Title/index.js +1 -1
  35. package/dist/Toast/index.js +1 -1
  36. package/dist/Toggle/index.js +1 -1
  37. package/dist/Tooltip/index.js +1 -1
  38. package/dist/index.d.ts +18 -14
  39. package/dist/index.js +1 -1
  40. package/package.json +1 -1
  41. package/dist/Alert/index.d.ts +0 -60
  42. package/dist/Chip/index.d.ts +0 -59
  43. package/dist/FileUploader/index.d.ts +0 -98
  44. package/dist/Icon/index.d.ts +0 -120
  45. package/dist/Input/index.d.ts +0 -76
  46. package/dist/Link/index.d.ts +0 -115
  47. package/dist/Modal/index.d.ts +0 -232
  48. package/dist/MultiSelect/index.d.ts +0 -107
  49. package/dist/Pagination/index.d.ts +0 -41
  50. package/dist/Popover/index.d.ts +0 -165
  51. package/dist/Radio/index.d.ts +0 -62
  52. package/dist/ScrollPane/index.d.ts +0 -882
  53. package/dist/Select/index.d.ts +0 -81
  54. package/dist/Skeleton/index.d.ts +0 -31
  55. package/dist/Spinner/index.d.ts +0 -53
  56. package/dist/Stepper/index.d.ts +0 -862
  57. package/dist/Thumbnail/index.d.ts +0 -73
  58. package/dist/Toast/index.d.ts +0 -56
  59. package/dist/Tooltip/index.d.ts +0 -46
  60. package/dist/components-props.json +0 -1
@@ -1,73 +0,0 @@
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 {};
@@ -1,56 +0,0 @@
1
- // Generated by dts-bundle-generator v7.2.0
2
-
3
- import React from 'react';
4
- import { HTMLAttributes, ReactNode } from 'react';
5
-
6
- export interface ToastProviderProperties {
7
- /**
8
- * @TJS-type React.ReactNode
9
- */
10
- children: ReactNode;
11
- }
12
- export type ToastProviderProps = ToastProviderProperties;
13
- export declare const ToastProvider: React.FC<ToastProviderProps>;
14
- export interface ToastComponents {
15
- Provider: typeof ToastProvider;
16
- }
17
- export type Types = "primary" | "success" | "danger" | "progress";
18
- export interface ToastProperties {
19
- /**
20
- * Unique toast ID used when hiding or removing a toast.
21
- */
22
- id: string;
23
- /**
24
- * The text that should appear in the toast message.
25
- */
26
- text: string;
27
- /**
28
- * Change the visual style of the toast.
29
- * @default primary
30
- */
31
- type?: Types;
32
- /**
33
- * The time in milliseconds that the toast message should persist.
34
- * @default 4000
35
- */
36
- duration?: 4000 | 8000 | 16000;
37
- /**
38
- * Tells you whether or not Toast should close automatically.
39
- * @default true
40
- */
41
- autoClose?: boolean;
42
- /**
43
- * Tells the toast position when we are using multiple toasts.
44
- * @default 0
45
- */
46
- position?: number;
47
- }
48
- export type ToastProps = ToastProperties & HTMLAttributes<HTMLDivElement>;
49
- export declare const Toast: React.FC<ToastProps> & ToastComponents;
50
- export interface ToastContextProps {
51
- closeToast: (id: string) => void;
52
- addToast: (toast: Omit<ToastProps, "autoClose">) => void;
53
- }
54
- export declare const useToast: () => ToastContextProps;
55
-
56
- export {};
@@ -1,46 +0,0 @@
1
- // Generated by dts-bundle-generator v7.2.0
2
-
3
- import React from 'react';
4
- import { HTMLAttributes, ReactNode } from 'react';
5
-
6
- export interface Conditions<T> {
7
- xs?: T;
8
- md?: T;
9
- lg?: T;
10
- xl?: T;
11
- }
12
- export interface TooltipSprinkle {
13
- /**
14
- * The maxWidth property specifies the maximum width of a popover's content area.
15
- */
16
- maxWidth?: string | Conditions<string>;
17
- }
18
- export interface TooltipProperties extends TooltipSprinkle {
19
- /**
20
- * An HTML element, or a function that returns one. It's used to set the position of the tooltip.
21
- * @TJS-type React.ReactNode
22
- */
23
- children: ReactNode;
24
- /**
25
- * The text that should appear in the tooltip message.
26
- */
27
- content: string;
28
- /**
29
- * Conditional for displaying the popover arrow.
30
- * @default false
31
- */
32
- arrow?: boolean;
33
- /**
34
- * Position of the popover.
35
- * @default bottom
36
- */
37
- position?: "top" | "bottom" | "left" | "right";
38
- }
39
- export type TooltipProps = TooltipProperties & HTMLAttributes<HTMLDivElement>;
40
- export declare const Tooltip: React.FC<TooltipProps>;
41
-
42
- export {
43
- Tooltip as default,
44
- };
45
-
46
- export {};