@wistia/ui 0.4.13 → 0.4.14-beta.42c9a169.9e19d41
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 +273 -227
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +141 -95
- 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.
|
|
3
|
+
* @license @wistia/ui v0.4.14-beta.42c9a169.9e19d41
|
|
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_components12 = require("styled-components");
|
|
115
115
|
|
|
116
116
|
// src/css/resetCss.tsx
|
|
117
117
|
var import_styled_components = require("styled-components");
|
|
@@ -248,7 +248,7 @@ var globalStyleAdjustmentsCss = import_styled_components2.css`
|
|
|
248
248
|
`;
|
|
249
249
|
|
|
250
250
|
// src/css/designTokens/index.tsx
|
|
251
|
-
var
|
|
251
|
+
var import_styled_components11 = require("styled-components");
|
|
252
252
|
|
|
253
253
|
// src/css/designTokens/colorGlobal.tsx
|
|
254
254
|
var import_styled_components3 = require("styled-components");
|
|
@@ -1218,6 +1218,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1218
1218
|
--wui-color-segmented-control-checked-background: var(--wui-bg-app);
|
|
1219
1219
|
--wui-color-text-on-fill-white-selected: var(--wui-blue-9);
|
|
1220
1220
|
--wui-color-bg-tooltip: #242528;
|
|
1221
|
+
--wui-color-drop-shadow: rgb(31 51 153 / 10%);
|
|
1221
1222
|
|
|
1222
1223
|
/* --- State --- */
|
|
1223
1224
|
|
|
@@ -1385,8 +1386,45 @@ var zIndexTokens = import_styled_components8.css`
|
|
|
1385
1386
|
--wui-zindex-menu: 500;
|
|
1386
1387
|
`;
|
|
1387
1388
|
|
|
1389
|
+
// src/css/designTokens/elevation.tsx
|
|
1390
|
+
var import_styled_components9 = require("styled-components");
|
|
1391
|
+
var elevationTokens = import_styled_components9.css`
|
|
1392
|
+
--wui-elevation-01: 0px 4px 8px 0px var(--wui-color-drop-shadow);
|
|
1393
|
+
--wui-elevation-02: 0px 4px 24px 0px var(--wui-color-drop-shadow);
|
|
1394
|
+
`;
|
|
1395
|
+
|
|
1396
|
+
// src/css/designTokens/motion.tsx
|
|
1397
|
+
var import_styled_components10 = require("styled-components");
|
|
1398
|
+
var motionTokens = import_styled_components10.css`
|
|
1399
|
+
/* Durations */
|
|
1400
|
+
--wui-motion-duration-01: 70ms;
|
|
1401
|
+
--wui-motion-duration-02: 110ms;
|
|
1402
|
+
--wui-motion-duration-03: 150ms;
|
|
1403
|
+
--wui-motion-duration-04: 240ms;
|
|
1404
|
+
--wui-motion-duration-05: 400ms;
|
|
1405
|
+
--wui-motion-duration-06: 700ms;
|
|
1406
|
+
|
|
1407
|
+
@media (prefers-reduced-motion) {
|
|
1408
|
+
--wui-motion-duration-01: 0ms;
|
|
1409
|
+
--wui-motion-duration-02: 0ms;
|
|
1410
|
+
--wui-motion-duration-03: 0ms;
|
|
1411
|
+
--wui-motion-duration-04: 0ms;
|
|
1412
|
+
--wui-motion-duration-05: 0ms;
|
|
1413
|
+
--wui-motion-duration-06: 0ms;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
/* Easings */
|
|
1417
|
+
|
|
1418
|
+
/* Taken from: https://polaris.shopify.com/tokens/motion */
|
|
1419
|
+
--wui-motion-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
1420
|
+
--wui-motion-ease-in: cubic-bezier(0.42, 0, 1, 1);
|
|
1421
|
+
--wui-motion-ease-out: cubic-bezier(0.19, 0.91, 0.38, 1);
|
|
1422
|
+
--wui-motion-ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
|
|
1423
|
+
--wui-motion-linear: cubic-bezier(0, 0, 1, 1);
|
|
1424
|
+
`;
|
|
1425
|
+
|
|
1388
1426
|
// src/css/designTokens/index.tsx
|
|
1389
|
-
var colorTokens =
|
|
1427
|
+
var colorTokens = import_styled_components11.css`
|
|
1390
1428
|
${lightGlobalTokens}
|
|
1391
1429
|
/* Dark mode is disabled until we have a more robust plan for supporting it */
|
|
1392
1430
|
|
|
@@ -1395,18 +1433,20 @@ var colorTokens = import_styled_components9.css`
|
|
|
1395
1433
|
} */
|
|
1396
1434
|
${colorAliasTokens}
|
|
1397
1435
|
`;
|
|
1398
|
-
var designTokens =
|
|
1436
|
+
var designTokens = import_styled_components11.css`
|
|
1399
1437
|
:root {
|
|
1438
|
+
${borderRadiusTokens}
|
|
1400
1439
|
${colorTokens}
|
|
1440
|
+
${elevationTokens}
|
|
1401
1441
|
${spacingTokens}
|
|
1402
|
-
${borderRadiusTokens}
|
|
1403
1442
|
${typographyTokens}
|
|
1404
1443
|
${zIndexTokens}
|
|
1444
|
+
${motionTokens}
|
|
1405
1445
|
}
|
|
1406
1446
|
`;
|
|
1407
1447
|
|
|
1408
1448
|
// src/css/GlobalStyle.tsx
|
|
1409
|
-
var GlobalStyle =
|
|
1449
|
+
var GlobalStyle = import_styled_components12.createGlobalStyle`
|
|
1410
1450
|
${resetCss}
|
|
1411
1451
|
${globalStyleAdjustmentsCss}
|
|
1412
1452
|
${designTokens}
|
|
@@ -1732,14 +1772,14 @@ var import_sonner2 = require("sonner");
|
|
|
1732
1772
|
|
|
1733
1773
|
// src/private/components/Toast/Toast.tsx
|
|
1734
1774
|
var import_react8 = require("react");
|
|
1735
|
-
var
|
|
1775
|
+
var import_styled_components15 = __toESM(require("styled-components"));
|
|
1736
1776
|
var import_type_guards7 = require("@wistia/type-guards");
|
|
1737
1777
|
|
|
1738
1778
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
1739
1779
|
var import_type_guards6 = require("@wistia/type-guards");
|
|
1740
|
-
var
|
|
1780
|
+
var import_styled_components13 = __toESM(require("styled-components"));
|
|
1741
1781
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1742
|
-
var ellipsisStyle =
|
|
1782
|
+
var ellipsisStyle = import_styled_components13.css`
|
|
1743
1783
|
overflow: hidden;
|
|
1744
1784
|
text-overflow: ellipsis;
|
|
1745
1785
|
white-space: nowrap;
|
|
@@ -1762,14 +1802,14 @@ var ellipsisStyle = import_styled_components11.css`
|
|
|
1762
1802
|
}
|
|
1763
1803
|
}
|
|
1764
1804
|
`;
|
|
1765
|
-
var ellipsisFlexParentStyle =
|
|
1805
|
+
var ellipsisFlexParentStyle = import_styled_components13.css`
|
|
1766
1806
|
min-width: 0;
|
|
1767
1807
|
`;
|
|
1768
|
-
var EllipsisComponent =
|
|
1808
|
+
var EllipsisComponent = import_styled_components13.default.div`
|
|
1769
1809
|
${ellipsisStyle};
|
|
1770
1810
|
${({ $lines }) => {
|
|
1771
1811
|
if ((0, import_type_guards6.isNotNil)($lines)) {
|
|
1772
|
-
return
|
|
1812
|
+
return import_styled_components13.css`
|
|
1773
1813
|
-webkit-box-orient: vertical;
|
|
1774
1814
|
-webkit-line-clamp: ${$lines};
|
|
1775
1815
|
display: -webkit-box;
|
|
@@ -1790,9 +1830,9 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, impor
|
|
|
1790
1830
|
Ellipsis.displayName = "Ellipsis";
|
|
1791
1831
|
|
|
1792
1832
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
1793
|
-
var
|
|
1833
|
+
var import_styled_components14 = require("styled-components");
|
|
1794
1834
|
var colorSchemeSchema = [
|
|
1795
|
-
{ token: "bg-surface", step: "
|
|
1835
|
+
{ token: "bg-surface", step: "2" },
|
|
1796
1836
|
{ token: "bg-surface-hover", step: "3" },
|
|
1797
1837
|
{ token: "bg-surface-active", step: "4" },
|
|
1798
1838
|
{ token: "bg-surface-secondary", step: "3" },
|
|
@@ -1817,8 +1857,8 @@ var colorSchemeSchema = [
|
|
|
1817
1857
|
{ token: "icon-on-fill", step: "contrast" },
|
|
1818
1858
|
{ token: "focus-ring", step: "9" }
|
|
1819
1859
|
];
|
|
1820
|
-
var defaultScheme =
|
|
1821
|
-
--wui-color-bg-surface: var(--wui-gray-
|
|
1860
|
+
var defaultScheme = import_styled_components14.css`
|
|
1861
|
+
--wui-color-bg-surface: var(--wui-gray-1);
|
|
1822
1862
|
--wui-color-bg-surface-hover: var(--wui-gray-3);
|
|
1823
1863
|
--wui-color-bg-surface-active: var(--wui-gray-4);
|
|
1824
1864
|
--wui-color-bg-surface-secondary: var(--wui-gray-3);
|
|
@@ -1843,7 +1883,7 @@ var defaultScheme = import_styled_components12.css`
|
|
|
1843
1883
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
1844
1884
|
--wui-color-focus-ring: var(--wui-blue-9);
|
|
1845
1885
|
`;
|
|
1846
|
-
var navScheme =
|
|
1886
|
+
var navScheme = import_styled_components14.css`
|
|
1847
1887
|
--wui-color-bg-fill-active: var(--wui-blue-5);
|
|
1848
1888
|
--wui-color-bg-fill-hover: var(--wui-blue-4);
|
|
1849
1889
|
--wui-color-bg-fill: var(--wui-blue-1);
|
|
@@ -1894,7 +1934,7 @@ var getColorScheme = (colorScheme) => {
|
|
|
1894
1934
|
if (colorScheme === "default") {
|
|
1895
1935
|
return defaultScheme;
|
|
1896
1936
|
}
|
|
1897
|
-
return
|
|
1937
|
+
return import_styled_components14.css`
|
|
1898
1938
|
${colorSchemeSchema.map(({ token, step }) => {
|
|
1899
1939
|
return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
|
|
1900
1940
|
}).join("")}
|
|
@@ -1903,12 +1943,12 @@ var getColorScheme = (colorScheme) => {
|
|
|
1903
1943
|
|
|
1904
1944
|
// src/private/components/Toast/Toast.tsx
|
|
1905
1945
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1906
|
-
var Message = (0,
|
|
1946
|
+
var Message = (0, import_styled_components15.default)(Ellipsis)`
|
|
1907
1947
|
line-height: var(--wui-typography-label-3-line-height);
|
|
1908
1948
|
font-size: var(--wui-typography-label-3-size);
|
|
1909
1949
|
font-weight: var(--wui-typography-label-3-weight);
|
|
1910
1950
|
`;
|
|
1911
|
-
var MessageWrapper =
|
|
1951
|
+
var MessageWrapper = import_styled_components15.default.div`
|
|
1912
1952
|
display: flex;
|
|
1913
1953
|
flex-grow: 1;
|
|
1914
1954
|
flex-shrink: 1;
|
|
@@ -1921,13 +1961,13 @@ var MessageWrapper = import_styled_components13.default.div`
|
|
|
1921
1961
|
margin-right: var(--wui-space-02); /* space between icon & message */
|
|
1922
1962
|
}
|
|
1923
1963
|
`;
|
|
1924
|
-
var ActionWrapper =
|
|
1964
|
+
var ActionWrapper = import_styled_components15.default.div`
|
|
1925
1965
|
flex-grow: 0;
|
|
1926
1966
|
flex-shrink: 0;
|
|
1927
1967
|
flex-basis: auto;
|
|
1928
1968
|
margin-right: var(--wui-space-03);
|
|
1929
1969
|
`;
|
|
1930
|
-
var StyledToast =
|
|
1970
|
+
var StyledToast = import_styled_components15.default.div`
|
|
1931
1971
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
1932
1972
|
display: flex;
|
|
1933
1973
|
align-items: center;
|
|
@@ -1942,9 +1982,7 @@ var StyledToast = import_styled_components13.default.div`
|
|
|
1942
1982
|
padding-right: 0; /* padding here is on the left/right slots */
|
|
1943
1983
|
padding-bottom: var(--wui-space-02);
|
|
1944
1984
|
padding-left: var(--wui-space-03);
|
|
1945
|
-
|
|
1946
|
-
/* TODO tokenize elevation? */
|
|
1947
|
-
box-shadow: 0 0 16px 0 #0000001a;
|
|
1985
|
+
box-shadow: var(--wui-elevation-02);
|
|
1948
1986
|
|
|
1949
1987
|
svg {
|
|
1950
1988
|
height: 16px;
|
|
@@ -2012,16 +2050,16 @@ var useToast = () => {
|
|
|
2012
2050
|
|
|
2013
2051
|
// src/components/ActionButton/ActionButton.tsx
|
|
2014
2052
|
var import_react13 = require("react");
|
|
2015
|
-
var
|
|
2053
|
+
var import_styled_components21 = __toESM(require("styled-components"));
|
|
2016
2054
|
|
|
2017
2055
|
// src/components/Button/Button.tsx
|
|
2018
2056
|
var import_react12 = require("react");
|
|
2019
|
-
var
|
|
2057
|
+
var import_styled_components20 = __toESM(require("styled-components"));
|
|
2020
2058
|
var import_type_guards11 = require("@wistia/type-guards");
|
|
2021
2059
|
|
|
2022
2060
|
// src/css/buttonResetCss.tsx
|
|
2023
|
-
var
|
|
2024
|
-
var buttonResetCss =
|
|
2061
|
+
var import_styled_components16 = require("styled-components");
|
|
2062
|
+
var buttonResetCss = import_styled_components16.css`
|
|
2025
2063
|
align-items: center;
|
|
2026
2064
|
background-color: transparent;
|
|
2027
2065
|
background-image: none;
|
|
@@ -2066,8 +2104,8 @@ var buttonResetCss = import_styled_components14.css`
|
|
|
2066
2104
|
`;
|
|
2067
2105
|
|
|
2068
2106
|
// src/components/Button/buttonStyles.tsx
|
|
2069
|
-
var
|
|
2070
|
-
var buttonSmallStyles =
|
|
2107
|
+
var import_styled_components17 = require("styled-components");
|
|
2108
|
+
var buttonSmallStyles = import_styled_components17.css`
|
|
2071
2109
|
--button-padding-vertical: var(--wui-space-01);
|
|
2072
2110
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2073
2111
|
--button-label-padding-horizontal: var(--wui-space-01);
|
|
@@ -2078,7 +2116,7 @@ var buttonSmallStyles = import_styled_components15.css`
|
|
|
2078
2116
|
--button-icon-size: 12px;
|
|
2079
2117
|
--button-label-gap: 4px;
|
|
2080
2118
|
`;
|
|
2081
|
-
var buttonMediumStyles =
|
|
2119
|
+
var buttonMediumStyles = import_styled_components17.css`
|
|
2082
2120
|
--button-padding-vertical: var(--wui-space-02);
|
|
2083
2121
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2084
2122
|
--button-label-padding-horizontal: 6px;
|
|
@@ -2089,7 +2127,7 @@ var buttonMediumStyles = import_styled_components15.css`
|
|
|
2089
2127
|
--button-icon-size: 16px;
|
|
2090
2128
|
--button-label-gap: 6px;
|
|
2091
2129
|
`;
|
|
2092
|
-
var buttonLargeStyles =
|
|
2130
|
+
var buttonLargeStyles = import_styled_components17.css`
|
|
2093
2131
|
--button-padding-vertical: var(--wui-space-02);
|
|
2094
2132
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2095
2133
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2100,7 +2138,7 @@ var buttonLargeStyles = import_styled_components15.css`
|
|
|
2100
2138
|
--button-icon-size: 24px;
|
|
2101
2139
|
--button-label-gap: 8px;
|
|
2102
2140
|
`;
|
|
2103
|
-
var buttonExtraLargeStyles =
|
|
2141
|
+
var buttonExtraLargeStyles = import_styled_components17.css`
|
|
2104
2142
|
--button-padding-vertical: var(--wui-space-03);
|
|
2105
2143
|
--button-padding-horizontal: var(--wui-space-03);
|
|
2106
2144
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2111,34 +2149,34 @@ var buttonExtraLargeStyles = import_styled_components15.css`
|
|
|
2111
2149
|
--button-icon-size: 24px;
|
|
2112
2150
|
--button-label-gap: 8px;
|
|
2113
2151
|
`;
|
|
2114
|
-
var ghostButtonVariant =
|
|
2152
|
+
var ghostButtonVariant = import_styled_components17.css`
|
|
2115
2153
|
--button-color-bg: transparent;
|
|
2116
2154
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2117
2155
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2118
2156
|
--button-color-text: var(--wui-color-text-button);
|
|
2119
2157
|
--button-color-icon: var(--wui-color-icon);
|
|
2120
2158
|
`;
|
|
2121
|
-
var outlineButtonVariant =
|
|
2159
|
+
var outlineButtonVariant = import_styled_components17.css`
|
|
2122
2160
|
${ghostButtonVariant};
|
|
2123
2161
|
--button-color-border: var(--wui-color-border);
|
|
2124
2162
|
|
|
2125
2163
|
box-shadow: 0 0 0 2px var(--button-color-border) inset;
|
|
2126
2164
|
`;
|
|
2127
|
-
var softButtonVariant =
|
|
2165
|
+
var softButtonVariant = import_styled_components17.css`
|
|
2128
2166
|
--button-color-bg: var(--wui-color-bg-surface-secondary);
|
|
2129
2167
|
--button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
2130
2168
|
--button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
|
|
2131
2169
|
--button-color-text: var(--wui-color-text-button);
|
|
2132
2170
|
--button-color-icon: var(--wui-color-icon);
|
|
2133
2171
|
`;
|
|
2134
|
-
var solidButtonVariant =
|
|
2172
|
+
var solidButtonVariant = import_styled_components17.css`
|
|
2135
2173
|
--button-color-bg: var(--wui-color-bg-fill);
|
|
2136
2174
|
--button-color-bg-hover: var(--wui-color-bg-fill-hover);
|
|
2137
2175
|
--button-color-bg-active: var(--wui-color-bg-fill-active);
|
|
2138
2176
|
--button-color-text: var(--wui-color-text-on-fill);
|
|
2139
2177
|
--button-color-icon: var(--wui-color-icon-on-fill);
|
|
2140
2178
|
`;
|
|
2141
|
-
var disabledButtonVariant =
|
|
2179
|
+
var disabledButtonVariant = import_styled_components17.css`
|
|
2142
2180
|
--button-color-bg: var(--wui-color-bg-surface-disabled);
|
|
2143
2181
|
--button-color-bg-hover: var(--wui-color-bg-surface-disabled);
|
|
2144
2182
|
--button-color-bg-active: var(--wui-color-bg-surface-disabled);
|
|
@@ -2146,7 +2184,7 @@ var disabledButtonVariant = import_styled_components15.css`
|
|
|
2146
2184
|
--button-color-icon: var(--wui-color-icon-disabled);
|
|
2147
2185
|
--button-color-border: var(--wui-color-border-disabled);
|
|
2148
2186
|
`;
|
|
2149
|
-
var pressedButtonVariant =
|
|
2187
|
+
var pressedButtonVariant = import_styled_components17.css`
|
|
2150
2188
|
--button-color-bg: var(--wui-color-bg-surface-selected);
|
|
2151
2189
|
--button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
|
|
2152
2190
|
--button-color-bg-active: var(--wui-color-bg-surface-selected-active);
|
|
@@ -2154,7 +2192,7 @@ var pressedButtonVariant = import_styled_components15.css`
|
|
|
2154
2192
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
2155
2193
|
--button-color-border: var(--wui-color-border-selected);
|
|
2156
2194
|
`;
|
|
2157
|
-
var buttonBaseStyles =
|
|
2195
|
+
var buttonBaseStyles = import_styled_components17.css`
|
|
2158
2196
|
border-radius: var(--wui-border-radius-rounded);
|
|
2159
2197
|
font-family: var(--button-typography-family);
|
|
2160
2198
|
font-size: var(--button-typography-size);
|
|
@@ -2163,6 +2201,7 @@ var buttonBaseStyles = import_styled_components15.css`
|
|
|
2163
2201
|
padding: var(--button-padding-vertical) var(--button-padding-horizontal);
|
|
2164
2202
|
background: var(--button-color-bg);
|
|
2165
2203
|
color: var(--button-color-text);
|
|
2204
|
+
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
2166
2205
|
|
|
2167
2206
|
/* This ensure that the icon is the corect color when the style is solid or the button is disabled */
|
|
2168
2207
|
&& {
|
|
@@ -2221,7 +2260,7 @@ var buttonSizeStyles = {
|
|
|
2221
2260
|
|
|
2222
2261
|
// src/components/Icon/Icon.tsx
|
|
2223
2262
|
var import_type_guards9 = require("@wistia/type-guards");
|
|
2224
|
-
var
|
|
2263
|
+
var import_styled_components18 = __toESM(require("styled-components"));
|
|
2225
2264
|
|
|
2226
2265
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
2227
2266
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -5406,7 +5445,7 @@ var iconSizeMap = {
|
|
|
5406
5445
|
xl: "32",
|
|
5407
5446
|
xxl: "48"
|
|
5408
5447
|
};
|
|
5409
|
-
var StyledIcon =
|
|
5448
|
+
var StyledIcon = import_styled_components18.default.svg`
|
|
5410
5449
|
${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
|
|
5411
5450
|
`;
|
|
5412
5451
|
var Icon = ({
|
|
@@ -5457,7 +5496,7 @@ Icon.displayName = "Icon";
|
|
|
5457
5496
|
// src/components/Link/Link.tsx
|
|
5458
5497
|
var import_react11 = require("react");
|
|
5459
5498
|
var import_type_guards10 = require("@wistia/type-guards");
|
|
5460
|
-
var
|
|
5499
|
+
var import_styled_components19 = __toESM(require("styled-components"));
|
|
5461
5500
|
var import_react_router_dom = require("react-router-dom");
|
|
5462
5501
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
5463
5502
|
var generateHref = (href, type, disabled) => {
|
|
@@ -5475,7 +5514,7 @@ var generateHref = (href, type, disabled) => {
|
|
|
5475
5514
|
};
|
|
5476
5515
|
var isButton = (props) => (0, import_type_guards10.isUndefined)(props.href);
|
|
5477
5516
|
var isLink = (props) => (0, import_type_guards10.isNotUndefined)(props.href);
|
|
5478
|
-
var StyledLink =
|
|
5517
|
+
var StyledLink = import_styled_components19.default.a`
|
|
5479
5518
|
--link-icon-size: 14px;
|
|
5480
5519
|
|
|
5481
5520
|
${({ href }) => (0, import_type_guards10.isNil)(href) && buttonResetCss};
|
|
@@ -5586,7 +5625,7 @@ Link.displayName = "Link";
|
|
|
5586
5625
|
// src/components/Button/Button.tsx
|
|
5587
5626
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
5588
5627
|
var isLink2 = (props) => (0, import_type_guards11.isNotUndefined)(props.href);
|
|
5589
|
-
var StyledButton =
|
|
5628
|
+
var StyledButton = import_styled_components20.default.button`
|
|
5590
5629
|
${buttonResetCss}
|
|
5591
5630
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
5592
5631
|
${({ $size }) => buttonSizeStyles[$size]}
|
|
@@ -5596,7 +5635,7 @@ var StyledButton = import_styled_components18.default.button`
|
|
|
5596
5635
|
position: relative;
|
|
5597
5636
|
text-align: center;
|
|
5598
5637
|
`;
|
|
5599
|
-
var StyledButtonContent =
|
|
5638
|
+
var StyledButtonContent = import_styled_components20.default.div`
|
|
5600
5639
|
align-items: center;
|
|
5601
5640
|
display: inline-flex;
|
|
5602
5641
|
flex-grow: 1;
|
|
@@ -5608,10 +5647,10 @@ var StyledButtonContent = import_styled_components18.default.div`
|
|
|
5608
5647
|
${({ $hasLeftIcon }) => $hasLeftIcon && "padding-left: 0;"}
|
|
5609
5648
|
${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
|
|
5610
5649
|
`;
|
|
5611
|
-
var StyledButtonContentLabel =
|
|
5650
|
+
var StyledButtonContentLabel = import_styled_components20.default.span`
|
|
5612
5651
|
flex: 1;
|
|
5613
5652
|
`;
|
|
5614
|
-
var StyledButtonLoading =
|
|
5653
|
+
var StyledButtonLoading = import_styled_components20.default.div`
|
|
5615
5654
|
position: absolute;
|
|
5616
5655
|
display: flex;
|
|
5617
5656
|
`;
|
|
@@ -5724,7 +5763,7 @@ Button.displayName = "Button";
|
|
|
5724
5763
|
|
|
5725
5764
|
// src/components/ActionButton/ActionButton.tsx
|
|
5726
5765
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
5727
|
-
var StyledActionButton = (0,
|
|
5766
|
+
var StyledActionButton = (0, import_styled_components21.default)(Button)`
|
|
5728
5767
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
5729
5768
|
display: grid;
|
|
5730
5769
|
grid-template-columns: 24px 1fr;
|
|
@@ -5737,6 +5776,7 @@ var StyledActionButton = (0, import_styled_components19.default)(Button)`
|
|
|
5737
5776
|
grid-row-gap: var(--wui-space-02);
|
|
5738
5777
|
border-radius: var(--wui-border-radius-03);
|
|
5739
5778
|
flex: 0 0 auto;
|
|
5779
|
+
transition: background-color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
5740
5780
|
|
|
5741
5781
|
&:focus {
|
|
5742
5782
|
outline: none;
|
|
@@ -5764,31 +5804,30 @@ var StyledActionButton = (0, import_styled_components19.default)(Button)`
|
|
|
5764
5804
|
}
|
|
5765
5805
|
}
|
|
5766
5806
|
`;
|
|
5767
|
-
var StyledMainIcon =
|
|
5807
|
+
var StyledMainIcon = import_styled_components21.default.div`
|
|
5768
5808
|
grid-column: 1;
|
|
5769
5809
|
grid-row: 1;
|
|
5770
5810
|
width: 24px;
|
|
5771
5811
|
height: 24px;
|
|
5812
|
+
transition: color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
5772
5813
|
|
|
5773
5814
|
svg {
|
|
5774
5815
|
width: 24px;
|
|
5775
5816
|
height: 24px;
|
|
5776
5817
|
}
|
|
5777
5818
|
`;
|
|
5778
|
-
var StyledSecondaryIcon =
|
|
5819
|
+
var StyledSecondaryIcon = import_styled_components21.default.div`
|
|
5779
5820
|
grid-column: 2;
|
|
5780
5821
|
grid-row: 1;
|
|
5781
5822
|
width: 100%;
|
|
5782
5823
|
display: flex;
|
|
5783
5824
|
justify-content: flex-end;
|
|
5784
|
-
transition: all
|
|
5825
|
+
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
|
|
5785
5826
|
|
|
5786
|
-
${({ $hideUntilHover }) => $hideUntilHover &&
|
|
5827
|
+
${({ $hideUntilHover }) => $hideUntilHover && import_styled_components21.css`
|
|
5828
|
+
will-change: transform;
|
|
5787
5829
|
opacity: 0;
|
|
5788
|
-
|
|
5789
|
-
@media not (prefers-reduced-motion) {
|
|
5790
|
-
transform: translateX(-16px);
|
|
5791
|
-
}
|
|
5830
|
+
transform: translateX(-16px);
|
|
5792
5831
|
${StyledActionButton}:hover:not([aria-disabled="true"]) &,
|
|
5793
5832
|
${StyledActionButton}:focus-visible:not([aria-disabled="true"]) & {
|
|
5794
5833
|
transform: translateX(0);
|
|
@@ -5801,7 +5840,7 @@ var StyledSecondaryIcon = import_styled_components19.default.div`
|
|
|
5801
5840
|
height: 24px;
|
|
5802
5841
|
}
|
|
5803
5842
|
`;
|
|
5804
|
-
var StyledLabel =
|
|
5843
|
+
var StyledLabel = import_styled_components21.default.span`
|
|
5805
5844
|
font-family: var(--wui-typography-heading-4-family);
|
|
5806
5845
|
font-size: var(--wui-typography-heading-4-size);
|
|
5807
5846
|
font-weight: var(--wui-typography-heading-4-weight);
|
|
@@ -5857,10 +5896,10 @@ ActionButton.displayName = "ActionButton";
|
|
|
5857
5896
|
// src/components/Avatar/Avatar.tsx
|
|
5858
5897
|
var import_react14 = require("react");
|
|
5859
5898
|
var import_type_guards13 = require("@wistia/type-guards");
|
|
5860
|
-
var
|
|
5899
|
+
var import_styled_components23 = __toESM(require("styled-components"));
|
|
5861
5900
|
|
|
5862
5901
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
5863
|
-
var
|
|
5902
|
+
var import_styled_components22 = __toESM(require("styled-components"));
|
|
5864
5903
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
5865
5904
|
var colorSchemeOptions = [
|
|
5866
5905
|
"inherit",
|
|
@@ -5879,7 +5918,7 @@ var colorSchemeOptions = [
|
|
|
5879
5918
|
"vendor-marketo",
|
|
5880
5919
|
"vendor-pardot"
|
|
5881
5920
|
];
|
|
5882
|
-
var StyledColorSchemeWrapper =
|
|
5921
|
+
var StyledColorSchemeWrapper = import_styled_components22.default.div`
|
|
5883
5922
|
${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
|
|
5884
5923
|
`;
|
|
5885
5924
|
var ColorSchemeWrapper = ({
|
|
@@ -5914,7 +5953,7 @@ var formatNameForDisplay = (name) => {
|
|
|
5914
5953
|
|
|
5915
5954
|
// src/components/Avatar/Avatar.tsx
|
|
5916
5955
|
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
5917
|
-
var AvatarImage =
|
|
5956
|
+
var AvatarImage = import_styled_components23.default.img`
|
|
5918
5957
|
align-items: center;
|
|
5919
5958
|
background-color: white;
|
|
5920
5959
|
border-radius: 50%;
|
|
@@ -5926,6 +5965,7 @@ var AvatarImage = import_styled_components21.default.img`
|
|
|
5926
5965
|
pointer-events: none;
|
|
5927
5966
|
user-select: none;
|
|
5928
5967
|
width: ${({ $heightAndWidth }) => $heightAndWidth}px;
|
|
5968
|
+
transition: box-shadow var(--wui-duration-01) var(--wui-motion-ease);
|
|
5929
5969
|
|
|
5930
5970
|
a:hover & {
|
|
5931
5971
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 25%);
|
|
@@ -5941,7 +5981,7 @@ var avatarSizeMap = {
|
|
|
5941
5981
|
lg: 32
|
|
5942
5982
|
};
|
|
5943
5983
|
var fontSizeScaleMultiplier = 0.55;
|
|
5944
|
-
var InitialsContainer =
|
|
5984
|
+
var InitialsContainer = import_styled_components23.default.div`
|
|
5945
5985
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
5946
5986
|
align-items: center;
|
|
5947
5987
|
background-color: var(--wui-color-bg-fill);
|
|
@@ -5963,7 +6003,7 @@ var InitialsContainer = import_styled_components21.default.div`
|
|
|
5963
6003
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
|
|
5964
6004
|
}
|
|
5965
6005
|
`;
|
|
5966
|
-
var AvatarWrapper =
|
|
6006
|
+
var AvatarWrapper = import_styled_components23.default.div`
|
|
5967
6007
|
max-height: ${({ $maxHeight }) => $maxHeight}px;
|
|
5968
6008
|
`;
|
|
5969
6009
|
var chooseColorScheme = (name) => {
|
|
@@ -6030,10 +6070,10 @@ Avatar.displayName = "Avatar";
|
|
|
6030
6070
|
|
|
6031
6071
|
// src/components/Badge/Badge.tsx
|
|
6032
6072
|
var import_react15 = require("react");
|
|
6033
|
-
var
|
|
6073
|
+
var import_styled_components24 = __toESM(require("styled-components"));
|
|
6034
6074
|
var import_type_guards14 = require("@wistia/type-guards");
|
|
6035
6075
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
6036
|
-
var StyledBadge =
|
|
6076
|
+
var StyledBadge = import_styled_components24.default.div`
|
|
6037
6077
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6038
6078
|
align-items: center;
|
|
6039
6079
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -6075,7 +6115,7 @@ Badge.displayName = "Badge";
|
|
|
6075
6115
|
|
|
6076
6116
|
// src/components/Box/Box.tsx
|
|
6077
6117
|
var import_react16 = require("react");
|
|
6078
|
-
var
|
|
6118
|
+
var import_styled_components25 = __toESM(require("styled-components"));
|
|
6079
6119
|
var import_type_guards15 = require("@wistia/type-guards");
|
|
6080
6120
|
|
|
6081
6121
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
@@ -6127,7 +6167,7 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
6127
6167
|
}
|
|
6128
6168
|
return void 0;
|
|
6129
6169
|
};
|
|
6130
|
-
var StyledBoxComponent =
|
|
6170
|
+
var StyledBoxComponent = import_styled_components25.default.div`
|
|
6131
6171
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
6132
6172
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
6133
6173
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
@@ -6214,9 +6254,9 @@ var Box = makePolymorphic(BoxComponent);
|
|
|
6214
6254
|
|
|
6215
6255
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
6216
6256
|
var import_react17 = require("react");
|
|
6217
|
-
var
|
|
6257
|
+
var import_styled_components26 = __toESM(require("styled-components"));
|
|
6218
6258
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
6219
|
-
var StyledBreadcrumbs =
|
|
6259
|
+
var StyledBreadcrumbs = import_styled_components26.default.nav`
|
|
6220
6260
|
display: flex;
|
|
6221
6261
|
align-items: center;
|
|
6222
6262
|
gap: var(--wui-space-01);
|
|
@@ -6261,9 +6301,9 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
6261
6301
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
6262
6302
|
|
|
6263
6303
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
6264
|
-
var
|
|
6304
|
+
var import_styled_components27 = __toESM(require("styled-components"));
|
|
6265
6305
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6266
|
-
var BreadcrumbContent =
|
|
6306
|
+
var BreadcrumbContent = import_styled_components27.default.span`
|
|
6267
6307
|
overflow: hidden;
|
|
6268
6308
|
white-space: nowrap;
|
|
6269
6309
|
display: block;
|
|
@@ -6295,7 +6335,7 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
6295
6335
|
};
|
|
6296
6336
|
|
|
6297
6337
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
6298
|
-
var
|
|
6338
|
+
var import_styled_components28 = __toESM(require("styled-components"));
|
|
6299
6339
|
var import_type_guards16 = require("@wistia/type-guards");
|
|
6300
6340
|
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
6301
6341
|
var getAlignment = (align) => {
|
|
@@ -6310,7 +6350,7 @@ var getAlignment = (align) => {
|
|
|
6310
6350
|
}
|
|
6311
6351
|
return "flex-start";
|
|
6312
6352
|
};
|
|
6313
|
-
var ButtonGroupComponent =
|
|
6353
|
+
var ButtonGroupComponent = import_styled_components28.default.div`
|
|
6314
6354
|
display: flex;
|
|
6315
6355
|
|
|
6316
6356
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
@@ -6352,9 +6392,9 @@ var ButtonGroup = ({
|
|
|
6352
6392
|
ButtonGroup.displayName = "ButtonGroup";
|
|
6353
6393
|
|
|
6354
6394
|
// src/components/Card/Card.tsx
|
|
6355
|
-
var
|
|
6395
|
+
var import_styled_components29 = __toESM(require("styled-components"));
|
|
6356
6396
|
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
6357
|
-
var StyledCard = (0,
|
|
6397
|
+
var StyledCard = (0, import_styled_components29.default)(Box)`
|
|
6358
6398
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6359
6399
|
box-sizing: border-box;
|
|
6360
6400
|
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
@@ -6405,53 +6445,53 @@ Card.displayName = "Card";
|
|
|
6405
6445
|
// src/components/Checkbox/Checkbox.tsx
|
|
6406
6446
|
var import_react19 = require("react");
|
|
6407
6447
|
var import_react_checkbox = require("@radix-ui/react-checkbox");
|
|
6408
|
-
var
|
|
6448
|
+
var import_styled_components33 = __toESM(require("styled-components"));
|
|
6409
6449
|
var import_type_guards18 = require("@wistia/type-guards");
|
|
6410
6450
|
|
|
6411
6451
|
// src/components/Label/Label.tsx
|
|
6412
|
-
var
|
|
6452
|
+
var import_styled_components31 = __toESM(require("styled-components"));
|
|
6413
6453
|
|
|
6414
6454
|
// src/components/Heading/Heading.tsx
|
|
6415
6455
|
var import_react18 = require("react");
|
|
6416
|
-
var
|
|
6456
|
+
var import_styled_components30 = __toESM(require("styled-components"));
|
|
6417
6457
|
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
6418
|
-
var heroStyle =
|
|
6458
|
+
var heroStyle = import_styled_components30.css`
|
|
6419
6459
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
6420
6460
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
6421
6461
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
6422
6462
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
6423
6463
|
`;
|
|
6424
|
-
var heading1TextStyle =
|
|
6464
|
+
var heading1TextStyle = import_styled_components30.css`
|
|
6425
6465
|
--font-family: var(--wui-typography-heading-1-family);
|
|
6426
6466
|
--font-size: var(--wui-typography-heading-1-size);
|
|
6427
6467
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
6428
6468
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
6429
6469
|
`;
|
|
6430
|
-
var heading2TextStyle =
|
|
6470
|
+
var heading2TextStyle = import_styled_components30.css`
|
|
6431
6471
|
--font-family: var(--wui-typography-heading-2-family);
|
|
6432
6472
|
--font-size: var(--wui-typography-heading-2-size);
|
|
6433
6473
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
6434
6474
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
6435
6475
|
`;
|
|
6436
|
-
var heading3TextStyle =
|
|
6476
|
+
var heading3TextStyle = import_styled_components30.css`
|
|
6437
6477
|
--font-family: var(--wui-typography-heading-3-family);
|
|
6438
6478
|
--font-size: var(--wui-typography-heading-3-size);
|
|
6439
6479
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
6440
6480
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
6441
6481
|
`;
|
|
6442
|
-
var heading4TextStyle =
|
|
6482
|
+
var heading4TextStyle = import_styled_components30.css`
|
|
6443
6483
|
--font-family: var(--wui-typography-heading-4-family);
|
|
6444
6484
|
--font-size: var(--wui-typography-heading-4-size);
|
|
6445
6485
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
6446
6486
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
6447
6487
|
`;
|
|
6448
|
-
var heading5TextStyle =
|
|
6488
|
+
var heading5TextStyle = import_styled_components30.css`
|
|
6449
6489
|
--font-family: var(--wui-typography-heading-5-family);
|
|
6450
6490
|
--font-size: var(--wui-typography-heading-5-size);
|
|
6451
6491
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
6452
6492
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
6453
6493
|
`;
|
|
6454
|
-
var heading6TextStyle =
|
|
6494
|
+
var heading6TextStyle = import_styled_components30.css`
|
|
6455
6495
|
--font-family: var(--wui-typography-heading-6-family);
|
|
6456
6496
|
--font-size: var(--wui-typography-heading-6-size);
|
|
6457
6497
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -6467,7 +6507,7 @@ var variantStyleMap = {
|
|
|
6467
6507
|
heading6: heading6TextStyle
|
|
6468
6508
|
};
|
|
6469
6509
|
var DEFAULT_ELEMENT2 = "h1";
|
|
6470
|
-
var StyledHeading =
|
|
6510
|
+
var StyledHeading = import_styled_components30.default.div`
|
|
6471
6511
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6472
6512
|
font-family: var(--font-family);
|
|
6473
6513
|
font-size: var(--font-size);
|
|
@@ -6476,16 +6516,16 @@ var StyledHeading = import_styled_components28.default.div`
|
|
|
6476
6516
|
color: var(--wui-color-text);
|
|
6477
6517
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
6478
6518
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
6479
|
-
${({ $inline }) => $inline &&
|
|
6519
|
+
${({ $inline }) => $inline && import_styled_components30.css`
|
|
6480
6520
|
display: inline-block;
|
|
6481
6521
|
`}
|
|
6482
|
-
${({ $disabled }) => $disabled &&
|
|
6522
|
+
${({ $disabled }) => $disabled && import_styled_components30.css`
|
|
6483
6523
|
color: var(--wui-color-text-disabled);
|
|
6484
6524
|
`}
|
|
6485
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
6525
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components30.css`
|
|
6486
6526
|
user-select: none;
|
|
6487
6527
|
`}
|
|
6488
|
-
${({ $align }) =>
|
|
6528
|
+
${({ $align }) => import_styled_components30.css`
|
|
6489
6529
|
text-align: ${$align};
|
|
6490
6530
|
`}
|
|
6491
6531
|
margin: 0;
|
|
@@ -6531,7 +6571,7 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
6531
6571
|
|
|
6532
6572
|
// src/components/Label/Label.tsx
|
|
6533
6573
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
6534
|
-
var requiredStyle =
|
|
6574
|
+
var requiredStyle = import_styled_components31.css`
|
|
6535
6575
|
&::after {
|
|
6536
6576
|
color: var(--wui-color-text-error);
|
|
6537
6577
|
display: inline;
|
|
@@ -6539,10 +6579,10 @@ var requiredStyle = import_styled_components29.css`
|
|
|
6539
6579
|
content: '*';
|
|
6540
6580
|
}
|
|
6541
6581
|
`;
|
|
6542
|
-
var disabledStyle =
|
|
6582
|
+
var disabledStyle = import_styled_components31.css`
|
|
6543
6583
|
color: var(--wui-color-text-disabled);
|
|
6544
6584
|
`;
|
|
6545
|
-
var StyledLabel2 = (0,
|
|
6585
|
+
var StyledLabel2 = (0, import_styled_components31.default)(Heading).attrs({
|
|
6546
6586
|
variant: "heading6",
|
|
6547
6587
|
renderAs: "label"
|
|
6548
6588
|
})`
|
|
@@ -6585,10 +6625,10 @@ var Label = ({
|
|
|
6585
6625
|
Label.displayName = "Label";
|
|
6586
6626
|
|
|
6587
6627
|
// src/components/Label/LabelDescription.tsx
|
|
6588
|
-
var
|
|
6628
|
+
var import_styled_components32 = __toESM(require("styled-components"));
|
|
6589
6629
|
var import_type_guards17 = require("@wistia/type-guards");
|
|
6590
6630
|
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
6591
|
-
var StyledLabelDescription =
|
|
6631
|
+
var StyledLabelDescription = import_styled_components32.default.div`
|
|
6592
6632
|
color: var(--wui-color-text-secondary);
|
|
6593
6633
|
font-size: var(--wui-typography-body-4-size);
|
|
6594
6634
|
font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -6624,7 +6664,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
|
|
|
6624
6664
|
)
|
|
6625
6665
|
}
|
|
6626
6666
|
);
|
|
6627
|
-
var StyledCheckboxWrapper =
|
|
6667
|
+
var StyledCheckboxWrapper = import_styled_components33.default.div`
|
|
6628
6668
|
display: flex;
|
|
6629
6669
|
align-items: center;
|
|
6630
6670
|
cursor: pointer;
|
|
@@ -6638,7 +6678,7 @@ var StyledCheckboxWrapper = import_styled_components31.default.div`
|
|
|
6638
6678
|
background-color: #efefef;
|
|
6639
6679
|
}
|
|
6640
6680
|
`;
|
|
6641
|
-
var StyledCheckboxRoot = (0,
|
|
6681
|
+
var StyledCheckboxRoot = (0, import_styled_components33.default)(import_react_checkbox.Root)`
|
|
6642
6682
|
all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
|
|
6643
6683
|
background-color: var(--wui-color-bg-fill-white);
|
|
6644
6684
|
min-width: 16px;
|
|
@@ -6672,10 +6712,10 @@ var StyledCheckboxRoot = (0, import_styled_components31.default)(import_react_ch
|
|
|
6672
6712
|
/* TODO Lamp to design focus state */
|
|
6673
6713
|
}
|
|
6674
6714
|
`;
|
|
6675
|
-
var StyledCheckboxIndicator = (0,
|
|
6715
|
+
var StyledCheckboxIndicator = (0, import_styled_components33.default)(import_react_checkbox.Indicator)`
|
|
6676
6716
|
display: flex;
|
|
6677
6717
|
`;
|
|
6678
|
-
var StyledLabelWrapper =
|
|
6718
|
+
var StyledLabelWrapper = import_styled_components33.default.div`
|
|
6679
6719
|
display: flex;
|
|
6680
6720
|
flex-direction: column;
|
|
6681
6721
|
margin-left: var(--wui-space-02);
|
|
@@ -6743,22 +6783,22 @@ var Checkbox = (0, import_react19.forwardRef)(
|
|
|
6743
6783
|
Checkbox.displayName = "Checkbox";
|
|
6744
6784
|
|
|
6745
6785
|
// src/components/Divider/Divider.tsx
|
|
6746
|
-
var
|
|
6786
|
+
var import_styled_components34 = __toESM(require("styled-components"));
|
|
6747
6787
|
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
6748
|
-
var horizontalBorderCss =
|
|
6788
|
+
var horizontalBorderCss = import_styled_components34.css`
|
|
6749
6789
|
border-top-color: var(--wui-color-border);
|
|
6750
6790
|
border-top-style: solid;
|
|
6751
6791
|
border-top-width: 1px;
|
|
6752
6792
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
6753
6793
|
height: 0;
|
|
6754
6794
|
`;
|
|
6755
|
-
var verticalBorderCss =
|
|
6795
|
+
var verticalBorderCss = import_styled_components34.css`
|
|
6756
6796
|
background-color: var(--wui-color-border);
|
|
6757
6797
|
max-width: 1px;
|
|
6758
6798
|
min-height: 100%;
|
|
6759
6799
|
width: 1px;
|
|
6760
6800
|
`;
|
|
6761
|
-
var DividerComponent =
|
|
6801
|
+
var DividerComponent = import_styled_components34.default.div`
|
|
6762
6802
|
${({ $orientation }) => {
|
|
6763
6803
|
switch ($orientation) {
|
|
6764
6804
|
case "vertical":
|
|
@@ -6787,15 +6827,15 @@ Divider.displayName = "Divider";
|
|
|
6787
6827
|
|
|
6788
6828
|
// src/components/Form/Form.tsx
|
|
6789
6829
|
var import_react21 = require("react");
|
|
6790
|
-
var
|
|
6830
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
6791
6831
|
var import_type_guards19 = require("@wistia/type-guards");
|
|
6792
6832
|
|
|
6793
6833
|
// src/components/Stack/Stack.tsx
|
|
6794
6834
|
var import_react20 = require("react");
|
|
6795
|
-
var
|
|
6835
|
+
var import_styled_components35 = __toESM(require("styled-components"));
|
|
6796
6836
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
6797
6837
|
var DEFAULT_ELEMENT3 = "div";
|
|
6798
|
-
var StyledStack =
|
|
6838
|
+
var StyledStack = import_styled_components35.default.div`
|
|
6799
6839
|
display: flex;
|
|
6800
6840
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6801
6841
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -6821,7 +6861,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
6821
6861
|
|
|
6822
6862
|
// src/components/Form/Form.tsx
|
|
6823
6863
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
6824
|
-
var StyledForm =
|
|
6864
|
+
var StyledForm = import_styled_components36.default.form`
|
|
6825
6865
|
--form-default-width: 690px;
|
|
6826
6866
|
|
|
6827
6867
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -6986,94 +7026,94 @@ var FormErrorSummary = ({ description }) => {
|
|
|
6986
7026
|
|
|
6987
7027
|
// src/components/FormField/FormField.tsx
|
|
6988
7028
|
var import_react27 = require("react");
|
|
6989
|
-
var
|
|
7029
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
6990
7030
|
var import_type_guards21 = require("@wistia/type-guards");
|
|
6991
7031
|
|
|
6992
7032
|
// src/components/Text/Text.tsx
|
|
6993
7033
|
var import_react24 = require("react");
|
|
6994
|
-
var
|
|
7034
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
6995
7035
|
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
6996
|
-
var bodyBoldStyles =
|
|
7036
|
+
var bodyBoldStyles = import_styled_components37.css`
|
|
6997
7037
|
> strong,
|
|
6998
7038
|
b {
|
|
6999
7039
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
7000
7040
|
}
|
|
7001
7041
|
`;
|
|
7002
|
-
var labelBoldStyles =
|
|
7042
|
+
var labelBoldStyles = import_styled_components37.css`
|
|
7003
7043
|
> strong,
|
|
7004
7044
|
b {
|
|
7005
7045
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
7006
7046
|
}
|
|
7007
7047
|
`;
|
|
7008
|
-
var body1TextStyle =
|
|
7048
|
+
var body1TextStyle = import_styled_components37.css`
|
|
7009
7049
|
--font-family: var(--wui-typography-body-1-family);
|
|
7010
7050
|
--font-size: var(--wui-typography-body-1-size);
|
|
7011
7051
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
7012
7052
|
--line-height: var(--wui-typography-body-1-line-height);
|
|
7013
7053
|
${bodyBoldStyles}
|
|
7014
7054
|
`;
|
|
7015
|
-
var body2TextStyle =
|
|
7055
|
+
var body2TextStyle = import_styled_components37.css`
|
|
7016
7056
|
--font-family: var(--wui-typography-body-2-family);
|
|
7017
7057
|
--font-size: var(--wui-typography-body-2-size);
|
|
7018
7058
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
7019
7059
|
--line-height: var(--wui-typography-body-2-line-height);
|
|
7020
7060
|
${bodyBoldStyles}
|
|
7021
7061
|
`;
|
|
7022
|
-
var body3TextStyle =
|
|
7062
|
+
var body3TextStyle = import_styled_components37.css`
|
|
7023
7063
|
--font-family: var(--wui-typography-body-3-family);
|
|
7024
7064
|
--font-size: var(--wui-typography-body-3-size);
|
|
7025
7065
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
7026
7066
|
--line-height: var(--wui-typography-body-3-line-height);
|
|
7027
7067
|
${bodyBoldStyles}
|
|
7028
7068
|
`;
|
|
7029
|
-
var body4TextStyle =
|
|
7069
|
+
var body4TextStyle = import_styled_components37.css`
|
|
7030
7070
|
--font-family: var(--wui-typography-body-4-family);
|
|
7031
7071
|
--font-size: var(--wui-typography-body-4-size);
|
|
7032
7072
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
7033
7073
|
--line-height: var(--wui-typography-body-4-line-height);
|
|
7034
7074
|
${bodyBoldStyles}
|
|
7035
7075
|
`;
|
|
7036
|
-
var label1TextStyle =
|
|
7076
|
+
var label1TextStyle = import_styled_components37.css`
|
|
7037
7077
|
--font-family: var(--wui-typography-label-1-family);
|
|
7038
7078
|
--font-size: var(--wui-typography-label-1-size);
|
|
7039
7079
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
7040
7080
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
7041
7081
|
${labelBoldStyles}
|
|
7042
7082
|
`;
|
|
7043
|
-
var label2TextStyle =
|
|
7083
|
+
var label2TextStyle = import_styled_components37.css`
|
|
7044
7084
|
--font-family: var(--wui-typography-label-2-family);
|
|
7045
7085
|
--font-size: var(--wui-typography-label-2-size);
|
|
7046
7086
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
7047
7087
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
7048
7088
|
${labelBoldStyles}
|
|
7049
7089
|
`;
|
|
7050
|
-
var label3TextStyle =
|
|
7090
|
+
var label3TextStyle = import_styled_components37.css`
|
|
7051
7091
|
--font-family: var(--wui-typography-label-3-family);
|
|
7052
7092
|
--font-size: var(--wui-typography-label-3-size);
|
|
7053
7093
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
7054
7094
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
7055
7095
|
${labelBoldStyles}
|
|
7056
7096
|
`;
|
|
7057
|
-
var label4TextStyle =
|
|
7097
|
+
var label4TextStyle = import_styled_components37.css`
|
|
7058
7098
|
--font-family: var(--wui-typography-label-4-family);
|
|
7059
7099
|
--font-size: var(--wui-typography-label-4-size);
|
|
7060
7100
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
7061
7101
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
7062
7102
|
${labelBoldStyles}
|
|
7063
7103
|
`;
|
|
7064
|
-
var body1MonoTextStyle =
|
|
7104
|
+
var body1MonoTextStyle = import_styled_components37.css`
|
|
7065
7105
|
${body1TextStyle};
|
|
7066
7106
|
--font-family: var(--wui-typography-family-mono);
|
|
7067
7107
|
`;
|
|
7068
|
-
var body2MonoTextStyle =
|
|
7108
|
+
var body2MonoTextStyle = import_styled_components37.css`
|
|
7069
7109
|
${body2TextStyle};
|
|
7070
7110
|
--font-family: var(--wui-typography-family-mono);
|
|
7071
7111
|
`;
|
|
7072
|
-
var body3MonoTextStyle =
|
|
7112
|
+
var body3MonoTextStyle = import_styled_components37.css`
|
|
7073
7113
|
${body3TextStyle};
|
|
7074
7114
|
--font-family: var(--wui-typography-family-mono);
|
|
7075
7115
|
`;
|
|
7076
|
-
var body4MonoTextStyle =
|
|
7116
|
+
var body4MonoTextStyle = import_styled_components37.css`
|
|
7077
7117
|
${body4TextStyle};
|
|
7078
7118
|
--font-family: var(--wui-typography-family-mono);
|
|
7079
7119
|
`;
|
|
@@ -7091,7 +7131,7 @@ var variantStyleMap2 = {
|
|
|
7091
7131
|
label3: label3TextStyle,
|
|
7092
7132
|
label4: label4TextStyle
|
|
7093
7133
|
};
|
|
7094
|
-
var StyledText =
|
|
7134
|
+
var StyledText = import_styled_components37.default.div`
|
|
7095
7135
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7096
7136
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
7097
7137
|
if ($disabled) {
|
|
@@ -7115,19 +7155,19 @@ var StyledText = import_styled_components35.default.div`
|
|
|
7115
7155
|
margin: 0;
|
|
7116
7156
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
7117
7157
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7118
|
-
${({ $inline }) => $inline &&
|
|
7158
|
+
${({ $inline }) => $inline && import_styled_components37.css`
|
|
7119
7159
|
display: inline-block;
|
|
7120
7160
|
`}
|
|
7121
|
-
${({ $disabled }) => $disabled &&
|
|
7161
|
+
${({ $disabled }) => $disabled && import_styled_components37.css`
|
|
7122
7162
|
--text-color: var(--wui-color-text-disabled);
|
|
7123
7163
|
`}
|
|
7124
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
7164
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components37.css`
|
|
7125
7165
|
user-select: none;
|
|
7126
7166
|
`}
|
|
7127
|
-
${({ $align }) =>
|
|
7167
|
+
${({ $align }) => import_styled_components37.css`
|
|
7128
7168
|
text-align: ${$align};
|
|
7129
7169
|
`}
|
|
7130
|
-
${({ as }) => as === "p" &&
|
|
7170
|
+
${({ as }) => as === "p" && import_styled_components37.css`
|
|
7131
7171
|
display: block;
|
|
7132
7172
|
`}
|
|
7133
7173
|
`;
|
|
@@ -7170,13 +7210,13 @@ var Text = makePolymorphic(TextComponent);
|
|
|
7170
7210
|
var import_react26 = require("react");
|
|
7171
7211
|
|
|
7172
7212
|
// src/components/FormGroup/FormGroup.tsx
|
|
7173
|
-
var
|
|
7213
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
7174
7214
|
var import_react25 = require("react");
|
|
7175
7215
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
7176
|
-
var StyledFieldset =
|
|
7216
|
+
var StyledFieldset = import_styled_components38.default.fieldset`
|
|
7177
7217
|
border: 0;
|
|
7178
7218
|
`;
|
|
7179
|
-
var StyledLegend =
|
|
7219
|
+
var StyledLegend = import_styled_components38.default.legend`
|
|
7180
7220
|
margin-bottom: var(--space-01);
|
|
7181
7221
|
`;
|
|
7182
7222
|
var FormGroup = ({ children, label, ...props }) => {
|
|
@@ -7225,7 +7265,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
7225
7265
|
|
|
7226
7266
|
// src/components/FormField/FormField.tsx
|
|
7227
7267
|
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
7228
|
-
var StyledFormField =
|
|
7268
|
+
var StyledFormField = import_styled_components39.default.div`
|
|
7229
7269
|
--form-field-spacing: var(--wui-space-01);
|
|
7230
7270
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
7231
7271
|
|
|
@@ -7233,7 +7273,7 @@ var StyledFormField = import_styled_components37.default.div`
|
|
|
7233
7273
|
flex-direction: column;
|
|
7234
7274
|
gap: var(--form-field-spacing);
|
|
7235
7275
|
`;
|
|
7236
|
-
var StyledErrorList =
|
|
7276
|
+
var StyledErrorList = import_styled_components39.default.ul`
|
|
7237
7277
|
margin: 0;
|
|
7238
7278
|
padding: 0;
|
|
7239
7279
|
padding-left: var(--wui-space-04);
|
|
@@ -7347,9 +7387,9 @@ RadioGroup.displayName = "RadioGroup";
|
|
|
7347
7387
|
|
|
7348
7388
|
// src/components/IconButton/IconButton.tsx
|
|
7349
7389
|
var import_react29 = require("react");
|
|
7350
|
-
var
|
|
7390
|
+
var import_styled_components40 = __toESM(require("styled-components"));
|
|
7351
7391
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
7352
|
-
var StyledButton2 = (0,
|
|
7392
|
+
var StyledButton2 = (0, import_styled_components40.default)(Button)`
|
|
7353
7393
|
--icon-button-size-sm: 24px;
|
|
7354
7394
|
--icon-button-size-md: 32px;
|
|
7355
7395
|
--icon-button-size-lg: 40px;
|
|
@@ -7385,10 +7425,10 @@ IconButton.displayName = "IconButton";
|
|
|
7385
7425
|
|
|
7386
7426
|
// src/components/Input/Input.tsx
|
|
7387
7427
|
var import_react30 = require("react");
|
|
7388
|
-
var
|
|
7428
|
+
var import_styled_components41 = __toESM(require("styled-components"));
|
|
7389
7429
|
var import_type_guards22 = require("@wistia/type-guards");
|
|
7390
7430
|
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
7391
|
-
var inputStyles =
|
|
7431
|
+
var inputStyles = import_styled_components41.css`
|
|
7392
7432
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
7393
7433
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
7394
7434
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -7429,7 +7469,7 @@ var inputStyles = import_styled_components39.css`
|
|
|
7429
7469
|
}
|
|
7430
7470
|
}
|
|
7431
7471
|
`;
|
|
7432
|
-
var StyledInputContainer =
|
|
7472
|
+
var StyledInputContainer = import_styled_components41.default.div`
|
|
7433
7473
|
display: inline-flex;
|
|
7434
7474
|
position: relative;
|
|
7435
7475
|
${inputStyles};
|
|
@@ -7547,7 +7587,7 @@ var Input = (0, import_react30.forwardRef)(
|
|
|
7547
7587
|
Input.displayName = "Input";
|
|
7548
7588
|
|
|
7549
7589
|
// src/components/Menu/Menu.tsx
|
|
7550
|
-
var
|
|
7590
|
+
var import_styled_components42 = __toESM(require("styled-components"));
|
|
7551
7591
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
7552
7592
|
var import_type_guards23 = require("@wistia/type-guards");
|
|
7553
7593
|
var import_react32 = require("react");
|
|
@@ -7559,7 +7599,7 @@ var useMenuContext = () => (0, import_react31.useContext)(MenuContext);
|
|
|
7559
7599
|
|
|
7560
7600
|
// src/components/Menu/Menu.tsx
|
|
7561
7601
|
var import_jsx_runtime187 = require("react/jsx-runtime");
|
|
7562
|
-
var open =
|
|
7602
|
+
var open = import_styled_components42.keyframes`
|
|
7563
7603
|
from {
|
|
7564
7604
|
opacity: 0;
|
|
7565
7605
|
transform: scale(.97) translateY(-8px);
|
|
@@ -7569,7 +7609,7 @@ var open = import_styled_components40.keyframes`
|
|
|
7569
7609
|
transform: scale(1);
|
|
7570
7610
|
}
|
|
7571
7611
|
`;
|
|
7572
|
-
var close =
|
|
7612
|
+
var close = import_styled_components42.keyframes`
|
|
7573
7613
|
from {
|
|
7574
7614
|
opacity: 1;
|
|
7575
7615
|
transform: scale(1);
|
|
@@ -7579,7 +7619,7 @@ var close = import_styled_components40.keyframes`
|
|
|
7579
7619
|
transform: scale(.97) translateY(-8px);
|
|
7580
7620
|
}
|
|
7581
7621
|
`;
|
|
7582
|
-
var menuItemCss =
|
|
7622
|
+
var menuItemCss = import_styled_components42.css`
|
|
7583
7623
|
--menu-label-description-gap: var(--wui-space-01);
|
|
7584
7624
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
7585
7625
|
--menu-item-left-icon-size: 24px;
|
|
@@ -7590,7 +7630,7 @@ var menuItemCss = import_styled_components40.css`
|
|
|
7590
7630
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
7591
7631
|
--menu-divider-margin: var(--wui-space-02);
|
|
7592
7632
|
`;
|
|
7593
|
-
var compactMenuItemCss =
|
|
7633
|
+
var compactMenuItemCss = import_styled_components42.css`
|
|
7594
7634
|
--menu-label-description-gap: 0;
|
|
7595
7635
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
7596
7636
|
--menu-item-left-icon-size: 16px;
|
|
@@ -7601,18 +7641,19 @@ var compactMenuItemCss = import_styled_components40.css`
|
|
|
7601
7641
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
7602
7642
|
--menu-divider-margin: var(--wui-space-01);
|
|
7603
7643
|
`;
|
|
7604
|
-
var menuContentCss =
|
|
7644
|
+
var menuContentCss = import_styled_components42.css`
|
|
7605
7645
|
--menu-font-family: var(--wui-typography-family-default);
|
|
7606
7646
|
--menu-bg: var(--wui-color-bg-surface);
|
|
7607
|
-
--menu-shadow:
|
|
7647
|
+
--menu-shadow: var(--wui-elevation-01);
|
|
7608
7648
|
--menu-border-radius: var(--wui-border-radius-02);
|
|
7609
7649
|
--menu-padding: var(--wui-space-02);
|
|
7610
7650
|
--menu-min-width: 120px;
|
|
7611
7651
|
--menu-max-width: 284px;
|
|
7652
|
+
--menu-animation-duration: var(--wui-motion-duration-03);
|
|
7612
7653
|
|
|
7613
7654
|
${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss};
|
|
7614
7655
|
|
|
7615
|
-
animation: ${open};
|
|
7656
|
+
animation: var(--menu-animation-duration) var(--wui-motion-ease-out) ${open};
|
|
7616
7657
|
font-family: var(--menu-font-family);
|
|
7617
7658
|
background: var(--menu-bg);
|
|
7618
7659
|
border-radius: var(--menu-border-radius);
|
|
@@ -7627,7 +7668,7 @@ var menuContentCss = import_styled_components40.css`
|
|
|
7627
7668
|
border: 1px solid var(--wui-color-border);
|
|
7628
7669
|
|
|
7629
7670
|
&[data-state='closed'] {
|
|
7630
|
-
animation: ${close}; /* TODO - need easing tokens */
|
|
7671
|
+
animation: var(--menu-animation-duration) var(--wui-motion-ease-in) ${close}; /* TODO - need easing tokens */
|
|
7631
7672
|
}
|
|
7632
7673
|
|
|
7633
7674
|
${mq.smAndUp} {
|
|
@@ -7642,7 +7683,7 @@ var menuContentCss = import_styled_components40.css`
|
|
|
7642
7683
|
margin: var(--menu-divider-margin) 0;
|
|
7643
7684
|
}
|
|
7644
7685
|
`;
|
|
7645
|
-
var MenuContent = (0,
|
|
7686
|
+
var MenuContent = (0, import_styled_components42.default)(import_react_dropdown_menu.DropdownMenuContent)`
|
|
7646
7687
|
${menuContentCss}
|
|
7647
7688
|
`;
|
|
7648
7689
|
var Menu = ({
|
|
@@ -7705,10 +7746,10 @@ var Menu = ({
|
|
|
7705
7746
|
Menu.displayName = "Menu";
|
|
7706
7747
|
|
|
7707
7748
|
// src/components/Menu/MenuLabel.tsx
|
|
7708
|
-
var
|
|
7749
|
+
var import_styled_components43 = __toESM(require("styled-components"));
|
|
7709
7750
|
var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
|
|
7710
7751
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
7711
|
-
var StyledMenuLabel = (0,
|
|
7752
|
+
var StyledMenuLabel = (0, import_styled_components43.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
|
|
7712
7753
|
padding: var(--wui-space-02);
|
|
7713
7754
|
`;
|
|
7714
7755
|
var MenuLabel = ({ children, ...props }) => {
|
|
@@ -7733,16 +7774,16 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
7733
7774
|
|
|
7734
7775
|
// src/components/Menu/SubMenu.tsx
|
|
7735
7776
|
var import_react34 = require("react");
|
|
7736
|
-
var
|
|
7777
|
+
var import_styled_components46 = __toESM(require("styled-components"));
|
|
7737
7778
|
var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
|
|
7738
7779
|
var import_type_guards25 = require("@wistia/type-guards");
|
|
7739
7780
|
|
|
7740
7781
|
// src/components/Menu/MenuItemButton.tsx
|
|
7741
7782
|
var import_react33 = require("react");
|
|
7742
|
-
var
|
|
7783
|
+
var import_styled_components44 = __toESM(require("styled-components"));
|
|
7743
7784
|
var import_type_guards24 = require("@wistia/type-guards");
|
|
7744
7785
|
var import_jsx_runtime189 = require("react/jsx-runtime");
|
|
7745
|
-
var StyledButton3 = (0,
|
|
7786
|
+
var StyledButton3 = (0, import_styled_components44.default)(Button)`
|
|
7746
7787
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
7747
7788
|
|
|
7748
7789
|
display: flex;
|
|
@@ -7755,6 +7796,7 @@ var StyledButton3 = (0, import_styled_components42.default)(Button)`
|
|
|
7755
7796
|
font-size: var(--menu-label-font-size);
|
|
7756
7797
|
font-weight: var(--menu-label-font-weight);
|
|
7757
7798
|
line-height: var(--menu-label-line-height);
|
|
7799
|
+
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
7758
7800
|
|
|
7759
7801
|
:active {
|
|
7760
7802
|
background-color: var(--wui-color-bg-surface-active);
|
|
@@ -7780,7 +7822,7 @@ var StyledButton3 = (0, import_styled_components42.default)(Button)`
|
|
|
7780
7822
|
padding-left: var(--wui-space-04);
|
|
7781
7823
|
}
|
|
7782
7824
|
`;
|
|
7783
|
-
var StyledLeftIconContainer =
|
|
7825
|
+
var StyledLeftIconContainer = import_styled_components44.default.div`
|
|
7784
7826
|
height: var(--menu-item-left-icon-size);
|
|
7785
7827
|
width: var(--menu-item-left-icon-size);
|
|
7786
7828
|
|
|
@@ -7789,7 +7831,7 @@ var StyledLeftIconContainer = import_styled_components42.default.div`
|
|
|
7789
7831
|
width: var(--menu-item-left-icon-size);
|
|
7790
7832
|
}
|
|
7791
7833
|
`;
|
|
7792
|
-
var StyledRightIconContainer =
|
|
7834
|
+
var StyledRightIconContainer = import_styled_components44.default.div`
|
|
7793
7835
|
height: var(--menu-item-right-icon-size);
|
|
7794
7836
|
width: var(--menu-item-right-icon-size);
|
|
7795
7837
|
|
|
@@ -7798,13 +7840,13 @@ var StyledRightIconContainer = import_styled_components42.default.div`
|
|
|
7798
7840
|
width: var(--menu-item-right-icon-size);
|
|
7799
7841
|
}
|
|
7800
7842
|
`;
|
|
7801
|
-
var StyledLabelAndDescriptionContainer =
|
|
7843
|
+
var StyledLabelAndDescriptionContainer = import_styled_components44.default.div`
|
|
7802
7844
|
display: flex;
|
|
7803
7845
|
flex-direction: column;
|
|
7804
7846
|
gap: var(--menu-label-description-gap);
|
|
7805
7847
|
flex-basis: 100%;
|
|
7806
7848
|
`;
|
|
7807
|
-
var StyledBadgeContainer =
|
|
7849
|
+
var StyledBadgeContainer = import_styled_components44.default.div`
|
|
7808
7850
|
align-self: start;
|
|
7809
7851
|
justify-self: end;
|
|
7810
7852
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -7852,10 +7894,10 @@ var MenuItemButton = (0, import_react33.forwardRef)(({ children, appearance, com
|
|
|
7852
7894
|
MenuItemButton.displayName = "MenuItemButton";
|
|
7853
7895
|
|
|
7854
7896
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
7855
|
-
var
|
|
7897
|
+
var import_styled_components45 = __toESM(require("styled-components"));
|
|
7856
7898
|
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
7857
|
-
var StyledMenuItemLabel =
|
|
7858
|
-
var StyledMenuItemDescription = (0,
|
|
7899
|
+
var StyledMenuItemLabel = import_styled_components45.default.span``;
|
|
7900
|
+
var StyledMenuItemDescription = (0, import_styled_components45.default)(Text).attrs({
|
|
7859
7901
|
variant: "body4",
|
|
7860
7902
|
prominence: "secondary"
|
|
7861
7903
|
})``;
|
|
@@ -7868,17 +7910,17 @@ var MenuItemDescription = ({ children }) => {
|
|
|
7868
7910
|
|
|
7869
7911
|
// src/components/Menu/SubMenu.tsx
|
|
7870
7912
|
var import_jsx_runtime191 = require("react/jsx-runtime");
|
|
7871
|
-
var SubMenuContent = (0,
|
|
7913
|
+
var SubMenuContent = (0, import_styled_components46.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
|
|
7872
7914
|
${menuContentCss}
|
|
7873
7915
|
|
|
7874
7916
|
${mq.smAndDown} {
|
|
7875
7917
|
transform: translateX(-100%) !important;
|
|
7876
7918
|
}
|
|
7877
7919
|
`;
|
|
7878
|
-
var StyledMobileSubMenuItems =
|
|
7920
|
+
var StyledMobileSubMenuItems = import_styled_components46.default.div`
|
|
7879
7921
|
margin-left: var(--wui-space-04);
|
|
7880
7922
|
`;
|
|
7881
|
-
var StyledSubTrigger = (0,
|
|
7923
|
+
var StyledSubTrigger = (0, import_styled_components46.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
|
|
7882
7924
|
outline: none;
|
|
7883
7925
|
|
|
7884
7926
|
&[data-state='open'],
|
|
@@ -8088,19 +8130,19 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
8088
8130
|
|
|
8089
8131
|
// src/components/Modal/Modal.tsx
|
|
8090
8132
|
var import_react39 = require("react");
|
|
8091
|
-
var
|
|
8133
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8092
8134
|
var import_react_dialog4 = require("@radix-ui/react-dialog");
|
|
8093
8135
|
var import_type_guards28 = require("@wistia/type-guards");
|
|
8094
8136
|
|
|
8095
8137
|
// src/components/Modal/ModalHeader.tsx
|
|
8096
|
-
var
|
|
8138
|
+
var import_styled_components49 = __toESM(require("styled-components"));
|
|
8097
8139
|
var import_react_dialog2 = require("@radix-ui/react-dialog");
|
|
8098
8140
|
|
|
8099
8141
|
// src/components/Modal/ModalCloseButton.tsx
|
|
8100
|
-
var
|
|
8142
|
+
var import_styled_components47 = __toESM(require("styled-components"));
|
|
8101
8143
|
var import_react_dialog = require("@radix-ui/react-dialog");
|
|
8102
8144
|
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
8103
|
-
var CloseButton = (0,
|
|
8145
|
+
var CloseButton = (0, import_styled_components47.default)(import_react_dialog.Close)`
|
|
8104
8146
|
align-self: start;
|
|
8105
8147
|
`;
|
|
8106
8148
|
var ModalCloseButton = () => {
|
|
@@ -8116,11 +8158,11 @@ var ModalCloseButton = () => {
|
|
|
8116
8158
|
};
|
|
8117
8159
|
|
|
8118
8160
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
8119
|
-
var
|
|
8161
|
+
var import_styled_components48 = __toESM(require("styled-components"));
|
|
8120
8162
|
var import_type_guards26 = require("@wistia/type-guards");
|
|
8121
8163
|
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
8122
|
-
var VisuallyHidden =
|
|
8123
|
-
var VisuallyHiddenButFocusable =
|
|
8164
|
+
var VisuallyHidden = import_styled_components48.default.div({ ...visuallyHiddenStyle });
|
|
8165
|
+
var VisuallyHiddenButFocusable = import_styled_components48.default.div({
|
|
8124
8166
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
8125
8167
|
});
|
|
8126
8168
|
var ScreenReaderOnly = ({
|
|
@@ -8139,7 +8181,7 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
8139
8181
|
|
|
8140
8182
|
// src/components/Modal/ModalHeader.tsx
|
|
8141
8183
|
var import_jsx_runtime198 = require("react/jsx-runtime");
|
|
8142
|
-
var Header =
|
|
8184
|
+
var Header = import_styled_components49.default.header`
|
|
8143
8185
|
display: flex;
|
|
8144
8186
|
order: 1;
|
|
8145
8187
|
gap: var(--wui-space-01);
|
|
@@ -8151,7 +8193,7 @@ var Header = import_styled_components47.default.header`
|
|
|
8151
8193
|
margin-top: 0;
|
|
8152
8194
|
}
|
|
8153
8195
|
`;
|
|
8154
|
-
var Title = (0,
|
|
8196
|
+
var Title = (0, import_styled_components49.default)(import_react_dialog2.Title)`
|
|
8155
8197
|
font-family: var(--wui-typography-heading-2-family);
|
|
8156
8198
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
8157
8199
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -8171,7 +8213,7 @@ var ModalHeader = ({
|
|
|
8171
8213
|
|
|
8172
8214
|
// src/components/Modal/ModalContent.tsx
|
|
8173
8215
|
var import_react37 = require("react");
|
|
8174
|
-
var
|
|
8216
|
+
var import_styled_components50 = __toESM(require("styled-components"));
|
|
8175
8217
|
var import_react_dialog3 = require("@radix-ui/react-dialog");
|
|
8176
8218
|
|
|
8177
8219
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -8195,7 +8237,7 @@ var useFocusRestore = () => {
|
|
|
8195
8237
|
|
|
8196
8238
|
// src/components/Modal/ModalContent.tsx
|
|
8197
8239
|
var import_jsx_runtime199 = require("react/jsx-runtime");
|
|
8198
|
-
var StyledModalContent = (0,
|
|
8240
|
+
var StyledModalContent = (0, import_styled_components50.default)(import_react_dialog3.Content)`
|
|
8199
8241
|
background-color: var(--wui-color-bg-app);
|
|
8200
8242
|
box-sizing: border-box;
|
|
8201
8243
|
display: flex;
|
|
@@ -8254,7 +8296,7 @@ var ModalContent = (0, import_react37.forwardRef)(
|
|
|
8254
8296
|
|
|
8255
8297
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
8256
8298
|
var import_react38 = require("react");
|
|
8257
|
-
var
|
|
8299
|
+
var import_styled_components51 = __toESM(require("styled-components"));
|
|
8258
8300
|
var import_jsx_runtime200 = require("react/jsx-runtime");
|
|
8259
8301
|
var backdropAnimationDuration = 150;
|
|
8260
8302
|
var alignVerticalMap = {
|
|
@@ -8268,7 +8310,7 @@ var alignHorizontalMap = {
|
|
|
8268
8310
|
center: "center",
|
|
8269
8311
|
right: "end"
|
|
8270
8312
|
};
|
|
8271
|
-
var BackdropComponent =
|
|
8313
|
+
var BackdropComponent = import_styled_components51.default.div`
|
|
8272
8314
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
8273
8315
|
animation-name: backdropShow;
|
|
8274
8316
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -8307,7 +8349,7 @@ Backdrop.displayName = "Backdrop";
|
|
|
8307
8349
|
|
|
8308
8350
|
// src/components/Modal/Modal.tsx
|
|
8309
8351
|
var import_jsx_runtime201 = require("react/jsx-runtime");
|
|
8310
|
-
var ModalBody =
|
|
8352
|
+
var ModalBody = import_styled_components52.default.div`
|
|
8311
8353
|
flex-direction: column;
|
|
8312
8354
|
display: flex;
|
|
8313
8355
|
order: 2;
|
|
@@ -8373,15 +8415,15 @@ Modal.displayName = "Modal";
|
|
|
8373
8415
|
|
|
8374
8416
|
// src/components/Radio/Radio.tsx
|
|
8375
8417
|
var import_react40 = require("react");
|
|
8376
|
-
var
|
|
8418
|
+
var import_styled_components53 = __toESM(require("styled-components"));
|
|
8377
8419
|
var import_type_guards29 = require("@wistia/type-guards");
|
|
8378
8420
|
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
8379
|
-
var StyledLabelWrapper2 =
|
|
8421
|
+
var StyledLabelWrapper2 = import_styled_components53.default.div`
|
|
8380
8422
|
display: flex;
|
|
8381
8423
|
flex-direction: column;
|
|
8382
8424
|
padding-left: var(--wui-space-02);
|
|
8383
8425
|
`;
|
|
8384
|
-
var StyledRadio =
|
|
8426
|
+
var StyledRadio = import_styled_components53.default.input`
|
|
8385
8427
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
8386
8428
|
appearance: none;
|
|
8387
8429
|
margin: 0;
|
|
@@ -8407,11 +8449,11 @@ var StyledRadio = import_styled_components51.default.input`
|
|
|
8407
8449
|
transform: scale(1);
|
|
8408
8450
|
}
|
|
8409
8451
|
`;
|
|
8410
|
-
var disabledStyle2 =
|
|
8452
|
+
var disabledStyle2 = import_styled_components53.css`
|
|
8411
8453
|
cursor: not-allowed;
|
|
8412
8454
|
opacity: 0.5;
|
|
8413
8455
|
`;
|
|
8414
|
-
var errorStyle =
|
|
8456
|
+
var errorStyle = import_styled_components53.css`
|
|
8415
8457
|
/* TODO Lamp to design error state */
|
|
8416
8458
|
&:hover,
|
|
8417
8459
|
&:focus,
|
|
@@ -8419,11 +8461,11 @@ var errorStyle = import_styled_components51.css`
|
|
|
8419
8461
|
border-color: transparent !important;
|
|
8420
8462
|
}
|
|
8421
8463
|
`;
|
|
8422
|
-
var defaultHoverStyle =
|
|
8464
|
+
var defaultHoverStyle = import_styled_components53.css`
|
|
8423
8465
|
/* TODO Lamp to design hover state */
|
|
8424
8466
|
cursor: pointer;
|
|
8425
8467
|
`;
|
|
8426
|
-
var StyledRadioWrapper =
|
|
8468
|
+
var StyledRadioWrapper = import_styled_components53.default.div`
|
|
8427
8469
|
align-items: baseline;
|
|
8428
8470
|
border: 1px solid transparent;
|
|
8429
8471
|
border-radius: 4px;
|
|
@@ -8503,11 +8545,11 @@ Radio.displayName = "Radio";
|
|
|
8503
8545
|
|
|
8504
8546
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
8505
8547
|
var import_react41 = require("react");
|
|
8506
|
-
var
|
|
8548
|
+
var import_styled_components54 = __toESM(require("styled-components"));
|
|
8507
8549
|
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
8508
8550
|
var import_type_guards30 = require("@wistia/type-guards");
|
|
8509
8551
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
8510
|
-
var StyledSegmentedControl = (0,
|
|
8552
|
+
var StyledSegmentedControl = (0, import_styled_components54.default)(import_react_toggle_group.Root)`
|
|
8511
8553
|
display: inline-flex;
|
|
8512
8554
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
8513
8555
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8548,11 +8590,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
8548
8590
|
|
|
8549
8591
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
8550
8592
|
var import_react42 = require("react");
|
|
8551
|
-
var
|
|
8593
|
+
var import_styled_components55 = __toESM(require("styled-components"));
|
|
8552
8594
|
var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
|
|
8553
8595
|
var import_type_guards31 = require("@wistia/type-guards");
|
|
8554
8596
|
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
8555
|
-
var StyledSegmentedControlItem = (0,
|
|
8597
|
+
var StyledSegmentedControlItem = (0, import_styled_components55.default)(import_react_toggle_group2.Item)`
|
|
8556
8598
|
all: unset; /* ToggleGroupItem is a button element */
|
|
8557
8599
|
align-items: center;
|
|
8558
8600
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8634,10 +8676,10 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
|
8634
8676
|
|
|
8635
8677
|
// src/components/Tag/Tag.tsx
|
|
8636
8678
|
var import_react43 = require("react");
|
|
8637
|
-
var
|
|
8679
|
+
var import_styled_components56 = __toESM(require("styled-components"));
|
|
8638
8680
|
var import_type_guards32 = require("@wistia/type-guards");
|
|
8639
8681
|
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
8640
|
-
var TagLabel =
|
|
8682
|
+
var TagLabel = import_styled_components56.default.a`
|
|
8641
8683
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8642
8684
|
font-size: var(--wui-typography-label-4-size);
|
|
8643
8685
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8665,14 +8707,14 @@ var TagLabel = import_styled_components54.default.a`
|
|
|
8665
8707
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8666
8708
|
}
|
|
8667
8709
|
`;
|
|
8668
|
-
var TagDivider =
|
|
8710
|
+
var TagDivider = import_styled_components56.default.div`
|
|
8669
8711
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8670
8712
|
border-left: 1px solid var(--wui-color-border);
|
|
8671
8713
|
display: flex;
|
|
8672
8714
|
height: 14px;
|
|
8673
8715
|
width: 1px;
|
|
8674
8716
|
`;
|
|
8675
|
-
var StyledRemoveButton =
|
|
8717
|
+
var StyledRemoveButton = import_styled_components56.default.button`
|
|
8676
8718
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8677
8719
|
all: unset;
|
|
8678
8720
|
cursor: pointer;
|
|
@@ -8700,13 +8742,17 @@ var StyledRemoveButton = import_styled_components54.default.button`
|
|
|
8700
8742
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8701
8743
|
}
|
|
8702
8744
|
`;
|
|
8703
|
-
var StyledTag =
|
|
8745
|
+
var StyledTag = import_styled_components56.default.div`
|
|
8704
8746
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8705
8747
|
align-items: center;
|
|
8706
8748
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
8707
8749
|
border-radius: var(--wui-border-radius-01);
|
|
8708
8750
|
display: inline-flex;
|
|
8709
8751
|
overflow: hidden;
|
|
8752
|
+
|
|
8753
|
+
> * {
|
|
8754
|
+
transition: background var(--wui-duration-01) var(--wui-motion-ease);
|
|
8755
|
+
}
|
|
8710
8756
|
`;
|
|
8711
8757
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
8712
8758
|
if ((0, import_type_guards32.isNil)(onClickRemove)) {
|
|
@@ -8774,16 +8820,16 @@ Tag.displayName = "Tag";
|
|
|
8774
8820
|
|
|
8775
8821
|
// src/components/Tooltip/Tooltip.tsx
|
|
8776
8822
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
8777
|
-
var
|
|
8823
|
+
var import_styled_components57 = __toESM(require("styled-components"));
|
|
8778
8824
|
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
8779
|
-
var CompactTooltipStyles =
|
|
8825
|
+
var CompactTooltipStyles = import_styled_components57.css`
|
|
8780
8826
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8781
8827
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8782
8828
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8783
8829
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8784
8830
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8785
8831
|
`;
|
|
8786
|
-
var StyledContent = (0,
|
|
8832
|
+
var StyledContent = (0, import_styled_components57.default)(import_react_tooltip2.Content)`
|
|
8787
8833
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8788
8834
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8789
8835
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8878,7 +8924,7 @@ var Tooltip = ({
|
|
|
8878
8924
|
Tooltip.displayName = "Tooltip";
|
|
8879
8925
|
|
|
8880
8926
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8881
|
-
var
|
|
8927
|
+
var import_styled_components58 = __toESM(require("styled-components"));
|
|
8882
8928
|
var import_type_guards33 = require("@wistia/type-guards");
|
|
8883
8929
|
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
8884
8930
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -8920,7 +8966,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8920
8966
|
}
|
|
8921
8967
|
return "0 0 144 31.47";
|
|
8922
8968
|
};
|
|
8923
|
-
var WistiaLogoComponent =
|
|
8969
|
+
var WistiaLogoComponent = import_styled_components58.default.svg`
|
|
8924
8970
|
height: ${({ height }) => `${height}px`};
|
|
8925
8971
|
|
|
8926
8972
|
/* ensure it will always fit on mobile */
|
|
@@ -8986,9 +9032,9 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
8986
9032
|
// src/components/Select/Select.tsx
|
|
8987
9033
|
var import_react_select = require("@radix-ui/react-select");
|
|
8988
9034
|
var import_react44 = require("react");
|
|
8989
|
-
var
|
|
9035
|
+
var import_styled_components59 = __toESM(require("styled-components"));
|
|
8990
9036
|
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
8991
|
-
var StyledTrigger = (0,
|
|
9037
|
+
var StyledTrigger = (0, import_styled_components59.default)(import_react_select.Trigger)`
|
|
8992
9038
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8993
9039
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
8994
9040
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -9029,7 +9075,7 @@ var StyledTrigger = (0, import_styled_components57.default)(import_react_select.
|
|
|
9029
9075
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
9030
9076
|
}
|
|
9031
9077
|
`;
|
|
9032
|
-
var StyledContent2 = (0,
|
|
9078
|
+
var StyledContent2 = (0, import_styled_components59.default)(import_react_select.Content)`
|
|
9033
9079
|
--wui-select-content-border: var(--wui-color-border);
|
|
9034
9080
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
9035
9081
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -9095,9 +9141,9 @@ Select.displayName = "Select";
|
|
|
9095
9141
|
// src/components/Select/SelectOption.tsx
|
|
9096
9142
|
var import_react_select2 = require("@radix-ui/react-select");
|
|
9097
9143
|
var import_react45 = require("react");
|
|
9098
|
-
var
|
|
9144
|
+
var import_styled_components60 = __toESM(require("styled-components"));
|
|
9099
9145
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
9100
|
-
var StyledItem = (0,
|
|
9146
|
+
var StyledItem = (0, import_styled_components60.default)(import_react_select2.Item)`
|
|
9101
9147
|
${variantStyleMap2.body3};
|
|
9102
9148
|
display: flex;
|
|
9103
9149
|
padding: var(--wui-select-option-padding);
|
|
@@ -9120,7 +9166,7 @@ var StyledItem = (0, import_styled_components58.default)(import_react_select2.It
|
|
|
9120
9166
|
background-color: transparent;
|
|
9121
9167
|
}
|
|
9122
9168
|
`;
|
|
9123
|
-
var StyledIconContainer =
|
|
9169
|
+
var StyledIconContainer = import_styled_components60.default.span`
|
|
9124
9170
|
width: 12px;
|
|
9125
9171
|
`;
|
|
9126
9172
|
var SelectOption = (0, import_react45.forwardRef)(
|
|
@@ -9148,9 +9194,9 @@ SelectOption.displayName = "Option";
|
|
|
9148
9194
|
|
|
9149
9195
|
// src/components/Select/SelectOptionGroup.tsx
|
|
9150
9196
|
var import_react_select3 = require("@radix-ui/react-select");
|
|
9151
|
-
var
|
|
9197
|
+
var import_styled_components61 = __toESM(require("styled-components"));
|
|
9152
9198
|
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
9153
|
-
var StyledLabel3 = (0,
|
|
9199
|
+
var StyledLabel3 = (0, import_styled_components61.default)(import_react_select3.Label)`
|
|
9154
9200
|
padding: var(--wui-select-option-padding);
|
|
9155
9201
|
`;
|
|
9156
9202
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
@@ -9168,10 +9214,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
|
9168
9214
|
};
|
|
9169
9215
|
|
|
9170
9216
|
// src/components/DataCards/DataCard.tsx
|
|
9171
|
-
var
|
|
9217
|
+
var import_styled_components62 = __toESM(require("styled-components"));
|
|
9172
9218
|
var import_type_guards34 = require("@wistia/type-guards");
|
|
9173
9219
|
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
9174
|
-
var StyledDataCard =
|
|
9220
|
+
var StyledDataCard = import_styled_components62.default.div`
|
|
9175
9221
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
9176
9222
|
display: grid;
|
|
9177
9223
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -9184,7 +9230,7 @@ var StyledDataCard = import_styled_components60.default.div`
|
|
|
9184
9230
|
border-radius: var(--wui-border-radius-02);
|
|
9185
9231
|
position: relative;
|
|
9186
9232
|
`;
|
|
9187
|
-
var shimmer =
|
|
9233
|
+
var shimmer = import_styled_components62.keyframes`
|
|
9188
9234
|
0% {
|
|
9189
9235
|
background-position: 200% 0;
|
|
9190
9236
|
}
|
|
@@ -9192,7 +9238,7 @@ var shimmer = import_styled_components60.keyframes`
|
|
|
9192
9238
|
background-position: -200% 0;
|
|
9193
9239
|
}
|
|
9194
9240
|
`;
|
|
9195
|
-
var LoadingBackground =
|
|
9241
|
+
var LoadingBackground = import_styled_components62.default.div`
|
|
9196
9242
|
background: linear-gradient(
|
|
9197
9243
|
90deg,
|
|
9198
9244
|
var(--wui-color-bg-surface-tertiary) 25%,
|
|
@@ -9203,27 +9249,27 @@ var LoadingBackground = import_styled_components60.default.div`
|
|
|
9203
9249
|
animation: ${shimmer} 1.5s infinite;
|
|
9204
9250
|
border-radius: var(--wui-border-radius-01);
|
|
9205
9251
|
`;
|
|
9206
|
-
var StyledLoadingLabel = (0,
|
|
9252
|
+
var StyledLoadingLabel = (0, import_styled_components62.default)(LoadingBackground)`
|
|
9207
9253
|
width: 80px;
|
|
9208
9254
|
height: var(--wui-typography-heading-6-line-height);
|
|
9209
9255
|
`;
|
|
9210
|
-
var StyledLoadingValue = (0,
|
|
9256
|
+
var StyledLoadingValue = (0, import_styled_components62.default)(LoadingBackground)`
|
|
9211
9257
|
width: 90%;
|
|
9212
9258
|
height: var(--wui-typography-heading-3-line-height);
|
|
9213
9259
|
`;
|
|
9214
|
-
var StyledLabel4 = (0,
|
|
9260
|
+
var StyledLabel4 = (0, import_styled_components62.default)(Heading)`
|
|
9215
9261
|
grid-area: label;
|
|
9216
9262
|
`;
|
|
9217
|
-
var StyledValue = (0,
|
|
9263
|
+
var StyledValue = (0, import_styled_components62.default)(Heading)`
|
|
9218
9264
|
grid-area: value;
|
|
9219
9265
|
`;
|
|
9220
|
-
var StyledSlot =
|
|
9266
|
+
var StyledSlot = import_styled_components62.default.div`
|
|
9221
9267
|
display: flex;
|
|
9222
9268
|
justify-content: flex-end;
|
|
9223
9269
|
grid-area: slot;
|
|
9224
9270
|
align-self: center;
|
|
9225
9271
|
`;
|
|
9226
|
-
var StyledDataCardTrendContainer =
|
|
9272
|
+
var StyledDataCardTrendContainer = import_styled_components62.default.div`
|
|
9227
9273
|
position: absolute;
|
|
9228
9274
|
bottom: var(--wui-space-01);
|
|
9229
9275
|
right: var(--wui-space-01);
|
|
@@ -9266,19 +9312,19 @@ var DataCard = ({
|
|
|
9266
9312
|
DataCard.displayName = "DataCard";
|
|
9267
9313
|
|
|
9268
9314
|
// src/components/DataCards/DataCards.tsx
|
|
9269
|
-
var
|
|
9270
|
-
var import_type_guards35 = require("@wistia/type-guards");
|
|
9315
|
+
var import_styled_components63 = __toESM(require("styled-components"));
|
|
9271
9316
|
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
9272
|
-
var StyledDataCards = (0,
|
|
9317
|
+
var StyledDataCards = (0, import_styled_components63.default)(Box)`
|
|
9273
9318
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9319
|
+
margin-top: 0; /* Remove default <dl> style */
|
|
9274
9320
|
> * {
|
|
9275
9321
|
min-width: 120px;
|
|
9276
|
-
max-width: ${({ $cardMaxWidth }) =>
|
|
9322
|
+
max-width: ${({ $cardMaxWidth }) => $cardMaxWidth};
|
|
9277
9323
|
}
|
|
9278
9324
|
`;
|
|
9279
9325
|
var DataCards = ({
|
|
9280
9326
|
children,
|
|
9281
|
-
cardMaxWidth,
|
|
9327
|
+
cardMaxWidth = "none",
|
|
9282
9328
|
colorScheme = "inherit",
|
|
9283
9329
|
...props
|
|
9284
9330
|
}) => {
|
|
@@ -9300,9 +9346,9 @@ var DataCards = ({
|
|
|
9300
9346
|
DataCards.displayName = "DataCards";
|
|
9301
9347
|
|
|
9302
9348
|
// src/components/DataCards/DataCardTrend.tsx
|
|
9303
|
-
var
|
|
9349
|
+
var import_styled_components64 = __toESM(require("styled-components"));
|
|
9304
9350
|
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
9305
|
-
var StyledDataCardTrend =
|
|
9351
|
+
var StyledDataCardTrend = import_styled_components64.default.div`
|
|
9306
9352
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
9307
9353
|
background: var(--wui-color-bg-app);
|
|
9308
9354
|
border-radius: var(--wui-border-radius-rounded);
|