@layerfi/components 0.1.54 → 0.1.56

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.
@@ -14,6 +14,9 @@
14
14
  --color-black: #1a1a1a;
15
15
  --color-white: white;
16
16
  --color-blue: hsl(217 100% 92%);
17
+ --color-info: #0968f8;
18
+ --color-info-bg: #d6e6ff;
19
+ --color-info-fg: #0056d7;
17
20
  --color-info-success: hsl(145, 45%, 42%);
18
21
  --color-info-success-bg: hsl(145, 59%, 86%);
19
22
  --color-info-success-fg: hsl(145, 63%, 29%);
@@ -125,6 +128,9 @@
125
128
  --badge-color: var(--color-base-900);
126
129
  --badge-fg-color: var(--color-base-900);
127
130
  --badge-bg-color: var(--color-base-400);
131
+ --badge-color-info: var(--color-info);
132
+ --badge-fg-color-info: var(--color-info-fg);
133
+ --badge-bg-color-info: var(--color-info-bg);
128
134
  --badge-color-success: var(--color-info-success);
129
135
  --badge-fg-color-success: var(--color-info-success-fg);
130
136
  --badge-bg-color-success: var(--color-info-success-bg);
@@ -286,6 +292,10 @@
286
292
  background-color: var(--badge-bg-color);
287
293
  color: var(--badge-fg-color);
288
294
  }
295
+ .Layer__badge.Layer__badge--info {
296
+ background-color: var(--badge-bg-color-info);
297
+ color: var(--badge-fg-color-info);
298
+ }
289
299
  .Layer__badge.Layer__badge--success {
290
300
  background-color: var(--badge-bg-color-success);
291
301
  color: var(--badge-fg-color-success);
@@ -621,6 +631,77 @@
621
631
  align-items: center;
622
632
  gap: var(--spacing-4xs);
623
633
  }
634
+ .Layer__switch__container {
635
+ display: flex;
636
+ align-items: center;
637
+ }
638
+ .Layer__switch__container .Layer__switch__button {
639
+ background: transparent;
640
+ display: flex;
641
+ align-items: center;
642
+ justify-content: center;
643
+ position: relative;
644
+ border-width: 0px;
645
+ border-radius: var(--btn-border-radius);
646
+ font-family: var(--font-family);
647
+ cursor: pointer;
648
+ min-height: 36px;
649
+ box-sizing: border-box;
650
+ transition: all 100ms ease-out;
651
+ padding: 0 2px;
652
+ text-decoration: none;
653
+ }
654
+ .Layer__switch__container .Layer__switch__button:focus,
655
+ .Layer__switch__container .Layer__switch__button :active {
656
+ box-shadow: 0px 0px 0px 1px var(--color-base-0), 0px 0px 0px 3px var(--color-base-0);
657
+ outline: var(--color-base-0);
658
+ }
659
+ .Layer__switch__container .Layer__switch__button--checked .Layer__switch__knob__wrapper {
660
+ background: var(--color-black);
661
+ border-color: var(--color-black);
662
+ }
663
+ .Layer__switch__container .Layer__switch__button--checked .Layer__switch__knob__wrapper .Layer__switch__knob {
664
+ transform: translateX(8px);
665
+ background: var(--color-white);
666
+ border-color: var(--color-white);
667
+ }
668
+ .Layer__switch__container .Layer__switch__button--disabled .Layer__switch__knob__wrapper {
669
+ color: var(--btn-color-icon-hover);
670
+ background: var(--color-white);
671
+ border-color: var(--btn-bg-color-icon-hover);
672
+ cursor: not-allowed;
673
+ }
674
+ .Layer__switch__container .Layer__switch__button--disabled .Layer__switch__knob__wrapper .Layer__switch__knob {
675
+ background: var(--color-white);
676
+ border-color: var(--btn-bg-color-icon-hover);
677
+ }
678
+ .Layer__switch__container .Layer__switch__button--disabled .Layer__switch__label {
679
+ color: var(--btn-color-icon-hover);
680
+ }
681
+ .Layer__switch__container .Layer__switch__knob__wrapper {
682
+ display: flex;
683
+ align-items: center;
684
+ justify-content: flex-start;
685
+ background: var(--color-white);
686
+ border: 2px solid var(--color-base-300);
687
+ width: 18px;
688
+ height: 12px;
689
+ padding: 0 2px;
690
+ border-radius: 10px;
691
+ transition: all 0.2s ease;
692
+ }
693
+ .Layer__switch__container .Layer__switch__knob__wrapper .Layer__switch__knob {
694
+ width: 6px;
695
+ height: 6px;
696
+ background-color: var(--color-white);
697
+ border-radius: 50%;
698
+ border: 2px solid var(--color-base-300);
699
+ transition: all 0.2s ease;
700
+ }
701
+ .Layer__switch__container .Layer__switch__label {
702
+ color: var(--btn-color-icon-hover);
703
+ margin-right: 10px;
704
+ }
624
705
  .Layer__card {
625
706
  display: flex;
626
707
  flex-direction: column;
@@ -645,6 +726,9 @@
645
726
  .Layer__component .recharts-responsive-container.Layer__chart-container {
646
727
  padding-top: 42px;
647
728
  }
729
+ .Layer__chart-wrapper {
730
+ position: relative;
731
+ }
648
732
  .Layer__chart-container {
649
733
  min-height: 300px;
650
734
  }
@@ -823,6 +907,11 @@
823
907
  .Layer__component-header.Layer__component-header--next-line-actions .Layer__header__actions {
824
908
  width: 100%;
825
909
  }
910
+ .Layer__component-header__title-wrapper {
911
+ display: flex;
912
+ align-items: center;
913
+ gap: var(--spacing-sm);
914
+ }
826
915
  .Layer__header__actions {
827
916
  display: flex;
828
917
  align-items: center;
@@ -2065,7 +2154,7 @@
2065
2154
  font-size: var(--input-font-size);
2066
2155
  line-height: 140%;
2067
2156
  background-color: var(--color-base-0);
2068
- min-height: 39px;
2157
+ min-height: 36px;
2069
2158
  align-items: center;
2070
2159
  cursor: pointer;
2071
2160
  }
@@ -2154,15 +2243,18 @@
2154
2243
  right: 8px;
2155
2244
  z-index: 1;
2156
2245
  }
2246
+ .Layer__compare__options .Layer__select {
2247
+ width: max-content;
2248
+ }
2157
2249
  @media screen and (-webkit-min-device-pixel-ratio: 2) {
2158
2250
  .Layer__component .Layer__textarea,
2159
2251
  .Layer__component .Layer__select__control,
2160
2252
  .Layer__component .Layer__input {
2161
2253
  font-size: 16px;
2162
- min-height: 39px;
2254
+ min-height: 36px;
2163
2255
  }
2164
2256
  .Layer__component .Layer__bank-transaction-list-item__expanded-row .Layer__select .Layer__select__control {
2165
- min-height: 39px;
2257
+ min-height: 36px;
2166
2258
  }
2167
2259
  }
2168
2260
  .Layer__onboarding {
@@ -2922,6 +3014,7 @@ tbody .Layer__table__empty-row:first-child {
2922
3014
  align-items: center;
2923
3015
  gap: var(--spacing-sm);
2924
3016
  flex-wrap: wrap;
3017
+ flex-grow: 1;
2925
3018
  }
2926
3019
  .Layer__ledger-account__index {
2927
3020
  background-color: var(--color-base-0);
@@ -6197,6 +6290,22 @@ tbody .Layer__table__empty-row:first-child {
6197
6290
  align-items: stretch;
6198
6291
  background-color: white;
6199
6292
  }
6293
+ .Layer__compare__options {
6294
+ display: flex;
6295
+ align-items: center;
6296
+ justify-content: flex-start;
6297
+ gap: var(--spacing-md);
6298
+ flex-wrap: wrap;
6299
+ }
6300
+ .Layer__compare__options .Layer__input-tooltip {
6301
+ flex: 1;
6302
+ }
6303
+ .Layer__compare__options .Layer__compare__switch__options {
6304
+ display: flex;
6305
+ align-items: center;
6306
+ justify-content: center;
6307
+ gap: var(--spacing-md);
6308
+ }
6200
6309
  .Layer__profit-and-loss__main-panel {
6201
6310
  flex: 1;
6202
6311
  }
@@ -6498,6 +6607,8 @@ tbody .Layer__table__empty-row:first-child {
6498
6607
  }
6499
6608
  .Layer__profit-and-loss-chart__bar--loading {
6500
6609
  fill: var(--color-base-50);
6610
+ }
6611
+ .Layer__profit-and-loss-chart__bar--loading-anim {
6501
6612
  animation: layer_chart_bar_loading_anim 2s linear infinite;
6502
6613
  }
6503
6614
  .Layer__profit-and-loss-chart__bar--income {
@@ -6648,6 +6759,55 @@ tbody .Layer__table__empty-row:first-child {
6648
6759
  background: var(--color-base-200);
6649
6760
  color: var(--color-base-900);
6650
6761
  }
6762
+ .Layer__profit-and-loss-chart__state-card {
6763
+ display: flex;
6764
+ flex-direction: column;
6765
+ justify-content: center;
6766
+ align-items: center;
6767
+ position: absolute;
6768
+ background: #fff;
6769
+ padding: var(--spacing-lg) var(--spacing-4xs);
6770
+ width: 260px;
6771
+ max-width: 70%;
6772
+ height: 120px;
6773
+ left: 50%;
6774
+ bottom: 0;
6775
+ transform: translate(-50%, -60px);
6776
+ border-radius: var(--border-radius-sm);
6777
+ box-shadow: 0px 0px 0px 1px var(--base-transparent-4);
6778
+ gap: var(--spacing-md);
6779
+ }
6780
+ .Layer__profit-and-loss-chart__state-card .Layer__icon-box {
6781
+ background-color: var(--color-base-100);
6782
+ }
6783
+ .Layer__profit-and-loss-chart__state-card__text {
6784
+ display: flex;
6785
+ flex-direction: column;
6786
+ justify-content: center;
6787
+ align-items: center;
6788
+ gap: var(--spacing-4xs);
6789
+ }
6790
+ .Layer__profit-and-loss-chart__state-card__description {
6791
+ color: var(--text-color-secondary);
6792
+ text-align: center;
6793
+ }
6794
+ .Layer__compare__controls__wrapper {
6795
+ display: flex;
6796
+ align-items: center;
6797
+ justify-content: space-between;
6798
+ gap: var(--spacing-md);
6799
+ flex-grow: 1;
6800
+ flex-wrap: wrap;
6801
+ }
6802
+ .Layer__compare__table__wrapper .Layer__table__wrapper {
6803
+ overflow: auto;
6804
+ max-width: 100%;
6805
+ }
6806
+ .Layer__compare__table__wrapper .Layer__table tr td:last-child .Layer__table-cell-content,
6807
+ .Layer__compare__table__wrapper .Layer__table tr th:last-child .Layer__table-cell-content {
6808
+ justify-content: flex-start;
6809
+ padding-right: var(--spacing-lg);
6810
+ }
6651
6811
  .Layer__profit-and-loss-detailed-charts__header--tablet,
6652
6812
  .Layer__profit-and-loss-detailed-charts__header {
6653
6813
  display: flex;