@boyernick/standard-ui-react 0.1.1-canary.7 → 0.1.1-canary.8
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/command.tsx +9 -10
package/package.json
CHANGED
package/src/command.tsx
CHANGED
|
@@ -108,7 +108,7 @@ export const CommandBackdrop = ({
|
|
|
108
108
|
export const CommandPopup = ({ className, ...props }: CommandPopupProps) => (
|
|
109
109
|
<BaseDialog.Popup
|
|
110
110
|
className={cn(
|
|
111
|
-
"fixed top-1/2 left-1/2 z-50 flex h-[min(80vh,32rem)] w-full max-w-
|
|
111
|
+
"fixed top-1/2 left-1/2 z-50 flex h-[min(80vh,32rem)] w-full max-w-3xl -translate-x-1/2 -translate-y-1/2 flex-col overflow-hidden rounded-2xl bg-surface-raised shadow-ambient outline-none max-sm:max-w-[calc(100vw-2rem)]",
|
|
112
112
|
motion.popupCenter,
|
|
113
113
|
className,
|
|
114
114
|
)}
|
|
@@ -147,7 +147,6 @@ export const CommandInput = ({
|
|
|
147
147
|
aria-activedescendant={activeOptionId}
|
|
148
148
|
className={cn(
|
|
149
149
|
"h-9 min-w-0 flex-1 cursor-text rounded-md bg-transparent px-2.5 text-base text-fg-primary outline-none placeholder:text-fg-quaternary",
|
|
150
|
-
"focus-visible:bg-background-tertiary/60 focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-background-primary focus-visible:ring-ring/20",
|
|
151
150
|
"[&::-webkit-search-cancel-button]:appearance-none [&::-webkit-search-decoration]:appearance-none",
|
|
152
151
|
className,
|
|
153
152
|
)}
|
|
@@ -174,9 +173,9 @@ export const CommandClear = ({
|
|
|
174
173
|
<button
|
|
175
174
|
type="button"
|
|
176
175
|
className={cn(
|
|
177
|
-
"cursor-pointer rounded-full px-3
|
|
176
|
+
"inline-flex h-8 cursor-pointer items-center rounded-full border border-transparent px-3 text-sm text-fg-quaternary outline-none",
|
|
178
177
|
motion.colors,
|
|
179
|
-
"hover:bg-background-tertiary hover:text-fg-primary focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-background-primary focus-visible:ring-ring/20 data-[active=true]:text-fg-primary",
|
|
178
|
+
"hover:bg-background-tertiary hover:text-fg-primary focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-background-primary focus-visible:ring-ring/20 data-[active=true]:text-fg-primary",
|
|
180
179
|
className,
|
|
181
180
|
)}
|
|
182
181
|
{...props}
|
|
@@ -203,9 +202,9 @@ export const CommandClose = ({
|
|
|
203
202
|
}: CommandCloseProps) => (
|
|
204
203
|
<BaseDialog.Close
|
|
205
204
|
className={cn(
|
|
206
|
-
"inline-flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full text-fg-primary outline-none",
|
|
205
|
+
"inline-flex size-9 shrink-0 cursor-pointer items-center justify-center rounded-full border border-transparent text-fg-primary outline-none",
|
|
207
206
|
motion.colors,
|
|
208
|
-
"hover:bg-background-tertiary focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-background-primary focus-visible:ring-ring/20",
|
|
207
|
+
"hover:bg-background-tertiary focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-background-primary focus-visible:ring-ring/20",
|
|
209
208
|
className,
|
|
210
209
|
)}
|
|
211
210
|
aria-label={props["aria-label"] ?? "Close"}
|
|
@@ -256,9 +255,9 @@ export const CommandFilter = ({
|
|
|
256
255
|
aria-pressed={selected}
|
|
257
256
|
data-selected={selected || undefined}
|
|
258
257
|
className={cn(
|
|
259
|
-
"cursor-pointer rounded-full px-4
|
|
258
|
+
"inline-flex h-9 cursor-pointer items-center rounded-full border border-transparent px-4 text-sm text-fg-quaternary outline-none",
|
|
260
259
|
motion.colors,
|
|
261
|
-
"hover:text-fg-primary focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-background-primary focus-visible:ring-ring/20",
|
|
260
|
+
"hover:text-fg-primary focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-background-primary focus-visible:ring-ring/20",
|
|
262
261
|
"data-selected:bg-background-tertiary data-selected:text-fg-primary",
|
|
263
262
|
className,
|
|
264
263
|
)}
|
|
@@ -296,11 +295,11 @@ export const CommandItem = ({
|
|
|
296
295
|
...props
|
|
297
296
|
}: CommandItemProps) => {
|
|
298
297
|
const itemClassName = cn(
|
|
299
|
-
"flex h-15 min-h-15 w-full cursor-pointer items-center justify-between gap-4 rounded-lg px-4 text-left text-sm font-medium text-fg-primary outline-none select-none",
|
|
298
|
+
"flex h-15 min-h-15 w-full cursor-pointer items-center justify-between gap-4 rounded-lg border border-transparent px-4 text-left text-sm font-medium text-fg-primary outline-none select-none",
|
|
300
299
|
motion.colors,
|
|
301
300
|
"hover:bg-background-tertiary data-selected:bg-background-tertiary",
|
|
302
301
|
"data-disabled:cursor-not-allowed data-disabled:opacity-50",
|
|
303
|
-
"focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-background-primary focus-visible:ring-ring/20",
|
|
302
|
+
"focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-background-primary focus-visible:ring-ring/20",
|
|
304
303
|
className,
|
|
305
304
|
)
|
|
306
305
|
|