@wistia/ui 0.11.7 → 0.12.0-beta.1086e88a.85980c3
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 +31 -24
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +31 -24
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -2
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.
|
|
3
|
+
* @license @wistia/ui v0.12.0-beta.1086e88a.85980c3
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -12049,6 +12049,7 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
12049
12049
|
|
|
12050
12050
|
// src/components/Menu/FilterMenu.tsx
|
|
12051
12051
|
var import_react56 = require("react");
|
|
12052
|
+
var import_react_dropdown_menu8 = require("@radix-ui/react-dropdown-menu");
|
|
12052
12053
|
var import_jsx_runtime252 = require("react/jsx-runtime");
|
|
12053
12054
|
var FilterMenuItem = CheckboxMenuItem;
|
|
12054
12055
|
var FilterMenu = (0, import_react56.forwardRef)(
|
|
@@ -12058,7 +12059,6 @@ var FilterMenu = (0, import_react56.forwardRef)(
|
|
|
12058
12059
|
{
|
|
12059
12060
|
...props,
|
|
12060
12061
|
ref,
|
|
12061
|
-
isOpen: true,
|
|
12062
12062
|
children: [
|
|
12063
12063
|
/* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
12064
12064
|
Card,
|
|
@@ -12082,7 +12082,6 @@ var FilterMenu = (0, import_react56.forwardRef)(
|
|
|
12082
12082
|
onChange: (event) => {
|
|
12083
12083
|
onSearchValueChange(event.target.value);
|
|
12084
12084
|
},
|
|
12085
|
-
onClick: (event) => event.preventDefault(),
|
|
12086
12085
|
onKeyDown: (event) => {
|
|
12087
12086
|
if (event.key === "ArrowDown") {
|
|
12088
12087
|
event.preventDefault();
|
|
@@ -12096,7 +12095,8 @@ var FilterMenu = (0, import_react56.forwardRef)(
|
|
|
12096
12095
|
},
|
|
12097
12096
|
placeholder: "Search...",
|
|
12098
12097
|
tabIndex: 0,
|
|
12099
|
-
type: "search"
|
|
12098
|
+
type: "search",
|
|
12099
|
+
value: searchValue
|
|
12100
12100
|
}
|
|
12101
12101
|
)
|
|
12102
12102
|
}
|
|
@@ -12110,31 +12110,38 @@ var FilterMenu = (0, import_react56.forwardRef)(
|
|
|
12110
12110
|
}
|
|
12111
12111
|
),
|
|
12112
12112
|
import_react56.Children.toArray(children).length > 0 ? children : /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(MenuItem, { disabled: true, children: "No results found" }),
|
|
12113
|
-
value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
12114
|
-
|
|
12113
|
+
value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
12114
|
+
import_react_dropdown_menu8.DropdownMenuItem,
|
|
12115
12115
|
{
|
|
12116
|
-
|
|
12117
|
-
|
|
12118
|
-
borderRadius: "border-radius-02",
|
|
12119
|
-
paddingSize: "space-01",
|
|
12120
|
-
prominence: "default",
|
|
12121
|
-
style: {
|
|
12122
|
-
position: "absolute",
|
|
12123
|
-
bottom: 0,
|
|
12124
|
-
left: 0,
|
|
12125
|
-
right: 0,
|
|
12126
|
-
margin: "1px"
|
|
12127
|
-
},
|
|
12116
|
+
disabled: true,
|
|
12117
|
+
style: { marginTop: "24px" },
|
|
12128
12118
|
children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
12129
|
-
|
|
12119
|
+
Card,
|
|
12130
12120
|
{
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12121
|
+
alignItems: "flex-end",
|
|
12122
|
+
border: false,
|
|
12123
|
+
borderRadius: "border-radius-02",
|
|
12124
|
+
paddingSize: "space-01",
|
|
12125
|
+
prominence: "default",
|
|
12126
|
+
style: {
|
|
12127
|
+
position: "absolute",
|
|
12128
|
+
bottom: 0,
|
|
12129
|
+
left: 0,
|
|
12130
|
+
right: 0,
|
|
12131
|
+
margin: "1px"
|
|
12132
|
+
},
|
|
12133
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime252.jsx)(
|
|
12134
|
+
Button,
|
|
12135
|
+
{
|
|
12136
|
+
onClick: () => onChange([]),
|
|
12137
|
+
size: "sm",
|
|
12138
|
+
children: "Clear"
|
|
12139
|
+
}
|
|
12140
|
+
)
|
|
12134
12141
|
}
|
|
12135
12142
|
)
|
|
12136
12143
|
}
|
|
12137
|
-
)
|
|
12144
|
+
)
|
|
12138
12145
|
]
|
|
12139
12146
|
}
|
|
12140
12147
|
);
|
|
@@ -14293,7 +14300,7 @@ var getRelativeMousePosition = (elem, mouseEvent) => {
|
|
|
14293
14300
|
var Thumbnail = (0, import_react73.forwardRef)(
|
|
14294
14301
|
({
|
|
14295
14302
|
gradientBackground = "defaultMidOne",
|
|
14296
|
-
thumbnailImageType = "
|
|
14303
|
+
thumbnailImageType = "wide",
|
|
14297
14304
|
thumbnailUrl,
|
|
14298
14305
|
width = "100%",
|
|
14299
14306
|
children,
|