@nimbus-ds/components 5.8.0-rc.1 → 5.8.0-rc.10

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.
@@ -0,0 +1,100 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { HTMLAttributes, ReactNode } from 'react';
5
+
6
+ export type Cursor = "auto" | "pointer" | "not-allowed" | "grab" | "inherit";
7
+ declare const icon: {
8
+ sprinkle: ((props: {
9
+ color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "warning-interactive" | "warning-surface" | "warning-textLow" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "success-interactive" | "primary-textHigh" | "success-textHigh" | "warning-textHigh" | "danger-textHigh" | "neutral-textDisabled" | "neutral-textHigh" | undefined;
10
+ cursor?: Cursor | undefined;
11
+ }) => string) & {
12
+ properties: Set<"color" | "cursor">;
13
+ };
14
+ properties: {
15
+ color: {
16
+ currentColor: string;
17
+ "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
18
+ "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
19
+ "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
20
+ "primary-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
21
+ "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
22
+ "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
23
+ "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
24
+ "success-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
25
+ "warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
26
+ "warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
27
+ "warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
28
+ "warning-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
29
+ "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
30
+ "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
31
+ "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
32
+ "danger-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
33
+ "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
34
+ "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
35
+ "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
36
+ "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
37
+ "neutral-textDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
38
+ "neutral-textHigh": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
39
+ };
40
+ cursor: Cursor[];
41
+ };
42
+ classnames: {
43
+ base: string;
44
+ };
45
+ };
46
+ export interface SkeletonProperties {
47
+ /**
48
+ * Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
49
+ */
50
+ width: string;
51
+ /**
52
+ * Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
53
+ */
54
+ height: string;
55
+ /**
56
+ * The border radius of the skeleton.
57
+ */
58
+ borderRadius?: string;
59
+ /**
60
+ * This is an attribute used to identify a DOM node for testing purposes.
61
+ */
62
+ "data-testid"?: string;
63
+ }
64
+ export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
65
+ export type IconSkeletonProperties = Partial<Pick<SkeletonProps, "width">> & Partial<Pick<SkeletonProps, "height">> & {
66
+ /**
67
+ * This is an attribute used to identify a DOM node for testing purposes.
68
+ */
69
+ "data-testid"?: string;
70
+ };
71
+ export type IconSkeletonProps = IconSkeletonProperties;
72
+ declare const IconSkeleton: React.FC<IconSkeletonProps>;
73
+ export interface IconComponents {
74
+ Skeleton: typeof IconSkeleton;
75
+ }
76
+ export interface IconProperties {
77
+ /**
78
+ * The SVG contents to display in the Icon.
79
+ * @TJS-type React.ReactNode
80
+ */
81
+ source: ReactNode;
82
+ /**
83
+ * Set the color for the SVG fill.
84
+ * @default neutral-textLow
85
+ */
86
+ color?: keyof typeof icon.properties.color;
87
+ /**
88
+ * The cursor property specifies the mouse cursor to be displayed when pointing over an element.
89
+ * @default inherit
90
+ */
91
+ cursor?: typeof icon.properties.cursor[number];
92
+ }
93
+ export type IconProps = IconProperties & HTMLAttributes<HTMLDivElement>;
94
+ export declare const Icon: React.FC<IconProps> & IconComponents;
95
+
96
+ export {
97
+ Icon as default,
98
+ };
99
+
100
+ export {};