@womp/kookie-ui 0.29.0 → 0.29.1
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 +9 -9
- package/package.json +1 -1
- package/src/components/segmented-control.css +1 -1
- package/src/components/select.css +2 -2
- package/src/components/text-area.css +2 -2
- package/src/components/text-field.css +3 -3
- package/src/styles/tokens/shadow.css +7 -2
- package/styles.css +11 -9
- package/tokens/base.css +2 -0
- package/tokens.css +2 -0
package/components.css
CHANGED
|
@@ -5907,8 +5907,8 @@
|
|
|
5907
5907
|
--text-field-focus-color: var(--focus-8);
|
|
5908
5908
|
--text-field-border-width: 1px;
|
|
5909
5909
|
background-color: var(--field-fill);
|
|
5910
|
-
-webkit-box-shadow: var(--
|
|
5911
|
-
box-shadow: var(--
|
|
5910
|
+
-webkit-box-shadow: var(--field-chrome);
|
|
5911
|
+
box-shadow: var(--field-chrome);
|
|
5912
5912
|
}
|
|
5913
5913
|
@media (hover: hover) {
|
|
5914
5914
|
.kui-TextFieldRoot:where(.kui-variant-raised):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:-moz-read-only)))) {
|
|
@@ -6364,7 +6364,7 @@
|
|
|
6364
6364
|
}
|
|
6365
6365
|
}
|
|
6366
6366
|
.kui-TextFieldGroup:where(.kui-variant-raised) {
|
|
6367
|
-
--text-field-group-edge: var(--
|
|
6367
|
+
--text-field-group-edge: var(--field-chrome);
|
|
6368
6368
|
--text-field-group-divider: var(--neutral-a4);
|
|
6369
6369
|
}
|
|
6370
6370
|
.kui-TextFieldGroup:where(.kui-variant-raised):where([data-disabled]) {
|
|
@@ -8815,8 +8815,8 @@
|
|
|
8815
8815
|
.kui-SegmentedControlRoot:where(.kui-variant-raised) {
|
|
8816
8816
|
--segmented-control-indicator-inset: 2px;
|
|
8817
8817
|
background-color: var(--field-fill);
|
|
8818
|
-
-webkit-box-shadow: var(--
|
|
8819
|
-
box-shadow: var(--
|
|
8818
|
+
-webkit-box-shadow: var(--field-chrome);
|
|
8819
|
+
box-shadow: var(--field-chrome);
|
|
8820
8820
|
}
|
|
8821
8821
|
.kui-SegmentedControlRoot:where(.kui-variant-raised):where([data-disabled]) {
|
|
8822
8822
|
background-color: var(--field-fill-disabled);
|
|
@@ -10028,8 +10028,8 @@
|
|
|
10028
10028
|
position: relative;
|
|
10029
10029
|
color: var(--accent-ink);
|
|
10030
10030
|
background-color: var(--field-fill);
|
|
10031
|
-
-webkit-box-shadow: var(--
|
|
10032
|
-
box-shadow: var(--
|
|
10031
|
+
-webkit-box-shadow: var(--field-chrome);
|
|
10032
|
+
box-shadow: var(--field-chrome);
|
|
10033
10033
|
}
|
|
10034
10034
|
.kui-SelectTrigger:where(.kui-variant-raised):where(:focus-visible) {
|
|
10035
10035
|
outline: 2px solid var(--focus-8);
|
|
@@ -15035,8 +15035,8 @@
|
|
|
15035
15035
|
--v-selection-color: var(--focus-a5);
|
|
15036
15036
|
--v-focus-color: var(--focus-8);
|
|
15037
15037
|
background-color: var(--field-fill);
|
|
15038
|
-
-webkit-box-shadow: var(--
|
|
15039
|
-
box-shadow: var(--
|
|
15038
|
+
-webkit-box-shadow: var(--field-chrome);
|
|
15039
|
+
box-shadow: var(--field-chrome);
|
|
15040
15040
|
}
|
|
15041
15041
|
:is(.kui-TextAreaRoot:where(.kui-variant-raised) :where(.kui-TextAreaInput))::-webkit-input-placeholder {
|
|
15042
15042
|
color: var(--neutral-a10);
|
package/package.json
CHANGED
|
@@ -326,7 +326,7 @@
|
|
|
326
326
|
.kui-SegmentedControlRoot:where(.kui-variant-raised) {
|
|
327
327
|
--segmented-control-indicator-inset: 2px;
|
|
328
328
|
background-color: var(--field-fill);
|
|
329
|
-
box-shadow: var(--
|
|
329
|
+
box-shadow: var(--field-chrome);
|
|
330
330
|
|
|
331
331
|
&:where([data-disabled]) {
|
|
332
332
|
background-color: var(--field-fill-disabled);
|
|
@@ -194,13 +194,13 @@
|
|
|
194
194
|
* *
|
|
195
195
|
***************************************************************************************************/
|
|
196
196
|
|
|
197
|
-
/* raised: the default. A field: the surface colour with --
|
|
197
|
+
/* raised: the default. A field: the surface colour with --field-chrome. */
|
|
198
198
|
|
|
199
199
|
.kui-SelectTrigger:where(.kui-variant-raised) {
|
|
200
200
|
position: relative;
|
|
201
201
|
color: var(--accent-ink);
|
|
202
202
|
background-color: var(--field-fill);
|
|
203
|
-
box-shadow: var(--
|
|
203
|
+
box-shadow: var(--field-chrome);
|
|
204
204
|
|
|
205
205
|
&:where(:focus-visible) {
|
|
206
206
|
outline: 2px solid var(--focus-8);
|
|
@@ -354,14 +354,14 @@
|
|
|
354
354
|
* *
|
|
355
355
|
***************************************************************************************************/
|
|
356
356
|
|
|
357
|
-
/* Raised variant: the default. The surface colour with --
|
|
357
|
+
/* Raised variant: the default. The surface colour with --field-chrome. */
|
|
358
358
|
.kui-TextAreaRoot:where(.kui-variant-raised) {
|
|
359
359
|
--text-area-border-width: 1px;
|
|
360
360
|
--v-selection-color: var(--focus-a5);
|
|
361
361
|
--v-focus-color: var(--focus-8);
|
|
362
362
|
|
|
363
363
|
background-color: var(--field-fill);
|
|
364
|
-
box-shadow: var(--
|
|
364
|
+
box-shadow: var(--field-chrome);
|
|
365
365
|
|
|
366
366
|
& :where(.kui-TextAreaInput) {
|
|
367
367
|
&::placeholder {
|
|
@@ -392,7 +392,7 @@
|
|
|
392
392
|
}
|
|
393
393
|
}
|
|
394
394
|
|
|
395
|
-
/* raised: the default. The surface colour with --
|
|
395
|
+
/* raised: the default. The surface colour with --field-chrome. */
|
|
396
396
|
|
|
397
397
|
.kui-TextFieldRoot:where(.kui-variant-raised) {
|
|
398
398
|
--text-field-selection-color: var(--focus-a5);
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
--text-field-border-width: 1px;
|
|
401
401
|
|
|
402
402
|
background-color: var(--field-fill);
|
|
403
|
-
box-shadow: var(--
|
|
403
|
+
box-shadow: var(--field-chrome);
|
|
404
404
|
|
|
405
405
|
/* Hover effects */
|
|
406
406
|
@media (hover: hover) {
|
|
@@ -792,7 +792,7 @@
|
|
|
792
792
|
|
|
793
793
|
/* Each variant's edge and divider are the ones its single field draws. */
|
|
794
794
|
.kui-TextFieldGroup:where(.kui-variant-raised) {
|
|
795
|
-
--text-field-group-edge: var(--
|
|
795
|
+
--text-field-group-edge: var(--field-chrome);
|
|
796
796
|
--text-field-group-divider: var(--neutral-a4);
|
|
797
797
|
|
|
798
798
|
&:where([data-disabled]) {
|
|
@@ -7,14 +7,17 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Components read roles:
|
|
9
9
|
* --surface-chrome: a raised card or a pane.
|
|
10
|
-
* --control-chrome: a raised control
|
|
10
|
+
* --control-chrome: a raised control, such as a button.
|
|
11
|
+
* --field-chrome: a raised field, such as a text field, a select or a raised segmented control.
|
|
11
12
|
* --control-chrome-active: the same control while pressed. The drop tightens toward the surface.
|
|
12
13
|
* --grip-chrome: the thumb of a switch or slider.
|
|
13
14
|
* --control-light: an optional light across a raised control's top half (a background image); none by default.
|
|
14
15
|
* --floating-chrome: a popover, menu, combobox or select list.
|
|
15
16
|
* --dialog-chrome: a dialog. Like v2, a dialog is a surface that covers the page.
|
|
16
17
|
*
|
|
17
|
-
* Fields (text field, text area, select trigger) read --
|
|
18
|
+
* Fields (text field, text area, select trigger, raised segmented control) read --field-chrome: the
|
|
19
|
+
* control's edge and its 1px drop, without the wide blur. A field sits in the panel; a button lifts
|
|
20
|
+
* off it. In a panel of fields the blur under every row read as too heavy (2026-10-29).
|
|
18
21
|
*/
|
|
19
22
|
|
|
20
23
|
/* prettier-ignore */
|
|
@@ -29,6 +32,7 @@
|
|
|
29
32
|
--surface-chrome: var(--shadow-4);
|
|
30
33
|
--control-chrome: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 14px -4px rgb(0 0 0 / 0.08);
|
|
31
34
|
--control-chrome-active: inset 0 0 0 1px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.04);
|
|
35
|
+
--field-chrome: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04);
|
|
32
36
|
--control-light: none;
|
|
33
37
|
/* A grip: the thumb of a switch or slider. A small round object, so a tighter, darker cast. */
|
|
34
38
|
--grip-chrome: 0 1px 2px rgb(0 0 0 / 0.16), 0 2px 6px -1px rgb(0 0 0 / 0.18);
|
|
@@ -51,6 +55,7 @@
|
|
|
51
55
|
inner edge. v1 drew this edge with a ring in every shadow; now only the control role has it. */
|
|
52
56
|
--control-chrome: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.35), 0 4px 14px -4px rgb(0 0 0 / 0.45);
|
|
53
57
|
--control-chrome-active: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 1px 1px rgb(0 0 0 / 0.4);
|
|
58
|
+
--field-chrome: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.3);
|
|
54
59
|
--control-light: none;
|
|
55
60
|
--grip-chrome: 0 1px 2px rgb(0 0 0 / 0.5), 0 2px 6px -1px rgb(0 0 0 / 0.4);
|
|
56
61
|
--floating-chrome: inset 0 1px 0 rgb(255 255 255 / 0.05), var(--shadow-3);
|
package/styles.css
CHANGED
|
@@ -3434,6 +3434,7 @@
|
|
|
3434
3434
|
--surface-chrome: var(--shadow-4);
|
|
3435
3435
|
--control-chrome: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 14px -4px rgb(0 0 0 / 0.08);
|
|
3436
3436
|
--control-chrome-active: inset 0 0 0 1px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.04);
|
|
3437
|
+
--field-chrome: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04);
|
|
3437
3438
|
--control-light: none;
|
|
3438
3439
|
--grip-chrome: 0 1px 2px rgb(0 0 0 / 0.16), 0 2px 6px -1px rgb(0 0 0 / 0.18);
|
|
3439
3440
|
--floating-chrome: var(--shadow-3);
|
|
@@ -3498,6 +3499,7 @@
|
|
|
3498
3499
|
--surface-chrome: var(--shadow-4);
|
|
3499
3500
|
--control-chrome: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.35), 0 4px 14px -4px rgb(0 0 0 / 0.45);
|
|
3500
3501
|
--control-chrome-active: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 1px 1px rgb(0 0 0 / 0.4);
|
|
3502
|
+
--field-chrome: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.3);
|
|
3501
3503
|
--control-light: none;
|
|
3502
3504
|
--grip-chrome: 0 1px 2px rgb(0 0 0 / 0.5), 0 2px 6px -1px rgb(0 0 0 / 0.4);
|
|
3503
3505
|
--floating-chrome: inset 0 1px 0 rgb(255 255 255 / 0.05), var(--shadow-3);
|
|
@@ -11064,8 +11066,8 @@
|
|
|
11064
11066
|
--text-field-focus-color: var(--focus-8);
|
|
11065
11067
|
--text-field-border-width: 1px;
|
|
11066
11068
|
background-color: var(--field-fill);
|
|
11067
|
-
-webkit-box-shadow: var(--
|
|
11068
|
-
box-shadow: var(--
|
|
11069
|
+
-webkit-box-shadow: var(--field-chrome);
|
|
11070
|
+
box-shadow: var(--field-chrome);
|
|
11069
11071
|
}
|
|
11070
11072
|
@media (hover: hover) {
|
|
11071
11073
|
.kui-TextFieldRoot:where(.kui-variant-raised):where(:hover:not(:has(.kui-TextFieldInput:where(:focus,:disabled,:-moz-read-only)))) {
|
|
@@ -11521,7 +11523,7 @@
|
|
|
11521
11523
|
}
|
|
11522
11524
|
}
|
|
11523
11525
|
.kui-TextFieldGroup:where(.kui-variant-raised) {
|
|
11524
|
-
--text-field-group-edge: var(--
|
|
11526
|
+
--text-field-group-edge: var(--field-chrome);
|
|
11525
11527
|
--text-field-group-divider: var(--neutral-a4);
|
|
11526
11528
|
}
|
|
11527
11529
|
.kui-TextFieldGroup:where(.kui-variant-raised):where([data-disabled]) {
|
|
@@ -13958,8 +13960,8 @@
|
|
|
13958
13960
|
.kui-SegmentedControlRoot:where(.kui-variant-raised) {
|
|
13959
13961
|
--segmented-control-indicator-inset: 2px;
|
|
13960
13962
|
background-color: var(--field-fill);
|
|
13961
|
-
-webkit-box-shadow: var(--
|
|
13962
|
-
box-shadow: var(--
|
|
13963
|
+
-webkit-box-shadow: var(--field-chrome);
|
|
13964
|
+
box-shadow: var(--field-chrome);
|
|
13963
13965
|
}
|
|
13964
13966
|
.kui-SegmentedControlRoot:where(.kui-variant-raised):where([data-disabled]) {
|
|
13965
13967
|
background-color: var(--field-fill-disabled);
|
|
@@ -15171,8 +15173,8 @@
|
|
|
15171
15173
|
position: relative;
|
|
15172
15174
|
color: var(--accent-ink);
|
|
15173
15175
|
background-color: var(--field-fill);
|
|
15174
|
-
-webkit-box-shadow: var(--
|
|
15175
|
-
box-shadow: var(--
|
|
15176
|
+
-webkit-box-shadow: var(--field-chrome);
|
|
15177
|
+
box-shadow: var(--field-chrome);
|
|
15176
15178
|
}
|
|
15177
15179
|
.kui-SelectTrigger:where(.kui-variant-raised):where(:focus-visible) {
|
|
15178
15180
|
outline: 2px solid var(--focus-8);
|
|
@@ -20178,8 +20180,8 @@
|
|
|
20178
20180
|
--v-selection-color: var(--focus-a5);
|
|
20179
20181
|
--v-focus-color: var(--focus-8);
|
|
20180
20182
|
background-color: var(--field-fill);
|
|
20181
|
-
-webkit-box-shadow: var(--
|
|
20182
|
-
box-shadow: var(--
|
|
20183
|
+
-webkit-box-shadow: var(--field-chrome);
|
|
20184
|
+
box-shadow: var(--field-chrome);
|
|
20183
20185
|
}
|
|
20184
20186
|
:is(.kui-TextAreaRoot:where(.kui-variant-raised) :where(.kui-TextAreaInput))::-webkit-input-placeholder {
|
|
20185
20187
|
color: var(--neutral-a10);
|
package/tokens/base.css
CHANGED
|
@@ -118,6 +118,7 @@
|
|
|
118
118
|
--surface-chrome: var(--shadow-4);
|
|
119
119
|
--control-chrome: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 14px -4px rgb(0 0 0 / 0.08);
|
|
120
120
|
--control-chrome-active: inset 0 0 0 1px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.04);
|
|
121
|
+
--field-chrome: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04);
|
|
121
122
|
--control-light: none;
|
|
122
123
|
--grip-chrome: 0 1px 2px rgb(0 0 0 / 0.16), 0 2px 6px -1px rgb(0 0 0 / 0.18);
|
|
123
124
|
--floating-chrome: var(--shadow-3);
|
|
@@ -149,6 +150,7 @@
|
|
|
149
150
|
--surface-chrome: var(--shadow-4);
|
|
150
151
|
--control-chrome: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.35), 0 4px 14px -4px rgb(0 0 0 / 0.45);
|
|
151
152
|
--control-chrome-active: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 1px 1px rgb(0 0 0 / 0.4);
|
|
153
|
+
--field-chrome: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.3);
|
|
152
154
|
--control-light: none;
|
|
153
155
|
--grip-chrome: 0 1px 2px rgb(0 0 0 / 0.5), 0 2px 6px -1px rgb(0 0 0 / 0.4);
|
|
154
156
|
--floating-chrome: inset 0 1px 0 rgb(255 255 255 / 0.05), var(--shadow-3);
|
package/tokens.css
CHANGED
|
@@ -3434,6 +3434,7 @@
|
|
|
3434
3434
|
--surface-chrome: var(--shadow-4);
|
|
3435
3435
|
--control-chrome: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 14px -4px rgb(0 0 0 / 0.08);
|
|
3436
3436
|
--control-chrome-active: inset 0 0 0 1px rgb(0 0 0 / 0.1), 0 1px 1px rgb(0 0 0 / 0.04);
|
|
3437
|
+
--field-chrome: inset 0 0 0 1px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.04);
|
|
3437
3438
|
--control-light: none;
|
|
3438
3439
|
--grip-chrome: 0 1px 2px rgb(0 0 0 / 0.16), 0 2px 6px -1px rgb(0 0 0 / 0.18);
|
|
3439
3440
|
--floating-chrome: var(--shadow-3);
|
|
@@ -3495,6 +3496,7 @@
|
|
|
3495
3496
|
--surface-chrome: var(--shadow-4);
|
|
3496
3497
|
--control-chrome: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.35), 0 4px 14px -4px rgb(0 0 0 / 0.45);
|
|
3497
3498
|
--control-chrome-active: inset 0 0 0 1px rgb(255 255 255 / 0.1), 0 1px 1px rgb(0 0 0 / 0.4);
|
|
3499
|
+
--field-chrome: inset 0 0 0 1px rgb(255 255 255 / 0.08), 0 1px 2px rgb(0 0 0 / 0.3);
|
|
3498
3500
|
--control-light: none;
|
|
3499
3501
|
--grip-chrome: 0 1px 2px rgb(0 0 0 / 0.5), 0 2px 6px -1px rgb(0 0 0 / 0.4);
|
|
3500
3502
|
--floating-chrome: inset 0 1px 0 rgb(255 255 255 / 0.05), var(--shadow-3);
|