@boyernick/standard-ui-react 0.2.2-canary.38 → 0.2.2-canary.39
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/package.json +1 -1
- package/src/autocomplete.tsx +1 -1
- package/src/combobox.tsx +14 -3
- package/src/context-menu.tsx +1 -1
- package/src/menu.tsx +1 -1
- package/src/select.tsx +1 -1
package/package.json
CHANGED
package/src/autocomplete.tsx
CHANGED
|
@@ -263,7 +263,7 @@ export const AutocompleteSeparator = ({
|
|
|
263
263
|
...props
|
|
264
264
|
}: AutocompleteSeparatorProps) => (
|
|
265
265
|
<BaseAutocomplete.Separator
|
|
266
|
-
className={cn("my-1 h-px bg-border-primary", className)}
|
|
266
|
+
className={cn("mx-3 my-1 h-px bg-border-primary", className)}
|
|
267
267
|
{...props}
|
|
268
268
|
/>
|
|
269
269
|
)
|
package/src/combobox.tsx
CHANGED
|
@@ -271,7 +271,7 @@ export const ComboboxSeparator = ({
|
|
|
271
271
|
...props
|
|
272
272
|
}: ComboboxSeparatorProps) => (
|
|
273
273
|
<BaseCombobox.Separator
|
|
274
|
-
className={cn("my-1 h-px bg-border-primary", className)}
|
|
274
|
+
className={cn("mx-3 my-1 h-px bg-border-primary", className)}
|
|
275
275
|
{...props}
|
|
276
276
|
/>
|
|
277
277
|
)
|
|
@@ -293,7 +293,12 @@ export const ComboboxChips = ({ className, ...props }: ComboboxChipsProps) => (
|
|
|
293
293
|
export const ComboboxChip = ({ className, ...props }: ComboboxChipProps) => (
|
|
294
294
|
<BaseCombobox.Chip
|
|
295
295
|
className={cn(
|
|
296
|
-
|
|
296
|
+
// Metrics are optical, not nominal. At 24px tall with 12px text the cap
|
|
297
|
+
// block leaves 7.9px above it, so `px-2` matches the sides to that rather
|
|
298
|
+
// than to a smaller nominal number; `gap-0.5` lands 6px of *visible* space
|
|
299
|
+
// before the cross, which carries 4.08px of its own clearance; and
|
|
300
|
+
// `rounded-sm` is what Badge already uses for a label this size.
|
|
301
|
+
"inline-flex h-6 items-center gap-0.5 rounded-sm bg-background-tertiary px-2 text-xs-strong text-fg-primary",
|
|
297
302
|
className,
|
|
298
303
|
)}
|
|
299
304
|
{...props}
|
|
@@ -307,7 +312,13 @@ export const ComboboxChipRemove = ({
|
|
|
307
312
|
}: ComboboxChipRemoveProps) => (
|
|
308
313
|
<BaseCombobox.ChipRemove
|
|
309
314
|
className={cn(
|
|
310
|
-
|
|
315
|
+
// `-mr-1` is optical compensation, not spacing: the cross glyph is drawn
|
|
316
|
+
// across the middle 10 units of a 24 viewBox, so a 14px icon box carries
|
|
317
|
+
// 4.08px of its own clearance on each side. Without this the chip's right
|
|
318
|
+
// edge reads ~10px away from the mark against 6px of padding on the left.
|
|
319
|
+
// It lives on the remove button rather than in the chip's padding so a
|
|
320
|
+
// chip with no remove button stays symmetric.
|
|
321
|
+
"-mr-1 inline-flex size-3.5 cursor-pointer items-center justify-center text-fg-primary outline-none focus-visible:outline-none",
|
|
311
322
|
className,
|
|
312
323
|
)}
|
|
313
324
|
{...props}
|
package/src/context-menu.tsx
CHANGED
|
@@ -151,7 +151,7 @@ export const ContextMenuSeparator = ({
|
|
|
151
151
|
...props
|
|
152
152
|
}: ContextMenuSeparatorProps) => (
|
|
153
153
|
<BaseContextMenu.Separator
|
|
154
|
-
className={cn("my-1 h-px bg-border-primary", className)}
|
|
154
|
+
className={cn("mx-3 my-1 h-px bg-border-primary", className)}
|
|
155
155
|
{...props}
|
|
156
156
|
/>
|
|
157
157
|
)
|
package/src/menu.tsx
CHANGED
|
@@ -112,7 +112,7 @@ export const MenuLinkItem = ({ className, ...props }: MenuLinkItemProps) => (
|
|
|
112
112
|
|
|
113
113
|
export const MenuSeparator = ({ className, ...props }: MenuSeparatorProps) => (
|
|
114
114
|
<BaseMenu.Separator
|
|
115
|
-
className={cn("my-1 h-px bg-border-primary", className)}
|
|
115
|
+
className={cn("mx-3 my-1 h-px bg-border-primary", className)}
|
|
116
116
|
{...props}
|
|
117
117
|
/>
|
|
118
118
|
)
|
package/src/select.tsx
CHANGED
|
@@ -160,7 +160,7 @@ export const SelectSeparator = ({
|
|
|
160
160
|
...props
|
|
161
161
|
}: SelectSeparatorProps) => (
|
|
162
162
|
<BaseSelect.Separator
|
|
163
|
-
className={cn("my-1 h-px bg-border-primary", className)}
|
|
163
|
+
className={cn("mx-3 my-1 h-px bg-border-primary", className)}
|
|
164
164
|
{...props}
|
|
165
165
|
/>
|
|
166
166
|
)
|