habarico 7.3.0-beta.1 → 7.3.0-beta.3

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/lib/index.cjs CHANGED
@@ -5,6 +5,7 @@ var React = require('react');
5
5
  var reactRouterDom = require('react-router-dom');
6
6
  var material = require('@mui/material');
7
7
  var AllIcons = require('@mui/icons-material');
8
+ var PickersTextField = require('@mui/x-date-pickers/PickersTextField');
8
9
  var xDatePickers = require('@mui/x-date-pickers');
9
10
  var AdapterDateFns = require('@mui/x-date-pickers/AdapterDateFns');
10
11
  var xTreeView = require('@mui/x-tree-view');
@@ -29051,6 +29052,27 @@ const MuiPaper = {
29051
29052
  }
29052
29053
  };
29053
29054
 
29055
+ const MuiPickersInputBase = {
29056
+ styleOverrides: {
29057
+ root: ({ theme }) => ({
29058
+ backgroundColor: varAlpha(theme.palette.background.paperChannel, 0.2)
29059
+ })
29060
+ }
29061
+ };
29062
+
29063
+ const MuiPickersOutlinedInput = {
29064
+ styleOverrides: {
29065
+ root: ({ theme }) => ({
29066
+ [`&.${PickersTextField.pickersOutlinedInputClasses.disabled} .${PickersTextField.pickersOutlinedInputClasses.notchedOutline}`]: {
29067
+ borderColor: theme.palette.divider
29068
+ }
29069
+ }),
29070
+ notchedOutline: ({ theme }) => ({
29071
+ borderColor: theme.palette.divider
29072
+ })
29073
+ }
29074
+ };
29075
+
29054
29076
  const MuiPopover = {
29055
29077
  styleOverrides: {
29056
29078
  // Drive the popover surface shadow from the semantic `dropdown` token (shared
@@ -29207,6 +29229,8 @@ const components = {
29207
29229
  MuiMenuItem,
29208
29230
  MuiOutlinedInput,
29209
29231
  MuiPaper,
29232
+ MuiPickersInputBase,
29233
+ MuiPickersOutlinedInput,
29210
29234
  MuiPopover,
29211
29235
  MuiRadio,
29212
29236
  MuiScopedCssBaseline,
@@ -45847,7 +45871,7 @@ const InputLayout = ({
45847
45871
  m: 0,
45848
45872
  minWidth: 0,
45849
45873
  border: 1,
45850
- borderColor: error ? "error.main" : varAlpha(theme.palette.grey["500Channel"], 0.45),
45874
+ borderColor: error ? "error.main" : "divider",
45851
45875
  borderRadius: 1,
45852
45876
  px: 1,
45853
45877
  pt: 0.5,
@@ -63641,14 +63665,11 @@ const DateInput = (props) => {
63641
63665
  // The caller's own `sx` last, so it wins over these defaults. Array form, because
63642
63666
  // `SxProps` may be an array or a theme callback just as legally as a plain object.
63643
63667
  sx: [
63644
- (theme) => ({
63645
- "& .MuiPickersInputBase-root": {
63646
- backgroundColor: material.alpha(theme.palette.background.paper, 0.2)
63647
- },
63668
+ {
63648
63669
  "& .MuiPickersSectionList-root": {
63649
63670
  width: 0
63650
63671
  }
63651
- }),
63672
+ },
63652
63673
  ...Array.isArray(sx) ? sx : [sx]
63653
63674
  ]
63654
63675
  }
@@ -64221,16 +64242,7 @@ const DateTimeInput = (props) => {
64221
64242
  error: invalid,
64222
64243
  fullWidth: true,
64223
64244
  size: "small",
64224
- // The caller's own `sx` last, so it wins over these defaults. Array form, because
64225
- // `SxProps` may be an array or a theme callback just as legally as a plain object.
64226
- sx: [
64227
- (theme) => ({
64228
- "& .MuiPickersInputBase-root": {
64229
- backgroundColor: material.alpha(theme.palette.background.paper, 0.2)
64230
- }
64231
- }),
64232
- ...Array.isArray(sx) ? sx : [sx]
64233
- ]
64245
+ sx
64234
64246
  }
64235
64247
  },
64236
64248
  onChange: handleChange,
@@ -64650,16 +64662,7 @@ const TimeInput = (props) => {
64650
64662
  error: invalid,
64651
64663
  fullWidth: true,
64652
64664
  size: "small",
64653
- // The caller's own `sx` last, so it wins over these defaults. Array form, because
64654
- // `SxProps` may be an array or a theme callback just as legally as a plain object.
64655
- sx: [
64656
- (theme) => ({
64657
- "& .MuiPickersInputBase-root": {
64658
- backgroundColor: material.alpha(theme.palette.background.paper, 0.2)
64659
- }
64660
- }),
64661
- ...Array.isArray(sx) ? sx : [sx]
64662
- ]
64665
+ sx
64663
64666
  }
64664
64667
  },
64665
64668
  onChange: handleChange
@@ -68512,7 +68515,7 @@ const schemaWrappedFieldSx = (bare) => (theme) => ({
68512
68515
  minWidth: 150,
68513
68516
  width: "100%",
68514
68517
  border: 1,
68515
- borderColor: varAlpha(theme.palette.grey["500Channel"], 0.45),
68518
+ borderColor: theme.palette.divider,
68516
68519
  borderRadius: 1,
68517
68520
  py: 0,
68518
68521
  px: "1px",
@@ -72365,7 +72368,7 @@ const sx = (theme) => ({
72365
72368
  minWidth: 150,
72366
72369
  width: "100%",
72367
72370
  border: 1,
72368
- borderColor: varAlpha(theme.palette.grey["500Channel"], 0.2),
72371
+ borderColor: theme.palette.divider,
72369
72372
  borderRadius: 1,
72370
72373
  py: 0,
72371
72374
  px: "1px",