@kvdbil/components 16.0.1 → 16.0.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.
Files changed (71) hide show
  1. package/cjs/components/Badge/index.js +1 -1
  2. package/cjs/components/Breadcrumbs/BreadcrumbsItem.js +1 -1
  3. package/cjs/components/Button/index.js +1 -1
  4. package/cjs/components/Button/styles.js +1 -1
  5. package/cjs/components/Card/index.js +8 -8
  6. package/cjs/components/CheckBox/index.js +12 -11
  7. package/cjs/components/DayPicker/index.js +6 -2
  8. package/cjs/components/DayPicker/style.js +367 -168
  9. package/cjs/components/ErrorMessage/index.js +2 -2
  10. package/cjs/components/FieldLabel.js +4 -4
  11. package/cjs/components/IconButton.js +15 -16
  12. package/cjs/components/RadioButton/index.js +24 -23
  13. package/cjs/components/Select/index.js +9 -9
  14. package/cjs/components/Snackbar/index.js +6 -5
  15. package/cjs/components/Spinner/index.js +1 -1
  16. package/cjs/components/Stamp/index.js +1 -1
  17. package/cjs/components/Stepper/index.js +15 -14
  18. package/cjs/components/StepperAccordion/index.js +13 -13
  19. package/cjs/components/Switcher/index.js +2 -2
  20. package/cjs/components/Tabs/Tab.js +5 -5
  21. package/cjs/components/Tabs/Tabs.js +3 -3
  22. package/cjs/components/TextArea/index.js +4 -4
  23. package/cjs/components/Toggle/index.js +6 -6
  24. package/cjs/components/ValuationRange/index.js +15 -15
  25. package/cjs/index.js +1 -1
  26. package/cjs/utils/utils.js +2 -2
  27. package/esm/components/Badge/index.js +1 -1
  28. package/esm/components/Breadcrumbs/BreadcrumbsItem.js +3 -3
  29. package/esm/components/Button/index.js +5 -5
  30. package/esm/components/Button/styles.js +23 -23
  31. package/esm/components/Card/index.js +9 -9
  32. package/esm/components/CheckBox/index.js +19 -18
  33. package/esm/components/DayPicker/index.js +7 -3
  34. package/esm/components/DayPicker/style.js +367 -168
  35. package/esm/components/ErrorMessage/index.js +4 -4
  36. package/esm/components/FieldLabel.js +16 -16
  37. package/esm/components/IconButton.js +12 -13
  38. package/esm/components/RadioButton/index.js +28 -27
  39. package/esm/components/Select/index.js +4 -4
  40. package/esm/components/Snackbar/index.js +16 -15
  41. package/esm/components/Spinner/index.js +3 -3
  42. package/esm/components/Stamp/index.js +1 -1
  43. package/esm/components/Stepper/index.js +33 -32
  44. package/esm/components/StepperAccordion/index.js +21 -21
  45. package/esm/components/Switcher/index.js +4 -4
  46. package/esm/components/Tabs/Tab.js +5 -5
  47. package/esm/components/Tabs/Tabs.js +8 -8
  48. package/esm/components/TextArea/index.js +2 -2
  49. package/esm/components/Toggle/index.js +6 -6
  50. package/esm/components/ValuationRange/index.js +15 -15
  51. package/esm/index.js +1 -1
  52. package/esm/utils/utils.js +2 -2
  53. package/package.json +6 -3
  54. package/package.json.tmp +6 -3
  55. package/types/components/Button/styles.d.ts +2 -2
  56. package/types/components/Card/index.d.ts +4 -1
  57. package/types/components/CheckBox/index.d.ts +3 -2
  58. package/types/components/DayPicker/index.d.ts +7 -4
  59. package/types/components/IconButton.d.ts +5 -3
  60. package/types/components/RadioButton/index.d.ts +3 -2
  61. package/types/components/Select/index.d.ts +3 -2
  62. package/types/components/Stamp/index.d.ts +3 -2
  63. package/types/components/Stepper/index.d.ts +3 -2
  64. package/types/components/StepperAccordion/index.d.ts +2 -1
  65. package/types/components/Switcher/index.d.ts +3 -2
  66. package/types/components/Tabs/Tab.d.ts +2 -1
  67. package/types/components/Tabs/Tabs.d.ts +3 -2
  68. package/types/components/Toggle/index.d.ts +3 -2
  69. package/types/components/ValuationRange/index.d.ts +3 -2
  70. package/types/index.d.ts +1 -1
  71. package/types/utils/utils.d.ts +9 -1
@@ -1,252 +1,451 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("styled-components").css`
2
- /* DayPicker styles */
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var r=require("styled-components").css`
2
+ /* Variables declaration */
3
+ /* prettier-ignore */
4
+ .rdp-root {
5
+ --rdp-accent-color: blue; /* The accent color used for selected days and UI elements. */
6
+ --rdp-accent-background-color: #f0f0ff; /* The accent background color used for selected days and UI elements. */
7
+
8
+ --rdp-day-height: 44px; /* The height of the day cells. */
9
+ --rdp-day-width: 44px; /* The width of the day cells. */
10
+
11
+ --rdp-day_button-border-radius: 100%; /* The border radius of the day cells. */
12
+ --rdp-day_button-border: 2px solid transparent; /* The border of the day cells. */
13
+ --rdp-day_button-height: 42px; /* The height of the day cells. */
14
+ --rdp-day_button-width: 42px; /* The width of the day cells. */
15
+
16
+ --rdp-selected-border: none; /* The border of the selected days. */
17
+ --rdp-disabled-opacity: 0.5; /* The opacity of the disabled days. */
18
+ --rdp-outside-opacity: 0.75; /* The opacity of the days outside the current month. */
19
+ --rdp-today-color: var(--rdp-accent-color); /* The color of the today's date. */
20
+
21
+ --rdp-dropdown-gap: 0.5rem;/* The gap between the dropdowns used in the month captons. */
22
+
23
+ --rdp-months-gap: 2rem; /* The gap between the months in the multi-month view. */
24
+
25
+ --rdp-nav_button-disabled-opacity: 0.5; /* The opacity of the disabled navigation buttons. */
26
+ --rdp-nav_button-height: 2.25rem; /* The height of the navigation buttons. */
27
+ --rdp-nav_button-width: 2.25rem; /* The width of the navigation buttons. */
28
+ --rdp-nav-height: 2.75rem; /* The height of the navigation bar. */
29
+
30
+ --rdp-range_middle-background-color: var(--rdp-accent-background-color); /* The color of the background for days in the middle of a range. */
31
+ --rdp-range_middle-color: inherit;/* The color of the range text. */
32
+
33
+ --rdp-range_start-color: white; /* The color of the range text. */
34
+ --rdp-range_start-background: linear-gradient(var(--rdp-gradient-direction), transparent 50%, var(--rdp-range_middle-background-color) 50%); /* Used for the background of the start of the selected range. */
35
+ --rdp-range_start-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the start of the selected range. */
36
+
37
+ --rdp-range_end-background: linear-gradient(var(--rdp-gradient-direction), var(--rdp-range_middle-background-color) 50%, transparent 50%); /* Used for the background of the end of the selected range. */
38
+ --rdp-range_end-color: white;/* The color of the range text. */
39
+ --rdp-range_end-date-background-color: var(--rdp-accent-color); /* The background color of the date when at the end of the selected range. */
40
+
41
+ --rdp-week_number-border-radius: 100%; /* The border radius of the week number. */
42
+ --rdp-week_number-border: 2px solid transparent; /* The border of the week number. */
43
+
44
+ --rdp-week_number-height: var(--rdp-day-height); /* The height of the week number cells. */
45
+ --rdp-week_number-opacity: 0.75; /* The opacity of the week number. */
46
+ --rdp-week_number-width: var(--rdp-day-width); /* The width of the week number cells. */
47
+ --rdp-weeknumber-text-align: center; /* The text alignment of the weekday cells. */
48
+
49
+ --rdp-weekday-opacity: 0.75; /* The opacity of the weekday. */
50
+ --rdp-weekday-padding: 0.5rem 0rem; /* The padding of the weekday. */
51
+ --rdp-weekday-text-align: center; /* The text alignment of the weekday cells. */
52
+
53
+ --rdp-gradient-direction: 90deg;
54
+
55
+ --rdp-animation_duration: 0.3s;
56
+ --rdp-animation_timing: cubic-bezier(0.4, 0, 0.2, 1);
57
+ }
58
+
59
+ .rdp-root[dir='rtl'] {
60
+ --rdp-gradient-direction: -90deg;
61
+ }
62
+
63
+ .rdp-root[data-broadcast-calendar='true'] {
64
+ --rdp-outside-opacity: unset;
65
+ }
66
+
67
+ /* Root of the component. */
68
+ .rdp-root {
69
+ position: relative; /* Required to position the navigation toolbar. */
70
+ box-sizing: border-box;
71
+ }
72
+
73
+ .rdp-root * {
74
+ box-sizing: border-box;
75
+ }
76
+
77
+ .rdp-day {
78
+ width: var(--rdp-day-width);
79
+ height: var(--rdp-day-height);
80
+ text-align: center;
81
+ }
3
82
 
4
- abbr {
5
- font-weight: 500;
6
- color: ${({theme:e})=>e.colors.text.dark};
83
+ .rdp-day_button {
84
+ background: none;
85
+ padding: 0;
86
+ margin: 0;
87
+ cursor: pointer;
88
+ font: inherit;
89
+ color: inherit;
90
+ justify-content: center;
91
+ align-items: center;
92
+ display: flex;
93
+
94
+ width: var(--rdp-day_button-width);
95
+ height: var(--rdp-day_button-height);
96
+ border: var(--rdp-day_button-border);
97
+ border-radius: var(--rdp-day_button-border-radius);
98
+ }
99
+
100
+ .rdp-day_button:disabled {
101
+ cursor: revert;
102
+ }
103
+
104
+ .rdp-caption_label {
105
+ z-index: 1;
106
+
107
+ position: relative;
108
+ display: inline-flex;
109
+ align-items: center;
110
+
111
+ white-space: nowrap;
112
+ border: 0;
113
+ }
114
+
115
+ .rdp-dropdown:focus-visible ~ .rdp-caption_label {
116
+ outline: 5px auto Highlight;
117
+ outline: 5px auto -webkit-focus-ring-color;
118
+ }
119
+
120
+ .rdp-button_next,
121
+ .rdp-button_previous {
122
+ border: none;
123
+ background: none;
124
+ padding: 0;
125
+ margin: 0;
126
+ cursor: pointer;
127
+ font: inherit;
128
+ color: inherit;
129
+ -moz-appearance: none;
130
+ -webkit-appearance: none;
131
+ display: inline-flex;
132
+ align-items: center;
133
+ justify-content: center;
134
+ position: relative;
135
+ appearance: none;
136
+
137
+ width: var(--rdp-nav_button-width);
138
+ height: var(--rdp-nav_button-height);
139
+ }
140
+
141
+ .rdp-button_next:disabled,
142
+ .rdp-button_next[aria-disabled='true'],
143
+ .rdp-button_previous:disabled,
144
+ .rdp-button_previous[aria-disabled='true'] {
145
+ cursor: revert;
146
+
147
+ opacity: var(--rdp-nav_button-disabled-opacity);
7
148
  }
8
149
 
9
- .DayPicker {
150
+ .rdp-chevron {
10
151
  display: inline-block;
11
- font-size: 1rem;
12
152
  }
13
153
 
14
- .DayPicker-wrapper {
154
+ .rdp-root[dir='rtl'] .rdp-nav .rdp-chevron {
155
+ transform: rotate(180deg);
156
+ transform-origin: 50%;
157
+ }
158
+
159
+ .rdp-dropdowns {
15
160
  position: relative;
16
- flex-direction: row;
17
- padding-bottom: 1em;
18
- -webkit-user-select: none;
19
- -moz-user-select: none;
20
- -ms-user-select: none;
21
- user-select: none;
22
-
23
- &:focus {
24
- outline: none;
25
- }
161
+ display: inline-flex;
162
+ align-items: center;
163
+ gap: var(--rdp-dropdown-gap);
164
+ }
165
+ .rdp-dropdown {
166
+ z-index: 2;
167
+
168
+ /* Reset */
169
+ opacity: 0;
170
+ appearance: none;
171
+ position: absolute;
172
+ inset-block-start: 0;
173
+ inset-block-end: 0;
174
+ inset-inline-start: 0;
175
+ width: 100%;
176
+ margin: 0;
177
+ padding: 0;
178
+ cursor: inherit;
179
+ border: none;
180
+ line-height: inherit;
181
+ }
182
+
183
+ .rdp-dropdown_root {
184
+ position: relative;
185
+ display: inline-flex;
186
+ align-items: center;
187
+ }
188
+
189
+ .rdp-dropdown_root[data-disabled='true'] .rdp-chevron {
190
+ opacity: var(--rdp-disabled-opacity);
26
191
  }
27
192
 
28
- .DayPicker-Months {
193
+ .rdp-month_caption {
29
194
  display: flex;
30
- flex-wrap: wrap;
195
+ align-content: center;
196
+ height: var(--rdp-nav-height);
197
+ font-weight: bold;
198
+ font-size: large;
199
+ }
200
+
201
+ .rdp-root[data-nav-layout='around'] .rdp-month,
202
+ .rdp-root[data-nav-layout='after'] .rdp-month {
203
+ position: relative;
204
+ }
205
+
206
+ .rdp-root[data-nav-layout='around'] .rdp-month_caption {
31
207
  justify-content: center;
208
+ margin-inline-start: var(--rdp-nav_button-width);
209
+ margin-inline-end: var(--rdp-nav_button-width);
210
+ position: relative;
32
211
  }
33
212
 
34
- .DayPicker-Month {
35
- border-spacing: 7px;
36
- border-collapse: inherit;
37
- display: table;
38
- margin: 0 1em;
39
- margin-top: 1em;
40
- -webkit-user-select: none;
41
- -moz-user-select: none;
42
- -ms-user-select: none;
43
- user-select: none;
213
+ .rdp-root[data-nav-layout='around'] .rdp-button_previous {
214
+ position: absolute;
215
+ inset-inline-start: 0;
216
+ top: 0;
217
+ height: var(--rdp-nav-height);
218
+ display: inline-flex;
44
219
  }
45
220
 
46
- .DayPicker-NavButton {
221
+ .rdp-root[data-nav-layout='around'] .rdp-button_next {
47
222
  position: absolute;
48
- top: 1em;
49
- right: 1.5em;
50
- left: auto;
51
- display: inline-block;
52
- margin-top: 2px;
53
- width: 1.25em;
54
- height: 1.25em;
55
- background-position: center;
56
- background-size: 50%;
57
- background-repeat: no-repeat;
58
- color: ${({theme:e})=>e.colors.grayscaleToned.light1};
59
- cursor: pointer;
223
+ inset-inline-end: 0;
224
+ top: 0;
225
+ height: var(--rdp-nav-height);
226
+ display: inline-flex;
227
+ justify-content: center;
60
228
  }
61
229
 
62
- .DayPicker-NavButton:hover {
63
- opacity: 0.8;
230
+ .rdp-months {
231
+ position: relative;
232
+ display: flex;
233
+ flex-wrap: wrap;
234
+ gap: var(--rdp-months-gap);
235
+ max-width: fit-content;
64
236
  }
65
237
 
66
- .DayPicker-NavButton--prev {
67
- margin-right: 1.5em;
68
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAVVJREFUWAnN2G0KgjAYwPHpGfRkaZeqvgQaK+hY3SUHrk1YzNLay/OiEFp92I+/Mp2F2Mh2lLISWnflFjzH263RQjzMZ19wgs73ez0o1WmtW+dgA01VxrE3p6l2GLsnBy1VYQOtVSEH/atCCgqpQgKKqYIOiq2CBkqtggLKqQIKgqgCBjpJ2Y5CdJ+zrT9A7HHSTA1dxUdHgzCqJIEwq0SDsKsEg6iqBIEoq/wEcVRZBXFV+QJxV5mBtlDFB5VjYTaGZ2sf4R9PM7U9ZU+lLuaetPP/5Die3ToO1+u+MKtHs06qODB2zBnI/jBd4MPQm1VkY79Tb18gB+C62FdBFsZR6yeIo1YQiLJWMIiqVjQIu1YSCLNWFgijVjYIuhYYCKoWKAiiFgoopxYaKLUWOii2FgkophYp6F3r42W5A9s9OcgNvva8xQaysKXlFytoqdYmQH6tF3toSUo0INq9AAAAAElFTkSuQmCC');
238
+ .rdp-month_grid {
239
+ border-collapse: collapse;
69
240
  }
70
241
 
71
- .DayPicker-NavButton--next {
72
- background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAwCAYAAAB5R9gVAAAABGdBTUEAALGPC/xhBQAAAXRJREFUWAnN119ugjAcwPHWzJ1gnmxzB/BBE0n24m4xfNkTaOL7wOtsl3AXMMb+Vjaa1BG00N8fSEibPpAP3xAKKs2yjzTPH9RAjhEo9WzPr/Vm8zgE0+gXATAxxuxtqeJ9t5tIwv5AtQAApsfT6TPdbp+kUBcgVwvO51KqVhMkXKsVJFXrOkigVhCIs1Y4iKlWZxB1rX4gwlpRIIpa8SDkWmggrFq4IIRaJKCYWnSgnrXIQV1r8YD+1Vrn+bReagysIFfLABRt31v8oBu1xEBttfRbltmfjgEcWh9snUS2kNdBK6WN1vrOWxObWsz+fjxevsxmB1GQDfINWiev83nhaoiB/CoOU438oPrhXS0WpQ9xc1ZQWxWHqUYe0I0qrKCQKjygDlXIQV2r0IF6ViEBxVTBBSFUQQNhVYkHIVeJAtkNsbQ7c1LtzP6FsObhb2rCKv7NBIGoq4SDmKoEgTirXAcJVGkFSVVpgoSrXICGUMUH/QBZNSUy5XWUhwAAAABJRU5ErkJggg==');
242
+ .rdp-nav {
243
+ position: absolute;
244
+ inset-block-start: 0;
245
+ inset-inline-end: 0;
246
+
247
+ display: flex;
248
+ align-items: center;
249
+
250
+ height: var(--rdp-nav-height);
73
251
  }
74
252
 
75
- .DayPicker-NavButton--interactionDisabled {
76
- display: none;
253
+ .rdp-weekday {
254
+ opacity: var(--rdp-weekday-opacity);
255
+ padding: var(--rdp-weekday-padding);
256
+ font-weight: 500;
257
+ font-size: smaller;
258
+ text-align: var(--rdp-weekday-text-align);
259
+ text-transform: var(--rdp-weekday-text-transform);
77
260
  }
78
261
 
79
- .DayPicker-Caption {
80
- display: table-caption;
81
- margin-bottom: 0.5em;
82
- padding: 0 0.5em;
83
- text-align: left;
262
+ .rdp-week_number {
263
+ opacity: var(--rdp-week_number-opacity);
264
+ font-weight: 400;
265
+ font-size: small;
266
+ height: var(--rdp-week_number-height);
267
+ width: var(--rdp-week_number-width);
268
+ border: var(--rdp-week_number-border);
269
+ border-radius: var(--rdp-week_number-border-radius);
270
+ text-align: var(--rdp-weeknumber-text-align);
84
271
  }
85
272
 
86
- .DayPicker-Caption > div {
87
- font-weight: 500;
88
- font-size: 1.15em;
273
+ /* DAY MODIFIERS */
274
+ .rdp-today:not(.rdp-outside) {
275
+ color: var(--rdp-today-color);
89
276
  }
90
277
 
91
- .DayPicker-Weekdays {
92
- display: table-header-group;
93
- margin-top: 1em;
94
- font-size: 1em;
95
- text-transform: uppercase;
278
+ .rdp-selected {
279
+ font-weight: bold;
280
+ font-size: large;
96
281
  }
97
282
 
98
- .DayPicker-WeekdaysRow {
99
- display: table-row;
283
+ .rdp-selected .rdp-day_button {
284
+ border: var(--rdp-selected-border);
100
285
  }
101
286
 
102
- .DayPicker-Weekday {
103
- color: ${({theme:e})=>e.colors.grayscaleToned.light1};
104
- width: 35px;
105
- display: table-cell;
106
- padding: 0.5em;
107
- color: ${({theme:e})=>e.colors.grayscaleToned.light1};
108
- text-align: center;
109
- font-size: 0.875em;
287
+ .rdp-outside {
288
+ opacity: var(--rdp-outside-opacity);
110
289
  }
111
290
 
112
- .DayPicker-Weekday abbr[title] {
113
- border-bottom: none;
114
- text-decoration: none;
291
+ .rdp-disabled {
292
+ opacity: var(--rdp-disabled-opacity);
115
293
  }
116
294
 
117
- .DayPicker-Body {
118
- display: table-row-group;
295
+ .rdp-hidden {
296
+ visibility: hidden;
297
+ color: var(--rdp-range_start-color);
119
298
  }
120
299
 
121
- .DayPicker-Week {
122
- height: 35px;
123
- display: table-row;
300
+ .rdp-range_start {
301
+ background: var(--rdp-range_start-background);
124
302
  }
125
303
 
126
- .DayPicker-Day {
127
- display: table-cell;
128
- border-radius: 50%;
129
- vertical-align: middle;
130
- text-align: center;
131
- cursor: pointer;
132
- padding: 0;
133
- border: 0px solid transparent;
134
- font-size: 12px;
135
- font-weight: ${({theme:e})=>e.typography.fontAlternativeBoldWeight};
136
- color: ${({theme:e})=>e.colors.text.dark};
304
+ .rdp-range_start .rdp-day_button {
305
+ background-color: var(--rdp-range_start-date-background-color);
306
+ color: var(--rdp-range_start-color);
307
+ }
137
308
 
138
- :hover {
139
- background-color: ${({theme:e})=>e.colors.info.lighter2};
140
- }
309
+ .rdp-range_middle {
310
+ background-color: var(--rdp-range_middle-background-color);
311
+ }
141
312
 
142
- :focus {
143
- background-color: transparent;
144
- box-shadow: 0px 0px 0px 0px transparent !important;
145
- border: 0px solid transparent;
146
- }
313
+ .rdp-range_middle .rdp-day_button {
314
+ border-color: transparent;
315
+ border: unset;
316
+ border-radius: unset;
317
+ color: var(--rdp-range_middle-color);
147
318
  }
148
319
 
149
- .DayPicker-WeekNumber {
150
- display: table-cell;
151
- padding: 0.5em;
152
- min-width: 1em;
153
- border-right: 1px solid ${({theme:e})=>e.colors.grayscaleToned.light5};
154
- color: ${({theme:e})=>e.colors.grayscaleToned.light5};
155
- vertical-align: middle;
156
- text-align: right;
157
- font-size: 0.75em;
158
- cursor: pointer;
320
+ .rdp-range_end {
321
+ background: var(--rdp-range_end-background);
322
+ color: var(--rdp-range_end-color);
159
323
  }
160
324
 
161
- .DayPicker--interactionDisabled .DayPicker-Day {
162
- cursor: default;
325
+ .rdp-range_end .rdp-day_button {
326
+ color: var(--rdp-range_start-color);
327
+ background-color: var(--rdp-range_end-date-background-color);
163
328
  }
164
329
 
165
- .DayPicker-Footer {
166
- padding-top: 0.5em;
330
+ .rdp-range_start.rdp-range_end {
331
+ background: revert;
167
332
  }
168
333
 
169
- .DayPicker-TodayButton {
170
- border: none;
171
- background-color: transparent;
172
- background-image: none;
173
- box-shadow: none;
174
- color: ${({theme:e})=>e.colors.info.main};
175
- font-size: 0.875em;
334
+ .rdp-focusable {
176
335
  cursor: pointer;
177
336
  }
178
337
 
179
- /* Default modifiers */
338
+ @keyframes rdp-slide_in_left {
339
+ 0% {
340
+ transform: translateX(-100%);
341
+ }
342
+ 100% {
343
+ transform: translateX(0);
344
+ }
345
+ }
180
346
 
181
- .DayPicker-Day--outside {
182
- color: ${({theme:e})=>e.colors.grayscaleToned.light2} !important;
183
- cursor: default;
347
+ @keyframes rdp-slide_in_right {
348
+ 0% {
349
+ transform: translateX(100%);
350
+ }
351
+ 100% {
352
+ transform: translateX(0);
353
+ }
184
354
  }
185
355
 
186
- .DayPicker-Day--disabled {
187
- color: ${({theme:e})=>e.colors.text.disabled} !important;
188
- cursor: default;
356
+ @keyframes rdp-slide_out_left {
357
+ 0% {
358
+ transform: translateX(0);
359
+ }
360
+ 100% {
361
+ transform: translateX(-100%);
362
+ }
363
+ }
189
364
 
190
- :hover {
191
- background-color: transparent;
365
+ @keyframes rdp-slide_out_right {
366
+ 0% {
367
+ transform: translateX(0);
368
+ }
369
+ 100% {
370
+ transform: translateX(100%);
192
371
  }
193
372
  }
194
373
 
195
- .DayPicker-Day--selected {
196
- color: ${({theme:e})=>e.colors.text.light};
374
+ .rdp-weeks_before_enter {
375
+ animation: rdp-slide_in_left var(--rdp-animation_duration)
376
+ var(--rdp-animation_timing) forwards;
197
377
  }
198
378
 
199
- /* Example modifiers */
379
+ .rdp-weeks_before_exit {
380
+ animation: rdp-slide_out_left var(--rdp-animation_duration)
381
+ var(--rdp-animation_timing) forwards;
382
+ }
200
383
 
201
- .DayPicker-Day--sunday {
202
- background-color: ${({theme:e})=>e.colors.grayscaleToned.light6};
384
+ .rdp-weeks_after_enter {
385
+ animation: rdp-slide_in_right var(--rdp-animation_duration)
386
+ var(--rdp-animation_timing) forwards;
203
387
  }
204
388
 
205
- .DayPicker-Day--selected.DayPicker-Day--today {
206
- color: ${({theme:e})=>e.colors.text.light} !important;
389
+ .rdp-weeks_after_exit {
390
+ animation: rdp-slide_out_right var(--rdp-animation_duration)
391
+ var(--rdp-animation_timing) forwards;
207
392
  }
208
393
 
209
- .DayPicker-Day--sunday:not(.DayPicker-Day--today) {
210
- color: ${({theme:e})=>e.colors.grayscaleToned.light5};
394
+ .rdp-root[dir='rtl'] .rdp-weeks_after_enter {
395
+ animation: rdp-slide_in_left var(--rdp-animation_duration)
396
+ var(--rdp-animation_timing) forwards;
211
397
  }
212
398
 
213
- .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
214
- .DayPicker-Day--outside
215
- ) {
216
- position: relative;
399
+ .rdp-root[dir='rtl'] .rdp-weeks_before_exit {
400
+ animation: rdp-slide_out_right var(--rdp-animation_duration)
401
+ var(--rdp-animation_timing) forwards;
402
+ }
217
403
 
218
- background-color: ${({theme:e})=>e.colors.info.main};
219
- color: ${({theme:e})=>e.colors.grayscaleToned.light6};
404
+ .rdp-root[dir='rtl'] .rdp-weeks_before_enter {
405
+ animation: rdp-slide_in_right var(--rdp-animation_duration)
406
+ var(--rdp-animation_timing) forwards;
220
407
  }
221
408
 
222
- .DayPicker-Day--selected:not(.DayPicker-Day--disabled):not(
223
- .DayPicker-Day--outside
224
- ):hover {
225
- background-color: ${({theme:e})=>e.colors.info.main};
409
+ .rdp-root[dir='rtl'] .rdp-weeks_after_exit {
410
+ animation: rdp-slide_out_left var(--rdp-animation_duration)
411
+ var(--rdp-animation_timing) forwards;
226
412
  }
227
413
 
228
- .DayPicker:not(.DayPicker--interactionDisabled)
229
- .DayPicker-Day:not(.DayPicker-Day--disabled):not(
230
- .DayPicker-Day--selected
231
- ):not(.DayPicker-Day--outside):hover {
232
- background-color: ${({theme:e})=>e.colors.info.lighter2};
414
+ @keyframes rdp-fade_in {
415
+ from {
416
+ opacity: 0;
417
+ }
418
+ to {
419
+ opacity: 1;
420
+ }
233
421
  }
234
422
 
235
- /* DayPickerInput */
423
+ @keyframes rdp-fade_out {
424
+ from {
425
+ opacity: 1;
426
+ }
427
+ to {
428
+ opacity: 0;
429
+ }
430
+ }
236
431
 
237
- .DayPickerInput {
238
- display: inline-block;
432
+ .rdp-caption_after_enter {
433
+ animation: rdp-fade_in var(--rdp-animation_duration)
434
+ var(--rdp-animation_timing) forwards;
239
435
  }
240
436
 
241
- .DayPickerInput-OverlayWrapper {
242
- position: relative;
437
+ .rdp-caption_after_exit {
438
+ animation: rdp-fade_out var(--rdp-animation_duration)
439
+ var(--rdp-animation_timing) forwards;
243
440
  }
244
441
 
245
- .DayPickerInput-Overlay {
246
- position: absolute;
247
- left: 0;
248
- z-index: 1;
249
- background: ${({theme:e})=>e.colors.background.light};
250
- box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
442
+ .rdp-caption_before_enter {
443
+ animation: rdp-fade_in var(--rdp-animation_duration)
444
+ var(--rdp-animation_timing) forwards;
445
+ }
446
+
447
+ .rdp-caption_before_exit {
448
+ animation: rdp-fade_out var(--rdp-animation_duration)
449
+ var(--rdp-animation_timing) forwards;
251
450
  }
252
- `;exports.default=e;
451
+ `;exports.default=r;
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react/jsx-runtime"),r=require("styled-components");const o=((e=r)&&e.__esModule?e:{default:e}).default.div`
2
2
  font-family: ${({theme:e})=>e.typography.fontAlternativeFamily};
3
3
  font-weight: ${({theme:e})=>e.typography.fontAlternativeRegularWeight};
4
- background: ${({theme:e})=>e.colors.error.main};
5
- color: white;
4
+ background: ${({theme:e})=>e.colors.error.lighter};
5
+ color: ${({theme:e})=>e.colors.text.dark};
6
6
  border-radius: 0.25rem;
7
7
  font-size: 13px;
8
8
  padding: 10px;
@@ -14,7 +14,7 @@
14
14
  position: absolute;
15
15
  max-width: calc(100% - 2rem);
16
16
  z-index: 1;
17
- top: ${({height:e})=>e?`${e}rem`:"0.75rem"};
17
+ top: ${({height:e})=>e?`calc(${e}rem - 5px)`:"12px"};
18
18
  left: calc(0.75rem + 2px);
19
19
  transition: 150ms;
20
20
  color: ${({theme:e})=>e.colors.text.dark};
@@ -23,9 +23,9 @@
23
23
  text-overflow: ellipsis;
24
24
  background: transparent;
25
25
 
26
- ${({theme:e,hasValue:r,isFocused:o})=>(r||o)&&`\n span {\n display: block;\n width: 100%;\n height: 8px;\n position: absolute;\n top: 5px;\n left: 0;\n background-color: ${e.colors.background.light};\n z-index: -1;\n }\n `}
26
+ ${({theme:e,hasValue:r,isFocused:o})=>(r||o)&&`\n span {\n display: block;\n width: 100%;\n height: 8px;\n position: absolute;\n top: 6px;\n left: 0;\n background-color: ${e.colors.background.light};\n z-index: -1;\n }\n `}
27
27
 
28
- ${({hasValue:r,isFocused:o,height:t=.7,hasError:s})=>(r||o)&&((r,o)=>e.css`
28
+ ${({hasValue:r,isFocused:o,height:t,hasError:s})=>(r||o)&&((r,o)=>e.css`
29
29
  transform: translateY(${r});
30
30
  line-height: 0.875rem;
31
31
  font-size: 0.75rem;
@@ -33,7 +33,7 @@
33
33
  padding: 0 5px;
34
34
  left: 0.5rem;
35
35
  color: ${({theme:e})=>o?e.colors.error.dark:e.colors.text.dark};
36
- `)(`-${t+.4}rem`,s)}
36
+ `)(""+(t?`calc(-${t}rem - 2px)`:"-18px"),s)}
37
37
  ${({centered:e,hasValue:r,isFocused:o})=>(r||o)&&e&&i}
38
38
  ${({isFocused:e})=>e&&s}
39
39
  ${({disabled:e})=>e&&a}