@wistia/ui 0.4.13 → 0.4.14-beta.cc27c56e.8430551
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 +736 -331
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +23 -1
- package/dist/index.d.ts +23 -1
- package/dist/index.mjs +523 -119
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -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.cc27c56e.8430551
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -92,6 +92,7 @@ __export(index_exports, {
|
|
|
92
92
|
WistiaLogo: () => WistiaLogo,
|
|
93
93
|
colorSchemeOptions: () => colorSchemeOptions,
|
|
94
94
|
copyToClipboard: () => copyToClipboard,
|
|
95
|
+
dateTime: () => dateTime,
|
|
95
96
|
ellipsisFlexParentStyle: () => ellipsisFlexParentStyle,
|
|
96
97
|
ellipsisStyle: () => ellipsisStyle,
|
|
97
98
|
iconSizeMap: () => iconSizeMap,
|
|
@@ -111,7 +112,7 @@ module.exports = __toCommonJS(index_exports);
|
|
|
111
112
|
var import_react_tooltip = require("@radix-ui/react-tooltip");
|
|
112
113
|
|
|
113
114
|
// src/css/GlobalStyle.tsx
|
|
114
|
-
var
|
|
115
|
+
var import_styled_components12 = require("styled-components");
|
|
115
116
|
|
|
116
117
|
// src/css/resetCss.tsx
|
|
117
118
|
var import_styled_components = require("styled-components");
|
|
@@ -248,7 +249,7 @@ var globalStyleAdjustmentsCss = import_styled_components2.css`
|
|
|
248
249
|
`;
|
|
249
250
|
|
|
250
251
|
// src/css/designTokens/index.tsx
|
|
251
|
-
var
|
|
252
|
+
var import_styled_components11 = require("styled-components");
|
|
252
253
|
|
|
253
254
|
// src/css/designTokens/colorGlobal.tsx
|
|
254
255
|
var import_styled_components3 = require("styled-components");
|
|
@@ -1218,6 +1219,7 @@ var colorAliasTokens = import_styled_components4.css`
|
|
|
1218
1219
|
--wui-color-segmented-control-checked-background: var(--wui-bg-app);
|
|
1219
1220
|
--wui-color-text-on-fill-white-selected: var(--wui-blue-9);
|
|
1220
1221
|
--wui-color-bg-tooltip: #242528;
|
|
1222
|
+
--wui-color-drop-shadow: rgb(31 51 153 / 10%);
|
|
1221
1223
|
|
|
1222
1224
|
/* --- State --- */
|
|
1223
1225
|
|
|
@@ -1385,8 +1387,45 @@ var zIndexTokens = import_styled_components8.css`
|
|
|
1385
1387
|
--wui-zindex-menu: 500;
|
|
1386
1388
|
`;
|
|
1387
1389
|
|
|
1390
|
+
// src/css/designTokens/elevation.tsx
|
|
1391
|
+
var import_styled_components9 = require("styled-components");
|
|
1392
|
+
var elevationTokens = import_styled_components9.css`
|
|
1393
|
+
--wui-elevation-01: 0px 4px 8px 0px var(--wui-color-drop-shadow);
|
|
1394
|
+
--wui-elevation-02: 0px 4px 24px 0px var(--wui-color-drop-shadow);
|
|
1395
|
+
`;
|
|
1396
|
+
|
|
1397
|
+
// src/css/designTokens/motion.tsx
|
|
1398
|
+
var import_styled_components10 = require("styled-components");
|
|
1399
|
+
var motionTokens = import_styled_components10.css`
|
|
1400
|
+
/* Durations */
|
|
1401
|
+
--wui-motion-duration-01: 70ms;
|
|
1402
|
+
--wui-motion-duration-02: 110ms;
|
|
1403
|
+
--wui-motion-duration-03: 150ms;
|
|
1404
|
+
--wui-motion-duration-04: 240ms;
|
|
1405
|
+
--wui-motion-duration-05: 400ms;
|
|
1406
|
+
--wui-motion-duration-06: 700ms;
|
|
1407
|
+
|
|
1408
|
+
@media (prefers-reduced-motion) {
|
|
1409
|
+
--wui-motion-duration-01: 0ms;
|
|
1410
|
+
--wui-motion-duration-02: 0ms;
|
|
1411
|
+
--wui-motion-duration-03: 0ms;
|
|
1412
|
+
--wui-motion-duration-04: 0ms;
|
|
1413
|
+
--wui-motion-duration-05: 0ms;
|
|
1414
|
+
--wui-motion-duration-06: 0ms;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/* Easings */
|
|
1418
|
+
|
|
1419
|
+
/* Taken from: https://polaris.shopify.com/tokens/motion */
|
|
1420
|
+
--wui-motion-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
|
|
1421
|
+
--wui-motion-ease-in: cubic-bezier(0.42, 0, 1, 1);
|
|
1422
|
+
--wui-motion-ease-out: cubic-bezier(0.19, 0.91, 0.38, 1);
|
|
1423
|
+
--wui-motion-ease-in-out: cubic-bezier(0.42, 0, 0.58, 1);
|
|
1424
|
+
--wui-motion-linear: cubic-bezier(0, 0, 1, 1);
|
|
1425
|
+
`;
|
|
1426
|
+
|
|
1388
1427
|
// src/css/designTokens/index.tsx
|
|
1389
|
-
var colorTokens =
|
|
1428
|
+
var colorTokens = import_styled_components11.css`
|
|
1390
1429
|
${lightGlobalTokens}
|
|
1391
1430
|
/* Dark mode is disabled until we have a more robust plan for supporting it */
|
|
1392
1431
|
|
|
@@ -1395,18 +1434,20 @@ var colorTokens = import_styled_components9.css`
|
|
|
1395
1434
|
} */
|
|
1396
1435
|
${colorAliasTokens}
|
|
1397
1436
|
`;
|
|
1398
|
-
var designTokens =
|
|
1437
|
+
var designTokens = import_styled_components11.css`
|
|
1399
1438
|
:root {
|
|
1439
|
+
${borderRadiusTokens}
|
|
1400
1440
|
${colorTokens}
|
|
1441
|
+
${elevationTokens}
|
|
1401
1442
|
${spacingTokens}
|
|
1402
|
-
${borderRadiusTokens}
|
|
1403
1443
|
${typographyTokens}
|
|
1404
1444
|
${zIndexTokens}
|
|
1445
|
+
${motionTokens}
|
|
1405
1446
|
}
|
|
1406
1447
|
`;
|
|
1407
1448
|
|
|
1408
1449
|
// src/css/GlobalStyle.tsx
|
|
1409
|
-
var GlobalStyle =
|
|
1450
|
+
var GlobalStyle = import_styled_components12.createGlobalStyle`
|
|
1410
1451
|
${resetCss}
|
|
1411
1452
|
${globalStyleAdjustmentsCss}
|
|
1412
1453
|
${designTokens}
|
|
@@ -1520,6 +1561,363 @@ var copyToClipboard = async (textToCopy) => {
|
|
|
1520
1561
|
});
|
|
1521
1562
|
};
|
|
1522
1563
|
|
|
1564
|
+
// src/helpers/dateTime/constants.ts
|
|
1565
|
+
var defaultLocales = ["en-US"];
|
|
1566
|
+
var defaultTimeZone = Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC";
|
|
1567
|
+
var secondsInMinute = 60;
|
|
1568
|
+
var minutesInHour = 60;
|
|
1569
|
+
var halfAnHourInMinutes = 30;
|
|
1570
|
+
var hoursInDay = 24;
|
|
1571
|
+
var milisecondsInSecond = 1e3;
|
|
1572
|
+
var millisecondsInDay = hoursInDay * minutesInHour * secondsInMinute * milisecondsInSecond;
|
|
1573
|
+
|
|
1574
|
+
// src/helpers/dateTime/buildTimeDuration.ts
|
|
1575
|
+
var buildTimeDuration = (numberOfMilliseconds) => {
|
|
1576
|
+
const numberOfSeconds = Math.floor(numberOfMilliseconds / milisecondsInSecond);
|
|
1577
|
+
const numberOfMinutes = Math.floor(numberOfSeconds / secondsInMinute);
|
|
1578
|
+
const numberOfHours = Math.floor(numberOfMinutes / minutesInHour);
|
|
1579
|
+
const seconds = numberOfSeconds - numberOfMinutes * secondsInMinute;
|
|
1580
|
+
const minutes = numberOfMinutes - numberOfHours * minutesInHour;
|
|
1581
|
+
return { seconds, minutes, hours: numberOfHours };
|
|
1582
|
+
};
|
|
1583
|
+
|
|
1584
|
+
// src/helpers/dateTime/isDate.ts
|
|
1585
|
+
var isDate = (date) => date instanceof Date;
|
|
1586
|
+
|
|
1587
|
+
// src/helpers/dateTime/isInvalidDate.ts
|
|
1588
|
+
var isInvalidDate = (date) => {
|
|
1589
|
+
if (!isDate(date)) {
|
|
1590
|
+
return true;
|
|
1591
|
+
}
|
|
1592
|
+
const time = date.getTime();
|
|
1593
|
+
return time === 0 || Number.isNaN(time);
|
|
1594
|
+
};
|
|
1595
|
+
|
|
1596
|
+
// src/helpers/dateTime/dateOnlyISOString.ts
|
|
1597
|
+
var dateOnlyISOString = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
1598
|
+
if (!isDate(date) || isInvalidDate(date)) {
|
|
1599
|
+
return "";
|
|
1600
|
+
}
|
|
1601
|
+
try {
|
|
1602
|
+
const formatter = new Intl.DateTimeFormat(defaultLocales, {
|
|
1603
|
+
year: "numeric",
|
|
1604
|
+
month: "2-digit",
|
|
1605
|
+
day: "2-digit",
|
|
1606
|
+
timeZone
|
|
1607
|
+
});
|
|
1608
|
+
const parts = formatter.formatToParts(date);
|
|
1609
|
+
const partsAsObject = parts.reduce(
|
|
1610
|
+
(map, obj) => {
|
|
1611
|
+
map[obj.type] = obj.value;
|
|
1612
|
+
return map;
|
|
1613
|
+
},
|
|
1614
|
+
{}
|
|
1615
|
+
);
|
|
1616
|
+
return `${partsAsObject.year}-${partsAsObject.month}-${partsAsObject.day}`;
|
|
1617
|
+
} catch (error) {
|
|
1618
|
+
console.error(error);
|
|
1619
|
+
return "";
|
|
1620
|
+
}
|
|
1621
|
+
};
|
|
1622
|
+
|
|
1623
|
+
// src/helpers/dateTime/dateOnlyString.ts
|
|
1624
|
+
var dateOnlyString = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
1625
|
+
if (!isDate(date) || isInvalidDate(date)) {
|
|
1626
|
+
return "";
|
|
1627
|
+
}
|
|
1628
|
+
try {
|
|
1629
|
+
return new Intl.DateTimeFormat(defaultLocales, {
|
|
1630
|
+
dateStyle: "medium",
|
|
1631
|
+
timeZone
|
|
1632
|
+
}).format(date);
|
|
1633
|
+
} catch (error) {
|
|
1634
|
+
console.error(error);
|
|
1635
|
+
return "";
|
|
1636
|
+
}
|
|
1637
|
+
};
|
|
1638
|
+
|
|
1639
|
+
// src/helpers/dateTime/dateOnlyStringForSentence.ts
|
|
1640
|
+
var dateOnlyStringForSentence = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
1641
|
+
if (!isDate(date) || isInvalidDate(date)) {
|
|
1642
|
+
return "";
|
|
1643
|
+
}
|
|
1644
|
+
try {
|
|
1645
|
+
return new Intl.DateTimeFormat(defaultLocales, {
|
|
1646
|
+
dateStyle: "long",
|
|
1647
|
+
timeZone
|
|
1648
|
+
}).format(date);
|
|
1649
|
+
} catch (error) {
|
|
1650
|
+
console.error(error);
|
|
1651
|
+
return "";
|
|
1652
|
+
}
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
// src/helpers/dateTime/dateOnlyStringNumeric.ts
|
|
1656
|
+
var dateOnlyStringNumeric = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
1657
|
+
if (!isDate(date) || isInvalidDate(date)) {
|
|
1658
|
+
return "";
|
|
1659
|
+
}
|
|
1660
|
+
try {
|
|
1661
|
+
return new Intl.DateTimeFormat(defaultLocales, {
|
|
1662
|
+
year: "numeric",
|
|
1663
|
+
month: "2-digit",
|
|
1664
|
+
day: "2-digit",
|
|
1665
|
+
timeZone
|
|
1666
|
+
}).format(date);
|
|
1667
|
+
} catch (error) {
|
|
1668
|
+
console.error(error);
|
|
1669
|
+
return "";
|
|
1670
|
+
}
|
|
1671
|
+
};
|
|
1672
|
+
|
|
1673
|
+
// src/helpers/dateTime/dateTimeToDate.ts
|
|
1674
|
+
var dateTimeToDate = (dateTime2) => {
|
|
1675
|
+
const { year, month, dayOfMonth, hours, minutes } = dateTime2 ?? {};
|
|
1676
|
+
if (year !== void 0 && month !== void 0 && dayOfMonth !== void 0) {
|
|
1677
|
+
return new Date(year, month, dayOfMonth, hours ?? 0, minutes ?? 0);
|
|
1678
|
+
}
|
|
1679
|
+
return null;
|
|
1680
|
+
};
|
|
1681
|
+
|
|
1682
|
+
// src/helpers/dateTime/dateToDateTime.ts
|
|
1683
|
+
var dateToDateTime = (date) => {
|
|
1684
|
+
if (!isDate(date)) {
|
|
1685
|
+
return null;
|
|
1686
|
+
}
|
|
1687
|
+
return {
|
|
1688
|
+
year: date.getFullYear(),
|
|
1689
|
+
month: date.getMonth(),
|
|
1690
|
+
dayOfMonth: date.getDate(),
|
|
1691
|
+
hours: date.getHours(),
|
|
1692
|
+
minutes: date.getMinutes()
|
|
1693
|
+
};
|
|
1694
|
+
};
|
|
1695
|
+
|
|
1696
|
+
// src/helpers/dateTime/dateTimeToISO.ts
|
|
1697
|
+
var dateTimeToISO = (dateTime2) => dateTimeToDate(dateTime2)?.toISOString() ?? null;
|
|
1698
|
+
|
|
1699
|
+
// src/helpers/dateTime/dateTimeRounded.ts
|
|
1700
|
+
var dateTimeRounded = (dateTime2, toISOString = true) => {
|
|
1701
|
+
const first30Min = dateTime2.getMinutes() <= halfAnHourInMinutes;
|
|
1702
|
+
const hours = first30Min ? dateTime2.getHours() : dateTime2.getHours() + 1;
|
|
1703
|
+
const minutes = first30Min ? halfAnHourInMinutes : 0;
|
|
1704
|
+
const dateWithTime = {
|
|
1705
|
+
...dateToDateTime(dateTime2),
|
|
1706
|
+
hours,
|
|
1707
|
+
minutes
|
|
1708
|
+
};
|
|
1709
|
+
if (toISOString) {
|
|
1710
|
+
return dateTimeToISO(dateWithTime);
|
|
1711
|
+
}
|
|
1712
|
+
return dateTimeToDate(dateWithTime);
|
|
1713
|
+
};
|
|
1714
|
+
|
|
1715
|
+
// src/helpers/dateTime/dateTimeString.ts
|
|
1716
|
+
var import_type_guards3 = require("@wistia/type-guards");
|
|
1717
|
+
var dateTimeString = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
1718
|
+
if ((0, import_type_guards3.isNil)(date)) {
|
|
1719
|
+
return "";
|
|
1720
|
+
}
|
|
1721
|
+
const formattedDate = new Date(date);
|
|
1722
|
+
if (isInvalidDate(formattedDate)) {
|
|
1723
|
+
return "";
|
|
1724
|
+
}
|
|
1725
|
+
try {
|
|
1726
|
+
return new Intl.DateTimeFormat(defaultLocales, {
|
|
1727
|
+
dateStyle: "medium",
|
|
1728
|
+
timeStyle: "short",
|
|
1729
|
+
timeZone
|
|
1730
|
+
}).format(formattedDate);
|
|
1731
|
+
} catch (error) {
|
|
1732
|
+
console.error(error);
|
|
1733
|
+
return "";
|
|
1734
|
+
}
|
|
1735
|
+
};
|
|
1736
|
+
|
|
1737
|
+
// src/helpers/dateTime/dateTimeStringForSentence.ts
|
|
1738
|
+
var dateTimeStringForSentence = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
1739
|
+
if (!isDate(date) || isInvalidDate(date)) {
|
|
1740
|
+
return "";
|
|
1741
|
+
}
|
|
1742
|
+
try {
|
|
1743
|
+
const { year, month, day, hour, minute, dayPeriod } = new Intl.DateTimeFormat(defaultLocales, {
|
|
1744
|
+
month: "long",
|
|
1745
|
+
day: "numeric",
|
|
1746
|
+
year: "numeric",
|
|
1747
|
+
hour: "numeric",
|
|
1748
|
+
minute: "2-digit",
|
|
1749
|
+
timeZone
|
|
1750
|
+
}).formatToParts(date).reduce((acc, part) => {
|
|
1751
|
+
if (part.type !== "literal") {
|
|
1752
|
+
acc[part.type] = part.value;
|
|
1753
|
+
}
|
|
1754
|
+
return acc;
|
|
1755
|
+
}, {});
|
|
1756
|
+
return `${month} ${day}, ${year}, ${hour}:${minute} ${dayPeriod}`;
|
|
1757
|
+
} catch (error) {
|
|
1758
|
+
console.error(error);
|
|
1759
|
+
return "";
|
|
1760
|
+
}
|
|
1761
|
+
};
|
|
1762
|
+
|
|
1763
|
+
// src/helpers/dateTime/dateUTCOffset.ts
|
|
1764
|
+
var dateUTCOffset = (date) => {
|
|
1765
|
+
const offsetInHours = date.getTimezoneOffset() / minutesInHour * -1;
|
|
1766
|
+
const hours = Math.round(offsetInHours);
|
|
1767
|
+
const minutes = (offsetInHours - hours) * minutesInHour;
|
|
1768
|
+
const prefix = hours >= 0 ? "+" : "";
|
|
1769
|
+
const hoursString = `${hours}`.padStart(2, "0");
|
|
1770
|
+
const minutesString = `${minutes}`.padStart(2, "0");
|
|
1771
|
+
return `${prefix}${hoursString}:${minutesString}`;
|
|
1772
|
+
};
|
|
1773
|
+
|
|
1774
|
+
// src/helpers/dateTime/dayOfWeekString.ts
|
|
1775
|
+
var dayOfWeekString = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
1776
|
+
if (date === null) {
|
|
1777
|
+
return "";
|
|
1778
|
+
}
|
|
1779
|
+
try {
|
|
1780
|
+
return new Intl.DateTimeFormat(defaultLocales, {
|
|
1781
|
+
weekday: "long",
|
|
1782
|
+
timeZone
|
|
1783
|
+
}).format(date);
|
|
1784
|
+
} catch (error) {
|
|
1785
|
+
console.error(error);
|
|
1786
|
+
return "";
|
|
1787
|
+
}
|
|
1788
|
+
};
|
|
1789
|
+
|
|
1790
|
+
// src/helpers/dateTime/padTimeInteger.ts
|
|
1791
|
+
var padTimeInteger = (num) => num.toString().padStart(2, "0");
|
|
1792
|
+
|
|
1793
|
+
// src/helpers/dateTime/mediaDurationString.ts
|
|
1794
|
+
var mediaDurationString = (numberOfMilliseconds) => {
|
|
1795
|
+
const { hours, minutes, seconds } = buildTimeDuration(numberOfMilliseconds);
|
|
1796
|
+
if (hours < 1) {
|
|
1797
|
+
return `${minutes}:${padTimeInteger(seconds)}`;
|
|
1798
|
+
}
|
|
1799
|
+
return `${hours}:${padTimeInteger(minutes)}:${padTimeInteger(seconds)}`;
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
// src/helpers/dateTime/millisecondsToDurationISOString.ts
|
|
1803
|
+
var millisecondsToDurationISOString = (numberOfMilliseconds) => {
|
|
1804
|
+
const { seconds, minutes, hours } = buildTimeDuration(numberOfMilliseconds);
|
|
1805
|
+
let string = "PT";
|
|
1806
|
+
if (hours) {
|
|
1807
|
+
string += `${hours}H`;
|
|
1808
|
+
}
|
|
1809
|
+
if (minutes) {
|
|
1810
|
+
string += `${minutes}M`;
|
|
1811
|
+
}
|
|
1812
|
+
if (seconds) {
|
|
1813
|
+
string += `${seconds}S`;
|
|
1814
|
+
}
|
|
1815
|
+
if (!(seconds || minutes || hours)) {
|
|
1816
|
+
string += "0S";
|
|
1817
|
+
}
|
|
1818
|
+
return string;
|
|
1819
|
+
};
|
|
1820
|
+
|
|
1821
|
+
// src/helpers/dateTime/monthDayStringNumeric.ts
|
|
1822
|
+
var monthDayStringNumeric = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
1823
|
+
if (!isDate(date) || isInvalidDate(date)) {
|
|
1824
|
+
return "";
|
|
1825
|
+
}
|
|
1826
|
+
try {
|
|
1827
|
+
return new Intl.DateTimeFormat(defaultLocales, {
|
|
1828
|
+
month: "2-digit",
|
|
1829
|
+
day: "2-digit",
|
|
1830
|
+
timeZone
|
|
1831
|
+
}).format(date);
|
|
1832
|
+
} catch (error) {
|
|
1833
|
+
console.error(error);
|
|
1834
|
+
return "";
|
|
1835
|
+
}
|
|
1836
|
+
};
|
|
1837
|
+
|
|
1838
|
+
// src/helpers/dateTime/sessionDurationString.ts
|
|
1839
|
+
var sessionDurationString = (numberOfMilliseconds) => {
|
|
1840
|
+
const { hours, minutes, seconds } = buildTimeDuration(numberOfMilliseconds);
|
|
1841
|
+
return `${hours}:${padTimeInteger(minutes)}:${padTimeInteger(seconds)}`;
|
|
1842
|
+
};
|
|
1843
|
+
|
|
1844
|
+
// src/helpers/dateTime/timeAgoString.ts
|
|
1845
|
+
var import_date_fns = require("date-fns");
|
|
1846
|
+
var timeAgoString = (date, { nowAnchor = /* @__PURE__ */ new Date() } = {}) => {
|
|
1847
|
+
if (isInvalidDate(date)) {
|
|
1848
|
+
return "";
|
|
1849
|
+
}
|
|
1850
|
+
const minutesAgo = (nowAnchor.valueOf() - date.valueOf()) / (secondsInMinute * milisecondsInSecond);
|
|
1851
|
+
const minutesAgoRounded = Math.round(minutesAgo);
|
|
1852
|
+
const differenceInDays = (0, import_date_fns.differenceInCalendarDays)(nowAnchor, date);
|
|
1853
|
+
if (minutesAgo < 0) {
|
|
1854
|
+
return dateTimeString(date);
|
|
1855
|
+
}
|
|
1856
|
+
if (minutesAgo < 1) {
|
|
1857
|
+
return "< 1 minute ago";
|
|
1858
|
+
}
|
|
1859
|
+
if (minutesAgoRounded < 2) {
|
|
1860
|
+
return "1 minute ago";
|
|
1861
|
+
}
|
|
1862
|
+
if (minutesAgoRounded <= minutesInHour) {
|
|
1863
|
+
return `${minutesAgoRounded} minutes ago`;
|
|
1864
|
+
}
|
|
1865
|
+
if (differenceInDays === 0) {
|
|
1866
|
+
return `Today, ${Intl.DateTimeFormat(defaultLocales, { timeStyle: "short" }).format(date)}`;
|
|
1867
|
+
}
|
|
1868
|
+
if (differenceInDays === 1) {
|
|
1869
|
+
return `Yesterday, ${Intl.DateTimeFormat(defaultLocales, { timeStyle: "short" }).format(date)}`;
|
|
1870
|
+
}
|
|
1871
|
+
if (date.getFullYear() === nowAnchor.getFullYear()) {
|
|
1872
|
+
return Intl.DateTimeFormat(defaultLocales, {
|
|
1873
|
+
day: "numeric",
|
|
1874
|
+
month: "short",
|
|
1875
|
+
hour: "numeric",
|
|
1876
|
+
minute: "2-digit"
|
|
1877
|
+
}).format(date);
|
|
1878
|
+
}
|
|
1879
|
+
return dateTimeString(date);
|
|
1880
|
+
};
|
|
1881
|
+
|
|
1882
|
+
// src/helpers/dateTime/timeOnlyString.ts
|
|
1883
|
+
var timeOnlyString = (date, { timeZone = defaultTimeZone } = {}) => {
|
|
1884
|
+
if (!isDate(date) || isInvalidDate(date)) {
|
|
1885
|
+
return "";
|
|
1886
|
+
}
|
|
1887
|
+
try {
|
|
1888
|
+
return new Intl.DateTimeFormat(defaultLocales, {
|
|
1889
|
+
timeStyle: "short",
|
|
1890
|
+
timeZone
|
|
1891
|
+
}).format(date);
|
|
1892
|
+
} catch (error) {
|
|
1893
|
+
console.error(error);
|
|
1894
|
+
return "";
|
|
1895
|
+
}
|
|
1896
|
+
};
|
|
1897
|
+
|
|
1898
|
+
// src/helpers/dateTime/index.ts
|
|
1899
|
+
var dateTime = {
|
|
1900
|
+
buildTimeDuration,
|
|
1901
|
+
dateOnlyISOString,
|
|
1902
|
+
dateOnlyString,
|
|
1903
|
+
dateOnlyStringForSentence,
|
|
1904
|
+
dateOnlyStringNumeric,
|
|
1905
|
+
dateTimeRounded,
|
|
1906
|
+
dateTimeString,
|
|
1907
|
+
dateTimeStringForSentence,
|
|
1908
|
+
dateTimeToDate,
|
|
1909
|
+
dateTimeToISO,
|
|
1910
|
+
dateToDateTime,
|
|
1911
|
+
dateUTCOffset,
|
|
1912
|
+
dayOfWeekString,
|
|
1913
|
+
mediaDurationString,
|
|
1914
|
+
millisecondsToDurationISOString,
|
|
1915
|
+
monthDayStringNumeric,
|
|
1916
|
+
sessionDurationString,
|
|
1917
|
+
timeAgoString,
|
|
1918
|
+
timeOnlyString
|
|
1919
|
+
};
|
|
1920
|
+
|
|
1523
1921
|
// src/helpers/mq/mq.ts
|
|
1524
1922
|
var import_polished = require("polished");
|
|
1525
1923
|
|
|
@@ -1577,7 +1975,7 @@ var useBoolean = (initialValue = false) => {
|
|
|
1577
1975
|
};
|
|
1578
1976
|
|
|
1579
1977
|
// src/hooks/useMq/useMq.ts
|
|
1580
|
-
var
|
|
1978
|
+
var import_type_guards4 = require("@wistia/type-guards");
|
|
1581
1979
|
|
|
1582
1980
|
// src/hooks/useWindowSize/useWindowSize.ts
|
|
1583
1981
|
var import_react4 = require("react");
|
|
@@ -1639,7 +2037,7 @@ var useActiveMq = () => {
|
|
|
1639
2037
|
const keys = Object.keys(mq2);
|
|
1640
2038
|
return keys.filter((key) => {
|
|
1641
2039
|
const value = mq2[key];
|
|
1642
|
-
return (0,
|
|
2040
|
+
return (0, import_type_guards4.isBoolean)(value) && value;
|
|
1643
2041
|
});
|
|
1644
2042
|
};
|
|
1645
2043
|
|
|
@@ -1650,9 +2048,9 @@ var import_react6 = require("react");
|
|
|
1650
2048
|
var import_react5 = require("react");
|
|
1651
2049
|
|
|
1652
2050
|
// src/private/helpers/isObjectRef/isObjectRef.ts
|
|
1653
|
-
var
|
|
2051
|
+
var import_type_guards5 = require("@wistia/type-guards");
|
|
1654
2052
|
var isObjectRef = (value) => {
|
|
1655
|
-
return (0,
|
|
2053
|
+
return (0, import_type_guards5.isNotNil)(value) && (0, import_type_guards5.isRecord)(value) && "current" in value;
|
|
1656
2054
|
};
|
|
1657
2055
|
|
|
1658
2056
|
// src/private/hooks/useEvent/useEvent.ts
|
|
@@ -1717,10 +2115,10 @@ var useKey = (key, eventHandler, { eventName = "keydown", eventTarget, eventOpti
|
|
|
1717
2115
|
|
|
1718
2116
|
// src/hooks/useAriaLive/useAriaLive.tsx
|
|
1719
2117
|
var import_react7 = require("react");
|
|
1720
|
-
var
|
|
2118
|
+
var import_type_guards6 = require("@wistia/type-guards");
|
|
1721
2119
|
var useAriaLive = () => {
|
|
1722
2120
|
const context = (0, import_react7.useContext)(AriaLiveContext);
|
|
1723
|
-
if ((0,
|
|
2121
|
+
if ((0, import_type_guards6.isNil)(context)) {
|
|
1724
2122
|
throw new Error("useAriaLive must be used within an AriaLiveProvider");
|
|
1725
2123
|
}
|
|
1726
2124
|
return context;
|
|
@@ -1732,14 +2130,14 @@ var import_sonner2 = require("sonner");
|
|
|
1732
2130
|
|
|
1733
2131
|
// src/private/components/Toast/Toast.tsx
|
|
1734
2132
|
var import_react8 = require("react");
|
|
1735
|
-
var
|
|
1736
|
-
var
|
|
2133
|
+
var import_styled_components15 = __toESM(require("styled-components"));
|
|
2134
|
+
var import_type_guards8 = require("@wistia/type-guards");
|
|
1737
2135
|
|
|
1738
2136
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
1739
|
-
var
|
|
1740
|
-
var
|
|
2137
|
+
var import_type_guards7 = require("@wistia/type-guards");
|
|
2138
|
+
var import_styled_components13 = __toESM(require("styled-components"));
|
|
1741
2139
|
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1742
|
-
var ellipsisStyle =
|
|
2140
|
+
var ellipsisStyle = import_styled_components13.css`
|
|
1743
2141
|
overflow: hidden;
|
|
1744
2142
|
text-overflow: ellipsis;
|
|
1745
2143
|
white-space: nowrap;
|
|
@@ -1762,14 +2160,14 @@ var ellipsisStyle = import_styled_components11.css`
|
|
|
1762
2160
|
}
|
|
1763
2161
|
}
|
|
1764
2162
|
`;
|
|
1765
|
-
var ellipsisFlexParentStyle =
|
|
2163
|
+
var ellipsisFlexParentStyle = import_styled_components13.css`
|
|
1766
2164
|
min-width: 0;
|
|
1767
2165
|
`;
|
|
1768
|
-
var EllipsisComponent =
|
|
2166
|
+
var EllipsisComponent = import_styled_components13.default.div`
|
|
1769
2167
|
${ellipsisStyle};
|
|
1770
2168
|
${({ $lines }) => {
|
|
1771
|
-
if ((0,
|
|
1772
|
-
return
|
|
2169
|
+
if ((0, import_type_guards7.isNotNil)($lines)) {
|
|
2170
|
+
return import_styled_components13.css`
|
|
1773
2171
|
-webkit-box-orient: vertical;
|
|
1774
2172
|
-webkit-line-clamp: ${$lines};
|
|
1775
2173
|
display: -webkit-box;
|
|
@@ -1790,9 +2188,9 @@ var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, impor
|
|
|
1790
2188
|
Ellipsis.displayName = "Ellipsis";
|
|
1791
2189
|
|
|
1792
2190
|
// src/private/helpers/getColorScheme/getColorScheme.ts
|
|
1793
|
-
var
|
|
2191
|
+
var import_styled_components14 = require("styled-components");
|
|
1794
2192
|
var colorSchemeSchema = [
|
|
1795
|
-
{ token: "bg-surface", step: "
|
|
2193
|
+
{ token: "bg-surface", step: "2" },
|
|
1796
2194
|
{ token: "bg-surface-hover", step: "3" },
|
|
1797
2195
|
{ token: "bg-surface-active", step: "4" },
|
|
1798
2196
|
{ token: "bg-surface-secondary", step: "3" },
|
|
@@ -1817,8 +2215,8 @@ var colorSchemeSchema = [
|
|
|
1817
2215
|
{ token: "icon-on-fill", step: "contrast" },
|
|
1818
2216
|
{ token: "focus-ring", step: "9" }
|
|
1819
2217
|
];
|
|
1820
|
-
var defaultScheme =
|
|
1821
|
-
--wui-color-bg-surface: var(--wui-gray-
|
|
2218
|
+
var defaultScheme = import_styled_components14.css`
|
|
2219
|
+
--wui-color-bg-surface: var(--wui-gray-1);
|
|
1822
2220
|
--wui-color-bg-surface-hover: var(--wui-gray-3);
|
|
1823
2221
|
--wui-color-bg-surface-active: var(--wui-gray-4);
|
|
1824
2222
|
--wui-color-bg-surface-secondary: var(--wui-gray-3);
|
|
@@ -1843,7 +2241,7 @@ var defaultScheme = import_styled_components12.css`
|
|
|
1843
2241
|
--wui-color-icon-on-fill: var(--wui-gray-contrast);
|
|
1844
2242
|
--wui-color-focus-ring: var(--wui-blue-9);
|
|
1845
2243
|
`;
|
|
1846
|
-
var navScheme =
|
|
2244
|
+
var navScheme = import_styled_components14.css`
|
|
1847
2245
|
--wui-color-bg-fill-active: var(--wui-blue-5);
|
|
1848
2246
|
--wui-color-bg-fill-hover: var(--wui-blue-4);
|
|
1849
2247
|
--wui-color-bg-fill: var(--wui-blue-1);
|
|
@@ -1894,7 +2292,7 @@ var getColorScheme = (colorScheme) => {
|
|
|
1894
2292
|
if (colorScheme === "default") {
|
|
1895
2293
|
return defaultScheme;
|
|
1896
2294
|
}
|
|
1897
|
-
return
|
|
2295
|
+
return import_styled_components14.css`
|
|
1898
2296
|
${colorSchemeSchema.map(({ token, step }) => {
|
|
1899
2297
|
return `--wui-color-${token}: var(--wui-${colorScheme === "info" ? "blue" : colorScheme}-${step});`;
|
|
1900
2298
|
}).join("")}
|
|
@@ -1903,12 +2301,12 @@ var getColorScheme = (colorScheme) => {
|
|
|
1903
2301
|
|
|
1904
2302
|
// src/private/components/Toast/Toast.tsx
|
|
1905
2303
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1906
|
-
var Message = (0,
|
|
2304
|
+
var Message = (0, import_styled_components15.default)(Ellipsis)`
|
|
1907
2305
|
line-height: var(--wui-typography-label-3-line-height);
|
|
1908
2306
|
font-size: var(--wui-typography-label-3-size);
|
|
1909
2307
|
font-weight: var(--wui-typography-label-3-weight);
|
|
1910
2308
|
`;
|
|
1911
|
-
var MessageWrapper =
|
|
2309
|
+
var MessageWrapper = import_styled_components15.default.div`
|
|
1912
2310
|
display: flex;
|
|
1913
2311
|
flex-grow: 1;
|
|
1914
2312
|
flex-shrink: 1;
|
|
@@ -1921,13 +2319,13 @@ var MessageWrapper = import_styled_components13.default.div`
|
|
|
1921
2319
|
margin-right: var(--wui-space-02); /* space between icon & message */
|
|
1922
2320
|
}
|
|
1923
2321
|
`;
|
|
1924
|
-
var ActionWrapper =
|
|
2322
|
+
var ActionWrapper = import_styled_components15.default.div`
|
|
1925
2323
|
flex-grow: 0;
|
|
1926
2324
|
flex-shrink: 0;
|
|
1927
2325
|
flex-basis: auto;
|
|
1928
2326
|
margin-right: var(--wui-space-03);
|
|
1929
2327
|
`;
|
|
1930
|
-
var StyledToast =
|
|
2328
|
+
var StyledToast = import_styled_components15.default.div`
|
|
1931
2329
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
1932
2330
|
display: flex;
|
|
1933
2331
|
align-items: center;
|
|
@@ -1942,9 +2340,7 @@ var StyledToast = import_styled_components13.default.div`
|
|
|
1942
2340
|
padding-right: 0; /* padding here is on the left/right slots */
|
|
1943
2341
|
padding-bottom: var(--wui-space-02);
|
|
1944
2342
|
padding-left: var(--wui-space-03);
|
|
1945
|
-
|
|
1946
|
-
/* TODO tokenize elevation? */
|
|
1947
|
-
box-shadow: 0 0 16px 0 #0000001a;
|
|
2343
|
+
box-shadow: var(--wui-elevation-02);
|
|
1948
2344
|
|
|
1949
2345
|
svg {
|
|
1950
2346
|
height: 16px;
|
|
@@ -1952,7 +2348,7 @@ var StyledToast = import_styled_components13.default.div`
|
|
|
1952
2348
|
}
|
|
1953
2349
|
`;
|
|
1954
2350
|
var Action = ({ actionButton }) => {
|
|
1955
|
-
if ((0,
|
|
2351
|
+
if ((0, import_type_guards8.isNotNil)(actionButton) && (0, import_react8.isValidElement)(actionButton)) {
|
|
1956
2352
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(ActionWrapper, { children: (0, import_react8.cloneElement)(actionButton, {
|
|
1957
2353
|
variant: "soft",
|
|
1958
2354
|
// force Button variant
|
|
@@ -1976,7 +2372,7 @@ var Toast = ({
|
|
|
1976
2372
|
$colorScheme: colorScheme,
|
|
1977
2373
|
children: [
|
|
1978
2374
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(MessageWrapper, { children: [
|
|
1979
|
-
(0,
|
|
2375
|
+
(0, import_type_guards8.isNotNil)(icon) ? icon : null,
|
|
1980
2376
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Message, { lines: 3, children: message })
|
|
1981
2377
|
] }),
|
|
1982
2378
|
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(Action, { actionButton: action })
|
|
@@ -2012,16 +2408,16 @@ var useToast = () => {
|
|
|
2012
2408
|
|
|
2013
2409
|
// src/components/ActionButton/ActionButton.tsx
|
|
2014
2410
|
var import_react13 = require("react");
|
|
2015
|
-
var
|
|
2411
|
+
var import_styled_components21 = __toESM(require("styled-components"));
|
|
2016
2412
|
|
|
2017
2413
|
// src/components/Button/Button.tsx
|
|
2018
2414
|
var import_react12 = require("react");
|
|
2019
|
-
var
|
|
2020
|
-
var
|
|
2415
|
+
var import_styled_components20 = __toESM(require("styled-components"));
|
|
2416
|
+
var import_type_guards12 = require("@wistia/type-guards");
|
|
2021
2417
|
|
|
2022
2418
|
// src/css/buttonResetCss.tsx
|
|
2023
|
-
var
|
|
2024
|
-
var buttonResetCss =
|
|
2419
|
+
var import_styled_components16 = require("styled-components");
|
|
2420
|
+
var buttonResetCss = import_styled_components16.css`
|
|
2025
2421
|
align-items: center;
|
|
2026
2422
|
background-color: transparent;
|
|
2027
2423
|
background-image: none;
|
|
@@ -2066,8 +2462,8 @@ var buttonResetCss = import_styled_components14.css`
|
|
|
2066
2462
|
`;
|
|
2067
2463
|
|
|
2068
2464
|
// src/components/Button/buttonStyles.tsx
|
|
2069
|
-
var
|
|
2070
|
-
var buttonSmallStyles =
|
|
2465
|
+
var import_styled_components17 = require("styled-components");
|
|
2466
|
+
var buttonSmallStyles = import_styled_components17.css`
|
|
2071
2467
|
--button-padding-vertical: var(--wui-space-01);
|
|
2072
2468
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2073
2469
|
--button-label-padding-horizontal: var(--wui-space-01);
|
|
@@ -2078,7 +2474,7 @@ var buttonSmallStyles = import_styled_components15.css`
|
|
|
2078
2474
|
--button-icon-size: 12px;
|
|
2079
2475
|
--button-label-gap: 4px;
|
|
2080
2476
|
`;
|
|
2081
|
-
var buttonMediumStyles =
|
|
2477
|
+
var buttonMediumStyles = import_styled_components17.css`
|
|
2082
2478
|
--button-padding-vertical: var(--wui-space-02);
|
|
2083
2479
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2084
2480
|
--button-label-padding-horizontal: 6px;
|
|
@@ -2089,7 +2485,7 @@ var buttonMediumStyles = import_styled_components15.css`
|
|
|
2089
2485
|
--button-icon-size: 16px;
|
|
2090
2486
|
--button-label-gap: 6px;
|
|
2091
2487
|
`;
|
|
2092
|
-
var buttonLargeStyles =
|
|
2488
|
+
var buttonLargeStyles = import_styled_components17.css`
|
|
2093
2489
|
--button-padding-vertical: var(--wui-space-02);
|
|
2094
2490
|
--button-padding-horizontal: var(--wui-space-02);
|
|
2095
2491
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2100,7 +2496,7 @@ var buttonLargeStyles = import_styled_components15.css`
|
|
|
2100
2496
|
--button-icon-size: 24px;
|
|
2101
2497
|
--button-label-gap: 8px;
|
|
2102
2498
|
`;
|
|
2103
|
-
var buttonExtraLargeStyles =
|
|
2499
|
+
var buttonExtraLargeStyles = import_styled_components17.css`
|
|
2104
2500
|
--button-padding-vertical: var(--wui-space-03);
|
|
2105
2501
|
--button-padding-horizontal: var(--wui-space-03);
|
|
2106
2502
|
--button-label-padding-horizontal: var(--wui-space-02);
|
|
@@ -2111,34 +2507,34 @@ var buttonExtraLargeStyles = import_styled_components15.css`
|
|
|
2111
2507
|
--button-icon-size: 24px;
|
|
2112
2508
|
--button-label-gap: 8px;
|
|
2113
2509
|
`;
|
|
2114
|
-
var ghostButtonVariant =
|
|
2510
|
+
var ghostButtonVariant = import_styled_components17.css`
|
|
2115
2511
|
--button-color-bg: transparent;
|
|
2116
2512
|
--button-color-bg-hover: var(--wui-color-bg-surface-hover);
|
|
2117
2513
|
--button-color-bg-active: var(--wui-color-bg-surface-active);
|
|
2118
2514
|
--button-color-text: var(--wui-color-text-button);
|
|
2119
2515
|
--button-color-icon: var(--wui-color-icon);
|
|
2120
2516
|
`;
|
|
2121
|
-
var outlineButtonVariant =
|
|
2517
|
+
var outlineButtonVariant = import_styled_components17.css`
|
|
2122
2518
|
${ghostButtonVariant};
|
|
2123
2519
|
--button-color-border: var(--wui-color-border);
|
|
2124
2520
|
|
|
2125
2521
|
box-shadow: 0 0 0 2px var(--button-color-border) inset;
|
|
2126
2522
|
`;
|
|
2127
|
-
var softButtonVariant =
|
|
2523
|
+
var softButtonVariant = import_styled_components17.css`
|
|
2128
2524
|
--button-color-bg: var(--wui-color-bg-surface-secondary);
|
|
2129
2525
|
--button-color-bg-hover: var(--wui-color-bg-surface-secondary-hover);
|
|
2130
2526
|
--button-color-bg-active: var(--wui-color-bg-surface-secondary-active);
|
|
2131
2527
|
--button-color-text: var(--wui-color-text-button);
|
|
2132
2528
|
--button-color-icon: var(--wui-color-icon);
|
|
2133
2529
|
`;
|
|
2134
|
-
var solidButtonVariant =
|
|
2530
|
+
var solidButtonVariant = import_styled_components17.css`
|
|
2135
2531
|
--button-color-bg: var(--wui-color-bg-fill);
|
|
2136
2532
|
--button-color-bg-hover: var(--wui-color-bg-fill-hover);
|
|
2137
2533
|
--button-color-bg-active: var(--wui-color-bg-fill-active);
|
|
2138
2534
|
--button-color-text: var(--wui-color-text-on-fill);
|
|
2139
2535
|
--button-color-icon: var(--wui-color-icon-on-fill);
|
|
2140
2536
|
`;
|
|
2141
|
-
var disabledButtonVariant =
|
|
2537
|
+
var disabledButtonVariant = import_styled_components17.css`
|
|
2142
2538
|
--button-color-bg: var(--wui-color-bg-surface-disabled);
|
|
2143
2539
|
--button-color-bg-hover: var(--wui-color-bg-surface-disabled);
|
|
2144
2540
|
--button-color-bg-active: var(--wui-color-bg-surface-disabled);
|
|
@@ -2146,7 +2542,7 @@ var disabledButtonVariant = import_styled_components15.css`
|
|
|
2146
2542
|
--button-color-icon: var(--wui-color-icon-disabled);
|
|
2147
2543
|
--button-color-border: var(--wui-color-border-disabled);
|
|
2148
2544
|
`;
|
|
2149
|
-
var pressedButtonVariant =
|
|
2545
|
+
var pressedButtonVariant = import_styled_components17.css`
|
|
2150
2546
|
--button-color-bg: var(--wui-color-bg-surface-selected);
|
|
2151
2547
|
--button-color-bg-hover: var(--wui-color-bg-surface-selected-hover);
|
|
2152
2548
|
--button-color-bg-active: var(--wui-color-bg-surface-selected-active);
|
|
@@ -2154,7 +2550,7 @@ var pressedButtonVariant = import_styled_components15.css`
|
|
|
2154
2550
|
--button-color-icon: var(--wui-color-icon-selected);
|
|
2155
2551
|
--button-color-border: var(--wui-color-border-selected);
|
|
2156
2552
|
`;
|
|
2157
|
-
var buttonBaseStyles =
|
|
2553
|
+
var buttonBaseStyles = import_styled_components17.css`
|
|
2158
2554
|
border-radius: var(--wui-border-radius-rounded);
|
|
2159
2555
|
font-family: var(--button-typography-family);
|
|
2160
2556
|
font-size: var(--button-typography-size);
|
|
@@ -2163,6 +2559,7 @@ var buttonBaseStyles = import_styled_components15.css`
|
|
|
2163
2559
|
padding: var(--button-padding-vertical) var(--button-padding-horizontal);
|
|
2164
2560
|
background: var(--button-color-bg);
|
|
2165
2561
|
color: var(--button-color-text);
|
|
2562
|
+
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
2166
2563
|
|
|
2167
2564
|
/* This ensure that the icon is the corect color when the style is solid or the button is disabled */
|
|
2168
2565
|
&& {
|
|
@@ -2220,8 +2617,8 @@ var buttonSizeStyles = {
|
|
|
2220
2617
|
};
|
|
2221
2618
|
|
|
2222
2619
|
// src/components/Icon/Icon.tsx
|
|
2223
|
-
var
|
|
2224
|
-
var
|
|
2620
|
+
var import_type_guards10 = require("@wistia/type-guards");
|
|
2621
|
+
var import_styled_components18 = __toESM(require("styled-components"));
|
|
2225
2622
|
|
|
2226
2623
|
// src/components/Icon/icons/AbTestIcon.tsx
|
|
2227
2624
|
var import_jsx_runtime7 = require("react/jsx-runtime");
|
|
@@ -5381,7 +5778,7 @@ var iconMap = {
|
|
|
5381
5778
|
};
|
|
5382
5779
|
|
|
5383
5780
|
// src/private/hooks/useResponsiveProp/useResponsiveProp.ts
|
|
5384
|
-
var
|
|
5781
|
+
var import_type_guards9 = require("@wistia/type-guards");
|
|
5385
5782
|
var import_react10 = require("react");
|
|
5386
5783
|
var isResponsiveObject = (values) => {
|
|
5387
5784
|
return typeof values === "object" && values !== null && !Array.isArray(values) && "base" in values;
|
|
@@ -5389,9 +5786,9 @@ var isResponsiveObject = (values) => {
|
|
|
5389
5786
|
var useResponsiveProp = (values) => {
|
|
5390
5787
|
const activeMediaQueries = useActiveMq();
|
|
5391
5788
|
return (0, import_react10.useMemo)(() => {
|
|
5392
|
-
if ((0,
|
|
5789
|
+
if ((0, import_type_guards9.isRecord)(values) && isResponsiveObject(values)) {
|
|
5393
5790
|
const mq2 = activeMediaQueries.find((key) => key in values);
|
|
5394
|
-
return (0,
|
|
5791
|
+
return (0, import_type_guards9.isNotUndefined)(mq2) && (0, import_type_guards9.isNotUndefined)(values[mq2]) ? values[mq2] : values.base;
|
|
5395
5792
|
}
|
|
5396
5793
|
return values;
|
|
5397
5794
|
}, [activeMediaQueries, values]);
|
|
@@ -5406,7 +5803,7 @@ var iconSizeMap = {
|
|
|
5406
5803
|
xl: "32",
|
|
5407
5804
|
xxl: "48"
|
|
5408
5805
|
};
|
|
5409
|
-
var StyledIcon =
|
|
5806
|
+
var StyledIcon = import_styled_components18.default.svg`
|
|
5410
5807
|
${({ $colorScheme }) => getColorScheme($colorScheme ?? "inherit")}
|
|
5411
5808
|
`;
|
|
5412
5809
|
var Icon = ({
|
|
@@ -5418,13 +5815,13 @@ var Icon = ({
|
|
|
5418
5815
|
...otherProps
|
|
5419
5816
|
}) => {
|
|
5420
5817
|
const responsiveSize = useResponsiveProp(size);
|
|
5421
|
-
if ((0,
|
|
5818
|
+
if ((0, import_type_guards10.isNil)(type)) {
|
|
5422
5819
|
throw new Error("An Icon component requires a `type` prop to be provided");
|
|
5423
5820
|
}
|
|
5424
|
-
if ((0,
|
|
5821
|
+
if ((0, import_type_guards10.isNil)(iconMap[type])) {
|
|
5425
5822
|
throw new Error(`Type "${type}" does not exist, please update type prop in Icon component.`);
|
|
5426
5823
|
}
|
|
5427
|
-
if ((0,
|
|
5824
|
+
if ((0, import_type_guards10.isNil)(iconSizeMap[responsiveSize])) {
|
|
5428
5825
|
throw new Error(
|
|
5429
5826
|
`Size "${responsiveSize}" does not exist, please update size prop in Icon component.`
|
|
5430
5827
|
);
|
|
@@ -5456,12 +5853,12 @@ Icon.displayName = "Icon";
|
|
|
5456
5853
|
|
|
5457
5854
|
// src/components/Link/Link.tsx
|
|
5458
5855
|
var import_react11 = require("react");
|
|
5459
|
-
var
|
|
5460
|
-
var
|
|
5856
|
+
var import_type_guards11 = require("@wistia/type-guards");
|
|
5857
|
+
var import_styled_components19 = __toESM(require("styled-components"));
|
|
5461
5858
|
var import_react_router_dom = require("react-router-dom");
|
|
5462
5859
|
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
5463
5860
|
var generateHref = (href, type, disabled) => {
|
|
5464
|
-
if (disabled || (0,
|
|
5861
|
+
if (disabled || (0, import_type_guards11.isNil)(href)) {
|
|
5465
5862
|
return void 0;
|
|
5466
5863
|
}
|
|
5467
5864
|
let to = href;
|
|
@@ -5473,12 +5870,12 @@ var generateHref = (href, type, disabled) => {
|
|
|
5473
5870
|
}
|
|
5474
5871
|
return to;
|
|
5475
5872
|
};
|
|
5476
|
-
var isButton = (props) => (0,
|
|
5477
|
-
var isLink = (props) => (0,
|
|
5478
|
-
var StyledLink =
|
|
5873
|
+
var isButton = (props) => (0, import_type_guards11.isUndefined)(props.href);
|
|
5874
|
+
var isLink = (props) => (0, import_type_guards11.isNotUndefined)(props.href);
|
|
5875
|
+
var StyledLink = import_styled_components19.default.a`
|
|
5479
5876
|
--link-icon-size: 14px;
|
|
5480
5877
|
|
|
5481
|
-
${({ href }) => (0,
|
|
5878
|
+
${({ href }) => (0, import_type_guards11.isNil)(href) && buttonResetCss};
|
|
5482
5879
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
5483
5880
|
cursor: pointer;
|
|
5484
5881
|
font-family: var(--wui-typography-family-default);
|
|
@@ -5522,7 +5919,7 @@ var Link = (0, import_react11.forwardRef)(
|
|
|
5522
5919
|
} finally {
|
|
5523
5920
|
if (routingCallback !== null) {
|
|
5524
5921
|
routingCallback();
|
|
5525
|
-
} else if ((0,
|
|
5922
|
+
} else if ((0, import_type_guards11.isNotNil)(to)) {
|
|
5526
5923
|
window.location.assign(to);
|
|
5527
5924
|
} else {
|
|
5528
5925
|
}
|
|
@@ -5585,8 +5982,8 @@ Link.displayName = "Link";
|
|
|
5585
5982
|
|
|
5586
5983
|
// src/components/Button/Button.tsx
|
|
5587
5984
|
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
5588
|
-
var isLink2 = (props) => (0,
|
|
5589
|
-
var StyledButton =
|
|
5985
|
+
var isLink2 = (props) => (0, import_type_guards12.isNotUndefined)(props.href);
|
|
5986
|
+
var StyledButton = import_styled_components20.default.button`
|
|
5590
5987
|
${buttonResetCss}
|
|
5591
5988
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
5592
5989
|
${({ $size }) => buttonSizeStyles[$size]}
|
|
@@ -5596,7 +5993,7 @@ var StyledButton = import_styled_components18.default.button`
|
|
|
5596
5993
|
position: relative;
|
|
5597
5994
|
text-align: center;
|
|
5598
5995
|
`;
|
|
5599
|
-
var StyledButtonContent =
|
|
5996
|
+
var StyledButtonContent = import_styled_components20.default.div`
|
|
5600
5997
|
align-items: center;
|
|
5601
5998
|
display: inline-flex;
|
|
5602
5999
|
flex-grow: 1;
|
|
@@ -5608,10 +6005,10 @@ var StyledButtonContent = import_styled_components18.default.div`
|
|
|
5608
6005
|
${({ $hasLeftIcon }) => $hasLeftIcon && "padding-left: 0;"}
|
|
5609
6006
|
${({ $hasRightIcon }) => $hasRightIcon && "padding-right: 0;"}
|
|
5610
6007
|
`;
|
|
5611
|
-
var StyledButtonContentLabel =
|
|
6008
|
+
var StyledButtonContentLabel = import_styled_components20.default.span`
|
|
5612
6009
|
flex: 1;
|
|
5613
6010
|
`;
|
|
5614
|
-
var StyledButtonLoading =
|
|
6011
|
+
var StyledButtonLoading = import_styled_components20.default.div`
|
|
5615
6012
|
position: absolute;
|
|
5616
6013
|
display: flex;
|
|
5617
6014
|
`;
|
|
@@ -5626,8 +6023,8 @@ var ButtonContent = ({
|
|
|
5626
6023
|
/* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(
|
|
5627
6024
|
StyledButtonContent,
|
|
5628
6025
|
{
|
|
5629
|
-
$hasLeftIcon: (0,
|
|
5630
|
-
$hasRightIcon: (0,
|
|
6026
|
+
$hasLeftIcon: (0, import_type_guards12.isNotNil)(leftIcon),
|
|
6027
|
+
$hasRightIcon: (0, import_type_guards12.isNotNil)(rightIcon),
|
|
5631
6028
|
$isLoading: isLoading,
|
|
5632
6029
|
children: [
|
|
5633
6030
|
leftIcon ?? null,
|
|
@@ -5695,7 +6092,7 @@ var Button = (0, import_react12.forwardRef)(
|
|
|
5695
6092
|
event.preventDefault();
|
|
5696
6093
|
return;
|
|
5697
6094
|
}
|
|
5698
|
-
if ((0,
|
|
6095
|
+
if ((0, import_type_guards12.isNotNil)(onClick)) {
|
|
5699
6096
|
onClick(event);
|
|
5700
6097
|
}
|
|
5701
6098
|
};
|
|
@@ -5724,7 +6121,7 @@ Button.displayName = "Button";
|
|
|
5724
6121
|
|
|
5725
6122
|
// src/components/ActionButton/ActionButton.tsx
|
|
5726
6123
|
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
5727
|
-
var StyledActionButton = (0,
|
|
6124
|
+
var StyledActionButton = (0, import_styled_components21.default)(Button)`
|
|
5728
6125
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
5729
6126
|
display: grid;
|
|
5730
6127
|
grid-template-columns: 24px 1fr;
|
|
@@ -5737,6 +6134,7 @@ var StyledActionButton = (0, import_styled_components19.default)(Button)`
|
|
|
5737
6134
|
grid-row-gap: var(--wui-space-02);
|
|
5738
6135
|
border-radius: var(--wui-border-radius-03);
|
|
5739
6136
|
flex: 0 0 auto;
|
|
6137
|
+
transition: background-color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
5740
6138
|
|
|
5741
6139
|
&:focus {
|
|
5742
6140
|
outline: none;
|
|
@@ -5764,31 +6162,30 @@ var StyledActionButton = (0, import_styled_components19.default)(Button)`
|
|
|
5764
6162
|
}
|
|
5765
6163
|
}
|
|
5766
6164
|
`;
|
|
5767
|
-
var StyledMainIcon =
|
|
6165
|
+
var StyledMainIcon = import_styled_components21.default.div`
|
|
5768
6166
|
grid-column: 1;
|
|
5769
6167
|
grid-row: 1;
|
|
5770
6168
|
width: 24px;
|
|
5771
6169
|
height: 24px;
|
|
6170
|
+
transition: color var(--wui-motion-duration-02) var(--wui-motion-ease);
|
|
5772
6171
|
|
|
5773
6172
|
svg {
|
|
5774
6173
|
width: 24px;
|
|
5775
6174
|
height: 24px;
|
|
5776
6175
|
}
|
|
5777
6176
|
`;
|
|
5778
|
-
var StyledSecondaryIcon =
|
|
6177
|
+
var StyledSecondaryIcon = import_styled_components21.default.div`
|
|
5779
6178
|
grid-column: 2;
|
|
5780
6179
|
grid-row: 1;
|
|
5781
6180
|
width: 100%;
|
|
5782
6181
|
display: flex;
|
|
5783
6182
|
justify-content: flex-end;
|
|
5784
|
-
transition: all
|
|
6183
|
+
transition: all var(--wui-motion-duration-02) var(--wui-motion-ease-in);
|
|
5785
6184
|
|
|
5786
|
-
${({ $hideUntilHover }) => $hideUntilHover &&
|
|
6185
|
+
${({ $hideUntilHover }) => $hideUntilHover && import_styled_components21.css`
|
|
6186
|
+
will-change: transform;
|
|
5787
6187
|
opacity: 0;
|
|
5788
|
-
|
|
5789
|
-
@media not (prefers-reduced-motion) {
|
|
5790
|
-
transform: translateX(-16px);
|
|
5791
|
-
}
|
|
6188
|
+
transform: translateX(-16px);
|
|
5792
6189
|
${StyledActionButton}:hover:not([aria-disabled="true"]) &,
|
|
5793
6190
|
${StyledActionButton}:focus-visible:not([aria-disabled="true"]) & {
|
|
5794
6191
|
transform: translateX(0);
|
|
@@ -5801,7 +6198,7 @@ var StyledSecondaryIcon = import_styled_components19.default.div`
|
|
|
5801
6198
|
height: 24px;
|
|
5802
6199
|
}
|
|
5803
6200
|
`;
|
|
5804
|
-
var StyledLabel =
|
|
6201
|
+
var StyledLabel = import_styled_components21.default.span`
|
|
5805
6202
|
font-family: var(--wui-typography-heading-4-family);
|
|
5806
6203
|
font-size: var(--wui-typography-heading-4-size);
|
|
5807
6204
|
font-weight: var(--wui-typography-heading-4-weight);
|
|
@@ -5856,11 +6253,11 @@ ActionButton.displayName = "ActionButton";
|
|
|
5856
6253
|
|
|
5857
6254
|
// src/components/Avatar/Avatar.tsx
|
|
5858
6255
|
var import_react14 = require("react");
|
|
5859
|
-
var
|
|
5860
|
-
var
|
|
6256
|
+
var import_type_guards14 = require("@wistia/type-guards");
|
|
6257
|
+
var import_styled_components23 = __toESM(require("styled-components"));
|
|
5861
6258
|
|
|
5862
6259
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
5863
|
-
var
|
|
6260
|
+
var import_styled_components22 = __toESM(require("styled-components"));
|
|
5864
6261
|
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
5865
6262
|
var colorSchemeOptions = [
|
|
5866
6263
|
"inherit",
|
|
@@ -5879,7 +6276,7 @@ var colorSchemeOptions = [
|
|
|
5879
6276
|
"vendor-marketo",
|
|
5880
6277
|
"vendor-pardot"
|
|
5881
6278
|
];
|
|
5882
|
-
var StyledColorSchemeWrapper =
|
|
6279
|
+
var StyledColorSchemeWrapper = import_styled_components22.default.div`
|
|
5883
6280
|
${({ $colorScheme, $nav }) => getColorScheme($nav ? "nav" : $colorScheme)};
|
|
5884
6281
|
`;
|
|
5885
6282
|
var ColorSchemeWrapper = ({
|
|
@@ -5899,13 +6296,13 @@ var ColorSchemeWrapper = ({
|
|
|
5899
6296
|
ColorSchemeWrapper.displayName = "ColorSchemeWrapper";
|
|
5900
6297
|
|
|
5901
6298
|
// src/components/Avatar/formatNameForDisplay.tsx
|
|
5902
|
-
var
|
|
6299
|
+
var import_type_guards13 = require("@wistia/type-guards");
|
|
5903
6300
|
var containsEmojiCharacter = (char) => {
|
|
5904
6301
|
const emojiRegex = /<a?:.+?:\d{18}>|\p{Extended_Pictographic}/gu;
|
|
5905
6302
|
return emojiRegex.test(char);
|
|
5906
6303
|
};
|
|
5907
6304
|
var formatNameForDisplay = (name) => {
|
|
5908
|
-
if ((0,
|
|
6305
|
+
if ((0, import_type_guards13.isNil)(name) || !(0, import_type_guards13.isString)(name) || (0, import_type_guards13.isEmptyString)(name) || containsEmojiCharacter(name)) {
|
|
5909
6306
|
return "U";
|
|
5910
6307
|
}
|
|
5911
6308
|
const firstChar = name.trim().substring(0, 1);
|
|
@@ -5914,7 +6311,7 @@ var formatNameForDisplay = (name) => {
|
|
|
5914
6311
|
|
|
5915
6312
|
// src/components/Avatar/Avatar.tsx
|
|
5916
6313
|
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
5917
|
-
var AvatarImage =
|
|
6314
|
+
var AvatarImage = import_styled_components23.default.img`
|
|
5918
6315
|
align-items: center;
|
|
5919
6316
|
background-color: white;
|
|
5920
6317
|
border-radius: 50%;
|
|
@@ -5926,6 +6323,7 @@ var AvatarImage = import_styled_components21.default.img`
|
|
|
5926
6323
|
pointer-events: none;
|
|
5927
6324
|
user-select: none;
|
|
5928
6325
|
width: ${({ $heightAndWidth }) => $heightAndWidth}px;
|
|
6326
|
+
transition: box-shadow var(--wui-duration-01) var(--wui-motion-ease);
|
|
5929
6327
|
|
|
5930
6328
|
a:hover & {
|
|
5931
6329
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 25%);
|
|
@@ -5941,7 +6339,7 @@ var avatarSizeMap = {
|
|
|
5941
6339
|
lg: 32
|
|
5942
6340
|
};
|
|
5943
6341
|
var fontSizeScaleMultiplier = 0.55;
|
|
5944
|
-
var InitialsContainer =
|
|
6342
|
+
var InitialsContainer = import_styled_components23.default.div`
|
|
5945
6343
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
5946
6344
|
align-items: center;
|
|
5947
6345
|
background-color: var(--wui-color-bg-fill);
|
|
@@ -5963,11 +6361,11 @@ var InitialsContainer = import_styled_components21.default.div`
|
|
|
5963
6361
|
box-shadow: inset 0 0 0 2px rgb(0 0 0 / 50%);
|
|
5964
6362
|
}
|
|
5965
6363
|
`;
|
|
5966
|
-
var AvatarWrapper =
|
|
6364
|
+
var AvatarWrapper = import_styled_components23.default.div`
|
|
5967
6365
|
max-height: ${({ $maxHeight }) => $maxHeight}px;
|
|
5968
6366
|
`;
|
|
5969
6367
|
var chooseColorScheme = (name) => {
|
|
5970
|
-
if ((0,
|
|
6368
|
+
if ((0, import_type_guards14.isNil)(name) || name === "Anonymous") {
|
|
5971
6369
|
return "default";
|
|
5972
6370
|
}
|
|
5973
6371
|
const filteredColors = colorSchemeOptions.filter(
|
|
@@ -6000,7 +6398,7 @@ var Avatar = ({
|
|
|
6000
6398
|
};
|
|
6001
6399
|
const avatarSize = heightAndWidth ?? avatarSizeMap[size];
|
|
6002
6400
|
const avatarColor = (0, import_react14.useMemo)(() => chooseColorScheme(name), [name]);
|
|
6003
|
-
const showInitials = (0,
|
|
6401
|
+
const showInitials = (0, import_type_guards14.isNil)(imageUrl) || imageLoadState === "error";
|
|
6004
6402
|
return /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
|
|
6005
6403
|
AvatarWrapper,
|
|
6006
6404
|
{
|
|
@@ -6030,10 +6428,10 @@ Avatar.displayName = "Avatar";
|
|
|
6030
6428
|
|
|
6031
6429
|
// src/components/Badge/Badge.tsx
|
|
6032
6430
|
var import_react15 = require("react");
|
|
6033
|
-
var
|
|
6034
|
-
var
|
|
6431
|
+
var import_styled_components24 = __toESM(require("styled-components"));
|
|
6432
|
+
var import_type_guards15 = require("@wistia/type-guards");
|
|
6035
6433
|
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
6036
|
-
var StyledBadge =
|
|
6434
|
+
var StyledBadge = import_styled_components24.default.div`
|
|
6037
6435
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6038
6436
|
align-items: center;
|
|
6039
6437
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -6055,7 +6453,7 @@ var StyledBadge = import_styled_components22.default.div`
|
|
|
6055
6453
|
`;
|
|
6056
6454
|
var Badge = (0, import_react15.forwardRef)(
|
|
6057
6455
|
({ colorScheme = "inherit", label, icon, ...otherProps }, ref) => {
|
|
6058
|
-
const hasIcon = (0,
|
|
6456
|
+
const hasIcon = (0, import_type_guards15.isNotNil)(icon);
|
|
6059
6457
|
return /* @__PURE__ */ (0, import_jsx_runtime166.jsxs)(
|
|
6060
6458
|
StyledBadge,
|
|
6061
6459
|
{
|
|
@@ -6075,8 +6473,8 @@ Badge.displayName = "Badge";
|
|
|
6075
6473
|
|
|
6076
6474
|
// src/components/Box/Box.tsx
|
|
6077
6475
|
var import_react16 = require("react");
|
|
6078
|
-
var
|
|
6079
|
-
var
|
|
6476
|
+
var import_styled_components25 = __toESM(require("styled-components"));
|
|
6477
|
+
var import_type_guards16 = require("@wistia/type-guards");
|
|
6080
6478
|
|
|
6081
6479
|
// src/private/helpers/makePolymorphic/makePolymorphic.tsx
|
|
6082
6480
|
var makePolymorphic = (component) => {
|
|
@@ -6087,8 +6485,8 @@ var makePolymorphic = (component) => {
|
|
|
6087
6485
|
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
6088
6486
|
var isDev = process.env["NODE_ENV"] === "development" || process.env["NODE_ENV"] === "test";
|
|
6089
6487
|
var getGapStyle = (gap) => {
|
|
6090
|
-
if ((0,
|
|
6091
|
-
if ((0,
|
|
6488
|
+
if ((0, import_type_guards16.isNotNil)(gap)) {
|
|
6489
|
+
if ((0, import_type_guards16.isRecord)(gap)) {
|
|
6092
6490
|
return Object.entries(gap).map(([key, value]) => {
|
|
6093
6491
|
return `${key}-gap: var(--wui-${value})};`;
|
|
6094
6492
|
}).join("");
|
|
@@ -6127,29 +6525,29 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
6127
6525
|
}
|
|
6128
6526
|
return void 0;
|
|
6129
6527
|
};
|
|
6130
|
-
var StyledBoxComponent =
|
|
6528
|
+
var StyledBoxComponent = import_styled_components25.default.div`
|
|
6131
6529
|
align-content: ${({ $alignContent }) => $alignContent};
|
|
6132
6530
|
align-items: ${({ $alignItems }) => $alignItems};
|
|
6133
6531
|
align-self: ${({ $alignSelf }) => $alignSelf ?? null};
|
|
6134
|
-
display: ${({ $inline }) => (0,
|
|
6135
|
-
flex-basis: ${({ $basis }) => (0,
|
|
6532
|
+
display: ${({ $inline }) => (0, import_type_guards16.isNotNil)($inline) && $inline ? "inline-flex" : "flex"};
|
|
6533
|
+
flex-basis: ${({ $basis }) => (0, import_type_guards16.isNotNil)($basis) ? $basis : null};
|
|
6136
6534
|
flex-direction: ${({ $flexDirection }) => $flexDirection};
|
|
6137
6535
|
${({ $fillBox: fill }) => getFillStyle(fill)};
|
|
6138
6536
|
${({ $fillViewport }) => getFillViewportStyle($fillViewport)};
|
|
6139
6537
|
|
|
6140
6538
|
/* Box children styles */
|
|
6141
|
-
flex-grow: ${({ $grow }) => (0,
|
|
6142
|
-
flex-shrink: ${({ $shrink }) => (0,
|
|
6539
|
+
flex-grow: ${({ $grow }) => (0, import_type_guards16.isNotNil)($grow) ? $grow : null};
|
|
6540
|
+
flex-shrink: ${({ $shrink }) => (0, import_type_guards16.isNotNil)($shrink) ? $shrink : null};
|
|
6143
6541
|
flex-wrap: ${({ $wrapItems }) => $wrapItems ? "wrap" : "nowrap"};
|
|
6144
6542
|
${({ $gap }) => getGapStyle($gap)};
|
|
6145
6543
|
justify-content: ${({ $justifyContent }) => $justifyContent};
|
|
6146
|
-
order: ${({ $order }) => (0,
|
|
6544
|
+
order: ${({ $order }) => (0, import_type_guards16.isNotNil)($order) ? $order : null};
|
|
6147
6545
|
`;
|
|
6148
6546
|
var wrapChildren = (children) => {
|
|
6149
|
-
if ((0,
|
|
6547
|
+
if ((0, import_type_guards16.isNotNil)(children)) {
|
|
6150
6548
|
if (typeof children === "object" && isDev) {
|
|
6151
6549
|
return import_react16.Children.map(children, (child) => {
|
|
6152
|
-
if ((0,
|
|
6550
|
+
if ((0, import_type_guards16.isNil)(child)) return null;
|
|
6153
6551
|
const elementParams = {};
|
|
6154
6552
|
if (child.type?.displayName === "Box" || child.type?.displayName === "Box_UI") {
|
|
6155
6553
|
elementParams.hasBoxParent = true;
|
|
@@ -6214,9 +6612,9 @@ var Box = makePolymorphic(BoxComponent);
|
|
|
6214
6612
|
|
|
6215
6613
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
6216
6614
|
var import_react17 = require("react");
|
|
6217
|
-
var
|
|
6615
|
+
var import_styled_components26 = __toESM(require("styled-components"));
|
|
6218
6616
|
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
6219
|
-
var StyledBreadcrumbs =
|
|
6617
|
+
var StyledBreadcrumbs = import_styled_components26.default.nav`
|
|
6220
6618
|
display: flex;
|
|
6221
6619
|
align-items: center;
|
|
6222
6620
|
gap: var(--wui-space-01);
|
|
@@ -6261,9 +6659,9 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
6261
6659
|
Breadcrumbs.displayName = "Breadcrumbs";
|
|
6262
6660
|
|
|
6263
6661
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
6264
|
-
var
|
|
6662
|
+
var import_styled_components27 = __toESM(require("styled-components"));
|
|
6265
6663
|
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
6266
|
-
var BreadcrumbContent =
|
|
6664
|
+
var BreadcrumbContent = import_styled_components27.default.span`
|
|
6267
6665
|
overflow: hidden;
|
|
6268
6666
|
white-space: nowrap;
|
|
6269
6667
|
display: block;
|
|
@@ -6295,8 +6693,8 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
6295
6693
|
};
|
|
6296
6694
|
|
|
6297
6695
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
6298
|
-
var
|
|
6299
|
-
var
|
|
6696
|
+
var import_styled_components28 = __toESM(require("styled-components"));
|
|
6697
|
+
var import_type_guards17 = require("@wistia/type-guards");
|
|
6300
6698
|
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
6301
6699
|
var getAlignment = (align) => {
|
|
6302
6700
|
if (align === "center") {
|
|
@@ -6310,7 +6708,7 @@ var getAlignment = (align) => {
|
|
|
6310
6708
|
}
|
|
6311
6709
|
return "flex-start";
|
|
6312
6710
|
};
|
|
6313
|
-
var ButtonGroupComponent =
|
|
6711
|
+
var ButtonGroupComponent = import_styled_components28.default.div`
|
|
6314
6712
|
display: flex;
|
|
6315
6713
|
|
|
6316
6714
|
/* this helps ensure that primary buttons appear at the top of the column */
|
|
@@ -6336,7 +6734,7 @@ var ButtonGroup = ({
|
|
|
6336
6734
|
fullWidth = false,
|
|
6337
6735
|
...otherProps
|
|
6338
6736
|
}) => {
|
|
6339
|
-
if ((0,
|
|
6737
|
+
if ((0, import_type_guards17.isNil)(children)) {
|
|
6340
6738
|
return null;
|
|
6341
6739
|
}
|
|
6342
6740
|
return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(
|
|
@@ -6352,9 +6750,9 @@ var ButtonGroup = ({
|
|
|
6352
6750
|
ButtonGroup.displayName = "ButtonGroup";
|
|
6353
6751
|
|
|
6354
6752
|
// src/components/Card/Card.tsx
|
|
6355
|
-
var
|
|
6753
|
+
var import_styled_components29 = __toESM(require("styled-components"));
|
|
6356
6754
|
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
6357
|
-
var StyledCard = (0,
|
|
6755
|
+
var StyledCard = (0, import_styled_components29.default)(Box)`
|
|
6358
6756
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6359
6757
|
box-sizing: border-box;
|
|
6360
6758
|
padding: ${({ $paddingSize }) => `var(--wui-${$paddingSize})`};
|
|
@@ -6405,53 +6803,53 @@ Card.displayName = "Card";
|
|
|
6405
6803
|
// src/components/Checkbox/Checkbox.tsx
|
|
6406
6804
|
var import_react19 = require("react");
|
|
6407
6805
|
var import_react_checkbox = require("@radix-ui/react-checkbox");
|
|
6408
|
-
var
|
|
6409
|
-
var
|
|
6806
|
+
var import_styled_components33 = __toESM(require("styled-components"));
|
|
6807
|
+
var import_type_guards19 = require("@wistia/type-guards");
|
|
6410
6808
|
|
|
6411
6809
|
// src/components/Label/Label.tsx
|
|
6412
|
-
var
|
|
6810
|
+
var import_styled_components31 = __toESM(require("styled-components"));
|
|
6413
6811
|
|
|
6414
6812
|
// src/components/Heading/Heading.tsx
|
|
6415
6813
|
var import_react18 = require("react");
|
|
6416
|
-
var
|
|
6814
|
+
var import_styled_components30 = __toESM(require("styled-components"));
|
|
6417
6815
|
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
6418
|
-
var heroStyle =
|
|
6816
|
+
var heroStyle = import_styled_components30.css`
|
|
6419
6817
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
6420
6818
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
6421
6819
|
--font-weight: var(--wui-typography-heading-hero-weight);
|
|
6422
6820
|
--line-height: var(--wui-typography-heading-hero-line-height);
|
|
6423
6821
|
`;
|
|
6424
|
-
var heading1TextStyle =
|
|
6822
|
+
var heading1TextStyle = import_styled_components30.css`
|
|
6425
6823
|
--font-family: var(--wui-typography-heading-1-family);
|
|
6426
6824
|
--font-size: var(--wui-typography-heading-1-size);
|
|
6427
6825
|
--font-weight: var(--wui-typography-heading-1-weight);
|
|
6428
6826
|
--line-height: var(--wui-typography-heading-1-line-height);
|
|
6429
6827
|
`;
|
|
6430
|
-
var heading2TextStyle =
|
|
6828
|
+
var heading2TextStyle = import_styled_components30.css`
|
|
6431
6829
|
--font-family: var(--wui-typography-heading-2-family);
|
|
6432
6830
|
--font-size: var(--wui-typography-heading-2-size);
|
|
6433
6831
|
--font-weight: var(--wui-typography-heading-2-weight);
|
|
6434
6832
|
--line-height: var(--wui-typography-heading-2-line-height);
|
|
6435
6833
|
`;
|
|
6436
|
-
var heading3TextStyle =
|
|
6834
|
+
var heading3TextStyle = import_styled_components30.css`
|
|
6437
6835
|
--font-family: var(--wui-typography-heading-3-family);
|
|
6438
6836
|
--font-size: var(--wui-typography-heading-3-size);
|
|
6439
6837
|
--font-weight: var(--wui-typography-heading-3-weight);
|
|
6440
6838
|
--line-height: var(--wui-typography-heading-3-line-height);
|
|
6441
6839
|
`;
|
|
6442
|
-
var heading4TextStyle =
|
|
6840
|
+
var heading4TextStyle = import_styled_components30.css`
|
|
6443
6841
|
--font-family: var(--wui-typography-heading-4-family);
|
|
6444
6842
|
--font-size: var(--wui-typography-heading-4-size);
|
|
6445
6843
|
--font-weight: var(--wui-typography-heading-4-weight);
|
|
6446
6844
|
--line-height: var(--wui-typography-heading-4-line-height);
|
|
6447
6845
|
`;
|
|
6448
|
-
var heading5TextStyle =
|
|
6846
|
+
var heading5TextStyle = import_styled_components30.css`
|
|
6449
6847
|
--font-family: var(--wui-typography-heading-5-family);
|
|
6450
6848
|
--font-size: var(--wui-typography-heading-5-size);
|
|
6451
6849
|
--font-weight: var(--wui-typography-heading-5-weight);
|
|
6452
6850
|
--line-height: var(--wui-typography-heading-5-line-height);
|
|
6453
6851
|
`;
|
|
6454
|
-
var heading6TextStyle =
|
|
6852
|
+
var heading6TextStyle = import_styled_components30.css`
|
|
6455
6853
|
--font-family: var(--wui-typography-heading-6-family);
|
|
6456
6854
|
--font-size: var(--wui-typography-heading-6-size);
|
|
6457
6855
|
--font-weight: var(--wui-typography-heading-6-weight);
|
|
@@ -6467,7 +6865,7 @@ var variantStyleMap = {
|
|
|
6467
6865
|
heading6: heading6TextStyle
|
|
6468
6866
|
};
|
|
6469
6867
|
var DEFAULT_ELEMENT2 = "h1";
|
|
6470
|
-
var StyledHeading =
|
|
6868
|
+
var StyledHeading = import_styled_components30.default.div`
|
|
6471
6869
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
6472
6870
|
font-family: var(--font-family);
|
|
6473
6871
|
font-size: var(--font-size);
|
|
@@ -6476,16 +6874,16 @@ var StyledHeading = import_styled_components28.default.div`
|
|
|
6476
6874
|
color: var(--wui-color-text);
|
|
6477
6875
|
${({ $variant }) => variantStyleMap[$variant]}
|
|
6478
6876
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
6479
|
-
${({ $inline }) => $inline &&
|
|
6877
|
+
${({ $inline }) => $inline && import_styled_components30.css`
|
|
6480
6878
|
display: inline-block;
|
|
6481
6879
|
`}
|
|
6482
|
-
${({ $disabled }) => $disabled &&
|
|
6880
|
+
${({ $disabled }) => $disabled && import_styled_components30.css`
|
|
6483
6881
|
color: var(--wui-color-text-disabled);
|
|
6484
6882
|
`}
|
|
6485
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
6883
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components30.css`
|
|
6486
6884
|
user-select: none;
|
|
6487
6885
|
`}
|
|
6488
|
-
${({ $align }) =>
|
|
6886
|
+
${({ $align }) => import_styled_components30.css`
|
|
6489
6887
|
text-align: ${$align};
|
|
6490
6888
|
`}
|
|
6491
6889
|
margin: 0;
|
|
@@ -6531,7 +6929,7 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
6531
6929
|
|
|
6532
6930
|
// src/components/Label/Label.tsx
|
|
6533
6931
|
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
6534
|
-
var requiredStyle =
|
|
6932
|
+
var requiredStyle = import_styled_components31.css`
|
|
6535
6933
|
&::after {
|
|
6536
6934
|
color: var(--wui-color-text-error);
|
|
6537
6935
|
display: inline;
|
|
@@ -6539,10 +6937,10 @@ var requiredStyle = import_styled_components29.css`
|
|
|
6539
6937
|
content: '*';
|
|
6540
6938
|
}
|
|
6541
6939
|
`;
|
|
6542
|
-
var disabledStyle =
|
|
6940
|
+
var disabledStyle = import_styled_components31.css`
|
|
6543
6941
|
color: var(--wui-color-text-disabled);
|
|
6544
6942
|
`;
|
|
6545
|
-
var StyledLabel2 = (0,
|
|
6943
|
+
var StyledLabel2 = (0, import_styled_components31.default)(Heading).attrs({
|
|
6546
6944
|
variant: "heading6",
|
|
6547
6945
|
renderAs: "label"
|
|
6548
6946
|
})`
|
|
@@ -6585,10 +6983,10 @@ var Label = ({
|
|
|
6585
6983
|
Label.displayName = "Label";
|
|
6586
6984
|
|
|
6587
6985
|
// src/components/Label/LabelDescription.tsx
|
|
6588
|
-
var
|
|
6589
|
-
var
|
|
6986
|
+
var import_styled_components32 = __toESM(require("styled-components"));
|
|
6987
|
+
var import_type_guards18 = require("@wistia/type-guards");
|
|
6590
6988
|
var import_jsx_runtime174 = require("react/jsx-runtime");
|
|
6591
|
-
var StyledLabelDescription =
|
|
6989
|
+
var StyledLabelDescription = import_styled_components32.default.div`
|
|
6592
6990
|
color: var(--wui-color-text-secondary);
|
|
6593
6991
|
font-size: var(--wui-typography-body-4-size);
|
|
6594
6992
|
font-weight: var(--wui-typography-body-4-weight);
|
|
@@ -6598,7 +6996,7 @@ var LabelDescription = ({
|
|
|
6598
6996
|
children,
|
|
6599
6997
|
...props
|
|
6600
6998
|
}) => {
|
|
6601
|
-
if ((0,
|
|
6999
|
+
if ((0, import_type_guards18.isNil)(children)) {
|
|
6602
7000
|
return null;
|
|
6603
7001
|
}
|
|
6604
7002
|
return /* @__PURE__ */ (0, import_jsx_runtime174.jsx)(StyledLabelDescription, { ...props, children });
|
|
@@ -6624,7 +7022,7 @@ var CheckIcon = () => /* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
|
|
|
6624
7022
|
)
|
|
6625
7023
|
}
|
|
6626
7024
|
);
|
|
6627
|
-
var StyledCheckboxWrapper =
|
|
7025
|
+
var StyledCheckboxWrapper = import_styled_components33.default.div`
|
|
6628
7026
|
display: flex;
|
|
6629
7027
|
align-items: center;
|
|
6630
7028
|
cursor: pointer;
|
|
@@ -6638,7 +7036,7 @@ var StyledCheckboxWrapper = import_styled_components31.default.div`
|
|
|
6638
7036
|
background-color: #efefef;
|
|
6639
7037
|
}
|
|
6640
7038
|
`;
|
|
6641
|
-
var StyledCheckboxRoot = (0,
|
|
7039
|
+
var StyledCheckboxRoot = (0, import_styled_components33.default)(import_react_checkbox.Root)`
|
|
6642
7040
|
all: unset; /* CheckboxRoot renders as a button element, so we need to reset all styles */
|
|
6643
7041
|
background-color: var(--wui-color-bg-fill-white);
|
|
6644
7042
|
min-width: 16px;
|
|
@@ -6672,10 +7070,10 @@ var StyledCheckboxRoot = (0, import_styled_components31.default)(import_react_ch
|
|
|
6672
7070
|
/* TODO Lamp to design focus state */
|
|
6673
7071
|
}
|
|
6674
7072
|
`;
|
|
6675
|
-
var StyledCheckboxIndicator = (0,
|
|
7073
|
+
var StyledCheckboxIndicator = (0, import_styled_components33.default)(import_react_checkbox.Indicator)`
|
|
6676
7074
|
display: flex;
|
|
6677
7075
|
`;
|
|
6678
|
-
var StyledLabelWrapper =
|
|
7076
|
+
var StyledLabelWrapper = import_styled_components33.default.div`
|
|
6679
7077
|
display: flex;
|
|
6680
7078
|
flex-direction: column;
|
|
6681
7079
|
margin-left: var(--wui-space-02);
|
|
@@ -6695,7 +7093,7 @@ var Checkbox = (0, import_react19.forwardRef)(
|
|
|
6695
7093
|
...otherProps
|
|
6696
7094
|
}, ref) => {
|
|
6697
7095
|
const generatedId = (0, import_react19.useId)();
|
|
6698
|
-
const computedId = (0,
|
|
7096
|
+
const computedId = (0, import_type_guards19.isNonEmptyString)(id) ? id : `wistia-ui-checkbox-group-${generatedId}`;
|
|
6699
7097
|
return /* @__PURE__ */ (0, import_jsx_runtime175.jsxs)(StyledCheckboxWrapper, { children: [
|
|
6700
7098
|
/* @__PURE__ */ (0, import_jsx_runtime175.jsx)(
|
|
6701
7099
|
StyledCheckboxRoot,
|
|
@@ -6743,22 +7141,22 @@ var Checkbox = (0, import_react19.forwardRef)(
|
|
|
6743
7141
|
Checkbox.displayName = "Checkbox";
|
|
6744
7142
|
|
|
6745
7143
|
// src/components/Divider/Divider.tsx
|
|
6746
|
-
var
|
|
7144
|
+
var import_styled_components34 = __toESM(require("styled-components"));
|
|
6747
7145
|
var import_jsx_runtime176 = require("react/jsx-runtime");
|
|
6748
|
-
var horizontalBorderCss =
|
|
7146
|
+
var horizontalBorderCss = import_styled_components34.css`
|
|
6749
7147
|
border-top-color: var(--wui-color-border);
|
|
6750
7148
|
border-top-style: solid;
|
|
6751
7149
|
border-top-width: 1px;
|
|
6752
7150
|
clear: both; /* for horizontal dividers, ensure it clears any floats */
|
|
6753
7151
|
height: 0;
|
|
6754
7152
|
`;
|
|
6755
|
-
var verticalBorderCss =
|
|
7153
|
+
var verticalBorderCss = import_styled_components34.css`
|
|
6756
7154
|
background-color: var(--wui-color-border);
|
|
6757
7155
|
max-width: 1px;
|
|
6758
7156
|
min-height: 100%;
|
|
6759
7157
|
width: 1px;
|
|
6760
7158
|
`;
|
|
6761
|
-
var DividerComponent =
|
|
7159
|
+
var DividerComponent = import_styled_components34.default.div`
|
|
6762
7160
|
${({ $orientation }) => {
|
|
6763
7161
|
switch ($orientation) {
|
|
6764
7162
|
case "vertical":
|
|
@@ -6787,15 +7185,15 @@ Divider.displayName = "Divider";
|
|
|
6787
7185
|
|
|
6788
7186
|
// src/components/Form/Form.tsx
|
|
6789
7187
|
var import_react21 = require("react");
|
|
6790
|
-
var
|
|
6791
|
-
var
|
|
7188
|
+
var import_styled_components36 = __toESM(require("styled-components"));
|
|
7189
|
+
var import_type_guards20 = require("@wistia/type-guards");
|
|
6792
7190
|
|
|
6793
7191
|
// src/components/Stack/Stack.tsx
|
|
6794
7192
|
var import_react20 = require("react");
|
|
6795
|
-
var
|
|
7193
|
+
var import_styled_components35 = __toESM(require("styled-components"));
|
|
6796
7194
|
var import_jsx_runtime177 = require("react/jsx-runtime");
|
|
6797
7195
|
var DEFAULT_ELEMENT3 = "div";
|
|
6798
|
-
var StyledStack =
|
|
7196
|
+
var StyledStack = import_styled_components35.default.div`
|
|
6799
7197
|
display: flex;
|
|
6800
7198
|
flex-direction: ${({ $direction }) => $direction === "horizontal" ? "row" : "column"};
|
|
6801
7199
|
gap: ${({ $gap }) => `var(--wui-${$gap})`};
|
|
@@ -6821,7 +7219,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
6821
7219
|
|
|
6822
7220
|
// src/components/Form/Form.tsx
|
|
6823
7221
|
var import_jsx_runtime178 = require("react/jsx-runtime");
|
|
6824
|
-
var StyledForm =
|
|
7222
|
+
var StyledForm = import_styled_components36.default.form`
|
|
6825
7223
|
--form-default-width: 690px;
|
|
6826
7224
|
|
|
6827
7225
|
max-width: ${({ $fullWidth }) => $fullWidth ? "auto" : "var(--form-default-width)"};
|
|
@@ -6842,7 +7240,7 @@ var FormComponent = ({ children, action, values = {}, validate, fullWidth = fals
|
|
|
6842
7240
|
const id = props.id ?? autoId;
|
|
6843
7241
|
const handleValidate = (nextFormData) => {
|
|
6844
7242
|
const nextData = Object.fromEntries(nextFormData.entries());
|
|
6845
|
-
if ((0,
|
|
7243
|
+
if ((0, import_type_guards20.isUndefined)(validate)) {
|
|
6846
7244
|
return {};
|
|
6847
7245
|
}
|
|
6848
7246
|
return validate(nextData);
|
|
@@ -6852,7 +7250,7 @@ var FormComponent = ({ children, action, values = {}, validate, fullWidth = fals
|
|
|
6852
7250
|
props.onBlur(event);
|
|
6853
7251
|
}
|
|
6854
7252
|
const formData = new FormData(event.currentTarget);
|
|
6855
|
-
if ((0,
|
|
7253
|
+
if ((0, import_type_guards20.isNotUndefined)(validate)) {
|
|
6856
7254
|
handleValidate(formData);
|
|
6857
7255
|
}
|
|
6858
7256
|
};
|
|
@@ -6948,7 +7346,7 @@ var useFormState = (action, initialData = {}) => {
|
|
|
6948
7346
|
|
|
6949
7347
|
// src/components/Form/FormErrorSummary.tsx
|
|
6950
7348
|
var import_react23 = require("react");
|
|
6951
|
-
var
|
|
7349
|
+
var import_type_guards21 = require("@wistia/type-guards");
|
|
6952
7350
|
var import_jsx_runtime179 = require("react/jsx-runtime");
|
|
6953
7351
|
var ErrorItem = ({ name, error, formId }) => {
|
|
6954
7352
|
return /* @__PURE__ */ (0, import_jsx_runtime179.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(Link, { href: `${formId}-${name}`, children: error }) }, name);
|
|
@@ -6962,8 +7360,8 @@ var FormErrorSummary = ({ description }) => {
|
|
|
6962
7360
|
}
|
|
6963
7361
|
return /* @__PURE__ */ (0, import_jsx_runtime179.jsxs)("div", { ref, children: [
|
|
6964
7362
|
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("p", { children: description }),
|
|
6965
|
-
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0,
|
|
6966
|
-
([name, error]) => (0,
|
|
7363
|
+
/* @__PURE__ */ (0, import_jsx_runtime179.jsx)("ul", { children: Object.entries(errors).filter(([, error]) => (0, import_type_guards21.isNotUndefined)(error)).map(
|
|
7364
|
+
([name, error]) => (0, import_type_guards21.isArray)(error) ? error.map((err) => /* @__PURE__ */ (0, import_jsx_runtime179.jsx)(
|
|
6967
7365
|
ErrorItem,
|
|
6968
7366
|
{
|
|
6969
7367
|
error: err,
|
|
@@ -6986,94 +7384,94 @@ var FormErrorSummary = ({ description }) => {
|
|
|
6986
7384
|
|
|
6987
7385
|
// src/components/FormField/FormField.tsx
|
|
6988
7386
|
var import_react27 = require("react");
|
|
6989
|
-
var
|
|
6990
|
-
var
|
|
7387
|
+
var import_styled_components39 = __toESM(require("styled-components"));
|
|
7388
|
+
var import_type_guards22 = require("@wistia/type-guards");
|
|
6991
7389
|
|
|
6992
7390
|
// src/components/Text/Text.tsx
|
|
6993
7391
|
var import_react24 = require("react");
|
|
6994
|
-
var
|
|
7392
|
+
var import_styled_components37 = __toESM(require("styled-components"));
|
|
6995
7393
|
var import_jsx_runtime180 = require("react/jsx-runtime");
|
|
6996
|
-
var bodyBoldStyles =
|
|
7394
|
+
var bodyBoldStyles = import_styled_components37.css`
|
|
6997
7395
|
> strong,
|
|
6998
7396
|
b {
|
|
6999
7397
|
font-weight: var(--wui-typography-weight-body-bold);
|
|
7000
7398
|
}
|
|
7001
7399
|
`;
|
|
7002
|
-
var labelBoldStyles =
|
|
7400
|
+
var labelBoldStyles = import_styled_components37.css`
|
|
7003
7401
|
> strong,
|
|
7004
7402
|
b {
|
|
7005
7403
|
font-weight: var(--wui-typography-weight-label-bold);
|
|
7006
7404
|
}
|
|
7007
7405
|
`;
|
|
7008
|
-
var body1TextStyle =
|
|
7406
|
+
var body1TextStyle = import_styled_components37.css`
|
|
7009
7407
|
--font-family: var(--wui-typography-body-1-family);
|
|
7010
7408
|
--font-size: var(--wui-typography-body-1-size);
|
|
7011
7409
|
--font-weight: var(--wui-typography-body-1-weight);
|
|
7012
7410
|
--line-height: var(--wui-typography-body-1-line-height);
|
|
7013
7411
|
${bodyBoldStyles}
|
|
7014
7412
|
`;
|
|
7015
|
-
var body2TextStyle =
|
|
7413
|
+
var body2TextStyle = import_styled_components37.css`
|
|
7016
7414
|
--font-family: var(--wui-typography-body-2-family);
|
|
7017
7415
|
--font-size: var(--wui-typography-body-2-size);
|
|
7018
7416
|
--font-weight: var(--wui-typography-body-2-weight);
|
|
7019
7417
|
--line-height: var(--wui-typography-body-2-line-height);
|
|
7020
7418
|
${bodyBoldStyles}
|
|
7021
7419
|
`;
|
|
7022
|
-
var body3TextStyle =
|
|
7420
|
+
var body3TextStyle = import_styled_components37.css`
|
|
7023
7421
|
--font-family: var(--wui-typography-body-3-family);
|
|
7024
7422
|
--font-size: var(--wui-typography-body-3-size);
|
|
7025
7423
|
--font-weight: var(--wui-typography-body-3-weight);
|
|
7026
7424
|
--line-height: var(--wui-typography-body-3-line-height);
|
|
7027
7425
|
${bodyBoldStyles}
|
|
7028
7426
|
`;
|
|
7029
|
-
var body4TextStyle =
|
|
7427
|
+
var body4TextStyle = import_styled_components37.css`
|
|
7030
7428
|
--font-family: var(--wui-typography-body-4-family);
|
|
7031
7429
|
--font-size: var(--wui-typography-body-4-size);
|
|
7032
7430
|
--font-weight: var(--wui-typography-body-4-weight);
|
|
7033
7431
|
--line-height: var(--wui-typography-body-4-line-height);
|
|
7034
7432
|
${bodyBoldStyles}
|
|
7035
7433
|
`;
|
|
7036
|
-
var label1TextStyle =
|
|
7434
|
+
var label1TextStyle = import_styled_components37.css`
|
|
7037
7435
|
--font-family: var(--wui-typography-label-1-family);
|
|
7038
7436
|
--font-size: var(--wui-typography-label-1-size);
|
|
7039
7437
|
--font-weight: var(--wui-typography-label-1-weight);
|
|
7040
7438
|
--line-height: var(--wui-typography-label-1-line-height);
|
|
7041
7439
|
${labelBoldStyles}
|
|
7042
7440
|
`;
|
|
7043
|
-
var label2TextStyle =
|
|
7441
|
+
var label2TextStyle = import_styled_components37.css`
|
|
7044
7442
|
--font-family: var(--wui-typography-label-2-family);
|
|
7045
7443
|
--font-size: var(--wui-typography-label-2-size);
|
|
7046
7444
|
--font-weight: var(--wui-typography-label-2-weight);
|
|
7047
7445
|
--line-height: var(--wui-typography-label-2-line-height);
|
|
7048
7446
|
${labelBoldStyles}
|
|
7049
7447
|
`;
|
|
7050
|
-
var label3TextStyle =
|
|
7448
|
+
var label3TextStyle = import_styled_components37.css`
|
|
7051
7449
|
--font-family: var(--wui-typography-label-3-family);
|
|
7052
7450
|
--font-size: var(--wui-typography-label-3-size);
|
|
7053
7451
|
--font-weight: var(--wui-typography-label-3-weight);
|
|
7054
7452
|
--line-height: var(--wui-typography-label-3-line-height);
|
|
7055
7453
|
${labelBoldStyles}
|
|
7056
7454
|
`;
|
|
7057
|
-
var label4TextStyle =
|
|
7455
|
+
var label4TextStyle = import_styled_components37.css`
|
|
7058
7456
|
--font-family: var(--wui-typography-label-4-family);
|
|
7059
7457
|
--font-size: var(--wui-typography-label-4-size);
|
|
7060
7458
|
--font-weight: var(--wui-typography-label-4-weight);
|
|
7061
7459
|
--line-height: var(--wui-typography-label-4-line-height);
|
|
7062
7460
|
${labelBoldStyles}
|
|
7063
7461
|
`;
|
|
7064
|
-
var body1MonoTextStyle =
|
|
7462
|
+
var body1MonoTextStyle = import_styled_components37.css`
|
|
7065
7463
|
${body1TextStyle};
|
|
7066
7464
|
--font-family: var(--wui-typography-family-mono);
|
|
7067
7465
|
`;
|
|
7068
|
-
var body2MonoTextStyle =
|
|
7466
|
+
var body2MonoTextStyle = import_styled_components37.css`
|
|
7069
7467
|
${body2TextStyle};
|
|
7070
7468
|
--font-family: var(--wui-typography-family-mono);
|
|
7071
7469
|
`;
|
|
7072
|
-
var body3MonoTextStyle =
|
|
7470
|
+
var body3MonoTextStyle = import_styled_components37.css`
|
|
7073
7471
|
${body3TextStyle};
|
|
7074
7472
|
--font-family: var(--wui-typography-family-mono);
|
|
7075
7473
|
`;
|
|
7076
|
-
var body4MonoTextStyle =
|
|
7474
|
+
var body4MonoTextStyle = import_styled_components37.css`
|
|
7077
7475
|
${body4TextStyle};
|
|
7078
7476
|
--font-family: var(--wui-typography-family-mono);
|
|
7079
7477
|
`;
|
|
@@ -7091,7 +7489,7 @@ var variantStyleMap2 = {
|
|
|
7091
7489
|
label3: label3TextStyle,
|
|
7092
7490
|
label4: label4TextStyle
|
|
7093
7491
|
};
|
|
7094
|
-
var StyledText =
|
|
7492
|
+
var StyledText = import_styled_components37.default.div`
|
|
7095
7493
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
7096
7494
|
--text-color: ${({ $prominence, $disabled }) => {
|
|
7097
7495
|
if ($disabled) {
|
|
@@ -7115,19 +7513,19 @@ var StyledText = import_styled_components35.default.div`
|
|
|
7115
7513
|
margin: 0;
|
|
7116
7514
|
${({ $variant }) => variantStyleMap2[$variant]}
|
|
7117
7515
|
${({ $ellipsis }) => $ellipsis && ellipsisStyle};
|
|
7118
|
-
${({ $inline }) => $inline &&
|
|
7516
|
+
${({ $inline }) => $inline && import_styled_components37.css`
|
|
7119
7517
|
display: inline-block;
|
|
7120
7518
|
`}
|
|
7121
|
-
${({ $disabled }) => $disabled &&
|
|
7519
|
+
${({ $disabled }) => $disabled && import_styled_components37.css`
|
|
7122
7520
|
--text-color: var(--wui-color-text-disabled);
|
|
7123
7521
|
`}
|
|
7124
|
-
${({ $preventUserSelect }) => $preventUserSelect &&
|
|
7522
|
+
${({ $preventUserSelect }) => $preventUserSelect && import_styled_components37.css`
|
|
7125
7523
|
user-select: none;
|
|
7126
7524
|
`}
|
|
7127
|
-
${({ $align }) =>
|
|
7525
|
+
${({ $align }) => import_styled_components37.css`
|
|
7128
7526
|
text-align: ${$align};
|
|
7129
7527
|
`}
|
|
7130
|
-
${({ as }) => as === "p" &&
|
|
7528
|
+
${({ as }) => as === "p" && import_styled_components37.css`
|
|
7131
7529
|
display: block;
|
|
7132
7530
|
`}
|
|
7133
7531
|
`;
|
|
@@ -7170,13 +7568,13 @@ var Text = makePolymorphic(TextComponent);
|
|
|
7170
7568
|
var import_react26 = require("react");
|
|
7171
7569
|
|
|
7172
7570
|
// src/components/FormGroup/FormGroup.tsx
|
|
7173
|
-
var
|
|
7571
|
+
var import_styled_components38 = __toESM(require("styled-components"));
|
|
7174
7572
|
var import_react25 = require("react");
|
|
7175
7573
|
var import_jsx_runtime181 = require("react/jsx-runtime");
|
|
7176
|
-
var StyledFieldset =
|
|
7574
|
+
var StyledFieldset = import_styled_components38.default.fieldset`
|
|
7177
7575
|
border: 0;
|
|
7178
7576
|
`;
|
|
7179
|
-
var StyledLegend =
|
|
7577
|
+
var StyledLegend = import_styled_components38.default.legend`
|
|
7180
7578
|
margin-bottom: var(--space-01);
|
|
7181
7579
|
`;
|
|
7182
7580
|
var FormGroup = ({ children, label, ...props }) => {
|
|
@@ -7225,7 +7623,7 @@ CheckboxGroup.displayName = "CheckboxGroup";
|
|
|
7225
7623
|
|
|
7226
7624
|
// src/components/FormField/FormField.tsx
|
|
7227
7625
|
var import_jsx_runtime183 = require("react/jsx-runtime");
|
|
7228
|
-
var StyledFormField =
|
|
7626
|
+
var StyledFormField = import_styled_components39.default.div`
|
|
7229
7627
|
--form-field-spacing: var(--wui-space-01);
|
|
7230
7628
|
--form-field-error-color: var(--wui-color-text-secondary-error);
|
|
7231
7629
|
|
|
@@ -7233,7 +7631,7 @@ var StyledFormField = import_styled_components37.default.div`
|
|
|
7233
7631
|
flex-direction: column;
|
|
7234
7632
|
gap: var(--form-field-spacing);
|
|
7235
7633
|
`;
|
|
7236
|
-
var StyledErrorList =
|
|
7634
|
+
var StyledErrorList = import_styled_components39.default.ul`
|
|
7237
7635
|
margin: 0;
|
|
7238
7636
|
padding: 0;
|
|
7239
7637
|
padding-left: var(--wui-space-04);
|
|
@@ -7242,7 +7640,7 @@ var StyledErrorList = import_styled_components37.default.ul`
|
|
|
7242
7640
|
gap: var(--wui-space-01);
|
|
7243
7641
|
`;
|
|
7244
7642
|
var ErrorMessages = ({ errors, id }) => {
|
|
7245
|
-
const isMultipleErrors = (0,
|
|
7643
|
+
const isMultipleErrors = (0, import_type_guards22.isArray)(errors);
|
|
7246
7644
|
return isMultipleErrors ? /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
7247
7645
|
Text,
|
|
7248
7646
|
{
|
|
@@ -7285,19 +7683,19 @@ var FormField = ({
|
|
|
7285
7683
|
label: isInlineLabel ? label : void 0,
|
|
7286
7684
|
...props
|
|
7287
7685
|
};
|
|
7288
|
-
if ((0,
|
|
7686
|
+
if ((0, import_type_guards22.isUndefined)(value) && (0, import_type_guards22.isNotUndefined)(defaultValue)) {
|
|
7289
7687
|
childProps = {
|
|
7290
7688
|
...childProps,
|
|
7291
7689
|
defaultValue
|
|
7292
7690
|
};
|
|
7293
7691
|
}
|
|
7294
|
-
if ((0,
|
|
7295
|
-
const computedName = (0,
|
|
7692
|
+
if ((0, import_type_guards22.isNotNil)(checkboxGroup)) {
|
|
7693
|
+
const computedName = (0, import_type_guards22.isNotNil)(checkboxGroup.name) ? `${checkboxGroup.name}[${name}]` : name;
|
|
7296
7694
|
const handleChange = (event) => {
|
|
7297
|
-
if ((0,
|
|
7695
|
+
if ((0, import_type_guards22.isNotUndefined)(props.onChange)) {
|
|
7298
7696
|
props.onChange(event);
|
|
7299
7697
|
}
|
|
7300
|
-
if ((0,
|
|
7698
|
+
if ((0, import_type_guards22.isNotUndefined)(checkboxGroup.onChange)) {
|
|
7301
7699
|
checkboxGroup.onChange(event);
|
|
7302
7700
|
}
|
|
7303
7701
|
};
|
|
@@ -7305,15 +7703,15 @@ var FormField = ({
|
|
|
7305
7703
|
...childProps,
|
|
7306
7704
|
name: computedName,
|
|
7307
7705
|
onChange: handleChange,
|
|
7308
|
-
"aria-invalid": (0,
|
|
7309
|
-
"aria-describedby": (0,
|
|
7706
|
+
"aria-invalid": (0, import_type_guards22.isNotNil)(error),
|
|
7707
|
+
"aria-describedby": (0, import_type_guards22.isNotNil)(error) ? `${id}-error` : void 0
|
|
7310
7708
|
};
|
|
7311
7709
|
}
|
|
7312
7710
|
import_react27.Children.only(children);
|
|
7313
7711
|
return /* @__PURE__ */ (0, import_jsx_runtime183.jsxs)(StyledFormField, { ...props, children: [
|
|
7314
7712
|
!isInlineLabel && /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(Label, { htmlFor: id, children: label }),
|
|
7315
7713
|
(0, import_react27.cloneElement)(children, childProps),
|
|
7316
|
-
(0,
|
|
7714
|
+
(0, import_type_guards22.isNotNil)(computedError) ? /* @__PURE__ */ (0, import_jsx_runtime183.jsx)(
|
|
7317
7715
|
ErrorMessages,
|
|
7318
7716
|
{
|
|
7319
7717
|
errors: computedError,
|
|
@@ -7347,9 +7745,9 @@ RadioGroup.displayName = "RadioGroup";
|
|
|
7347
7745
|
|
|
7348
7746
|
// src/components/IconButton/IconButton.tsx
|
|
7349
7747
|
var import_react29 = require("react");
|
|
7350
|
-
var
|
|
7748
|
+
var import_styled_components40 = __toESM(require("styled-components"));
|
|
7351
7749
|
var import_jsx_runtime185 = require("react/jsx-runtime");
|
|
7352
|
-
var StyledButton2 = (0,
|
|
7750
|
+
var StyledButton2 = (0, import_styled_components40.default)(Button)`
|
|
7353
7751
|
--icon-button-size-sm: 24px;
|
|
7354
7752
|
--icon-button-size-md: 32px;
|
|
7355
7753
|
--icon-button-size-lg: 40px;
|
|
@@ -7385,10 +7783,10 @@ IconButton.displayName = "IconButton";
|
|
|
7385
7783
|
|
|
7386
7784
|
// src/components/Input/Input.tsx
|
|
7387
7785
|
var import_react30 = require("react");
|
|
7388
|
-
var
|
|
7389
|
-
var
|
|
7786
|
+
var import_styled_components41 = __toESM(require("styled-components"));
|
|
7787
|
+
var import_type_guards23 = require("@wistia/type-guards");
|
|
7390
7788
|
var import_jsx_runtime186 = require("react/jsx-runtime");
|
|
7391
|
-
var inputStyles =
|
|
7789
|
+
var inputStyles = import_styled_components41.css`
|
|
7392
7790
|
--wui-input-color-bg: var(--wui-color-bg-surface);
|
|
7393
7791
|
--wui-input-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
7394
7792
|
--wui-input-color-border: var(--wui-color-border);
|
|
@@ -7429,7 +7827,7 @@ var inputStyles = import_styled_components39.css`
|
|
|
7429
7827
|
}
|
|
7430
7828
|
}
|
|
7431
7829
|
`;
|
|
7432
|
-
var StyledInputContainer =
|
|
7830
|
+
var StyledInputContainer = import_styled_components41.default.div`
|
|
7433
7831
|
display: inline-flex;
|
|
7434
7832
|
position: relative;
|
|
7435
7833
|
${inputStyles};
|
|
@@ -7474,7 +7872,7 @@ var StyledInputContainer = import_styled_components39.default.div`
|
|
|
7474
7872
|
}
|
|
7475
7873
|
`;
|
|
7476
7874
|
var isValidRef = (ref) => {
|
|
7477
|
-
return typeof ref === "object" && ref !== null && "current" in ref && (0,
|
|
7875
|
+
return typeof ref === "object" && ref !== null && "current" in ref && (0, import_type_guards23.isNotNil)(ref.current);
|
|
7478
7876
|
};
|
|
7479
7877
|
var Input = (0, import_react30.forwardRef)(
|
|
7480
7878
|
({
|
|
@@ -7489,24 +7887,24 @@ var Input = (0, import_react30.forwardRef)(
|
|
|
7489
7887
|
const internalRef = (0, import_react30.useRef)();
|
|
7490
7888
|
const ref = isValidRef(externalRef) ? externalRef : internalRef;
|
|
7491
7889
|
let leftIconToDisplay = leftIcon;
|
|
7492
|
-
if ((0,
|
|
7890
|
+
if ((0, import_type_guards23.isNil)(leftIcon) && type === "search") {
|
|
7493
7891
|
leftIconToDisplay = /* @__PURE__ */ (0, import_jsx_runtime186.jsx)(Icon, { type: "search" });
|
|
7494
7892
|
}
|
|
7495
|
-
if ((0,
|
|
7893
|
+
if ((0, import_type_guards23.isNotNil)(leftIconToDisplay)) {
|
|
7496
7894
|
leftIconToDisplay = (0, import_react30.cloneElement)(leftIconToDisplay, {
|
|
7497
7895
|
size: "md",
|
|
7498
7896
|
className: "wui-input-left-icon"
|
|
7499
7897
|
});
|
|
7500
7898
|
}
|
|
7501
7899
|
let rightIconToDisplay = rightIcon;
|
|
7502
|
-
if ((0,
|
|
7900
|
+
if ((0, import_type_guards23.isNotNil)(rightIconToDisplay)) {
|
|
7503
7901
|
rightIconToDisplay = (0, import_react30.cloneElement)(rightIconToDisplay, {
|
|
7504
7902
|
size: "md",
|
|
7505
7903
|
className: "wui-input-right-icon"
|
|
7506
7904
|
});
|
|
7507
7905
|
}
|
|
7508
7906
|
const handleFocus = (event) => {
|
|
7509
|
-
if ((0,
|
|
7907
|
+
if ((0, import_type_guards23.isNotNil)(props.onFocus)) {
|
|
7510
7908
|
props.onFocus(event);
|
|
7511
7909
|
}
|
|
7512
7910
|
if (autoSelect && ref && "current" in ref) {
|
|
@@ -7547,9 +7945,9 @@ var Input = (0, import_react30.forwardRef)(
|
|
|
7547
7945
|
Input.displayName = "Input";
|
|
7548
7946
|
|
|
7549
7947
|
// src/components/Menu/Menu.tsx
|
|
7550
|
-
var
|
|
7948
|
+
var import_styled_components42 = __toESM(require("styled-components"));
|
|
7551
7949
|
var import_react_dropdown_menu = require("@radix-ui/react-dropdown-menu");
|
|
7552
|
-
var
|
|
7950
|
+
var import_type_guards24 = require("@wistia/type-guards");
|
|
7553
7951
|
var import_react32 = require("react");
|
|
7554
7952
|
|
|
7555
7953
|
// src/components/Menu/MenuContext.tsx
|
|
@@ -7559,7 +7957,7 @@ var useMenuContext = () => (0, import_react31.useContext)(MenuContext);
|
|
|
7559
7957
|
|
|
7560
7958
|
// src/components/Menu/Menu.tsx
|
|
7561
7959
|
var import_jsx_runtime187 = require("react/jsx-runtime");
|
|
7562
|
-
var open =
|
|
7960
|
+
var open = import_styled_components42.keyframes`
|
|
7563
7961
|
from {
|
|
7564
7962
|
opacity: 0;
|
|
7565
7963
|
transform: scale(.97) translateY(-8px);
|
|
@@ -7569,7 +7967,7 @@ var open = import_styled_components40.keyframes`
|
|
|
7569
7967
|
transform: scale(1);
|
|
7570
7968
|
}
|
|
7571
7969
|
`;
|
|
7572
|
-
var close =
|
|
7970
|
+
var close = import_styled_components42.keyframes`
|
|
7573
7971
|
from {
|
|
7574
7972
|
opacity: 1;
|
|
7575
7973
|
transform: scale(1);
|
|
@@ -7579,7 +7977,7 @@ var close = import_styled_components40.keyframes`
|
|
|
7579
7977
|
transform: scale(.97) translateY(-8px);
|
|
7580
7978
|
}
|
|
7581
7979
|
`;
|
|
7582
|
-
var menuItemCss =
|
|
7980
|
+
var menuItemCss = import_styled_components42.css`
|
|
7583
7981
|
--menu-label-description-gap: var(--wui-space-01);
|
|
7584
7982
|
--menu-item-inner-gap: var(--wui-space-03);
|
|
7585
7983
|
--menu-item-left-icon-size: 24px;
|
|
@@ -7590,7 +7988,7 @@ var menuItemCss = import_styled_components40.css`
|
|
|
7590
7988
|
--menu-label-line-height: var(--wui-typography-label-3-line-height);
|
|
7591
7989
|
--menu-divider-margin: var(--wui-space-02);
|
|
7592
7990
|
`;
|
|
7593
|
-
var compactMenuItemCss =
|
|
7991
|
+
var compactMenuItemCss = import_styled_components42.css`
|
|
7594
7992
|
--menu-label-description-gap: 0;
|
|
7595
7993
|
--menu-item-inner-gap: var(--wui-space-02);
|
|
7596
7994
|
--menu-item-left-icon-size: 16px;
|
|
@@ -7601,18 +7999,19 @@ var compactMenuItemCss = import_styled_components40.css`
|
|
|
7601
7999
|
--menu-label-line-height: var(--wui-typography-label-4-line-height);
|
|
7602
8000
|
--menu-divider-margin: var(--wui-space-01);
|
|
7603
8001
|
`;
|
|
7604
|
-
var menuContentCss =
|
|
8002
|
+
var menuContentCss = import_styled_components42.css`
|
|
7605
8003
|
--menu-font-family: var(--wui-typography-family-default);
|
|
7606
8004
|
--menu-bg: var(--wui-color-bg-surface);
|
|
7607
|
-
--menu-shadow:
|
|
8005
|
+
--menu-shadow: var(--wui-elevation-01);
|
|
7608
8006
|
--menu-border-radius: var(--wui-border-radius-02);
|
|
7609
8007
|
--menu-padding: var(--wui-space-02);
|
|
7610
8008
|
--menu-min-width: 120px;
|
|
7611
8009
|
--menu-max-width: 284px;
|
|
8010
|
+
--menu-animation-duration: var(--wui-motion-duration-03);
|
|
7612
8011
|
|
|
7613
8012
|
${({ $compact }) => $compact ? compactMenuItemCss : menuItemCss};
|
|
7614
8013
|
|
|
7615
|
-
animation: ${open};
|
|
8014
|
+
animation: var(--menu-animation-duration) var(--wui-motion-ease-out) ${open};
|
|
7616
8015
|
font-family: var(--menu-font-family);
|
|
7617
8016
|
background: var(--menu-bg);
|
|
7618
8017
|
border-radius: var(--menu-border-radius);
|
|
@@ -7627,7 +8026,7 @@ var menuContentCss = import_styled_components40.css`
|
|
|
7627
8026
|
border: 1px solid var(--wui-color-border);
|
|
7628
8027
|
|
|
7629
8028
|
&[data-state='closed'] {
|
|
7630
|
-
animation: ${close}; /* TODO - need easing tokens */
|
|
8029
|
+
animation: var(--menu-animation-duration) var(--wui-motion-ease-in) ${close}; /* TODO - need easing tokens */
|
|
7631
8030
|
}
|
|
7632
8031
|
|
|
7633
8032
|
${mq.smAndUp} {
|
|
@@ -7642,7 +8041,7 @@ var menuContentCss = import_styled_components40.css`
|
|
|
7642
8041
|
margin: var(--menu-divider-margin) 0;
|
|
7643
8042
|
}
|
|
7644
8043
|
`;
|
|
7645
|
-
var MenuContent = (0,
|
|
8044
|
+
var MenuContent = (0, import_styled_components42.default)(import_react_dropdown_menu.DropdownMenuContent)`
|
|
7646
8045
|
${menuContentCss}
|
|
7647
8046
|
`;
|
|
7648
8047
|
var Menu = ({
|
|
@@ -7660,7 +8059,7 @@ var Menu = ({
|
|
|
7660
8059
|
}) => {
|
|
7661
8060
|
const contextValue = (0, import_react32.useMemo)(() => ({ compact }), [compact]);
|
|
7662
8061
|
let controlProps = {
|
|
7663
|
-
...(0,
|
|
8062
|
+
...(0, import_type_guards24.isNotNil)(onOpenChange) && (0, import_type_guards24.isNotNil)(isOpen) ? { open: isOpen, onOpenChange } : {}
|
|
7664
8063
|
};
|
|
7665
8064
|
if (disabled) {
|
|
7666
8065
|
controlProps = {
|
|
@@ -7674,7 +8073,7 @@ var Menu = ({
|
|
|
7674
8073
|
modal: false,
|
|
7675
8074
|
...controlProps,
|
|
7676
8075
|
children: [
|
|
7677
|
-
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0,
|
|
8076
|
+
/* @__PURE__ */ (0, import_jsx_runtime187.jsx)(import_react_dropdown_menu.DropdownMenuTrigger, { asChild: true, children: (0, import_type_guards24.isNotUndefined)(trigger) ? trigger : /* @__PURE__ */ (0, import_jsx_runtime187.jsx)(
|
|
7678
8077
|
Button,
|
|
7679
8078
|
{
|
|
7680
8079
|
"aria-expanded": isOpen,
|
|
@@ -7705,10 +8104,10 @@ var Menu = ({
|
|
|
7705
8104
|
Menu.displayName = "Menu";
|
|
7706
8105
|
|
|
7707
8106
|
// src/components/Menu/MenuLabel.tsx
|
|
7708
|
-
var
|
|
8107
|
+
var import_styled_components43 = __toESM(require("styled-components"));
|
|
7709
8108
|
var import_react_dropdown_menu2 = require("@radix-ui/react-dropdown-menu");
|
|
7710
8109
|
var import_jsx_runtime188 = require("react/jsx-runtime");
|
|
7711
|
-
var StyledMenuLabel = (0,
|
|
8110
|
+
var StyledMenuLabel = (0, import_styled_components43.default)(import_react_dropdown_menu2.DropdownMenuLabel)`
|
|
7712
8111
|
padding: var(--wui-space-02);
|
|
7713
8112
|
`;
|
|
7714
8113
|
var MenuLabel = ({ children, ...props }) => {
|
|
@@ -7733,16 +8132,16 @@ MenuLabel.displayName = "MenuLabel";
|
|
|
7733
8132
|
|
|
7734
8133
|
// src/components/Menu/SubMenu.tsx
|
|
7735
8134
|
var import_react34 = require("react");
|
|
7736
|
-
var
|
|
8135
|
+
var import_styled_components46 = __toESM(require("styled-components"));
|
|
7737
8136
|
var import_react_dropdown_menu3 = require("@radix-ui/react-dropdown-menu");
|
|
7738
|
-
var
|
|
8137
|
+
var import_type_guards26 = require("@wistia/type-guards");
|
|
7739
8138
|
|
|
7740
8139
|
// src/components/Menu/MenuItemButton.tsx
|
|
7741
8140
|
var import_react33 = require("react");
|
|
7742
|
-
var
|
|
7743
|
-
var
|
|
8141
|
+
var import_styled_components44 = __toESM(require("styled-components"));
|
|
8142
|
+
var import_type_guards25 = require("@wistia/type-guards");
|
|
7744
8143
|
var import_jsx_runtime189 = require("react/jsx-runtime");
|
|
7745
|
-
var StyledButton3 = (0,
|
|
8144
|
+
var StyledButton3 = (0, import_styled_components44.default)(Button)`
|
|
7746
8145
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
7747
8146
|
|
|
7748
8147
|
display: flex;
|
|
@@ -7755,6 +8154,7 @@ var StyledButton3 = (0, import_styled_components42.default)(Button)`
|
|
|
7755
8154
|
font-size: var(--menu-label-font-size);
|
|
7756
8155
|
font-weight: var(--menu-label-font-weight);
|
|
7757
8156
|
line-height: var(--menu-label-line-height);
|
|
8157
|
+
transition: background-color var(--wui-motion-duration-01) var(--wui-motion-ease);
|
|
7758
8158
|
|
|
7759
8159
|
:active {
|
|
7760
8160
|
background-color: var(--wui-color-bg-surface-active);
|
|
@@ -7780,7 +8180,7 @@ var StyledButton3 = (0, import_styled_components42.default)(Button)`
|
|
|
7780
8180
|
padding-left: var(--wui-space-04);
|
|
7781
8181
|
}
|
|
7782
8182
|
`;
|
|
7783
|
-
var StyledLeftIconContainer =
|
|
8183
|
+
var StyledLeftIconContainer = import_styled_components44.default.div`
|
|
7784
8184
|
height: var(--menu-item-left-icon-size);
|
|
7785
8185
|
width: var(--menu-item-left-icon-size);
|
|
7786
8186
|
|
|
@@ -7789,7 +8189,7 @@ var StyledLeftIconContainer = import_styled_components42.default.div`
|
|
|
7789
8189
|
width: var(--menu-item-left-icon-size);
|
|
7790
8190
|
}
|
|
7791
8191
|
`;
|
|
7792
|
-
var StyledRightIconContainer =
|
|
8192
|
+
var StyledRightIconContainer = import_styled_components44.default.div`
|
|
7793
8193
|
height: var(--menu-item-right-icon-size);
|
|
7794
8194
|
width: var(--menu-item-right-icon-size);
|
|
7795
8195
|
|
|
@@ -7798,13 +8198,13 @@ var StyledRightIconContainer = import_styled_components42.default.div`
|
|
|
7798
8198
|
width: var(--menu-item-right-icon-size);
|
|
7799
8199
|
}
|
|
7800
8200
|
`;
|
|
7801
|
-
var StyledLabelAndDescriptionContainer =
|
|
8201
|
+
var StyledLabelAndDescriptionContainer = import_styled_components44.default.div`
|
|
7802
8202
|
display: flex;
|
|
7803
8203
|
flex-direction: column;
|
|
7804
8204
|
gap: var(--menu-label-description-gap);
|
|
7805
8205
|
flex-basis: 100%;
|
|
7806
8206
|
`;
|
|
7807
|
-
var StyledBadgeContainer =
|
|
8207
|
+
var StyledBadgeContainer = import_styled_components44.default.div`
|
|
7808
8208
|
align-self: start;
|
|
7809
8209
|
justify-self: end;
|
|
7810
8210
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -7813,7 +8213,7 @@ var StyledBadgeContainer = import_styled_components42.default.div`
|
|
|
7813
8213
|
var MenuItemButton = (0, import_react33.forwardRef)(({ children, appearance, command, icon, ...props }, ref) => {
|
|
7814
8214
|
let { colorScheme, badge } = props;
|
|
7815
8215
|
if (appearance === "dangerous") {
|
|
7816
|
-
if ((0,
|
|
8216
|
+
if ((0, import_type_guards25.isNotUndefined)(colorScheme)) {
|
|
7817
8217
|
console.warn("colorScheme prop is ignored when appearance is dangerous");
|
|
7818
8218
|
}
|
|
7819
8219
|
colorScheme = "error";
|
|
@@ -7843,7 +8243,7 @@ var MenuItemButton = (0, import_react33.forwardRef)(({ children, appearance, com
|
|
|
7843
8243
|
children: [
|
|
7844
8244
|
props.leftIcon ? /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
7845
8245
|
/* @__PURE__ */ (0, import_jsx_runtime189.jsx)(StyledLabelAndDescriptionContainer, { children }),
|
|
7846
|
-
(0,
|
|
8246
|
+
(0, import_type_guards25.isNotNil)(badge) || (0, import_type_guards25.isNotNil)(command) ? /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
7847
8247
|
props.rightIcon ? /* @__PURE__ */ (0, import_jsx_runtime189.jsx)(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
7848
8248
|
]
|
|
7849
8249
|
}
|
|
@@ -7852,10 +8252,10 @@ var MenuItemButton = (0, import_react33.forwardRef)(({ children, appearance, com
|
|
|
7852
8252
|
MenuItemButton.displayName = "MenuItemButton";
|
|
7853
8253
|
|
|
7854
8254
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
7855
|
-
var
|
|
8255
|
+
var import_styled_components45 = __toESM(require("styled-components"));
|
|
7856
8256
|
var import_jsx_runtime190 = require("react/jsx-runtime");
|
|
7857
|
-
var StyledMenuItemLabel =
|
|
7858
|
-
var StyledMenuItemDescription = (0,
|
|
8257
|
+
var StyledMenuItemLabel = import_styled_components45.default.span``;
|
|
8258
|
+
var StyledMenuItemDescription = (0, import_styled_components45.default)(Text).attrs({
|
|
7859
8259
|
variant: "body4",
|
|
7860
8260
|
prominence: "secondary"
|
|
7861
8261
|
})``;
|
|
@@ -7868,17 +8268,17 @@ var MenuItemDescription = ({ children }) => {
|
|
|
7868
8268
|
|
|
7869
8269
|
// src/components/Menu/SubMenu.tsx
|
|
7870
8270
|
var import_jsx_runtime191 = require("react/jsx-runtime");
|
|
7871
|
-
var SubMenuContent = (0,
|
|
8271
|
+
var SubMenuContent = (0, import_styled_components46.default)(import_react_dropdown_menu3.DropdownMenuSubContent)`
|
|
7872
8272
|
${menuContentCss}
|
|
7873
8273
|
|
|
7874
8274
|
${mq.smAndDown} {
|
|
7875
8275
|
transform: translateX(-100%) !important;
|
|
7876
8276
|
}
|
|
7877
8277
|
`;
|
|
7878
|
-
var StyledMobileSubMenuItems =
|
|
8278
|
+
var StyledMobileSubMenuItems = import_styled_components46.default.div`
|
|
7879
8279
|
margin-left: var(--wui-space-04);
|
|
7880
8280
|
`;
|
|
7881
|
-
var StyledSubTrigger = (0,
|
|
8281
|
+
var StyledSubTrigger = (0, import_styled_components46.default)(import_react_dropdown_menu3.DropdownMenuSubTrigger)`
|
|
7882
8282
|
outline: none;
|
|
7883
8283
|
|
|
7884
8284
|
&[data-state='open'],
|
|
@@ -7910,7 +8310,7 @@ var SubMenu = ({
|
|
|
7910
8310
|
return isSmAndUp ? /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(import_react_dropdown_menu3.DropdownMenuSub, { onOpenChange, children: [
|
|
7911
8311
|
/* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(SubMenuTrigger, { ...props, children: [
|
|
7912
8312
|
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)(MenuItemLabel, { children: label }),
|
|
7913
|
-
(0,
|
|
8313
|
+
(0, import_type_guards26.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(MenuItemDescription, { children: description }) : null
|
|
7914
8314
|
] }),
|
|
7915
8315
|
/* @__PURE__ */ (0, import_jsx_runtime191.jsx)(import_react_dropdown_menu3.DropdownMenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime191.jsx)(SubMenuContent, { $compact: compact, children }) })
|
|
7916
8316
|
] }) : /* @__PURE__ */ (0, import_jsx_runtime191.jsxs)(import_react_dropdown_menu3.DropdownMenuGroup, { children: [
|
|
@@ -8088,19 +8488,19 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem";
|
|
|
8088
8488
|
|
|
8089
8489
|
// src/components/Modal/Modal.tsx
|
|
8090
8490
|
var import_react39 = require("react");
|
|
8091
|
-
var
|
|
8491
|
+
var import_styled_components52 = __toESM(require("styled-components"));
|
|
8092
8492
|
var import_react_dialog4 = require("@radix-ui/react-dialog");
|
|
8093
|
-
var
|
|
8493
|
+
var import_type_guards29 = require("@wistia/type-guards");
|
|
8094
8494
|
|
|
8095
8495
|
// src/components/Modal/ModalHeader.tsx
|
|
8096
|
-
var
|
|
8496
|
+
var import_styled_components49 = __toESM(require("styled-components"));
|
|
8097
8497
|
var import_react_dialog2 = require("@radix-ui/react-dialog");
|
|
8098
8498
|
|
|
8099
8499
|
// src/components/Modal/ModalCloseButton.tsx
|
|
8100
|
-
var
|
|
8500
|
+
var import_styled_components47 = __toESM(require("styled-components"));
|
|
8101
8501
|
var import_react_dialog = require("@radix-ui/react-dialog");
|
|
8102
8502
|
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
8103
|
-
var CloseButton = (0,
|
|
8503
|
+
var CloseButton = (0, import_styled_components47.default)(import_react_dialog.Close)`
|
|
8104
8504
|
align-self: start;
|
|
8105
8505
|
`;
|
|
8106
8506
|
var ModalCloseButton = () => {
|
|
@@ -8116,11 +8516,11 @@ var ModalCloseButton = () => {
|
|
|
8116
8516
|
};
|
|
8117
8517
|
|
|
8118
8518
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
8119
|
-
var
|
|
8120
|
-
var
|
|
8519
|
+
var import_styled_components48 = __toESM(require("styled-components"));
|
|
8520
|
+
var import_type_guards27 = require("@wistia/type-guards");
|
|
8121
8521
|
var import_jsx_runtime197 = require("react/jsx-runtime");
|
|
8122
|
-
var VisuallyHidden =
|
|
8123
|
-
var VisuallyHiddenButFocusable =
|
|
8522
|
+
var VisuallyHidden = import_styled_components48.default.div({ ...visuallyHiddenStyle });
|
|
8523
|
+
var VisuallyHiddenButFocusable = import_styled_components48.default.div({
|
|
8124
8524
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
8125
8525
|
});
|
|
8126
8526
|
var ScreenReaderOnly = ({
|
|
@@ -8129,7 +8529,7 @@ var ScreenReaderOnly = ({
|
|
|
8129
8529
|
focusable = false,
|
|
8130
8530
|
...otherProps
|
|
8131
8531
|
}) => {
|
|
8132
|
-
const accessibleText = (0,
|
|
8532
|
+
const accessibleText = (0, import_type_guards27.isNotNil)(text) ? text : children;
|
|
8133
8533
|
if (focusable) {
|
|
8134
8534
|
return /* @__PURE__ */ (0, import_jsx_runtime197.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
|
|
8135
8535
|
}
|
|
@@ -8139,7 +8539,7 @@ ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
|
8139
8539
|
|
|
8140
8540
|
// src/components/Modal/ModalHeader.tsx
|
|
8141
8541
|
var import_jsx_runtime198 = require("react/jsx-runtime");
|
|
8142
|
-
var Header =
|
|
8542
|
+
var Header = import_styled_components49.default.header`
|
|
8143
8543
|
display: flex;
|
|
8144
8544
|
order: 1;
|
|
8145
8545
|
gap: var(--wui-space-01);
|
|
@@ -8151,7 +8551,7 @@ var Header = import_styled_components47.default.header`
|
|
|
8151
8551
|
margin-top: 0;
|
|
8152
8552
|
}
|
|
8153
8553
|
`;
|
|
8154
|
-
var Title = (0,
|
|
8554
|
+
var Title = (0, import_styled_components49.default)(import_react_dialog2.Title)`
|
|
8155
8555
|
font-family: var(--wui-typography-heading-2-family);
|
|
8156
8556
|
line-height: var(--wui-typography-heading-2-line-height);
|
|
8157
8557
|
font-size: var(--wui-typography-heading-2-size);
|
|
@@ -8171,12 +8571,12 @@ var ModalHeader = ({
|
|
|
8171
8571
|
|
|
8172
8572
|
// src/components/Modal/ModalContent.tsx
|
|
8173
8573
|
var import_react37 = require("react");
|
|
8174
|
-
var
|
|
8574
|
+
var import_styled_components50 = __toESM(require("styled-components"));
|
|
8175
8575
|
var import_react_dialog3 = require("@radix-ui/react-dialog");
|
|
8176
8576
|
|
|
8177
8577
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
8178
8578
|
var import_react36 = require("react");
|
|
8179
|
-
var
|
|
8579
|
+
var import_type_guards28 = require("@wistia/type-guards");
|
|
8180
8580
|
var useFocusRestore = () => {
|
|
8181
8581
|
const previouslyFocusedRef = (0, import_react36.useRef)(null);
|
|
8182
8582
|
(0, import_react36.useEffect)(() => {
|
|
@@ -8184,7 +8584,7 @@ var useFocusRestore = () => {
|
|
|
8184
8584
|
}, []);
|
|
8185
8585
|
(0, import_react36.useEffect)(() => {
|
|
8186
8586
|
return () => {
|
|
8187
|
-
if ((0,
|
|
8587
|
+
if ((0, import_type_guards28.isNotNil)(previouslyFocusedRef.current)) {
|
|
8188
8588
|
setTimeout(() => {
|
|
8189
8589
|
previouslyFocusedRef.current?.focus();
|
|
8190
8590
|
}, 0);
|
|
@@ -8195,7 +8595,7 @@ var useFocusRestore = () => {
|
|
|
8195
8595
|
|
|
8196
8596
|
// src/components/Modal/ModalContent.tsx
|
|
8197
8597
|
var import_jsx_runtime199 = require("react/jsx-runtime");
|
|
8198
|
-
var StyledModalContent = (0,
|
|
8598
|
+
var StyledModalContent = (0, import_styled_components50.default)(import_react_dialog3.Content)`
|
|
8199
8599
|
background-color: var(--wui-color-bg-app);
|
|
8200
8600
|
box-sizing: border-box;
|
|
8201
8601
|
display: flex;
|
|
@@ -8254,7 +8654,7 @@ var ModalContent = (0, import_react37.forwardRef)(
|
|
|
8254
8654
|
|
|
8255
8655
|
// src/private/components/Backdrop/Backdrop.tsx
|
|
8256
8656
|
var import_react38 = require("react");
|
|
8257
|
-
var
|
|
8657
|
+
var import_styled_components51 = __toESM(require("styled-components"));
|
|
8258
8658
|
var import_jsx_runtime200 = require("react/jsx-runtime");
|
|
8259
8659
|
var backdropAnimationDuration = 150;
|
|
8260
8660
|
var alignVerticalMap = {
|
|
@@ -8268,7 +8668,7 @@ var alignHorizontalMap = {
|
|
|
8268
8668
|
center: "center",
|
|
8269
8669
|
right: "end"
|
|
8270
8670
|
};
|
|
8271
|
-
var BackdropComponent =
|
|
8671
|
+
var BackdropComponent = import_styled_components51.default.div`
|
|
8272
8672
|
align-items: ${({ $alignVertical }) => alignVerticalMap[$alignVertical]};
|
|
8273
8673
|
animation-name: backdropShow;
|
|
8274
8674
|
animation-duration: ${() => `${backdropAnimationDuration}ms`};
|
|
@@ -8307,7 +8707,7 @@ Backdrop.displayName = "Backdrop";
|
|
|
8307
8707
|
|
|
8308
8708
|
// src/components/Modal/Modal.tsx
|
|
8309
8709
|
var import_jsx_runtime201 = require("react/jsx-runtime");
|
|
8310
|
-
var ModalBody =
|
|
8710
|
+
var ModalBody = import_styled_components52.default.div`
|
|
8311
8711
|
flex-direction: column;
|
|
8312
8712
|
display: flex;
|
|
8313
8713
|
order: 2;
|
|
@@ -8329,7 +8729,7 @@ var Modal = (0, import_react39.forwardRef)(
|
|
|
8329
8729
|
import_react_dialog4.Root,
|
|
8330
8730
|
{
|
|
8331
8731
|
onOpenChange: (open2) => {
|
|
8332
|
-
if (!open2 && (0,
|
|
8732
|
+
if (!open2 && (0, import_type_guards29.isNotNil)(onRequestClose)) {
|
|
8333
8733
|
onRequestClose();
|
|
8334
8734
|
}
|
|
8335
8735
|
},
|
|
@@ -8342,7 +8742,7 @@ var Modal = (0, import_react39.forwardRef)(
|
|
|
8342
8742
|
ref,
|
|
8343
8743
|
fullHeight,
|
|
8344
8744
|
onOpenAutoFocus: (event) => {
|
|
8345
|
-
if ((0,
|
|
8745
|
+
if ((0, import_type_guards29.isNotNil)(initialFocusRef) && initialFocusRef.current) {
|
|
8346
8746
|
event.preventDefault();
|
|
8347
8747
|
requestAnimationFrame(() => {
|
|
8348
8748
|
initialFocusRef.current?.focus();
|
|
@@ -8373,15 +8773,15 @@ Modal.displayName = "Modal";
|
|
|
8373
8773
|
|
|
8374
8774
|
// src/components/Radio/Radio.tsx
|
|
8375
8775
|
var import_react40 = require("react");
|
|
8376
|
-
var
|
|
8377
|
-
var
|
|
8776
|
+
var import_styled_components53 = __toESM(require("styled-components"));
|
|
8777
|
+
var import_type_guards30 = require("@wistia/type-guards");
|
|
8378
8778
|
var import_jsx_runtime202 = require("react/jsx-runtime");
|
|
8379
|
-
var StyledLabelWrapper2 =
|
|
8779
|
+
var StyledLabelWrapper2 = import_styled_components53.default.div`
|
|
8380
8780
|
display: flex;
|
|
8381
8781
|
flex-direction: column;
|
|
8382
8782
|
padding-left: var(--wui-space-02);
|
|
8383
8783
|
`;
|
|
8384
|
-
var StyledRadio =
|
|
8784
|
+
var StyledRadio = import_styled_components53.default.input`
|
|
8385
8785
|
box-shadow: ${({ type }) => type === "checkbox" ? "inset 0 0.5px 1.5px 0 rgba(0, 0, 0, 0.38)" : "none"};
|
|
8386
8786
|
appearance: none;
|
|
8387
8787
|
margin: 0;
|
|
@@ -8407,11 +8807,11 @@ var StyledRadio = import_styled_components51.default.input`
|
|
|
8407
8807
|
transform: scale(1);
|
|
8408
8808
|
}
|
|
8409
8809
|
`;
|
|
8410
|
-
var disabledStyle2 =
|
|
8810
|
+
var disabledStyle2 = import_styled_components53.css`
|
|
8411
8811
|
cursor: not-allowed;
|
|
8412
8812
|
opacity: 0.5;
|
|
8413
8813
|
`;
|
|
8414
|
-
var errorStyle =
|
|
8814
|
+
var errorStyle = import_styled_components53.css`
|
|
8415
8815
|
/* TODO Lamp to design error state */
|
|
8416
8816
|
&:hover,
|
|
8417
8817
|
&:focus,
|
|
@@ -8419,11 +8819,11 @@ var errorStyle = import_styled_components51.css`
|
|
|
8419
8819
|
border-color: transparent !important;
|
|
8420
8820
|
}
|
|
8421
8821
|
`;
|
|
8422
|
-
var defaultHoverStyle =
|
|
8822
|
+
var defaultHoverStyle = import_styled_components53.css`
|
|
8423
8823
|
/* TODO Lamp to design hover state */
|
|
8424
8824
|
cursor: pointer;
|
|
8425
8825
|
`;
|
|
8426
|
-
var StyledRadioWrapper =
|
|
8826
|
+
var StyledRadioWrapper = import_styled_components53.default.div`
|
|
8427
8827
|
align-items: baseline;
|
|
8428
8828
|
border: 1px solid transparent;
|
|
8429
8829
|
border-radius: 4px;
|
|
@@ -8460,7 +8860,7 @@ var Radio = (0, import_react40.forwardRef)(
|
|
|
8460
8860
|
...otherProps
|
|
8461
8861
|
}, ref) => {
|
|
8462
8862
|
const generatedId = (0, import_react40.useId)();
|
|
8463
|
-
const computedId = (0,
|
|
8863
|
+
const computedId = (0, import_type_guards30.isNonEmptyString)(id) ? id : `ui-radio-${generatedId}`;
|
|
8464
8864
|
return /* @__PURE__ */ (0, import_jsx_runtime202.jsxs)(
|
|
8465
8865
|
StyledRadioWrapper,
|
|
8466
8866
|
{
|
|
@@ -8503,11 +8903,11 @@ Radio.displayName = "Radio";
|
|
|
8503
8903
|
|
|
8504
8904
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
8505
8905
|
var import_react41 = require("react");
|
|
8506
|
-
var
|
|
8906
|
+
var import_styled_components54 = __toESM(require("styled-components"));
|
|
8507
8907
|
var import_react_toggle_group = require("@radix-ui/react-toggle-group");
|
|
8508
|
-
var
|
|
8908
|
+
var import_type_guards31 = require("@wistia/type-guards");
|
|
8509
8909
|
var import_jsx_runtime203 = require("react/jsx-runtime");
|
|
8510
|
-
var StyledSegmentedControl = (0,
|
|
8910
|
+
var StyledSegmentedControl = (0, import_styled_components54.default)(import_react_toggle_group.Root)`
|
|
8511
8911
|
display: inline-flex;
|
|
8512
8912
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
8513
8913
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8524,7 +8924,7 @@ var SegmentedControl = (0, import_react41.forwardRef)(
|
|
|
8524
8924
|
onSelectedValueChange,
|
|
8525
8925
|
...props
|
|
8526
8926
|
}, ref) => {
|
|
8527
|
-
if ((0,
|
|
8927
|
+
if ((0, import_type_guards31.isNil)(children)) {
|
|
8528
8928
|
return null;
|
|
8529
8929
|
}
|
|
8530
8930
|
return /* @__PURE__ */ (0, import_jsx_runtime203.jsx)(
|
|
@@ -8548,11 +8948,11 @@ SegmentedControl.displayName = "SegmentedControl";
|
|
|
8548
8948
|
|
|
8549
8949
|
// src/components/SegmentedControl/SegmentedControlItem.tsx
|
|
8550
8950
|
var import_react42 = require("react");
|
|
8551
|
-
var
|
|
8951
|
+
var import_styled_components55 = __toESM(require("styled-components"));
|
|
8552
8952
|
var import_react_toggle_group2 = require("@radix-ui/react-toggle-group");
|
|
8553
|
-
var
|
|
8953
|
+
var import_type_guards32 = require("@wistia/type-guards");
|
|
8554
8954
|
var import_jsx_runtime204 = require("react/jsx-runtime");
|
|
8555
|
-
var StyledSegmentedControlItem = (0,
|
|
8955
|
+
var StyledSegmentedControlItem = (0, import_styled_components55.default)(import_react_toggle_group2.Item)`
|
|
8556
8956
|
all: unset; /* ToggleGroupItem is a button element */
|
|
8557
8957
|
align-items: center;
|
|
8558
8958
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -8617,8 +9017,8 @@ var SegmentedControlItem = (0, import_react42.forwardRef)(
|
|
|
8617
9017
|
StyledSegmentedControlItem,
|
|
8618
9018
|
{
|
|
8619
9019
|
ref,
|
|
8620
|
-
$hasLabel: (0,
|
|
8621
|
-
"aria-label": (0,
|
|
9020
|
+
$hasLabel: (0, import_type_guards32.isNotNil)(label),
|
|
9021
|
+
"aria-label": (0, import_type_guards32.isNotNil)(label) ? void 0 : ariaLabel,
|
|
8622
9022
|
disabled,
|
|
8623
9023
|
onClick: handleClick,
|
|
8624
9024
|
value,
|
|
@@ -8634,10 +9034,10 @@ SegmentedControlItem.displayName = "SegmentedControlItem";
|
|
|
8634
9034
|
|
|
8635
9035
|
// src/components/Tag/Tag.tsx
|
|
8636
9036
|
var import_react43 = require("react");
|
|
8637
|
-
var
|
|
8638
|
-
var
|
|
9037
|
+
var import_styled_components56 = __toESM(require("styled-components"));
|
|
9038
|
+
var import_type_guards33 = require("@wistia/type-guards");
|
|
8639
9039
|
var import_jsx_runtime205 = require("react/jsx-runtime");
|
|
8640
|
-
var TagLabel =
|
|
9040
|
+
var TagLabel = import_styled_components56.default.a`
|
|
8641
9041
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8642
9042
|
font-size: var(--wui-typography-label-4-size);
|
|
8643
9043
|
font-weight: var(--wui-typography-label-4-weight);
|
|
@@ -8665,14 +9065,14 @@ var TagLabel = import_styled_components54.default.a`
|
|
|
8665
9065
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8666
9066
|
}
|
|
8667
9067
|
`;
|
|
8668
|
-
var TagDivider =
|
|
9068
|
+
var TagDivider = import_styled_components56.default.div`
|
|
8669
9069
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8670
9070
|
border-left: 1px solid var(--wui-color-border);
|
|
8671
9071
|
display: flex;
|
|
8672
9072
|
height: 14px;
|
|
8673
9073
|
width: 1px;
|
|
8674
9074
|
`;
|
|
8675
|
-
var StyledRemoveButton =
|
|
9075
|
+
var StyledRemoveButton = import_styled_components56.default.button`
|
|
8676
9076
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8677
9077
|
all: unset;
|
|
8678
9078
|
cursor: pointer;
|
|
@@ -8700,19 +9100,23 @@ var StyledRemoveButton = import_styled_components54.default.button`
|
|
|
8700
9100
|
box-shadow: inset 0 0 0 2px var(--wui-color-border-secondary);
|
|
8701
9101
|
}
|
|
8702
9102
|
`;
|
|
8703
|
-
var StyledTag =
|
|
9103
|
+
var StyledTag = import_styled_components56.default.div`
|
|
8704
9104
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8705
9105
|
align-items: center;
|
|
8706
9106
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
8707
9107
|
border-radius: var(--wui-border-radius-01);
|
|
8708
9108
|
display: inline-flex;
|
|
8709
9109
|
overflow: hidden;
|
|
9110
|
+
|
|
9111
|
+
> * {
|
|
9112
|
+
transition: background var(--wui-duration-01) var(--wui-motion-ease);
|
|
9113
|
+
}
|
|
8710
9114
|
`;
|
|
8711
9115
|
var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
8712
|
-
if ((0,
|
|
9116
|
+
if ((0, import_type_guards33.isNil)(onClickRemove)) {
|
|
8713
9117
|
return null;
|
|
8714
9118
|
}
|
|
8715
|
-
if ((0,
|
|
9119
|
+
if ((0, import_type_guards33.isNil)(onClickRemoveLabel)) {
|
|
8716
9120
|
throw new Error(
|
|
8717
9121
|
"for accessibility, onClickRemoveLabel must be provided if onClickRemove is provided"
|
|
8718
9122
|
);
|
|
@@ -8741,7 +9145,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
8741
9145
|
};
|
|
8742
9146
|
var Tag = (0, import_react43.forwardRef)(
|
|
8743
9147
|
({ onClickRemove, colorScheme = "inherit", href, label, onClickRemoveLabel, ...otherProps }, ref) => {
|
|
8744
|
-
const labelProps = (0,
|
|
9148
|
+
const labelProps = (0, import_type_guards33.isNotNil)(href) && (0, import_type_guards33.isNonEmptyString)(href) ? { href, as: "a" } : { as: "span" };
|
|
8745
9149
|
return /* @__PURE__ */ (0, import_jsx_runtime205.jsxs)(
|
|
8746
9150
|
StyledTag,
|
|
8747
9151
|
{
|
|
@@ -8774,16 +9178,16 @@ Tag.displayName = "Tag";
|
|
|
8774
9178
|
|
|
8775
9179
|
// src/components/Tooltip/Tooltip.tsx
|
|
8776
9180
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
8777
|
-
var
|
|
9181
|
+
var import_styled_components57 = __toESM(require("styled-components"));
|
|
8778
9182
|
var import_jsx_runtime206 = require("react/jsx-runtime");
|
|
8779
|
-
var CompactTooltipStyles =
|
|
9183
|
+
var CompactTooltipStyles = import_styled_components57.css`
|
|
8780
9184
|
--tooltip-font-size: var(--wui-typography-label-4-size);
|
|
8781
9185
|
--tooltip-line-height: var(--wui-typography-label-4-line-height);
|
|
8782
9186
|
--tooltip-font-weight: var(--wui-typography-label-4-weight);
|
|
8783
9187
|
--tooltip-horizontal-padding: var(--wui-space-02);
|
|
8784
9188
|
--tooltip-vertical-padding: var(--wui-space-03);
|
|
8785
9189
|
`;
|
|
8786
|
-
var StyledContent = (0,
|
|
9190
|
+
var StyledContent = (0, import_styled_components57.default)(import_react_tooltip2.Content)`
|
|
8787
9191
|
--tooltip-font-family: var(--wui-typography-family-default);
|
|
8788
9192
|
--tooltip-border-radius: var(--wui-border-radius-05);
|
|
8789
9193
|
--tooltip-bg: var(--wui-color-bg-tooltip);
|
|
@@ -8878,8 +9282,8 @@ var Tooltip = ({
|
|
|
8878
9282
|
Tooltip.displayName = "Tooltip";
|
|
8879
9283
|
|
|
8880
9284
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
8881
|
-
var
|
|
8882
|
-
var
|
|
9285
|
+
var import_styled_components58 = __toESM(require("styled-components"));
|
|
9286
|
+
var import_type_guards34 = require("@wistia/type-guards");
|
|
8883
9287
|
var import_jsx_runtime207 = require("react/jsx-runtime");
|
|
8884
9288
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
8885
9289
|
if (iconOnly) {
|
|
@@ -8920,7 +9324,7 @@ var computedViewBox = (iconOnly) => {
|
|
|
8920
9324
|
}
|
|
8921
9325
|
return "0 0 144 31.47";
|
|
8922
9326
|
};
|
|
8923
|
-
var WistiaLogoComponent =
|
|
9327
|
+
var WistiaLogoComponent = import_styled_components58.default.svg`
|
|
8924
9328
|
height: ${({ height }) => `${height}px`};
|
|
8925
9329
|
|
|
8926
9330
|
/* ensure it will always fit on mobile */
|
|
@@ -8973,7 +9377,7 @@ var WistiaLogo = ({
|
|
|
8973
9377
|
...otherProps,
|
|
8974
9378
|
children: [
|
|
8975
9379
|
/* @__PURE__ */ (0, import_jsx_runtime207.jsx)("title", { children: title }),
|
|
8976
|
-
(0,
|
|
9380
|
+
(0, import_type_guards34.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime207.jsx)("desc", { children: description }) : null,
|
|
8977
9381
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
8978
9382
|
renderLogotype(logotypeColor, iconOnly)
|
|
8979
9383
|
]
|
|
@@ -8986,9 +9390,9 @@ WistiaLogo.displayName = "WistiaLogo";
|
|
|
8986
9390
|
// src/components/Select/Select.tsx
|
|
8987
9391
|
var import_react_select = require("@radix-ui/react-select");
|
|
8988
9392
|
var import_react44 = require("react");
|
|
8989
|
-
var
|
|
9393
|
+
var import_styled_components59 = __toESM(require("styled-components"));
|
|
8990
9394
|
var import_jsx_runtime208 = require("react/jsx-runtime");
|
|
8991
|
-
var StyledTrigger = (0,
|
|
9395
|
+
var StyledTrigger = (0, import_styled_components59.default)(import_react_select.Trigger)`
|
|
8992
9396
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8993
9397
|
--wui-select-color-bg: var(--wui-color-bg-surface);
|
|
8994
9398
|
--wui-select-color-bg-disabled: var(--wui-color-bg-surface-disabled);
|
|
@@ -9029,7 +9433,7 @@ var StyledTrigger = (0, import_styled_components57.default)(import_react_select.
|
|
|
9029
9433
|
background-color: var(--wui-color-bg-surface-disabled);
|
|
9030
9434
|
}
|
|
9031
9435
|
`;
|
|
9032
|
-
var StyledContent2 = (0,
|
|
9436
|
+
var StyledContent2 = (0, import_styled_components59.default)(import_react_select.Content)`
|
|
9033
9437
|
--wui-select-content-border: var(--wui-color-border);
|
|
9034
9438
|
--wui-select-content-bg: var(--wui-color-bg-surface);
|
|
9035
9439
|
--wui-select-content-border-radius: var(--wui-border-radius-02);
|
|
@@ -9095,9 +9499,9 @@ Select.displayName = "Select";
|
|
|
9095
9499
|
// src/components/Select/SelectOption.tsx
|
|
9096
9500
|
var import_react_select2 = require("@radix-ui/react-select");
|
|
9097
9501
|
var import_react45 = require("react");
|
|
9098
|
-
var
|
|
9502
|
+
var import_styled_components60 = __toESM(require("styled-components"));
|
|
9099
9503
|
var import_jsx_runtime209 = require("react/jsx-runtime");
|
|
9100
|
-
var StyledItem = (0,
|
|
9504
|
+
var StyledItem = (0, import_styled_components60.default)(import_react_select2.Item)`
|
|
9101
9505
|
${variantStyleMap2.body3};
|
|
9102
9506
|
display: flex;
|
|
9103
9507
|
padding: var(--wui-select-option-padding);
|
|
@@ -9120,7 +9524,7 @@ var StyledItem = (0, import_styled_components58.default)(import_react_select2.It
|
|
|
9120
9524
|
background-color: transparent;
|
|
9121
9525
|
}
|
|
9122
9526
|
`;
|
|
9123
|
-
var StyledIconContainer =
|
|
9527
|
+
var StyledIconContainer = import_styled_components60.default.span`
|
|
9124
9528
|
width: 12px;
|
|
9125
9529
|
`;
|
|
9126
9530
|
var SelectOption = (0, import_react45.forwardRef)(
|
|
@@ -9148,9 +9552,9 @@ SelectOption.displayName = "Option";
|
|
|
9148
9552
|
|
|
9149
9553
|
// src/components/Select/SelectOptionGroup.tsx
|
|
9150
9554
|
var import_react_select3 = require("@radix-ui/react-select");
|
|
9151
|
-
var
|
|
9555
|
+
var import_styled_components61 = __toESM(require("styled-components"));
|
|
9152
9556
|
var import_jsx_runtime210 = require("react/jsx-runtime");
|
|
9153
|
-
var StyledLabel3 = (0,
|
|
9557
|
+
var StyledLabel3 = (0, import_styled_components61.default)(import_react_select3.Label)`
|
|
9154
9558
|
padding: var(--wui-select-option-padding);
|
|
9155
9559
|
`;
|
|
9156
9560
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
@@ -9168,10 +9572,10 @@ var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
|
9168
9572
|
};
|
|
9169
9573
|
|
|
9170
9574
|
// src/components/DataCards/DataCard.tsx
|
|
9171
|
-
var
|
|
9172
|
-
var
|
|
9575
|
+
var import_styled_components62 = __toESM(require("styled-components"));
|
|
9576
|
+
var import_type_guards35 = require("@wistia/type-guards");
|
|
9173
9577
|
var import_jsx_runtime211 = require("react/jsx-runtime");
|
|
9174
|
-
var StyledDataCard =
|
|
9578
|
+
var StyledDataCard = import_styled_components62.default.div`
|
|
9175
9579
|
${({ $colorScheme }) => getColorScheme($colorScheme)}
|
|
9176
9580
|
display: grid;
|
|
9177
9581
|
grid-template-areas: 'label slot' 'value value';
|
|
@@ -9184,7 +9588,7 @@ var StyledDataCard = import_styled_components60.default.div`
|
|
|
9184
9588
|
border-radius: var(--wui-border-radius-02);
|
|
9185
9589
|
position: relative;
|
|
9186
9590
|
`;
|
|
9187
|
-
var shimmer =
|
|
9591
|
+
var shimmer = import_styled_components62.keyframes`
|
|
9188
9592
|
0% {
|
|
9189
9593
|
background-position: 200% 0;
|
|
9190
9594
|
}
|
|
@@ -9192,7 +9596,7 @@ var shimmer = import_styled_components60.keyframes`
|
|
|
9192
9596
|
background-position: -200% 0;
|
|
9193
9597
|
}
|
|
9194
9598
|
`;
|
|
9195
|
-
var LoadingBackground =
|
|
9599
|
+
var LoadingBackground = import_styled_components62.default.div`
|
|
9196
9600
|
background: linear-gradient(
|
|
9197
9601
|
90deg,
|
|
9198
9602
|
var(--wui-color-bg-surface-tertiary) 25%,
|
|
@@ -9203,27 +9607,27 @@ var LoadingBackground = import_styled_components60.default.div`
|
|
|
9203
9607
|
animation: ${shimmer} 1.5s infinite;
|
|
9204
9608
|
border-radius: var(--wui-border-radius-01);
|
|
9205
9609
|
`;
|
|
9206
|
-
var StyledLoadingLabel = (0,
|
|
9610
|
+
var StyledLoadingLabel = (0, import_styled_components62.default)(LoadingBackground)`
|
|
9207
9611
|
width: 80px;
|
|
9208
9612
|
height: var(--wui-typography-heading-6-line-height);
|
|
9209
9613
|
`;
|
|
9210
|
-
var StyledLoadingValue = (0,
|
|
9614
|
+
var StyledLoadingValue = (0, import_styled_components62.default)(LoadingBackground)`
|
|
9211
9615
|
width: 90%;
|
|
9212
9616
|
height: var(--wui-typography-heading-3-line-height);
|
|
9213
9617
|
`;
|
|
9214
|
-
var StyledLabel4 = (0,
|
|
9618
|
+
var StyledLabel4 = (0, import_styled_components62.default)(Heading)`
|
|
9215
9619
|
grid-area: label;
|
|
9216
9620
|
`;
|
|
9217
|
-
var StyledValue = (0,
|
|
9621
|
+
var StyledValue = (0, import_styled_components62.default)(Heading)`
|
|
9218
9622
|
grid-area: value;
|
|
9219
9623
|
`;
|
|
9220
|
-
var StyledSlot =
|
|
9624
|
+
var StyledSlot = import_styled_components62.default.div`
|
|
9221
9625
|
display: flex;
|
|
9222
9626
|
justify-content: flex-end;
|
|
9223
9627
|
grid-area: slot;
|
|
9224
9628
|
align-self: center;
|
|
9225
9629
|
`;
|
|
9226
|
-
var StyledDataCardTrendContainer =
|
|
9630
|
+
var StyledDataCardTrendContainer = import_styled_components62.default.div`
|
|
9227
9631
|
position: absolute;
|
|
9228
9632
|
bottom: var(--wui-space-01);
|
|
9229
9633
|
right: var(--wui-space-01);
|
|
@@ -9258,22 +9662,22 @@ var DataCard = ({
|
|
|
9258
9662
|
children: isLoading ? /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(StyledLoadingValue, {}) : value
|
|
9259
9663
|
}
|
|
9260
9664
|
),
|
|
9261
|
-
(0,
|
|
9262
|
-
(0,
|
|
9665
|
+
(0, import_type_guards35.isNotNull)(upperRightSlot) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(StyledSlot, { children: upperRightSlot }),
|
|
9666
|
+
(0, import_type_guards35.isNotNull)(trend) && !isLoading && /* @__PURE__ */ (0, import_jsx_runtime211.jsx)(StyledDataCardTrendContainer, { children: trend })
|
|
9263
9667
|
]
|
|
9264
9668
|
}
|
|
9265
9669
|
);
|
|
9266
9670
|
DataCard.displayName = "DataCard";
|
|
9267
9671
|
|
|
9268
9672
|
// src/components/DataCards/DataCards.tsx
|
|
9269
|
-
var
|
|
9270
|
-
var
|
|
9673
|
+
var import_styled_components63 = __toESM(require("styled-components"));
|
|
9674
|
+
var import_type_guards36 = require("@wistia/type-guards");
|
|
9271
9675
|
var import_jsx_runtime212 = require("react/jsx-runtime");
|
|
9272
|
-
var StyledDataCards = (0,
|
|
9676
|
+
var StyledDataCards = (0, import_styled_components63.default)(Box)`
|
|
9273
9677
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9274
9678
|
> * {
|
|
9275
9679
|
min-width: 120px;
|
|
9276
|
-
max-width: ${({ $cardMaxWidth }) => (0,
|
|
9680
|
+
max-width: ${({ $cardMaxWidth }) => (0, import_type_guards36.isNotUndefined)($cardMaxWidth) ? `${$cardMaxWidth}px` : "none"};
|
|
9277
9681
|
}
|
|
9278
9682
|
`;
|
|
9279
9683
|
var DataCards = ({
|
|
@@ -9300,9 +9704,9 @@ var DataCards = ({
|
|
|
9300
9704
|
DataCards.displayName = "DataCards";
|
|
9301
9705
|
|
|
9302
9706
|
// src/components/DataCards/DataCardTrend.tsx
|
|
9303
|
-
var
|
|
9707
|
+
var import_styled_components64 = __toESM(require("styled-components"));
|
|
9304
9708
|
var import_jsx_runtime213 = require("react/jsx-runtime");
|
|
9305
|
-
var StyledDataCardTrend =
|
|
9709
|
+
var StyledDataCardTrend = import_styled_components64.default.div`
|
|
9306
9710
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
9307
9711
|
background: var(--wui-color-bg-app);
|
|
9308
9712
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -9391,6 +9795,7 @@ var DataCardTrend = ({
|
|
|
9391
9795
|
WistiaLogo,
|
|
9392
9796
|
colorSchemeOptions,
|
|
9393
9797
|
copyToClipboard,
|
|
9798
|
+
dateTime,
|
|
9394
9799
|
ellipsisFlexParentStyle,
|
|
9395
9800
|
ellipsisStyle,
|
|
9396
9801
|
iconSizeMap,
|