@wistia/ui 0.15.14-beta.1e41934b.72b042b → 0.15.14-beta.6458a247.692f16f
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 +17 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.mjs +17 -9
- 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.14-beta.
|
|
3
|
+
* @license @wistia/ui v0.15.14-beta.6458a247.692f16f
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1011,7 +1011,7 @@ var import_styled_components4 = require("styled-components");
|
|
|
1011
1011
|
|
|
1012
1012
|
// src/css/designTokens/colorSchemes.tsx
|
|
1013
1013
|
var import_styled_components3 = require("styled-components");
|
|
1014
|
-
var
|
|
1014
|
+
var standardColorScheme = import_styled_components3.css`
|
|
1015
1015
|
--wui-color-base-1: var(--wui-gray-1);
|
|
1016
1016
|
--wui-color-base-2: var(--wui-gray-2);
|
|
1017
1017
|
--wui-color-base-3: var(--wui-gray-3);
|
|
@@ -1533,7 +1533,7 @@ var baseAliasTokens = import_styled_components4.css`
|
|
|
1533
1533
|
`;
|
|
1534
1534
|
var colorAliasTokens = import_styled_components4.css`
|
|
1535
1535
|
--wui-color-bg-app: var(--wui-app-background);
|
|
1536
|
-
${
|
|
1536
|
+
${standardColorScheme}
|
|
1537
1537
|
${baseAliasTokens}
|
|
1538
1538
|
/* --- Semantic --- */
|
|
1539
1539
|
/* Error */
|
|
@@ -3303,7 +3303,7 @@ Ellipsis.displayName = "Ellipsis_UI";
|
|
|
3303
3303
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
3304
3304
|
var import_styled_components16 = require("styled-components");
|
|
3305
3305
|
var colorSchemes = {
|
|
3306
|
-
|
|
3306
|
+
standard: standardColorScheme,
|
|
3307
3307
|
blue: blueColorScheme,
|
|
3308
3308
|
green: greenColorScheme,
|
|
3309
3309
|
red: redColorScheme,
|
|
@@ -8139,7 +8139,7 @@ var StyledLabel = import_styled_components23.default.span`
|
|
|
8139
8139
|
var ActionButton = (0, import_react24.forwardRef)(
|
|
8140
8140
|
({
|
|
8141
8141
|
icon,
|
|
8142
|
-
colorScheme = "
|
|
8142
|
+
colorScheme = "standard",
|
|
8143
8143
|
disabled = false,
|
|
8144
8144
|
hoverColorScheme,
|
|
8145
8145
|
variant = "default",
|
|
@@ -8254,7 +8254,7 @@ Image.displayName = "Image_UI";
|
|
|
8254
8254
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
8255
8255
|
var import_styled_components25 = __toESM(require("styled-components"));
|
|
8256
8256
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
8257
|
-
var defaultColorSchemeOptions = ["
|
|
8257
|
+
var defaultColorSchemeOptions = ["standard", "inherit"];
|
|
8258
8258
|
var semanticColorSchemeOptions = ["error", "info", "success", "warning"];
|
|
8259
8259
|
var brandColorSchemeOptions = [
|
|
8260
8260
|
"blue",
|
|
@@ -13347,7 +13347,7 @@ var MenuItemButton = (0, import_react57.forwardRef)(({ children, appearance, com
|
|
|
13347
13347
|
...props,
|
|
13348
13348
|
ref,
|
|
13349
13349
|
$isGated: appearance === "gated",
|
|
13350
|
-
colorScheme: colorScheme ?? "
|
|
13350
|
+
colorScheme: colorScheme ?? "inherit",
|
|
13351
13351
|
fullWidth: true,
|
|
13352
13352
|
unstyled: true,
|
|
13353
13353
|
children: [
|
|
@@ -14937,6 +14937,7 @@ var FormField = ({
|
|
|
14937
14937
|
label,
|
|
14938
14938
|
labelPosition,
|
|
14939
14939
|
name,
|
|
14940
|
+
required = false,
|
|
14940
14941
|
value,
|
|
14941
14942
|
...props
|
|
14942
14943
|
}) => {
|
|
@@ -14986,7 +14987,14 @@ var FormField = ({
|
|
|
14986
14987
|
...props,
|
|
14987
14988
|
"data-label-position": labelPosition ?? formState.labelPosition,
|
|
14988
14989
|
children: [
|
|
14989
|
-
!isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
|
|
14990
|
+
!isIntegratedLabel && /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(
|
|
14991
|
+
Label,
|
|
14992
|
+
{
|
|
14993
|
+
htmlFor: computedId,
|
|
14994
|
+
required,
|
|
14995
|
+
children: label
|
|
14996
|
+
}
|
|
14997
|
+
),
|
|
14990
14998
|
(0, import_type_guards49.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime283.jsx)(FormControlLabelDescription, { id: descriptionId, children: description }) : null,
|
|
14991
14999
|
(0, import_react73.cloneElement)(children, childProps),
|
|
14992
15000
|
(0, import_type_guards49.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime283.jsxs)(import_jsx_runtime283.Fragment, { children: [
|
|
@@ -16997,6 +17005,7 @@ var StyledTrigger2 = (0, import_styled_components110.default)(import_react_selec
|
|
|
16997
17005
|
outline: 1px solid var(--wui-input-color-border);
|
|
16998
17006
|
outline-offset: -2px;
|
|
16999
17007
|
border-radius: var(--wui-input-border-radius);
|
|
17008
|
+
min-width: 200px;
|
|
17000
17009
|
text-align: left;
|
|
17001
17010
|
display: inline-flex;
|
|
17002
17011
|
align-items: center;
|
|
@@ -17140,7 +17149,6 @@ var StyledItem = (0, import_styled_components111.default)(import_react_select2.I
|
|
|
17140
17149
|
align-items: ${({ $checkmarkVerticalAlign }) => $checkmarkVerticalAlign === "center" ? "center" : "flex-start"};
|
|
17141
17150
|
background-color: transparent;
|
|
17142
17151
|
display: flex;
|
|
17143
|
-
gap: var(--wui-space-01);
|
|
17144
17152
|
padding: var(--wui-select-option-padding);
|
|
17145
17153
|
justify-content: space-between;
|
|
17146
17154
|
font-size: var(--font-size);
|