@nimbus-ds/components 5.8.0 → 5.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/Accordion/index.d.ts +136 -0
  3. package/dist/Accordion/index.js +2 -0
  4. package/dist/Alert/index.d.ts +60 -0
  5. package/dist/Alert/index.js +2 -0
  6. package/dist/Badge/index.d.ts +55 -0
  7. package/dist/Badge/index.js +2 -0
  8. package/dist/Box/index.d.ts +763 -0
  9. package/dist/Box/index.js +2 -0
  10. package/dist/Button/index.d.ts +78 -0
  11. package/dist/Button/index.js +2 -0
  12. package/dist/CHANGELOG.md +502 -0
  13. package/dist/Card/index.d.ts +153 -0
  14. package/dist/Card/index.js +2 -0
  15. package/dist/Checkbox/index.d.ts +62 -0
  16. package/dist/Checkbox/index.js +2 -0
  17. package/dist/Chip/index.d.ts +54 -0
  18. package/dist/Chip/index.js +2 -0
  19. package/dist/Collapsible/index.d.ts +45 -0
  20. package/dist/Collapsible/index.js +2 -0
  21. package/dist/FileUploader/index.d.ts +98 -0
  22. package/dist/FileUploader/index.js +2 -0
  23. package/dist/Icon/index.d.ts +96 -0
  24. package/dist/Icon/index.js +2 -0
  25. package/dist/IconButton/index.d.ts +98 -0
  26. package/dist/IconButton/index.js +2 -0
  27. package/dist/Input/index.d.ts +71 -0
  28. package/dist/Input/index.js +2 -0
  29. package/dist/Label/index.d.ts +55 -0
  30. package/dist/Label/index.js +2 -0
  31. package/dist/Link/index.d.ts +115 -0
  32. package/dist/Link/index.js +2 -0
  33. package/dist/List/index.d.ts +75 -0
  34. package/dist/List/index.js +2 -0
  35. package/dist/Modal/index.d.ts +210 -0
  36. package/dist/Modal/index.js +2 -0
  37. package/dist/MultiSelect/index.d.ts +107 -0
  38. package/dist/MultiSelect/index.js +2 -0
  39. package/dist/Pagination/index.d.ts +41 -0
  40. package/dist/Pagination/index.js +2 -0
  41. package/dist/Popover/index.d.ts +160 -0
  42. package/dist/Popover/index.js +2 -0
  43. package/dist/README.md +235 -0
  44. package/dist/Radio/index.d.ts +62 -0
  45. package/dist/Radio/index.js +2 -0
  46. package/dist/Select/index.d.ts +81 -0
  47. package/dist/Select/index.js +2 -0
  48. package/dist/Sidebar/index.d.ts +367 -0
  49. package/dist/Sidebar/index.js +2 -0
  50. package/dist/Skeleton/index.d.ts +31 -0
  51. package/dist/Skeleton/index.js +2 -0
  52. package/dist/Spinner/index.d.ts +53 -0
  53. package/dist/Spinner/index.js +2 -0
  54. package/dist/Table/index.d.ts +123 -0
  55. package/dist/Table/index.js +2 -0
  56. package/dist/Tabs/index.d.ts +78 -0
  57. package/dist/Tabs/index.js +2 -0
  58. package/dist/Tag/index.d.ts +51 -0
  59. package/dist/Tag/index.js +2 -0
  60. package/dist/Text/index.d.ts +465 -0
  61. package/dist/Text/index.js +2 -0
  62. package/dist/Textarea/index.d.ts +50 -0
  63. package/dist/Textarea/index.js +2 -0
  64. package/dist/Thumbnail/index.d.ts +72 -0
  65. package/dist/Thumbnail/index.js +2 -0
  66. package/dist/Title/index.d.ts +164 -0
  67. package/dist/Title/index.js +2 -0
  68. package/dist/Toast/index.d.ts +56 -0
  69. package/dist/Toast/index.js +2 -0
  70. package/dist/Toggle/index.d.ts +48 -0
  71. package/dist/Toggle/index.js +2 -0
  72. package/dist/Tooltip/index.d.ts +46 -0
  73. package/dist/Tooltip/index.js +2 -0
  74. package/dist/index.d.ts +3506 -0
  75. package/dist/index.js +2 -0
  76. package/package.json +1 -1
@@ -0,0 +1,367 @@
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
+ container: string;
274
+ container__header: string;
275
+ container__body: string;
276
+ container__footer: string;
277
+ position: Record<"left" | "right", string>;
278
+ isVisible: string;
279
+ };
280
+ };
281
+ export interface SidebarBodyProperties {
282
+ /**
283
+ * The content of the sidebar body.
284
+ * @TJS-type React.ReactNode
285
+ */
286
+ children: ReactNode;
287
+ /**
288
+ * The padding properties are used to generate space around an sidebar's body content area.
289
+ * @default base
290
+ */
291
+ padding?: keyof typeof sidebar.properties.padding;
292
+ }
293
+ export type SidebarBodyProps = SidebarBodyProperties & HTMLAttributes<HTMLElement>;
294
+ export declare const SidebarBody: React.FC<SidebarBodyProps>;
295
+ export interface SidebarFooterProperties {
296
+ /**
297
+ * The content of the sidebar footer.
298
+ * @TJS-type React.ReactNode
299
+ */
300
+ children: ReactNode;
301
+ /**
302
+ * The padding properties are used to generate space around an sidebar's footer content area.
303
+ * @default base
304
+ */
305
+ padding?: keyof typeof sidebar.properties.padding;
306
+ }
307
+ export type SidebarFooterProps = SidebarFooterProperties & HTMLAttributes<HTMLElement>;
308
+ export declare const SidebarFooter: React.FC<SidebarFooterProps>;
309
+ export interface SidebarHeaderProperties {
310
+ /**
311
+ * The content of the sidebar header.
312
+ * @TJS-type React.ReactNode
313
+ */
314
+ children?: ReactNode;
315
+ /**
316
+ * The title to display in the sidebar header.
317
+ */
318
+ title?: string;
319
+ /**
320
+ * The padding properties are used to generate space around an sidebar's header content area.
321
+ * @default base
322
+ */
323
+ padding?: keyof typeof sidebar.properties.padding;
324
+ }
325
+ export type SidebarHeaderProps = SidebarHeaderProperties & HTMLAttributes<HTMLElement>;
326
+ export declare const SidebarHeader: React.FC<SidebarHeaderProps>;
327
+ export interface SidebarComponents {
328
+ Body: typeof SidebarBody;
329
+ Footer: typeof SidebarFooter;
330
+ Header: typeof SidebarHeader;
331
+ }
332
+ export interface SidebarProperties extends SidebarSprinkle {
333
+ /**
334
+ * Side from which the sidebar will appear.
335
+ * @default right
336
+ */
337
+ position?: "right" | "left";
338
+ /**
339
+ * The padding properties are used to generate space around an sidebar's content area.
340
+ * @default base
341
+ */
342
+ padding?: keyof typeof sidebar.properties.padding;
343
+ /**
344
+ * The content of the sidebar.
345
+ * @TJS-type React.ReactNode
346
+ */
347
+ children: ReactNode;
348
+ /**
349
+ * Callback fired when the component requests to be closed.
350
+ * () => void;
351
+ */
352
+ onRemove?: () => void;
353
+ /**
354
+ * Determines if the sidebar is shown or not.
355
+ * @default true
356
+ */
357
+ open?: boolean;
358
+ /**
359
+ * Determines if RemoveScroll wraps sidebar's children component.
360
+ * @default true
361
+ */
362
+ needRemoveScroll?: boolean;
363
+ }
364
+ export type SidebarProps = SidebarProperties & HTMLAttributes<HTMLDivElement>;
365
+ export declare const Sidebar: React.FC<SidebarProps> & SidebarComponents;
366
+
367
+ export {};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@floating-ui/react"),require("@nimbus-ds/styles")):"function"==typeof define&&define.amd?define(["react","@floating-ui/react","@nimbus-ds/styles"],t):"object"==typeof exports?exports["@nimbus-ds/components"]=t(require("react"),require("@floating-ui/react"),require("@nimbus-ds/styles")):e["@nimbus-ds/components"]=t(e.react,e["@floating-ui/react"],e["@nimbus-ds/styles"])}(global,((e,t,r)=>(()=>{"use strict";var n={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,j=e.gapMode,P=(0,n.__rest)(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=m,O=s([r,t]),x=(0,n.__assign)((0,n.__assign)({},P),i);return o.createElement(o.Fragment,null,h&&o.createElement(E,{sideCar:f,removeScrollBar:v,shards:y,noIsolation:b,inert:_,setCallbacks:c,allowPinchZoom:!!g,lockRef:r,gapMode:j}),l?o.cloneElement(o.Children.only(u),(0,n.__assign)((0,n.__assign)({},x),{ref:O})):o.createElement(S,(0,n.__assign)({},x,{className:d,ref:O}),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])}},j=_(),P="data-scroll-locked",E=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")},O=function(){var e=parseInt(document.body.getAttribute(P)||"0",10);return isFinite(e)?e:0},x=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,(O()+1).toString()),function(){var e=O()-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(j,{styles:E(i,!t,a,r?"":"!important")})},k=!1;if("undefined"!=typeof window)try{var T=Object.defineProperty({},"passive",{get:function(){return k=!0,!0}});window.addEventListener("test",T,T),window.removeEventListener("test",T,T)}catch(e){k=!1}var M=!!k&&{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])},R=function(e,t){var r=t.ownerDocument,n=t;do{if("undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot&&(n=n.host),C(e,n)){var o=F(e,n);if(o[1]>o[2])return!0}n=n.parentNode}while(n&&n!==r.body);return!1},C=function(e,t){return"v"===e?function(e){return N(e,"overflowY")}(t):function(e){return N(e,"overflowX")}(t)},F=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},A=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},D=function(e){return[e.deltaX,e.deltaY]},I=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 W(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const z=(X=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(I),!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=A(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=R(d,u);if(!f)return!0;if(f?n=d:(n="v"===d?"h":"v",f=R(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=F(e,c),v=p[0],h=p[1]-p[2]-a*v;(v||h)&&C(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):A(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(I).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:W(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=A(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,A(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,M),document.addEventListener("touchmove",u,M),document.addEventListener("touchstart",f,M),function(){H=H.filter((function(e){return e!==c})),document.removeEventListener("wheel",u,M),document.removeEventListener("touchmove",u,M),document.removeEventListener("touchstart",f,M)}}),[]);var h=e.removeScrollBar,y=e.inert;return o.createElement(o.Fragment,null,y?o.createElement(c,{styles:B(i)}):null,h?o.createElement(x,{gapMode:e.gapMode}):null)},f.useMedium(X),y);var X,Y=o.forwardRef((function(e,t){return o.createElement(v,(0,n.__assign)({},e,{ref:t,sideCar:z}))}));Y.classNames=v.classNames;const q=Y},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},8943:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Sidebar=void 0;const n=r(5608).__importDefault(r(9155)),o=r(7409),a=r(4955),i=r(4367),c=r(3673),l=({className:e,style:t,position:r="right",maxWidth:c="375px",open:l=!1,needRemoveScroll:s=!1,children:u,onRemove:d,...f})=>{const{className:p,style:v,otherProps:h}=i.sidebar.sprinkle({...f,maxWidth:c}),{refThemeProvider:y}=(0,i.useTheme)(),{context:m}=(0,a.useFloating)({open:l,onOpenChange:d}),b=(0,a.useDismiss)(m,{outsidePressEvent:"mousedown"}),{getFloatingProps:_}=(0,a.useInteractions)([b]);return l?n.default.createElement(a.FloatingPortal,{id:"nimbus-sidebar",root:y?.current},n.default.createElement(a.FloatingOverlay,{className:i.sidebar.classnames.overlay,"data-testid":"overlay-sidebar-button",lockScroll:!s},n.default.createElement(a.FloatingFocusManager,{context:m},n.default.createElement("div",{...h,ref:m.refs.setFloating,role:f.role||"presentation",style:v,..._(),className:[i.sidebar.classnames.container,i.sidebar.classnames.position[r],p,l&&i.sidebar.classnames.isVisible].join(" ")},s?n.default.createElement(o.RemoveScroll,null,u):u)))):null};t.Sidebar=l,l.Body=c.SidebarBody,l.Footer=c.SidebarFooter,l.Header=c.SidebarHeader,l.displayName="Sidebar",l.Body.displayName="Sidebar.Body",l.Footer.displayName="Sidebar.Footer",l.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=t},4367:e=>{e.exports=r},9155:t=>{t.exports=e},5608:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>F,__assign:()=>a,__asyncDelegator:()=>E,__asyncGenerator:()=>P,__asyncValues:()=>O,__await:()=>j,__awaiter:()=>v,__classPrivateFieldGet:()=>N,__classPrivateFieldIn:()=>C,__classPrivateFieldSet:()=>R,__createBinding:()=>y,__decorate:()=>c,__disposeResources:()=>D,__esDecorate:()=>s,__exportStar:()=>m,__extends:()=>o,__generator:()=>h,__importDefault:()=>M,__importStar:()=>T,__makeTemplateObject:()=>x,__metadata:()=>p,__param:()=>l,__propKey:()=>d,__read:()=>_,__rest:()=>i,__runInitializers:()=>u,__setFunctionName:()=>f,__spread:()=>g,__spreadArray:()=>S,__spreadArrays:()=>w,__values:()=>b,default:()=>I});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 j(e){return this instanceof j?(this.v=e,this):new j(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 j?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 E(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:j(e[n](t)),done:!1}:o?o(t):t}:o}}function O(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 x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function T(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 k(t,e),t}function M(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 R(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 C(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 F(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 A="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 A(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 I={__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:j,__asyncGenerator:P,__asyncDelegator:E,__asyncValues:O,__makeTemplateObject:x,__importStar:T,__importDefault:M,__classPrivateFieldGet:N,__classPrivateFieldSet:R,__classPrivateFieldIn:C,__addDisposableResource:F,__disposeResources:D}}},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}return 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})},a.nc=void 0,a(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 {};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@nimbus-ds/styles")):"function"==typeof define&&define.amd?define(["react","@nimbus-ds/styles"],t):"object"==typeof exports?exports["@nimbus-ds/components"]=t(require("react"),require("@nimbus-ds/styles")):e["@nimbus-ds/components"]=t(e.react,e["@nimbus-ds/styles"])}(global,((e,t)=>(()=>{"use strict";var r={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 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})},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",...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"},4367:e=>{e.exports=t},9155:t=>{t.exports=e},5608:(e,t,r)=>{r.r(t),r.d(t,{__addDisposableResource:()=>F,__assign:()=>a,__asyncDelegator:()=>P,__asyncGenerator:()=>S,__asyncValues:()=>x,__await:()=>O,__awaiter:()=>d,__classPrivateFieldGet:()=>D,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>I,__createBinding:()=>v,__decorate:()=>c,__disposeResources:()=>C,__esDecorate:()=>u,__exportStar:()=>b,__extends:()=>o,__generator:()=>_,__importDefault:()=>A,__importStar:()=>T,__makeTemplateObject:()=>E,__metadata:()=>y,__param:()=>s,__propKey:()=>f,__read:()=>m,__rest:()=>i,__runInitializers:()=>l,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>j,__spreadArrays:()=>g,__values:()=>h,default:()=>G});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):{}),p=!1,y=r.length-1;y>=0;y--){var d={};for(var _ in n)d[_]="access"===_?{}:n[_];for(var _ in n.access)d.access[_]=n.access[_];d.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var v=(0,r[y])("accessor"===s?{get:f.get,set:f.set}:f[u],d);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),p=!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 p(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 y(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(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 b(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||v(t,e,r)}function h(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 j(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 S(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 P(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 x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,r=e[Symbol.asyncIterator];return r?r.call(e):(e=h(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 E(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var k=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function T(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 k(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function D(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 R(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 F(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 M="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 C(e){function t(t){e.error=e.hasError?new M(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 G={__extends:o,__assign:a,__rest:i,__decorate:c,__param:s,__metadata:y,__awaiter:d,__generator:_,__createBinding:v,__exportStar:b,__values:h,__read:m,__spread:w,__spreadArrays:g,__spreadArray:j,__await:O,__asyncGenerator:S,__asyncDelegator:P,__asyncValues:x,__makeTemplateObject:E,__importStar:T,__importDefault:A,__classPrivateFieldGet:D,__classPrivateFieldSet:I,__classPrivateFieldIn:R,__addDisposableResource:F,__disposeResources:C}}},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(5579);var r=o(5579);Object.defineProperty(e,"Skeleton",{enumerable:!0,get:function(){return r.Skeleton}}),e.default=t.Skeleton})(),a})()));
@@ -0,0 +1,53 @@
1
+ // Generated by dts-bundle-generator v7.2.0
2
+
3
+ import React from 'react';
4
+ import { SVGAttributes } from 'react';
5
+
6
+ declare const spinner: {
7
+ sprinkle: ((props: {
8
+ color?: "currentColor" | "primary-interactive" | "primary-surface" | "primary-textLow" | "success-textLow" | "success-surface" | "danger-interactive" | "danger-surface" | "danger-textLow" | "neutral-background" | "neutral-interactive" | "neutral-surface" | "neutral-textLow" | "success-interactive" | undefined;
9
+ }) => string) & {
10
+ properties: Set<"color">;
11
+ };
12
+ properties: {
13
+ color: {
14
+ currentColor: string;
15
+ "primary-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
16
+ "primary-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
17
+ "primary-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
18
+ "success-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
19
+ "success-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
20
+ "success-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
21
+ "danger-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
22
+ "danger-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
23
+ "danger-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
24
+ "neutral-background": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
25
+ "neutral-surface": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
26
+ "neutral-interactive": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
27
+ "neutral-textLow": `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
28
+ };
29
+ };
30
+ classnames: {
31
+ base: string;
32
+ };
33
+ };
34
+ export interface SpinnerProperties {
35
+ /**
36
+ * Sets the width and height of the spinner.
37
+ * @default large
38
+ */
39
+ size?: "small" | "medium" | "large" | number;
40
+ /**
41
+ * Set the color for the spinner SVG fill.
42
+ * @default primary-interactive
43
+ */
44
+ color?: keyof typeof spinner.properties.color;
45
+ }
46
+ export type SpinnerProps = SpinnerProperties & SVGAttributes<SVGElement>;
47
+ export declare const Spinner: React.FC<SpinnerProps>;
48
+
49
+ export {
50
+ Spinner as default,
51
+ };
52
+
53
+ export {};
@@ -0,0 +1,2 @@
1
+ "use client";
2
+ !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react"),require("@nimbus-ds/styles")):"function"==typeof define&&define.amd?define(["react","@nimbus-ds/styles"],r):"object"==typeof exports?exports["@nimbus-ds/components"]=r(require("react"),require("@nimbus-ds/styles")):e["@nimbus-ds/components"]=r(e.react,e["@nimbus-ds/styles"])}(global,((e,r)=>(()=>{"use strict";var t={9003:(e,r,t)=>{function n(e){var r=e.match(/^var\((.*)\)$/);return r?r[1]:e}function o(e,r){var t=e;for(var n of r){if(!(n in t))throw new Error("Path ".concat(r.join(" -> ")," does not exist in object"));t=t[n]}return t}function a(e,r){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=e.constructor();for(var o in e){var i=e[o],c=[...t,o];"string"==typeof i||"number"==typeof i||null==i?n[o]=r(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,r,c)}return n}function i(e,r){var t={};if("object"==typeof r){var i=e;a(r,((e,r)=>{if(null!=e){var a=o(i,r);t[n(a)]=String(e)}}))}else{var c=e;for(var s in c){var u=c[s];null!=u&&(t[n(s)]=u)}}return Object.defineProperty(t,"toString",{value:function(){return Object.keys(this).map((e=>"".concat(e,":").concat(this[e]))).join(";")},writable:!1}),t}function c(e,r,t){e.style.setProperty(n(r),t)}function s(e,r,t){if("object"==typeof t){var n=r;a(t,((r,t)=>{null!=r&&c(e,o(n,t),String(r))}))}else{var i=r;for(var s in i){null!=i[s]&&c(e,s,i[s])}}}t.r(r),t.d(r,{assignInlineVars:()=>i,setElementVars:()=>s})},9253:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.Spinner=void 0;const n=t(5608).__importStar(t(9155)),o=t(9003),a=t(4367),i=t(3079),c=({className:e,style:r,color:t="primary-interactive",size:c="large",...s})=>{const u=(0,n.useMemo)((()=>"number"==typeof c?`${c}px`:`${i.sizes[c]||32}px`),[c]);return n.default.createElement("svg",{viewBox:"0 0 50 50",className:[a.spinner.sprinkle({color:t}),a.spinner.classnames.base].join(" "),style:(0,o.assignInlineVars)({[a.vars.width]:u,[a.vars.height]:u}),...s},n.default.createElement("circle",{cx:"25",cy:"25",r:"20",fill:"none",strokeWidth:"10"}))};r.Spinner=c,c.displayName="Spinner"},3079:(e,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.sizes=void 0,r.sizes={large:32,medium:24,small:16}},4367:e=>{e.exports=r},9155:r=>{r.exports=e},5608:(e,r,t)=>{t.r(r),t.d(r,{__addDisposableResource:()=>M,__assign:()=>a,__asyncDelegator:()=>P,__asyncGenerator:()=>S,__asyncValues:()=>x,__await:()=>O,__awaiter:()=>d,__classPrivateFieldGet:()=>I,__classPrivateFieldIn:()=>R,__classPrivateFieldSet:()=>D,__createBinding:()=>v,__decorate:()=>c,__disposeResources:()=>z,__esDecorate:()=>u,__exportStar:()=>b,__extends:()=>o,__generator:()=>_,__importDefault:()=>A,__importStar:()=>k,__makeTemplateObject:()=>E,__metadata:()=>y,__param:()=>s,__propKey:()=>f,__read:()=>m,__rest:()=>i,__runInitializers:()=>l,__setFunctionName:()=>p,__spread:()=>w,__spreadArray:()=>j,__spreadArrays:()=>g,__values:()=>h,default:()=>C});var n=function(e,r){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t])},n(e,r)};function o(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function t(){this.constructor=e}n(e,r),e.prototype=null===r?Object.create(r):(t.prototype=r.prototype,new t)}var a=function(){return a=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var o in r=arguments[t])Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e},a.apply(this,arguments)};function i(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)r.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(t[n[o]]=e[n[o]])}return t}function c(e,r,t,n){var o,a=arguments.length,i=a<3?r:null===n?n=Object.getOwnPropertyDescriptor(r,t):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,r,t,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(i=(a<3?o(i):a>3?o(r,t,i):o(r,t))||i);return a>3&&i&&Object.defineProperty(r,t,i),i}function s(e,r){return function(t,n){r(t,n,e)}}function u(e,r,t,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=!r&&e?n.static?e:e.prototype:null,f=r||(l?Object.getOwnPropertyDescriptor(l,n.name):{}),p=!1,y=t.length-1;y>=0;y--){var d={};for(var _ in n)d[_]="access"===_?{}:n[_];for(var _ in n.access)d.access[_]=n.access[_];d.addInitializer=function(e){if(p)throw new TypeError("Cannot add initializers after decoration has completed");a.push(i(e||null))};var v=(0,t[y])("accessor"===s?{get:f.get,set:f.set}:f[u],d);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),p=!0}function l(e,r,t){for(var n=arguments.length>2,o=0;o<r.length;o++)t=n?r[o].call(e,t):r[o].call(e);return n?t:void 0}function f(e){return"symbol"==typeof e?e:"".concat(e)}function p(e,r,t){return"symbol"==typeof r&&(r=r.description?"[".concat(r.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:t?"".concat(t," ",r):r})}function y(e,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,r)}function d(e,r,t,n){return new(t||(t=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 r;e.done?o(e.value):(r=e.value,r instanceof t?r:new t((function(e){e(r)}))).then(i,c)}s((n=n.apply(e,r||[])).next())}))}function _(e,r){var t,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(t)throw new TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(i=0)),i;)try{if(t=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=r.call(e,i)}catch(e){c=[6,e],n=0}finally{t=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,r,t,n){void 0===n&&(n=t);var o=Object.getOwnPropertyDescriptor(r,t);o&&!("get"in o?!r.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,o)}:function(e,r,t,n){void 0===n&&(n=t),e[n]=r[t]};function b(e,r){for(var t in e)"default"===t||Object.prototype.hasOwnProperty.call(r,t)||v(r,e,t)}function h(e){var r="function"==typeof Symbol&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.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(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function m(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,o,a=t.call(e),i=[];try{for(;(void 0===r||r-- >0)&&!(n=a.next()).done;)i.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(t=a.return)&&t.call(a)}finally{if(o)throw o.error}}return i}function w(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(m(arguments[r]));return e}function g(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),o=0;for(r=0;r<t;r++)for(var a=arguments[r],i=0,c=a.length;i<c;i++,o++)n[o]=a[i];return n}function j(e,r,t){if(t||2===arguments.length)for(var n,o=0,a=r.length;o<a;o++)!n&&o in r||(n||(n=Array.prototype.slice.call(r,0,o)),n[o]=r[o]);return e.concat(n||Array.prototype.slice.call(r))}function O(e){return this instanceof O?(this.v=e,this):new O(e)}function S(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,o=t.apply(e,r||[]),a=[];return n={},i("next"),i("throw"),i("return"),n[Symbol.asyncIterator]=function(){return this},n;function i(e){o[e]&&(n[e]=function(r){return new Promise((function(t,n){a.push([e,r,t,n])>1||c(e,r)}))})}function c(e,r){try{(t=o[e](r)).value instanceof O?Promise.resolve(t.value.v).then(s,u):l(a[0][2],t)}catch(e){l(a[0][3],e)}var t}function s(e){c("next",e)}function u(e){c("throw",e)}function l(e,r){e(r),a.shift(),a.length&&c(a[0][0],a[0][1])}}function P(e){var r,t;return r={},n("next"),n("throw",(function(e){throw e})),n("return"),r[Symbol.iterator]=function(){return this},r;function n(n,o){r[n]=e[n]?function(r){return(t=!t)?{value:O(e[n](r)),done:!1}:o?o(r):r}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,t=e[Symbol.asyncIterator];return t?t.call(e):(e=h(e),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(t){r[t]=e[t]&&function(r){return new Promise((function(n,o){(function(e,r,t,n){Promise.resolve(n).then((function(r){e({value:r,done:t})}),r)})(n,o,(r=e[t](r)).done,r.value)}))}}}function E(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}var T=Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r};function k(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)"default"!==t&&Object.prototype.hasOwnProperty.call(e,t)&&v(r,e,t);return T(r,e),r}function A(e){return e&&e.__esModule?e:{default:e}}function I(e,r,t,n){if("a"===t&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof r?e!==r||!n:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===t?n:"a"===t?n.call(e):n?n.value:r.get(e)}function D(e,r,t,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 r?e!==r||!o:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===n?o.call(e,t):o?o.value=t:r.set(e,t),t}function R(e,r){if(null===r||"object"!=typeof r&&"function"!=typeof r)throw new TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?r===e:e.has(r)}function M(e,r,t){if(null!=r){if("object"!=typeof r&&"function"!=typeof r)throw new TypeError("Object expected.");var n;if(t){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");n=r[Symbol.asyncDispose]}if(void 0===n){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");n=r[Symbol.dispose]}if("function"!=typeof n)throw new TypeError("Object not disposable.");e.stack.push({value:r,dispose:n,async:t})}else t&&e.stack.push({async:!0});return r}var F="function"==typeof SuppressedError?SuppressedError:function(e,r,t){var n=new Error(t);return n.name="SuppressedError",n.error=e,n.suppressed=r,n};function z(e){function r(r){e.error=e.hasError?new F(r,e.error,"An error was suppressed during disposal."):r,e.hasError=!0}return function t(){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(t,(function(e){return r(e),t()}))}catch(e){r(e)}}if(e.hasError)throw e.error}()}const C={__extends:o,__assign:a,__rest:i,__decorate:c,__param:s,__metadata:y,__awaiter:d,__generator:_,__createBinding:v,__exportStar:b,__values:h,__read:m,__spread:w,__spreadArrays:g,__spreadArray:j,__await:O,__asyncGenerator:S,__asyncDelegator:P,__asyncValues:x,__makeTemplateObject:E,__importStar:k,__importDefault:A,__classPrivateFieldGet:I,__classPrivateFieldSet:D,__classPrivateFieldIn:R,__addDisposableResource:M,__disposeResources:z}}},n={};function o(e){var r=n[e];if(void 0!==r)return r.exports;var a=n[e]={exports:{}};return t[e](a,a.exports,o),a.exports}o.d=(e,r)=>{for(var t in r)o.o(r,t)&&!o.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:r[t]})},o.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),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.Spinner=void 0;const r=o(9253);var t=o(9253);Object.defineProperty(e,"Spinner",{enumerable:!0,get:function(){return t.Spinner}}),e.default=r.Spinner})(),a})()));