@layerfi/components 0.1.6 → 0.1.8
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/esm/index.js +724 -69
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +92 -1
- package/dist/index.js +719 -71
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +241 -0
- package/dist/styles/index.css.map +3 -3
- package/package.json +1 -1
package/dist/styles/index.css
CHANGED
|
@@ -156,6 +156,16 @@
|
|
|
156
156
|
.Layer__component *::-webkit-scrollbar-thumb:hover {
|
|
157
157
|
background: #999;
|
|
158
158
|
}
|
|
159
|
+
.Layer__sortable-col .Layer__sort-arrows .desc-arrow,
|
|
160
|
+
.Layer__sortable-col .Layer__sort-arrows .asc-arrow {
|
|
161
|
+
stroke: var(--color-base-500);
|
|
162
|
+
}
|
|
163
|
+
.Layer__sortable-col.sort--desc .Layer__sort-arrows .desc-arrow {
|
|
164
|
+
stroke: var(--color-base-1000);
|
|
165
|
+
}
|
|
166
|
+
.Layer__sortable-col.sort--asc .Layer__sort-arrows .asc-arrow {
|
|
167
|
+
stroke: var(--color-base-1000);
|
|
168
|
+
}
|
|
159
169
|
.Layer__badge {
|
|
160
170
|
display: inline-flex;
|
|
161
171
|
gap: var(--spacing-3xs);
|
|
@@ -914,6 +924,10 @@
|
|
|
914
924
|
.Layer__text--error {
|
|
915
925
|
color: var(--color-danger);
|
|
916
926
|
}
|
|
927
|
+
.Layer__label {
|
|
928
|
+
color: var(--color-base-500);
|
|
929
|
+
font-variation-settings: "wght" var(--font-weight-normal);
|
|
930
|
+
}
|
|
917
931
|
.Layer__flex-1 {
|
|
918
932
|
flex: 1;
|
|
919
933
|
}
|
|
@@ -2612,6 +2626,37 @@
|
|
|
2612
2626
|
.Layer__profit-and-loss {
|
|
2613
2627
|
background-color: white;
|
|
2614
2628
|
}
|
|
2629
|
+
.Layer__component-container .Layer__profit-and-loss {
|
|
2630
|
+
display: flex;
|
|
2631
|
+
align-items: stretch;
|
|
2632
|
+
}
|
|
2633
|
+
.Layer__profit-and-loss__main-panel {
|
|
2634
|
+
flex: 1;
|
|
2635
|
+
}
|
|
2636
|
+
.Layer__profit-and-loss__side-panel {
|
|
2637
|
+
box-sizing: border-box;
|
|
2638
|
+
border-left: 1px solid var(--color-base-300);
|
|
2639
|
+
max-width: 0;
|
|
2640
|
+
overflow: hidden;
|
|
2641
|
+
width: 480px;
|
|
2642
|
+
opacity: 0.05;
|
|
2643
|
+
transition: max-width 250ms ease-out, opacity 350ms ease-out;
|
|
2644
|
+
}
|
|
2645
|
+
.Layer__profit-and-loss__side-panel.open {
|
|
2646
|
+
max-width: 480px;
|
|
2647
|
+
opacity: 1;
|
|
2648
|
+
}
|
|
2649
|
+
@container (max-width: 1100px) {
|
|
2650
|
+
.Layer__profit-and-loss__side-panel {
|
|
2651
|
+
position: absolute;
|
|
2652
|
+
right: -500px;
|
|
2653
|
+
top: 0;
|
|
2654
|
+
height: 100%;
|
|
2655
|
+
}
|
|
2656
|
+
.Layer__profit-and-loss__side-panel.open {
|
|
2657
|
+
right: 0;
|
|
2658
|
+
}
|
|
2659
|
+
}
|
|
2615
2660
|
.Layer__profit-and-loss__title {
|
|
2616
2661
|
font-size: 1.5rem;
|
|
2617
2662
|
font-weight: 600;
|
|
@@ -2873,6 +2918,15 @@
|
|
|
2873
2918
|
min-height: 72px;
|
|
2874
2919
|
box-sizing: border-box;
|
|
2875
2920
|
}
|
|
2921
|
+
.Layer__profit-and-loss-summaries__summary.Layer__actionable {
|
|
2922
|
+
cursor: pointer;
|
|
2923
|
+
}
|
|
2924
|
+
.Layer__profit-and-loss-summaries__summary.Layer__actionable:hover {
|
|
2925
|
+
box-shadow: 0px 0px 0px 1px var(--color-base-500);
|
|
2926
|
+
}
|
|
2927
|
+
.Layer__profit-and-loss-summaries__summary.active {
|
|
2928
|
+
box-shadow: 0px 0px 0px 1px var(--color-base-900);
|
|
2929
|
+
}
|
|
2876
2930
|
.Layer__profit-and-loss-summaries__loader {
|
|
2877
2931
|
height: 17px;
|
|
2878
2932
|
display: flex;
|
|
@@ -2984,6 +3038,193 @@
|
|
|
2984
3038
|
min-width: 150px;
|
|
2985
3039
|
}
|
|
2986
3040
|
}
|
|
3041
|
+
.Layer__profit-and-loss-detailed-charts > header {
|
|
3042
|
+
display: flex;
|
|
3043
|
+
justify-content: space-between;
|
|
3044
|
+
align-items: flex-start;
|
|
3045
|
+
padding: var(--spacing-xl);
|
|
3046
|
+
padding-bottom: var(--spacing-lg);
|
|
3047
|
+
box-shadow: 0px -1px 0px 0px var(--color-base-300) inset;
|
|
3048
|
+
}
|
|
3049
|
+
.Layer__profit-and-loss-detailed-charts > header button.Layer__btn.Layer__btn--icon-only {
|
|
3050
|
+
width: 32px;
|
|
3051
|
+
height: 32px;
|
|
3052
|
+
min-height: 32px;
|
|
3053
|
+
padding: 0;
|
|
3054
|
+
}
|
|
3055
|
+
.Layer__profit-and-loss-detailed-charts__head {
|
|
3056
|
+
display: flex;
|
|
3057
|
+
flex-direction: column;
|
|
3058
|
+
gap: var(--spacing-2xs);
|
|
3059
|
+
}
|
|
3060
|
+
.Layer__profit-and-loss-detailed-charts__head .title {
|
|
3061
|
+
color: var(--color-base-800);
|
|
3062
|
+
}
|
|
3063
|
+
.Layer__profit-and-loss-detailed-charts__head .date {
|
|
3064
|
+
color: var(--color-base-500);
|
|
3065
|
+
}
|
|
3066
|
+
.Layer__profit-and-loss-detailed-charts__head > .Layer__text {
|
|
3067
|
+
margin: 0;
|
|
3068
|
+
}
|
|
3069
|
+
.Layer__profit-and-loss-detailed-charts {
|
|
3070
|
+
width: 480px;
|
|
3071
|
+
background: var(--color-base-0);
|
|
3072
|
+
}
|
|
3073
|
+
.Layer__profit-and-loss-detailed-charts .chart-container {
|
|
3074
|
+
width: 480px;
|
|
3075
|
+
height: 280px;
|
|
3076
|
+
padding-top: var(--spacing-2xl);
|
|
3077
|
+
padding-bottom: var(--spacing-lg);
|
|
3078
|
+
padding-left: var(--spacing-md);
|
|
3079
|
+
padding-right: var(--spacing-md);
|
|
3080
|
+
}
|
|
3081
|
+
.Layer__profit-and-loss-detailed-charts .recharts-responsive-container {
|
|
3082
|
+
box-shadow: none;
|
|
3083
|
+
}
|
|
3084
|
+
.Layer__profit-and-loss-detailed-charts .recharts-responsive-container path:focus,
|
|
3085
|
+
.Layer__profit-and-loss-detailed-charts .recharts-responsive-container g:focus {
|
|
3086
|
+
outline: none;
|
|
3087
|
+
}
|
|
3088
|
+
.Layer__profit-and-loss-detailed-charts .pie-center-label__title,
|
|
3089
|
+
.Layer__profit-and-loss-detailed-charts .pie-center-label__share {
|
|
3090
|
+
fill: var(--color-base-600);
|
|
3091
|
+
font-size: 12px;
|
|
3092
|
+
}
|
|
3093
|
+
.Layer__profit-and-loss-detailed-charts .pie-center-label__value {
|
|
3094
|
+
fill: var(--color-base-900);
|
|
3095
|
+
font-size: 14px;
|
|
3096
|
+
}
|
|
3097
|
+
.Layer__profit-and-loss-detailed-charts .filters {
|
|
3098
|
+
display: flex;
|
|
3099
|
+
margin: 0 var(--spacing-md);
|
|
3100
|
+
padding: var(--spacing-2xs) var(--spacing-xs);
|
|
3101
|
+
gap: var(--spacing-xs);
|
|
3102
|
+
border-bottom: 1px solid var(--color-base-300);
|
|
3103
|
+
}
|
|
3104
|
+
.Layer__profit-and-loss-detailed-charts .type-select {
|
|
3105
|
+
border-color: transparent;
|
|
3106
|
+
font-family: var(--font-family);
|
|
3107
|
+
font-variation-settings: "wght" var(--font-weight-normal);
|
|
3108
|
+
font-variant-numeric: lining-nums proportional-nums;
|
|
3109
|
+
font-feature-settings:
|
|
3110
|
+
"cv10" on,
|
|
3111
|
+
"cv05" on,
|
|
3112
|
+
"cv08" on,
|
|
3113
|
+
"ss03" on;
|
|
3114
|
+
}
|
|
3115
|
+
.Layer__profit-and-loss-detailed-charts .type-select .Layer__select__control {
|
|
3116
|
+
border-color: transparent;
|
|
3117
|
+
font-family: var(--font-family);
|
|
3118
|
+
font-variation-settings: "wght" var(--font-weight-normal);
|
|
3119
|
+
font-variant-numeric: lining-nums proportional-nums;
|
|
3120
|
+
font-feature-settings:
|
|
3121
|
+
"cv10" on,
|
|
3122
|
+
"cv05" on,
|
|
3123
|
+
"cv08" on,
|
|
3124
|
+
"ss03" on;
|
|
3125
|
+
}
|
|
3126
|
+
.Layer__profit-and-loss-detailed-charts .type-select .Layer__select__placeholder {
|
|
3127
|
+
font-size: 12px;
|
|
3128
|
+
font-family: var(--font-family);
|
|
3129
|
+
font-variation-settings: "wght" var(--font-weight-normal);
|
|
3130
|
+
font-variant-numeric: lining-nums proportional-nums;
|
|
3131
|
+
font-feature-settings:
|
|
3132
|
+
"cv10" on,
|
|
3133
|
+
"cv05" on,
|
|
3134
|
+
"cv08" on,
|
|
3135
|
+
"ss03" on;
|
|
3136
|
+
}
|
|
3137
|
+
.Layer__profit-and-loss-detailed-charts .type-select .Layer__select__indicator-separator {
|
|
3138
|
+
display: none;
|
|
3139
|
+
}
|
|
3140
|
+
.Layer__profit-and-loss-detailed-charts .Layer__select__menu {
|
|
3141
|
+
width: min-content;
|
|
3142
|
+
max-width: 300px;
|
|
3143
|
+
}
|
|
3144
|
+
.Layer__profit-and-loss-detailed-charts .Layer__select__menu .Layer__select__option {
|
|
3145
|
+
width: 100%;
|
|
3146
|
+
font-size: 12px;
|
|
3147
|
+
white-space: nowrap;
|
|
3148
|
+
overflow: hidden;
|
|
3149
|
+
text-overflow: ellipsis;
|
|
3150
|
+
}
|
|
3151
|
+
.Layer__profit-and-loss-detailed-charts .Layer__select__menu .Layer__select__option.Layer__select__option--is-focused,
|
|
3152
|
+
.Layer__profit-and-loss-detailed-charts .Layer__select__menu .Layer__select__option.Layer__select__option--is-selected,
|
|
3153
|
+
.Layer__profit-and-loss-detailed-charts .Layer__select__menu .Layer__select__option:hover,
|
|
3154
|
+
.Layer__profit-and-loss-detailed-charts .Layer__select__menu .Layer__select__option:focus,
|
|
3155
|
+
.Layer__profit-and-loss-detailed-charts .Layer__select__menu .Layer__select__option:active,
|
|
3156
|
+
.Layer__profit-and-loss-detailed-charts .Layer__select__menu .Layer__select__option:focus-visible,
|
|
3157
|
+
.Layer__profit-and-loss-detailed-charts .Layer__select__menu .Layer__select__option:focus-within {
|
|
3158
|
+
color: var(--text-color-primary);
|
|
3159
|
+
background: var(--color-base-100);
|
|
3160
|
+
}
|
|
3161
|
+
.Layer__profit-and-loss-detailed-charts .details-container {
|
|
3162
|
+
padding: var(--spacing-md);
|
|
3163
|
+
padding-top: var(--spacing-sm);
|
|
3164
|
+
}
|
|
3165
|
+
.Layer__profit-and-loss-detailed-charts .details-container table {
|
|
3166
|
+
width: 100%;
|
|
3167
|
+
border-collapse: collapse;
|
|
3168
|
+
}
|
|
3169
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th,
|
|
3170
|
+
.Layer__profit-and-loss-detailed-charts .details-container table td {
|
|
3171
|
+
text-align: left;
|
|
3172
|
+
font-size: 12px;
|
|
3173
|
+
padding: var(--spacing-2xs) var(--spacing-xs);
|
|
3174
|
+
transition: color 150ms ease-out;
|
|
3175
|
+
}
|
|
3176
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th:last-child,
|
|
3177
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th.value-col,
|
|
3178
|
+
.Layer__profit-and-loss-detailed-charts .details-container table td:last-child,
|
|
3179
|
+
.Layer__profit-and-loss-detailed-charts .details-container table td.value-col {
|
|
3180
|
+
text-align: right;
|
|
3181
|
+
}
|
|
3182
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th {
|
|
3183
|
+
cursor: pointer;
|
|
3184
|
+
color: var(--color-base-500);
|
|
3185
|
+
border-bottom: 1px solid var(--color-base-300);
|
|
3186
|
+
transition: color 150ms ease-out;
|
|
3187
|
+
}
|
|
3188
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th:hover {
|
|
3189
|
+
color: var(--color-base-800);
|
|
3190
|
+
}
|
|
3191
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th.sort--asc,
|
|
3192
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th.sort--desc {
|
|
3193
|
+
color: var(--color-base-1000);
|
|
3194
|
+
}
|
|
3195
|
+
.Layer__profit-and-loss-detailed-charts .details-container .Layer__sort-arrows {
|
|
3196
|
+
position: relative;
|
|
3197
|
+
top: 1px;
|
|
3198
|
+
}
|
|
3199
|
+
.Layer__profit-and-loss-detailed-charts .details-container .share-cell-content {
|
|
3200
|
+
display: flex;
|
|
3201
|
+
align-items: center;
|
|
3202
|
+
justify-content: flex-end;
|
|
3203
|
+
gap: var(--spacing-2xs);
|
|
3204
|
+
}
|
|
3205
|
+
.Layer__profit-and-loss-detailed-charts .details-container .share-cell-content .share-icon {
|
|
3206
|
+
width: 12px;
|
|
3207
|
+
height: 12px;
|
|
3208
|
+
border-radius: 2px;
|
|
3209
|
+
}
|
|
3210
|
+
.Layer__profit-and-loss-detailed-table__row .category-col,
|
|
3211
|
+
.Layer__profit-and-loss-detailed-table__row .value-col {
|
|
3212
|
+
color: var(--color-base-900);
|
|
3213
|
+
}
|
|
3214
|
+
.Layer__profit-and-loss-detailed-table__row .type-col,
|
|
3215
|
+
.Layer__profit-and-loss-detailed-table__row .share-col {
|
|
3216
|
+
color: var(--color-base-1000);
|
|
3217
|
+
}
|
|
3218
|
+
.Layer__profit-and-loss-detailed-table__row.inactive .type-col,
|
|
3219
|
+
.Layer__profit-and-loss-detailed-table__row.inactive .share-col {
|
|
3220
|
+
color: var(--color-base-500);
|
|
3221
|
+
}
|
|
3222
|
+
.Layer__profit-and-loss-detailed-charts__pie {
|
|
3223
|
+
transition: fill 1000ms ease-out;
|
|
3224
|
+
}
|
|
3225
|
+
.Layer__profit-and-loss-detailed-charts__pie.inactive {
|
|
3226
|
+
fill: var(--color-base-300);
|
|
3227
|
+
}
|
|
2987
3228
|
.Layer__radio-button-group {
|
|
2988
3229
|
display: flex;
|
|
2989
3230
|
font-size: 1rem;
|