@aivenio/aquarium 1.14.0 → 1.15.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/_variables.scss +1 -1
- package/dist/_variables_timescale.scss +1 -1
- package/dist/atoms.cjs +162 -94
- package/dist/atoms.mjs +161 -94
- package/dist/src/atoms/Navigation/Navigation.d.ts +20 -0
- package/dist/src/atoms/Navigation/Navigation.js +49 -0
- package/dist/src/atoms/PageHeader/PageHeader.d.ts +13 -0
- package/dist/src/atoms/PageHeader/PageHeader.js +43 -0
- package/dist/src/atoms/index.d.ts +1 -0
- package/dist/src/atoms/index.js +2 -1
- package/dist/src/molecules/Button/Button.d.ts +1 -1
- package/dist/src/molecules/Button/Button.js +4 -4
- package/dist/src/molecules/DataList/DataList.d.ts +3 -3
- package/dist/src/molecules/DataList/DataList.js +19 -6
- package/dist/src/molecules/DataTable/DataTable.d.ts +3 -3
- package/dist/src/molecules/DataTable/DataTable.js +18 -6
- package/dist/src/molecules/DropdownMenu/DropdownMenu.d.ts +11 -5
- package/dist/src/molecules/DropdownMenu/DropdownMenu.js +2 -1
- package/dist/src/molecules/Navigation/Navigation.d.ts +19 -0
- package/dist/src/molecules/Navigation/Navigation.js +27 -0
- package/dist/src/molecules/PageHeader/PageHeader.d.ts +2 -0
- package/dist/src/molecules/PageHeader/PageHeader.js +10 -9
- package/dist/src/molecules/Stepper/Stepper.js +2 -1
- package/dist/src/molecules/index.d.ts +1 -0
- package/dist/src/molecules/index.js +2 -1
- package/dist/src/utils/table/types.d.ts +16 -1
- package/dist/src/utils/table/types.js +1 -1
- package/dist/styles.css +24 -11
- package/dist/styles_timescaledb.css +24 -11
- package/dist/system.cjs +1570 -1395
- package/dist/system.mjs +1571 -1397
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/types/tailwindGenerated.d.ts +1 -1
- package/package.json +2 -2
package/dist/atoms.mjs
CHANGED
@@ -2582,17 +2582,20 @@ var asButton = (Component, isDropdownButton) => {
|
|
2582
2582
|
className: classNames(
|
2583
2583
|
UNSAFE_className,
|
2584
2584
|
!isIconOnlyButton && COLOR_CLASSNAMES[kind],
|
2585
|
-
tw(
|
2586
|
-
"
|
2587
|
-
|
2588
|
-
|
2589
|
-
|
2590
|
-
|
2591
|
-
|
2592
|
-
|
2593
|
-
|
2594
|
-
|
2595
|
-
|
2585
|
+
tw(
|
2586
|
+
"inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative text-center",
|
2587
|
+
{
|
2588
|
+
"text-grey-70 p-2 active:text-grey-70 active:bg-transparent hover:text-grey-90 hover:bg-grey-0 focus-visible:text-grey-90 focus-visible:bg-grey-0 disabled:text-grey-20 disabled:bg-transparent": isIconOnlyButton,
|
2589
|
+
"typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
|
2590
|
+
"typography-small-strong": dense && !isIconOnlyButton && kind !== "text",
|
2591
|
+
"py-3 px-4": !dense && isButton,
|
2592
|
+
"py-2 px-3": dense && isButton,
|
2593
|
+
"py-3": !dense && isGhost,
|
2594
|
+
"py-2": dense && isGhost,
|
2595
|
+
"block w-full": fullWidth && !isIconOnlyButton,
|
2596
|
+
"cursor-not-allowed": !!disabled || !!loading2
|
2597
|
+
}
|
2598
|
+
)
|
2596
2599
|
),
|
2597
2600
|
"aria-label": isIconOnlyButton ? ariaLabel != null ? ariaLabel : tooltip : ariaLabel,
|
2598
2601
|
disabled: disabled || loading2
|
@@ -3505,11 +3508,74 @@ Modal.Actions = (_a) => {
|
|
3505
3508
|
}), children);
|
3506
3509
|
};
|
3507
3510
|
|
3508
|
-
// src/atoms/
|
3511
|
+
// src/atoms/Navigation/Navigation.tsx
|
3509
3512
|
import React21 from "react";
|
3510
|
-
var
|
3513
|
+
var Navigation = (_a) => {
|
3514
|
+
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
3515
|
+
return /* @__PURE__ */ React21.createElement("nav", {
|
3516
|
+
className: classNames(tw("bg-grey-0 h-full"))
|
3517
|
+
}, /* @__PURE__ */ React21.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
3518
|
+
className: classNames(tw("flex flex-col h-full"), className),
|
3519
|
+
role: "menu"
|
3520
|
+
}), children));
|
3521
|
+
};
|
3522
|
+
var Header = (_a) => {
|
3523
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3524
|
+
return /* @__PURE__ */ React21.createElement("li", __spreadProps(__spreadValues({}, rest), {
|
3525
|
+
role: "presentation",
|
3526
|
+
className: classNames(tw("px-6 py-5"), className)
|
3527
|
+
}));
|
3528
|
+
};
|
3529
|
+
var Footer = (_a) => {
|
3530
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3531
|
+
return /* @__PURE__ */ React21.createElement("li", __spreadProps(__spreadValues({}, rest), {
|
3532
|
+
role: "presentation",
|
3533
|
+
className: classNames(tw("px-6 py-5 mt-auto"), className)
|
3534
|
+
}));
|
3535
|
+
};
|
3536
|
+
var Section = (_a) => {
|
3537
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3538
|
+
return /* @__PURE__ */ React21.createElement("li", {
|
3539
|
+
role: "presentation"
|
3540
|
+
}, /* @__PURE__ */ React21.createElement("ul", __spreadProps(__spreadValues({}, rest), {
|
3541
|
+
role: "group",
|
3542
|
+
className: classNames(tw(" py-5 flex flex-col"), className)
|
3543
|
+
})));
|
3544
|
+
};
|
3545
|
+
var Divider = (_a) => {
|
3546
|
+
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3547
|
+
return /* @__PURE__ */ React21.createElement("li", __spreadProps(__spreadValues({
|
3548
|
+
role: "separator"
|
3549
|
+
}, rest), {
|
3550
|
+
className: classNames(tw("border-t-2 border-grey-5"), className)
|
3551
|
+
}));
|
3552
|
+
};
|
3553
|
+
var Item2 = (_a) => {
|
3554
|
+
var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
|
3555
|
+
return /* @__PURE__ */ React21.createElement("li", {
|
3556
|
+
role: "presentation"
|
3557
|
+
}, /* @__PURE__ */ React21.createElement("a", __spreadProps(__spreadValues({}, rest), {
|
3558
|
+
role: "menuitem",
|
3559
|
+
className: classNames(
|
3560
|
+
tw("py-3 px-6 hover:bg-grey-5 cursor-pointer flex gap-4 items-center typography-small focusable", {
|
3561
|
+
"text-grey-60": !active,
|
3562
|
+
"text-primary-80": !!active
|
3563
|
+
}),
|
3564
|
+
className
|
3565
|
+
)
|
3566
|
+
})));
|
3567
|
+
};
|
3568
|
+
Navigation.Header = Header;
|
3569
|
+
Navigation.Footer = Footer;
|
3570
|
+
Navigation.Section = Section;
|
3571
|
+
Navigation.Item = Item2;
|
3572
|
+
Navigation.Divider = Divider;
|
3573
|
+
|
3574
|
+
// src/atoms/Popover/Popover.tsx
|
3575
|
+
import React22 from "react";
|
3576
|
+
var PopoverPanel = React22.forwardRef((_a, ref) => {
|
3511
3577
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3512
|
-
return /* @__PURE__ */
|
3578
|
+
return /* @__PURE__ */ React22.createElement("div", __spreadValues({
|
3513
3579
|
ref,
|
3514
3580
|
className: classNames(
|
3515
3581
|
className,
|
@@ -3518,7 +3584,7 @@ var PopoverPanel = React21.forwardRef((_a, ref) => {
|
|
3518
3584
|
}, props), children);
|
3519
3585
|
});
|
3520
3586
|
PopoverPanel.displayName = "Popover.Panel";
|
3521
|
-
var PopoverUnderlay =
|
3587
|
+
var PopoverUnderlay = React22.forwardRef((props, ref) => /* @__PURE__ */ React22.createElement("div", __spreadProps(__spreadValues({
|
3522
3588
|
ref
|
3523
3589
|
}, props), {
|
3524
3590
|
className: tw("fixed inset-0")
|
@@ -3530,54 +3596,54 @@ var Popover = {
|
|
3530
3596
|
};
|
3531
3597
|
|
3532
3598
|
// src/atoms/PopoverDialog/PopoverDialog.tsx
|
3533
|
-
import
|
3534
|
-
var
|
3599
|
+
import React23 from "react";
|
3600
|
+
var Header2 = (_a) => {
|
3535
3601
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3536
|
-
return /* @__PURE__ */
|
3602
|
+
return /* @__PURE__ */ React23.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3537
3603
|
className: classNames(tw("p-5 gap-3 flex items-center"), className)
|
3538
3604
|
}), children);
|
3539
3605
|
};
|
3540
3606
|
var Title = (_a) => {
|
3541
3607
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3542
|
-
return /* @__PURE__ */
|
3608
|
+
return /* @__PURE__ */ React23.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
3543
3609
|
htmlTag: "h1",
|
3544
3610
|
variant: "small-strong"
|
3545
3611
|
}), children);
|
3546
3612
|
};
|
3547
3613
|
var Body = (_a) => {
|
3548
3614
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3549
|
-
return /* @__PURE__ */
|
3615
|
+
return /* @__PURE__ */ React23.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
|
3550
3616
|
htmlTag: "div",
|
3551
3617
|
variant: "caption",
|
3552
3618
|
className: classNames(tw("px-5 overflow-y-auto"), className)
|
3553
3619
|
}), children);
|
3554
3620
|
};
|
3555
|
-
var
|
3621
|
+
var Footer2 = (_a) => {
|
3556
3622
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3557
|
-
return /* @__PURE__ */
|
3623
|
+
return /* @__PURE__ */ React23.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3558
3624
|
className: classNames(tw("p-5"), className)
|
3559
3625
|
}), children);
|
3560
3626
|
};
|
3561
3627
|
var Actions2 = (_a) => {
|
3562
3628
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3563
|
-
return /* @__PURE__ */
|
3629
|
+
return /* @__PURE__ */ React23.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3564
3630
|
className: classNames(tw("flex gap-4"), className)
|
3565
3631
|
}), children);
|
3566
3632
|
};
|
3567
3633
|
var PopoverDialog = {
|
3568
|
-
Header,
|
3634
|
+
Header: Header2,
|
3569
3635
|
Title,
|
3570
3636
|
Body,
|
3571
|
-
Footer,
|
3637
|
+
Footer: Footer2,
|
3572
3638
|
Actions: Actions2
|
3573
3639
|
};
|
3574
3640
|
|
3575
3641
|
// src/atoms/RadioButton/RadioButton.tsx
|
3576
|
-
import
|
3577
|
-
var RadioButton =
|
3642
|
+
import React24 from "react";
|
3643
|
+
var RadioButton = React24.forwardRef(
|
3578
3644
|
(_a, ref) => {
|
3579
3645
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
3580
|
-
return /* @__PURE__ */
|
3646
|
+
return /* @__PURE__ */ React24.createElement("input", __spreadProps(__spreadValues({
|
3581
3647
|
id,
|
3582
3648
|
ref,
|
3583
3649
|
type: "radio",
|
@@ -3601,7 +3667,7 @@ var RadioButton = React23.forwardRef(
|
|
3601
3667
|
);
|
3602
3668
|
|
3603
3669
|
// src/atoms/Select/Select.tsx
|
3604
|
-
import
|
3670
|
+
import React25 from "react";
|
3605
3671
|
var import_chevronDown2 = __toESM(require_chevronDown());
|
3606
3672
|
var import_chevronUp = __toESM(require_chevronUp());
|
3607
3673
|
var import_search = __toESM(require_search());
|
@@ -3621,16 +3687,16 @@ function isOptionDisabledBuiltin(option) {
|
|
3621
3687
|
}
|
3622
3688
|
var getValues = (children) => {
|
3623
3689
|
var _a;
|
3624
|
-
const values =
|
3690
|
+
const values = React25.Children.map(children, (c) => {
|
3625
3691
|
var _a2;
|
3626
3692
|
return (_a2 = c == null ? void 0 : c.props) == null ? void 0 : _a2.value;
|
3627
3693
|
});
|
3628
3694
|
return (_a = values == null ? void 0 : values.filter((v) => v !== void 0 && v !== null)) != null ? _a : [];
|
3629
3695
|
};
|
3630
|
-
var InputContainer =
|
3696
|
+
var InputContainer = React25.forwardRef(
|
3631
3697
|
(_a, ref) => {
|
3632
3698
|
var _b = _a, { variant = "default", className } = _b, props = __objRest(_b, ["variant", "className"]);
|
3633
|
-
return /* @__PURE__ */
|
3699
|
+
return /* @__PURE__ */ React25.createElement("div", __spreadValues({
|
3634
3700
|
ref,
|
3635
3701
|
className: classNames(
|
3636
3702
|
className,
|
@@ -3649,9 +3715,9 @@ var InputContainer = React24.forwardRef(
|
|
3649
3715
|
}, props));
|
3650
3716
|
}
|
3651
3717
|
);
|
3652
|
-
var Input =
|
3718
|
+
var Input = React25.forwardRef((_a, ref) => {
|
3653
3719
|
var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
|
3654
|
-
return /* @__PURE__ */
|
3720
|
+
return /* @__PURE__ */ React25.createElement("input", __spreadValues({
|
3655
3721
|
ref,
|
3656
3722
|
type: "text",
|
3657
3723
|
className: classNames(
|
@@ -3665,39 +3731,39 @@ var Input = React24.forwardRef((_a, ref) => {
|
|
3665
3731
|
)
|
3666
3732
|
}, props));
|
3667
3733
|
});
|
3668
|
-
var Menu =
|
3734
|
+
var Menu = React25.forwardRef(
|
3669
3735
|
(_a, ref) => {
|
3670
3736
|
var _b = _a, { maxHeight = "450px", className, children } = _b, props = __objRest(_b, ["maxHeight", "className", "children"]);
|
3671
|
-
return /* @__PURE__ */
|
3737
|
+
return /* @__PURE__ */ React25.createElement("ul", __spreadValues({
|
3672
3738
|
ref,
|
3673
3739
|
style: { maxHeight },
|
3674
3740
|
className
|
3675
3741
|
}, props), children);
|
3676
3742
|
}
|
3677
3743
|
);
|
3678
|
-
var NoResults =
|
3744
|
+
var NoResults = React25.forwardRef(
|
3679
3745
|
(_a, ref) => {
|
3680
3746
|
var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
|
3681
|
-
return /* @__PURE__ */
|
3747
|
+
return /* @__PURE__ */ React25.createElement("li", __spreadProps(__spreadValues({
|
3682
3748
|
ref
|
3683
3749
|
}, rest), {
|
3684
3750
|
className: classNames(tw("p-3 text-grey-40 italic"), className)
|
3685
3751
|
}), children);
|
3686
3752
|
}
|
3687
3753
|
);
|
3688
|
-
var EmptyStateContainer2 =
|
3754
|
+
var EmptyStateContainer2 = React25.forwardRef((_a, ref) => {
|
3689
3755
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3690
|
-
return /* @__PURE__ */
|
3756
|
+
return /* @__PURE__ */ React25.createElement("li", __spreadValues({
|
3691
3757
|
ref,
|
3692
3758
|
className: tw("border border-dashed border-grey-10 m-4 p-6")
|
3693
3759
|
}, props), children);
|
3694
3760
|
});
|
3695
|
-
var
|
3761
|
+
var Divider2 = (props) => /* @__PURE__ */ React25.createElement("div", __spreadValues({
|
3696
3762
|
className: tw("border-b-[1px] border-grey-5 mx-3 my-4")
|
3697
3763
|
}, props));
|
3698
|
-
var Group2 =
|
3764
|
+
var Group2 = React25.forwardRef((_a, ref) => {
|
3699
3765
|
var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
|
3700
|
-
return /* @__PURE__ */
|
3766
|
+
return /* @__PURE__ */ React25.createElement("li", __spreadValues({
|
3701
3767
|
ref,
|
3702
3768
|
className: classNames(
|
3703
3769
|
className,
|
@@ -3708,10 +3774,10 @@ var Group2 = React24.forwardRef((_a, ref) => {
|
|
3708
3774
|
)
|
3709
3775
|
}, props), children);
|
3710
3776
|
});
|
3711
|
-
var
|
3777
|
+
var Item3 = React25.forwardRef(
|
3712
3778
|
(_a, ref) => {
|
3713
3779
|
var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
|
3714
|
-
return /* @__PURE__ */
|
3780
|
+
return /* @__PURE__ */ React25.createElement("li", __spreadValues({
|
3715
3781
|
ref,
|
3716
3782
|
className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
|
3717
3783
|
"cursor-pointer": !props.disabled,
|
@@ -3719,17 +3785,17 @@ var Item2 = React24.forwardRef(
|
|
3719
3785
|
"text-grey-20": props.disabled,
|
3720
3786
|
"hover:bg-grey-0": !props.disabled
|
3721
3787
|
})
|
3722
|
-
}, props), /* @__PURE__ */
|
3788
|
+
}, props), /* @__PURE__ */ React25.createElement("span", {
|
3723
3789
|
className: tw("grow flex gap-x-3")
|
3724
|
-
}, children), selected && /* @__PURE__ */
|
3790
|
+
}, children), selected && /* @__PURE__ */ React25.createElement(InlineIcon, {
|
3725
3791
|
icon: import_tick3.default
|
3726
3792
|
}));
|
3727
3793
|
}
|
3728
3794
|
);
|
3729
|
-
var ActionItem =
|
3795
|
+
var ActionItem = React25.forwardRef(
|
3730
3796
|
(_a, ref) => {
|
3731
3797
|
var _b = _a, { className, dense, icon, onClick, children } = _b, props = __objRest(_b, ["className", "dense", "icon", "onClick", "children"]);
|
3732
|
-
return /* @__PURE__ */
|
3798
|
+
return /* @__PURE__ */ React25.createElement("li", __spreadValues({
|
3733
3799
|
ref,
|
3734
3800
|
role: "button",
|
3735
3801
|
onClick: () => !props.disabled && (onClick == null ? void 0 : onClick()),
|
@@ -3740,21 +3806,21 @@ var ActionItem = React24.forwardRef(
|
|
3740
3806
|
"text-grey-20": props.disabled,
|
3741
3807
|
"hover:text-primary-70": !props.disabled
|
3742
3808
|
})
|
3743
|
-
}, props), icon && /* @__PURE__ */
|
3809
|
+
}, props), icon && /* @__PURE__ */ React25.createElement(InlineIcon, {
|
3744
3810
|
icon
|
3745
3811
|
}), children);
|
3746
3812
|
}
|
3747
3813
|
);
|
3748
|
-
var Toggle =
|
3814
|
+
var Toggle = React25.forwardRef((_a, ref) => {
|
3749
3815
|
var _b = _a, { hasFocus, isOpen } = _b, props = __objRest(_b, ["hasFocus", "isOpen"]);
|
3750
3816
|
var _a2;
|
3751
|
-
return /* @__PURE__ */
|
3817
|
+
return /* @__PURE__ */ React25.createElement("button", __spreadProps(__spreadValues({
|
3752
3818
|
ref,
|
3753
3819
|
type: "button",
|
3754
3820
|
"aria-label": "Toggle"
|
3755
3821
|
}, props), {
|
3756
3822
|
className: tw("grow-0 leading-none", { "cursor-not-allowed": (_a2 = props.disabled) != null ? _a2 : false })
|
3757
|
-
}), /* @__PURE__ */
|
3823
|
+
}), /* @__PURE__ */ React25.createElement(InlineIcon, {
|
3758
3824
|
color: props.disabled ? "grey-40" : "grey-70",
|
3759
3825
|
icon: hasFocus ? import_search.default : isOpen ? import_chevronUp.default : import_chevronDown2.default
|
3760
3826
|
}));
|
@@ -3765,19 +3831,19 @@ var Select = {
|
|
3765
3831
|
Menu,
|
3766
3832
|
EmptyStateContainer: EmptyStateContainer2,
|
3767
3833
|
NoResults,
|
3768
|
-
Divider,
|
3834
|
+
Divider: Divider2,
|
3769
3835
|
Group: Group2,
|
3770
|
-
Item:
|
3836
|
+
Item: Item3,
|
3771
3837
|
ActionItem,
|
3772
3838
|
Toggle
|
3773
3839
|
};
|
3774
3840
|
|
3775
3841
|
// src/atoms/Stepper/Stepper.tsx
|
3776
|
-
import
|
3842
|
+
import React26 from "react";
|
3777
3843
|
var import_tick4 = __toESM(require_tick());
|
3778
3844
|
var Stepper = (_a) => {
|
3779
3845
|
var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
|
3780
|
-
return /* @__PURE__ */
|
3846
|
+
return /* @__PURE__ */ React26.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3781
3847
|
className: classNames(className)
|
3782
3848
|
}));
|
3783
3849
|
};
|
@@ -3791,7 +3857,7 @@ var ConnectorContainer = (_a) => {
|
|
3791
3857
|
"completed",
|
3792
3858
|
"dense"
|
3793
3859
|
]);
|
3794
|
-
return /* @__PURE__ */
|
3860
|
+
return /* @__PURE__ */ React26.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3795
3861
|
className: classNames(
|
3796
3862
|
tw("absolute w-full -left-1/2", {
|
3797
3863
|
"top-[3px] px-[14px]": Boolean(dense),
|
@@ -3803,7 +3869,7 @@ var ConnectorContainer = (_a) => {
|
|
3803
3869
|
};
|
3804
3870
|
var Connector = (_a) => {
|
3805
3871
|
var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
|
3806
|
-
return /* @__PURE__ */
|
3872
|
+
return /* @__PURE__ */ React26.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3807
3873
|
className: classNames(
|
3808
3874
|
tw("w-full", {
|
3809
3875
|
"bg-grey-20": !completed,
|
@@ -3817,7 +3883,7 @@ var Connector = (_a) => {
|
|
3817
3883
|
};
|
3818
3884
|
var Step = (_a) => {
|
3819
3885
|
var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
|
3820
|
-
return /* @__PURE__ */
|
3886
|
+
return /* @__PURE__ */ React26.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3821
3887
|
className: classNames(
|
3822
3888
|
tw("flex flex-col items-center text-grey-90 relative text-center", {
|
3823
3889
|
"text-grey-20": state === "inactive"
|
@@ -3838,13 +3904,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
|
|
3838
3904
|
});
|
3839
3905
|
var Indicator = (_a) => {
|
3840
3906
|
var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
|
3841
|
-
return /* @__PURE__ */
|
3907
|
+
return /* @__PURE__ */ React26.createElement("div", __spreadProps(__spreadValues({}, rest), {
|
3842
3908
|
className: classNames(
|
3843
3909
|
tw("rounded-full flex justify-center items-center mx-2 mb-3"),
|
3844
3910
|
dense ? getDenseClassNames(state) : getClassNames(state),
|
3845
3911
|
className
|
3846
3912
|
)
|
3847
|
-
}), state === "completed" ? /* @__PURE__ */
|
3913
|
+
}), state === "completed" ? /* @__PURE__ */ React26.createElement(InlineIcon, {
|
3848
3914
|
icon: import_tick4.default
|
3849
3915
|
}) : dense ? null : children);
|
3850
3916
|
};
|
@@ -3854,13 +3920,13 @@ ConnectorContainer.Connector = Connector;
|
|
3854
3920
|
Stepper.ConnectorContainer = ConnectorContainer;
|
3855
3921
|
|
3856
3922
|
// src/atoms/Switch/Switch.tsx
|
3857
|
-
import
|
3858
|
-
var Switch =
|
3923
|
+
import React27 from "react";
|
3924
|
+
var Switch = React27.forwardRef(
|
3859
3925
|
(_a, ref) => {
|
3860
3926
|
var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
|
3861
|
-
return /* @__PURE__ */
|
3927
|
+
return /* @__PURE__ */ React27.createElement("span", {
|
3862
3928
|
className: tw("relative inline-flex justify-center items-center self-center group")
|
3863
|
-
}, /* @__PURE__ */
|
3929
|
+
}, /* @__PURE__ */ React27.createElement("input", __spreadProps(__spreadValues({
|
3864
3930
|
id,
|
3865
3931
|
ref,
|
3866
3932
|
type: "checkbox",
|
@@ -3879,7 +3945,7 @@ var Switch = React26.forwardRef(
|
|
3879
3945
|
),
|
3880
3946
|
readOnly,
|
3881
3947
|
disabled
|
3882
|
-
})), /* @__PURE__ */
|
3948
|
+
})), /* @__PURE__ */ React27.createElement("span", {
|
3883
3949
|
className: tw(
|
3884
3950
|
"pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
|
3885
3951
|
"bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
|
@@ -3892,32 +3958,32 @@ var Switch = React26.forwardRef(
|
|
3892
3958
|
);
|
3893
3959
|
|
3894
3960
|
// src/atoms/Table/Table.tsx
|
3895
|
-
import
|
3961
|
+
import React28 from "react";
|
3896
3962
|
var import_chevronDown3 = __toESM(require_chevronDown());
|
3897
3963
|
var import_chevronUp2 = __toESM(require_chevronUp());
|
3898
|
-
var HeadContext =
|
3964
|
+
var HeadContext = React28.createContext(null);
|
3899
3965
|
var tableClassNames = tw("w-full relative typography-default border-spacing-0");
|
3900
3966
|
var Table = (_a) => {
|
3901
3967
|
var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
|
3902
|
-
return /* @__PURE__ */
|
3968
|
+
return /* @__PURE__ */ React28.createElement("table", __spreadProps(__spreadValues({}, rest), {
|
3903
3969
|
className: classNames(tableClassNames, className),
|
3904
3970
|
"aria-label": ariaLabel
|
3905
3971
|
}), children);
|
3906
3972
|
};
|
3907
3973
|
var TableHead = (_a) => {
|
3908
3974
|
var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
|
3909
|
-
return /* @__PURE__ */
|
3975
|
+
return /* @__PURE__ */ React28.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React28.createElement("tr", null, /* @__PURE__ */ React28.createElement(HeadContext.Provider, {
|
3910
3976
|
value: { children, sticky }
|
3911
3977
|
}, children)));
|
3912
3978
|
};
|
3913
3979
|
var TableBody = (_a) => {
|
3914
3980
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
3915
|
-
return /* @__PURE__ */
|
3981
|
+
return /* @__PURE__ */ React28.createElement("tbody", __spreadValues({}, rest), children);
|
3916
3982
|
};
|
3917
3983
|
var rowClassNames = tw("children:border-grey-10 group children:last:border-b-0 hover:bg-grey-0");
|
3918
3984
|
var TableRow = (_a) => {
|
3919
3985
|
var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
|
3920
|
-
return /* @__PURE__ */
|
3986
|
+
return /* @__PURE__ */ React28.createElement("tr", __spreadProps(__spreadValues({}, rest), {
|
3921
3987
|
className: classNames(rowClassNames, className)
|
3922
3988
|
}), children);
|
3923
3989
|
};
|
@@ -3944,15 +4010,15 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
|
|
3944
4010
|
};
|
3945
4011
|
var TableCell = (_a) => {
|
3946
4012
|
var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
|
3947
|
-
const headContext =
|
3948
|
-
return headContext ? /* @__PURE__ */
|
4013
|
+
const headContext = React28.useContext(HeadContext);
|
4014
|
+
return headContext ? /* @__PURE__ */ React28.createElement("th", __spreadProps(__spreadValues({}, rest), {
|
3949
4015
|
className: classNames(
|
3950
4016
|
cellClassNames,
|
3951
4017
|
getHeadCellClassNames(headContext.sticky, stickyColumn),
|
3952
4018
|
getAlignClassNames(align),
|
3953
4019
|
className
|
3954
4020
|
)
|
3955
|
-
}), children) : /* @__PURE__ */
|
4021
|
+
}), children) : /* @__PURE__ */ React28.createElement("td", __spreadProps(__spreadValues({}, rest), {
|
3956
4022
|
className: classNames(
|
3957
4023
|
cellClassNames,
|
3958
4024
|
getBodyCellClassNames(true, stickyColumn),
|
@@ -3963,11 +4029,11 @@ var TableCell = (_a) => {
|
|
3963
4029
|
};
|
3964
4030
|
var TableSelectCell = (_a) => {
|
3965
4031
|
var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
|
3966
|
-
return /* @__PURE__ */
|
4032
|
+
return /* @__PURE__ */ React28.createElement(Table.Cell, {
|
3967
4033
|
className: tw("leading-[0px]")
|
3968
|
-
}, props.type === "radio" ? /* @__PURE__ */
|
4034
|
+
}, props.type === "radio" ? /* @__PURE__ */ React28.createElement(RadioButton, __spreadValues({
|
3969
4035
|
"aria-label": ariaLabel
|
3970
|
-
}, props)) : /* @__PURE__ */
|
4036
|
+
}, props)) : /* @__PURE__ */ React28.createElement(Checkbox, __spreadValues({
|
3971
4037
|
"aria-label": ariaLabel
|
3972
4038
|
}, props)));
|
3973
4039
|
};
|
@@ -3977,39 +4043,39 @@ var getSortCellIconClassNames = (active) => {
|
|
3977
4043
|
};
|
3978
4044
|
var TableSortCell = (_a) => {
|
3979
4045
|
var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
|
3980
|
-
return /* @__PURE__ */
|
4046
|
+
return /* @__PURE__ */ React28.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
|
3981
4047
|
"aria-sort": direction
|
3982
|
-
}), /* @__PURE__ */
|
4048
|
+
}), /* @__PURE__ */ React28.createElement("span", {
|
3983
4049
|
className: getSortCellButtonClassNames(rest.align),
|
3984
4050
|
role: "button",
|
3985
4051
|
tabIndex: -1,
|
3986
4052
|
onClick
|
3987
|
-
}, children, /* @__PURE__ */
|
4053
|
+
}, children, /* @__PURE__ */ React28.createElement("div", {
|
3988
4054
|
"data-sort-icons": true,
|
3989
4055
|
className: tw("flex flex-col", {
|
3990
4056
|
"invisible group-hover:visible": direction === "none"
|
3991
4057
|
})
|
3992
|
-
}, /* @__PURE__ */
|
4058
|
+
}, /* @__PURE__ */ React28.createElement(InlineIcon, {
|
3993
4059
|
icon: import_chevronUp2.default,
|
3994
4060
|
className: getSortCellIconClassNames(direction === "descending")
|
3995
|
-
}), /* @__PURE__ */
|
4061
|
+
}), /* @__PURE__ */ React28.createElement(InlineIcon, {
|
3996
4062
|
icon: import_chevronDown3.default,
|
3997
4063
|
className: getSortCellIconClassNames(direction === "ascending")
|
3998
4064
|
}))));
|
3999
4065
|
};
|
4000
|
-
var
|
4066
|
+
var Item4 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React28.createElement("div", {
|
4001
4067
|
className: tw("flex gap-4 items-center")
|
4002
|
-
}, image && /* @__PURE__ */
|
4068
|
+
}, image && /* @__PURE__ */ React28.createElement("img", {
|
4003
4069
|
src: image,
|
4004
4070
|
alt: imageAlt,
|
4005
4071
|
style: { width: imageSize, height: imageSize }
|
4006
|
-
}), /* @__PURE__ */
|
4007
|
-
Table.Head =
|
4008
|
-
Table.Body =
|
4009
|
-
Table.Row =
|
4010
|
-
Table.Cell =
|
4011
|
-
Table.SortCell =
|
4012
|
-
Table.SelectCell =
|
4072
|
+
}), /* @__PURE__ */ React28.createElement("div", null, title, caption && /* @__PURE__ */ React28.createElement(Typography2.Caption, null, caption)));
|
4073
|
+
Table.Head = React28.memo(TableHead);
|
4074
|
+
Table.Body = React28.memo(TableBody);
|
4075
|
+
Table.Row = React28.memo(TableRow);
|
4076
|
+
Table.Cell = React28.memo(TableCell);
|
4077
|
+
Table.SortCell = React28.memo(TableSortCell);
|
4078
|
+
Table.SelectCell = React28.memo(TableSelectCell);
|
4013
4079
|
export {
|
4014
4080
|
Alert,
|
4015
4081
|
Card,
|
@@ -4018,9 +4084,10 @@ export {
|
|
4018
4084
|
DIALOG_ICONS_AND_COLORS,
|
4019
4085
|
DropdownMenu,
|
4020
4086
|
InputGroup,
|
4021
|
-
|
4087
|
+
Item4 as Item,
|
4022
4088
|
Link,
|
4023
4089
|
Modal,
|
4090
|
+
Navigation,
|
4024
4091
|
Popover,
|
4025
4092
|
PopoverDialog,
|
4026
4093
|
RadioButton,
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
declare type UListProps = React.HTMLProps<HTMLUListElement>;
|
3
|
+
declare type LIProp = React.HTMLProps<HTMLLIElement>;
|
4
|
+
declare type LinkProps = React.HTMLProps<HTMLAnchorElement>;
|
5
|
+
declare type ComposedNavigationProps = {
|
6
|
+
Header: typeof Header;
|
7
|
+
Footer: typeof Footer;
|
8
|
+
Section: typeof Section;
|
9
|
+
Item: typeof Item;
|
10
|
+
Divider: typeof Divider;
|
11
|
+
};
|
12
|
+
export declare const Navigation: React.FC<UListProps> & ComposedNavigationProps;
|
13
|
+
declare const Header: React.FC<LIProp>;
|
14
|
+
declare const Footer: React.FC<LIProp>;
|
15
|
+
declare const Section: React.FC<UListProps>;
|
16
|
+
declare const Divider: React.FC<LIProp>;
|
17
|
+
declare const Item: React.FC<LinkProps & {
|
18
|
+
active?: boolean;
|
19
|
+
}>;
|
20
|
+
export {};
|
@@ -0,0 +1,49 @@
|
|
1
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
2
|
+
var t = {};
|
3
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
4
|
+
t[p] = s[p];
|
5
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
6
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
7
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
8
|
+
t[p[i]] = s[p[i]];
|
9
|
+
}
|
10
|
+
return t;
|
11
|
+
};
|
12
|
+
import React from 'react';
|
13
|
+
import { classNames, tw } from '../../../src/utils/tailwind';
|
14
|
+
export const Navigation = (_a) => {
|
15
|
+
var { className, children } = _a, rest = __rest(_a, ["className", "children"]);
|
16
|
+
return (React.createElement("nav", { className: classNames(tw('bg-grey-0 h-full')) },
|
17
|
+
React.createElement("ul", Object.assign({}, rest, { className: classNames(tw('flex flex-col h-full'), className), role: "menu" }), children)));
|
18
|
+
};
|
19
|
+
const Header = (_a) => {
|
20
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
21
|
+
return (React.createElement("li", Object.assign({}, rest, { role: "presentation", className: classNames(tw('px-6 py-5'), className) })));
|
22
|
+
};
|
23
|
+
const Footer = (_a) => {
|
24
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
25
|
+
return (React.createElement("li", Object.assign({}, rest, { role: "presentation", className: classNames(tw('px-6 py-5 mt-auto'), className) })));
|
26
|
+
};
|
27
|
+
const Section = (_a) => {
|
28
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
29
|
+
return (React.createElement("li", { role: "presentation" },
|
30
|
+
React.createElement("ul", Object.assign({}, rest, { role: "group", className: classNames(tw(' py-5 flex flex-col'), className) }))));
|
31
|
+
};
|
32
|
+
const Divider = (_a) => {
|
33
|
+
var { className } = _a, rest = __rest(_a, ["className"]);
|
34
|
+
return (React.createElement("li", Object.assign({ role: "separator" }, rest, { className: classNames(tw('border-t-2 border-grey-5'), className) })));
|
35
|
+
};
|
36
|
+
const Item = (_a) => {
|
37
|
+
var { className, active } = _a, rest = __rest(_a, ["className", "active"]);
|
38
|
+
return (React.createElement("li", { role: "presentation" },
|
39
|
+
React.createElement("a", Object.assign({}, rest, { role: "menuitem", className: classNames(tw('py-3 px-6 hover:bg-grey-5 cursor-pointer flex gap-4 items-center typography-small focusable', {
|
40
|
+
'text-grey-60': !active,
|
41
|
+
'text-primary-80': !!active,
|
42
|
+
}), className) }))));
|
43
|
+
};
|
44
|
+
Navigation.Header = Header;
|
45
|
+
Navigation.Footer = Footer;
|
46
|
+
Navigation.Section = Section;
|
47
|
+
Navigation.Item = Item;
|
48
|
+
Navigation.Divider = Divider;
|
49
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTmF2aWdhdGlvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9hdG9tcy9OYXZpZ2F0aW9uL05hdmlnYXRpb24udHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUEsT0FBTyxLQUFLLE1BQU0sT0FBTyxDQUFDO0FBRTFCLE9BQU8sRUFBRSxVQUFVLEVBQUUsRUFBRSxFQUFFLE1BQU0sb0JBQW9CLENBQUM7QUFjcEQsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFtRCxDQUFDLEVBQWdDLEVBQUUsRUFBRTtRQUFwQyxFQUFFLFNBQVMsRUFBRSxRQUFRLE9BQVcsRUFBTixJQUFJLGNBQTlCLHlCQUFnQyxDQUFGO0lBQU8sT0FBQSxDQUM5Ryw2QkFBSyxTQUFTLEVBQUUsVUFBVSxDQUFDLEVBQUUsQ0FBQyxrQkFBa0IsQ0FBQyxDQUFDO1FBQ2hELDRDQUFRLElBQUksSUFBRSxTQUFTLEVBQUUsVUFBVSxDQUFDLEVBQUUsQ0FBQyxzQkFBc0IsQ0FBQyxFQUFFLFNBQVMsQ0FBQyxFQUFFLElBQUksRUFBQyxNQUFNLEtBQ3BGLFFBQVEsQ0FDTixDQUNELENBQ1AsQ0FBQTtDQUFBLENBQUM7QUFFRixNQUFNLE1BQU0sR0FBcUIsQ0FBQyxFQUFzQixFQUFFLEVBQUU7UUFBMUIsRUFBRSxTQUFTLE9BQVcsRUFBTixJQUFJLGNBQXBCLGFBQXNCLENBQUY7SUFBTyxPQUFBLENBQzNELDRDQUFRLElBQUksSUFBRSxJQUFJLEVBQUMsY0FBYyxFQUFDLFNBQVMsRUFBRSxVQUFVLENBQUMsRUFBRSxDQUFDLFdBQVcsQ0FBQyxFQUFFLFNBQVMsQ0FBQyxJQUFJLENBQ3hGLENBQUE7Q0FBQSxDQUFDO0FBRUYsTUFBTSxNQUFNLEdBQXFCLENBQUMsRUFBc0IsRUFBRSxFQUFFO1FBQTFCLEVBQUUsU0FBUyxPQUFXLEVBQU4sSUFBSSxjQUFwQixhQUFzQixDQUFGO0lBQU8sT0FBQSxDQUMzRCw0Q0FBUSxJQUFJLElBQUUsSUFBSSxFQUFDLGNBQWMsRUFBQyxTQUFTLEVBQUUsVUFBVSxDQUFDLEVBQUUsQ0FBQyxtQkFBbUIsQ0FBQyxFQUFFLFNBQVMsQ0FBQyxJQUFJLENBQ2hHLENBQUE7Q0FBQSxDQUFDO0FBRUYsTUFBTSxPQUFPLEdBQXlCLENBQUMsRUFBc0IsRUFBRSxFQUFFO1FBQTFCLEVBQUUsU0FBUyxPQUFXLEVBQU4sSUFBSSxjQUFwQixhQUFzQixDQUFGO0lBQU8sT0FBQSxDQUNoRSw0QkFBSSxJQUFJLEVBQUMsY0FBYztRQUNyQiw0Q0FBUSxJQUFJLElBQUUsSUFBSSxFQUFDLE9BQU8sRUFBQyxTQUFTLEVBQUUsVUFBVSxDQUFDLEVBQUUsQ0FBQyxxQkFBcUIsQ0FBQyxFQUFFLFNBQVMsQ0FBQyxJQUFJLENBQ3ZGLENBQ04sQ0FBQTtDQUFBLENBQUM7QUFFRixNQUFNLE9BQU8sR0FBcUIsQ0FBQyxFQUFzQixFQUFFLEVBQUU7UUFBMUIsRUFBRSxTQUFTLE9BQVcsRUFBTixJQUFJLGNBQXBCLGFBQXNCLENBQUY7SUFBTyxPQUFBLENBQzVELDBDQUFJLElBQUksRUFBQyxXQUFXLElBQUssSUFBSSxJQUFFLFNBQVMsRUFBRSxVQUFVLENBQUMsRUFBRSxDQUFDLDBCQUEwQixDQUFDLEVBQUUsU0FBUyxDQUFDLElBQUksQ0FDcEcsQ0FBQTtDQUFBLENBQUM7QUFFRixNQUFNLElBQUksR0FBK0MsQ0FBQyxFQUE4QixFQUFFLEVBQUU7UUFBbEMsRUFBRSxTQUFTLEVBQUUsTUFBTSxPQUFXLEVBQU4sSUFBSSxjQUE1Qix1QkFBOEIsQ0FBRjtJQUFPLE9BQUEsQ0FDM0YsNEJBQUksSUFBSSxFQUFDLGNBQWM7UUFDckIsMkNBQ00sSUFBSSxJQUNSLElBQUksRUFBQyxVQUFVLEVBQ2YsU0FBUyxFQUFFLFVBQVUsQ0FDbkIsRUFBRSxDQUFDLDZGQUE2RixFQUFFO2dCQUNoRyxjQUFjLEVBQUUsQ0FBQyxNQUFNO2dCQUN2QixpQkFBaUIsRUFBRSxDQUFDLENBQUMsTUFBTTthQUM1QixDQUFDLEVBQ0YsU0FBUyxDQUNWLElBQ0QsQ0FDQyxDQUNOLENBQUE7Q0FBQSxDQUFDO0FBRUYsVUFBVSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7QUFDM0IsVUFBVSxDQUFDLE1BQU0sR0FBRyxNQUFNLENBQUM7QUFDM0IsVUFBVSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUM7QUFDN0IsVUFBVSxDQUFDLElBQUksR0FBRyxJQUFJLENBQUM7QUFDdkIsVUFBVSxDQUFDLE9BQU8sR0FBRyxPQUFPLENBQUMifQ==
|