@bpfdev/oly-ui 1.0.9 → 1.0.10

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/index.d.mts CHANGED
@@ -1050,6 +1050,36 @@ interface FalconAuditTimelineProps {
1050
1050
  eventCardBg?: string;
1051
1051
  /** Text color for header */
1052
1052
  headerColor?: string;
1053
+ /**
1054
+ * Max height of the scrollable events grid area.
1055
+ * @default '280px'
1056
+ */
1057
+ eventsMaxHeight?: string;
1058
+ /**
1059
+ * Max width of the card. Set to '100%' to fill the container.
1060
+ * @default '1324px'
1061
+ */
1062
+ cardMaxWidth?: string;
1063
+ /**
1064
+ * Hide the scrollbar while keeping scroll functionality.
1065
+ * @default false
1066
+ */
1067
+ hideScrollbar?: boolean;
1068
+ /**
1069
+ * Scrollbar width in px (only applies when hideScrollbar is false).
1070
+ * @default '6px'
1071
+ */
1072
+ scrollbarWidth?: string;
1073
+ /**
1074
+ * Scrollbar thumb color.
1075
+ * @default '#D1D5DB'
1076
+ */
1077
+ scrollbarThumbColor?: string;
1078
+ /**
1079
+ * Scrollbar track color.
1080
+ * @default 'transparent'
1081
+ */
1082
+ scrollbarTrackColor?: string;
1053
1083
  /**
1054
1084
  * Merged onto the **time-controls row** `Box` (year selector + month pill strip).
1055
1085
  * The default includes `overflow: 'hidden !important'` to clip overflowing month pills;
package/dist/index.d.ts CHANGED
@@ -1050,6 +1050,36 @@ interface FalconAuditTimelineProps {
1050
1050
  eventCardBg?: string;
1051
1051
  /** Text color for header */
1052
1052
  headerColor?: string;
1053
+ /**
1054
+ * Max height of the scrollable events grid area.
1055
+ * @default '280px'
1056
+ */
1057
+ eventsMaxHeight?: string;
1058
+ /**
1059
+ * Max width of the card. Set to '100%' to fill the container.
1060
+ * @default '1324px'
1061
+ */
1062
+ cardMaxWidth?: string;
1063
+ /**
1064
+ * Hide the scrollbar while keeping scroll functionality.
1065
+ * @default false
1066
+ */
1067
+ hideScrollbar?: boolean;
1068
+ /**
1069
+ * Scrollbar width in px (only applies when hideScrollbar is false).
1070
+ * @default '6px'
1071
+ */
1072
+ scrollbarWidth?: string;
1073
+ /**
1074
+ * Scrollbar thumb color.
1075
+ * @default '#D1D5DB'
1076
+ */
1077
+ scrollbarThumbColor?: string;
1078
+ /**
1079
+ * Scrollbar track color.
1080
+ * @default 'transparent'
1081
+ */
1082
+ scrollbarTrackColor?: string;
1053
1083
  /**
1054
1084
  * Merged onto the **time-controls row** `Box` (year selector + month pill strip).
1055
1085
  * The default includes `overflow: 'hidden !important'` to clip overflowing month pills;
package/dist/index.js CHANGED
@@ -3628,6 +3628,12 @@ var FalconAuditTimeline = ({
3628
3628
  chevronLeftIcon,
3629
3629
  chevronRightIcon,
3630
3630
  exportIcon,
3631
+ eventsMaxHeight = "280px",
3632
+ cardMaxWidth = "1324px",
3633
+ hideScrollbar = false,
3634
+ scrollbarWidth = "6px",
3635
+ scrollbarThumbColor = "#D1D5DB",
3636
+ scrollbarTrackColor = "transparent",
3631
3637
  timeControlsRowSx
3632
3638
  }) => {
3633
3639
  const getInitialKey = () => {
@@ -3733,10 +3739,25 @@ var FalconAuditTimeline = ({
3733
3739
  {
3734
3740
  sx: {
3735
3741
  display: "flex !important",
3736
- alignItems: "center !important",
3742
+ alignItems: "flex-start !important",
3737
3743
  gap: "8px !important",
3738
3744
  width: "100% !important",
3739
- flexWrap: "wrap"
3745
+ flexWrap: "wrap",
3746
+ overflowY: "auto",
3747
+ maxHeight: eventsMaxHeight,
3748
+ paddingRight: hideScrollbar ? 0 : "4px",
3749
+ scrollbarWidth: hideScrollbar ? "none" : "auto",
3750
+ "&::-webkit-scrollbar": {
3751
+ width: hideScrollbar ? 0 : scrollbarWidth,
3752
+ display: hideScrollbar ? "none" : void 0
3753
+ },
3754
+ "&::-webkit-scrollbar-thumb": {
3755
+ backgroundColor: scrollbarThumbColor,
3756
+ borderRadius: "999px"
3757
+ },
3758
+ "&::-webkit-scrollbar-track": {
3759
+ backgroundColor: scrollbarTrackColor
3760
+ }
3740
3761
  },
3741
3762
  children: activeRuns.map((run, idx) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
3742
3763
  TimelineEventCard,
@@ -3826,9 +3847,9 @@ var FalconAuditTimeline = ({
3826
3847
  {
3827
3848
  sx: {
3828
3849
  width: "100% !important",
3829
- maxWidth: "1324px !important",
3850
+ maxWidth: `${cardMaxWidth} !important`,
3830
3851
  height: "auto !important",
3831
- minHeight: isZeroCount ? "166px !important" : "183.5px !important",
3852
+ minHeight: isZeroCount ? "166px !important" : "200px !important",
3832
3853
  padding: "16px !important",
3833
3854
  borderRadius: `${borderRadius} !important`,
3834
3855
  border: `${borderWidth} solid ${borderColor} !important`,
@@ -3861,7 +3882,9 @@ var FalconAuditTimeline = ({
3861
3882
  display: "flex !important",
3862
3883
  alignItems: "center !important",
3863
3884
  gap: "8px !important",
3864
- overflow: "hidden !important"
3885
+ overflowX: "auto",
3886
+ overflowY: "hidden",
3887
+ paddingBottom: "2px"
3865
3888
  },
3866
3889
  ...timeControlsRowSx ? [timeControlsRowSx] : []
3867
3890
  ],