@aivenio/aquarium 4.0.1 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/atoms.cjs +315 -172
- package/dist/atoms.mjs +322 -171
- package/dist/src/atoms/DropdownMenu/DropdownMenu.d.ts +155 -32
- package/dist/src/atoms/DropdownMenu/DropdownMenu.js +64 -34
- package/dist/src/atoms/Filter/Filter.d.ts +39 -0
- package/dist/src/atoms/Filter/Filter.js +127 -0
- package/dist/src/atoms/index.d.ts +1 -0
- package/dist/src/atoms/index.js +2 -1
- package/dist/src/atoms/utils/index.d.ts +2 -2
- package/dist/src/atoms/utils/index.js +2 -2
- package/dist/src/molecules/Card/Card.d.ts +7 -3
- package/dist/src/molecules/Card/Card.js +6 -5
- package/dist/src/molecules/DataList/DataList.js +16 -3
- package/dist/src/molecules/DataList/DataListGroup.js +16 -3
- package/dist/src/molecules/DropdownMenu/DropdownMenu.d.ts +14 -14
- package/dist/src/molecules/DropdownMenu/DropdownMenu.js +48 -172
- package/dist/src/molecules/DropdownMenu/SearchField.d.ts +5 -0
- package/dist/src/molecules/DropdownMenu/SearchField.js +13 -0
- package/dist/src/molecules/Popover/Popover.js +2 -1
- package/dist/styles.css +62 -9
- package/dist/system.cjs +761 -927
- package/dist/system.mjs +673 -824
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +1 -1
package/dist/atoms.mjs
CHANGED
@@ -10291,6 +10291,15 @@ var Dialog = (props) => {
|
|
10291
10291
|
|
10292
10292
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
10293
10293
|
import React28 from "react";
|
10294
|
+
import {
|
10295
|
+
Collection as AriaCollection,
|
10296
|
+
composeRenderProps,
|
10297
|
+
Header as AriaHeader,
|
10298
|
+
Menu as AriaMenu,
|
10299
|
+
MenuItem as AriaMenuItem,
|
10300
|
+
MenuSection as AriaMenuSection
|
10301
|
+
} from "react-aria-components";
|
10302
|
+
import { tv as tv4 } from "tailwind-variants";
|
10294
10303
|
|
10295
10304
|
// src/molecules/Badge/Badge.tsx
|
10296
10305
|
import React27 from "react";
|
@@ -10423,80 +10432,218 @@ var ChipBadge = createBadge("chip", "ChipBadge");
|
|
10423
10432
|
|
10424
10433
|
// src/atoms/DropdownMenu/DropdownMenu.tsx
|
10425
10434
|
var import_tick3 = __toESM(require_tick());
|
10426
|
-
var
|
10427
|
-
|
10428
|
-
|
10435
|
+
var dropdownMenuStyles = tv4({
|
10436
|
+
base: "bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
|
10437
|
+
});
|
10438
|
+
var DropdownMenu = ({ className, children, ...props }) => {
|
10439
|
+
return /* @__PURE__ */ React28.createElement(AriaMenu, { className: dropdownMenuStyles({ className: ["Aquarium-DropdownMenu", className] }), ...props }, children);
|
10440
|
+
};
|
10441
|
+
var MenuContainer = ({ minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, children }) => /* @__PURE__ */ React28.createElement("div", { style: { minHeight, maxHeight, minWidth, maxWidth }, className: tw("overflow-x-hidden flex flex-col") }, children);
|
10442
|
+
DropdownMenu.MenuContainer = MenuContainer;
|
10443
|
+
var ScrollableContentContainer = ({ children }) => /* @__PURE__ */ React28.createElement("div", { className: tw("p-3 overflow-y-auto overflow-x-hidden") }, children);
|
10444
|
+
DropdownMenu.ScrollableContentContainer = ScrollableContentContainer;
|
10445
|
+
var dropdownMenuGroupStyles = tv4({
|
10446
|
+
slots: {
|
10447
|
+
base: [
|
10448
|
+
'[&:not(:first-child)]:before:content-[""] [&:not(:first-child)]:before:block',
|
10449
|
+
"[&:not(:first-child)]:before:h-[1px] [&:not(:first-child)]:before:bg-default [&:not(:first-child)]:before:m-3"
|
10450
|
+
],
|
10451
|
+
title: "p-3 text-inactive uppercase cursor-default typography-caption"
|
10452
|
+
}
|
10453
|
+
});
|
10454
|
+
var Group = ({ className, title, titleProps, children, ...props }) => {
|
10455
|
+
const styles = dropdownMenuGroupStyles();
|
10456
|
+
return /* @__PURE__ */ React28.createElement(AriaMenuSection, { className: styles.base({ className: "Aquarium-DropdownMenu.Group" }), ...props }, title && /* @__PURE__ */ React28.createElement(AriaHeader, { className: styles.title(), ...titleProps }, title), /* @__PURE__ */ React28.createElement(AriaCollection, null, children));
|
10457
|
+
};
|
10458
|
+
DropdownMenu.Group = Group;
|
10459
|
+
var dropdownMenuItemStyles = tv4({
|
10460
|
+
base: "group flex items-center gap-x-3 p-3 outline-none cursor-pointer",
|
10461
|
+
variants: {
|
10462
|
+
isDisabled: {
|
10463
|
+
true: "text-inactive cursor-not-allowed"
|
10464
|
+
},
|
10465
|
+
isFocused: {
|
10466
|
+
true: "bg-muted"
|
10467
|
+
},
|
10468
|
+
kind: {
|
10469
|
+
action: "",
|
10470
|
+
danger: "",
|
10471
|
+
default: ""
|
10472
|
+
}
|
10473
|
+
},
|
10474
|
+
compoundVariants: [
|
10429
10475
|
{
|
10430
|
-
|
10431
|
-
|
10432
|
-
className:
|
10433
|
-
className,
|
10434
|
-
"Aquarium-DropdownMenu.Menu bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
|
10435
|
-
),
|
10436
|
-
...props
|
10476
|
+
kind: "action",
|
10477
|
+
disabled: false,
|
10478
|
+
className: "text-primary-intense"
|
10437
10479
|
},
|
10438
|
-
|
10439
|
-
|
10440
|
-
|
10441
|
-
|
10442
|
-
|
10443
|
-
|
10444
|
-
|
10480
|
+
{
|
10481
|
+
kind: "danger",
|
10482
|
+
disabled: false,
|
10483
|
+
className: "text-danger-default"
|
10484
|
+
}
|
10485
|
+
]
|
10486
|
+
});
|
10487
|
+
var Item2 = ({
|
10488
|
+
kind = "default",
|
10489
|
+
className,
|
10490
|
+
icon,
|
10491
|
+
description,
|
10492
|
+
showNotification = false,
|
10493
|
+
disabled,
|
10494
|
+
...props
|
10495
|
+
}) => /* @__PURE__ */ React28.createElement(
|
10496
|
+
AriaMenuItem,
|
10497
|
+
{
|
10498
|
+
className: (values) => dropdownMenuItemStyles({ ...values, kind, className: ["Aquarium-DropdownMenu.Item", className] }),
|
10499
|
+
isDisabled: disabled,
|
10500
|
+
...props
|
10501
|
+
},
|
10502
|
+
composeRenderProps(props.children, (children, { selectionMode, isSelected, isDisabled }) => /* @__PURE__ */ React28.createElement(React28.Fragment, null, icon && showNotification && /* @__PURE__ */ React28.createElement(Badge.Notification, null, /* @__PURE__ */ React28.createElement(InlineIcon2, { icon })), icon && !showNotification && /* @__PURE__ */ React28.createElement(InlineIcon2, { icon }), /* @__PURE__ */ React28.createElement("span", { className: tw("grow") }, children, description && /* @__PURE__ */ React28.createElement(Typography2.Caption, { color: isDisabled ? "inactive" : "muted" }, description)), selectionMode !== "none" && isSelected && /* @__PURE__ */ React28.createElement(InlineIcon2, { icon: import_tick3.default })))
|
10445
10503
|
);
|
10446
|
-
DropdownMenu.
|
10447
|
-
var
|
10448
|
-
|
10449
|
-
|
10504
|
+
DropdownMenu.Item = Item2;
|
10505
|
+
var EmptyStateContainer = ({ className, children, ...props }) => /* @__PURE__ */ React28.createElement("div", { className: classNames(tw("border border-dashed border-default p-3"), className), ...props }, children);
|
10506
|
+
DropdownMenu.EmptyStateContainer = EmptyStateContainer;
|
10507
|
+
|
10508
|
+
// src/atoms/Filter/Filter.tsx
|
10509
|
+
import React29 from "react";
|
10510
|
+
import {
|
10511
|
+
Button as AriaButton,
|
10512
|
+
DatePickerStateContext as AriaDatePickerStateContext,
|
10513
|
+
DateRangePickerStateContext as AriaDateRangePickerStateContext,
|
10514
|
+
Group as AriaGroup
|
10515
|
+
} from "react-aria-components";
|
10516
|
+
import { tv as tv5 } from "tailwind-variants";
|
10517
|
+
var import_cross3 = __toESM(require_cross());
|
10518
|
+
var DATE_FORMAT_OPTIONS = {
|
10519
|
+
locale: "en-GB",
|
10520
|
+
options: { day: "numeric", month: "numeric", year: "numeric" }
|
10521
|
+
};
|
10522
|
+
var filterWrapper = tv5({
|
10523
|
+
base: "rounded-full inline-flex items-center pressed:border-info-default justify-between outline-0 outline-none border border-dashed border-default text-default bg-transparent",
|
10524
|
+
variants: {
|
10525
|
+
isHovered: {
|
10526
|
+
true: "hover:bg-muted"
|
10527
|
+
},
|
10528
|
+
isFocusWithin: {
|
10529
|
+
true: "border-solid border-info-default"
|
10530
|
+
},
|
10531
|
+
isInvalid: {
|
10532
|
+
true: "border-solid border-danger-default"
|
10533
|
+
},
|
10534
|
+
hasValue: {
|
10535
|
+
true: "border-solid"
|
10536
|
+
}
|
10537
|
+
}
|
10538
|
+
});
|
10539
|
+
var FilterTrigger = ({
|
10540
|
+
labelText,
|
10541
|
+
icon,
|
10542
|
+
badge,
|
10543
|
+
onClear,
|
10544
|
+
onClick,
|
10545
|
+
value,
|
10546
|
+
// children,
|
10547
|
+
error: error2 = false,
|
10548
|
+
...props
|
10549
|
+
}) => {
|
10550
|
+
const ariaDatePickerState = React29.useContext(AriaDatePickerStateContext);
|
10551
|
+
const ariaDateRangePickerState = React29.useContext(AriaDateRangePickerStateContext);
|
10552
|
+
const isUsedInsideDatePicker = !!ariaDatePickerState?.value;
|
10553
|
+
const isUsedInsideDateRangePicker = !!ariaDateRangePickerState?.value.start && !!ariaDateRangePickerState.value.end;
|
10554
|
+
const onClearDatePickerRelated = () => {
|
10555
|
+
if (isUsedInsideDatePicker) {
|
10556
|
+
ariaDatePickerState.setValue(null);
|
10557
|
+
} else if (isUsedInsideDateRangePicker) {
|
10558
|
+
ariaDateRangePickerState.setValue(null);
|
10559
|
+
}
|
10560
|
+
};
|
10561
|
+
const hasValue = !!value || isUsedInsideDatePicker || isUsedInsideDateRangePicker;
|
10562
|
+
const showClearButton = !!onClear && !!value || isUsedInsideDatePicker || isUsedInsideDateRangePicker;
|
10563
|
+
return /* @__PURE__ */ React29.createElement(
|
10564
|
+
AriaGroup,
|
10450
10565
|
{
|
10451
|
-
|
10452
|
-
|
10453
|
-
|
10454
|
-
),
|
10455
|
-
...titleProps
|
10566
|
+
...props,
|
10567
|
+
isInvalid: error2,
|
10568
|
+
className: (renderProps) => filterWrapper({ ...renderProps, hasValue: hasValue || !!badge })
|
10456
10569
|
},
|
10457
|
-
|
10458
|
-
|
10459
|
-
|
10460
|
-
|
10461
|
-
|
10462
|
-
|
10463
|
-
|
10570
|
+
/* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement(
|
10571
|
+
AriaButton,
|
10572
|
+
{
|
10573
|
+
onPress: () => {
|
10574
|
+
onClick && onClick();
|
10575
|
+
},
|
10576
|
+
className: tw("outline-0 outline-none flex items-center py-3 cursor-pointer", {
|
10577
|
+
"pl-4 pr-[6px]": showClearButton,
|
10578
|
+
// keep padding right the same as padding left of <FilterClearButton>
|
10579
|
+
"px-4": !showClearButton
|
10580
|
+
})
|
10581
|
+
},
|
10582
|
+
/* @__PURE__ */ React29.createElement("div", { className: tw("flex items-center gap-3 divide-x divide-grey-20") }, /* @__PURE__ */ React29.createElement("div", { className: tw("flex items-center gap-3") }, /* @__PURE__ */ React29.createElement("div", { className: tw("flex items-center gap-2") }, /* @__PURE__ */ React29.createElement(InlineIcon2, { icon }), /* @__PURE__ */ React29.createElement(Typography2.Small, null, labelText)), badge && /* @__PURE__ */ React29.createElement(Typography2, { color: "primary-active", className: tw("flex items-center") }, /* @__PURE__ */ React29.createElement(Badge, { dense: true, value: badge }))), hasValue && /* @__PURE__ */ React29.createElement("div", { className: "pl-3" }, /* @__PURE__ */ React29.createElement(
|
10583
|
+
Typography2.Small,
|
10584
|
+
{
|
10585
|
+
className: tw("truncate max-w-[233px]"),
|
10586
|
+
color: error2 ? "danger-intense" : "primary-active"
|
10587
|
+
},
|
10588
|
+
value,
|
10589
|
+
isUsedInsideDatePicker && /* @__PURE__ */ React29.createElement(DateDisplay, { state: ariaDatePickerState }),
|
10590
|
+
isUsedInsideDateRangePicker && /* @__PURE__ */ React29.createElement(DateDisplay, { state: ariaDateRangePickerState })
|
10591
|
+
)))
|
10592
|
+
), showClearButton && /* @__PURE__ */ React29.createElement(
|
10593
|
+
FilterClearButton,
|
10594
|
+
{
|
10595
|
+
onClear: () => {
|
10596
|
+
onClearDatePickerRelated();
|
10597
|
+
onClear?.();
|
10598
|
+
}
|
10599
|
+
}
|
10600
|
+
))
|
10601
|
+
);
|
10602
|
+
};
|
10603
|
+
var isDateRangePickerState = (state) => {
|
10604
|
+
return "value" in state && state.value !== null && "start" in state.value;
|
10605
|
+
};
|
10606
|
+
var DateDisplay = ({ state }) => {
|
10607
|
+
const primary = isDateRangePickerState(state) ? state.formatValue(DATE_FORMAT_OPTIONS.locale, DATE_FORMAT_OPTIONS.options)?.start : state.formatValue(DATE_FORMAT_OPTIONS.locale, DATE_FORMAT_OPTIONS.options);
|
10608
|
+
const secondary = isDateRangePickerState(state) ? state.formatValue(DATE_FORMAT_OPTIONS.locale, DATE_FORMAT_OPTIONS.options)?.end : void 0;
|
10609
|
+
return /* @__PURE__ */ React29.createElement(Box.Flex, { gap: "2" }, /* @__PURE__ */ React29.createElement("span", null, primary), secondary && /* @__PURE__ */ React29.createElement(React29.Fragment, null, /* @__PURE__ */ React29.createElement("span", { "aria-hidden": true, className: tw("text-muted") }, "-"), /* @__PURE__ */ React29.createElement("span", null, secondary)));
|
10610
|
+
};
|
10611
|
+
var FilterClearButton = ({ onClear }) => (
|
10612
|
+
// using a native HTML <button> here instead of <Button slot={null} /> from react-aria because react-aria <DialogTrigger> doesn't support it as a child. If we used <Button slot={null}>, the popover would open simultaneously with the clear callback, which is unintended behavior. Interestingly, this issue doesn't occur in react-aria's <DatePicker>, but for consistency and to avoid conflicts here, we're sticking with a plain button.
|
10613
|
+
/* @__PURE__ */ React29.createElement(
|
10614
|
+
"button",
|
10464
10615
|
{
|
10465
|
-
|
10466
|
-
|
10467
|
-
|
10468
|
-
|
10469
|
-
|
10470
|
-
|
10471
|
-
|
10472
|
-
|
10473
|
-
|
10616
|
+
"aria-label": "Clear filter",
|
10617
|
+
onClick: (e) => {
|
10618
|
+
e.preventDefault();
|
10619
|
+
e.stopPropagation();
|
10620
|
+
const previousButton = e.currentTarget.previousElementSibling;
|
10621
|
+
if (previousButton instanceof HTMLElement) {
|
10622
|
+
previousButton.focus();
|
10623
|
+
}
|
10624
|
+
onClear();
|
10625
|
+
},
|
10626
|
+
className: tw(
|
10627
|
+
"py-[10px] pl-[6px] pr-4 inline-flex items-center hover:bg-default focus:bg-default outline-0 outline-none rounded-r-full"
|
10628
|
+
// keep padding left the same as padding right of its button sibling.
|
10629
|
+
)
|
10474
10630
|
},
|
10475
|
-
|
10476
|
-
icon && !showNotification && /* @__PURE__ */ React28.createElement(InlineIcon2, { icon }),
|
10477
|
-
/* @__PURE__ */ React28.createElement("span", { className: tw("grow") }, children),
|
10478
|
-
selected && /* @__PURE__ */ React28.createElement(InlineIcon2, { icon: import_tick3.default })
|
10631
|
+
/* @__PURE__ */ React29.createElement(InlineIcon2, { icon: import_cross3.default })
|
10479
10632
|
)
|
10480
10633
|
);
|
10481
|
-
|
10482
|
-
|
10483
|
-
|
10484
|
-
var Separator = ({ className, ...props }) => {
|
10485
|
-
return /* @__PURE__ */ React28.createElement("li", { ...props, className: classNames(className, tw("m-3 block bg-default h-[1px]")) });
|
10486
|
-
};
|
10487
|
-
DropdownMenu.Separator = Separator;
|
10488
|
-
var EmptyStateContainer = ({ className, children, ...props }) => /* @__PURE__ */ React28.createElement("div", { className: classNames(tw("border border-dashed border-default p-3"), className), ...props }, children);
|
10489
|
-
DropdownMenu.EmptyStateContainer = EmptyStateContainer;
|
10634
|
+
var Filter = () => null;
|
10635
|
+
FilterTrigger.displayName = "Filter.Trigger";
|
10636
|
+
Filter.Trigger = FilterTrigger;
|
10490
10637
|
|
10491
10638
|
// src/atoms/InputGroup/InputGroup.tsx
|
10492
|
-
import
|
10639
|
+
import React32 from "react";
|
10493
10640
|
|
10494
10641
|
// src/molecules/Grid/Grid.tsx
|
10495
|
-
import
|
10642
|
+
import React31 from "react";
|
10496
10643
|
import { isEmpty, mapValues, pick } from "lodash-es";
|
10497
10644
|
|
10498
10645
|
// src/molecules/Tailwindify/Tailwindify.tsx
|
10499
|
-
import
|
10646
|
+
import React30 from "react";
|
10500
10647
|
import { get as get2, isUndefined as isUndefined7 } from "lodash-es";
|
10501
10648
|
function Tailwindify(Component) {
|
10502
10649
|
return ({
|
@@ -10557,8 +10704,8 @@ function Tailwindify(Component) {
|
|
10557
10704
|
...otherProps,
|
10558
10705
|
style: finalStyle
|
10559
10706
|
};
|
10560
|
-
const childrenWithProps =
|
10561
|
-
if (!
|
10707
|
+
const childrenWithProps = React30.Children.map(children, (child, index) => {
|
10708
|
+
if (!React30.isValidElement(child)) {
|
10562
10709
|
return child;
|
10563
10710
|
}
|
10564
10711
|
const isLastChild = index === children.length - 1;
|
@@ -10579,9 +10726,9 @@ function Tailwindify(Component) {
|
|
10579
10726
|
}
|
10580
10727
|
const childStyle = get2(child, ["props", "style"], {});
|
10581
10728
|
const newProps = { ...childProps, style: { ...childStyle, ...additionalStyle } };
|
10582
|
-
return
|
10729
|
+
return React30.cloneElement(child, newProps);
|
10583
10730
|
});
|
10584
|
-
return /* @__PURE__ */
|
10731
|
+
return /* @__PURE__ */ React30.createElement(Component, { className, ...componentProps }, childrenWithProps);
|
10585
10732
|
};
|
10586
10733
|
}
|
10587
10734
|
|
@@ -10620,7 +10767,7 @@ var GridItem = Tailwindify(
|
|
10620
10767
|
gridRowEnd: rowEnd
|
10621
10768
|
});
|
10622
10769
|
const HtmlElement = htmlTag;
|
10623
|
-
return /* @__PURE__ */
|
10770
|
+
return /* @__PURE__ */ React31.createElement(
|
10624
10771
|
HtmlElement,
|
10625
10772
|
{
|
10626
10773
|
style: { ...hookStyle, ...style },
|
@@ -10632,7 +10779,7 @@ var GridItem = Tailwindify(
|
|
10632
10779
|
}
|
10633
10780
|
);
|
10634
10781
|
var Grid = (props) => {
|
10635
|
-
return /* @__PURE__ */
|
10782
|
+
return /* @__PURE__ */ React31.createElement(GridComponent, { ...props });
|
10636
10783
|
};
|
10637
10784
|
var GridComponent = Tailwindify(
|
10638
10785
|
({
|
@@ -10687,7 +10834,7 @@ var GridComponent = Tailwindify(
|
|
10687
10834
|
gridRowEnd: rowEnd
|
10688
10835
|
});
|
10689
10836
|
const HtmlElement = htmlTag;
|
10690
|
-
return /* @__PURE__ */
|
10837
|
+
return /* @__PURE__ */ React31.createElement(
|
10691
10838
|
HtmlElement,
|
10692
10839
|
{
|
10693
10840
|
style: { ...hookStyle, ...style },
|
@@ -10710,7 +10857,7 @@ var gridColumnStyles = {
|
|
10710
10857
|
"auto": "auto-cols-fr"
|
10711
10858
|
};
|
10712
10859
|
var InputGroup = ({ cols = "1", children, ...rest }) => {
|
10713
|
-
return /* @__PURE__ */
|
10860
|
+
return /* @__PURE__ */ React32.createElement(
|
10714
10861
|
Grid,
|
10715
10862
|
{
|
10716
10863
|
...rest,
|
@@ -10725,9 +10872,9 @@ var InputGroup = ({ cols = "1", children, ...rest }) => {
|
|
10725
10872
|
};
|
10726
10873
|
|
10727
10874
|
// src/atoms/Link/Link.tsx
|
10728
|
-
import
|
10729
|
-
import { tv as
|
10730
|
-
var linkStyle =
|
10875
|
+
import React33 from "react";
|
10876
|
+
import { tv as tv6 } from "tailwind-variants";
|
10877
|
+
var linkStyle = tv6({
|
10731
10878
|
extend: interactiveTextStyles,
|
10732
10879
|
base: ["no-underline hover:underline inline-flex gap-3 items-center", focusRingStyle()]
|
10733
10880
|
});
|
@@ -10737,13 +10884,13 @@ var LinkButton = ({
|
|
10737
10884
|
kind = "primary",
|
10738
10885
|
dense,
|
10739
10886
|
...props
|
10740
|
-
}) => /* @__PURE__ */
|
10741
|
-
var Link = ({ children, className, ...props }) => /* @__PURE__ */
|
10887
|
+
}) => /* @__PURE__ */ React33.createElement("a", { className: classNames(className, buttonClasses({ kind, dense })), ...props }, children);
|
10888
|
+
var Link = ({ children, className, ...props }) => /* @__PURE__ */ React33.createElement("a", { className: classNames(className, linkStyle()), ...props }, children);
|
10742
10889
|
|
10743
10890
|
// src/atoms/Modal/Modal.tsx
|
10744
|
-
import
|
10745
|
-
import { tv as
|
10746
|
-
var modalStyles =
|
10891
|
+
import React34 from "react";
|
10892
|
+
import { tv as tv7 } from "tailwind-variants";
|
10893
|
+
var modalStyles = tv7({
|
10747
10894
|
slots: {
|
10748
10895
|
overlay: "inset-0 overflow-y-auto z-modal fixed",
|
10749
10896
|
backdrop: "-z-10 fixed min-w-full min-h-full bg-body-intense opacity-70",
|
@@ -10846,67 +10993,67 @@ var Modal = ({
|
|
10846
10993
|
...rest
|
10847
10994
|
}) => {
|
10848
10995
|
const { overlay } = modalStyles({ kind });
|
10849
|
-
return open ? /* @__PURE__ */
|
10996
|
+
return open ? /* @__PURE__ */ React34.createElement("div", { ...rest, className: overlay({ className }) }, children) : null;
|
10850
10997
|
};
|
10851
10998
|
Modal.BackDrop = ({ className, ...rest }) => {
|
10852
10999
|
const { backdrop } = modalStyles();
|
10853
|
-
return /* @__PURE__ */
|
11000
|
+
return /* @__PURE__ */ React34.createElement("div", { ...rest, className: backdrop({ className }) });
|
10854
11001
|
};
|
10855
|
-
Modal.Dialog =
|
11002
|
+
Modal.Dialog = React34.forwardRef(
|
10856
11003
|
({ kind = "dialog", children, className, size = "md", ...rest }, ref) => {
|
10857
11004
|
const { dialog } = modalStyles({ kind, size });
|
10858
|
-
return /* @__PURE__ */
|
11005
|
+
return /* @__PURE__ */ React34.createElement("div", { ref, "aria-modal": "true", ...rest, className: dialog({ className }) }, children);
|
10859
11006
|
}
|
10860
11007
|
);
|
10861
11008
|
Modal.Header = ({ kind = "dialog", size = "md", children, className, ...rest }) => {
|
10862
11009
|
const { header } = modalStyles({ kind, size });
|
10863
|
-
return /* @__PURE__ */
|
11010
|
+
return /* @__PURE__ */ React34.createElement("div", { ...rest, className: header({ className }) }, children);
|
10864
11011
|
};
|
10865
11012
|
Modal.HeaderImage = ({ backgroundImage, className, ...rest }) => {
|
10866
11013
|
const { headerImage } = modalStyles({ backgroundImage: Boolean(backgroundImage) });
|
10867
|
-
return backgroundImage ? /* @__PURE__ */
|
11014
|
+
return backgroundImage ? /* @__PURE__ */ React34.createElement("img", { "aria-hidden": true, src: backgroundImage, ...rest, className: headerImage({ className }) }) : /* @__PURE__ */ React34.createElement("div", { className: headerImage({ className }) });
|
10868
11015
|
};
|
10869
11016
|
Modal.CloseButtonContainer = ({ className, ...rest }) => {
|
10870
11017
|
const { closeButtonContainer } = modalStyles();
|
10871
|
-
return /* @__PURE__ */
|
11018
|
+
return /* @__PURE__ */ React34.createElement("div", { ...rest, className: closeButtonContainer({ className }) });
|
10872
11019
|
};
|
10873
11020
|
Modal.Title = ({ kind = "dialog", children, className, ...rest }) => {
|
10874
11021
|
const { title } = modalStyles({ kind });
|
10875
|
-
return /* @__PURE__ */
|
11022
|
+
return /* @__PURE__ */ React34.createElement(Typography, { htmlTag: "h2", variant: "subheading", color: "intense", className: title({ className }), ...rest }, children);
|
10876
11023
|
};
|
10877
|
-
Modal.Subtitle = ({ children, ...rest }) => /* @__PURE__ */
|
11024
|
+
Modal.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React34.createElement(Typography, { variant: "small", color: "default", ...rest }, children);
|
10878
11025
|
Modal.TitleContainer = ({ children, className, ...rest }) => {
|
10879
11026
|
const { titleContainer } = modalStyles();
|
10880
|
-
return /* @__PURE__ */
|
11027
|
+
return /* @__PURE__ */ React34.createElement("div", { ...rest, className: titleContainer({ className }) }, children);
|
10881
11028
|
};
|
10882
11029
|
Modal.Body = ({ children, className, noFooter = false, maxHeight, style, ...rest }) => {
|
10883
11030
|
const { body } = modalStyles();
|
10884
|
-
return /* @__PURE__ */
|
11031
|
+
return /* @__PURE__ */ React34.createElement("div", { ...rest, className: body({ noFooter, className }), style: { maxHeight, ...style } }, children);
|
10885
11032
|
};
|
10886
11033
|
Modal.Footer = ({ children, className, ...rest }) => {
|
10887
11034
|
const { footer } = modalStyles();
|
10888
|
-
return /* @__PURE__ */
|
11035
|
+
return /* @__PURE__ */ React34.createElement("div", { ...rest, className: footer({ className }) }, children);
|
10889
11036
|
};
|
10890
11037
|
Modal.Actions = ({ children, className, ...rest }) => {
|
10891
11038
|
const { actions } = modalStyles();
|
10892
|
-
return /* @__PURE__ */
|
11039
|
+
return /* @__PURE__ */ React34.createElement("div", { ...rest, className: actions({ className }) }, children);
|
10893
11040
|
};
|
10894
11041
|
|
10895
11042
|
// src/atoms/Navigation/Navigation.tsx
|
10896
|
-
import
|
11043
|
+
import React35 from "react";
|
10897
11044
|
var Navigation = ({
|
10898
11045
|
className,
|
10899
11046
|
children,
|
10900
11047
|
"aria-label": ariaLabel,
|
10901
11048
|
...rest
|
10902
|
-
}) => /* @__PURE__ */
|
10903
|
-
var Header = ({ className, ...rest }) => /* @__PURE__ */
|
10904
|
-
var Title2 = ({ className, ...props }) => /* @__PURE__ */
|
10905
|
-
var Subtitle = ({ className, ...props }) => /* @__PURE__ */
|
10906
|
-
var Footer = ({ className, ...rest }) => /* @__PURE__ */
|
10907
|
-
var Section = ({ title, className, ...rest }) => /* @__PURE__ */
|
10908
|
-
var Divider = ({ className, ...rest }) => /* @__PURE__ */
|
10909
|
-
var Item3 = ({ className, active, ...rest }) => /* @__PURE__ */
|
11049
|
+
}) => /* @__PURE__ */ React35.createElement("nav", { className: classNames(tw("bg-muted h-full")), "aria-label": ariaLabel }, /* @__PURE__ */ React35.createElement("ul", { ...rest, className: classNames(tw("flex flex-col h-full"), className), role: "menubar" }, children));
|
11050
|
+
var Header = ({ className, ...rest }) => /* @__PURE__ */ React35.createElement("li", { ...rest, role: "presentation", className: classNames(tw("px-6 py-5"), className) });
|
11051
|
+
var Title2 = ({ className, ...props }) => /* @__PURE__ */ React35.createElement(Typography, { variant: "caption", className: classNames("uppercase text-muted", className), ...props });
|
11052
|
+
var Subtitle = ({ className, ...props }) => /* @__PURE__ */ React35.createElement(Typography, { variant: "small-strong", className: classNames("text-intense", className), ...props });
|
11053
|
+
var Footer = ({ className, ...rest }) => /* @__PURE__ */ React35.createElement("li", { ...rest, role: "presentation", className: classNames(tw("px-6 py-5 mt-auto"), className) });
|
11054
|
+
var Section = ({ title, className, ...rest }) => /* @__PURE__ */ React35.createElement("li", { role: "presentation", className: tw("py-5") }, title && /* @__PURE__ */ React35.createElement("div", { className: classNames(className, "py-2 px-6 text-inactive uppercase cursor-default typography-caption") }, title), /* @__PURE__ */ React35.createElement("ul", { ...rest, role: "group", className: classNames(tw("flex flex-col"), className) }));
|
11055
|
+
var Divider = ({ className, ...rest }) => /* @__PURE__ */ React35.createElement("li", { "aria-hidden": true, ...rest, className: classNames(tw("border-t-2 border-muted"), className) });
|
11056
|
+
var Item3 = ({ className, active, ...rest }) => /* @__PURE__ */ React35.createElement("li", { role: "presentation" }, /* @__PURE__ */ React35.createElement(
|
10910
11057
|
"a",
|
10911
11058
|
{
|
10912
11059
|
...rest,
|
@@ -10926,7 +11073,7 @@ var Submenu = ({
|
|
10926
11073
|
title,
|
10927
11074
|
id,
|
10928
11075
|
...rest
|
10929
|
-
}) => /* @__PURE__ */
|
11076
|
+
}) => /* @__PURE__ */ React35.createElement("li", { role: "presentation" }, /* @__PURE__ */ React35.createElement(
|
10930
11077
|
"a",
|
10931
11078
|
{
|
10932
11079
|
role: "menuitem",
|
@@ -10940,8 +11087,8 @@ var Submenu = ({
|
|
10940
11087
|
...rest
|
10941
11088
|
},
|
10942
11089
|
title
|
10943
|
-
), /* @__PURE__ */
|
10944
|
-
var SubmenuItem = ({ className, active, ...rest }) => /* @__PURE__ */
|
11090
|
+
), /* @__PURE__ */ React35.createElement("ul", { role: "menu", className: classNames(tw("flex flex-col")), "aria-labelledby": id }, children));
|
11091
|
+
var SubmenuItem = ({ className, active, ...rest }) => /* @__PURE__ */ React35.createElement(Navigation.Item, { ...rest, active, className: classNames(className, tw("pl-[56px]")) });
|
10945
11092
|
Header.Title = Title2;
|
10946
11093
|
Header.Subtitle = Subtitle;
|
10947
11094
|
Submenu.Item = SubmenuItem;
|
@@ -10953,11 +11100,11 @@ Navigation.Submenu = Submenu;
|
|
10953
11100
|
Navigation.Divider = Divider;
|
10954
11101
|
|
10955
11102
|
// src/atoms/PageHeader/PageHeader.tsx
|
10956
|
-
import
|
10957
|
-
var PageHeader = ({ children, className, ...rest }) => /* @__PURE__ */
|
10958
|
-
PageHeader.Container = ({ children, className, ...rest }) => /* @__PURE__ */
|
10959
|
-
PageHeader.TitleContainer = ({ children, className, ...rest }) => /* @__PURE__ */
|
10960
|
-
PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__ */
|
11103
|
+
import React36 from "react";
|
11104
|
+
var PageHeader = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { className: classNames(tw("flex flex-row gap-4 pb-6"), className), ...rest }, children);
|
11105
|
+
PageHeader.Container = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { className: classNames(tw("flex flex-col grow gap-0"), className), ...rest }, children);
|
11106
|
+
PageHeader.TitleContainer = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { className: classNames(tw("flex flex-col justify-center gap-2"), className), ...rest }, children);
|
11107
|
+
PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__ */ React36.createElement(
|
10961
11108
|
Typography2,
|
10962
11109
|
{
|
10963
11110
|
...rest,
|
@@ -10967,32 +11114,32 @@ PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__
|
|
10967
11114
|
},
|
10968
11115
|
children
|
10969
11116
|
);
|
10970
|
-
PageHeader.Subtitle = ({ children, ...rest }) => /* @__PURE__ */
|
10971
|
-
PageHeader.Chips = ({ children, className, ...rest }) => /* @__PURE__ */
|
10972
|
-
PageHeader.Actions = ({ children, className, ...rest }) => /* @__PURE__ */
|
11117
|
+
PageHeader.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React36.createElement(Typography2.Small, { ...rest, color: "default" }, children);
|
11118
|
+
PageHeader.Chips = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { className: classNames(tw("flex gap-3"), className), ...rest }, children);
|
11119
|
+
PageHeader.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { className: classNames(tw("flex flex-row gap-4 self-start"), className), ...rest }, children);
|
10973
11120
|
|
10974
11121
|
// src/atoms/Popover/Popover.tsx
|
10975
|
-
import
|
11122
|
+
import React37 from "react";
|
10976
11123
|
import {
|
10977
|
-
composeRenderProps,
|
11124
|
+
composeRenderProps as composeRenderProps2,
|
10978
11125
|
OverlayArrow,
|
10979
11126
|
Popover as AriaPopover
|
10980
11127
|
} from "react-aria-components";
|
10981
|
-
import { tv as
|
10982
|
-
var popoverStyles =
|
11128
|
+
import { tv as tv8 } from "tailwind-variants";
|
11129
|
+
var popoverStyles = tv8({
|
10983
11130
|
base: "rounded-sm shadow-16dp bg-popover-content mt-1 overflow-y-auto flex flex-col border border-default outline-none"
|
10984
11131
|
});
|
10985
|
-
var Popover =
|
11132
|
+
var Popover = React37.forwardRef(
|
10986
11133
|
({ children, offset = 0, className, placement: _placement = "bottom-left", ...props }, ref) => {
|
10987
11134
|
const placement = _placement.replace("-", " ");
|
10988
|
-
return /* @__PURE__ */
|
11135
|
+
return /* @__PURE__ */ React37.createElement(
|
10989
11136
|
AriaPopover,
|
10990
11137
|
{
|
10991
11138
|
ref,
|
10992
11139
|
offset,
|
10993
11140
|
placement,
|
10994
11141
|
...props,
|
10995
|
-
className:
|
11142
|
+
className: composeRenderProps2(
|
10996
11143
|
className,
|
10997
11144
|
(className2, renderProps) => popoverStyles({ ...renderProps, className: className2 })
|
10998
11145
|
)
|
@@ -11001,7 +11148,7 @@ var Popover = React36.forwardRef(
|
|
11001
11148
|
);
|
11002
11149
|
}
|
11003
11150
|
);
|
11004
|
-
var PopoverArrow = () => /* @__PURE__ */
|
11151
|
+
var PopoverArrow = () => /* @__PURE__ */ React37.createElement(OverlayArrow, { className: "group" }, /* @__PURE__ */ React37.createElement(
|
11005
11152
|
"svg",
|
11006
11153
|
{
|
11007
11154
|
width: 12,
|
@@ -11009,18 +11156,18 @@ var PopoverArrow = () => /* @__PURE__ */ React36.createElement(OverlayArrow, { c
|
|
11009
11156
|
viewBox: "0 0 12 12",
|
11010
11157
|
className: "block fill-white stroke-1 stroke-black group-placement-bottom:rotate-180 group-placement-left:-rotate-90 group-placement-right:rotate-90"
|
11011
11158
|
},
|
11012
|
-
/* @__PURE__ */
|
11159
|
+
/* @__PURE__ */ React37.createElement("path", { d: "M0 0 L6 6 L12 0" })
|
11013
11160
|
));
|
11014
11161
|
PopoverArrow.displayName = "Popover.Arrow";
|
11015
11162
|
Popover.Arrow = PopoverArrow;
|
11016
11163
|
|
11017
11164
|
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
11018
|
-
import
|
11019
|
-
var Header2 = ({ children, className, ...rest }) => /* @__PURE__ */
|
11020
|
-
var Title3 = ({ children, className, ...rest }) => /* @__PURE__ */
|
11021
|
-
var Body = ({ children, className, ...rest }) => /* @__PURE__ */
|
11022
|
-
var Footer2 = ({ children, className, ...rest }) => /* @__PURE__ */
|
11023
|
-
var Actions2 = ({ children, className, ...rest }) => /* @__PURE__ */
|
11165
|
+
import React38 from "react";
|
11166
|
+
var Header2 = ({ children, className, ...rest }) => /* @__PURE__ */ React38.createElement("div", { ...rest, className: classNames(tw("p-5 gap-3 flex items-center"), className) }, children);
|
11167
|
+
var Title3 = ({ children, className, ...rest }) => /* @__PURE__ */ React38.createElement(Typography, { ...rest, htmlTag: "h1", variant: "small-strong" }, children);
|
11168
|
+
var Body = ({ children, className, ...rest }) => /* @__PURE__ */ React38.createElement(Typography, { ...rest, htmlTag: "div", variant: "caption", className: classNames(tw("px-5 overflow-y-auto"), className) }, children);
|
11169
|
+
var Footer2 = ({ children, className, ...rest }) => /* @__PURE__ */ React38.createElement("div", { ...rest, className: classNames(tw("p-5"), className) }, children);
|
11170
|
+
var Actions2 = ({ children, className, ...rest }) => /* @__PURE__ */ React38.createElement("div", { ...rest, className: classNames(tw("flex gap-4"), className) }, children);
|
11024
11171
|
var PopoverDialog = {
|
11025
11172
|
Header: Header2,
|
11026
11173
|
Title: Title3,
|
@@ -11030,9 +11177,9 @@ var PopoverDialog = {
|
|
11030
11177
|
};
|
11031
11178
|
|
11032
11179
|
// src/atoms/ProgressBar/ProgressBar.tsx
|
11033
|
-
import
|
11180
|
+
import React39 from "react";
|
11034
11181
|
import { clamp } from "lodash-es";
|
11035
|
-
var ProgressBar = ({ children, className, ...rest }) => /* @__PURE__ */
|
11182
|
+
var ProgressBar = ({ children, className, ...rest }) => /* @__PURE__ */ React39.createElement(
|
11036
11183
|
"div",
|
11037
11184
|
{
|
11038
11185
|
...rest,
|
@@ -11048,7 +11195,7 @@ var STATUS_COLORS = {
|
|
11048
11195
|
};
|
11049
11196
|
ProgressBar.Indicator = ({ min, max, value, "aria-label": ariaLabel, status, className, ...rest }) => {
|
11050
11197
|
const completedPercentage = clamp((value - min) / (max - min) * 100, 0, 100);
|
11051
|
-
return /* @__PURE__ */
|
11198
|
+
return /* @__PURE__ */ React39.createElement(
|
11052
11199
|
"div",
|
11053
11200
|
{
|
11054
11201
|
...rest,
|
@@ -11066,17 +11213,17 @@ ProgressBar.Indicator = ({ min, max, value, "aria-label": ariaLabel, status, cla
|
|
11066
11213
|
}
|
11067
11214
|
);
|
11068
11215
|
};
|
11069
|
-
ProgressBar.Labels = ({ children, startLabel, endLabel, className, ...rest }) => /* @__PURE__ */
|
11216
|
+
ProgressBar.Labels = ({ children, startLabel, endLabel, className, ...rest }) => /* @__PURE__ */ React39.createElement("div", { className: classNames(tw("flex flex-row"), className) }, /* @__PURE__ */ React39.createElement("span", { ...rest, className: tw("grow text-default typography-caption") }, startLabel), /* @__PURE__ */ React39.createElement("span", { ...rest, className: tw("grow text-default typography-caption text-right") }, endLabel));
|
11070
11217
|
|
11071
11218
|
// src/atoms/Section/Section.tsx
|
11072
|
-
import
|
11219
|
+
import React40 from "react";
|
11073
11220
|
var import_caretUp2 = __toESM(require_caretUp());
|
11074
11221
|
var Section2 = ({
|
11075
11222
|
children,
|
11076
11223
|
className,
|
11077
11224
|
...rest
|
11078
|
-
}) => /* @__PURE__ */
|
11079
|
-
Section2.Header = ({ children, className, expanded, ...rest }) => /* @__PURE__ */
|
11225
|
+
}) => /* @__PURE__ */ React40.createElement(Box, { component: "section", ...rest, className: classNames(tw("border border-muted"), className) }, children);
|
11226
|
+
Section2.Header = ({ children, className, expanded, ...rest }) => /* @__PURE__ */ React40.createElement(
|
11080
11227
|
"div",
|
11081
11228
|
{
|
11082
11229
|
...rest,
|
@@ -11089,8 +11236,8 @@ Section2.Header = ({ children, className, expanded, ...rest }) => /* @__PURE__ *
|
|
11089
11236
|
},
|
11090
11237
|
children
|
11091
11238
|
);
|
11092
|
-
Section2.TitleContainer =
|
11093
|
-
({ children, className, collapsible, ...rest }, ref) => /* @__PURE__ */
|
11239
|
+
Section2.TitleContainer = React40.forwardRef(
|
11240
|
+
({ children, className, collapsible, ...rest }, ref) => /* @__PURE__ */ React40.createElement(
|
11094
11241
|
"div",
|
11095
11242
|
{
|
11096
11243
|
...rest,
|
@@ -11105,14 +11252,14 @@ Section2.TitleContainer = React39.forwardRef(
|
|
11105
11252
|
children
|
11106
11253
|
)
|
11107
11254
|
);
|
11108
|
-
Section2.Toggle = (props) => /* @__PURE__ */
|
11109
|
-
Section2.Title = ({ children, ...rest }) => /* @__PURE__ */
|
11110
|
-
Section2.Subtitle = ({ children, ...rest }) => /* @__PURE__ */
|
11111
|
-
Section2.Actions = ({ children, className, ...rest }) => /* @__PURE__ */
|
11112
|
-
Section2.Body = ({ children, className, ...rest }) => /* @__PURE__ */
|
11255
|
+
Section2.Toggle = (props) => /* @__PURE__ */ React40.createElement(Icon2, { ...props, icon: import_caretUp2.default, height: 22, width: 22 });
|
11256
|
+
Section2.Title = ({ children, ...rest }) => /* @__PURE__ */ React40.createElement(Typography2.Large, { ...rest, htmlTag: "h2", color: "intense", className: "flex gap-3 items-center" }, children);
|
11257
|
+
Section2.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React40.createElement(Typography2.Small, { ...rest, color: "default" }, children);
|
11258
|
+
Section2.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React40.createElement("div", { ...rest, className: classNames(tw("flex gap-4 justify-end"), className) }, children);
|
11259
|
+
Section2.Body = ({ children, className, ...rest }) => /* @__PURE__ */ React40.createElement("div", { ...rest, className: classNames(tw("p-6"), className) }, /* @__PURE__ */ React40.createElement(Typography, { htmlTag: "div", color: "default" }, children));
|
11113
11260
|
|
11114
11261
|
// src/atoms/Select/Select.tsx
|
11115
|
-
import
|
11262
|
+
import React41 from "react";
|
11116
11263
|
var import_chevronDown4 = __toESM(require_chevronDown());
|
11117
11264
|
var import_chevronUp4 = __toESM(require_chevronUp());
|
11118
11265
|
var import_search2 = __toESM(require_search());
|
@@ -11130,11 +11277,11 @@ function isOptionDisabledBuiltin(option) {
|
|
11130
11277
|
return !!option.disabled;
|
11131
11278
|
}
|
11132
11279
|
var getValues = (children) => {
|
11133
|
-
const values =
|
11280
|
+
const values = React41.Children.map(children, (c) => c?.props?.value);
|
11134
11281
|
return values?.filter((v) => v !== void 0 && v !== null) ?? [];
|
11135
11282
|
};
|
11136
|
-
var InputContainer =
|
11137
|
-
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */
|
11283
|
+
var InputContainer = React41.forwardRef(
|
11284
|
+
({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
11138
11285
|
"div",
|
11139
11286
|
{
|
11140
11287
|
ref,
|
@@ -11157,7 +11304,7 @@ var InputContainer = React40.forwardRef(
|
|
11157
11304
|
}
|
11158
11305
|
)
|
11159
11306
|
);
|
11160
|
-
var Input =
|
11307
|
+
var Input = React41.forwardRef(({ className, required, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
11161
11308
|
"input",
|
11162
11309
|
{
|
11163
11310
|
ref,
|
@@ -11175,8 +11322,8 @@ var Input = React40.forwardRef(({ className, required, ...props }, ref) => /* @_
|
|
11175
11322
|
...props
|
11176
11323
|
}
|
11177
11324
|
));
|
11178
|
-
var Menu =
|
11179
|
-
({ maxHeight = "450px", className, children, ...props }, ref) => /* @__PURE__ */
|
11325
|
+
var Menu = React41.forwardRef(
|
11326
|
+
({ maxHeight = "450px", className, children, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
11180
11327
|
"ul",
|
11181
11328
|
{
|
11182
11329
|
ref,
|
@@ -11187,12 +11334,12 @@ var Menu = React40.forwardRef(
|
|
11187
11334
|
children
|
11188
11335
|
)
|
11189
11336
|
);
|
11190
|
-
var NoResults =
|
11191
|
-
({ className, children, ...rest }, ref) => /* @__PURE__ */
|
11337
|
+
var NoResults = React41.forwardRef(
|
11338
|
+
({ className, children, ...rest }, ref) => /* @__PURE__ */ React41.createElement("li", { ref, ...rest, className: classNames(tw("p-3 text-inactive typography-small"), className) }, children)
|
11192
11339
|
);
|
11193
|
-
var EmptyStateContainer2 =
|
11194
|
-
var Divider2 = (props) => /* @__PURE__ */
|
11195
|
-
var Group2 =
|
11340
|
+
var EmptyStateContainer2 = React41.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React41.createElement("li", { ref, className: tw("border border-dashed border-default m-4 p-6"), ...props }, children));
|
11341
|
+
var Divider2 = (props) => /* @__PURE__ */ React41.createElement("div", { className: tw("border-b-1 border-muted mx-3 my-4"), ...props });
|
11342
|
+
var Group2 = React41.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
11196
11343
|
"li",
|
11197
11344
|
{
|
11198
11345
|
ref,
|
@@ -11205,8 +11352,8 @@ var Group2 = React40.forwardRef(({ className, children, ...props }, ref) => /* @
|
|
11205
11352
|
children
|
11206
11353
|
));
|
11207
11354
|
var endAdornmentSize = { width: 14, height: 14 };
|
11208
|
-
var Item4 =
|
11209
|
-
({ highlighted, selected, className, children, ...props }, ref) => /* @__PURE__ */
|
11355
|
+
var Item4 = React41.forwardRef(
|
11356
|
+
({ highlighted, selected, className, children, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
11210
11357
|
"li",
|
11211
11358
|
{
|
11212
11359
|
ref,
|
@@ -11217,12 +11364,12 @@ var Item4 = React40.forwardRef(
|
|
11217
11364
|
}),
|
11218
11365
|
...props
|
11219
11366
|
},
|
11220
|
-
/* @__PURE__ */
|
11221
|
-
selected ? /* @__PURE__ */
|
11367
|
+
/* @__PURE__ */ React41.createElement("span", { className: tw("grow flex gap-x-3") }, children),
|
11368
|
+
selected ? /* @__PURE__ */ React41.createElement(InlineIcon2, { icon: import_tick4.default, ...endAdornmentSize }) : /* @__PURE__ */ React41.createElement("div", { style: endAdornmentSize })
|
11222
11369
|
)
|
11223
11370
|
);
|
11224
|
-
var ActionItem =
|
11225
|
-
({ className, dense, icon, onClick, children, ...props }, ref) => /* @__PURE__ */
|
11371
|
+
var ActionItem = React41.forwardRef(
|
11372
|
+
({ className, dense, icon, onClick, children, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
11226
11373
|
"li",
|
11227
11374
|
{
|
11228
11375
|
ref,
|
@@ -11236,11 +11383,11 @@ var ActionItem = React40.forwardRef(
|
|
11236
11383
|
}),
|
11237
11384
|
...props
|
11238
11385
|
},
|
11239
|
-
icon && /* @__PURE__ */
|
11386
|
+
icon && /* @__PURE__ */ React41.createElement(InlineIcon2, { icon }),
|
11240
11387
|
children
|
11241
11388
|
)
|
11242
11389
|
);
|
11243
|
-
var Toggle =
|
11390
|
+
var Toggle = React41.forwardRef(({ hasFocus, isOpen, ...props }, ref) => /* @__PURE__ */ React41.createElement(
|
11244
11391
|
"button",
|
11245
11392
|
{
|
11246
11393
|
ref,
|
@@ -11249,7 +11396,7 @@ var Toggle = React40.forwardRef(({ hasFocus, isOpen, ...props }, ref) => /* @__P
|
|
11249
11396
|
...props,
|
11250
11397
|
className: tw("grow-0 leading-none", { "cursor-not-allowed": props.disabled ?? false })
|
11251
11398
|
},
|
11252
|
-
/* @__PURE__ */
|
11399
|
+
/* @__PURE__ */ React41.createElement(
|
11253
11400
|
InlineIcon2,
|
11254
11401
|
{
|
11255
11402
|
color: props.disabled ? "inactive" : "default",
|
@@ -11271,15 +11418,15 @@ var Select = {
|
|
11271
11418
|
};
|
11272
11419
|
|
11273
11420
|
// src/atoms/Stepper/Stepper.tsx
|
11274
|
-
import
|
11421
|
+
import React42 from "react";
|
11275
11422
|
var import_tick5 = __toESM(require_tick());
|
11276
|
-
var Stepper = ({ className, ...rest }) => /* @__PURE__ */
|
11423
|
+
var Stepper = ({ className, ...rest }) => /* @__PURE__ */ React42.createElement("div", { ...rest, className: classNames(className) });
|
11277
11424
|
var ConnectorContainer = ({
|
11278
11425
|
className,
|
11279
11426
|
completed,
|
11280
11427
|
dense,
|
11281
11428
|
...rest
|
11282
|
-
}) => /* @__PURE__ */
|
11429
|
+
}) => /* @__PURE__ */ React42.createElement(
|
11283
11430
|
"div",
|
11284
11431
|
{
|
11285
11432
|
...rest,
|
@@ -11292,7 +11439,7 @@ var ConnectorContainer = ({
|
|
11292
11439
|
)
|
11293
11440
|
}
|
11294
11441
|
);
|
11295
|
-
var Connector = ({ children, className, completed, dense, ...rest }) => /* @__PURE__ */
|
11442
|
+
var Connector = ({ children, className, completed, dense, ...rest }) => /* @__PURE__ */ React42.createElement(
|
11296
11443
|
"div",
|
11297
11444
|
{
|
11298
11445
|
...rest,
|
@@ -11307,7 +11454,7 @@ var Connector = ({ children, className, completed, dense, ...rest }) => /* @__PU
|
|
11307
11454
|
)
|
11308
11455
|
}
|
11309
11456
|
);
|
11310
|
-
var Step = ({ className, state, ...rest }) => /* @__PURE__ */
|
11457
|
+
var Step = ({ className, state, ...rest }) => /* @__PURE__ */ React42.createElement(
|
11311
11458
|
"div",
|
11312
11459
|
{
|
11313
11460
|
...rest,
|
@@ -11330,7 +11477,7 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
11330
11477
|
"bg-intense": state === "inactive",
|
11331
11478
|
"text-success-default": state === "completed"
|
11332
11479
|
});
|
11333
|
-
var Indicator = ({ children, className, state, dense, ...rest }) => /* @__PURE__ */
|
11480
|
+
var Indicator = ({ children, className, state, dense, ...rest }) => /* @__PURE__ */ React42.createElement(
|
11334
11481
|
"div",
|
11335
11482
|
{
|
11336
11483
|
...rest,
|
@@ -11341,7 +11488,7 @@ var Indicator = ({ children, className, state, dense, ...rest }) => /* @__PURE__
|
|
11341
11488
|
className
|
11342
11489
|
)
|
11343
11490
|
},
|
11344
|
-
state === "completed" ? /* @__PURE__ */
|
11491
|
+
state === "completed" ? /* @__PURE__ */ React42.createElement(InlineIcon2, { icon: import_tick5.default }) : dense ? null : children
|
11345
11492
|
);
|
11346
11493
|
Step.Indicator = Indicator;
|
11347
11494
|
Stepper.Step = Step;
|
@@ -11349,10 +11496,10 @@ ConnectorContainer.Connector = Connector;
|
|
11349
11496
|
Stepper.ConnectorContainer = ConnectorContainer;
|
11350
11497
|
|
11351
11498
|
// src/atoms/Switch/Switch.tsx
|
11352
|
-
import
|
11499
|
+
import React43 from "react";
|
11353
11500
|
var import_ban2 = __toESM(require_ban());
|
11354
|
-
var Switch =
|
11355
|
-
({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => /* @__PURE__ */
|
11501
|
+
var Switch = React43.forwardRef(
|
11502
|
+
({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => /* @__PURE__ */ React43.createElement("span", { className: tw("relative inline-flex justify-center items-center self-center group") }, /* @__PURE__ */ React43.createElement(
|
11356
11503
|
"input",
|
11357
11504
|
{
|
11358
11505
|
id,
|
@@ -11374,7 +11521,7 @@ var Switch = React42.forwardRef(
|
|
11374
11521
|
readOnly,
|
11375
11522
|
disabled
|
11376
11523
|
}
|
11377
|
-
), /* @__PURE__ */
|
11524
|
+
), /* @__PURE__ */ React43.createElement(
|
11378
11525
|
"span",
|
11379
11526
|
{
|
11380
11527
|
className: tw(
|
@@ -11385,15 +11532,15 @@ var Switch = React42.forwardRef(
|
|
11385
11532
|
}
|
11386
11533
|
)
|
11387
11534
|
},
|
11388
|
-
disabled && /* @__PURE__ */
|
11535
|
+
disabled && /* @__PURE__ */ React43.createElement(Icon2, { icon: import_ban2.default, width: "10px", height: "10px" })
|
11389
11536
|
))
|
11390
11537
|
);
|
11391
11538
|
|
11392
11539
|
// src/atoms/VisuallyHidden/VisuallyHidden.tsx
|
11393
|
-
import
|
11540
|
+
import React44 from "react";
|
11394
11541
|
import { VisuallyHidden as AriaVisuallyHidden } from "@react-aria/visually-hidden";
|
11395
11542
|
var VisuallyHidden = (props) => {
|
11396
|
-
return /* @__PURE__ */
|
11543
|
+
return /* @__PURE__ */ React44.createElement(AriaVisuallyHidden, { ...props });
|
11397
11544
|
};
|
11398
11545
|
export {
|
11399
11546
|
Alert,
|
@@ -11407,6 +11554,7 @@ export {
|
|
11407
11554
|
DataList,
|
11408
11555
|
Dialog,
|
11409
11556
|
DropdownMenu,
|
11557
|
+
Filter,
|
11410
11558
|
Icon,
|
11411
11559
|
InputGroup,
|
11412
11560
|
Item,
|
@@ -11431,6 +11579,9 @@ export {
|
|
11431
11579
|
VisuallyHidden,
|
11432
11580
|
buttonClasses,
|
11433
11581
|
cellClassNames,
|
11582
|
+
dropdownMenuGroupStyles,
|
11583
|
+
dropdownMenuItemStyles,
|
11584
|
+
dropdownMenuStyles,
|
11434
11585
|
getAlignClassNames,
|
11435
11586
|
getBodyCellClassNames,
|
11436
11587
|
getHeadCellClassNames,
|