@layerfi/components 0.1.115 → 0.1.116-alpha.1
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 +1 -1
- package/dist/cjs/index.cjs +6108 -6084
- package/dist/esm/index.mjs +6111 -6087
- package/dist/index.css +245 -288
- package/package.json +2 -1
package/dist/index.css
CHANGED
|
@@ -181,6 +181,20 @@
|
|
|
181
181
|
font-weight: var(--font-weight-normal);
|
|
182
182
|
font-feature-settings: "cv10" on, "cv01" on, "cv05" on, "cv08" on, "ss03" on;
|
|
183
183
|
}
|
|
184
|
+
@media (width <= 768px) {
|
|
185
|
+
.Layer__component,
|
|
186
|
+
.Layer__Portal,
|
|
187
|
+
.Layer__view,
|
|
188
|
+
.Layer__select__menu-portal,
|
|
189
|
+
.Layer__tooltip,
|
|
190
|
+
.Layer__UI__tooltip,
|
|
191
|
+
.Layer__toasts-container,
|
|
192
|
+
.Layer__drawer,
|
|
193
|
+
.Layer__variables,
|
|
194
|
+
.Layer__tasks-component {
|
|
195
|
+
--text-heading: 20px;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
184
198
|
.Layer__view,
|
|
185
199
|
.Layer__component,
|
|
186
200
|
.Layer__Portal,
|
|
@@ -231,6 +245,9 @@
|
|
|
231
245
|
.Layer__component *::-webkit-scrollbar-thumb:hover {
|
|
232
246
|
background: #999;
|
|
233
247
|
}
|
|
248
|
+
.Layer__sortable-col.value-col {
|
|
249
|
+
text-align: right;
|
|
250
|
+
}
|
|
234
251
|
.Layer__sortable-col .Layer__sort-arrows .desc-arrow,
|
|
235
252
|
.Layer__sortable-col .Layer__sort-arrows .asc-arrow {
|
|
236
253
|
stroke: var(--color-base-500);
|
|
@@ -4118,94 +4135,6 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
4118
4135
|
width: 12px;
|
|
4119
4136
|
}
|
|
4120
4137
|
}
|
|
4121
|
-
.Layer__bank-transactions__notifications {
|
|
4122
|
-
position: absolute;
|
|
4123
|
-
z-index: 1;
|
|
4124
|
-
bottom: var(--spacing-2xs);
|
|
4125
|
-
left: calc(100% - 340px - var(--spacing-2xs));
|
|
4126
|
-
display: flex;
|
|
4127
|
-
flex-direction: column;
|
|
4128
|
-
min-width: 300px;
|
|
4129
|
-
transition: all var(--transition-speed) ease-in-out;
|
|
4130
|
-
}
|
|
4131
|
-
.Layer__bank-transactions__notifications .Layer__bank-transactions__notification {
|
|
4132
|
-
overflow: hidden;
|
|
4133
|
-
height: 56px;
|
|
4134
|
-
padding: 12px;
|
|
4135
|
-
margin: 0;
|
|
4136
|
-
margin-top: -12px;
|
|
4137
|
-
cursor: pointer;
|
|
4138
|
-
transition: all var(--transition-speed) ease-in-out;
|
|
4139
|
-
}
|
|
4140
|
-
.Layer__bank-transactions__notifications .Layer__bank-transactions__notification:hover .Layer__bank-transactions__notification-content {
|
|
4141
|
-
box-shadow: 0 0 3px 0 var(--base-transparent-12), 0 0 0 1px var(--color-base-200);
|
|
4142
|
-
}
|
|
4143
|
-
.Layer__bank-transactions__notifications .Layer__bank-transactions__notification-content {
|
|
4144
|
-
display: flex;
|
|
4145
|
-
gap: var(--spacing-sm);
|
|
4146
|
-
align-items: center;
|
|
4147
|
-
padding: var(--spacing-xs);
|
|
4148
|
-
padding-right: var(--spacing-md);
|
|
4149
|
-
border-radius: var(--border-radius-3xs);
|
|
4150
|
-
box-shadow: 0 0 12px 0 var(--base-transparent-12), 0 0 0 1px var(--color-base-200);
|
|
4151
|
-
background: var(--color-base-0);
|
|
4152
|
-
}
|
|
4153
|
-
.Layer__bank-transactions__notifications .Layer__bank-transactions__notification-icon {
|
|
4154
|
-
display: flex;
|
|
4155
|
-
flex-direction: column;
|
|
4156
|
-
align-items: center;
|
|
4157
|
-
justify-content: center;
|
|
4158
|
-
height: var(--spacing-3xl);
|
|
4159
|
-
width: var(--spacing-3xl);
|
|
4160
|
-
border-radius: var(--border-radius-3xs);
|
|
4161
|
-
box-shadow: 0 1px 2px 0 var(--base-transparent-6), 0 0 0 1px var(--color-base-300);
|
|
4162
|
-
background: var(--color-base-0);
|
|
4163
|
-
color: var(--color-danger);
|
|
4164
|
-
}
|
|
4165
|
-
.Layer__bank-transactions__notifications .Layer__bank-transactions__notification-text {
|
|
4166
|
-
display: flex;
|
|
4167
|
-
flex-direction: column;
|
|
4168
|
-
}
|
|
4169
|
-
.Layer__bank-transactions__notifications .Layer__bank-transactions__notification-title {
|
|
4170
|
-
font-size: var(--text-md);
|
|
4171
|
-
color: var(--color-base-1000);
|
|
4172
|
-
}
|
|
4173
|
-
.Layer__bank-transactions__notifications .Layer__bank-transactions__notification-message {
|
|
4174
|
-
font-size: var(--text-sm);
|
|
4175
|
-
color: var(--color-base-700);
|
|
4176
|
-
}
|
|
4177
|
-
@keyframes fade-in {
|
|
4178
|
-
from {
|
|
4179
|
-
opacity: 0;
|
|
4180
|
-
transform: scale(0.5);
|
|
4181
|
-
}
|
|
4182
|
-
to {
|
|
4183
|
-
opacity: 1;
|
|
4184
|
-
transform: scale(1);
|
|
4185
|
-
}
|
|
4186
|
-
}
|
|
4187
|
-
@keyframes fade-out {
|
|
4188
|
-
from {
|
|
4189
|
-
height: 56px;
|
|
4190
|
-
padding-top: 12px;
|
|
4191
|
-
padding-bottom: 12px;
|
|
4192
|
-
opacity: 1;
|
|
4193
|
-
transform: scale(1);
|
|
4194
|
-
}
|
|
4195
|
-
to {
|
|
4196
|
-
height: 0;
|
|
4197
|
-
padding-top: 6px;
|
|
4198
|
-
padding-bottom: 6px;
|
|
4199
|
-
opacity: 0;
|
|
4200
|
-
transform: scale(0.8);
|
|
4201
|
-
}
|
|
4202
|
-
}
|
|
4203
|
-
.notification-enter {
|
|
4204
|
-
animation: fade-in var(--transition-speed) forwards;
|
|
4205
|
-
}
|
|
4206
|
-
.notification-exit {
|
|
4207
|
-
animation: fade-out var(--transition-speed) forwards;
|
|
4208
|
-
}
|
|
4209
4138
|
.Layer__expanded-bank-transaction-row__splits-inputs + .Layer__text--error {
|
|
4210
4139
|
padding: var(--spacing-2xs) 0;
|
|
4211
4140
|
padding-bottom: var(--spacing-md);
|
|
@@ -5683,10 +5612,10 @@ tbody .Layer__table__empty-row:first-child {
|
|
|
5683
5612
|
#layer-pie-dots-pattern rect.bg {
|
|
5684
5613
|
fill: var(--color-base-100);
|
|
5685
5614
|
}
|
|
5686
|
-
|
|
5615
|
+
.Layer__charts__dots-pattern-legend__dot {
|
|
5687
5616
|
fill: var(--color-base-500);
|
|
5688
5617
|
}
|
|
5689
|
-
|
|
5618
|
+
.Layer__charts__dots-pattern-legend__bg {
|
|
5690
5619
|
fill: var(--color-base-100);
|
|
5691
5620
|
}
|
|
5692
5621
|
@container (min-width: 1024px) {
|
|
@@ -5862,10 +5791,20 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
5862
5791
|
padding-bottom: var(--spacing-lg);
|
|
5863
5792
|
padding-left: var(--spacing-md);
|
|
5864
5793
|
}
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
|
|
5794
|
+
.Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__empty-chart {
|
|
5795
|
+
box-sizing: border-box;
|
|
5796
|
+
height: 280px;
|
|
5797
|
+
width: 100%;
|
|
5798
|
+
padding-top: var(--spacing-2xl);
|
|
5799
|
+
padding-right: var(--spacing-md);
|
|
5800
|
+
padding-bottom: var(--spacing-lg);
|
|
5801
|
+
padding-left: var(--spacing-md);
|
|
5802
|
+
}
|
|
5803
|
+
.Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__empty-chart-content {
|
|
5804
|
+
height: 100%;
|
|
5805
|
+
}
|
|
5806
|
+
.Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__empty-chart-icon {
|
|
5807
|
+
color: var(--color-base-400);
|
|
5869
5808
|
}
|
|
5870
5809
|
.Layer__profit-and-loss-detailed-charts .recharts-responsive-container {
|
|
5871
5810
|
box-shadow: none;
|
|
@@ -5896,11 +5835,20 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
5896
5835
|
padding: var(--spacing-2xs) var(--spacing-xs);
|
|
5897
5836
|
font-size: 12px;
|
|
5898
5837
|
text-align: left;
|
|
5899
|
-
transition: color 150ms ease-out;
|
|
5900
5838
|
}
|
|
5901
|
-
.Layer__profit-and-loss-detailed-charts .details-container table th:
|
|
5902
|
-
.Layer__profit-and-loss-detailed-charts .details-container table td:
|
|
5903
|
-
|
|
5839
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th:first-child,
|
|
5840
|
+
.Layer__profit-and-loss-detailed-charts .details-container table td:first-child {
|
|
5841
|
+
width: 20px;
|
|
5842
|
+
padding-right: 0;
|
|
5843
|
+
}
|
|
5844
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th:last-child,
|
|
5845
|
+
.Layer__profit-and-loss-detailed-charts .details-container table td:last-child {
|
|
5846
|
+
text-align: right;
|
|
5847
|
+
}
|
|
5848
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th.percent-col,
|
|
5849
|
+
.Layer__profit-and-loss-detailed-charts .details-container table td.percent-col {
|
|
5850
|
+
width: 4ch;
|
|
5851
|
+
padding-left: 0;
|
|
5904
5852
|
text-align: right;
|
|
5905
5853
|
}
|
|
5906
5854
|
.Layer__profit-and-loss-detailed-charts .details-container table th {
|
|
@@ -5910,6 +5858,9 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
5910
5858
|
color: var(--color-base-500);
|
|
5911
5859
|
transition: color 150ms ease-out;
|
|
5912
5860
|
}
|
|
5861
|
+
.Layer__profit-and-loss-detailed-charts .details-container table th:first-child {
|
|
5862
|
+
cursor: default;
|
|
5863
|
+
}
|
|
5913
5864
|
.Layer__profit-and-loss-detailed-charts .details-container table th:hover {
|
|
5914
5865
|
color: var(--color-base-800);
|
|
5915
5866
|
}
|
|
@@ -5920,22 +5871,18 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
5920
5871
|
position: relative;
|
|
5921
5872
|
top: 1px;
|
|
5922
5873
|
}
|
|
5923
|
-
.Layer__profit-and-loss-detailed-charts .details-container .share-
|
|
5924
|
-
display: flex;
|
|
5925
|
-
gap: var(--spacing-2xs);
|
|
5926
|
-
align-items: center;
|
|
5927
|
-
justify-content: flex-end;
|
|
5928
|
-
}
|
|
5929
|
-
.Layer__profit-and-loss-detailed-charts .details-container .share-cell-content .share-icon {
|
|
5874
|
+
.Layer__profit-and-loss-detailed-charts .details-container .color-col .share-icon {
|
|
5930
5875
|
height: 12px;
|
|
5931
5876
|
width: 12px;
|
|
5932
5877
|
border-radius: 2px;
|
|
5933
5878
|
}
|
|
5934
|
-
.Layer__profit-and-loss .
|
|
5935
|
-
|
|
5879
|
+
.Layer__profit-and-loss-detailed-charts .details-container .percent-col .share-text {
|
|
5880
|
+
font-size: var(--text-sm);
|
|
5881
|
+
line-height: 140%;
|
|
5882
|
+
color: var(--color-base-600);
|
|
5936
5883
|
}
|
|
5937
|
-
.Layer__profit-and-loss
|
|
5938
|
-
|
|
5884
|
+
.Layer__profit-and-loss-detailed-charts .details-container tbody tr {
|
|
5885
|
+
height: 2.5rem;
|
|
5939
5886
|
}
|
|
5940
5887
|
.Layer__profit-and-loss-detailed-table__row {
|
|
5941
5888
|
border-radius: 2px;
|
|
@@ -5947,7 +5894,7 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
5947
5894
|
color: var(--text-color-primary);
|
|
5948
5895
|
}
|
|
5949
5896
|
.Layer__profit-and-loss-detailed-table__row .type-col,
|
|
5950
|
-
.Layer__profit-and-loss-detailed-table__row .
|
|
5897
|
+
.Layer__profit-and-loss-detailed-table__row .percent-col {
|
|
5951
5898
|
color: var(--color-base-500);
|
|
5952
5899
|
}
|
|
5953
5900
|
.Layer__profit-and-loss-detailed-table__row.active {
|
|
@@ -5956,7 +5903,7 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
5956
5903
|
.Layer__profit-and-loss-detailed-table__row.active .category-col,
|
|
5957
5904
|
.Layer__profit-and-loss-detailed-table__row.active .value-col,
|
|
5958
5905
|
.Layer__profit-and-loss-detailed-table__row.active .type-col,
|
|
5959
|
-
.Layer__profit-and-loss-detailed-table__row.active .
|
|
5906
|
+
.Layer__profit-and-loss-detailed-table__row.active .percent-col {
|
|
5960
5907
|
color: var(--color-base-1000);
|
|
5961
5908
|
}
|
|
5962
5909
|
.Layer__profit-and-loss-detailed-charts__pie {
|
|
@@ -5988,6 +5935,9 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
5988
5935
|
.Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__content .chart-container {
|
|
5989
5936
|
max-width: 300px;
|
|
5990
5937
|
}
|
|
5938
|
+
.Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__content .Layer__profit-and-loss-detailed-charts__empty-chart {
|
|
5939
|
+
max-width: 300px;
|
|
5940
|
+
}
|
|
5991
5941
|
.Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__table-wrapper {
|
|
5992
5942
|
display: flex;
|
|
5993
5943
|
flex: 1;
|
|
@@ -6014,6 +5964,10 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
6014
5964
|
}
|
|
6015
5965
|
.Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__table-wrapper {
|
|
6016
5966
|
width: 100%;
|
|
5967
|
+
padding-inline: var(--spacing-md);
|
|
5968
|
+
}
|
|
5969
|
+
.Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__table-wrapper .Layer__Span {
|
|
5970
|
+
margin: 0 1rem;
|
|
6017
5971
|
}
|
|
6018
5972
|
.Layer__profit-and-loss-detailed-charts .Layer__profit-and-loss-detailed-charts__head .date {
|
|
6019
5973
|
display: none;
|
|
@@ -7092,187 +7046,11 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
7092
7046
|
* A `label` is an inline element by default. This change allows us to apply padding.
|
|
7093
7047
|
*/
|
|
7094
7048
|
display: inline-block;
|
|
7095
|
-
}.Layer__ComboBoxContainer {
|
|
7096
|
-
display: grid;
|
|
7097
|
-
}
|
|
7098
|
-
|
|
7099
|
-
.Layer__ComboBoxControl {
|
|
7100
|
-
display: grid;
|
|
7101
|
-
grid-template-columns: minmax(0, 1fr) auto;
|
|
7102
|
-
--block-size: 2.25rem;
|
|
7103
|
-
block-size: var(--block-size);
|
|
7104
|
-
border-radius: var(--input-border-radius);
|
|
7105
|
-
border: 1px solid var(--color-base-300);
|
|
7106
|
-
background-color: var(--color-base-0);
|
|
7107
|
-
}
|
|
7108
|
-
.Layer__ComboBoxControl--focused {
|
|
7109
|
-
border-color: var(--outline-active);
|
|
7110
|
-
}
|
|
7111
|
-
.Layer__ComboBoxControl--disabled {
|
|
7112
|
-
cursor: not-allowed;
|
|
7113
|
-
}
|
|
7114
|
-
.Layer__ComboBoxControl--readonly {
|
|
7115
|
-
background-color: var(--bg-muted);
|
|
7116
|
-
}
|
|
7117
|
-
|
|
7118
|
-
.Layer__ComboBoxContainer > .Layer__ComboBoxControl {
|
|
7119
|
-
/*
|
|
7120
|
-
* This is intentional.
|
|
7121
|
-
*
|
|
7122
|
-
* The "unstyled" variant of react-select still forces a min-height on the control of 38 px.
|
|
7123
|
-
*/
|
|
7124
|
-
block-size: var(--block-size);
|
|
7125
|
-
min-block-size: var(--block-size);
|
|
7126
|
-
}
|
|
7127
|
-
.Layer__ComboBoxContainer > .Layer__ComboBoxControl--focused {
|
|
7128
|
-
/*
|
|
7129
|
-
* This seems like the only workaround when the "unstyled" variant
|
|
7130
|
-
* includes a (malicious) `outline: 0 !important`.
|
|
7131
|
-
*
|
|
7132
|
-
* @see {https://github.com/JedWatson/react-select/blob/2a913698ad3d7759fb8e6bc5dd8a7d839227da2f/packages/react-select/src/components/Control.tsx#L49}
|
|
7133
|
-
*/
|
|
7134
|
-
outline: 2px solid var(--outline-default) !important;
|
|
7135
|
-
}
|
|
7136
|
-
|
|
7137
|
-
.Layer__ComboBoxValueContainer {
|
|
7138
|
-
padding-inline-start: var(--spacing-xs);
|
|
7139
|
-
cursor: text;
|
|
7140
|
-
font-size: var(--input-font-size);
|
|
7141
|
-
}
|
|
7142
|
-
|
|
7143
|
-
.Layer__ComboBoxIndicatorsContainer {
|
|
7144
|
-
padding-inline-end: var(--spacing-3xs);
|
|
7145
|
-
}
|
|
7146
|
-
.Layer__ComboBoxIndicatorsContainer--readonly {
|
|
7147
|
-
visibility: hidden;
|
|
7148
|
-
}
|
|
7149
|
-
|
|
7150
|
-
.Layer__ComboBoxClearIndicator {
|
|
7151
|
-
display: flex;
|
|
7152
|
-
align-items: center;
|
|
7153
|
-
justify-content: center;
|
|
7154
|
-
--size: 1.25rem;
|
|
7155
|
-
block-size: var(--size);
|
|
7156
|
-
inline-size: var(--size);
|
|
7157
|
-
cursor: pointer;
|
|
7158
|
-
}
|
|
7159
|
-
|
|
7160
|
-
.Layer__ComboBoxLoadingIndicator {
|
|
7161
|
-
display: flex;
|
|
7162
|
-
align-items: center;
|
|
7163
|
-
justify-content: center;
|
|
7164
|
-
--size: 1.25rem;
|
|
7165
|
-
block-size: var(--size);
|
|
7166
|
-
inline-size: var(--size);
|
|
7167
|
-
cursor: default;
|
|
7168
|
-
}
|
|
7169
|
-
|
|
7170
|
-
.Layer__ComboBoxDropdownIndicator {
|
|
7171
|
-
display: flex;
|
|
7172
|
-
align-items: center;
|
|
7173
|
-
justify-content: center;
|
|
7174
|
-
block-size: var(--size);
|
|
7175
|
-
inline-size: var(--size);
|
|
7176
|
-
cursor: pointer;
|
|
7177
|
-
color: var(--color-base-600);
|
|
7178
|
-
--size: 1.25rem;
|
|
7179
|
-
}
|
|
7180
|
-
|
|
7181
|
-
.Layer__ComboBoxMenu {
|
|
7182
|
-
overflow: hidden;
|
|
7183
|
-
border-radius: var(--border-radius-xs);
|
|
7184
|
-
border: 1px solid var(--border-color);
|
|
7185
|
-
margin-block-start: var(--spacing-2xs);
|
|
7186
|
-
background-color: var(--color-base-0);
|
|
7187
|
-
}
|
|
7188
|
-
|
|
7189
|
-
.Layer__ComboBoxMenuList {
|
|
7190
|
-
overflow-y: auto;
|
|
7191
|
-
}
|
|
7192
|
-
.Layer__ComboBoxMenuList .Layer__ComboBoxOption {
|
|
7193
|
-
/*
|
|
7194
|
-
* This is intentionally done indirectly to increase specificity.
|
|
7195
|
-
*
|
|
7196
|
-
* `react-select` explicitly sets 'block'
|
|
7197
|
-
*/
|
|
7198
|
-
display: grid;
|
|
7199
|
-
/*
|
|
7200
|
-
* This is intentionally done indirectly to increase specificity.
|
|
7201
|
-
*
|
|
7202
|
-
* `react-select` explicitly sets 'default'
|
|
7203
|
-
*/
|
|
7204
|
-
cursor: pointer;
|
|
7205
|
-
}
|
|
7206
|
-
.Layer__ComboBoxMenuList .Layer__ComboBoxOption--disabled {
|
|
7207
|
-
cursor: not-allowed;
|
|
7208
|
-
}
|
|
7209
|
-
.Layer__ComboBoxMenuList .Layer__ComboBoxOption--hidden {
|
|
7210
|
-
display: none;
|
|
7211
|
-
}
|
|
7212
|
-
|
|
7213
|
-
.Layer__ComboBoxGroup {
|
|
7214
|
-
padding-block: var(--spacing-xs);
|
|
7215
|
-
}
|
|
7216
|
-
.Layer__ComboBoxGroup > .Layer__ComboBoxGroupHeading {
|
|
7217
|
-
padding-block-start: var(--spacing-3xs);
|
|
7218
|
-
padding-block-end: var(--spacing-xs);
|
|
7219
|
-
padding-inline: var(--spacing-sm);
|
|
7220
|
-
}
|
|
7221
|
-
.Layer__ComboBoxGroup > div > .Layer__ComboBoxOption {
|
|
7222
|
-
padding-inline: var(--spacing-sm);
|
|
7223
|
-
}
|
|
7224
|
-
|
|
7225
|
-
.Layer__ComboBoxOption {
|
|
7226
|
-
padding-block: var(--spacing-xs);
|
|
7227
|
-
padding-inline: var(--spacing-3xs);
|
|
7228
|
-
border: 2px solid transparent;
|
|
7229
|
-
}
|
|
7230
|
-
.Layer__ComboBoxOption--focused {
|
|
7231
|
-
background-color: var(--color-base-100);
|
|
7232
|
-
}
|
|
7233
|
-
.Layer__ComboBoxOption .Layer__ComboBoxOptionCheckIcon {
|
|
7234
|
-
visibility: hidden;
|
|
7235
|
-
}
|
|
7236
|
-
.Layer__ComboBoxOption--selected {
|
|
7237
|
-
background-color: var(--color-base-100);
|
|
7238
|
-
}
|
|
7239
|
-
.Layer__ComboBoxOption--selected .Layer__ComboBoxOptionCheckIcon {
|
|
7240
|
-
visibility: visible;
|
|
7241
|
-
}
|
|
7242
|
-
.Layer__ComboBoxOption--disabled {
|
|
7243
|
-
color: var(--color-base-500);
|
|
7244
|
-
}
|
|
7245
|
-
|
|
7246
|
-
.Layer__ComboBoxNoOptionsMessage {
|
|
7247
|
-
padding-block: var(--spacing-sm);
|
|
7248
|
-
}.Layer__MoneySpan[data-positive]::before {
|
|
7249
|
-
content: "$";
|
|
7250
|
-
}
|
|
7251
|
-
.Layer__MoneySpan[data-negative]::before {
|
|
7252
|
-
content: "-$";
|
|
7253
|
-
}
|
|
7254
|
-
.Layer__MoneySpan[data-display-plus-sign]::before {
|
|
7255
|
-
content: "+$";
|
|
7256
|
-
}.Layer__datetime {
|
|
7257
|
-
display: inline-flex;
|
|
7258
|
-
gap: var(--spacing-md);
|
|
7259
|
-
align-items: center;
|
|
7260
|
-
}.Layer__BankTransactionCategoryComboBox__LoadingSuggestionsOption {
|
|
7261
|
-
color: var(--color-base-900);
|
|
7262
|
-
}
|
|
7263
|
-
|
|
7264
|
-
.Layer__BankTransactionCategoryComboBox__CustomGroupHeading {
|
|
7265
|
-
/* style the parent .Layer__ComboBoxGroupHeading of this element */
|
|
7266
|
-
}
|
|
7267
|
-
:is(.Layer__ComboBoxGroupHeading:has(.Layer__BankTransactionCategoryComboBox__CustomGroupHeading)) {
|
|
7268
|
-
border-bottom: 1px solid var(--border-color);
|
|
7269
|
-
margin-block-end: var(--spacing-3xs);
|
|
7270
7049
|
}.Layer__ModalOverlay {
|
|
7271
7050
|
position: fixed;
|
|
7272
7051
|
z-index: 100;
|
|
7273
7052
|
inset: 0;
|
|
7274
7053
|
display: grid;
|
|
7275
|
-
height: var(--visual-viewport-height);
|
|
7276
7054
|
background: rgba(0, 0, 0, 0.5);
|
|
7277
7055
|
place-items: center;
|
|
7278
7056
|
}
|
|
@@ -7596,6 +7374,181 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
7596
7374
|
|
|
7597
7375
|
.Layer__ModalActions {
|
|
7598
7376
|
margin-block-start: var(--spacing-3xl);
|
|
7377
|
+
}.Layer__ComboBoxContainer {
|
|
7378
|
+
display: grid;
|
|
7379
|
+
}
|
|
7380
|
+
|
|
7381
|
+
.Layer__ComboBoxControl {
|
|
7382
|
+
display: grid;
|
|
7383
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
7384
|
+
--block-size: 2.25rem;
|
|
7385
|
+
block-size: var(--block-size);
|
|
7386
|
+
border-radius: var(--input-border-radius);
|
|
7387
|
+
border: 1px solid var(--color-base-300);
|
|
7388
|
+
background-color: var(--color-base-0);
|
|
7389
|
+
}
|
|
7390
|
+
.Layer__ComboBoxControl--focused {
|
|
7391
|
+
border-color: var(--outline-active);
|
|
7392
|
+
}
|
|
7393
|
+
.Layer__ComboBoxControl--disabled {
|
|
7394
|
+
cursor: not-allowed;
|
|
7395
|
+
}
|
|
7396
|
+
.Layer__ComboBoxControl--readonly {
|
|
7397
|
+
background-color: var(--bg-muted);
|
|
7398
|
+
}
|
|
7399
|
+
|
|
7400
|
+
.Layer__ComboBoxContainer > .Layer__ComboBoxControl {
|
|
7401
|
+
/*
|
|
7402
|
+
* This is intentional.
|
|
7403
|
+
*
|
|
7404
|
+
* The "unstyled" variant of react-select still forces a min-height on the control of 38 px.
|
|
7405
|
+
*/
|
|
7406
|
+
block-size: var(--block-size);
|
|
7407
|
+
min-block-size: var(--block-size);
|
|
7408
|
+
}
|
|
7409
|
+
.Layer__ComboBoxContainer > .Layer__ComboBoxControl--focused {
|
|
7410
|
+
/*
|
|
7411
|
+
* This seems like the only workaround when the "unstyled" variant
|
|
7412
|
+
* includes a (malicious) `outline: 0 !important`.
|
|
7413
|
+
*
|
|
7414
|
+
* @see {https://github.com/JedWatson/react-select/blob/2a913698ad3d7759fb8e6bc5dd8a7d839227da2f/packages/react-select/src/components/Control.tsx#L49}
|
|
7415
|
+
*/
|
|
7416
|
+
outline: 2px solid var(--outline-default) !important;
|
|
7417
|
+
}
|
|
7418
|
+
|
|
7419
|
+
.Layer__ComboBoxValueContainer {
|
|
7420
|
+
padding-inline-start: var(--spacing-xs);
|
|
7421
|
+
cursor: text;
|
|
7422
|
+
font-size: var(--input-font-size);
|
|
7423
|
+
}
|
|
7424
|
+
|
|
7425
|
+
.Layer__ComboBoxIndicatorsContainer {
|
|
7426
|
+
padding-inline-end: var(--spacing-3xs);
|
|
7427
|
+
}
|
|
7428
|
+
.Layer__ComboBoxIndicatorsContainer--readonly {
|
|
7429
|
+
visibility: hidden;
|
|
7430
|
+
}
|
|
7431
|
+
|
|
7432
|
+
.Layer__ComboBoxClearIndicator {
|
|
7433
|
+
display: flex;
|
|
7434
|
+
align-items: center;
|
|
7435
|
+
justify-content: center;
|
|
7436
|
+
--size: 1.25rem;
|
|
7437
|
+
block-size: var(--size);
|
|
7438
|
+
inline-size: var(--size);
|
|
7439
|
+
cursor: pointer;
|
|
7440
|
+
}
|
|
7441
|
+
|
|
7442
|
+
.Layer__ComboBoxLoadingIndicator {
|
|
7443
|
+
display: flex;
|
|
7444
|
+
align-items: center;
|
|
7445
|
+
justify-content: center;
|
|
7446
|
+
--size: 1.25rem;
|
|
7447
|
+
block-size: var(--size);
|
|
7448
|
+
inline-size: var(--size);
|
|
7449
|
+
cursor: default;
|
|
7450
|
+
}
|
|
7451
|
+
|
|
7452
|
+
.Layer__ComboBoxDropdownIndicator {
|
|
7453
|
+
display: flex;
|
|
7454
|
+
align-items: center;
|
|
7455
|
+
justify-content: center;
|
|
7456
|
+
block-size: var(--size);
|
|
7457
|
+
inline-size: var(--size);
|
|
7458
|
+
cursor: pointer;
|
|
7459
|
+
color: var(--color-base-600);
|
|
7460
|
+
--size: 1.25rem;
|
|
7461
|
+
}
|
|
7462
|
+
|
|
7463
|
+
.Layer__ComboBoxMenu {
|
|
7464
|
+
overflow: hidden;
|
|
7465
|
+
border-radius: var(--border-radius-xs);
|
|
7466
|
+
border: 1px solid var(--border-color);
|
|
7467
|
+
margin-block-start: var(--spacing-2xs);
|
|
7468
|
+
background-color: var(--color-base-0);
|
|
7469
|
+
}
|
|
7470
|
+
|
|
7471
|
+
.Layer__ComboBoxMenuList {
|
|
7472
|
+
overflow-y: auto;
|
|
7473
|
+
}
|
|
7474
|
+
.Layer__ComboBoxMenuList .Layer__ComboBoxOption {
|
|
7475
|
+
/*
|
|
7476
|
+
* This is intentionally done indirectly to increase specificity.
|
|
7477
|
+
*
|
|
7478
|
+
* `react-select` explicitly sets 'block'
|
|
7479
|
+
*/
|
|
7480
|
+
display: grid;
|
|
7481
|
+
/*
|
|
7482
|
+
* This is intentionally done indirectly to increase specificity.
|
|
7483
|
+
*
|
|
7484
|
+
* `react-select` explicitly sets 'default'
|
|
7485
|
+
*/
|
|
7486
|
+
cursor: pointer;
|
|
7487
|
+
}
|
|
7488
|
+
.Layer__ComboBoxMenuList .Layer__ComboBoxOption--disabled {
|
|
7489
|
+
cursor: not-allowed;
|
|
7490
|
+
}
|
|
7491
|
+
.Layer__ComboBoxMenuList .Layer__ComboBoxOption--hidden {
|
|
7492
|
+
display: none;
|
|
7493
|
+
}
|
|
7494
|
+
|
|
7495
|
+
.Layer__ComboBoxGroup {
|
|
7496
|
+
padding-block: var(--spacing-xs);
|
|
7497
|
+
}
|
|
7498
|
+
.Layer__ComboBoxGroup > .Layer__ComboBoxGroupHeading {
|
|
7499
|
+
padding-block-start: var(--spacing-3xs);
|
|
7500
|
+
padding-block-end: var(--spacing-xs);
|
|
7501
|
+
padding-inline: var(--spacing-sm);
|
|
7502
|
+
}
|
|
7503
|
+
.Layer__ComboBoxGroup > div > .Layer__ComboBoxOption {
|
|
7504
|
+
padding-inline: var(--spacing-sm);
|
|
7505
|
+
}
|
|
7506
|
+
|
|
7507
|
+
.Layer__ComboBoxOption {
|
|
7508
|
+
padding-block: var(--spacing-xs);
|
|
7509
|
+
padding-inline: var(--spacing-3xs);
|
|
7510
|
+
border: 2px solid transparent;
|
|
7511
|
+
}
|
|
7512
|
+
.Layer__ComboBoxOption--focused {
|
|
7513
|
+
background-color: var(--color-base-100);
|
|
7514
|
+
}
|
|
7515
|
+
.Layer__ComboBoxOption .Layer__ComboBoxOptionCheckIcon {
|
|
7516
|
+
visibility: hidden;
|
|
7517
|
+
}
|
|
7518
|
+
.Layer__ComboBoxOption--selected {
|
|
7519
|
+
background-color: var(--color-base-100);
|
|
7520
|
+
}
|
|
7521
|
+
.Layer__ComboBoxOption--selected .Layer__ComboBoxOptionCheckIcon {
|
|
7522
|
+
visibility: visible;
|
|
7523
|
+
}
|
|
7524
|
+
.Layer__ComboBoxOption--disabled {
|
|
7525
|
+
color: var(--color-base-500);
|
|
7526
|
+
}
|
|
7527
|
+
|
|
7528
|
+
.Layer__ComboBoxNoOptionsMessage {
|
|
7529
|
+
padding-block: var(--spacing-sm);
|
|
7530
|
+
}.Layer__MoneySpan[data-positive]::before {
|
|
7531
|
+
content: "$";
|
|
7532
|
+
}
|
|
7533
|
+
.Layer__MoneySpan[data-negative]::before {
|
|
7534
|
+
content: "-$";
|
|
7535
|
+
}
|
|
7536
|
+
.Layer__MoneySpan[data-display-plus-sign]::before {
|
|
7537
|
+
content: "+$";
|
|
7538
|
+
}.Layer__datetime {
|
|
7539
|
+
display: inline-flex;
|
|
7540
|
+
gap: var(--spacing-md);
|
|
7541
|
+
align-items: center;
|
|
7542
|
+
}.Layer__BankTransactionCategoryComboBox__LoadingSuggestionsOption {
|
|
7543
|
+
color: var(--color-base-900);
|
|
7544
|
+
}
|
|
7545
|
+
|
|
7546
|
+
.Layer__BankTransactionCategoryComboBox__CustomGroupHeading {
|
|
7547
|
+
/* style the parent .Layer__ComboBoxGroupHeading of this element */
|
|
7548
|
+
}
|
|
7549
|
+
:is(.Layer__ComboBoxGroupHeading:has(.Layer__BankTransactionCategoryComboBox__CustomGroupHeading)) {
|
|
7550
|
+
border-bottom: 1px solid var(--border-color);
|
|
7551
|
+
margin-block-end: var(--spacing-3xs);
|
|
7599
7552
|
}.Layer__actionable-list {
|
|
7600
7553
|
padding: 0;
|
|
7601
7554
|
margin: 0;
|
|
@@ -8356,6 +8309,9 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
8356
8309
|
|
|
8357
8310
|
.Layer__MonthPicker__InputGroup {
|
|
8358
8311
|
inline-size: 12rem;
|
|
8312
|
+
}
|
|
8313
|
+
.Layer__MonthPicker__InputGroup--mobile {
|
|
8314
|
+
inline-size: 12ch;
|
|
8359
8315
|
}.Layer__NewToggle {
|
|
8360
8316
|
box-sizing: border-box;
|
|
8361
8317
|
position: relative;
|
|
@@ -8708,7 +8664,8 @@ header.Layer__profit-and-loss-detailed-charts__header--tablet {
|
|
|
8708
8664
|
|
|
8709
8665
|
@container (max-width: 760px) {
|
|
8710
8666
|
.Layer__ExpandedBankTransactionRow__Description {
|
|
8711
|
-
width:
|
|
8667
|
+
width: 100%;
|
|
8668
|
+
padding-inline-end: var(--spacing-md);
|
|
8712
8669
|
}
|
|
8713
8670
|
}.Layer__bank-transaction-row__category-hstack {
|
|
8714
8671
|
max-width: 100%;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@layerfi/components",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.116-alpha.1",
|
|
4
4
|
"description": "Layer React Components",
|
|
5
5
|
"main": "dist/cjs/index.cjs",
|
|
6
6
|
"module": "dist/esm/index.mjs",
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
"dev": "vite build --config vite/vite.config.ts --mode esm --watch",
|
|
26
26
|
"prepack": "npm run typecheck && npm run build:clean",
|
|
27
27
|
"lint": "eslint . && stylelint '**/*.{css,scss}'",
|
|
28
|
+
"lint:fix": "eslint . --fix && stylelint '**/*.{css,scss}' --fix",
|
|
28
29
|
"lint:eslint": "eslint .",
|
|
29
30
|
"lint:stylelint": "stylelint '**/*.{css,scss}'",
|
|
30
31
|
"clear:react": "rm -rf ./node_modules/react && rm -rf ./node_modules/react-dom",
|