gooee 0.42.0 → 0.47.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.
Files changed (46) hide show
  1. package/package.json +1 -1
  2. package/src/components/Alert/Alert.module.css +2 -2
  3. package/src/components/AnimatedNumber/AnimatedNumber.module.css +3 -3
  4. package/src/components/Badge/Badge.module.css +2 -2
  5. package/src/components/Button/Button.module.css +4 -4
  6. package/src/components/Card/Card.module.css +7 -5
  7. package/src/components/CodeBlock/CodeBlock.module.css +4 -2
  8. package/src/components/CopyButton/CopyButton.module.css +1 -1
  9. package/src/components/Dial/Dial.module.css +4 -3
  10. package/src/components/Dial/Dial.tsx +32 -1
  11. package/src/components/Dialog/Dialog.module.css +10 -4
  12. package/src/components/DropdownMenu/DropdownMenu.module.css +1 -1
  13. package/src/components/FormField/FormField.module.css +23 -3
  14. package/src/components/HoldToConfirm/HoldToConfirm.module.css +37 -52
  15. package/src/components/HoldToConfirm/HoldToConfirm.tsx +146 -60
  16. package/src/components/Input/Input.module.css +6 -4
  17. package/src/components/InputGroup/InputGroup.module.css +3 -0
  18. package/src/components/Kbd/Kbd.module.css +2 -2
  19. package/src/components/LivePill/LivePill.module.css +213 -31
  20. package/src/components/LivePill/LivePill.tsx +45 -14
  21. package/src/components/MorphButton/MorphButton.module.css +8 -4
  22. package/src/components/NumberInput/NumberInput.module.css +9 -5
  23. package/src/components/Pagination/Pagination.module.css +1 -0
  24. package/src/components/PickerWheel/PickerWheel.module.css +1 -1
  25. package/src/components/Popover/Popover.module.css +12 -4
  26. package/src/components/Prose/Prose.module.css +5 -3
  27. package/src/components/RulerScrubber/RulerScrubber.module.css +2 -2
  28. package/src/components/SegmentedControl/SegmentedControl.module.css +5 -5
  29. package/src/components/Select/Select.module.css +6 -4
  30. package/src/components/Sheet/Sheet.module.css +12 -5
  31. package/src/components/Skeleton/Skeleton.module.css +1 -1
  32. package/src/components/SplitFlap/SplitFlap.module.css +1 -1
  33. package/src/components/SwipeDeck/SwipeDeck.module.css +1 -1
  34. package/src/components/Switch/Switch.module.css +7 -5
  35. package/src/components/Table/Table.module.css +8 -6
  36. package/src/components/Tabs/Tabs.module.css +34 -33
  37. package/src/components/Tabs/Tabs.tsx +64 -21
  38. package/src/components/Textarea/Textarea.module.css +5 -3
  39. package/src/components/ThemeToggle/ThemeToggle.module.css +6 -15
  40. package/src/components/ThemeToggle/ThemeToggle.tsx +108 -9
  41. package/src/components/Toast/Toast.module.css +8 -5
  42. package/src/components/Toggle/Toggle.module.css +4 -4
  43. package/src/internal/icons.tsx +7 -0
  44. package/src/internal/motion.ts +1 -1
  45. package/src/internal/themeReveal.ts +63 -0
  46. package/src/tokens.css +49 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gooee",
3
- "version": "0.42.0",
3
+ "version": "0.47.0",
4
4
  "description": "React components in black, white and grey with one blue accent. Copy them into your app with npx gooee add <name>.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://gooee.dev",
@@ -2,7 +2,7 @@
2
2
  display: flex;
3
3
  align-items: flex-start;
4
4
  gap: var(--gooee-space-4);
5
- padding: var(--gooee-space-5);
5
+ padding: calc(var(--gooee-space-5) - var(--gooee-line));
6
6
  border: var(--gooee-line) solid var(--gooee-color-border);
7
7
  border-radius: var(--gooee-radius-md);
8
8
  background: var(--gooee-color-surface);
@@ -73,7 +73,7 @@
73
73
  min-width: 0;
74
74
  display: flex;
75
75
  flex-direction: column;
76
- gap: var(--gooee-space-1);
76
+ gap: var(--gooee-space-2);
77
77
  }
78
78
 
79
79
  .title {
@@ -2,7 +2,7 @@
2
2
  display: inline-flex;
3
3
  width: fit-content;
4
4
  font-variant-numeric: tabular-nums;
5
- line-height: 1.15;
5
+ line-height: var(--gooee-leading-tight);
6
6
  }
7
7
 
8
8
  .visual {
@@ -12,7 +12,7 @@
12
12
 
13
13
  .digit {
14
14
  display: inline-block;
15
- height: 1.15em;
15
+ height: var(--gooee-leading-tight);
16
16
  overflow: hidden;
17
17
  animation: enter var(--gooee-motion-slow) var(--gooee-ease-out);
18
18
  }
@@ -25,7 +25,7 @@
25
25
 
26
26
  .cell {
27
27
  display: block;
28
- height: 1.15em;
28
+ height: var(--gooee-leading-tight);
29
29
  text-align: center;
30
30
  }
31
31
 
@@ -5,12 +5,12 @@
5
5
  gap: var(--gooee-space-2);
6
6
  max-width: 100%;
7
7
  height: var(--gooee-badge-h);
8
- padding: 0 var(--gooee-space-3);
8
+ padding: 0 calc(var(--gooee-space-3) - var(--gooee-line));
9
9
  border: var(--gooee-line) solid transparent;
10
10
  border-radius: var(--gooee-radius-full);
11
11
  font-size: var(--gooee-text-xs);
12
12
  font-weight: var(--gooee-weight-medium);
13
- line-height: 1;
13
+ line-height: var(--gooee-leading-none);
14
14
  white-space: nowrap;
15
15
  font-variant-numeric: tabular-nums;
16
16
  }
@@ -8,7 +8,7 @@
8
8
  place-items: center;
9
9
  max-width: 100%;
10
10
  min-height: var(--h);
11
- padding: 0 var(--gooee-space-6);
11
+ padding: 0 calc(var(--gooee-control-pad-md) - var(--gooee-line));
12
12
  --bg: transparent;
13
13
  --line: transparent;
14
14
  border: var(--gooee-line) solid var(--line);
@@ -16,7 +16,7 @@
16
16
  background: var(--bg);
17
17
  font-size: var(--gooee-text-md);
18
18
  font-weight: var(--gooee-weight-medium);
19
- line-height: 1;
19
+ line-height: var(--gooee-leading-none);
20
20
  text-decoration: none;
21
21
  white-space: nowrap;
22
22
  cursor: pointer;
@@ -91,8 +91,8 @@
91
91
  cursor: progress;
92
92
  }
93
93
 
94
- .sm { --h: var(--gooee-control-h-sm); padding: 0 var(--gooee-space-5); font-size: var(--gooee-text-sm); }
95
- .lg { --h: var(--gooee-control-h-lg); padding: 0 var(--gooee-space-7); font-size: var(--gooee-text-lg); }
94
+ .sm { --h: var(--gooee-control-h-sm); padding: 0 calc(var(--gooee-control-pad-sm) - var(--gooee-line)); font-size: var(--gooee-text-sm); }
95
+ .lg { --h: var(--gooee-control-h-lg); padding: 0 calc(var(--gooee-control-pad-lg) - var(--gooee-line)); font-size: var(--gooee-text-lg); }
96
96
  .full { display: grid; width: 100%; }
97
97
 
98
98
  .primary {
@@ -3,21 +3,23 @@
3
3
  display: flex;
4
4
  flex-direction: column;
5
5
  min-width: 0;
6
- border: var(--gooee-line) solid var(--gooee-color-border);
6
+ /* The line is drawn inside the edge and takes no space, so the outer size is the content's own 4px steps. */
7
+ outline: var(--gooee-line) solid var(--gooee-color-border);
8
+ outline-offset: calc(var(--gooee-line) * -1);
7
9
  border-radius: var(--gooee-radius-panel);
8
10
  background: var(--gooee-color-surface);
9
11
  box-shadow: var(--gooee-shadow-1);
10
12
  transition:
11
13
  transform var(--gooee-motion-slow) var(--gooee-ease-spring),
12
14
  box-shadow var(--gooee-motion-slow) var(--gooee-ease-out),
13
- border-color var(--gooee-motion-base) var(--gooee-ease-out);
15
+ outline-color var(--gooee-motion-base) var(--gooee-ease-out);
14
16
  }
15
17
 
16
18
  @media (hover: hover) {
17
19
  .interactive:hover {
18
20
  transform: translateY(calc(var(--gooee-shift-sm) * -1));
19
21
  box-shadow: var(--gooee-shadow-3);
20
- border-color: var(--gooee-color-border-strong);
22
+ outline-color: var(--gooee-color-border-strong);
21
23
  }
22
24
 
23
25
  /* The lift moves the card off a pointer on its lower edge, and it would drop back and lift again.
@@ -35,7 +37,7 @@
35
37
  .media {
36
38
  overflow: hidden;
37
39
  border-bottom: var(--gooee-line) solid var(--gooee-color-border);
38
- border-radius: calc(var(--gooee-radius-panel) - var(--gooee-line)) calc(var(--gooee-radius-panel) - var(--gooee-line)) 0 0;
40
+ border-radius: var(--gooee-radius-panel) var(--gooee-radius-panel) 0 0;
39
41
  }
40
42
 
41
43
  .media > * { transition: transform var(--gooee-motion-slower) var(--gooee-ease-out); }
@@ -77,6 +79,6 @@
77
79
  display: flex;
78
80
  align-items: center;
79
81
  gap: var(--gooee-space-3);
80
- padding: var(--gooee-space-4) var(--gooee-space-6);
82
+ padding: calc(var(--gooee-space-4) - var(--gooee-line)) var(--gooee-space-6) var(--gooee-space-4) var(--gooee-space-6);
81
83
  border-top: var(--gooee-line) solid var(--gooee-color-border);
82
84
  }
@@ -2,7 +2,9 @@
2
2
  .root {
3
3
  min-width: 0;
4
4
  overflow: hidden;
5
- border: var(--gooee-line) solid var(--gooee-color-border);
5
+ /* The line is drawn inside the edge and takes no space, so the outer size is the content's own 4px steps. */
6
+ outline: var(--gooee-line) solid var(--gooee-color-border);
7
+ outline-offset: calc(var(--gooee-line) * -1);
6
8
  border-radius: var(--gooee-radius-md);
7
9
  background: var(--gooee-code-bg);
8
10
  color: var(--gooee-code-fg);
@@ -55,7 +57,7 @@
55
57
  .gutter {
56
58
  position: sticky;
57
59
  left: 0;
58
- padding: 0 var(--gooee-space-4) 0 var(--gooee-space-5);
60
+ padding: 0 calc(var(--gooee-space-4) - var(--gooee-line)) 0 var(--gooee-space-5);
59
61
  border-right: var(--gooee-line) solid var(--gooee-color-border);
60
62
  background: var(--gooee-code-bg);
61
63
  color: var(--gooee-code-gutter);
@@ -28,7 +28,7 @@
28
28
  }
29
29
 
30
30
  .sm { --s: var(--gooee-control-h-sm); }
31
- .withLabel { padding: 0 var(--gooee-space-5) 0 var(--gooee-space-4); }
31
+ .withLabel { padding: 0 calc(var(--gooee-space-5) - var(--gooee-line)) 0 calc(var(--gooee-space-4) - var(--gooee-line)); }
32
32
 
33
33
  @media (hover: hover) {
34
34
  .root:hover { background: var(--gooee-color-surface-hover); }
@@ -22,7 +22,7 @@
22
22
  font-size: var(--gooee-text-4xl);
23
23
  font-weight: var(--gooee-weight-semibold);
24
24
  letter-spacing: var(--gooee-tracking-tight);
25
- line-height: 1;
25
+ line-height: var(--gooee-leading-none);
26
26
  }
27
27
 
28
28
  .detail {
@@ -176,7 +176,7 @@
176
176
  font-size: var(--gooee-text-sm);
177
177
  font-variant-numeric: tabular-nums;
178
178
  white-space: nowrap;
179
- line-height: 1;
179
+ line-height: var(--gooee-leading-none);
180
180
  }
181
181
 
182
182
  .cap {
@@ -250,7 +250,8 @@
250
250
  width: 100%;
251
251
  height: var(--gooee-ruler-h);
252
252
  border-radius: var(--gooee-radius-md);
253
- /* A sideways swipe turns it; up and down still scrolls the page. */
253
+ /* A sideways swipe turns it; up and down still scrolls the page. Dial.tsx takes a touch that follows
254
+ the curve, so the page does not scroll under a turn. */
254
255
  touch-action: pan-y;
255
256
  }
256
257
 
@@ -1,6 +1,6 @@
1
1
  'use client'
2
2
 
3
- import { useId, useLayoutEffect, useRef, useState, type ComponentPropsWithRef, type PointerEvent, type ReactNode } from 'react'
3
+ import { useEffect, useId, useLayoutEffect, useRef, useState, type ComponentPropsWithRef, type PointerEvent, type ReactNode } from 'react'
4
4
  import { cx } from '../../internal/cx'
5
5
  import { clamp, lastStep, pull, roundTo, steps, wheelSteps, stepKey } from '../../internal/feel'
6
6
  import { Roll } from '../../internal/Roll'
@@ -170,6 +170,37 @@ export function Dial({
170
170
  setRim({ r: tokenNumber(el, '--gooee-dial-arc-radius'), gap: tokenNumber(el, '--gooee-dial-arc-gap') })
171
171
  }, [variant, sc.ref])
172
172
 
173
+ // The arc lets an up-and-down swipe scroll the page, but a finger following the curve also moves up or
174
+ // down. Once a touch moves more sideways than half its rise, it is a turn: the page stops taking it.
175
+ useEffect(() => {
176
+ if (variant !== 'arc') return
177
+ const el = sc.ref.current
178
+ if (!el) return
179
+ let from: { x: number; y: number } | null = null
180
+ let turning = false
181
+ const start = (e: TouchEvent) => {
182
+ from = { x: e.touches[0].clientX, y: e.touches[0].clientY }
183
+ turning = false
184
+ }
185
+ const move = (e: TouchEvent) => {
186
+ if (!from) return
187
+ if (!turning) {
188
+ const dx = Math.abs(e.touches[0].clientX - from.x)
189
+ const dy = Math.abs(e.touches[0].clientY - from.y)
190
+ if (dx + dy < 2) return
191
+ turning = dx > dy / 2
192
+ if (!turning) from = null
193
+ }
194
+ if (turning && e.cancelable) e.preventDefault()
195
+ }
196
+ el.addEventListener('touchstart', start, { passive: true })
197
+ el.addEventListener('touchmove', move, { passive: false })
198
+ return () => {
199
+ el.removeEventListener('touchstart', start)
200
+ el.removeEventListener('touchmove', move)
201
+ }
202
+ }, [variant, sc.ref])
203
+
173
204
  const shown = land(sc.at)
174
205
  useOnChange(shown, onScrub)
175
206
 
@@ -59,7 +59,7 @@
59
59
  align-items: flex-start;
60
60
  justify-content: space-between;
61
61
  gap: var(--gooee-space-4);
62
- padding: var(--gooee-space-7) var(--gooee-space-4) 0 var(--gooee-space-7);
62
+ padding: var(--gooee-space-7) calc(calc(var(--gooee-radius-panel) - var(--gooee-control-h-sm) / 2) + var(--gooee-control-h-sm) + var(--gooee-space-3)) 0 var(--gooee-space-7);
63
63
  }
64
64
 
65
65
  .titles {
@@ -85,12 +85,15 @@
85
85
  }
86
86
 
87
87
  .close {
88
+ /* On the corner's own centre, so it follows the curve: inset = corner - half its size, less the border. */
89
+ position: absolute;
90
+ top: calc(var(--gooee-radius-panel) - var(--gooee-control-h-sm) / 2 - var(--gooee-line));
91
+ right: calc(var(--gooee-radius-panel) - var(--gooee-control-h-sm) / 2 - var(--gooee-line));
88
92
  display: grid;
89
93
  place-items: center;
90
94
  flex: none;
91
- width: var(--gooee-hit-min);
92
- height: var(--gooee-hit-min);
93
- margin-top: calc(var(--gooee-space-3) * -1);
95
+ width: var(--gooee-control-h-sm);
96
+ height: var(--gooee-control-h-sm);
94
97
  padding: 0;
95
98
  border: 0;
96
99
  border-radius: var(--gooee-radius-full);
@@ -101,6 +104,9 @@
101
104
  transition: background-color var(--gooee-motion-fast) var(--gooee-ease-out);
102
105
  }
103
106
 
107
+ /* Looks 32px, keeps a 44px touch area. */
108
+ .close::after { content: ""; position: absolute; inset: calc((var(--gooee-control-h-sm) - var(--gooee-hit-min)) / 2); border-radius: inherit; }
109
+
104
110
  /* Only the icon turns and presses. The button is square to the pointer even though it looks round,
105
111
  so turning it would move its corners out from under the pointer and make it flicker. */
106
112
  .close svg { transition: transform var(--gooee-motion-slow) var(--gooee-ease-spring); }
@@ -5,7 +5,7 @@
5
5
  max-width: calc(100vw - var(--gooee-space-5) * 2);
6
6
  max-height: calc(100dvh - 2 * var(--gooee-space-5));
7
7
  overflow-y: auto;
8
- padding: var(--gooee-space-2);
8
+ padding: calc(var(--gooee-space-2) - var(--gooee-line));
9
9
  border: var(--gooee-line) solid var(--gooee-glass-edge, var(--gooee-color-border));
10
10
  border-radius: var(--gooee-radius-md);
11
11
  background: var(--gooee-glass-bg, var(--gooee-color-surface));
@@ -29,8 +29,10 @@
29
29
  /* Plain native controls inside get the library's field look, so a bare <input> or <select> fits in. */
30
30
  .control > :is(input:not([type="checkbox"], [type="radio"], [type="range"]), select, textarea) {
31
31
  min-height: var(--gooee-hit-min);
32
- padding: var(--gooee-space-3) var(--gooee-space-5);
33
- border: var(--gooee-line) solid var(--gooee-color-border-strong);
32
+ /* The line's width lives in --edge, so the padding takes it back and the words never move when it thickens. */
33
+ --edge: var(--gooee-line);
34
+ padding: calc(var(--gooee-space-3) - var(--edge)) calc(var(--gooee-space-5) - var(--edge));
35
+ border: var(--edge) solid var(--gooee-color-border-strong);
34
36
  border-radius: var(--gooee-radius-md);
35
37
  background: var(--gooee-color-surface);
36
38
  font-size: var(--gooee-text-md);
@@ -39,6 +41,24 @@
39
41
  box-shadow var(--gooee-motion-base) var(--gooee-ease-out);
40
42
  }
41
43
 
44
+ /* Safari draws a native select at its own height and ignores the 44px; without its native look it takes
45
+ the field's size. The arrow is the library's chevron, drawn as two thin strokes in the muted ink. */
46
+ .control > select:not([multiple]) {
47
+ --arrow: calc(var(--gooee-space-2) + var(--gooee-line));
48
+ --stroke: calc(var(--gooee-line) * 1.5);
49
+ appearance: none;
50
+ /* Room for the chevron, the line included: 44px, a whole number of grid steps. */
51
+ padding-inline-end: calc(var(--gooee-hit-min) - var(--edge));
52
+ background-image:
53
+ linear-gradient(45deg, transparent calc(50% - var(--stroke) / 2), var(--gooee-color-fg-muted) calc(50% - var(--stroke) / 2) calc(50% + var(--stroke) / 2), transparent calc(50% + var(--stroke) / 2)),
54
+ linear-gradient(-45deg, transparent calc(50% - var(--stroke) / 2), var(--gooee-color-fg-muted) calc(50% - var(--stroke) / 2) calc(50% + var(--stroke) / 2), transparent calc(50% + var(--stroke) / 2));
55
+ background-position:
56
+ calc(100% - var(--gooee-space-5) - var(--arrow)) 50%,
57
+ calc(100% - var(--gooee-space-5)) 50%;
58
+ background-size: var(--arrow) var(--arrow);
59
+ background-repeat: no-repeat;
60
+ }
61
+
42
62
  @media (hover: hover) {
43
63
  .control > :is(input, select, textarea):hover:not(:disabled) { border-color: var(--gooee-color-fg-muted); }
44
64
  }
@@ -51,7 +71,7 @@
51
71
 
52
72
  .root[data-invalid] .control > :is(input, select, textarea) {
53
73
  border-color: var(--gooee-color-danger);
54
- border-width: var(--gooee-line-thick);
74
+ --edge: var(--gooee-line-thick);
55
75
  animation: nudge var(--gooee-motion-slow) var(--gooee-ease-out);
56
76
  }
57
77
 
@@ -6,6 +6,14 @@
6
6
  min-width: 0;
7
7
  }
8
8
 
9
+ .row {
10
+ position: relative;
11
+ display: flex;
12
+ align-items: center;
13
+ gap: var(--gooee-space-2);
14
+ max-width: 100%;
15
+ }
16
+
9
17
  .shell {
10
18
  position: relative;
11
19
  display: flex;
@@ -23,14 +31,19 @@
23
31
  box-shadow var(--gooee-motion-fast) var(--gooee-ease-morph);
24
32
  }
25
33
 
26
- /* The pill grows into its confirm step on the morph curve, and folds back a little quicker. */
34
+ /* The confirm step: the button itself turns red in place and confirms on the next press. Its words stay. */
27
35
  .shell[data-phase="step"] {
36
+ background: var(--gooee-color-danger-solid);
37
+ box-shadow: none;
28
38
  transition:
29
- width var(--gooee-motion-morph) var(--gooee-ease-morph),
30
- height var(--gooee-motion-morph) var(--gooee-ease-morph),
31
- border-radius var(--gooee-motion-morph) var(--gooee-ease-morph),
39
+ background-color var(--gooee-motion-base) var(--gooee-ease-morph),
32
40
  box-shadow var(--gooee-motion-fast) var(--gooee-ease-morph);
33
41
  }
42
+ .shell[data-phase="step"] .main { color: var(--gooee-color-on-danger); }
43
+ @media (hover: hover) {
44
+ .shell[data-phase="step"]:hover { background: var(--gooee-color-danger-solid-hover); }
45
+ }
46
+ .shell[data-phase="step"]:has(.main:focus-visible) { box-shadow: var(--gooee-focus-ring); }
34
47
 
35
48
  .shell:has(.main:focus-visible) {
36
49
  box-shadow: inset 0 0 0 var(--gooee-line-thick) var(--gooee-color-border-strong), var(--gooee-focus-ring);
@@ -60,19 +73,9 @@
60
73
  outline: none;
61
74
  }
62
75
 
63
- .shell[data-phase="step"] .main,
64
76
  .shell[data-phase="done"] .main { cursor: default; }
65
77
  .shell[data-disabled] .main { cursor: not-allowed; }
66
78
 
67
- .shell[data-stack] {
68
- flex-direction: column;
69
- align-items: flex-start;
70
- }
71
-
72
- .shell[data-stack][data-phase="step"] { border-radius: var(--gooee-radius-panel); }
73
- .shell[data-stack] .main { height: var(--gooee-control-h-lg); }
74
- .shell[data-stack] .step { padding: 0 var(--gooee-space-2) var(--gooee-space-2); }
75
-
76
79
  .faces { display: grid; }
77
80
 
78
81
  .face {
@@ -108,57 +111,39 @@
108
111
  opacity: 0;
109
112
  }
110
113
 
111
- .step {
112
- display: flex;
113
- flex: none;
114
- align-items: center;
115
- gap: var(--gooee-space-2);
116
- padding-right: var(--gooee-space-1);
117
- }
114
+ .main { transition: color var(--gooee-motion-base) var(--gooee-ease-morph); }
118
115
 
119
- .step[inert] {
120
- visibility: hidden;
121
- transition: visibility 0s linear var(--gooee-motion-morph-out);
122
- }
123
-
124
- .cancel,
125
- .confirm {
126
- height: var(--gooee-hit-min);
127
- padding: 0 var(--gooee-space-5);
116
+ /* Cancel: a round button beside the red one, as tall as the pill. It buds out of the pill's edge
117
+ (HoldToConfirm.tsx draws the drop); closed, it takes no room and no focus. */
118
+ .cancel {
119
+ display: inline-grid;
120
+ flex: none;
121
+ place-items: center;
122
+ width: var(--gooee-control-h-lg);
123
+ height: var(--gooee-control-h-lg);
124
+ padding: 0;
128
125
  border: 0;
129
126
  border-radius: var(--gooee-radius-full);
130
- font: inherit;
131
- font-weight: var(--gooee-weight-medium);
132
- white-space: nowrap;
127
+ background: var(--gooee-color-surface);
128
+ box-shadow: inset 0 0 0 var(--gooee-line-thick) var(--gooee-color-border-strong);
129
+ color: var(--gooee-color-fg);
133
130
  cursor: pointer;
134
131
  outline: none;
135
132
  transition: background-color var(--gooee-motion-fast) var(--gooee-ease-out);
136
133
  }
137
-
138
- .cancel {
139
- background: transparent;
140
- color: var(--gooee-color-fg);
141
- }
142
-
143
- .confirm {
144
- background: var(--gooee-color-danger-solid);
145
- color: var(--gooee-color-on-danger);
146
- }
147
-
134
+ .cancel svg { width: var(--gooee-icon-md); height: var(--gooee-icon-md); }
135
+ /* Closed it takes no room, but stays on its open spot, so the drop flows back from where it was. */
136
+ .cancel[inert] { position: absolute; top: 0; left: calc(100% + var(--gooee-space-2)); visibility: hidden; }
148
137
  @media (hover: hover) {
149
138
  .cancel:hover { background: var(--gooee-color-surface-hover); }
150
- .confirm:hover { background: var(--gooee-color-danger-solid-hover); }
151
139
  }
140
+ .cancel:focus-visible { box-shadow: inset 0 0 0 var(--gooee-line-thick) var(--gooee-color-border-strong), var(--gooee-focus-ring); }
152
141
 
153
- .cancel:focus-visible,
154
- .confirm:focus-visible {
155
- box-shadow:
156
- inset 0 0 0 var(--gooee-line-focus) var(--gooee-color-fg),
157
- inset 0 0 0 calc(var(--gooee-line-focus) * 2) var(--gooee-color-surface);
158
- }
142
+ /* The drawn drop, over the row while it moves. */
143
+ .bud { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 1; }
159
144
 
160
145
  .hint {
161
- min-height: calc(var(--gooee-text-sm) * var(--gooee-leading-snug) * 2);
146
+ min-height: calc(round(nearest, var(--gooee-text-sm) * var(--gooee-leading-snug-ratio), 4px) * 2);
162
147
  margin: 0;
163
148
  color: var(--gooee-color-fg-muted);
164
149
  font-size: var(--gooee-text-sm);