@boyernick/standard-ui-react 0.4.1-canary.49 → 0.4.1-canary.51

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/modal.tsx +6 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boyernick/standard-ui-react",
3
- "version": "0.4.1-canary.49",
3
+ "version": "0.4.1-canary.51",
4
4
  "description": "React components for StandardUI",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/src/modal.tsx CHANGED
@@ -52,7 +52,7 @@ const TRACKPAD_LABEL =
52
52
  "Swipe, use the arrow keys, or use the controls to navigate"
53
53
 
54
54
  const modalControlClassName =
55
- "glass glass-dark dark:glass-light text-fg-inverted hover:text-fg-inverted outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-surface-inverted focus-visible:ring-ring/20"
55
+ "glass glass-dark text-fg-scrim hover:text-fg-scrim outline-none focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-surface-scrim focus-visible:ring-ring/20"
56
56
 
57
57
  export const modalContentVariants = cva(
58
58
  "h-dvh max-h-dvh w-screen max-w-none gap-0 overflow-hidden rounded-none border-0 bg-transparent p-0 shadow-none max-sm:max-w-none",
@@ -146,7 +146,7 @@ export const ModalTrigger = ({
146
146
  )
147
147
 
148
148
  const ModalBackdrop = () => (
149
- <DialogBackdrop className="bg-surface-inverted/95" />
149
+ <DialogBackdrop className="bg-surface-scrim/95" />
150
150
  )
151
151
 
152
152
  const ModalBackground = ({ src }: { src: string }) => (
@@ -162,7 +162,7 @@ const ModalBackground = ({ src }: { src: string }) => (
162
162
  alt=""
163
163
  className="size-full scale-110 object-cover opacity-25 blur-3xl"
164
164
  />
165
- <div className="absolute inset-0 bg-surface-inverted/65" />
165
+ <div className="absolute inset-0 bg-surface-scrim/65" />
166
166
  </div>
167
167
  )
168
168
 
@@ -265,7 +265,7 @@ const ModalDismiss = () => (
265
265
  )
266
266
 
267
267
  const ModalCaption = ({ children }: { children: ReactNode }) => (
268
- <p className="mt-3 max-w-[min(40rem,88vw)] shrink-0 px-4 text-center text-sm text-fg-inverted-secondary">
268
+ <p className="mt-3 max-w-[min(40rem,88vw)] shrink-0 px-4 text-center text-sm text-fg-scrim-secondary">
269
269
  {children}
270
270
  </p>
271
271
  )
@@ -379,10 +379,10 @@ const GalleryFilmstrip = ({
379
379
  className={cn(
380
380
  "size-14 shrink-0 cursor-pointer overflow-hidden rounded-md outline-none",
381
381
  "transition-[opacity,box-shadow] duration-[var(--duration-sm)] ease-enter motion-reduce:transition-none",
382
- "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-surface-inverted focus-visible:ring-ring/20",
382
+ "focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-offset-1 focus-visible:ring-offset-surface-scrim focus-visible:ring-ring/20",
383
383
  focusRingBorder,
384
384
  isActive
385
- ? "opacity-100 ring-2 ring-fg-inverted"
385
+ ? "opacity-100 ring-2 ring-fg-scrim"
386
386
  : "opacity-45 hover:opacity-80",
387
387
  )}
388
388
  >