@wistia/ui 0.4.12 → 0.4.13-beta.0274477c.8267fac
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 +418 -203
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +73 -1
- package/dist/index.d.ts +73 -1
- package/dist/index.mjs +297 -85
- 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.13-beta.0274477c.8267fac
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -52,6 +52,9 @@ __export(index_exports, {
|
|
|
52
52
|
CheckboxGroup: () => CheckboxGroup,
|
|
53
53
|
CheckboxMenuItem: () => CheckboxMenuItem,
|
|
54
54
|
ColorSchemeWrapper: () => ColorSchemeWrapper,
|
|
55
|
+
DataCard: () => DataCard,
|
|
56
|
+
DataCardTrend: () => DataCardTrend,
|
|
57
|
+
DataCards: () => DataCards,
|
|
55
58
|
Divider: () => Divider,
|
|
56
59
|
Ellipsis: () => Ellipsis,
|
|
57
60
|
Form: () => Form,
|
|
@@ -108,7 +111,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
108
111
|
var import_react_tooltip = require("@radix-ui/react-tooltip");
|
|
109
112
|
|
|
110
113
|
// src/css/GlobalStyle.tsx
|
|
111
|
-
var
|
|
114
|
+
var import_styled_components11 = require("styled-components");
|
|
112
115
|
|
|
113
116
|
// src/css/resetCss.tsx
|
|
114
117
|
var import_styled_components = require("styled-components");
|
|
@@ -245,7 +248,7 @@ var globalStyleAdjustmentsCss = import_styled_components2.css`
|
|
|
245
248
|
`;
|
|
246
249
|
|
|
247
250
|
// src/css/designTokens/index.tsx
|
|
248
|
-
var
|
|
251
|
+
var import_styled_components10 = require("styled-components");
|
|
249
252
|
|
|
250
253
|
// src/css/designTokens/colorGlobal.tsx
|
|
251
254
|
var import_styled_components3 = require("styled-components");
|
|
@@ -1382,8 +1385,38 @@ var zIndexTokens = import_styled_components8.css`
|
|
|
1382
1385
|
--wui-zindex-menu: 500;
|
|
1383
1386
|
`;
|
|
1384
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
|
+
|
|
1385
1418
|
// src/css/designTokens/index.tsx
|
|
1386
|
-
var colorTokens =
|
|
1419
|
+
var colorTokens = import_styled_components10.css`
|
|
1387
1420
|
${lightGlobalTokens}
|
|
1388
1421
|
/* Dark mode is disabled until we have a more robust plan for supporting it */
|
|
1389
1422
|
|
|
@@ -1392,18 +1425,19 @@ var colorTokens = import_styled_components9.css`
|
|
|
1392
1425
|
} */
|
|
1393
1426
|
${colorAliasTokens}
|
|
1394
1427
|
`;
|
|
1395
|
-
var designTokens =
|
|
1428
|
+
var designTokens = import_styled_components10.css`
|
|
1396
1429
|
:root {
|
|
1397
1430
|
${colorTokens}
|
|
1398
1431
|
${spacingTokens}
|
|
1399
1432
|
${borderRadiusTokens}
|
|
1400
1433
|
${typographyTokens}
|
|
1401
1434
|
${zIndexTokens}
|
|
1435
|
+
${motionTokens}
|
|
1402
1436
|
}
|
|
1403
1437
|
`;
|
|
1404
1438
|
|
|
1405
1439
|
// src/css/GlobalStyle.tsx
|
|
1406
|
-
var GlobalStyle =
|
|
1440
|
+
var GlobalStyle = import_styled_components11.createGlobalStyle`
|
|
1407
1441
|
${resetCss}
|
|
1408
1442
|
${globalStyleAdjustmentsCss}
|
|
1409
1443
|
${designTokens}
|
|
@@ -1729,14 +1763,14 @@ var import_sonner2 = require("sonner");
|
|
|
1729
1763
|
|
|
1730
1764
|
// src/private/components/Toast/Toast.tsx
|
|
1731
1765
|
var import_react8 = require("react");
|
|
1732
|
-
var
|
|
1766
|
+
var import_styled_components14 = __toESM(require("styled-components"));
|
|
1733
1767
|
var import_type_guards7 = require("@wistia/type-guards");
|
|
1734
1768
|
|
|
1735
1769
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
1736
1770
|
var import_type_guards6 = require("@wistia/type-guards");
|
|
1737
|
-
var
|
|
1771
|
+
var import_styled_components12 = __toESM(require("styled-components"));
|
|
1738
1772
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1739
|
-
var ellipsisStyle =
|
|
1773
|
+
var ellipsisStyle = import_styled_components12.css`
|
|
1740
1774
|
overflow: hidden;
|
|
1741
1775
|
text-overflow: ellipsis;
|
|
1742
1776
|
white-space: nowrap;
|
|
@@ -1759,14 +1793,14 @@ var ellipsisStyle = import_styled_components11.css`
|
|
|
1759
1793
|
}
|
|
1760
1794
|
}
|
|
1761
1795
|
`;
|
|
1762
|
-
var ellipsisFlexParentStyle =
|
|
1796
|
+
var ellipsisFlexParentStyle = import_styled_components12.css`
|
|
1763
1797
|
min-width: 0;
|
|
1764
1798
|
`;
|
|
1765
|
-
var EllipsisComponent =
|
|
1799
|
+
var EllipsisComponent = import_styled_components12.default.div`
|
|
1766
1800
|
${ellipsisStyle};
|
|
1767
1801
|
${({ $lines }) => {
|
|
1768
1802
|
if ((0, import_type_guards6.isNotNil)($lines)) {
|
|
1769
|
-
return
|
|
1803
|
+
return import_styled_components12.css`
|
|
1770
1804
|
-webkit-box-orient: vertical;
|
|
1771
1805
|
-webkit-line-clamp: ${$lines};
|
|
1772
1806
|
display: -webkit-box;
|
|
@@ -1787,7 +1821,7 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, impor
|
|
|
1787
1821
|
Ellipsis.displayName = "Ellipsis";
|
|
1788
1822
|
|
|
1789
1823
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
1790
|
-
var
|
|
1824
|
+
var import_styled_components13 = require("styled-components");
|
|
1791
1825
|
var colorSchemeSchema = [
|
|
1792
1826
|
{ token: "bg-surface", step: "surface" },
|
|
1793
1827
|
{ token: "bg-surface-hover", step: "3" },
|
|
@@ -1814,7 +1848,7 @@ var colorSchemeSchema = [
|
|
|
1814
1848
|
{ token: "icon-on-fill", step: "contrast" },
|
|
1815
1849
|
{ token: "focus-ring", step: "9" }
|
|
1816
1850
|
];
|
|
1817
|
-
var defaultScheme =
|
|
1851
|
+
var defaultScheme = import_styled_components13.css`
|
|
1818
1852
|
--wui-color-bg-surface: var(--wui-gray-surface);
|
|
1819
1853
|
--wui-color-bg-surface-hover: var(--wui-gray-3);
|
|
1820
1854
|
--wui-color-bg-surface-active: var(--wui-gray-4);
|
|
@@ -1840,7 +1874,7 @@ var defaultScheme = import_styled_components12.css`
|
|
|
1840
1874
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
1841
1875
|
--wui-color-focus-ring: var(--wui-blue-9);
|
|
1842
1876
|
`;
|
|
1843
|
-
var navScheme =
|
|
1877
|
+
var navScheme = import_styled_components13.css`
|
|
1844
1878
|
--wui-color-bg-fill-active: var(--wui-blue-5);
|
|
1845
1879
|
--wui-color-bg-fill-hover: var(--wui-blue-4);
|
|
1846
1880
|
--wui-color-bg-fill: var(--wui-blue-1);
|
|
@@ -1891,7 +1925,7 @@ var getColorScheme = (colorScheme) => {
|
|
|
1891
1925
|
if (colorScheme === "default") {
|
|
1892
1926
|
return defaultScheme;
|
|
1893
1927
|
}
|
|
1894
|
-
return
|
|
1928
|
+
return import_styled_components13.css`
|
|
1895
1929
|
${colorSchemeSchema.map(({ token, step }) => {
|
|
1896
1930
|
return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
|
|
1897
1931
|
}).join("")}
|
|
@@ -1900,12 +1934,12 @@ var getColorScheme = (colorScheme) => {
|
|
|
1900
1934
|
|
|
1901
1935
|
// src/private/components/Toast/Toast.tsx
|
|
1902
1936
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1903
|
-
var Message = (0,
|
|
1937
|
+
var Message = (0, import_styled_components14.default)(Ellipsis)`
|
|
1904
1938
|
line-height: var(--wui-typography-label-3-line-height);
|
|
1905
1939
|
font-size: var(--wui-typography-label-3-size);
|
|
1906
1940
|
font-weight: var(--wui-typography-label-3-weight);
|
|
1907
1941
|
`;
|
|
1908
|
-
var MessageWrapper =
|
|
1942
|
+
var MessageWrapper = import_styled_components14.default.div`
|
|
1909
1943
|
display: flex;
|
|
1910
1944
|
flex-grow: 1;
|
|
1911
1945
|
flex-shrink: 1;
|
|
@@ -1918,13 +1952,13 @@ var MessageWrapper = import_styled_components13.default.div`
|
|
|
1918
1952
|
margin-right: var(--wui-space-02); /* space between icon & message */
|
|
1919
1953
|
}
|
|
1920
1954
|
`;
|
|
1921
|
-
var ActionWrapper =
|
|
1955
|
+
var ActionWrapper = import_styled_components14.default.div`
|
|
1922
1956
|
flex-grow: 0;
|
|
1923
1957
|
flex-shrink: 0;
|
|
1924
1958
|
flex-basis: auto;
|
|
1925
1959
|
margin-right: var(--wui-space-03);
|
|
1926
1960
|
`;
|
|
1927
|
-
var StyledToast =
|
|
1961
|
+
var StyledToast = import_styled_components14.default.div`
|
|
1928
1962
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
1929
1963
|
display: flex;
|
|
1930
1964
|
align-items: center;
|
|
@@ -2009,16 +2043,16 @@ var useToast = () => {
|
|
|
2009
2043
|
|
|
2010
2044
|
// src/components/ActionButton/ActionButton.tsx
|
|
2011
2045
|
var import_react13 = require("react");
|
|
2012
|
-
var
|
|
2046
|
+
var import_styled_components20 = __toESM(require("styled-components"));
|
|
2013
2047
|
|
|
2014
2048
|
// src/components/Button/Button.tsx
|
|
2015
2049
|
var import_react12 = require("react");
|
|
2016
|
-
var
|
|
2050
|
+
var import_styled_components19 = __toESM(require("styled-components"));
|
|
2017
2051
|
var import_type_guards11 = require("@wistia/type-guards");
|
|
2018
2052
|
|
|
2019
2053
|
// src/css/buttonResetCss.tsx
|
|
2020
|
-
var
|
|
2021
|
-
var buttonResetCss =
|
|
2054
|
+
var import_styled_components15 = require("styled-components");
|
|
2055
|
+
var buttonResetCss = import_styled_components15.css`
|
|
2022
2056
|
align-items: center;
|
|
2023
2057
|
background-color: transparent;
|
|
2024
2058
|
background-image: none;
|
|
@@ -2063,8 +2097,8 @@ var buttonResetCss = import_styled_components14.css`
|
|
|
2063
2097
|
`;
|
|
2064
2098
|
|
|
2065
2099
|
// src/components/Button/buttonStyles.tsx
|
|
2066
|
-
var
|
|
2067
|
-
var buttonSmallStyles =
|
|
2100
|
+
var import_styled_components16 = require("styled-components");
|
|
2101
|
+
var buttonSmallStyles = import_styled_components16.css`
|
|
2068
2102
|
--button-padding-vertical: var(--wui-space-01);
|
|
2069
2103
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2070
2104
|
--button-label-padding-horizontal: var(--wui-space-01);
|
|
@@ -2075,7 +2109,7 @@ var buttonSmallStyles = import_styled_components15.css`
|
|
|
2075
2109
|
--button-icon-size: 12px;
|
|
2076
2110
|
--button-label-gap: 4px;
|
|
2077
2111
|
`;
|
|
2078
|
-
var buttonMediumStyles =
|
|
2112
|
+
var buttonMediumStyles = import_styled_components16.css`
|
|
2079
2113
|
--button-padding-vertical: var(--wui-space-02);
|
|
2080
2114
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2081
2115
|
--button-label-padding-horizontal: 6px;
|
|
@@ -2086,7 +2120,7 @@ var buttonMediumStyles = import_styled_components15.css`
|
|
|
2086
2120
|
--button-icon-size: 16px;
|
|
2087
2121
|
--button-label-gap: 6px;
|
|
2088
2122
|
`;
|
|
2089
|
-
var buttonLargeStyles =
|
|
2123
|
+
var buttonLargeStyles = import_styled_components16.css`
|
|
2090
2124
|
--button-padding-vertical: var(--wui-space-02);
|
|
2091
2125
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2092
2126
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2097,7 +2131,7 @@ var buttonLargeStyles = import_styled_components15.css`
|
|
|
2097
2131
|
--button-icon-size: 24px;
|
|
2098
2132
|
--button-label-gap: 8px;
|
|
2099
2133
|
`;
|
|
2100
|
-
var buttonExtraLargeStyles =
|
|
2134
|
+
var buttonExtraLargeStyles = import_styled_components16.css`
|
|
2101
2135
|
--button-padding-vertical: var(--wui-space-03);
|
|
2102
2136
|
--button-padding-horizontal: var(--wui-space-03);
|
|
2103
2137
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2108,34 +2142,34 @@ var buttonExtraLargeStyles = import_styled_components15.css`
|
|
|
2108
2142
|
--button-icon-size: 24px;
|
|
2109
2143
|
--button-label-gap: 8px;
|
|
2110
2144
|
`;
|
|
2111
|
-
var ghostButtonVariant =
|
|
2145
|
+
var ghostButtonVariant = import_styled_components16.css`
|
|
2112
2146
|
--button-color-bg: transparent;
|
|
2113
2147
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2114
2148
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2115
2149
|
--button-color-text: var(--wui-color-text-button);
|
|
2116
2150
|
--button-color-icon: var(--wui-color-icon);
|
|
2117
2151
|
`;
|
|
2118
|
-
var outlineButtonVariant =
|
|
2152
|
+
var outlineButtonVariant = import_styled_components16.css`
|
|
2119
2153
|
${ghostButtonVariant};
|
|
2120
2154
|
--button-color-border: var(--wui-color-border);
|
|
2121
2155
|
|
|
2122
2156
|
box-shadow: 0 0 0 2px var(--button-color-border) inset;
|
|
2123
2157
|
`;
|
|
2124
|
-
var softButtonVariant =
|
|
2158
|
+
var softButtonVariant = import_styled_components16.css`
|
|
2125
2159
|
--button-color-bg: var(--wui-color-bg-surface-secondary);
|
|
2126
2160
|
--button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
2127
2161
|
--button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
|
|
2128
2162
|
--button-color-text: var(--wui-color-text-button);
|
|
2129
2163
|
--button-color-icon: var(--wui-color-icon);
|
|
2130
2164
|
`;
|
|
2131
|
-
var solidButtonVariant =
|
|
2165
|
+
var solidButtonVariant = import_styled_components16.css`
|
|
2132
2166
|
--button-color-bg: var(--wui-color-bg-fill);
|
|
2133
2167
|
--button-color-bg-hover: var(--wui-color-bg-fill-hover);
|
|
2134
2168
|
--button-color-bg-active: var(--wui-color-bg-fill-active);
|
|
2135
2169
|
--button-color-text: var(--wui-color-text-on-fill);
|
|
2136
2170
|
--button-color-icon: var(--wui-color-icon-on-fill);
|
|
2137
2171
|
`;
|
|
2138
|
-
var disabledButtonVariant =
|
|
2172
|
+
var disabledButtonVariant = import_styled_components16.css`
|
|
2139
2173
|
--button-color-bg: var(--wui-color-bg-surface-disabled);
|
|
2140
2174
|
--button-color-bg-hover: var(--wui-color-bg-surface-disabled);
|
|
2141
2175
|
--button-color-bg-active: var(--wui-color-bg-surface-disabled);
|
|
@@ -2143,7 +2177,7 @@ var disabledButtonVariant = import_styled_components15.css`
|
|
|
2143
2177
|
--button-color-icon: var(--wui-color-icon-disabled);
|
|
2144
2178
|
--button-color-border: var(--wui-color-border-disabled);
|
|
2145
2179
|
`;
|
|
2146
|
-
var pressedButtonVariant =
|
|
2180
|
+
var pressedButtonVariant = import_styled_components16.css`
|
|
2147
2181
|
--button-color-bg: var(--wui-color-bg-surface-selected);
|
|
2148
2182
|
--button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
|
|
2149
2183
|
--button-color-bg-active: var(--wui-color-bg-surface-selected-active);
|
|
@@ -2151,7 +2185,7 @@ var pressedButtonVariant = import_styled_components15.css`
|
|
|
2151
2185
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
2152
2186
|
--button-color-border: var(--wui-color-border-selected);
|
|
2153
2187
|
`;
|
|
2154
|
-
var buttonBaseStyles =
|
|
2188
|
+
var buttonBaseStyles = import_styled_components16.css`
|
|
2155
2189
|
border-radius: var(--wui-border-radius-rounded);
|
|
2156
2190
|
font-family: var(--button-typography-family);
|
|
2157
2191
|
font-size: var(--button-typography-size);
|
|
@@ -2160,6 +2194,7 @@ var buttonBaseStyles = import_styled_components15.css`
|
|
|
2160
2194
|
padding: var(--button-padding-vertical) var(--button-padding-horizontal);
|
|
2161
2195
|
background: var(--button-color-bg);
|
|
2162
2196
|
color: var(--button-color-text);
|
|
2197
|
+
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
2163
2198
|
|
|
2164
2199
|
/* This ensure that the icon is the corect color when the style is solid or the button is disabled */
|
|
2165
2200
|
&& {
|
|
@@ -2218,7 +2253,7 @@ var buttonSizeStyles = {
|
|
|
2218
2253
|
|
|
2219
2254
|
// src/components/Icon/Icon.tsx
|
|
2220
2255
|
var import_type_guards9 = require("@wistia/type-guards");
|
|
2221
|
-
var
|
|
2256
|
+
var import_styled_components17 = __toESM(require("styled-components"));
|
|
2222
2257
|
|
|
2223
2258
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
2224
2259
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -5403,7 +5438,7 @@ var iconSizeMap = {
|
|
|
5403
5438
|
xl: "32",
|
|
5404
5439
|
xxl: "48"
|
|
5405
5440
|
};
|
|
5406
|
-
var StyledIcon =
|
|
5441
|
+
var StyledIcon = import_styled_components17.default.svg`
|
|
5407
5442
|
${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
|
|
5408
5443
|
`;
|
|
5409
5444
|
var Icon = ({
|
|
@@ -5454,7 +5489,7 @@ Icon.displayName = "Icon";
|
|
|
5454
5489
|
// src/components/Link/Link.tsx
|
|
5455
5490
|
var import_react11 = require("react");
|
|
5456
5491
|
var import_type_guards10 = require("@wistia/type-guards");
|
|
5457
|
-
var
|
|
5492
|
+
var import_styled_components18 = __toESM(require("styled-components"));
|
|
5458
5493
|
var import_react_router_dom = require("react-router-dom");
|
|
5459
5494
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
5460
5495
|
var generateHref = (href, type, disabled) => {
|
|
@@ -5472,7 +5507,7 @@ var generateHref = (href, type, disabled) => {
|
|
|
5472
5507
|
};
|
|
5473
5508
|
var isButton = (props) => (0, import_type_guards10.isUndefined)(props.href);
|
|
5474
5509
|
var isLink = (props) => (0, import_type_guards10.isNotUndefined)(props.href);
|
|
5475
|
-
var StyledLink =
|
|
5510
|
+
var StyledLink = import_styled_components18.default.a`
|
|
5476
5511
|
--link-icon-size: 14px;
|
|
5477
5512
|
|
|
5478
5513
|
${({ href }) => (0, import_type_guards10.isNil)(href) && buttonResetCss};
|
|
@@ -5583,7 +5618,7 @@ Link.displayName = "Link";
|
|
|
5583
5618
|
// src/components/Button/Button.tsx
|
|
5584
5619
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
5585
5620
|
var isLink2 = (props) => (0, import_type_guards11.isNotUndefined)(props.href);
|
|
5586
|
-
var StyledButton =
|
|
5621
|
+
var StyledButton = import_styled_components19.default.button`
|
|
5587
5622
|
${buttonResetCss}
|
|
5588
5623
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
5589
5624
|
${({ $size }) => buttonSizeStyles[$size]}
|
|
@@ -5593,7 +5628,7 @@ var StyledButton = import_styled_components18.default.button`
|
|
|
5593
5628
|
position: relative;
|
|
5594
5629
|
text-align: center;
|
|
5595
5630
|
`;
|
|
5596
|
-
var StyledButtonContent =
|
|
5631
|
+
var StyledButtonContent = import_styled_components19.default.div`
|
|
5597
5632
|
align-items: center;
|
|
5598
5633
|
display: inline-flex;
|
|
5599
5634
|
flex-grow: 1;
|
|
@@ -5605,10 +5640,10 @@ var StyledButtonContent = import_styled_components18.default.div`
|
|
|
5605
5640
|
${({ $hasLeftIcon }) => $hasLeftIcon && "padding-left: 0;"}
|
|
5606
5641
|
${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
|
|
5607
5642
|
`;
|
|
5608
|
-
var StyledButtonContentLabel =
|
|
5643
|
+
var StyledButtonContentLabel = import_styled_components19.default.span`
|
|
5609
5644
|
flex: 1;
|
|
5610
5645
|
`;
|
|
5611
|
-
var StyledButtonLoading =
|
|
5646
|
+
var StyledButtonLoading = import_styled_components19.default.div`
|
|
5612
5647
|
position: absolute;
|
|
5613
5648
|
display: flex;
|
|
5614
5649
|
`;
|
|
@@ -5721,7 +5756,7 @@ Button.displayName = "Button";
|
|
|
5721
5756
|
|
|
5722
5757
|
// src/components/ActionButton/ActionButton.tsx
|
|
5723
5758
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
5724
|
-
var StyledActionButton = (0,
|
|
5759
|
+
var StyledActionButton = (0, import_styled_components20.default)(Button)`
|
|
5725
5760
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
5726
5761
|
display: grid;
|
|
5727
5762
|
grid-template-columns: 24px 1fr;
|
|
@@ -5734,6 +5769,7 @@ var StyledActionButton = (0, import_styled_components19.default)(Button)`
|
|
|
5734
5769
|
grid-row-gap: var(--wui-space-02);
|
|
5735
5770
|
border-radius: var(--wui-border-radius-03);
|
|
5736
5771
|
flex: 0 0 auto;
|
|
5772
|
+
transition: background-color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
5737
5773
|
|
|
5738
5774
|
&:focus {
|
|
5739
5775
|
outline: none;
|
|
@@ -5761,31 +5797,30 @@ var StyledActionButton = (0, import_styled_components19.default)(Button)`
|
|
|
5761
5797
|
}
|
|
5762
5798
|
}
|
|
5763
5799
|
`;
|
|
5764
|
-
var StyledMainIcon =
|
|
5800
|
+
var StyledMainIcon = import_styled_components20.default.div`
|
|
5765
5801
|
grid-column: 1;
|
|
5766
5802
|
grid-row: 1;
|
|
5767
5803
|
width: 24px;
|
|
5768
5804
|
height: 24px;
|
|
5805
|
+
transition: color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
5769
5806
|
|
|
5770
5807
|
svg {
|
|
5771
5808
|
width: 24px;
|
|
5772
5809
|
height: 24px;
|
|
5773
5810
|
}
|
|
5774
5811
|
`;
|
|
5775
|
-
var StyledSecondaryIcon =
|
|
5812
|
+
var StyledSecondaryIcon = import_styled_components20.default.div`
|
|
5776
5813
|
grid-column: 2;
|
|
5777
5814
|
grid-row: 1;
|
|
5778
5815
|
width: 100%;
|
|
5779
5816
|
display: flex;
|
|
5780
5817
|
justify-content: flex-end;
|
|
5781
|
-
transition: all
|
|
5818
|
+
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
|
|
5782
5819
|
|
|
5783
|
-
${({ $hideUntilHover }) => $hideUntilHover &&
|
|
5820
|
+
${({ $hideUntilHover }) => $hideUntilHover && import_styled_components20.css`
|
|
5821
|
+
will-change: transform;
|
|
5784
5822
|
opacity: 0;
|
|
5785
|
-
|
|
5786
|
-
@media not (prefers-reduced-motion) {
|
|
5787
|
-
transform: translateX(-16px);
|
|
5788
|
-
}
|
|
5823
|
+
transform: translateX(-16px);
|
|
5789
5824
|
${StyledActionButton}:hover:not([aria-disabled="true"]) &,
|
|
5790
5825
|
${StyledActionButton}:focus-visible:not([aria-disabled="true"]) & {
|
|
5791
5826
|
transform: translateX(0);
|
|
@@ -5798,7 +5833,7 @@ var StyledSecondaryIcon = import_styled_components19.default.div`
|
|
|
5798
5833
|
height: 24px;
|
|
5799
5834
|
}
|
|
5800
5835
|
`;
|
|
5801
|
-
var StyledLabel =
|
|
5836
|
+
var StyledLabel = import_styled_components20.default.span`
|
|
5802
5837
|
font-family: var(--wui-typography-heading-4-family);
|
|
5803
5838
|
font-size: var(--wui-typography-heading-4-size);
|
|
5804
5839
|
font-weight: var(--wui-typography-heading-4-weight);
|
|
@@ -5854,10 +5889,10 @@ ActionButton.displayName = "ActionButton";
|
|
|
5854
5889
|
// src/components/Avatar/Avatar.tsx
|
|
5855
5890
|
var import_react14 = require("react");
|
|
5856
5891
|
var import_type_guards13 = require("@wistia/type-guards");
|
|
5857
|
-
var
|
|
5892
|
+
var import_styled_components22 = __toESM(require("styled-components"));
|
|
5858
5893
|
|
|
5859
5894
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
5860
|
-
var
|
|
5895
|
+
var import_styled_components21 = __toESM(require("styled-components"));
|
|
5861
5896
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
5862
5897
|
var colorSchemeOptions = [
|
|
5863
5898
|
"inherit",
|
|
@@ -5876,7 +5911,7 @@ var colorSchemeOptions = [
|
|
|
5876
5911
|
"vendor-marketo",
|
|
5877
5912
|
"vendor-pardot"
|
|
5878
5913
|
];
|
|
5879
|
-
var StyledColorSchemeWrapper =
|
|
5914
|
+
var StyledColorSchemeWrapper = import_styled_components21.default.div`
|
|
5880
5915
|
${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
|
|
5881
5916
|
`;
|
|
5882
5917
|
var ColorSchemeWrapper = ({
|
|
@@ -5911,7 +5946,7 @@ var formatNameForDisplay = (name) => {
|
|
|
5911
5946
|
|
|
5912
5947
|
// src/components/Avatar/Avatar.tsx
|
|
5913
5948
|
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
5914
|
-
var AvatarImage =
|
|
5949
|
+
var AvatarImage = import_styled_components22.default.img`
|
|
5915
5950
|
align-items: center;
|
|
5916
5951
|
background-color: white;
|
|
5917
5952
|
border-radius: 50%;
|
|
@@ -5923,6 +5958,7 @@ var AvatarImage = import_styled_components21.default.img`
|
|
|
5923
5958
|
pointer-events: none;
|
|
5924
5959
|
user-select: none;
|
|
5925
5960
|
width: ${({ $heightAndWidth }) => $heightAndWidth}px;
|
|
5961
|
+
transition: box-shadow var(--wui-duration-01) var(--wui-motion-ease);
|
|
5926
5962
|
|
|
5927
5963
|
a:hover & {
|
|
5928
5964
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 25%);
|
|
@@ -5938,7 +5974,7 @@ var avatarSizeMap = {
|
|
|
5938
5974
|
lg: 32
|
|
5939
5975
|
};
|
|
5940
5976
|
var fontSizeScaleMultiplier = 0.55;
|
|
5941
|
-
var InitialsContainer =
|
|
5977
|
+
var InitialsContainer = import_styled_components22.default.div`
|
|
5942
5978
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
5943
5979
|
align-items: center;
|
|
5944
5980
|
background-color: var(--wui-color-bg-fill);
|
|
@@ -5960,7 +5996,7 @@ var InitialsContainer = import_styled_components21.default.div`
|
|
|
5960
5996
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
|
|
5961
5997
|
}
|
|
5962
5998
|
`;
|
|
5963
|
-
var AvatarWrapper =
|
|
5999
|
+
var AvatarWrapper = import_styled_components22.default.div`
|
|
5964
6000
|
max-height: ${({ $maxHeight }) => $maxHeight}px;
|
|
5965
6001
|
`;
|
|
5966
6002
|
var chooseColorScheme = (name) => {
|
|
@@ -6027,10 +6063,10 @@ Avatar.displayName = "Avatar";
|
|
|
6027
6063
|
|
|
6028
6064
|
// src/components/Badge/Badge.tsx
|
|
6029
6065
|
var import_react15 = require("react");
|
|
6030
|
-
var
|
|
6066
|
+
var import_styled_components23 = __toESM(require("styled-components"));
|
|
6031
6067
|
var import_type_guards14 = require("@wistia/type-guards");
|
|
6032
6068
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
6033
|
-
var StyledBadge =
|
|
6069
|
+
var StyledBadge = import_styled_components23.default.div`
|
|
6034
6070
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6035
6071
|
align-items: center;
|
|
6036
6072
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -6072,7 +6108,7 @@ Badge.displayName = "Badge";
|
|
|
6072
6108
|
|
|
6073
6109
|
// src/components/Box/Box.tsx
|
|
6074
6110
|
var import_react16 = require("react");
|
|
6075
|
-
var
|
|
6111
|
+
var import_styled_components24 = __toESM(require("styled-components"));
|
|
6076
6112
|
var import_type_guards15 = require("@wistia/type-guards");
|
|
6077
6113
|
|
|
6078
6114
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
@@ -6124,7 +6160,7 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
6124
6160
|
}
|
|
6125
6161
|
return void 0;
|
|
6126
6162
|
};
|
|
6127
|
-
var StyledBoxComponent =
|
|
6163
|
+
var StyledBoxComponent = import_styled_components24.default.div`
|
|
6128
6164
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
6129
6165
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
6130
6166
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
@@ -6211,9 +6247,9 @@ var Box = makePolymorphic(BoxComponent);
|
|
|
6211
6247
|
|
|
6212
6248
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
6213
6249
|
var import_react17 = require("react");
|
|
6214
|
-
var
|
|
6250
|
+
var import_styled_components25 = __toESM(require("styled-components"));
|
|
6215
6251
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
6216
|
-
var StyledBreadcrumbs =
|
|
6252
|
+
var StyledBreadcrumbs = import_styled_components25.default.nav`
|
|
6217
6253
|
display: flex;
|
|
6218
6254
|
align-items: center;
|
|
6219
6255
|
gap: var(--wui-space-01);
|
|
@@ -6258,9 +6294,9 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
6258
6294
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
6259
6295
|
|
|
6260
6296
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
6261
|
-
var
|
|
6297
|
+
var import_styled_components26 = __toESM(require("styled-components"));
|
|
6262
6298
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6263
|
-
var BreadcrumbContent =
|
|
6299
|
+
var BreadcrumbContent = import_styled_components26.default.span`
|
|
6264
6300
|
overflow: hidden;
|
|
6265
6301
|
white-space: nowrap;
|
|
6266
6302
|
display: block;
|
|
@@ -6292,7 +6328,7 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
6292
6328
|
};
|
|
6293
6329
|
|
|
6294
6330
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
6295
|
-
var
|
|
6331
|
+
var import_styled_components27 = __toESM(require("styled-components"));
|
|
6296
6332
|
var import_type_guards16 = require("@wistia/type-guards");
|
|
6297
6333
|
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
6298
6334
|
var getAlignment = (align) => {
|
|
@@ -6307,7 +6343,7 @@ var getAlignment = (align) => {
|
|
|
6307
6343
|
}
|
|
6308
6344
|
return "flex-start";
|
|
6309
6345
|
};
|
|
6310
|
-
var ButtonGroupComponent =
|
|
6346
|
+
var ButtonGroupComponent = import_styled_components27.default.div`
|
|
6311
6347
|
display: flex;
|
|
6312
6348
|
|
|
6313
6349
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
@@ -6349,9 +6385,9 @@ var ButtonGroup = ({
|
|
|
6349
6385
|
ButtonGroup.displayName = "ButtonGroup";
|
|
6350
6386
|
|
|
6351
6387
|
// src/components/Card/Card.tsx
|
|
6352
|
-
var
|
|
6388
|
+
var import_styled_components28 = __toESM(require("styled-components"));
|
|
6353
6389
|
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
6354
|
-
var StyledCard = (0,
|
|
6390
|
+
var StyledCard = (0, import_styled_components28.default)(Box)`
|
|
6355
6391
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6356
6392
|
box-sizing: border-box;
|
|
6357
6393
|
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
@@ -6402,53 +6438,53 @@ Card.displayName = "Card";
|
|
|
6402
6438
|
// src/components/Checkbox/Checkbox.tsx
|
|
6403
6439
|
var import_react19 = require("react");
|
|
6404
6440
|
var import_react_checkbox = require("@radix-ui/react-checkbox");
|
|
6405
|
-
var
|
|
6441
|
+
var import_styled_components32 = __toESM(require("styled-components"));
|
|
6406
6442
|
var import_type_guards18 = require("@wistia/type-guards");
|
|
6407
6443
|
|
|
6408
6444
|
// src/components/Label/Label.tsx
|
|
6409
|
-
var
|
|
6445
|
+
var import_styled_components30 = __toESM(require("styled-components"));
|
|
6410
6446
|
|
|
6411
6447
|
// src/components/Heading/Heading.tsx
|
|
6412
6448
|
var import_react18 = require("react");
|
|
6413
|
-
var
|
|
6449
|
+
var import_styled_components29 = __toESM(require("styled-components"));
|
|
6414
6450
|
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
6415
|
-
var heroStyle =
|
|
6451
|
+
var heroStyle = import_styled_components29.css`
|
|
6416
6452
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
6417
6453
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
6418
6454
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
6419
6455
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
6420
6456
|
`;
|
|
6421
|
-
var heading1TextStyle =
|
|
6457
|
+
var heading1TextStyle = import_styled_components29.css`
|
|
6422
6458
|
--font-family: var(--wui-typography-heading-1-family);
|
|
6423
6459
|
--font-size: var(--wui-typography-heading-1-size);
|
|
6424
6460
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
6425
6461
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
6426
6462
|
`;
|
|
6427
|
-
var heading2TextStyle =
|
|
6463
|
+
var heading2TextStyle = import_styled_components29.css`
|
|
6428
6464
|
--font-family: var(--wui-typography-heading-2-family);
|
|
6429
6465
|
--font-size: var(--wui-typography-heading-2-size);
|
|
6430
6466
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
6431
6467
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
6432
6468
|
`;
|
|
6433
|
-
var heading3TextStyle =
|
|
6469
|
+
var heading3TextStyle = import_styled_components29.css`
|
|
6434
6470
|
--font-family: var(--wui-typography-heading-3-family);
|
|
6435
6471
|
--font-size: var(--wui-typography-heading-3-size);
|
|
6436
6472
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
6437
6473
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
6438
6474
|
`;
|
|
6439
|
-
var heading4TextStyle =
|
|
6475
|
+
var heading4TextStyle = import_styled_components29.css`
|
|
6440
6476
|
--font-family: var(--wui-typography-heading-4-family);
|
|
6441
6477
|
--font-size: var(--wui-typography-heading-4-size);
|
|
6442
6478
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
6443
6479
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
6444
6480
|
`;
|
|
6445
|
-
var heading5TextStyle =
|
|
6481
|
+
var heading5TextStyle = import_styled_components29.css`
|
|
6446
6482
|
--font-family: var(--wui-typography-heading-5-family);
|
|
6447
6483
|
--font-size: var(--wui-typography-heading-5-size);
|
|
6448
6484
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
6449
6485
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
6450
6486
|
`;
|
|
6451
|
-
var heading6TextStyle =
|
|
6487
|
+
var heading6TextStyle = import_styled_components29.css`
|
|
6452
6488
|
--font-family: var(--wui-typography-heading-6-family);
|
|
6453
6489
|
--font-size: var(--wui-typography-heading-6-size);
|
|
6454
6490
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -6464,7 +6500,7 @@ var variantStyleMap = {
|
|
|
6464
6500
|
heading6: heading6TextStyle
|
|
6465
6501
|
};
|
|
6466
6502
|
var DEFAULT_ELEMENT2 = "h1";
|
|
6467
|
-
var StyledHeading =
|
|
6503
|
+
var StyledHeading = import_styled_components29.default.div`
|
|
6468
6504
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6469
6505
|
font-family: var(--font-family);
|
|
6470
6506
|
font-size: var(--font-size);
|
|
@@ -6473,16 +6509,16 @@ var StyledHeading = import_styled_components28.default.div`
|
|
|
6473
6509
|
color: var(--wui-color-text);
|
|
6474
6510
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
6475
6511
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
6476
|
-
${({ $inline }) => $inline &&
|
|
6512
|
+
${({ $inline }) => $inline && import_styled_components29.css`
|
|
6477
6513
|
display: inline-block;
|
|
6478
6514
|
`}
|
|
6479
|
-
${({ $disabled }) => $disabled &&
|
|
6515
|
+
${({ $disabled }) => $disabled && import_styled_components29.css`
|
|
6480
6516
|
color: var(--wui-color-text-disabled);
|
|
6481
6517
|
`}
|
|
6482
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
6518
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components29.css`
|
|
6483
6519
|
user-select: none;
|
|
6484
6520
|
`}
|
|
6485
|
-
${({ $align }) =>
|
|
6521
|
+
${({ $align }) => import_styled_components29.css`
|
|
6486
6522
|
text-align: ${$align};
|
|
6487
6523
|
`}
|
|
6488
6524
|
margin: 0;
|
|
@@ -6528,7 +6564,7 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
6528
6564
|
|
|
6529
6565
|
// src/components/Label/Label.tsx
|
|
6530
6566
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
6531
|
-
var requiredStyle =
|
|
6567
|
+
var requiredStyle = import_styled_components30.css`
|
|
6532
6568
|
&::after {
|
|
6533
6569
|
color: var(--wui-color-text-error);
|
|
6534
6570
|
display: inline;
|
|
@@ -6536,10 +6572,10 @@ var requiredStyle = import_styled_components29.css`
|
|
|
6536
6572
|
content: '*';
|
|
6537
6573
|
}
|
|
6538
6574
|
`;
|
|
6539
|
-
var disabledStyle =
|
|
6575
|
+
var disabledStyle = import_styled_components30.css`
|
|
6540
6576
|
color: var(--wui-color-text-disabled);
|
|
6541
6577
|
`;
|
|
6542
|
-
var StyledLabel2 = (0,
|
|
6578
|
+
var StyledLabel2 = (0, import_styled_components30.default)(Heading).attrs({
|
|
6543
6579
|
variant: "heading6",
|
|
6544
6580
|
renderAs: "label"
|
|
6545
6581
|
})`
|
|
@@ -6582,10 +6618,10 @@ var Label = ({
|
|
|
6582
6618
|
Label.displayName = "Label";
|
|
6583
6619
|
|
|
6584
6620
|
// src/components/Label/LabelDescription.tsx
|
|
6585
|
-
var
|
|
6621
|
+
var import_styled_components31 = __toESM(require("styled-components"));
|
|
6586
6622
|
var import_type_guards17 = require("@wistia/type-guards");
|
|
6587
6623
|
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
6588
|
-
var StyledLabelDescription =
|
|
6624
|
+
var StyledLabelDescription = import_styled_components31.default.div`
|
|
6589
6625
|
color: var(--wui-color-text-secondary);
|
|
6590
6626
|
font-size: var(--wui-typography-body-4-size);
|
|
6591
6627
|
font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -6621,7 +6657,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
|
|
|
6621
6657
|
)
|
|
6622
6658
|
}
|
|
6623
6659
|
);
|
|
6624
|
-
var StyledCheckboxWrapper =
|
|
6660
|
+
var StyledCheckboxWrapper = import_styled_components32.default.div`
|
|
6625
6661
|
display: flex;
|
|
6626
6662
|
align-items: center;
|
|
6627
6663
|
cursor: pointer;
|
|
@@ -6635,7 +6671,7 @@ var StyledCheckboxWrapper = import_styled_components31.default.div`
|
|
|
6635
6671
|
background-color: #efefef;
|
|
6636
6672
|
}
|
|
6637
6673
|
`;
|
|
6638
|
-
var StyledCheckboxRoot = (0,
|
|
6674
|
+
var StyledCheckboxRoot = (0, import_styled_components32.default)(import_react_checkbox.Root)`
|
|
6639
6675
|
all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
|
|
6640
6676
|
background-color: var(--wui-color-bg-fill-white);
|
|
6641
6677
|
min-width: 16px;
|
|
@@ -6669,10 +6705,10 @@ var StyledCheckboxRoot = (0, import_styled_components31.default)(import_react_ch
|
|
|
6669
6705
|
/* TODO Lamp to design focus state */
|
|
6670
6706
|
}
|
|
6671
6707
|
`;
|
|
6672
|
-
var StyledCheckboxIndicator = (0,
|
|
6708
|
+
var StyledCheckboxIndicator = (0, import_styled_components32.default)(import_react_checkbox.Indicator)`
|
|
6673
6709
|
display: flex;
|
|
6674
6710
|
`;
|
|
6675
|
-
var StyledLabelWrapper =
|
|
6711
|
+
var StyledLabelWrapper = import_styled_components32.default.div`
|
|
6676
6712
|
display: flex;
|
|
6677
6713
|
flex-direction: column;
|
|
6678
6714
|
margin-left: var(--wui-space-02);
|
|
@@ -6740,22 +6776,22 @@ var Checkbox = (0, import_react19.forwardRef)(
|
|
|
6740
6776
|
Checkbox.displayName = "Checkbox";
|
|
6741
6777
|
|
|
6742
6778
|
// src/components/Divider/Divider.tsx
|
|
6743
|
-
var
|
|
6779
|
+
var import_styled_components33 = __toESM(require("styled-components"));
|
|
6744
6780
|
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
6745
|
-
var horizontalBorderCss =
|
|
6781
|
+
var horizontalBorderCss = import_styled_components33.css`
|
|
6746
6782
|
border-top-color: var(--wui-color-border);
|
|
6747
6783
|
border-top-style: solid;
|
|
6748
6784
|
border-top-width: 1px;
|
|
6749
6785
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
6750
6786
|
height: 0;
|
|
6751
6787
|
`;
|
|
6752
|
-
var verticalBorderCss =
|
|
6788
|
+
var verticalBorderCss = import_styled_components33.css`
|
|
6753
6789
|
background-color: var(--wui-color-border);
|
|
6754
6790
|
max-width: 1px;
|
|
6755
6791
|
min-height: 100%;
|
|
6756
6792
|
width: 1px;
|
|
6757
6793
|
`;
|
|
6758
|
-
var DividerComponent =
|
|
6794
|
+
var DividerComponent = import_styled_components33.default.div`
|
|
6759
6795
|
${({ $orientation }) => {
|
|
6760
6796
|
switch ($orientation) {
|
|
6761
6797
|
case "vertical":
|
|
@@ -6784,15 +6820,15 @@ Divider.displayName = "Divider";
|
|
|
6784
6820
|
|
|
6785
6821
|
// src/components/Form/Form.tsx
|
|
6786
6822
|
var import_react21 = require("react");
|
|
6787
|
-
var
|
|
6823
|
+
var import_styled_components35 = __toESM(require("styled-components"));
|
|
6788
6824
|
var import_type_guards19 = require("@wistia/type-guards");
|
|
6789
6825
|
|
|
6790
6826
|
// src/components/Stack/Stack.tsx
|
|
6791
6827
|
var import_react20 = require("react");
|
|
6792
|
-
var
|
|
6828
|
+
var import_styled_components34 = __toESM(require("styled-components"));
|
|
6793
6829
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
6794
6830
|
var DEFAULT_ELEMENT3 = "div";
|
|
6795
|
-
var StyledStack =
|
|
6831
|
+
var StyledStack = import_styled_components34.default.div`
|
|
6796
6832
|
display: flex;
|
|
6797
6833
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6798
6834
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -6818,7 +6854,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
6818
6854
|
|
|
6819
6855
|
// src/components/Form/Form.tsx
|
|
6820
6856
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
6821
|
-
var StyledForm =
|
|
6857
|
+
var StyledForm = import_styled_components35.default.form`
|
|
6822
6858
|
--form-default-width: 690px;
|
|
6823
6859
|
|
|
6824
6860
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -6983,94 +7019,94 @@ var FormErrorSummary = ({ description }) => {
|
|
|
6983
7019
|
|
|
6984
7020
|
// src/components/FormField/FormField.tsx
|
|
6985
7021
|
var import_react27 = require("react");
|
|
6986
|
-
var
|
|
7022
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
6987
7023
|
var import_type_guards21 = require("@wistia/type-guards");
|
|
6988
7024
|
|
|
6989
7025
|
// src/components/Text/Text.tsx
|
|
6990
7026
|
var import_react24 = require("react");
|
|
6991
|
-
var
|
|
7027
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
6992
7028
|
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
6993
|
-
var bodyBoldStyles =
|
|
7029
|
+
var bodyBoldStyles = import_styled_components36.css`
|
|
6994
7030
|
> strong,
|
|
6995
7031
|
b {
|
|
6996
7032
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
6997
7033
|
}
|
|
6998
7034
|
`;
|
|
6999
|
-
var labelBoldStyles =
|
|
7035
|
+
var labelBoldStyles = import_styled_components36.css`
|
|
7000
7036
|
> strong,
|
|
7001
7037
|
b {
|
|
7002
7038
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
7003
7039
|
}
|
|
7004
7040
|
`;
|
|
7005
|
-
var body1TextStyle =
|
|
7041
|
+
var body1TextStyle = import_styled_components36.css`
|
|
7006
7042
|
--font-family: var(--wui-typography-body-1-family);
|
|
7007
7043
|
--font-size: var(--wui-typography-body-1-size);
|
|
7008
7044
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
7009
7045
|
--line-height: var(--wui-typography-body-1-line-height);
|
|
7010
7046
|
${bodyBoldStyles}
|
|
7011
7047
|
`;
|
|
7012
|
-
var body2TextStyle =
|
|
7048
|
+
var body2TextStyle = import_styled_components36.css`
|
|
7013
7049
|
--font-family: var(--wui-typography-body-2-family);
|
|
7014
7050
|
--font-size: var(--wui-typography-body-2-size);
|
|
7015
7051
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
7016
7052
|
--line-height: var(--wui-typography-body-2-line-height);
|
|
7017
7053
|
${bodyBoldStyles}
|
|
7018
7054
|
`;
|
|
7019
|
-
var body3TextStyle =
|
|
7055
|
+
var body3TextStyle = import_styled_components36.css`
|
|
7020
7056
|
--font-family: var(--wui-typography-body-3-family);
|
|
7021
7057
|
--font-size: var(--wui-typography-body-3-size);
|
|
7022
7058
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
7023
7059
|
--line-height: var(--wui-typography-body-3-line-height);
|
|
7024
7060
|
${bodyBoldStyles}
|
|
7025
7061
|
`;
|
|
7026
|
-
var body4TextStyle =
|
|
7062
|
+
var body4TextStyle = import_styled_components36.css`
|
|
7027
7063
|
--font-family: var(--wui-typography-body-4-family);
|
|
7028
7064
|
--font-size: var(--wui-typography-body-4-size);
|
|
7029
7065
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
7030
7066
|
--line-height: var(--wui-typography-body-4-line-height);
|
|
7031
7067
|
${bodyBoldStyles}
|
|
7032
7068
|
`;
|
|
7033
|
-
var label1TextStyle =
|
|
7069
|
+
var label1TextStyle = import_styled_components36.css`
|
|
7034
7070
|
--font-family: var(--wui-typography-label-1-family);
|
|
7035
7071
|
--font-size: var(--wui-typography-label-1-size);
|
|
7036
7072
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
7037
7073
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
7038
7074
|
${labelBoldStyles}
|
|
7039
7075
|
`;
|
|
7040
|
-
var label2TextStyle =
|
|
7076
|
+
var label2TextStyle = import_styled_components36.css`
|
|
7041
7077
|
--font-family: var(--wui-typography-label-2-family);
|
|
7042
7078
|
--font-size: var(--wui-typography-label-2-size);
|
|
7043
7079
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
7044
7080
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
7045
7081
|
${labelBoldStyles}
|
|
7046
7082
|
`;
|
|
7047
|
-
var label3TextStyle =
|
|
7083
|
+
var label3TextStyle = import_styled_components36.css`
|
|
7048
7084
|
--font-family: var(--wui-typography-label-3-family);
|
|
7049
7085
|
--font-size: var(--wui-typography-label-3-size);
|
|
7050
7086
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
7051
7087
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
7052
7088
|
${labelBoldStyles}
|
|
7053
7089
|
`;
|
|
7054
|
-
var label4TextStyle =
|
|
7090
|
+
var label4TextStyle = import_styled_components36.css`
|
|
7055
7091
|
--font-family: var(--wui-typography-label-4-family);
|
|
7056
7092
|
--font-size: var(--wui-typography-label-4-size);
|
|
7057
7093
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
7058
7094
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
7059
7095
|
${labelBoldStyles}
|
|
7060
7096
|
`;
|
|
7061
|
-
var body1MonoTextStyle =
|
|
7097
|
+
var body1MonoTextStyle = import_styled_components36.css`
|
|
7062
7098
|
${body1TextStyle};
|
|
7063
7099
|
--font-family: var(--wui-typography-family-mono);
|
|
7064
7100
|
`;
|
|
7065
|
-
var body2MonoTextStyle =
|
|
7101
|
+
var body2MonoTextStyle = import_styled_components36.css`
|
|
7066
7102
|
${body2TextStyle};
|
|
7067
7103
|
--font-family: var(--wui-typography-family-mono);
|
|
7068
7104
|
`;
|
|
7069
|
-
var body3MonoTextStyle =
|
|
7105
|
+
var body3MonoTextStyle = import_styled_components36.css`
|
|
7070
7106
|
${body3TextStyle};
|
|
7071
7107
|
--font-family: var(--wui-typography-family-mono);
|
|
7072
7108
|
`;
|
|
7073
|
-
var body4MonoTextStyle =
|
|
7109
|
+
var body4MonoTextStyle = import_styled_components36.css`
|
|
7074
7110
|
${body4TextStyle};
|
|
7075
7111
|
--font-family: var(--wui-typography-family-mono);
|
|
7076
7112
|
`;
|
|
@@ -7088,7 +7124,7 @@ var variantStyleMap2 = {
|
|
|
7088
7124
|
label3: label3TextStyle,
|
|
7089
7125
|
label4: label4TextStyle
|
|
7090
7126
|
};
|
|
7091
|
-
var StyledText =
|
|
7127
|
+
var StyledText = import_styled_components36.default.div`
|
|
7092
7128
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7093
7129
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
7094
7130
|
if ($disabled) {
|
|
@@ -7112,19 +7148,19 @@ var StyledText = import_styled_components35.default.div`
|
|
|
7112
7148
|
margin: 0;
|
|
7113
7149
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
7114
7150
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7115
|
-
${({ $inline }) => $inline &&
|
|
7151
|
+
${({ $inline }) => $inline && import_styled_components36.css`
|
|
7116
7152
|
display: inline-block;
|
|
7117
7153
|
`}
|
|
7118
|
-
${({ $disabled }) => $disabled &&
|
|
7154
|
+
${({ $disabled }) => $disabled && import_styled_components36.css`
|
|
7119
7155
|
--text-color: var(--wui-color-text-disabled);
|
|
7120
7156
|
`}
|
|
7121
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
7157
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components36.css`
|
|
7122
7158
|
user-select: none;
|
|
7123
7159
|
`}
|
|
7124
|
-
${({ $align }) =>
|
|
7160
|
+
${({ $align }) => import_styled_components36.css`
|
|
7125
7161
|
text-align: ${$align};
|
|
7126
7162
|
`}
|
|
7127
|
-
${({ as }) => as === "p" &&
|
|
7163
|
+
${({ as }) => as === "p" && import_styled_components36.css`
|
|
7128
7164
|
display: block;
|
|
7129
7165
|
`}
|
|
7130
7166
|
`;
|
|
@@ -7167,13 +7203,13 @@ var Text = makePolymorphic(TextComponent);
|
|
|
7167
7203
|
var import_react26 = require("react");
|
|
7168
7204
|
|
|
7169
7205
|
// src/components/FormGroup/FormGroup.tsx
|
|
7170
|
-
var
|
|
7206
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
7171
7207
|
var import_react25 = require("react");
|
|
7172
7208
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
7173
|
-
var StyledFieldset =
|
|
7209
|
+
var StyledFieldset = import_styled_components37.default.fieldset`
|
|
7174
7210
|
border: 0;
|
|
7175
7211
|
`;
|
|
7176
|
-
var StyledLegend =
|
|
7212
|
+
var StyledLegend = import_styled_components37.default.legend`
|
|
7177
7213
|
margin-bottom: var(--space-01);
|
|
7178
7214
|
`;
|
|
7179
7215
|
var FormGroup = ({ children, label, ...props }) => {
|
|
@@ -7222,7 +7258,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
7222
7258
|
|
|
7223
7259
|
// src/components/FormField/FormField.tsx
|
|
7224
7260
|
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
7225
|
-
var StyledFormField =
|
|
7261
|
+
var StyledFormField = import_styled_components38.default.div`
|
|
7226
7262
|
--form-field-spacing: var(--wui-space-01);
|
|
7227
7263
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
7228
7264
|
|
|
@@ -7230,7 +7266,7 @@ var StyledFormField = import_styled_components37.default.div`
|
|
|
7230
7266
|
flex-direction: column;
|
|
7231
7267
|
gap: var(--form-field-spacing);
|
|
7232
7268
|
`;
|
|
7233
|
-
var StyledErrorList =
|
|
7269
|
+
var StyledErrorList = import_styled_components38.default.ul`
|
|
7234
7270
|
margin: 0;
|
|
7235
7271
|
padding: 0;
|
|
7236
7272
|
padding-left: var(--wui-space-04);
|
|
@@ -7344,9 +7380,9 @@ RadioGroup.displayName = "RadioGroup";
|
|
|
7344
7380
|
|
|
7345
7381
|
// src/components/IconButton/IconButton.tsx
|
|
7346
7382
|
var import_react29 = require("react");
|
|
7347
|
-
var
|
|
7383
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
7348
7384
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
7349
|
-
var StyledButton2 = (0,
|
|
7385
|
+
var StyledButton2 = (0, import_styled_components39.default)(Button)`
|
|
7350
7386
|
--icon-button-size-sm: 24px;
|
|
7351
7387
|
--icon-button-size-md: 32px;
|
|
7352
7388
|
--icon-button-size-lg: 40px;
|
|
@@ -7382,10 +7418,10 @@ IconButton.displayName = "IconButton";
|
|
|
7382
7418
|
|
|
7383
7419
|
// src/components/Input/Input.tsx
|
|
7384
7420
|
var import_react30 = require("react");
|
|
7385
|
-
var
|
|
7421
|
+
var import_styled_components40 = __toESM(require("styled-components"));
|
|
7386
7422
|
var import_type_guards22 = require("@wistia/type-guards");
|
|
7387
7423
|
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
7388
|
-
var inputStyles =
|
|
7424
|
+
var inputStyles = import_styled_components40.css`
|
|
7389
7425
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
7390
7426
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
7391
7427
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -7426,7 +7462,7 @@ var inputStyles = import_styled_components39.css`
|
|
|
7426
7462
|
}
|
|
7427
7463
|
}
|
|
7428
7464
|
`;
|
|
7429
|
-
var StyledInputContainer =
|
|
7465
|
+
var StyledInputContainer = import_styled_components40.default.div`
|
|
7430
7466
|
display: inline-flex;
|
|
7431
7467
|
position: relative;
|
|
7432
7468
|
${inputStyles};
|
|
@@ -7544,7 +7580,7 @@ var Input = (0, import_react30.forwardRef)(
|
|
|
7544
7580
|
Input.displayName = "Input";
|
|
7545
7581
|
|
|
7546
7582
|
// src/components/Menu/Menu.tsx
|
|
7547
|
-
var
|
|
7583
|
+
var import_styled_components41 = __toESM(require("styled-components"));
|
|
7548
7584
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
7549
7585
|
var import_type_guards23 = require("@wistia/type-guards");
|
|
7550
7586
|
var import_react32 = require("react");
|
|
@@ -7556,7 +7592,7 @@ var useMenuContext = () => (0, import_react31.useContext)(MenuContext);
|
|
|
7556
7592
|
|
|
7557
7593
|
// src/components/Menu/Menu.tsx
|
|
7558
7594
|
var import_jsx_runtime187 = require("react/jsx-runtime");
|
|
7559
|
-
var open =
|
|
7595
|
+
var open = import_styled_components41.keyframes`
|
|
7560
7596
|
from {
|
|
7561
7597
|
opacity: 0;
|
|
7562
7598
|
transform: scale(.97) translateY(-8px);
|
|
@@ -7566,7 +7602,7 @@ var open = import_styled_components40.keyframes`
|
|
|
7566
7602
|
transform: scale(1);
|
|
7567
7603
|
}
|
|
7568
7604
|
`;
|
|
7569
|
-
var close =
|
|
7605
|
+
var close = import_styled_components41.keyframes`
|
|
7570
7606
|
from {
|
|
7571
7607
|
opacity: 1;
|
|
7572
7608
|
transform: scale(1);
|
|
@@ -7576,7 +7612,7 @@ var close = import_styled_components40.keyframes`
|
|
|
7576
7612
|
transform: scale(.97) translateY(-8px);
|
|
7577
7613
|
}
|
|
7578
7614
|
`;
|
|
7579
|
-
var menuItemCss =
|
|
7615
|
+
var menuItemCss = import_styled_components41.css`
|
|
7580
7616
|
--menu-label-description-gap: var(--wui-space-01);
|
|
7581
7617
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
7582
7618
|
--menu-item-left-icon-size: 24px;
|
|
@@ -7587,7 +7623,7 @@ var menuItemCss = import_styled_components40.css`
|
|
|
7587
7623
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
7588
7624
|
--menu-divider-margin: var(--wui-space-02);
|
|
7589
7625
|
`;
|
|
7590
|
-
var compactMenuItemCss =
|
|
7626
|
+
var compactMenuItemCss = import_styled_components41.css`
|
|
7591
7627
|
--menu-label-description-gap: 0;
|
|
7592
7628
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
7593
7629
|
--menu-item-left-icon-size: 16px;
|
|
@@ -7598,7 +7634,7 @@ var compactMenuItemCss = import_styled_components40.css`
|
|
|
7598
7634
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
7599
7635
|
--menu-divider-margin: var(--wui-space-01);
|
|
7600
7636
|
`;
|
|
7601
|
-
var menuContentCss =
|
|
7637
|
+
var menuContentCss = import_styled_components41.css`
|
|
7602
7638
|
--menu-font-family: var(--wui-typography-family-default);
|
|
7603
7639
|
--menu-bg: var(--wui-color-bg-surface);
|
|
7604
7640
|
--menu-shadow: 0 0 64px 0 rgba(0 0 0 / 8%); /* TODO - Need a box-shadow token */
|
|
@@ -7606,10 +7642,11 @@ var menuContentCss = import_styled_components40.css`
|
|
|
7606
7642
|
--menu-padding: var(--wui-space-02);
|
|
7607
7643
|
--menu-min-width: 120px;
|
|
7608
7644
|
--menu-max-width: 284px;
|
|
7645
|
+
--menu-animation-duration: var(--wui-motion-duration-03);
|
|
7609
7646
|
|
|
7610
7647
|
${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss};
|
|
7611
7648
|
|
|
7612
|
-
animation: ${open};
|
|
7649
|
+
animation: var(--menu-animation-duration) var(--wui-motion-ease-out) ${open};
|
|
7613
7650
|
font-family: var(--menu-font-family);
|
|
7614
7651
|
background: var(--menu-bg);
|
|
7615
7652
|
border-radius: var(--menu-border-radius);
|
|
@@ -7624,7 +7661,7 @@ var menuContentCss = import_styled_components40.css`
|
|
|
7624
7661
|
border: 1px solid var(--wui-color-border);
|
|
7625
7662
|
|
|
7626
7663
|
&[data-state='closed'] {
|
|
7627
|
-
animation: ${close}; /* TODO - need easing tokens */
|
|
7664
|
+
animation: var(--menu-animation-duration) var(--wui-motion-ease-in) ${close}; /* TODO - need easing tokens */
|
|
7628
7665
|
}
|
|
7629
7666
|
|
|
7630
7667
|
${mq.smAndUp} {
|
|
@@ -7639,7 +7676,7 @@ var menuContentCss = import_styled_components40.css`
|
|
|
7639
7676
|
margin: var(--menu-divider-margin) 0;
|
|
7640
7677
|
}
|
|
7641
7678
|
`;
|
|
7642
|
-
var MenuContent = (0,
|
|
7679
|
+
var MenuContent = (0, import_styled_components41.default)(import_react_dropdown_menu.DropdownMenuContent)`
|
|
7643
7680
|
${menuContentCss}
|
|
7644
7681
|
`;
|
|
7645
7682
|
var Menu = ({
|
|
@@ -7702,10 +7739,10 @@ var Menu = ({
|
|
|
7702
7739
|
Menu.displayName = "Menu";
|
|
7703
7740
|
|
|
7704
7741
|
// src/components/Menu/MenuLabel.tsx
|
|
7705
|
-
var
|
|
7742
|
+
var import_styled_components42 = __toESM(require("styled-components"));
|
|
7706
7743
|
var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
|
|
7707
7744
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
7708
|
-
var StyledMenuLabel = (0,
|
|
7745
|
+
var StyledMenuLabel = (0, import_styled_components42.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
|
|
7709
7746
|
padding: var(--wui-space-02);
|
|
7710
7747
|
`;
|
|
7711
7748
|
var MenuLabel = ({ children, ...props }) => {
|
|
@@ -7730,16 +7767,16 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
7730
7767
|
|
|
7731
7768
|
// src/components/Menu/SubMenu.tsx
|
|
7732
7769
|
var import_react34 = require("react");
|
|
7733
|
-
var
|
|
7770
|
+
var import_styled_components45 = __toESM(require("styled-components"));
|
|
7734
7771
|
var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
|
|
7735
7772
|
var import_type_guards25 = require("@wistia/type-guards");
|
|
7736
7773
|
|
|
7737
7774
|
// src/components/Menu/MenuItemButton.tsx
|
|
7738
7775
|
var import_react33 = require("react");
|
|
7739
|
-
var
|
|
7776
|
+
var import_styled_components43 = __toESM(require("styled-components"));
|
|
7740
7777
|
var import_type_guards24 = require("@wistia/type-guards");
|
|
7741
7778
|
var import_jsx_runtime189 = require("react/jsx-runtime");
|
|
7742
|
-
var StyledButton3 = (0,
|
|
7779
|
+
var StyledButton3 = (0, import_styled_components43.default)(Button)`
|
|
7743
7780
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
7744
7781
|
|
|
7745
7782
|
display: flex;
|
|
@@ -7752,6 +7789,7 @@ var StyledButton3 = (0, import_styled_components42.default)(Button)`
|
|
|
7752
7789
|
font-size: var(--menu-label-font-size);
|
|
7753
7790
|
font-weight: var(--menu-label-font-weight);
|
|
7754
7791
|
line-height: var(--menu-label-line-height);
|
|
7792
|
+
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
7755
7793
|
|
|
7756
7794
|
:active {
|
|
7757
7795
|
background-color: var(--wui-color-bg-surface-active);
|
|
@@ -7777,7 +7815,7 @@ var StyledButton3 = (0, import_styled_components42.default)(Button)`
|
|
|
7777
7815
|
padding-left: var(--wui-space-04);
|
|
7778
7816
|
}
|
|
7779
7817
|
`;
|
|
7780
|
-
var StyledLeftIconContainer =
|
|
7818
|
+
var StyledLeftIconContainer = import_styled_components43.default.div`
|
|
7781
7819
|
height: var(--menu-item-left-icon-size);
|
|
7782
7820
|
width: var(--menu-item-left-icon-size);
|
|
7783
7821
|
|
|
@@ -7786,7 +7824,7 @@ var StyledLeftIconContainer = import_styled_components42.default.div`
|
|
|
7786
7824
|
width: var(--menu-item-left-icon-size);
|
|
7787
7825
|
}
|
|
7788
7826
|
`;
|
|
7789
|
-
var StyledRightIconContainer =
|
|
7827
|
+
var StyledRightIconContainer = import_styled_components43.default.div`
|
|
7790
7828
|
height: var(--menu-item-right-icon-size);
|
|
7791
7829
|
width: var(--menu-item-right-icon-size);
|
|
7792
7830
|
|
|
@@ -7795,13 +7833,13 @@ var StyledRightIconContainer = import_styled_components42.default.div`
|
|
|
7795
7833
|
width: var(--menu-item-right-icon-size);
|
|
7796
7834
|
}
|
|
7797
7835
|
`;
|
|
7798
|
-
var StyledLabelAndDescriptionContainer =
|
|
7836
|
+
var StyledLabelAndDescriptionContainer = import_styled_components43.default.div`
|
|
7799
7837
|
display: flex;
|
|
7800
7838
|
flex-direction: column;
|
|
7801
7839
|
gap: var(--menu-label-description-gap);
|
|
7802
7840
|
flex-basis: 100%;
|
|
7803
7841
|
`;
|
|
7804
|
-
var StyledBadgeContainer =
|
|
7842
|
+
var StyledBadgeContainer = import_styled_components43.default.div`
|
|
7805
7843
|
align-self: start;
|
|
7806
7844
|
justify-self: end;
|
|
7807
7845
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -7849,10 +7887,10 @@ var MenuItemButton = (0, import_react33.forwardRef)(({ children, appearance, com
|
|
|
7849
7887
|
MenuItemButton.displayName = "MenuItemButton";
|
|
7850
7888
|
|
|
7851
7889
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
7852
|
-
var
|
|
7890
|
+
var import_styled_components44 = __toESM(require("styled-components"));
|
|
7853
7891
|
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
7854
|
-
var StyledMenuItemLabel =
|
|
7855
|
-
var StyledMenuItemDescription = (0,
|
|
7892
|
+
var StyledMenuItemLabel = import_styled_components44.default.span``;
|
|
7893
|
+
var StyledMenuItemDescription = (0, import_styled_components44.default)(Text).attrs({
|
|
7856
7894
|
variant: "body4",
|
|
7857
7895
|
prominence: "secondary"
|
|
7858
7896
|
})``;
|
|
@@ -7865,17 +7903,17 @@ var MenuItemDescription = ({ children }) => {
|
|
|
7865
7903
|
|
|
7866
7904
|
// src/components/Menu/SubMenu.tsx
|
|
7867
7905
|
var import_jsx_runtime191 = require("react/jsx-runtime");
|
|
7868
|
-
var SubMenuContent = (0,
|
|
7906
|
+
var SubMenuContent = (0, import_styled_components45.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
|
|
7869
7907
|
${menuContentCss}
|
|
7870
7908
|
|
|
7871
7909
|
${mq.smAndDown} {
|
|
7872
7910
|
transform: translateX(-100%) !important;
|
|
7873
7911
|
}
|
|
7874
7912
|
`;
|
|
7875
|
-
var StyledMobileSubMenuItems =
|
|
7913
|
+
var StyledMobileSubMenuItems = import_styled_components45.default.div`
|
|
7876
7914
|
margin-left: var(--wui-space-04);
|
|
7877
7915
|
`;
|
|
7878
|
-
var StyledSubTrigger = (0,
|
|
7916
|
+
var StyledSubTrigger = (0, import_styled_components45.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
|
|
7879
7917
|
outline: none;
|
|
7880
7918
|
|
|
7881
7919
|
&[data-state='open'],
|
|
@@ -8085,19 +8123,19 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
8085
8123
|
|
|
8086
8124
|
// src/components/Modal/Modal.tsx
|
|
8087
8125
|
var import_react39 = require("react");
|
|
8088
|
-
var
|
|
8126
|
+
var import_styled_components51 = __toESM(require("styled-components"));
|
|
8089
8127
|
var import_react_dialog4 = require("@radix-ui/react-dialog");
|
|
8090
8128
|
var import_type_guards28 = require("@wistia/type-guards");
|
|
8091
8129
|
|
|
8092
8130
|
// src/components/Modal/ModalHeader.tsx
|
|
8093
|
-
var
|
|
8131
|
+
var import_styled_components48 = __toESM(require("styled-components"));
|
|
8094
8132
|
var import_react_dialog2 = require("@radix-ui/react-dialog");
|
|
8095
8133
|
|
|
8096
8134
|
// src/components/Modal/ModalCloseButton.tsx
|
|
8097
|
-
var
|
|
8135
|
+
var import_styled_components46 = __toESM(require("styled-components"));
|
|
8098
8136
|
var import_react_dialog = require("@radix-ui/react-dialog");
|
|
8099
8137
|
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
8100
|
-
var CloseButton = (0,
|
|
8138
|
+
var CloseButton = (0, import_styled_components46.default)(import_react_dialog.Close)`
|
|
8101
8139
|
align-self: start;
|
|
8102
8140
|
`;
|
|
8103
8141
|
var ModalCloseButton = () => {
|
|
@@ -8113,11 +8151,11 @@ var ModalCloseButton = () => {
|
|
|
8113
8151
|
};
|
|
8114
8152
|
|
|
8115
8153
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
8116
|
-
var
|
|
8154
|
+
var import_styled_components47 = __toESM(require("styled-components"));
|
|
8117
8155
|
var import_type_guards26 = require("@wistia/type-guards");
|
|
8118
8156
|
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
8119
|
-
var VisuallyHidden =
|
|
8120
|
-
var VisuallyHiddenButFocusable =
|
|
8157
|
+
var VisuallyHidden = import_styled_components47.default.div({ ...visuallyHiddenStyle });
|
|
8158
|
+
var VisuallyHiddenButFocusable = import_styled_components47.default.div({
|
|
8121
8159
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
8122
8160
|
});
|
|
8123
8161
|
var ScreenReaderOnly = ({
|
|
@@ -8136,7 +8174,7 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
8136
8174
|
|
|
8137
8175
|
// src/components/Modal/ModalHeader.tsx
|
|
8138
8176
|
var import_jsx_runtime198 = require("react/jsx-runtime");
|
|
8139
|
-
var Header =
|
|
8177
|
+
var Header = import_styled_components48.default.header`
|
|
8140
8178
|
display: flex;
|
|
8141
8179
|
order: 1;
|
|
8142
8180
|
gap: var(--wui-space-01);
|
|
@@ -8148,7 +8186,7 @@ var Header = import_styled_components47.default.header`
|
|
|
8148
8186
|
margin-top: 0;
|
|
8149
8187
|
}
|
|
8150
8188
|
`;
|
|
8151
|
-
var Title = (0,
|
|
8189
|
+
var Title = (0, import_styled_components48.default)(import_react_dialog2.Title)`
|
|
8152
8190
|
font-family: var(--wui-typography-heading-2-family);
|
|
8153
8191
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
8154
8192
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -8168,7 +8206,7 @@ var ModalHeader = ({
|
|
|
8168
8206
|
|
|
8169
8207
|
// src/components/Modal/ModalContent.tsx
|
|
8170
8208
|
var import_react37 = require("react");
|
|
8171
|
-
var
|
|
8209
|
+
var import_styled_components49 = __toESM(require("styled-components"));
|
|
8172
8210
|
var import_react_dialog3 = require("@radix-ui/react-dialog");
|
|
8173
8211
|
|
|
8174
8212
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
@@ -8192,7 +8230,7 @@ var useFocusRestore = () => {
|
|
|
8192
8230
|
|
|
8193
8231
|
// src/components/Modal/ModalContent.tsx
|
|
8194
8232
|
var import_jsx_runtime199 = require("react/jsx-runtime");
|
|
8195
|
-
var StyledModalContent = (0,
|
|
8233
|
+
var StyledModalContent = (0, import_styled_components49.default)(import_react_dialog3.Content)`
|
|
8196
8234
|
background-color: var(--wui-color-bg-app);
|
|
8197
8235
|
box-sizing: border-box;
|
|
8198
8236
|
display: flex;
|
|
@@ -8251,7 +8289,7 @@ var ModalContent = (0, import_react37.forwardRef)(
|
|
|
8251
8289
|
|
|
8252
8290
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
8253
8291
|
var import_react38 = require("react");
|
|
8254
|
-
var
|
|
8292
|
+
var import_styled_components50 = __toESM(require("styled-components"));
|
|
8255
8293
|
var import_jsx_runtime200 = require("react/jsx-runtime");
|
|
8256
8294
|
var backdropAnimationDuration = 150;
|
|
8257
8295
|
var alignVerticalMap = {
|
|
@@ -8265,7 +8303,7 @@ var alignHorizontalMap = {
|
|
|
8265
8303
|
center: "center",
|
|
8266
8304
|
right: "end"
|
|
8267
8305
|
};
|
|
8268
|
-
var BackdropComponent =
|
|
8306
|
+
var BackdropComponent = import_styled_components50.default.div`
|
|
8269
8307
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
8270
8308
|
animation-name: backdropShow;
|
|
8271
8309
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -8304,7 +8342,7 @@ Backdrop.displayName = "Backdrop";
|
|
|
8304
8342
|
|
|
8305
8343
|
// src/components/Modal/Modal.tsx
|
|
8306
8344
|
var import_jsx_runtime201 = require("react/jsx-runtime");
|
|
8307
|
-
var ModalBody =
|
|
8345
|
+
var ModalBody = import_styled_components51.default.div`
|
|
8308
8346
|
flex-direction: column;
|
|
8309
8347
|
display: flex;
|
|
8310
8348
|
order: 2;
|
|
@@ -8370,15 +8408,15 @@ Modal.displayName = "Modal";
|
|
|
8370
8408
|
|
|
8371
8409
|
// src/components/Radio/Radio.tsx
|
|
8372
8410
|
var import_react40 = require("react");
|
|
8373
|
-
var
|
|
8411
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8374
8412
|
var import_type_guards29 = require("@wistia/type-guards");
|
|
8375
8413
|
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
8376
|
-
var StyledLabelWrapper2 =
|
|
8414
|
+
var StyledLabelWrapper2 = import_styled_components52.default.div`
|
|
8377
8415
|
display: flex;
|
|
8378
8416
|
flex-direction: column;
|
|
8379
8417
|
padding-left: var(--wui-space-02);
|
|
8380
8418
|
`;
|
|
8381
|
-
var StyledRadio =
|
|
8419
|
+
var StyledRadio = import_styled_components52.default.input`
|
|
8382
8420
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
8383
8421
|
appearance: none;
|
|
8384
8422
|
margin: 0;
|
|
@@ -8404,11 +8442,11 @@ var StyledRadio = import_styled_components51.default.input`
|
|
|
8404
8442
|
transform: scale(1);
|
|
8405
8443
|
}
|
|
8406
8444
|
`;
|
|
8407
|
-
var disabledStyle2 =
|
|
8445
|
+
var disabledStyle2 = import_styled_components52.css`
|
|
8408
8446
|
cursor: not-allowed;
|
|
8409
8447
|
opacity: 0.5;
|
|
8410
8448
|
`;
|
|
8411
|
-
var errorStyle =
|
|
8449
|
+
var errorStyle = import_styled_components52.css`
|
|
8412
8450
|
/* TODO Lamp to design error state */
|
|
8413
8451
|
&:hover,
|
|
8414
8452
|
&:focus,
|
|
@@ -8416,11 +8454,11 @@ var errorStyle = import_styled_components51.css`
|
|
|
8416
8454
|
border-color: transparent !important;
|
|
8417
8455
|
}
|
|
8418
8456
|
`;
|
|
8419
|
-
var defaultHoverStyle =
|
|
8457
|
+
var defaultHoverStyle = import_styled_components52.css`
|
|
8420
8458
|
/* TODO Lamp to design hover state */
|
|
8421
8459
|
cursor: pointer;
|
|
8422
8460
|
`;
|
|
8423
|
-
var StyledRadioWrapper =
|
|
8461
|
+
var StyledRadioWrapper = import_styled_components52.default.div`
|
|
8424
8462
|
align-items: baseline;
|
|
8425
8463
|
border: 1px solid transparent;
|
|
8426
8464
|
border-radius: 4px;
|
|
@@ -8500,11 +8538,11 @@ Radio.displayName = "Radio";
|
|
|
8500
8538
|
|
|
8501
8539
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
8502
8540
|
var import_react41 = require("react");
|
|
8503
|
-
var
|
|
8541
|
+
var import_styled_components53 = __toESM(require("styled-components"));
|
|
8504
8542
|
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
8505
8543
|
var import_type_guards30 = require("@wistia/type-guards");
|
|
8506
8544
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
8507
|
-
var StyledSegmentedControl = (0,
|
|
8545
|
+
var StyledSegmentedControl = (0, import_styled_components53.default)(import_react_toggle_group.Root)`
|
|
8508
8546
|
display: inline-flex;
|
|
8509
8547
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
8510
8548
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8545,11 +8583,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
8545
8583
|
|
|
8546
8584
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
8547
8585
|
var import_react42 = require("react");
|
|
8548
|
-
var
|
|
8586
|
+
var import_styled_components54 = __toESM(require("styled-components"));
|
|
8549
8587
|
var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
|
|
8550
8588
|
var import_type_guards31 = require("@wistia/type-guards");
|
|
8551
8589
|
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
8552
|
-
var StyledSegmentedControlItem = (0,
|
|
8590
|
+
var StyledSegmentedControlItem = (0, import_styled_components54.default)(import_react_toggle_group2.Item)`
|
|
8553
8591
|
all: unset; /* ToggleGroupItem is a button element */
|
|
8554
8592
|
align-items: center;
|
|
8555
8593
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8631,10 +8669,10 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
|
8631
8669
|
|
|
8632
8670
|
// src/components/Tag/Tag.tsx
|
|
8633
8671
|
var import_react43 = require("react");
|
|
8634
|
-
var
|
|
8672
|
+
var import_styled_components55 = __toESM(require("styled-components"));
|
|
8635
8673
|
var import_type_guards32 = require("@wistia/type-guards");
|
|
8636
8674
|
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
8637
|
-
var TagLabel =
|
|
8675
|
+
var TagLabel = import_styled_components55.default.a`
|
|
8638
8676
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8639
8677
|
font-size: var(--wui-typography-label-4-size);
|
|
8640
8678
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8662,14 +8700,14 @@ var TagLabel = import_styled_components54.default.a`
|
|
|
8662
8700
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8663
8701
|
}
|
|
8664
8702
|
`;
|
|
8665
|
-
var TagDivider =
|
|
8703
|
+
var TagDivider = import_styled_components55.default.div`
|
|
8666
8704
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8667
8705
|
border-left: 1px solid var(--wui-color-border);
|
|
8668
8706
|
display: flex;
|
|
8669
8707
|
height: 14px;
|
|
8670
8708
|
width: 1px;
|
|
8671
8709
|
`;
|
|
8672
|
-
var StyledRemoveButton =
|
|
8710
|
+
var StyledRemoveButton = import_styled_components55.default.button`
|
|
8673
8711
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8674
8712
|
all: unset;
|
|
8675
8713
|
cursor: pointer;
|
|
@@ -8697,13 +8735,17 @@ var StyledRemoveButton = import_styled_components54.default.button`
|
|
|
8697
8735
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8698
8736
|
}
|
|
8699
8737
|
`;
|
|
8700
|
-
var StyledTag =
|
|
8738
|
+
var StyledTag = import_styled_components55.default.div`
|
|
8701
8739
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8702
8740
|
align-items: center;
|
|
8703
8741
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
8704
8742
|
border-radius: var(--wui-border-radius-01);
|
|
8705
8743
|
display: inline-flex;
|
|
8706
8744
|
overflow: hidden;
|
|
8745
|
+
|
|
8746
|
+
> * {
|
|
8747
|
+
transition: background var(--wui-duration-01) var(--wui-motion-ease);
|
|
8748
|
+
}
|
|
8707
8749
|
`;
|
|
8708
8750
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
8709
8751
|
if ((0, import_type_guards32.isNil)(onClickRemove)) {
|
|
@@ -8771,16 +8813,16 @@ Tag.displayName = "Tag";
|
|
|
8771
8813
|
|
|
8772
8814
|
// src/components/Tooltip/Tooltip.tsx
|
|
8773
8815
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
8774
|
-
var
|
|
8816
|
+
var import_styled_components56 = __toESM(require("styled-components"));
|
|
8775
8817
|
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
8776
|
-
var CompactTooltipStyles =
|
|
8818
|
+
var CompactTooltipStyles = import_styled_components56.css`
|
|
8777
8819
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8778
8820
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8779
8821
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8780
8822
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8781
8823
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8782
8824
|
`;
|
|
8783
|
-
var StyledContent = (0,
|
|
8825
|
+
var StyledContent = (0, import_styled_components56.default)(import_react_tooltip2.Content)`
|
|
8784
8826
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8785
8827
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8786
8828
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8875,7 +8917,7 @@ var Tooltip = ({
|
|
|
8875
8917
|
Tooltip.displayName = "Tooltip";
|
|
8876
8918
|
|
|
8877
8919
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8878
|
-
var
|
|
8920
|
+
var import_styled_components57 = __toESM(require("styled-components"));
|
|
8879
8921
|
var import_type_guards33 = require("@wistia/type-guards");
|
|
8880
8922
|
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
8881
8923
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
@@ -8917,7 +8959,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8917
8959
|
}
|
|
8918
8960
|
return "0 0 144 31.47";
|
|
8919
8961
|
};
|
|
8920
|
-
var WistiaLogoComponent =
|
|
8962
|
+
var WistiaLogoComponent = import_styled_components57.default.svg`
|
|
8921
8963
|
height: ${({ height }) => `${height}px`};
|
|
8922
8964
|
|
|
8923
8965
|
/* ensure it will always fit on mobile */
|
|
@@ -8983,9 +9025,9 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
8983
9025
|
// src/components/Select/Select.tsx
|
|
8984
9026
|
var import_react_select = require("@radix-ui/react-select");
|
|
8985
9027
|
var import_react44 = require("react");
|
|
8986
|
-
var
|
|
9028
|
+
var import_styled_components58 = __toESM(require("styled-components"));
|
|
8987
9029
|
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
8988
|
-
var StyledTrigger = (0,
|
|
9030
|
+
var StyledTrigger = (0, import_styled_components58.default)(import_react_select.Trigger)`
|
|
8989
9031
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8990
9032
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
8991
9033
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -9026,7 +9068,7 @@ var StyledTrigger = (0, import_styled_components57.default)(import_react_select.
|
|
|
9026
9068
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
9027
9069
|
}
|
|
9028
9070
|
`;
|
|
9029
|
-
var StyledContent2 = (0,
|
|
9071
|
+
var StyledContent2 = (0, import_styled_components58.default)(import_react_select.Content)`
|
|
9030
9072
|
--wui-select-content-border: var(--wui-color-border);
|
|
9031
9073
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
9032
9074
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -9092,9 +9134,9 @@ Select.displayName = "Select";
|
|
|
9092
9134
|
// src/components/Select/SelectOption.tsx
|
|
9093
9135
|
var import_react_select2 = require("@radix-ui/react-select");
|
|
9094
9136
|
var import_react45 = require("react");
|
|
9095
|
-
var
|
|
9137
|
+
var import_styled_components59 = __toESM(require("styled-components"));
|
|
9096
9138
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
9097
|
-
var StyledItem = (0,
|
|
9139
|
+
var StyledItem = (0, import_styled_components59.default)(import_react_select2.Item)`
|
|
9098
9140
|
${variantStyleMap2.body3};
|
|
9099
9141
|
display: flex;
|
|
9100
9142
|
padding: var(--wui-select-option-padding);
|
|
@@ -9117,7 +9159,7 @@ var StyledItem = (0, import_styled_components58.default)(import_react_select2.It
|
|
|
9117
9159
|
background-color: transparent;
|
|
9118
9160
|
}
|
|
9119
9161
|
`;
|
|
9120
|
-
var StyledIconContainer =
|
|
9162
|
+
var StyledIconContainer = import_styled_components59.default.span`
|
|
9121
9163
|
width: 12px;
|
|
9122
9164
|
`;
|
|
9123
9165
|
var SelectOption = (0, import_react45.forwardRef)(
|
|
@@ -9145,9 +9187,9 @@ SelectOption.displayName = "Option";
|
|
|
9145
9187
|
|
|
9146
9188
|
// src/components/Select/SelectOptionGroup.tsx
|
|
9147
9189
|
var import_react_select3 = require("@radix-ui/react-select");
|
|
9148
|
-
var
|
|
9190
|
+
var import_styled_components60 = __toESM(require("styled-components"));
|
|
9149
9191
|
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
9150
|
-
var StyledLabel3 = (0,
|
|
9192
|
+
var StyledLabel3 = (0, import_styled_components60.default)(import_react_select3.Label)`
|
|
9151
9193
|
padding: var(--wui-select-option-padding);
|
|
9152
9194
|
`;
|
|
9153
9195
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
@@ -9163,6 +9205,176 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
|
9163
9205
|
children
|
|
9164
9206
|
] });
|
|
9165
9207
|
};
|
|
9208
|
+
|
|
9209
|
+
// src/components/DataCards/DataCard.tsx
|
|
9210
|
+
var import_styled_components61 = __toESM(require("styled-components"));
|
|
9211
|
+
var import_type_guards34 = require("@wistia/type-guards");
|
|
9212
|
+
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
9213
|
+
var StyledDataCard = import_styled_components61.default.div`
|
|
9214
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
9215
|
+
display: grid;
|
|
9216
|
+
grid-template-areas: 'label slot' 'value value';
|
|
9217
|
+
grid-template-rows: auto auto;
|
|
9218
|
+
grid-template-columns: auto auto;
|
|
9219
|
+
gap: var(--wui-space-01);
|
|
9220
|
+
padding: var(--wui-space-03);
|
|
9221
|
+
background: var(--wui-color-bg-surface-secondary);
|
|
9222
|
+
flex: 1;
|
|
9223
|
+
border-radius: var(--wui-border-radius-02);
|
|
9224
|
+
position: relative;
|
|
9225
|
+
`;
|
|
9226
|
+
var shimmer = import_styled_components61.keyframes`
|
|
9227
|
+
0% {
|
|
9228
|
+
background-position: 200% 0;
|
|
9229
|
+
}
|
|
9230
|
+
100% {
|
|
9231
|
+
background-position: -200% 0;
|
|
9232
|
+
}
|
|
9233
|
+
`;
|
|
9234
|
+
var LoadingBackground = import_styled_components61.default.div`
|
|
9235
|
+
background: linear-gradient(
|
|
9236
|
+
90deg,
|
|
9237
|
+
var(--wui-color-bg-surface-tertiary) 25%,
|
|
9238
|
+
var(--wui-color-bg-surface-secondary) 37%,
|
|
9239
|
+
var(--wui-color-bg-surface-tertiary) 63%
|
|
9240
|
+
);
|
|
9241
|
+
background-size: 200% 100%;
|
|
9242
|
+
animation: ${shimmer} 1.5s infinite;
|
|
9243
|
+
border-radius: var(--wui-border-radius-01);
|
|
9244
|
+
`;
|
|
9245
|
+
var StyledLoadingLabel = (0, import_styled_components61.default)(LoadingBackground)`
|
|
9246
|
+
width: 80px;
|
|
9247
|
+
height: var(--wui-typography-heading-6-line-height);
|
|
9248
|
+
`;
|
|
9249
|
+
var StyledLoadingValue = (0, import_styled_components61.default)(LoadingBackground)`
|
|
9250
|
+
width: 90%;
|
|
9251
|
+
height: var(--wui-typography-heading-3-line-height);
|
|
9252
|
+
`;
|
|
9253
|
+
var StyledLabel4 = (0, import_styled_components61.default)(Heading)`
|
|
9254
|
+
grid-area: label;
|
|
9255
|
+
`;
|
|
9256
|
+
var StyledValue = (0, import_styled_components61.default)(Heading)`
|
|
9257
|
+
grid-area: value;
|
|
9258
|
+
`;
|
|
9259
|
+
var StyledSlot = import_styled_components61.default.div`
|
|
9260
|
+
display: flex;
|
|
9261
|
+
justify-content: flex-end;
|
|
9262
|
+
grid-area: slot;
|
|
9263
|
+
align-self: center;
|
|
9264
|
+
`;
|
|
9265
|
+
var StyledDataCardTrendContainer = import_styled_components61.default.div`
|
|
9266
|
+
position: absolute;
|
|
9267
|
+
bottom: var(--wui-space-01);
|
|
9268
|
+
right: var(--wui-space-01);
|
|
9269
|
+
`;
|
|
9270
|
+
var DataCard = ({
|
|
9271
|
+
label,
|
|
9272
|
+
value,
|
|
9273
|
+
upperRightSlot,
|
|
9274
|
+
colorScheme = "inherit",
|
|
9275
|
+
isLoading = false,
|
|
9276
|
+
trend,
|
|
9277
|
+
...props
|
|
9278
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime211.jsxs)(
|
|
9279
|
+
StyledDataCard,
|
|
9280
|
+
{
|
|
9281
|
+
$colorScheme: colorScheme,
|
|
9282
|
+
...props,
|
|
9283
|
+
children: [
|
|
9284
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
9285
|
+
StyledLabel4,
|
|
9286
|
+
{
|
|
9287
|
+
renderAs: "dt",
|
|
9288
|
+
variant: "heading6",
|
|
9289
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(StyledLoadingLabel, {}) : label
|
|
9290
|
+
}
|
|
9291
|
+
),
|
|
9292
|
+
/* @__PURE__ */ (0, import_jsx_runtime211.jsx)(
|
|
9293
|
+
StyledValue,
|
|
9294
|
+
{
|
|
9295
|
+
renderAs: "dd",
|
|
9296
|
+
variant: "heading3",
|
|
9297
|
+
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(StyledLoadingValue, {}) : value
|
|
9298
|
+
}
|
|
9299
|
+
),
|
|
9300
|
+
(0, import_type_guards34.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(StyledSlot, { children: upperRightSlot }),
|
|
9301
|
+
(0, import_type_guards34.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(StyledDataCardTrendContainer, { children: trend })
|
|
9302
|
+
]
|
|
9303
|
+
}
|
|
9304
|
+
);
|
|
9305
|
+
DataCard.displayName = "DataCard";
|
|
9306
|
+
|
|
9307
|
+
// src/components/DataCards/DataCards.tsx
|
|
9308
|
+
var import_styled_components62 = __toESM(require("styled-components"));
|
|
9309
|
+
var import_type_guards35 = require("@wistia/type-guards");
|
|
9310
|
+
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
9311
|
+
var StyledDataCards = (0, import_styled_components62.default)(Box)`
|
|
9312
|
+
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9313
|
+
> * {
|
|
9314
|
+
min-width: 120px;
|
|
9315
|
+
max-width: ${({ $cardMaxWidth }) => (0, import_type_guards35.isNotUndefined)($cardMaxWidth) ? `${$cardMaxWidth}px` : "none"};
|
|
9316
|
+
}
|
|
9317
|
+
`;
|
|
9318
|
+
var DataCards = ({
|
|
9319
|
+
children,
|
|
9320
|
+
cardMaxWidth,
|
|
9321
|
+
colorScheme = "inherit",
|
|
9322
|
+
...props
|
|
9323
|
+
}) => {
|
|
9324
|
+
return /* @__PURE__ */ (0, import_jsx_runtime212.jsx)(
|
|
9325
|
+
StyledDataCards,
|
|
9326
|
+
{
|
|
9327
|
+
...props,
|
|
9328
|
+
$cardMaxWidth: cardMaxWidth,
|
|
9329
|
+
$colorScheme: colorScheme,
|
|
9330
|
+
direction: "row",
|
|
9331
|
+
fill: "horizontal",
|
|
9332
|
+
gap: "space-02",
|
|
9333
|
+
renderAs: "dl",
|
|
9334
|
+
wrapItems: true,
|
|
9335
|
+
children
|
|
9336
|
+
}
|
|
9337
|
+
);
|
|
9338
|
+
};
|
|
9339
|
+
DataCards.displayName = "DataCards";
|
|
9340
|
+
|
|
9341
|
+
// src/components/DataCards/DataCardTrend.tsx
|
|
9342
|
+
var import_styled_components63 = __toESM(require("styled-components"));
|
|
9343
|
+
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
9344
|
+
var StyledDataCardTrend = import_styled_components63.default.div`
|
|
9345
|
+
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
9346
|
+
background: var(--wui-color-bg-app);
|
|
9347
|
+
border-radius: var(--wui-border-radius-rounded);
|
|
9348
|
+
padding: var(--wui-space-01);
|
|
9349
|
+
display: flex;
|
|
9350
|
+
align-items: center;
|
|
9351
|
+
gap: 2px;
|
|
9352
|
+
`;
|
|
9353
|
+
var DataCardTrend = ({
|
|
9354
|
+
direction = "up",
|
|
9355
|
+
outlook = "positive",
|
|
9356
|
+
children,
|
|
9357
|
+
...props
|
|
9358
|
+
}) => {
|
|
9359
|
+
return /* @__PURE__ */ (0, import_jsx_runtime213.jsxs)(StyledDataCardTrend, { $outlook: outlook, children: [
|
|
9360
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
9361
|
+
Icon,
|
|
9362
|
+
{
|
|
9363
|
+
size: "md",
|
|
9364
|
+
type: direction === "up" ? "arrow-up" : "arrow-down",
|
|
9365
|
+
...props
|
|
9366
|
+
}
|
|
9367
|
+
),
|
|
9368
|
+
/* @__PURE__ */ (0, import_jsx_runtime213.jsx)(
|
|
9369
|
+
Text,
|
|
9370
|
+
{
|
|
9371
|
+
prominence: "secondary",
|
|
9372
|
+
variant: "label4",
|
|
9373
|
+
children
|
|
9374
|
+
}
|
|
9375
|
+
)
|
|
9376
|
+
] });
|
|
9377
|
+
};
|
|
9166
9378
|
// Annotate the CommonJS export names for ESM import in node:
|
|
9167
9379
|
0 && (module.exports = {
|
|
9168
9380
|
ActionButton,
|
|
@@ -9178,6 +9390,9 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
|
9178
9390
|
CheckboxGroup,
|
|
9179
9391
|
CheckboxMenuItem,
|
|
9180
9392
|
ColorSchemeWrapper,
|
|
9393
|
+
DataCard,
|
|
9394
|
+
DataCardTrend,
|
|
9395
|
+
DataCards,
|
|
9181
9396
|
Divider,
|
|
9182
9397
|
Ellipsis,
|
|
9183
9398
|
Form,
|