@sovereignfs/ui 0.41.0 → 0.45.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 (174) hide show
  1. package/dist/Accordion.module.css +3 -0
  2. package/dist/Alert.module.css +62 -0
  3. package/dist/AspectRatio.module.css +15 -0
  4. package/dist/Badge.module.css +75 -9
  5. package/dist/Breadcrumb.module.css +49 -0
  6. package/dist/Button.module.css +12 -3
  7. package/dist/ButtonGroup.module.css +29 -0
  8. package/dist/Card.module.css +6 -0
  9. package/dist/Checkbox.module.css +3 -1
  10. package/dist/Collapsible.module.css +70 -0
  11. package/dist/Combobox.module.css +122 -0
  12. package/dist/Command.module.css +80 -0
  13. package/dist/ConfirmDialog.module.css +5 -1
  14. package/dist/DataTable.module.css +28 -0
  15. package/dist/DatePicker.module.css +6 -2
  16. package/dist/Dialog.module.css +3 -0
  17. package/dist/HoverCard.module.css +3 -0
  18. package/dist/Input.module.css +6 -1
  19. package/dist/Item.module.css +70 -0
  20. package/dist/Kbd.module.css +14 -0
  21. package/dist/Label.module.css +11 -0
  22. package/dist/Marker.module.css +33 -0
  23. package/dist/Menu.module.css +8 -1
  24. package/dist/Message.module.css +99 -0
  25. package/dist/MessageScroller.module.css +54 -0
  26. package/dist/NavigationMenu.module.css +53 -0
  27. package/dist/Pagination.module.css +98 -0
  28. package/dist/Progress.module.css +20 -0
  29. package/dist/RadioGroup.module.css +88 -0
  30. package/dist/Resizable.module.css +70 -0
  31. package/dist/ScrollArea.module.css +20 -0
  32. package/dist/Select.module.css +7 -3
  33. package/dist/Slider.module.css +95 -0
  34. package/dist/Table.module.css +45 -0
  35. package/dist/Tabs.module.css +6 -1
  36. package/dist/Toggle.module.css +6 -1
  37. package/dist/Typography.module.css +47 -0
  38. package/dist/index.d.ts +617 -5
  39. package/dist/index.js +1847 -499
  40. package/dist/tokens/primitives.css +22 -8
  41. package/package.json +1 -1
  42. package/src/components/Accordion/Accordion.module.css +3 -0
  43. package/src/components/Accordion/Accordion.stories.tsx +110 -0
  44. package/src/components/Accordion/Accordion.tsx +53 -0
  45. package/src/components/Accordion/__tests__/Accordion.test.tsx +61 -0
  46. package/src/components/Alert/Alert.module.css +62 -0
  47. package/src/components/Alert/Alert.stories.tsx +96 -0
  48. package/src/components/Alert/Alert.tsx +58 -0
  49. package/src/components/Alert/__tests__/Alert.test.tsx +75 -0
  50. package/src/components/AspectRatio/AspectRatio.module.css +15 -0
  51. package/src/components/AspectRatio/AspectRatio.stories.tsx +78 -0
  52. package/src/components/AspectRatio/AspectRatio.tsx +21 -0
  53. package/src/components/AspectRatio/__tests__/AspectRatio.test.tsx +27 -0
  54. package/src/components/Badge/Badge.module.css +75 -9
  55. package/src/components/Badge/Badge.stories.tsx +109 -1
  56. package/src/components/Badge/Badge.tsx +30 -2
  57. package/src/components/Badge/__tests__/Badge.test.tsx +26 -2
  58. package/src/components/Breadcrumb/Breadcrumb.module.css +49 -0
  59. package/src/components/Breadcrumb/Breadcrumb.stories.tsx +47 -0
  60. package/src/components/Breadcrumb/Breadcrumb.tsx +57 -0
  61. package/src/components/Breadcrumb/__tests__/Breadcrumb.test.tsx +52 -0
  62. package/src/components/Button/Button.module.css +12 -3
  63. package/src/components/Button/Button.stories.tsx +3 -2
  64. package/src/components/Button/Button.tsx +1 -1
  65. package/src/components/Button/__tests__/Button.test.tsx +10 -0
  66. package/src/components/ButtonGroup/ButtonGroup.module.css +29 -0
  67. package/src/components/ButtonGroup/ButtonGroup.stories.tsx +57 -0
  68. package/src/components/ButtonGroup/ButtonGroup.tsx +27 -0
  69. package/src/components/ButtonGroup/__tests__/ButtonGroup.test.tsx +29 -0
  70. package/src/components/Card/Card.module.css +6 -0
  71. package/src/components/Checkbox/Checkbox.module.css +3 -1
  72. package/src/components/Collapsible/Collapsible.module.css +70 -0
  73. package/src/components/Collapsible/Collapsible.stories.tsx +62 -0
  74. package/src/components/Collapsible/Collapsible.tsx +66 -0
  75. package/src/components/Collapsible/__tests__/Collapsible.test.tsx +71 -0
  76. package/src/components/Combobox/Combobox.module.css +122 -0
  77. package/src/components/Combobox/Combobox.stories.tsx +79 -0
  78. package/src/components/Combobox/Combobox.tsx +186 -0
  79. package/src/components/Combobox/__tests__/Combobox.test.tsx +158 -0
  80. package/src/components/Command/Command.module.css +80 -0
  81. package/src/components/Command/Command.stories.tsx +104 -0
  82. package/src/components/Command/Command.tsx +168 -0
  83. package/src/components/Command/__tests__/Command.test.tsx +162 -0
  84. package/src/components/ConfirmDialog/ConfirmDialog.module.css +5 -1
  85. package/src/components/ContextMenu/ContextMenu.stories.tsx +81 -0
  86. package/src/components/ContextMenu/ContextMenu.tsx +100 -0
  87. package/src/components/ContextMenu/__tests__/ContextMenu.test.tsx +87 -0
  88. package/src/components/DataTable/DataTable.module.css +28 -0
  89. package/src/components/DataTable/DataTable.stories.tsx +74 -0
  90. package/src/components/DataTable/DataTable.tsx +154 -0
  91. package/src/components/DataTable/__tests__/DataTable.test.tsx +123 -0
  92. package/src/components/DatePicker/DatePicker.module.css +6 -2
  93. package/src/components/Dialog/Dialog.module.css +3 -0
  94. package/src/components/HoverCard/HoverCard.module.css +3 -0
  95. package/src/components/HoverCard/HoverCard.stories.tsx +66 -0
  96. package/src/components/HoverCard/HoverCard.tsx +111 -0
  97. package/src/components/HoverCard/__tests__/HoverCard.test.tsx +99 -0
  98. package/src/components/Icon/icons/circle-check.tsx +21 -0
  99. package/src/components/Icon/icons/circle-x.tsx +22 -0
  100. package/src/components/Icon/icons/index.ts +8 -0
  101. package/src/components/Input/Input.module.css +6 -1
  102. package/src/components/Item/Item.module.css +70 -0
  103. package/src/components/Item/Item.stories.tsx +62 -0
  104. package/src/components/Item/Item.tsx +54 -0
  105. package/src/components/Item/__tests__/Item.test.tsx +39 -0
  106. package/src/components/Kbd/Kbd.module.css +14 -0
  107. package/src/components/Kbd/Kbd.stories.tsx +32 -0
  108. package/src/components/Kbd/Kbd.tsx +12 -0
  109. package/src/components/Kbd/__tests__/Kbd.test.tsx +14 -0
  110. package/src/components/Label/Label.module.css +11 -0
  111. package/src/components/Label/Label.stories.tsx +40 -0
  112. package/src/components/Label/Label.tsx +24 -0
  113. package/src/components/Label/__tests__/Label.test.tsx +32 -0
  114. package/src/components/Marker/Marker.module.css +33 -0
  115. package/src/components/Marker/Marker.stories.tsx +39 -0
  116. package/src/components/Marker/Marker.tsx +34 -0
  117. package/src/components/Marker/__tests__/Marker.test.tsx +23 -0
  118. package/src/components/Menu/Menu.module.css +8 -1
  119. package/src/components/Menu/Menu.tsx +30 -8
  120. package/src/components/Menubar/Menubar.stories.tsx +52 -0
  121. package/src/components/Menubar/Menubar.tsx +42 -0
  122. package/src/components/Menubar/__tests__/Menubar.test.tsx +45 -0
  123. package/src/components/Message/Message.module.css +99 -0
  124. package/src/components/Message/Message.stories.tsx +79 -0
  125. package/src/components/Message/Message.tsx +41 -0
  126. package/src/components/Message/__tests__/Message.test.tsx +46 -0
  127. package/src/components/MessageScroller/MessageScroller.module.css +54 -0
  128. package/src/components/MessageScroller/MessageScroller.stories.tsx +84 -0
  129. package/src/components/MessageScroller/MessageScroller.tsx +72 -0
  130. package/src/components/MessageScroller/__tests__/MessageScroller.test.tsx +105 -0
  131. package/src/components/NavigationMenu/NavigationMenu.module.css +53 -0
  132. package/src/components/NavigationMenu/NavigationMenu.stories.tsx +58 -0
  133. package/src/components/NavigationMenu/NavigationMenu.tsx +125 -0
  134. package/src/components/NavigationMenu/__tests__/NavigationMenu.test.tsx +93 -0
  135. package/src/components/Pagination/Pagination.module.css +98 -0
  136. package/src/components/Pagination/Pagination.stories.tsx +49 -0
  137. package/src/components/Pagination/Pagination.tsx +87 -0
  138. package/src/components/Pagination/__tests__/Pagination.test.tsx +56 -0
  139. package/src/components/Progress/Progress.module.css +20 -0
  140. package/src/components/Progress/Progress.stories.tsx +40 -0
  141. package/src/components/Progress/Progress.tsx +35 -0
  142. package/src/components/Progress/__tests__/Progress.test.tsx +31 -0
  143. package/src/components/RadioGroup/RadioGroup.module.css +88 -0
  144. package/src/components/RadioGroup/RadioGroup.stories.tsx +69 -0
  145. package/src/components/RadioGroup/RadioGroup.tsx +99 -0
  146. package/src/components/RadioGroup/__tests__/RadioGroup.test.tsx +59 -0
  147. package/src/components/Resizable/Resizable.module.css +70 -0
  148. package/src/components/Resizable/Resizable.stories.tsx +82 -0
  149. package/src/components/Resizable/Resizable.tsx +313 -0
  150. package/src/components/Resizable/__tests__/Resizable.test.tsx +128 -0
  151. package/src/components/ScrollArea/ScrollArea.module.css +20 -0
  152. package/src/components/ScrollArea/ScrollArea.stories.tsx +57 -0
  153. package/src/components/ScrollArea/ScrollArea.tsx +27 -0
  154. package/src/components/ScrollArea/__tests__/ScrollArea.test.tsx +39 -0
  155. package/src/components/Select/Select.module.css +7 -3
  156. package/src/components/Slider/Slider.module.css +95 -0
  157. package/src/components/Slider/Slider.stories.tsx +64 -0
  158. package/src/components/Slider/Slider.tsx +77 -0
  159. package/src/components/Slider/__tests__/Slider.test.tsx +45 -0
  160. package/src/components/Table/Table.module.css +45 -0
  161. package/src/components/Table/Table.stories.tsx +125 -0
  162. package/src/components/Table/Table.tsx +51 -0
  163. package/src/components/Table/__tests__/Table.test.tsx +50 -0
  164. package/src/components/Tabs/Tabs.module.css +6 -1
  165. package/src/components/Toggle/Toggle.module.css +6 -1
  166. package/src/components/Typography/Typography.module.css +47 -0
  167. package/src/components/Typography/Typography.stories.tsx +62 -0
  168. package/src/components/Typography/Typography.tsx +30 -0
  169. package/src/components/Typography/__tests__/Typography.test.tsx +34 -0
  170. package/src/index.ts +78 -1
  171. package/src/stories/DesignSystemOverview.stories.tsx +614 -2
  172. package/src/stories/MobilePatterns.stories.tsx +8 -2
  173. package/src/stories/TokenGallery.stories.tsx +112 -16
  174. package/src/tokens/primitives.css +22 -8
@@ -0,0 +1,70 @@
1
+ .root {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: var(--sv-space-3);
5
+ width: 100%;
6
+ padding: var(--sv-space-3);
7
+ border: none;
8
+ border-radius: var(--sv-radius-md);
9
+ background: transparent;
10
+ text-align: left;
11
+ font-family: var(--sv-font-family);
12
+ color: inherit;
13
+ }
14
+
15
+ .interactive {
16
+ cursor: pointer;
17
+ }
18
+
19
+ @media (hover: hover) {
20
+ .interactive:not(:disabled):hover {
21
+ background: var(--sv-color-surface-sunken);
22
+ }
23
+ }
24
+
25
+ .interactive:focus-visible {
26
+ outline: 2px solid var(--sv-color-focus-ring);
27
+ outline-offset: -2px;
28
+ }
29
+
30
+ .interactive:disabled {
31
+ opacity: 0.5;
32
+ cursor: not-allowed;
33
+ }
34
+
35
+ @media (pointer: coarse) {
36
+ .root {
37
+ min-height: var(--sv-touch-target-min, 44px);
38
+ }
39
+ }
40
+
41
+ .leading,
42
+ .trailing {
43
+ flex-shrink: 0;
44
+ display: flex;
45
+ align-items: center;
46
+ }
47
+
48
+ .content {
49
+ display: flex;
50
+ flex-direction: column;
51
+ min-width: 0;
52
+ flex: 1;
53
+ }
54
+
55
+ .title {
56
+ font-size: var(--sv-font-size-sm);
57
+ font-weight: var(--sv-font-weight-medium);
58
+ color: var(--sv-color-text-primary);
59
+ overflow: hidden;
60
+ text-overflow: ellipsis;
61
+ white-space: nowrap;
62
+ }
63
+
64
+ .description {
65
+ font-size: var(--sv-font-size-caption);
66
+ color: var(--sv-color-text-muted);
67
+ overflow: hidden;
68
+ text-overflow: ellipsis;
69
+ white-space: nowrap;
70
+ }
@@ -0,0 +1,14 @@
1
+ .kbd {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ min-width: 1.5em;
6
+ padding: var(--sv-space-1) var(--sv-space-2);
7
+ border: 1px solid var(--sv-color-border-strong);
8
+ border-radius: var(--sv-radius-sm);
9
+ background: var(--sv-color-surface-sunken);
10
+ color: var(--sv-color-text-primary);
11
+ font-family: var(--sv-font-family-mono);
12
+ font-size: var(--sv-font-size-xs);
13
+ line-height: 1;
14
+ }
@@ -0,0 +1,11 @@
1
+ .label {
2
+ font-size: var(--sv-font-size-sm);
3
+ font-weight: var(--sv-font-weight-medium);
4
+ color: var(--sv-color-text-primary);
5
+ cursor: default;
6
+ }
7
+
8
+ .disabled {
9
+ opacity: 0.5;
10
+ cursor: not-allowed;
11
+ }
@@ -0,0 +1,33 @@
1
+ .marker {
2
+ display: inline-flex;
3
+ align-items: center;
4
+ justify-content: center;
5
+ min-width: 16px;
6
+ height: 16px;
7
+ padding: 0 4px;
8
+ margin: 0 1px;
9
+ border: none;
10
+ border-radius: var(--sv-radius-full);
11
+ background: var(--sv-color-accent-subtle);
12
+ color: var(--sv-color-accent);
13
+ font-family: var(--sv-font-family);
14
+ font-size: var(--sv-font-size-label);
15
+ font-weight: var(--sv-font-weight-semibold);
16
+ line-height: 1;
17
+ vertical-align: super;
18
+ }
19
+
20
+ button.marker {
21
+ cursor: pointer;
22
+ }
23
+
24
+ button.marker:focus-visible {
25
+ outline: 2px solid var(--sv-color-focus-ring);
26
+ outline-offset: 1px;
27
+ }
28
+
29
+ @media (hover: hover) {
30
+ button.marker:hover {
31
+ background: color-mix(in srgb, var(--sv-color-accent-subtle) 70%, var(--sv-color-accent) 30%);
32
+ }
33
+ }
@@ -1,6 +1,13 @@
1
1
  /* Menu — the item list shared by both presentations (Popover panel on
2
2
  * desktop, Drawer panel on mobile); the presentational chrome around it is
3
- * entirely owned by those two components, not duplicated here. */
3
+ * entirely owned by those two components, not duplicated here.
4
+ *
5
+ * Sizing audit: reviewed against this scale's other compact controls —
6
+ * --sv-radius-sm (6px) and --sv-font-size-sm (14px) already fit. The 44px
7
+ * min-height is a deliberate design choice, kept unconditional (not gated
8
+ * to pointer:coarse like Button/Checkbox) because this menu doubles as a
9
+ * full Drawer sheet on mobile, where every item must stay comfortably
10
+ * tappable. */
4
11
 
5
12
  .list {
6
13
  list-style: none;
@@ -0,0 +1,99 @@
1
+ .row {
2
+ display: flex;
3
+ flex-direction: column;
4
+ max-width: 80%;
5
+ }
6
+
7
+ .user {
8
+ align-self: flex-end;
9
+ align-items: flex-end;
10
+ }
11
+
12
+ .assistant,
13
+ .tool {
14
+ align-self: flex-start;
15
+ align-items: flex-start;
16
+ }
17
+
18
+ .bubble {
19
+ padding: var(--sv-space-2) var(--sv-space-3);
20
+ border-radius: var(--sv-radius-xl);
21
+ font-size: var(--sv-font-size-sm);
22
+ line-height: 1.5;
23
+ white-space: pre-wrap;
24
+ overflow-wrap: break-word;
25
+ }
26
+
27
+ .user .bubble {
28
+ background: var(--sv-color-accent);
29
+ color: var(--sv-color-text-on-accent);
30
+ border-bottom-right-radius: var(--sv-radius-sm);
31
+ }
32
+
33
+ .assistant .bubble {
34
+ background: var(--sv-color-surface-raised);
35
+ border: 1px solid var(--sv-color-border);
36
+ color: var(--sv-color-text-primary);
37
+ border-bottom-left-radius: var(--sv-radius-sm);
38
+ }
39
+
40
+ .tool .bubble {
41
+ background: var(--sv-color-surface-sunken);
42
+ color: var(--sv-color-text-muted);
43
+ font-family: var(--sv-font-family-mono);
44
+ font-size: var(--sv-font-size-xs);
45
+ border-bottom-left-radius: var(--sv-radius-sm);
46
+ }
47
+
48
+ .actions {
49
+ display: flex;
50
+ gap: var(--sv-space-2);
51
+ margin-top: var(--sv-space-1);
52
+ font-size: var(--sv-font-size-caption);
53
+ color: var(--sv-color-text-muted);
54
+ }
55
+
56
+ /* Typing indicator — three dots, staggered pulse. */
57
+ .typingDots {
58
+ display: inline-flex;
59
+ align-items: center;
60
+ gap: 3px;
61
+ padding: var(--sv-space-1) 0;
62
+ }
63
+
64
+ .dot {
65
+ width: 6px;
66
+ height: 6px;
67
+ border-radius: var(--sv-radius-full);
68
+ background: currentColor;
69
+ opacity: 0.4;
70
+ animation: typing-pulse 1.2s ease-in-out infinite;
71
+ }
72
+
73
+ .dot:nth-child(2) {
74
+ animation-delay: 0.2s;
75
+ }
76
+
77
+ .dot:nth-child(3) {
78
+ animation-delay: 0.4s;
79
+ }
80
+
81
+ @keyframes typing-pulse {
82
+ 0%,
83
+ 80%,
84
+ 100% {
85
+ opacity: 0.4;
86
+ transform: scale(0.85);
87
+ }
88
+ 40% {
89
+ opacity: 1;
90
+ transform: scale(1);
91
+ }
92
+ }
93
+
94
+ @media (prefers-reduced-motion: reduce) {
95
+ .dot {
96
+ animation: none;
97
+ opacity: 0.7;
98
+ }
99
+ }
@@ -0,0 +1,54 @@
1
+ .root {
2
+ position: relative;
3
+ height: 100%;
4
+ min-height: 0;
5
+ }
6
+
7
+ .scrollContainer {
8
+ height: 100%;
9
+ overflow-y: auto;
10
+ overscroll-behavior: contain;
11
+ display: flex;
12
+ flex-direction: column;
13
+ gap: var(--sv-space-3);
14
+ padding: var(--sv-space-3);
15
+ scrollbar-width: thin;
16
+ scrollbar-color: var(--sv-color-border-strong) transparent;
17
+ }
18
+
19
+ .scrollContainer::-webkit-scrollbar {
20
+ width: 8px;
21
+ }
22
+
23
+ .scrollContainer::-webkit-scrollbar-thumb {
24
+ background: var(--sv-color-border-strong);
25
+ border-radius: var(--sv-radius-full);
26
+ }
27
+
28
+ .jumpButton {
29
+ position: absolute;
30
+ bottom: var(--sv-space-3);
31
+ left: 50%;
32
+ transform: translateX(-50%);
33
+ padding: var(--sv-space-1) var(--sv-space-3);
34
+ border: 1px solid var(--sv-color-border);
35
+ border-radius: var(--sv-radius-full);
36
+ background: var(--sv-color-surface-raised);
37
+ box-shadow: var(--sv-shadow-popover);
38
+ color: var(--sv-color-text-primary);
39
+ font-family: var(--sv-font-family);
40
+ font-size: var(--sv-font-size-caption);
41
+ font-weight: var(--sv-font-weight-medium);
42
+ cursor: pointer;
43
+ }
44
+
45
+ .jumpButton:focus-visible {
46
+ outline: 2px solid var(--sv-color-focus-ring);
47
+ outline-offset: 2px;
48
+ }
49
+
50
+ @media (hover: hover) {
51
+ .jumpButton:hover {
52
+ background: var(--sv-color-surface-sunken);
53
+ }
54
+ }
@@ -0,0 +1,53 @@
1
+ .nav {
2
+ min-width: 0;
3
+ }
4
+
5
+ .list {
6
+ display: flex;
7
+ align-items: center;
8
+ gap: var(--sv-space-1);
9
+ margin: 0;
10
+ padding: 0;
11
+ list-style: none;
12
+ }
13
+
14
+ .link,
15
+ .trigger {
16
+ display: inline-flex;
17
+ align-items: center;
18
+ height: 36px;
19
+ padding: 0 var(--sv-space-3);
20
+ border: none;
21
+ border-radius: var(--sv-radius-md);
22
+ background: transparent;
23
+ color: var(--sv-color-text-primary);
24
+ font-family: var(--sv-font-family);
25
+ font-size: var(--sv-font-size-sm);
26
+ font-weight: var(--sv-font-weight-medium);
27
+ text-decoration: none;
28
+ cursor: pointer;
29
+ }
30
+
31
+ @media (hover: hover) {
32
+ .link:hover,
33
+ .trigger:hover {
34
+ background: var(--sv-color-surface-sunken);
35
+ }
36
+ }
37
+
38
+ .link:focus-visible,
39
+ .trigger:focus-visible {
40
+ outline: 2px solid var(--sv-color-focus-ring);
41
+ outline-offset: 2px;
42
+ }
43
+
44
+ .triggerOpen {
45
+ background: var(--sv-color-surface-sunken);
46
+ }
47
+
48
+ @media (pointer: coarse) {
49
+ .link,
50
+ .trigger {
51
+ min-height: var(--sv-touch-target-min, 44px);
52
+ }
53
+ }
@@ -0,0 +1,98 @@
1
+ .nav {
2
+ display: flex;
3
+ align-items: center;
4
+ gap: var(--sv-space-1);
5
+ }
6
+
7
+ .list {
8
+ display: flex;
9
+ align-items: center;
10
+ gap: var(--sv-space-1);
11
+ margin: 0;
12
+ padding: 0;
13
+ list-style: none;
14
+ }
15
+
16
+ /* Icon-only nav buttons — same footprint as Dialog's close button. */
17
+ .navButton {
18
+ display: inline-flex;
19
+ align-items: center;
20
+ justify-content: center;
21
+ width: var(--sv-space-8);
22
+ height: var(--sv-space-8);
23
+ border: none;
24
+ border-radius: var(--sv-radius-md);
25
+ background: transparent;
26
+ color: var(--sv-color-text-primary);
27
+ cursor: pointer;
28
+ }
29
+
30
+ .navButton:disabled {
31
+ opacity: 0.5;
32
+ cursor: not-allowed;
33
+ }
34
+
35
+ @media (hover: hover) {
36
+ .navButton:not(:disabled):hover {
37
+ background: var(--sv-color-surface-sunken);
38
+ }
39
+ }
40
+
41
+ .navButton:focus-visible {
42
+ outline: 2px solid var(--sv-color-focus-ring);
43
+ outline-offset: 2px;
44
+ }
45
+
46
+ @media (pointer: coarse) {
47
+ .navButton {
48
+ width: var(--sv-touch-target-min, 44px);
49
+ height: var(--sv-touch-target-min, 44px);
50
+ }
51
+ }
52
+
53
+ .pageButton {
54
+ display: inline-flex;
55
+ align-items: center;
56
+ justify-content: center;
57
+ min-width: var(--sv-space-8);
58
+ height: var(--sv-space-8);
59
+ padding: 0 var(--sv-space-2);
60
+ border: none;
61
+ border-radius: var(--sv-radius-md);
62
+ background: transparent;
63
+ color: var(--sv-color-text-primary);
64
+ font-size: var(--sv-font-size-sm);
65
+ cursor: pointer;
66
+ }
67
+
68
+ @media (hover: hover) {
69
+ .pageButton:not(.active):hover {
70
+ background: var(--sv-color-surface-sunken);
71
+ }
72
+ }
73
+
74
+ .pageButton:focus-visible {
75
+ outline: 2px solid var(--sv-color-focus-ring);
76
+ outline-offset: 2px;
77
+ }
78
+
79
+ .active {
80
+ background: var(--sv-color-accent);
81
+ color: var(--sv-color-text-on-accent);
82
+ }
83
+
84
+ @media (pointer: coarse) {
85
+ .pageButton {
86
+ min-width: var(--sv-touch-target-min, 44px);
87
+ height: var(--sv-touch-target-min, 44px);
88
+ }
89
+ }
90
+
91
+ .ellipsis {
92
+ display: inline-flex;
93
+ align-items: center;
94
+ justify-content: center;
95
+ min-width: var(--sv-space-8);
96
+ height: var(--sv-space-8);
97
+ color: var(--sv-color-text-muted);
98
+ }
@@ -0,0 +1,20 @@
1
+ .track {
2
+ width: 100%;
3
+ height: 8px;
4
+ border-radius: var(--sv-radius-full);
5
+ background: var(--sv-color-surface-sunken);
6
+ overflow: hidden;
7
+ }
8
+
9
+ .fill {
10
+ height: 100%;
11
+ border-radius: var(--sv-radius-full);
12
+ background: var(--sv-color-accent);
13
+ transition: width 0.2s ease;
14
+ }
15
+
16
+ @media (prefers-reduced-motion: reduce) {
17
+ .fill {
18
+ transition: none;
19
+ }
20
+ }
@@ -0,0 +1,88 @@
1
+ .root {
2
+ display: flex;
3
+ flex-direction: column;
4
+ gap: var(--sv-space-2);
5
+ }
6
+
7
+ .option {
8
+ display: inline-flex;
9
+ align-items: center;
10
+ gap: var(--sv-space-2);
11
+ cursor: pointer;
12
+ }
13
+
14
+ /* The visual circle — same 18px size and touch-target-expansion technique
15
+ as Checkbox's box, radius-full instead of radius-sm. */
16
+ .circle {
17
+ --radio-circle-size: 18px;
18
+ position: relative;
19
+ flex-shrink: 0;
20
+ width: var(--radio-circle-size);
21
+ height: var(--radio-circle-size);
22
+ border-radius: var(--sv-radius-full);
23
+ border: 1.5px solid var(--sv-color-border-strong);
24
+ background: var(--sv-color-surface);
25
+ transition:
26
+ background-color 0.15s ease,
27
+ border-color 0.15s ease;
28
+ display: flex;
29
+ align-items: center;
30
+ justify-content: center;
31
+ }
32
+
33
+ .checked {
34
+ border-color: var(--sv-color-accent);
35
+ }
36
+
37
+ .dot {
38
+ width: 8px;
39
+ height: 8px;
40
+ border-radius: var(--sv-radius-full);
41
+ background: var(--sv-color-accent);
42
+ pointer-events: none;
43
+ }
44
+
45
+ /* Hide the native input visually but keep it accessible */
46
+ .input {
47
+ position: absolute;
48
+ inset: 0;
49
+ opacity: 0;
50
+ margin: 0;
51
+ width: 100%;
52
+ height: 100%;
53
+ cursor: pointer;
54
+ }
55
+
56
+ .input:disabled {
57
+ cursor: not-allowed;
58
+ }
59
+
60
+ /* Expand the tappable region to the platform's minimum touch target without
61
+ growing the visible circle. Gated to (pointer: coarse), the *primary*
62
+ pointer, so a touchscreen laptop with mouse/trackpad as primary keeps
63
+ desktop density — same reasoning as Checkbox. */
64
+ @media (pointer: coarse) {
65
+ .input {
66
+ inset: calc((var(--radio-circle-size) - var(--sv-touch-target-min, 44px)) / 2);
67
+ }
68
+ }
69
+
70
+ .input:focus-visible {
71
+ outline: none;
72
+ }
73
+
74
+ .circle:has(.input:focus-visible) {
75
+ outline: 2px solid var(--sv-color-focus-ring);
76
+ outline-offset: 2px;
77
+ }
78
+
79
+ .optionLabel {
80
+ font-size: var(--sv-font-size-sm);
81
+ color: var(--sv-color-text-primary);
82
+ user-select: none;
83
+ }
84
+
85
+ .disabled {
86
+ opacity: 0.5;
87
+ cursor: not-allowed;
88
+ }
@@ -0,0 +1,70 @@
1
+ .group {
2
+ display: flex;
3
+ flex-direction: row;
4
+ width: 100%;
5
+ height: 100%;
6
+ min-height: 320px;
7
+ border: 1px solid var(--sv-color-border);
8
+ border-radius: var(--sv-radius-lg);
9
+ overflow: hidden;
10
+ background: var(--sv-color-surface);
11
+ }
12
+
13
+ .groupVertical {
14
+ flex-direction: column;
15
+ }
16
+
17
+ .panel {
18
+ min-width: 0;
19
+ min-height: 0;
20
+ overflow: auto;
21
+ background: var(--sv-color-surface);
22
+ }
23
+
24
+ .handle {
25
+ position: relative;
26
+ flex-shrink: 0;
27
+ width: 12px;
28
+ padding: 0;
29
+ border: 0;
30
+ border-inline: 1px solid var(--sv-color-border);
31
+ cursor: col-resize;
32
+ background: var(--sv-color-surface-sunken);
33
+ }
34
+
35
+ .handleVertical {
36
+ width: 100%;
37
+ height: 12px;
38
+ border-inline: 0;
39
+ border-block: 1px solid var(--sv-color-border);
40
+ cursor: row-resize;
41
+ }
42
+
43
+ .handle::before {
44
+ position: absolute;
45
+ inset-block: 50%;
46
+ inset-inline: 50%;
47
+ width: 2px;
48
+ height: 40px;
49
+ content: '';
50
+ background: var(--sv-color-border-strong);
51
+ border-radius: var(--sv-radius-full);
52
+ transform: translate(-50%, -50%);
53
+ }
54
+
55
+ .handleVertical::before {
56
+ width: 40px;
57
+ height: 2px;
58
+ }
59
+
60
+ @media (hover: hover) {
61
+ .handle:hover {
62
+ background: var(--sv-color-accent-subtle);
63
+ }
64
+ }
65
+
66
+ .handle:focus-visible {
67
+ background: var(--sv-color-accent-subtle);
68
+ outline: 2px solid var(--sv-color-focus-ring);
69
+ outline-offset: -2px;
70
+ }
@@ -0,0 +1,20 @@
1
+ .root {
2
+ overflow: auto;
3
+ overscroll-behavior: contain;
4
+ scrollbar-width: thin;
5
+ scrollbar-color: var(--sv-color-border-strong) transparent;
6
+ }
7
+
8
+ .root::-webkit-scrollbar {
9
+ width: 8px;
10
+ height: 8px;
11
+ }
12
+
13
+ .root::-webkit-scrollbar-track {
14
+ background: transparent;
15
+ }
16
+
17
+ .root::-webkit-scrollbar-thumb {
18
+ background: var(--sv-color-border-strong);
19
+ border-radius: var(--sv-radius-full);
20
+ }
@@ -8,8 +8,11 @@
8
8
  .select {
9
9
  display: block;
10
10
  width: 100%;
11
- /* Right-pad to clear the custom chevron */
12
- padding: var(--sv-space-2) var(--sv-space-8) var(--sv-space-2) var(--sv-space-3);
11
+ /* 36px rendered height. Explicit height + border-box, same technique as
12
+ Input. Right-pad to clear the custom chevron. */
13
+ height: 36px;
14
+ box-sizing: border-box;
15
+ padding: 4px var(--sv-space-8) 4px var(--sv-space-3);
13
16
  font-family: var(--sv-font-family);
14
17
  font-size: var(--sv-font-size-sm);
15
18
  line-height: 1.5;
@@ -25,8 +28,9 @@
25
28
  box-shadow 0.15s ease;
26
29
  }
27
30
 
28
- /* sm — compact for table cells and inline controls */
31
+ /* sm — compact for table cells and inline controls. 32px height. */
29
32
  .sm .select {
33
+ height: 32px;
30
34
  padding: 2px var(--sv-space-6) 2px var(--sv-space-2);
31
35
  font-size: var(--sv-font-size-sm);
32
36
  line-height: 1.4;