@wistia/ui 0.18.17-beta.0c8ce664.ca5f64a → 0.18.17-beta.0f6de3dd.0b7f75e
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 +31 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +30 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
- /package/dist/{index.d.mts → index.d.cts} +0 -0
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.18.17-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.17-beta.0f6de3dd.0b7f75e
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -12918,7 +12918,7 @@ var SaturationAndValuePicker = ({
|
|
|
12918
12918
|
SaturationAndValuePicker.displayName = "SaturationAndValuePicker_UI";
|
|
12919
12919
|
|
|
12920
12920
|
// src/components/Combobox/Combobox.tsx
|
|
12921
|
-
var Ariakit = __toESM(require("@ariakit/react"));
|
|
12921
|
+
var Ariakit = __toESM(require("@ariakit/react"), 1);
|
|
12922
12922
|
var import_react54 = require("react");
|
|
12923
12923
|
var import_match_sorter = require("match-sorter");
|
|
12924
12924
|
var import_styled_components71 = require("styled-components");
|
|
@@ -14110,22 +14110,12 @@ var import_react62 = require("react");
|
|
|
14110
14110
|
var import_styled_components77 = require("styled-components");
|
|
14111
14111
|
var import_type_guards44 = require("@wistia/type-guards");
|
|
14112
14112
|
var import_jsx_runtime278 = require("react/jsx-runtime");
|
|
14113
|
-
var pulse = import_styled_components77.keyframes`
|
|
14114
|
-
0%,
|
|
14115
|
-
100% {
|
|
14116
|
-
opacity: 1;
|
|
14117
|
-
}
|
|
14118
|
-
50% {
|
|
14119
|
-
opacity: 0.5;
|
|
14120
|
-
}
|
|
14121
|
-
`;
|
|
14122
14113
|
var StyledDataCard = import_styled_components77.styled.div`
|
|
14123
14114
|
--wui-data-card-text: var(--wui-color-text-button);
|
|
14124
14115
|
--wui-color-text: var(--wui-data-card-text);
|
|
14125
14116
|
--wui-data-card-background: var(--wui-color-bg-surface-secondary);
|
|
14126
14117
|
--wui-data-card-background-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
14127
14118
|
--wui-data-card-background-active: var(--wui-color-bg-surface-secondary-active);
|
|
14128
|
-
--wui-data-card-skeleton-color: var(--wui-color-bg-surface-tertiary);
|
|
14129
14119
|
|
|
14130
14120
|
display: grid;
|
|
14131
14121
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -14153,16 +14143,6 @@ var StyledDataCard = import_styled_components77.styled.div`
|
|
|
14153
14143
|
grid-template-rows: auto auto auto;
|
|
14154
14144
|
}
|
|
14155
14145
|
|
|
14156
|
-
[data-wui-data-card-skeleton='true'] {
|
|
14157
|
-
pointer-events: none;
|
|
14158
|
-
background-color: var(--wui-data-card-skeleton-color);
|
|
14159
|
-
animation: ${pulse} 1.5s var(--wui-motion-ease-in-out) 0.5s infinite;
|
|
14160
|
-
color: transparent;
|
|
14161
|
-
user-select: none;
|
|
14162
|
-
border-radius: var(--wui-border-radius-01);
|
|
14163
|
-
width: fit-content;
|
|
14164
|
-
}
|
|
14165
|
-
|
|
14166
14146
|
&[data-click-region] {
|
|
14167
14147
|
&:not([disabled]) {
|
|
14168
14148
|
cursor: pointer;
|
|
@@ -14194,7 +14174,6 @@ var StyledDataCard = import_styled_components77.styled.div`
|
|
|
14194
14174
|
--wui-data-card-background-hover: var(--wui-color-bg-surface-selected-hover);
|
|
14195
14175
|
--wui-data-card-background-active: var(--wui-color-bg-surface-selected-active);
|
|
14196
14176
|
--wui-data-card-focus-ring: var(--wui-color-border-selected);
|
|
14197
|
-
--wui-data-card-skeleton-color: var(--wui-color-bg-surface-selected-active);
|
|
14198
14177
|
}
|
|
14199
14178
|
}
|
|
14200
14179
|
|
|
@@ -14205,19 +14184,38 @@ var StyledDataCard = import_styled_components77.styled.div`
|
|
|
14205
14184
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
14206
14185
|
}
|
|
14207
14186
|
`;
|
|
14187
|
+
var shimmer = import_styled_components77.keyframes`
|
|
14188
|
+
0% {
|
|
14189
|
+
background-position: 200% 0;
|
|
14190
|
+
}
|
|
14191
|
+
100% {
|
|
14192
|
+
background-position: -200% 0;
|
|
14193
|
+
}
|
|
14194
|
+
`;
|
|
14195
|
+
var LoadingBackground = import_styled_components77.styled.div`
|
|
14196
|
+
background: linear-gradient(
|
|
14197
|
+
90deg,
|
|
14198
|
+
var(--wui-color-bg-surface-tertiary) 25%,
|
|
14199
|
+
var(--wui-color-bg-surface-secondary) 37%,
|
|
14200
|
+
var(--wui-color-bg-surface-tertiary) 63%
|
|
14201
|
+
);
|
|
14202
|
+
background-size: 200% 100%;
|
|
14203
|
+
animation: ${shimmer} 1.5s infinite;
|
|
14204
|
+
border-radius: var(--wui-border-radius-01);
|
|
14205
|
+
`;
|
|
14206
|
+
var StyledLoadingLabel = (0, import_styled_components77.styled)(LoadingBackground)`
|
|
14207
|
+
width: 80px;
|
|
14208
|
+
height: var(--wui-typography-heading-6-line-height);
|
|
14209
|
+
`;
|
|
14210
|
+
var StyledLoadingValue = (0, import_styled_components77.styled)(LoadingBackground)`
|
|
14211
|
+
width: 90%;
|
|
14212
|
+
height: var(--wui-typography-heading-3-line-height);
|
|
14213
|
+
`;
|
|
14208
14214
|
var StyledLabel3 = (0, import_styled_components77.styled)(Heading)`
|
|
14209
14215
|
grid-area: label;
|
|
14210
|
-
|
|
14211
|
-
&[data-wui-data-card-skeleton='true'] {
|
|
14212
|
-
width: 80px;
|
|
14213
|
-
}
|
|
14214
14216
|
`;
|
|
14215
14217
|
var StyledValue = (0, import_styled_components77.styled)(Heading)`
|
|
14216
14218
|
grid-area: value;
|
|
14217
|
-
|
|
14218
|
-
&[data-wui-data-card-skeleton='true'] {
|
|
14219
|
-
width: min(90%, 156px);
|
|
14220
|
-
}
|
|
14221
14219
|
`;
|
|
14222
14220
|
var StyledSlot = import_styled_components77.styled.div`
|
|
14223
14221
|
display: flex;
|
|
@@ -14251,19 +14249,17 @@ var DataCardInner = ({
|
|
|
14251
14249
|
/* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
|
|
14252
14250
|
StyledLabel3,
|
|
14253
14251
|
{
|
|
14254
|
-
"data-wui-data-card-skeleton": isLoading,
|
|
14255
14252
|
renderAs: "dt",
|
|
14256
14253
|
variant: "heading6",
|
|
14257
|
-
children: label
|
|
14254
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(StyledLoadingLabel, {}) : label
|
|
14258
14255
|
}
|
|
14259
14256
|
),
|
|
14260
14257
|
/* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
|
|
14261
14258
|
StyledValue,
|
|
14262
14259
|
{
|
|
14263
|
-
"data-wui-data-card-skeleton": isLoading,
|
|
14264
14260
|
renderAs: "dd",
|
|
14265
14261
|
variant: "heading3",
|
|
14266
|
-
children: value
|
|
14262
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(StyledLoadingValue, {}) : value
|
|
14267
14263
|
}
|
|
14268
14264
|
),
|
|
14269
14265
|
(0, import_type_guards44.isNotNil)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(StyledSlot, { children: upperRightSlot }),
|