@wistia/ui 0.6.13 → 0.6.14
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 +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +4 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1711,6 +1711,10 @@ type SubMenuProps = {
|
|
|
1711
1711
|
* Callback when the submenu is opened or closed
|
|
1712
1712
|
*/
|
|
1713
1713
|
onOpenChange?: (open: boolean) => void;
|
|
1714
|
+
/**
|
|
1715
|
+
* Icon to display on the left side of the SubMenu, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1716
|
+
*/
|
|
1717
|
+
icon?: JSX.Element | undefined;
|
|
1714
1718
|
};
|
|
1715
1719
|
declare const SubMenu: {
|
|
1716
1720
|
({ label, description, children, onOpenChange, ...props }: SubMenuProps): react_jsx_runtime.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1711,6 +1711,10 @@ type SubMenuProps = {
|
|
|
1711
1711
|
* Callback when the submenu is opened or closed
|
|
1712
1712
|
*/
|
|
1713
1713
|
onOpenChange?: (open: boolean) => void;
|
|
1714
|
+
/**
|
|
1715
|
+
* Icon to display on the left side of the SubMenu, Must be an instance of [Icon](?path=/docs/components-icon--docs)
|
|
1716
|
+
*/
|
|
1717
|
+
icon?: JSX.Element | undefined;
|
|
1714
1718
|
};
|
|
1715
1719
|
declare const SubMenu: {
|
|
1716
1720
|
({ label, description, children, onOpenChange, ...props }: SubMenuProps): react_jsx_runtime.JSX.Element;
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.6.
|
|
3
|
+
* @license @wistia/ui v0.6.14
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9466,13 +9466,14 @@ var StyledSubTrigger = styled40(DropdownMenuSubTrigger)`
|
|
|
9466
9466
|
background-color: var(--wui-color-bg-surface-hover);
|
|
9467
9467
|
}
|
|
9468
9468
|
`;
|
|
9469
|
-
var SubMenuTrigger = (props) => {
|
|
9469
|
+
var SubMenuTrigger = ({ icon, ...props }) => {
|
|
9470
9470
|
const { isSmAndUp } = useMq();
|
|
9471
9471
|
const Trigger4 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
|
|
9472
9472
|
return /* @__PURE__ */ jsx228(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx228(
|
|
9473
9473
|
MenuItemButton,
|
|
9474
9474
|
{
|
|
9475
9475
|
...props,
|
|
9476
|
+
leftIcon: icon,
|
|
9476
9477
|
rightIcon: /* @__PURE__ */ jsx228(Icon, { type: "caret-right" })
|
|
9477
9478
|
}
|
|
9478
9479
|
) });
|