@visns-studio/visns-components 5.4.8 → 5.4.9

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
@@ -56,7 +56,7 @@
56
56
  "truncate": "^3.0.0",
57
57
  "uuid": "^10.0.0",
58
58
  "validator": "^13.15.0",
59
- "vite": "^5.4.16",
59
+ "vite": "^5.4.17",
60
60
  "yarn": "^1.22.22"
61
61
  },
62
62
  "devDependencies": {
@@ -71,7 +71,7 @@
71
71
  "mini-css-extract-plugin": "^2.9.2",
72
72
  "react": "^18.3.1",
73
73
  "react-dom": "^18.3.1",
74
- "sass": "^1.86.2",
74
+ "sass": "^1.86.3",
75
75
  "sass-loader": "^16.0.5"
76
76
  },
77
77
  "peerDependencies": {
@@ -79,7 +79,7 @@
79
79
  "react-dom": "^17.0.0 || ^18.0.0"
80
80
  },
81
81
  "name": "@visns-studio/visns-components",
82
- "version": "5.4.8",
82
+ "version": "5.4.9",
83
83
  "description": "Various packages to assist in the development of our Custom Applications.",
84
84
  "main": "src/index.js",
85
85
  "files": [
@@ -452,7 +452,13 @@ select:not(:placeholder-shown) + .fi__span {
452
452
  }
453
453
 
454
454
  .react-datepicker-popper {
455
- z-index: 999 !important;
455
+ z-index: 99999 !important;
456
+ position: fixed !important;
457
+ transform: none !important;
458
+ top: 50% !important;
459
+ left: 50% !important;
460
+ margin-top: -150px !important;
461
+ margin-left: -150px !important;
456
462
  }
457
463
 
458
464
  .react-datepicker__close-icon:after {
@@ -520,7 +520,13 @@ select:not(:placeholder-shown) + .fi__span {
520
520
  }
521
521
 
522
522
  .react-datepicker-popper {
523
- z-index: 999 !important;
523
+ z-index: 99999 !important;
524
+ position: fixed !important;
525
+ transform: none !important;
526
+ top: 50% !important;
527
+ left: 50% !important;
528
+ margin-top: -150px !important;
529
+ margin-left: -150px !important;
524
530
  }
525
531
 
526
532
  .react-datepicker__close-icon:after {
@@ -217,3 +217,78 @@ input[type]:not([type='search']):not([type='url']):not([type='hidden']):not(
217
217
  .visns-select__menu {
218
218
  z-index: 999 !important;
219
219
  }
220
+
221
+ /* DatePicker z-index fix */
222
+ .react-datepicker-popper {
223
+ z-index: 99999 !important;
224
+ position: fixed !important;
225
+ transform: none !important;
226
+ top: 50% !important;
227
+ left: 50% !important;
228
+ margin-top: -150px !important;
229
+ margin-left: -150px !important;
230
+ }
231
+
232
+ .react-datepicker {
233
+ position: absolute !important;
234
+ display: inline-block !important;
235
+ z-index: 99999 !important;
236
+ background-color: white !important;
237
+ border-radius: 0.3rem !important;
238
+ box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
239
+ }
240
+
241
+ .react-datepicker-portal {
242
+ position: fixed !important;
243
+ z-index: 99999 !important;
244
+ }
245
+
246
+ /* Fix for specific modal header that's causing issues */
247
+ [class*='_modal__header_'] {
248
+ z-index: 1 !important;
249
+ }
250
+
251
+ /* Make sure popup content doesn't constrain the datepicker */
252
+ .popup-content {
253
+ overflow: visible !important;
254
+ }
255
+
256
+ .modal__content {
257
+ overflow: visible !important;
258
+ }
259
+
260
+ /* Ensure the datepicker is always visible */
261
+ .react-datepicker__month-container {
262
+ background-color: white !important;
263
+ border: 1px solid #aeaeae !important;
264
+ border-radius: 0.3rem !important;
265
+ box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2) !important;
266
+ }
267
+
268
+ /* Hide the arrow since we're centering the calendar */
269
+ .react-datepicker__triangle {
270
+ display: none !important;
271
+ }
272
+
273
+ /* Ensure all containers allow the datepicker to be visible */
274
+ .modal,
275
+ .popup-content,
276
+ .modal__content,
277
+ .formItem,
278
+ .fi__label,
279
+ .dynamicform,
280
+ .dynamic__left {
281
+ overflow: visible !important;
282
+ }
283
+
284
+ /* Add a backdrop to make the datepicker stand out */
285
+ .react-datepicker-popper::before {
286
+ content: '' !important;
287
+ position: fixed !important;
288
+ top: 0 !important;
289
+ left: 0 !important;
290
+ right: 0 !important;
291
+ bottom: 0 !important;
292
+ background: rgba(0, 0, 0, 0.5) !important;
293
+ z-index: -1 !important;
294
+ }