@nsidc/snow-today-webapp 0.20.0 → 0.21.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.
package/dist/main.css CHANGED
@@ -32,46 +32,38 @@ code {
32
32
  .react-icons {
33
33
  }
34
34
 
35
- .ControlPanel {
36
- background-color: #F7F7F8;
37
- text-align: center;
38
-
39
- padding: 15px;
35
+ .error {
36
+ margin: 10px;
40
37
  }
41
38
 
42
- .ControlPanel > * {
43
- padding: 15px;
44
- }
39
+ .error-message {
40
+ font-family: monospace;
41
+ white-space: pre;
42
+ overflow: scroll;
45
43
 
46
- .ControlPanel .dropdown {
47
- display: inline;
48
- }
44
+ margin: 10px;
45
+ padding: 10px;
49
46
 
50
- .ControlPanel label {
51
- padding-right: 3px;
47
+ background-color: whitesmoke;
48
+ color: red;
52
49
  }
53
50
 
54
- .loading-spinner {
55
- color: #0a4a6f;
56
- animation:spin 2s linear infinite;
57
- }
58
- @keyframes spin {
59
- 100% {
60
- transform:rotate(360deg);
61
- }
62
- }
51
+ .TileLayout {
52
+ display: flex;
53
+ flex-wrap: wrap;
54
+ gap: 5px;
63
55
 
64
- .dropdown-form {
65
- padding: 15px;
66
- }
56
+ justify-content: space-evenly;
67
57
 
68
- .LayoutDimensionSelector {
69
- white-space: nowrap;
58
+ padding-top: 15px;
59
+ padding-bottom: 15px;
60
+
61
+ width: 100vw;
62
+ overflow: hidden;
70
63
  }
71
64
 
72
- .LayoutConfigTiles {
73
- display: grid;
74
- gap: 5px;
65
+ .tile-wrapper {
66
+ min-width: 850px;
75
67
  }
76
68
 
77
69
  .snow-today-card {
@@ -110,90 +102,6 @@ code {
110
102
  margin: 0 auto;
111
103
  }
112
104
 
113
- .LayoutConfigTile{
114
- width: -moz-max-content;
115
- width: max-content;
116
- padding: 10px;
117
- }
118
-
119
- .SatelliteVariableSelector {
120
- white-space: nowrap;
121
- }
122
- .SatelliteVariableSelector label {
123
- display: inline-block;
124
- }
125
- .SatelliteVariableSelector select {
126
- display: inline-block;
127
- }
128
-
129
- .TileTypeSelector {
130
- white-space: nowrap;
131
- }
132
-
133
- .error {
134
- margin: 10px;
135
- }
136
-
137
- .error-message {
138
- font-family: monospace;
139
- white-space: pre;
140
- overflow: scroll;
141
-
142
- margin: 10px;
143
- padding: 10px;
144
-
145
- background-color: whitesmoke;
146
- color: red;
147
- }
148
-
149
- #SuperRegionSelector {
150
- white-space: nowrap;
151
- }
152
- #SuperRegionSelector label {
153
- display: inline-block;
154
- }
155
- #SuperRegionSelector select {
156
- display: inline-block;
157
- }
158
-
159
- #SubRegionCollectionSelector {
160
- white-space: nowrap;
161
- width: -moz-min-content;
162
- width: min-content;
163
- }
164
- .sub-region-collection-option {
165
- display: inline-block;
166
- padding: 5px;
167
- }
168
-
169
- .SubRegionSelector {
170
- white-space: nowrap;
171
- }
172
- .SubRegionSelector label {
173
- display: inline-block;
174
- }
175
- .SubRegionSelector select {
176
- display: inline-block;
177
- }
178
-
179
- .TileLayout {
180
- display: flex;
181
- flex-wrap: wrap;
182
- gap: 5px;
183
-
184
- justify-content: space-evenly;
185
-
186
- padding-top: 15px;
187
- padding-bottom: 15px;
188
-
189
- width: 100vw;
190
- overflow: hidden;
191
- }
192
-
193
- .tile-wrapper {
194
- min-width: 850px;
195
- }
196
-
197
105
  .Tile {
198
106
  min-width: 800px;
199
107
  max-width: 800px;
@@ -232,6 +140,16 @@ code {
232
140
  margin: 20px;
233
141
  }
234
142
 
143
+ .loading-spinner {
144
+ color: #0a4a6f;
145
+ animation:spin 2s linear infinite;
146
+ }
147
+ @keyframes spin {
148
+ 100% {
149
+ transform:rotate(360deg);
150
+ }
151
+ }
152
+
235
153
  .LinePlot {
236
154
  height: 100%;
237
155
  width: 100%;
@@ -600,12 +518,416 @@ code {
600
518
  color: #8a8587;
601
519
  }
602
520
 
521
+ .ControlPanel {
522
+ background-color: #F7F7F8;
523
+ text-align: center;
524
+
525
+ padding: 15px;
526
+ }
527
+
528
+ .ControlPanel > * {
529
+ padding: 15px;
530
+ }
531
+
532
+ .ControlPanel .dropdown {
533
+ display: inline;
534
+ }
535
+
536
+ .ControlPanel label {
537
+ padding-right: 3px;
538
+ }
539
+
540
+ .InteractiveMapSelectors {
541
+ padding-top: 2px;
542
+ }
543
+
544
+ .dropdown-form {
545
+ padding: 15px;
546
+ }
547
+
548
+ .LayoutDimensionSelector {
549
+ white-space: nowrap;
550
+ }
551
+
552
+ .LayoutConfigTiles {
553
+ display: grid;
554
+ gap: 5px;
555
+ }
556
+
557
+ .LayoutConfigTile{
558
+ width: -moz-max-content;
559
+ width: max-content;
560
+ padding: 10px;
561
+ }
562
+
563
+ .SatelliteVariableSelector {
564
+ white-space: nowrap;
565
+ }
566
+ .SatelliteVariableSelectorHorizontal {
567
+ display: inline-flex;
568
+ align-items: center;
569
+ gap: 0.5rem;
570
+ white-space: nowrap;
571
+ vertical-align: middle;
572
+ }
573
+ .SatelliteVariableSelector label {
574
+ display: inline-block;
575
+ }
576
+ .SatelliteVariableSelector select {
577
+ display: inline-block;
578
+ }
579
+
580
+ .TileTypeSelector {
581
+ white-space: nowrap;
582
+ }
583
+
584
+ #SuperRegionSelector {
585
+ white-space: nowrap;
586
+ }
587
+ #SuperRegionSelector label {
588
+ display: inline-block;
589
+ }
590
+ #SuperRegionSelector select {
591
+ display: inline-block;
592
+ }
593
+
594
+ #SubRegionCollectionSelector {
595
+ white-space: nowrap;
596
+ width: -moz-min-content;
597
+ width: min-content;
598
+ }
599
+ .sub-region-collection-option {
600
+ padding: 5px;
601
+ padding-bottom: 0px;
602
+ }
603
+ .sub-region-collection-option label {
604
+ padding-left: 8px;
605
+ }
606
+
607
+ .SubRegionSelector {
608
+ padding-top: 5px;
609
+ white-space: nowrap;
610
+ }
611
+ .SubRegionSelector label {
612
+ display: inline-block;
613
+ }
614
+ .SubRegionSelector select {
615
+ display: inline-block;
616
+ }
617
+
618
+ .react-date-picker {
619
+ display: inline-flex;
620
+ position: relative;
621
+ }
622
+
623
+ .react-date-picker,
624
+ .react-date-picker *,
625
+ .react-date-picker *:before,
626
+ .react-date-picker *:after {
627
+ box-sizing: border-box;
628
+ }
629
+
630
+ .react-date-picker--disabled {
631
+ background-color: #f0f0f0;
632
+ color: #6d6d6d;
633
+ }
634
+
635
+ .react-date-picker__wrapper {
636
+ display: flex;
637
+ flex-grow: 1;
638
+ flex-shrink: 0;
639
+ border: thin solid gray;
640
+ }
641
+
642
+ .react-date-picker__inputGroup {
643
+ min-width: calc((4px * 3) + 0.54em * 8 + 0.217em * 2);
644
+ flex-grow: 1;
645
+ padding: 0 2px;
646
+ box-sizing: content-box;
647
+ }
648
+
649
+ .react-date-picker__inputGroup__divider {
650
+ padding: 1px 0;
651
+ white-space: pre;
652
+ }
653
+
654
+ .react-date-picker__inputGroup__divider,
655
+ .react-date-picker__inputGroup__leadingZero {
656
+ display: inline-block;
657
+ font: inherit;
658
+ }
659
+
660
+ .react-date-picker__inputGroup__input {
661
+ min-width: 0.54em;
662
+ height: 100%;
663
+ position: relative;
664
+ padding: 0 1px;
665
+ border: 0;
666
+ background: none;
667
+ color: currentColor;
668
+ font: inherit;
669
+ box-sizing: content-box;
670
+ -webkit-appearance: textfield;
671
+ -moz-appearance: textfield;
672
+ appearance: textfield;
673
+ }
674
+
675
+ .react-date-picker__inputGroup__input::-webkit-outer-spin-button,
676
+ .react-date-picker__inputGroup__input::-webkit-inner-spin-button {
677
+ -webkit-appearance: none;
678
+ -moz-appearance: none;
679
+ appearance: none;
680
+ margin: 0;
681
+ }
682
+
683
+ .react-date-picker__inputGroup__input:invalid {
684
+ background: rgba(255, 0, 0, 0.1);
685
+ }
686
+
687
+ .react-date-picker__inputGroup__input--hasLeadingZero {
688
+ margin-left: -0.54em;
689
+ padding-left: calc(1px + 0.54em);
690
+ }
691
+
692
+ .react-date-picker__button {
693
+ border: 0;
694
+ background: transparent;
695
+ padding: 4px 6px;
696
+ }
697
+
698
+ .react-date-picker__button:enabled {
699
+ cursor: pointer;
700
+ }
701
+
702
+ .react-date-picker__button:enabled:hover .react-date-picker__button__icon,
703
+ .react-date-picker__button:enabled:focus .react-date-picker__button__icon {
704
+ stroke: #0078d7;
705
+ }
706
+
707
+ .react-date-picker__button:disabled .react-date-picker__button__icon {
708
+ stroke: #6d6d6d;
709
+ }
710
+
711
+ .react-date-picker__button svg {
712
+ display: inherit;
713
+ }
714
+
715
+ .react-date-picker__calendar {
716
+ width: 350px;
717
+ max-width: 100vw;
718
+ z-index: 1;
719
+ }
720
+
721
+ .react-date-picker__calendar--closed {
722
+ display: none;
723
+ }
724
+
725
+ .react-date-picker__calendar .react-calendar {
726
+ border-width: thin;
727
+ }
728
+
729
+ .react-calendar {
730
+ width: 350px;
731
+ max-width: 100%;
732
+ background: white;
733
+ border: 1px solid #a0a096;
734
+ font-family: 'Arial', 'Helvetica', sans-serif;
735
+ line-height: 1.125em;
736
+ }
737
+
738
+ .react-calendar--doubleView {
739
+ width: 700px;
740
+ }
741
+
742
+ .react-calendar--doubleView .react-calendar__viewContainer {
743
+ display: flex;
744
+ margin: -0.5em;
745
+ }
746
+
747
+ .react-calendar--doubleView .react-calendar__viewContainer > * {
748
+ width: 50%;
749
+ margin: 0.5em;
750
+ }
751
+
752
+ .react-calendar,
753
+ .react-calendar *,
754
+ .react-calendar *:before,
755
+ .react-calendar *:after {
756
+ box-sizing: border-box;
757
+ }
758
+
759
+ .react-calendar button {
760
+ margin: 0;
761
+ border: 0;
762
+ outline: none;
763
+ }
764
+
765
+ .react-calendar button:enabled:hover {
766
+ cursor: pointer;
767
+ }
768
+
769
+ .react-calendar__navigation {
770
+ display: flex;
771
+ height: 44px;
772
+ margin-bottom: 1em;
773
+ }
774
+
775
+ .react-calendar__navigation button {
776
+ min-width: 44px;
777
+ background: none;
778
+ }
779
+
780
+ .react-calendar__navigation button:disabled {
781
+ background-color: #f0f0f0;
782
+ }
783
+
784
+ .react-calendar__navigation button:enabled:hover,
785
+ .react-calendar__navigation button:enabled:focus {
786
+ background-color: #e6e6e6;
787
+ }
788
+
789
+ .react-calendar__month-view__weekdays {
790
+ text-align: center;
791
+ text-transform: uppercase;
792
+ font: inherit;
793
+ font-size: 0.75em;
794
+ font-weight: bold;
795
+ }
796
+
797
+ .react-calendar__month-view__weekdays__weekday {
798
+ padding: 0.5em;
799
+ }
800
+
801
+ .react-calendar__month-view__weekNumbers .react-calendar__tile {
802
+ display: flex;
803
+ align-items: center;
804
+ justify-content: center;
805
+ font: inherit;
806
+ font-size: 0.75em;
807
+ font-weight: bold;
808
+ }
809
+
810
+ .react-calendar__month-view__days__day--weekend {
811
+ color: #d10000;
812
+ }
813
+
814
+ .react-calendar__month-view__days__day--neighboringMonth,
815
+ .react-calendar__decade-view__years__year--neighboringDecade,
816
+ .react-calendar__century-view__decades__decade--neighboringCentury {
817
+ color: #757575;
818
+ }
819
+
820
+ .react-calendar__year-view .react-calendar__tile,
821
+ .react-calendar__decade-view .react-calendar__tile,
822
+ .react-calendar__century-view .react-calendar__tile {
823
+ padding: 2em 0.5em;
824
+ }
825
+
826
+ .react-calendar__tile {
827
+ max-width: 100%;
828
+ padding: 10px 6.6667px;
829
+ background: none;
830
+ text-align: center;
831
+ font: inherit;
832
+ font-size: 0.833em;
833
+ }
834
+
835
+ .react-calendar__tile:disabled {
836
+ background-color: #f0f0f0;
837
+ color: #ababab;
838
+ }
839
+
840
+ .react-calendar__month-view__days__day--neighboringMonth:disabled,
841
+ .react-calendar__decade-view__years__year--neighboringDecade:disabled,
842
+ .react-calendar__century-view__decades__decade--neighboringCentury:disabled {
843
+ color: #cdcdcd;
844
+ }
845
+
846
+ .react-calendar__tile:enabled:hover,
847
+ .react-calendar__tile:enabled:focus {
848
+ background-color: #e6e6e6;
849
+ }
850
+
851
+ .react-calendar__tile--now {
852
+ background: #ffff76;
853
+ }
854
+
855
+ .react-calendar__tile--now:enabled:hover,
856
+ .react-calendar__tile--now:enabled:focus {
857
+ background: #ffffa9;
858
+ }
859
+
860
+ .react-calendar__tile--hasActive {
861
+ background: #76baff;
862
+ }
863
+
864
+ .react-calendar__tile--hasActive:enabled:hover,
865
+ .react-calendar__tile--hasActive:enabled:focus {
866
+ background: #a9d4ff;
867
+ }
868
+
869
+ .react-calendar__tile--active {
870
+ background: #006edc;
871
+ color: white;
872
+ }
873
+
874
+ .react-calendar__tile--active:enabled:hover,
875
+ .react-calendar__tile--active:enabled:focus {
876
+ background: #1087ff;
877
+ }
878
+
879
+ .react-calendar--selectRange .react-calendar__tile--hover {
880
+ background-color: #e6e6e6;
881
+ }
882
+
883
+ .MapDatePicker {
884
+ display: inline-flex;
885
+ align-items: center;
886
+ gap: 0.5rem;
887
+ margin-left: 20px;
888
+ }
889
+
890
+ .react-calendar__month-view__days__day--weekend {
891
+ color: inherit;
892
+ }
893
+
894
+ .nav-tabs {
895
+ color: #0a1e2e;
896
+ background-color: #d7d7e0;
897
+ border-bottom: 4px solid #0b3767 !important;
898
+ /* padding: 0.5rem 0.5rem 0 0.5rem; */
899
+ }
900
+
901
+ .nav-tabs .nav-link {
902
+ color: #0a1e2e;
903
+ background-color: #d7d7e0;
904
+ border-color: transparent;
905
+ border-right: 1px solid #6f6f6f !important;
906
+ border-top: 1px solid #6f6f6f !important;
907
+ border-left: 1px solid #6f6f6f !important;
908
+ border-radius: 0 !important;
909
+ }
910
+
911
+ .nav-tabs .nav-link:hover {
912
+
913
+ }
914
+
915
+ .nav-tabs .nav-link.active {
916
+ color: #ffffff !important;
917
+ background-color: #0b3767 !important;
918
+ border-color: #0b3767;
919
+ }
920
+
603
921
  #SuperRegionSplashSelector {
604
922
  margin: 0 auto;
605
923
  width: 100%;
606
924
  max-width: 300px;
607
925
  }
608
926
 
927
+ div.message-header {
928
+ height: 24px;
929
+ }
930
+
609
931
  @charset "UTF-8";/*!
610
932
  * Bootstrap v5.3.8 (https://getbootstrap.com/)
611
933
  * Copyright 2011-2025 The Bootstrap Authors
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "description": "Snow Today Webapp",
3
3
  "name": "@nsidc/snow-today-webapp",
4
- "version": "0.20.0",
4
+ "version": "0.21.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/nsidc/snow-today-webapp.git"
@@ -34,14 +34,16 @@
34
34
  "colormap": "^2.3.2",
35
35
  "date-fns": "^2.29.3",
36
36
  "fast-deep-equal": "^3.1.3",
37
- "highcharts": "^10.2.0",
37
+ "highcharts": "^13.1.0",
38
38
  "highcharts-react-official": "^3.1.0",
39
39
  "jotai": "^2.6.3",
40
+ "jotai-family": "1.1.0",
40
41
  "jotai-tanstack-query": "^0.8.1 <0.8.2",
41
42
  "lodash": "^4.17.21",
42
43
  "ol": "^6.15.1",
43
44
  "react": "^18.2.0",
44
45
  "react-bootstrap": "~1.6.5",
46
+ "react-date-picker": "12.1.0",
45
47
  "react-dom": "^18.2.0",
46
48
  "react-error-boundary": "^4.0.11",
47
49
  "react-icons": "^4.4.0",
@@ -61,15 +63,15 @@
61
63
  "@types/node": "^18.0.3",
62
64
  "@types/react": "^18.0.15",
63
65
  "@types/react-dom": "^18.0.6",
64
- "@typescript-eslint/eslint-plugin": "^6.11.0",
65
- "@typescript-eslint/parser": "^6.11.0",
66
+ "@typescript-eslint/eslint-plugin": "^8.71.0",
67
+ "@typescript-eslint/parser": "^8.71.0",
66
68
  "autoprefixer": "^10.4.7",
67
69
  "babel-jest": "^29.7.0",
68
70
  "css-loader": "^6.7.1",
69
- "eslint": "^8.19.0",
71
+ "eslint": "^8.57.0",
70
72
  "eslint-plugin-flowtype": "^8.0.3",
71
73
  "eslint-plugin-import": "^2.29.0",
72
- "eslint-plugin-jest": "^27.6.0",
74
+ "eslint-plugin-jest": "^29.16.6",
73
75
  "eslint-plugin-jsx-a11y": "^6.8.0",
74
76
  "eslint-plugin-react": "^7.33.2",
75
77
  "eslint-plugin-react-hooks": "^4.6.0",
@@ -92,12 +94,12 @@
92
94
  "typescript": "^5.2.2",
93
95
  "webpack": "^5.73.0",
94
96
  "webpack-cli": "^5.1.4",
95
- "webpack-dev-server": "^5.2.6"
97
+ "webpack-dev-server": "^6.1.0"
96
98
  },
97
99
  "overrides": {
98
100
  "jsondiffpatch": "^0.7.6",
99
- "uuid": "^11.1.1",
100
- "minimatch": "^9.0.7"
101
+ "minimatch": "^9.0.7",
102
+ "uuid": "^11.1.1"
101
103
  },
102
104
  "jest": {
103
105
  "verbose": true,