@wistia/ui 0.18.0-beta.3b5be3b3.9e2fe2f → 0.18.0-beta.46b86a85.538143d
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 +21 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +21 -22
- 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.18.0-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.0-beta.46b86a85.538143d
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -7724,7 +7724,6 @@ var StyledButton = styled5.button`
|
|
|
7724
7724
|
${({ $variant }) => buttonVariantsStyles[$variant]}
|
|
7725
7725
|
${({ $unstyled }) => !$unstyled && buttonBaseStyles}
|
|
7726
7726
|
${({ $fullWidth }) => $fullWidth && "width: 100%;"}
|
|
7727
|
-
align-self: flex-start;
|
|
7728
7727
|
text-align: center;
|
|
7729
7728
|
`;
|
|
7730
7729
|
var StyledButtonContent = styled5.div`
|
|
@@ -8940,10 +8939,6 @@ var ButtonGroupComponent = styled14.div`
|
|
|
8940
8939
|
justify-content: ${({ $align }) => getAlignment($align)};
|
|
8941
8940
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
8942
8941
|
|
|
8943
|
-
${StyledButton} {
|
|
8944
|
-
align-self: unset;
|
|
8945
|
-
}
|
|
8946
|
-
|
|
8947
8942
|
${mq.smAndUp} {
|
|
8948
8943
|
flex-direction: row;
|
|
8949
8944
|
}
|
|
@@ -11680,6 +11675,7 @@ var Input = forwardRef15(
|
|
|
11680
11675
|
autoSelect = false,
|
|
11681
11676
|
leftIcon,
|
|
11682
11677
|
rightIcon,
|
|
11678
|
+
className,
|
|
11683
11679
|
...props
|
|
11684
11680
|
}, externalRef) => {
|
|
11685
11681
|
const internalRef = useRef9(null);
|
|
@@ -11716,6 +11712,7 @@ var Input = forwardRef15(
|
|
|
11716
11712
|
{
|
|
11717
11713
|
$fullWidth: fullWidth,
|
|
11718
11714
|
$monospace: monospace,
|
|
11715
|
+
className,
|
|
11719
11716
|
"data-wui-input-container": true,
|
|
11720
11717
|
children: [
|
|
11721
11718
|
leftIconToDisplay ?? null,
|
|
@@ -14042,24 +14039,26 @@ import { styled as styled62, css as css34 } from "styled-components";
|
|
|
14042
14039
|
import { useState as useState18, useRef as useRef16 } from "react";
|
|
14043
14040
|
import { Fragment as Fragment8, jsx as jsx276, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
14044
14041
|
var StyledInput = styled62(Input)`
|
|
14045
|
-
|
|
14046
|
-
|
|
14047
|
-
|
|
14042
|
+
input {
|
|
14043
|
+
&:not([rows]) {
|
|
14044
|
+
min-height: unset;
|
|
14045
|
+
}
|
|
14048
14046
|
|
|
14049
|
-
|
|
14050
|
-
|
|
14051
|
-
|
|
14052
|
-
|
|
14053
|
-
|
|
14054
|
-
|
|
14047
|
+
&& {
|
|
14048
|
+
${({ $variant }) => variantStyleMap[$variant]}
|
|
14049
|
+
/* The input font styles (edit mode) needs the same font styles as Heading */
|
|
14050
|
+
--wui-input-font-size: var(--font-size);
|
|
14051
|
+
--wui-input-font-weight: var(--font-weight);
|
|
14052
|
+
--wui-input-line-height: var(--line-height);
|
|
14055
14053
|
|
|
14056
|
-
|
|
14057
|
-
|
|
14058
|
-
|
|
14059
|
-
|
|
14060
|
-
|
|
14061
|
-
|
|
14062
|
-
|
|
14054
|
+
font-family: var(--font-family);
|
|
14055
|
+
width: 100%;
|
|
14056
|
+
padding: var(--wui-space-02);
|
|
14057
|
+
border: none;
|
|
14058
|
+
height: ${({ $height }) => `${$height}px`};
|
|
14059
|
+
min-height: ${({ $height }) => `${$height}px`};
|
|
14060
|
+
resize: none;
|
|
14061
|
+
}
|
|
14063
14062
|
}
|
|
14064
14063
|
`;
|
|
14065
14064
|
var editableStyles = css34`
|