@aivenio/aquarium 1.38.2 → 1.40.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/dist/system.cjs CHANGED
@@ -81,566 +81,6 @@ var require_tokens = __commonJS({
81
81
  "tokens.json"(exports, module2) {
82
82
  module2.exports = {
83
83
  themes: {
84
- timescale: {
85
- colors: {
86
- "error-100": "#aa0000",
87
- "error-90": "#b90000",
88
- "error-80": "#c50001",
89
- "error-70": "#d80005",
90
- "error-60": "#e70000",
91
- "error-50": "#e62728",
92
- "error-40": "#e0504f",
93
- "error-30": "#ed7975",
94
- "error-20": "#ffadb3",
95
- "error-10": "#ffcbd2",
96
- "error-5": "#fee8e7",
97
- "error-0": "#fef2f1",
98
- "warning-100": "#fe6d00",
99
- "warning-90": "#ff9003",
100
- "warning-80": "#fd9f00",
101
- "warning-70": "#ffb300",
102
- "warning-60": "#ffc107",
103
- "warning-50": "#fdc926",
104
- "warning-40": "#fdd44d",
105
- "warning-30": "#fddf81",
106
- "warning-20": "#feebb2",
107
- "warning-10": "#fff2cd",
108
- "warning-5": "#fff8ea",
109
- "warning-0": "#fffdf9",
110
- "success-100": "#006f00",
111
- "success-90": "#008e00",
112
- "success-80": "#009f00",
113
- "success-70": "#00b300",
114
- "success-60": "#00c300",
115
- "success-50": "#40ce37",
116
- "success-40": "#60db57",
117
- "success-30": "#89eb80",
118
- "success-20": "#afffa7",
119
- "success-10": "#cbffc9",
120
- "success-5": "#ecf7ed",
121
- "success-0": "#f5faf5",
122
- "info-100": "#02569a",
123
- "info-90": "#0174ba",
124
- "info-80": "#0788d1",
125
- "info-70": "#0399e3",
126
- "info-60": "#02a8f3",
127
- "info-50": "#28b4f4",
128
- "info-40": "#4cc2f7",
129
- "info-30": "#7fd1f7",
130
- "info-20": "#b4e5fb",
131
- "info-10": "#e0f5fe",
132
- "info-5": "#effaff",
133
- "info-0": "#f9fdff",
134
- "grey-100": "#19191d",
135
- "grey-90": "#292a31",
136
- "grey-80": "#3a3a44",
137
- "grey-70": "#4a4b57",
138
- "grey-60": "#5a5b6a",
139
- "grey-50": "#787885",
140
- "grey-40": "#9696a0",
141
- "grey-30": "#b4b4bb",
142
- "grey-20": "#d2d2d6",
143
- "grey-10": "#e1e1e3",
144
- "grey-5": "#ededf0",
145
- "grey-0": "#f7f7fa",
146
- "secondary-100": "#e11d16",
147
- "secondary-90": "#eb4610",
148
- "secondary-80": "#f3580d",
149
- "secondary-70": "#f96a02",
150
- "secondary-60": "#ff7700",
151
- "secondary-50": "#fc871a",
152
- "secondary-40": "#fb9a3e",
153
- "secondary-30": "#fab26e",
154
- "secondary-20": "#f8c99c",
155
- "secondary-10": "#fee8d0",
156
- "secondary-5": "#fff3e8",
157
- "secondary-0": "#fffbf8",
158
- "primary-100": "#02569a",
159
- "primary-90": "#0174ba",
160
- "primary-80": "#0788d1",
161
- "primary-70": "#0399e3",
162
- "primary-60": "#02a8f3",
163
- "primary-50": "#28b4f4",
164
- "primary-40": "#4cc2f7",
165
- "primary-30": "#7fd1f7",
166
- "primary-20": "#b4e5fb",
167
- "primary-10": "#e0f5fe",
168
- "primary-5": "#effaff",
169
- "primary-0": "#f9fdff"
170
- },
171
- typography: {
172
- sizes: [
173
- {
174
- name: "large-heading",
175
- className: "typography-large-heading",
176
- style: {
177
- fontFamily: "Inter",
178
- fontSize: "32px",
179
- fontWeight: 700,
180
- fontStyle: "normal",
181
- lineHeight: 1.375,
182
- textTransform: "none"
183
- },
184
- fontPostScriptName: "Inter-Bold"
185
- },
186
- {
187
- name: "heading",
188
- className: "typography-heading",
189
- style: {
190
- fontFamily: "Inter",
191
- fontSize: "24px",
192
- fontWeight: 700,
193
- fontStyle: "normal",
194
- lineHeight: 1.375,
195
- textTransform: "none"
196
- },
197
- fontPostScriptName: "Inter-Bold"
198
- },
199
- {
200
- name: "subheading",
201
- className: "typography-subheading",
202
- style: {
203
- fontFamily: "Inter",
204
- fontSize: "20px",
205
- fontWeight: 600,
206
- fontStyle: "normal",
207
- lineHeight: 1.375,
208
- textTransform: "none"
209
- },
210
- fontPostScriptName: "Inter-Bold"
211
- },
212
- {
213
- name: "large-strong",
214
- className: "typography-large-strong",
215
- style: {
216
- fontFamily: "Inter",
217
- fontSize: "20px",
218
- fontWeight: 600,
219
- fontStyle: "normal",
220
- lineHeight: 1.58,
221
- textTransform: "none"
222
- },
223
- fontPostScriptName: "Inter-SemiBold"
224
- },
225
- {
226
- name: "large",
227
- className: "typography-large",
228
- style: {
229
- fontFamily: "Inter",
230
- fontSize: "20px",
231
- fontWeight: 500,
232
- fontStyle: "normal",
233
- lineHeight: 1.58,
234
- textTransform: "none"
235
- },
236
- fontPostScriptName: "Inter-SemiBold"
237
- },
238
- {
239
- name: "default-strong",
240
- className: "typography-default-strong",
241
- style: {
242
- fontFamily: "Inter",
243
- fontSize: "16px",
244
- fontWeight: 500,
245
- fontStyle: "normal",
246
- lineHeight: 1.5,
247
- textTransform: "none"
248
- },
249
- fontPostScriptName: "Inter-SemiBold"
250
- },
251
- {
252
- name: "default",
253
- className: "typography-default",
254
- style: {
255
- fontFamily: "Inter",
256
- fontSize: "16px",
257
- fontWeight: 400,
258
- fontStyle: "normal",
259
- lineHeight: 1.5,
260
- textTransform: "none"
261
- },
262
- fontPostScriptName: null
263
- },
264
- {
265
- name: "small-strong",
266
- className: "typography-small-strong",
267
- style: {
268
- fontFamily: "Inter",
269
- fontSize: "14px",
270
- fontWeight: 500,
271
- fontStyle: "normal",
272
- lineHeight: 1.42,
273
- textTransform: "none"
274
- },
275
- fontPostScriptName: "Inter-SemiBold"
276
- },
277
- {
278
- name: "small",
279
- className: "typography-small",
280
- style: {
281
- fontFamily: "Inter",
282
- fontSize: "14px",
283
- fontWeight: 400,
284
- fontStyle: "normal",
285
- lineHeight: 1.42,
286
- textTransform: "none"
287
- },
288
- fontPostScriptName: null
289
- },
290
- {
291
- name: "caption",
292
- className: "typography-caption",
293
- style: {
294
- fontFamily: "Inter",
295
- fontSize: "12px",
296
- fontWeight: 400,
297
- fontStyle: "normal",
298
- lineHeight: 1.26,
299
- textTransform: "none"
300
- },
301
- fontPostScriptName: null
302
- },
303
- {
304
- name: "caption-small",
305
- className: "typography-caption-small",
306
- style: {
307
- fontFamily: "Inter",
308
- fontSize: "10px",
309
- fontWeight: 400,
310
- fontStyle: "normal",
311
- lineHeight: 1.2,
312
- textTransform: "none"
313
- },
314
- fontPostScriptName: null
315
- },
316
- {
317
- name: "caption-default",
318
- className: "typography-caption-default",
319
- style: {
320
- fontFamily: "Inter",
321
- fontSize: "12px",
322
- fontWeight: 400,
323
- fontStyle: "normal",
324
- lineHeight: 1.26,
325
- letterSpacing: 0,
326
- textTransform: "none"
327
- },
328
- fontPostScriptName: null
329
- },
330
- {
331
- name: "overline-small",
332
- className: "typography-overline-small",
333
- style: {
334
- fontFamily: "Inter",
335
- fontSize: "10px",
336
- fontWeight: 400,
337
- fontStyle: "normal",
338
- lineHeight: 1,
339
- letterSpacing: 0,
340
- textTransform: "uppercase"
341
- },
342
- fontPostScriptName: null
343
- },
344
- {
345
- name: "overline-default",
346
- className: "typography-overline-default",
347
- style: {
348
- fontFamily: "Inter",
349
- fontSize: "12px",
350
- fontWeight: 400,
351
- fontStyle: "normal",
352
- lineHeight: 1,
353
- letterSpacing: 0,
354
- textTransform: "uppercase"
355
- },
356
- fontPostScriptName: null
357
- },
358
- {
359
- name: "button-small",
360
- className: "typography-button-small",
361
- style: {
362
- fontFamily: "Inter",
363
- fontSize: "12px",
364
- fontWeight: 500,
365
- fontStyle: "normal",
366
- lineHeight: 1,
367
- letterSpacing: 0,
368
- textTransform: "none"
369
- },
370
- fontPostScriptName: "Inter-Medium"
371
- },
372
- {
373
- name: "button-medium",
374
- className: "typography-button-medium",
375
- style: {
376
- fontFamily: "Inter",
377
- fontSize: "14px",
378
- fontWeight: 400,
379
- fontStyle: "normal",
380
- lineHeight: 1,
381
- letterSpacing: 0,
382
- textTransform: "none"
383
- },
384
- fontPostScriptName: "Inter-SemiBold"
385
- },
386
- {
387
- name: "button-large",
388
- className: "typography-button-large",
389
- style: {
390
- fontFamily: "Inter",
391
- fontSize: "16px",
392
- fontWeight: 500,
393
- fontStyle: "normal",
394
- lineHeight: 1.5,
395
- letterSpacing: 0,
396
- textTransform: "none"
397
- },
398
- fontPostScriptName: "Inter-Medium"
399
- },
400
- {
401
- name: "body-small",
402
- className: "typography-body-small",
403
- style: {
404
- fontFamily: "Inter",
405
- fontSize: "14px",
406
- fontWeight: 400,
407
- fontStyle: "normal",
408
- lineHeight: 1.43,
409
- letterSpacing: 0,
410
- textTransform: "none"
411
- },
412
- fontPostScriptName: null
413
- },
414
- {
415
- name: "body-small-medium",
416
- className: "typography-body-small-medium",
417
- style: {
418
- fontFamily: "Inter",
419
- fontSize: "14px",
420
- fontWeight: 500,
421
- fontStyle: "normal",
422
- lineHeight: 1.43,
423
- letterSpacing: 0,
424
- textTransform: "none"
425
- },
426
- fontPostScriptName: "Inter-SemiBold"
427
- },
428
- {
429
- name: "body-default",
430
- className: "typography-body-default",
431
- style: {
432
- fontFamily: "Inter",
433
- fontSize: "16px",
434
- fontWeight: 400,
435
- fontStyle: "normal",
436
- lineHeight: 1.5,
437
- letterSpacing: 0,
438
- textTransform: "none"
439
- },
440
- fontPostScriptName: null
441
- },
442
- {
443
- name: "body-default-medium",
444
- className: "typography-body-default-medium",
445
- style: {
446
- fontFamily: "Inter",
447
- fontSize: "16px",
448
- fontWeight: 500,
449
- fontStyle: "normal",
450
- lineHeight: 1.5,
451
- letterSpacing: 0,
452
- textTransform: "none"
453
- },
454
- fontPostScriptName: "Inter-SemiBold"
455
- },
456
- {
457
- name: "body-large",
458
- className: "typography-body-large",
459
- style: {
460
- fontFamily: "Inter",
461
- fontSize: "20px",
462
- fontWeight: 400,
463
- fontStyle: "normal",
464
- lineHeight: 1.58,
465
- letterSpacing: 0,
466
- textTransform: "none"
467
- },
468
- fontPostScriptName: null
469
- },
470
- {
471
- name: "body-large-medium",
472
- className: "typography-body-large-medium",
473
- style: {
474
- fontFamily: "Inter",
475
- fontSize: "20px",
476
- fontWeight: 400,
477
- fontStyle: "normal",
478
- lineHeight: 1.2,
479
- letterSpacing: 0,
480
- textTransform: "none"
481
- },
482
- fontPostScriptName: "Inter-SemiBold"
483
- },
484
- {
485
- name: "heading-large",
486
- className: "typography-heading-large",
487
- style: {
488
- fontFamily: "Inter",
489
- fontSize: "20px",
490
- fontWeight: 700,
491
- fontStyle: "normal",
492
- lineHeight: 1.5,
493
- letterSpacing: 0.15,
494
- textTransform: "none"
495
- },
496
- fontPostScriptName: "Inter-Bold"
497
- },
498
- {
499
- name: "heading-xl",
500
- className: "typography-heading-xl",
501
- style: {
502
- fontFamily: "Inter",
503
- fontSize: "24px",
504
- fontWeight: 700,
505
- fontStyle: "normal",
506
- lineHeight: 1.5,
507
- letterSpacing: 0,
508
- textTransform: "none"
509
- },
510
- fontPostScriptName: "Inter-Bold"
511
- },
512
- {
513
- name: "heading-2xl",
514
- className: "typography-heading-2xl",
515
- style: {
516
- fontFamily: "Inter",
517
- fontSize: "34px",
518
- fontWeight: 700,
519
- fontStyle: "normal",
520
- lineHeight: 1.28,
521
- letterSpacing: 0,
522
- textTransform: "none"
523
- },
524
- fontPostScriptName: "Inter-Bold"
525
- },
526
- {
527
- name: "heading-3xl",
528
- className: "typography-heading-3xl",
529
- style: {
530
- fontFamily: "Inter",
531
- fontSize: "48px",
532
- fontWeight: 700,
533
- fontStyle: "normal",
534
- lineHeight: 1.24,
535
- letterSpacing: -0.48,
536
- textTransform: "none"
537
- },
538
- fontPostScriptName: "Inter-Bold"
539
- },
540
- {
541
- name: "heading-4xl",
542
- className: "typography-heading-4xl",
543
- style: {
544
- fontFamily: "Inter",
545
- fontSize: "60px",
546
- fontWeight: 700,
547
- fontStyle: "normal",
548
- lineHeight: 1.2,
549
- letterSpacing: -1.5,
550
- textTransform: "none"
551
- },
552
- fontPostScriptName: "Inter-Bold"
553
- },
554
- {
555
- name: "heading-5xl",
556
- className: "typography-heading-5xl",
557
- style: {
558
- fontFamily: "Inter",
559
- fontSize: "76px",
560
- fontWeight: 700,
561
- fontStyle: "normal",
562
- lineHeight: 1.2,
563
- letterSpacing: -1.98,
564
- textTransform: "none"
565
- },
566
- fontPostScriptName: "Inter-Bold"
567
- }
568
- ]
569
- },
570
- elevations: {
571
- "24dp": "0px 24px 48px rgba(90, 91, 106, 0.08), 0px 12px 24px rgba(58, 58, 68, 0.08)",
572
- "16dp": "0px 16px 32px rgba(90, 91, 106, 0.12), 0px 8px 16px rgba(58, 58, 68, 0.12)",
573
- "8dp": "0px 8px 16px rgba(90, 91, 106, 0.16), 0px 4px 8px rgba(58, 58, 68, 0.16)",
574
- "4dp": "0px 4px 8px rgba(90, 91, 106, 0.20), 0px 2px 4px rgba(58, 58, 68, 0.20)",
575
- "2dp": "0px 2px 4px rgba(90, 91, 106, 0.24), 0px 1px 2px rgba(58, 58, 68, 0.24)"
576
- },
577
- spacing: {
578
- layout01: {
579
- px: 16,
580
- rem: 1
581
- },
582
- layout02: {
583
- px: 24,
584
- rem: 1.5
585
- },
586
- layout03: {
587
- px: 32,
588
- rem: 2
589
- },
590
- layout04: {
591
- px: 48,
592
- rem: 3
593
- },
594
- layout05: {
595
- px: 64,
596
- rem: 4
597
- },
598
- layout06: {
599
- px: 96,
600
- rem: 6
601
- },
602
- layout07: {
603
- px: 160,
604
- rem: 10
605
- },
606
- spacing01: {
607
- px: 2,
608
- rem: 0.125
609
- },
610
- spacing02: {
611
- px: 4,
612
- rem: 0.25
613
- },
614
- spacing03: {
615
- px: 8,
616
- rem: 0.5
617
- },
618
- spacing04: {
619
- px: 12,
620
- rem: 0.75
621
- },
622
- spacing05: {
623
- px: 16,
624
- rem: 1
625
- },
626
- spacing06: {
627
- px: 24,
628
- rem: 1.5
629
- },
630
- spacing07: {
631
- px: 32,
632
- rem: 2
633
- },
634
- spacing08: {
635
- px: 40,
636
- rem: 2.5
637
- },
638
- spacing09: {
639
- px: 48,
640
- rem: 3
641
- }
642
- }
643
- },
644
84
  aiven: {
645
85
  colors: {
646
86
  "error-100": "#aa0000",
@@ -5140,7 +4580,8 @@ __export(system_exports, {
5140
4580
  useScrollTarget: () => useScrollTarget,
5141
4581
  useTableSelect: () => useTableSelect,
5142
4582
  useTableSort: () => useTableSort,
5143
- useToast: () => useToast
4583
+ useToast: () => useToast,
4584
+ useToastContext: () => useToastContext
5144
4585
  });
5145
4586
  module.exports = __toCommonJS(system_exports);
5146
4587
  var import_resolveTheme2 = __toESM(require_resolveTheme());
@@ -5263,7 +4704,8 @@ __export(molecules_exports, {
5263
4704
  useScrollTarget: () => useScrollTarget,
5264
4705
  useTableSelect: () => useTableSelect,
5265
4706
  useTableSort: () => useTableSort,
5266
- useToast: () => useToast
4707
+ useToast: () => useToast,
4708
+ useToastContext: () => useToastContext
5267
4709
  });
5268
4710
 
5269
4711
  // src/atoms/Select/Select.tsx
@@ -6619,15 +6061,25 @@ var Timer = ({ children, duration }) => {
6619
6061
 
6620
6062
  // src/molecules/Toast/Toast.tsx
6621
6063
  var ToastContext = (0, import_react12.createContext)(null);
6622
- var useToastContext = () => {
6064
+ var useToastRootContext = () => {
6623
6065
  const context2 = (0, import_react12.useContext)(ToastContext);
6624
6066
  if (context2 === null) {
6625
6067
  throw new Error("ToastContext was used outside of provider.");
6626
6068
  }
6627
6069
  return context2;
6628
6070
  };
6071
+ var useToastContext = () => {
6072
+ const [_, dispatch] = useToastRootContext();
6073
+ const toast = (toast2) => {
6074
+ dispatch({ type: 0 /* Toast */, toast: toast2 });
6075
+ };
6076
+ const dismiss = (toastId) => {
6077
+ dispatch({ type: 1 /* Dismiss */, toastId });
6078
+ };
6079
+ return [toast, dismiss];
6080
+ };
6629
6081
  var useToast = () => {
6630
- const [_, dispatch] = useToastContext();
6082
+ const [_, dispatch] = useToastRootContext();
6631
6083
  return (toast) => {
6632
6084
  dispatch({ type: 0 /* Toast */, toast });
6633
6085
  };
@@ -6643,8 +6095,13 @@ var toToast = (_a) => {
6643
6095
  };
6644
6096
  var reducer = (state, action) => {
6645
6097
  switch (action.type) {
6646
- case 0 /* Toast */:
6647
- return __spreadProps(__spreadValues({}, state), { toasts: [...state.toasts, toToast(action.toast)] });
6098
+ case 0 /* Toast */: {
6099
+ const newToast = toToast(action.toast);
6100
+ if (state.toasts.some((toast) => toast.id === newToast.id)) {
6101
+ return __spreadValues({}, state);
6102
+ }
6103
+ return __spreadProps(__spreadValues({}, state), { toasts: [...state.toasts, newToast] });
6104
+ }
6648
6105
  case 1 /* Dismiss */:
6649
6106
  return __spreadProps(__spreadValues({}, state), {
6650
6107
  toasts: state.toasts.filter((toast) => toast.id !== action.toastId)
@@ -6691,7 +6148,7 @@ var ToastComponent = ({ toast, onDismiss }) => {
6691
6148
  }, content);
6692
6149
  };
6693
6150
  var ToastConsumer = () => {
6694
- const [state, dispatch] = useToastContext();
6151
+ const [state, dispatch] = useToastRootContext();
6695
6152
  const toastsByPosition = (0, import_groupBy.default)(state.toasts, "position");
6696
6153
  const positions = Object.keys(toastsByPosition);
6697
6154
  const onDismiss = (toastId) => {
@@ -7630,15 +7087,11 @@ Avatar.Skeleton.displayName = "Avatar.Skeleton";
7630
7087
 
7631
7088
  // src/molecules/Badge/Badge.tsx
7632
7089
  var import_react25 = __toESM(require("react"));
7633
- var import_omit2 = __toESM(require("lodash/omit"));
7634
- var isChipBadgeProps = (props) => "dense" in props;
7635
7090
  var createBadge = (type, displayName) => {
7636
7091
  const Component = (props) => {
7637
- var _b;
7638
- const _a = props, { kind = "filled", value, textClassname } = _a, rest = __objRest(_a, ["kind", "value", "textClassname"]);
7092
+ const _a = props, { kind = "filled", value, textClassname, dense = false } = _a, rest = __objRest(_a, ["kind", "value", "textClassname", "dense"]);
7639
7093
  const valueStr = value.toString();
7640
- const dense = isChipBadgeProps(props) ? (_b = props.dense) != null ? _b : false : false;
7641
- return /* @__PURE__ */ import_react25.default.createElement("span", __spreadProps(__spreadValues({}, (0, import_omit2.default)(rest, "dense")), {
7094
+ return /* @__PURE__ */ import_react25.default.createElement("span", __spreadProps(__spreadValues({}, rest), {
7642
7095
  className: classNames(
7643
7096
  tw("inline-block text-center", {
7644
7097
  "rounded-full": type === "default" || type === "chip",
@@ -7685,15 +7138,25 @@ var NotificationBadge = ({
7685
7138
  className: tw("absolute rounded-full w-[6px] h-[6px] bg-error-70")
7686
7139
  }));
7687
7140
  };
7141
+ var DotBadge = ({ dense = false }) => {
7142
+ return /* @__PURE__ */ import_react25.default.createElement("span", {
7143
+ className: tw("rounded-full bg-current", {
7144
+ "w-[6px] h-[6px]": dense,
7145
+ "w-[9px] h-[9px]": !dense
7146
+ })
7147
+ });
7148
+ };
7688
7149
  var Badge = createBadge("default", "Badge");
7689
7150
  Badge.Notification = NotificationBadge;
7690
7151
  Badge.Notification.displayName = "Badge.Notification";
7152
+ Badge.Dot = DotBadge;
7153
+ Badge.Dot.displayName = "Badge.Dot";
7691
7154
  var TabBadge = createBadge("tab", "TabBadge");
7692
7155
  var ChipBadge = createBadge("chip", "ChipBadge");
7693
7156
 
7694
7157
  // src/molecules/Banner/Banner.tsx
7695
7158
  var import_react27 = __toESM(require("react"));
7696
- var import_omit3 = __toESM(require("lodash/omit"));
7159
+ var import_omit2 = __toESM(require("lodash/omit"));
7697
7160
 
7698
7161
  // src/atoms/Banner/Banner.tsx
7699
7162
  var import_react26 = __toESM(require("react"));
@@ -7806,10 +7269,10 @@ var createBanner = (displayName, opts = {}) => {
7806
7269
  layout
7807
7270
  }, !isLink(action) && /* @__PURE__ */ import_react27.default.createElement(Button.Ghost, __spreadValues({
7808
7271
  dense: true
7809
- }, (0, import_omit3.default)(action, "text")), action.text), isLink(action) && /* @__PURE__ */ import_react27.default.createElement(Button.ExternalLink, __spreadValues({
7272
+ }, (0, import_omit2.default)(action, "text")), action.text), isLink(action) && /* @__PURE__ */ import_react27.default.createElement(Button.ExternalLink, __spreadValues({
7810
7273
  dense: true,
7811
7274
  kind: "ghost"
7812
- }, (0, import_omit3.default)(action, "text")), action.text))), (props.layout === "vertical" || props.layout === void 0) && props.image !== void 0 && /* @__PURE__ */ import_react27.default.createElement(Banner.ImageContainer, null, props.image ? /* @__PURE__ */ import_react27.default.createElement("img", {
7275
+ }, (0, import_omit2.default)(action, "text")), action.text))), (props.layout === "vertical" || props.layout === void 0) && props.image !== void 0 && /* @__PURE__ */ import_react27.default.createElement(Banner.ImageContainer, null, props.image ? /* @__PURE__ */ import_react27.default.createElement("img", {
7813
7276
  src: props.image,
7814
7277
  alt: props.imageAlt,
7815
7278
  className: tw("bg-cover object-cover", { "w-full": !props.imageWidth }),
@@ -7890,7 +7353,7 @@ Breadcrumbs.Crumb = Crumb;
7890
7353
  // src/molecules/Card/Card.tsx
7891
7354
  var import_react36 = __toESM(require("react"));
7892
7355
  var import_button2 = require("@react-aria/button");
7893
- var import_omit4 = __toESM(require("lodash/omit"));
7356
+ var import_omit3 = __toESM(require("lodash/omit"));
7894
7357
 
7895
7358
  // src/molecules/Chip/Chip.tsx
7896
7359
  var import_react31 = __toESM(require("react"));
@@ -7989,7 +7452,8 @@ Chip2.Skeleton = ChipSkeleton;
7989
7452
  Chip2.Skeleton.displayName = "Chip.Skeleton";
7990
7453
  var StatusChip = import_react31.default.forwardRef(
7991
7454
  (_a, ref) => {
7992
- var _b = _a, { UNSAFE_icon: icon, text, dense = false, status } = _b, rest = __objRest(_b, ["UNSAFE_icon", "text", "dense", "status"]);
7455
+ var _b = _a, { icon: chipIcon, UNSAFE_icon, text, dense = false, status, badge } = _b, rest = __objRest(_b, ["icon", "UNSAFE_icon", "text", "dense", "status", "badge"]);
7456
+ const icon = chipIcon || UNSAFE_icon;
7993
7457
  return /* @__PURE__ */ import_react31.default.createElement(Chip.Container, __spreadProps(__spreadValues({
7994
7458
  ref,
7995
7459
  role: "status",
@@ -7997,9 +7461,14 @@ var StatusChip = import_react31.default.forwardRef(
7997
7461
  dense
7998
7462
  }, rest), {
7999
7463
  className: getStatusClassNames(status)
7464
+ }), badge === true && /* @__PURE__ */ import_react31.default.createElement(Badge.Dot, {
7465
+ dense
8000
7466
  }), icon && /* @__PURE__ */ import_react31.default.createElement(InlineIcon, {
8001
7467
  icon
8002
- }), text);
7468
+ }), text, badge && typeof badge === "number" && /* @__PURE__ */ import_react31.default.createElement(Badge, {
7469
+ dense,
7470
+ value: badge
7471
+ }));
8003
7472
  }
8004
7473
  );
8005
7474
  var ChipContainer = ({ dense, children }) => /* @__PURE__ */ import_react31.default.createElement("div", {
@@ -8358,10 +7827,10 @@ var Card2 = ({
8358
7827
  color: "grey-70"
8359
7828
  }, children || description)), (action || link) && /* @__PURE__ */ import_react36.default.createElement(Card.Actions, null, action && /* @__PURE__ */ import_react36.default.createElement(Button.Secondary, __spreadValues({
8360
7829
  dense: true
8361
- }, (0, import_omit4.default)(action, "text")), action.text), link && /* @__PURE__ */ import_react36.default.createElement(Button.ExternalLink, __spreadValues({
7830
+ }, (0, import_omit3.default)(action, "text")), action.text), link && /* @__PURE__ */ import_react36.default.createElement(Button.ExternalLink, __spreadValues({
8362
7831
  dense: true,
8363
7832
  kind: "ghost"
8364
- }, (0, import_omit4.default)(link, "text")), link.text)));
7833
+ }, (0, import_omit3.default)(link, "text")), link.text)));
8365
7834
  };
8366
7835
  var CardSkeleton = ({
8367
7836
  chips = true,
@@ -8804,6 +8273,7 @@ var GridComponent = Tailwindify(
8804
8273
  }
8805
8274
  );
8806
8275
  Grid.Item = GridItem;
8276
+ Grid.Item.displayName = "Grid.Item";
8807
8277
 
8808
8278
  // src/atoms/InputGroup/InputGroup.tsx
8809
8279
  var gridColumnStyles = {
@@ -9135,7 +8605,7 @@ var ChoiceChip = (_a) => {
9135
8605
  var import_react51 = __toESM(require("react"));
9136
8606
  var import_overlays5 = require("@react-aria/overlays");
9137
8607
  var import_downshift = require("downshift");
9138
- var import_omit5 = __toESM(require("lodash/omit"));
8608
+ var import_omit4 = __toESM(require("lodash/omit"));
9139
8609
  var import_uniqueId2 = __toESM(require("lodash/uniqueId"));
9140
8610
  var import_match_sorter = require("match-sorter");
9141
8611
 
@@ -9306,9 +8776,11 @@ var ComboboxBase = (_a) => {
9306
8776
  stateReducer: (_, actionChanges) => {
9307
8777
  const { changes, type } = actionChanges;
9308
8778
  switch (type) {
8779
+ case import_downshift.useCombobox.stateChangeTypes.InputKeyDownEnter:
9309
8780
  case import_downshift.useCombobox.stateChangeTypes.InputBlur: {
8781
+ const selectedItem2 = createOption ? createOption == null ? void 0 : createOption(changes.inputValue) : changes.selectedItem;
9310
8782
  return __spreadProps(__spreadValues({}, changes), {
9311
- selectedItem: createOption ? createOption == null ? void 0 : createOption(changes.inputValue) : changes.selectedItem
8783
+ selectedItem: selectedItem2
9312
8784
  });
9313
8785
  }
9314
8786
  }
@@ -9402,7 +8874,7 @@ var Combobox = (_a) => {
9402
8874
  const errorMessageId = (0, import_uniqueId2.default)();
9403
8875
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
9404
8876
  const labelControlProps = getLabelControlProps(props);
9405
- const baseProps = (0, import_omit5.default)(props, Object.keys(labelControlProps));
8877
+ const baseProps = (0, import_omit4.default)(props, Object.keys(labelControlProps));
9406
8878
  return /* @__PURE__ */ import_react51.default.createElement(LabelControl, __spreadProps(__spreadValues({
9407
8879
  id: `${id.current}-label`,
9408
8880
  htmlFor: `${id.current}-input`,
@@ -9455,7 +8927,7 @@ var import_tree = require("@react-stately/tree");
9455
8927
 
9456
8928
  // src/molecules/Input/Input.tsx
9457
8929
  var import_react54 = __toESM(require("react"));
9458
- var import_omit6 = __toESM(require("lodash/omit"));
8930
+ var import_omit5 = __toESM(require("lodash/omit"));
9459
8931
  var import_toString = __toESM(require("lodash/toString"));
9460
8932
  var import_uniqueId3 = __toESM(require("lodash/uniqueId"));
9461
8933
 
@@ -9547,9 +9019,10 @@ var createInput = (displayName, opts = {}) => {
9547
9019
  getCommonInputStyles({ readOnly, valid }),
9548
9020
  props.className
9549
9021
  )
9550
- })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ import_react54.default.createElement(InputAdornment, null, /* @__PURE__ */ import_react54.default.createElement(ResetIcon, {
9022
+ })), opts.canReset && (props.value || ((_a2 = inputRef.current) == null ? void 0 : _a2.value)) && /* @__PURE__ */ import_react54.default.createElement(InputAdornment, null, /* @__PURE__ */ import_react54.default.createElement("button", {
9023
+ "aria-label": "reset search",
9551
9024
  onClick: handleReset
9552
- })), !opts.canReset && endAdornment && /* @__PURE__ */ import_react54.default.createElement(InputAdornment, null, endAdornment));
9025
+ }, /* @__PURE__ */ import_react54.default.createElement(ResetIcon, null))), !opts.canReset && endAdornment && /* @__PURE__ */ import_react54.default.createElement(InputAdornment, null, endAdornment));
9553
9026
  }
9554
9027
  );
9555
9028
  InputComponent.displayName = displayName;
@@ -9568,7 +9041,7 @@ var Input2 = import_react54.default.forwardRef((_a, ref) => {
9568
9041
  const errorMessageId = (0, import_uniqueId3.default)();
9569
9042
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
9570
9043
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
9571
- const baseProps = (0, import_omit6.default)(props, Object.keys(labelControlProps));
9044
+ const baseProps = (0, import_omit5.default)(props, Object.keys(labelControlProps));
9572
9045
  return /* @__PURE__ */ import_react54.default.createElement(LabelControl, __spreadProps(__spreadValues({
9573
9046
  id: `${id.current}-label`,
9574
9047
  htmlFor: id.current,
@@ -9687,12 +9160,13 @@ var filterCollection = (collection, inputValue, filter) => {
9687
9160
  var filterNodes = (nodes, inputValue, filter) => {
9688
9161
  const filteredNode = [];
9689
9162
  for (const node of nodes) {
9163
+ const description = Object.hasOwn(node.props, "description") && typeof node.props.description === "string" ? node.props.description : void 0;
9690
9164
  if (node.type === "section" && node.hasChildNodes) {
9691
9165
  const filtered = filterNodes(node.childNodes, inputValue, filter);
9692
9166
  if ([...filtered].length > 0) {
9693
9167
  filteredNode.push(__spreadProps(__spreadValues({}, node), { childNodes: filtered }));
9694
9168
  }
9695
- } else if (node.type !== "section" && filter(node.textValue, inputValue)) {
9169
+ } else if (node.type !== "section" && (filter(node.textValue, inputValue) || description && filter(description, inputValue))) {
9696
9170
  filteredNode.push(__spreadValues({}, node));
9697
9171
  }
9698
9172
  }
@@ -9806,7 +9280,7 @@ var MenuWrapper = (_a) => {
9806
9280
  const [search, setSearch] = import_react56.default.useState("");
9807
9281
  const filteredCollection = import_react56.default.useMemo(
9808
9282
  () => searchable ? filterCollection(state.collection, search, contains) : state.collection,
9809
- [state.collection, search, contains]
9283
+ [searchable, state.collection, search, contains]
9810
9284
  );
9811
9285
  return /* @__PURE__ */ import_react56.default.createElement(DropdownMenu, {
9812
9286
  minWidth: minWidth !== void 0 ? `${minWidth}px` : void 0,
@@ -9910,7 +9384,7 @@ var import_downshift2 = require("downshift");
9910
9384
  var import_defaults = __toESM(require("lodash/defaults"));
9911
9385
  var import_isArray = __toESM(require("lodash/isArray"));
9912
9386
  var import_isNil = __toESM(require("lodash/isNil"));
9913
- var import_omit7 = __toESM(require("lodash/omit"));
9387
+ var import_omit6 = __toESM(require("lodash/omit"));
9914
9388
  var import_uniqueId4 = __toESM(require("lodash/uniqueId"));
9915
9389
  var hasIconProperty = (val) => {
9916
9390
  var _a;
@@ -10108,7 +9582,7 @@ var Select2 = (_a) => {
10108
9582
  const errorMessageId = (0, import_uniqueId4.default)();
10109
9583
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
10110
9584
  const labelProps = getLabelControlProps(props);
10111
- const baseProps = (0, import_omit7.default)(props, Object.keys(labelProps));
9585
+ const baseProps = (0, import_omit6.default)(props, Object.keys(labelProps));
10112
9586
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
10113
9587
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
10114
9588
  const label = /* @__PURE__ */ import_react57.default.createElement(Label, __spreadValues({
@@ -10878,7 +10352,7 @@ var import_dialog = require("@react-aria/dialog");
10878
10352
  var import_overlays6 = require("@react-aria/overlays");
10879
10353
  var import_utils8 = require("@react-aria/utils");
10880
10354
  var import_overlays7 = require("@react-stately/overlays");
10881
- var import_omit8 = __toESM(require("lodash/omit"));
10355
+ var import_omit7 = __toESM(require("lodash/omit"));
10882
10356
 
10883
10357
  // src/atoms/Dialog/Dialog.tsx
10884
10358
  var import_confirm2 = __toESM(require_confirm());
@@ -11049,9 +10523,9 @@ var DialogWrapper = ({
11049
10523
  id: describedBy
11050
10524
  }, /* @__PURE__ */ import_react72.default.createElement(Typography2.Default, null, children)), /* @__PURE__ */ import_react72.default.createElement(Modal.Footer, null, /* @__PURE__ */ import_react72.default.createElement(Modal.Actions, null, secondaryAction && /* @__PURE__ */ import_react72.default.createElement(Button.Ghost, __spreadValues({
11051
10525
  key: secondaryAction.text
11052
- }, (0, import_omit8.default)(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ import_react72.default.createElement(Button.Secondary, __spreadValues({
10526
+ }, (0, import_omit7.default)(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ import_react72.default.createElement(Button.Secondary, __spreadValues({
11053
10527
  key: primaryAction.text
11054
- }, (0, import_omit8.default)(primaryAction, "text")), primaryAction.text))));
10528
+ }, (0, import_omit7.default)(primaryAction, "text")), primaryAction.text))));
11055
10529
  };
11056
10530
 
11057
10531
  // src/molecules/Divider/Divider.tsx
@@ -11326,15 +10800,15 @@ var import_react79 = __toESM(require("react"));
11326
10800
 
11327
10801
  // src/utils/actions.tsx
11328
10802
  var import_react78 = __toESM(require("react"));
11329
- var import_omit9 = __toESM(require("lodash/omit"));
10803
+ var import_omit8 = __toESM(require("lodash/omit"));
11330
10804
  var renderAction = (kind = "primary", action) => {
11331
10805
  return isLink(action) ? /* @__PURE__ */ import_react78.default.createElement(Button.ExternalLink, __spreadValues({
11332
10806
  key: action.text,
11333
10807
  kind
11334
- }, (0, import_omit9.default)(action, "text")), action.text) : /* @__PURE__ */ import_react78.default.createElement(Button, __spreadValues({
10808
+ }, (0, import_omit8.default)(action, "text")), action.text) : /* @__PURE__ */ import_react78.default.createElement(Button, __spreadValues({
11335
10809
  key: action.text,
11336
10810
  kind
11337
- }, (0, import_omit9.default)(action, "text")), action.text);
10811
+ }, (0, import_omit8.default)(action, "text")), action.text);
11338
10812
  };
11339
10813
 
11340
10814
  // src/molecules/EmptyState/EmptyState.tsx
@@ -11580,7 +11054,7 @@ var import_overlays10 = require("@react-aria/overlays");
11580
11054
  var import_utils11 = require("@react-aria/utils");
11581
11055
  var import_overlays11 = require("@react-stately/overlays");
11582
11056
  var import_castArray = __toESM(require("lodash/castArray"));
11583
- var import_omit10 = __toESM(require("lodash/omit"));
11057
+ var import_omit9 = __toESM(require("lodash/omit"));
11584
11058
 
11585
11059
  // src/molecules/Tabs/Tabs.tsx
11586
11060
  var import_react86 = __toESM(require("react"));
@@ -11938,7 +11412,7 @@ var ModalWrapper = import_react87.default.forwardRef(
11938
11412
  }, action), text);
11939
11413
  }), primaryAction && /* @__PURE__ */ import_react87.default.createElement(Button.Primary, __spreadValues({
11940
11414
  key: primaryAction.text
11941
- }, (0, import_omit10.default)(primaryAction, "text")), primaryAction.text))));
11415
+ }, (0, import_omit9.default)(primaryAction, "text")), primaryAction.text))));
11942
11416
  }
11943
11417
  );
11944
11418
  var ModalTabs = createTabsComponent(
@@ -11956,7 +11430,7 @@ var ModalTabs = createTabsComponent(
11956
11430
  var import_react89 = __toESM(require("react"));
11957
11431
  var import_castArray2 = __toESM(require("lodash/castArray"));
11958
11432
  var import_identity = __toESM(require("lodash/identity"));
11959
- var import_omit11 = __toESM(require("lodash/omit"));
11433
+ var import_omit10 = __toESM(require("lodash/omit"));
11960
11434
  var import_uniqueId5 = __toESM(require("lodash/uniqueId"));
11961
11435
 
11962
11436
  // src/molecules/MultiInput/InputChip.tsx
@@ -12188,7 +11662,7 @@ var MultiInput = (props) => {
12188
11662
  const errorMessageId = (0, import_uniqueId5.default)();
12189
11663
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12190
11664
  const labelControlProps = getLabelControlProps(props);
12191
- const baseProps = (0, import_omit11.default)(props, Object.keys(labelControlProps));
11665
+ const baseProps = (0, import_omit10.default)(props, Object.keys(labelControlProps));
12192
11666
  return /* @__PURE__ */ import_react89.default.createElement(LabelControl, __spreadProps(__spreadValues({
12193
11667
  id: `${id.current}-label`,
12194
11668
  htmlFor: `${id.current}-input`,
@@ -12219,7 +11693,7 @@ var import_overlays12 = require("@react-aria/overlays");
12219
11693
  var import_downshift3 = require("downshift");
12220
11694
  var import_isEqual = __toESM(require("lodash/isEqual"));
12221
11695
  var import_isNil2 = __toESM(require("lodash/isNil"));
12222
- var import_omit12 = __toESM(require("lodash/omit"));
11696
+ var import_omit11 = __toESM(require("lodash/omit"));
12223
11697
  var import_omitBy = __toESM(require("lodash/omitBy"));
12224
11698
  var import_uniqueId6 = __toESM(require("lodash/uniqueId"));
12225
11699
  var import_match_sorter2 = require("match-sorter");
@@ -12447,7 +11921,7 @@ var MultiSelect = (_a) => {
12447
11921
  const errorMessageId = (0, import_uniqueId6.default)();
12448
11922
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12449
11923
  const labelControlProps = getLabelControlProps(props);
12450
- const baseProps = (0, import_omit12.default)(props, Object.keys(labelControlProps));
11924
+ const baseProps = (0, import_omit11.default)(props, Object.keys(labelControlProps));
12451
11925
  return /* @__PURE__ */ import_react90.default.createElement(LabelControl, __spreadProps(__spreadValues({
12452
11926
  id: `${id.current}-label`,
12453
11927
  htmlFor: `${id.current}-input`,
@@ -12468,7 +11942,7 @@ MultiSelect.Skeleton.displayName = "MultiSelect.Skeleton";
12468
11942
 
12469
11943
  // src/molecules/NativeSelect/NativeSelect.tsx
12470
11944
  var import_react91 = __toESM(require("react"));
12471
- var import_omit13 = __toESM(require("lodash/omit"));
11945
+ var import_omit12 = __toESM(require("lodash/omit"));
12472
11946
  var import_uniqueId7 = __toESM(require("lodash/uniqueId"));
12473
11947
  var import_caretDown2 = __toESM(require_caretDown());
12474
11948
  var NativeSelectBase = import_react91.default.forwardRef(
@@ -12533,7 +12007,7 @@ var NativeSelect = import_react91.default.forwardRef(
12533
12007
  const errorMessageId = (0, import_uniqueId7.default)();
12534
12008
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
12535
12009
  const _b2 = getLabelControlProps(props), { "data-testid": dataTestId } = _b2, labelControlProps = __objRest(_b2, ["data-testid"]);
12536
- const baseProps = (0, import_omit13.default)(props, Object.keys(labelControlProps));
12010
+ const baseProps = (0, import_omit12.default)(props, Object.keys(labelControlProps));
12537
12011
  return /* @__PURE__ */ import_react91.default.createElement(LabelControl, __spreadProps(__spreadValues({
12538
12012
  id: `${id.current}-label`,
12539
12013
  htmlFor: id.current,
@@ -12777,7 +12251,7 @@ PageHeader2.SubHeader.displayName = "PageHeader.SubHeader";
12777
12251
 
12778
12252
  // src/molecules/PopoverDialog/PopoverDialog.tsx
12779
12253
  var import_react97 = __toESM(require("react"));
12780
- var import_omit14 = __toESM(require("lodash/omit"));
12254
+ var import_omit13 = __toESM(require("lodash/omit"));
12781
12255
 
12782
12256
  // src/atoms/PopoverDialog/PopoverDialog.tsx
12783
12257
  var import_react96 = __toESM(require("react"));
@@ -12832,11 +12306,11 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
12832
12306
  kind: "secondary-ghost",
12833
12307
  key: secondaryAction.text,
12834
12308
  dense: true
12835
- }, (0, import_omit14.default)(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ import_react97.default.createElement(Popover2.Button, __spreadValues({
12309
+ }, (0, import_omit13.default)(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ import_react97.default.createElement(Popover2.Button, __spreadValues({
12836
12310
  kind: "ghost",
12837
12311
  key: primaryAction.text,
12838
12312
  dense: true
12839
- }, (0, import_omit14.default)(primaryAction, "text")), primaryAction.text))));
12313
+ }, (0, import_omit13.default)(primaryAction, "text")), primaryAction.text))));
12840
12314
  }
12841
12315
  return child;
12842
12316
  };
@@ -13655,7 +13129,7 @@ SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
13655
13129
 
13656
13130
  // src/molecules/Textarea/Textarea.tsx
13657
13131
  var import_react112 = __toESM(require("react"));
13658
- var import_omit15 = __toESM(require("lodash/omit"));
13132
+ var import_omit14 = __toESM(require("lodash/omit"));
13659
13133
  var import_toString2 = __toESM(require("lodash/toString"));
13660
13134
  var import_uniqueId10 = __toESM(require("lodash/uniqueId"));
13661
13135
  var TextareaBase = import_react112.default.forwardRef(
@@ -13679,7 +13153,7 @@ var Textarea = import_react112.default.forwardRef((props, ref) => {
13679
13153
  const errorMessageId = (0, import_uniqueId10.default)();
13680
13154
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
13681
13155
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
13682
- const baseProps = (0, import_omit15.default)(props, Object.keys(labelControlProps));
13156
+ const baseProps = (0, import_omit14.default)(props, Object.keys(labelControlProps));
13683
13157
  return /* @__PURE__ */ import_react112.default.createElement(LabelControl, __spreadProps(__spreadValues({
13684
13158
  id: `${id.current}-label`,
13685
13159
  htmlFor: id.current,
@@ -14099,5 +13573,6 @@ var system_default = __spreadProps(__spreadValues({}, molecules_exports), {
14099
13573
  useScrollTarget,
14100
13574
  useTableSelect,
14101
13575
  useTableSort,
14102
- useToast
13576
+ useToast,
13577
+ useToastContext
14103
13578
  });