bukazu-portal-react 2.0.21 → 2.1.4

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/CHANGELOG.MD CHANGED
@@ -2,6 +2,17 @@
2
2
 
3
3
  ## Next release
4
4
 
5
+
6
+ ## 2.1.4
7
+ - Store filters in localStorage
8
+
9
+ ## 2.1.3
10
+ - Fix issue with regions and city selects
11
+
12
+ ## 2.1.2
13
+ - Update react-intl
14
+ - Show actual prices for searched period instead of min_weekprice
15
+
5
16
  ## 2.0.12
6
17
 
7
18
  - Fix bug in required extra_booking field
package/build/index.css CHANGED
@@ -118,6 +118,7 @@
118
118
  cursor: pointer;
119
119
  }
120
120
  .react-calendar__navigation {
121
+ display: flex;
121
122
  height: 44px;
122
123
  margin-bottom: 1em;
123
124
  }
@@ -125,13 +126,13 @@
125
126
  min-width: 44px;
126
127
  background: none;
127
128
  }
129
+ .react-calendar__navigation button:disabled {
130
+ background-color: #f0f0f0;
131
+ }
128
132
  .react-calendar__navigation button:enabled:hover,
129
133
  .react-calendar__navigation button:enabled:focus {
130
134
  background-color: #e6e6e6;
131
135
  }
132
- .react-calendar__navigation button[disabled] {
133
- background-color: #f0f0f0;
134
- }
135
136
  .react-calendar__month-view__weekdays {
136
137
  text-align: center;
137
138
  text-transform: uppercase;
@@ -141,15 +142,12 @@
141
142
  .react-calendar__month-view__weekdays__weekday {
142
143
  padding: 0.5em;
143
144
  }
144
- .react-calendar__month-view__weekNumbers {
145
- font-weight: bold;
146
- }
147
145
  .react-calendar__month-view__weekNumbers .react-calendar__tile {
148
146
  display: flex;
149
147
  align-items: center;
150
148
  justify-content: center;
151
149
  font-size: 0.75em;
152
- padding: calc(0.75em / 0.75) calc(0.5em / 0.75);
150
+ font-weight: bold;
153
151
  }
154
152
  .react-calendar__month-view__days__day--weekend {
155
153
  color: #d10000;
@@ -164,9 +162,10 @@
164
162
  }
165
163
  .react-calendar__tile {
166
164
  max-width: 100%;
167
- text-align: center;
168
- padding: 0.75em 0.5em;
165
+ padding: 10px 6.6667px;
169
166
  background: none;
167
+ text-align: center;
168
+ line-height: 16px;
170
169
  }
171
170
  .react-calendar__tile:disabled {
172
171
  background-color: #f0f0f0;
@@ -312,15 +311,15 @@
312
311
  padding: 4px;
313
312
  text-transform: capitalize;
314
313
  text-align: center;
315
- transition: all 0.5s ease;
314
+ transition: all 0.5s ease
316
315
  }
317
- #bukazu-app .calendar .col-center {
316
+ #bukazu-app .calendar -center.col {
318
317
  text-align: center;
319
318
  }
320
- #bukazu-app .calendar .col-start {
319
+ #bukazu-app .calendar -start.col {
321
320
  text-align: left;
322
321
  }
323
- #bukazu-app .calendar .col-end {
322
+ #bukazu-app .calendar -end.col {
324
323
  text-align: right;
325
324
  }
326
325
  #bukazu-app .calendar .cell {
@@ -425,25 +424,25 @@
425
424
  padding: 4px 8px
426
425
  }
427
426
  }
428
- #bukazu-app .legend-field {
427
+ #bukazu-app -field.legend {
429
428
  display: block;
430
429
  width: 16px;
431
430
  height: 16px;
432
431
  margin: 0 8px 0 0
433
432
  }
434
- #bukazu-app .legend-field.booked {
433
+ #bukazu-app -field.legend.booked {
435
434
  background: #ea2b1f;
436
435
  background: var(--bukazu-booked);
437
436
  }
438
- #bukazu-app .legend-field.arrival {
437
+ #bukazu-app -field.legend.arrival {
439
438
  background: #6eeb83;
440
439
  background: var(--bukazu-arrival);
441
440
  }
442
- #bukazu-app .legend-field.departure {
441
+ #bukazu-app -field.legend.departure {
443
442
  background: yellow;
444
443
  background: var(--bukazu-departure);
445
444
  }
446
- #bukazu-app .legend-field.last_minute_discount {
445
+ #bukazu-app -field.legend.last_minute_discount {
447
446
  background: orange;
448
447
  background: var(--bukazu-discount);
449
448
  }
@@ -452,9 +451,9 @@
452
451
  display: flex;
453
452
  justify-content: space-around;
454
453
  width: 100%;
455
- box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.25);
454
+ box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.25)
456
455
  }
457
- #bukazu-app .calendar--picker--date {
456
+ #bukazu-app --date.calendar--picker {
458
457
  width: 20%;
459
458
  display: flex;
460
459
  flex-direction: column;
@@ -462,17 +461,17 @@
462
461
  align-items: center;
463
462
  padding: 8px 16px;
464
463
  }
465
- #bukazu-app .calendar--picker--date span.name {
464
+ #bukazu-app --date.calendar--picker span.name {
466
465
  font-size: 18px;
467
466
  border-bottom: 1px solid #ccc;
468
467
  padding: 4px 0
469
468
  }
470
469
  @media screen and (max-width: 1200px) {
471
- #bukazu-app .calendar--picker--date span.name {
470
+ #bukazu-app --date.calendar--picker span.name {
472
471
  font-size: 16px
473
472
  }
474
473
  }
475
- #bukazu-app .calendar--picker--date span.detail {
474
+ #bukazu-app --date.calendar--picker span.detail {
476
475
  display: flex;
477
476
  padding: 4px 0;
478
477
  opacity: 0.9;
@@ -481,11 +480,11 @@
481
480
  align-items: center
482
481
  }
483
482
  @media screen and (max-width: 1200px) {
484
- #bukazu-app .calendar--picker--date span.detail {
483
+ #bukazu-app --date.calendar--picker span.detail {
485
484
  font-size: 14px
486
485
  }
487
486
  }
488
- #bukazu-app .calendar--picker--persons {
487
+ #bukazu-app --persons.calendar--picker {
489
488
  border: 1px solid #ccc;
490
489
  width: 100%;
491
490
  -webkit-appearance: none;
@@ -543,24 +542,24 @@
543
542
  font-size: 14px;
544
543
  padding-bottom: 4px;
545
544
  }
546
- #bukazu-app .form-content {
545
+ #bukazu-app -content.form {
547
546
  width: 70%
548
547
  }
549
548
  @media screen and (max-width: 992px) {
550
- #bukazu-app .form-content {
549
+ #bukazu-app -content.form {
551
550
  width: 100%
552
551
  }
553
552
  }
554
- #bukazu-app .form-section {
553
+ #bukazu-app -section.form {
555
554
  display: flex;
556
555
  flex-direction: column;
557
556
  border-bottom: 1px solid #aeacac;
558
557
  padding: 16px;
559
558
  }
560
- #bukazu-app .form-section .age-description {
559
+ #bukazu-app -section.form .age-description {
561
560
  padding: 0 0 0 16px;
562
561
  }
563
- #bukazu-app .form-sum {
562
+ #bukazu-app -sum.form {
564
563
  padding: 16px;
565
564
  background: #fff;
566
565
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.25);
@@ -572,28 +571,28 @@
572
571
  align-self: flex-start
573
572
  }
574
573
  @media screen and (max-width: 992px) {
575
- #bukazu-app .form-sum {
574
+ #bukazu-app -sum.form {
576
575
  min-width: 100%
577
576
  }
578
577
  }
579
- #bukazu-app .form-sum .house-details {
578
+ #bukazu-app -sum.form .house-details {
580
579
  padding: 0 0 16px;
581
580
  border-bottom: 1px solid #aeacac;
582
581
  }
583
- #bukazu-app .form-sum .house-details img {
582
+ #bukazu-app -sum.form .house-details img {
584
583
  padding: 16px 0;
585
584
  height: 200px
586
585
  }
587
586
  @media screen and (max-width: 992px) {
588
- #bukazu-app .form-sum .house-details img {
587
+ #bukazu-app -sum.form .house-details img {
589
588
  max-width: 100%;
590
589
  height: auto
591
590
  }
592
591
  }
593
- #bukazu-app .form-sum .house-details th {
592
+ #bukazu-app -sum.form .house-details th {
594
593
  text-align: left;
595
594
  }
596
- #bukazu-app .form-sum .booking_option {
595
+ #bukazu-app -sum.form .booking_option {
597
596
  border: none;
598
597
  display: flex;
599
598
  flex-direction: row;
@@ -604,27 +603,27 @@
604
603
  overflow: hidden;
605
604
  margin: 16px 0;
606
605
  }
607
- #bukazu-app .form-sum .booking_option div {
606
+ #bukazu-app -sum.form .booking_option div {
608
607
  width: 50%;
609
608
  text-align: center;
610
609
  }
611
- #bukazu-app .form-sum .booking_option .legend {
610
+ #bukazu-app -sum.form .booking_option .legend {
612
611
  width: 100%;
613
612
  display: none;
614
613
  }
615
- #bukazu-app .form-sum .booking_option input {
614
+ #bukazu-app -sum.form .booking_option input {
616
615
  display: none;
617
616
  }
618
- #bukazu-app .form-sum .booking_option input:checked + label {
617
+ #bukazu-app -sum.form .booking_option input:checked + label {
619
618
  background: var(--bukazu-button);
620
619
  /* color: #fff; */
621
620
  }
622
- #bukazu-app .form-sum .booking_option input:disabled + label {
621
+ #bukazu-app -sum.form .booking_option input:disabled + label {
623
622
  background: #efefef;
624
623
  color: #ccc;
625
624
  /* color: #fff; */
626
625
  }
627
- #bukazu-app .form-sum .booking_option label {
626
+ #bukazu-app -sum.form .booking_option label {
628
627
  border-radius: 16px;
629
628
  display: block;
630
629
  flex: 1 1 auto;
@@ -634,26 +633,26 @@
634
633
  cursor: pointer;
635
634
  margin: 0;
636
635
  }
637
- #bukazu-app .form-sum .costs-section {
636
+ #bukazu-app -sum.form .costs-section {
638
637
  padding: 16px 0;
639
638
  }
640
- #bukazu-app .form-sum .costs-section table {
639
+ #bukazu-app -sum.form .costs-section table {
641
640
  width: 100%;
642
641
  }
643
- #bukazu-app .form-sum .costs-section table tr {
642
+ #bukazu-app -sum.form .costs-section table tr {
644
643
  width: 100%;
645
644
  }
646
- #bukazu-app .form-sum .costs-section table tr td {
645
+ #bukazu-app -sum.form .costs-section table tr td {
647
646
  width: 60%;
648
647
  }
649
- #bukazu-app .form-sum .costs-section .price {
648
+ #bukazu-app -sum.form .costs-section .price {
650
649
  text-align: right;
651
650
  width: 40%;
652
651
  }
653
- #bukazu-app .form-sum .terms {
652
+ #bukazu-app -sum.form .terms {
654
653
  padding: 8px 0;
655
654
  }
656
- #bukazu-app .form-sum .terms button {
655
+ #bukazu-app -sum.form .terms button {
657
656
  padding: 0 4px;
658
657
  background: 0;
659
658
  display: inline;
@@ -667,11 +666,11 @@
667
666
  outline: inherit;
668
667
  color: var(--bukazu-button)
669
668
  }
670
- #bukazu-app .form-sum .terms button:hover {
669
+ #bukazu-app -sum.form .terms button:hover {
671
670
  box-shadow: none;
672
671
  text-decoration: underline;
673
672
  }
674
- #bukazu-app .form-sum button {
673
+ #bukazu-app -sum.form button {
675
674
  width: 100%;
676
675
  padding: 16px;
677
676
  border: 0;
@@ -680,30 +679,30 @@
680
679
  background: var(--bukazu-button_cta);
681
680
  cursor: pointer
682
681
  }
683
- #bukazu-app .form-sum button:hover {
682
+ #bukazu-app -sum.form button:hover {
684
683
  box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.25);
685
684
  }
686
- #bukazu-app .form-row {
685
+ #bukazu-app -row.form {
687
686
  display: flex;
688
687
  flex-direction: column;
689
688
  padding: 8px 0;
690
689
  }
691
- #bukazu-app .form-row select,
692
- #bukazu-app .form-row input,
693
- #bukazu-app .form-row .bukazu-date-picker {
690
+ #bukazu-app -row.form select,
691
+ #bukazu-app -row.form input,
692
+ #bukazu-app -row.form .bukazu-date-picker {
694
693
  max-width: 50%
695
694
  }
696
695
  @media screen and (max-width: 992px) {
697
- #bukazu-app .form-row select,
698
- #bukazu-app .form-row input,
699
- #bukazu-app .form-row .bukazu-date-picker {
696
+ #bukazu-app -row.form select,
697
+ #bukazu-app -row.form input,
698
+ #bukazu-app -row.form .bukazu-date-picker {
700
699
  max-width: 100%
701
700
  }
702
701
  }
703
- #bukazu-app .form-row .bu-input-description {
702
+ #bukazu-app -row.form .bu-input-description {
704
703
  font-style: italic;
705
704
  }
706
- #bukazu-app .form-row.inline {
705
+ #bukazu-app -row.form.inline {
707
706
  align-items: center;
708
707
  display: flex;
709
708
  flex-direction: row;
@@ -711,35 +710,35 @@
711
710
  flex-wrap: wrap;
712
711
  width: 100%
713
712
  }
714
- #bukazu-app .form-row.inline.hidden {
713
+ #bukazu-app -row.form.inline.hidden {
715
714
  display: none;
716
715
  }
717
- #bukazu-app .form-row.inline label {
716
+ #bukazu-app -row.form.inline label {
718
717
  width: 30%;
719
718
  font-size: 16px
720
719
  }
721
720
  @media screen and (max-width: 992px) {
722
- #bukazu-app .form-row.inline label {
721
+ #bukazu-app -row.form.inline label {
723
722
  width: auto
724
723
  }
725
724
  }
726
- #bukazu-app .form-row.inline select,
727
- #bukazu-app .form-row.inline input {
725
+ #bukazu-app -row.form.inline select,
726
+ #bukazu-app -row.form.inline input {
728
727
  width: auto;
729
728
  min-width: 150px;
730
729
  padding: 8px 64px 8px 16px
731
730
  }
732
731
  @media screen and (max-width: 992px) {
733
- #bukazu-app .form-row.inline select,
734
- #bukazu-app .form-row.inline input {
732
+ #bukazu-app -row.form.inline select,
733
+ #bukazu-app -row.form.inline input {
735
734
  order: 3;
736
735
  width: 100%
737
736
  }
738
737
  }
739
- #bukazu-app .form-row.inline .info-button {
738
+ #bukazu-app -row.form.inline .info-button {
740
739
  margin: 0 0 0 8px;
741
740
  }
742
- #bukazu-app .form-row.inline .price_per {
741
+ #bukazu-app -row.form.inline .price_per {
743
742
  padding: 0 0 0 50px;
744
743
  }
745
744
  #bukazu-app .form .return-message {
@@ -1828,7 +1827,7 @@
1828
1827
  .price-overview ul li {
1829
1828
  padding: 4px 0;
1830
1829
  }
1831
- .price-overview--build {
1830
+ --build.price-overview {
1832
1831
  display: flex;
1833
1832
  flex-direction: row;
1834
1833
  /* width: 30%; */
@@ -1840,12 +1839,12 @@
1840
1839
  padding: 16px
1841
1840
  }
1842
1841
  @media screen and (max-width: 992px) {
1843
- .price-overview--build {
1842
+ --build.price-overview {
1844
1843
  padding: 16px 0;
1845
1844
  min-height: 0px
1846
1845
  }
1847
1846
  }
1848
- .price-overview--extra {
1847
+ --extra.price-overview {
1849
1848
  display: flex;
1850
1849
  padding: 16px;
1851
1850
  flex-direction: column;
@@ -1854,15 +1853,15 @@
1854
1853
  align-items: center;
1855
1854
  }
1856
1855
  /* width: 30%; */
1857
- .price-overview--extra .data-label {
1856
+ --extra.price-overview .data-label {
1858
1857
  font-size: 18px;
1859
1858
  }
1860
- .price-overview--extra .data {
1859
+ --extra.price-overview .data {
1861
1860
  padding: 16px;
1862
1861
  font-size: 20px;
1863
1862
  font-weight: bold;
1864
1863
  }
1865
- .price-overview--book {
1864
+ --book.price-overview {
1866
1865
  flex: 1 1 auto;
1867
1866
  /* width: 30%; */
1868
1867
  padding: 4px;
@@ -1873,30 +1872,30 @@
1873
1872
 
1874
1873
  }
1875
1874
  @media screen and (max-width: 992px) {
1876
- .price-overview--book {
1875
+ --book.price-overview {
1877
1876
  padding: 16px 0
1878
1877
 
1879
1878
  }
1880
1879
  }
1881
- .price-overview--book > div {
1880
+ --book.price-overview > div {
1882
1881
  padding: 4px 0;
1883
1882
  }
1884
- .price-overview--book .price {
1883
+ --book.price-overview .price {
1885
1884
  font-size: 28px;
1886
1885
  }
1887
1886
  @media screen and (min-width: 1200px) {
1888
- .price-overview--book .price {
1887
+ --book.price-overview .price {
1889
1888
  font-size: 32px;
1890
1889
  }
1891
1890
  }
1892
- .price-overview--book .price {
1891
+ --book.price-overview .price {
1893
1892
  font-weight: bold;
1894
1893
  }
1895
- .price-overview--book i {
1894
+ --book.price-overview i {
1896
1895
  font-size: 14px
1897
1896
  }
1898
1897
  @media screen and (min-width: 1200px) {
1899
- .price-overview--book i {
1898
+ --book.price-overview i {
1900
1899
  font-size: 16px
1901
1900
  }
1902
1901
  }
@@ -1926,7 +1925,7 @@
1926
1925
  box-shadow: 2px 2px 16px rgba(0, 0, 0, 0.25);
1927
1926
  text-decoration: none;
1928
1927
  }
1929
- .bukazu-result-inner {
1928
+ -inner.bukazu-result {
1930
1929
  overflow: hidden;
1931
1930
  color: rgba(26, 25, 25, 1);
1932
1931
  border: 1px solid rgba(69, 74, 83, 0.2);
@@ -1934,13 +1933,13 @@
1934
1933
  display: flex;
1935
1934
  flex-direction: column;
1936
1935
  }
1937
- .bukazu-result-inner .image-holder {
1936
+ -inner.bukazu-result .image-holder {
1938
1937
  padding-top: 75%;
1939
1938
  position: relative;
1940
1939
  width: 100%;
1941
1940
  overflow: hidden;
1942
1941
  }
1943
- .bukazu-result-inner .image-holder img {
1942
+ -inner.bukazu-result .image-holder img {
1944
1943
  position: absolute;
1945
1944
  top: 0;
1946
1945
  left: 0;
@@ -1949,44 +1948,44 @@
1949
1948
  height: 100%;
1950
1949
  min-height: 100%;
1951
1950
  }
1952
- .bukazu-result-inner .result {
1951
+ -inner.bukazu-result .result {
1953
1952
  flex: 1 1 auto;
1954
1953
  display: flex;
1955
1954
  flex-direction: column;
1956
1955
  font-size: 14px;
1957
1956
  background: #fff;
1958
- text-decoration: none;
1957
+ text-decoration: none
1959
1958
  }
1960
- .bukazu-result-inner .result-title {
1959
+ -inner.bukazu-result -title.result {
1961
1960
  padding: 8px;
1962
1961
  font-weight: bold;
1963
1962
  }
1964
- .bukazu-result-inner .result-place {
1963
+ -inner.bukazu-result -place.result {
1965
1964
  padding: 4px 8px;
1966
1965
  }
1967
- .bukazu-result-inner .result-description {
1966
+ -inner.bukazu-result -description.result {
1968
1967
  padding: 8px;
1969
1968
  flex: 1 1 auto;
1970
1969
  }
1971
- .bukazu-result-inner .result-details {
1970
+ -inner.bukazu-result -details.result {
1972
1971
  padding: 8px;
1973
1972
  display: flex;
1974
1973
  justify-content: space-evenly;
1975
1974
  border-bottom: 1px solid rgba(69, 74, 83, 0.2);
1976
1975
  }
1977
- .bukazu-result-inner .result-price {
1976
+ -inner.bukazu-result -price.result {
1978
1977
  display: flex;
1979
1978
  flex-direction: column;
1980
1979
  justify-content: center;
1981
1980
  align-items: center;
1982
1981
  padding: 12px 8px;
1983
1982
  }
1984
- .bukazu-result-inner .result-price span.price {
1983
+ -inner.bukazu-result -price.result span.price {
1985
1984
  padding: 8px 0 0;
1986
1985
  font-size: 18px;
1987
1986
  font-weight: bold;
1988
1987
  }
1989
- .bukazu-result-inner .result-button {
1988
+ -inner.bukazu-result -button.result {
1990
1989
  background: var(--bukazu-button_cta);
1991
1990
  text-align: center;
1992
1991
  padding: 8px;
@@ -1995,10 +1994,10 @@
1995
1994
  align-items: center;
1996
1995
  justify-content: center;
1997
1996
  }
1998
- .bukazu-result-inner .result-button svg {
1997
+ -inner.bukazu-result -button.result svg {
1999
1998
  width: 18px;
2000
1999
  }
2001
- .bukazu-result-inner .result-button:before {
2000
+ -inner.bukazu-result -button.result:before {
2002
2001
  position: absolute;
2003
2002
  height: 100%;
2004
2003
  content: "";
@@ -2010,7 +2009,7 @@
2010
2009
  bottom: 0;
2011
2010
  transition: all 0.8s ease;
2012
2011
  }
2013
- .bukazu-result-inner .result-button:hover:before {
2012
+ -inner.bukazu-result -button.result:hover:before {
2014
2013
  width: 100%;
2015
2014
  }
2016
2015
  @media screen and (min-width: 992px) {
@@ -2029,7 +2028,7 @@
2029
2028
  width: 100%;
2030
2029
  height: auto;
2031
2030
  }
2032
- .list .bukazu-result .bukazu-result-inner .result-description {
2031
+ .list .bukazu-result .bukazu-result-inner -description.result {
2033
2032
  max-width: 90ch;
2034
2033
  }
2035
2034
  }
@@ -2139,9 +2138,9 @@
2139
2138
  display: none;
2140
2139
  }
2141
2140
  #bukazu-app .filters {
2142
- min-width: 250px;
2141
+ min-width: 250px
2143
2142
  }
2144
- #bukazu-app .filters-reload {
2143
+ #bukazu-app -reload.filters {
2145
2144
  background: var(--bukazu-button);
2146
2145
  border: 0;
2147
2146
  border-radius: 5px;
package/build/index.html CHANGED
@@ -8,7 +8,8 @@
8
8
  <body>
9
9
  <h1>Bukazu Test Portal</h1>
10
10
 
11
- <div class="bukazu-app" id="bukazu-app" portal-code="3cbe4f75" language='nl'></div>
11
+ <!-- <div class="bukazu-app" id="bukazu-app" portal-code="3cbe4f75" language='nl'></div> -->
12
+ <div class="bukazu-app" id="bukazu-app" portal-code="47be6192" language='nl'></div>
12
13
 
13
14
  <script src="./index.js"></script>
14
15
  </body>