@wistia/ui 0.8.3 → 0.8.4-beta.8500e122.cad205a
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 +22 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.mjs +22 -13
- 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.8.
|
|
3
|
+
* @license @wistia/ui v0.8.4-beta.8500e122.cad205a
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -9141,6 +9141,7 @@ var import_type_guards31 = require("@wistia/type-guards");
|
|
|
9141
9141
|
// src/css/sharedStyles/inputCssVariables.ts
|
|
9142
9142
|
var import_styled_components45 = require("styled-components");
|
|
9143
9143
|
var inputCssVariables = import_styled_components45.css`
|
|
9144
|
+
/* Colors */
|
|
9144
9145
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
9145
9146
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
9146
9147
|
--wui-input-color-border: var(--wui-color-border-secondary);
|
|
@@ -9148,13 +9149,20 @@ var inputCssVariables = import_styled_components45.css`
|
|
|
9148
9149
|
--wui-input-color-border-error: var(--wui-color-invalid-indicator);
|
|
9149
9150
|
--wui-input-color-border-disabled: var(--wui-color-border-disabled);
|
|
9150
9151
|
--wui-input-color-text: var(--wui-color-text);
|
|
9152
|
+
|
|
9153
|
+
/* Border */
|
|
9151
9154
|
--wui-input-border-radius: var(--wui-border-radius-03);
|
|
9152
9155
|
--wui-input-multiline-border-radius: var(--wui-border-radius-02);
|
|
9156
|
+
|
|
9157
|
+
/* Padding */
|
|
9153
9158
|
--wui-input-vertical-padding: var(--wui-space-02);
|
|
9154
9159
|
--wui-input-horizontal-padding: var(--wui-space-03);
|
|
9160
|
+
|
|
9161
|
+
/* Typography */
|
|
9155
9162
|
--wui-input-placeholder: var(--wui-gray-10);
|
|
9156
9163
|
--wui-input-font-size: var(--wui-typography-body-3-size);
|
|
9157
9164
|
--wui-input-line-height: 16px;
|
|
9165
|
+
--wui-input-font-weight: var(--wui-typography-weight-body);
|
|
9158
9166
|
`;
|
|
9159
9167
|
|
|
9160
9168
|
// src/components/Input/Input.tsx
|
|
@@ -9171,7 +9179,7 @@ var inputStyles = import_styled_components46.css`
|
|
|
9171
9179
|
border-radius: var(--wui-input-border-radius);
|
|
9172
9180
|
font-size: var(--wui-input-font-size);
|
|
9173
9181
|
line-height: var(--wui-input-line-height);
|
|
9174
|
-
font-weight: var(--wui-
|
|
9182
|
+
font-weight: var(--wui-input-font-weight);
|
|
9175
9183
|
color: var(--wui-input-color-text);
|
|
9176
9184
|
|
|
9177
9185
|
&::placeholder {
|
|
@@ -9341,15 +9349,12 @@ var StyledInput = (0, import_styled_components47.default)(Input)`
|
|
|
9341
9349
|
min-height: unset;
|
|
9342
9350
|
}
|
|
9343
9351
|
|
|
9344
|
-
resize: vertical;
|
|
9345
|
-
font-size: var(--wui-typography-heading-1-size);
|
|
9346
|
-
font-weight: var(--wui-typography-heading-1-weight);
|
|
9347
|
-
line-height: var(--wui-typography-heading-1-line-height);
|
|
9348
|
-
font-family: var(--wui-typography-heading-1-family);
|
|
9349
|
-
outline: 2px solid var(--wui-color-focus-ring);
|
|
9350
|
-
outline-offset: -2px;
|
|
9351
|
-
|
|
9352
9352
|
&& {
|
|
9353
|
+
--wui-input-font-size: var(--wui-typography-heading-1-size);
|
|
9354
|
+
--wui-input-font-weight: var(--wui-typography-heading-1-weight);
|
|
9355
|
+
--wui-input-line-height: var(--wui-typography-heading-1-line-height);
|
|
9356
|
+
|
|
9357
|
+
font-family: var(--wui-typography-heading-1-family);
|
|
9353
9358
|
width: 100%;
|
|
9354
9359
|
padding: var(--wui-space-02);
|
|
9355
9360
|
border: none;
|
|
@@ -9380,7 +9385,7 @@ var EditableHeading = ({
|
|
|
9380
9385
|
onEditingChange,
|
|
9381
9386
|
tooltipText = "Click to edit title",
|
|
9382
9387
|
ariaLabel = "Edit title",
|
|
9383
|
-
|
|
9388
|
+
__forceEditing = false,
|
|
9384
9389
|
editingDisabled = false
|
|
9385
9390
|
}) => {
|
|
9386
9391
|
const [isEditing, setIsEditing] = (0, import_react29.useState)(false);
|
|
@@ -9433,7 +9438,7 @@ var EditableHeading = ({
|
|
|
9433
9438
|
if (editingDisabled) {
|
|
9434
9439
|
return HeadingComponent2;
|
|
9435
9440
|
}
|
|
9436
|
-
if (isEditing ||
|
|
9441
|
+
if (isEditing || __forceEditing) {
|
|
9437
9442
|
return /* @__PURE__ */ (0, import_jsx_runtime220.jsx)(
|
|
9438
9443
|
StyledInput,
|
|
9439
9444
|
{
|
|
@@ -12660,11 +12665,15 @@ var StyledThumbnail = import_styled_components89.default.div`
|
|
|
12660
12665
|
background-position: center center;
|
|
12661
12666
|
background-size: cover;
|
|
12662
12667
|
aspect-ratio: 16 / 9;
|
|
12663
|
-
border-radius: var(--wui-border-radius-01);
|
|
12664
12668
|
display: flex;
|
|
12665
12669
|
overflow: hidden;
|
|
12666
12670
|
position: relative;
|
|
12667
12671
|
width: ${({ $width }) => $width};
|
|
12672
|
+
|
|
12673
|
+
&,
|
|
12674
|
+
img {
|
|
12675
|
+
border-radius: calc(8% * (9 / 16)) / 8%;
|
|
12676
|
+
}
|
|
12668
12677
|
`;
|
|
12669
12678
|
var Thumbnail = (0, import_react66.forwardRef)(
|
|
12670
12679
|
({
|