@dvrd/dvr-controls 1.1.13 → 1.1.15

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.
Files changed (79) hide show
  1. package/index.ts +1 -0
  2. package/package.json +14 -24
  3. package/src/js/button/style/button.scss +5 -4
  4. package/src/js/button/style/closeButton.scss +0 -2
  5. package/src/js/button/style/dvrdButton.scss +2 -2
  6. package/src/js/button/style/outlinedButton.scss +5 -5
  7. package/src/js/button/style/simpleButton.scss +3 -5
  8. package/src/js/carousel/DVRCarousel.tsx +18 -16
  9. package/src/js/carousel/style/DVRCarousel.scss +2 -3
  10. package/src/js/checkbox/style/checkbox.scss +8 -7
  11. package/src/js/colorPicker/style/colorPicker.scss +0 -2
  12. package/src/js/date/dvrdDatePicker.tsx +1 -2
  13. package/src/js/date/style/dvrdDatePicker.scss +21 -19
  14. package/src/js/dialog/style/dialog.scss +15 -12
  15. package/src/js/fileUpload/style/fileUpload.scss +2 -2
  16. package/src/js/header/style/header.scss +16 -14
  17. package/src/js/image/style/imageUpload.scss +0 -2
  18. package/src/js/info/style/info.scss +3 -3
  19. package/src/js/input/date/dateField.tsx +38 -31
  20. package/src/js/input/date/dateFieldController.tsx +2 -2
  21. package/src/js/input/date/datePicker/style/datePicker.scss +5 -5
  22. package/src/js/input/date/style/dateField.scss +5 -4
  23. package/src/js/input/date/timePicker/style/timePicker.scss +5 -4
  24. package/src/js/input/password/style/passwordInput.scss +3 -3
  25. package/src/js/input/password/style/passwordRules.scss +4 -4
  26. package/src/js/input/simple/style/simpleInput.scss +2 -2
  27. package/src/js/input/style/input.scss +6 -5
  28. package/src/js/label/label.tsx +1 -2
  29. package/src/js/link/link.tsx +3 -1
  30. package/src/js/link/style/link.scss +4 -4
  31. package/src/js/loader/style/loader.scss +6 -5
  32. package/src/js/navigation/mobileNavigation.tsx +1 -2
  33. package/src/js/navigation/style/mobileNavigation.scss +31 -24
  34. package/src/js/optionsList/style/dvrdOptionsList.scss +6 -5
  35. package/src/js/optionsMenu/style/optionsMenu.scss +6 -5
  36. package/src/js/pdf/element/style/pdfElement.scss +8 -7
  37. package/src/js/pdf/image/pdfImage.tsx +4 -4
  38. package/src/js/pdf/image/style/pdfImage.scss +3 -3
  39. package/src/js/pdf/invoiceTable/pdfInvoiceTable.tsx +3 -3
  40. package/src/js/pdf/invoiceTable/style/pdfInvoiceTable.scss +2 -2
  41. package/src/js/pdf/settings/buttons/style/iconButton.scss +5 -5
  42. package/src/js/pdf/settings/image/pdfImageSettings.tsx +4 -6
  43. package/src/js/pdf/settings/invoiceTable/style/pdfInvoiceTableSettings.scss +4 -3
  44. package/src/js/pdf/settings/style/pdfElementSettings.scss +3 -3
  45. package/src/js/pdf/settings/text/style/pdfTextSettings.scss +5 -4
  46. package/src/js/pdf/style/pdfTemplateCreator.scss +12 -11
  47. package/src/js/pdf/text/pdfText.tsx +3 -3
  48. package/src/js/pdf/text/style/pdfText.scss +0 -2
  49. package/src/js/pdf/v2/pdfElement/pdfDraggableElement.tsx +4 -6
  50. package/src/js/popup/style/withBackground.scss +3 -3
  51. package/src/js/radio/style/dvrdRadio.scss +6 -5
  52. package/src/js/select/async/style/asyncSelect.scss +0 -2
  53. package/src/js/select/dvrdGroupedSelect.tsx +1 -2
  54. package/src/js/select/dvrdMultiSelect.tsx +2 -3
  55. package/src/js/select/dvrdSelect.tsx +12 -11
  56. package/src/js/select/dvrdSelectController.tsx +10 -11
  57. package/src/js/select/style/dvrdGroupedSelect.scss +12 -11
  58. package/src/js/select/style/dvrdSelect.scss +9 -8
  59. package/src/js/select/style/select.scss +16 -24
  60. package/src/js/sidebarMenu/sidebarMenu.tsx +22 -13
  61. package/src/js/sidebarMenu/style/sidebarMenu.scss +7 -6
  62. package/src/js/slider/style/DVRSlider.scss +2 -2
  63. package/src/js/snackbar/snackbarController.tsx +3 -5
  64. package/src/js/snackbar/style/snackbar.scss +7 -6
  65. package/src/js/switch/style/dvrdSwitch.scss +2 -2
  66. package/src/js/switch/style/switch.scss +8 -8
  67. package/src/js/textField/dvrdPasswordInput.tsx +0 -1
  68. package/src/js/textField/style/dvrdInput.scss +4 -4
  69. package/src/js/textField/style/dvrdPassword.scss +3 -3
  70. package/src/js/topButton/style/topButton.scss +3 -3
  71. package/src/js/util/controlContext.tsx +1 -2
  72. package/src/js/util/interfaces.ts +3 -3
  73. package/src/style/_colors.scss +44 -0
  74. package/src/style/{common-variables.scss → _common-variables.scss} +16 -62
  75. package/src/style/common-icons.scss +141 -142
  76. package/src/style/{variables.scss → main.scss} +2 -3
  77. package/src/js/label/style/label.scss +0 -4
  78. package/src/js/pdf/settings/image/style/pdfImageSettings.scss +0 -9
  79. /package/src/style/{display-breakpoints.scss → _display-breakpoints.scss} +0 -0
package/index.ts CHANGED
@@ -3,6 +3,7 @@
3
3
  */
4
4
 
5
5
  import './src/style/common-icons.scss';
6
+ import './src/style/main.scss';
6
7
  import {library} from '@fortawesome/fontawesome-svg-core';
7
8
  import {fab} from '@fortawesome/free-brands-svg-icons';
8
9
  import {far} from '@fortawesome/free-regular-svg-icons';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvrd/dvr-controls",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "Custom web controls",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -26,39 +26,29 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@dvrd/idate": "^1.8.8",
29
- "@fortawesome/fontawesome-svg-core": "6.5.2",
30
- "@fortawesome/free-brands-svg-icons": "6.5.2",
31
- "@fortawesome/free-regular-svg-icons": "6.5.2",
32
- "@fortawesome/free-solid-svg-icons": "6.5.2",
33
- "@fortawesome/react-fontawesome": "0.2.0",
34
- "@types/dompurify": "2.4.0",
35
- "@types/js-cookie": "3.0.3",
36
- "@types/lodash.defer": "^4.1.7",
37
- "@types/lodash.delay": "^4.1.7",
38
- "@types/lodash.isequal": "^4.5.6",
39
- "@types/lodash.merge": "^4.6.7",
40
- "@types/lodash.mergewith": "^4.6.7",
29
+ "@fortawesome/fontawesome-svg-core": "*",
30
+ "@fortawesome/free-brands-svg-icons": "*",
31
+ "@fortawesome/free-regular-svg-icons": "*",
32
+ "@fortawesome/free-solid-svg-icons": "*",
33
+ "@fortawesome/react-fontawesome": "*",
34
+ "@types/dompurify": "*",
35
+ "@types/js-cookie": "*",
41
36
  "@types/node": "18.14.0",
42
37
  "@types/react": "*",
43
38
  "@types/react-color": "3.0.13",
44
39
  "@types/react-dom": "*",
45
40
  "@types/react-router": "*",
46
- "@types/uuid": "9.0.0",
47
- "classnames": "2.5.1",
48
- "dompurify": "3.2.4",
49
- "js-cookie": "3.0.1",
50
- "lodash.defer": "^4.1.0",
51
- "lodash.delay": "^4.1.1",
52
- "lodash.isequal": "^4.5.0",
53
- "lodash.merge": "^4.6.2",
54
- "lodash.mergewith": "^4.6.2",
41
+ "@types/uuid": "*",
42
+ "classnames": "*",
43
+ "dompurify": "*",
44
+ "js-cookie": "*",
55
45
  "react": "*",
56
46
  "react-color": "2.19.3",
57
47
  "react-dom": "*",
58
48
  "react-rnd": "10.4.1",
59
49
  "react-router": "*",
60
50
  "swiper": "^11.1.4",
61
- "typescript": "5.6.3",
62
- "uuid": "9.0.0"
51
+ "typescript": "*",
52
+ "uuid": "*"
63
53
  }
64
54
  }
@@ -2,14 +2,15 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
5
+ @use '../../../style/common-variables' as common;
6
+ @use '../../../style/colors';
6
7
 
7
8
  .buttonController {
8
9
  overflow: hidden;
9
10
  display: inline-block;
10
11
 
11
12
  &:not(.disabled) {
12
- @include backgroundShadow;
13
+ @include common.backgroundShadow;
13
14
  }
14
15
 
15
16
  border-radius: .3rem;
@@ -80,11 +81,11 @@
80
81
  }
81
82
 
82
83
  &.disabled {
83
- background-color: $color-gray-6 !important;
84
+ background-color: colors.$color-gray-6 !important;
84
85
  cursor: not-allowed;
85
86
 
86
87
  .buttonLabel {
87
- color: $color-gray-2 !important;
88
+ color: colors.$color-gray-2 !important;
88
89
  }
89
90
  }
90
91
 
@@ -2,8 +2,6 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
6
-
7
5
  .close-button {
8
6
  cursor: pointer;
9
7
  transition: color .2s ease-in-out;
@@ -2,10 +2,10 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
5
+ @use '../../../style/common-variables' as commons;
6
6
 
7
7
  .dvrd-button {
8
- @include backgroundShadow2;
8
+ @include commons.backgroundShadow2;
9
9
  padding: .7rem 1rem;
10
10
  cursor: pointer;
11
11
  transition: background-color .2s ease-in-out;
@@ -2,10 +2,10 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
5
+ @use '../../../style/colors';
6
6
 
7
7
  .outlinedButtonContainer {
8
- @include borderRadius(.3rem);
8
+ border-radius: .3rem;
9
9
  position: relative;
10
10
  padding: .37rem 1rem;
11
11
  cursor: pointer;
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  .ripple {
49
- @include borderRadius(50%);
49
+ border-radius: 50%;
50
50
  position: absolute;
51
51
  opacity: .7;
52
52
  width: 10%;
@@ -73,11 +73,11 @@
73
73
  }
74
74
 
75
75
  &.disabled {
76
- border-color: $color-gray-6 !important;
76
+ border-color: colors.$color-gray-6 !important;
77
77
  cursor: not-allowed;
78
78
 
79
79
  .outlinedButtonLabel {
80
- color: $color-gray-2 !important;
80
+ color: colors.$color-gray-2 !important;
81
81
  }
82
82
  }
83
83
  }
@@ -2,9 +2,7 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
6
-
7
- @import '../../../style/variables';
5
+ @use '../../../style/common-variables' as commons;
8
6
 
9
7
  .dvr-simple-button {
10
8
  position: relative;
@@ -43,7 +41,7 @@
43
41
  }
44
42
 
45
43
  .ripple {
46
- @include borderRadius(50%);
44
+ border-radius: 50%;
47
45
  position: absolute;
48
46
  opacity: .5;
49
47
  width: 10%;
@@ -66,7 +64,7 @@
66
64
  }
67
65
 
68
66
  &.primary {
69
- @include backgroundShadow;
67
+ @include commons.backgroundShadow;
70
68
  }
71
69
 
72
70
  &.disabled {
@@ -4,11 +4,10 @@
4
4
  import './style/DVRCarousel.scss';
5
5
 
6
6
  import React, {MouseEventHandler} from 'react';
7
- import {PureComponent, ReactElement} from "react";
8
- import AwesomeIcon from "../icon/awesomeIcon";
9
- import classNames from "classnames";
10
- import {voidFunction} from "../util/controlUtil";
11
- import isEqual from 'lodash.isequal';
7
+ import {PureComponent, ReactElement} from 'react';
8
+ import AwesomeIcon from '../icon/awesomeIcon';
9
+ import classNames from 'classnames';
10
+ import {voidFunction} from '../util/controlUtil';
12
11
 
13
12
  interface Props {
14
13
  onClickNext: MouseEventHandler;
@@ -29,8 +28,8 @@ interface State {
29
28
 
30
29
  export default class DVRCarousel extends PureComponent<Props, State> {
31
30
  state: State = {
32
- initialRendered: false,
33
- }
31
+ initialRendered: false
32
+ };
34
33
  carousel: HTMLDivElement;
35
34
 
36
35
  getMaxWidth = (): number => {
@@ -49,14 +48,14 @@ export default class DVRCarousel extends PureComponent<Props, State> {
49
48
 
50
49
  getVisibleIndexes = (): { firstIndex: number, lastIndex: number } => {
51
50
  const {currentIndex, visibleItems, infinite, children} = this.props,
52
- itemsBefore = Math.floor((visibleItems - 1) / 2), itemsAfter = Math.ceil((visibleItems - 1) / 2)
51
+ itemsBefore = Math.floor((visibleItems - 1) / 2), itemsAfter = Math.ceil((visibleItems - 1) / 2);
53
52
  let firstIndex = currentIndex - itemsBefore, lastIndex = currentIndex + itemsAfter;
54
53
  if (firstIndex < 0) {
55
54
  lastIndex = visibleItems - 1;
56
55
  firstIndex = 0;
57
56
  }
58
57
  if (lastIndex > children.length - 1) {
59
- if (infinite) lastIndex -= (children.length - 1)
58
+ if (infinite) lastIndex -= (children.length - 1);
60
59
  else {
61
60
  lastIndex = children.length - -1;
62
61
  firstIndex = Math.max(0, lastIndex - visibleItems);
@@ -67,7 +66,7 @@ export default class DVRCarousel extends PureComponent<Props, State> {
67
66
 
68
67
  getItemContainer = (index: number): HTMLDivElement | null => {
69
68
  return document.querySelector(`div[data-name=dvr-carousel-${index}]`);
70
- }
69
+ };
71
70
 
72
71
  getVisibleWidth = (): number => {
73
72
  const {firstIndex, lastIndex} = this.getVisibleIndexes();
@@ -99,7 +98,7 @@ export default class DVRCarousel extends PureComponent<Props, State> {
99
98
 
100
99
  }
101
100
  if (!this.state.initialRendered) this.setState({initialRendered: true});
102
- }
101
+ };
103
102
 
104
103
  renderPrevControl = () => {
105
104
  const {showControls, onClickPrev, currentIndex, infinite} = this.props;
@@ -120,7 +119,9 @@ export default class DVRCarousel extends PureComponent<Props, State> {
120
119
  };
121
120
 
122
121
  renderItems = () => {
123
- const {lazy, children} = this.props, {initialRendered} = this.state, {firstIndex, lastIndex} = this.getVisibleIndexes();
122
+ const {lazy, children} = this.props, {initialRendered} = this.state, {
123
+ firstIndex, lastIndex
124
+ } = this.getVisibleIndexes();
124
125
  return (
125
126
  <div className='carousel-items-container' ref={(ref: HTMLDivElement) => {
126
127
  this.carousel = ref;
@@ -133,11 +134,11 @@ export default class DVRCarousel extends PureComponent<Props, State> {
133
134
  data-name={`dvr-carousel-${index}`}>
134
135
  {(!hidden || !lazy) && child}
135
136
  </div>
136
- )
137
+ );
137
138
  })}
138
139
  </div>
139
140
  </div>
140
- )
141
+ );
141
142
  };
142
143
 
143
144
  componentDidMount = () => {
@@ -146,7 +147,8 @@ export default class DVRCarousel extends PureComponent<Props, State> {
146
147
 
147
148
  componentDidUpdate = (prevProps: Props, prevState: State) => {
148
149
  const {currentIndex, visibleItems, children} = this.props, {initialRendered} = this.state;
149
- if (currentIndex !== prevProps.currentIndex || visibleItems !== prevProps.visibleItems || !isEqual(children, prevProps.children) || initialRendered !== prevState.initialRendered)
150
+ if (currentIndex !== prevProps.currentIndex || visibleItems !== prevProps.visibleItems || JSON.stringify(
151
+ children) !== JSON.stringify(prevProps.children) || initialRendered !== prevState.initialRendered)
150
152
  window.setTimeout(this.setStyle, 0);
151
153
  };
152
154
 
@@ -157,6 +159,6 @@ export default class DVRCarousel extends PureComponent<Props, State> {
157
159
  {this.renderItems()}
158
160
  {this.renderNextControl()}
159
161
  </div>
160
- )
162
+ );
161
163
  };
162
164
  }
@@ -2,7 +2,7 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
5
+ @use '../../../style/colors';
6
6
 
7
7
  .dvr-carousel {
8
8
  display: grid;
@@ -11,12 +11,11 @@
11
11
  justify-items: center;
12
12
 
13
13
  .carousel-control {
14
- color: $color-gray-5;
14
+ color: colors.$color-gray-5;
15
15
  font-size: 1rem;
16
16
  }
17
17
 
18
18
  .carousel-items-container {
19
- //transition: width .2s ease-in-out;
20
19
  overflow: hidden;
21
20
 
22
21
  .items-container {
@@ -2,7 +2,8 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
5
+ @use '../../../style/colors';
6
+ @use '../../../style/common-variables' as commons;
6
7
 
7
8
  .checkboxContainer {
8
9
  display: grid;
@@ -16,7 +17,7 @@
16
17
 
17
18
  .checkboxLabel {
18
19
  font-size: .9rem;
19
- color: $color-gray-5;
20
+ color: colors.$color-gray-5;
20
21
  cursor: inherit;
21
22
  user-select: none;
22
23
  transition: color .2s ease;
@@ -28,7 +29,7 @@
28
29
  }
29
30
 
30
31
  .checkbox {
31
- @include borderRadius(.2rem);
32
+ border-radius: .2rem;
32
33
  position: relative;
33
34
  height: 22px;
34
35
  width: 22px;
@@ -38,7 +39,7 @@
38
39
  box-sizing: border-box;
39
40
 
40
41
  .checkboxCheck, .checkbox-check {
41
- @include centerXY;
42
+ @include commons.centerXY;
42
43
  top: 55%;
43
44
  font-size: .9rem;
44
45
  cursor: inherit;
@@ -61,8 +62,8 @@
61
62
  }
62
63
 
63
64
  .ripple {
64
- @include centerXY;
65
- @include borderRadius(50%);
65
+ @include commons.centerXY;
66
+ border-radius: 50%;
66
67
  opacity: 1;
67
68
  width: 8px;
68
69
  height: 8px;
@@ -74,7 +75,7 @@
74
75
  border-radius: 50%;
75
76
 
76
77
  .checkbox-check {
77
- @include centerXY;
78
+ @include commons.centerXY;
78
79
  font-size: 10px;
79
80
  }
80
81
  }
@@ -2,8 +2,6 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
6
-
7
5
  .color-picker-container {
8
6
  display: flex;
9
7
  flex-direction: column;
@@ -22,7 +22,6 @@ import DvrdButton from "../button/dvrdButton";
22
22
  import {generateComponentId} from "../util/componentUtil";
23
23
  import IDate from '@dvrd/idate';
24
24
  import {pad} from "../util/controlUtil";
25
- import defer from 'lodash.defer';
26
25
  import {Swiper, SwiperClass, SwiperSlide} from 'swiper/react';
27
26
  import {FreeMode, Mousewheel} from 'swiper/modules';
28
27
  import 'swiper/css';
@@ -356,7 +355,7 @@ function DatePicker(props: DatePickerProps) {
356
355
  useEffect(() => {
357
356
  if (open) {
358
357
  document.addEventListener('keydown', keyListener);
359
- defer(addMountClass);
358
+ window.setTimeout(addMountClass);
360
359
  window.setTimeout(removeMountClass, 1000);
361
360
  } else {
362
361
  document.removeEventListener('keydown', keyListener);
@@ -2,12 +2,14 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
5
+ @use '../../../style/colors';
6
+ @use '../../../style/display-breakpoints' as breakpoints;
7
+ @use '../../../style/common-variables' as commons;
6
8
 
7
9
  .dvrd-date-picker {
8
10
  display: flex;
9
11
  flex-direction: column;
10
- color: $color-blue-text;
12
+ color: colors.$color-blue-text;
11
13
  position: relative;
12
14
 
13
15
  .field-label {
@@ -25,13 +27,13 @@
25
27
  position: relative;
26
28
  cursor: pointer;
27
29
  background-color: white;
28
- color: $color-blue-text;
30
+ color: colors.$color-blue-text;
29
31
 
30
32
  .value {
31
33
  transition: color .1s ease-in-out;
32
34
 
33
35
  &.placeholder {
34
- color: $color-gray-3;
36
+ color: colors.$color-gray-3;
35
37
  }
36
38
  }
37
39
 
@@ -43,21 +45,21 @@
43
45
  }
44
46
 
45
47
  &.no-mob {
46
- @include break-xs {
48
+ @include breakpoints.break-xs {
47
49
  display: none;
48
50
  }
49
51
  }
50
52
  }
51
53
 
52
54
  .picker {
53
- @include backgroundShadow2;
55
+ @include commons.backgroundShadow2;
54
56
  --day-size: 26px;
55
57
  background-color: white;
56
58
  display: grid;
57
59
  grid-template-columns: 1fr;
58
60
  width: calc(var(--day-size) * 7 + .5rem * 6 + 1rem);
59
61
  max-width: 100vw;
60
- color: $color-blue-text;
62
+ color: colors.$color-blue-text;
61
63
 
62
64
  .switcher, .current-date-container, .days-container, .today-container, .actions-container {
63
65
  padding: .5rem;
@@ -94,7 +96,7 @@
94
96
  user-select: none;
95
97
 
96
98
  &:hover {
97
- color: $color-gray-7;
99
+ color: colors.$color-gray-7;
98
100
  }
99
101
  }
100
102
 
@@ -127,16 +129,16 @@
127
129
 
128
130
  .current-date-label {
129
131
  font-size: .9rem;
130
- color: $color-gray-3;
132
+ color: colors.$color-gray-3;
131
133
  }
132
134
 
133
135
  .tooltip-container {
134
- @include centerY;
136
+ @include commons.centerY;
135
137
  position: absolute;
136
138
  right: .5rem;
137
139
 
138
140
  .tooltip-icon {
139
- color: $color-gray-3;
141
+ color: colors.$color-gray-3;
140
142
  font-size: .8rem;
141
143
  cursor: help;
142
144
  }
@@ -156,12 +158,12 @@
156
158
  display: grid;
157
159
  grid-template-columns: auto;
158
160
  grid-row-gap: .5rem;
159
- border: 1px solid $color-gray-4;
161
+ border: 1px solid colors.$color-gray-4;
160
162
 
161
163
  .tooltip-label {
162
164
  justify-self: center;
163
165
  font-size: .8rem;
164
- color: $color-gray-3;
166
+ color: colors.$color-gray-3;
165
167
  }
166
168
 
167
169
  .key {
@@ -184,14 +186,14 @@
184
186
 
185
187
  .shortcut, .directive {
186
188
  font-size: .8rem;
187
- color: $color-gray-3;
189
+ color: colors.$color-gray-3;
188
190
  white-space: nowrap;
189
191
  }
190
192
 
191
193
  .shortcut {
192
194
  font-size: .7rem;
193
195
  padding: .1rem .25rem;
194
- border: 1px solid $color-gray-3;
196
+ border: 1px solid colors.$color-gray-3;
195
197
 
196
198
  &.text {
197
199
  padding: 0 .25rem;
@@ -206,7 +208,7 @@
206
208
 
207
209
  &:hover {
208
210
  .tooltip {
209
- @include backgroundShadow;
211
+ @include commons.backgroundShadow;
210
212
  visibility: visible;
211
213
  opacity: 1;
212
214
  }
@@ -243,7 +245,7 @@
243
245
  }
244
246
 
245
247
  &.pad {
246
- color: $color-gray-4;
248
+ color: colors.$color-gray-4;
247
249
  }
248
250
 
249
251
  &.selected {
@@ -256,7 +258,7 @@
256
258
  }
257
259
 
258
260
  &.disabled {
259
- color: $color-gray-4;
261
+ color: colors.$color-gray-4;
260
262
  background-color: unset;
261
263
  cursor: default;
262
264
  }
@@ -323,7 +325,7 @@
323
325
 
324
326
  .vizor {
325
327
  position: absolute;
326
- background-color: $color-gray-4;
328
+ background-color: colors.$color-gray-4;
327
329
  width: 100%;
328
330
  height: 1px;
329
331
  z-index: 1;
@@ -2,24 +2,27 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
5
+ @use '../../../style/common-variables' as commons;
6
+ @use '../../../style/colors';
7
+ @use '../../../style/display-breakpoints' as breakpoints;
6
8
 
7
9
  .dialogContainer {
8
- @include popupContainer;
9
- z-index: $z-index-dialog;
10
+ @include commons.popupContainer;
11
+ z-index: commons.$z-index-dialog;
10
12
 
11
13
  &.transparent {
12
14
  background-color: transparent;
13
15
  }
14
16
 
15
17
  .dvr-dialog {
16
- @include popupDialog;
17
- background-color: white;
18
- display: flex;
19
- flex-direction: column;
20
- max-width: 40rem;
21
- max-height: 100%;
22
- padding: 1.5rem 2rem;
18
+ @include commons.popupDialog;
19
+ & {
20
+ display: flex;
21
+ flex-direction: column;
22
+ max-width: 40rem;
23
+ max-height: 100%;
24
+ padding: 1.5rem 2rem;
25
+ }
23
26
 
24
27
  .dialogTitleContainer {
25
28
 
@@ -34,7 +37,7 @@
34
37
 
35
38
  .dialogMessage {
36
39
  margin: 0;
37
- color: $color-gray-5;
40
+ color: colors.$color-gray-5;
38
41
  }
39
42
  }
40
43
 
@@ -53,7 +56,7 @@
53
56
  }
54
57
  }
55
58
 
56
- @include break-sm-down {
59
+ @include breakpoints.break-sm-down {
57
60
  width: 90vw;
58
61
  box-sizing: border-box;
59
62
  }
@@ -2,11 +2,11 @@
2
2
  * Copyright (c) 2024. Dave van Rijn Development
3
3
  */
4
4
 
5
- @import '../../../style/variables';
5
+ @use '../../../style/colors';
6
6
 
7
7
  .dvrd-file-upload {
8
8
  border-radius: 1rem;
9
- border: 1px solid $color-gray-4;
9
+ border: 1px solid colors.$color-gray-4;
10
10
  padding: 1rem;
11
11
  width: 50rem;
12
12
  max-width: 100dvw;