@wistia/ui 0.4.13-beta.e9d42e46.8e8935e → 0.4.13-beta.fc35d0de.e6fa491
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 +256 -221
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +124 -89
- 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.4.13-beta.
|
|
3
|
+
* @license @wistia/ui v0.4.13-beta.fc35d0de.e6fa491
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -111,7 +111,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
111
111
|
var import_react_tooltip = require("@radix-ui/react-tooltip");
|
|
112
112
|
|
|
113
113
|
// src/css/GlobalStyle.tsx
|
|
114
|
-
var
|
|
114
|
+
var import_styled_components11 = require("styled-components");
|
|
115
115
|
|
|
116
116
|
// src/css/resetCss.tsx
|
|
117
117
|
var import_styled_components = require("styled-components");
|
|
@@ -245,14 +245,10 @@ var globalStyleAdjustmentsCss = import_styled_components2.css`
|
|
|
245
245
|
-moz-osx-font-smoothing: grayscale; /* 1 */
|
|
246
246
|
-webkit-font-smoothing: antialiased; /* 2 */
|
|
247
247
|
}
|
|
248
|
-
|
|
249
|
-
* {
|
|
250
|
-
margin: 0;
|
|
251
|
-
}
|
|
252
248
|
`;
|
|
253
249
|
|
|
254
250
|
// src/css/designTokens/index.tsx
|
|
255
|
-
var
|
|
251
|
+
var import_styled_components10 = require("styled-components");
|
|
256
252
|
|
|
257
253
|
// src/css/designTokens/colorGlobal.tsx
|
|
258
254
|
var import_styled_components3 = require("styled-components");
|
|
@@ -1389,8 +1385,38 @@ var zIndexTokens = import_styled_components8.css`
|
|
|
1389
1385
|
--wui-zindex-menu: 500;
|
|
1390
1386
|
`;
|
|
1391
1387
|
|
|
1388
|
+
// src/css/designTokens/motion.tsx
|
|
1389
|
+
var import_styled_components9 = require("styled-components");
|
|
1390
|
+
var motionTokens = import_styled_components9.css`
|
|
1391
|
+
/* Durations */
|
|
1392
|
+
--wui-motion-duration-01: 70ms;
|
|
1393
|
+
--wui-motion-duration-02: 110ms;
|
|
1394
|
+
--wui-motion-duration-03: 150ms;
|
|
1395
|
+
--wui-motion-duration-04: 240ms;
|
|
1396
|
+
--wui-motion-duration-05: 400ms;
|
|
1397
|
+
--wui-motion-duration-06: 700ms;
|
|
1398
|
+
|
|
1399
|
+
@media (prefers-reduced-motion) {
|
|
1400
|
+
--wui-motion-duration-01: 0ms;
|
|
1401
|
+
--wui-motion-duration-02: 0ms;
|
|
1402
|
+
--wui-motion-duration-03: 0ms;
|
|
1403
|
+
--wui-motion-duration-04: 0ms;
|
|
1404
|
+
--wui-motion-duration-05: 0ms;
|
|
1405
|
+
--wui-motion-duration-06: 0ms;
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
/* Easings */
|
|
1409
|
+
|
|
1410
|
+
/* Taken from: https://polaris.shopify.com/tokens/motion */
|
|
1411
|
+
--wui-motion-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
1412
|
+
--wui-motion-ease-in: cubic-bezier(0.42, 0, 1, 1);
|
|
1413
|
+
--wui-motion-ease-out: cubic-bezier(0.19, 0.91, 0.38, 1);
|
|
1414
|
+
--wui-motion-ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
|
|
1415
|
+
--wui-motion-linear: cubic-bezier(0, 0, 1, 1);
|
|
1416
|
+
`;
|
|
1417
|
+
|
|
1392
1418
|
// src/css/designTokens/index.tsx
|
|
1393
|
-
var colorTokens =
|
|
1419
|
+
var colorTokens = import_styled_components10.css`
|
|
1394
1420
|
${lightGlobalTokens}
|
|
1395
1421
|
/* Dark mode is disabled until we have a more robust plan for supporting it */
|
|
1396
1422
|
|
|
@@ -1399,18 +1425,19 @@ var colorTokens = import_styled_components9.css`
|
|
|
1399
1425
|
} */
|
|
1400
1426
|
${colorAliasTokens}
|
|
1401
1427
|
`;
|
|
1402
|
-
var designTokens =
|
|
1428
|
+
var designTokens = import_styled_components10.css`
|
|
1403
1429
|
:root {
|
|
1404
1430
|
${colorTokens}
|
|
1405
1431
|
${spacingTokens}
|
|
1406
1432
|
${borderRadiusTokens}
|
|
1407
1433
|
${typographyTokens}
|
|
1408
1434
|
${zIndexTokens}
|
|
1435
|
+
${motionTokens}
|
|
1409
1436
|
}
|
|
1410
1437
|
`;
|
|
1411
1438
|
|
|
1412
1439
|
// src/css/GlobalStyle.tsx
|
|
1413
|
-
var GlobalStyle =
|
|
1440
|
+
var GlobalStyle = import_styled_components11.createGlobalStyle`
|
|
1414
1441
|
${resetCss}
|
|
1415
1442
|
${globalStyleAdjustmentsCss}
|
|
1416
1443
|
${designTokens}
|
|
@@ -1736,14 +1763,14 @@ var import_sonner2 = require("sonner");
|
|
|
1736
1763
|
|
|
1737
1764
|
// src/private/components/Toast/Toast.tsx
|
|
1738
1765
|
var import_react8 = require("react");
|
|
1739
|
-
var
|
|
1766
|
+
var import_styled_components14 = __toESM(require("styled-components"));
|
|
1740
1767
|
var import_type_guards7 = require("@wistia/type-guards");
|
|
1741
1768
|
|
|
1742
1769
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
1743
1770
|
var import_type_guards6 = require("@wistia/type-guards");
|
|
1744
|
-
var
|
|
1771
|
+
var import_styled_components12 = __toESM(require("styled-components"));
|
|
1745
1772
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1746
|
-
var ellipsisStyle =
|
|
1773
|
+
var ellipsisStyle = import_styled_components12.css`
|
|
1747
1774
|
overflow: hidden;
|
|
1748
1775
|
text-overflow: ellipsis;
|
|
1749
1776
|
white-space: nowrap;
|
|
@@ -1766,14 +1793,14 @@ var ellipsisStyle = import_styled_components11.css`
|
|
|
1766
1793
|
}
|
|
1767
1794
|
}
|
|
1768
1795
|
`;
|
|
1769
|
-
var ellipsisFlexParentStyle =
|
|
1796
|
+
var ellipsisFlexParentStyle = import_styled_components12.css`
|
|
1770
1797
|
min-width: 0;
|
|
1771
1798
|
`;
|
|
1772
|
-
var EllipsisComponent =
|
|
1799
|
+
var EllipsisComponent = import_styled_components12.default.div`
|
|
1773
1800
|
${ellipsisStyle};
|
|
1774
1801
|
${({ $lines }) => {
|
|
1775
1802
|
if ((0, import_type_guards6.isNotNil)($lines)) {
|
|
1776
|
-
return
|
|
1803
|
+
return import_styled_components12.css`
|
|
1777
1804
|
-webkit-box-orient: vertical;
|
|
1778
1805
|
-webkit-line-clamp: ${$lines};
|
|
1779
1806
|
display: -webkit-box;
|
|
@@ -1794,7 +1821,7 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, impor
|
|
|
1794
1821
|
Ellipsis.displayName = "Ellipsis";
|
|
1795
1822
|
|
|
1796
1823
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
1797
|
-
var
|
|
1824
|
+
var import_styled_components13 = require("styled-components");
|
|
1798
1825
|
var colorSchemeSchema = [
|
|
1799
1826
|
{ token: "bg-surface", step: "surface" },
|
|
1800
1827
|
{ token: "bg-surface-hover", step: "3" },
|
|
@@ -1821,7 +1848,7 @@ var colorSchemeSchema = [
|
|
|
1821
1848
|
{ token: "icon-on-fill", step: "contrast" },
|
|
1822
1849
|
{ token: "focus-ring", step: "9" }
|
|
1823
1850
|
];
|
|
1824
|
-
var defaultScheme =
|
|
1851
|
+
var defaultScheme = import_styled_components13.css`
|
|
1825
1852
|
--wui-color-bg-surface: var(--wui-gray-surface);
|
|
1826
1853
|
--wui-color-bg-surface-hover: var(--wui-gray-3);
|
|
1827
1854
|
--wui-color-bg-surface-active: var(--wui-gray-4);
|
|
@@ -1847,7 +1874,7 @@ var defaultScheme = import_styled_components12.css`
|
|
|
1847
1874
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
1848
1875
|
--wui-color-focus-ring: var(--wui-blue-9);
|
|
1849
1876
|
`;
|
|
1850
|
-
var navScheme =
|
|
1877
|
+
var navScheme = import_styled_components13.css`
|
|
1851
1878
|
--wui-color-bg-fill-active: var(--wui-blue-5);
|
|
1852
1879
|
--wui-color-bg-fill-hover: var(--wui-blue-4);
|
|
1853
1880
|
--wui-color-bg-fill: var(--wui-blue-1);
|
|
@@ -1898,7 +1925,7 @@ var getColorScheme = (colorScheme) => {
|
|
|
1898
1925
|
if (colorScheme === "default") {
|
|
1899
1926
|
return defaultScheme;
|
|
1900
1927
|
}
|
|
1901
|
-
return
|
|
1928
|
+
return import_styled_components13.css`
|
|
1902
1929
|
${colorSchemeSchema.map(({ token, step }) => {
|
|
1903
1930
|
return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
|
|
1904
1931
|
}).join("")}
|
|
@@ -1907,12 +1934,12 @@ var getColorScheme = (colorScheme) => {
|
|
|
1907
1934
|
|
|
1908
1935
|
// src/private/components/Toast/Toast.tsx
|
|
1909
1936
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1910
|
-
var Message = (0,
|
|
1937
|
+
var Message = (0, import_styled_components14.default)(Ellipsis)`
|
|
1911
1938
|
line-height: var(--wui-typography-label-3-line-height);
|
|
1912
1939
|
font-size: var(--wui-typography-label-3-size);
|
|
1913
1940
|
font-weight: var(--wui-typography-label-3-weight);
|
|
1914
1941
|
`;
|
|
1915
|
-
var MessageWrapper =
|
|
1942
|
+
var MessageWrapper = import_styled_components14.default.div`
|
|
1916
1943
|
display: flex;
|
|
1917
1944
|
flex-grow: 1;
|
|
1918
1945
|
flex-shrink: 1;
|
|
@@ -1925,13 +1952,13 @@ var MessageWrapper = import_styled_components13.default.div`
|
|
|
1925
1952
|
margin-right: var(--wui-space-02); /* space between icon & message */
|
|
1926
1953
|
}
|
|
1927
1954
|
`;
|
|
1928
|
-
var ActionWrapper =
|
|
1955
|
+
var ActionWrapper = import_styled_components14.default.div`
|
|
1929
1956
|
flex-grow: 0;
|
|
1930
1957
|
flex-shrink: 0;
|
|
1931
1958
|
flex-basis: auto;
|
|
1932
1959
|
margin-right: var(--wui-space-03);
|
|
1933
1960
|
`;
|
|
1934
|
-
var StyledToast =
|
|
1961
|
+
var StyledToast = import_styled_components14.default.div`
|
|
1935
1962
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
1936
1963
|
display: flex;
|
|
1937
1964
|
align-items: center;
|
|
@@ -2016,16 +2043,16 @@ var useToast = () => {
|
|
|
2016
2043
|
|
|
2017
2044
|
// src/components/ActionButton/ActionButton.tsx
|
|
2018
2045
|
var import_react13 = require("react");
|
|
2019
|
-
var
|
|
2046
|
+
var import_styled_components20 = __toESM(require("styled-components"));
|
|
2020
2047
|
|
|
2021
2048
|
// src/components/Button/Button.tsx
|
|
2022
2049
|
var import_react12 = require("react");
|
|
2023
|
-
var
|
|
2050
|
+
var import_styled_components19 = __toESM(require("styled-components"));
|
|
2024
2051
|
var import_type_guards11 = require("@wistia/type-guards");
|
|
2025
2052
|
|
|
2026
2053
|
// src/css/buttonResetCss.tsx
|
|
2027
|
-
var
|
|
2028
|
-
var buttonResetCss =
|
|
2054
|
+
var import_styled_components15 = require("styled-components");
|
|
2055
|
+
var buttonResetCss = import_styled_components15.css`
|
|
2029
2056
|
align-items: center;
|
|
2030
2057
|
background-color: transparent;
|
|
2031
2058
|
background-image: none;
|
|
@@ -2070,8 +2097,8 @@ var buttonResetCss = import_styled_components14.css`
|
|
|
2070
2097
|
`;
|
|
2071
2098
|
|
|
2072
2099
|
// src/components/Button/buttonStyles.tsx
|
|
2073
|
-
var
|
|
2074
|
-
var buttonSmallStyles =
|
|
2100
|
+
var import_styled_components16 = require("styled-components");
|
|
2101
|
+
var buttonSmallStyles = import_styled_components16.css`
|
|
2075
2102
|
--button-padding-vertical: var(--wui-space-01);
|
|
2076
2103
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2077
2104
|
--button-label-padding-horizontal: var(--wui-space-01);
|
|
@@ -2082,7 +2109,7 @@ var buttonSmallStyles = import_styled_components15.css`
|
|
|
2082
2109
|
--button-icon-size: 12px;
|
|
2083
2110
|
--button-label-gap: 4px;
|
|
2084
2111
|
`;
|
|
2085
|
-
var buttonMediumStyles =
|
|
2112
|
+
var buttonMediumStyles = import_styled_components16.css`
|
|
2086
2113
|
--button-padding-vertical: var(--wui-space-02);
|
|
2087
2114
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2088
2115
|
--button-label-padding-horizontal: 6px;
|
|
@@ -2093,7 +2120,7 @@ var buttonMediumStyles = import_styled_components15.css`
|
|
|
2093
2120
|
--button-icon-size: 16px;
|
|
2094
2121
|
--button-label-gap: 6px;
|
|
2095
2122
|
`;
|
|
2096
|
-
var buttonLargeStyles =
|
|
2123
|
+
var buttonLargeStyles = import_styled_components16.css`
|
|
2097
2124
|
--button-padding-vertical: var(--wui-space-02);
|
|
2098
2125
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2099
2126
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2104,7 +2131,7 @@ var buttonLargeStyles = import_styled_components15.css`
|
|
|
2104
2131
|
--button-icon-size: 24px;
|
|
2105
2132
|
--button-label-gap: 8px;
|
|
2106
2133
|
`;
|
|
2107
|
-
var buttonExtraLargeStyles =
|
|
2134
|
+
var buttonExtraLargeStyles = import_styled_components16.css`
|
|
2108
2135
|
--button-padding-vertical: var(--wui-space-03);
|
|
2109
2136
|
--button-padding-horizontal: var(--wui-space-03);
|
|
2110
2137
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2115,34 +2142,34 @@ var buttonExtraLargeStyles = import_styled_components15.css`
|
|
|
2115
2142
|
--button-icon-size: 24px;
|
|
2116
2143
|
--button-label-gap: 8px;
|
|
2117
2144
|
`;
|
|
2118
|
-
var ghostButtonVariant =
|
|
2145
|
+
var ghostButtonVariant = import_styled_components16.css`
|
|
2119
2146
|
--button-color-bg: transparent;
|
|
2120
2147
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2121
2148
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2122
2149
|
--button-color-text: var(--wui-color-text-button);
|
|
2123
2150
|
--button-color-icon: var(--wui-color-icon);
|
|
2124
2151
|
`;
|
|
2125
|
-
var outlineButtonVariant =
|
|
2152
|
+
var outlineButtonVariant = import_styled_components16.css`
|
|
2126
2153
|
${ghostButtonVariant};
|
|
2127
2154
|
--button-color-border: var(--wui-color-border);
|
|
2128
2155
|
|
|
2129
2156
|
box-shadow: 0 0 0 2px var(--button-color-border) inset;
|
|
2130
2157
|
`;
|
|
2131
|
-
var softButtonVariant =
|
|
2158
|
+
var softButtonVariant = import_styled_components16.css`
|
|
2132
2159
|
--button-color-bg: var(--wui-color-bg-surface-secondary);
|
|
2133
2160
|
--button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
2134
2161
|
--button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
|
|
2135
2162
|
--button-color-text: var(--wui-color-text-button);
|
|
2136
2163
|
--button-color-icon: var(--wui-color-icon);
|
|
2137
2164
|
`;
|
|
2138
|
-
var solidButtonVariant =
|
|
2165
|
+
var solidButtonVariant = import_styled_components16.css`
|
|
2139
2166
|
--button-color-bg: var(--wui-color-bg-fill);
|
|
2140
2167
|
--button-color-bg-hover: var(--wui-color-bg-fill-hover);
|
|
2141
2168
|
--button-color-bg-active: var(--wui-color-bg-fill-active);
|
|
2142
2169
|
--button-color-text: var(--wui-color-text-on-fill);
|
|
2143
2170
|
--button-color-icon: var(--wui-color-icon-on-fill);
|
|
2144
2171
|
`;
|
|
2145
|
-
var disabledButtonVariant =
|
|
2172
|
+
var disabledButtonVariant = import_styled_components16.css`
|
|
2146
2173
|
--button-color-bg: var(--wui-color-bg-surface-disabled);
|
|
2147
2174
|
--button-color-bg-hover: var(--wui-color-bg-surface-disabled);
|
|
2148
2175
|
--button-color-bg-active: var(--wui-color-bg-surface-disabled);
|
|
@@ -2150,7 +2177,7 @@ var disabledButtonVariant = import_styled_components15.css`
|
|
|
2150
2177
|
--button-color-icon: var(--wui-color-icon-disabled);
|
|
2151
2178
|
--button-color-border: var(--wui-color-border-disabled);
|
|
2152
2179
|
`;
|
|
2153
|
-
var pressedButtonVariant =
|
|
2180
|
+
var pressedButtonVariant = import_styled_components16.css`
|
|
2154
2181
|
--button-color-bg: var(--wui-color-bg-surface-selected);
|
|
2155
2182
|
--button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
|
|
2156
2183
|
--button-color-bg-active: var(--wui-color-bg-surface-selected-active);
|
|
@@ -2158,7 +2185,7 @@ var pressedButtonVariant = import_styled_components15.css`
|
|
|
2158
2185
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
2159
2186
|
--button-color-border: var(--wui-color-border-selected);
|
|
2160
2187
|
`;
|
|
2161
|
-
var buttonBaseStyles =
|
|
2188
|
+
var buttonBaseStyles = import_styled_components16.css`
|
|
2162
2189
|
border-radius: var(--wui-border-radius-rounded);
|
|
2163
2190
|
font-family: var(--button-typography-family);
|
|
2164
2191
|
font-size: var(--button-typography-size);
|
|
@@ -2167,6 +2194,7 @@ var buttonBaseStyles = import_styled_components15.css`
|
|
|
2167
2194
|
padding: var(--button-padding-vertical) var(--button-padding-horizontal);
|
|
2168
2195
|
background: var(--button-color-bg);
|
|
2169
2196
|
color: var(--button-color-text);
|
|
2197
|
+
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
2170
2198
|
|
|
2171
2199
|
/* This ensure that the icon is the corect color when the style is solid or the button is disabled */
|
|
2172
2200
|
&& {
|
|
@@ -2225,7 +2253,7 @@ var buttonSizeStyles = {
|
|
|
2225
2253
|
|
|
2226
2254
|
// src/components/Icon/Icon.tsx
|
|
2227
2255
|
var import_type_guards9 = require("@wistia/type-guards");
|
|
2228
|
-
var
|
|
2256
|
+
var import_styled_components17 = __toESM(require("styled-components"));
|
|
2229
2257
|
|
|
2230
2258
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
2231
2259
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -5410,7 +5438,7 @@ var iconSizeMap = {
|
|
|
5410
5438
|
xl: "32",
|
|
5411
5439
|
xxl: "48"
|
|
5412
5440
|
};
|
|
5413
|
-
var StyledIcon =
|
|
5441
|
+
var StyledIcon = import_styled_components17.default.svg`
|
|
5414
5442
|
${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
|
|
5415
5443
|
`;
|
|
5416
5444
|
var Icon = ({
|
|
@@ -5461,7 +5489,7 @@ Icon.displayName = "Icon";
|
|
|
5461
5489
|
// src/components/Link/Link.tsx
|
|
5462
5490
|
var import_react11 = require("react");
|
|
5463
5491
|
var import_type_guards10 = require("@wistia/type-guards");
|
|
5464
|
-
var
|
|
5492
|
+
var import_styled_components18 = __toESM(require("styled-components"));
|
|
5465
5493
|
var import_react_router_dom = require("react-router-dom");
|
|
5466
5494
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
5467
5495
|
var generateHref = (href, type, disabled) => {
|
|
@@ -5479,7 +5507,7 @@ var generateHref = (href, type, disabled) => {
|
|
|
5479
5507
|
};
|
|
5480
5508
|
var isButton = (props) => (0, import_type_guards10.isUndefined)(props.href);
|
|
5481
5509
|
var isLink = (props) => (0, import_type_guards10.isNotUndefined)(props.href);
|
|
5482
|
-
var StyledLink =
|
|
5510
|
+
var StyledLink = import_styled_components18.default.a`
|
|
5483
5511
|
--link-icon-size: 14px;
|
|
5484
5512
|
|
|
5485
5513
|
${({ href }) => (0, import_type_guards10.isNil)(href) && buttonResetCss};
|
|
@@ -5590,7 +5618,7 @@ Link.displayName = "Link";
|
|
|
5590
5618
|
// src/components/Button/Button.tsx
|
|
5591
5619
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
5592
5620
|
var isLink2 = (props) => (0, import_type_guards11.isNotUndefined)(props.href);
|
|
5593
|
-
var StyledButton =
|
|
5621
|
+
var StyledButton = import_styled_components19.default.button`
|
|
5594
5622
|
${buttonResetCss}
|
|
5595
5623
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
5596
5624
|
${({ $size }) => buttonSizeStyles[$size]}
|
|
@@ -5600,7 +5628,7 @@ var StyledButton = import_styled_components18.default.button`
|
|
|
5600
5628
|
position: relative;
|
|
5601
5629
|
text-align: center;
|
|
5602
5630
|
`;
|
|
5603
|
-
var StyledButtonContent =
|
|
5631
|
+
var StyledButtonContent = import_styled_components19.default.div`
|
|
5604
5632
|
align-items: center;
|
|
5605
5633
|
display: inline-flex;
|
|
5606
5634
|
flex-grow: 1;
|
|
@@ -5612,10 +5640,10 @@ var StyledButtonContent = import_styled_components18.default.div`
|
|
|
5612
5640
|
${({ $hasLeftIcon }) => $hasLeftIcon && "padding-left: 0;"}
|
|
5613
5641
|
${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
|
|
5614
5642
|
`;
|
|
5615
|
-
var StyledButtonContentLabel =
|
|
5643
|
+
var StyledButtonContentLabel = import_styled_components19.default.span`
|
|
5616
5644
|
flex: 1;
|
|
5617
5645
|
`;
|
|
5618
|
-
var StyledButtonLoading =
|
|
5646
|
+
var StyledButtonLoading = import_styled_components19.default.div`
|
|
5619
5647
|
position: absolute;
|
|
5620
5648
|
display: flex;
|
|
5621
5649
|
`;
|
|
@@ -5728,7 +5756,7 @@ Button.displayName = "Button";
|
|
|
5728
5756
|
|
|
5729
5757
|
// src/components/ActionButton/ActionButton.tsx
|
|
5730
5758
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
5731
|
-
var StyledActionButton = (0,
|
|
5759
|
+
var StyledActionButton = (0, import_styled_components20.default)(Button)`
|
|
5732
5760
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
5733
5761
|
display: grid;
|
|
5734
5762
|
grid-template-columns: 24px 1fr;
|
|
@@ -5741,6 +5769,7 @@ var StyledActionButton = (0, import_styled_components19.default)(Button)`
|
|
|
5741
5769
|
grid-row-gap: var(--wui-space-02);
|
|
5742
5770
|
border-radius: var(--wui-border-radius-03);
|
|
5743
5771
|
flex: 0 0 auto;
|
|
5772
|
+
transition: background-color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
5744
5773
|
|
|
5745
5774
|
&:focus {
|
|
5746
5775
|
outline: none;
|
|
@@ -5768,31 +5797,30 @@ var StyledActionButton = (0, import_styled_components19.default)(Button)`
|
|
|
5768
5797
|
}
|
|
5769
5798
|
}
|
|
5770
5799
|
`;
|
|
5771
|
-
var StyledMainIcon =
|
|
5800
|
+
var StyledMainIcon = import_styled_components20.default.div`
|
|
5772
5801
|
grid-column: 1;
|
|
5773
5802
|
grid-row: 1;
|
|
5774
5803
|
width: 24px;
|
|
5775
5804
|
height: 24px;
|
|
5805
|
+
transition: color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
5776
5806
|
|
|
5777
5807
|
svg {
|
|
5778
5808
|
width: 24px;
|
|
5779
5809
|
height: 24px;
|
|
5780
5810
|
}
|
|
5781
5811
|
`;
|
|
5782
|
-
var StyledSecondaryIcon =
|
|
5812
|
+
var StyledSecondaryIcon = import_styled_components20.default.div`
|
|
5783
5813
|
grid-column: 2;
|
|
5784
5814
|
grid-row: 1;
|
|
5785
5815
|
width: 100%;
|
|
5786
5816
|
display: flex;
|
|
5787
5817
|
justify-content: flex-end;
|
|
5788
|
-
transition: all
|
|
5818
|
+
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
|
|
5789
5819
|
|
|
5790
|
-
${({ $hideUntilHover }) => $hideUntilHover &&
|
|
5820
|
+
${({ $hideUntilHover }) => $hideUntilHover && import_styled_components20.css`
|
|
5821
|
+
will-change: transform;
|
|
5791
5822
|
opacity: 0;
|
|
5792
|
-
|
|
5793
|
-
@media not (prefers-reduced-motion) {
|
|
5794
|
-
transform: translateX(-16px);
|
|
5795
|
-
}
|
|
5823
|
+
transform: translateX(-16px);
|
|
5796
5824
|
${StyledActionButton}:hover:not([aria-disabled="true"]) &,
|
|
5797
5825
|
${StyledActionButton}:focus-visible:not([aria-disabled="true"]) & {
|
|
5798
5826
|
transform: translateX(0);
|
|
@@ -5805,7 +5833,7 @@ var StyledSecondaryIcon = import_styled_components19.default.div`
|
|
|
5805
5833
|
height: 24px;
|
|
5806
5834
|
}
|
|
5807
5835
|
`;
|
|
5808
|
-
var StyledLabel =
|
|
5836
|
+
var StyledLabel = import_styled_components20.default.span`
|
|
5809
5837
|
font-family: var(--wui-typography-heading-4-family);
|
|
5810
5838
|
font-size: var(--wui-typography-heading-4-size);
|
|
5811
5839
|
font-weight: var(--wui-typography-heading-4-weight);
|
|
@@ -5861,10 +5889,10 @@ ActionButton.displayName = "ActionButton";
|
|
|
5861
5889
|
// src/components/Avatar/Avatar.tsx
|
|
5862
5890
|
var import_react14 = require("react");
|
|
5863
5891
|
var import_type_guards13 = require("@wistia/type-guards");
|
|
5864
|
-
var
|
|
5892
|
+
var import_styled_components22 = __toESM(require("styled-components"));
|
|
5865
5893
|
|
|
5866
5894
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
5867
|
-
var
|
|
5895
|
+
var import_styled_components21 = __toESM(require("styled-components"));
|
|
5868
5896
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
5869
5897
|
var colorSchemeOptions = [
|
|
5870
5898
|
"inherit",
|
|
@@ -5883,7 +5911,7 @@ var colorSchemeOptions = [
|
|
|
5883
5911
|
"vendor-marketo",
|
|
5884
5912
|
"vendor-pardot"
|
|
5885
5913
|
];
|
|
5886
|
-
var StyledColorSchemeWrapper =
|
|
5914
|
+
var StyledColorSchemeWrapper = import_styled_components21.default.div`
|
|
5887
5915
|
${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
|
|
5888
5916
|
`;
|
|
5889
5917
|
var ColorSchemeWrapper = ({
|
|
@@ -5918,7 +5946,7 @@ var formatNameForDisplay = (name) => {
|
|
|
5918
5946
|
|
|
5919
5947
|
// src/components/Avatar/Avatar.tsx
|
|
5920
5948
|
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
5921
|
-
var AvatarImage =
|
|
5949
|
+
var AvatarImage = import_styled_components22.default.img`
|
|
5922
5950
|
align-items: center;
|
|
5923
5951
|
background-color: white;
|
|
5924
5952
|
border-radius: 50%;
|
|
@@ -5930,6 +5958,7 @@ var AvatarImage = import_styled_components21.default.img`
|
|
|
5930
5958
|
pointer-events: none;
|
|
5931
5959
|
user-select: none;
|
|
5932
5960
|
width: ${({ $heightAndWidth }) => $heightAndWidth}px;
|
|
5961
|
+
transition: box-shadow var(--wui-duration-01) var(--wui-motion-ease);
|
|
5933
5962
|
|
|
5934
5963
|
a:hover & {
|
|
5935
5964
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 25%);
|
|
@@ -5945,7 +5974,7 @@ var avatarSizeMap = {
|
|
|
5945
5974
|
lg: 32
|
|
5946
5975
|
};
|
|
5947
5976
|
var fontSizeScaleMultiplier = 0.55;
|
|
5948
|
-
var InitialsContainer =
|
|
5977
|
+
var InitialsContainer = import_styled_components22.default.div`
|
|
5949
5978
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
5950
5979
|
align-items: center;
|
|
5951
5980
|
background-color: var(--wui-color-bg-fill);
|
|
@@ -5967,7 +5996,7 @@ var InitialsContainer = import_styled_components21.default.div`
|
|
|
5967
5996
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
|
|
5968
5997
|
}
|
|
5969
5998
|
`;
|
|
5970
|
-
var AvatarWrapper =
|
|
5999
|
+
var AvatarWrapper = import_styled_components22.default.div`
|
|
5971
6000
|
max-height: ${({ $maxHeight }) => $maxHeight}px;
|
|
5972
6001
|
`;
|
|
5973
6002
|
var chooseColorScheme = (name) => {
|
|
@@ -6034,10 +6063,10 @@ Avatar.displayName = "Avatar";
|
|
|
6034
6063
|
|
|
6035
6064
|
// src/components/Badge/Badge.tsx
|
|
6036
6065
|
var import_react15 = require("react");
|
|
6037
|
-
var
|
|
6066
|
+
var import_styled_components23 = __toESM(require("styled-components"));
|
|
6038
6067
|
var import_type_guards14 = require("@wistia/type-guards");
|
|
6039
6068
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
6040
|
-
var StyledBadge =
|
|
6069
|
+
var StyledBadge = import_styled_components23.default.div`
|
|
6041
6070
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6042
6071
|
align-items: center;
|
|
6043
6072
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -6079,7 +6108,7 @@ Badge.displayName = "Badge";
|
|
|
6079
6108
|
|
|
6080
6109
|
// src/components/Box/Box.tsx
|
|
6081
6110
|
var import_react16 = require("react");
|
|
6082
|
-
var
|
|
6111
|
+
var import_styled_components24 = __toESM(require("styled-components"));
|
|
6083
6112
|
var import_type_guards15 = require("@wistia/type-guards");
|
|
6084
6113
|
|
|
6085
6114
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
@@ -6131,7 +6160,7 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
6131
6160
|
}
|
|
6132
6161
|
return void 0;
|
|
6133
6162
|
};
|
|
6134
|
-
var StyledBoxComponent =
|
|
6163
|
+
var StyledBoxComponent = import_styled_components24.default.div`
|
|
6135
6164
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
6136
6165
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
6137
6166
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
@@ -6218,9 +6247,9 @@ var Box = makePolymorphic(BoxComponent);
|
|
|
6218
6247
|
|
|
6219
6248
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
6220
6249
|
var import_react17 = require("react");
|
|
6221
|
-
var
|
|
6250
|
+
var import_styled_components25 = __toESM(require("styled-components"));
|
|
6222
6251
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
6223
|
-
var StyledBreadcrumbs =
|
|
6252
|
+
var StyledBreadcrumbs = import_styled_components25.default.nav`
|
|
6224
6253
|
display: flex;
|
|
6225
6254
|
align-items: center;
|
|
6226
6255
|
gap: var(--wui-space-01);
|
|
@@ -6265,9 +6294,9 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
6265
6294
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
6266
6295
|
|
|
6267
6296
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
6268
|
-
var
|
|
6297
|
+
var import_styled_components26 = __toESM(require("styled-components"));
|
|
6269
6298
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6270
|
-
var BreadcrumbContent =
|
|
6299
|
+
var BreadcrumbContent = import_styled_components26.default.span`
|
|
6271
6300
|
overflow: hidden;
|
|
6272
6301
|
white-space: nowrap;
|
|
6273
6302
|
display: block;
|
|
@@ -6299,7 +6328,7 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
6299
6328
|
};
|
|
6300
6329
|
|
|
6301
6330
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
6302
|
-
var
|
|
6331
|
+
var import_styled_components27 = __toESM(require("styled-components"));
|
|
6303
6332
|
var import_type_guards16 = require("@wistia/type-guards");
|
|
6304
6333
|
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
6305
6334
|
var getAlignment = (align) => {
|
|
@@ -6314,7 +6343,7 @@ var getAlignment = (align) => {
|
|
|
6314
6343
|
}
|
|
6315
6344
|
return "flex-start";
|
|
6316
6345
|
};
|
|
6317
|
-
var ButtonGroupComponent =
|
|
6346
|
+
var ButtonGroupComponent = import_styled_components27.default.div`
|
|
6318
6347
|
display: flex;
|
|
6319
6348
|
|
|
6320
6349
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
@@ -6356,9 +6385,9 @@ var ButtonGroup = ({
|
|
|
6356
6385
|
ButtonGroup.displayName = "ButtonGroup";
|
|
6357
6386
|
|
|
6358
6387
|
// src/components/Card/Card.tsx
|
|
6359
|
-
var
|
|
6388
|
+
var import_styled_components28 = __toESM(require("styled-components"));
|
|
6360
6389
|
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
6361
|
-
var StyledCard = (0,
|
|
6390
|
+
var StyledCard = (0, import_styled_components28.default)(Box)`
|
|
6362
6391
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6363
6392
|
box-sizing: border-box;
|
|
6364
6393
|
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
@@ -6409,53 +6438,53 @@ Card.displayName = "Card";
|
|
|
6409
6438
|
// src/components/Checkbox/Checkbox.tsx
|
|
6410
6439
|
var import_react19 = require("react");
|
|
6411
6440
|
var import_react_checkbox = require("@radix-ui/react-checkbox");
|
|
6412
|
-
var
|
|
6441
|
+
var import_styled_components32 = __toESM(require("styled-components"));
|
|
6413
6442
|
var import_type_guards18 = require("@wistia/type-guards");
|
|
6414
6443
|
|
|
6415
6444
|
// src/components/Label/Label.tsx
|
|
6416
|
-
var
|
|
6445
|
+
var import_styled_components30 = __toESM(require("styled-components"));
|
|
6417
6446
|
|
|
6418
6447
|
// src/components/Heading/Heading.tsx
|
|
6419
6448
|
var import_react18 = require("react");
|
|
6420
|
-
var
|
|
6449
|
+
var import_styled_components29 = __toESM(require("styled-components"));
|
|
6421
6450
|
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
6422
|
-
var heroStyle =
|
|
6451
|
+
var heroStyle = import_styled_components29.css`
|
|
6423
6452
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
6424
6453
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
6425
6454
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
6426
6455
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
6427
6456
|
`;
|
|
6428
|
-
var heading1TextStyle =
|
|
6457
|
+
var heading1TextStyle = import_styled_components29.css`
|
|
6429
6458
|
--font-family: var(--wui-typography-heading-1-family);
|
|
6430
6459
|
--font-size: var(--wui-typography-heading-1-size);
|
|
6431
6460
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
6432
6461
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
6433
6462
|
`;
|
|
6434
|
-
var heading2TextStyle =
|
|
6463
|
+
var heading2TextStyle = import_styled_components29.css`
|
|
6435
6464
|
--font-family: var(--wui-typography-heading-2-family);
|
|
6436
6465
|
--font-size: var(--wui-typography-heading-2-size);
|
|
6437
6466
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
6438
6467
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
6439
6468
|
`;
|
|
6440
|
-
var heading3TextStyle =
|
|
6469
|
+
var heading3TextStyle = import_styled_components29.css`
|
|
6441
6470
|
--font-family: var(--wui-typography-heading-3-family);
|
|
6442
6471
|
--font-size: var(--wui-typography-heading-3-size);
|
|
6443
6472
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
6444
6473
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
6445
6474
|
`;
|
|
6446
|
-
var heading4TextStyle =
|
|
6475
|
+
var heading4TextStyle = import_styled_components29.css`
|
|
6447
6476
|
--font-family: var(--wui-typography-heading-4-family);
|
|
6448
6477
|
--font-size: var(--wui-typography-heading-4-size);
|
|
6449
6478
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
6450
6479
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
6451
6480
|
`;
|
|
6452
|
-
var heading5TextStyle =
|
|
6481
|
+
var heading5TextStyle = import_styled_components29.css`
|
|
6453
6482
|
--font-family: var(--wui-typography-heading-5-family);
|
|
6454
6483
|
--font-size: var(--wui-typography-heading-5-size);
|
|
6455
6484
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
6456
6485
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
6457
6486
|
`;
|
|
6458
|
-
var heading6TextStyle =
|
|
6487
|
+
var heading6TextStyle = import_styled_components29.css`
|
|
6459
6488
|
--font-family: var(--wui-typography-heading-6-family);
|
|
6460
6489
|
--font-size: var(--wui-typography-heading-6-size);
|
|
6461
6490
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -6471,7 +6500,7 @@ var variantStyleMap = {
|
|
|
6471
6500
|
heading6: heading6TextStyle
|
|
6472
6501
|
};
|
|
6473
6502
|
var DEFAULT_ELEMENT2 = "h1";
|
|
6474
|
-
var StyledHeading =
|
|
6503
|
+
var StyledHeading = import_styled_components29.default.div`
|
|
6475
6504
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6476
6505
|
font-family: var(--font-family);
|
|
6477
6506
|
font-size: var(--font-size);
|
|
@@ -6480,16 +6509,16 @@ var StyledHeading = import_styled_components28.default.div`
|
|
|
6480
6509
|
color: var(--wui-color-text);
|
|
6481
6510
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
6482
6511
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
6483
|
-
${({ $inline }) => $inline &&
|
|
6512
|
+
${({ $inline }) => $inline && import_styled_components29.css`
|
|
6484
6513
|
display: inline-block;
|
|
6485
6514
|
`}
|
|
6486
|
-
${({ $disabled }) => $disabled &&
|
|
6515
|
+
${({ $disabled }) => $disabled && import_styled_components29.css`
|
|
6487
6516
|
color: var(--wui-color-text-disabled);
|
|
6488
6517
|
`}
|
|
6489
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
6518
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components29.css`
|
|
6490
6519
|
user-select: none;
|
|
6491
6520
|
`}
|
|
6492
|
-
${({ $align }) =>
|
|
6521
|
+
${({ $align }) => import_styled_components29.css`
|
|
6493
6522
|
text-align: ${$align};
|
|
6494
6523
|
`}
|
|
6495
6524
|
margin: 0;
|
|
@@ -6535,7 +6564,7 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
6535
6564
|
|
|
6536
6565
|
// src/components/Label/Label.tsx
|
|
6537
6566
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
6538
|
-
var requiredStyle =
|
|
6567
|
+
var requiredStyle = import_styled_components30.css`
|
|
6539
6568
|
&::after {
|
|
6540
6569
|
color: var(--wui-color-text-error);
|
|
6541
6570
|
display: inline;
|
|
@@ -6543,10 +6572,10 @@ var requiredStyle = import_styled_components29.css`
|
|
|
6543
6572
|
content: '*';
|
|
6544
6573
|
}
|
|
6545
6574
|
`;
|
|
6546
|
-
var disabledStyle =
|
|
6575
|
+
var disabledStyle = import_styled_components30.css`
|
|
6547
6576
|
color: var(--wui-color-text-disabled);
|
|
6548
6577
|
`;
|
|
6549
|
-
var StyledLabel2 = (0,
|
|
6578
|
+
var StyledLabel2 = (0, import_styled_components30.default)(Heading).attrs({
|
|
6550
6579
|
variant: "heading6",
|
|
6551
6580
|
renderAs: "label"
|
|
6552
6581
|
})`
|
|
@@ -6589,10 +6618,10 @@ var Label = ({
|
|
|
6589
6618
|
Label.displayName = "Label";
|
|
6590
6619
|
|
|
6591
6620
|
// src/components/Label/LabelDescription.tsx
|
|
6592
|
-
var
|
|
6621
|
+
var import_styled_components31 = __toESM(require("styled-components"));
|
|
6593
6622
|
var import_type_guards17 = require("@wistia/type-guards");
|
|
6594
6623
|
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
6595
|
-
var StyledLabelDescription =
|
|
6624
|
+
var StyledLabelDescription = import_styled_components31.default.div`
|
|
6596
6625
|
color: var(--wui-color-text-secondary);
|
|
6597
6626
|
font-size: var(--wui-typography-body-4-size);
|
|
6598
6627
|
font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -6628,7 +6657,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
|
|
|
6628
6657
|
)
|
|
6629
6658
|
}
|
|
6630
6659
|
);
|
|
6631
|
-
var StyledCheckboxWrapper =
|
|
6660
|
+
var StyledCheckboxWrapper = import_styled_components32.default.div`
|
|
6632
6661
|
display: flex;
|
|
6633
6662
|
align-items: center;
|
|
6634
6663
|
cursor: pointer;
|
|
@@ -6642,7 +6671,7 @@ var StyledCheckboxWrapper = import_styled_components31.default.div`
|
|
|
6642
6671
|
background-color: #efefef;
|
|
6643
6672
|
}
|
|
6644
6673
|
`;
|
|
6645
|
-
var StyledCheckboxRoot = (0,
|
|
6674
|
+
var StyledCheckboxRoot = (0, import_styled_components32.default)(import_react_checkbox.Root)`
|
|
6646
6675
|
all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
|
|
6647
6676
|
background-color: var(--wui-color-bg-fill-white);
|
|
6648
6677
|
min-width: 16px;
|
|
@@ -6676,10 +6705,10 @@ var StyledCheckboxRoot = (0, import_styled_components31.default)(import_react_ch
|
|
|
6676
6705
|
/* TODO Lamp to design focus state */
|
|
6677
6706
|
}
|
|
6678
6707
|
`;
|
|
6679
|
-
var StyledCheckboxIndicator = (0,
|
|
6708
|
+
var StyledCheckboxIndicator = (0, import_styled_components32.default)(import_react_checkbox.Indicator)`
|
|
6680
6709
|
display: flex;
|
|
6681
6710
|
`;
|
|
6682
|
-
var StyledLabelWrapper =
|
|
6711
|
+
var StyledLabelWrapper = import_styled_components32.default.div`
|
|
6683
6712
|
display: flex;
|
|
6684
6713
|
flex-direction: column;
|
|
6685
6714
|
margin-left: var(--wui-space-02);
|
|
@@ -6747,22 +6776,22 @@ var Checkbox = (0, import_react19.forwardRef)(
|
|
|
6747
6776
|
Checkbox.displayName = "Checkbox";
|
|
6748
6777
|
|
|
6749
6778
|
// src/components/Divider/Divider.tsx
|
|
6750
|
-
var
|
|
6779
|
+
var import_styled_components33 = __toESM(require("styled-components"));
|
|
6751
6780
|
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
6752
|
-
var horizontalBorderCss =
|
|
6781
|
+
var horizontalBorderCss = import_styled_components33.css`
|
|
6753
6782
|
border-top-color: var(--wui-color-border);
|
|
6754
6783
|
border-top-style: solid;
|
|
6755
6784
|
border-top-width: 1px;
|
|
6756
6785
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
6757
6786
|
height: 0;
|
|
6758
6787
|
`;
|
|
6759
|
-
var verticalBorderCss =
|
|
6788
|
+
var verticalBorderCss = import_styled_components33.css`
|
|
6760
6789
|
background-color: var(--wui-color-border);
|
|
6761
6790
|
max-width: 1px;
|
|
6762
6791
|
min-height: 100%;
|
|
6763
6792
|
width: 1px;
|
|
6764
6793
|
`;
|
|
6765
|
-
var DividerComponent =
|
|
6794
|
+
var DividerComponent = import_styled_components33.default.div`
|
|
6766
6795
|
${({ $orientation }) => {
|
|
6767
6796
|
switch ($orientation) {
|
|
6768
6797
|
case "vertical":
|
|
@@ -6791,15 +6820,15 @@ Divider.displayName = "Divider";
|
|
|
6791
6820
|
|
|
6792
6821
|
// src/components/Form/Form.tsx
|
|
6793
6822
|
var import_react21 = require("react");
|
|
6794
|
-
var
|
|
6823
|
+
var import_styled_components35 = __toESM(require("styled-components"));
|
|
6795
6824
|
var import_type_guards19 = require("@wistia/type-guards");
|
|
6796
6825
|
|
|
6797
6826
|
// src/components/Stack/Stack.tsx
|
|
6798
6827
|
var import_react20 = require("react");
|
|
6799
|
-
var
|
|
6828
|
+
var import_styled_components34 = __toESM(require("styled-components"));
|
|
6800
6829
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
6801
6830
|
var DEFAULT_ELEMENT3 = "div";
|
|
6802
|
-
var StyledStack =
|
|
6831
|
+
var StyledStack = import_styled_components34.default.div`
|
|
6803
6832
|
display: flex;
|
|
6804
6833
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6805
6834
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -6825,7 +6854,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
6825
6854
|
|
|
6826
6855
|
// src/components/Form/Form.tsx
|
|
6827
6856
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
6828
|
-
var StyledForm =
|
|
6857
|
+
var StyledForm = import_styled_components35.default.form`
|
|
6829
6858
|
--form-default-width: 690px;
|
|
6830
6859
|
|
|
6831
6860
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -6990,94 +7019,94 @@ var FormErrorSummary = ({ description }) => {
|
|
|
6990
7019
|
|
|
6991
7020
|
// src/components/FormField/FormField.tsx
|
|
6992
7021
|
var import_react27 = require("react");
|
|
6993
|
-
var
|
|
7022
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
6994
7023
|
var import_type_guards21 = require("@wistia/type-guards");
|
|
6995
7024
|
|
|
6996
7025
|
// src/components/Text/Text.tsx
|
|
6997
7026
|
var import_react24 = require("react");
|
|
6998
|
-
var
|
|
7027
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
6999
7028
|
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
7000
|
-
var bodyBoldStyles =
|
|
7029
|
+
var bodyBoldStyles = import_styled_components36.css`
|
|
7001
7030
|
> strong,
|
|
7002
7031
|
b {
|
|
7003
7032
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
7004
7033
|
}
|
|
7005
7034
|
`;
|
|
7006
|
-
var labelBoldStyles =
|
|
7035
|
+
var labelBoldStyles = import_styled_components36.css`
|
|
7007
7036
|
> strong,
|
|
7008
7037
|
b {
|
|
7009
7038
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
7010
7039
|
}
|
|
7011
7040
|
`;
|
|
7012
|
-
var body1TextStyle =
|
|
7041
|
+
var body1TextStyle = import_styled_components36.css`
|
|
7013
7042
|
--font-family: var(--wui-typography-body-1-family);
|
|
7014
7043
|
--font-size: var(--wui-typography-body-1-size);
|
|
7015
7044
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
7016
7045
|
--line-height: var(--wui-typography-body-1-line-height);
|
|
7017
7046
|
${bodyBoldStyles}
|
|
7018
7047
|
`;
|
|
7019
|
-
var body2TextStyle =
|
|
7048
|
+
var body2TextStyle = import_styled_components36.css`
|
|
7020
7049
|
--font-family: var(--wui-typography-body-2-family);
|
|
7021
7050
|
--font-size: var(--wui-typography-body-2-size);
|
|
7022
7051
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
7023
7052
|
--line-height: var(--wui-typography-body-2-line-height);
|
|
7024
7053
|
${bodyBoldStyles}
|
|
7025
7054
|
`;
|
|
7026
|
-
var body3TextStyle =
|
|
7055
|
+
var body3TextStyle = import_styled_components36.css`
|
|
7027
7056
|
--font-family: var(--wui-typography-body-3-family);
|
|
7028
7057
|
--font-size: var(--wui-typography-body-3-size);
|
|
7029
7058
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
7030
7059
|
--line-height: var(--wui-typography-body-3-line-height);
|
|
7031
7060
|
${bodyBoldStyles}
|
|
7032
7061
|
`;
|
|
7033
|
-
var body4TextStyle =
|
|
7062
|
+
var body4TextStyle = import_styled_components36.css`
|
|
7034
7063
|
--font-family: var(--wui-typography-body-4-family);
|
|
7035
7064
|
--font-size: var(--wui-typography-body-4-size);
|
|
7036
7065
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
7037
7066
|
--line-height: var(--wui-typography-body-4-line-height);
|
|
7038
7067
|
${bodyBoldStyles}
|
|
7039
7068
|
`;
|
|
7040
|
-
var label1TextStyle =
|
|
7069
|
+
var label1TextStyle = import_styled_components36.css`
|
|
7041
7070
|
--font-family: var(--wui-typography-label-1-family);
|
|
7042
7071
|
--font-size: var(--wui-typography-label-1-size);
|
|
7043
7072
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
7044
7073
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
7045
7074
|
${labelBoldStyles}
|
|
7046
7075
|
`;
|
|
7047
|
-
var label2TextStyle =
|
|
7076
|
+
var label2TextStyle = import_styled_components36.css`
|
|
7048
7077
|
--font-family: var(--wui-typography-label-2-family);
|
|
7049
7078
|
--font-size: var(--wui-typography-label-2-size);
|
|
7050
7079
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
7051
7080
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
7052
7081
|
${labelBoldStyles}
|
|
7053
7082
|
`;
|
|
7054
|
-
var label3TextStyle =
|
|
7083
|
+
var label3TextStyle = import_styled_components36.css`
|
|
7055
7084
|
--font-family: var(--wui-typography-label-3-family);
|
|
7056
7085
|
--font-size: var(--wui-typography-label-3-size);
|
|
7057
7086
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
7058
7087
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
7059
7088
|
${labelBoldStyles}
|
|
7060
7089
|
`;
|
|
7061
|
-
var label4TextStyle =
|
|
7090
|
+
var label4TextStyle = import_styled_components36.css`
|
|
7062
7091
|
--font-family: var(--wui-typography-label-4-family);
|
|
7063
7092
|
--font-size: var(--wui-typography-label-4-size);
|
|
7064
7093
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
7065
7094
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
7066
7095
|
${labelBoldStyles}
|
|
7067
7096
|
`;
|
|
7068
|
-
var body1MonoTextStyle =
|
|
7097
|
+
var body1MonoTextStyle = import_styled_components36.css`
|
|
7069
7098
|
${body1TextStyle};
|
|
7070
7099
|
--font-family: var(--wui-typography-family-mono);
|
|
7071
7100
|
`;
|
|
7072
|
-
var body2MonoTextStyle =
|
|
7101
|
+
var body2MonoTextStyle = import_styled_components36.css`
|
|
7073
7102
|
${body2TextStyle};
|
|
7074
7103
|
--font-family: var(--wui-typography-family-mono);
|
|
7075
7104
|
`;
|
|
7076
|
-
var body3MonoTextStyle =
|
|
7105
|
+
var body3MonoTextStyle = import_styled_components36.css`
|
|
7077
7106
|
${body3TextStyle};
|
|
7078
7107
|
--font-family: var(--wui-typography-family-mono);
|
|
7079
7108
|
`;
|
|
7080
|
-
var body4MonoTextStyle =
|
|
7109
|
+
var body4MonoTextStyle = import_styled_components36.css`
|
|
7081
7110
|
${body4TextStyle};
|
|
7082
7111
|
--font-family: var(--wui-typography-family-mono);
|
|
7083
7112
|
`;
|
|
@@ -7095,7 +7124,7 @@ var variantStyleMap2 = {
|
|
|
7095
7124
|
label3: label3TextStyle,
|
|
7096
7125
|
label4: label4TextStyle
|
|
7097
7126
|
};
|
|
7098
|
-
var StyledText =
|
|
7127
|
+
var StyledText = import_styled_components36.default.div`
|
|
7099
7128
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7100
7129
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
7101
7130
|
if ($disabled) {
|
|
@@ -7119,19 +7148,19 @@ var StyledText = import_styled_components35.default.div`
|
|
|
7119
7148
|
margin: 0;
|
|
7120
7149
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
7121
7150
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7122
|
-
${({ $inline }) => $inline &&
|
|
7151
|
+
${({ $inline }) => $inline && import_styled_components36.css`
|
|
7123
7152
|
display: inline-block;
|
|
7124
7153
|
`}
|
|
7125
|
-
${({ $disabled }) => $disabled &&
|
|
7154
|
+
${({ $disabled }) => $disabled && import_styled_components36.css`
|
|
7126
7155
|
--text-color: var(--wui-color-text-disabled);
|
|
7127
7156
|
`}
|
|
7128
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
7157
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components36.css`
|
|
7129
7158
|
user-select: none;
|
|
7130
7159
|
`}
|
|
7131
|
-
${({ $align }) =>
|
|
7160
|
+
${({ $align }) => import_styled_components36.css`
|
|
7132
7161
|
text-align: ${$align};
|
|
7133
7162
|
`}
|
|
7134
|
-
${({ as }) => as === "p" &&
|
|
7163
|
+
${({ as }) => as === "p" && import_styled_components36.css`
|
|
7135
7164
|
display: block;
|
|
7136
7165
|
`}
|
|
7137
7166
|
`;
|
|
@@ -7174,13 +7203,13 @@ var Text = makePolymorphic(TextComponent);
|
|
|
7174
7203
|
var import_react26 = require("react");
|
|
7175
7204
|
|
|
7176
7205
|
// src/components/FormGroup/FormGroup.tsx
|
|
7177
|
-
var
|
|
7206
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
7178
7207
|
var import_react25 = require("react");
|
|
7179
7208
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
7180
|
-
var StyledFieldset =
|
|
7209
|
+
var StyledFieldset = import_styled_components37.default.fieldset`
|
|
7181
7210
|
border: 0;
|
|
7182
7211
|
`;
|
|
7183
|
-
var StyledLegend =
|
|
7212
|
+
var StyledLegend = import_styled_components37.default.legend`
|
|
7184
7213
|
margin-bottom: var(--space-01);
|
|
7185
7214
|
`;
|
|
7186
7215
|
var FormGroup = ({ children, label, ...props }) => {
|
|
@@ -7229,7 +7258,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
7229
7258
|
|
|
7230
7259
|
// src/components/FormField/FormField.tsx
|
|
7231
7260
|
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
7232
|
-
var StyledFormField =
|
|
7261
|
+
var StyledFormField = import_styled_components38.default.div`
|
|
7233
7262
|
--form-field-spacing: var(--wui-space-01);
|
|
7234
7263
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
7235
7264
|
|
|
@@ -7237,7 +7266,7 @@ var StyledFormField = import_styled_components37.default.div`
|
|
|
7237
7266
|
flex-direction: column;
|
|
7238
7267
|
gap: var(--form-field-spacing);
|
|
7239
7268
|
`;
|
|
7240
|
-
var StyledErrorList =
|
|
7269
|
+
var StyledErrorList = import_styled_components38.default.ul`
|
|
7241
7270
|
margin: 0;
|
|
7242
7271
|
padding: 0;
|
|
7243
7272
|
padding-left: var(--wui-space-04);
|
|
@@ -7351,9 +7380,9 @@ RadioGroup.displayName = "RadioGroup";
|
|
|
7351
7380
|
|
|
7352
7381
|
// src/components/IconButton/IconButton.tsx
|
|
7353
7382
|
var import_react29 = require("react");
|
|
7354
|
-
var
|
|
7383
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
7355
7384
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
7356
|
-
var StyledButton2 = (0,
|
|
7385
|
+
var StyledButton2 = (0, import_styled_components39.default)(Button)`
|
|
7357
7386
|
--icon-button-size-sm: 24px;
|
|
7358
7387
|
--icon-button-size-md: 32px;
|
|
7359
7388
|
--icon-button-size-lg: 40px;
|
|
@@ -7389,10 +7418,10 @@ IconButton.displayName = "IconButton";
|
|
|
7389
7418
|
|
|
7390
7419
|
// src/components/Input/Input.tsx
|
|
7391
7420
|
var import_react30 = require("react");
|
|
7392
|
-
var
|
|
7421
|
+
var import_styled_components40 = __toESM(require("styled-components"));
|
|
7393
7422
|
var import_type_guards22 = require("@wistia/type-guards");
|
|
7394
7423
|
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
7395
|
-
var inputStyles =
|
|
7424
|
+
var inputStyles = import_styled_components40.css`
|
|
7396
7425
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
7397
7426
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
7398
7427
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -7433,7 +7462,7 @@ var inputStyles = import_styled_components39.css`
|
|
|
7433
7462
|
}
|
|
7434
7463
|
}
|
|
7435
7464
|
`;
|
|
7436
|
-
var StyledInputContainer =
|
|
7465
|
+
var StyledInputContainer = import_styled_components40.default.div`
|
|
7437
7466
|
display: inline-flex;
|
|
7438
7467
|
position: relative;
|
|
7439
7468
|
${inputStyles};
|
|
@@ -7551,7 +7580,7 @@ var Input = (0, import_react30.forwardRef)(
|
|
|
7551
7580
|
Input.displayName = "Input";
|
|
7552
7581
|
|
|
7553
7582
|
// src/components/Menu/Menu.tsx
|
|
7554
|
-
var
|
|
7583
|
+
var import_styled_components41 = __toESM(require("styled-components"));
|
|
7555
7584
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
7556
7585
|
var import_type_guards23 = require("@wistia/type-guards");
|
|
7557
7586
|
var import_react32 = require("react");
|
|
@@ -7563,7 +7592,7 @@ var useMenuContext = () => (0, import_react31.useContext)(MenuContext);
|
|
|
7563
7592
|
|
|
7564
7593
|
// src/components/Menu/Menu.tsx
|
|
7565
7594
|
var import_jsx_runtime187 = require("react/jsx-runtime");
|
|
7566
|
-
var open =
|
|
7595
|
+
var open = import_styled_components41.keyframes`
|
|
7567
7596
|
from {
|
|
7568
7597
|
opacity: 0;
|
|
7569
7598
|
transform: scale(.97) translateY(-8px);
|
|
@@ -7573,7 +7602,7 @@ var open = import_styled_components40.keyframes`
|
|
|
7573
7602
|
transform: scale(1);
|
|
7574
7603
|
}
|
|
7575
7604
|
`;
|
|
7576
|
-
var close =
|
|
7605
|
+
var close = import_styled_components41.keyframes`
|
|
7577
7606
|
from {
|
|
7578
7607
|
opacity: 1;
|
|
7579
7608
|
transform: scale(1);
|
|
@@ -7583,7 +7612,7 @@ var close = import_styled_components40.keyframes`
|
|
|
7583
7612
|
transform: scale(.97) translateY(-8px);
|
|
7584
7613
|
}
|
|
7585
7614
|
`;
|
|
7586
|
-
var menuItemCss =
|
|
7615
|
+
var menuItemCss = import_styled_components41.css`
|
|
7587
7616
|
--menu-label-description-gap: var(--wui-space-01);
|
|
7588
7617
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
7589
7618
|
--menu-item-left-icon-size: 24px;
|
|
@@ -7594,7 +7623,7 @@ var menuItemCss = import_styled_components40.css`
|
|
|
7594
7623
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
7595
7624
|
--menu-divider-margin: var(--wui-space-02);
|
|
7596
7625
|
`;
|
|
7597
|
-
var compactMenuItemCss =
|
|
7626
|
+
var compactMenuItemCss = import_styled_components41.css`
|
|
7598
7627
|
--menu-label-description-gap: 0;
|
|
7599
7628
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
7600
7629
|
--menu-item-left-icon-size: 16px;
|
|
@@ -7605,7 +7634,7 @@ var compactMenuItemCss = import_styled_components40.css`
|
|
|
7605
7634
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
7606
7635
|
--menu-divider-margin: var(--wui-space-01);
|
|
7607
7636
|
`;
|
|
7608
|
-
var menuContentCss =
|
|
7637
|
+
var menuContentCss = import_styled_components41.css`
|
|
7609
7638
|
--menu-font-family: var(--wui-typography-family-default);
|
|
7610
7639
|
--menu-bg: var(--wui-color-bg-surface);
|
|
7611
7640
|
--menu-shadow: 0 0 64px 0 rgba(0 0 0 / 8%); /* TODO - Need a box-shadow token */
|
|
@@ -7613,10 +7642,11 @@ var menuContentCss = import_styled_components40.css`
|
|
|
7613
7642
|
--menu-padding: var(--wui-space-02);
|
|
7614
7643
|
--menu-min-width: 120px;
|
|
7615
7644
|
--menu-max-width: 284px;
|
|
7645
|
+
--menu-animation-duration: var(--wui-motion-duration-03);
|
|
7616
7646
|
|
|
7617
7647
|
${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss};
|
|
7618
7648
|
|
|
7619
|
-
animation: ${open};
|
|
7649
|
+
animation: var(--menu-animation-duration) var(--wui-motion-ease-out) ${open};
|
|
7620
7650
|
font-family: var(--menu-font-family);
|
|
7621
7651
|
background: var(--menu-bg);
|
|
7622
7652
|
border-radius: var(--menu-border-radius);
|
|
@@ -7631,7 +7661,7 @@ var menuContentCss = import_styled_components40.css`
|
|
|
7631
7661
|
border: 1px solid var(--wui-color-border);
|
|
7632
7662
|
|
|
7633
7663
|
&[data-state='closed'] {
|
|
7634
|
-
animation: ${close}; /* TODO - need easing tokens */
|
|
7664
|
+
animation: var(--menu-animation-duration) var(--wui-motion-ease-in) ${close}; /* TODO - need easing tokens */
|
|
7635
7665
|
}
|
|
7636
7666
|
|
|
7637
7667
|
${mq.smAndUp} {
|
|
@@ -7646,7 +7676,7 @@ var menuContentCss = import_styled_components40.css`
|
|
|
7646
7676
|
margin: var(--menu-divider-margin) 0;
|
|
7647
7677
|
}
|
|
7648
7678
|
`;
|
|
7649
|
-
var MenuContent = (0,
|
|
7679
|
+
var MenuContent = (0, import_styled_components41.default)(import_react_dropdown_menu.DropdownMenuContent)`
|
|
7650
7680
|
${menuContentCss}
|
|
7651
7681
|
`;
|
|
7652
7682
|
var Menu = ({
|
|
@@ -7709,10 +7739,10 @@ var Menu = ({
|
|
|
7709
7739
|
Menu.displayName = "Menu";
|
|
7710
7740
|
|
|
7711
7741
|
// src/components/Menu/MenuLabel.tsx
|
|
7712
|
-
var
|
|
7742
|
+
var import_styled_components42 = __toESM(require("styled-components"));
|
|
7713
7743
|
var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
|
|
7714
7744
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
7715
|
-
var StyledMenuLabel = (0,
|
|
7745
|
+
var StyledMenuLabel = (0, import_styled_components42.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
|
|
7716
7746
|
padding: var(--wui-space-02);
|
|
7717
7747
|
`;
|
|
7718
7748
|
var MenuLabel = ({ children, ...props }) => {
|
|
@@ -7737,16 +7767,16 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
7737
7767
|
|
|
7738
7768
|
// src/components/Menu/SubMenu.tsx
|
|
7739
7769
|
var import_react34 = require("react");
|
|
7740
|
-
var
|
|
7770
|
+
var import_styled_components45 = __toESM(require("styled-components"));
|
|
7741
7771
|
var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
|
|
7742
7772
|
var import_type_guards25 = require("@wistia/type-guards");
|
|
7743
7773
|
|
|
7744
7774
|
// src/components/Menu/MenuItemButton.tsx
|
|
7745
7775
|
var import_react33 = require("react");
|
|
7746
|
-
var
|
|
7776
|
+
var import_styled_components43 = __toESM(require("styled-components"));
|
|
7747
7777
|
var import_type_guards24 = require("@wistia/type-guards");
|
|
7748
7778
|
var import_jsx_runtime189 = require("react/jsx-runtime");
|
|
7749
|
-
var StyledButton3 = (0,
|
|
7779
|
+
var StyledButton3 = (0, import_styled_components43.default)(Button)`
|
|
7750
7780
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
7751
7781
|
|
|
7752
7782
|
display: flex;
|
|
@@ -7759,6 +7789,7 @@ var StyledButton3 = (0, import_styled_components42.default)(Button)`
|
|
|
7759
7789
|
font-size: var(--menu-label-font-size);
|
|
7760
7790
|
font-weight: var(--menu-label-font-weight);
|
|
7761
7791
|
line-height: var(--menu-label-line-height);
|
|
7792
|
+
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
7762
7793
|
|
|
7763
7794
|
:active {
|
|
7764
7795
|
background-color: var(--wui-color-bg-surface-active);
|
|
@@ -7784,7 +7815,7 @@ var StyledButton3 = (0, import_styled_components42.default)(Button)`
|
|
|
7784
7815
|
padding-left: var(--wui-space-04);
|
|
7785
7816
|
}
|
|
7786
7817
|
`;
|
|
7787
|
-
var StyledLeftIconContainer =
|
|
7818
|
+
var StyledLeftIconContainer = import_styled_components43.default.div`
|
|
7788
7819
|
height: var(--menu-item-left-icon-size);
|
|
7789
7820
|
width: var(--menu-item-left-icon-size);
|
|
7790
7821
|
|
|
@@ -7793,7 +7824,7 @@ var StyledLeftIconContainer = import_styled_components42.default.div`
|
|
|
7793
7824
|
width: var(--menu-item-left-icon-size);
|
|
7794
7825
|
}
|
|
7795
7826
|
`;
|
|
7796
|
-
var StyledRightIconContainer =
|
|
7827
|
+
var StyledRightIconContainer = import_styled_components43.default.div`
|
|
7797
7828
|
height: var(--menu-item-right-icon-size);
|
|
7798
7829
|
width: var(--menu-item-right-icon-size);
|
|
7799
7830
|
|
|
@@ -7802,13 +7833,13 @@ var StyledRightIconContainer = import_styled_components42.default.div`
|
|
|
7802
7833
|
width: var(--menu-item-right-icon-size);
|
|
7803
7834
|
}
|
|
7804
7835
|
`;
|
|
7805
|
-
var StyledLabelAndDescriptionContainer =
|
|
7836
|
+
var StyledLabelAndDescriptionContainer = import_styled_components43.default.div`
|
|
7806
7837
|
display: flex;
|
|
7807
7838
|
flex-direction: column;
|
|
7808
7839
|
gap: var(--menu-label-description-gap);
|
|
7809
7840
|
flex-basis: 100%;
|
|
7810
7841
|
`;
|
|
7811
|
-
var StyledBadgeContainer =
|
|
7842
|
+
var StyledBadgeContainer = import_styled_components43.default.div`
|
|
7812
7843
|
align-self: start;
|
|
7813
7844
|
justify-self: end;
|
|
7814
7845
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -7856,10 +7887,10 @@ var MenuItemButton = (0, import_react33.forwardRef)(({ children, appearance, com
|
|
|
7856
7887
|
MenuItemButton.displayName = "MenuItemButton";
|
|
7857
7888
|
|
|
7858
7889
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
7859
|
-
var
|
|
7890
|
+
var import_styled_components44 = __toESM(require("styled-components"));
|
|
7860
7891
|
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
7861
|
-
var StyledMenuItemLabel =
|
|
7862
|
-
var StyledMenuItemDescription = (0,
|
|
7892
|
+
var StyledMenuItemLabel = import_styled_components44.default.span``;
|
|
7893
|
+
var StyledMenuItemDescription = (0, import_styled_components44.default)(Text).attrs({
|
|
7863
7894
|
variant: "body4",
|
|
7864
7895
|
prominence: "secondary"
|
|
7865
7896
|
})``;
|
|
@@ -7872,17 +7903,17 @@ var MenuItemDescription = ({ children }) => {
|
|
|
7872
7903
|
|
|
7873
7904
|
// src/components/Menu/SubMenu.tsx
|
|
7874
7905
|
var import_jsx_runtime191 = require("react/jsx-runtime");
|
|
7875
|
-
var SubMenuContent = (0,
|
|
7906
|
+
var SubMenuContent = (0, import_styled_components45.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
|
|
7876
7907
|
${menuContentCss}
|
|
7877
7908
|
|
|
7878
7909
|
${mq.smAndDown} {
|
|
7879
7910
|
transform: translateX(-100%) !important;
|
|
7880
7911
|
}
|
|
7881
7912
|
`;
|
|
7882
|
-
var StyledMobileSubMenuItems =
|
|
7913
|
+
var StyledMobileSubMenuItems = import_styled_components45.default.div`
|
|
7883
7914
|
margin-left: var(--wui-space-04);
|
|
7884
7915
|
`;
|
|
7885
|
-
var StyledSubTrigger = (0,
|
|
7916
|
+
var StyledSubTrigger = (0, import_styled_components45.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
|
|
7886
7917
|
outline: none;
|
|
7887
7918
|
|
|
7888
7919
|
&[data-state='open'],
|
|
@@ -8092,19 +8123,19 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
8092
8123
|
|
|
8093
8124
|
// src/components/Modal/Modal.tsx
|
|
8094
8125
|
var import_react39 = require("react");
|
|
8095
|
-
var
|
|
8126
|
+
var import_styled_components51 = __toESM(require("styled-components"));
|
|
8096
8127
|
var import_react_dialog4 = require("@radix-ui/react-dialog");
|
|
8097
8128
|
var import_type_guards28 = require("@wistia/type-guards");
|
|
8098
8129
|
|
|
8099
8130
|
// src/components/Modal/ModalHeader.tsx
|
|
8100
|
-
var
|
|
8131
|
+
var import_styled_components48 = __toESM(require("styled-components"));
|
|
8101
8132
|
var import_react_dialog2 = require("@radix-ui/react-dialog");
|
|
8102
8133
|
|
|
8103
8134
|
// src/components/Modal/ModalCloseButton.tsx
|
|
8104
|
-
var
|
|
8135
|
+
var import_styled_components46 = __toESM(require("styled-components"));
|
|
8105
8136
|
var import_react_dialog = require("@radix-ui/react-dialog");
|
|
8106
8137
|
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
8107
|
-
var CloseButton = (0,
|
|
8138
|
+
var CloseButton = (0, import_styled_components46.default)(import_react_dialog.Close)`
|
|
8108
8139
|
align-self: start;
|
|
8109
8140
|
`;
|
|
8110
8141
|
var ModalCloseButton = () => {
|
|
@@ -8120,11 +8151,11 @@ var ModalCloseButton = () => {
|
|
|
8120
8151
|
};
|
|
8121
8152
|
|
|
8122
8153
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
8123
|
-
var
|
|
8154
|
+
var import_styled_components47 = __toESM(require("styled-components"));
|
|
8124
8155
|
var import_type_guards26 = require("@wistia/type-guards");
|
|
8125
8156
|
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
8126
|
-
var VisuallyHidden =
|
|
8127
|
-
var VisuallyHiddenButFocusable =
|
|
8157
|
+
var VisuallyHidden = import_styled_components47.default.div({ ...visuallyHiddenStyle });
|
|
8158
|
+
var VisuallyHiddenButFocusable = import_styled_components47.default.div({
|
|
8128
8159
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
8129
8160
|
});
|
|
8130
8161
|
var ScreenReaderOnly = ({
|
|
@@ -8143,7 +8174,7 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
8143
8174
|
|
|
8144
8175
|
// src/components/Modal/ModalHeader.tsx
|
|
8145
8176
|
var import_jsx_runtime198 = require("react/jsx-runtime");
|
|
8146
|
-
var Header =
|
|
8177
|
+
var Header = import_styled_components48.default.header`
|
|
8147
8178
|
display: flex;
|
|
8148
8179
|
order: 1;
|
|
8149
8180
|
gap: var(--wui-space-01);
|
|
@@ -8155,7 +8186,7 @@ var Header = import_styled_components47.default.header`
|
|
|
8155
8186
|
margin-top: 0;
|
|
8156
8187
|
}
|
|
8157
8188
|
`;
|
|
8158
|
-
var Title = (0,
|
|
8189
|
+
var Title = (0, import_styled_components48.default)(import_react_dialog2.Title)`
|
|
8159
8190
|
font-family: var(--wui-typography-heading-2-family);
|
|
8160
8191
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
8161
8192
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -8175,7 +8206,7 @@ var ModalHeader = ({
|
|
|
8175
8206
|
|
|
8176
8207
|
// src/components/Modal/ModalContent.tsx
|
|
8177
8208
|
var import_react37 = require("react");
|
|
8178
|
-
var
|
|
8209
|
+
var import_styled_components49 = __toESM(require("styled-components"));
|
|
8179
8210
|
var import_react_dialog3 = require("@radix-ui/react-dialog");
|
|
8180
8211
|
|
|
8181
8212
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -8199,7 +8230,7 @@ var useFocusRestore = () => {
|
|
|
8199
8230
|
|
|
8200
8231
|
// src/components/Modal/ModalContent.tsx
|
|
8201
8232
|
var import_jsx_runtime199 = require("react/jsx-runtime");
|
|
8202
|
-
var StyledModalContent = (0,
|
|
8233
|
+
var StyledModalContent = (0, import_styled_components49.default)(import_react_dialog3.Content)`
|
|
8203
8234
|
background-color: var(--wui-color-bg-app);
|
|
8204
8235
|
box-sizing: border-box;
|
|
8205
8236
|
display: flex;
|
|
@@ -8258,7 +8289,7 @@ var ModalContent = (0, import_react37.forwardRef)(
|
|
|
8258
8289
|
|
|
8259
8290
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
8260
8291
|
var import_react38 = require("react");
|
|
8261
|
-
var
|
|
8292
|
+
var import_styled_components50 = __toESM(require("styled-components"));
|
|
8262
8293
|
var import_jsx_runtime200 = require("react/jsx-runtime");
|
|
8263
8294
|
var backdropAnimationDuration = 150;
|
|
8264
8295
|
var alignVerticalMap = {
|
|
@@ -8272,7 +8303,7 @@ var alignHorizontalMap = {
|
|
|
8272
8303
|
center: "center",
|
|
8273
8304
|
right: "end"
|
|
8274
8305
|
};
|
|
8275
|
-
var BackdropComponent =
|
|
8306
|
+
var BackdropComponent = import_styled_components50.default.div`
|
|
8276
8307
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
8277
8308
|
animation-name: backdropShow;
|
|
8278
8309
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -8311,7 +8342,7 @@ Backdrop.displayName = "Backdrop";
|
|
|
8311
8342
|
|
|
8312
8343
|
// src/components/Modal/Modal.tsx
|
|
8313
8344
|
var import_jsx_runtime201 = require("react/jsx-runtime");
|
|
8314
|
-
var ModalBody =
|
|
8345
|
+
var ModalBody = import_styled_components51.default.div`
|
|
8315
8346
|
flex-direction: column;
|
|
8316
8347
|
display: flex;
|
|
8317
8348
|
order: 2;
|
|
@@ -8377,15 +8408,15 @@ Modal.displayName = "Modal";
|
|
|
8377
8408
|
|
|
8378
8409
|
// src/components/Radio/Radio.tsx
|
|
8379
8410
|
var import_react40 = require("react");
|
|
8380
|
-
var
|
|
8411
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8381
8412
|
var import_type_guards29 = require("@wistia/type-guards");
|
|
8382
8413
|
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
8383
|
-
var StyledLabelWrapper2 =
|
|
8414
|
+
var StyledLabelWrapper2 = import_styled_components52.default.div`
|
|
8384
8415
|
display: flex;
|
|
8385
8416
|
flex-direction: column;
|
|
8386
8417
|
padding-left: var(--wui-space-02);
|
|
8387
8418
|
`;
|
|
8388
|
-
var StyledRadio =
|
|
8419
|
+
var StyledRadio = import_styled_components52.default.input`
|
|
8389
8420
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
8390
8421
|
appearance: none;
|
|
8391
8422
|
margin: 0;
|
|
@@ -8411,11 +8442,11 @@ var StyledRadio = import_styled_components51.default.input`
|
|
|
8411
8442
|
transform: scale(1);
|
|
8412
8443
|
}
|
|
8413
8444
|
`;
|
|
8414
|
-
var disabledStyle2 =
|
|
8445
|
+
var disabledStyle2 = import_styled_components52.css`
|
|
8415
8446
|
cursor: not-allowed;
|
|
8416
8447
|
opacity: 0.5;
|
|
8417
8448
|
`;
|
|
8418
|
-
var errorStyle =
|
|
8449
|
+
var errorStyle = import_styled_components52.css`
|
|
8419
8450
|
/* TODO Lamp to design error state */
|
|
8420
8451
|
&:hover,
|
|
8421
8452
|
&:focus,
|
|
@@ -8423,11 +8454,11 @@ var errorStyle = import_styled_components51.css`
|
|
|
8423
8454
|
border-color: transparent !important;
|
|
8424
8455
|
}
|
|
8425
8456
|
`;
|
|
8426
|
-
var defaultHoverStyle =
|
|
8457
|
+
var defaultHoverStyle = import_styled_components52.css`
|
|
8427
8458
|
/* TODO Lamp to design hover state */
|
|
8428
8459
|
cursor: pointer;
|
|
8429
8460
|
`;
|
|
8430
|
-
var StyledRadioWrapper =
|
|
8461
|
+
var StyledRadioWrapper = import_styled_components52.default.div`
|
|
8431
8462
|
align-items: baseline;
|
|
8432
8463
|
border: 1px solid transparent;
|
|
8433
8464
|
border-radius: 4px;
|
|
@@ -8507,11 +8538,11 @@ Radio.displayName = "Radio";
|
|
|
8507
8538
|
|
|
8508
8539
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
8509
8540
|
var import_react41 = require("react");
|
|
8510
|
-
var
|
|
8541
|
+
var import_styled_components53 = __toESM(require("styled-components"));
|
|
8511
8542
|
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
8512
8543
|
var import_type_guards30 = require("@wistia/type-guards");
|
|
8513
8544
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
8514
|
-
var StyledSegmentedControl = (0,
|
|
8545
|
+
var StyledSegmentedControl = (0, import_styled_components53.default)(import_react_toggle_group.Root)`
|
|
8515
8546
|
display: inline-flex;
|
|
8516
8547
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
8517
8548
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8552,11 +8583,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
8552
8583
|
|
|
8553
8584
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
8554
8585
|
var import_react42 = require("react");
|
|
8555
|
-
var
|
|
8586
|
+
var import_styled_components54 = __toESM(require("styled-components"));
|
|
8556
8587
|
var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
|
|
8557
8588
|
var import_type_guards31 = require("@wistia/type-guards");
|
|
8558
8589
|
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
8559
|
-
var StyledSegmentedControlItem = (0,
|
|
8590
|
+
var StyledSegmentedControlItem = (0, import_styled_components54.default)(import_react_toggle_group2.Item)`
|
|
8560
8591
|
all: unset; /* ToggleGroupItem is a button element */
|
|
8561
8592
|
align-items: center;
|
|
8562
8593
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8638,10 +8669,10 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
|
8638
8669
|
|
|
8639
8670
|
// src/components/Tag/Tag.tsx
|
|
8640
8671
|
var import_react43 = require("react");
|
|
8641
|
-
var
|
|
8672
|
+
var import_styled_components55 = __toESM(require("styled-components"));
|
|
8642
8673
|
var import_type_guards32 = require("@wistia/type-guards");
|
|
8643
8674
|
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
8644
|
-
var TagLabel =
|
|
8675
|
+
var TagLabel = import_styled_components55.default.a`
|
|
8645
8676
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8646
8677
|
font-size: var(--wui-typography-label-4-size);
|
|
8647
8678
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8669,14 +8700,14 @@ var TagLabel = import_styled_components54.default.a`
|
|
|
8669
8700
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8670
8701
|
}
|
|
8671
8702
|
`;
|
|
8672
|
-
var TagDivider =
|
|
8703
|
+
var TagDivider = import_styled_components55.default.div`
|
|
8673
8704
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8674
8705
|
border-left: 1px solid var(--wui-color-border);
|
|
8675
8706
|
display: flex;
|
|
8676
8707
|
height: 14px;
|
|
8677
8708
|
width: 1px;
|
|
8678
8709
|
`;
|
|
8679
|
-
var StyledRemoveButton =
|
|
8710
|
+
var StyledRemoveButton = import_styled_components55.default.button`
|
|
8680
8711
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8681
8712
|
all: unset;
|
|
8682
8713
|
cursor: pointer;
|
|
@@ -8704,13 +8735,17 @@ var StyledRemoveButton = import_styled_components54.default.button`
|
|
|
8704
8735
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8705
8736
|
}
|
|
8706
8737
|
`;
|
|
8707
|
-
var StyledTag =
|
|
8738
|
+
var StyledTag = import_styled_components55.default.div`
|
|
8708
8739
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8709
8740
|
align-items: center;
|
|
8710
8741
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
8711
8742
|
border-radius: var(--wui-border-radius-01);
|
|
8712
8743
|
display: inline-flex;
|
|
8713
8744
|
overflow: hidden;
|
|
8745
|
+
|
|
8746
|
+
> * {
|
|
8747
|
+
transition: background var(--wui-duration-01) var(--wui-motion-ease);
|
|
8748
|
+
}
|
|
8714
8749
|
`;
|
|
8715
8750
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
8716
8751
|
if ((0, import_type_guards32.isNil)(onClickRemove)) {
|
|
@@ -8778,16 +8813,16 @@ Tag.displayName = "Tag";
|
|
|
8778
8813
|
|
|
8779
8814
|
// src/components/Tooltip/Tooltip.tsx
|
|
8780
8815
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
8781
|
-
var
|
|
8816
|
+
var import_styled_components56 = __toESM(require("styled-components"));
|
|
8782
8817
|
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
8783
|
-
var CompactTooltipStyles =
|
|
8818
|
+
var CompactTooltipStyles = import_styled_components56.css`
|
|
8784
8819
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8785
8820
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8786
8821
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8787
8822
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8788
8823
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8789
8824
|
`;
|
|
8790
|
-
var StyledContent = (0,
|
|
8825
|
+
var StyledContent = (0, import_styled_components56.default)(import_react_tooltip2.Content)`
|
|
8791
8826
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8792
8827
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8793
8828
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8882,7 +8917,7 @@ var Tooltip = ({
|
|
|
8882
8917
|
Tooltip.displayName = "Tooltip";
|
|
8883
8918
|
|
|
8884
8919
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8885
|
-
var
|
|
8920
|
+
var import_styled_components57 = __toESM(require("styled-components"));
|
|
8886
8921
|
var import_type_guards33 = require("@wistia/type-guards");
|
|
8887
8922
|
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
8888
8923
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -8924,7 +8959,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8924
8959
|
}
|
|
8925
8960
|
return "0 0 144 31.47";
|
|
8926
8961
|
};
|
|
8927
|
-
var WistiaLogoComponent =
|
|
8962
|
+
var WistiaLogoComponent = import_styled_components57.default.svg`
|
|
8928
8963
|
height: ${({ height }) => `${height}px`};
|
|
8929
8964
|
|
|
8930
8965
|
/* ensure it will always fit on mobile */
|
|
@@ -8990,9 +9025,9 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
8990
9025
|
// src/components/Select/Select.tsx
|
|
8991
9026
|
var import_react_select = require("@radix-ui/react-select");
|
|
8992
9027
|
var import_react44 = require("react");
|
|
8993
|
-
var
|
|
9028
|
+
var import_styled_components58 = __toESM(require("styled-components"));
|
|
8994
9029
|
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
8995
|
-
var StyledTrigger = (0,
|
|
9030
|
+
var StyledTrigger = (0, import_styled_components58.default)(import_react_select.Trigger)`
|
|
8996
9031
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8997
9032
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
8998
9033
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -9033,7 +9068,7 @@ var StyledTrigger = (0, import_styled_components57.default)(import_react_select.
|
|
|
9033
9068
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
9034
9069
|
}
|
|
9035
9070
|
`;
|
|
9036
|
-
var StyledContent2 = (0,
|
|
9071
|
+
var StyledContent2 = (0, import_styled_components58.default)(import_react_select.Content)`
|
|
9037
9072
|
--wui-select-content-border: var(--wui-color-border);
|
|
9038
9073
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
9039
9074
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -9099,9 +9134,9 @@ Select.displayName = "Select";
|
|
|
9099
9134
|
// src/components/Select/SelectOption.tsx
|
|
9100
9135
|
var import_react_select2 = require("@radix-ui/react-select");
|
|
9101
9136
|
var import_react45 = require("react");
|
|
9102
|
-
var
|
|
9137
|
+
var import_styled_components59 = __toESM(require("styled-components"));
|
|
9103
9138
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
9104
|
-
var StyledItem = (0,
|
|
9139
|
+
var StyledItem = (0, import_styled_components59.default)(import_react_select2.Item)`
|
|
9105
9140
|
${variantStyleMap2.body3};
|
|
9106
9141
|
display: flex;
|
|
9107
9142
|
padding: var(--wui-select-option-padding);
|
|
@@ -9124,7 +9159,7 @@ var StyledItem = (0, import_styled_components58.default)(import_react_select2.It
|
|
|
9124
9159
|
background-color: transparent;
|
|
9125
9160
|
}
|
|
9126
9161
|
`;
|
|
9127
|
-
var StyledIconContainer =
|
|
9162
|
+
var StyledIconContainer = import_styled_components59.default.span`
|
|
9128
9163
|
width: 12px;
|
|
9129
9164
|
`;
|
|
9130
9165
|
var SelectOption = (0, import_react45.forwardRef)(
|
|
@@ -9152,9 +9187,9 @@ SelectOption.displayName = "Option";
|
|
|
9152
9187
|
|
|
9153
9188
|
// src/components/Select/SelectOptionGroup.tsx
|
|
9154
9189
|
var import_react_select3 = require("@radix-ui/react-select");
|
|
9155
|
-
var
|
|
9190
|
+
var import_styled_components60 = __toESM(require("styled-components"));
|
|
9156
9191
|
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
9157
|
-
var StyledLabel3 = (0,
|
|
9192
|
+
var StyledLabel3 = (0, import_styled_components60.default)(import_react_select3.Label)`
|
|
9158
9193
|
padding: var(--wui-select-option-padding);
|
|
9159
9194
|
`;
|
|
9160
9195
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
@@ -9172,10 +9207,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
|
9172
9207
|
};
|
|
9173
9208
|
|
|
9174
9209
|
// src/components/DataCards/DataCard.tsx
|
|
9175
|
-
var
|
|
9210
|
+
var import_styled_components61 = __toESM(require("styled-components"));
|
|
9176
9211
|
var import_type_guards34 = require("@wistia/type-guards");
|
|
9177
9212
|
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
9178
|
-
var StyledDataCard =
|
|
9213
|
+
var StyledDataCard = import_styled_components61.default.div`
|
|
9179
9214
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
9180
9215
|
display: grid;
|
|
9181
9216
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -9188,7 +9223,7 @@ var StyledDataCard = import_styled_components60.default.div`
|
|
|
9188
9223
|
border-radius: var(--wui-border-radius-02);
|
|
9189
9224
|
position: relative;
|
|
9190
9225
|
`;
|
|
9191
|
-
var shimmer =
|
|
9226
|
+
var shimmer = import_styled_components61.keyframes`
|
|
9192
9227
|
0% {
|
|
9193
9228
|
background-position: 200% 0;
|
|
9194
9229
|
}
|
|
@@ -9196,7 +9231,7 @@ var shimmer = import_styled_components60.keyframes`
|
|
|
9196
9231
|
background-position: -200% 0;
|
|
9197
9232
|
}
|
|
9198
9233
|
`;
|
|
9199
|
-
var LoadingBackground =
|
|
9234
|
+
var LoadingBackground = import_styled_components61.default.div`
|
|
9200
9235
|
background: linear-gradient(
|
|
9201
9236
|
90deg,
|
|
9202
9237
|
var(--wui-color-bg-surface-tertiary) 25%,
|
|
@@ -9207,27 +9242,27 @@ var LoadingBackground = import_styled_components60.default.div`
|
|
|
9207
9242
|
animation: ${shimmer} 1.5s infinite;
|
|
9208
9243
|
border-radius: var(--wui-border-radius-01);
|
|
9209
9244
|
`;
|
|
9210
|
-
var StyledLoadingLabel = (0,
|
|
9245
|
+
var StyledLoadingLabel = (0, import_styled_components61.default)(LoadingBackground)`
|
|
9211
9246
|
width: 80px;
|
|
9212
9247
|
height: var(--wui-typography-heading-6-line-height);
|
|
9213
9248
|
`;
|
|
9214
|
-
var StyledLoadingValue = (0,
|
|
9249
|
+
var StyledLoadingValue = (0, import_styled_components61.default)(LoadingBackground)`
|
|
9215
9250
|
width: 90%;
|
|
9216
9251
|
height: var(--wui-typography-heading-3-line-height);
|
|
9217
9252
|
`;
|
|
9218
|
-
var StyledLabel4 = (0,
|
|
9253
|
+
var StyledLabel4 = (0, import_styled_components61.default)(Heading)`
|
|
9219
9254
|
grid-area: label;
|
|
9220
9255
|
`;
|
|
9221
|
-
var StyledValue = (0,
|
|
9256
|
+
var StyledValue = (0, import_styled_components61.default)(Heading)`
|
|
9222
9257
|
grid-area: value;
|
|
9223
9258
|
`;
|
|
9224
|
-
var StyledSlot =
|
|
9259
|
+
var StyledSlot = import_styled_components61.default.div`
|
|
9225
9260
|
display: flex;
|
|
9226
9261
|
justify-content: flex-end;
|
|
9227
9262
|
grid-area: slot;
|
|
9228
9263
|
align-self: center;
|
|
9229
9264
|
`;
|
|
9230
|
-
var StyledDataCardTrendContainer =
|
|
9265
|
+
var StyledDataCardTrendContainer = import_styled_components61.default.div`
|
|
9231
9266
|
position: absolute;
|
|
9232
9267
|
bottom: var(--wui-space-01);
|
|
9233
9268
|
right: var(--wui-space-01);
|
|
@@ -9270,10 +9305,10 @@ var DataCard = ({
|
|
|
9270
9305
|
DataCard.displayName = "DataCard";
|
|
9271
9306
|
|
|
9272
9307
|
// src/components/DataCards/DataCards.tsx
|
|
9273
|
-
var
|
|
9308
|
+
var import_styled_components62 = __toESM(require("styled-components"));
|
|
9274
9309
|
var import_type_guards35 = require("@wistia/type-guards");
|
|
9275
9310
|
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
9276
|
-
var StyledDataCards = (0,
|
|
9311
|
+
var StyledDataCards = (0, import_styled_components62.default)(Box)`
|
|
9277
9312
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9278
9313
|
> * {
|
|
9279
9314
|
min-width: 120px;
|
|
@@ -9304,9 +9339,9 @@ var DataCards = ({
|
|
|
9304
9339
|
DataCards.displayName = "DataCards";
|
|
9305
9340
|
|
|
9306
9341
|
// src/components/DataCards/DataCardTrend.tsx
|
|
9307
|
-
var
|
|
9342
|
+
var import_styled_components63 = __toESM(require("styled-components"));
|
|
9308
9343
|
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
9309
|
-
var StyledDataCardTrend =
|
|
9344
|
+
var StyledDataCardTrend = import_styled_components63.default.div`
|
|
9310
9345
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
9311
9346
|
background: var(--wui-color-bg-app);
|
|
9312
9347
|
border-radius: var(--wui-border-radius-rounded);
|