@wistia/ui 0.18.17-beta.c1f00b80.e6809d4 → 0.18.17-beta.f239f323.365cbcc
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 +61 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +61 -41
- 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.18.17-beta.
|
|
3
|
+
* @license @wistia/ui v0.18.17-beta.f239f323.365cbcc
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1866,43 +1866,64 @@ var typographyTokens = import_styled_components7.css`
|
|
|
1866
1866
|
--wui-typography-heading-hero-family: var(--wui-typography-family-brand);
|
|
1867
1867
|
--wui-typography-heading-hero-line-height: 58px;
|
|
1868
1868
|
--wui-typography-heading-hero-size: 48px;
|
|
1869
|
-
--wui-typography-heading-hero-weight: var(
|
|
1869
|
+
--wui-typography-heading-hero-weight: var(
|
|
1870
|
+
--wui-typography-weight-heading,
|
|
1871
|
+
var(--wui-typography-weight-brand-black)
|
|
1872
|
+
);
|
|
1870
1873
|
|
|
1871
1874
|
/* Heading 1 */
|
|
1872
1875
|
--wui-typography-heading-1-family: var(--wui-typography-family-brand);
|
|
1873
1876
|
--wui-typography-heading-1-line-height: 44px;
|
|
1874
1877
|
--wui-typography-heading-1-size: 36px;
|
|
1875
|
-
--wui-typography-heading-1-weight: var(
|
|
1878
|
+
--wui-typography-heading-1-weight: var(
|
|
1879
|
+
--wui-typography-weight-heading,
|
|
1880
|
+
var(--wui-typography-weight-brand-black)
|
|
1881
|
+
);
|
|
1876
1882
|
|
|
1877
1883
|
/* Heading 2 */
|
|
1878
1884
|
--wui-typography-heading-2-family: var(--wui-typography-family-brand);
|
|
1879
1885
|
--wui-typography-heading-2-line-height: 38px;
|
|
1880
1886
|
--wui-typography-heading-2-size: 32px;
|
|
1881
|
-
--wui-typography-heading-2-weight: var(
|
|
1887
|
+
--wui-typography-heading-2-weight: var(
|
|
1888
|
+
--wui-typography-weight-heading,
|
|
1889
|
+
var(--wui-typography-weight-brand-black)
|
|
1890
|
+
);
|
|
1882
1891
|
|
|
1883
1892
|
/* Heading 3 */
|
|
1884
1893
|
--wui-typography-heading-3-family: var(--wui-typography-family-brand);
|
|
1885
1894
|
--wui-typography-heading-3-line-height: 30px;
|
|
1886
1895
|
--wui-typography-heading-3-size: 24px;
|
|
1887
|
-
--wui-typography-heading-3-weight: var(
|
|
1896
|
+
--wui-typography-heading-3-weight: var(
|
|
1897
|
+
--wui-typography-weight-heading,
|
|
1898
|
+
var(--wui-typography-weight-brand-bold)
|
|
1899
|
+
);
|
|
1888
1900
|
|
|
1889
1901
|
/* Heading 4 */
|
|
1890
1902
|
--wui-typography-heading-4-family: var(--wui-typography-family-brand);
|
|
1891
1903
|
--wui-typography-heading-4-line-height: 24px;
|
|
1892
1904
|
--wui-typography-heading-4-size: 18px;
|
|
1893
|
-
--wui-typography-heading-4-weight: var(
|
|
1905
|
+
--wui-typography-heading-4-weight: var(
|
|
1906
|
+
--wui-typography-weight-heading,
|
|
1907
|
+
var(--wui-typography-weight-brand-bold)
|
|
1908
|
+
);
|
|
1894
1909
|
|
|
1895
1910
|
/* Heading 5 */
|
|
1896
1911
|
--wui-typography-heading-5-family: var(--wui-typography-family-brand);
|
|
1897
1912
|
--wui-typography-heading-5-line-height: 22px;
|
|
1898
1913
|
--wui-typography-heading-5-size: 16px;
|
|
1899
|
-
--wui-typography-heading-5-weight: var(
|
|
1914
|
+
--wui-typography-heading-5-weight: var(
|
|
1915
|
+
--wui-typography-weight-heading,
|
|
1916
|
+
var(--wui-typography-weight-brand-bold)
|
|
1917
|
+
);
|
|
1900
1918
|
|
|
1901
1919
|
/* Heading 6 */
|
|
1902
1920
|
--wui-typography-heading-6-family: var(--wui-typography-family-brand);
|
|
1903
1921
|
--wui-typography-heading-6-line-height: 18px;
|
|
1904
1922
|
--wui-typography-heading-6-size: 14px;
|
|
1905
|
-
--wui-typography-heading-6-weight: var(
|
|
1923
|
+
--wui-typography-heading-6-weight: var(
|
|
1924
|
+
--wui-typography-weight-heading,
|
|
1925
|
+
var(--wui-typography-weight-brand-bold)
|
|
1926
|
+
);
|
|
1906
1927
|
|
|
1907
1928
|
/* Body Weight */
|
|
1908
1929
|
--wui-typography-weight-body: 425;
|
|
@@ -2025,7 +2046,8 @@ var colorTokens = import_styled_components11.css`
|
|
|
2025
2046
|
${colorAliasTokens}
|
|
2026
2047
|
`;
|
|
2027
2048
|
var designTokens = import_styled_components11.css`
|
|
2028
|
-
:root
|
|
2049
|
+
:root,
|
|
2050
|
+
[data-wui-theme='true'] {
|
|
2029
2051
|
${borderRadiusTokens}
|
|
2030
2052
|
${colorTokens}
|
|
2031
2053
|
${elevationTokens}
|
|
@@ -14110,22 +14132,12 @@ var import_react62 = require("react");
|
|
|
14110
14132
|
var import_styled_components77 = require("styled-components");
|
|
14111
14133
|
var import_type_guards44 = require("@wistia/type-guards");
|
|
14112
14134
|
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
14135
|
var StyledDataCard = import_styled_components77.styled.div`
|
|
14123
14136
|
--wui-data-card-text: var(--wui-color-text-button);
|
|
14124
14137
|
--wui-color-text: var(--wui-data-card-text);
|
|
14125
14138
|
--wui-data-card-background: var(--wui-color-bg-surface-secondary);
|
|
14126
14139
|
--wui-data-card-background-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
14127
14140
|
--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
14141
|
|
|
14130
14142
|
display: grid;
|
|
14131
14143
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -14153,17 +14165,6 @@ var StyledDataCard = import_styled_components77.styled.div`
|
|
|
14153
14165
|
grid-template-rows: auto auto auto;
|
|
14154
14166
|
}
|
|
14155
14167
|
|
|
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
|
-
pointer-events: none;
|
|
14163
|
-
border-radius: var(--wui-border-radius-01);
|
|
14164
|
-
width: fit-content;
|
|
14165
|
-
}
|
|
14166
|
-
|
|
14167
14168
|
&[data-click-region] {
|
|
14168
14169
|
&:not([disabled]) {
|
|
14169
14170
|
cursor: pointer;
|
|
@@ -14195,7 +14196,6 @@ var StyledDataCard = import_styled_components77.styled.div`
|
|
|
14195
14196
|
--wui-data-card-background-hover: var(--wui-color-bg-surface-selected-hover);
|
|
14196
14197
|
--wui-data-card-background-active: var(--wui-color-bg-surface-selected-active);
|
|
14197
14198
|
--wui-data-card-focus-ring: var(--wui-color-border-selected);
|
|
14198
|
-
--wui-data-card-skeleton-color: var(--wui-color-bg-surface-selected-active);
|
|
14199
14199
|
}
|
|
14200
14200
|
}
|
|
14201
14201
|
|
|
@@ -14206,17 +14206,38 @@ var StyledDataCard = import_styled_components77.styled.div`
|
|
|
14206
14206
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
14207
14207
|
}
|
|
14208
14208
|
`;
|
|
14209
|
+
var shimmer = import_styled_components77.keyframes`
|
|
14210
|
+
0% {
|
|
14211
|
+
background-position: 200% 0;
|
|
14212
|
+
}
|
|
14213
|
+
100% {
|
|
14214
|
+
background-position: -200% 0;
|
|
14215
|
+
}
|
|
14216
|
+
`;
|
|
14217
|
+
var LoadingBackground = import_styled_components77.styled.div`
|
|
14218
|
+
background: linear-gradient(
|
|
14219
|
+
90deg,
|
|
14220
|
+
var(--wui-color-bg-surface-tertiary) 25%,
|
|
14221
|
+
var(--wui-color-bg-surface-secondary) 37%,
|
|
14222
|
+
var(--wui-color-bg-surface-tertiary) 63%
|
|
14223
|
+
);
|
|
14224
|
+
background-size: 200% 100%;
|
|
14225
|
+
animation: ${shimmer} 1.5s infinite;
|
|
14226
|
+
border-radius: var(--wui-border-radius-01);
|
|
14227
|
+
`;
|
|
14228
|
+
var StyledLoadingLabel = (0, import_styled_components77.styled)(LoadingBackground)`
|
|
14229
|
+
width: 80px;
|
|
14230
|
+
height: var(--wui-typography-heading-6-line-height);
|
|
14231
|
+
`;
|
|
14232
|
+
var StyledLoadingValue = (0, import_styled_components77.styled)(LoadingBackground)`
|
|
14233
|
+
width: 90%;
|
|
14234
|
+
height: var(--wui-typography-heading-3-line-height);
|
|
14235
|
+
`;
|
|
14209
14236
|
var StyledLabel3 = (0, import_styled_components77.styled)(Heading)`
|
|
14210
14237
|
grid-area: label;
|
|
14211
|
-
&[data-wui-data-card-skeleton='true'] {
|
|
14212
|
-
width: 80px;
|
|
14213
|
-
}
|
|
14214
14238
|
`;
|
|
14215
14239
|
var StyledValue = (0, import_styled_components77.styled)(Heading)`
|
|
14216
14240
|
grid-area: value;
|
|
14217
|
-
&[data-wui-data-card-skeleton='true'] {
|
|
14218
|
-
width: min(90%, 156px);
|
|
14219
|
-
}
|
|
14220
14241
|
`;
|
|
14221
14242
|
var StyledSlot = import_styled_components77.styled.div`
|
|
14222
14243
|
display: flex;
|
|
@@ -14250,19 +14271,17 @@ var DataCardInner = ({
|
|
|
14250
14271
|
/* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
|
|
14251
14272
|
StyledLabel3,
|
|
14252
14273
|
{
|
|
14253
|
-
"data-wui-data-card-skeleton": isLoading,
|
|
14254
14274
|
renderAs: "dt",
|
|
14255
14275
|
variant: "heading6",
|
|
14256
|
-
children: label
|
|
14276
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(StyledLoadingLabel, {}) : label
|
|
14257
14277
|
}
|
|
14258
14278
|
),
|
|
14259
14279
|
/* @__PURE__ */ (0, import_jsx_runtime278.jsx)(
|
|
14260
14280
|
StyledValue,
|
|
14261
14281
|
{
|
|
14262
|
-
"data-wui-data-card-skeleton": isLoading,
|
|
14263
14282
|
renderAs: "dd",
|
|
14264
14283
|
variant: "heading3",
|
|
14265
|
-
children: value
|
|
14284
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(StyledLoadingValue, {}) : value
|
|
14266
14285
|
}
|
|
14267
14286
|
),
|
|
14268
14287
|
(0, import_type_guards44.isNotNil)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime278.jsx)(StyledSlot, { children: upperRightSlot }),
|
|
@@ -18855,6 +18874,7 @@ var CustomizableThemeWrapper = ({
|
|
|
18855
18874
|
{
|
|
18856
18875
|
...props,
|
|
18857
18876
|
$overrides: overrides,
|
|
18877
|
+
"data-wui-theme": "true",
|
|
18858
18878
|
children
|
|
18859
18879
|
}
|
|
18860
18880
|
);
|