@superdispatch/dates 0.33.0 → 0.35.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.
@@ -3,7 +3,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/objectWithoutProper
3
3
  var _excluded = ["footer", "classes", "direction", "quickSelection", "selectedDays", "disabledDays", "onDayClick", "onDayKeyDown", "onDayMouseEnter", "onDayMouseLeave", "onDayMouseDown", "onDayMouseUp", "onDayTouchEnd", "onDayTouchStart", "modifiers", "highlightedDays", "format", "initialTime", "initialMonth"];
4
4
  import { Divider, Grid, Hidden } from '@material-ui/core';
5
5
  import { makeStyles } from '@material-ui/styles';
6
- import { ColorV2 } from '@superdispatch/ui';
6
+ import { ColorDynamic } from '@superdispatch/ui';
7
7
  import { DateTime } from 'luxon';
8
8
  import { forwardRef, useMemo } from 'react';
9
9
  import DayPicker from 'react-day-picker';
@@ -53,7 +53,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
53
53
  },
54
54
  caption: {
55
55
  textAlign: 'center',
56
- color: ColorV2.Dark500,
56
+ color: ColorDynamic.Dark500,
57
57
  fontSize: 12,
58
58
  fontWeight: 700,
59
59
  textTransform: 'uppercase',
@@ -75,7 +75,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
75
75
  alignItems: 'center',
76
76
  justifyContent: 'center',
77
77
  textDecoration: 'none',
78
- color: ColorV2.Dark300,
78
+ color: ColorDynamic.Dark300,
79
79
  width: theme.spacing(5),
80
80
  height: theme.spacing(5)
81
81
  },
@@ -120,7 +120,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
120
120
  bottom: 0,
121
121
  zIndex: -1,
122
122
  position: 'absolute',
123
- backgroundColor: ColorV2.Transparent,
123
+ backgroundColor: ColorDynamic.Transparent,
124
124
  transition: theme.transitions.create('background-color')
125
125
  },
126
126
  '&:first-child, &$firstDayOfMonth': {
@@ -142,75 +142,75 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
142
142
  bottom: 0,
143
143
  zIndex: -1,
144
144
  position: 'absolute',
145
- backgroundColor: ColorV2.Transparent,
145
+ backgroundColor: ColorDynamic.Transparent,
146
146
  transition: theme.transitions.create('background-color')
147
147
  },
148
148
  '&:hover, &:focus': {
149
149
  outline: 'none'
150
150
  },
151
151
  '&$today': {
152
- border: "1px solid ".concat(ColorV2.Silver500)
152
+ border: "1px solid ".concat(ColorDynamic.Silver500)
153
153
  },
154
154
  '&$disabled': {
155
- color: ColorV2.Dark100,
155
+ color: ColorDynamic.Dark100,
156
156
  '&$selected:not($outside):after': {
157
- backgroundColor: ColorV2.Silver300
157
+ backgroundColor: ColorDynamic.Silver400
158
158
  }
159
159
  },
160
160
  '&:not($outside):not($disabled)': {
161
161
  cursor: 'pointer',
162
- color: ColorV2.Dark500,
162
+ color: ColorDynamic.Dark500,
163
163
  '&:not($selected):not(:active)': {
164
164
  '&:hover, &:focus': {
165
- backgroundColor: ColorV2.Silver100
165
+ backgroundColor: ColorDynamic.Silver200
166
166
  },
167
167
  '&$blue': {
168
- color: ColorV2.Blue500,
168
+ color: ColorDynamic.Blue500,
169
169
  '&': {
170
- backgroundColor: ColorV2.Blue50
170
+ backgroundColor: ColorDynamic.Blue50
171
171
  }
172
172
  },
173
173
  '&$green': {
174
- color: ColorV2.Green500,
174
+ color: ColorDynamic.Green500,
175
175
  '&': {
176
- backgroundColor: ColorV2.Green50
176
+ backgroundColor: ColorDynamic.Green50
177
177
  }
178
178
  },
179
179
  '&$purple': {
180
- color: ColorV2.Purple500,
180
+ color: ColorDynamic.Purple500,
181
181
  '&': {
182
- backgroundColor: ColorV2.Purple50
182
+ backgroundColor: ColorDynamic.Purple50
183
183
  }
184
184
  },
185
185
  '&$red': {
186
- color: ColorV2.Red500,
186
+ color: ColorDynamic.Red500,
187
187
  '&': {
188
- backgroundColor: ColorV2.Red50
188
+ backgroundColor: ColorDynamic.Red50
189
189
  }
190
190
  },
191
191
  '&$teal': {
192
- color: ColorV2.Teal500,
192
+ color: ColorDynamic.Teal500,
193
193
  '&': {
194
- backgroundColor: ColorV2.Teal50
194
+ backgroundColor: ColorDynamic.Teal50
195
195
  }
196
196
  },
197
197
  '&$yellow': {
198
- color: ColorV2.Yellow500,
198
+ color: ColorDynamic.Yellow500,
199
199
  '&': {
200
- backgroundColor: ColorV2.Yellow50
200
+ backgroundColor: ColorDynamic.Yellow50
201
201
  }
202
202
  }
203
203
  },
204
204
  '&:active, &$selected': {
205
- color: ColorV2.White,
205
+ color: ColorDynamic.White,
206
206
  '&:after': {
207
- backgroundColor: ColorV2.Blue300
207
+ backgroundColor: ColorDynamic.Blue300
208
208
  },
209
209
  '&$today': {
210
210
  border: 'none'
211
211
  },
212
212
  '&$today:before': {
213
- border: "1px solid ".concat(ColorV2.Blue300),
213
+ border: "1px solid ".concat(ColorDynamic.Blue300),
214
214
  borderRadius: theme.spacing(0.5)
215
215
  }
216
216
  }
@@ -4,7 +4,7 @@ var _excluded = ["modifiers", "onDayClick", "onDayMouseEnter", "numberOfMonths"]
4
4
  _excluded2 = ["onBlur", "onFocus", "onChange", "renderFooter", "renderQuickSelection", "value", "format", "fallback", "enableClearable", "disableCloseOnSelect", "CalendarProps"],
5
5
  _excluded3 = ["rangeStart", "rangeFinish"];
6
6
  import { makeStyles } from '@material-ui/styles';
7
- import { ColorV2 } from '@superdispatch/ui';
7
+ import { ColorDynamic } from '@superdispatch/ui';
8
8
  import { forwardRef, useMemo, useRef, useState } from 'react';
9
9
  import { BaseDatePicker } from "../base-date-picker/BaseDatePicker.js";
10
10
  import { Calendar } from "../calendar/Calendar.js";
@@ -28,17 +28,17 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
28
28
  },
29
29
  '&:not($rangeStart):not($rangeFinish)': {
30
30
  '&:after': {
31
- backgroundColor: ColorV2.Transparent
31
+ backgroundColor: ColorDynamic.Transparent
32
32
  },
33
33
  '&$disabled': {
34
34
  '&:before': {
35
- backgroundColor: ColorV2.Silver100
35
+ backgroundColor: ColorDynamic.Silver100
36
36
  }
37
37
  },
38
38
  '&:not($disabled)': {
39
- color: ColorV2.Blue500,
39
+ color: ColorDynamic.Blue500,
40
40
  '&:before': {
41
- backgroundColor: ColorV2.Blue50
41
+ backgroundColor: ColorDynamic.Blue50
42
42
  }
43
43
  }
44
44
  }
package/dist-web/index.js CHANGED
@@ -2,7 +2,7 @@ import _objectSpread from '@babel/runtime/helpers/objectSpread2';
2
2
  import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
3
  import { Typography, IconButton, Grid, Hidden, Divider, ListItem, List, Popover as Popover$1, TextField, InputAdornment, SvgIcon } from '@material-ui/core';
4
4
  import { makeStyles } from '@material-ui/styles';
5
- import { ColorV2, useUID, mergeRefs, renderChildren } from '@superdispatch/ui';
5
+ import { ColorDynamic, 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';
@@ -386,7 +386,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
386
386
  },
387
387
  caption: {
388
388
  textAlign: 'center',
389
- color: ColorV2.Dark500,
389
+ color: ColorDynamic.Dark500,
390
390
  fontSize: 12,
391
391
  fontWeight: 700,
392
392
  textTransform: 'uppercase',
@@ -408,7 +408,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
408
408
  alignItems: 'center',
409
409
  justifyContent: 'center',
410
410
  textDecoration: 'none',
411
- color: ColorV2.Dark300,
411
+ color: ColorDynamic.Dark300,
412
412
  width: theme.spacing(5),
413
413
  height: theme.spacing(5)
414
414
  },
@@ -453,7 +453,7 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
453
453
  bottom: 0,
454
454
  zIndex: -1,
455
455
  position: 'absolute',
456
- backgroundColor: ColorV2.Transparent,
456
+ backgroundColor: ColorDynamic.Transparent,
457
457
  transition: theme.transitions.create('background-color')
458
458
  },
459
459
  '&:first-child, &$firstDayOfMonth': {
@@ -475,75 +475,75 @@ var useStyles = /*#__PURE__*/makeStyles(theme => ({
475
475
  bottom: 0,
476
476
  zIndex: -1,
477
477
  position: 'absolute',
478
- backgroundColor: ColorV2.Transparent,
478
+ backgroundColor: ColorDynamic.Transparent,
479
479
  transition: theme.transitions.create('background-color')
480
480
  },
481
481
  '&:hover, &:focus': {
482
482
  outline: 'none'
483
483
  },
484
484
  '&$today': {
485
- border: "1px solid ".concat(ColorV2.Silver500)
485
+ border: "1px solid ".concat(ColorDynamic.Silver500)
486
486
  },
487
487
  '&$disabled': {
488
- color: ColorV2.Dark100,
488
+ color: ColorDynamic.Dark100,
489
489
  '&$selected:not($outside):after': {
490
- backgroundColor: ColorV2.Silver300
490
+ backgroundColor: ColorDynamic.Silver400
491
491
  }
492
492
  },
493
493
  '&:not($outside):not($disabled)': {
494
494
  cursor: 'pointer',
495
- color: ColorV2.Dark500,
495
+ color: ColorDynamic.Dark500,
496
496
  '&:not($selected):not(:active)': {
497
497
  '&:hover, &:focus': {
498
- backgroundColor: ColorV2.Silver100
498
+ backgroundColor: ColorDynamic.Silver200
499
499
  },
500
500
  '&$blue': {
501
- color: ColorV2.Blue500,
501
+ color: ColorDynamic.Blue500,
502
502
  '&': {
503
- backgroundColor: ColorV2.Blue50
503
+ backgroundColor: ColorDynamic.Blue50
504
504
  }
505
505
  },
506
506
  '&$green': {
507
- color: ColorV2.Green500,
507
+ color: ColorDynamic.Green500,
508
508
  '&': {
509
- backgroundColor: ColorV2.Green50
509
+ backgroundColor: ColorDynamic.Green50
510
510
  }
511
511
  },
512
512
  '&$purple': {
513
- color: ColorV2.Purple500,
513
+ color: ColorDynamic.Purple500,
514
514
  '&': {
515
- backgroundColor: ColorV2.Purple50
515
+ backgroundColor: ColorDynamic.Purple50
516
516
  }
517
517
  },
518
518
  '&$red': {
519
- color: ColorV2.Red500,
519
+ color: ColorDynamic.Red500,
520
520
  '&': {
521
- backgroundColor: ColorV2.Red50
521
+ backgroundColor: ColorDynamic.Red50
522
522
  }
523
523
  },
524
524
  '&$teal': {
525
- color: ColorV2.Teal500,
525
+ color: ColorDynamic.Teal500,
526
526
  '&': {
527
- backgroundColor: ColorV2.Teal50
527
+ backgroundColor: ColorDynamic.Teal50
528
528
  }
529
529
  },
530
530
  '&$yellow': {
531
- color: ColorV2.Yellow500,
531
+ color: ColorDynamic.Yellow500,
532
532
  '&': {
533
- backgroundColor: ColorV2.Yellow50
533
+ backgroundColor: ColorDynamic.Yellow50
534
534
  }
535
535
  }
536
536
  },
537
537
  '&:active, &$selected': {
538
- color: ColorV2.White,
538
+ color: ColorDynamic.White,
539
539
  '&:after': {
540
- backgroundColor: ColorV2.Blue300
540
+ backgroundColor: ColorDynamic.Blue300
541
541
  },
542
542
  '&$today': {
543
543
  border: 'none'
544
544
  },
545
545
  '&$today:before': {
546
- border: "1px solid ".concat(ColorV2.Blue300),
546
+ border: "1px solid ".concat(ColorDynamic.Blue300),
547
547
  borderRadius: theme.spacing(0.5)
548
548
  }
549
549
  }
@@ -777,7 +777,7 @@ var _excluded$1 = ["id", "api", "onClear", "onClick", "onClose", "onKeyDown", "d
777
777
  var Popover = /*#__PURE__*/styled(Popover$1).withConfig({
778
778
  displayName: "BaseDatePicker__Popover",
779
779
  componentId: "SD__sc-1xvk8l6-0"
780
- })([".MuiPaper-rounded{border:1px solid ", ";box-shadow:0px 0px 4px 0px rgba(0,0,0,0.05),0px 4px 8px 0px rgba(0,0,0,0.12);}"], ColorV2.Silver400);
780
+ })([".MuiPaper-rounded{border:1px solid ", ";box-shadow:0px 0px 4px 0px rgba(0,0,0,0.05),0px 4px 8px 0px rgba(0,0,0,0.12);}"], ColorDynamic.Silver400);
781
781
  var BaseDatePicker = /*#__PURE__*/forwardRef((_ref, ref) => {
782
782
  var {
783
783
  id,
@@ -1015,17 +1015,17 @@ var useStyles$1 = /*#__PURE__*/makeStyles(theme => ({
1015
1015
  },
1016
1016
  '&:not($rangeStart):not($rangeFinish)': {
1017
1017
  '&:after': {
1018
- backgroundColor: ColorV2.Transparent
1018
+ backgroundColor: ColorDynamic.Transparent
1019
1019
  },
1020
1020
  '&$disabled': {
1021
1021
  '&:before': {
1022
- backgroundColor: ColorV2.Silver100
1022
+ backgroundColor: ColorDynamic.Silver100
1023
1023
  }
1024
1024
  },
1025
1025
  '&:not($disabled)': {
1026
- color: ColorV2.Blue500,
1026
+ color: ColorDynamic.Blue500,
1027
1027
  '&:before': {
1028
- backgroundColor: ColorV2.Blue50
1028
+ backgroundColor: ColorDynamic.Blue50
1029
1029
  }
1030
1030
  }
1031
1031
  }