@nimbus-ds/components 5.24.0-rc.3 → 5.25.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.
- package/CHANGELOG.md +6 -0
- package/dist/Accordion/index.d.ts +136 -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/Badge/index.d.ts +55 -0
- package/dist/Badge/index.js +1 -1
- package/dist/Box/index.d.ts +779 -0
- package/dist/Button/index.d.ts +83 -0
- package/dist/Button/index.js +1 -1
- package/dist/CHANGELOG.md +6 -0
- package/dist/Card/index.d.ts +153 -0
- package/dist/Card/index.js +1 -1
- package/dist/Checkbox/index.d.ts +62 -0
- package/dist/Checkbox/index.js +1 -1
- package/dist/Chip/index.d.ts +59 -0
- package/dist/Chip/index.js +1 -1
- package/dist/Collapsible/index.d.ts +45 -0
- 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 +170 -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/Label/index.d.ts +55 -0
- package/dist/Label/index.js +1 -1
- package/dist/Link/index.d.ts +115 -0
- package/dist/Link/index.js +1 -1
- package/dist/List/index.d.ts +75 -0
- package/dist/List/index.js +1 -1
- 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/ProgressBar/index.d.ts +57 -0
- package/dist/ProgressBar/index.js +1 -1
- package/dist/Radio/index.d.ts +62 -0
- package/dist/Radio/index.js +1 -1
- package/dist/ScrollPane/index.d.ts +893 -0
- package/dist/ScrollPane/index.js +1 -1
- package/dist/SegmentedControl/index.d.ts +879 -0
- package/dist/SegmentedControl/index.js +1 -1
- package/dist/Select/index.d.ts +81 -0
- package/dist/Select/index.js +1 -1
- package/dist/Sidebar/index.d.ts +389 -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/Stepper/index.js +1 -1
- 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/Tag/index.js +1 -1
- package/dist/Text/index.d.ts +495 -0
- package/dist/Text/index.js +1 -1
- package/dist/Textarea/index.d.ts +50 -0
- package/dist/Textarea/index.js +1 -1
- package/dist/Thumbnail/index.d.ts +73 -0
- package/dist/Thumbnail/index.js +1 -1
- package/dist/Title/index.d.ts +164 -0
- package/dist/Title/index.js +1 -1
- package/dist/Toast/index.d.ts +56 -0
- package/dist/Toast/index.js +1 -1
- package/dist/Toggle/index.d.ts +48 -0
- package/dist/Toggle/index.js +1 -1
- package/dist/Tooltip/index.d.ts +46 -0
- package/dist/Tooltip/index.js +1 -1
- package/dist/components-props.json +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,389 @@
|
|
|
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
|
+
declare const sidebarSprinkle: {
|
|
13
|
+
sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
|
|
14
|
+
{
|
|
15
|
+
config: {
|
|
16
|
+
zIndex: {
|
|
17
|
+
values: {
|
|
18
|
+
100: {
|
|
19
|
+
default: string;
|
|
20
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
21
|
+
};
|
|
22
|
+
200: {
|
|
23
|
+
default: string;
|
|
24
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
25
|
+
};
|
|
26
|
+
300: {
|
|
27
|
+
default: string;
|
|
28
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
29
|
+
};
|
|
30
|
+
400: {
|
|
31
|
+
default: string;
|
|
32
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
33
|
+
};
|
|
34
|
+
500: {
|
|
35
|
+
default: string;
|
|
36
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
37
|
+
};
|
|
38
|
+
600: {
|
|
39
|
+
default: string;
|
|
40
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
41
|
+
};
|
|
42
|
+
700: {
|
|
43
|
+
default: string;
|
|
44
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
45
|
+
};
|
|
46
|
+
800: {
|
|
47
|
+
default: string;
|
|
48
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
49
|
+
};
|
|
50
|
+
900: {
|
|
51
|
+
default: string;
|
|
52
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
staticScale: {
|
|
56
|
+
"100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
57
|
+
"200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
58
|
+
"300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
59
|
+
"400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
60
|
+
"500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
61
|
+
"600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
62
|
+
"700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
63
|
+
"800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
64
|
+
"900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
65
|
+
};
|
|
66
|
+
name: "zIndex";
|
|
67
|
+
};
|
|
68
|
+
padding: {
|
|
69
|
+
values: {
|
|
70
|
+
base: {
|
|
71
|
+
default: string;
|
|
72
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
73
|
+
};
|
|
74
|
+
small: {
|
|
75
|
+
default: string;
|
|
76
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
77
|
+
};
|
|
78
|
+
none: {
|
|
79
|
+
default: string;
|
|
80
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
staticScale: {
|
|
84
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
85
|
+
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
86
|
+
none: string;
|
|
87
|
+
};
|
|
88
|
+
name: "padding";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
} & {
|
|
92
|
+
config: {
|
|
93
|
+
maxWidth: {
|
|
94
|
+
dynamic: {
|
|
95
|
+
default: string;
|
|
96
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
97
|
+
};
|
|
98
|
+
dynamicScale: true;
|
|
99
|
+
name: "maxWidth";
|
|
100
|
+
vars: {
|
|
101
|
+
default: string;
|
|
102
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
} & {
|
|
107
|
+
config: {
|
|
108
|
+
[x: string]: {
|
|
109
|
+
mappings: ("zIndex" | "maxWidth" | "padding")[];
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
]>;
|
|
114
|
+
properties: {
|
|
115
|
+
zIndex: {
|
|
116
|
+
"100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
117
|
+
"200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
118
|
+
"300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
119
|
+
"400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
120
|
+
"500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
121
|
+
"600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
122
|
+
"700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
123
|
+
"800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
124
|
+
"900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
125
|
+
};
|
|
126
|
+
padding: {
|
|
127
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
128
|
+
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
129
|
+
none: string;
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
export type SidebarPaddingProperties = keyof typeof sidebarSprinkle.properties.padding;
|
|
134
|
+
export type SidebarZIndexProperties = keyof typeof sidebarSprinkle.properties.zIndex;
|
|
135
|
+
export interface SidebarSprinkle {
|
|
136
|
+
/**
|
|
137
|
+
* The maxWidth property specifies the maxWidth of a sidebar's content area.
|
|
138
|
+
* @default 375px
|
|
139
|
+
*/
|
|
140
|
+
maxWidth?: string | Conditions<string>;
|
|
141
|
+
/**
|
|
142
|
+
* The zIndex property specifies the stack order of the sidebar.
|
|
143
|
+
*/
|
|
144
|
+
zIndex?: SidebarZIndexProperties | Conditions<SidebarZIndexProperties>;
|
|
145
|
+
/**
|
|
146
|
+
* The padding properties are used to generate space around an sidebar's content area.
|
|
147
|
+
* @default base
|
|
148
|
+
*/
|
|
149
|
+
padding?: SidebarPaddingProperties | Conditions<SidebarPaddingProperties>;
|
|
150
|
+
}
|
|
151
|
+
declare const sidebar: {
|
|
152
|
+
sprinkle: import("rainbow-sprinkles/dist/declarations/src/createRuntimeFn").SprinklesFn<[
|
|
153
|
+
{
|
|
154
|
+
config: {
|
|
155
|
+
zIndex: {
|
|
156
|
+
values: {
|
|
157
|
+
100: {
|
|
158
|
+
default: string;
|
|
159
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
160
|
+
};
|
|
161
|
+
200: {
|
|
162
|
+
default: string;
|
|
163
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
164
|
+
};
|
|
165
|
+
300: {
|
|
166
|
+
default: string;
|
|
167
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
168
|
+
};
|
|
169
|
+
400: {
|
|
170
|
+
default: string;
|
|
171
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
172
|
+
};
|
|
173
|
+
500: {
|
|
174
|
+
default: string;
|
|
175
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
176
|
+
};
|
|
177
|
+
600: {
|
|
178
|
+
default: string;
|
|
179
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
180
|
+
};
|
|
181
|
+
700: {
|
|
182
|
+
default: string;
|
|
183
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
184
|
+
};
|
|
185
|
+
800: {
|
|
186
|
+
default: string;
|
|
187
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
188
|
+
};
|
|
189
|
+
900: {
|
|
190
|
+
default: string;
|
|
191
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
staticScale: {
|
|
195
|
+
"100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
196
|
+
"200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
197
|
+
"300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
198
|
+
"400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
199
|
+
"500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
200
|
+
"600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
201
|
+
"700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
202
|
+
"800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
203
|
+
"900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
204
|
+
};
|
|
205
|
+
name: "zIndex";
|
|
206
|
+
};
|
|
207
|
+
padding: {
|
|
208
|
+
values: {
|
|
209
|
+
base: {
|
|
210
|
+
default: string;
|
|
211
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
212
|
+
};
|
|
213
|
+
small: {
|
|
214
|
+
default: string;
|
|
215
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
216
|
+
};
|
|
217
|
+
none: {
|
|
218
|
+
default: string;
|
|
219
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
staticScale: {
|
|
223
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
224
|
+
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
225
|
+
none: string;
|
|
226
|
+
};
|
|
227
|
+
name: "padding";
|
|
228
|
+
};
|
|
229
|
+
};
|
|
230
|
+
} & {
|
|
231
|
+
config: {
|
|
232
|
+
maxWidth: {
|
|
233
|
+
dynamic: {
|
|
234
|
+
default: string;
|
|
235
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
236
|
+
};
|
|
237
|
+
dynamicScale: true;
|
|
238
|
+
name: "maxWidth";
|
|
239
|
+
vars: {
|
|
240
|
+
default: string;
|
|
241
|
+
conditions: Record<"xs" | "md" | "lg" | "xl", string>;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
};
|
|
245
|
+
} & {
|
|
246
|
+
config: {
|
|
247
|
+
[x: string]: {
|
|
248
|
+
mappings: ("zIndex" | "maxWidth" | "padding")[];
|
|
249
|
+
};
|
|
250
|
+
};
|
|
251
|
+
}
|
|
252
|
+
]>;
|
|
253
|
+
properties: {
|
|
254
|
+
zIndex: {
|
|
255
|
+
"100": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
256
|
+
"200": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
257
|
+
"300": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
258
|
+
"400": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
259
|
+
"500": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
260
|
+
"600": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
261
|
+
"700": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
262
|
+
"800": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
263
|
+
"900": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
264
|
+
};
|
|
265
|
+
padding: {
|
|
266
|
+
base: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
267
|
+
small: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
268
|
+
none: string;
|
|
269
|
+
};
|
|
270
|
+
};
|
|
271
|
+
classnames: {
|
|
272
|
+
overlay: string;
|
|
273
|
+
overlayScoped: string;
|
|
274
|
+
container: string;
|
|
275
|
+
containerScoped: string;
|
|
276
|
+
container__header: string;
|
|
277
|
+
container__body: string;
|
|
278
|
+
container__footer: string;
|
|
279
|
+
position: Record<"left" | "right", string>;
|
|
280
|
+
isVisible: string;
|
|
281
|
+
};
|
|
282
|
+
};
|
|
283
|
+
export type CloseOnOutsidePress = (event: PointerEvent | MouseEvent) => boolean;
|
|
284
|
+
export interface SidebarBodyProperties {
|
|
285
|
+
/**
|
|
286
|
+
* The content of the sidebar body.
|
|
287
|
+
* @TJS-type React.ReactNode
|
|
288
|
+
*/
|
|
289
|
+
children: ReactNode;
|
|
290
|
+
/**
|
|
291
|
+
* The padding properties are used to generate space around an sidebar's body content area.
|
|
292
|
+
* @default base
|
|
293
|
+
*/
|
|
294
|
+
padding?: keyof typeof sidebar.properties.padding;
|
|
295
|
+
}
|
|
296
|
+
export type SidebarBodyProps = SidebarBodyProperties & HTMLAttributes<HTMLElement>;
|
|
297
|
+
export declare const SidebarBody: React.FC<SidebarBodyProps>;
|
|
298
|
+
export interface SidebarFooterProperties {
|
|
299
|
+
/**
|
|
300
|
+
* The content of the sidebar footer.
|
|
301
|
+
* @TJS-type React.ReactNode
|
|
302
|
+
*/
|
|
303
|
+
children: ReactNode;
|
|
304
|
+
/**
|
|
305
|
+
* The padding properties are used to generate space around an sidebar's footer content area.
|
|
306
|
+
* @default base
|
|
307
|
+
*/
|
|
308
|
+
padding?: keyof typeof sidebar.properties.padding;
|
|
309
|
+
}
|
|
310
|
+
export type SidebarFooterProps = SidebarFooterProperties & HTMLAttributes<HTMLElement>;
|
|
311
|
+
export declare const SidebarFooter: React.FC<SidebarFooterProps>;
|
|
312
|
+
export interface SidebarHeaderProperties {
|
|
313
|
+
/**
|
|
314
|
+
* The content of the sidebar header.
|
|
315
|
+
* @TJS-type React.ReactNode
|
|
316
|
+
*/
|
|
317
|
+
children?: ReactNode;
|
|
318
|
+
/**
|
|
319
|
+
* The title to display in the sidebar header.
|
|
320
|
+
*/
|
|
321
|
+
title?: string;
|
|
322
|
+
/**
|
|
323
|
+
* The padding properties are used to generate space around an sidebar's header content area.
|
|
324
|
+
* @default base
|
|
325
|
+
*/
|
|
326
|
+
padding?: keyof typeof sidebar.properties.padding;
|
|
327
|
+
}
|
|
328
|
+
export type SidebarHeaderProps = SidebarHeaderProperties & HTMLAttributes<HTMLElement>;
|
|
329
|
+
export declare const SidebarHeader: React.FC<SidebarHeaderProps>;
|
|
330
|
+
export interface SidebarComponents {
|
|
331
|
+
Body: typeof SidebarBody;
|
|
332
|
+
Footer: typeof SidebarFooter;
|
|
333
|
+
Header: typeof SidebarHeader;
|
|
334
|
+
}
|
|
335
|
+
export interface SidebarProperties extends SidebarSprinkle {
|
|
336
|
+
/**
|
|
337
|
+
* Side from which the sidebar will appear.
|
|
338
|
+
* @default right
|
|
339
|
+
*/
|
|
340
|
+
position?: "right" | "left";
|
|
341
|
+
/**
|
|
342
|
+
* The padding properties are used to generate space around an sidebar's content area.
|
|
343
|
+
* @default base
|
|
344
|
+
*/
|
|
345
|
+
padding?: keyof typeof sidebar.properties.padding;
|
|
346
|
+
/**
|
|
347
|
+
* The content of the sidebar.
|
|
348
|
+
* @TJS-type React.ReactNode
|
|
349
|
+
*/
|
|
350
|
+
children: ReactNode;
|
|
351
|
+
/**
|
|
352
|
+
* Callback fired when the component requests to be closed.
|
|
353
|
+
* () => void;
|
|
354
|
+
*/
|
|
355
|
+
onRemove?: () => void;
|
|
356
|
+
/**
|
|
357
|
+
* Determines if the sidebar is shown or not.
|
|
358
|
+
* @default true
|
|
359
|
+
*/
|
|
360
|
+
open?: boolean;
|
|
361
|
+
/**
|
|
362
|
+
* Determines if RemoveScroll wraps sidebar's children component.
|
|
363
|
+
* @default true
|
|
364
|
+
*/
|
|
365
|
+
needRemoveScroll?: boolean;
|
|
366
|
+
/**
|
|
367
|
+
* Controls whether clicking/pressing outside should close the sidebar.
|
|
368
|
+
* - boolean: enable/disable dismissal on outside press
|
|
369
|
+
* - function: receive the DOM event and return true to allow closing, false to ignore
|
|
370
|
+
*
|
|
371
|
+
* Defaults to true for backward compatibility.
|
|
372
|
+
*/
|
|
373
|
+
closeOnOutsidePress?: boolean | CloseOnOutsidePress;
|
|
374
|
+
/**
|
|
375
|
+
* The attribute name to ignore when checking for outside clicks.
|
|
376
|
+
* @default "data-nimbus-outside-press-ignore"
|
|
377
|
+
*/
|
|
378
|
+
ignoreAttributeName?: string;
|
|
379
|
+
}
|
|
380
|
+
export type SidebarProps = SidebarProperties & {
|
|
381
|
+
/**
|
|
382
|
+
* Root element where the portal should be mounted. When provided and not null,
|
|
383
|
+
* the portal renders inside this element; when null/undefined, the default root is used.
|
|
384
|
+
*/
|
|
385
|
+
root?: HTMLElement | null;
|
|
386
|
+
} & HTMLAttributes<HTMLDivElement>;
|
|
387
|
+
export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;
|
|
388
|
+
|
|
389
|
+
export {};
|
package/dist/Sidebar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("@floating-ui/react"),require("@nimbus-ds/styles")):"function"==typeof define&&define.amd?define(["react","react-dom","@floating-ui/react","@nimbus-ds/styles"],t):"object"==typeof exports?exports["@nimbus-ds/components"]=t(require("react"),require("react-dom"),require("@floating-ui/react"),require("@nimbus-ds/styles")):e["@nimbus-ds/components"]=t(e.react,e["react-dom"],e["@floating-ui/react"],e["@nimbus-ds/styles"])}(global,((e,t,r,n)=>(()=>{var o={7409:(e,t,r)=>{"use strict";r.r(t),r.d(t,{RemoveScroll:()=>V});var n=r(5608),o=r(9155),a="right-scroll-bar-position",i="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var s=new WeakMap;function u(e,t){var r,n,a,i=(r=t||null,n=function(t){return e.forEach((function(e){return c(e,t)}))},(a=(0,o.useState)((function(){return{value:r,callback:n,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=n,a.facade);return o.useLayoutEffect((function(){var t=s.get(i);if(t){var r=new Set(t),n=new Set(e),o=i.current;r.forEach((function(e){n.has(e)||c(e,null)})),n.forEach((function(e){r.has(e)||c(e,o)}))}s.set(i,e)}),[e]),i}function l(e){return e}function f(e,t){void 0===t&&(t=l);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var a=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}}}var d=function(e){void 0===e&&(e={});var t=f(null);return t.options=(0,n.__assign)({async:!0,ssr:!1},e),t}(),p=function(){},y=o.forwardRef((function(e,t){var r=o.useRef(null),a=o.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),i=a[0],c=a[1],s=e.forwardProps,l=e.children,f=e.className,y=e.removeScrollBar,_=e.enabled,v=e.shards,h=e.sideCar,b=e.noIsolation,m=e.inert,w=e.allowPinchZoom,g=e.as,S=void 0===g?"div":g,O=e.gapMode,P=(0,n.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=h,E=u([r,t]),T=(0,n.__assign)((0,n.__assign)({},P),i);return o.createElement(o.Fragment,null,_&&o.createElement(j,{sideCar:d,removeScrollBar:y,shards:v,noIsolation:b,inert:m,setCallbacks:c,allowPinchZoom:!!w,lockRef:r,gapMode:O}),s?o.cloneElement(o.Children.only(l),(0,n.__assign)((0,n.__assign)({},T),{ref:E})):o.createElement(S,(0,n.__assign)({},T,{className:f,ref:E}),l))}));y.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},y.classNames={fullWidth:i,zeroRight:a};var _,v=function(e){var t=e.sideCar,r=(0,n.__rest)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return o.createElement(a,(0,n.__assign)({},r))};v.isSideCarExport=!0;function h(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=_||r.nc;return t&&e.setAttribute("nonce",t),e}var b=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=h())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},m=function(){var e,t=(e=b(),function(t,r){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},w={left:0,top:0,right:0,gap:0},g=function(e){return parseInt(e||"",10)||0},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return w;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[g(r),g(n),g(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},O=m(),P="data-scroll-locked",j=function(e,t,r,n){var o=e.left,c=e.top,s=e.right,u=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(u,"px ").concat(n,";\n }\n body[").concat(P,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(c,"px;\n padding-right: ").concat(s,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(u,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a," {\n right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(i," {\n margin-right: ").concat(u,"px ").concat(n,";\n }\n \n .").concat(a," .").concat(a," {\n right: 0 ").concat(n,";\n }\n \n .").concat(i," .").concat(i," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(P,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},E=function(){var e=parseInt(document.body.getAttribute(P)||"0",10);return isFinite(e)?e:0},T=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;o.useEffect((function(){return document.body.setAttribute(P,(E()+1).toString()),function(){var e=E()-1;e<=0?document.body.removeAttribute(P):document.body.setAttribute(P,e.toString())}}),[]);var i=o.useMemo((function(){return S(a)}),[a]);return o.createElement(O,{styles:j(i,!t,a,r?"":"!important")})},x=!1;if("undefined"!=typeof window)try{var k=Object.defineProperty({},"passive",{get:function(){return x=!0,!0}});window.addEventListener("test",k,k),window.removeEventListener("test",k,k)}catch(e){x=!1}var R=!!x&&{passive:!1},A=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},I=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),D(e,n)){var o=M(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},D=function(e,t){return"v"===e?function(e){return A(e,"overflowY")}(t):function(e){return A(e,"overflowX")}(t)},M=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},N=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},F=function(e){return[e.deltaX,e.deltaY]},C=function(e){return e&&"current"in e?e.current:e},B=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},L=0,G=[];function H(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const U=(W=function(e){var t=o.useRef([]),r=o.useRef([0,0]),a=o.useRef(),i=o.useState(L++)[0],c=o.useState(m)[0],s=o.useRef(e);o.useEffect((function(){s.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,n.__spreadArray)([e.lockRef.current],(e.shards||[]).map(C),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var n,o=N(e),i=r.current,c="deltaX"in e?e.deltaX:i[0]-o[0],u="deltaY"in e?e.deltaY:i[1]-o[1],l=e.target,f=Math.abs(c)>Math.abs(u)?"h":"v";if("touches"in e&&"h"===f&&"range"===l.type)return!1;var d=I(f,l);if(!d)return!0;if(d?n=f:(n="v"===f?"h":"v",d=I(f,l)),!d)return!1;if(!a.current&&"changedTouches"in e&&(c||u)&&(a.current=n),!n)return!0;var p=a.current||n;return function(e,t,r,n,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*n,c=r.target,s=t.contains(c),u=!1,l=i>0,f=0,d=0;do{var p=M(e,c),y=p[0],_=p[1]-p[2]-a*y;(y||_)&&D(e,c)&&(f+=_,d+=y),c=c instanceof ShadowRoot?c.host:c.parentNode}while(!s&&c!==document.body||s&&(t.contains(c)||t===c));return(l&&(o&&Math.abs(f)<1||!o&&i>f)||!l&&(o&&Math.abs(d)<1||!o&&-i>d))&&(u=!0),u}(p,t,e,"h"===p?c:u,!0)}),[]),l=o.useCallback((function(e){var r=e;if(G.length&&G[G.length-1]===c){var n="deltaY"in r?F(r):N(r),o=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var a=(s.current.shards||[]).map(C).filter(Boolean).filter((function(e){return e.contains(r.target)}));(a.length>0?u(r,a[0]):!s.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),f=o.useCallback((function(e,r,n,o){var a={name:e,delta:r,target:n,should:o,shadowParent:H(n)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),d=o.useCallback((function(e){r.current=N(e),a.current=void 0}),[]),p=o.useCallback((function(t){f(t.type,F(t),t.target,u(t,e.lockRef.current))}),[]),y=o.useCallback((function(t){f(t.type,N(t),t.target,u(t,e.lockRef.current))}),[]);o.useEffect((function(){return G.push(c),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:y}),document.addEventListener("wheel",l,R),document.addEventListener("touchmove",l,R),document.addEventListener("touchstart",d,R),function(){G=G.filter((function(e){return e!==c})),document.removeEventListener("wheel",l,R),document.removeEventListener("touchmove",l,R),document.removeEventListener("touchstart",d,R)}}),[]);var _=e.removeScrollBar,v=e.inert;return o.createElement(o.Fragment,null,v?o.createElement(c,{styles:B(i)}):null,_?o.createElement(T,{gapMode:e.gapMode}):null)},d.useMedium(W),v);var W,z=o.forwardRef((function(e,t){return o.createElement(y,(0,n.__assign)({},e,{ref:t,sideCar:U}))}));z.classNames=y.classNames;const V=z},1148:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.eventHasNodeWithAttribute=void 0;t.eventHasNodeWithAttribute=(e,t)=>{const r="composedPath"in e&&"function"==typeof e.composedPath?e.composedPath:void 0,n=r?.call(e);if(Array.isArray(n)){if(n.some((e=>e instanceof Element&&e.hasAttribute(t))))return!0}const o=e.target;return!!(o&&o instanceof Element&&o.closest(`[${t}]`))}},8580:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE=void 0,t.DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE="data-nimbus-outside-press-ignore"},8720:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE=t.eventHasNodeWithAttribute=void 0;var n=r(1148);Object.defineProperty(t,"eventHasNodeWithAttribute",{enumerable:!0,get:function(){return n.eventHasNodeWithAttribute}});var o=r(8580);Object.defineProperty(t,"DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE",{enumerable:!0,get:function(){return o.DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE}})},8943:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;const n=r(5608).__importStar(r(9155)),o=r(9514),a=r(7409),i=r(4955),c=r(4367),s=r(8720),u=r(3673),l=({className:e,style:t,position:r="right",maxWidth:u="375px",open:l=!1,needRemoveScroll:f=!1,closeOnOutsidePress:d=!0,children:p,onRemove:y,root:_,ignoreAttributeName:v=s.DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE,...h})=>{const{className:b,style:m,otherProps:w}=c.sidebar.sprinkle({...h,maxWidth:u}),{refThemeProvider:g}=(0,c.useTheme)(),{context:S}=(0,i.useFloating)({open:l,onOpenChange:y}),O=n.default.useCallback((e=>(0,s.eventHasNodeWithAttribute)(e,v)),[v]),P=(0,n.useMemo)((()=>"function"==typeof d?e=>!!d(e)&&!O(e):!!d&&(e=>!O(e))),[d,O]),j=(0,i.useDismiss)(S,{outsidePressEvent:"mousedown",outsidePress:P}),{getFloatingProps:E}=(0,i.useInteractions)([j]);if(!l)return null;const T=n.default.createElement(i.FloatingFocusManager,{context:S},n.default.createElement("div",{...w,ref:S.refs.setFloating,role:h.role||"presentation",style:m,...E(),className:[_?c.sidebar.classnames.containerScoped:c.sidebar.classnames.container,c.sidebar.classnames.position[r],b,l&&c.sidebar.classnames.isVisible].join(" ")},f?n.default.createElement(a.RemoveScroll,null,p):p));return _?(0,o.createPortal)(n.default.createElement(n.default.Fragment,null,n.default.createElement("div",{className:c.sidebar.classnames.overlayScoped,"data-testid":"portal-overlay-sidebar-button",role:"presentation","aria-hidden":"true"}),T),_):n.default.createElement(i.FloatingPortal,{id:"nimbus-sidebar",root:g?.current},n.default.createElement(i.FloatingOverlay,{className:c.sidebar.classnames.overlay,"data-testid":"overlay-sidebar-button",lockScroll:!f},T))};t.Sidebar=l,l.Body=u.SidebarBody,l.Footer=u.SidebarFooter,l.Header=u.SidebarHeader,l.displayName="Sidebar",l.Body.displayName="Sidebar.Body",l.Footer.displayName="Sidebar.Footer",l.Header.displayName="Sidebar.Header"},3024:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5608);n.__exportStar(r(9093),t),n.__exportStar(r(3673),t)},167:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarBody=void 0;const n=r(5608).__importDefault(r(9155)),o=r(4367);t.SidebarBody=({className:e,style:t,children:r,...a})=>{const{className:i,style:c,otherProps:s}=o.sidebar.sprinkle(a);return n.default.createElement("div",{...s,style:c,className:[o.sidebar.classnames.container__body,i].join(" ")},r)}},2985:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarBody=void 0;const n=r(167);var o=r(167);Object.defineProperty(t,"SidebarBody",{enumerable:!0,get:function(){return o.SidebarBody}}),t.default=n.SidebarBody},1879:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarFooter=void 0;const n=r(5608).__importDefault(r(9155)),o=r(4367);t.SidebarFooter=({className:e,style:t,children:r,...a})=>{const{className:i,style:c,otherProps:s}=o.sidebar.sprinkle(a);return n.default.createElement("div",{...s,style:c,className:[i,o.sidebar.classnames.container__footer].join(" ")},r)}},9810:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarFooter=void 0;const n=r(1879);var o=r(1879);Object.defineProperty(t,"SidebarFooter",{enumerable:!0,get:function(){return o.SidebarFooter}}),t.default=n.SidebarFooter},863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarHeader=void 0;const n=r(5608).__importDefault(r(9155)),o=r(9150),a=r(4367);t.SidebarHeader=({className:e,style:t,title:r,children:i,...c})=>{const{className:s,style:u,otherProps:l}=a.sidebar.sprinkle(c);return n.default.createElement("div",{...l,style:u,className:[s,a.sidebar.classnames.container__header].join(" ")},r&&n.default.createElement(o.Title,{as:"h2","data-testid":"header-title"},r),i)}},628:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarHeader=void 0;const n=r(863);var o=r(863);Object.defineProperty(t,"SidebarHeader",{enumerable:!0,get:function(){return o.SidebarHeader}}),t.default=n.SidebarHeader},3673:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n=r(5608);n.__exportStar(r(2985),t),n.__exportStar(r(9810),t),n.__exportStar(r(628),t)},9093:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;const n=r(8943);var o=r(8943);Object.defineProperty(t,"Sidebar",{enumerable:!0,get:function(){return o.Sidebar}}),t.default=n.Sidebar},867:(e,t,r)=>{var n;global,n=(e,t)=>(()=>{"use strict";var r={612:(e,t,r)=>{function n(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function o(e,t){var r=e;for(var n of t){if(!(n in r))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));r=r[n]}return r}function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=e.constructor();for(var o in e){var i=e[o],c=[...r,o];"string"==typeof i||"number"==typeof i||null==i?n[o]=t(i,c):"object"!=typeof i||Array.isArray(i)?console.warn('Skipping invalid key "'.concat(c.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"')):n[o]=a(i,t,c)}return n}function i(e,t){var r={};if("object"==typeof t){var i=e;a(t,((e,t)=>{if(null!=e){var a=o(i,t);r[n(a)]=String(e)}}))}else{var c=e;for(var s in c){var u=c[s];null!=u&&(r[n(s)]=u)}}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),r}function c(e,t,r){e.style.setProperty(n(t),r)}function s(e,t,r){if("object"==typeof r){var n=t;a(r,((t,r)=>{null!=t&&c(e,o(n,r),String(t))}))}else{var i=t;for(var s in i)null!=i[s]&&c(e,s,i[s])}}r.r(t),r.d(t,{assignInlineVars:()=>i,setElementVars:()=>s})},947:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Skeleton=void 0;const n=r(769).__importDefault(r(155)),o=r(612),a=r(367),i=({className:e,style:t,height:r,width:i,borderRadius:c="0",...s})=>n.default.createElement("div",{className:a.skeleton.classnames.base,style:(0,o.assignInlineVars)({[a.vars.width]:i,[a.vars.height]:r,[a.vars.borderRadius]:c}),...s});t.Skeleton=i,i.displayName="Skeleton"},367:e=>{e.exports=t},155:t=>{t.exports=e},769:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>M,__assign:()=>a,__asyncDelegator:()=>j,__asyncGenerator:()=>P,__asyncValues:()=>E,__await:()=>O,__awaiter:()=>y,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>I,__createBinding:()=>v,__decorate:()=>c,__disposeResources:()=>F,__esDecorate:()=>u,__exportStar:()=>h,__extends:()=>o,__generator:()=>_,__importDefault:()=>R,__importStar:()=>k,__makeTemplateObject:()=>T,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>m,__rest:()=>i,__runInitializers:()=>l,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>S,__spreadArrays:()=>g,__values:()=>b,default:()=>C});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function c(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,s=n.kind,u="getter"===s?"get":"setter"===s?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,p=r.length-1;p>=0;p--){var y={};for(var _ in n)y[_]="access"===_?{}:n[_];for(var _ in n.access)y.access[_]=n.access[_];y.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var v=(0,r[p])("accessor"===s?{get:f.get,set:f.set}:f[u],y);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(c=i(v.get))&&(f.get=c),(c=i(v.set))&&(f.set=c),(c=i(v.init))&&o.unshift(c)}else(c=i(v))&&("field"===s?o.unshift(c):f[u]=c)}l&&Object.defineProperty(l,n.name,f),d=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function y(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function c(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}var v=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function h(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||v(t,e,r)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function S(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function P(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof O?Promise.resolve(r.value.v).then(s,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function s(e){c("next",e)}function u(e){c("throw",e)}function l(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function j(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return x(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function A(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function I(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function M(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const C={__extends:o,__assign:a,__rest:i,__decorate:c,__param:s,__metadata:p,__awaiter:y,__generator:_,__createBinding:v,__exportStar:h,__values:b,__read:m,__spread:w,__spreadArrays:g,__spreadArray:S,__await:O,__asyncGenerator:P,__asyncDelegator:j,__asyncValues:E,__makeTemplateObject:T,__importStar:k,__importDefault:R,__classPrivateFieldGet:A,__classPrivateFieldSet:I,__classPrivateFieldIn:D,__addDisposableResource:M,__disposeResources:F}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return r[e](a,a.exports,o),a.exports}o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),e.Skeleton=void 0;const t=o(947);var r=o(947);Object.defineProperty(e,"Skeleton",{enumerable:!0,get:function(){return r.Skeleton}}),e.default=t.Skeleton})(),a})(),e.exports=n(r(9155),r(4367))},9150:(e,t,r)=>{var n;global,n=(e,t,r)=>(()=>{"use strict";var n={178:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Title=void 0;const n=r(769).__importDefault(r(155)),o=r(367),a=r(337),i=({className:e,style:t,as:r="h1",color:a="neutral-textHigh",textAlign:i="left",lineHeight:c,fontWeight:s="bold",fontSize:u,children:l,...f})=>n.default.createElement(r,{...f,className:[o.title.sprinkle({color:a,textAlign:i,lineHeight:c,fontWeight:s,fontSize:u}),o.title.classnames.appearance[r]].join(" ")},l);t.Title=i,i.displayName="Title",(i.Skeleton=a.TitleSkeleton).displayName="Title.Skeleton"},974:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TitleSkeleton=void 0;const n=r(769).__importDefault(r(155)),o=r(334),a=r(146);t.TitleSkeleton=({as:e="h1",width:t,height:r,"data-testid":i})=>n.default.createElement(o.Skeleton,{width:t??a.sizes[e].width,height:r??a.sizes[e].height,"data-testid":i,borderRadius:"0.25rem"})},599:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TitleSkeleton=void 0;const n=r(974);var o=r(974);Object.defineProperty(t,"TitleSkeleton",{enumerable:!0,get:function(){return o.TitleSkeleton}}),t.default=n.TitleSkeleton},146:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sizes=void 0,t.sizes={h1:{width:"8.25rem",height:"2.75rem"},h2:{width:"6.188rem",height:"1.75rem"},h3:{width:"5.188rem",height:"1.75rem"},h4:{width:"4.625rem",height:"1.5rem"},h5:{width:"4.125rem",height:"1.25rem"},h6:{width:"3.625rem",height:"1.125rem"}}},337:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),r(769).__exportStar(r(599),t)},334:e=>{e.exports=r},367:e=>{e.exports=t},155:t=>{t.exports=e},769:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>M,__assign:()=>a,__asyncDelegator:()=>j,__asyncGenerator:()=>P,__asyncValues:()=>E,__await:()=>O,__awaiter:()=>y,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>I,__createBinding:()=>v,__decorate:()=>c,__disposeResources:()=>F,__esDecorate:()=>u,__exportStar:()=>h,__extends:()=>o,__generator:()=>_,__importDefault:()=>R,__importStar:()=>k,__makeTemplateObject:()=>T,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>m,__rest:()=>i,__runInitializers:()=>l,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>S,__spreadArrays:()=>g,__values:()=>b,default:()=>C});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function c(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,s=n.kind,u="getter"===s?"get":"setter"===s?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,p=r.length-1;p>=0;p--){var y={};for(var _ in n)y[_]="access"===_?{}:n[_];for(var _ in n.access)y.access[_]=n.access[_];y.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var v=(0,r[p])("accessor"===s?{get:f.get,set:f.set}:f[u],y);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(c=i(v.get))&&(f.get=c),(c=i(v.set))&&(f.set=c),(c=i(v.init))&&o.unshift(c)}else(c=i(v))&&("field"===s?o.unshift(c):f[u]=c)}l&&Object.defineProperty(l,n.name,f),d=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function y(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function c(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}var v=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function h(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||v(t,e,r)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function S(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function P(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof O?Promise.resolve(r.value.v).then(s,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function s(e){c("next",e)}function u(e){c("throw",e)}function l(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function j(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){!function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)}(n,o,(t=e[r](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return x(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function A(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function I(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function M(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const C={__extends:o,__assign:a,__rest:i,__decorate:c,__param:s,__metadata:p,__awaiter:y,__generator:_,__createBinding:v,__exportStar:h,__values:b,__read:m,__spread:w,__spreadArrays:g,__spreadArray:S,__await:O,__asyncGenerator:P,__asyncDelegator:j,__asyncValues:E,__makeTemplateObject:T,__importStar:k,__importDefault:R,__classPrivateFieldGet:A,__classPrivateFieldSet:I,__classPrivateFieldIn:D,__addDisposableResource:M,__disposeResources:F}}},o={};function a(e){var t=o[e];if(void 0!==t)return t.exports;var r=o[e]={exports:{}};return n[e](r,r.exports,a),r.exports}a.d=(e,t)=>{for(var r in t)a.o(t,r)&&!a.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var i={};return(()=>{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.Title=void 0;const t=a(178);var r=a(178);Object.defineProperty(e,"Title",{enumerable:!0,get:function(){return r.Title}}),e.default=t.Title})(),i})(),e.exports=n(r(9155),r(4367),r(867))},4955:e=>{"use strict";e.exports=r},4367:e=>{"use strict";e.exports=n},9155:t=>{"use strict";t.exports=e},9514:e=>{"use strict";e.exports=t},5608:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__addDisposableResource:()=>M,__assign:()=>a,__asyncDelegator:()=>j,__asyncGenerator:()=>P,__asyncValues:()=>E,__await:()=>O,__awaiter:()=>y,__classPrivateFieldGet:()=>A,__classPrivateFieldIn:()=>D,__classPrivateFieldSet:()=>I,__createBinding:()=>v,__decorate:()=>c,__disposeResources:()=>F,__esDecorate:()=>u,__exportStar:()=>h,__extends:()=>o,__generator:()=>_,__importDefault:()=>R,__importStar:()=>k,__makeTemplateObject:()=>T,__metadata:()=>p,__param:()=>s,__propKey:()=>f,__read:()=>m,__rest:()=>i,__runInitializers:()=>l,__setFunctionName:()=>d,__spread:()=>w,__spreadArray:()=>S,__spreadArrays:()=>g,__values:()=>b,default:()=>C});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function c(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function s(e,t){return function(r,n){t(r,n,e)}}function u(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,s=n.kind,u="getter"===s?"get":"setter"===s?"set":"value",l=!t&&e?n.static?e:e.prototype:null,f=t||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),d=!1,p=r.length-1;p>=0;p--){var y={};for(var _ in n)y[_]="access"===_?{}:n[_];for(var _ in n.access)y.access[_]=n.access[_];y.addInitializer=function(e){if(d)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var v=(0,r[p])("accessor"===s?{get:f.get,set:f.set}:f[u],y);if("accessor"===s){if(void 0===v)continue;if(null===v||"object"!=typeof v)throw new TypeError("Object expected");(c=i(v.get))&&(f.get=c),(c=i(v.set))&&(f.set=c),(c=i(v.init))&&o.unshift(c)}else(c=i(v))&&("field"===s?o.unshift(c):f[u]=c)}l&&Object.defineProperty(l,n.name,f),d=!0}function l(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function y(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function c(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}s((n=n.apply(e,t||[])).next())}))}function _(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(s){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,s])}}}var v=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function h(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||v(t,e,r)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(m(arguments[t]));return e}function g(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function S(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function P(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof O?Promise.resolve(r.value.v).then(s,u):l(a[0][2],r)}catch(e){l(a[0][3],e)}var r}function s(e){c("next",e)}function u(e){c("throw",e)}function l(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function j(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:O(e[n](t)),done:!1}:o?o(t):t}:o}}function E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&v(t,e,r);return x(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function A(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function I(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function D(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function M(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var N="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function F(e){function t(t){e.error=e.hasError?new N(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const C={__extends:o,__assign:a,__rest:i,__decorate:c,__param:s,__metadata:p,__awaiter:y,__generator:_,__createBinding:v,__exportStar:h,__values:b,__read:m,__spread:w,__spreadArrays:g,__spreadArray:S,__await:O,__asyncGenerator:P,__asyncDelegator:j,__asyncValues:E,__makeTemplateObject:T,__importStar:k,__importDefault:R,__classPrivateFieldGet:A,__classPrivateFieldSet:I,__classPrivateFieldIn:D,__addDisposableResource:M,__disposeResources:F}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return o[e](r,r.exports,i),r.exports}return i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0,i(3024)})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("react-dom"),require("@floating-ui/react"),require("@nimbus-ds/styles")):"function"==typeof define&&define.amd?define(["react","react-dom","@floating-ui/react","@nimbus-ds/styles"],t):"object"==typeof exports?exports["@nimbus-ds/components"]=t(require("react"),require("react-dom"),require("@floating-ui/react"),require("@nimbus-ds/styles")):e["@nimbus-ds/components"]=t(e.react,e["react-dom"],e["@floating-ui/react"],e["@nimbus-ds/styles"])}(global,((e,t,r,n)=>(()=>{"use strict";var o={9003:(e,t,r)=>{function n(e){var t=e.match(/^var\((.*)\)$/);return t?t[1]:e}function o(e,t){var r=e;for(var n of t){if(!(n in r))throw new Error("Path ".concat(t.join(" -> ")," does not exist in object"));r=r[n]}return r}function a(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=e.constructor();for(var o in e){var i=e[o],c=[...r,o];"string"==typeof i||"number"==typeof i||null==i?n[o]=t(i,c):"object"!=typeof i||Array.isArray(i)?console.warn('Skipping invalid key "'.concat(c.join("."),'". Should be a string, number, null or object. Received: "').concat(Array.isArray(i)?"Array":typeof i,'"')):n[o]=a(i,t,c)}return n}function i(e,t){var r={};if("object"==typeof t){var i=e;a(t,((e,t)=>{if(null!=e){var a=o(i,t);r[n(a)]=String(e)}}))}else{var c=e;for(var l in c){var s=c[l];null!=s&&(r[n(l)]=s)}}return Object.defineProperty(r,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),r}function c(e,t,r){e.style.setProperty(n(t),r)}function l(e,t,r){if("object"==typeof r){var n=t;a(r,((t,r)=>{null!=t&&c(e,o(n,r),String(t))}))}else{var i=t;for(var l in i){null!=i[l]&&c(e,l,i[l])}}}r.r(t),r.d(t,{assignInlineVars:()=>i,setElementVars:()=>l})},7409:(e,t,r)=>{r.r(t),r.d(t,{RemoveScroll:()=>q});var n=r(5608),o=r(9155),a="right-scroll-bar-position",i="width-before-scroll-bar";function c(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var l=new WeakMap;function s(e,t){var r,n,a,i=(r=t||null,n=function(t){return e.forEach((function(e){return c(e,t)}))},(a=(0,o.useState)((function(){return{value:r,callback:n,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}}))[0]).callback=n,a.facade);return o.useLayoutEffect((function(){var t=l.get(i);if(t){var r=new Set(t),n=new Set(e),o=i.current;r.forEach((function(e){n.has(e)||c(e,null)})),n.forEach((function(e){r.has(e)||c(e,o)}))}l.set(i,e)}),[e]),i}function u(e){return e}function d(e,t){void 0===t&&(t=u);var r=[],n=!1;return{read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(e){var o=t(e,n);return r.push(o),function(){r=r.filter((function(e){return e!==o}))}},assignSyncMedium:function(e){for(n=!0;r.length;){var t=r;r=[],t.forEach(e)}r={push:function(t){return e(t)},filter:function(){return r}}},assignMedium:function(e){n=!0;var t=[];if(r.length){var o=r;r=[],o.forEach(e),t=r}var a=function(){var r=t;t=[],r.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),r={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),r}}}}}var f=function(e){void 0===e&&(e={});var t=d(null);return t.options=(0,n.__assign)({async:!0,ssr:!1},e),t}(),p=function(){},v=o.forwardRef((function(e,t){var r=o.useRef(null),a=o.useState({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:p}),i=a[0],c=a[1],l=e.forwardProps,u=e.children,d=e.className,v=e.removeScrollBar,h=e.enabled,y=e.shards,m=e.sideCar,b=e.noIsolation,_=e.inert,g=e.allowPinchZoom,w=e.as,S=void 0===w?"div":w,E=e.gapMode,P=(0,n.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=m,j=s([r,t]),T=(0,n.__assign)((0,n.__assign)({},P),i);return o.createElement(o.Fragment,null,h&&o.createElement(O,{sideCar:f,removeScrollBar:v,shards:y,noIsolation:b,inert:_,setCallbacks:c,allowPinchZoom:!!g,lockRef:r,gapMode:E}),l?o.cloneElement(o.Children.only(u),(0,n.__assign)((0,n.__assign)({},T),{ref:j})):o.createElement(S,(0,n.__assign)({},T,{className:d,ref:j}),u))}));v.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},v.classNames={fullWidth:i,zeroRight:a};var h,y=function(e){var t=e.sideCar,r=(0,n.__rest)(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return o.createElement(a,(0,n.__assign)({},r))};y.isSideCarExport=!0;function m(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=h||r.nc;return t&&e.setAttribute("nonce",t),e}var b=function(){var e=0,t=null;return{add:function(r){var n,o;0==e&&(t=m())&&(o=r,(n=t).styleSheet?n.styleSheet.cssText=o:n.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},_=function(){var e,t=(e=b(),function(t,r){o.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&r])});return function(e){var r=e.styles,n=e.dynamic;return t(r,n),null}},g={left:0,top:0,right:0,gap:0},w=function(e){return parseInt(e||"",10)||0},S=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return g;var t=function(e){var t=window.getComputedStyle(document.body),r=t["padding"===e?"paddingLeft":"marginLeft"],n=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[w(r),w(n),w(o)]}(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},E=_(),P="data-scroll-locked",O=function(e,t,r,n){var o=e.left,c=e.top,l=e.right,s=e.gap;return void 0===r&&(r="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(n,";\n padding-right: ").concat(s,"px ").concat(n,";\n }\n body[").concat(P,"] {\n overflow: hidden ").concat(n,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(n,";"),"margin"===r&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(c,"px;\n padding-right: ").concat(l,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(n,";\n "),"padding"===r&&"padding-right: ".concat(s,"px ").concat(n,";")].filter(Boolean).join(""),"\n }\n \n .").concat(a," {\n right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(i," {\n margin-right: ").concat(s,"px ").concat(n,";\n }\n \n .").concat(a," .").concat(a," {\n right: 0 ").concat(n,";\n }\n \n .").concat(i," .").concat(i," {\n margin-right: 0 ").concat(n,";\n }\n \n body[").concat(P,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},j=function(){var e=parseInt(document.body.getAttribute(P)||"0",10);return isFinite(e)?e:0},T=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,a=void 0===n?"margin":n;o.useEffect((function(){return document.body.setAttribute(P,(j()+1).toString()),function(){var e=j()-1;e<=0?document.body.removeAttribute(P):document.body.setAttribute(P,e.toString())}}),[]);var i=o.useMemo((function(){return S(a)}),[a]);return o.createElement(E,{styles:O(i,!t,a,r?"":"!important")})},x=!1;if("undefined"!=typeof window)try{var k=Object.defineProperty({},"passive",{get:function(){return x=!0,!0}});window.addEventListener("test",k,k),window.removeEventListener("test",k,k)}catch(e){x=!1}var R=!!x&&{passive:!1},N=function(e,t){var r=window.getComputedStyle(e);return"hidden"!==r[t]&&!(r.overflowY===r.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===r[t])},M=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),A(e,n)){var o=I(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},A=function(e,t){return"v"===e?function(e){return N(e,"overflowY")}(t):function(e){return N(e,"overflowX")}(t)},I=function(e,t){return"v"===e?[(r=t).scrollTop,r.scrollHeight,r.clientHeight]:function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t);var r},C=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},D=function(e){return[e.deltaX,e.deltaY]},F=function(e){return e&&"current"in e?e.current:e},B=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},L=0,H=[];function U(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const W=(z=function(e){var t=o.useRef([]),r=o.useRef([0,0]),a=o.useRef(),i=o.useState(L++)[0],c=o.useState(_)[0],l=o.useRef(e);o.useEffect((function(){l.current=e}),[e]),o.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var t=(0,n.__spreadArray)([e.lockRef.current],(e.shards||[]).map(F),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(i))})),function(){document.body.classList.remove("block-interactivity-".concat(i)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(i))}))}}}),[e.inert,e.lockRef.current,e.shards]);var s=o.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!l.current.allowPinchZoom;var n,o=C(e),i=r.current,c="deltaX"in e?e.deltaX:i[0]-o[0],s="deltaY"in e?e.deltaY:i[1]-o[1],u=e.target,d=Math.abs(c)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=M(d,u);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=M(d,u)),!f)return!1;if(!a.current&&"changedTouches"in e&&(c||s)&&(a.current=n),!n)return!0;var p=a.current||n;return function(e,t,r,n,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*n,c=r.target,l=t.contains(c),s=!1,u=i>0,d=0,f=0;do{var p=I(e,c),v=p[0],h=p[1]-p[2]-a*v;(v||h)&&A(e,c)&&(d+=h,f+=v),c=c instanceof ShadowRoot?c.host:c.parentNode}while(!l&&c!==document.body||l&&(t.contains(c)||t===c));return(u&&(o&&Math.abs(d)<1||!o&&i>d)||!u&&(o&&Math.abs(f)<1||!o&&-i>f))&&(s=!0),s}(p,t,e,"h"===p?c:s,!0)}),[]),u=o.useCallback((function(e){var r=e;if(H.length&&H[H.length-1]===c){var n="deltaY"in r?D(r):C(r),o=t.current.filter((function(e){return e.name===r.type&&(e.target===r.target||r.target===e.shadowParent)&&(t=e.delta,o=n,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)r.cancelable&&r.preventDefault();else if(!o){var a=(l.current.shards||[]).map(F).filter(Boolean).filter((function(e){return e.contains(r.target)}));(a.length>0?s(r,a[0]):!l.current.noIsolation)&&r.cancelable&&r.preventDefault()}}}),[]),d=o.useCallback((function(e,r,n,o){var a={name:e,delta:r,target:n,should:o,shadowParent:U(n)};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),f=o.useCallback((function(e){r.current=C(e),a.current=void 0}),[]),p=o.useCallback((function(t){d(t.type,D(t),t.target,s(t,e.lockRef.current))}),[]),v=o.useCallback((function(t){d(t.type,C(t),t.target,s(t,e.lockRef.current))}),[]);o.useEffect((function(){return H.push(c),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:v}),document.addEventListener("wheel",u,R),document.addEventListener("touchmove",u,R),document.addEventListener("touchstart",f,R),function(){H=H.filter((function(e){return e!==c})),document.removeEventListener("wheel",u,R),document.removeEventListener("touchmove",u,R),document.removeEventListener("touchstart",f,R)}}),[]);var h=e.removeScrollBar,y=e.inert;return o.createElement(o.Fragment,null,y?o.createElement(c,{styles:B(i)}):null,h?o.createElement(T,{gapMode:e.gapMode}):null)},f.useMedium(z),y);var z,G=o.forwardRef((function(e,t){return o.createElement(v,(0,n.__assign)({},e,{ref:t,sideCar:W}))}));G.classNames=v.classNames;const q=G},5579:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Skeleton=void 0;const n=r(5608).__importDefault(r(9155)),o=r(9003),a=r(4367),i=({className:e,style:t,height:r,width:i,borderRadius:c="0",...l})=>n.default.createElement("div",{className:a.skeleton.classnames.base,style:(0,o.assignInlineVars)({[a.vars.width]:i,[a.vars.height]:r,[a.vars.borderRadius]:c}),...l});t.Skeleton=i,i.displayName="Skeleton"},7940:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Skeleton=void 0;const n=r(5579);var o=r(5579);Object.defineProperty(t,"Skeleton",{enumerable:!0,get:function(){return o.Skeleton}}),t.default=n.Skeleton},9993:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Title=void 0;const n=r(5608).__importDefault(r(9155)),o=r(4367),a=r(7098),i=({className:e,style:t,as:r="h1",color:a="neutral-textHigh",textAlign:i="left",lineHeight:c,fontWeight:l="bold",fontSize:s,children:u,...d})=>n.default.createElement(r,{...d,className:[o.title.sprinkle({color:a,textAlign:i,lineHeight:c,fontWeight:l,fontSize:s}),o.title.classnames.appearance[r]].join(" ")},u);t.Title=i,i.displayName="Title",(i.Skeleton=a.TitleSkeleton).displayName="Title.Skeleton"},9419:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TitleSkeleton=void 0;const n=r(5608).__importDefault(r(9155)),o=r(7940),a=r(217);t.TitleSkeleton=({as:e="h1",width:t,height:r,"data-testid":i})=>n.default.createElement(o.Skeleton,{width:t??a.sizes[e].width,height:r??a.sizes[e].height,"data-testid":i,borderRadius:"0.25rem"})},4620:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TitleSkeleton=void 0;const n=r(9419);var o=r(9419);Object.defineProperty(t,"TitleSkeleton",{enumerable:!0,get:function(){return o.TitleSkeleton}}),t.default=n.TitleSkeleton},217:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.sizes=void 0,t.sizes={h1:{width:"8.25rem",height:"2.75rem"},h2:{width:"6.188rem",height:"1.75rem"},h3:{width:"5.188rem",height:"1.75rem"},h4:{width:"4.625rem",height:"1.5rem"},h5:{width:"4.125rem",height:"1.25rem"},h6:{width:"3.625rem",height:"1.125rem"}}},7098:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});r(5608).__exportStar(r(4620),t)},2353:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Title=void 0;const n=r(9993);var o=r(9993);Object.defineProperty(t,"Title",{enumerable:!0,get:function(){return o.Title}}),t.default=n.Title},1148:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.eventHasNodeWithAttribute=void 0;t.eventHasNodeWithAttribute=(e,t)=>{const r="composedPath"in e&&"function"==typeof e.composedPath?e.composedPath:void 0,n=r?.call(e);if(Array.isArray(n)){if(n.some((e=>e instanceof Element&&e.hasAttribute(t))))return!0}const o=e.target;return!!(o&&o instanceof Element&&o.closest(`[${t}]`))}},8580:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE=void 0,t.DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE="data-nimbus-outside-press-ignore"},8720:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE=t.eventHasNodeWithAttribute=void 0;var n=r(1148);Object.defineProperty(t,"eventHasNodeWithAttribute",{enumerable:!0,get:function(){return n.eventHasNodeWithAttribute}});var o=r(8580);Object.defineProperty(t,"DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE",{enumerable:!0,get:function(){return o.DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE}})},8943:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;const n=r(5608).__importStar(r(9155)),o=r(9514),a=r(7409),i=r(4955),c=r(4367),l=r(8720),s=r(3673),u=({className:e,style:t,position:r="right",maxWidth:s="375px",open:u=!1,needRemoveScroll:d=!1,closeOnOutsidePress:f=!0,children:p,onRemove:v,root:h,ignoreAttributeName:y=l.DEFAULT_OUTSIDE_PRESS_IGNORE_ATTRIBUTE,...m})=>{const{className:b,style:_,otherProps:g}=c.sidebar.sprinkle({...m,maxWidth:s}),{refThemeProvider:w}=(0,c.useTheme)(),{context:S}=(0,i.useFloating)({open:u,onOpenChange:v}),E=n.default.useCallback((e=>(0,l.eventHasNodeWithAttribute)(e,y)),[y]),P=(0,n.useMemo)((()=>"function"==typeof f?e=>!!f(e)&&!E(e):!!f&&(e=>!E(e))),[f,E]),O=(0,i.useDismiss)(S,{outsidePressEvent:"mousedown",outsidePress:P}),{getFloatingProps:j}=(0,i.useInteractions)([O]);if(!u)return null;const T=n.default.createElement(i.FloatingFocusManager,{context:S},n.default.createElement("div",{...g,ref:S.refs.setFloating,role:m.role||"presentation",style:_,...j(),className:[h?c.sidebar.classnames.containerScoped:c.sidebar.classnames.container,c.sidebar.classnames.position[r],b,u&&c.sidebar.classnames.isVisible].join(" ")},d?n.default.createElement(a.RemoveScroll,null,p):p));return h?(0,o.createPortal)(n.default.createElement(n.default.Fragment,null,n.default.createElement("div",{className:c.sidebar.classnames.overlayScoped,"data-testid":"portal-overlay-sidebar-button",role:"presentation","aria-hidden":"true"}),T),h):n.default.createElement(i.FloatingPortal,{id:"nimbus-sidebar",root:w?.current},n.default.createElement(i.FloatingOverlay,{className:c.sidebar.classnames.overlay,"data-testid":"overlay-sidebar-button",lockScroll:!d},T))};t.Sidebar=u,u.Body=s.SidebarBody,u.Footer=s.SidebarFooter,u.Header=s.SidebarHeader,u.displayName="Sidebar",u.Body.displayName="Sidebar.Body",u.Footer.displayName="Sidebar.Footer",u.Header.displayName="Sidebar.Header"},3024:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5608);n.__exportStar(r(9093),t),n.__exportStar(r(3673),t)},167:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarBody=void 0;const n=r(5608).__importDefault(r(9155)),o=r(4367);t.SidebarBody=({className:e,style:t,children:r,...a})=>{const{className:i,style:c,otherProps:l}=o.sidebar.sprinkle(a);return n.default.createElement("div",{...l,style:c,className:[o.sidebar.classnames.container__body,i].join(" ")},r)}},2985:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarBody=void 0;const n=r(167);var o=r(167);Object.defineProperty(t,"SidebarBody",{enumerable:!0,get:function(){return o.SidebarBody}}),t.default=n.SidebarBody},1879:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarFooter=void 0;const n=r(5608).__importDefault(r(9155)),o=r(4367);t.SidebarFooter=({className:e,style:t,children:r,...a})=>{const{className:i,style:c,otherProps:l}=o.sidebar.sprinkle(a);return n.default.createElement("div",{...l,style:c,className:[i,o.sidebar.classnames.container__footer].join(" ")},r)}},9810:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarFooter=void 0;const n=r(1879);var o=r(1879);Object.defineProperty(t,"SidebarFooter",{enumerable:!0,get:function(){return o.SidebarFooter}}),t.default=n.SidebarFooter},863:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarHeader=void 0;const n=r(5608).__importDefault(r(9155)),o=r(2353),a=r(4367);t.SidebarHeader=({className:e,style:t,title:r,children:i,...c})=>{const{className:l,style:s,otherProps:u}=a.sidebar.sprinkle(c);return n.default.createElement("div",{...u,style:s,className:[l,a.sidebar.classnames.container__header].join(" ")},r&&n.default.createElement(o.Title,{as:"h2","data-testid":"header-title"},r),i)}},628:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SidebarHeader=void 0;const n=r(863);var o=r(863);Object.defineProperty(t,"SidebarHeader",{enumerable:!0,get:function(){return o.SidebarHeader}}),t.default=n.SidebarHeader},3673:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0});const n=r(5608);n.__exportStar(r(2985),t),n.__exportStar(r(9810),t),n.__exportStar(r(628),t)},9093:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;const n=r(8943);var o=r(8943);Object.defineProperty(t,"Sidebar",{enumerable:!0,get:function(){return o.Sidebar}}),t.default=n.Sidebar},4955:e=>{e.exports=r},4367:e=>{e.exports=n},9155:t=>{t.exports=e},9514:e=>{e.exports=t},5608:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>I,__assign:()=>a,__asyncDelegator:()=>O,__asyncGenerator:()=>P,__asyncValues:()=>j,__await:()=>E,__awaiter:()=>v,__classPrivateFieldGet:()=>N,__classPrivateFieldIn:()=>A,__classPrivateFieldSet:()=>M,__createBinding:()=>y,__decorate:()=>c,__disposeResources:()=>D,__esDecorate:()=>s,__exportStar:()=>m,__extends:()=>o,__generator:()=>h,__importDefault:()=>R,__importStar:()=>k,__makeTemplateObject:()=>T,__metadata:()=>p,__param:()=>l,__propKey:()=>d,__read:()=>_,__rest:()=>i,__runInitializers:()=>u,__setFunctionName:()=>f,__spread:()=>g,__spreadArray:()=>S,__spreadArrays:()=>w,__values:()=>b,default:()=>F});var n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)};function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var a=function(){return a=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},a.apply(this,arguments)};function i(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}function c(e,t,r,n){var o,a=arguments.length,i=a<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(t,r,i):o(t,r))||i);return a>3&&i&&Object.defineProperty(t,r,i),i}function l(e,t){return function(r,n){t(r,n,e)}}function s(e,t,r,n,o,a){function i(e){if(void 0!==e&&"function"!=typeof e)throw new TypeError("Function expected");return e}for(var c,l=n.kind,s="getter"===l?"get":"setter"===l?"set":"value",u=!t&&e?n.static?e:e.prototype:null,d=t||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),f=!1,p=r.length-1;p>=0;p--){var v={};for(var h in n)v[h]="access"===h?{}:n[h];for(var h in n.access)v.access[h]=n.access[h];v.addInitializer=function(e){if(f)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var y=(0,r[p])("accessor"===l?{get:d.get,set:d.set}:d[s],v);if("accessor"===l){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw new TypeError("Object expected");(c=i(y.get))&&(d.get=c),(c=i(y.set))&&(d.set=c),(c=i(y.init))&&o.unshift(c)}else(c=i(y))&&("field"===l?o.unshift(c):d[s]=c)}u&&Object.defineProperty(u,n.name,d),f=!0}function u(e,t,r){for(var n=arguments.length>2,o=0;o<t.length;o++)r=n?t[o].call(e,r):t[o].call(e);return n?r:void 0}function d(e){return"symbol"==typeof e?e:"".concat(e)}function f(e,t,r){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function v(e,t,r,n){return new(r||(r=Promise))((function(o,a){function i(e){try{l(n.next(e))}catch(e){a(e)}}function c(e){try{l(n.throw(e))}catch(e){a(e)}}function l(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,c)}l((n=n.apply(e,t||[])).next())}))}function h(e,t){var r,n,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function c(c){return function(l){return function(c){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(r=1,n&&(o=2&c[0]?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,n=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],n=0}finally{r=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,l])}}}var y=Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]};function m(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||y(t,e,r)}function b(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function _(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,a=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(_(arguments[t]));return e}function w(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var a=arguments[t],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function S(e,t,r){if(r||2===arguments.length)for(var n,o=0,a=t.length;o<a;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))}function E(e){return this instanceof E?(this.v=e,this):new E(e)}function P(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=r.apply(e,t||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(t){return new Promise((function(r,n){a.push([e,t,r,n])>1||c(e,t)}))})}function c(e,t){try{(r=o[e](t)).value instanceof E?Promise.resolve(r.value.v).then(l,s):u(a[0][2],r)}catch(e){u(a[0][3],e)}var r}function l(e){c("next",e)}function s(e){c("throw",e)}function u(e,t){e(t),a.shift(),a.length&&c(a[0][0],a[0][1])}}function O(e){var t,r;return t={},n("next"),n("throw",(function(e){throw e})),n("return"),t[Symbol.iterator]=function(){return this},t;function n(n,o){t[n]=e[n]?function(t){return(r=!r)?{value:E(e[n](t)),done:!1}:o?o(t):t}:o}}function j(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=b(e),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(r){t[r]=e[r]&&function(t){return new Promise((function(n,o){(function(e,t,r,n){Promise.resolve(n).then((function(t){e({value:t,done:r})}),t)})(n,o,(t=e[r](t)).done,t.value)}))}}}function T(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var x=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function k(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&y(t,e,r);return x(t,e),t}function R(e){return e&&e.__esModule?e:{default:e}}function N(e,t,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!n:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(e):n?n.value:t.get(e)}function M(e,t,r,n,o){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!o)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,r):o?o.value=r:t.set(e,r),r}function A(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function I(e,t,r){if(null!=t){if("object"!=typeof t&&"function"!=typeof t)throw new TypeError("Object expected.");var n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=t[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=t[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:t,dispose:n,async:r})}else r&&e.stack.push({async:!0});return t}var C="function"==typeof SuppressedError?SuppressedError:function(e,t,r){var n=new Error(r);return n.name="SuppressedError",n.error=e,n.suppressed=t,n};function D(e){function t(t){e.error=e.hasError?new C(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function r(){for(;e.stack.length;){var n=e.stack.pop();try{var o=n.dispose&&n.dispose.call(n.value);if(n.async)return Promise.resolve(o).then(r,(function(e){return t(e),r()}))}catch(e){t(e)}}if(e.hasError)throw e.error}()}const F={__extends:o,__assign:a,__rest:i,__decorate:c,__param:l,__metadata:p,__awaiter:v,__generator:h,__createBinding:y,__exportStar:m,__values:b,__read:_,__spread:g,__spreadArrays:w,__spreadArray:S,__await:E,__asyncGenerator:P,__asyncDelegator:O,__asyncValues:j,__makeTemplateObject:T,__importStar:k,__importDefault:R,__classPrivateFieldGet:N,__classPrivateFieldSet:M,__classPrivateFieldIn:A,__addDisposableResource:I,__disposeResources:D}}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var r=a[e]={exports:{}};return o[e](r,r.exports,i),r.exports}return i.d=(e,t)=>{for(var r in t)i.o(t,r)&&!i.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.nc=void 0,i(3024)})()));
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Generated by dts-bundle-generator v7.2.0
|
|
2
|
+
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { HTMLAttributes } from 'react';
|
|
5
|
+
|
|
6
|
+
export interface SkeletonProperties {
|
|
7
|
+
/**
|
|
8
|
+
* Width of the skeleton. Useful when the skeleton is inside an inline element with no width of its own.
|
|
9
|
+
*/
|
|
10
|
+
width: string;
|
|
11
|
+
/**
|
|
12
|
+
* Height of the skeleton. Useful when you don't want to adapt the skeleton to a text element but for instance a card.
|
|
13
|
+
*/
|
|
14
|
+
height: string;
|
|
15
|
+
/**
|
|
16
|
+
* The border radius of the skeleton.
|
|
17
|
+
*/
|
|
18
|
+
borderRadius?: string;
|
|
19
|
+
/**
|
|
20
|
+
* This is an attribute used to identify a DOM node for testing purposes.
|
|
21
|
+
*/
|
|
22
|
+
"data-testid"?: string;
|
|
23
|
+
}
|
|
24
|
+
export type SkeletonProps = SkeletonProperties & HTMLAttributes<HTMLDivElement>;
|
|
25
|
+
export declare const Skeleton: React.FC<SkeletonProps>;
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
Skeleton as default,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export {};
|