@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.mjs
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
|
*
|
|
@@ -11633,6 +11633,7 @@ var Input = forwardRef15(
|
|
|
11633
11633
|
autoSelect = false,
|
|
11634
11634
|
leftIcon,
|
|
11635
11635
|
rightIcon,
|
|
11636
|
+
className,
|
|
11636
11637
|
...props
|
|
11637
11638
|
}, externalRef) => {
|
|
11638
11639
|
const internalRef = useRef9(null);
|
|
@@ -11669,6 +11670,7 @@ var Input = forwardRef15(
|
|
|
11669
11670
|
{
|
|
11670
11671
|
$fullWidth: fullWidth,
|
|
11671
11672
|
$monospace: monospace,
|
|
11673
|
+
className,
|
|
11672
11674
|
"data-wui-input-container": true,
|
|
11673
11675
|
children: [
|
|
11674
11676
|
leftIconToDisplay ?? null,
|
|
@@ -12835,7 +12837,6 @@ var Combobox2 = ({
|
|
|
12835
12837
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
12836
12838
|
import { isNil as isNil15, isNotNil as isNotNil24 } from "@wistia/type-guards";
|
|
12837
12839
|
import { useEffect as useEffect16, useState as useState17 } from "react";
|
|
12838
|
-
import { createPortal } from "react-dom";
|
|
12839
12840
|
|
|
12840
12841
|
// src/components/Menu/Menu.tsx
|
|
12841
12842
|
import {
|
|
@@ -13537,10 +13538,7 @@ var ContextMenu = ({
|
|
|
13537
13538
|
return () => null;
|
|
13538
13539
|
}, [position, triggerRef]);
|
|
13539
13540
|
const isOpen = isNotNil24(position) || isRightClicked;
|
|
13540
|
-
|
|
13541
|
-
return null;
|
|
13542
|
-
}
|
|
13543
|
-
const menu = /* @__PURE__ */ jsx267(
|
|
13541
|
+
return isOpen ? /* @__PURE__ */ jsx267(
|
|
13544
13542
|
Menu,
|
|
13545
13543
|
{
|
|
13546
13544
|
isOpen,
|
|
@@ -13568,11 +13566,7 @@ var ContextMenu = ({
|
|
|
13568
13566
|
),
|
|
13569
13567
|
children
|
|
13570
13568
|
}
|
|
13571
|
-
);
|
|
13572
|
-
if (isNotNil24(triggerRef)) {
|
|
13573
|
-
return createPortal(menu, document.body);
|
|
13574
|
-
}
|
|
13575
|
-
return menu;
|
|
13569
|
+
) : null;
|
|
13576
13570
|
};
|
|
13577
13571
|
|
|
13578
13572
|
// src/components/DataCards/DataCard.tsx
|
|
@@ -13993,24 +13987,26 @@ import styled62, { css as css34 } from "styled-components";
|
|
|
13993
13987
|
import { useState as useState18, useRef as useRef16 } from "react";
|
|
13994
13988
|
import { Fragment as Fragment8, jsx as jsx276, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
13995
13989
|
var StyledInput = styled62(Input)`
|
|
13996
|
-
|
|
13997
|
-
|
|
13998
|
-
|
|
13990
|
+
input {
|
|
13991
|
+
&:not([rows]) {
|
|
13992
|
+
min-height: unset;
|
|
13993
|
+
}
|
|
13999
13994
|
|
|
14000
|
-
|
|
14001
|
-
|
|
14002
|
-
|
|
14003
|
-
|
|
14004
|
-
|
|
14005
|
-
|
|
13995
|
+
&& {
|
|
13996
|
+
${({ $variant }) => variantStyleMap[$variant]}
|
|
13997
|
+
/* The input font styles (edit mode) needs the same font styles as Heading */
|
|
13998
|
+
--wui-input-font-size: var(--font-size);
|
|
13999
|
+
--wui-input-font-weight: var(--font-weight);
|
|
14000
|
+
--wui-input-line-height: var(--line-height);
|
|
14006
14001
|
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
|
|
14011
|
-
|
|
14012
|
-
|
|
14013
|
-
|
|
14002
|
+
font-family: var(--font-family);
|
|
14003
|
+
width: 100%;
|
|
14004
|
+
padding: var(--wui-space-02);
|
|
14005
|
+
border: none;
|
|
14006
|
+
height: ${({ $height }) => `${$height}px`};
|
|
14007
|
+
min-height: ${({ $height }) => `${$height}px`};
|
|
14008
|
+
resize: none;
|
|
14009
|
+
}
|
|
14014
14010
|
}
|
|
14015
14011
|
`;
|
|
14016
14012
|
var editableStyles = css34`
|