@womp/kookie-ui 0.35.4 → 0.35.5

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/components.css CHANGED
@@ -6059,7 +6059,11 @@
6059
6059
  box-shadow: inset 0 0 0 1px var(--accent-6);
6060
6060
  }
6061
6061
  @media (hover: hover) {
6062
- .kui-TextFieldRoot:where(.kui-variant-outline):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled)))) {
6062
+ .kui-TextFieldRoot:where(.kui-variant-outline):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:-moz-read-only)))) {
6063
+ background-color: var(--accent-2);
6064
+ box-shadow: inset 0 0 0 1px var(--accent-7);
6065
+ }
6066
+ .kui-TextFieldRoot:where(.kui-variant-outline):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:read-only)))) {
6063
6067
  background-color: var(--accent-2);
6064
6068
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-7);
6065
6069
  box-shadow: inset 0 0 0 1px var(--accent-7);
@@ -6095,11 +6099,7 @@
6095
6099
  -webkit-box-shadow: inset 0 0 0 1px var(--focus-a5);
6096
6100
  box-shadow: inset 0 0 0 1px var(--focus-a5);
6097
6101
  }
6098
- .kui-TextFieldRoot:where(.kui-variant-outline):where(:has(.kui-TextFieldInput:where(:disabled,:-moz-read-only))) {
6099
- background-image: linear-gradient(var(--neutral-a2), var(--neutral-a2));
6100
- box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
6101
- }
6102
- .kui-TextFieldRoot:where(.kui-variant-outline):where(:has(.kui-TextFieldInput:where(:disabled,:read-only))) {
6102
+ .kui-TextFieldRoot:where(.kui-variant-outline):where(:has(.kui-TextFieldInput:disabled)) {
6103
6103
  background-image: linear-gradient(var(--neutral-a2), var(--neutral-a2));
6104
6104
  -webkit-box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
6105
6105
  box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
@@ -6168,7 +6168,10 @@
6168
6168
  background-color: var(--accent-3);
6169
6169
  }
6170
6170
  @media (hover: hover) {
6171
- .kui-TextFieldRoot:where(.kui-variant-soft):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled)))) {
6171
+ .kui-TextFieldRoot:where(.kui-variant-soft):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:-moz-read-only)))) {
6172
+ background-color: var(--accent-4);
6173
+ }
6174
+ .kui-TextFieldRoot:where(.kui-variant-soft):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:read-only)))) {
6172
6175
  background-color: var(--accent-4);
6173
6176
  }
6174
6177
  }
@@ -6205,10 +6208,7 @@
6205
6208
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
6206
6209
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
6207
6210
  }
6208
- .kui-TextFieldRoot:where(.kui-variant-soft):where(:has(.kui-TextFieldInput:where(:disabled,:-moz-read-only))) {
6209
- background-color: var(--neutral-a3);
6210
- }
6211
- .kui-TextFieldRoot:where(.kui-variant-soft):where(:has(.kui-TextFieldInput:where(:disabled,:read-only))) {
6211
+ .kui-TextFieldRoot:where(.kui-variant-soft):where(:has(.kui-TextFieldInput:disabled)) {
6212
6212
  background-color: var(--neutral-a3);
6213
6213
  }
6214
6214
  .kui-TextFieldRoot:where(.kui-variant-ghost) {
@@ -6240,7 +6240,10 @@
6240
6240
  color: var(--accent-a11);
6241
6241
  }
6242
6242
  @media (hover: hover) {
6243
- .kui-TextFieldRoot:where(.kui-variant-ghost):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled)))) {
6243
+ .kui-TextFieldRoot:where(.kui-variant-ghost):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:-moz-read-only)))) {
6244
+ background-color: var(--accent-3);
6245
+ }
6246
+ .kui-TextFieldRoot:where(.kui-variant-ghost):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:read-only)))) {
6244
6247
  background-color: var(--accent-3);
6245
6248
  }
6246
6249
  }
@@ -6256,11 +6259,7 @@
6256
6259
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
6257
6260
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
6258
6261
  }
6259
- .kui-TextFieldRoot:where(.kui-variant-ghost):where(:has(.kui-TextFieldInput:where(:disabled,:-moz-read-only))) {
6260
- background-color: var(--neutral-a2);
6261
- color: var(--neutral-a8);
6262
- }
6263
- .kui-TextFieldRoot:where(.kui-variant-ghost):where(:has(.kui-TextFieldInput:where(:disabled,:read-only))) {
6262
+ .kui-TextFieldRoot:where(.kui-variant-ghost):where(:has(.kui-TextFieldInput:disabled)) {
6264
6263
  background-color: var(--neutral-a2);
6265
6264
  color: var(--neutral-a8);
6266
6265
  }
@@ -6294,7 +6293,11 @@
6294
6293
  color: var(--accent-a11);
6295
6294
  }
6296
6295
  @media (hover: hover) {
6297
- .kui-TextFieldRoot:where(.kui-variant-surface):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled)))) {
6296
+ .kui-TextFieldRoot:where(.kui-variant-surface):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:-moz-read-only)))) {
6297
+ background-color: var(--accent-3);
6298
+ box-shadow: inset 0 0 0 1px var(--accent-7);
6299
+ }
6300
+ .kui-TextFieldRoot:where(.kui-variant-surface):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:read-only)))) {
6298
6301
  background-color: var(--accent-3);
6299
6302
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-7);
6300
6303
  box-shadow: inset 0 0 0 1px var(--accent-7);
@@ -6314,17 +6317,18 @@
6314
6317
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
6315
6318
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
6316
6319
  }
6317
- .kui-TextFieldRoot:where(.kui-variant-surface):where(:has(.kui-TextFieldInput:where(:disabled,:-moz-read-only))) {
6318
- background-color: var(--neutral-a2);
6319
- box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
6320
- color: var(--neutral-a8);
6321
- }
6322
- .kui-TextFieldRoot:where(.kui-variant-surface):where(:has(.kui-TextFieldInput:where(:disabled,:read-only))) {
6320
+ .kui-TextFieldRoot:where(.kui-variant-surface):where(:has(.kui-TextFieldInput:disabled)) {
6323
6321
  background-color: var(--neutral-a2);
6324
6322
  -webkit-box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
6325
6323
  box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
6326
6324
  color: var(--neutral-a8);
6327
6325
  }
6326
+ .kui-TextFieldRoot:where(:has(.kui-TextFieldInput:-moz-read-only:not(:disabled))) {
6327
+ background-color: transparent;
6328
+ }
6329
+ .kui-TextFieldRoot:where(:has(.kui-TextFieldInput:read-only:not(:disabled))) {
6330
+ background-color: transparent;
6331
+ }
6328
6332
  .kui-TextFieldInput:where(:-moz-read-only:not(:disabled)) {
6329
6333
  color: var(--neutral-a11);
6330
6334
  -webkit-text-fill-color: var(--neutral-a11);
@@ -15018,7 +15022,10 @@
15018
15022
  opacity: var(--v-placeholder-opacity, 1);
15019
15023
  }
15020
15024
  @media (hover: hover) {
15021
- .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled)))) {
15025
+ .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled,:-moz-read-only)))) {
15026
+ background-color: var(--v-bg-hover);
15027
+ }
15028
+ .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled,:read-only)))) {
15022
15029
  background-color: var(--v-bg-hover);
15023
15030
  }
15024
15031
  }
@@ -15031,11 +15038,7 @@
15031
15038
  -webkit-box-shadow: inset 0 0 0 1px var(--focus-a5);
15032
15039
  box-shadow: inset 0 0 0 1px var(--focus-a5);
15033
15040
  }
15034
- .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:-moz-read-only))) {
15035
- background-color: var(--neutral-a2);
15036
- background-image: linear-gradient(var(--neutral-a2), var(--neutral-a2));
15037
- }
15038
- .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:read-only))) {
15041
+ .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:disabled)) {
15039
15042
  background-color: var(--neutral-a2);
15040
15043
  background-image: linear-gradient(var(--neutral-a2), var(--neutral-a2));
15041
15044
  }
@@ -15044,15 +15047,15 @@
15044
15047
  box-shadow: inset 0 0 0 1px var(--v-border);
15045
15048
  }
15046
15049
  @media (hover: hover) {
15047
- .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled)))) {
15050
+ .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled,:-moz-read-only)))) {
15051
+ box-shadow: inset 0 0 0 1px var(--v-border-hover);
15052
+ }
15053
+ .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled,:read-only)))) {
15048
15054
  -webkit-box-shadow: inset 0 0 0 1px var(--v-border-hover);
15049
15055
  box-shadow: inset 0 0 0 1px var(--v-border-hover);
15050
15056
  }
15051
15057
  }
15052
- .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:-moz-read-only))) {
15053
- box-shadow: inset 0 0 0 var(--text-area-border-width) var(--neutral-a6);
15054
- }
15055
- .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:read-only))) {
15058
+ .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:disabled)) {
15056
15059
  -webkit-box-shadow: inset 0 0 0 var(--text-area-border-width) var(--neutral-a6);
15057
15060
  box-shadow: inset 0 0 0 var(--text-area-border-width) var(--neutral-a6);
15058
15061
  }
@@ -15073,18 +15076,11 @@
15073
15076
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
15074
15077
  background-image: none;
15075
15078
  }
15076
- .kui-TextAreaRoot:where(.kui-variant-soft):where(:has(.kui-TextAreaInput:where(:disabled,:-moz-read-only))) {
15077
- background-color: var(--neutral-a3);
15078
- background-image: none;
15079
- }
15080
- .kui-TextAreaRoot:where(.kui-variant-soft):where(:has(.kui-TextAreaInput:where(:disabled,:read-only))) {
15079
+ .kui-TextAreaRoot:where(.kui-variant-soft):where(:has(.kui-TextAreaInput:disabled)) {
15081
15080
  background-color: var(--neutral-a3);
15082
15081
  background-image: none;
15083
15082
  }
15084
- .kui-TextAreaRoot:where(.kui-variant-ghost):where(:has(.kui-TextAreaInput:where(:disabled,:-moz-read-only))) {
15085
- color: var(--neutral-a8);
15086
- }
15087
- .kui-TextAreaRoot:where(.kui-variant-ghost):where(:has(.kui-TextAreaInput:where(:disabled,:read-only))) {
15083
+ .kui-TextAreaRoot:where(.kui-variant-ghost):where(:has(.kui-TextAreaInput:disabled)) {
15088
15084
  color: var(--neutral-a8);
15089
15085
  }
15090
15086
  .kui-TextAreaRoot:where(.kui-variant-ghost):where(:has(.kui-TextAreaInput:where(:autofill,[data-com-onepassword-filled]):not(:disabled,:-moz-read-only))) {
@@ -15096,10 +15092,7 @@
15096
15092
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
15097
15093
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
15098
15094
  }
15099
- .kui-TextAreaRoot:where(.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:-moz-read-only))) {
15100
- color: var(--neutral-a8);
15101
- }
15102
- .kui-TextAreaRoot:where(.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:read-only))) {
15095
+ .kui-TextAreaRoot:where(.kui-variant-surface):where(:has(.kui-TextAreaInput:disabled)) {
15103
15096
  color: var(--neutral-a8);
15104
15097
  }
15105
15098
  .kui-TextAreaRoot:where(.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:autofill,[data-com-onepassword-filled]):not(:disabled,:-moz-read-only))) {
@@ -15162,6 +15155,12 @@
15162
15155
  -webkit-box-shadow: inset 0 0 0 1px var(--field-edge-disabled);
15163
15156
  box-shadow: inset 0 0 0 1px var(--field-edge-disabled);
15164
15157
  }
15158
+ .kui-TextAreaRoot:where(:has(.kui-TextAreaInput:-moz-read-only:not(:disabled))) {
15159
+ background-color: transparent;
15160
+ }
15161
+ .kui-TextAreaRoot:where(:has(.kui-TextAreaInput:read-only:not(:disabled))) {
15162
+ background-color: transparent;
15163
+ }
15165
15164
  .kui-TextAreaInput:where(:-moz-read-only:not(:disabled)) {
15166
15165
  color: var(--neutral-a11);
15167
15166
  -webkit-text-fill-color: var(--neutral-a11);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@womp/kookie-ui",
3
- "version": "0.35.4",
3
+ "version": "0.35.5",
4
4
  "description": "Kookie UI v1: a React component library with design tokens, flexible theming, a full layout shell, and comprehensive documentation.",
5
5
  "keywords": [
6
6
  "react",
@@ -253,7 +253,7 @@
253
253
 
254
254
  /* Hover state */
255
255
  @media (hover: hover) {
256
- &:where(:hover:not(:has(.kui-TextAreaInput:where(:focus, :disabled)))) {
256
+ &:where(:hover:not(:has(.kui-TextAreaInput:where(:focus, :disabled, :read-only)))) {
257
257
  background-color: var(--v-bg-hover);
258
258
  }
259
259
  }
@@ -265,8 +265,8 @@
265
265
  box-shadow: inset 0 0 0 1px var(--focus-a5);
266
266
  }
267
267
 
268
- /* Disabled/read-only state */
269
- &:where(:has(.kui-TextAreaInput:where(:disabled, :read-only))) {
268
+ /* Disabled state */
269
+ &:where(:has(.kui-TextAreaInput:disabled)) {
270
270
  background-color: var(--neutral-a2);
271
271
  background-image: linear-gradient(var(--neutral-a2), var(--neutral-a2));
272
272
  }
@@ -279,13 +279,13 @@
279
279
 
280
280
  /* Hover state border */
281
281
  @media (hover: hover) {
282
- &:where(:hover:not(:has(.kui-TextAreaInput:where(:focus, :disabled)))) {
282
+ &:where(:hover:not(:has(.kui-TextAreaInput:where(:focus, :disabled, :read-only)))) {
283
283
  box-shadow: inset 0 0 0 1px var(--v-border-hover);
284
284
  }
285
285
  }
286
286
 
287
287
  /* Disabled state border */
288
- &:where(:has(.kui-TextAreaInput:where(:disabled, :read-only))) {
288
+ &:where(:has(.kui-TextAreaInput:disabled)) {
289
289
  box-shadow: inset 0 0 0 var(--text-area-border-width) var(--neutral-a6);
290
290
  }
291
291
  }
@@ -313,7 +313,7 @@
313
313
  background-image: none;
314
314
  }
315
315
 
316
- &:where(:has(.kui-TextAreaInput:where(:disabled, :read-only))) {
316
+ &:where(:has(.kui-TextAreaInput:disabled)) {
317
317
  background-color: var(--neutral-a3);
318
318
  background-image: none;
319
319
  }
@@ -321,7 +321,7 @@
321
321
 
322
322
  /* Ghost disabled - specific color */
323
323
  .kui-TextAreaRoot:where(.kui-variant-ghost) {
324
- &:where(:has(.kui-TextAreaInput:where(:disabled, :read-only))) {
324
+ &:where(:has(.kui-TextAreaInput:disabled)) {
325
325
  color: var(--neutral-a8);
326
326
  }
327
327
 
@@ -334,7 +334,7 @@
334
334
 
335
335
  /* Surface disabled - specific color */
336
336
  .kui-TextAreaRoot:where(.kui-variant-surface) {
337
- &:where(:has(.kui-TextAreaInput:where(:disabled, :read-only))) {
337
+ &:where(:has(.kui-TextAreaInput:disabled)) {
338
338
  color: var(--neutral-a8);
339
339
  }
340
340
 
@@ -392,6 +392,12 @@
392
392
  }
393
393
  }
394
394
 
395
+ /* Read-only drops the fill in every variant and keeps the edge and the value: nothing here
396
+ takes input, but the value is still there to select and copy. */
397
+ .kui-TextAreaRoot:where(:has(.kui-TextAreaInput:read-only:not(:disabled))) {
398
+ background-color: transparent;
399
+ }
400
+
395
401
  /***************************************************************************************************
396
402
  * *
397
403
  * DISABLED STATES *
@@ -358,7 +358,7 @@
358
358
 
359
359
  /* Hover effects */
360
360
  @media (hover: hover) {
361
- &:where(:hover:not(:has(.kui-TextFieldInput:where(:focus, :disabled)))) {
361
+ &:where(:hover:not(:has(.kui-TextFieldInput:where(:focus, :disabled, :read-only)))) {
362
362
  background-color: var(--accent-2);
363
363
  box-shadow: inset 0 0 0 1px var(--accent-7);
364
364
  }
@@ -385,7 +385,7 @@
385
385
  box-shadow: inset 0 0 0 1px var(--focus-a5);
386
386
  }
387
387
 
388
- &:where(:has(.kui-TextFieldInput:where(:disabled, :read-only))) {
388
+ &:where(:has(.kui-TextFieldInput:disabled)) {
389
389
  /* Blend with grey */
390
390
  background-image: linear-gradient(var(--neutral-a2), var(--neutral-a2));
391
391
  box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
@@ -452,7 +452,7 @@
452
452
 
453
453
  /* Hover effects */
454
454
  @media (hover: hover) {
455
- &:where(:hover:not(:has(.kui-TextFieldInput:where(:focus, :disabled)))) {
455
+ &:where(:hover:not(:has(.kui-TextFieldInput:where(:focus, :disabled, :read-only)))) {
456
456
  background-color: var(--accent-4);
457
457
  }
458
458
  }
@@ -478,7 +478,7 @@
478
478
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
479
479
  }
480
480
 
481
- &:where(:has(.kui-TextFieldInput:where(:disabled, :read-only))) {
481
+ &:where(:has(.kui-TextFieldInput:disabled)) {
482
482
  background-color: var(--neutral-a3);
483
483
  }
484
484
  }
@@ -509,7 +509,7 @@
509
509
 
510
510
  /* Hover effects */
511
511
  @media (hover: hover) {
512
- &:where(:hover:not(:has(.kui-TextFieldInput:where(:focus, :disabled)))) {
512
+ &:where(:hover:not(:has(.kui-TextFieldInput:where(:focus, :disabled, :read-only)))) {
513
513
  background-color: var(--accent-3);
514
514
  }
515
515
  }
@@ -525,7 +525,7 @@
525
525
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
526
526
  }
527
527
 
528
- &:where(:has(.kui-TextFieldInput:where(:disabled, :read-only))) {
528
+ &:where(:has(.kui-TextFieldInput:disabled)) {
529
529
  background-color: var(--neutral-a2);
530
530
  color: var(--neutral-a8);
531
531
  }
@@ -557,7 +557,7 @@
557
557
 
558
558
  /* Hover effects */
559
559
  @media (hover: hover) {
560
- &:where(:hover:not(:has(.kui-TextFieldInput:where(:focus, :disabled)))) {
560
+ &:where(:hover:not(:has(.kui-TextFieldInput:where(:focus, :disabled, :read-only)))) {
561
561
  background-color: var(--accent-3);
562
562
  box-shadow: inset 0 0 0 1px var(--accent-7);
563
563
  }
@@ -575,13 +575,19 @@
575
575
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
576
576
  }
577
577
 
578
- &:where(:has(.kui-TextFieldInput:where(:disabled, :read-only))) {
578
+ &:where(:has(.kui-TextFieldInput:disabled)) {
579
579
  background-color: var(--neutral-a2);
580
580
  box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
581
581
  color: var(--neutral-a8);
582
582
  }
583
583
  }
584
584
 
585
+ /* Read-only drops the fill in every variant and keeps the edge and the value: nothing here
586
+ takes input, but the value is still there to select and copy. */
587
+ .kui-TextFieldRoot:where(:has(.kui-TextFieldInput:read-only:not(:disabled))) {
588
+ background-color: transparent;
589
+ }
590
+
585
591
  /* Read-only text fields: the value stays selectable, so the caret cursor stays. */
586
592
  .kui-TextFieldInput {
587
593
  &:where(:read-only:not(:disabled)) {
package/styles.css CHANGED
@@ -11219,7 +11219,11 @@
11219
11219
  box-shadow: inset 0 0 0 1px var(--accent-6);
11220
11220
  }
11221
11221
  @media (hover: hover) {
11222
- .kui-TextFieldRoot:where(.kui-variant-outline):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled)))) {
11222
+ .kui-TextFieldRoot:where(.kui-variant-outline):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:-moz-read-only)))) {
11223
+ background-color: var(--accent-2);
11224
+ box-shadow: inset 0 0 0 1px var(--accent-7);
11225
+ }
11226
+ .kui-TextFieldRoot:where(.kui-variant-outline):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:read-only)))) {
11223
11227
  background-color: var(--accent-2);
11224
11228
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-7);
11225
11229
  box-shadow: inset 0 0 0 1px var(--accent-7);
@@ -11255,11 +11259,7 @@
11255
11259
  -webkit-box-shadow: inset 0 0 0 1px var(--focus-a5);
11256
11260
  box-shadow: inset 0 0 0 1px var(--focus-a5);
11257
11261
  }
11258
- .kui-TextFieldRoot:where(.kui-variant-outline):where(:has(.kui-TextFieldInput:where(:disabled,:-moz-read-only))) {
11259
- background-image: linear-gradient(var(--neutral-a2), var(--neutral-a2));
11260
- box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
11261
- }
11262
- .kui-TextFieldRoot:where(.kui-variant-outline):where(:has(.kui-TextFieldInput:where(:disabled,:read-only))) {
11262
+ .kui-TextFieldRoot:where(.kui-variant-outline):where(:has(.kui-TextFieldInput:disabled)) {
11263
11263
  background-image: linear-gradient(var(--neutral-a2), var(--neutral-a2));
11264
11264
  -webkit-box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
11265
11265
  box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
@@ -11328,7 +11328,10 @@
11328
11328
  background-color: var(--accent-3);
11329
11329
  }
11330
11330
  @media (hover: hover) {
11331
- .kui-TextFieldRoot:where(.kui-variant-soft):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled)))) {
11331
+ .kui-TextFieldRoot:where(.kui-variant-soft):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:-moz-read-only)))) {
11332
+ background-color: var(--accent-4);
11333
+ }
11334
+ .kui-TextFieldRoot:where(.kui-variant-soft):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:read-only)))) {
11332
11335
  background-color: var(--accent-4);
11333
11336
  }
11334
11337
  }
@@ -11365,10 +11368,7 @@
11365
11368
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
11366
11369
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
11367
11370
  }
11368
- .kui-TextFieldRoot:where(.kui-variant-soft):where(:has(.kui-TextFieldInput:where(:disabled,:-moz-read-only))) {
11369
- background-color: var(--neutral-a3);
11370
- }
11371
- .kui-TextFieldRoot:where(.kui-variant-soft):where(:has(.kui-TextFieldInput:where(:disabled,:read-only))) {
11371
+ .kui-TextFieldRoot:where(.kui-variant-soft):where(:has(.kui-TextFieldInput:disabled)) {
11372
11372
  background-color: var(--neutral-a3);
11373
11373
  }
11374
11374
  .kui-TextFieldRoot:where(.kui-variant-ghost) {
@@ -11400,7 +11400,10 @@
11400
11400
  color: var(--accent-a11);
11401
11401
  }
11402
11402
  @media (hover: hover) {
11403
- .kui-TextFieldRoot:where(.kui-variant-ghost):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled)))) {
11403
+ .kui-TextFieldRoot:where(.kui-variant-ghost):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:-moz-read-only)))) {
11404
+ background-color: var(--accent-3);
11405
+ }
11406
+ .kui-TextFieldRoot:where(.kui-variant-ghost):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:read-only)))) {
11404
11407
  background-color: var(--accent-3);
11405
11408
  }
11406
11409
  }
@@ -11416,11 +11419,7 @@
11416
11419
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
11417
11420
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
11418
11421
  }
11419
- .kui-TextFieldRoot:where(.kui-variant-ghost):where(:has(.kui-TextFieldInput:where(:disabled,:-moz-read-only))) {
11420
- background-color: var(--neutral-a2);
11421
- color: var(--neutral-a8);
11422
- }
11423
- .kui-TextFieldRoot:where(.kui-variant-ghost):where(:has(.kui-TextFieldInput:where(:disabled,:read-only))) {
11422
+ .kui-TextFieldRoot:where(.kui-variant-ghost):where(:has(.kui-TextFieldInput:disabled)) {
11424
11423
  background-color: var(--neutral-a2);
11425
11424
  color: var(--neutral-a8);
11426
11425
  }
@@ -11454,7 +11453,11 @@
11454
11453
  color: var(--accent-a11);
11455
11454
  }
11456
11455
  @media (hover: hover) {
11457
- .kui-TextFieldRoot:where(.kui-variant-surface):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled)))) {
11456
+ .kui-TextFieldRoot:where(.kui-variant-surface):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:-moz-read-only)))) {
11457
+ background-color: var(--accent-3);
11458
+ box-shadow: inset 0 0 0 1px var(--accent-7);
11459
+ }
11460
+ .kui-TextFieldRoot:where(.kui-variant-surface):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:read-only)))) {
11458
11461
  background-color: var(--accent-3);
11459
11462
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-7);
11460
11463
  box-shadow: inset 0 0 0 1px var(--accent-7);
@@ -11474,17 +11477,18 @@
11474
11477
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
11475
11478
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
11476
11479
  }
11477
- .kui-TextFieldRoot:where(.kui-variant-surface):where(:has(.kui-TextFieldInput:where(:disabled,:-moz-read-only))) {
11478
- background-color: var(--neutral-a2);
11479
- box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
11480
- color: var(--neutral-a8);
11481
- }
11482
- .kui-TextFieldRoot:where(.kui-variant-surface):where(:has(.kui-TextFieldInput:where(:disabled,:read-only))) {
11480
+ .kui-TextFieldRoot:where(.kui-variant-surface):where(:has(.kui-TextFieldInput:disabled)) {
11483
11481
  background-color: var(--neutral-a2);
11484
11482
  -webkit-box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
11485
11483
  box-shadow: inset 0 0 0 var(--text-field-border-width) var(--neutral-a6);
11486
11484
  color: var(--neutral-a8);
11487
11485
  }
11486
+ .kui-TextFieldRoot:where(:has(.kui-TextFieldInput:-moz-read-only:not(:disabled))) {
11487
+ background-color: transparent;
11488
+ }
11489
+ .kui-TextFieldRoot:where(:has(.kui-TextFieldInput:read-only:not(:disabled))) {
11490
+ background-color: transparent;
11491
+ }
11488
11492
  .kui-TextFieldInput:where(:-moz-read-only:not(:disabled)) {
11489
11493
  color: var(--neutral-a11);
11490
11494
  -webkit-text-fill-color: var(--neutral-a11);
@@ -20164,7 +20168,10 @@
20164
20168
  opacity: var(--v-placeholder-opacity, 1);
20165
20169
  }
20166
20170
  @media (hover: hover) {
20167
- .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled)))) {
20171
+ .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled,:-moz-read-only)))) {
20172
+ background-color: var(--v-bg-hover);
20173
+ }
20174
+ .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled,:read-only)))) {
20168
20175
  background-color: var(--v-bg-hover);
20169
20176
  }
20170
20177
  }
@@ -20177,11 +20184,7 @@
20177
20184
  -webkit-box-shadow: inset 0 0 0 1px var(--focus-a5);
20178
20185
  box-shadow: inset 0 0 0 1px var(--focus-a5);
20179
20186
  }
20180
- .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:-moz-read-only))) {
20181
- background-color: var(--neutral-a2);
20182
- background-image: linear-gradient(var(--neutral-a2), var(--neutral-a2));
20183
- }
20184
- .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:read-only))) {
20187
+ .kui-TextAreaRoot:where(.kui-variant-soft,.kui-variant-ghost,.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:disabled)) {
20185
20188
  background-color: var(--neutral-a2);
20186
20189
  background-image: linear-gradient(var(--neutral-a2), var(--neutral-a2));
20187
20190
  }
@@ -20190,15 +20193,15 @@
20190
20193
  box-shadow: inset 0 0 0 1px var(--v-border);
20191
20194
  }
20192
20195
  @media (hover: hover) {
20193
- .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled)))) {
20196
+ .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled,:-moz-read-only)))) {
20197
+ box-shadow: inset 0 0 0 1px var(--v-border-hover);
20198
+ }
20199
+ .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:hover:not(:has(.kui-TextAreaInput:where(:focus,:disabled,:read-only)))) {
20194
20200
  -webkit-box-shadow: inset 0 0 0 1px var(--v-border-hover);
20195
20201
  box-shadow: inset 0 0 0 1px var(--v-border-hover);
20196
20202
  }
20197
20203
  }
20198
- .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:-moz-read-only))) {
20199
- box-shadow: inset 0 0 0 var(--text-area-border-width) var(--neutral-a6);
20200
- }
20201
- .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:read-only))) {
20204
+ .kui-TextAreaRoot:where(.kui-variant-outline,.kui-variant-surface):where(:has(.kui-TextAreaInput:disabled)) {
20202
20205
  -webkit-box-shadow: inset 0 0 0 var(--text-area-border-width) var(--neutral-a6);
20203
20206
  box-shadow: inset 0 0 0 var(--text-area-border-width) var(--neutral-a6);
20204
20207
  }
@@ -20219,18 +20222,11 @@
20219
20222
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
20220
20223
  background-image: none;
20221
20224
  }
20222
- .kui-TextAreaRoot:where(.kui-variant-soft):where(:has(.kui-TextAreaInput:where(:disabled,:-moz-read-only))) {
20223
- background-color: var(--neutral-a3);
20224
- background-image: none;
20225
- }
20226
- .kui-TextAreaRoot:where(.kui-variant-soft):where(:has(.kui-TextAreaInput:where(:disabled,:read-only))) {
20225
+ .kui-TextAreaRoot:where(.kui-variant-soft):where(:has(.kui-TextAreaInput:disabled)) {
20227
20226
  background-color: var(--neutral-a3);
20228
20227
  background-image: none;
20229
20228
  }
20230
- .kui-TextAreaRoot:where(.kui-variant-ghost):where(:has(.kui-TextAreaInput:where(:disabled,:-moz-read-only))) {
20231
- color: var(--neutral-a8);
20232
- }
20233
- .kui-TextAreaRoot:where(.kui-variant-ghost):where(:has(.kui-TextAreaInput:where(:disabled,:read-only))) {
20229
+ .kui-TextAreaRoot:where(.kui-variant-ghost):where(:has(.kui-TextAreaInput:disabled)) {
20234
20230
  color: var(--neutral-a8);
20235
20231
  }
20236
20232
  .kui-TextAreaRoot:where(.kui-variant-ghost):where(:has(.kui-TextAreaInput:where(:autofill,[data-com-onepassword-filled]):not(:disabled,:-moz-read-only))) {
@@ -20242,10 +20238,7 @@
20242
20238
  -webkit-box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
20243
20239
  box-shadow: inset 0 0 0 1px var(--accent-a5), inset 0 0 0 1px var(--neutral-a4);
20244
20240
  }
20245
- .kui-TextAreaRoot:where(.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:-moz-read-only))) {
20246
- color: var(--neutral-a8);
20247
- }
20248
- .kui-TextAreaRoot:where(.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:disabled,:read-only))) {
20241
+ .kui-TextAreaRoot:where(.kui-variant-surface):where(:has(.kui-TextAreaInput:disabled)) {
20249
20242
  color: var(--neutral-a8);
20250
20243
  }
20251
20244
  .kui-TextAreaRoot:where(.kui-variant-surface):where(:has(.kui-TextAreaInput:where(:autofill,[data-com-onepassword-filled]):not(:disabled,:-moz-read-only))) {
@@ -20308,6 +20301,12 @@
20308
20301
  -webkit-box-shadow: inset 0 0 0 1px var(--field-edge-disabled);
20309
20302
  box-shadow: inset 0 0 0 1px var(--field-edge-disabled);
20310
20303
  }
20304
+ .kui-TextAreaRoot:where(:has(.kui-TextAreaInput:-moz-read-only:not(:disabled))) {
20305
+ background-color: transparent;
20306
+ }
20307
+ .kui-TextAreaRoot:where(:has(.kui-TextAreaInput:read-only:not(:disabled))) {
20308
+ background-color: transparent;
20309
+ }
20311
20310
  .kui-TextAreaInput:where(:-moz-read-only:not(:disabled)) {
20312
20311
  color: var(--neutral-a11);
20313
20312
  -webkit-text-fill-color: var(--neutral-a11);