@carissa-io/theme-default 0.3.8 → 0.3.10
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/DESIGN.md +87 -56
- package/README.md +2 -2
- package/dist/index.css +596 -2
- package/package.json +52 -2
- package/scss/_tokens.scss +1 -1
- package/scss/index.scss +229 -21
package/dist/index.css
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
:root {
|
|
3
3
|
--c-background: #fff;
|
|
4
4
|
--c-text: #171717;
|
|
5
|
-
--c-muted: #
|
|
5
|
+
--c-muted: #666666;
|
|
6
6
|
--c-surface: #f5f5f5;
|
|
7
7
|
--c-surface-active: #e5e5e5;
|
|
8
8
|
--c-primary: #000;
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
:root[data-mode=light] {
|
|
23
23
|
--c-background: #fff;
|
|
24
24
|
--c-text: #171717;
|
|
25
|
-
--c-muted: #
|
|
25
|
+
--c-muted: #666666;
|
|
26
26
|
--c-surface: #f5f5f5;
|
|
27
27
|
--c-surface-active: #e5e5e5;
|
|
28
28
|
--c-primary: #000;
|
|
@@ -4448,3 +4448,597 @@ ol.c-list {
|
|
|
4448
4448
|
white-space: nowrap;
|
|
4449
4449
|
border: 0;
|
|
4450
4450
|
}
|
|
4451
|
+
|
|
4452
|
+
.c-field {
|
|
4453
|
+
display: flex;
|
|
4454
|
+
flex-direction: column;
|
|
4455
|
+
gap: 0.5rem;
|
|
4456
|
+
font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
|
|
4457
|
+
font-size: 1rem;
|
|
4458
|
+
color: var(--c-text);
|
|
4459
|
+
}
|
|
4460
|
+
.c-field__label {
|
|
4461
|
+
font-size: 0.875rem;
|
|
4462
|
+
font-weight: 700;
|
|
4463
|
+
color: var(--c-text);
|
|
4464
|
+
}
|
|
4465
|
+
.c-field--required .c-field__label::after {
|
|
4466
|
+
content: " *";
|
|
4467
|
+
color: var(--c-error);
|
|
4468
|
+
}
|
|
4469
|
+
.c-field__help {
|
|
4470
|
+
margin: 0;
|
|
4471
|
+
font-size: 0.875rem;
|
|
4472
|
+
color: var(--c-muted);
|
|
4473
|
+
}
|
|
4474
|
+
.c-field__error {
|
|
4475
|
+
margin: 0;
|
|
4476
|
+
font-size: 0.875rem;
|
|
4477
|
+
color: var(--c-error);
|
|
4478
|
+
}
|
|
4479
|
+
.c-field--horizontal {
|
|
4480
|
+
display: grid;
|
|
4481
|
+
grid-template-columns: 10rem minmax(0, 1fr);
|
|
4482
|
+
column-gap: 1.5rem;
|
|
4483
|
+
align-items: start;
|
|
4484
|
+
}
|
|
4485
|
+
.c-field--horizontal > .c-field__label {
|
|
4486
|
+
grid-column: 1;
|
|
4487
|
+
grid-row: 1;
|
|
4488
|
+
}
|
|
4489
|
+
.c-field--horizontal > .c-field__control, .c-field--horizontal > .c-field__help, .c-field--horizontal > .c-field__error {
|
|
4490
|
+
grid-column: 2;
|
|
4491
|
+
}
|
|
4492
|
+
|
|
4493
|
+
.c-number-input .c-input__control {
|
|
4494
|
+
text-align: start;
|
|
4495
|
+
font-variant-numeric: tabular-nums;
|
|
4496
|
+
}
|
|
4497
|
+
.c-number-input__steppers {
|
|
4498
|
+
display: inline-flex;
|
|
4499
|
+
gap: 0.125rem;
|
|
4500
|
+
}
|
|
4501
|
+
.c-number-input__stepper {
|
|
4502
|
+
display: inline-flex;
|
|
4503
|
+
align-items: center;
|
|
4504
|
+
justify-content: center;
|
|
4505
|
+
width: 1.5rem;
|
|
4506
|
+
height: 1.5rem;
|
|
4507
|
+
padding: 0;
|
|
4508
|
+
font: inherit;
|
|
4509
|
+
font-size: 1rem;
|
|
4510
|
+
line-height: 1;
|
|
4511
|
+
color: var(--c-muted);
|
|
4512
|
+
background: transparent;
|
|
4513
|
+
border: 0;
|
|
4514
|
+
border-radius: 0;
|
|
4515
|
+
cursor: pointer;
|
|
4516
|
+
}
|
|
4517
|
+
.c-number-input__stepper:hover:not(:disabled) {
|
|
4518
|
+
color: var(--c-text);
|
|
4519
|
+
background: var(--c-surface-active);
|
|
4520
|
+
}
|
|
4521
|
+
.c-number-input__stepper:disabled {
|
|
4522
|
+
cursor: not-allowed;
|
|
4523
|
+
opacity: 0.5;
|
|
4524
|
+
}
|
|
4525
|
+
|
|
4526
|
+
.c-otp-input {
|
|
4527
|
+
display: block;
|
|
4528
|
+
font-family: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", sans-serif;
|
|
4529
|
+
color: var(--c-text);
|
|
4530
|
+
}
|
|
4531
|
+
.c-otp-input__label {
|
|
4532
|
+
display: block;
|
|
4533
|
+
margin-bottom: 0.5rem;
|
|
4534
|
+
font-size: 0.6875rem;
|
|
4535
|
+
font-weight: 700;
|
|
4536
|
+
color: var(--c-muted);
|
|
4537
|
+
}
|
|
4538
|
+
.c-otp-input__cells {
|
|
4539
|
+
display: flex;
|
|
4540
|
+
gap: 0.5rem;
|
|
4541
|
+
}
|
|
4542
|
+
.c-otp-input__cell {
|
|
4543
|
+
box-sizing: border-box;
|
|
4544
|
+
width: 3rem;
|
|
4545
|
+
height: 3.5rem;
|
|
4546
|
+
padding: 0;
|
|
4547
|
+
font: inherit;
|
|
4548
|
+
font-size: 1.25rem;
|
|
4549
|
+
color: inherit;
|
|
4550
|
+
text-align: center;
|
|
4551
|
+
background: var(--c-background);
|
|
4552
|
+
border: 1px solid var(--c-muted);
|
|
4553
|
+
border-radius: 0;
|
|
4554
|
+
outline: 0;
|
|
4555
|
+
transition: border-color 0.2s ease;
|
|
4556
|
+
}
|
|
4557
|
+
.c-otp-input__cell:hover:not(:disabled) {
|
|
4558
|
+
border-color: var(--c-primary);
|
|
4559
|
+
}
|
|
4560
|
+
.c-otp-input__cell:focus {
|
|
4561
|
+
border-color: var(--c-focus);
|
|
4562
|
+
box-shadow: 0 0 0 1px var(--c-focus);
|
|
4563
|
+
}
|
|
4564
|
+
.c-otp-input__cell:disabled {
|
|
4565
|
+
color: var(--c-disabled-text);
|
|
4566
|
+
cursor: not-allowed;
|
|
4567
|
+
background: var(--c-surface);
|
|
4568
|
+
}
|
|
4569
|
+
.c-otp-input__error {
|
|
4570
|
+
margin: 0.5rem 0 0;
|
|
4571
|
+
font-size: 0.875rem;
|
|
4572
|
+
color: var(--c-error);
|
|
4573
|
+
}
|
|
4574
|
+
.c-otp-input--invalid .c-otp-input__cell {
|
|
4575
|
+
border-color: var(--c-error);
|
|
4576
|
+
}
|
|
4577
|
+
.c-otp-input--invalid .c-otp-input__cell:focus {
|
|
4578
|
+
box-shadow: 0 0 0 1px var(--c-error);
|
|
4579
|
+
}
|
|
4580
|
+
|
|
4581
|
+
.c-phone .c-input__start {
|
|
4582
|
+
padding-inline-end: 0.5rem;
|
|
4583
|
+
border-inline-end: 1px solid var(--c-muted);
|
|
4584
|
+
}
|
|
4585
|
+
.c-phone__country {
|
|
4586
|
+
max-width: 7rem;
|
|
4587
|
+
padding: 0 0.25rem;
|
|
4588
|
+
font: inherit;
|
|
4589
|
+
color: var(--c-text);
|
|
4590
|
+
text-overflow: ellipsis;
|
|
4591
|
+
cursor: pointer;
|
|
4592
|
+
background: transparent;
|
|
4593
|
+
border: 0;
|
|
4594
|
+
outline: 0;
|
|
4595
|
+
}
|
|
4596
|
+
.c-phone__country:focus-visible {
|
|
4597
|
+
outline: 1px solid var(--c-focus);
|
|
4598
|
+
}
|
|
4599
|
+
.c-phone__country:disabled {
|
|
4600
|
+
color: var(--c-disabled-text);
|
|
4601
|
+
cursor: not-allowed;
|
|
4602
|
+
}
|
|
4603
|
+
|
|
4604
|
+
.c-tag-input__field {
|
|
4605
|
+
flex-wrap: wrap;
|
|
4606
|
+
gap: 0.375rem;
|
|
4607
|
+
cursor: text;
|
|
4608
|
+
}
|
|
4609
|
+
.c-tag-input__control {
|
|
4610
|
+
flex: 1 1 6rem;
|
|
4611
|
+
min-width: 6rem;
|
|
4612
|
+
}
|
|
4613
|
+
|
|
4614
|
+
.c-time-picker .c-input__box {
|
|
4615
|
+
position: relative;
|
|
4616
|
+
cursor: text;
|
|
4617
|
+
}
|
|
4618
|
+
.c-time-picker .c-time-picker__popover {
|
|
4619
|
+
position: static;
|
|
4620
|
+
display: flex;
|
|
4621
|
+
flex: 1 1 auto;
|
|
4622
|
+
align-items: center;
|
|
4623
|
+
min-width: 0;
|
|
4624
|
+
}
|
|
4625
|
+
.c-time-picker__input {
|
|
4626
|
+
box-sizing: border-box;
|
|
4627
|
+
width: 100%;
|
|
4628
|
+
min-height: 1.5em;
|
|
4629
|
+
padding: 0 calc(1rem + 0.5rem) 0 0;
|
|
4630
|
+
font-variant-numeric: tabular-nums;
|
|
4631
|
+
color: var(--c-text);
|
|
4632
|
+
text-overflow: ellipsis;
|
|
4633
|
+
}
|
|
4634
|
+
.c-time-picker__input::placeholder {
|
|
4635
|
+
color: var(--c-muted);
|
|
4636
|
+
}
|
|
4637
|
+
.c-time-picker__input:disabled {
|
|
4638
|
+
color: inherit;
|
|
4639
|
+
cursor: not-allowed;
|
|
4640
|
+
}
|
|
4641
|
+
.c-time-picker__icon {
|
|
4642
|
+
position: absolute;
|
|
4643
|
+
top: 50%;
|
|
4644
|
+
right: 0.75rem;
|
|
4645
|
+
display: inline-flex;
|
|
4646
|
+
width: 1rem;
|
|
4647
|
+
height: 1rem;
|
|
4648
|
+
color: var(--c-muted);
|
|
4649
|
+
pointer-events: none;
|
|
4650
|
+
translate: 0 -50%;
|
|
4651
|
+
transition: color 0.2s ease;
|
|
4652
|
+
}
|
|
4653
|
+
.c-time-picker__icon > svg {
|
|
4654
|
+
width: 100%;
|
|
4655
|
+
height: 100%;
|
|
4656
|
+
}
|
|
4657
|
+
.c-input__box:hover .c-time-picker__icon {
|
|
4658
|
+
color: var(--c-primary);
|
|
4659
|
+
}
|
|
4660
|
+
.c-time-picker--open .c-time-picker__icon {
|
|
4661
|
+
color: var(--c-primary);
|
|
4662
|
+
}
|
|
4663
|
+
.c-time-picker--open:not(.c-input--invalid) .c-input__box {
|
|
4664
|
+
border-color: var(--c-focus);
|
|
4665
|
+
}
|
|
4666
|
+
.c-time-picker.c-input--disabled .c-input__box {
|
|
4667
|
+
cursor: not-allowed;
|
|
4668
|
+
}
|
|
4669
|
+
.c-time-picker.c-input--disabled .c-time-picker__icon {
|
|
4670
|
+
color: var(--c-disabled-text);
|
|
4671
|
+
}
|
|
4672
|
+
|
|
4673
|
+
.c-date-range .c-input__box {
|
|
4674
|
+
position: relative;
|
|
4675
|
+
}
|
|
4676
|
+
.c-date-range .c-date-range__popover {
|
|
4677
|
+
position: static;
|
|
4678
|
+
display: flex;
|
|
4679
|
+
flex: 1 1 auto;
|
|
4680
|
+
align-items: center;
|
|
4681
|
+
min-width: 0;
|
|
4682
|
+
}
|
|
4683
|
+
.c-date-range__trigger {
|
|
4684
|
+
display: block;
|
|
4685
|
+
flex: 1 1 auto;
|
|
4686
|
+
box-sizing: border-box;
|
|
4687
|
+
width: 100%;
|
|
4688
|
+
min-height: 1.5em;
|
|
4689
|
+
margin: 0;
|
|
4690
|
+
padding: 0 calc(1rem + 0.5rem) 0 0;
|
|
4691
|
+
overflow: hidden;
|
|
4692
|
+
font: inherit;
|
|
4693
|
+
color: var(--c-text);
|
|
4694
|
+
text-align: left;
|
|
4695
|
+
text-overflow: ellipsis;
|
|
4696
|
+
white-space: nowrap;
|
|
4697
|
+
cursor: pointer;
|
|
4698
|
+
appearance: none;
|
|
4699
|
+
background: transparent;
|
|
4700
|
+
border: 0;
|
|
4701
|
+
border-radius: 0;
|
|
4702
|
+
outline: 0;
|
|
4703
|
+
}
|
|
4704
|
+
.c-date-range__trigger::after {
|
|
4705
|
+
position: absolute;
|
|
4706
|
+
inset: 0;
|
|
4707
|
+
content: "";
|
|
4708
|
+
}
|
|
4709
|
+
.c-date-range__trigger:disabled {
|
|
4710
|
+
color: inherit;
|
|
4711
|
+
cursor: not-allowed;
|
|
4712
|
+
}
|
|
4713
|
+
.c-date-range__placeholder {
|
|
4714
|
+
color: var(--c-muted);
|
|
4715
|
+
}
|
|
4716
|
+
.c-date-range__panel {
|
|
4717
|
+
padding: 0.5rem;
|
|
4718
|
+
}
|
|
4719
|
+
.c-date-range__months {
|
|
4720
|
+
display: flex;
|
|
4721
|
+
flex-wrap: wrap;
|
|
4722
|
+
gap: 1rem;
|
|
4723
|
+
}
|
|
4724
|
+
.c-date-range__cell--in-range {
|
|
4725
|
+
background: var(--c-surface-active);
|
|
4726
|
+
}
|
|
4727
|
+
.c-date-range__day--in-range {
|
|
4728
|
+
color: var(--c-text);
|
|
4729
|
+
background: var(--c-surface-active);
|
|
4730
|
+
border-radius: 0;
|
|
4731
|
+
}
|
|
4732
|
+
.c-date-range__day--in-range:hover:not(:disabled) {
|
|
4733
|
+
color: var(--c-text);
|
|
4734
|
+
background: var(--c-surface-active);
|
|
4735
|
+
}
|
|
4736
|
+
.c-date-range__icon {
|
|
4737
|
+
position: absolute;
|
|
4738
|
+
top: 50%;
|
|
4739
|
+
right: 0.75rem;
|
|
4740
|
+
display: inline-flex;
|
|
4741
|
+
width: 1rem;
|
|
4742
|
+
height: 1rem;
|
|
4743
|
+
color: var(--c-muted);
|
|
4744
|
+
pointer-events: none;
|
|
4745
|
+
translate: 0 -50%;
|
|
4746
|
+
transition: color 0.2s ease;
|
|
4747
|
+
}
|
|
4748
|
+
.c-date-range__icon > svg {
|
|
4749
|
+
width: 100%;
|
|
4750
|
+
height: 100%;
|
|
4751
|
+
}
|
|
4752
|
+
.c-input__box:hover .c-date-range__icon {
|
|
4753
|
+
color: var(--c-primary);
|
|
4754
|
+
}
|
|
4755
|
+
.c-date-range--open .c-date-range__icon {
|
|
4756
|
+
color: var(--c-primary);
|
|
4757
|
+
}
|
|
4758
|
+
.c-date-range--open:not(.c-input--invalid) .c-input__box {
|
|
4759
|
+
border-color: var(--c-focus);
|
|
4760
|
+
}
|
|
4761
|
+
.c-date-range.c-input--disabled .c-date-range__icon {
|
|
4762
|
+
color: var(--c-disabled-text);
|
|
4763
|
+
}
|
|
4764
|
+
|
|
4765
|
+
.c-rating {
|
|
4766
|
+
display: inline-flex;
|
|
4767
|
+
gap: 0.25rem;
|
|
4768
|
+
align-items: center;
|
|
4769
|
+
vertical-align: middle;
|
|
4770
|
+
}
|
|
4771
|
+
.c-rating__label {
|
|
4772
|
+
display: block;
|
|
4773
|
+
margin-bottom: 0.5rem;
|
|
4774
|
+
font-size: 0.6875rem;
|
|
4775
|
+
font-weight: 700;
|
|
4776
|
+
color: var(--c-muted);
|
|
4777
|
+
}
|
|
4778
|
+
.c-rating__star {
|
|
4779
|
+
position: relative;
|
|
4780
|
+
display: inline-flex;
|
|
4781
|
+
width: 1.75rem;
|
|
4782
|
+
height: 1.75rem;
|
|
4783
|
+
}
|
|
4784
|
+
.c-rating__icon {
|
|
4785
|
+
position: absolute;
|
|
4786
|
+
inset: 0;
|
|
4787
|
+
display: inline-flex;
|
|
4788
|
+
transition: color 0.2s ease;
|
|
4789
|
+
}
|
|
4790
|
+
.c-rating__icon > svg {
|
|
4791
|
+
width: 100%;
|
|
4792
|
+
height: 100%;
|
|
4793
|
+
}
|
|
4794
|
+
.c-rating__icon--empty {
|
|
4795
|
+
color: var(--c-muted);
|
|
4796
|
+
}
|
|
4797
|
+
.c-rating__icon--full {
|
|
4798
|
+
color: var(--c-primary);
|
|
4799
|
+
}
|
|
4800
|
+
.c-rating--hovering .c-rating__icon--full {
|
|
4801
|
+
color: var(--c-primary-hover);
|
|
4802
|
+
}
|
|
4803
|
+
.c-rating__radio {
|
|
4804
|
+
position: absolute;
|
|
4805
|
+
inset: 0;
|
|
4806
|
+
cursor: pointer;
|
|
4807
|
+
outline: 0;
|
|
4808
|
+
}
|
|
4809
|
+
.c-rating__radio--start {
|
|
4810
|
+
right: 50%;
|
|
4811
|
+
}
|
|
4812
|
+
.c-rating__radio--end {
|
|
4813
|
+
left: 50%;
|
|
4814
|
+
}
|
|
4815
|
+
.c-rating__radio:focus-visible {
|
|
4816
|
+
outline: 1px solid var(--c-focus);
|
|
4817
|
+
outline-offset: 1px;
|
|
4818
|
+
border-radius: 0;
|
|
4819
|
+
}
|
|
4820
|
+
.c-rating--disabled {
|
|
4821
|
+
opacity: 0.5;
|
|
4822
|
+
}
|
|
4823
|
+
.c-rating--disabled .c-rating__radio {
|
|
4824
|
+
cursor: not-allowed;
|
|
4825
|
+
}
|
|
4826
|
+
|
|
4827
|
+
.c-color-picker .c-input__box {
|
|
4828
|
+
position: relative;
|
|
4829
|
+
cursor: pointer;
|
|
4830
|
+
}
|
|
4831
|
+
.c-color-picker .c-color-picker__popover {
|
|
4832
|
+
position: static;
|
|
4833
|
+
display: flex;
|
|
4834
|
+
flex: 1 1 auto;
|
|
4835
|
+
align-items: center;
|
|
4836
|
+
min-width: 0;
|
|
4837
|
+
}
|
|
4838
|
+
.c-color-picker__button {
|
|
4839
|
+
display: flex;
|
|
4840
|
+
box-sizing: border-box;
|
|
4841
|
+
gap: 0.75rem;
|
|
4842
|
+
align-items: center;
|
|
4843
|
+
width: 100%;
|
|
4844
|
+
min-height: 1.5em;
|
|
4845
|
+
padding: 0;
|
|
4846
|
+
font: inherit;
|
|
4847
|
+
font-variant-numeric: tabular-nums;
|
|
4848
|
+
color: var(--c-text);
|
|
4849
|
+
text-align: start;
|
|
4850
|
+
cursor: inherit;
|
|
4851
|
+
background: transparent;
|
|
4852
|
+
border: 0;
|
|
4853
|
+
}
|
|
4854
|
+
.c-color-picker__button:disabled {
|
|
4855
|
+
color: inherit;
|
|
4856
|
+
cursor: not-allowed;
|
|
4857
|
+
}
|
|
4858
|
+
.c-color-picker__swatch-preview, .c-color-picker__preview {
|
|
4859
|
+
flex: none;
|
|
4860
|
+
box-sizing: border-box;
|
|
4861
|
+
width: 1.25rem;
|
|
4862
|
+
height: 1.25rem;
|
|
4863
|
+
border: 1px solid var(--c-muted);
|
|
4864
|
+
border-radius: 0;
|
|
4865
|
+
}
|
|
4866
|
+
.c-color-picker__chip--empty {
|
|
4867
|
+
background: repeating-conic-gradient(var(--c-surface-active) 0% 25%, var(--c-background) 0% 50%) 50%/0.5rem 0.5rem;
|
|
4868
|
+
}
|
|
4869
|
+
.c-color-picker--open:not(.c-input--invalid) .c-input__box {
|
|
4870
|
+
border-color: var(--c-focus);
|
|
4871
|
+
}
|
|
4872
|
+
.c-color-picker.c-input--disabled .c-input__box {
|
|
4873
|
+
cursor: not-allowed;
|
|
4874
|
+
}
|
|
4875
|
+
.c-color-picker__panel {
|
|
4876
|
+
display: flex;
|
|
4877
|
+
flex-direction: column;
|
|
4878
|
+
gap: 0.75rem;
|
|
4879
|
+
box-sizing: border-box;
|
|
4880
|
+
width: 15rem;
|
|
4881
|
+
max-width: 100%;
|
|
4882
|
+
padding: 0.75rem;
|
|
4883
|
+
outline: 0;
|
|
4884
|
+
}
|
|
4885
|
+
.c-color-picker__area, .c-color-picker__track {
|
|
4886
|
+
position: relative;
|
|
4887
|
+
flex: none;
|
|
4888
|
+
touch-action: none;
|
|
4889
|
+
cursor: crosshair;
|
|
4890
|
+
user-select: none;
|
|
4891
|
+
}
|
|
4892
|
+
.c-color-picker__area:focus-visible, .c-color-picker__track:focus-visible {
|
|
4893
|
+
outline: 1px solid var(--c-focus);
|
|
4894
|
+
outline-offset: 2px;
|
|
4895
|
+
}
|
|
4896
|
+
.c-color-picker__area {
|
|
4897
|
+
height: 9rem;
|
|
4898
|
+
background-image: linear-gradient(to top, #000, rgba(0, 0, 0, 0)), linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
|
|
4899
|
+
border-radius: 0;
|
|
4900
|
+
}
|
|
4901
|
+
.c-color-picker__track {
|
|
4902
|
+
height: 0.75rem;
|
|
4903
|
+
border-radius: 0;
|
|
4904
|
+
}
|
|
4905
|
+
.c-color-picker__hue {
|
|
4906
|
+
background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);
|
|
4907
|
+
}
|
|
4908
|
+
.c-color-picker__alpha {
|
|
4909
|
+
background: repeating-conic-gradient(var(--c-surface-active) 0% 25%, var(--c-background) 0% 50%) 50%/0.5rem 0.5rem;
|
|
4910
|
+
}
|
|
4911
|
+
.c-color-picker__alpha-fill {
|
|
4912
|
+
position: absolute;
|
|
4913
|
+
inset: 0;
|
|
4914
|
+
border-radius: inherit;
|
|
4915
|
+
}
|
|
4916
|
+
.c-color-picker__thumb {
|
|
4917
|
+
position: absolute;
|
|
4918
|
+
box-sizing: border-box;
|
|
4919
|
+
width: 1.25rem;
|
|
4920
|
+
height: 1.25rem;
|
|
4921
|
+
pointer-events: none;
|
|
4922
|
+
border: 2px solid var(--c-background);
|
|
4923
|
+
border-radius: 50%;
|
|
4924
|
+
box-shadow: 0 0 0 1px var(--c-text);
|
|
4925
|
+
translate: -50% -50%;
|
|
4926
|
+
}
|
|
4927
|
+
.c-color-picker__track > .c-color-picker__thumb {
|
|
4928
|
+
top: 50%;
|
|
4929
|
+
}
|
|
4930
|
+
.c-color-picker__hex {
|
|
4931
|
+
display: flex;
|
|
4932
|
+
gap: 0.5rem;
|
|
4933
|
+
align-items: center;
|
|
4934
|
+
}
|
|
4935
|
+
.c-color-picker__hex-input {
|
|
4936
|
+
flex: 1 1 auto;
|
|
4937
|
+
box-sizing: border-box;
|
|
4938
|
+
min-width: 0;
|
|
4939
|
+
padding: 0.625rem 0.75rem;
|
|
4940
|
+
font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
|
|
4941
|
+
font-size: 0.875rem;
|
|
4942
|
+
color: var(--c-text);
|
|
4943
|
+
background: var(--c-background);
|
|
4944
|
+
border: 1px solid var(--c-muted);
|
|
4945
|
+
border-radius: 0;
|
|
4946
|
+
}
|
|
4947
|
+
.c-color-picker__hex-input[aria-invalid=true] {
|
|
4948
|
+
border-color: var(--c-error);
|
|
4949
|
+
}
|
|
4950
|
+
.c-color-picker__hex-input:focus-visible {
|
|
4951
|
+
outline: 1px solid var(--c-focus);
|
|
4952
|
+
outline-offset: 2px;
|
|
4953
|
+
}
|
|
4954
|
+
.c-color-picker__swatches {
|
|
4955
|
+
display: flex;
|
|
4956
|
+
flex-wrap: wrap;
|
|
4957
|
+
gap: 0.5rem;
|
|
4958
|
+
}
|
|
4959
|
+
.c-color-picker__swatch {
|
|
4960
|
+
box-sizing: border-box;
|
|
4961
|
+
width: 1.75rem;
|
|
4962
|
+
height: 1.75rem;
|
|
4963
|
+
padding: 0;
|
|
4964
|
+
cursor: pointer;
|
|
4965
|
+
border: 1px solid var(--c-muted);
|
|
4966
|
+
border-radius: 0;
|
|
4967
|
+
}
|
|
4968
|
+
.c-color-picker__swatch[aria-pressed=true] {
|
|
4969
|
+
box-shadow: 0 0 0 2px var(--c-primary);
|
|
4970
|
+
}
|
|
4971
|
+
.c-color-picker__swatch:focus-visible {
|
|
4972
|
+
outline: 1px solid var(--c-focus);
|
|
4973
|
+
outline-offset: 2px;
|
|
4974
|
+
}
|
|
4975
|
+
|
|
4976
|
+
.c-async-autocomplete .c-input__box {
|
|
4977
|
+
position: relative;
|
|
4978
|
+
cursor: text;
|
|
4979
|
+
}
|
|
4980
|
+
.c-async-autocomplete .c-async-autocomplete__popover {
|
|
4981
|
+
position: static;
|
|
4982
|
+
display: flex;
|
|
4983
|
+
flex: 1 1 auto;
|
|
4984
|
+
align-items: center;
|
|
4985
|
+
min-width: 0;
|
|
4986
|
+
}
|
|
4987
|
+
.c-async-autocomplete__input {
|
|
4988
|
+
box-sizing: border-box;
|
|
4989
|
+
width: 100%;
|
|
4990
|
+
min-height: 1.5em;
|
|
4991
|
+
color: var(--c-text);
|
|
4992
|
+
text-overflow: ellipsis;
|
|
4993
|
+
}
|
|
4994
|
+
.c-async-autocomplete__input::placeholder {
|
|
4995
|
+
color: var(--c-muted);
|
|
4996
|
+
}
|
|
4997
|
+
.c-async-autocomplete__input:disabled {
|
|
4998
|
+
color: inherit;
|
|
4999
|
+
cursor: not-allowed;
|
|
5000
|
+
}
|
|
5001
|
+
.c-async-autocomplete--open:not(.c-input--invalid) .c-input__box {
|
|
5002
|
+
border-color: var(--c-focus);
|
|
5003
|
+
}
|
|
5004
|
+
.c-async-autocomplete.c-input--disabled .c-input__box {
|
|
5005
|
+
cursor: not-allowed;
|
|
5006
|
+
}
|
|
5007
|
+
.c-async-autocomplete--loading .c-async-autocomplete__input {
|
|
5008
|
+
padding-inline-end: calc(1rem + 0.5rem);
|
|
5009
|
+
}
|
|
5010
|
+
.c-async-autocomplete--loading .c-input__box::after {
|
|
5011
|
+
position: absolute;
|
|
5012
|
+
top: 50%;
|
|
5013
|
+
right: 0.75rem;
|
|
5014
|
+
box-sizing: border-box;
|
|
5015
|
+
width: 1rem;
|
|
5016
|
+
height: 1rem;
|
|
5017
|
+
margin-top: calc(1rem / -2);
|
|
5018
|
+
pointer-events: none;
|
|
5019
|
+
content: "";
|
|
5020
|
+
border: 2px solid var(--c-surface-active);
|
|
5021
|
+
border-top-color: var(--c-primary);
|
|
5022
|
+
border-radius: 50%;
|
|
5023
|
+
animation: c-async-autocomplete-spin 0.7s linear infinite;
|
|
5024
|
+
}
|
|
5025
|
+
.c-async-autocomplete--loading .c-listbox__empty {
|
|
5026
|
+
color: var(--c-muted);
|
|
5027
|
+
}
|
|
5028
|
+
.c-async-autocomplete--empty .c-listbox__empty {
|
|
5029
|
+
color: var(--c-muted);
|
|
5030
|
+
}
|
|
5031
|
+
.c-async-autocomplete--error .c-listbox__empty {
|
|
5032
|
+
color: var(--c-error);
|
|
5033
|
+
}
|
|
5034
|
+
|
|
5035
|
+
@keyframes c-async-autocomplete-spin {
|
|
5036
|
+
to {
|
|
5037
|
+
transform: rotate(360deg);
|
|
5038
|
+
}
|
|
5039
|
+
}
|
|
5040
|
+
@media (prefers-reduced-motion: reduce) {
|
|
5041
|
+
.c-async-autocomplete--loading .c-input__box::after {
|
|
5042
|
+
animation-duration: 2s;
|
|
5043
|
+
}
|
|
5044
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carissa-io/theme-default",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.10",
|
|
4
4
|
"description": "Carissa UI: the default theme (Swiss minimalism) as SCSS variable overrides of the Carissa components, with a compiled CSS build",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"style": "dist/index.css",
|
|
@@ -83,7 +83,17 @@
|
|
|
83
83
|
"@carissa-io/components-empty-state": "^0.1.0",
|
|
84
84
|
"@carissa-io/components-timeline": "^0.1.0",
|
|
85
85
|
"@carissa-io/components-tree": "^0.1.0",
|
|
86
|
-
"@carissa-io/components-code": "^0.1.0"
|
|
86
|
+
"@carissa-io/components-code": "^0.1.0",
|
|
87
|
+
"@carissa-io/components-field": "^0.1.0",
|
|
88
|
+
"@carissa-io/components-number-input": "^0.1.0",
|
|
89
|
+
"@carissa-io/components-otp-input": "^0.1.0",
|
|
90
|
+
"@carissa-io/components-phone": "^0.1.0",
|
|
91
|
+
"@carissa-io/components-tag-input": "^0.1.0",
|
|
92
|
+
"@carissa-io/components-time-picker": "^0.1.0",
|
|
93
|
+
"@carissa-io/components-date-range": "^0.1.0",
|
|
94
|
+
"@carissa-io/components-rating": "^0.1.0",
|
|
95
|
+
"@carissa-io/components-color-picker": "^0.1.0",
|
|
96
|
+
"@carissa-io/components-async-autocomplete": "^0.1.0"
|
|
87
97
|
},
|
|
88
98
|
"peerDependenciesMeta": {
|
|
89
99
|
"@carissa-io/components-input": {
|
|
@@ -235,11 +245,42 @@
|
|
|
235
245
|
},
|
|
236
246
|
"@carissa-io/components-code": {
|
|
237
247
|
"optional": true
|
|
248
|
+
},
|
|
249
|
+
"@carissa-io/components-field": {
|
|
250
|
+
"optional": true
|
|
251
|
+
},
|
|
252
|
+
"@carissa-io/components-number-input": {
|
|
253
|
+
"optional": true
|
|
254
|
+
},
|
|
255
|
+
"@carissa-io/components-otp-input": {
|
|
256
|
+
"optional": true
|
|
257
|
+
},
|
|
258
|
+
"@carissa-io/components-phone": {
|
|
259
|
+
"optional": true
|
|
260
|
+
},
|
|
261
|
+
"@carissa-io/components-tag-input": {
|
|
262
|
+
"optional": true
|
|
263
|
+
},
|
|
264
|
+
"@carissa-io/components-time-picker": {
|
|
265
|
+
"optional": true
|
|
266
|
+
},
|
|
267
|
+
"@carissa-io/components-date-range": {
|
|
268
|
+
"optional": true
|
|
269
|
+
},
|
|
270
|
+
"@carissa-io/components-rating": {
|
|
271
|
+
"optional": true
|
|
272
|
+
},
|
|
273
|
+
"@carissa-io/components-color-picker": {
|
|
274
|
+
"optional": true
|
|
275
|
+
},
|
|
276
|
+
"@carissa-io/components-async-autocomplete": {
|
|
277
|
+
"optional": true
|
|
238
278
|
}
|
|
239
279
|
},
|
|
240
280
|
"devDependencies": {
|
|
241
281
|
"@carissa-io/components-accordion": "^0.1.0",
|
|
242
282
|
"@carissa-io/components-alert": "^0.1.0",
|
|
283
|
+
"@carissa-io/components-async-autocomplete": "^0.1.0",
|
|
243
284
|
"@carissa-io/components-avatar": "^0.1.0",
|
|
244
285
|
"@carissa-io/components-badge": "^0.1.0",
|
|
245
286
|
"@carissa-io/components-breadcrumb": "^0.1.0",
|
|
@@ -248,12 +289,15 @@
|
|
|
248
289
|
"@carissa-io/components-card": "^0.1.0",
|
|
249
290
|
"@carissa-io/components-checkbox": "^0.1.1",
|
|
250
291
|
"@carissa-io/components-code": "^0.1.0",
|
|
292
|
+
"@carissa-io/components-color-picker": "^0.1.0",
|
|
251
293
|
"@carissa-io/components-combobox": "^0.1.1",
|
|
252
294
|
"@carissa-io/components-date-picker": "^0.1.1",
|
|
295
|
+
"@carissa-io/components-date-range": "^0.1.0",
|
|
253
296
|
"@carissa-io/components-description-list": "^0.1.0",
|
|
254
297
|
"@carissa-io/components-divider": "^0.1.0",
|
|
255
298
|
"@carissa-io/components-drawer": "^0.1.0",
|
|
256
299
|
"@carissa-io/components-empty-state": "^0.1.0",
|
|
300
|
+
"@carissa-io/components-field": "^0.1.0",
|
|
257
301
|
"@carissa-io/components-input": "^0.2.1",
|
|
258
302
|
"@carissa-io/components-link": "^0.1.0",
|
|
259
303
|
"@carissa-io/components-list": "^0.1.0",
|
|
@@ -261,11 +305,15 @@
|
|
|
261
305
|
"@carissa-io/components-menu": "^0.1.0",
|
|
262
306
|
"@carissa-io/components-modal": "^0.1.0",
|
|
263
307
|
"@carissa-io/components-navbar": "^0.1.0",
|
|
308
|
+
"@carissa-io/components-number-input": "^0.1.0",
|
|
309
|
+
"@carissa-io/components-otp-input": "^0.1.0",
|
|
264
310
|
"@carissa-io/components-pagination": "^0.1.0",
|
|
311
|
+
"@carissa-io/components-phone": "^0.1.0",
|
|
265
312
|
"@carissa-io/components-popover": "^0.1.1",
|
|
266
313
|
"@carissa-io/components-progress": "^0.1.0",
|
|
267
314
|
"@carissa-io/components-prose": "^0.1.0",
|
|
268
315
|
"@carissa-io/components-radio-group": "^0.1.1",
|
|
316
|
+
"@carissa-io/components-rating": "^0.1.0",
|
|
269
317
|
"@carissa-io/components-search": "^0.1.1",
|
|
270
318
|
"@carissa-io/components-select": "^0.1.1",
|
|
271
319
|
"@carissa-io/components-sidebar": "^0.1.0",
|
|
@@ -278,6 +326,8 @@
|
|
|
278
326
|
"@carissa-io/components-table": "^0.1.0",
|
|
279
327
|
"@carissa-io/components-tabs": "^0.1.0",
|
|
280
328
|
"@carissa-io/components-tag": "^0.1.0",
|
|
329
|
+
"@carissa-io/components-tag-input": "^0.1.0",
|
|
330
|
+
"@carissa-io/components-time-picker": "^0.1.0",
|
|
281
331
|
"@carissa-io/components-timeline": "^0.1.0",
|
|
282
332
|
"@carissa-io/components-toast": "^0.1.0",
|
|
283
333
|
"@carissa-io/components-tooltip": "^0.1.0",
|