@dvrd/dvr-controls 1.0.25 → 1.0.26

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvrd/dvr-controls",
3
- "version": "1.0.25",
3
+ "version": "1.0.26",
4
4
  "description": "Custom web controls",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -17,6 +17,9 @@
17
17
  "1": "not dead",
18
18
  "2": "ie >= 11"
19
19
  },
20
+ "peerDependencies": {
21
+ "react-router-dom": "6.8.1"
22
+ },
20
23
  "dependencies": {
21
24
  "@fortawesome/fontawesome-svg-core": "6.3.0",
22
25
  "@fortawesome/free-brands-svg-icons": "6.3.0",
@@ -42,7 +45,6 @@
42
45
  "react-color": "2.19.3",
43
46
  "react-dom": "18.2.0",
44
47
  "react-rnd": "10.4.1",
45
- "react-router-dom": "6.8.1",
46
48
  "typescript": "4.9.5",
47
49
  "uuid": "9.0.0"
48
50
  }
@@ -52,7 +52,7 @@ export default function DvrdDatePicker(props: Props) {
52
52
  <label className='field-label'>{label}</label>
53
53
  <div className='value-container' onClick={onClickContainer}>
54
54
  <label className={classNames('value', !value && 'placeholder')}>{value?.format(format) ?? placeholder ??
55
- ''}</label>
55
+ ''}</label>
56
56
  <AwesomeIcon name='calendar-alt' className='calendar-icon'/>
57
57
  </div>
58
58
  <Picker onClose={onClosePicker} onChange={onChangePicker} open={pickerOpen} value={value}
@@ -104,7 +104,7 @@ class Picker extends PureComponent<PickerProps> {
104
104
 
105
105
  onSelectDay = (day: number, month?: number, year?: number) => () => {
106
106
  const {onChange, value} = this.props, pickerValue = this.getPickerValue();
107
- if (day !== pickerValue.date() || value === null) {
107
+ if (day || value === null) {
108
108
  pickerValue.date(day);
109
109
  if (month !== undefined) pickerValue.month(month);
110
110
  if (year !== undefined) pickerValue.year(year);
@@ -225,6 +225,7 @@
225
225
 
226
226
  .day-label {
227
227
  font-size: 14px;
228
+ user-select: none;
228
229
  }
229
230
 
230
231
  &.no-select, &.hide, {