@takeoff-design/tokens 0.3.0 → 0.4.0

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.
@@ -209,7 +209,6 @@ body {
209
209
  width: 100%;
210
210
  height: 100%;
211
211
  fill: currentColor;
212
- stroke: currentColor;
213
212
  }
214
213
  .tk-button .tk-button-content-symbol {
215
214
  display: inline-flex;
@@ -1564,6 +1563,7 @@ body {
1564
1563
  .tk-alert[data-variant=success][data-type=gradient] {
1565
1564
  color: var(--text-darkest);
1566
1565
  background: linear-gradient(270deg, var(--background-lightest, #f9fafc) 89%, var(--states-success-sub-base, #a0e6ba) 100%);
1566
+ border-color: var(--states-success-base);
1567
1567
  }
1568
1568
  .tk-alert[data-variant=warning] {
1569
1569
  border-color: var(--states-warning-sub-base);
@@ -1585,6 +1585,7 @@ body {
1585
1585
  .tk-alert[data-variant=warning][data-type=gradient] {
1586
1586
  color: var(--text-darkest);
1587
1587
  background: linear-gradient(270deg, var(--background-lightest, #f9fafc) 89%, var(--states-warning-sub-base, #f6de95) 100%);
1588
+ border-color: var(--states-warning-base);
1588
1589
  }
1589
1590
  .tk-alert[data-variant=info] {
1590
1591
  border-color: var(--states-info-sub-base);
@@ -1606,6 +1607,7 @@ body {
1606
1607
  .tk-alert[data-variant=info][data-type=gradient] {
1607
1608
  color: var(--text-darkest);
1608
1609
  background: linear-gradient(270deg, var(--background-lightest, #f9fafc) 89%, var(--states-info-sub-base, #abc9fb) 100%);
1610
+ border-color: var(--states-info-base);
1609
1611
  }
1610
1612
  .tk-alert[data-variant=danger] {
1611
1613
  border-color: var(--states-danger-sub-base);
@@ -1627,6 +1629,7 @@ body {
1627
1629
  .tk-alert[data-variant=danger][data-type=gradient] {
1628
1630
  color: var(--text-darkest);
1629
1631
  background: linear-gradient(270deg, var(--background-lightest, #f9fafc) 89%, var(--states-danger-sub-base, #ffaca7) 100%);
1632
+ border-color: var(--states-danger-base);
1630
1633
  }
1631
1634
  .tk-alert[data-variant=neutral] {
1632
1635
  border-color: var(--border-sub-base);
@@ -1648,12 +1651,16 @@ body {
1648
1651
  .tk-alert[data-variant=neutral][data-type=gradient] {
1649
1652
  color: var(--text-darkest);
1650
1653
  background: linear-gradient(270deg, var(--background-lightest, #f9fafc) 89%, var(--background-sub-base, #cacfd8) 100%);
1654
+ border-color: var(--background-sub-base);
1651
1655
  }
1652
1656
  .tk-alert[data-type=filled]:not([data-variant=neutral]) .tk-alert-title,
1653
1657
  .tk-alert[data-type=filled]:not([data-variant=neutral]) .tk-alert-description,
1654
1658
  .tk-alert[data-type=filled]:not([data-variant=neutral]) .tk-alert-action {
1655
1659
  color: var(--text-lightest);
1656
1660
  }
1661
+ .tk-alert[data-type=filled]:not([data-variant=neutral]) .tk-alert-action.tk-button {
1662
+ color: var(--text-lightest);
1663
+ }
1657
1664
  .tk-alert[data-type=filled]:not([data-variant=neutral]) .tk-alert-action:hover,
1658
1665
  .tk-alert[data-type=filled]:not([data-variant=neutral]) .tk-alert-close:hover {
1659
1666
  background-color: var(--overlay-white-light);
@@ -1698,6 +1705,8 @@ body {
1698
1705
  align-items: center;
1699
1706
  justify-content: center;
1700
1707
  flex-shrink: 0;
1708
+ align-self: flex-start;
1709
+ margin-inline-start: auto;
1701
1710
  border: 0;
1702
1711
  border-radius: var(--radius-m-base);
1703
1712
  background: transparent;
@@ -2826,18 +2835,6 @@ body {
2826
2835
  .tk-drawer-panel[data-placement=bottom][data-state=closed] {
2827
2836
  transform: translateY(100%);
2828
2837
  }
2829
- .tk-drawer-panel[data-placement=full-screen] {
2830
- inset: 0;
2831
- width: 100%;
2832
- height: 100%;
2833
- border-radius: 0;
2834
- transition: none;
2835
- transform: none;
2836
- }
2837
- .tk-drawer-panel[data-placement=full-screen][data-state=closed] {
2838
- transform: scale(0.95);
2839
- opacity: 0;
2840
- }
2841
2838
 
2842
2839
  .tk-drawer-header {
2843
2840
  display: flex;
@@ -2981,6 +2978,10 @@ body {
2981
2978
  gap: var(--dropdown-items-basic-large-gap);
2982
2979
  border-radius: var(--dropdown-items-basic-large-radius);
2983
2980
  }
2981
+ .tk-dropdown-content[data-size=large] .tk-dropdown-label {
2982
+ font-size: var(--desktop-body-s-size);
2983
+ line-height: var(--desktop-body-s-line-height);
2984
+ }
2984
2985
  .tk-dropdown-content[data-size=base] {
2985
2986
  font-size: var(--desktop-body-s-size);
2986
2987
  line-height: var(--desktop-body-s-line-height);
@@ -2994,6 +2995,9 @@ body {
2994
2995
  gap: var(--dropdown-items-basic-small-gap);
2995
2996
  border-radius: var(--dropdown-items-basic-small-radius);
2996
2997
  }
2998
+ .tk-dropdown-content[data-size=small] .tk-dropdown-label {
2999
+ font-size: 11px;
3000
+ }
2997
3001
 
2998
3002
  .tk-dropdown-viewport {
2999
3003
  display: flex;
@@ -3049,16 +3053,23 @@ body {
3049
3053
  }
3050
3054
 
3051
3055
  .tk-dropdown-label {
3052
- padding-inline: 0.5rem;
3056
+ display: flex;
3057
+ align-items: center;
3058
+ gap: var(--spacing-l);
3059
+ padding-inline: var(--spacing-m-base);
3053
3060
  padding-block: 0.25rem;
3054
3061
  font-size: var(--desktop-body-xs-size);
3055
3062
  line-height: var(--desktop-body-xs-line-height);
3056
- font-weight: 500;
3057
- color: var(--text-sub-base);
3058
- text-transform: uppercase;
3059
- letter-spacing: 0.02em;
3063
+ font-weight: 400;
3064
+ color: var(--text-dark);
3060
3065
  user-select: none;
3061
3066
  }
3067
+ .tk-dropdown-label::after {
3068
+ content: "";
3069
+ flex: 1 1 auto;
3070
+ height: 1px;
3071
+ background-color: var(--border-light);
3072
+ }
3062
3073
 
3063
3074
  .tk-dropdown-separator {
3064
3075
  flex-shrink: 0;
@@ -3089,18 +3100,21 @@ body {
3089
3100
  width: 100%;
3090
3101
  }
3091
3102
  .tk-field .tk-field-label {
3103
+ padding: var(--input-external-label-large-label-v-padding) var(--input-external-label-large-label-h-padding);
3092
3104
  color: var(--text-darkest);
3093
3105
  font-weight: 400;
3094
3106
  font-size: var(--desktop-label-m-base-size);
3095
3107
  line-height: var(--desktop-label-m-base-line-height);
3096
3108
  cursor: default;
3097
3109
  }
3110
+ .tk-field:has(> [data-size=small]) > .tk-field-label {
3111
+ padding: var(--input-external-label-small-label-v-padding) var(--input-external-label-small-label-h-padding);
3112
+ }
3098
3113
  .tk-field .tk-field-asterisk {
3099
3114
  color: var(--states-danger-base);
3100
3115
  font-size: var(--desktop-label-s-size);
3101
3116
  font-weight: 300;
3102
3117
  line-height: var(--desktop-label-s-line-height);
3103
- margin-inline-start: 0.125rem;
3104
3118
  }
3105
3119
  .tk-field[data-disabled] .tk-field-label {
3106
3120
  color: var(--text-sub-base);
@@ -3116,7 +3130,6 @@ body {
3116
3130
  font-size: var(--desktop-body-xs-size);
3117
3131
  line-height: var(--desktop-body-xs-line-height);
3118
3132
  font-weight: 400;
3119
- margin-block-start: var(--spacing-xxs);
3120
3133
  }
3121
3134
  .tk-field .tk-field-description-icon,
3122
3135
  .tk-field .tk-field-error-message-icon {
@@ -3125,8 +3138,9 @@ body {
3125
3138
  justify-content: center;
3126
3139
  flex-shrink: 0;
3127
3140
  height: var(--desktop-body-xs-line-height);
3128
- font-size: 0.875rem;
3141
+ font-size: var(--desktop-body-xs-size);
3129
3142
  line-height: 1;
3143
+ transform: translateY(-1px);
3130
3144
  }
3131
3145
  .tk-field .tk-field-description {
3132
3146
  color: var(--text-base);
@@ -3413,6 +3427,9 @@ body {
3413
3427
  min-height: 3rem;
3414
3428
  height: auto;
3415
3429
  }
3430
+ .tk-input[data-size=large]:has(.tk-input-chips) .tk-chip {
3431
+ height: var(--desktop-body-m-base-line-height);
3432
+ }
3416
3433
  .tk-input[data-size=large] .tk-input-field {
3417
3434
  font-size: var(--desktop-body-m-base-size);
3418
3435
  line-height: var(--desktop-body-m-base-line-height);
@@ -3462,6 +3479,9 @@ body {
3462
3479
  min-height: 2.5rem;
3463
3480
  height: auto;
3464
3481
  }
3482
+ .tk-input[data-size=base]:has(.tk-input-chips) .tk-chip {
3483
+ height: var(--desktop-body-s-line-height);
3484
+ }
3465
3485
  .tk-input[data-size=base] .tk-input-field {
3466
3486
  font-size: var(--desktop-body-s-size);
3467
3487
  line-height: var(--desktop-body-s-line-height);
@@ -3511,6 +3531,9 @@ body {
3511
3531
  min-height: 2rem;
3512
3532
  height: auto;
3513
3533
  }
3534
+ .tk-input[data-size=small]:has(.tk-input-chips) .tk-chip {
3535
+ height: var(--desktop-body-xs-line-height);
3536
+ }
3514
3537
  .tk-input[data-size=small] .tk-input-field {
3515
3538
  font-size: var(--desktop-body-xs-size);
3516
3539
  line-height: var(--desktop-body-xs-line-height);
@@ -3588,6 +3611,7 @@ body {
3588
3611
  line-height: var(--desktop-label-m-base-line-height);
3589
3612
  cursor: default;
3590
3613
  margin: 0;
3614
+ padding: var(--input-external-label-large-label-v-padding) var(--input-external-label-large-label-h-padding);
3591
3615
  }
3592
3616
  .tk-label[for] {
3593
3617
  cursor: pointer;
@@ -3598,7 +3622,6 @@ body {
3598
3622
  font-size: var(--desktop-label-s-size);
3599
3623
  font-weight: 300;
3600
3624
  line-height: var(--desktop-label-s-line-height);
3601
- margin-inline-start: 0.125rem;
3602
3625
  }
3603
3626
  .tk-label[data-disabled], .tk-label[data-readonly] {
3604
3627
  color: var(--text-sub-base);
@@ -3720,6 +3743,10 @@ body {
3720
3743
  gap: var(--dropdown-items-basic-large-gap);
3721
3744
  border-radius: var(--dropdown-items-basic-large-radius);
3722
3745
  }
3746
+ .tk-select-content[data-size=large] .tk-select-label {
3747
+ font-size: var(--desktop-body-s-size);
3748
+ line-height: var(--desktop-body-s-line-height);
3749
+ }
3723
3750
  .tk-select-content[data-size=base] {
3724
3751
  font-size: var(--desktop-body-s-size);
3725
3752
  line-height: var(--desktop-body-s-line-height);
@@ -3733,6 +3760,9 @@ body {
3733
3760
  gap: var(--dropdown-items-basic-small-gap);
3734
3761
  border-radius: var(--dropdown-items-basic-small-radius);
3735
3762
  }
3763
+ .tk-select-content[data-size=small] .tk-select-label {
3764
+ font-size: 11px;
3765
+ }
3736
3766
 
3737
3767
  .tk-select-viewport {
3738
3768
  display: flex;
@@ -3798,16 +3828,23 @@ body {
3798
3828
  }
3799
3829
 
3800
3830
  .tk-select-label {
3801
- padding-inline: 0.5rem;
3831
+ display: flex;
3832
+ align-items: center;
3833
+ gap: var(--spacing-l);
3834
+ padding-inline: var(--spacing-m-base);
3802
3835
  padding-block: 0.25rem;
3803
3836
  font-size: var(--desktop-body-xs-size);
3804
3837
  line-height: var(--desktop-body-xs-line-height);
3805
- font-weight: 500;
3806
- color: var(--text-sub-base);
3807
- text-transform: uppercase;
3808
- letter-spacing: 0.02em;
3838
+ font-weight: 400;
3839
+ color: var(--text-dark);
3809
3840
  user-select: none;
3810
3841
  }
3842
+ .tk-select-label::after {
3843
+ content: "";
3844
+ flex: 1 1 auto;
3845
+ height: 1px;
3846
+ background-color: var(--border-light);
3847
+ }
3811
3848
 
3812
3849
  .tk-select-separator {
3813
3850
  flex-shrink: 0;
@@ -5139,6 +5176,9 @@ body {
5139
5176
  .tk-checkbox[data-invalid][data-focus][data-checked]:not([data-disabled]) .tk-checkbox-indicator, .tk-checkbox[data-invalid][data-focus][data-indeterminate]:not([data-disabled]) .tk-checkbox-indicator {
5140
5177
  border-color: var(--states-danger-light);
5141
5178
  }
5179
+ .tk-checkbox .tk-checkbox-icon svg {
5180
+ flex: none;
5181
+ }
5142
5182
  .tk-checkbox[data-size=base] .tk-checkbox-indicator {
5143
5183
  width: 20px;
5144
5184
  height: 20px;
@@ -5149,6 +5189,14 @@ body {
5149
5189
  width: 12px;
5150
5190
  height: 12px;
5151
5191
  }
5192
+ .tk-checkbox[data-size=base] .tk-checkbox-icon svg {
5193
+ width: 22px;
5194
+ height: 22px;
5195
+ }
5196
+ .tk-checkbox[data-size=base][data-indeterminate] .tk-checkbox-icon svg {
5197
+ width: 14px;
5198
+ height: 14px;
5199
+ }
5152
5200
  .tk-checkbox[data-size=small] .tk-checkbox-indicator {
5153
5201
  width: 16px;
5154
5202
  height: 16px;
@@ -5159,6 +5207,14 @@ body {
5159
5207
  width: 10px;
5160
5208
  height: 10px;
5161
5209
  }
5210
+ .tk-checkbox[data-size=small] .tk-checkbox-icon svg {
5211
+ width: 18px;
5212
+ height: 18px;
5213
+ }
5214
+ .tk-checkbox[data-size=small][data-indeterminate] .tk-checkbox-icon svg {
5215
+ width: 12px;
5216
+ height: 12px;
5217
+ }
5162
5218
 
5163
5219
  .tk-chip {
5164
5220
  font-family: var(--family-body, "tk-text", sans-serif);
@@ -5203,7 +5259,6 @@ body {
5203
5259
  width: 100%;
5204
5260
  height: 100%;
5205
5261
  fill: currentColor;
5206
- stroke: currentColor;
5207
5262
  }
5208
5263
  .tk-chip .tk-chip-remove {
5209
5264
  appearance: none;
@@ -5219,7 +5274,7 @@ body {
5219
5274
  cursor: pointer;
5220
5275
  }
5221
5276
  .tk-chip[data-size=small] {
5222
- min-height: 20px;
5277
+ height: 20px;
5223
5278
  font-size: var(--desktop-body-xs-size);
5224
5279
  line-height: var(--desktop-body-xs-line-height);
5225
5280
  border-radius: var(--chips-small-radius);
@@ -5235,7 +5290,7 @@ body {
5235
5290
  padding-inline-end: var(--chips-small-v-padding);
5236
5291
  }
5237
5292
  .tk-chip[data-size=base] {
5238
- min-height: 24px;
5293
+ height: 24px;
5239
5294
  font-size: var(--desktop-body-s-size);
5240
5295
  line-height: var(--desktop-body-s-line-height);
5241
5296
  border-radius: var(--chips-base-radius);
@@ -5251,7 +5306,7 @@ body {
5251
5306
  padding-inline-end: var(--chips-base-v-padding);
5252
5307
  }
5253
5308
  .tk-chip[data-size=large] {
5254
- min-height: 28px;
5309
+ height: 28px;
5255
5310
  font-size: var(--desktop-body-m-base-size);
5256
5311
  line-height: var(--desktop-body-m-base-line-height);
5257
5312
  border-radius: var(--chips-large-radius);
@@ -6113,6 +6168,11 @@ body {
6113
6168
  border-bottom: 0;
6114
6169
  border-inline-end: 1px solid var(--background-light);
6115
6170
  }
6171
+ .tk-tabs-list[data-type=divided]:not([data-orientation=vertical]) {
6172
+ border-bottom: 0;
6173
+ padding-block-end: 1px;
6174
+ background-image: linear-gradient(to top, var(--border-light) 1px, transparent 1px);
6175
+ }
6116
6176
  .tk-tabs-list[data-type=compact] {
6117
6177
  gap: 0;
6118
6178
  border-bottom: 0;
@@ -6250,6 +6310,13 @@ body {
6250
6310
  .tk-tabs-trigger[data-type=divided]:hover:not([data-disabled], :disabled, [aria-disabled=true]):not([data-orientation=vertical]), .tk-tabs-trigger[data-type=divided][data-state=active]:not([data-orientation=vertical]) {
6251
6311
  box-shadow: var(--effect-1-default-base);
6252
6312
  }
6313
+ .tk-tabs-trigger[data-type=divided]:not([data-orientation=vertical]) {
6314
+ border-bottom: 1px solid var(--border-light);
6315
+ margin-block-end: -1px;
6316
+ }
6317
+ .tk-tabs-trigger[data-type=divided][data-state=active]:not([data-orientation=vertical]) {
6318
+ border-bottom-color: var(--static-light);
6319
+ }
6253
6320
  .tk-tabs-trigger[data-type=divided]::after {
6254
6321
  display: none;
6255
6322
  }
@@ -7770,3 +7837,206 @@ body {
7770
7837
  background-color: color-mix(in srgb, var(--static-light) 60%, transparent);
7771
7838
  z-index: 4;
7772
7839
  }
7840
+
7841
+ .tk-upload {
7842
+ font-family: var(--family-body, "tk-text", sans-serif);
7843
+ display: flex;
7844
+ flex-direction: column;
7845
+ gap: var(--upload-card-gap);
7846
+ width: 100%;
7847
+ box-sizing: border-box;
7848
+ }
7849
+ .tk-upload:not([data-disabled]):not([data-readonly]) .tk-upload-dropzone:hover {
7850
+ background: var(--background-lightest);
7851
+ }
7852
+ .tk-upload:not([data-disabled]) .tk-upload-item:hover {
7853
+ background: var(--background-lightest);
7854
+ }
7855
+ .tk-upload[data-disabled] .tk-upload-dropzone {
7856
+ --tk-upload-dropzone-mark: var(--icon-sub-base);
7857
+ --tk-upload-dropzone-support: var(--text-sub-base);
7858
+ border-color: var(--border-light);
7859
+ background: var(--background-lightest);
7860
+ color: var(--text-sub-base);
7861
+ cursor: not-allowed;
7862
+ }
7863
+ .tk-upload[data-invalid] .tk-upload-dropzone {
7864
+ border-color: var(--states-danger-base);
7865
+ }
7866
+ .tk-upload[data-invalid] .tk-upload-item {
7867
+ border-color: var(--states-danger-sub-base);
7868
+ }
7869
+
7870
+ .tk-upload-dropzone {
7871
+ --tk-upload-dropzone-mark: var(--primary-base);
7872
+ --tk-upload-dropzone-support: var(--text-base);
7873
+ display: flex;
7874
+ flex-direction: column;
7875
+ align-items: center;
7876
+ justify-content: center;
7877
+ gap: var(--upload-basic-gap);
7878
+ padding: var(--upload-basic-v-padding) var(--upload-basic-h-padding);
7879
+ text-align: center;
7880
+ border: 1px dashed var(--border-sub-base);
7881
+ border-radius: var(--radius-m-base);
7882
+ background: transparent;
7883
+ color: var(--text-darkest);
7884
+ font-size: var(--desktop-body-s-size);
7885
+ line-height: var(--desktop-body-s-line-height);
7886
+ box-sizing: border-box;
7887
+ cursor: default;
7888
+ transition: border-color 160ms ease, background-color 160ms ease;
7889
+ }
7890
+
7891
+ .tk-upload-actions {
7892
+ display: flex;
7893
+ align-items: center;
7894
+ gap: var(--spacing-m-base);
7895
+ }
7896
+
7897
+ .tk-upload-list {
7898
+ display: flex;
7899
+ flex-direction: column;
7900
+ gap: var(--upload-card-gap);
7901
+ }
7902
+ .tk-upload-list::-webkit-scrollbar {
7903
+ width: 4px;
7904
+ height: 4px;
7905
+ }
7906
+ .tk-upload-list::-webkit-scrollbar-track {
7907
+ background: var(--background-lightest);
7908
+ border-radius: 2px;
7909
+ }
7910
+ .tk-upload-list::-webkit-scrollbar-thumb {
7911
+ border-radius: 3px;
7912
+ background: var(--secondary-sub-base);
7913
+ }
7914
+ .tk-upload-list::-webkit-scrollbar-thumb:hover {
7915
+ background: var(--secondary-dark);
7916
+ }
7917
+ .tk-upload-list::-webkit-scrollbar-corner {
7918
+ background: var(--background-lightest);
7919
+ }
7920
+
7921
+ .tk-upload-item {
7922
+ display: flex;
7923
+ align-items: flex-start;
7924
+ align-self: stretch;
7925
+ gap: var(--upload-card-gap);
7926
+ padding: var(--upload-card-v-padding) var(--upload-card-h-padding);
7927
+ border: 1px solid var(--border-sub-base);
7928
+ border-radius: var(--radius-m-base);
7929
+ background: var(--static-light);
7930
+ box-sizing: border-box;
7931
+ transition: border-color 160ms ease, background-color 160ms ease;
7932
+ }
7933
+ .tk-upload-item[data-status=completed] .tk-upload-item-status svg {
7934
+ color: var(--states-success-base);
7935
+ }
7936
+ .tk-upload-item[data-status=error] .tk-upload-item-status svg {
7937
+ color: var(--states-danger-base);
7938
+ }
7939
+
7940
+ .tk-upload-item-content {
7941
+ flex: 1 1 auto;
7942
+ min-width: 0;
7943
+ display: flex;
7944
+ flex-wrap: wrap;
7945
+ align-items: center;
7946
+ gap: var(--upload-card-content-gap) var(--spacing-m-base);
7947
+ }
7948
+ .tk-upload-item-content .tk-upload-item-name {
7949
+ flex: 1 1 100%;
7950
+ min-width: 0;
7951
+ overflow: hidden;
7952
+ text-overflow: ellipsis;
7953
+ white-space: nowrap;
7954
+ font-size: var(--desktop-body-s-size);
7955
+ line-height: var(--desktop-body-s-line-height);
7956
+ color: var(--text-darkest);
7957
+ }
7958
+ .tk-upload-item-content .tk-upload-item-size {
7959
+ font-size: var(--desktop-body-xs-size);
7960
+ font-weight: 300;
7961
+ line-height: var(--desktop-body-xs-line-height);
7962
+ color: var(--text-base);
7963
+ }
7964
+ .tk-upload-item-content .tk-upload-item-status {
7965
+ flex: 0 1 auto;
7966
+ min-width: 0;
7967
+ display: inline-flex;
7968
+ align-items: center;
7969
+ gap: 4px;
7970
+ font-size: var(--desktop-body-xs-size);
7971
+ font-weight: 300;
7972
+ line-height: var(--desktop-body-xs-line-height);
7973
+ color: var(--text-base);
7974
+ }
7975
+ .tk-upload-item-content .tk-upload-item-status svg {
7976
+ flex-shrink: 0;
7977
+ width: 16px;
7978
+ height: 16px;
7979
+ }
7980
+ .tk-upload-item-content .tk-upload-item-status .tk-spinner {
7981
+ flex-shrink: 0;
7982
+ --tk-spinner-size: 16px;
7983
+ }
7984
+ .tk-upload-item-content .tk-upload-item-progress {
7985
+ flex-basis: 100%;
7986
+ }
7987
+ .tk-upload-item-content .tk-upload-item-progress .tk-progress {
7988
+ inline-size: 100%;
7989
+ }
7990
+
7991
+ .tk-upload-item-preview {
7992
+ flex-shrink: 0;
7993
+ display: flex;
7994
+ align-items: center;
7995
+ justify-content: center;
7996
+ width: 40px;
7997
+ height: 40px;
7998
+ overflow: hidden;
7999
+ border-radius: var(--radius-s);
8000
+ color: var(--text-sub-base);
8001
+ box-sizing: border-box;
8002
+ }
8003
+ .tk-upload-item-preview .tk-upload-item-preview-image,
8004
+ .tk-upload-item-preview img {
8005
+ display: block;
8006
+ width: 100%;
8007
+ height: 100%;
8008
+ object-fit: cover;
8009
+ background: var(--background-light);
8010
+ }
8011
+ .tk-upload-item-preview .tk-upload-item-preview-icon {
8012
+ display: block;
8013
+ width: 100%;
8014
+ height: 100%;
8015
+ }
8016
+ .tk-upload-item-preview .tk-upload-item-preview-extension {
8017
+ display: flex;
8018
+ align-items: center;
8019
+ justify-content: center;
8020
+ width: 100%;
8021
+ height: 100%;
8022
+ border-radius: inherit;
8023
+ background: var(--background-light);
8024
+ font-size: var(--desktop-body-xs-size);
8025
+ font-weight: 600;
8026
+ text-transform: uppercase;
8027
+ }
8028
+
8029
+ .tk-upload-item-actions {
8030
+ margin-inline-start: auto;
8031
+ display: inline-flex;
8032
+ align-items: center;
8033
+ gap: var(--spacing-xs);
8034
+ flex-shrink: 0;
8035
+ }
8036
+ .tk-upload-item-actions:empty {
8037
+ display: none;
8038
+ }
8039
+
8040
+ .tk-upload-item-action {
8041
+ flex-shrink: 0;
8042
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@takeoff-design/tokens",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "Design tokens, CSS variables, SCSS, JS exports, and component recipe styles for Takeoff Design.",
5
5
  "type": "module",
6
6
  "author": "Turkish Technology Frontend Infrastructure Team <takeoffui@thy.com>",