@carissa-io/theme-default 0.3.7 → 0.3.9

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
@@ -1,3 +1,4 @@
1
+ @charset "UTF-8";
1
2
  :root {
2
3
  --c-background: #fff;
3
4
  --c-text: #171717;
@@ -3652,3 +3653,1392 @@ hr.c-divider {
3652
3653
  margin: 0.25rem 0;
3653
3654
  background: var(--c-muted);
3654
3655
  }
3656
+
3657
+ .c-table-wrapper {
3658
+ box-sizing: border-box;
3659
+ max-width: 100%;
3660
+ overflow: auto;
3661
+ }
3662
+ .c-table-wrapper:focus-visible {
3663
+ outline: 1px solid var(--c-focus);
3664
+ outline-offset: -2px;
3665
+ }
3666
+
3667
+ .c-table {
3668
+ box-sizing: border-box;
3669
+ width: 100%;
3670
+ font-size: 0.875rem;
3671
+ text-align: start;
3672
+ border-spacing: 0;
3673
+ border-collapse: separate;
3674
+ }
3675
+
3676
+ .c-table__caption {
3677
+ padding: 0.75rem 1rem;
3678
+ color: var(--c-muted);
3679
+ text-align: start;
3680
+ caption-side: top;
3681
+ }
3682
+
3683
+ .c-table__header-cell,
3684
+ .c-table__cell {
3685
+ padding: 0.75rem 1rem;
3686
+ text-align: start;
3687
+ vertical-align: middle;
3688
+ border-bottom: 1px solid var(--c-muted);
3689
+ }
3690
+
3691
+ .c-table--dense .c-table__header-cell,
3692
+ .c-table--dense .c-table__cell {
3693
+ padding: 0.375rem 0.75rem;
3694
+ }
3695
+
3696
+ .c-table__header-cell--center,
3697
+ .c-table__cell--center {
3698
+ text-align: center;
3699
+ }
3700
+
3701
+ .c-table__header-cell--end,
3702
+ .c-table__cell--end {
3703
+ text-align: end;
3704
+ }
3705
+
3706
+ .c-table__header-cell {
3707
+ font-weight: 700;
3708
+ color: var(--c-text);
3709
+ white-space: nowrap;
3710
+ background: var(--c-surface);
3711
+ }
3712
+
3713
+ .c-table--sticky-header .c-table__head .c-table__header-cell {
3714
+ position: sticky;
3715
+ top: 0;
3716
+ z-index: 1;
3717
+ background: var(--c-surface);
3718
+ }
3719
+
3720
+ .c-table__body .c-table__row:hover {
3721
+ background: var(--c-surface-active);
3722
+ }
3723
+
3724
+ .c-table--striped .c-table__body .c-table__row:nth-child(even) {
3725
+ background: var(--c-surface);
3726
+ }
3727
+
3728
+ .c-table__body .c-table__row--selected,
3729
+ .c-table--striped .c-table__body .c-table__row--selected,
3730
+ .c-table__body .c-table__row--selected:hover {
3731
+ background: color-mix(in srgb, var(--c-primary) 12%, var(--c-background));
3732
+ }
3733
+
3734
+ .c-table__foot .c-table__cell,
3735
+ .c-table__foot .c-table__header-cell {
3736
+ font-weight: 700;
3737
+ border-top: 1px solid var(--c-muted);
3738
+ }
3739
+
3740
+ .c-table__sort {
3741
+ display: inline-flex;
3742
+ gap: 0.375rem;
3743
+ align-items: center;
3744
+ padding: 0;
3745
+ font: inherit;
3746
+ font-weight: inherit;
3747
+ color: inherit;
3748
+ cursor: pointer;
3749
+ background: transparent;
3750
+ border: 0;
3751
+ }
3752
+ .c-table__sort:focus-visible {
3753
+ outline: 1px solid var(--c-focus);
3754
+ outline-offset: 2px;
3755
+ }
3756
+
3757
+ .c-table__sort-icon {
3758
+ display: inline-block;
3759
+ flex: none;
3760
+ font-size: 0.625rem;
3761
+ line-height: 1;
3762
+ opacity: 0.35;
3763
+ }
3764
+ .c-table__sort-icon::before {
3765
+ content: "↕";
3766
+ }
3767
+
3768
+ .c-table__sort-icon--ascending {
3769
+ opacity: 1;
3770
+ }
3771
+ .c-table__sort-icon--ascending::before {
3772
+ content: "▲";
3773
+ }
3774
+
3775
+ .c-table__sort-icon--descending {
3776
+ opacity: 1;
3777
+ }
3778
+ .c-table__sort-icon--descending::before {
3779
+ content: "▼";
3780
+ }
3781
+
3782
+ .c-list {
3783
+ box-sizing: border-box;
3784
+ padding: 0;
3785
+ margin: 0;
3786
+ font-size: 1rem;
3787
+ list-style: none;
3788
+ }
3789
+
3790
+ ol.c-list {
3791
+ padding-inline-start: 1.5rem;
3792
+ list-style: decimal;
3793
+ }
3794
+
3795
+ .c-list--sm {
3796
+ font-size: 0.875rem;
3797
+ }
3798
+
3799
+ .c-list--lg {
3800
+ font-size: 1.125rem;
3801
+ }
3802
+
3803
+ .c-list--bordered {
3804
+ overflow: hidden;
3805
+ border: 1px solid var(--c-muted);
3806
+ border-radius: 0;
3807
+ }
3808
+
3809
+ .c-list--bordered > .c-list__item + .c-list__item,
3810
+ .c-list--divided > .c-list__item + .c-list__item {
3811
+ border-top: 1px solid var(--c-muted);
3812
+ }
3813
+
3814
+ .c-list__item {
3815
+ display: list-item;
3816
+ padding: 0;
3817
+ margin: 0;
3818
+ }
3819
+ .c-list__item--selected {
3820
+ color: var(--c-text);
3821
+ background: color-mix(in srgb, var(--c-primary) 12%, var(--c-background));
3822
+ }
3823
+ .c-list__item--disabled {
3824
+ cursor: not-allowed;
3825
+ opacity: 0.5;
3826
+ }
3827
+
3828
+ .c-list__row {
3829
+ box-sizing: border-box;
3830
+ display: flex;
3831
+ gap: 1rem;
3832
+ align-items: center;
3833
+ width: 100%;
3834
+ padding: 0.75rem 1rem;
3835
+ font: inherit;
3836
+ color: inherit;
3837
+ text-align: start;
3838
+ text-decoration: none;
3839
+ background: transparent;
3840
+ border: 0;
3841
+ }
3842
+
3843
+ .c-list--sm .c-list__row {
3844
+ padding-block: 0.5rem;
3845
+ }
3846
+
3847
+ .c-list--lg .c-list__row {
3848
+ padding-block: 1rem;
3849
+ }
3850
+
3851
+ .c-list__item--interactive > .c-list__row {
3852
+ cursor: pointer;
3853
+ transition: background-color 0.2s ease-out;
3854
+ }
3855
+ .c-list__item--interactive > .c-list__row:hover {
3856
+ background: var(--c-surface-active);
3857
+ }
3858
+ .c-list__item--interactive > .c-list__row:focus-visible {
3859
+ outline: 1px solid var(--c-focus);
3860
+ outline-offset: -2px;
3861
+ }
3862
+
3863
+ .c-list__item--disabled > .c-list__row {
3864
+ pointer-events: none;
3865
+ }
3866
+
3867
+ .c-list__leading,
3868
+ .c-list__trailing {
3869
+ display: inline-flex;
3870
+ flex: none;
3871
+ align-items: center;
3872
+ }
3873
+
3874
+ .c-list__body {
3875
+ display: flex;
3876
+ flex: 1;
3877
+ flex-direction: column;
3878
+ min-width: 0;
3879
+ }
3880
+
3881
+ .c-list__description {
3882
+ font-size: 0.875rem;
3883
+ color: var(--c-text);
3884
+ }
3885
+
3886
+ @media (prefers-reduced-motion: reduce) {
3887
+ .c-list__item--interactive > .c-list__row {
3888
+ transition: none;
3889
+ }
3890
+ }
3891
+ .c-description-list {
3892
+ box-sizing: border-box;
3893
+ margin: 0;
3894
+ font-size: 1rem;
3895
+ }
3896
+
3897
+ .c-description-list__item {
3898
+ min-width: 0;
3899
+ }
3900
+
3901
+ .c-description-list__term {
3902
+ margin: 0;
3903
+ font-size: 0.875rem;
3904
+ font-weight: 700;
3905
+ color: var(--c-muted);
3906
+ }
3907
+
3908
+ .c-description-list__detail {
3909
+ margin: 0;
3910
+ overflow-wrap: anywhere;
3911
+ color: var(--c-text);
3912
+ }
3913
+
3914
+ .c-description-list--vertical {
3915
+ display: flex;
3916
+ flex-direction: column;
3917
+ gap: 1rem;
3918
+ }
3919
+ .c-description-list--vertical > .c-description-list__term + .c-description-list__detail,
3920
+ .c-description-list--vertical > .c-description-list__item > .c-description-list__term + .c-description-list__detail {
3921
+ margin-top: 0.25rem;
3922
+ }
3923
+
3924
+ .c-description-list--grid {
3925
+ display: grid;
3926
+ grid-template-columns: repeat(var(--c-description-list-columns, 2), minmax(0, 1fr));
3927
+ gap: 1rem 2rem;
3928
+ }
3929
+ .c-description-list--grid > .c-description-list__item > .c-description-list__term + .c-description-list__detail {
3930
+ margin-top: 0.25rem;
3931
+ }
3932
+
3933
+ .c-description-list--horizontal {
3934
+ display: grid;
3935
+ grid-template-columns: 12rem minmax(0, 1fr);
3936
+ gap: 1rem 2rem;
3937
+ }
3938
+ .c-description-list--horizontal > .c-description-list__item {
3939
+ display: grid;
3940
+ grid-column: 1/-1;
3941
+ grid-template-columns: subgrid;
3942
+ }
3943
+
3944
+ .c-stat {
3945
+ box-sizing: border-box;
3946
+ display: flex;
3947
+ gap: 1rem;
3948
+ align-items: flex-start;
3949
+ padding: 1.25rem 1.5rem;
3950
+ background: var(--c-background);
3951
+ border: 1px solid var(--c-muted);
3952
+ border-radius: 0;
3953
+ }
3954
+
3955
+ .c-stat__icon {
3956
+ display: inline-flex;
3957
+ flex: none;
3958
+ align-items: center;
3959
+ justify-content: center;
3960
+ width: 1.5rem;
3961
+ height: 1.5rem;
3962
+ color: var(--c-text);
3963
+ }
3964
+
3965
+ .c-stat__content {
3966
+ display: flex;
3967
+ flex: 1;
3968
+ flex-direction: column;
3969
+ gap: 0.25rem;
3970
+ min-width: 0;
3971
+ margin: 0;
3972
+ }
3973
+
3974
+ .c-stat__label {
3975
+ font-size: 0.875rem;
3976
+ font-weight: 700;
3977
+ color: var(--c-muted);
3978
+ }
3979
+
3980
+ .c-stat__value {
3981
+ margin: 0;
3982
+ font-size: 2.5rem;
3983
+ font-weight: 700;
3984
+ line-height: 1.2;
3985
+ color: var(--c-text);
3986
+ }
3987
+
3988
+ .c-stat__description {
3989
+ margin: 0;
3990
+ font-size: 0.875rem;
3991
+ color: var(--c-muted);
3992
+ }
3993
+
3994
+ .c-stat__delta {
3995
+ display: inline-flex;
3996
+ gap: 0.25rem;
3997
+ align-items: baseline;
3998
+ margin: 0;
3999
+ font-size: 0.875rem;
4000
+ font-weight: 700;
4001
+ }
4002
+ .c-stat__delta::before {
4003
+ font-size: 0.75em;
4004
+ content: "▲";
4005
+ content: "▲"/"";
4006
+ }
4007
+ .c-stat__delta--up {
4008
+ color: var(--c-success);
4009
+ }
4010
+ .c-stat__delta--down {
4011
+ color: var(--c-error);
4012
+ }
4013
+ .c-stat__delta--down::before {
4014
+ content: "▼";
4015
+ content: "▼"/"";
4016
+ }
4017
+ .c-stat__delta--flat {
4018
+ color: var(--c-muted);
4019
+ }
4020
+ .c-stat__delta--flat::before {
4021
+ content: "▬";
4022
+ content: "▬"/"";
4023
+ }
4024
+
4025
+ .c-stat__delta-label {
4026
+ position: absolute;
4027
+ width: 1px;
4028
+ height: 1px;
4029
+ padding: 0;
4030
+ margin: -1px;
4031
+ overflow: hidden;
4032
+ clip-path: inset(50%);
4033
+ white-space: nowrap;
4034
+ border: 0;
4035
+ }
4036
+
4037
+ .c-stat__trend {
4038
+ flex: none;
4039
+ align-self: center;
4040
+ }
4041
+
4042
+ .c-empty-state {
4043
+ box-sizing: border-box;
4044
+ display: flex;
4045
+ flex-direction: column;
4046
+ gap: 1rem;
4047
+ align-items: center;
4048
+ padding: 3rem 1.5rem;
4049
+ text-align: center;
4050
+ }
4051
+
4052
+ .c-empty-state--sm {
4053
+ padding: 1.5rem 1rem;
4054
+ }
4055
+
4056
+ .c-empty-state--lg {
4057
+ padding: 4.5rem 2rem;
4058
+ }
4059
+
4060
+ .c-empty-state__icon {
4061
+ display: inline-flex;
4062
+ align-items: center;
4063
+ justify-content: center;
4064
+ font-size: 3rem;
4065
+ line-height: 1;
4066
+ color: var(--c-muted);
4067
+ }
4068
+ .c-empty-state__icon > svg {
4069
+ width: 1em;
4070
+ height: 1em;
4071
+ }
4072
+
4073
+ .c-empty-state--sm .c-empty-state__icon {
4074
+ font-size: 2rem;
4075
+ }
4076
+
4077
+ .c-empty-state--lg .c-empty-state__icon {
4078
+ font-size: 4rem;
4079
+ }
4080
+
4081
+ .c-empty-state__title {
4082
+ max-width: 28rem;
4083
+ margin: 0;
4084
+ font-size: 1.25rem;
4085
+ font-weight: 700;
4086
+ color: var(--c-text);
4087
+ }
4088
+
4089
+ .c-empty-state--sm .c-empty-state__title {
4090
+ font-size: 1.125rem;
4091
+ }
4092
+
4093
+ .c-empty-state--lg .c-empty-state__title {
4094
+ font-size: 1.75rem;
4095
+ }
4096
+
4097
+ .c-empty-state__description {
4098
+ max-width: 28rem;
4099
+ margin: 0;
4100
+ font-size: 1rem;
4101
+ color: var(--c-muted);
4102
+ }
4103
+
4104
+ .c-empty-state--sm .c-empty-state__description {
4105
+ font-size: 0.875rem;
4106
+ }
4107
+
4108
+ .c-empty-state--lg .c-empty-state__description {
4109
+ font-size: 1rem;
4110
+ }
4111
+
4112
+ .c-empty-state__content {
4113
+ max-width: 28rem;
4114
+ }
4115
+
4116
+ .c-empty-state__actions {
4117
+ display: flex;
4118
+ flex-wrap: wrap;
4119
+ gap: 0.75rem;
4120
+ align-items: center;
4121
+ justify-content: center;
4122
+ }
4123
+
4124
+ .c-timeline {
4125
+ padding: 0;
4126
+ margin: 0;
4127
+ list-style: none;
4128
+ }
4129
+
4130
+ .c-timeline__item {
4131
+ position: relative;
4132
+ display: flex;
4133
+ gap: 1rem;
4134
+ min-width: 0;
4135
+ }
4136
+
4137
+ .c-timeline__marker {
4138
+ box-sizing: border-box;
4139
+ z-index: 1;
4140
+ display: inline-flex;
4141
+ flex: none;
4142
+ align-items: center;
4143
+ justify-content: center;
4144
+ width: 0.75rem;
4145
+ height: 0.75rem;
4146
+ margin-top: 0.375rem;
4147
+ color: var(--c-text);
4148
+ background: var(--c-surface-active);
4149
+ border: 2px solid var(--c-muted);
4150
+ border-radius: 50%;
4151
+ }
4152
+ .c-timeline__marker--icon {
4153
+ width: 1.5rem;
4154
+ height: 1.5rem;
4155
+ margin-top: 0;
4156
+ }
4157
+
4158
+ .c-timeline__content {
4159
+ display: flex;
4160
+ flex: 1;
4161
+ flex-direction: column;
4162
+ gap: 0.25rem;
4163
+ min-width: 0;
4164
+ }
4165
+
4166
+ .c-timeline__title {
4167
+ font-weight: 700;
4168
+ color: var(--c-text);
4169
+ }
4170
+
4171
+ .c-timeline__time {
4172
+ font-size: 0.875rem;
4173
+ color: var(--c-muted);
4174
+ }
4175
+
4176
+ .c-timeline__description {
4177
+ margin: 0;
4178
+ font-size: 0.875rem;
4179
+ color: var(--c-text);
4180
+ }
4181
+
4182
+ .c-timeline__extra {
4183
+ min-width: 0;
4184
+ }
4185
+
4186
+ .c-timeline__status-label {
4187
+ position: absolute;
4188
+ width: 1px;
4189
+ height: 1px;
4190
+ padding: 0;
4191
+ margin: -1px;
4192
+ overflow: hidden;
4193
+ clip-path: inset(50%);
4194
+ white-space: nowrap;
4195
+ border: 0;
4196
+ }
4197
+
4198
+ .c-timeline__item--success > .c-timeline__marker {
4199
+ background: var(--c-success);
4200
+ border-color: var(--c-success);
4201
+ }
4202
+
4203
+ .c-timeline__item--warning > .c-timeline__marker {
4204
+ background: var(--c-warning);
4205
+ border-color: var(--c-warning);
4206
+ }
4207
+
4208
+ .c-timeline__item--error > .c-timeline__marker {
4209
+ background: var(--c-error);
4210
+ border-color: var(--c-error);
4211
+ }
4212
+
4213
+ .c-timeline__item--info > .c-timeline__marker {
4214
+ background: var(--c-info);
4215
+ border-color: var(--c-info);
4216
+ }
4217
+
4218
+ .c-timeline__item > .c-timeline__marker--icon {
4219
+ background: var(--c-background);
4220
+ }
4221
+
4222
+ .c-timeline__item--current > .c-timeline__marker {
4223
+ background: transparent;
4224
+ border-color: var(--c-primary);
4225
+ }
4226
+
4227
+ .c-timeline--vertical > .c-timeline__item {
4228
+ padding-bottom: 1.5rem;
4229
+ }
4230
+ .c-timeline--vertical > .c-timeline__item:last-child {
4231
+ padding-bottom: 0;
4232
+ }
4233
+ .c-timeline--vertical > .c-timeline__item:not(:last-child)::before {
4234
+ position: absolute;
4235
+ top: 1.25rem;
4236
+ bottom: 0;
4237
+ left: calc((1.5rem - 1px) / 2);
4238
+ width: 1px;
4239
+ content: "";
4240
+ background: var(--c-muted);
4241
+ }
4242
+ .c-timeline--vertical > .c-timeline__item > .c-timeline__marker:not(.c-timeline__marker--icon) {
4243
+ margin-right: calc(1.5rem - 0.75rem);
4244
+ margin-left: calc((1.5rem - 0.75rem) / 2);
4245
+ }
4246
+
4247
+ .c-timeline--horizontal {
4248
+ display: flex;
4249
+ gap: 1.5rem;
4250
+ overflow-x: auto;
4251
+ }
4252
+ .c-timeline--horizontal > .c-timeline__item {
4253
+ flex: 0 0 14rem;
4254
+ flex-direction: column;
4255
+ gap: 1rem;
4256
+ }
4257
+ .c-timeline--horizontal > .c-timeline__item:not(:last-child)::before {
4258
+ position: absolute;
4259
+ top: calc(1.5rem / 2 - 1px / 2);
4260
+ left: 1.5rem;
4261
+ width: calc(100% + 1.5rem - 1.5rem);
4262
+ height: 1px;
4263
+ content: "";
4264
+ background: var(--c-muted);
4265
+ }
4266
+ .c-timeline--horizontal > .c-timeline__item > .c-timeline__marker:not(.c-timeline__marker--icon) {
4267
+ margin-top: calc((1.5rem - 0.75rem) / 2);
4268
+ }
4269
+
4270
+ .c-tree,
4271
+ .c-tree__group {
4272
+ padding: 0;
4273
+ margin: 0;
4274
+ list-style: none;
4275
+ }
4276
+
4277
+ .c-tree {
4278
+ font-size: 1rem;
4279
+ }
4280
+
4281
+ .c-tree__group {
4282
+ padding-inline-start: 1.5rem;
4283
+ }
4284
+
4285
+ .c-tree__item {
4286
+ margin: 0;
4287
+ outline: none;
4288
+ }
4289
+
4290
+ .c-tree__row {
4291
+ box-sizing: border-box;
4292
+ display: flex;
4293
+ gap: 0.5rem;
4294
+ align-items: center;
4295
+ padding: 0.5rem 0.75rem;
4296
+ cursor: pointer;
4297
+ border-radius: 0;
4298
+ transition: background-color 0.2s ease-out;
4299
+ }
4300
+ .c-tree__row:hover {
4301
+ background: var(--c-surface-active);
4302
+ }
4303
+
4304
+ .c-tree__item--selected > .c-tree__row {
4305
+ color: var(--c-text);
4306
+ background: color-mix(in srgb, var(--c-primary) 12%, var(--c-background));
4307
+ }
4308
+
4309
+ .c-tree__item:focus-visible > .c-tree__row {
4310
+ outline: 1px solid var(--c-focus);
4311
+ outline-offset: -2px;
4312
+ }
4313
+
4314
+ .c-tree__item--disabled > .c-tree__row {
4315
+ pointer-events: none;
4316
+ cursor: not-allowed;
4317
+ opacity: 0.5;
4318
+ }
4319
+
4320
+ .c-tree__toggle {
4321
+ display: inline-flex;
4322
+ flex: none;
4323
+ align-items: center;
4324
+ justify-content: center;
4325
+ width: 1rem;
4326
+ height: 1rem;
4327
+ }
4328
+
4329
+ .c-tree__item--parent > .c-tree__row > .c-tree__toggle::before {
4330
+ box-sizing: border-box;
4331
+ width: 0.4375rem;
4332
+ height: 0.4375rem;
4333
+ content: "";
4334
+ border-right: 2px solid var(--c-muted);
4335
+ border-bottom: 2px solid var(--c-muted);
4336
+ transition: transform 0.2s ease-out;
4337
+ transform: translateX(-12%) rotate(-45deg);
4338
+ }
4339
+
4340
+ .c-tree__item--open > .c-tree__row > .c-tree__toggle::before {
4341
+ transform: translateY(-12%) rotate(45deg);
4342
+ }
4343
+
4344
+ .c-tree__icon {
4345
+ display: inline-flex;
4346
+ flex: none;
4347
+ align-items: center;
4348
+ }
4349
+
4350
+ .c-tree__label {
4351
+ flex: 1;
4352
+ min-width: 0;
4353
+ }
4354
+
4355
+ @media (prefers-reduced-motion: reduce) {
4356
+ .c-tree__row,
4357
+ .c-tree__item--parent > .c-tree__row > .c-tree__toggle::before {
4358
+ transition: none;
4359
+ }
4360
+ }
4361
+ .c-code,
4362
+ .c-kbd,
4363
+ .c-code-block__code {
4364
+ font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
4365
+ }
4366
+
4367
+ .c-code {
4368
+ padding: 0.125em 0.375em;
4369
+ font-size: 0.875em;
4370
+ color: var(--c-text);
4371
+ background: var(--c-surface);
4372
+ border-radius: 0;
4373
+ }
4374
+
4375
+ .c-kbd {
4376
+ display: inline-block;
4377
+ padding: 0.125em 0.5em;
4378
+ font-size: 0.8125em;
4379
+ line-height: 1.2;
4380
+ color: var(--c-text);
4381
+ white-space: nowrap;
4382
+ background: var(--c-background);
4383
+ border: 1px solid var(--c-muted);
4384
+ border-radius: 0;
4385
+ box-shadow: 0 1px 0 var(--c-muted);
4386
+ }
4387
+
4388
+ .c-code-block {
4389
+ position: relative;
4390
+ }
4391
+
4392
+ .c-code-block__pre {
4393
+ box-sizing: border-box;
4394
+ margin: 0;
4395
+ overflow: auto;
4396
+ font-size: 0.875rem;
4397
+ line-height: 1.5;
4398
+ tab-size: 4;
4399
+ color: var(--c-text);
4400
+ background: var(--c-surface);
4401
+ border: 1px solid var(--c-muted);
4402
+ border-radius: 0;
4403
+ padding: 1rem;
4404
+ }
4405
+ .c-code-block__pre:focus-visible {
4406
+ outline: 1px solid var(--c-focus);
4407
+ outline-offset: -2px;
4408
+ }
4409
+
4410
+ .c-code-block__code {
4411
+ font-size: inherit;
4412
+ }
4413
+
4414
+ .c-code-block--wrap .c-code-block__pre {
4415
+ white-space: pre-wrap;
4416
+ overflow-wrap: anywhere;
4417
+ }
4418
+
4419
+ .c-code-block__copy {
4420
+ position: absolute;
4421
+ top: 0.5rem;
4422
+ right: 0.5rem;
4423
+ padding: 0.375rem 0.75rem;
4424
+ font: inherit;
4425
+ font-size: 0.875rem;
4426
+ color: var(--c-text);
4427
+ cursor: pointer;
4428
+ background: var(--c-background);
4429
+ border: 1px solid var(--c-muted);
4430
+ border-radius: 0;
4431
+ }
4432
+ .c-code-block__copy:hover {
4433
+ background: var(--c-surface-active);
4434
+ }
4435
+ .c-code-block__copy:focus-visible {
4436
+ outline: 1px solid var(--c-focus);
4437
+ outline-offset: -2px;
4438
+ }
4439
+
4440
+ .c-code-block__status {
4441
+ position: absolute;
4442
+ width: 1px;
4443
+ height: 1px;
4444
+ padding: 0;
4445
+ margin: -1px;
4446
+ overflow: hidden;
4447
+ clip-path: inset(50%);
4448
+ white-space: nowrap;
4449
+ border: 0;
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
+ }