@superdispatch/dates 0.20.4 → 0.21.5-alpha.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.
- package/dist-node/index.js +33 -34
- package/dist-node/index.js.map +1 -1
- package/dist-src/base-date-picker/BaseDatePicker.js +2 -2
- package/dist-src/calendar/Calendar.js +4 -4
- package/dist-src/calendar/CalendarQuickSelection.js +1 -1
- package/dist-src/calendar/InternalCalendarComponents.js +2 -2
- package/dist-src/date-range-field/DateRangeField.js +1 -1
- package/dist-src/time-field/TimeField.js +1 -2
- package/dist-types/index.d.ts +2 -2
- package/dist-web/index.js +5 -6
- package/dist-web/index.js.map +1 -1
- package/package.json +3 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["footer", "classes", "direction", "quickSelection", "selectedDays", "disabledDays", "onDayClick", "onDayKeyDown", "onDayMouseEnter", "onDayMouseLeave", "onDayMouseDown", "onDayMouseUp", "onDayTouchEnd", "onDayTouchStart", "modifiers", "highlightedDays", "format", "initialTime", "initialMonth"];
|
|
4
|
-
import { Divider, Grid, Hidden } from '@material
|
|
5
|
-
import { makeStyles } from '@
|
|
4
|
+
import { Divider, Grid, Hidden } from '@mui/material';
|
|
5
|
+
import { makeStyles } from '@mui/styles';
|
|
6
6
|
import { Color } from '@superdispatch/ui';
|
|
7
7
|
import { DateTime } from 'luxon';
|
|
8
8
|
import { forwardRef, useMemo } from 'react';
|
|
@@ -33,12 +33,12 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
|
|
|
33
33
|
interactionDisabled: {},
|
|
34
34
|
navBar: {},
|
|
35
35
|
navButtonPrev: {
|
|
36
|
-
position: 'absolute',
|
|
36
|
+
position: 'absolute !important',
|
|
37
37
|
top: theme.spacing(1.5),
|
|
38
38
|
left: theme.spacing(1.5)
|
|
39
39
|
},
|
|
40
40
|
navButtonNext: {
|
|
41
|
-
position: 'absolute',
|
|
41
|
+
position: 'absolute !important',
|
|
42
42
|
top: theme.spacing(1.5),
|
|
43
43
|
right: theme.spacing(1.5)
|
|
44
44
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ChevronLeft, ChevronRight } from '@mui/icons-material';
|
|
2
|
+
import { IconButton, Typography } from '@mui/material';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
5
5
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
|
|
|
3
3
|
var _excluded = ["modifiers", "onDayClick", "onDayMouseEnter"],
|
|
4
4
|
_excluded2 = ["onBlur", "onFocus", "onChange", "renderFooter", "renderQuickSelection", "value", "format", "fallback", "enableClearable", "disableCloseOnSelect", "CalendarProps"],
|
|
5
5
|
_excluded3 = ["rangeStart", "rangeFinish"];
|
|
6
|
-
import { makeStyles } from '@
|
|
6
|
+
import { makeStyles } from '@mui/styles';
|
|
7
7
|
import { Color } from '@superdispatch/ui';
|
|
8
8
|
import { forwardRef, useMemo, useRef, useState } from 'react';
|
|
9
9
|
import { BaseDatePicker } from "../base-date-picker/BaseDatePicker.js";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import _objectSpread from "@babel/runtime/helpers/objectSpread2";
|
|
2
2
|
import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProperties";
|
|
3
3
|
var _excluded = ["disabled", "onChange", "value", "format"];
|
|
4
|
-
import { TextField } from '@material
|
|
5
|
-
import { Autocomplete } from '@material-ui/lab';
|
|
4
|
+
import { Autocomplete, TextField } from '@mui/material';
|
|
6
5
|
import { DateTime } from 'luxon';
|
|
7
6
|
import { forwardRef, useEffect, useMemo, useState } from 'react';
|
|
8
7
|
import { useDateConfig } from "../date-config/DateConfig.js";
|
package/dist-types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { ReactNode, ReactElement, ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
3
|
-
import { GridDirection, BaseTextFieldProps, InputBaseProps } from '@material
|
|
4
|
-
import { ClassNameMap } from '@
|
|
3
|
+
import { GridDirection, BaseTextFieldProps, InputBaseProps } from '@mui/material';
|
|
4
|
+
import { ClassNameMap } from '@mui/styles';
|
|
5
5
|
import { ColorVariant } from '@superdispatch/ui';
|
|
6
6
|
import { DayPickerProps } from 'react-day-picker';
|
|
7
7
|
import { DateTime, ToRelativeOptions, ToRelativeUnit } from 'luxon';
|
package/dist-web/index.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import _objectSpread from '@babel/runtime/helpers/objectSpread2';
|
|
2
2
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
3
|
-
import { Typography, IconButton, Grid, Hidden, Divider, ListItem, List, Popover, TextField, InputAdornment, SvgIcon } from '@material
|
|
4
|
-
import { makeStyles } from '@
|
|
3
|
+
import { Typography, IconButton, Grid, Hidden, Divider, ListItem, List, Popover, TextField, InputAdornment, SvgIcon, Autocomplete } from '@mui/material';
|
|
4
|
+
import { makeStyles } from '@mui/styles';
|
|
5
5
|
import { Color, useUID, mergeRefs, renderChildren } from '@superdispatch/ui';
|
|
6
6
|
import { Settings, FixedOffsetZone, DateTime } from 'luxon';
|
|
7
7
|
import { useMemo, useContext, createContext, forwardRef, useRef, useState, useImperativeHandle, useEffect } from 'react';
|
|
8
8
|
import DayPicker from 'react-day-picker';
|
|
9
9
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
10
|
-
import { ChevronLeft, ChevronRight, Clear } from '@
|
|
10
|
+
import { ChevronLeft, ChevronRight, Clear } from '@mui/icons-material';
|
|
11
11
|
import { mdiCalendarMonth } from '@mdi/js';
|
|
12
12
|
import { useValueObserver } from '@superdispatch/hooks';
|
|
13
|
-
import { Autocomplete } from '@material-ui/lab';
|
|
14
13
|
|
|
15
14
|
function setDefaultTimeZone(offset) {
|
|
16
15
|
if (offset === 'local') {
|
|
@@ -395,12 +394,12 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
|
|
|
395
394
|
interactionDisabled: {},
|
|
396
395
|
navBar: {},
|
|
397
396
|
navButtonPrev: {
|
|
398
|
-
position: 'absolute',
|
|
397
|
+
position: 'absolute !important',
|
|
399
398
|
top: theme.spacing(1.5),
|
|
400
399
|
left: theme.spacing(1.5)
|
|
401
400
|
},
|
|
402
401
|
navButtonNext: {
|
|
403
|
-
position: 'absolute',
|
|
402
|
+
position: 'absolute !important',
|
|
404
403
|
top: theme.spacing(1.5),
|
|
405
404
|
right: theme.spacing(1.5)
|
|
406
405
|
},
|