@everymatrix/casino-header-controller 1.15.6 → 1.16.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-header-controller",
3
- "version": "1.15.6",
3
+ "version": "1.16.0",
4
4
  "main": "dist/casino-header-controller.js",
5
5
  "svelte": "src/index.ts",
6
6
  "scripts": {
@@ -37,5 +37,5 @@
37
37
  "publishConfig": {
38
38
  "access": "public"
39
39
  },
40
- "gitHead": "fe683365eb1503ca4be3815398946762d2b5a4fe"
40
+ "gitHead": "4de660840367ca3f6d6645e39b13ba86ca19bb5e"
41
41
  }
@@ -330,6 +330,7 @@
330
330
 
331
331
  function selectLanguage(operatorLanguage:string) {
332
332
  selectedLanguage = operatorLanguage;
333
+ isOptionsListVisible = false;
333
334
  menuAction('language');
334
335
  }
335
336
 
@@ -462,7 +463,7 @@
462
463
  </div>
463
464
  {#if (languagesArray.length > 1) }
464
465
  {#if countryflagheader !== 'true'}
465
- <select bind:value={selectedLanguage} class="Item ItemLanguage" on:change={()=>menuAction('language')}>
466
+ <select bind:value={selectedLanguage} class="Item ItemLanguage NoFlag" on:change={()=>menuAction('language')}>
466
467
  {#each languagesArray as operatorLanguage}
467
468
  <option value={operatorLanguage} selected>{operatorLanguage}</option>
468
469
  {/each}
@@ -474,13 +475,18 @@
474
475
  <img src={`http://purecatamphetamine.github.io/country-flag-icons/3x2/${selectedLanguage.toUpperCase() == 'EN' ? 'US' : selectedLanguage.toUpperCase()}.svg`}/>
475
476
  </span>
476
477
  <span class="LanguageName">{selectedLanguage}</span>
478
+ <span class="TriangleInactive {isOptionsListVisible ? 'TriangleActive' : ''}">
479
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="6.835" viewBox="0 0 14 6.835">
480
+ <path id="arrow" d="M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z" transform="translate(-274.511 -441.088)" fill="#d1d1d1"/>
481
+ </svg>
482
+ </span>
477
483
  </div>
478
484
  {#if isOptionsListVisible}
479
485
  <div class="OptionList">
480
486
  {#each languagesArray as operatorLanguage}
481
487
  <div class="LanguageOption" on:click={() => selectLanguage(operatorLanguage)}>
482
488
  <span class="FlagIcon">
483
- <img src={`http://purecatamphetamine.github.io/country-flag-icons/3x2/${selectedLanguage.toUpperCase() == 'EN' ? 'US' : operatorLanguage.toUpperCase()}.svg`}/>
489
+ <img src={`http://purecatamphetamine.github.io/country-flag-icons/3x2/${operatorLanguage.toUpperCase() == 'EN' ? 'US' : operatorLanguage.toUpperCase()}.svg`}/>
484
490
  </span>
485
491
  <span class="LanguageName">{operatorLanguage}</span>
486
492
  </div>
@@ -575,7 +581,7 @@
575
581
  <div class="Item ItemRegister" tabindex="0" on:click={()=>menuAction('register')}>{$_('register')}</div>
576
582
  {#if (languagesArray.length > 1) }
577
583
  {#if countryflagheader !== 'true'}
578
- <select bind:value={selectedLanguage} class="Item ItemLanguage" on:change={()=>menuAction('language')}>
584
+ <select bind:value={selectedLanguage} class="Item ItemLanguage NoFlag" on:change={()=>menuAction('language')}>
579
585
  {#each languagesArray as operatorLanguage}
580
586
  <option value={operatorLanguage}>{operatorLanguage}</option>
581
587
  {/each}
@@ -587,6 +593,11 @@
587
593
  <img src={`http://purecatamphetamine.github.io/country-flag-icons/3x2/${selectedLanguage.toUpperCase() == 'EN' ? 'US' : selectedLanguage.toUpperCase()}.svg`}/>
588
594
  </span>
589
595
  <span class="LanguageName">{selectedLanguage}</span>
596
+ <span class="TriangleInactive {isOptionsListVisible ? 'TriangleActive' : ''}">
597
+ <svg xmlns="http://www.w3.org/2000/svg" width="14" height="6.835" viewBox="0 0 14 6.835">
598
+ <path id="arrow" d="M281.541,447.921a.488.488,0,0,0,.295-.122l6.5-5.851a.488.488,0,1,0-.65-.726l-6.176,5.556-6.176-5.556h0a.488.488,0,1,0-.65.726l6.5,5.851a.488.488,0,0,0,.355.122Z" transform="translate(-274.511 -441.088)" fill="#d1d1d1"/>
599
+ </svg>
600
+ </span>
590
601
  </div>
591
602
  {#if isOptionsListVisible}
592
603
  <div class="OptionList">
@@ -644,50 +655,71 @@
644
655
  }
645
656
 
646
657
  .LanguageDropdown {
647
- margin-right: 16px;
648
- position: relative;
649
- display: inline-block;
650
- }
658
+ margin-right: 16px;
659
+ position: relative;
660
+ display: inline-block;
661
+ }
651
662
 
652
- .SelectedOption,
653
- .OptionList {
654
- border: 1px solid var(--emfe-w-header-color-primary);
655
- padding: 8px;
656
- cursor: pointer;
657
- width: 200px;
658
- border-radius: 2px;
659
- }
663
+ .SelectedOption,
664
+ .OptionList {
665
+ border: 1px solid var(--emfe-w-header-color-primary);
666
+ padding: 8px;
667
+ cursor: pointer;
668
+ width: 76px;
669
+ border-radius: 4px;
670
+ }
660
671
 
661
- .SelectedOption {
662
- display: flex;
663
- align-items: center;
664
- }
672
+ .SelectedOption {
673
+ display: flex;
674
+ align-items: center;
675
+ }
665
676
 
666
- .FlagIcon img {
667
- width: 20px;
668
- height: 14px;
669
- margin-right: 8px;
670
- border-radius: 2px;
671
- }
677
+ .FlagIcon img {
678
+ width: 20px;
679
+ height: 14px;
680
+ margin-right: 8px;
681
+ border-radius: 2px;
682
+ }
672
683
 
673
- .OptionList {
674
- position: absolute;
675
- z-index: 1;
676
- color: var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));
677
- background: var(--emfe-w-header-color-secondary-menu-bg, var(--emfe-w-color-darkest-blue, #050518));
678
- max-height: 150px;
679
- overflow-y: auto;
680
- }
684
+ .OptionList {
685
+ position: absolute;
686
+ z-index: 1;
687
+ color: var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));
688
+ background: var(--emfe-w-header-color-secondary-menu-bg, var(--emfe-w-color-darkest-blue, #050518));
689
+ max-height: 150px;
690
+ overflow-y: auto;
691
+ }
681
692
 
682
- .LanguageOption {
683
- display: flex;
684
- align-items: center;
685
- padding: 4px;
693
+ .LanguageOption {
694
+ display: flex;
695
+ align-items: center;
696
+ padding: 4px;
697
+ }
698
+
699
+ .TriangleInactive {
700
+ display: block;
701
+ color: currentColor;
702
+ margin: 0 0 0 10px;
703
+ transition: all .5s;
704
+
705
+ svg{
706
+ margin: 2px 0px;
686
707
  }
687
- .LanguageOption:hover {
688
- background-color: var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));
689
- border-radius: 2px;
708
+ }
709
+
710
+ .TriangleActive {
711
+ transform: rotate(180deg);
712
+ position: relative;
713
+
714
+ svg{
715
+ margin: 2px 0px;
690
716
  }
717
+ }
718
+
719
+ .LanguageOption:hover {
720
+ background-color: var(--emfe-w-header-color-primary, var(--emfe-w-color-pink-500, #D0046C));
721
+ border-radius: 2px;
722
+ }
691
723
  .HeaderWrapper {
692
724
  background: var(--emfe-w-header-color-menu-bg, var(--emfe-w-color-darkest-blue, #050518));
693
725
  }
@@ -717,7 +749,7 @@
717
749
  margin-right: 0;
718
750
  }
719
751
  }
720
-
752
+
721
753
  .HeaderMainNav {
722
754
  text-align: left;
723
755
  }
@@ -735,7 +767,7 @@
735
767
  }
736
768
 
737
769
  .HeaderItemsMenu {
738
- gap: 10px;
770
+ gap: 8px;
739
771
  display: flex;
740
772
  align-content: flex-start;
741
773
  list-style: none;
@@ -814,14 +846,19 @@
814
846
  -webkit-appearance: none;
815
847
  -moz-appearance: none;
816
848
  appearance: none;
817
- background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emfe-w-header-color-menu-bg, var(--emfe-w-color-darkest-blue, #050518));
818
- background-position: calc(100% - 0.75rem) center;
819
849
 
820
850
  option {
821
851
  color: var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));
822
852
  }
823
853
  }
824
854
 
855
+ .ItemLanguage.NoFlag{
856
+ background: url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23FFFFFF' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emfe-w-header-color-menu-bg, var(--emfe-w-color-darkest-blue, #050518));
857
+ background-position: calc(100% - 0.75rem) center;
858
+ width: 90px;
859
+ margin-right: 6px;
860
+ }
861
+
825
862
  .ItemBalance {
826
863
  background: transparent;
827
864
  color: var(--emfe-w-header-typography, var(--emfe-w-color-white, #FFFFFF));