@wistia/ui 0.15.12-beta.3ecc0076.d529776 → 0.15.12-beta.dc4eb744.2eece8b
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 +23 -27
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +23 -27
- 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.15.12-beta.
|
|
3
|
+
* @license @wistia/ui v0.15.12-beta.dc4eb744.2eece8b
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -11807,6 +11807,7 @@ var Input = (0, import_react47.forwardRef)(
|
|
|
11807
11807
|
autoSelect = false,
|
|
11808
11808
|
leftIcon,
|
|
11809
11809
|
rightIcon,
|
|
11810
|
+
className,
|
|
11810
11811
|
...props
|
|
11811
11812
|
}, externalRef) => {
|
|
11812
11813
|
const internalRef = (0, import_react47.useRef)(null);
|
|
@@ -11843,6 +11844,7 @@ var Input = (0, import_react47.forwardRef)(
|
|
|
11843
11844
|
{
|
|
11844
11845
|
$fullWidth: fullWidth,
|
|
11845
11846
|
$monospace: monospace,
|
|
11847
|
+
className,
|
|
11846
11848
|
"data-wui-input-container": true,
|
|
11847
11849
|
children: [
|
|
11848
11850
|
leftIconToDisplay ?? null,
|
|
@@ -12997,7 +12999,6 @@ var Combobox2 = ({
|
|
|
12997
12999
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
12998
13000
|
var import_type_guards42 = require("@wistia/type-guards");
|
|
12999
13001
|
var import_react61 = require("react");
|
|
13000
|
-
var import_react_dom = require("react-dom");
|
|
13001
13002
|
|
|
13002
13003
|
// src/components/Menu/Menu.tsx
|
|
13003
13004
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
@@ -13687,10 +13688,7 @@ var ContextMenu = ({
|
|
|
13687
13688
|
return () => null;
|
|
13688
13689
|
}, [position, triggerRef]);
|
|
13689
13690
|
const isOpen = (0, import_type_guards42.isNotNil)(position) || isRightClicked;
|
|
13690
|
-
|
|
13691
|
-
return null;
|
|
13692
|
-
}
|
|
13693
|
-
const menu = /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
13691
|
+
return isOpen ? /* @__PURE__ */ (0, import_jsx_runtime267.jsx)(
|
|
13694
13692
|
Menu,
|
|
13695
13693
|
{
|
|
13696
13694
|
isOpen,
|
|
@@ -13718,11 +13716,7 @@ var ContextMenu = ({
|
|
|
13718
13716
|
),
|
|
13719
13717
|
children
|
|
13720
13718
|
}
|
|
13721
|
-
);
|
|
13722
|
-
if ((0, import_type_guards42.isNotNil)(triggerRef)) {
|
|
13723
|
-
return (0, import_react_dom.createPortal)(menu, document.body);
|
|
13724
|
-
}
|
|
13725
|
-
return menu;
|
|
13719
|
+
) : null;
|
|
13726
13720
|
};
|
|
13727
13721
|
|
|
13728
13722
|
// src/components/DataCards/DataCard.tsx
|
|
@@ -14143,24 +14137,26 @@ var import_styled_components81 = __toESM(require("styled-components"));
|
|
|
14143
14137
|
var import_react63 = require("react");
|
|
14144
14138
|
var import_jsx_runtime276 = require("react/jsx-runtime");
|
|
14145
14139
|
var StyledInput = (0, import_styled_components81.default)(Input)`
|
|
14146
|
-
|
|
14147
|
-
|
|
14148
|
-
|
|
14140
|
+
input {
|
|
14141
|
+
&:not([rows]) {
|
|
14142
|
+
min-height: unset;
|
|
14143
|
+
}
|
|
14149
14144
|
|
|
14150
|
-
|
|
14151
|
-
|
|
14152
|
-
|
|
14153
|
-
|
|
14154
|
-
|
|
14155
|
-
|
|
14145
|
+
&& {
|
|
14146
|
+
${({ $variant }) => variantStyleMap[$variant]}
|
|
14147
|
+
/* The input font styles (edit mode) needs the same font styles as Heading */
|
|
14148
|
+
--wui-input-font-size: var(--font-size);
|
|
14149
|
+
--wui-input-font-weight: var(--font-weight);
|
|
14150
|
+
--wui-input-line-height: var(--line-height);
|
|
14156
14151
|
|
|
14157
|
-
|
|
14158
|
-
|
|
14159
|
-
|
|
14160
|
-
|
|
14161
|
-
|
|
14162
|
-
|
|
14163
|
-
|
|
14152
|
+
font-family: var(--font-family);
|
|
14153
|
+
width: 100%;
|
|
14154
|
+
padding: var(--wui-space-02);
|
|
14155
|
+
border: none;
|
|
14156
|
+
height: ${({ $height }) => `${$height}px`};
|
|
14157
|
+
min-height: ${({ $height }) => `${$height}px`};
|
|
14158
|
+
resize: none;
|
|
14159
|
+
}
|
|
14164
14160
|
}
|
|
14165
14161
|
`;
|
|
14166
14162
|
var editableStyles = import_styled_components81.css`
|