@wistia/ui 0.8.2 → 0.8.3
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/dist/index.cjs +4 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2348,12 +2348,13 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
2348
2348
|
* If true, the popover will use the unstyled Content component instead of StyledContent
|
|
2349
2349
|
*/
|
|
2350
2350
|
unstyled?: boolean;
|
|
2351
|
+
colorScheme?: ColorSchemeTypes;
|
|
2351
2352
|
};
|
|
2352
2353
|
/**
|
|
2353
2354
|
* Displays rich content in a portal, triggered by a button.
|
|
2354
2355
|
*/
|
|
2355
2356
|
declare const Popover: {
|
|
2356
|
-
({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, ...props }: PopoverProps): JSX.Element;
|
|
2357
|
+
({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, colorScheme, ...props }: PopoverProps): JSX.Element;
|
|
2357
2358
|
displayName: string;
|
|
2358
2359
|
};
|
|
2359
2360
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2348,12 +2348,13 @@ type PopoverProps = ContentProps & PopoverControlProps & {
|
|
|
2348
2348
|
* If true, the popover will use the unstyled Content component instead of StyledContent
|
|
2349
2349
|
*/
|
|
2350
2350
|
unstyled?: boolean;
|
|
2351
|
+
colorScheme?: ColorSchemeTypes;
|
|
2351
2352
|
};
|
|
2352
2353
|
/**
|
|
2353
2354
|
* Displays rich content in a portal, triggered by a button.
|
|
2354
2355
|
*/
|
|
2355
2356
|
declare const Popover: {
|
|
2356
|
-
({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, ...props }: PopoverProps): JSX.Element;
|
|
2357
|
+
({ children, trigger, isOpen, hideCloseButton, maxWidth, maxHeight, onOpenChange, unstyled, colorScheme, ...props }: PopoverProps): JSX.Element;
|
|
2357
2358
|
displayName: string;
|
|
2358
2359
|
};
|
|
2359
2360
|
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.8.
|
|
3
|
+
* @license @wistia/ui v0.8.3
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -10722,6 +10722,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
10722
10722
|
// src/components/Popover/Popover.tsx
|
|
10723
10723
|
import { jsx as jsx244, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
10724
10724
|
var StyledContent2 = styled48(Content2)`
|
|
10725
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
10725
10726
|
${({ $unstyled }) => !$unstyled && css29`
|
|
10726
10727
|
border-radius: var(--wui-border-radius-02);
|
|
10727
10728
|
padding: var(--wui-space-04);
|
|
@@ -10748,6 +10749,7 @@ var Popover = ({
|
|
|
10748
10749
|
maxHeight = "auto",
|
|
10749
10750
|
onOpenChange,
|
|
10750
10751
|
unstyled = false,
|
|
10752
|
+
colorScheme = "inherit",
|
|
10751
10753
|
...props
|
|
10752
10754
|
}) => {
|
|
10753
10755
|
const style = {
|
|
@@ -10759,6 +10761,7 @@ var Popover = ({
|
|
|
10759
10761
|
/* @__PURE__ */ jsx244(Portal, { children: /* @__PURE__ */ jsxs32(
|
|
10760
10762
|
StyledContent2,
|
|
10761
10763
|
{
|
|
10764
|
+
$colorScheme: colorScheme,
|
|
10762
10765
|
sideOffset: 8,
|
|
10763
10766
|
...props,
|
|
10764
10767
|
$unstyled: unstyled,
|