@layerfi/components 0.1.27 → 0.1.29
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/README.md +18 -0
- package/dist/esm/index.js +10438 -10055
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +150 -35
- package/dist/index.js +3217 -2833
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +212 -13
- package/dist/styles/index.css.map +2 -2
- package/package.json +1 -1
package/dist/styles/index.css
CHANGED
|
@@ -635,7 +635,7 @@
|
|
|
635
635
|
border-top-left-radius: 0;
|
|
636
636
|
border-bottom-left-radius: 0;
|
|
637
637
|
}
|
|
638
|
-
@
|
|
638
|
+
@container (min-width: 760px) {
|
|
639
639
|
.Layer__date-month-picker__wrapper.Layer__date-month-picker__wrapper--current-date-option .Layer__date-month-picker {
|
|
640
640
|
border-top-right-radius: 0;
|
|
641
641
|
border-bottom-right-radius: 0;
|
|
@@ -707,7 +707,7 @@
|
|
|
707
707
|
background: linear-gradient(-90deg, #fff 50%, rgba(255, 255, 255, 0) 100%);
|
|
708
708
|
z-index: 2;
|
|
709
709
|
}
|
|
710
|
-
@
|
|
710
|
+
@container (max-width: 760px) {
|
|
711
711
|
.Layer__date-month-picker__wrapper .Layer__date-month-picker {
|
|
712
712
|
border: none;
|
|
713
713
|
background: none;
|
|
@@ -931,6 +931,135 @@
|
|
|
931
931
|
.Layer__datepicker__time input {
|
|
932
932
|
max-width: 100px;
|
|
933
933
|
}
|
|
934
|
+
.Layer__datepicker__popper * {
|
|
935
|
+
outline-color: var(--color-base-800);
|
|
936
|
+
}
|
|
937
|
+
.Layer__datepicker__popper {
|
|
938
|
+
border-radius: 8px;
|
|
939
|
+
}
|
|
940
|
+
.Layer__datepicker__popper .react-datepicker__triangle {
|
|
941
|
+
display: none;
|
|
942
|
+
}
|
|
943
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar {
|
|
944
|
+
border: none;
|
|
945
|
+
box-shadow: 0px 0px 0px 1px var(--input-border-color), 0px 0px 0px 2px rgba(0, 0, 0, 0);
|
|
946
|
+
}
|
|
947
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__navigation--previous {
|
|
948
|
+
left: auto;
|
|
949
|
+
right: 42px;
|
|
950
|
+
}
|
|
951
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__navigation--previous .react-datepicker__navigation-icon::before,
|
|
952
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__navigation--next .react-datepicker__navigation-icon::before {
|
|
953
|
+
border-color: var(--color-base-800);
|
|
954
|
+
border-style: solid;
|
|
955
|
+
border-width: 1px 1px 0 0;
|
|
956
|
+
content: "";
|
|
957
|
+
display: block;
|
|
958
|
+
height: 6px;
|
|
959
|
+
position: absolute;
|
|
960
|
+
top: 10px;
|
|
961
|
+
width: 6px;
|
|
962
|
+
}
|
|
963
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__month-container .react-datepicker__header {
|
|
964
|
+
padding: var(--spacing-sm) 0 0;
|
|
965
|
+
background: white;
|
|
966
|
+
border: none;
|
|
967
|
+
}
|
|
968
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__month-container .react-datepicker__current-month {
|
|
969
|
+
padding: 0 var(--spacing-md) var(--spacing-sm);
|
|
970
|
+
text-align: left;
|
|
971
|
+
font-weight: 460;
|
|
972
|
+
font-family: var(--font-family);
|
|
973
|
+
font-feature-settings:
|
|
974
|
+
"cv10" on,
|
|
975
|
+
"cv05" on,
|
|
976
|
+
"cv08" on,
|
|
977
|
+
"ss03" on;
|
|
978
|
+
font-size: 14px;
|
|
979
|
+
border-bottom: 1px solid var(--color-base-200);
|
|
980
|
+
}
|
|
981
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__day-names {
|
|
982
|
+
padding: var(--spacing-xs) var(--spacing-xs) 0;
|
|
983
|
+
}
|
|
984
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__day-names .react-datepicker__day-name {
|
|
985
|
+
width: 32px;
|
|
986
|
+
height: 32px;
|
|
987
|
+
color: var(--color-base-500);
|
|
988
|
+
font-size: 12px;
|
|
989
|
+
}
|
|
990
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__month .react-datepicker__week {
|
|
991
|
+
display: flex;
|
|
992
|
+
align-items: center;
|
|
993
|
+
justify-content: center;
|
|
994
|
+
}
|
|
995
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__month .react-datepicker__week .react-datepicker__day {
|
|
996
|
+
width: 32px;
|
|
997
|
+
height: 32px;
|
|
998
|
+
display: flex;
|
|
999
|
+
align-items: center;
|
|
1000
|
+
justify-content: center;
|
|
1001
|
+
transition: all 0.2s ease-in-out;
|
|
1002
|
+
}
|
|
1003
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__month .react-datepicker__week .react-datepicker__day:hover {
|
|
1004
|
+
background-color: var(--color-base-400);
|
|
1005
|
+
color: var(--color-base-800);
|
|
1006
|
+
}
|
|
1007
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__month .react-datepicker__week .react-datepicker__day.react-datepicker__day--selected {
|
|
1008
|
+
background-color: var(--color-base-800);
|
|
1009
|
+
color: var(--color-base-100);
|
|
1010
|
+
font-weight: 460;
|
|
1011
|
+
}
|
|
1012
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__month .react-datepicker__week .react-datepicker__day.react-datepicker__day--outside-month {
|
|
1013
|
+
color: var(--color-base-500);
|
|
1014
|
+
}
|
|
1015
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__month .react-datepicker__week .react-datepicker__day.react-datepicker__day--disabled {
|
|
1016
|
+
color: var(--color-base-300);
|
|
1017
|
+
cursor: not-allowed;
|
|
1018
|
+
}
|
|
1019
|
+
.Layer__datepicker__popper .Layer__datepicker__calendar .react-datepicker__month .react-datepicker__week .react-datepicker__day.react-datepicker__day--keyboard-selected {
|
|
1020
|
+
background-color: var(--color-base-400);
|
|
1021
|
+
color: var(--color-base-800);
|
|
1022
|
+
border-color: var(--color-base-800);
|
|
1023
|
+
outline-color: var(--color-base-800);
|
|
1024
|
+
}
|
|
1025
|
+
.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected {
|
|
1026
|
+
background-color: var(--color-base-800);
|
|
1027
|
+
color: var(--color-base-100);
|
|
1028
|
+
font-weight: 460;
|
|
1029
|
+
}
|
|
1030
|
+
.react-datepicker--time-only .react-datepicker__time-container .react-datepicker__time-list-item {
|
|
1031
|
+
display: flex;
|
|
1032
|
+
align-items: center;
|
|
1033
|
+
justify-content: center;
|
|
1034
|
+
transition: all 0.2s ease-in-out;
|
|
1035
|
+
}
|
|
1036
|
+
.react-datepicker--time-only .react-datepicker__time-container .react-datepicker__time-list-item:hover {
|
|
1037
|
+
background-color: var(--color-base-400);
|
|
1038
|
+
color: var(--color-base-800);
|
|
1039
|
+
}
|
|
1040
|
+
.react-datepicker--time-only .react-datepicker__time-container .react-datepicker__time-list-item.react-datepicker__time-list-item--selected {
|
|
1041
|
+
background-color: var(--color-base-800);
|
|
1042
|
+
color: var(--color-base-100);
|
|
1043
|
+
font-weight: 460;
|
|
1044
|
+
}
|
|
1045
|
+
.react-datepicker--time-only .react-datepicker__time-container .react-datepicker__header {
|
|
1046
|
+
padding: var(--spacing-sm) 0 0;
|
|
1047
|
+
background: white;
|
|
1048
|
+
border: none;
|
|
1049
|
+
}
|
|
1050
|
+
.react-datepicker--time-only .react-datepicker__time-container .react-datepicker__header .react-datepicker-time__header {
|
|
1051
|
+
padding: 0 var(--spacing-md) var(--spacing-sm);
|
|
1052
|
+
text-align: left;
|
|
1053
|
+
font-weight: 460;
|
|
1054
|
+
font-family: var(--font-family);
|
|
1055
|
+
font-feature-settings:
|
|
1056
|
+
"cv10" on,
|
|
1057
|
+
"cv05" on,
|
|
1058
|
+
"cv08" on,
|
|
1059
|
+
"ss03" on;
|
|
1060
|
+
font-size: 14px;
|
|
1061
|
+
border-bottom: 1px solid var(--color-base-200);
|
|
1062
|
+
}
|
|
934
1063
|
.Layer__details-list {
|
|
935
1064
|
display: flex;
|
|
936
1065
|
flex-direction: column;
|
|
@@ -1379,6 +1508,39 @@
|
|
|
1379
1508
|
max-width: 100%;
|
|
1380
1509
|
flex: 1;
|
|
1381
1510
|
}
|
|
1511
|
+
.Layer__category-menu__drawer-btn {
|
|
1512
|
+
display: flex;
|
|
1513
|
+
flex: 1;
|
|
1514
|
+
width: 100%;
|
|
1515
|
+
color: var(--color-base-500);
|
|
1516
|
+
padding: 8px;
|
|
1517
|
+
box-sizing: border-box;
|
|
1518
|
+
position: relative;
|
|
1519
|
+
border: 1px solid var(--border-color);
|
|
1520
|
+
border-radius: var(--input-border-radius);
|
|
1521
|
+
border-width: 0px;
|
|
1522
|
+
box-shadow: 0px 0px 0px 1px var(--input-border-color), 0px 0px 0px 2px rgba(0, 0, 0, 0);
|
|
1523
|
+
margin: 1px;
|
|
1524
|
+
font-family: var(--font-family);
|
|
1525
|
+
font-size: var(--input-font-size);
|
|
1526
|
+
line-height: 140%;
|
|
1527
|
+
background-color: var(--color-base-0);
|
|
1528
|
+
min-height: 39px;
|
|
1529
|
+
align-items: center;
|
|
1530
|
+
cursor: pointer;
|
|
1531
|
+
}
|
|
1532
|
+
.Layer__category-menu__drawer-btn:hover {
|
|
1533
|
+
color: var(--text-color-primary);
|
|
1534
|
+
background-color: var(--color-base-50);
|
|
1535
|
+
}
|
|
1536
|
+
.Layer__category-menu__drawer-btn.Layer__category-menu__drawer-btn--selected {
|
|
1537
|
+
color: var(--text-color-primary);
|
|
1538
|
+
}
|
|
1539
|
+
.Layer__category-menu__drawer-btn .Layer__category-menu__drawer-btn__arrow {
|
|
1540
|
+
position: absolute;
|
|
1541
|
+
right: 12px;
|
|
1542
|
+
top: 12px;
|
|
1543
|
+
}
|
|
1382
1544
|
@media screen and (max-width: 400px) {
|
|
1383
1545
|
.Layer__select__menu-portal .Layer__select__option {
|
|
1384
1546
|
font-size: var(--text-sm) !important;
|
|
@@ -1996,7 +2158,7 @@
|
|
|
1996
2158
|
}
|
|
1997
2159
|
.Layer__ledger-account__entry-details__table__total-row td {
|
|
1998
2160
|
font-variation-settings: "wght" var(--font-weight-bold);
|
|
1999
|
-
color: var(--color-
|
|
2161
|
+
color: var(--text-color-primary);
|
|
2000
2162
|
}
|
|
2001
2163
|
.Layer__table.Layer__ledger-account__entry-details__table th,
|
|
2002
2164
|
.Layer__ledger-account__entry-details__table__total-row td,
|
|
@@ -2340,6 +2502,8 @@
|
|
|
2340
2502
|
}
|
|
2341
2503
|
.Layer__bank-transactions__header.Layer__bank-transactions__header--mobile {
|
|
2342
2504
|
background-color: transparent;
|
|
2505
|
+
max-width: 414px;
|
|
2506
|
+
margin: auto;
|
|
2343
2507
|
}
|
|
2344
2508
|
.Layer__bank-transactions__header.Layer__bank-transactions__header--mobile,
|
|
2345
2509
|
.Layer__bank-transactions__header.Layer__bank-transactions__header--with-date-picker {
|
|
@@ -2610,6 +2774,9 @@
|
|
|
2610
2774
|
.Layer__expanded-bank-transaction-row__file-upload {
|
|
2611
2775
|
padding: 0 var(--spacing-md);
|
|
2612
2776
|
padding-bottom: var(--spacing-sm);
|
|
2777
|
+
display: flex;
|
|
2778
|
+
align-items: center;
|
|
2779
|
+
gap: 10px;
|
|
2613
2780
|
}
|
|
2614
2781
|
.Layer__bank-transaction-row__actions-cell {
|
|
2615
2782
|
border-left: 1px solid var(--border-color);
|
|
@@ -2655,6 +2822,9 @@
|
|
|
2655
2822
|
opacity: 1;
|
|
2656
2823
|
transform: scale(1);
|
|
2657
2824
|
}
|
|
2825
|
+
.Layer__bank-transaction-list-item.Layer__bank-transaction-row--removing {
|
|
2826
|
+
display: none;
|
|
2827
|
+
}
|
|
2658
2828
|
.Layer__bank-transaction-list-item .Layer__bank-transaction-list-item__base-row {
|
|
2659
2829
|
max-height: 60px;
|
|
2660
2830
|
opacity: 1;
|
|
@@ -3430,6 +3600,8 @@
|
|
|
3430
3600
|
gap: var(--spacing-sm);
|
|
3431
3601
|
list-style: none;
|
|
3432
3602
|
overflow: hidden;
|
|
3603
|
+
max-width: 414px;
|
|
3604
|
+
margin: auto;
|
|
3433
3605
|
}
|
|
3434
3606
|
.Layer__bank-transaction-mobile-list-item {
|
|
3435
3607
|
padding: 0;
|
|
@@ -3455,7 +3627,7 @@
|
|
|
3455
3627
|
transform: scale(1);
|
|
3456
3628
|
}
|
|
3457
3629
|
.Layer__bank-transaction-mobile-list-item.show.Layer__bank-transaction-row--removing {
|
|
3458
|
-
opacity: 0.
|
|
3630
|
+
opacity: 0.99;
|
|
3459
3631
|
}
|
|
3460
3632
|
.Layer__bank-transaction-mobile-list-item .Layer__bank-transaction-mobile-list-item__expanded-row {
|
|
3461
3633
|
height: 0;
|
|
@@ -3612,6 +3784,9 @@
|
|
|
3612
3784
|
padding-bottom: var(--spacing-lg);
|
|
3613
3785
|
font-size: 18px;
|
|
3614
3786
|
}
|
|
3787
|
+
.Layer__bank-transaction-mobile-list-item__categories_list-container {
|
|
3788
|
+
width: 100%;
|
|
3789
|
+
}
|
|
3615
3790
|
.Layer__component-container.Layer__chart-of-accounts {
|
|
3616
3791
|
display: flex;
|
|
3617
3792
|
align-items: stretch;
|
|
@@ -4228,8 +4403,12 @@
|
|
|
4228
4403
|
left: 0;
|
|
4229
4404
|
right: 0;
|
|
4230
4405
|
bottom: 0;
|
|
4406
|
+
opacity: 0;
|
|
4231
4407
|
z-index: 1000;
|
|
4232
|
-
transition: background 0.
|
|
4408
|
+
transition: background 0.2s ease-in-out, opacity 0.2s ease-in-out;
|
|
4409
|
+
}
|
|
4410
|
+
.Layer__drawer-background.open.closing {
|
|
4411
|
+
opacity: 0;
|
|
4233
4412
|
}
|
|
4234
4413
|
.Layer__drawer-background.open {
|
|
4235
4414
|
display: block;
|
|
@@ -4238,6 +4417,7 @@
|
|
|
4238
4417
|
}
|
|
4239
4418
|
.Layer__drawer {
|
|
4240
4419
|
position: fixed;
|
|
4420
|
+
display: flex;
|
|
4241
4421
|
bottom: -100%;
|
|
4242
4422
|
left: 0;
|
|
4243
4423
|
right: 0;
|
|
@@ -4246,9 +4426,13 @@
|
|
|
4246
4426
|
width: 100%;
|
|
4247
4427
|
max-height: 80%;
|
|
4248
4428
|
overflow-y: auto;
|
|
4249
|
-
padding:
|
|
4429
|
+
padding: 0 14px;
|
|
4250
4430
|
border-radius: var(--spacing-md) var(--spacing-md) 0px 0px;
|
|
4251
4431
|
transition: bottom 0.2s ease-in-out;
|
|
4432
|
+
border: 28px solid var(--color-base-0);
|
|
4433
|
+
border-left: 14px solid var(--color-base-0);
|
|
4434
|
+
border-right: 14px solid var(--color-base-0);
|
|
4435
|
+
box-sizing: border-box;
|
|
4252
4436
|
}
|
|
4253
4437
|
.Layer__drawer::after {
|
|
4254
4438
|
position: absolute;
|
|
@@ -4258,12 +4442,24 @@
|
|
|
4258
4442
|
background-color: var(--color-base-50);
|
|
4259
4443
|
left: 50%;
|
|
4260
4444
|
transform: translateX(-50%);
|
|
4261
|
-
top:
|
|
4445
|
+
top: 0px;
|
|
4262
4446
|
border-radius: 80px;
|
|
4263
4447
|
}
|
|
4264
|
-
.Layer__drawer.open {
|
|
4448
|
+
.Layer__drawer.open:not(.closing) {
|
|
4265
4449
|
bottom: 0;
|
|
4266
4450
|
}
|
|
4451
|
+
@media (min-width: 414px) {
|
|
4452
|
+
.Layer__drawer {
|
|
4453
|
+
max-height: calc(82% - 32px);
|
|
4454
|
+
max-width: 414px;
|
|
4455
|
+
margin-left: auto;
|
|
4456
|
+
margin-right: auto;
|
|
4457
|
+
border-radius: var(--spacing-md);
|
|
4458
|
+
}
|
|
4459
|
+
.Layer__drawer.open:not(.closing) {
|
|
4460
|
+
bottom: 32px;
|
|
4461
|
+
}
|
|
4462
|
+
}
|
|
4267
4463
|
.Layer__chevron {
|
|
4268
4464
|
stroke: var(--text-color);
|
|
4269
4465
|
transition: transform 0.33s;
|
|
@@ -4334,7 +4530,7 @@
|
|
|
4334
4530
|
justify-content: center;
|
|
4335
4531
|
flex: 1;
|
|
4336
4532
|
max-width: 272px;
|
|
4337
|
-
min-height:
|
|
4533
|
+
min-height: 115px;
|
|
4338
4534
|
padding: var(--spacing-2xs);
|
|
4339
4535
|
border-radius: var(--border-radius-sm);
|
|
4340
4536
|
background: var(--base-transparent-1);
|
|
@@ -4343,6 +4539,9 @@
|
|
|
4343
4539
|
.Layer__linked-accounts__new-account.--as-widget {
|
|
4344
4540
|
min-height: 90px;
|
|
4345
4541
|
}
|
|
4542
|
+
.Layer__linked-accounts__new-account.--show-ledger-balance {
|
|
4543
|
+
min-height: 135px;
|
|
4544
|
+
}
|
|
4346
4545
|
.Layer__linked-accounts__new-account:hover {
|
|
4347
4546
|
background: var(--base-transparent-2);
|
|
4348
4547
|
}
|
|
@@ -4383,7 +4582,7 @@
|
|
|
4383
4582
|
align-items: flex-start;
|
|
4384
4583
|
justify-content: space-between;
|
|
4385
4584
|
background: var(--color-base-50);
|
|
4386
|
-
color: var(--color-
|
|
4585
|
+
color: var(--text-color-primary);
|
|
4387
4586
|
border-top-left-radius: var(--border-radius-xs);
|
|
4388
4587
|
border-top-right-radius: var(--border-radius-xs);
|
|
4389
4588
|
border-bottom-left-radius: 0;
|
|
@@ -5164,7 +5363,7 @@
|
|
|
5164
5363
|
}
|
|
5165
5364
|
.Layer__profit-and-loss-summaries__amount,
|
|
5166
5365
|
.Layer__profit-and-loss-summaries__amount--positive {
|
|
5167
|
-
color: var(--color-
|
|
5366
|
+
color: var(--text-color-primary);
|
|
5168
5367
|
font-size: var(--text-md);
|
|
5169
5368
|
}
|
|
5170
5369
|
.Layer__profit-and-loss-summaries__amount::before,
|
|
@@ -5385,7 +5584,7 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
5385
5584
|
font-size: 12px;
|
|
5386
5585
|
}
|
|
5387
5586
|
.Layer__profit-and-loss-detailed-charts .pie-center-label__value {
|
|
5388
|
-
fill: var(--color-
|
|
5587
|
+
fill: var(--text-color-primary);
|
|
5389
5588
|
font-size: 14px;
|
|
5390
5589
|
}
|
|
5391
5590
|
.Layer__profit-and-loss-detailed-charts .filters {
|
|
@@ -5518,7 +5717,7 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
5518
5717
|
}
|
|
5519
5718
|
.Layer__profit-and-loss-detailed-table__row .category-col,
|
|
5520
5719
|
.Layer__profit-and-loss-detailed-table__row .value-col {
|
|
5521
|
-
color: var(--color-
|
|
5720
|
+
color: var(--text-color-primary);
|
|
5522
5721
|
}
|
|
5523
5722
|
.Layer__profit-and-loss-detailed-table__row .type-col,
|
|
5524
5723
|
.Layer__profit-and-loss-detailed-table__row .share-col {
|