@aivenio/aquarium 1.13.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.
Files changed (41) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/_variables_timescale.scss +1 -1
  3. package/dist/atoms.cjs +190 -106
  4. package/dist/atoms.mjs +189 -106
  5. package/dist/src/atoms/DataList/DataList.d.ts +3 -1
  6. package/dist/src/atoms/DataList/DataList.js +5 -5
  7. package/dist/src/atoms/Navigation/Navigation.d.ts +20 -0
  8. package/dist/src/atoms/Navigation/Navigation.js +49 -0
  9. package/dist/src/atoms/PageHeader/PageHeader.d.ts +13 -0
  10. package/dist/src/atoms/PageHeader/PageHeader.js +43 -0
  11. package/dist/src/atoms/Table/Table.d.ts +4 -3
  12. package/dist/src/atoms/Table/Table.js +17 -7
  13. package/dist/src/atoms/index.d.ts +1 -0
  14. package/dist/src/atoms/index.js +2 -1
  15. package/dist/src/molecules/Button/Button.d.ts +1 -1
  16. package/dist/src/molecules/Button/Button.js +4 -4
  17. package/dist/src/molecules/DataList/DataList.d.ts +3 -3
  18. package/dist/src/molecules/DataList/DataList.js +19 -6
  19. package/dist/src/molecules/DataTable/DataTable.d.ts +3 -3
  20. package/dist/src/molecules/DataTable/DataTable.js +18 -6
  21. package/dist/src/molecules/DropdownMenu/DropdownMenu.d.ts +11 -5
  22. package/dist/src/molecules/DropdownMenu/DropdownMenu.js +2 -1
  23. package/dist/src/molecules/Modal/Modal.d.ts +5 -0
  24. package/dist/src/molecules/Modal/Modal.js +4 -3
  25. package/dist/src/molecules/Navigation/Navigation.d.ts +19 -0
  26. package/dist/src/molecules/Navigation/Navigation.js +27 -0
  27. package/dist/src/molecules/PageHeader/PageHeader.d.ts +2 -0
  28. package/dist/src/molecules/PageHeader/PageHeader.js +10 -9
  29. package/dist/src/molecules/Stepper/Stepper.js +2 -1
  30. package/dist/src/molecules/index.d.ts +1 -0
  31. package/dist/src/molecules/index.js +2 -1
  32. package/dist/src/utils/table/types.d.ts +19 -1
  33. package/dist/src/utils/table/types.js +2 -1
  34. package/dist/styles.css +29 -16
  35. package/dist/styles_timescaledb.css +29 -16
  36. package/dist/system.cjs +1661 -1453
  37. package/dist/system.mjs +1219 -1012
  38. package/dist/tokens.json +4 -4
  39. package/dist/tsconfig.module.tsbuildinfo +1 -1
  40. package/dist/types/tailwindGenerated.d.ts +1 -1
  41. package/package.json +2 -2
package/dist/atoms.mjs CHANGED
@@ -246,7 +246,7 @@ var require_tokens = __commonJS({
246
246
  style: {
247
247
  fontFamily: "Inter",
248
248
  fontSize: "16px",
249
- fontWeight: 600,
249
+ fontWeight: 500,
250
250
  fontStyle: "normal",
251
251
  lineHeight: 1.5,
252
252
  textTransform: "none"
@@ -272,7 +272,7 @@ var require_tokens = __commonJS({
272
272
  style: {
273
273
  fontFamily: "Inter",
274
274
  fontSize: "14px",
275
- fontWeight: 600,
275
+ fontWeight: 500,
276
276
  fontStyle: "normal",
277
277
  lineHeight: 1.42,
278
278
  textTransform: "none"
@@ -806,7 +806,7 @@ var require_tokens = __commonJS({
806
806
  style: {
807
807
  fontFamily: "Inter",
808
808
  fontSize: "16px",
809
- fontWeight: 600,
809
+ fontWeight: 500,
810
810
  fontStyle: "normal",
811
811
  lineHeight: 1.5,
812
812
  textTransform: "none"
@@ -832,7 +832,7 @@ var require_tokens = __commonJS({
832
832
  style: {
833
833
  fontFamily: "Inter",
834
834
  fontSize: "14px",
835
- fontWeight: 600,
835
+ fontWeight: 500,
836
836
  fontStyle: "normal",
837
837
  lineHeight: 1.42,
838
838
  textTransform: "none"
@@ -2582,17 +2582,20 @@ var asButton = (Component, isDropdownButton) => {
2582
2582
  className: classNames(
2583
2583
  UNSAFE_className,
2584
2584
  !isIconOnlyButton && COLOR_CLASSNAMES[kind],
2585
- tw("inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative", {
2586
- "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,
2587
- "typography-default-strong": !dense && !isIconOnlyButton && kind !== "text",
2588
- "typography-small-strong": dense && !isIconOnlyButton,
2589
- "py-3 px-4": !dense && isButton,
2590
- "py-2 px-3": dense && isButton,
2591
- "py-3": !dense && isGhost,
2592
- "py-2": dense && isGhost,
2593
- "block w-full": fullWidth && !isIconOnlyButton,
2594
- "cursor-not-allowed": !!disabled || !!loading2
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/Popover/Popover.tsx
3511
+ // src/atoms/Navigation/Navigation.tsx
3509
3512
  import React21 from "react";
3510
- var PopoverPanel = React21.forwardRef((_a, ref) => {
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__ */ React21.createElement("div", __spreadValues({
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 = React21.forwardRef((props, ref) => /* @__PURE__ */ React21.createElement("div", __spreadProps(__spreadValues({
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 React22 from "react";
3534
- var Header = (_a) => {
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__ */ React22.createElement("div", __spreadProps(__spreadValues({}, rest), {
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__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
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__ */ React22.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
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 Footer = (_a) => {
3621
+ var Footer2 = (_a) => {
3556
3622
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
3557
- return /* @__PURE__ */ React22.createElement("div", __spreadProps(__spreadValues({}, rest), {
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__ */ React22.createElement("div", __spreadProps(__spreadValues({}, rest), {
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 React23 from "react";
3577
- var RadioButton = React23.forwardRef(
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__ */ React23.createElement("input", __spreadProps(__spreadValues({
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 React24 from "react";
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 = React24.Children.map(children, (c) => {
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 = React24.forwardRef(
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__ */ React24.createElement("div", __spreadValues({
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 = React24.forwardRef((_a, ref) => {
3718
+ var Input = React25.forwardRef((_a, ref) => {
3653
3719
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
3654
- return /* @__PURE__ */ React24.createElement("input", __spreadValues({
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 = React24.forwardRef(
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__ */ React24.createElement("ul", __spreadValues({
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 = React24.forwardRef(
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__ */ React24.createElement("li", __spreadProps(__spreadValues({
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 = React24.forwardRef((_a, ref) => {
3754
+ var EmptyStateContainer2 = React25.forwardRef((_a, ref) => {
3689
3755
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
3690
- return /* @__PURE__ */ React24.createElement("li", __spreadValues({
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 Divider = (props) => /* @__PURE__ */ React24.createElement("div", __spreadValues({
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 = React24.forwardRef((_a, ref) => {
3764
+ var Group2 = React25.forwardRef((_a, ref) => {
3699
3765
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
3700
- return /* @__PURE__ */ React24.createElement("li", __spreadValues({
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 Item2 = React24.forwardRef(
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__ */ React24.createElement("li", __spreadValues({
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__ */ React24.createElement("span", {
3788
+ }, props), /* @__PURE__ */ React25.createElement("span", {
3723
3789
  className: tw("grow flex gap-x-3")
3724
- }, children), selected && /* @__PURE__ */ React24.createElement(InlineIcon, {
3790
+ }, children), selected && /* @__PURE__ */ React25.createElement(InlineIcon, {
3725
3791
  icon: import_tick3.default
3726
3792
  }));
3727
3793
  }
3728
3794
  );
3729
- var ActionItem = React24.forwardRef(
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__ */ React24.createElement("li", __spreadValues({
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__ */ React24.createElement(InlineIcon, {
3809
+ }, props), icon && /* @__PURE__ */ React25.createElement(InlineIcon, {
3744
3810
  icon
3745
3811
  }), children);
3746
3812
  }
3747
3813
  );
3748
- var Toggle = React24.forwardRef((_a, ref) => {
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__ */ React24.createElement("button", __spreadProps(__spreadValues({
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__ */ React24.createElement(InlineIcon, {
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: Item2,
3836
+ Item: Item3,
3771
3837
  ActionItem,
3772
3838
  Toggle
3773
3839
  };
3774
3840
 
3775
3841
  // src/atoms/Stepper/Stepper.tsx
3776
- import React25 from "react";
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__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
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__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
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__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
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__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
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__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), {
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__ */ React25.createElement(InlineIcon, {
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 React26 from "react";
3858
- var Switch = React26.forwardRef(
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__ */ React26.createElement("span", {
3927
+ return /* @__PURE__ */ React27.createElement("span", {
3862
3928
  className: tw("relative inline-flex justify-center items-center self-center group")
3863
- }, /* @__PURE__ */ React26.createElement("input", __spreadProps(__spreadValues({
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__ */ React26.createElement("span", {
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,66 +3958,82 @@ var Switch = React26.forwardRef(
3892
3958
  );
3893
3959
 
3894
3960
  // src/atoms/Table/Table.tsx
3895
- import React27 from "react";
3961
+ import React28 from "react";
3896
3962
  var import_chevronDown3 = __toESM(require_chevronDown());
3897
3963
  var import_chevronUp2 = __toESM(require_chevronUp());
3898
- var HeadContext = React27.createContext(null);
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__ */ React27.createElement("table", __spreadProps(__spreadValues({}, rest), {
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__ */ React27.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React27.createElement("tr", null, /* @__PURE__ */ React27.createElement(HeadContext.Provider, {
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__ */ React27.createElement("tbody", __spreadValues({}, rest), children);
3981
+ return /* @__PURE__ */ React28.createElement("tbody", __spreadValues({}, rest), children);
3916
3982
  };
3917
- var rowClassNames = tw("children:border-grey-10 children:last:border-b-0 hover:bg-grey-0");
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__ */ React27.createElement("tr", __spreadProps(__spreadValues({}, rest), {
3986
+ return /* @__PURE__ */ React28.createElement("tr", __spreadProps(__spreadValues({}, rest), {
3921
3987
  className: classNames(rowClassNames, className)
3922
3988
  }), children);
3923
3989
  };
3924
3990
  var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
3925
- var getBodyCellClassNames = (table = true) => tw("text-grey-70 py-3", {
3991
+ var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-grey-70 py-3", {
3926
3992
  "h-[50px]": table,
3927
- "min-h-[50px]": !table
3993
+ "min-h-[50px]": !table,
3994
+ "sticky z-10 bg-white group-hover:bg-grey-0": Boolean(stickyColumn),
3995
+ "left-0": stickyColumn === "left",
3996
+ "right-0": stickyColumn === "right"
3928
3997
  });
3929
3998
  var getAlignClassNames = (align) => tw({ "text-right": align === "right", "text-center": align === "center" });
3930
- var getHeadCellClassNames = (sticky = true) => {
3999
+ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
3931
4000
  const common = tw("py-[14px] text-left bg-white border-grey-40 text-grey-50 font-normal");
3932
- return sticky ? classNames(common, tw("sticky top-0 z-10")) : common;
4001
+ return sticky ? classNames(
4002
+ common,
4003
+ tw("sticky top-0", {
4004
+ "z-10": !stickyColumn,
4005
+ "z-20": Boolean(stickyColumn),
4006
+ "left-0": stickyColumn === "left",
4007
+ "right-0": stickyColumn === "right"
4008
+ })
4009
+ ) : common;
3933
4010
  };
3934
4011
  var TableCell = (_a) => {
3935
- var _b = _a, { children, className, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "align"]);
3936
- const headContext = React27.useContext(HeadContext);
3937
- return headContext ? /* @__PURE__ */ React27.createElement("th", __spreadProps(__spreadValues({}, rest), {
4012
+ var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
4013
+ const headContext = React28.useContext(HeadContext);
4014
+ return headContext ? /* @__PURE__ */ React28.createElement("th", __spreadProps(__spreadValues({}, rest), {
4015
+ className: classNames(
4016
+ cellClassNames,
4017
+ getHeadCellClassNames(headContext.sticky, stickyColumn),
4018
+ getAlignClassNames(align),
4019
+ className
4020
+ )
4021
+ }), children) : /* @__PURE__ */ React28.createElement("td", __spreadProps(__spreadValues({}, rest), {
3938
4022
  className: classNames(
3939
4023
  cellClassNames,
3940
- getHeadCellClassNames(headContext.sticky),
4024
+ getBodyCellClassNames(true, stickyColumn),
3941
4025
  getAlignClassNames(align),
3942
4026
  className
3943
4027
  )
3944
- }), children) : /* @__PURE__ */ React27.createElement("td", __spreadProps(__spreadValues({}, rest), {
3945
- className: classNames(cellClassNames, getBodyCellClassNames(), getAlignClassNames(align), className)
3946
4028
  }), children);
3947
4029
  };
3948
4030
  var TableSelectCell = (_a) => {
3949
4031
  var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
3950
- return /* @__PURE__ */ React27.createElement(Table.Cell, {
4032
+ return /* @__PURE__ */ React28.createElement(Table.Cell, {
3951
4033
  className: tw("leading-[0px]")
3952
- }, props.type === "radio" ? /* @__PURE__ */ React27.createElement(RadioButton, __spreadValues({
4034
+ }, props.type === "radio" ? /* @__PURE__ */ React28.createElement(RadioButton, __spreadValues({
3953
4035
  "aria-label": ariaLabel
3954
- }, props)) : /* @__PURE__ */ React27.createElement(Checkbox, __spreadValues({
4036
+ }, props)) : /* @__PURE__ */ React28.createElement(Checkbox, __spreadValues({
3955
4037
  "aria-label": ariaLabel
3956
4038
  }, props)));
3957
4039
  };
@@ -3961,39 +4043,39 @@ var getSortCellIconClassNames = (active) => {
3961
4043
  };
3962
4044
  var TableSortCell = (_a) => {
3963
4045
  var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
3964
- return /* @__PURE__ */ React27.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
4046
+ return /* @__PURE__ */ React28.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), {
3965
4047
  "aria-sort": direction
3966
- }), /* @__PURE__ */ React27.createElement("span", {
4048
+ }), /* @__PURE__ */ React28.createElement("span", {
3967
4049
  className: getSortCellButtonClassNames(rest.align),
3968
4050
  role: "button",
3969
4051
  tabIndex: -1,
3970
4052
  onClick
3971
- }, children, /* @__PURE__ */ React27.createElement("div", {
4053
+ }, children, /* @__PURE__ */ React28.createElement("div", {
3972
4054
  "data-sort-icons": true,
3973
4055
  className: tw("flex flex-col", {
3974
4056
  "invisible group-hover:visible": direction === "none"
3975
4057
  })
3976
- }, /* @__PURE__ */ React27.createElement(InlineIcon, {
4058
+ }, /* @__PURE__ */ React28.createElement(InlineIcon, {
3977
4059
  icon: import_chevronUp2.default,
3978
4060
  className: getSortCellIconClassNames(direction === "descending")
3979
- }), /* @__PURE__ */ React27.createElement(InlineIcon, {
4061
+ }), /* @__PURE__ */ React28.createElement(InlineIcon, {
3980
4062
  icon: import_chevronDown3.default,
3981
4063
  className: getSortCellIconClassNames(direction === "ascending")
3982
4064
  }))));
3983
4065
  };
3984
- var Item3 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React27.createElement("div", {
4066
+ var Item4 = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React28.createElement("div", {
3985
4067
  className: tw("flex gap-4 items-center")
3986
- }, image && /* @__PURE__ */ React27.createElement("img", {
4068
+ }, image && /* @__PURE__ */ React28.createElement("img", {
3987
4069
  src: image,
3988
4070
  alt: imageAlt,
3989
4071
  style: { width: imageSize, height: imageSize }
3990
- }), /* @__PURE__ */ React27.createElement("div", null, title, caption && /* @__PURE__ */ React27.createElement(Typography2.Caption, null, caption)));
3991
- Table.Head = React27.memo(TableHead);
3992
- Table.Body = React27.memo(TableBody);
3993
- Table.Row = React27.memo(TableRow);
3994
- Table.Cell = React27.memo(TableCell);
3995
- Table.SortCell = React27.memo(TableSortCell);
3996
- Table.SelectCell = React27.memo(TableSelectCell);
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);
3997
4079
  export {
3998
4080
  Alert,
3999
4081
  Card,
@@ -4002,9 +4084,10 @@ export {
4002
4084
  DIALOG_ICONS_AND_COLORS,
4003
4085
  DropdownMenu,
4004
4086
  InputGroup,
4005
- Item3 as Item,
4087
+ Item4 as Item,
4006
4088
  Link,
4007
4089
  Modal,
4090
+ Navigation,
4008
4091
  Popover,
4009
4092
  PopoverDialog,
4010
4093
  RadioButton,
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { type SortDirection, type TextAlign } from '../../../src/utils/table/types';
2
+ import { type SortDirection, type StickyColumn, type TextAlign } from '../../../src/utils/table/types';
3
3
  declare type DivProps = React.HTMLProps<HTMLDivElement>;
4
4
  declare type ComposedDataListProps = React.FC<DivProps> & {
5
5
  Cell: typeof Cell;
@@ -11,9 +11,11 @@ export declare const DataList: ComposedDataListProps;
11
11
  declare const HeadCell: React.FC<DivProps & {
12
12
  sticky?: boolean;
13
13
  align?: TextAlign;
14
+ stickyColumn?: StickyColumn;
14
15
  }>;
15
16
  declare const Cell: React.FC<DivProps & {
16
17
  align?: TextAlign;
18
+ stickyColumn?: StickyColumn;
17
19
  }>;
18
20
  declare const Row: React.FC<DivProps>;
19
21
  declare const SortCell: React.FC<DivProps & {