@layerfi/components 0.1.29 → 0.1.30
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 +116 -21
- package/dist/esm/index.js +10617 -10513
- package/dist/esm/index.js.map +4 -4
- package/dist/index.d.ts +281 -74
- package/dist/index.js +10816 -10713
- package/dist/index.js.map +4 -4
- package/dist/styles/index.css +147 -177
- package/dist/styles/index.css.map +3 -3
- package/package.json +1 -1
- package/.idea/layer-react.iml +0 -9
- package/.idea/misc.xml +0 -6
- package/.idea/modules.xml +0 -8
- package/.idea/vcs.xml +0 -6
package/dist/styles/index.css
CHANGED
|
@@ -1500,9 +1500,6 @@
|
|
|
1500
1500
|
width: calc(100% + 60px);
|
|
1501
1501
|
margin-left: -30px;
|
|
1502
1502
|
}
|
|
1503
|
-
.Layer__category-menu {
|
|
1504
|
-
width: 17rem;
|
|
1505
|
-
}
|
|
1506
1503
|
.Layer__category-menu.Layer__category-menu--full {
|
|
1507
1504
|
width: 100%;
|
|
1508
1505
|
max-width: 100%;
|
|
@@ -1829,6 +1826,12 @@
|
|
|
1829
1826
|
transform: scaleX(0.98);
|
|
1830
1827
|
opacity: 0;
|
|
1831
1828
|
}
|
|
1829
|
+
.Layer__table__empty-row {
|
|
1830
|
+
background: var(--color-base-100);
|
|
1831
|
+
height: var(--spacing-2xs);
|
|
1832
|
+
border-top: 1px solid var(--color-base-200);
|
|
1833
|
+
border-bottom: 1px solid var(--color-base-200);
|
|
1834
|
+
}
|
|
1832
1835
|
.Layer__tabs {
|
|
1833
1836
|
display: flex;
|
|
1834
1837
|
width: max-content;
|
|
@@ -2102,6 +2105,41 @@
|
|
|
2102
2105
|
align-self: flex-start;
|
|
2103
2106
|
}
|
|
2104
2107
|
}
|
|
2108
|
+
.Layer__panel_view-main {
|
|
2109
|
+
display: flex;
|
|
2110
|
+
flex-direction: column;
|
|
2111
|
+
gap: var(--spacing-md);
|
|
2112
|
+
container-type: inline-size;
|
|
2113
|
+
}
|
|
2114
|
+
.Layer__panel_view-header {
|
|
2115
|
+
display: flex;
|
|
2116
|
+
width: 100%;
|
|
2117
|
+
border-bottom: 1px solid var(--color-base-200);
|
|
2118
|
+
container-type: inline-size;
|
|
2119
|
+
}
|
|
2120
|
+
.Layer__panel_view-header__content {
|
|
2121
|
+
padding: var(--spacing-lg);
|
|
2122
|
+
display: flex;
|
|
2123
|
+
align-items: center;
|
|
2124
|
+
justify-content: space-between;
|
|
2125
|
+
width: 100%;
|
|
2126
|
+
max-width: 1406px;
|
|
2127
|
+
}
|
|
2128
|
+
.Layer__panel_view-header__controls {
|
|
2129
|
+
display: flex;
|
|
2130
|
+
align-items: center;
|
|
2131
|
+
gap: var(--spacing-sm);
|
|
2132
|
+
}
|
|
2133
|
+
@container (max-width: 760px) {
|
|
2134
|
+
.Layer__panel_view-header__content {
|
|
2135
|
+
flex-direction: column;
|
|
2136
|
+
align-items: flex-start;
|
|
2137
|
+
gap: var(--spacing-sm);
|
|
2138
|
+
}
|
|
2139
|
+
.Layer__panel_view-header__content .Layer__heading {
|
|
2140
|
+
align-self: flex-start;
|
|
2141
|
+
}
|
|
2142
|
+
}
|
|
2105
2143
|
.Layer__ledger-account__index {
|
|
2106
2144
|
background-color: var(--color-base-0);
|
|
2107
2145
|
width: 100%;
|
|
@@ -2266,221 +2304,153 @@
|
|
|
2266
2304
|
background-color: var(--background-color);
|
|
2267
2305
|
}
|
|
2268
2306
|
.Layer__balance-sheet * {
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
display: grid;
|
|
2277
|
-
grid-template-columns: 1fr auto;
|
|
2278
|
-
gap: 1px 0;
|
|
2279
|
-
font-size: 1rem;
|
|
2307
|
+
font-family: var(--font-family);
|
|
2308
|
+
font-feature-settings:
|
|
2309
|
+
"cv10" on,
|
|
2310
|
+
"cv01" on,
|
|
2311
|
+
"cv05" on,
|
|
2312
|
+
"cv08" on,
|
|
2313
|
+
"ss03" on;
|
|
2280
2314
|
}
|
|
2281
|
-
.Layer__balance-
|
|
2282
|
-
display:
|
|
2283
|
-
flex: 1;
|
|
2284
|
-
flex-direction: row;
|
|
2285
|
-
padding: 0 1rem;
|
|
2315
|
+
.Layer__balance-sheet tbody .Layer__table__empty-row:first-child {
|
|
2316
|
+
display: none;
|
|
2286
2317
|
}
|
|
2287
|
-
.Layer__balance-sheet__title {
|
|
2318
|
+
.Layer__balance-sheet .Layer__balance-sheet__title {
|
|
2288
2319
|
display: inline;
|
|
2289
2320
|
flex: 1;
|
|
2290
|
-
font-size:
|
|
2291
|
-
|
|
2292
|
-
margin-bottom: 1.5rem;
|
|
2293
|
-
margin-left: 1.5rem;
|
|
2294
|
-
margin-right: 1.5rem;
|
|
2321
|
+
font-size: var(--text-heading);
|
|
2322
|
+
margin: 0;
|
|
2295
2323
|
}
|
|
2296
|
-
|
|
2297
|
-
|
|
2324
|
+
@container (max-width: 800px) {
|
|
2325
|
+
.Layer__balance-sheet .Layer__balance-sheet__header {
|
|
2326
|
+
flex-direction: column;
|
|
2327
|
+
gap: var(--spacing-sm);
|
|
2328
|
+
}
|
|
2298
2329
|
}
|
|
2299
|
-
|
|
2300
|
-
|
|
2330
|
+
@container (max-width: 540px) {
|
|
2331
|
+
.Layer__balance-sheet .Layer__balance-sheet__header {
|
|
2332
|
+
flex-direction: row;
|
|
2333
|
+
gap: var(--spacing-sm);
|
|
2334
|
+
flex-wrap: wrap;
|
|
2335
|
+
}
|
|
2336
|
+
.Layer__balance-sheet .Layer__balance-sheet__header .Layer__balance-sheet__actions {
|
|
2337
|
+
flex-wrap: wrap;
|
|
2338
|
+
}
|
|
2339
|
+
.Layer__balance-sheet .Layer__balance-sheet__header .Layer__balance-sheet__actions__date-picker {
|
|
2340
|
+
flex-wrap: wrap;
|
|
2341
|
+
gap: var(--spacing-xs);
|
|
2342
|
+
}
|
|
2301
2343
|
}
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2344
|
+
@container (min-width: 1400px) {
|
|
2345
|
+
.Layer__balance-sheet .Layer__table tr td:first-child .Layer__table-cell-content,
|
|
2346
|
+
.Layer__balance-sheet .Layer__table tr td:last-child .Layer__table-cell-content,
|
|
2347
|
+
.Layer__balance-sheet .Layer__table tr th:first-child.Layer__table-header,
|
|
2348
|
+
.Layer__balance-sheet .Layer__table tr th:last-child.Layer__table-header {
|
|
2349
|
+
padding-left: 0;
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
.Layer__balance-sheet__header {
|
|
2309
2353
|
display: flex;
|
|
2354
|
+
flex: 1;
|
|
2310
2355
|
flex-direction: row;
|
|
2311
|
-
|
|
2312
|
-
align-items: center;
|
|
2313
|
-
}
|
|
2314
|
-
.Layer__balance-sheet__download-button:active {
|
|
2315
|
-
background-color: var(--active);
|
|
2356
|
+
padding: var(--spacing-sm) var(--spacing-md);
|
|
2316
2357
|
}
|
|
2317
|
-
.Layer__balance-
|
|
2318
|
-
|
|
2358
|
+
.Layer__balance-sheet__header.Layer__balance-sheet__header--no-title .Layer__balance-sheet__actions {
|
|
2359
|
+
flex: 1;
|
|
2319
2360
|
}
|
|
2320
|
-
.Layer__balance-
|
|
2321
|
-
align-items: center;
|
|
2322
|
-
justify-content: center;
|
|
2361
|
+
.Layer__balance-sheet__header .Layer__balance-sheet__actions {
|
|
2323
2362
|
display: flex;
|
|
2363
|
+
flex-direction: row;
|
|
2364
|
+
justify-content: space-between;
|
|
2365
|
+
gap: var(--spacing-xs);
|
|
2324
2366
|
}
|
|
2325
|
-
.Layer__balance-
|
|
2326
|
-
position: relative;
|
|
2327
|
-
border: 2px solid var(--border-color);
|
|
2328
|
-
background-color: var(--background-color);
|
|
2329
|
-
padding: 0.5rem;
|
|
2330
|
-
border-radius: var(--corner-radius);
|
|
2367
|
+
.Layer__balance-sheet__header .Layer__balance-sheet__actions .Layer__balance-sheet__actions__date-picker {
|
|
2331
2368
|
display: flex;
|
|
2332
2369
|
flex-direction: row;
|
|
2333
|
-
|
|
2334
|
-
align-items: center;
|
|
2335
|
-
}
|
|
2336
|
-
.Layer__balance-sheet-date-picker button:active {
|
|
2337
|
-
background-color: var(--active);
|
|
2338
|
-
}
|
|
2339
|
-
.Layer__balance-sheet-date-picker button svg {
|
|
2340
|
-
margin-right: 0.5rem;
|
|
2370
|
+
gap: var(--spacing-xs);
|
|
2341
2371
|
}
|
|
2342
|
-
.Layer__balance-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
bottom: 0;
|
|
2346
|
-
left: 0;
|
|
2347
|
-
width: 1px;
|
|
2348
|
-
height: 100%;
|
|
2349
|
-
opacity: 0;
|
|
2372
|
+
.Layer__balance-sheet__table {
|
|
2373
|
+
width: 100%;
|
|
2374
|
+
border-collapse: collapse;
|
|
2350
2375
|
}
|
|
2351
|
-
.Layer__balance-sheet-row {
|
|
2352
|
-
padding: 1em;
|
|
2353
|
-
background-color: var(--background-color);
|
|
2376
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row {
|
|
2354
2377
|
font-size: 1em;
|
|
2378
|
+
height: 52px;
|
|
2355
2379
|
}
|
|
2356
|
-
.Layer__balance-sheet-row
|
|
2357
|
-
min-height: 0;
|
|
2358
|
-
}
|
|
2359
|
-
.Layer__balance-sheet-row__children {
|
|
2360
|
-
display: grid;
|
|
2361
|
-
grid-column: span 2;
|
|
2362
|
-
grid-template-columns: subgrid;
|
|
2363
|
-
grid-template-rows: 0fr;
|
|
2364
|
-
overflow: hidden;
|
|
2365
|
-
transition: grid-template-rows var(--transition-speed);
|
|
2366
|
-
}
|
|
2367
|
-
.Layer__balance-sheet-row__children--expanded {
|
|
2368
|
-
grid-template-rows: 1fr;
|
|
2369
|
-
}
|
|
2370
|
-
.Layer__balance-sheet-row__children--content {
|
|
2371
|
-
min-height: 0;
|
|
2372
|
-
display: grid;
|
|
2373
|
-
grid-column: span 2;
|
|
2374
|
-
grid-template-columns: subgrid;
|
|
2375
|
-
}
|
|
2376
|
-
.Layer__balance-sheet-row__label {
|
|
2377
|
-
display: flex;
|
|
2378
|
-
justify-content: flex-start;
|
|
2379
|
-
align-items: center;
|
|
2380
|
-
}
|
|
2381
|
-
.Layer__balance-sheet-row__label svg {
|
|
2382
|
-
stroke: var(--text-color);
|
|
2383
|
-
width: 1.25rem;
|
|
2384
|
-
height: 1.25rem;
|
|
2385
|
-
margin-right: 0.25rem;
|
|
2386
|
-
transition: transform var(--transition-speed);
|
|
2387
|
-
transform: rotate(-90deg);
|
|
2388
|
-
}
|
|
2389
|
-
.Layer__balance-sheet-row__label--expanded svg {
|
|
2390
|
-
transform: rotate(0deg);
|
|
2391
|
-
}
|
|
2392
|
-
.Layer__balance-sheet-row__value {
|
|
2393
|
-
display: flex;
|
|
2380
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row .Layer__balance-sheet-cell__value .Layer__table-cell-content {
|
|
2394
2381
|
justify-content: flex-end;
|
|
2395
|
-
align-items: center;
|
|
2396
|
-
}
|
|
2397
|
-
.Layer__balance-sheet-row__value svg {
|
|
2398
|
-
stroke: var(--text-color);
|
|
2399
|
-
width: 1.25rem;
|
|
2400
|
-
height: 1.25rem;
|
|
2401
|
-
margin-right: 0.25rem;
|
|
2402
|
-
}
|
|
2403
|
-
.Layer__balance-sheet-row__value--amount-positive::before {
|
|
2404
|
-
content: "$";
|
|
2405
2382
|
}
|
|
2406
|
-
.Layer__balance-sheet-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
font-weight: 700;
|
|
2383
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--depth-0 .Layer__balance-sheet-cell__label .Layer__table-cell-content {
|
|
2384
|
+
font-size: var(--text-lg);
|
|
2385
|
+
font-weight: 540;
|
|
2386
|
+
color: var(--text-color-primary);
|
|
2411
2387
|
}
|
|
2412
|
-
.Layer__balance-sheet-
|
|
2413
|
-
|
|
2388
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--depth-1:not(.Layer__balance-sheet-row--display-children-true) {
|
|
2389
|
+
background-color: var(--color-base-50);
|
|
2414
2390
|
}
|
|
2415
|
-
.Layer__balance-sheet-
|
|
2416
|
-
padding-
|
|
2417
|
-
padding-left: 2em;
|
|
2418
|
-
font-size: 0.8em;
|
|
2391
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--depth-1 .Layer__balance-sheet-cell__label {
|
|
2392
|
+
padding-left: calc(40px - var(--spacing-sm));
|
|
2419
2393
|
}
|
|
2420
|
-
.Layer__balance-sheet-
|
|
2421
|
-
font-size:
|
|
2394
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--depth-1 .Layer__table-cell-content {
|
|
2395
|
+
font-size: var(--text-md);
|
|
2396
|
+
font-variation-settings: "wght" var(--font-weight-bold);
|
|
2397
|
+
color: var(--color-base-700);
|
|
2422
2398
|
}
|
|
2423
|
-
.Layer__balance-sheet-
|
|
2424
|
-
|
|
2425
|
-
padding-left: 4em;
|
|
2426
|
-
font-size: 0.8em;
|
|
2399
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--depth-2:not(.Layer__balance-sheet-row--display-children-true) {
|
|
2400
|
+
background-color: var(--color-base-50);
|
|
2427
2401
|
}
|
|
2428
|
-
.Layer__balance-sheet-
|
|
2429
|
-
|
|
2402
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--depth-2 .Layer__balance-sheet-cell__label {
|
|
2403
|
+
padding-left: calc(80px - var(--spacing-sm));
|
|
2430
2404
|
}
|
|
2431
|
-
.Layer__balance-sheet-
|
|
2432
|
-
font-
|
|
2405
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--depth-2 .Layer__table-cell-content {
|
|
2406
|
+
font-size: var(--text-md);
|
|
2407
|
+
font-weight: 460;
|
|
2408
|
+
color: var(--text-color-secondary);
|
|
2433
2409
|
}
|
|
2434
|
-
.Layer__balance-sheet-
|
|
2410
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--display-children-true {
|
|
2435
2411
|
font-weight: bold;
|
|
2412
|
+
cursor: pointer;
|
|
2436
2413
|
}
|
|
2437
|
-
.Layer__balance-sheet-
|
|
2414
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--display-children-false {
|
|
2438
2415
|
font-weight: normal;
|
|
2439
2416
|
}
|
|
2440
|
-
.Layer__balance-sheet-
|
|
2441
|
-
|
|
2417
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--variant-summation {
|
|
2418
|
+
background: var(--color-base-100);
|
|
2442
2419
|
}
|
|
2443
|
-
.Layer__balance-sheet-
|
|
2444
|
-
font-
|
|
2420
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--variant-summation .Layer__table-cell-content {
|
|
2421
|
+
font-size: var(--text-md);
|
|
2422
|
+
font-variation-settings: "wght" var(--font-weight-bold);
|
|
2423
|
+
color: var(--text-color-primary);
|
|
2445
2424
|
}
|
|
2446
|
-
.Layer__balance-sheet-
|
|
2447
|
-
|
|
2425
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row.Layer__balance-sheet-row--expanded svg {
|
|
2426
|
+
transform: rotate(0deg);
|
|
2448
2427
|
}
|
|
2449
|
-
.Layer__balance-
|
|
2450
|
-
|
|
2428
|
+
.Layer__balance-sheet__table .Layer__table-cell--last {
|
|
2429
|
+
text-align: right;
|
|
2451
2430
|
}
|
|
2452
|
-
.Layer__balance-
|
|
2453
|
-
|
|
2431
|
+
.Layer__balance-sheet__table .Layer__table-cell__content-wrapper {
|
|
2432
|
+
display: flex;
|
|
2433
|
+
align-items: center;
|
|
2454
2434
|
}
|
|
2455
|
-
.Layer__balance-
|
|
2456
|
-
|
|
2457
|
-
|
|
2435
|
+
.Layer__balance-sheet__table .Layer__table-cell__content-wrapper .Layer__table__expand-icon {
|
|
2436
|
+
margin: 0;
|
|
2437
|
+
transition: transform var(--transition-speed);
|
|
2438
|
+
transform: rotate(-90deg);
|
|
2458
2439
|
}
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
opacity: 100%;
|
|
2462
|
-
}
|
|
2463
|
-
to {
|
|
2464
|
-
opacity: 20%;
|
|
2465
|
-
}
|
|
2440
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row {
|
|
2441
|
+
border-left: 4px solid transparent;
|
|
2466
2442
|
}
|
|
2467
|
-
.Layer__balance-sheet-
|
|
2468
|
-
|
|
2469
|
-
background-color: var(--text-skeleton-color);
|
|
2470
|
-
height: 1rem;
|
|
2471
|
-
border-radius: var(--corner-radius);
|
|
2443
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-row:not(.Layer__balance-sheet-row--display-children-true) {
|
|
2444
|
+
border-left: 4px solid var(--color-base-400);
|
|
2472
2445
|
}
|
|
2473
|
-
.Layer__balance-sheet-
|
|
2474
|
-
|
|
2475
|
-
padding-left: 1rem;
|
|
2446
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-cell__label .Layer__table-cell-content {
|
|
2447
|
+
padding-left: 0;
|
|
2476
2448
|
}
|
|
2477
|
-
.Layer__balance-sheet-
|
|
2478
|
-
|
|
2479
|
-
animation: 1s pulse ease-in-out alternate infinite;
|
|
2449
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-cell__value--positive .Layer__table-cell-content::before {
|
|
2450
|
+
content: "$";
|
|
2480
2451
|
}
|
|
2481
|
-
.Layer__balance-sheet-
|
|
2482
|
-
|
|
2483
|
-
stroke: var(--text-skeleton-color);
|
|
2452
|
+
.Layer__balance-sheet__table .Layer__balance-sheet-cell__value--negative .Layer__table-cell-content::before {
|
|
2453
|
+
content: "-$";
|
|
2484
2454
|
}
|
|
2485
2455
|
.Layer__bank-transactions {
|
|
2486
2456
|
max-width: var(--max-component-width);
|
|
@@ -2604,7 +2574,7 @@
|
|
|
2604
2574
|
flex: 1;
|
|
2605
2575
|
color: var(--text-color-primary);
|
|
2606
2576
|
white-space: nowrap;
|
|
2607
|
-
|
|
2577
|
+
padding-left: 10px;
|
|
2608
2578
|
text-overflow: ellipsis;
|
|
2609
2579
|
overflow: hidden;
|
|
2610
2580
|
display: inline-flex;
|