@movable/ui 0.28.0 → 0.28.2

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.
@@ -7,8 +7,9 @@ type IFilterDrawer = DrawerProps & {
7
7
  leftOffset?: string;
8
8
  filterContent: JSX.Element;
9
9
  headerLabel?: string;
10
+ isComponentLevelDrawer?: boolean;
10
11
  };
11
12
  export declare const defaultFilterDrawerWidth = 280;
12
13
  export declare function InkPersistentFilterDrawer({ isOpen, handleDrawerClose, children, drawerWidth, leftOffset, //primary nav width when closed and when open
13
- filterContent, headerLabel, sx, }: PropsWithChildren<IFilterDrawer>): import("react/jsx-runtime").JSX.Element;
14
+ filterContent, headerLabel, sx, isComponentLevelDrawer, }: PropsWithChildren<IFilterDrawer>): import("react/jsx-runtime").JSX.Element;
14
15
  export {};
package/lib/index.mjs CHANGED
@@ -8731,9 +8731,10 @@ function S0({
8731
8731
  //primary nav width when closed and when open
8732
8732
  filterContent: i,
8733
8733
  headerLabel: a = "Filters",
8734
- sx: c
8734
+ sx: c,
8735
+ isComponentLevelDrawer: l = !1
8735
8736
  }) {
8736
- return R.jsxs(Qt, { sx: { display: "flex" }, children: [R.jsx(ms, { sx: {
8737
+ return R.jsxs(Qt, { sx: { display: "flex", width: "100%" }, children: [R.jsx(ms, { sx: {
8737
8738
  ...c,
8738
8739
  width: n,
8739
8740
  flexShrink: 0,
@@ -8743,7 +8744,8 @@ function S0({
8743
8744
  }
8744
8745
  }, PaperProps: {
8745
8746
  style: {
8746
- left: o
8747
+ left: o,
8748
+ ...l && { position: "absolute" }
8747
8749
  },
8748
8750
  variant: "outlined"
8749
8751
  }, variant: "persistent", anchor: "left", open: e, children: R.jsxs(Ze, { direction: "column", spacing: 3, sx: { p: 2 }, children: [R.jsxs(Ze, { direction: "row", alignItems: "center", children: [R.jsxs(Ze, { direction: "row", alignItems: "center", children: [R.jsx(xr, { sx: { color: "text.primary" }, fontSize: "small", children: "filter_list_icon" }), R.jsx(lt, { sx: { ml: 2 }, "data-cy": "drawer-header", children: a })] }), R.jsx(hs, { onClick: t, sx: { ml: "auto" }, children: R.jsx(xr, { fontSize: "small", children: "close_icon" }) })] }), i] }) }), R.jsx(Pp, { open: e, children: r })] });
@@ -8879,19 +8881,19 @@ const A0 = ({ name: e, options: t, onChange: r, onBlur: n, value: o, ref: i, dir
8879
8881
  px: 3,
8880
8882
  py: 2,
8881
8883
  height: "100%",
8882
- borderColor: o === u ? "blue800" : "neutral200",
8883
- borderWidth: o === u ? 2 : 1,
8884
- borderStyle: "solid",
8884
+ border: 0,
8885
8885
  bgcolor: o === u ? "primary.selected" : "inherit",
8886
+ outlineWidth: o === u ? 2 : 1,
8886
8887
  "&:hover": {
8887
- bgcolor: "primary.hover",
8888
- borderColor: "outlinedBorder"
8888
+ bgcolor: o === u ? "primary.selected" : "primary.hover",
8889
+ outlineColor: (v) => v.palette.primary.outlinedBorder
8889
8890
  },
8890
8891
  "&:focus-within": {
8891
- bgcolor: "white",
8892
- borderColor: "primary.focus",
8893
- borderWidth: 2
8892
+ bgcolor: "white"
8894
8893
  },
8894
+ outlineStyle: "solid",
8895
+ borderRadius: 1,
8896
+ outlineColor: (v) => o === u ? v.palette.blue800 : v.palette.neutral200,
8895
8897
  ...c
8896
8898
  }, children: R.jsxs(Ze, { direction: "column", alignItems: "center", width: "100%", children: [d && R.jsx(Qt, { sx: {
8897
8899
  color: o === u ? "text.primary" : "action.active",