@verma-consulting/design-library 0.1.35 → 0.1.37

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.mjs CHANGED
@@ -13,6 +13,7 @@ import {
13
13
  Typography,
14
14
  FormLabel
15
15
  } from "@mui/material";
16
+ import { alpha } from "@mui/material/styles";
16
17
  import { Clear } from "@mui/icons-material";
17
18
  import { makeStyles } from "@mui/styles";
18
19
  import { prettifyString } from "@verma-consulting/common-library";
@@ -21,12 +22,15 @@ var useStyles = makeStyles((theme) => ({
21
22
  defaultMode: {
22
23
  paddingTop: 14,
23
24
  paddingBottom: 14,
24
- paddingLeft: 8,
25
- paddingRight: 8,
25
+ paddingLeft: 12,
26
+ paddingRight: 12,
26
27
  cursor: "pointer",
28
+ borderRadius: 14,
29
+ border: "1px solid rgba(255,255,255,0.55)",
30
+ backdropFilter: "blur(14px) saturate(150%)",
31
+ background: "linear-gradient(160deg, rgba(255,255,255,0.9), rgba(245,249,255,0.72))",
27
32
  "&:hover": {
28
- borderRadius: 10,
29
- boxShadow: "rgba(100, 100, 111, 0.2) 0px 7px 29px 0px"
33
+ boxShadow: "rgba(15, 23, 42, 0.16) 0px 8px 24px"
30
34
  }
31
35
  },
32
36
  formLabel: {
@@ -123,7 +127,12 @@ var ClearableSelect = ({
123
127
  label,
124
128
  name,
125
129
  sx: {
126
- paddingRight: !isValueEmpty ? 2 : void 0
130
+ paddingRight: !isValueEmpty ? 2 : void 0,
131
+ borderRadius: 1.75,
132
+ backdropFilter: "blur(10px)",
133
+ "& .MuiOutlinedInput-notchedOutline": {
134
+ borderColor: alpha("#FFFFFF", 0.6)
135
+ }
127
136
  }
128
137
  }
129
138
  ),
@@ -175,6 +184,7 @@ var TabPanel_default = TabPanel;
175
184
  import * as React2 from "react";
176
185
  import MuiTablePagination from "@mui/material/TablePagination";
177
186
  import tablePaginationClasses from "@mui/material/TablePagination/tablePaginationClasses";
187
+ import { alpha as alpha2 } from "@mui/material/styles";
178
188
  import { jsx as jsx3 } from "react/jsx-runtime";
179
189
  function mergeSx(...parts) {
180
190
  const flat = [];
@@ -221,6 +231,8 @@ var rootSx = {
221
231
  boxSizing: "border-box",
222
232
  verticalAlign: "middle",
223
233
  bgcolor: "transparent",
234
+ backdropFilter: "blur(12px) saturate(150%)",
235
+ borderRadius: 2,
224
236
  py: 0.75,
225
237
  px: { xs: 1, sm: 1.5 },
226
238
  [`& .${tablePaginationClasses.toolbar}`]: {
@@ -266,11 +278,13 @@ var rootSx = {
266
278
  display: "flex",
267
279
  alignItems: "center",
268
280
  [`& .MuiIconButton-root`]: {
269
- borderRadius: 1.5,
281
+ borderRadius: 2,
270
282
  color: "text.secondary",
271
283
  padding: 0.5,
284
+ border: "1px solid",
285
+ borderColor: "divider",
272
286
  "&:hover": {
273
- bgcolor: "action.hover",
287
+ bgcolor: "action.selected",
274
288
  color: "text.primary"
275
289
  },
276
290
  "&.Mui-disabled": {
@@ -306,11 +320,19 @@ var TablePagination = React2.forwardRef(function TablePagination2(props, ref) {
306
320
  ...slotSelectRest,
307
321
  sx: mergeSx(
308
322
  (theme) => ({
309
- borderRadius: 1.5,
323
+ borderRadius: 2,
310
324
  minWidth: 64,
311
325
  fontSize: theme.typography.body2.fontSize,
326
+ backdropFilter: "blur(10px)",
327
+ backgroundColor: alpha2(
328
+ theme.palette.background.paper,
329
+ theme.palette.mode === "dark" ? 0.2 : 0.74
330
+ ),
312
331
  "& .MuiOutlinedInput-notchedOutline": {
313
- borderColor: "divider"
332
+ borderColor: alpha2(
333
+ "#FFFFFF",
334
+ theme.palette.mode === "dark" ? 0.16 : 0.56
335
+ )
314
336
  },
315
337
  "&:hover .MuiOutlinedInput-notchedOutline": {
316
338
  borderColor: "text.disabled"
@@ -351,12 +373,12 @@ var TablePagination_default = TablePagination;
351
373
 
352
374
  // src/index.tsx
353
375
  import {
354
- useTheme as useTheme10,
376
+ useTheme as useTheme12,
355
377
  styled as styled5,
356
378
  createTheme,
357
379
  ThemeProvider
358
380
  } from "@mui/material/styles";
359
- import { makeStyles as makeStyles5 } from "@mui/styles";
381
+ import { makeStyles as makeStyles4 } from "@mui/styles";
360
382
 
361
383
  // src/Logo.tsx
362
384
  import { memo } from "react";
@@ -496,6 +518,9 @@ import { useTheme as useTheme3 } from "@mui/material/styles";
496
518
  import { Close } from "@mui/icons-material";
497
519
  import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
498
520
  var BootstrapDialog = styled(Dialog)(({ theme }) => ({
521
+ "& .MuiDialog-paper": {
522
+ borderRadius: "24px"
523
+ },
499
524
  "& .MuiDialogContent-root": {
500
525
  padding: theme.spacing(4)
501
526
  },
@@ -568,9 +593,25 @@ var FormDialog = ({
568
593
  var FormDialog_default = FormDialog;
569
594
 
570
595
  // src/InputFileUpload.tsx
571
- import { styled as styled2 } from "@mui/material/styles";
596
+ import { alpha as alpha4, styled as styled2 } from "@mui/material/styles";
572
597
  import { Button } from "@mui/material";
573
598
  import { CloudUpload } from "@mui/icons-material";
599
+
600
+ // src/glassStyles.ts
601
+ import { alpha as alpha3 } from "@mui/material/styles";
602
+ var glassBorder = (theme) => `1px solid ${alpha3(
603
+ "#FFFFFF",
604
+ theme.palette.mode === "dark" ? 0.16 : 0.62
605
+ )}`;
606
+ var glassSurface = (theme) => ({
607
+ background: theme.palette.mode === "dark" ? `linear-gradient(160deg, ${alpha3("#1F2937", 0.78)} 0%, ${alpha3("#111827", 0.68)} 100%)` : `linear-gradient(160deg, ${alpha3("#FFFFFF", 0.88)} 0%, ${alpha3("#F5F9FF", 0.72)} 100%)`,
608
+ border: glassBorder(theme),
609
+ backdropFilter: "blur(18px) saturate(155%)",
610
+ WebkitBackdropFilter: "blur(18px) saturate(155%)",
611
+ boxShadow: theme.palette.mode === "dark" ? "0 16px 40px rgba(0,0,0,0.34)" : "0 14px 34px rgba(15, 23, 42, 0.12)"
612
+ });
613
+
614
+ // src/InputFileUpload.tsx
574
615
  import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
575
616
  var VisuallyHiddenInput = styled2("input")({
576
617
  clip: "rect(0 0 0 0)",
@@ -592,6 +633,18 @@ var InputFileUpload = ({ name = "", onChange = () => null, title = "" }) => /* @
592
633
  variant: "contained",
593
634
  tabIndex: -1,
594
635
  startIcon: /* @__PURE__ */ jsx6(CloudUpload, { fontSize: "inherit" }),
636
+ sx: {
637
+ ...(theme) => glassSurface(theme),
638
+ textTransform: "none",
639
+ borderRadius: 999,
640
+ px: 2.25,
641
+ py: 0.75,
642
+ color: "text.primary",
643
+ borderColor: (theme) => alpha4(theme.palette.primary.main, 0.24),
644
+ "&:hover": {
645
+ borderColor: (theme) => alpha4(theme.palette.primary.main, 0.42)
646
+ }
647
+ },
595
648
  children: [
596
649
  title,
597
650
  /* @__PURE__ */ jsx6(VisuallyHiddenInput, { type: "file", name, onChange })
@@ -603,7 +656,7 @@ var InputFileUpload_default = InputFileUpload;
603
656
  // src/ImageUploadAvatar.tsx
604
657
  import { useEffect, useRef, useState } from "react";
605
658
  import { Box as Box3, IconButton as IconButton3 } from "@mui/material";
606
- import { styled as styled3 } from "@mui/material/styles";
659
+ import { alpha as alpha5, styled as styled3 } from "@mui/material/styles";
607
660
  import { CloudUpload as CloudUpload2, Close as CloseIcon } from "@mui/icons-material";
608
661
  import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
609
662
  var HiddenInput = styled3("input")({
@@ -623,8 +676,8 @@ var Wrapper = styled3(Box3, {
623
676
  width: size,
624
677
  height: size,
625
678
  borderRadius: variant === "circular" ? "50%" : variant === "rounded" ? theme.shape.borderRadius * 2 : 0,
626
- border: `1px dashed ${theme.palette.grey[400]}`,
627
- backgroundColor: theme.palette.grey[200],
679
+ ...glassSurface(theme),
680
+ border: `1px dashed ${alpha5(theme.palette.primary.main, 0.28)}`,
628
681
  overflow: "hidden",
629
682
  cursor: "pointer",
630
683
  display: "flex",
@@ -663,9 +716,11 @@ var ClearButton = styled3(IconButton3)(({ theme }) => ({
663
716
  position: "absolute",
664
717
  top: -8,
665
718
  right: -8,
666
- background: theme.palette.background.paper,
719
+ ...glassSurface(theme),
667
720
  boxShadow: theme.shadows[2],
668
- "&:hover": { background: theme.palette.background.paper }
721
+ "&:hover": {
722
+ background: alpha5(theme.palette.background.paper, 0.9)
723
+ }
669
724
  }));
670
725
  var ImageUploadAvatar = ({
671
726
  name = "image",
@@ -748,7 +803,7 @@ import {
748
803
  Grow,
749
804
  IconButton as IconButton4
750
805
  } from "@mui/material";
751
- import { alpha, useTheme as useTheme4 } from "@mui/material/styles";
806
+ import { alpha as alpha6, useTheme as useTheme4 } from "@mui/material/styles";
752
807
  import CloseIcon2 from "@mui/icons-material/Close";
753
808
  import { constants } from "@verma-consulting/common-library";
754
809
  import { jsx as jsx8 } from "react/jsx-runtime";
@@ -824,7 +879,7 @@ var FormSnackBar = ({
824
879
  const typeStyles = (severity2) => {
825
880
  const baseHex = severity2 === "success" ? DULL_SNACKBAR_COLORS.success : severity2 === "error" ? DULL_SNACKBAR_COLORS.error : severity2 === "warning" ? DULL_SNACKBAR_COLORS.warning : DULL_SNACKBAR_COLORS.info;
826
881
  return {
827
- bg: theme.palette.mode === "dark" ? alpha(baseHex, 0.34) : alpha(baseHex, 0.24),
882
+ bg: theme.palette.mode === "dark" ? alpha6(baseHex, 0.34) : alpha6(baseHex, 0.24),
828
883
  text: theme.palette.mode === "dark" ? "rgba(255,255,255,0.94)" : baseHex,
829
884
  icon: baseHex
830
885
  };
@@ -865,7 +920,7 @@ var FormSnackBar = ({
865
920
  color: colors.text,
866
921
  backdropFilter: "blur(14px) saturate(150%)",
867
922
  WebkitBackdropFilter: "blur(14px) saturate(150%)",
868
- border: `1px solid ${alpha("#FFFFFF", theme.palette.mode === "dark" ? 0.16 : 0.55)}`,
923
+ border: `1px solid ${alpha6("#FFFFFF", theme.palette.mode === "dark" ? 0.16 : 0.55)}`,
869
924
  "& .MuiAlert-icon": {
870
925
  color: colors.icon
871
926
  },
@@ -898,6 +953,7 @@ var FormSnackBar_default = FormSnackBar;
898
953
  // src/Loader.tsx
899
954
  import { CircularProgress, Backdrop } from "@mui/material";
900
955
  import { makeStyles as makeStyles2 } from "@mui/styles";
956
+ import { alpha as alpha7 } from "@mui/material/styles";
901
957
  import { jsx as jsx9 } from "react/jsx-runtime";
902
958
  var useStyles2 = makeStyles2({
903
959
  "@keyframes pulse": {
@@ -917,10 +973,25 @@ var Loader = ({ size = 48, color = "primary" }) => {
917
973
  open: true,
918
974
  sx: {
919
975
  zIndex: (theme) => theme.zIndex.modal + 1,
920
- backgroundColor: "rgba(255, 255, 255, 0.15)",
921
- backdropFilter: "blur(2px)"
976
+ backgroundColor: "transparent",
977
+ backdropFilter: "blur(10px) saturate(145%)"
922
978
  },
923
- children: /* @__PURE__ */ jsx9(CircularProgress, { size, color, thickness: 3.5, className: classes.progress })
979
+ children: /* @__PURE__ */ jsx9(
980
+ CircularProgress,
981
+ {
982
+ size,
983
+ color,
984
+ thickness: 3.4,
985
+ className: classes.progress,
986
+ sx: {
987
+ p: 1,
988
+ borderRadius: "50%",
989
+ backgroundColor: "transparent",
990
+ border: (theme) => `1px solid ${alpha7("#FFFFFF", theme.palette.mode === "dark" ? 0.14 : 0.56)}`,
991
+ boxShadow: (theme) => theme.palette.mode === "dark" ? "0 10px 24px rgba(0,0,0,0.32)" : "0 10px 20px rgba(15,23,42,0.14)"
992
+ }
993
+ }
994
+ )
924
995
  }
925
996
  );
926
997
  };
@@ -1023,22 +1094,9 @@ var EmptyState = ({ label, m = 8, icon }) => {
1023
1094
  var EmptyState_default = EmptyState;
1024
1095
 
1025
1096
  // src/Pill.tsx
1026
- import { Button as Button2, Typography as Typography4, Icon, useTheme as useTheme7 } from "@mui/material";
1027
- import { makeStyles as makeStyles3 } from "@mui/styles";
1097
+ import { Button as Button2, Typography as Typography4, Icon } from "@mui/material";
1098
+ import { alpha as alpha8, useTheme as useTheme7 } from "@mui/material/styles";
1028
1099
  import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
1029
- var useStyles3 = makeStyles3((theme) => ({
1030
- button: {
1031
- padding: "4px 8px 4px 8px",
1032
- color: "black",
1033
- borderColor: "black",
1034
- borderStyle: "solid",
1035
- border: "6px",
1036
- borderRadius: "24px !important",
1037
- "&:hover": {
1038
- color: theme.palette.primary[500]
1039
- }
1040
- }
1041
- }));
1042
1100
  var Pill = ({
1043
1101
  variant = "filter",
1044
1102
  leftIcon = null,
@@ -1050,18 +1108,26 @@ var Pill = ({
1050
1108
  disabled = false
1051
1109
  }) => {
1052
1110
  const theme = useTheme7();
1053
- const classes = useStyles3();
1054
1111
  return /* @__PURE__ */ jsx12(
1055
1112
  Button2,
1056
1113
  {
1057
1114
  variant: isSelected ? "contained" : "outlined",
1058
1115
  color: color || "primary",
1059
1116
  sx: {
1060
- borderRadius: "48px",
1061
- padding: "8px 24px",
1062
- textTransform: "none"
1117
+ ...glassSurface(theme),
1118
+ borderRadius: "999px",
1119
+ padding: "8px 16px",
1120
+ minHeight: 38,
1121
+ textTransform: "none",
1122
+ borderColor: isSelected ? alpha8(theme.palette.primary.main, 0.34) : alpha8(theme.palette.text.primary, 0.18),
1123
+ color: isSelected ? "primary.main" : "text.primary",
1124
+ "&:hover": {
1125
+ borderColor: alpha8(theme.palette.primary.main, 0.42),
1126
+ boxShadow: theme.palette.mode === "dark" ? "0 10px 22px rgba(0,0,0,0.34)" : "0 10px 20px rgba(15,23,42,0.14)"
1127
+ }
1063
1128
  },
1064
1129
  onClick,
1130
+ disabled,
1065
1131
  children: /* @__PURE__ */ jsxs7("div", { style: { display: "flex", alignItems: "center" }, children: [
1066
1132
  leftIcon && /* @__PURE__ */ jsx12(
1067
1133
  Icon,
@@ -1073,7 +1139,7 @@ var Pill = ({
1073
1139
  "data-testid": "pill-left-icon"
1074
1140
  }
1075
1141
  ),
1076
- /* @__PURE__ */ jsx12(Typography4, { variant: "subtitle", color: "inherit", fontWeight: "bold", children: label }),
1142
+ /* @__PURE__ */ jsx12(Typography4, { variant: "subtitle2", color: "inherit", fontWeight: 700, children: label }),
1077
1143
  rightIcon && /* @__PURE__ */ jsx12(
1078
1144
  Icon,
1079
1145
  {
@@ -1091,7 +1157,7 @@ var Pill = ({
1091
1157
  var Pill_default = Pill;
1092
1158
 
1093
1159
  // src/IOSSwitch.tsx
1094
- import { styled as styled4 } from "@mui/material/styles";
1160
+ import { alpha as alpha9, styled as styled4 } from "@mui/material/styles";
1095
1161
  import Switch from "@mui/material/Switch";
1096
1162
  import { jsx as jsx13 } from "react/jsx-runtime";
1097
1163
  var IOSSwitch = styled4((props) => /* @__PURE__ */ jsx13(Switch, { focusVisibleClassName: ".Mui-focusVisible", disableRipple: true, ...props }))(({ theme }) => ({
@@ -1106,7 +1172,7 @@ var IOSSwitch = styled4((props) => /* @__PURE__ */ jsx13(Switch, { focusVisibleC
1106
1172
  transform: "translateX(16px)",
1107
1173
  color: "#fff",
1108
1174
  "& + .MuiSwitch-track": {
1109
- backgroundColor: theme.palette.primary.main,
1175
+ background: `linear-gradient(120deg, ${alpha9(theme.palette.primary.light, 0.92)} 0%, ${alpha9(theme.palette.primary.main, 0.94)} 100%)`,
1110
1176
  opacity: 1,
1111
1177
  border: 0
1112
1178
  },
@@ -1128,11 +1194,15 @@ var IOSSwitch = styled4((props) => /* @__PURE__ */ jsx13(Switch, { focusVisibleC
1128
1194
  "& .MuiSwitch-thumb": {
1129
1195
  boxSizing: "border-box",
1130
1196
  width: 26,
1131
- height: 26
1197
+ height: 26,
1198
+ boxShadow: theme.palette.mode === "dark" ? "0 2px 8px rgba(0,0,0,0.38)" : "0 2px 6px rgba(15,23,42,0.24)"
1132
1199
  },
1133
1200
  "& .MuiSwitch-track": {
1134
1201
  borderRadius: 30 / 2,
1135
- backgroundColor: theme.palette.mode === "light" ? "#E9E9EA" : theme.palette.grey[600],
1202
+ background: theme.palette.mode === "light" ? "linear-gradient(120deg, rgba(245,248,255,0.92) 0%, rgba(224,232,245,0.92) 100%)" : "linear-gradient(120deg, rgba(55,65,81,0.74) 0%, rgba(31,41,55,0.8) 100%)",
1203
+ border: `1px solid ${alpha9("#FFFFFF", theme.palette.mode === "dark" ? 0.16 : 0.56)}`,
1204
+ backdropFilter: "blur(10px) saturate(145%)",
1205
+ WebkitBackdropFilter: "blur(10px) saturate(145%)",
1136
1206
  opacity: 1,
1137
1207
  transition: theme.transitions.create(["background-color"], {
1138
1208
  duration: 500
@@ -1143,6 +1213,7 @@ var IOSSwitch_default = IOSSwitch;
1143
1213
 
1144
1214
  // src/StatusPill.tsx
1145
1215
  import { Chip } from "@mui/material";
1216
+ import { alpha as alpha10, useTheme as useTheme8 } from "@mui/material/styles";
1146
1217
  import { userStatus } from "@verma-consulting/common-library";
1147
1218
  import { jsx as jsx14 } from "react/jsx-runtime";
1148
1219
  var statusColorMap = {
@@ -1151,15 +1222,24 @@ var statusColorMap = {
1151
1222
  [userStatus.Inactive]: "error",
1152
1223
  [userStatus.Invited]: "info"
1153
1224
  };
1154
- var StatusPill = ({ status }) => /* @__PURE__ */ jsx14(
1155
- Chip,
1156
- {
1157
- label: status,
1158
- color: statusColorMap[status],
1159
- variant: "outlined",
1160
- sx: { fontWeight: 600, borderRadius: "16px", px: 1.5 }
1161
- }
1162
- );
1225
+ var StatusPill = ({ status }) => {
1226
+ const theme = useTheme8();
1227
+ return /* @__PURE__ */ jsx14(
1228
+ Chip,
1229
+ {
1230
+ label: status,
1231
+ color: statusColorMap[status],
1232
+ variant: "filled",
1233
+ sx: {
1234
+ ...glassSurface(theme),
1235
+ fontWeight: 700,
1236
+ borderRadius: "999px",
1237
+ px: 1,
1238
+ borderColor: alpha10(theme.palette.text.primary, 0.14)
1239
+ }
1240
+ }
1241
+ );
1242
+ };
1163
1243
  var StatusPill_default = StatusPill;
1164
1244
 
1165
1245
  // src/FormPopover.tsx
@@ -1222,16 +1302,21 @@ import {
1222
1302
  FormControl as FormControl2,
1223
1303
  IconButton as IconButton6
1224
1304
  } from "@mui/material";
1305
+ import { alpha as alpha11, useTheme as useTheme9 } from "@mui/material/styles";
1225
1306
  import { Clear as Clear2 } from "@mui/icons-material";
1226
- import { makeStyles as makeStyles4 } from "@mui/styles";
1307
+ import { makeStyles as makeStyles3 } from "@mui/styles";
1227
1308
  import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
1228
- var useStyles4 = makeStyles4(() => ({
1309
+ var useStyles3 = makeStyles3((theme) => ({
1229
1310
  defaultMode: {
1311
+ margin: "4px",
1230
1312
  padding: "14px 8px",
1231
1313
  cursor: "pointer",
1314
+ borderRadius: 14,
1315
+ border: `1px solid ${alpha11("#FFFFFF", theme.palette.mode === "dark" ? 0.16 : 0.55)}`,
1316
+ backdropFilter: "blur(14px) saturate(150%)",
1317
+ background: theme.palette.mode === "dark" ? "linear-gradient(160deg, rgba(31,41,55,0.78), rgba(17,24,39,0.68))" : "linear-gradient(160deg, rgba(255,255,255,0.9), rgba(245,249,255,0.72))",
1232
1318
  "&:hover": {
1233
- borderRadius: 10,
1234
- boxShadow: "rgba(100, 100, 111, 0.2) 0px 7px 29px 0px"
1319
+ boxShadow: theme.palette.mode === "dark" ? "rgba(0, 0, 0, 0.34) 0px 10px 26px" : "rgba(15, 23, 42, 0.16) 0px 8px 24px"
1235
1320
  }
1236
1321
  },
1237
1322
  formLabel: {
@@ -1257,11 +1342,13 @@ var SearchableSelect = React8.memo(
1257
1342
  defaultEditMode = false,
1258
1343
  multiple = false
1259
1344
  }) => {
1260
- const classes = useStyles4();
1345
+ const theme = useTheme9();
1346
+ const classes = useStyles3();
1261
1347
  const wrapperRef = useRef3(null);
1262
1348
  const inputRef = useRef3(null);
1263
1349
  const [editMode, setEditMode] = useState4(defaultEditMode);
1264
1350
  const [open, setOpen] = useState4(defaultEditMode);
1351
+ const glassBackground = theme.palette.mode === "dark" ? "linear-gradient(160deg, rgba(31,41,55,0.78), rgba(17,24,39,0.68))" : "linear-gradient(160deg, rgba(255,255,255,0.9), rgba(245,249,255,0.72))";
1265
1352
  useEffect3(() => {
1266
1353
  function handleClickOutside(event) {
1267
1354
  if (wrapperRef.current && !wrapperRef.current.contains(event.target)) {
@@ -1337,10 +1424,60 @@ var SearchableSelect = React8.memo(
1337
1424
  setOpen(false);
1338
1425
  }
1339
1426
  },
1340
- disableClearable: !onClear,
1427
+ disableClearable: true,
1341
1428
  autoHighlight: true,
1342
1429
  getOptionLabel: (option) => option.label,
1343
1430
  isOptionEqualToValue: (option, val) => option.value === val.value,
1431
+ sx: {
1432
+ "& .MuiAutocomplete-inputRoot": {
1433
+ background: glassBackground,
1434
+ color: "text.primary"
1435
+ },
1436
+ "& .MuiAutocomplete-inputRoot.Mui-focused": {
1437
+ background: glassBackground,
1438
+ color: "text.primary"
1439
+ },
1440
+ "& .MuiAutocomplete-inputRoot:hover": {
1441
+ background: glassBackground
1442
+ },
1443
+ "& .MuiAutocomplete-input": {
1444
+ color: "text.primary",
1445
+ WebkitTextFillColor: "currentColor"
1446
+ },
1447
+ "& .MuiInputLabel-root": {
1448
+ color: "text.secondary"
1449
+ },
1450
+ "& .MuiInputLabel-root.Mui-focused": {
1451
+ color: "text.primary"
1452
+ },
1453
+ "& .MuiSvgIcon-root": {
1454
+ color: "text.secondary"
1455
+ }
1456
+ },
1457
+ slotProps: {
1458
+ paper: {
1459
+ sx: {
1460
+ background: glassBackground,
1461
+ backdropFilter: "blur(12px) saturate(150%)",
1462
+ border: `1px solid ${alpha11("#FFFFFF", theme.palette.mode === "dark" ? 0.16 : 0.55)}`,
1463
+ boxShadow: theme.palette.mode === "dark" ? "rgba(0, 0, 0, 0.34) 0px 10px 26px" : "rgba(15, 23, 42, 0.16) 0px 8px 24px",
1464
+ "& .MuiAutocomplete-option": {
1465
+ "&[aria-selected='true']": {
1466
+ backgroundColor: alpha11(
1467
+ theme.palette.primary.main,
1468
+ theme.palette.mode === "dark" ? 0.28 : 0.14
1469
+ )
1470
+ },
1471
+ "&.Mui-focused": {
1472
+ backgroundColor: alpha11(
1473
+ theme.palette.primary.main,
1474
+ theme.palette.mode === "dark" ? 0.2 : 0.1
1475
+ )
1476
+ }
1477
+ }
1478
+ }
1479
+ }
1480
+ },
1344
1481
  renderInput: (params) => /* @__PURE__ */ jsx16(
1345
1482
  TextField,
1346
1483
  {
@@ -1351,19 +1488,46 @@ var SearchableSelect = React8.memo(
1351
1488
  inputRef,
1352
1489
  InputProps: {
1353
1490
  ...params.InputProps,
1354
- endAdornment: /* @__PURE__ */ jsx16(Fragment2, { children: !isValueEmpty && /* @__PURE__ */ jsx16(
1355
- IconButton6,
1356
- {
1357
- "aria-label": `clear ${name}`,
1358
- onClick: handleClear,
1359
- size: "small",
1360
- sx: {
1361
- backgroundColor: "transparent",
1362
- boxShadow: "none"
1363
- },
1364
- children: /* @__PURE__ */ jsx16(Clear2, { fontSize: "inherit" })
1491
+ sx: {
1492
+ borderRadius: 1.75,
1493
+ backdropFilter: "blur(10px)",
1494
+ pr: 1.5,
1495
+ background: glassBackground,
1496
+ color: "text.primary",
1497
+ "&.Mui-focused": {
1498
+ background: glassBackground
1499
+ },
1500
+ "&:hover": {
1501
+ background: glassBackground
1502
+ },
1503
+ "& .MuiInputBase-input": {
1504
+ color: "text.primary",
1505
+ WebkitTextFillColor: "currentColor"
1506
+ },
1507
+ "& .MuiOutlinedInput-notchedOutline": {
1508
+ borderColor: alpha11(
1509
+ "#FFFFFF",
1510
+ theme.palette.mode === "dark" ? 0.18 : 0.6
1511
+ )
1365
1512
  }
1366
- ) })
1513
+ },
1514
+ endAdornment: /* @__PURE__ */ jsxs9(Fragment2, { children: [
1515
+ !isValueEmpty && /* @__PURE__ */ jsx16(
1516
+ IconButton6,
1517
+ {
1518
+ "aria-label": `clear ${name}`,
1519
+ onClick: handleClear,
1520
+ size: "small",
1521
+ sx: {
1522
+ backgroundColor: "transparent",
1523
+ boxShadow: "none",
1524
+ mr: 0.25
1525
+ },
1526
+ children: /* @__PURE__ */ jsx16(Clear2, { fontSize: "inherit" })
1527
+ }
1528
+ ),
1529
+ params.InputProps.endAdornment
1530
+ ] })
1367
1531
  }
1368
1532
  }
1369
1533
  ),
@@ -1385,8 +1549,8 @@ var SearchableSelect = React8.memo(
1385
1549
  className: classes.defaultMode,
1386
1550
  style,
1387
1551
  children: [
1388
- /* @__PURE__ */ jsx16(FormLabel2, { className: classes.formLabel, children: label }),
1389
- /* @__PURE__ */ jsx16(Typography5, { className: classes.formValue, children: displayValue })
1552
+ /* @__PURE__ */ jsx16(FormLabel2, { className: classes.formLabel, sx: { color: "text.secondary" }, children: label }),
1553
+ /* @__PURE__ */ jsx16(Typography5, { className: classes.formValue, sx: { color: "text.primary" }, children: displayValue })
1390
1554
  ]
1391
1555
  }
1392
1556
  );
@@ -1401,9 +1565,10 @@ import {
1401
1565
  Box as Box6,
1402
1566
  IconButton as IconButton7,
1403
1567
  Grid as Grid2,
1404
- useTheme as useTheme8,
1568
+ useTheme as useTheme10,
1405
1569
  useMediaQuery as useMediaQuery3
1406
1570
  } from "@mui/material";
1571
+ import { alpha as alpha12 } from "@mui/material/styles";
1407
1572
  import { Close as Close2 } from "@mui/icons-material";
1408
1573
  import { jsx as jsx17, jsxs as jsxs10 } from "react/jsx-runtime";
1409
1574
  var FormDrawer = ({
@@ -1413,7 +1578,7 @@ var FormDrawer = ({
1413
1578
  actions,
1414
1579
  children
1415
1580
  }) => {
1416
- const theme = useTheme8();
1581
+ const theme = useTheme10();
1417
1582
  const mdMatches = useMediaQuery3(theme.breakpoints.down("md"));
1418
1583
  return /* @__PURE__ */ jsxs10(
1419
1584
  Drawer,
@@ -1427,37 +1592,47 @@ var FormDrawer = ({
1427
1592
  height: "100%",
1428
1593
  display: "flex",
1429
1594
  flexDirection: "column",
1430
- borderRadius: 0
1595
+ borderRadius: mdMatches ? "24px 24px 0 0" : "24px 0 0 24px"
1431
1596
  }
1432
1597
  },
1433
1598
  children: [
1434
- /* @__PURE__ */ jsx17(Box6, { p: 3, borderBottom: "1px solid #eee", children: /* @__PURE__ */ jsxs10(Grid2, { container: true, children: [
1435
- /* @__PURE__ */ jsx17(Grid2, { item: true, children: title && /* @__PURE__ */ jsx17(Typography6, { variant: "h6", fontWeight: "bold", children: title }) }),
1436
- /* @__PURE__ */ jsx17(Grid2, { item: true, children: /* @__PURE__ */ jsx17(
1437
- IconButton7,
1438
- {
1439
- size: "medium",
1440
- onClick: () => setOpen(false),
1441
- sx: {
1442
- position: "absolute",
1443
- top: 8,
1444
- right: 8,
1445
- zIndex: 2
1446
- },
1447
- children: /* @__PURE__ */ jsx17(Close2, { fontSize: "inherit" })
1448
- }
1449
- ) })
1450
- ] }) }),
1599
+ /* @__PURE__ */ jsx17(
1600
+ Box6,
1601
+ {
1602
+ p: 3,
1603
+ borderBottom: `1px solid ${alpha12(theme.palette.divider, 0.36)}`,
1604
+ children: /* @__PURE__ */ jsxs10(Grid2, { container: true, children: [
1605
+ /* @__PURE__ */ jsx17(Grid2, { item: true, children: title && /* @__PURE__ */ jsx17(Typography6, { variant: "h6", fontWeight: "bold", children: title }) }),
1606
+ /* @__PURE__ */ jsx17(Grid2, { item: true, children: /* @__PURE__ */ jsx17(
1607
+ IconButton7,
1608
+ {
1609
+ size: "medium",
1610
+ onClick: () => setOpen(false),
1611
+ sx: {
1612
+ position: "absolute",
1613
+ top: 8,
1614
+ right: 8,
1615
+ zIndex: 2,
1616
+ backgroundColor: alpha12(theme.palette.background.paper, 0.46)
1617
+ },
1618
+ children: /* @__PURE__ */ jsx17(Close2, { fontSize: "inherit" })
1619
+ }
1620
+ ) })
1621
+ ] })
1622
+ }
1623
+ ),
1451
1624
  /* @__PURE__ */ jsx17(Box6, { flex: 1, overflow: "auto", p: 3, children }),
1452
1625
  actions && /* @__PURE__ */ jsx17(
1453
1626
  Box6,
1454
1627
  {
1455
1628
  p: 2,
1456
- borderTop: "1px solid #eee",
1629
+ borderTop: `1px solid ${alpha12(theme.palette.divider, 0.36)}`,
1457
1630
  sx: {
1458
1631
  position: "sticky",
1459
1632
  bottom: 0,
1460
- zIndex: 1
1633
+ zIndex: 1,
1634
+ backgroundColor: alpha12(theme.palette.background.paper, 0.38),
1635
+ backdropFilter: "blur(10px)"
1461
1636
  },
1462
1637
  children: actions
1463
1638
  }
@@ -1480,9 +1655,10 @@ import {
1480
1655
  Stack,
1481
1656
  TextField as TextField2,
1482
1657
  MenuItem,
1483
- useTheme as useTheme9,
1658
+ useTheme as useTheme11,
1484
1659
  useMediaQuery as useMediaQuery4
1485
1660
  } from "@mui/material";
1661
+ import { alpha as alpha13 } from "@mui/material/styles";
1486
1662
  import { constants as constants2 } from "@verma-consulting/common-library";
1487
1663
  import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
1488
1664
  var PhoneNumberField = ({
@@ -1495,9 +1671,18 @@ var PhoneNumberField = ({
1495
1671
  autoFocus = false,
1496
1672
  onBlur
1497
1673
  }) => {
1498
- const theme = useTheme9();
1674
+ const theme = useTheme11();
1499
1675
  const smMatches = useMediaQuery4(theme.breakpoints.down("sm"));
1500
1676
  const countries = constants2.COUNTRIES || [];
1677
+ const glassInputSx = {
1678
+ backdropFilter: "blur(10px) saturate(150%)",
1679
+ "& .MuiOutlinedInput-notchedOutline": {
1680
+ borderColor: alpha13(
1681
+ "#FFFFFF",
1682
+ theme.palette.mode === "dark" ? 0.16 : 0.58
1683
+ )
1684
+ }
1685
+ };
1501
1686
  const [country, setCountry] = useState5(defaultCountry);
1502
1687
  const [localNumber, setLocalNumber] = useState5("");
1503
1688
  const [isFocused, setIsFocused] = useState5(false);
@@ -1613,7 +1798,8 @@ var PhoneNumberField = ({
1613
1798
  width: 140,
1614
1799
  "& .MuiOutlinedInput-root": {
1615
1800
  borderTopRightRadius: 0,
1616
- borderBottomRightRadius: 0
1801
+ borderBottomRightRadius: 0,
1802
+ ...glassInputSx
1617
1803
  }
1618
1804
  },
1619
1805
  SelectProps: {
@@ -1655,7 +1841,8 @@ var PhoneNumberField = ({
1655
1841
  sx: {
1656
1842
  "& .MuiOutlinedInput-root": {
1657
1843
  borderTopLeftRadius: 0,
1658
- borderBottomLeftRadius: 0
1844
+ borderBottomLeftRadius: 0,
1845
+ ...glassInputSx
1659
1846
  }
1660
1847
  }
1661
1848
  }
@@ -1688,8 +1875,8 @@ export {
1688
1875
  TablePagination_default as TablePagination,
1689
1876
  ThemeProvider,
1690
1877
  createTheme,
1691
- makeStyles5 as makeStyles,
1878
+ makeStyles4 as makeStyles,
1692
1879
  styled5 as styled,
1693
- useTheme10 as useTheme
1880
+ useTheme12 as useTheme
1694
1881
  };
1695
1882
  //# sourceMappingURL=index.mjs.map