@layerfi/components 0.1.105 → 0.1.106-alpha

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/index.css CHANGED
@@ -288,6 +288,16 @@
288
288
  border-radius: var(--XS, 8px);
289
289
  background: var(--color-base-0);
290
290
  box-shadow: 0px 0px 0px 1px var(--color-base-300);
291
+ container-type: inline-size;
292
+ }
293
+ @container (max-width: 30rem) {
294
+ .Layer__actionable_row {
295
+ flex-direction: column;
296
+ align-items: stretch;
297
+ }
298
+ .Layer__actionable_row .Layer__actionable_row__action {
299
+ justify-content: flex-end;
300
+ }
291
301
  }
292
302
  .Layer__actionable_row__main {
293
303
  display: flex;
@@ -304,6 +314,9 @@
304
314
  justify-content: center;
305
315
  box-shadow: 0px 0px 3px 0px var(--base-transparent-4) inset;
306
316
  }
317
+ .Layer__actionable_row__action {
318
+ display: flex;
319
+ }
307
320
  .Layer__actionable_row__description {
308
321
  color: var(--color-base-500);
309
322
  font-size: var(--text-sm);
@@ -317,11 +330,12 @@
317
330
  }
318
331
  }
319
332
  .Layer__badge {
333
+ --size: 27px;
320
334
  box-sizing: border-box;
321
335
  display: inline-flex;
322
336
  gap: var(--spacing-3xs);
323
337
  align-items: center;
324
- height: 27px;
338
+ height: var(--size);
325
339
  padding: var(--spacing-3xs) var(--spacing-xs);
326
340
  border-radius: var(--border-radius-5xl);
327
341
  background-color: var(--badge-bg-color);
@@ -330,19 +344,21 @@
330
344
  transition: all var(--transition-speed) ease-in-out;
331
345
  }
332
346
  .Layer__badge.Layer__badge--small {
333
- height: 21px;
347
+ --size: 21px;
334
348
  padding: var(--spacing-3xs) var(--spacing-xs);
335
349
  font-size: var(--text-xs);
336
350
  line-height: 1.1;
337
351
  }
352
+ .Layer__badge.Layer__badge--icon-only {
353
+ padding: 0;
354
+ justify-content: center;
355
+ min-width: var(--size);
356
+ }
338
357
  .Layer__badge.Layer__badge--clickable {
339
358
  min-height: 21px;
340
359
  border-width: 0;
341
360
  cursor: pointer;
342
361
  }
343
- .Layer__badge .Layer__badge__icon {
344
- margin-top: 2px;
345
- }
346
362
  .Layer__badge.Layer__badge--default {
347
363
  background-color: var(--badge-bg-color);
348
364
  color: var(--badge-fg-color);
@@ -2951,11 +2967,11 @@
2951
2967
  flex-direction: column;
2952
2968
  }
2953
2969
  .Layer__details-list__actions > .Layer__details-list__close-btn {
2954
- width: 36px;
2955
- height: 36px;
2970
+ height: 2.25rem;
2971
+ width: 2.25rem;
2956
2972
  padding: 0;
2957
2973
  }
2958
- @container (max-width: 1024px) {
2974
+ @container (max-width: 64rem) {
2959
2975
  .Layer__details-list__actions > .Layer__details-list__close-btn {
2960
2976
  display: none;
2961
2977
  }
@@ -2963,7 +2979,7 @@
2963
2979
  .Layer__journal__entry-details__mobile-header {
2964
2980
  display: none;
2965
2981
  }
2966
- @container (max-width: 1024px) {
2982
+ @container (max-width: 64rem) {
2967
2983
  .Layer__journal__entry-details__mobile-header {
2968
2984
  display: flex;
2969
2985
  }
@@ -2979,25 +2995,26 @@
2979
2995
  }
2980
2996
  .Layer__details-list-item {
2981
2997
  box-sizing: border-box;
2982
- padding: 0 var(--spacing-md);
2983
2998
  display: flex;
2984
2999
  align-items: center;
3000
+ height: 2.25rem;
3001
+ padding: 0 var(--spacing-md);
2985
3002
  }
2986
3003
  .Layer__details-list-item__label {
2987
3004
  box-sizing: border-box;
2988
- padding: var(--spacing-xs) var(--spacing-md);
2989
3005
  width: 140px;
2990
3006
  min-width: 140px;
2991
3007
  max-width: 140px;
2992
- color: var(--color-base-600);
2993
- font-size: 12px;
2994
- font-weight: var(--font-weight-normal);
3008
+ padding: var(--spacing-xs) var(--spacing-md);
3009
+ font-size: var(--text-sm);
2995
3010
  line-height: 140%;
3011
+ font-weight: var(--font-weight-normal);
3012
+ color: var(--color-base-600);
2996
3013
  }
2997
3014
  .Layer__details-list-item__value {
2998
3015
  box-sizing: border-box;
2999
- padding: var(--spacing-xs) var(--spacing-md);
3000
3016
  flex: 1;
3017
+ padding: var(--spacing-xs) var(--spacing-md);
3001
3018
  }
3002
3019
  .Layer__file-thumb {
3003
3020
  display: flex;
@@ -4436,7 +4453,7 @@ tbody .Layer__table__empty-row:first-child {
4436
4453
  --size: 2.25rem;
4437
4454
  }
4438
4455
  .Layer__UI__Button[data-inset] {
4439
- --size: 1.75rem;
4456
+ --size: 2rem;
4440
4457
  }
4441
4458
  .Layer__UI__Button[data-icon] {
4442
4459
  min-inline-size: var(--size);
@@ -4587,6 +4604,119 @@ tbody .Layer__table__empty-row:first-child {
4587
4604
  .Layer__Checkbox[data-labeled] {
4588
4605
  gap: var(--spacing-xs);
4589
4606
  }
4607
+ .Layer__ComboBoxContainer {
4608
+ display: grid;
4609
+ }
4610
+ .Layer__ComboBoxControl {
4611
+ display: grid;
4612
+ grid-template-columns: minmax(0, 1fr) auto;
4613
+ --block-size: 2.25rem;
4614
+ block-size: var(--block-size);
4615
+ border-radius: var(--input-border-radius);
4616
+ border: 1px solid var(--color-base-300);
4617
+ background-color: var(--color-base-0);
4618
+ }
4619
+ .Layer__ComboBoxControl--focused {
4620
+ border-color: var(--outline-active);
4621
+ }
4622
+ .Layer__ComboBoxControl--disabled {
4623
+ cursor: not-allowed;
4624
+ }
4625
+ .Layer__ComboBoxContainer > .Layer__ComboBoxControl {
4626
+ block-size: var(--block-size);
4627
+ min-block-size: var(--block-size);
4628
+ }
4629
+ .Layer__ComboBoxContainer > .Layer__ComboBoxControl--focused {
4630
+ outline: 2px solid var(--outline-default) !important;
4631
+ }
4632
+ .Layer__ComboBoxValueContainer {
4633
+ padding-inline-start: var(--spacing-xs);
4634
+ cursor: text;
4635
+ font-size: var(--input-font-size);
4636
+ }
4637
+ .Layer__ComboBoxIndicatorsContainer {
4638
+ padding-inline-end: var(--spacing-3xs);
4639
+ }
4640
+ .Layer__ComboBoxClearIndicator {
4641
+ display: flex;
4642
+ align-items: center;
4643
+ justify-content: center;
4644
+ --size: 1.75rem;
4645
+ block-size: var(--size);
4646
+ inline-size: var(--size);
4647
+ cursor: pointer;
4648
+ }
4649
+ .Layer__ComboBoxLoadingIndicator {
4650
+ display: flex;
4651
+ align-items: center;
4652
+ justify-content: center;
4653
+ --size: 1.75rem;
4654
+ block-size: var(--size);
4655
+ inline-size: var(--size);
4656
+ cursor: default;
4657
+ }
4658
+ .Layer__ComboBoxDropdownIndicator {
4659
+ display: flex;
4660
+ align-items: center;
4661
+ justify-content: center;
4662
+ block-size: var(--size);
4663
+ inline-size: var(--size);
4664
+ cursor: pointer;
4665
+ color: var(--color-base-600);
4666
+ --size: 1.75rem;
4667
+ }
4668
+ .Layer__ComboBoxMenu {
4669
+ overflow: hidden;
4670
+ border-radius: var(--border-radius-xs);
4671
+ border: 1px solid var(--border-color);
4672
+ margin-block-start: var(--spacing-2xs);
4673
+ background-color: var(--color-base-0);
4674
+ }
4675
+ .Layer__ComboBoxMenuList {
4676
+ overflow-y: auto;
4677
+ }
4678
+ .Layer__ComboBoxMenuList .Layer__ComboBoxOption {
4679
+ cursor: pointer;
4680
+ }
4681
+ .Layer__ComboBoxMenuList .Layer__ComboBoxOption--disabled {
4682
+ cursor: not-allowed;
4683
+ }
4684
+ .Layer__ComboBoxGroup {
4685
+ padding-block: var(--spacing-xs);
4686
+ }
4687
+ .Layer__ComboBoxGroup:not(:last-of-type) {
4688
+ border-bottom: 1px solid var(--border-color);
4689
+ }
4690
+ .Layer__ComboBoxGroup > .Layer__ComboBoxGroupHeading {
4691
+ padding-block: var(--spacing-3xs);
4692
+ padding-inline: var(--spacing-sm);
4693
+ }
4694
+ .Layer__ComboBoxGroup > div > .Layer__ComboBoxOption {
4695
+ padding-inline: var(--spacing-sm);
4696
+ }
4697
+ .Layer__ComboBoxOption {
4698
+ padding-block: var(--spacing-xs);
4699
+ padding-inline: var(--spacing-3xs);
4700
+ border: 2px solid transparent;
4701
+ }
4702
+ .Layer__ComboBoxOption--focused {
4703
+ background-color: var(--color-base-100);
4704
+ }
4705
+ .Layer__ComboBoxOption .Layer__ComboBoxOptionCheckIcon {
4706
+ visibility: hidden;
4707
+ }
4708
+ .Layer__ComboBoxOption--selected {
4709
+ background-color: var(--color-base-100);
4710
+ }
4711
+ .Layer__ComboBoxOption--selected .Layer__ComboBoxOptionCheckIcon {
4712
+ visibility: visible;
4713
+ }
4714
+ .Layer__ComboBoxOption--disabled {
4715
+ opacity: 0.5;
4716
+ }
4717
+ .Layer__ComboBoxNoOptionsMessage {
4718
+ padding-block: var(--spacing-sm);
4719
+ }
4590
4720
  .Layer__dropdown-menu__popover {
4591
4721
  outline: none;
4592
4722
  }
@@ -4669,17 +4799,16 @@ tbody .Layer__table__empty-row:first-child {
4669
4799
  gap: var(--spacing-3xs);
4670
4800
  align-items: center;
4671
4801
  min-block-size: 2.25rem;
4672
- border-radius: var(--input-border-radius);
4673
- border: 1px solid var(--outline-default);
4674
- background-color: var(--color-base-0);
4675
4802
  padding-inline-start: var(--spacing-xs);
4676
4803
  padding-inline-end: var(--spacing-3xs);
4804
+ border-radius: var(--input-border-radius);
4805
+ border: 1px solid var(--color-base-300);
4806
+ background-color: var(--color-base-0);
4677
4807
  }
4678
- .Layer__InputGroup[data-focus-within] {
4679
- border-color: var(--outline-active);
4680
- }
4808
+ .Layer__InputGroup[data-focus-within],
4681
4809
  .Layer__InputGroup[data-focus-visible] {
4682
- outline: 1px solid var(--outline-default);
4810
+ border-color: var(--color-base-800);
4811
+ outline: 2px solid var(--outline-default);
4683
4812
  }
4684
4813
  .Layer__InputGroup[data-action-count="2"] {
4685
4814
  grid-template-columns: minmax(0, 1fr) auto auto;
@@ -4890,6 +5019,9 @@ tbody .Layer__table__empty-row:first-child {
4890
5019
  .Layer__Stack[data-align=end] {
4891
5020
  align-items: end;
4892
5021
  }
5022
+ .Layer__Stack[data-align=baseline] {
5023
+ align-items: baseline;
5024
+ }
4893
5025
  .Layer__Stack[data-justify=start] {
4894
5026
  justify-content: start;
4895
5027
  }
@@ -5164,10 +5296,58 @@ tbody .Layer__table__empty-row:first-child {
5164
5296
  aspect-ratio: 1/1;
5165
5297
  }
5166
5298
  .Layer__Square[data-inset] {
5167
- --min-size: 1.75rem;
5299
+ --min-size: 2rem;
5168
5300
  min-block-size: var(--min-size);
5169
5301
  min-inline-size: var(--min-size);
5170
5302
  }
5303
+ .Layer__UI__Table-Table {
5304
+ border-collapse: collapse;
5305
+ }
5306
+ .Layer__UI__Table-TableHeader {
5307
+ height: 3.25rem;
5308
+ }
5309
+ .Layer__UI__Table-TableHeader:not(:last-child) .Layer__UI__Table-Column {
5310
+ border-bottom: 1px solid var(--color-base-300);
5311
+ }
5312
+ .Layer__UI__Table-Row {
5313
+ height: 3.25rem;
5314
+ }
5315
+ .Layer__UI__Table-Row:not(:last-child) .Layer__UI__Table-Cell {
5316
+ border-bottom: 1px solid var(--color-base-300);
5317
+ }
5318
+ .Layer__UI__Table-Column {
5319
+ padding: var(--spacing-xs) var(--spacing-sm);
5320
+ font-size: var(--text-sm);
5321
+ font-weight: var(--font-weight-normal);
5322
+ color: var(--color-base-600);
5323
+ }
5324
+ .Layer__UI__Table-Column:first-child {
5325
+ padding-left: var(--spacing-md);
5326
+ }
5327
+ .Layer__UI__Table-Column:last-child {
5328
+ padding-right: var(--spacing-md);
5329
+ }
5330
+ .Layer__UI__Table-Column[data-text-align=left] {
5331
+ text-align: left;
5332
+ }
5333
+ .Layer__UI__Table-Column[data-text-align=center] {
5334
+ text-align: center;
5335
+ }
5336
+ .Layer__UI__Table-Column[data-text-align=right] {
5337
+ text-align: right;
5338
+ }
5339
+ .Layer__UI__Table-Cell {
5340
+ padding: var(--spacing-xs) var(--spacing-sm);
5341
+ font-size: var(--text-md);
5342
+ font-weight: var(--font-weight-normal);
5343
+ color: var(--color-base-800);
5344
+ }
5345
+ .Layer__UI__Table-Cell:first-child {
5346
+ padding-left: var(--spacing-md);
5347
+ }
5348
+ .Layer__UI__Table-Cell:last-child {
5349
+ padding-right: var(--spacing-md);
5350
+ }
5171
5351
  .Layer__TagGroup {
5172
5352
  display: grid;
5173
5353
  }
@@ -5188,11 +5368,12 @@ tbody .Layer__table__empty-row:first-child {
5188
5368
  align-items: center;
5189
5369
  block-size: 2.25rem;
5190
5370
  min-inline-size: 0;
5191
- padding-inline: var(--spacing-xs);
5371
+ padding-inline-start: var(--spacing-xs);
5372
+ padding-inline-end: var(--spacing-3xs);
5192
5373
  border-radius: var(--border-radius-2xs);
5193
- border: 1px solid var(--outline-default);
5374
+ border: 1px solid var(--color-base-300);
5194
5375
  background-color: var(--color-base-100);
5195
- color: var(--color-base-700);
5376
+ color: var(--color-base-800);
5196
5377
  }
5197
5378
  .Layer__Tag[slot=dimension] {
5198
5379
  grid-area: dimension;
@@ -5204,8 +5385,8 @@ tbody .Layer__table__empty-row:first-child {
5204
5385
  grid-area: remove;
5205
5386
  }
5206
5387
  .Layer__Tag[data-focus-visible] {
5207
- border-color: var(--outline-active);
5208
- outline: 1px solid var(--outline-default);
5388
+ border-color: var(--color-base-800);
5389
+ outline: 2px solid var(--outline-default);
5209
5390
  }
5210
5391
  .Layer__UI__Heading {
5211
5392
  max-inline-size: 60rem;
@@ -5348,14 +5529,20 @@ tbody .Layer__table__empty-row:first-child {
5348
5529
  margin: 0;
5349
5530
  font-size: var(--text-md);
5350
5531
  font-family: var(--font-family);
5351
- color: var(--color-base-700);
5532
+ color: var(--color-base-900);
5352
5533
  text-wrap: pretty;
5353
5534
  }
5535
+ .Layer__Header[data-variant=placeholder],
5536
+ .Layer__Label[data-variant=placeholder],
5537
+ .Layer__P[data-variant=placeholder],
5538
+ .Layer__Span[data-variant=placeholder] {
5539
+ color: var(--color-base-500);
5540
+ }
5354
5541
  .Layer__Header[data-variant=subtle],
5355
5542
  .Layer__Label[data-variant=subtle],
5356
5543
  .Layer__P[data-variant=subtle],
5357
5544
  .Layer__Span[data-variant=subtle] {
5358
- color: var(--fg-subtle);
5545
+ color: var(--color-base-600);
5359
5546
  }
5360
5547
  .Layer__Header[data-status=error],
5361
5548
  .Layer__Label[data-status=error],
@@ -6432,6 +6619,45 @@ tbody .Layer__table__empty-row:first-child {
6432
6619
  font-size: var(--text-md);
6433
6620
  }
6434
6621
  }
6622
+ .Layer__UI__Table__InvoicesTable {
6623
+ table-layout: fixed;
6624
+ }
6625
+ .Layer__UI__Table__InvoicesTable .Layer__UI__Table-Column__InvoicesTable--SentAt {
6626
+ width: 15%;
6627
+ min-width: 6.25rem;
6628
+ }
6629
+ .Layer__UI__Table__InvoicesTable .Layer__UI__Table-Column__InvoicesTable--InvoiceNo {
6630
+ width: 10%;
6631
+ min-width: 4rem;
6632
+ }
6633
+ .Layer__UI__Table__InvoicesTable .Layer__UI__Table-Column__InvoicesTable--Customer {
6634
+ width: 35%;
6635
+ min-width: 10rem;
6636
+ }
6637
+ .Layer__UI__Table__InvoicesTable .Layer__UI__Table-Column__InvoicesTable--Total {
6638
+ width: 15%;
6639
+ min-width: 6rem;
6640
+ border-right: 1px solid var(--color-base-300);
6641
+ text-align: end;
6642
+ }
6643
+ .Layer__UI__Table__InvoicesTable .Layer__UI__Table-Column__InvoicesTable--Status {
6644
+ width: 25%;
6645
+ min-width: 8.25rem;
6646
+ }
6647
+ .Layer__UI__Table__InvoicesTable .Layer__UI__Table-Cell__InvoicesTable--Total {
6648
+ border-right: 1px solid var(--color-base-300);
6649
+ }
6650
+ .Layer__InvoicesTable__StatusFilter {
6651
+ width: 11rem;
6652
+ }
6653
+ .Layer__DataTableHeader__Filters {
6654
+ height: 4.25rem;
6655
+ border-bottom: 1px solid var(--border-color);
6656
+ }
6657
+ .Layer__DataTableHeader__Header {
6658
+ height: 4.75rem;
6659
+ border-bottom: 1px solid var(--border-color);
6660
+ }
6435
6661
  .Layer__caobfb {
6436
6662
  padding-inline: var(--spacing-md);
6437
6663
  padding-block: var(--spacing-sm);
@@ -7562,9 +7788,6 @@ tbody .Layer__table__empty-row:first-child {
7562
7788
  grid-template-columns: repeat(2, minmax(0, 1fr));
7563
7789
  gap: var(--spacing-xs);
7564
7790
  }
7565
- .Layer__ListBoxItem:not([data-disabled]) .Layer__TagSelectorCheckIcon {
7566
- visibility: hidden;
7567
- }
7568
7791
  .Layer__Public,
7569
7792
  .Layer__Public::before,
7570
7793
  .Layer__Public::after,
@@ -9302,6 +9525,7 @@ tbody .Layer__table__empty-row:first-child {
9302
9525
  position: relative;
9303
9526
  display: flex;
9304
9527
  align-items: stretch;
9528
+ overflow: hidden;
9305
9529
  }
9306
9530
  .Layer__chart-of-accounts__loader-container {
9307
9531
  padding: var(--spacing-2xl);
@@ -10482,75 +10706,30 @@ tbody .Layer__table__empty-row:first-child {
10482
10706
  margin-left: 0;
10483
10707
  }
10484
10708
  .Layer__pagination-container {
10485
- position: sticky;
10486
- left: 0;
10487
- display: flex;
10488
- justify-content: flex-end;
10709
+ align-self: end;
10489
10710
  padding: var(--spacing-md);
10490
10711
  }
10491
10712
  @container (min-width: 1400px) {
10492
10713
  .Layer__pagination-container {
10493
- display: flex;
10494
- justify-content: flex-end;
10495
10714
  padding: var(--spacing-md) var(--spacing-xl);
10496
10715
  }
10497
10716
  }
10498
10717
  .Layer__pagination {
10499
10718
  display: inline-flex;
10500
- gap: 2px;
10501
- padding: var(--spacing-4xs);
10719
+ gap: var(--spacing-4xs);
10720
+ align-items: center;
10721
+ height: 2.25rem;
10502
10722
  border-radius: var(--border-radius-2xs);
10503
- box-shadow: 0 0 0 1px var(--color-base-300);
10504
- margin: 0;
10723
+ border: 1px solid var(--color-base-300);
10505
10724
  background: var(--color-base-50);
10506
10725
  list-style-type: none;
10726
+ padding-inline-start: var(--spacing-4xs);
10727
+ padding-inline-end: var(--spacing-4xs);
10507
10728
  }
10508
- .Layer__pagination .Layer__pagination-item {
10509
- box-sizing: border-box;
10510
- display: flex;
10511
- align-items: center;
10512
- justify-content: center;
10513
- height: 32px;
10514
- width: 32px;
10515
- min-width: 32px;
10516
- border-radius: var(--border-radius-3xs);
10517
- border: 1px solid transparent;
10518
- font-size: var(--text-md);
10519
- text-align: center;
10520
- color: var(--color-base-700);
10521
- }
10522
- .Layer__pagination .Layer__pagination-item.Layer__pagination-dots:hover {
10523
- box-shadow: none;
10524
- background-color: transparent;
10525
- cursor: default;
10526
- color: var(--color-base-700);
10527
- }
10528
- .Layer__pagination .Layer__pagination-item:hover {
10529
- box-shadow: 0 0 0 1px var(--color-base-300);
10530
- background-color: var(--color-base-0);
10531
- cursor: pointer;
10532
- color: var(--color-base-900);
10533
- }
10534
- .Layer__pagination .Layer__pagination-item.selected {
10729
+ .Layer__pagination .Layer__pagination__selected-item .Layer__UI__Button {
10730
+ box-shadow: inset 0 0 0 1px var(--base-transparent-6);
10535
10731
  background-color: var(--bg-brand-accent, var(--color-accent));
10536
10732
  color: var(--fg-brand-accent, var(--color-primary));
10537
- border-color: var(--base-transparent-6);
10538
- }
10539
- .Layer__pagination .Layer__pagination-item.Layer__pagination-arrow {
10540
- color: var(--color-base-700);
10541
- }
10542
- .Layer__pagination .Layer__pagination-item.Layer__pagination-arrow:hover {
10543
- color: var(--color-base-900);
10544
- }
10545
- .Layer__pagination .Layer__pagination-item.disabled {
10546
- pointer-events: none;
10547
- }
10548
- .Layer__pagination .Layer__pagination-item.disabled .Layer__pagination-arrow {
10549
- color: var(--color-base-500);
10550
- }
10551
- .Layer__pagination .Layer__pagination-item.disabled:hover {
10552
- background-color: transparent;
10553
- cursor: default;
10554
10733
  }
10555
10734
  .Layer__panel {
10556
10735
  display: flex;