@wistia/ui 0.6.12 → 0.6.13-beta.2d2240c1.68327d0
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 +14 -14
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.mjs +31 -31
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.13-beta.2d2240c1.68327d0
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9563,13 +9563,14 @@ var StyledSubTrigger = (0, import_styled_components55.default)(import_react_drop
|
|
|
9563
9563
|
background-color: var(--wui-color-bg-surface-hover);
|
|
9564
9564
|
}
|
|
9565
9565
|
`;
|
|
9566
|
-
var SubMenuTrigger = (props) => {
|
|
9566
|
+
var SubMenuTrigger = ({ icon, ...props }) => {
|
|
9567
9567
|
const { isSmAndUp } = useMq();
|
|
9568
9568
|
const Trigger4 = isSmAndUp ? StyledSubTrigger : import_react_dropdown_menu3.DropdownMenuItem;
|
|
9569
9569
|
return /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Trigger4, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(
|
|
9570
9570
|
MenuItemButton,
|
|
9571
9571
|
{
|
|
9572
9572
|
...props,
|
|
9573
|
+
leftIcon: icon,
|
|
9573
9574
|
rightIcon: /* @__PURE__ */ (0, import_jsx_runtime228.jsx)(Icon, { type: "caret-right" })
|
|
9574
9575
|
}
|
|
9575
9576
|
) });
|
|
@@ -10041,12 +10042,14 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
10041
10042
|
// src/components/Popover/Popover.tsx
|
|
10042
10043
|
var import_jsx_runtime238 = require("react/jsx-runtime");
|
|
10043
10044
|
var StyledContent2 = (0, import_styled_components61.default)(import_react_popover.Content)`
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10045
|
+
${({ $unstyled }) => !$unstyled && import_styled_components61.css`
|
|
10046
|
+
border-radius: var(--wui-border-radius-02);
|
|
10047
|
+
padding: var(--wui-space-04);
|
|
10048
|
+
max-width: 320px;
|
|
10049
|
+
background-color: var(--wui-color-bg-surface);
|
|
10050
|
+
box-shadow: var(--wui-elevation-01);
|
|
10051
|
+
border: 1px solid var(--wui-color-border);
|
|
10052
|
+
`}
|
|
10050
10053
|
|
|
10051
10054
|
[data-wui-popover-close] {
|
|
10052
10055
|
position: absolute;
|
|
@@ -10054,16 +10057,13 @@ var StyledContent2 = (0, import_styled_components61.default)(import_react_popove
|
|
|
10054
10057
|
right: var(--wui-space-02);
|
|
10055
10058
|
}
|
|
10056
10059
|
`;
|
|
10057
|
-
var StyledArrow = (0, import_styled_components61.default)(import_react_popover.Arrow)`
|
|
10058
|
-
fill: white;
|
|
10059
|
-
display: none;
|
|
10060
|
-
`;
|
|
10061
10060
|
var Popover = ({
|
|
10062
10061
|
children,
|
|
10063
10062
|
trigger,
|
|
10064
10063
|
isOpen = false,
|
|
10065
10064
|
hideCloseButton = false,
|
|
10066
10065
|
onOpenChange,
|
|
10066
|
+
unstyled = false,
|
|
10067
10067
|
...props
|
|
10068
10068
|
}) => {
|
|
10069
10069
|
return /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(import_react_popover.Root, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
@@ -10071,10 +10071,10 @@ var Popover = ({
|
|
|
10071
10071
|
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_popover.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime238.jsxs)(
|
|
10072
10072
|
StyledContent2,
|
|
10073
10073
|
{
|
|
10074
|
-
sideOffset:
|
|
10074
|
+
sideOffset: 8,
|
|
10075
10075
|
...props,
|
|
10076
|
+
$unstyled: unstyled,
|
|
10076
10077
|
children: [
|
|
10077
|
-
/* @__PURE__ */ (0, import_jsx_runtime238.jsx)(StyledArrow, {}),
|
|
10078
10078
|
!hideCloseButton && /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(import_react_popover.Close, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime238.jsx)(
|
|
10079
10079
|
IconButton,
|
|
10080
10080
|
{
|