@nimbus-ds/components 5.29.0-rc.1 → 5.29.1-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 +1 -1
- package/dist/Accordion/index.d.ts +136 -0
- package/dist/Alert/index.d.ts +60 -0
- package/dist/Badge/index.d.ts +55 -0
- package/dist/Box/index.d.ts +779 -0
- package/dist/Button/index.d.ts +83 -0
- package/dist/CHANGELOG.md +1 -1
- package/dist/Card/index.d.ts +153 -0
- package/dist/Checkbox/index.d.ts +62 -0
- package/dist/Chip/index.d.ts +59 -0
- package/dist/Collapsible/index.d.ts +45 -0
- package/dist/Divider/index.d.ts +30 -0
- package/dist/FileUploader/index.d.ts +98 -0
- package/dist/Icon/index.d.ts +120 -0
- package/dist/IconButton/index.d.ts +170 -0
- package/dist/Input/index.d.ts +76 -0
- package/dist/Label/index.d.ts +55 -0
- package/dist/Link/index.d.ts +115 -0
- package/dist/List/index.d.ts +75 -0
- package/dist/Modal/index.d.ts +232 -0
- package/dist/MultiSelect/index.d.ts +107 -0
- package/dist/Pagination/index.d.ts +41 -0
- package/dist/Popover/index.d.ts +165 -0
- package/dist/ProgressBar/index.d.ts +57 -0
- package/dist/Radio/index.d.ts +62 -0
- package/dist/ScrollPane/index.d.ts +893 -0
- package/dist/SegmentedControl/index.d.ts +879 -0
- package/dist/Select/index.d.ts +87 -0
- package/dist/Sidebar/index.d.ts +390 -0
- package/dist/Sidebar/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 +873 -0
- package/dist/Table/index.d.ts +123 -0
- package/dist/Tabs/index.d.ts +92 -0
- package/dist/Tag/index.d.ts +51 -0
- package/dist/Text/index.d.ts +508 -0
- package/dist/Textarea/index.d.ts +71 -0
- package/dist/Thumbnail/index.d.ts +73 -0
- package/dist/Title/index.d.ts +164 -0
- package/dist/Toast/index.d.ts +56 -0
- package/dist/Toggle/index.d.ts +48 -0
- package/dist/Tooltip/index.d.ts +46 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,893 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { ComponentPropsWithRef, HTMLAttributes, ReactNode, RefObject } from 'react';
|
|
5
|
+
|
|
6
|
+
export type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
|
|
7
|
+
export type ForwardRefExoticComponent<E, OwnProps> = React.ForwardRefExoticComponent<Merge<E extends React.ElementType ? React.ComponentPropsWithRef<E> : never, OwnProps & {
|
|
8
|
+
as?: E;
|
|
9
|
+
}>>;
|
|
10
|
+
export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps = {}
|
|
11
|
+
/**
|
|
12
|
+
* Extends original type to ensure built in React types play nice
|
|
13
|
+
* with polymorphic components still e.g. `React.ElementRef` etc.
|
|
14
|
+
*/
|
|
15
|
+
> extends ForwardRefExoticComponent<IntrinsicElementString, OwnProps> {
|
|
16
|
+
/**
|
|
17
|
+
* When `as` prop is passed, use this overload.
|
|
18
|
+
* Merges original own props (without DOM props) and the inferred props
|
|
19
|
+
* from `as` element with the own props taking precendence.
|
|
20
|
+
*
|
|
21
|
+
* We explicitly avoid `React.ElementType` and manually narrow the prop types
|
|
22
|
+
* so that events are typed when using JSX.IntrinsicElements.
|
|
23
|
+
*/
|
|
24
|
+
<As = IntrinsicElementString>(props: As extends "" ? {
|
|
25
|
+
as: keyof JSX.IntrinsicElements;
|
|
26
|
+
} : As extends React.ComponentType<infer P> ? Merge<P, OwnProps & {
|
|
27
|
+
as: As;
|
|
28
|
+
}> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
|
|
29
|
+
as: As;
|
|
30
|
+
}> : never): React.ReactElement | null;
|
|
31
|
+
}
|
|
32
|
+
export interface Conditions<T> {
|
|
33
|
+
xs?: T;
|
|
34
|
+
md?: T;
|
|
35
|
+
lg?: T;
|
|
36
|
+
xl?: T;
|
|
37
|
+
}
|
|
38
|
+
export type BorderStyle = "solid" | "none" | "hidden" | "dashed" | "dotted";
|
|
39
|
+
export type BoxSizing = "border-box" | "content-box";
|
|
40
|
+
export type Cursor = "auto" | "pointer" | "not-allowed" | "grab" | "inherit";
|
|
41
|
+
export type Display = "block" | "flex" | "inline-flex" | "grid" | "inline-grid" | "none";
|
|
42
|
+
export type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
|
|
43
|
+
export type FlexDirection = "row" | "row-reverse" | "column" | "column-reverse";
|
|
44
|
+
export type JustifyContent = "flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly";
|
|
45
|
+
export type AlignItems = "stretch" | "flex-start" | "flex-end" | "center" | "baseline";
|
|
46
|
+
export type AlignSelf = "auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch";
|
|
47
|
+
export type TextAlign = "left" | "right" | "center" | "justify";
|
|
48
|
+
export type TextDecoration = "none" | "underline" | "line-through";
|
|
49
|
+
export type Position = "absolute" | "fixed" | "relative" | "static" | "sticky";
|
|
50
|
+
export type Overflow = "visible" | "hidden" | "scroll" | "auto";
|
|
51
|
+
export type PointerEvents = "auto" | "none" | "visiblePainted" | "visibleFill" | "visibleStroke" | "visible" | "painted" | "fill" | "stroke" | "all" | "inherit";
|
|
52
|
+
export type TransitionTiming = "ease" | "ease-in" | "ease-out" | "ease-in-out" | "linear" | "step-start" | "step-end";
|
|
53
|
+
declare const propertiesBox: {
|
|
54
|
+
gap: {
|
|
55
|
+
none: string;
|
|
56
|
+
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
57
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
58
|
+
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
59
|
+
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
60
|
+
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
61
|
+
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
62
|
+
"3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
63
|
+
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
64
|
+
"4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
65
|
+
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
66
|
+
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
67
|
+
"7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
68
|
+
"8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
69
|
+
"9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
70
|
+
"10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
71
|
+
"11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
72
|
+
"12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
73
|
+
"14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
74
|
+
"16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
75
|
+
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
76
|
+
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
77
|
+
};
|
|
78
|
+
gridGap: {
|
|
79
|
+
none: string;
|
|
80
|
+
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
81
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
82
|
+
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
83
|
+
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
84
|
+
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
85
|
+
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
86
|
+
"3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
87
|
+
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
88
|
+
"4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
89
|
+
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
90
|
+
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
91
|
+
"7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
92
|
+
"8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
93
|
+
"9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
94
|
+
"10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
95
|
+
"11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
96
|
+
"12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
97
|
+
"14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
98
|
+
"16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
99
|
+
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
100
|
+
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
101
|
+
};
|
|
102
|
+
display: Display[];
|
|
103
|
+
flexDirection: FlexDirection[];
|
|
104
|
+
flexWrap: FlexWrap[];
|
|
105
|
+
justifyContent: JustifyContent[];
|
|
106
|
+
alignItems: AlignItems[];
|
|
107
|
+
alignSelf: AlignSelf[];
|
|
108
|
+
pointerEvents: PointerEvents[];
|
|
109
|
+
backgroundColor: {
|
|
110
|
+
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
111
|
+
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
112
|
+
"primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
113
|
+
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
114
|
+
"success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
115
|
+
"success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
116
|
+
"success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
117
|
+
"success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
118
|
+
"warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
119
|
+
"warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
120
|
+
"warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
121
|
+
"warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
122
|
+
"danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
|
|
123
|
+
* The min height property specifies the height of a box's content area.
|
|
124
|
+
*/
|
|
125
|
+
"danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
126
|
+
"danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
127
|
+
"danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
128
|
+
"neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
129
|
+
"neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
130
|
+
"neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
131
|
+
"neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
132
|
+
"neutral-surfaceDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
133
|
+
"neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
134
|
+
"ai-generative-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
135
|
+
"ai-generative-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
136
|
+
transparent: string;
|
|
137
|
+
};
|
|
138
|
+
background: {
|
|
139
|
+
"ai-generative-interactive-border": string;
|
|
140
|
+
"ai-generative-interactive": string;
|
|
141
|
+
transparent: string;
|
|
142
|
+
};
|
|
143
|
+
color: {
|
|
144
|
+
currentColor: string;
|
|
145
|
+
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
146
|
+
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
147
|
+
"primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
148
|
+
"primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
149
|
+
"success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
150
|
+
"success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
151
|
+
"success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
152
|
+
"success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
153
|
+
"warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
154
|
+
"warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
155
|
+
"warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
156
|
+
"warning-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
157
|
+
"danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
|
|
158
|
+
* The min height property specifies the height of a box's content area.
|
|
159
|
+
*/
|
|
160
|
+
"danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
161
|
+
"danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
162
|
+
"danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
163
|
+
"neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
164
|
+
"neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
165
|
+
"neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
166
|
+
"neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
167
|
+
"neutral-surfaceDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
168
|
+
"neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
169
|
+
"ai-generative-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
170
|
+
"ai-generative-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
171
|
+
transparent: string;
|
|
172
|
+
};
|
|
173
|
+
borderColor: {
|
|
174
|
+
"primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
175
|
+
"primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
176
|
+
"primary-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
177
|
+
"success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
178
|
+
"success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
179
|
+
"success-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
180
|
+
"warning-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
181
|
+
"warning-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
182
|
+
"warning-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
183
|
+
"danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
184
|
+
"danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
185
|
+
"danger-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
186
|
+
"neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
187
|
+
"neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
188
|
+
"neutral-surfaceDisabled": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
189
|
+
"neutral-surfaceHighlight": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
190
|
+
transparent: string;
|
|
191
|
+
};
|
|
192
|
+
borderRadius: {
|
|
193
|
+
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
194
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
195
|
+
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
196
|
+
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
197
|
+
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
198
|
+
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
199
|
+
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
200
|
+
full: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
201
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
202
|
+
half: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
203
|
+
none: string;
|
|
204
|
+
};
|
|
205
|
+
borderWidth: {
|
|
206
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
207
|
+
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
208
|
+
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
209
|
+
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
210
|
+
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
211
|
+
none: string;
|
|
212
|
+
};
|
|
213
|
+
borderStyle: BorderStyle[];
|
|
214
|
+
boxSizing: BoxSizing[];
|
|
215
|
+
cursor: Cursor[];
|
|
216
|
+
spacing: {
|
|
217
|
+
none: string;
|
|
218
|
+
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
219
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
220
|
+
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
221
|
+
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
222
|
+
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
223
|
+
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
224
|
+
"3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
225
|
+
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
226
|
+
"4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
227
|
+
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
228
|
+
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
229
|
+
"7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
230
|
+
"8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
231
|
+
"9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
232
|
+
"10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
233
|
+
"11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
234
|
+
"12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
235
|
+
"14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
236
|
+
"16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
237
|
+
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
238
|
+
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
239
|
+
};
|
|
240
|
+
margin: {
|
|
241
|
+
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
242
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
243
|
+
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
244
|
+
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
245
|
+
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
246
|
+
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
247
|
+
"3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
248
|
+
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
249
|
+
"4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
250
|
+
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
251
|
+
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
252
|
+
"7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
253
|
+
"8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
254
|
+
"9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
255
|
+
"10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
256
|
+
"11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
257
|
+
"12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
258
|
+
"14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
259
|
+
"16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
260
|
+
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
261
|
+
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
262
|
+
auto: string;
|
|
263
|
+
none: string;
|
|
264
|
+
};
|
|
265
|
+
position: Position[];
|
|
266
|
+
overflow: Overflow[];
|
|
267
|
+
overflowX: Overflow[];
|
|
268
|
+
overflowY: Overflow[];
|
|
269
|
+
boxShadow: {
|
|
270
|
+
"0": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
271
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
272
|
+
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
273
|
+
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
274
|
+
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
275
|
+
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
276
|
+
focusRing: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
277
|
+
aiFocus: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
278
|
+
};
|
|
279
|
+
transitionDuration: {
|
|
280
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
281
|
+
fast: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
282
|
+
slow: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
283
|
+
slower: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
284
|
+
};
|
|
285
|
+
transitionTimingFunction: TransitionTiming[];
|
|
286
|
+
textDecoration: TextDecoration[];
|
|
287
|
+
zIndex: {
|
|
288
|
+
"100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
289
|
+
"200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
290
|
+
"300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
291
|
+
"400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
292
|
+
"500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
293
|
+
"600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
294
|
+
"700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
295
|
+
"800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
296
|
+
"900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
297
|
+
};
|
|
298
|
+
textAlign: TextAlign[];
|
|
299
|
+
fontWeight: {
|
|
300
|
+
regular: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
301
|
+
medium: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
302
|
+
bold: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
303
|
+
};
|
|
304
|
+
fontSize: {
|
|
305
|
+
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
306
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
307
|
+
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
308
|
+
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
309
|
+
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
310
|
+
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
311
|
+
"3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
312
|
+
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
313
|
+
"4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
314
|
+
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
315
|
+
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
316
|
+
"7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
317
|
+
"8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
318
|
+
"9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
319
|
+
"10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
320
|
+
"11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
321
|
+
"12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
322
|
+
"14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
323
|
+
"16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
324
|
+
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
325
|
+
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
326
|
+
h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
327
|
+
h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`; /**
|
|
328
|
+
* This defines the ability for a flex item to shrink if necessary.
|
|
329
|
+
*/
|
|
330
|
+
h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
331
|
+
h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
332
|
+
h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
333
|
+
h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
334
|
+
};
|
|
335
|
+
lineHeight: {
|
|
336
|
+
"0-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
337
|
+
"1": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
338
|
+
"1-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
339
|
+
"2": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
340
|
+
"2-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
341
|
+
"3": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
342
|
+
"3-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
343
|
+
"4": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
344
|
+
"4-5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
345
|
+
"5": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
346
|
+
"6": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
347
|
+
"7": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
348
|
+
"8": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
349
|
+
"9": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
350
|
+
"10": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
351
|
+
"11": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
352
|
+
"12": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
353
|
+
"14": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
354
|
+
"16": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
355
|
+
"18": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
356
|
+
"20": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
357
|
+
h1: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
358
|
+
h2: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
359
|
+
h3: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
360
|
+
h4: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
361
|
+
h5: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
362
|
+
h6: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
export type BoxBorderColorProperties = keyof typeof propertiesBox.borderColor;
|
|
366
|
+
export type BoxBorderRadiusProperties = keyof typeof propertiesBox.borderRadius;
|
|
367
|
+
export type BoxBorderWidthProperties = keyof typeof propertiesBox.borderWidth;
|
|
368
|
+
export type BoxBackgroundColorProperties = keyof typeof propertiesBox.backgroundColor;
|
|
369
|
+
export type BoxColorProperties = keyof typeof propertiesBox.color;
|
|
370
|
+
export type BoxShadowProperties = keyof typeof propertiesBox.boxShadow;
|
|
371
|
+
export type BoxSpacingProperties = keyof typeof propertiesBox.spacing;
|
|
372
|
+
export type BoxMarginProperties = keyof typeof propertiesBox.margin;
|
|
373
|
+
export type BoxGapProperties = keyof typeof propertiesBox.gap;
|
|
374
|
+
export type BoxGridGapProperties = keyof typeof propertiesBox.gridGap;
|
|
375
|
+
export type BoxZIndexProperties = keyof typeof propertiesBox.zIndex;
|
|
376
|
+
export type BoxTransitionDurationProperties = keyof typeof propertiesBox.transitionDuration;
|
|
377
|
+
export type BoxFontSizeProperties = keyof typeof propertiesBox.fontSize;
|
|
378
|
+
export type BoxFontWeightProperties = keyof typeof propertiesBox.fontWeight;
|
|
379
|
+
export type BoxLineHeightProperties = keyof typeof propertiesBox.lineHeight;
|
|
380
|
+
export type BoxBackgroundProperties = keyof typeof propertiesBox.background;
|
|
381
|
+
export interface BoxConditions<T> extends Conditions<T> {
|
|
382
|
+
focus?: T;
|
|
383
|
+
focusWithin?: T;
|
|
384
|
+
active?: T;
|
|
385
|
+
hover?: T;
|
|
386
|
+
disabled?: T;
|
|
387
|
+
}
|
|
388
|
+
export interface BoxSprinkle {
|
|
389
|
+
/**
|
|
390
|
+
* The width property specifies the width of a box's content area.
|
|
391
|
+
*/
|
|
392
|
+
width?: string | BoxConditions<string>;
|
|
393
|
+
/**
|
|
394
|
+
* The height property specifies the height of a box's content area.
|
|
395
|
+
*/
|
|
396
|
+
height?: string | BoxConditions<string>;
|
|
397
|
+
/**
|
|
398
|
+
* The max width property specifies the width of a box's content area.
|
|
399
|
+
*/
|
|
400
|
+
maxWidth?: string | BoxConditions<string>;
|
|
401
|
+
/**
|
|
402
|
+
* The max height property specifies the height of a box's content area.
|
|
403
|
+
*/
|
|
404
|
+
maxHeight?: string | BoxConditions<string>;
|
|
405
|
+
/**
|
|
406
|
+
* The min width property specifies the width of a box's content area.
|
|
407
|
+
*/
|
|
408
|
+
minWidth?: string | BoxConditions<string>;
|
|
409
|
+
/**
|
|
410
|
+
* The min height property specifies the height of a box's content area.
|
|
411
|
+
*/
|
|
412
|
+
minHeight?: string | BoxConditions<string>;
|
|
413
|
+
/**
|
|
414
|
+
* The bottom property participates in setting the vertical position of a positioned box.
|
|
415
|
+
*/
|
|
416
|
+
bottom?: string | BoxConditions<string>;
|
|
417
|
+
/**
|
|
418
|
+
* The left property participates in specifying the horizontal position of a positioned box.
|
|
419
|
+
*/
|
|
420
|
+
left?: string | BoxConditions<string>;
|
|
421
|
+
/**
|
|
422
|
+
* The right property participates in specifying the horizontal position of a positioned box.
|
|
423
|
+
*/
|
|
424
|
+
right?: string | BoxConditions<string>;
|
|
425
|
+
/**
|
|
426
|
+
* The top property participates in setting the vertical position of a positioned box.
|
|
427
|
+
*/
|
|
428
|
+
top?: string | BoxConditions<string>;
|
|
429
|
+
/**
|
|
430
|
+
* This is the shorthand for flexGrow, flexShrink and flexBasis combined.
|
|
431
|
+
*/
|
|
432
|
+
flex?: string | BoxConditions<string>;
|
|
433
|
+
/**
|
|
434
|
+
* This defines the ability for a flex item to shrink if necessary.
|
|
435
|
+
*/
|
|
436
|
+
flexShrink?: string | BoxConditions<string>;
|
|
437
|
+
/**
|
|
438
|
+
* This defines the ability for a flex item to grow if necessary.
|
|
439
|
+
*/
|
|
440
|
+
flexGrow?: string | BoxConditions<string>;
|
|
441
|
+
/**
|
|
442
|
+
* The flexWrap property sets whether flex items are forced onto one line or can wrap onto multiple lines.
|
|
443
|
+
*/
|
|
444
|
+
flexWrap?: FlexWrap | BoxConditions<FlexWrap>;
|
|
445
|
+
/**
|
|
446
|
+
* The order property controls the order in which they appear in a flex container.
|
|
447
|
+
*/
|
|
448
|
+
order?: string | BoxConditions<string>;
|
|
449
|
+
/**
|
|
450
|
+
* The gridTemplateColumns property defines the line names and track sizing functions of the grid columns.
|
|
451
|
+
*/
|
|
452
|
+
gridTemplateColumns?: string | BoxConditions<string>;
|
|
453
|
+
/**
|
|
454
|
+
* The gridTemplateAreas property specifies named grid areas, establishing the cells in the grid and assigning them names.
|
|
455
|
+
*/
|
|
456
|
+
gridTemplateAreas?: string | BoxConditions<string>;
|
|
457
|
+
/**
|
|
458
|
+
* The gridTemplateRows property defines the line names and track sizing functions of the grid rows.
|
|
459
|
+
*/
|
|
460
|
+
gridTemplateRows?: string | BoxConditions<string>;
|
|
461
|
+
/**
|
|
462
|
+
* The gridArea shorthand property specifies a grid item's size and location within a grid by contributing a line,
|
|
463
|
+
* a span, or nothing (automatic) to its grid placement, thereby specifying the edges of its grid area.
|
|
464
|
+
*/
|
|
465
|
+
gridArea?: string | BoxConditions<string>;
|
|
466
|
+
/**
|
|
467
|
+
* The display property sets whether an box is treated as a block or inline element and the layout used for its children,
|
|
468
|
+
* such as grid or flex.
|
|
469
|
+
*/
|
|
470
|
+
display?: Display | BoxConditions<Display>;
|
|
471
|
+
/**
|
|
472
|
+
* The justifyContent property defines how the browser distributes space between and around content items along
|
|
473
|
+
* the main-axis of a flex container, and the inline axis of a grid container.
|
|
474
|
+
*/
|
|
475
|
+
justifyContent?: JustifyContent | BoxConditions<JustifyContent>;
|
|
476
|
+
/**
|
|
477
|
+
* The flexDirection property sets how flex items are placed in the flex container defining the main axis and the direction.
|
|
478
|
+
*/
|
|
479
|
+
flexDirection?: FlexDirection | BoxConditions<FlexDirection>;
|
|
480
|
+
/**
|
|
481
|
+
* The alignItems property sets the align-self value on all direct children as a group. In Flexbox, it controls the alignment of items on the Cross Axis.
|
|
482
|
+
* In Grid Layout, it controls the alignment of items on the Block Axis within their grid area.
|
|
483
|
+
*/
|
|
484
|
+
alignItems?: AlignItems | BoxConditions<AlignItems>;
|
|
485
|
+
/**
|
|
486
|
+
* The alignSelf property overrides a grid or flex item's align-items value. In Grid, it aligns the item inside the grid area.
|
|
487
|
+
* In Flexbox, it aligns the item on the cross axis.
|
|
488
|
+
*/
|
|
489
|
+
alignSelf?: AlignSelf | BoxConditions<AlignSelf>;
|
|
490
|
+
/**
|
|
491
|
+
* The gap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap.
|
|
492
|
+
*/
|
|
493
|
+
gap?: BoxGapProperties | BoxConditions<BoxGapProperties>;
|
|
494
|
+
/**
|
|
495
|
+
* The gridGap property sets the gaps between rows and columns. It is a shorthand for rowGap and columnGap.
|
|
496
|
+
*/
|
|
497
|
+
gridGap?: BoxGridGapProperties | BoxConditions<BoxGridGapProperties>;
|
|
498
|
+
/**
|
|
499
|
+
* The pointerEvents property sets under what circumstances (if any) a particular graphic element can become the target of pointer events.
|
|
500
|
+
*/
|
|
501
|
+
pointerEvents?: PointerEvents | BoxConditions<PointerEvents>;
|
|
502
|
+
/**
|
|
503
|
+
* The position property sets how an box is positioned in a document.
|
|
504
|
+
*/
|
|
505
|
+
position?: Position | BoxConditions<Position>;
|
|
506
|
+
/**
|
|
507
|
+
* The overflow shorthand property sets the desired behavior for an box's overflow.
|
|
508
|
+
*/
|
|
509
|
+
overflow?: Overflow | BoxConditions<Overflow>;
|
|
510
|
+
/**
|
|
511
|
+
* The overflow-x property sets what shows when content overflows a block-level box's left and right edges.
|
|
512
|
+
*/
|
|
513
|
+
overflowX?: Overflow | BoxConditions<Overflow>;
|
|
514
|
+
/**
|
|
515
|
+
* The overflow-y property sets what shows when content overflows a block-level box's top and bottom edges.
|
|
516
|
+
*/
|
|
517
|
+
overflowY?: Overflow | BoxConditions<Overflow>;
|
|
518
|
+
/**
|
|
519
|
+
* The cursor property sets the mouse cursor, if any, to show when the mouse pointer is over an box.
|
|
520
|
+
*/
|
|
521
|
+
cursor?: Cursor | BoxConditions<Cursor>;
|
|
522
|
+
/**
|
|
523
|
+
* The backgroundColor property sets the background color of the box.
|
|
524
|
+
* @default neutral-background
|
|
525
|
+
* @examples ["neutral-interactive", { xs: "neutral-surface", md: "neutral-interactive" }]
|
|
526
|
+
*/
|
|
527
|
+
backgroundColor?: BoxBackgroundColorProperties | BoxConditions<BoxBackgroundColorProperties>;
|
|
528
|
+
/**
|
|
529
|
+
* The color property is used to set the color of the box.
|
|
530
|
+
*/
|
|
531
|
+
color?: BoxColorProperties | BoxConditions<BoxColorProperties>;
|
|
532
|
+
/**
|
|
533
|
+
* The borderRadius property rounds the corners of an box's outer border edge.
|
|
534
|
+
*/
|
|
535
|
+
borderRadius?: BoxBorderRadiusProperties | BoxConditions<BoxBorderRadiusProperties>;
|
|
536
|
+
/**
|
|
537
|
+
* The borderWidth property sets the width of an box's border.
|
|
538
|
+
*/
|
|
539
|
+
borderWidth?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
|
|
540
|
+
/**
|
|
541
|
+
* The borderTopWidth property defines the width of the border at the top of a box.
|
|
542
|
+
*/
|
|
543
|
+
borderTopWidth?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
|
|
544
|
+
/**
|
|
545
|
+
* The borderBottomWidth property defines the width of the border at the bottom of a box.
|
|
546
|
+
*/
|
|
547
|
+
borderBottomWidth?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
|
|
548
|
+
/**
|
|
549
|
+
* The borderLeftWidth property defines the width of the border at the left of a box.
|
|
550
|
+
*/
|
|
551
|
+
borderLeftWidth?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
|
|
552
|
+
/**
|
|
553
|
+
* The borderRightWidth property defines the width of the border at the right of a box.
|
|
554
|
+
*/
|
|
555
|
+
borderRightWidth?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
|
|
556
|
+
/**
|
|
557
|
+
* The borderWidthX shorthand property defines the width of the element's border on the left and right.
|
|
558
|
+
*/
|
|
559
|
+
borderWidthX?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
|
|
560
|
+
/**
|
|
561
|
+
* The borderWidthY shorthand property defines the width of the element's border on the top and bottom.
|
|
562
|
+
*/
|
|
563
|
+
borderWidthY?: BoxBorderWidthProperties | BoxConditions<BoxBorderWidthProperties>;
|
|
564
|
+
/**
|
|
565
|
+
* The borderColor property sets the color of the box's four borders.
|
|
566
|
+
*/
|
|
567
|
+
borderColor?: BoxBorderColorProperties | BoxConditions<BoxBorderColorProperties>;
|
|
568
|
+
/**
|
|
569
|
+
* borderStyle property sets the line style for all four sides of an box's border.
|
|
570
|
+
*/
|
|
571
|
+
borderStyle?: BorderStyle | BoxConditions<BorderStyle>;
|
|
572
|
+
/**
|
|
573
|
+
* The boxSizing property sets how the total width and height of an box is calculated.
|
|
574
|
+
* @default border-box
|
|
575
|
+
*/
|
|
576
|
+
boxSizing?: BoxSizing | BoxConditions<BoxSizing>;
|
|
577
|
+
/**
|
|
578
|
+
* The boxShadow property adds shadow effects around an box's frame.
|
|
579
|
+
*/
|
|
580
|
+
boxShadow?: BoxShadowProperties | BoxConditions<BoxShadowProperties>;
|
|
581
|
+
/**
|
|
582
|
+
* The padding properties are used to generate space around an box's content area.
|
|
583
|
+
*/
|
|
584
|
+
padding?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
585
|
+
/**
|
|
586
|
+
* The paddingTop property sets the height of the padding area on the top of an box.
|
|
587
|
+
*/
|
|
588
|
+
paddingTop?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
589
|
+
/**
|
|
590
|
+
* The paddingBottom property sets the height of the padding area on the bottom of an box.
|
|
591
|
+
*/
|
|
592
|
+
paddingBottom?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
593
|
+
/**
|
|
594
|
+
* The paddingLeft property sets the width of the padding area to the left of an box.
|
|
595
|
+
*/
|
|
596
|
+
paddingLeft?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
597
|
+
/**
|
|
598
|
+
* The paddingLeft property sets the width of the padding area to the right of an box.
|
|
599
|
+
*/
|
|
600
|
+
paddingRight?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
601
|
+
/**
|
|
602
|
+
* The margin shorthand property sets the margin area on all four sides of an box.
|
|
603
|
+
*/
|
|
604
|
+
margin?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
605
|
+
/**
|
|
606
|
+
* The marginTop property sets the margin area on the top of an box.
|
|
607
|
+
*/
|
|
608
|
+
marginTop?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
609
|
+
/**
|
|
610
|
+
* The marginBottom property sets the margin area on the bottom of an box.
|
|
611
|
+
*/
|
|
612
|
+
marginBottom?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
613
|
+
/**
|
|
614
|
+
* The marginLeft property sets the margin area on the left side of an box.
|
|
615
|
+
*/
|
|
616
|
+
marginLeft?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
617
|
+
/**
|
|
618
|
+
* The marginRight property sets the margin area on the right side of an box.
|
|
619
|
+
*/
|
|
620
|
+
marginRight?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
621
|
+
/**
|
|
622
|
+
* The transitionTimingFunction property sets how intermediate values are calculated for CSS properties being affected by a transition effect.
|
|
623
|
+
*/
|
|
624
|
+
transitionTimingFunction?: TransitionTiming | BoxConditions<TransitionTiming>;
|
|
625
|
+
/**
|
|
626
|
+
* The transitionProperty property sets the CSS properties to which a transition effect should be applied.
|
|
627
|
+
*/
|
|
628
|
+
transitionProperty?: string | BoxConditions<string>;
|
|
629
|
+
/**
|
|
630
|
+
* The transitionDelay property specifies the duration to wait before starting a property's transition effect when its value changes.
|
|
631
|
+
*/
|
|
632
|
+
transitionDelay?: string | BoxConditions<string>;
|
|
633
|
+
/**
|
|
634
|
+
* The transitionDuration property sets the length of time a transition animation should take to complete. By default, the value is 0s, meaning that no animation will occur.
|
|
635
|
+
*/
|
|
636
|
+
transitionDuration?: BoxTransitionDurationProperties | BoxConditions<BoxTransitionDurationProperties>;
|
|
637
|
+
/**
|
|
638
|
+
* The zIndex property specifies the stack order of the box.
|
|
639
|
+
*/
|
|
640
|
+
zIndex?: BoxZIndexProperties | BoxConditions<BoxZIndexProperties>;
|
|
641
|
+
/**
|
|
642
|
+
* The background property sets the background of the box.
|
|
643
|
+
*/
|
|
644
|
+
background?: BoxBackgroundProperties | BoxConditions<BoxBackgroundProperties>;
|
|
645
|
+
/**
|
|
646
|
+
* The backgroundImage property sets one or more background images on an element.
|
|
647
|
+
*/
|
|
648
|
+
backgroundImage?: string | BoxConditions<string>;
|
|
649
|
+
/**
|
|
650
|
+
* The backgroundPosition property sets the initial position for each background image.
|
|
651
|
+
* The position is relative to the position layer set by background-origin.
|
|
652
|
+
*/
|
|
653
|
+
backgroundPosition?: string | BoxConditions<string>;
|
|
654
|
+
/**
|
|
655
|
+
* The backgroundBlendMode property sets how an element's background images should blend with each
|
|
656
|
+
* other and with the element's background color.
|
|
657
|
+
*/
|
|
658
|
+
backgroundBlendMode?: string | BoxConditions<string>;
|
|
659
|
+
/**
|
|
660
|
+
* The backgroundRepeat property sets how background images are repeated. A background image can be repeated along the horizontal and vertical axes, or not repeated at all.
|
|
661
|
+
*/
|
|
662
|
+
backgroundRepeat?: string | BoxConditions<string>;
|
|
663
|
+
/**
|
|
664
|
+
* The textDecoration shorthand property sets the appearance of decorative lines on text.
|
|
665
|
+
*/
|
|
666
|
+
textDecoration?: TextDecoration | BoxConditions<TextDecoration>;
|
|
667
|
+
/**
|
|
668
|
+
* The backgroundSize property sets the size of the element's background image. The image can be left to its natural size, stretched, or constrained to fit the available space.
|
|
669
|
+
*/
|
|
670
|
+
backgroundSize?: string | BoxConditions<string>;
|
|
671
|
+
/**
|
|
672
|
+
* The p shorthand property sets the margin area on all four sides of an box.
|
|
673
|
+
*/
|
|
674
|
+
p?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
675
|
+
/**
|
|
676
|
+
* The pl shorthand property sets the width of the padding area to the left of an box.
|
|
677
|
+
*/
|
|
678
|
+
pl?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
679
|
+
/**
|
|
680
|
+
* The pl shorthand property sets the width of the padding area to the right of an box.
|
|
681
|
+
*/
|
|
682
|
+
pr?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
683
|
+
/**
|
|
684
|
+
* The pt shorthand property sets the height of the padding area on the top of an box.
|
|
685
|
+
*/
|
|
686
|
+
pt?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
687
|
+
/**
|
|
688
|
+
* The pb shorthand property sets the height of the padding area on the botton of an box.
|
|
689
|
+
*/
|
|
690
|
+
pb?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
691
|
+
/**
|
|
692
|
+
* The px shorthand property defines the width of the left and right padding area of a box.
|
|
693
|
+
*/
|
|
694
|
+
px?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
695
|
+
/**
|
|
696
|
+
* The py pt shorthand property sets the height of the padding area at the top and bottom of a box.
|
|
697
|
+
*/
|
|
698
|
+
py?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
699
|
+
/**
|
|
700
|
+
* The paddingX shorthand property defines the width of the left and right padding area of a box.
|
|
701
|
+
*/
|
|
702
|
+
paddingX?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
703
|
+
/**
|
|
704
|
+
* The paddingY pt shorthand property sets the height of the padding area at the top and bottom of a box.
|
|
705
|
+
*/
|
|
706
|
+
paddingY?: BoxSpacingProperties | BoxConditions<BoxSpacingProperties>;
|
|
707
|
+
/**
|
|
708
|
+
* The m shorthand property sets the margin area on all four sides of an box.
|
|
709
|
+
*/
|
|
710
|
+
m?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
711
|
+
/**
|
|
712
|
+
* The mr property sets the margin area on the right side of an box.
|
|
713
|
+
*/
|
|
714
|
+
mr?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
715
|
+
/**
|
|
716
|
+
* The ml property sets the margin area on the left side of an box.
|
|
717
|
+
*/
|
|
718
|
+
ml?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
719
|
+
/**
|
|
720
|
+
* The mt property sets the margin area on the top of an box.
|
|
721
|
+
*/
|
|
722
|
+
mt?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
723
|
+
/**
|
|
724
|
+
* The marginBottom property sets the margin area on the bottom of an box.
|
|
725
|
+
*/
|
|
726
|
+
mb?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
727
|
+
/**
|
|
728
|
+
* The mx property defines the margin area on the left and right side of a box.
|
|
729
|
+
*/
|
|
730
|
+
mx?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
731
|
+
/**
|
|
732
|
+
* The my property defines the margin area on the top and bottom of a box
|
|
733
|
+
*/
|
|
734
|
+
my?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
735
|
+
/**
|
|
736
|
+
* The marginX property defines the margin area on the left and right side of a box.
|
|
737
|
+
*/
|
|
738
|
+
marginX?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
739
|
+
/**
|
|
740
|
+
* The marginY property defines the margin area on the top and bottom of a box
|
|
741
|
+
*/
|
|
742
|
+
marginY?: BoxMarginProperties | BoxConditions<BoxMarginProperties>;
|
|
743
|
+
/**
|
|
744
|
+
* The fontSize property sets the size of the box.
|
|
745
|
+
* @default base
|
|
746
|
+
*/
|
|
747
|
+
fontSize?: BoxFontSizeProperties | BoxConditions<BoxFontSizeProperties>;
|
|
748
|
+
/**
|
|
749
|
+
* The fontWeight property sets how thick or thin characters in box should be displayed.
|
|
750
|
+
* @default regular
|
|
751
|
+
*/
|
|
752
|
+
fontWeight?: BoxFontWeightProperties | BoxConditions<BoxFontWeightProperties>;
|
|
753
|
+
/**
|
|
754
|
+
* The lineHeight property specifies the line height of the box.
|
|
755
|
+
* @default base
|
|
756
|
+
*/
|
|
757
|
+
lineHeight?: BoxLineHeightProperties | BoxConditions<BoxLineHeightProperties>;
|
|
758
|
+
/**
|
|
759
|
+
* The textAlign property specifies the horizontal alignment of box.
|
|
760
|
+
* @default left
|
|
761
|
+
*/
|
|
762
|
+
textAlign?: TextAlign | BoxConditions<TextAlign>;
|
|
763
|
+
}
|
|
764
|
+
export interface BoxProperties extends BoxSprinkle {
|
|
765
|
+
/**
|
|
766
|
+
* Element to be rendered inside the Box component.
|
|
767
|
+
* @TJS-type React.ReactNode
|
|
768
|
+
*/
|
|
769
|
+
children?: ReactNode;
|
|
770
|
+
}
|
|
771
|
+
export type BoxBaseProps = BoxProperties & Omit<HTMLAttributes<HTMLElement>, "color">;
|
|
772
|
+
declare const Box: PolymorphicForwardRefComponent<"div", BoxBaseProps>;
|
|
773
|
+
export type BoxProps = ComponentPropsWithRef<typeof Box>;
|
|
774
|
+
export interface ScrollPaneItemProperties {
|
|
775
|
+
/**
|
|
776
|
+
* The content to be rendered inside the scroll pane item
|
|
777
|
+
*/
|
|
778
|
+
children: ReactNode;
|
|
779
|
+
/**
|
|
780
|
+
* Custom class name for styling
|
|
781
|
+
*/
|
|
782
|
+
className?: string;
|
|
783
|
+
/**
|
|
784
|
+
* Custom inline styles
|
|
785
|
+
*/
|
|
786
|
+
style?: React.CSSProperties;
|
|
787
|
+
/**
|
|
788
|
+
* Callback fired when the item is clicked
|
|
789
|
+
*/
|
|
790
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement>) => void;
|
|
791
|
+
}
|
|
792
|
+
export type ScrollPaneItemProps = ScrollPaneItemProperties & Omit<BoxProps, "children">;
|
|
793
|
+
/**
|
|
794
|
+
* ScrollPaneItem is a wrapper component for items within a ScrollPane.
|
|
795
|
+
* It handles click events to scroll the item into view when clicked.
|
|
796
|
+
*/
|
|
797
|
+
export declare const ScrollPaneItem: React.FC<ScrollPaneItemProps>;
|
|
798
|
+
export type ScrollPaneArrowProperties = {
|
|
799
|
+
children: ReactNode;
|
|
800
|
+
};
|
|
801
|
+
export type ScrollPaneArrowVerticalEndProperties = ScrollPaneArrowProperties;
|
|
802
|
+
export type ScrollPaneArrowVerticalStartProperties = ScrollPaneArrowProperties;
|
|
803
|
+
export type ScrollPaneArrowHorizontalEndProperties = ScrollPaneArrowProperties;
|
|
804
|
+
export type ScrollPaneArrowHorizontalStartProperties = ScrollPaneArrowProperties;
|
|
805
|
+
/**
|
|
806
|
+
* Scrolls the pane towards the beginning (left in LTR layouts).
|
|
807
|
+
*/
|
|
808
|
+
export declare const ScrollPaneArrowHorizontalStart: React.FC<ScrollPaneArrowProperties>;
|
|
809
|
+
/**
|
|
810
|
+
* Scrolls the pane towards the end (right in LTR layouts).
|
|
811
|
+
*/
|
|
812
|
+
export declare const ScrollPaneArrowHorizontalEnd: React.FC<ScrollPaneArrowProperties>;
|
|
813
|
+
/**
|
|
814
|
+
* Scrolls the pane towards the beginning (top).
|
|
815
|
+
*/
|
|
816
|
+
export declare const ScrollPaneArrowVerticalStart: React.FC<ScrollPaneArrowProperties>;
|
|
817
|
+
/**
|
|
818
|
+
* Scrolls the pane towards the end (bottom).
|
|
819
|
+
*/
|
|
820
|
+
export declare const ScrollPaneArrowVerticalEnd: React.FC<ScrollPaneArrowProperties>;
|
|
821
|
+
export interface ScrollPaneComponents {
|
|
822
|
+
Item: React.FC<ScrollPaneItemProps>;
|
|
823
|
+
ArrowHorizontalStart: React.FC<ScrollPaneArrowHorizontalStartProperties>;
|
|
824
|
+
ArrowHorizontalEnd: React.FC<ScrollPaneArrowHorizontalEndProperties>;
|
|
825
|
+
ArrowVerticalStart: React.FC<ScrollPaneArrowVerticalStartProperties>;
|
|
826
|
+
ArrowVerticalEnd: React.FC<ScrollPaneArrowVerticalEndProperties>;
|
|
827
|
+
}
|
|
828
|
+
export interface ScrollPaneProperties {
|
|
829
|
+
/**
|
|
830
|
+
* The content to be rendered inside the scroll pane
|
|
831
|
+
*/
|
|
832
|
+
children: ReactNode;
|
|
833
|
+
/**
|
|
834
|
+
* Whether to show gradient overlays when content overflows
|
|
835
|
+
* @default true
|
|
836
|
+
*/
|
|
837
|
+
showGradients?: boolean;
|
|
838
|
+
/**
|
|
839
|
+
* Whether to show navigation arrows for scrolling
|
|
840
|
+
* @default false
|
|
841
|
+
*/
|
|
842
|
+
showArrows?: boolean;
|
|
843
|
+
/**
|
|
844
|
+
* Whether to show the scrollbar
|
|
845
|
+
* @default true
|
|
846
|
+
*/
|
|
847
|
+
showScrollbar?: boolean;
|
|
848
|
+
/**
|
|
849
|
+
* The direction of the scroll (horizontal or vertical)
|
|
850
|
+
* @default "horizontal"
|
|
851
|
+
*/
|
|
852
|
+
direction?: "horizontal" | "vertical";
|
|
853
|
+
/**
|
|
854
|
+
* Whether items should scroll into view when clicked
|
|
855
|
+
* @default true
|
|
856
|
+
*/
|
|
857
|
+
scrollToItemOnClick?: boolean;
|
|
858
|
+
/**
|
|
859
|
+
* Custom arrow component to render at the start of the scroll area
|
|
860
|
+
*/
|
|
861
|
+
scrollPaneArrowStart?: React.ReactNode;
|
|
862
|
+
/**
|
|
863
|
+
* Custom arrow component to render at the end of the scroll area
|
|
864
|
+
*/
|
|
865
|
+
scrollPaneArrowEnd?: React.ReactNode;
|
|
866
|
+
/**
|
|
867
|
+
* Props to be passed to the content container
|
|
868
|
+
*/
|
|
869
|
+
contentContainerProps?: object;
|
|
870
|
+
}
|
|
871
|
+
export type ScrollPaneProps = ScrollPaneProperties & Omit<BoxProps, "children"> & {
|
|
872
|
+
contentContainerProps?: BoxProps;
|
|
873
|
+
};
|
|
874
|
+
/**
|
|
875
|
+
* ScrollPane component handles responsive scrolls in lists that are overflowing inside a container.
|
|
876
|
+
* It provides gradient overlays, optional navigation arrows, and scroll-to-item functionality.
|
|
877
|
+
*
|
|
878
|
+
* @example
|
|
879
|
+
* <ScrollPane showArrows showGradients showScrollbar>
|
|
880
|
+
* <ScrollPane.Item>Item 1</ScrollPane.Item>
|
|
881
|
+
* <ScrollPane.Item>Item 2</ScrollPane.Item>
|
|
882
|
+
* </ScrollPane>
|
|
883
|
+
*/
|
|
884
|
+
export declare const ScrollPane: React.FC<ScrollPaneProps> & ScrollPaneComponents;
|
|
885
|
+
export interface ScrollPaneContextValue {
|
|
886
|
+
direction: "horizontal" | "vertical";
|
|
887
|
+
scrollToItemOnClick: boolean;
|
|
888
|
+
containerRef?: RefObject<HTMLDivElement>;
|
|
889
|
+
scrollToDirection: (direction: "start" | "end") => void;
|
|
890
|
+
}
|
|
891
|
+
export declare const ScrollPaneContext: import("react").Context<ScrollPaneContextValue | null>;
|
|
892
|
+
|
|
893
|
+
export {};
|