@wistia/ui 0.19.4 → 0.20.1
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.d.ts +1 -0
- package/dist/{index.mjs → index.js} +680 -624
- package/dist/index.js.map +1 -0
- package/package.json +28 -33
- package/dist/index.cjs +0 -19114
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.mts +0 -4390
- package/dist/index.mjs.map +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.
|
|
3
|
+
* @license @wistia/ui v0.20.1
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2025, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -31,6 +31,7 @@ var globalStyleAdjustmentsCss = css`
|
|
|
31
31
|
-webkit-tap-highlight-color: rgb(0 0 0 / 0%); /* 2 */
|
|
32
32
|
-moz-text-size-adjust: none; /* 3 */
|
|
33
33
|
-webkit-text-size-adjust: none;
|
|
34
|
+
/* stylelint-disable-next-line plugin/use-baseline */
|
|
34
35
|
text-size-adjust: none;
|
|
35
36
|
height: -webkit-fill-available; /* 4 */
|
|
36
37
|
}
|
|
@@ -2335,7 +2336,9 @@ var differenceInCalendarDays = (dateLeft, dateRight) => {
|
|
|
2335
2336
|
|
|
2336
2337
|
// src/helpers/dateTime/timeAgoString.ts
|
|
2337
2338
|
var timeAgoString = (date, { nowAnchor = /* @__PURE__ */ new Date(), includeTime = true } = {}) => {
|
|
2338
|
-
if (isInvalidDate(date))
|
|
2339
|
+
if (isInvalidDate(date)) {
|
|
2340
|
+
return "";
|
|
2341
|
+
}
|
|
2339
2342
|
const minutesAgo = (nowAnchor.valueOf() - date.valueOf()) / (secondsInMinute * milisecondsInSecond);
|
|
2340
2343
|
const minutesAgoRounded = Math.round(minutesAgo);
|
|
2341
2344
|
const differenceInDays = differenceInCalendarDays(nowAnchor, date);
|
|
@@ -6484,15 +6487,33 @@ var RefreshIcon = (props) => /* @__PURE__ */ jsx155(
|
|
|
6484
6487
|
}
|
|
6485
6488
|
);
|
|
6486
6489
|
|
|
6487
|
-
// src/components/Icon/icons/
|
|
6490
|
+
// src/components/Icon/icons/RemixIcon.tsx
|
|
6488
6491
|
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
6489
|
-
var
|
|
6492
|
+
var RemixIcon = (props) => /* @__PURE__ */ jsx156(
|
|
6490
6493
|
"svg",
|
|
6491
6494
|
{
|
|
6492
6495
|
...props,
|
|
6493
6496
|
viewBox: "0 0 24 24",
|
|
6494
6497
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6495
6498
|
children: /* @__PURE__ */ jsx156(
|
|
6499
|
+
"path",
|
|
6500
|
+
{
|
|
6501
|
+
d: "M2.30971 11.2705C2.86171 11.2093 3.32278 11.691 3.33705 12.2432C3.46757 16.9662 7.27243 20.667 12.0001 20.667C14.8872 20.667 17.5063 19.2363 19.1037 16.9316L17.1613 17.2002C16.6171 17.2672 16.1091 16.8934 16.0333 16.3467C15.9577 15.7997 16.3404 15.2949 16.8878 15.2188L20.8126 14.6758C21.351 14.6048 21.8635 14.9824 21.9396 15.5293L22.4835 19.4561C22.5595 20.0028 22.1777 20.5075 21.631 20.583C21.5841 20.5895 21.5379 20.5928 21.4923 20.5928C21.0008 20.5928 20.5722 20.231 20.5031 19.7305L20.3497 18.623C18.3603 21.1364 15.3202 22.667 12.0001 22.667C6.18107 22.667 1.49749 18.1113 1.33803 12.2969C1.32269 11.7452 1.75785 11.2856 2.30971 11.2705ZM12.0001 8.33301C14.0252 8.33301 15.6671 9.97496 15.6671 12C15.6671 14.0251 14.0252 15.667 12.0001 15.667C9.97511 15.667 8.33315 14.0251 8.33315 12C8.33315 9.97497 9.97511 8.33302 12.0001 8.33301ZM12.0001 1.33301C17.8184 1.33311 22.5019 5.88662 22.6622 11.7002C22.6778 12.2522 22.2417 12.7126 21.6896 12.7275C21.6807 12.7282 21.6711 12.7275 21.6622 12.7275C21.1225 12.7275 20.6782 12.2978 20.6632 11.7549C20.5321 7.03254 16.7271 3.33318 12.0001 3.33301C9.11427 3.33301 6.49396 4.76369 4.89662 7.06836L6.839 6.7998C7.37795 6.72489 7.88996 7.10605 7.96693 7.65332C8.04253 8.20025 7.65991 8.70512 7.11244 8.78125L3.18764 9.32422C3.14137 9.33009 3.09457 9.33301 3.04897 9.33301C2.55757 9.33279 2.12976 8.97119 2.06068 8.4707L1.51576 4.54395C1.43972 3.99716 1.82247 3.49244 2.36928 3.41699C2.92066 3.34152 3.42077 3.72214 3.49623 4.26953L3.65053 5.37891C5.64026 2.86531 8.68134 1.33301 12.0001 1.33301Z",
|
|
6502
|
+
fill: "currentColor"
|
|
6503
|
+
}
|
|
6504
|
+
)
|
|
6505
|
+
}
|
|
6506
|
+
);
|
|
6507
|
+
|
|
6508
|
+
// src/components/Icon/icons/ReplaceIcon.tsx
|
|
6509
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
6510
|
+
var ReplaceIcon = (props) => /* @__PURE__ */ jsx157(
|
|
6511
|
+
"svg",
|
|
6512
|
+
{
|
|
6513
|
+
...props,
|
|
6514
|
+
viewBox: "0 0 24 24",
|
|
6515
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6516
|
+
children: /* @__PURE__ */ jsx157(
|
|
6496
6517
|
"path",
|
|
6497
6518
|
{
|
|
6498
6519
|
clipRule: "evenodd",
|
|
@@ -6505,14 +6526,14 @@ var ReplaceIcon = (props) => /* @__PURE__ */ jsx156(
|
|
|
6505
6526
|
);
|
|
6506
6527
|
|
|
6507
6528
|
// src/components/Icon/icons/ReplyIcon.tsx
|
|
6508
|
-
import { jsx as
|
|
6509
|
-
var ReplyIcon = (props) => /* @__PURE__ */
|
|
6529
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
6530
|
+
var ReplyIcon = (props) => /* @__PURE__ */ jsx158(
|
|
6510
6531
|
"svg",
|
|
6511
6532
|
{
|
|
6512
6533
|
...props,
|
|
6513
6534
|
viewBox: "0 0 24 24",
|
|
6514
6535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6515
|
-
children: /* @__PURE__ */
|
|
6536
|
+
children: /* @__PURE__ */ jsx158(
|
|
6516
6537
|
"path",
|
|
6517
6538
|
{
|
|
6518
6539
|
clipRule: "evenodd",
|
|
@@ -6525,14 +6546,14 @@ var ReplyIcon = (props) => /* @__PURE__ */ jsx157(
|
|
|
6525
6546
|
);
|
|
6526
6547
|
|
|
6527
6548
|
// src/components/Icon/icons/RequestVideoIcon.tsx
|
|
6528
|
-
import { jsx as
|
|
6529
|
-
var RequestVideoIcon = (props) => /* @__PURE__ */
|
|
6549
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
6550
|
+
var RequestVideoIcon = (props) => /* @__PURE__ */ jsx159(
|
|
6530
6551
|
"svg",
|
|
6531
6552
|
{
|
|
6532
6553
|
...props,
|
|
6533
6554
|
viewBox: "0 0 24 24",
|
|
6534
6555
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6535
|
-
children: /* @__PURE__ */
|
|
6556
|
+
children: /* @__PURE__ */ jsx159(
|
|
6536
6557
|
"path",
|
|
6537
6558
|
{
|
|
6538
6559
|
clipRule: "evenodd",
|
|
@@ -6545,14 +6566,14 @@ var RequestVideoIcon = (props) => /* @__PURE__ */ jsx158(
|
|
|
6545
6566
|
);
|
|
6546
6567
|
|
|
6547
6568
|
// src/components/Icon/icons/RevertToOriginalIcon.tsx
|
|
6548
|
-
import { jsx as
|
|
6549
|
-
var RevertToOriginalIcon = (props) => /* @__PURE__ */
|
|
6569
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
6570
|
+
var RevertToOriginalIcon = (props) => /* @__PURE__ */ jsx160(
|
|
6550
6571
|
"svg",
|
|
6551
6572
|
{
|
|
6552
6573
|
...props,
|
|
6553
6574
|
viewBox: "0 0 24 24",
|
|
6554
6575
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6555
|
-
children: /* @__PURE__ */
|
|
6576
|
+
children: /* @__PURE__ */ jsx160(
|
|
6556
6577
|
"path",
|
|
6557
6578
|
{
|
|
6558
6579
|
clipRule: "evenodd",
|
|
@@ -6565,14 +6586,14 @@ var RevertToOriginalIcon = (props) => /* @__PURE__ */ jsx159(
|
|
|
6565
6586
|
);
|
|
6566
6587
|
|
|
6567
6588
|
// src/components/Icon/icons/RewindIcon.tsx
|
|
6568
|
-
import { jsx as
|
|
6569
|
-
var RewindIcon = (props) => /* @__PURE__ */
|
|
6589
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
6590
|
+
var RewindIcon = (props) => /* @__PURE__ */ jsx161(
|
|
6570
6591
|
"svg",
|
|
6571
6592
|
{
|
|
6572
6593
|
...props,
|
|
6573
6594
|
viewBox: "0 0 24 24",
|
|
6574
6595
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6575
|
-
children: /* @__PURE__ */
|
|
6596
|
+
children: /* @__PURE__ */ jsx161(
|
|
6576
6597
|
"path",
|
|
6577
6598
|
{
|
|
6578
6599
|
d: "M23.1796 5.02255C22.6636 4.71988 22.0489 4.71188 21.5262 4.99988L13.3329 9.53988V6.45855C13.3329 5.86255 13.0262 5.32521 12.5129 5.02255C11.9982 4.71988 11.3809 4.71055 10.8596 5.00121L0.859573 10.5412C0.330239 10.8345 -0.000427246 11.3932 -0.000427246 11.9999C-0.000427246 12.6065 0.328906 13.1652 0.859573 13.4585L10.8596 18.9985C11.1129 19.1399 11.3902 19.2105 11.6662 19.2105C11.9582 19.2105 12.2489 19.1319 12.5129 18.9772C13.0262 18.6745 13.3329 18.1372 13.3329 17.5412V14.4599L21.5262 18.9985C21.7796 19.1399 22.0569 19.2105 22.3329 19.2105C22.6249 19.2105 22.9156 19.1319 23.1796 18.9772C23.6929 18.6745 23.9996 18.1372 23.9996 17.5412V6.45855C23.9996 5.86255 23.6929 5.32521 23.1796 5.02255Z",
|
|
@@ -6583,14 +6604,14 @@ var RewindIcon = (props) => /* @__PURE__ */ jsx160(
|
|
|
6583
6604
|
);
|
|
6584
6605
|
|
|
6585
6606
|
// src/components/Icon/icons/SaveIcon.tsx
|
|
6586
|
-
import { jsx as
|
|
6587
|
-
var SaveIcon = (props) => /* @__PURE__ */
|
|
6607
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
6608
|
+
var SaveIcon = (props) => /* @__PURE__ */ jsx162(
|
|
6588
6609
|
"svg",
|
|
6589
6610
|
{
|
|
6590
6611
|
...props,
|
|
6591
6612
|
viewBox: "0 0 24 24",
|
|
6592
6613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6593
|
-
children: /* @__PURE__ */
|
|
6614
|
+
children: /* @__PURE__ */ jsx162(
|
|
6594
6615
|
"path",
|
|
6595
6616
|
{
|
|
6596
6617
|
d: "M21.3155 6.5692L17.4301 2.68387C16.9888 2.24254 16.4035 1.99987 15.7808 1.99987H5.87949C3.74083 1.99987 1.9995 3.7412 1.9995 5.87986V18.1198C1.9995 20.2585 3.74083 21.9998 5.87949 21.9998H18.1195C20.2581 21.9998 21.9995 20.2585 21.9995 18.1198V8.21852C21.9995 7.59586 21.7568 7.00919 21.3155 6.5692ZM6.66616 3.99987H14.6661V6.66653C14.6661 7.39986 14.0661 7.99986 13.3328 7.99986H7.99949C7.26616 7.99986 6.66616 7.39986 6.66616 6.66653V3.99987ZM17.3328 19.9998H6.66616V14.6665C6.66616 13.9332 7.26616 13.3332 7.99949 13.3332H15.9995C16.7328 13.3332 17.3328 13.9332 17.3328 14.6665V19.9998Z",
|
|
@@ -6601,14 +6622,14 @@ var SaveIcon = (props) => /* @__PURE__ */ jsx161(
|
|
|
6601
6622
|
);
|
|
6602
6623
|
|
|
6603
6624
|
// src/components/Icon/icons/SaveAsCopyIcon.tsx
|
|
6604
|
-
import { jsx as
|
|
6605
|
-
var SaveAsCopyIcon = (props) => /* @__PURE__ */
|
|
6625
|
+
import { jsx as jsx163 } from "react/jsx-runtime";
|
|
6626
|
+
var SaveAsCopyIcon = (props) => /* @__PURE__ */ jsx163(
|
|
6606
6627
|
"svg",
|
|
6607
6628
|
{
|
|
6608
6629
|
...props,
|
|
6609
6630
|
viewBox: "0 0 24 24",
|
|
6610
6631
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6611
|
-
children: /* @__PURE__ */
|
|
6632
|
+
children: /* @__PURE__ */ jsx163(
|
|
6612
6633
|
"path",
|
|
6613
6634
|
{
|
|
6614
6635
|
clipRule: "evenodd",
|
|
@@ -6621,14 +6642,14 @@ var SaveAsCopyIcon = (props) => /* @__PURE__ */ jsx162(
|
|
|
6621
6642
|
);
|
|
6622
6643
|
|
|
6623
6644
|
// src/components/Icon/icons/ScissorsIcon.tsx
|
|
6624
|
-
import { jsx as
|
|
6625
|
-
var ScissorsIcon = (props) => /* @__PURE__ */
|
|
6645
|
+
import { jsx as jsx164 } from "react/jsx-runtime";
|
|
6646
|
+
var ScissorsIcon = (props) => /* @__PURE__ */ jsx164(
|
|
6626
6647
|
"svg",
|
|
6627
6648
|
{
|
|
6628
6649
|
...props,
|
|
6629
6650
|
viewBox: "0 0 24 24",
|
|
6630
6651
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6631
|
-
children: /* @__PURE__ */
|
|
6652
|
+
children: /* @__PURE__ */ jsx164(
|
|
6632
6653
|
"path",
|
|
6633
6654
|
{
|
|
6634
6655
|
d: "M8.03042 13.6605C7.73535 14.0006 7.25074 14.0917 6.8028 14.0461C6.54217 14.0195 6.27019 14.0236 5.96972 14.0236C3.76414 14.0236 2.01959 16.1038 1.97773 18.0156C1.93586 19.9273 3.23259 22.2035 5.96972 22.0076C8.70686 21.8116 9.96172 20.2211 9.96172 18.0156C9.96172 17.6742 9.91811 17.3462 9.83672 17.0336C9.73128 16.6286 9.79891 16.1824 10.0948 15.8865L11.2506 14.7307C11.6411 14.3401 12.2743 14.3401 12.6648 14.7307L13.8206 15.8865C14.1165 16.1824 14.1841 16.6286 14.0787 17.0336C13.9973 17.3462 13.9537 17.6742 13.9537 18.0156C13.9537 20.2211 15.1616 22.1277 17.9457 22.0076C20.1138 22.0076 21.8769 20.2813 21.9362 18.1275C21.9382 18.0533 21.9472 17.9794 21.9583 17.906C22.2072 16.2536 19.8847 13.8188 17.9457 14.0236C17.606 14.0236 17.2796 14.0667 16.9684 14.1474C16.561 14.2529 16.1121 14.1834 15.8164 13.8839L15.5341 13.5979C15.1988 13.2583 15.1485 12.7314 15.4153 12.3357C16.7051 10.4232 20.3129 5.04458 20.9214 3.82741C21.5171 2.63608 20.8216 2.27428 20.5213 2.17749C20.4397 2.15115 20.3538 2.15005 20.2692 2.16438C19.9626 2.21628 19.1552 2.39484 18.4294 2.91739C17.5596 3.54369 11.1772 10.0335 8.03042 13.6605ZM7.96572 18.0156C7.96572 19.1134 7.62753 20.2005 5.93739 20.2918C4.24725 20.3831 4.00273 19.3194 3.97372 18.0156C3.94472 16.7117 4.78907 16.3065 5.90361 16.2727C7.01816 16.2389 7.96572 16.9178 7.96572 18.0156ZM19.5954 17.9155C19.5954 19.0133 18.9851 19.6891 17.8773 19.6891C16.7695 19.6891 16.2146 19.1796 16.2146 18.0818C16.2146 16.984 16.7141 16.3637 17.8219 16.3637C18.9297 16.3637 19.5954 16.8177 19.5954 17.9155ZM3.59453 4.26526C3.95765 4.87977 7.97772 9.95022 8.7319 10.3133C9.48608 10.6765 11.7442 7.95976 11.3532 7.17765C10.9621 6.39553 4.78187 2.23266 3.97372 2.04758C3.45763 1.92939 3.19544 2.20587 3.07334 2.42113C2.99439 2.56032 2.99979 2.7259 3.0443 2.87961C3.14116 3.21412 3.3405 3.83537 3.59453 4.26526Z",
|
|
@@ -6639,14 +6660,14 @@ var ScissorsIcon = (props) => /* @__PURE__ */ jsx163(
|
|
|
6639
6660
|
);
|
|
6640
6661
|
|
|
6641
6662
|
// src/components/Icon/icons/ScreenshareOffIcon.tsx
|
|
6642
|
-
import { jsx as
|
|
6643
|
-
var ScreenshareOffIcon = (props) => /* @__PURE__ */
|
|
6663
|
+
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
6664
|
+
var ScreenshareOffIcon = (props) => /* @__PURE__ */ jsx165(
|
|
6644
6665
|
"svg",
|
|
6645
6666
|
{
|
|
6646
6667
|
...props,
|
|
6647
6668
|
viewBox: "0 0 24 24",
|
|
6648
6669
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6649
|
-
children: /* @__PURE__ */
|
|
6670
|
+
children: /* @__PURE__ */ jsx165(
|
|
6650
6671
|
"path",
|
|
6651
6672
|
{
|
|
6652
6673
|
clipRule: "evenodd",
|
|
@@ -6659,14 +6680,14 @@ var ScreenshareOffIcon = (props) => /* @__PURE__ */ jsx164(
|
|
|
6659
6680
|
);
|
|
6660
6681
|
|
|
6661
6682
|
// src/components/Icon/icons/ScreenshareOnIcon.tsx
|
|
6662
|
-
import { jsx as
|
|
6663
|
-
var ScreenshareOnIcon = (props) => /* @__PURE__ */
|
|
6683
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
6684
|
+
var ScreenshareOnIcon = (props) => /* @__PURE__ */ jsx166(
|
|
6664
6685
|
"svg",
|
|
6665
6686
|
{
|
|
6666
6687
|
...props,
|
|
6667
6688
|
viewBox: "0 0 24 24",
|
|
6668
6689
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6669
|
-
children: /* @__PURE__ */
|
|
6690
|
+
children: /* @__PURE__ */ jsx166(
|
|
6670
6691
|
"path",
|
|
6671
6692
|
{
|
|
6672
6693
|
clipRule: "evenodd",
|
|
@@ -6679,14 +6700,14 @@ var ScreenshareOnIcon = (props) => /* @__PURE__ */ jsx165(
|
|
|
6679
6700
|
);
|
|
6680
6701
|
|
|
6681
6702
|
// src/components/Icon/icons/SearchIcon.tsx
|
|
6682
|
-
import { jsx as
|
|
6683
|
-
var SearchIcon = (props) => /* @__PURE__ */
|
|
6703
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
6704
|
+
var SearchIcon = (props) => /* @__PURE__ */ jsx167(
|
|
6684
6705
|
"svg",
|
|
6685
6706
|
{
|
|
6686
6707
|
...props,
|
|
6687
6708
|
viewBox: "0 0 24 24",
|
|
6688
6709
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6689
|
-
children: /* @__PURE__ */
|
|
6710
|
+
children: /* @__PURE__ */ jsx167(
|
|
6690
6711
|
"path",
|
|
6691
6712
|
{
|
|
6692
6713
|
clipRule: "evenodd",
|
|
@@ -6699,14 +6720,14 @@ var SearchIcon = (props) => /* @__PURE__ */ jsx166(
|
|
|
6699
6720
|
);
|
|
6700
6721
|
|
|
6701
6722
|
// src/components/Icon/icons/SendIcon.tsx
|
|
6702
|
-
import { jsx as
|
|
6703
|
-
var SendIcon = (props) => /* @__PURE__ */
|
|
6723
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
6724
|
+
var SendIcon = (props) => /* @__PURE__ */ jsx168(
|
|
6704
6725
|
"svg",
|
|
6705
6726
|
{
|
|
6706
6727
|
...props,
|
|
6707
6728
|
viewBox: "0 0 24 24",
|
|
6708
6729
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6709
|
-
children: /* @__PURE__ */
|
|
6730
|
+
children: /* @__PURE__ */ jsx168(
|
|
6710
6731
|
"path",
|
|
6711
6732
|
{
|
|
6712
6733
|
d: "M21.0892 10.5011L5.8012 2.56248C5.1972 2.25048 4.47187 2.32915 3.94787 2.75981C3.4252 3.19181 3.21187 3.89181 3.40387 4.54114L5.3172 10.9998H11.8478C12.3998 10.9998 12.8478 11.4478 12.8478 11.9998C12.8478 12.5518 12.3998 12.9998 11.8478 12.9998H5.3172L3.40387 19.4584C3.21054 20.1091 3.4252 20.8078 3.94787 21.2398C4.2572 21.4944 4.63853 21.6264 5.02253 21.6264C5.28787 21.6264 5.55453 21.5638 5.8012 21.4358L21.0892 13.4971C21.6505 13.2051 21.9998 12.6318 21.9998 11.9985C21.9998 11.3651 21.6505 10.7931 21.0892 10.5011Z",
|
|
@@ -6717,14 +6738,14 @@ var SendIcon = (props) => /* @__PURE__ */ jsx167(
|
|
|
6717
6738
|
);
|
|
6718
6739
|
|
|
6719
6740
|
// src/components/Icon/icons/ShapesIcon.tsx
|
|
6720
|
-
import { jsx as
|
|
6721
|
-
var ShapesIcon = (props) => /* @__PURE__ */
|
|
6741
|
+
import { jsx as jsx169 } from "react/jsx-runtime";
|
|
6742
|
+
var ShapesIcon = (props) => /* @__PURE__ */ jsx169(
|
|
6722
6743
|
"svg",
|
|
6723
6744
|
{
|
|
6724
6745
|
...props,
|
|
6725
6746
|
viewBox: "0 0 24 24",
|
|
6726
6747
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6727
|
-
children: /* @__PURE__ */
|
|
6748
|
+
children: /* @__PURE__ */ jsx169(
|
|
6728
6749
|
"path",
|
|
6729
6750
|
{
|
|
6730
6751
|
clipRule: "evenodd",
|
|
@@ -6737,14 +6758,14 @@ var ShapesIcon = (props) => /* @__PURE__ */ jsx168(
|
|
|
6737
6758
|
);
|
|
6738
6759
|
|
|
6739
6760
|
// src/components/Icon/icons/ShareIcon.tsx
|
|
6740
|
-
import { jsx as
|
|
6741
|
-
var ShareIcon = (props) => /* @__PURE__ */
|
|
6761
|
+
import { jsx as jsx170 } from "react/jsx-runtime";
|
|
6762
|
+
var ShareIcon = (props) => /* @__PURE__ */ jsx170(
|
|
6742
6763
|
"svg",
|
|
6743
6764
|
{
|
|
6744
6765
|
...props,
|
|
6745
6766
|
viewBox: "0 0 24 24",
|
|
6746
6767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6747
|
-
children: /* @__PURE__ */
|
|
6768
|
+
children: /* @__PURE__ */ jsx170(
|
|
6748
6769
|
"path",
|
|
6749
6770
|
{
|
|
6750
6771
|
clipRule: "evenodd",
|
|
@@ -6757,14 +6778,14 @@ var ShareIcon = (props) => /* @__PURE__ */ jsx169(
|
|
|
6757
6778
|
);
|
|
6758
6779
|
|
|
6759
6780
|
// src/components/Icon/icons/SharingPermissionsIcon.tsx
|
|
6760
|
-
import { jsx as
|
|
6761
|
-
var SharingPermissionsIcon = (props) => /* @__PURE__ */
|
|
6781
|
+
import { jsx as jsx171 } from "react/jsx-runtime";
|
|
6782
|
+
var SharingPermissionsIcon = (props) => /* @__PURE__ */ jsx171(
|
|
6762
6783
|
"svg",
|
|
6763
6784
|
{
|
|
6764
6785
|
...props,
|
|
6765
6786
|
viewBox: "0 0 24 24",
|
|
6766
6787
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6767
|
-
children: /* @__PURE__ */
|
|
6788
|
+
children: /* @__PURE__ */ jsx171(
|
|
6768
6789
|
"path",
|
|
6769
6790
|
{
|
|
6770
6791
|
clipRule: "evenodd",
|
|
@@ -6777,14 +6798,14 @@ var SharingPermissionsIcon = (props) => /* @__PURE__ */ jsx170(
|
|
|
6777
6798
|
);
|
|
6778
6799
|
|
|
6779
6800
|
// src/components/Icon/icons/SimulcastIcon.tsx
|
|
6780
|
-
import { jsx as
|
|
6781
|
-
var SimulcastIcon = (props) => /* @__PURE__ */
|
|
6801
|
+
import { jsx as jsx172 } from "react/jsx-runtime";
|
|
6802
|
+
var SimulcastIcon = (props) => /* @__PURE__ */ jsx172(
|
|
6782
6803
|
"svg",
|
|
6783
6804
|
{
|
|
6784
6805
|
...props,
|
|
6785
6806
|
viewBox: "0 0 24 24",
|
|
6786
6807
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6787
|
-
children: /* @__PURE__ */
|
|
6808
|
+
children: /* @__PURE__ */ jsx172(
|
|
6788
6809
|
"path",
|
|
6789
6810
|
{
|
|
6790
6811
|
clipRule: "evenodd",
|
|
@@ -6797,14 +6818,14 @@ var SimulcastIcon = (props) => /* @__PURE__ */ jsx171(
|
|
|
6797
6818
|
);
|
|
6798
6819
|
|
|
6799
6820
|
// src/components/Icon/icons/SortIcon.tsx
|
|
6800
|
-
import { jsx as
|
|
6801
|
-
var SortIcon = (props) => /* @__PURE__ */
|
|
6821
|
+
import { jsx as jsx173 } from "react/jsx-runtime";
|
|
6822
|
+
var SortIcon = (props) => /* @__PURE__ */ jsx173(
|
|
6802
6823
|
"svg",
|
|
6803
6824
|
{
|
|
6804
6825
|
...props,
|
|
6805
6826
|
viewBox: "0 0 24 24",
|
|
6806
6827
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6807
|
-
children: /* @__PURE__ */
|
|
6828
|
+
children: /* @__PURE__ */ jsx173(
|
|
6808
6829
|
"path",
|
|
6809
6830
|
{
|
|
6810
6831
|
clipRule: "evenodd",
|
|
@@ -6817,14 +6838,14 @@ var SortIcon = (props) => /* @__PURE__ */ jsx172(
|
|
|
6817
6838
|
);
|
|
6818
6839
|
|
|
6819
6840
|
// src/components/Icon/icons/SparkleIcon.tsx
|
|
6820
|
-
import { jsx as
|
|
6821
|
-
var SparkleIcon = (props) => /* @__PURE__ */
|
|
6841
|
+
import { jsx as jsx174 } from "react/jsx-runtime";
|
|
6842
|
+
var SparkleIcon = (props) => /* @__PURE__ */ jsx174(
|
|
6822
6843
|
"svg",
|
|
6823
6844
|
{
|
|
6824
6845
|
...props,
|
|
6825
6846
|
viewBox: "0 0 24 24",
|
|
6826
6847
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6827
|
-
children: /* @__PURE__ */
|
|
6848
|
+
children: /* @__PURE__ */ jsx174(
|
|
6828
6849
|
"path",
|
|
6829
6850
|
{
|
|
6830
6851
|
clipRule: "evenodd",
|
|
@@ -6837,14 +6858,14 @@ var SparkleIcon = (props) => /* @__PURE__ */ jsx173(
|
|
|
6837
6858
|
);
|
|
6838
6859
|
|
|
6839
6860
|
// src/components/Icon/icons/SpeedIcon.tsx
|
|
6840
|
-
import { jsx as
|
|
6841
|
-
var SpeedIcon = (props) => /* @__PURE__ */
|
|
6861
|
+
import { jsx as jsx175 } from "react/jsx-runtime";
|
|
6862
|
+
var SpeedIcon = (props) => /* @__PURE__ */ jsx175(
|
|
6842
6863
|
"svg",
|
|
6843
6864
|
{
|
|
6844
6865
|
...props,
|
|
6845
6866
|
viewBox: "0 0 24 24",
|
|
6846
6867
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6847
|
-
children: /* @__PURE__ */
|
|
6868
|
+
children: /* @__PURE__ */ jsx175(
|
|
6848
6869
|
"path",
|
|
6849
6870
|
{
|
|
6850
6871
|
clipRule: "evenodd",
|
|
@@ -6858,7 +6879,7 @@ var SpeedIcon = (props) => /* @__PURE__ */ jsx174(
|
|
|
6858
6879
|
|
|
6859
6880
|
// src/components/Icon/icons/SpinnerIcon.tsx
|
|
6860
6881
|
import { styled as styled3, keyframes } from "styled-components";
|
|
6861
|
-
import { jsx as
|
|
6882
|
+
import { jsx as jsx176 } from "react/jsx-runtime";
|
|
6862
6883
|
var spin = keyframes`
|
|
6863
6884
|
from {
|
|
6864
6885
|
transform: rotate(0deg);
|
|
@@ -6871,13 +6892,13 @@ var SpinnerGroup = styled3.g`
|
|
|
6871
6892
|
animation: ${spin} 1.5s linear infinite;
|
|
6872
6893
|
transform-origin: 50% 50%;
|
|
6873
6894
|
`;
|
|
6874
|
-
var SpinnerIcon = (props) => /* @__PURE__ */
|
|
6895
|
+
var SpinnerIcon = (props) => /* @__PURE__ */ jsx176(
|
|
6875
6896
|
"svg",
|
|
6876
6897
|
{
|
|
6877
6898
|
...props,
|
|
6878
6899
|
viewBox: "0 0 24 24",
|
|
6879
6900
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6880
|
-
children: /* @__PURE__ */
|
|
6901
|
+
children: /* @__PURE__ */ jsx176(SpinnerGroup, { children: /* @__PURE__ */ jsx176(
|
|
6881
6902
|
"path",
|
|
6882
6903
|
{
|
|
6883
6904
|
clipRule: "evenodd",
|
|
@@ -6890,14 +6911,14 @@ var SpinnerIcon = (props) => /* @__PURE__ */ jsx175(
|
|
|
6890
6911
|
);
|
|
6891
6912
|
|
|
6892
6913
|
// src/components/Icon/icons/StatsIcon.tsx
|
|
6893
|
-
import { jsx as
|
|
6894
|
-
var StatsIcon = (props) => /* @__PURE__ */
|
|
6914
|
+
import { jsx as jsx177 } from "react/jsx-runtime";
|
|
6915
|
+
var StatsIcon = (props) => /* @__PURE__ */ jsx177(
|
|
6895
6916
|
"svg",
|
|
6896
6917
|
{
|
|
6897
6918
|
...props,
|
|
6898
6919
|
viewBox: "0 0 24 24",
|
|
6899
6920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6900
|
-
children: /* @__PURE__ */
|
|
6921
|
+
children: /* @__PURE__ */ jsx177(
|
|
6901
6922
|
"path",
|
|
6902
6923
|
{
|
|
6903
6924
|
clipRule: "evenodd",
|
|
@@ -6910,14 +6931,14 @@ var StatsIcon = (props) => /* @__PURE__ */ jsx176(
|
|
|
6910
6931
|
);
|
|
6911
6932
|
|
|
6912
6933
|
// src/components/Icon/icons/SwitchAccountsIcon.tsx
|
|
6913
|
-
import { jsx as
|
|
6914
|
-
var SwitchAccountsIcon = (props) => /* @__PURE__ */
|
|
6934
|
+
import { jsx as jsx178 } from "react/jsx-runtime";
|
|
6935
|
+
var SwitchAccountsIcon = (props) => /* @__PURE__ */ jsx178(
|
|
6915
6936
|
"svg",
|
|
6916
6937
|
{
|
|
6917
6938
|
...props,
|
|
6918
6939
|
viewBox: "0 0 24 24",
|
|
6919
6940
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6920
|
-
children: /* @__PURE__ */
|
|
6941
|
+
children: /* @__PURE__ */ jsx178(
|
|
6921
6942
|
"path",
|
|
6922
6943
|
{
|
|
6923
6944
|
clipRule: "evenodd",
|
|
@@ -6930,14 +6951,14 @@ var SwitchAccountsIcon = (props) => /* @__PURE__ */ jsx177(
|
|
|
6930
6951
|
);
|
|
6931
6952
|
|
|
6932
6953
|
// src/components/Icon/icons/TagIcon.tsx
|
|
6933
|
-
import { jsx as
|
|
6934
|
-
var TagIcon = (props) => /* @__PURE__ */
|
|
6954
|
+
import { jsx as jsx179 } from "react/jsx-runtime";
|
|
6955
|
+
var TagIcon = (props) => /* @__PURE__ */ jsx179(
|
|
6935
6956
|
"svg",
|
|
6936
6957
|
{
|
|
6937
6958
|
...props,
|
|
6938
6959
|
viewBox: "0 0 24 24",
|
|
6939
6960
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6940
|
-
children: /* @__PURE__ */
|
|
6961
|
+
children: /* @__PURE__ */ jsx179(
|
|
6941
6962
|
"path",
|
|
6942
6963
|
{
|
|
6943
6964
|
d: "M16.3331 1.33315H7.66641C5.64374 1.33315 3.99975 2.97714 3.99975 4.9998V21.6664C3.99975 22.0344 4.20241 22.3744 4.52775 22.5478C4.85308 22.7224 5.24775 22.7038 5.55441 22.4984L11.9997 18.2011L18.445 22.4984C18.6117 22.6091 18.8064 22.6664 18.9997 22.6664C19.1624 22.6664 19.3237 22.6278 19.4717 22.5478C19.797 22.3744 19.9997 22.0344 19.9997 21.6664V4.9998C19.9997 2.97714 18.3557 1.33315 16.3331 1.33315Z",
|
|
@@ -6948,14 +6969,14 @@ var TagIcon = (props) => /* @__PURE__ */ jsx178(
|
|
|
6948
6969
|
);
|
|
6949
6970
|
|
|
6950
6971
|
// src/components/Icon/icons/TeleprompterIcon.tsx
|
|
6951
|
-
import { jsx as
|
|
6952
|
-
var TeleprompterIcon = (props) => /* @__PURE__ */
|
|
6972
|
+
import { jsx as jsx180 } from "react/jsx-runtime";
|
|
6973
|
+
var TeleprompterIcon = (props) => /* @__PURE__ */ jsx180(
|
|
6953
6974
|
"svg",
|
|
6954
6975
|
{
|
|
6955
6976
|
...props,
|
|
6956
6977
|
viewBox: "0 0 24 24",
|
|
6957
6978
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6958
|
-
children: /* @__PURE__ */
|
|
6979
|
+
children: /* @__PURE__ */ jsx180(
|
|
6959
6980
|
"path",
|
|
6960
6981
|
{
|
|
6961
6982
|
clipRule: "evenodd",
|
|
@@ -6968,14 +6989,14 @@ var TeleprompterIcon = (props) => /* @__PURE__ */ jsx179(
|
|
|
6968
6989
|
);
|
|
6969
6990
|
|
|
6970
6991
|
// src/components/Icon/icons/TextSizeIcon.tsx
|
|
6971
|
-
import { jsx as
|
|
6972
|
-
var TextSizeIcon = (props) => /* @__PURE__ */
|
|
6992
|
+
import { jsx as jsx181 } from "react/jsx-runtime";
|
|
6993
|
+
var TextSizeIcon = (props) => /* @__PURE__ */ jsx181(
|
|
6973
6994
|
"svg",
|
|
6974
6995
|
{
|
|
6975
6996
|
...props,
|
|
6976
6997
|
viewBox: "0 0 24 24",
|
|
6977
6998
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6978
|
-
children: /* @__PURE__ */
|
|
6999
|
+
children: /* @__PURE__ */ jsx181(
|
|
6979
7000
|
"path",
|
|
6980
7001
|
{
|
|
6981
7002
|
clipRule: "evenodd",
|
|
@@ -6988,14 +7009,14 @@ var TextSizeIcon = (props) => /* @__PURE__ */ jsx180(
|
|
|
6988
7009
|
);
|
|
6989
7010
|
|
|
6990
7011
|
// src/components/Icon/icons/ThumbnailIcon.tsx
|
|
6991
|
-
import { jsx as
|
|
6992
|
-
var ThumbnailIcon = (props) => /* @__PURE__ */
|
|
7012
|
+
import { jsx as jsx182 } from "react/jsx-runtime";
|
|
7013
|
+
var ThumbnailIcon = (props) => /* @__PURE__ */ jsx182(
|
|
6993
7014
|
"svg",
|
|
6994
7015
|
{
|
|
6995
7016
|
...props,
|
|
6996
7017
|
viewBox: "0 0 24 24",
|
|
6997
7018
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6998
|
-
children: /* @__PURE__ */
|
|
7019
|
+
children: /* @__PURE__ */ jsx182(
|
|
6999
7020
|
"path",
|
|
7000
7021
|
{
|
|
7001
7022
|
clipRule: "evenodd",
|
|
@@ -7008,14 +7029,14 @@ var ThumbnailIcon = (props) => /* @__PURE__ */ jsx181(
|
|
|
7008
7029
|
);
|
|
7009
7030
|
|
|
7010
7031
|
// src/components/Icon/icons/ThumbsDownIcon.tsx
|
|
7011
|
-
import { jsx as
|
|
7012
|
-
var ThumbsDownIcon = (props) => /* @__PURE__ */
|
|
7032
|
+
import { jsx as jsx183 } from "react/jsx-runtime";
|
|
7033
|
+
var ThumbsDownIcon = (props) => /* @__PURE__ */ jsx183(
|
|
7013
7034
|
"svg",
|
|
7014
7035
|
{
|
|
7015
7036
|
...props,
|
|
7016
7037
|
viewBox: "0 0 24 24",
|
|
7017
7038
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7018
|
-
children: /* @__PURE__ */
|
|
7039
|
+
children: /* @__PURE__ */ jsx183(
|
|
7019
7040
|
"path",
|
|
7020
7041
|
{
|
|
7021
7042
|
clipRule: "evenodd",
|
|
@@ -7028,14 +7049,14 @@ var ThumbsDownIcon = (props) => /* @__PURE__ */ jsx182(
|
|
|
7028
7049
|
);
|
|
7029
7050
|
|
|
7030
7051
|
// src/components/Icon/icons/ThumbsUpIcon.tsx
|
|
7031
|
-
import { jsx as
|
|
7032
|
-
var ThumbsUpIcon = (props) => /* @__PURE__ */
|
|
7052
|
+
import { jsx as jsx184 } from "react/jsx-runtime";
|
|
7053
|
+
var ThumbsUpIcon = (props) => /* @__PURE__ */ jsx184(
|
|
7033
7054
|
"svg",
|
|
7034
7055
|
{
|
|
7035
7056
|
...props,
|
|
7036
7057
|
viewBox: "0 0 24 24",
|
|
7037
7058
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7038
|
-
children: /* @__PURE__ */
|
|
7059
|
+
children: /* @__PURE__ */ jsx184(
|
|
7039
7060
|
"path",
|
|
7040
7061
|
{
|
|
7041
7062
|
clipRule: "evenodd",
|
|
@@ -7048,14 +7069,14 @@ var ThumbsUpIcon = (props) => /* @__PURE__ */ jsx183(
|
|
|
7048
7069
|
);
|
|
7049
7070
|
|
|
7050
7071
|
// src/components/Icon/icons/TimelineVerticalIcon.tsx
|
|
7051
|
-
import { jsx as
|
|
7052
|
-
var TimelineVerticalIcon = (props) => /* @__PURE__ */
|
|
7072
|
+
import { jsx as jsx185 } from "react/jsx-runtime";
|
|
7073
|
+
var TimelineVerticalIcon = (props) => /* @__PURE__ */ jsx185(
|
|
7053
7074
|
"svg",
|
|
7054
7075
|
{
|
|
7055
7076
|
...props,
|
|
7056
7077
|
viewBox: "0 0 24 24",
|
|
7057
7078
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7058
|
-
children: /* @__PURE__ */
|
|
7079
|
+
children: /* @__PURE__ */ jsx185(
|
|
7059
7080
|
"path",
|
|
7060
7081
|
{
|
|
7061
7082
|
d: "M5 1.33301C5.55202 1.33301 5.99982 1.78102 6 2.33301V8.83691C7.34747 9.26465 8.33301 10.5129 8.33301 12C8.33301 13.4871 7.34747 14.7354 6 15.1631V21.667C5.99982 22.219 5.55202 22.667 5 22.667C4.44798 22.667 4.00018 22.219 4 21.667V15.1631C2.65253 14.7354 1.66699 13.4871 1.66699 12C1.66699 10.5129 2.65253 9.26465 4 8.83691V2.33301C4.00018 1.78102 4.44798 1.33301 5 1.33301ZM19 13.333C20.2887 13.333 21.333 14.3783 21.333 15.667V19C21.333 20.2887 20.2887 21.333 19 21.333H11.667C10.3783 21.333 9.33301 20.2887 9.33301 19V15.667C9.33301 14.3783 10.3783 13.333 11.667 13.333H19ZM5 10.667C4.26493 10.667 3.66699 11.2649 3.66699 12C3.66699 12.7351 4.26493 13.333 5 13.333C5.73507 13.333 6.33301 12.7351 6.33301 12C6.33301 11.2649 5.73507 10.667 5 10.667ZM19 2.66699C20.2887 2.66699 21.333 3.71133 21.333 5V8.33301C21.333 9.62167 20.2887 10.667 19 10.667H11.667C10.3783 10.667 9.33301 9.62167 9.33301 8.33301V5C9.33301 3.71133 10.3783 2.66699 11.667 2.66699H19Z",
|
|
@@ -7066,14 +7087,14 @@ var TimelineVerticalIcon = (props) => /* @__PURE__ */ jsx184(
|
|
|
7066
7087
|
);
|
|
7067
7088
|
|
|
7068
7089
|
// src/components/Icon/icons/TokenIcon.tsx
|
|
7069
|
-
import { jsx as
|
|
7070
|
-
var TokenIcon = (props) => /* @__PURE__ */
|
|
7090
|
+
import { jsx as jsx186 } from "react/jsx-runtime";
|
|
7091
|
+
var TokenIcon = (props) => /* @__PURE__ */ jsx186(
|
|
7071
7092
|
"svg",
|
|
7072
7093
|
{
|
|
7073
7094
|
...props,
|
|
7074
7095
|
viewBox: "0 0 24 24",
|
|
7075
7096
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7076
|
-
children: /* @__PURE__ */
|
|
7097
|
+
children: /* @__PURE__ */ jsx186(
|
|
7077
7098
|
"path",
|
|
7078
7099
|
{
|
|
7079
7100
|
d: "M6.38086 19.0273C7.92121 20.2612 9.87483 21.001 12.002 21.001C14.1268 21.0009 16.0776 20.2618 17.6172 19.0303L19.04 20.4531C17.1326 22.0432 14.6794 23.0009 12.002 23.001C9.3223 23.001 6.86712 22.0416 4.95898 20.4492L6.38086 19.0273ZM20.4502 4.95801C22.0426 6.86614 23.0019 9.32133 23.002 12.001C23.0019 14.6784 22.0442 17.1316 20.4541 19.0391L19.0312 17.6162C20.2627 16.0766 21.0019 14.1258 21.002 12.001C21.0019 9.87386 20.2621 7.92025 19.0283 6.37988L20.4502 4.95801ZM4.9707 6.38379C3.7391 7.92345 3.00196 9.87597 3.00195 12.001C3.002 14.1237 3.73848 16.0734 4.96777 17.6123L3.54492 19.0352C1.95713 17.1284 1.002 14.6763 1.00195 12.001C1.00196 9.32345 1.9587 6.86941 3.54883 4.96191L4.9707 6.38379ZM12 5C15.866 5 19 8.13401 19 12C19 15.866 15.866 19 12 19C8.13401 19 5 15.866 5 12C5 8.13401 8.13401 5 12 5ZM9 12L12 15L15 12L12 9L9 12ZM12.002 1.00098C14.6773 1.00102 17.1293 1.95613 19.0361 3.54395L17.6133 4.9668C16.0744 3.7375 14.1246 3.00102 12.002 3.00098C9.87718 3.00099 7.92531 3.73839 6.38574 4.96973L4.96289 3.54785C6.87038 1.95772 9.32439 1.00099 12.002 1.00098Z",
|
|
@@ -7084,14 +7105,14 @@ var TokenIcon = (props) => /* @__PURE__ */ jsx185(
|
|
|
7084
7105
|
);
|
|
7085
7106
|
|
|
7086
7107
|
// src/components/Icon/icons/TranscriptIcon.tsx
|
|
7087
|
-
import { jsx as
|
|
7088
|
-
var TranscriptIcon = (props) => /* @__PURE__ */
|
|
7108
|
+
import { jsx as jsx187 } from "react/jsx-runtime";
|
|
7109
|
+
var TranscriptIcon = (props) => /* @__PURE__ */ jsx187(
|
|
7089
7110
|
"svg",
|
|
7090
7111
|
{
|
|
7091
7112
|
...props,
|
|
7092
7113
|
viewBox: "0 0 24 24",
|
|
7093
7114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7094
|
-
children: /* @__PURE__ */
|
|
7115
|
+
children: /* @__PURE__ */ jsx187(
|
|
7095
7116
|
"path",
|
|
7096
7117
|
{
|
|
7097
7118
|
d: "M19.4132 7.98019L14.9401 3.57694C14.5618 3.20457 14.0601 2.99982 13.5264 2.99982H7.14237C5.40865 2.99982 3.99951 4.38694 3.99951 6.09357V17.9061C3.99951 19.6127 5.40865 20.9998 7.14237 20.9998H16.8567C18.5904 20.9998 19.9995 19.6127 19.9995 17.9061V9.37182C19.9995 8.84644 19.7915 8.35144 19.4132 7.98019ZM8.28523 8.62482H10.5709C11.0441 8.62482 11.4281 9.00282 11.4281 9.46857C11.4281 9.93432 11.0441 10.3123 10.5709 10.3123H8.28523C7.81208 10.3123 7.42808 9.93432 7.42808 9.46857C7.42808 9.00282 7.81208 8.62482 8.28523 8.62482ZM15.7138 17.0623H8.28523C7.81208 17.0623 7.42808 16.6843 7.42808 16.2186C7.42808 15.7528 7.81208 15.3748 8.28523 15.3748H15.7138C16.1869 15.3748 16.5709 15.7528 16.5709 16.2186C16.5709 16.6843 16.1869 17.0623 15.7138 17.0623ZM15.7138 13.6873H8.28523C7.81208 13.6873 7.42808 13.3093 7.42808 12.8436C7.42808 12.3778 7.81208 11.9998 8.28523 11.9998H15.7138C16.1869 11.9998 16.5709 12.3778 16.5709 12.8436C16.5709 13.3093 16.1869 13.6873 15.7138 13.6873ZM18.2075 9.18732H14.8567C14.2281 9.18732 13.7138 8.68107 13.7138 8.06232V4.77619L13.7287 4.77057L18.2109 9.18169L18.2075 9.18732Z",
|
|
@@ -7102,14 +7123,14 @@ var TranscriptIcon = (props) => /* @__PURE__ */ jsx186(
|
|
|
7102
7123
|
);
|
|
7103
7124
|
|
|
7104
7125
|
// src/components/Icon/icons/TransitionsIcon.tsx
|
|
7105
|
-
import { jsx as
|
|
7106
|
-
var TransitionsIcon = (props) => /* @__PURE__ */
|
|
7126
|
+
import { jsx as jsx188 } from "react/jsx-runtime";
|
|
7127
|
+
var TransitionsIcon = (props) => /* @__PURE__ */ jsx188(
|
|
7107
7128
|
"svg",
|
|
7108
7129
|
{
|
|
7109
7130
|
...props,
|
|
7110
7131
|
viewBox: "0 0 24 24",
|
|
7111
7132
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7112
|
-
children: /* @__PURE__ */
|
|
7133
|
+
children: /* @__PURE__ */ jsx188(
|
|
7113
7134
|
"path",
|
|
7114
7135
|
{
|
|
7115
7136
|
clipRule: "evenodd",
|
|
@@ -7122,14 +7143,14 @@ var TransitionsIcon = (props) => /* @__PURE__ */ jsx187(
|
|
|
7122
7143
|
);
|
|
7123
7144
|
|
|
7124
7145
|
// src/components/Icon/icons/TransparencyIcon.tsx
|
|
7125
|
-
import { jsx as
|
|
7126
|
-
var TransparencyIcon = (props) => /* @__PURE__ */
|
|
7146
|
+
import { jsx as jsx189 } from "react/jsx-runtime";
|
|
7147
|
+
var TransparencyIcon = (props) => /* @__PURE__ */ jsx189(
|
|
7127
7148
|
"svg",
|
|
7128
7149
|
{
|
|
7129
7150
|
...props,
|
|
7130
7151
|
viewBox: "0 0 24 24",
|
|
7131
7152
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7132
|
-
children: /* @__PURE__ */
|
|
7153
|
+
children: /* @__PURE__ */ jsx189(
|
|
7133
7154
|
"path",
|
|
7134
7155
|
{
|
|
7135
7156
|
clipRule: "evenodd",
|
|
@@ -7142,14 +7163,14 @@ var TransparencyIcon = (props) => /* @__PURE__ */ jsx188(
|
|
|
7142
7163
|
);
|
|
7143
7164
|
|
|
7144
7165
|
// src/components/Icon/icons/TrendsIcon.tsx
|
|
7145
|
-
import { jsx as
|
|
7146
|
-
var TrendsIcon = (props) => /* @__PURE__ */
|
|
7166
|
+
import { jsx as jsx190 } from "react/jsx-runtime";
|
|
7167
|
+
var TrendsIcon = (props) => /* @__PURE__ */ jsx190(
|
|
7147
7168
|
"svg",
|
|
7148
7169
|
{
|
|
7149
7170
|
...props,
|
|
7150
7171
|
viewBox: "0 0 24 24",
|
|
7151
7172
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7152
|
-
children: /* @__PURE__ */
|
|
7173
|
+
children: /* @__PURE__ */ jsx190(
|
|
7153
7174
|
"path",
|
|
7154
7175
|
{
|
|
7155
7176
|
clipRule: "evenodd",
|
|
@@ -7162,14 +7183,14 @@ var TrendsIcon = (props) => /* @__PURE__ */ jsx189(
|
|
|
7162
7183
|
);
|
|
7163
7184
|
|
|
7164
7185
|
// src/components/Icon/icons/TrialUnlockClockIcon.tsx
|
|
7165
|
-
import { jsx as
|
|
7166
|
-
var TrialUnlockClockIcon = (props) => /* @__PURE__ */
|
|
7186
|
+
import { jsx as jsx191 } from "react/jsx-runtime";
|
|
7187
|
+
var TrialUnlockClockIcon = (props) => /* @__PURE__ */ jsx191(
|
|
7167
7188
|
"svg",
|
|
7168
7189
|
{
|
|
7169
7190
|
...props,
|
|
7170
7191
|
viewBox: "0 0 24 24",
|
|
7171
7192
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7172
|
-
children: /* @__PURE__ */
|
|
7193
|
+
children: /* @__PURE__ */ jsx191(
|
|
7173
7194
|
"path",
|
|
7174
7195
|
{
|
|
7175
7196
|
clipRule: "evenodd",
|
|
@@ -7182,14 +7203,14 @@ var TrialUnlockClockIcon = (props) => /* @__PURE__ */ jsx190(
|
|
|
7182
7203
|
);
|
|
7183
7204
|
|
|
7184
7205
|
// src/components/Icon/icons/TrimIcon.tsx
|
|
7185
|
-
import { jsx as
|
|
7186
|
-
var TrimIcon = (props) => /* @__PURE__ */
|
|
7206
|
+
import { jsx as jsx192 } from "react/jsx-runtime";
|
|
7207
|
+
var TrimIcon = (props) => /* @__PURE__ */ jsx192(
|
|
7187
7208
|
"svg",
|
|
7188
7209
|
{
|
|
7189
7210
|
...props,
|
|
7190
7211
|
viewBox: "0 0 24 24",
|
|
7191
7212
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7192
|
-
children: /* @__PURE__ */
|
|
7213
|
+
children: /* @__PURE__ */ jsx192(
|
|
7193
7214
|
"path",
|
|
7194
7215
|
{
|
|
7195
7216
|
clipRule: "evenodd",
|
|
@@ -7202,14 +7223,14 @@ var TrimIcon = (props) => /* @__PURE__ */ jsx191(
|
|
|
7202
7223
|
);
|
|
7203
7224
|
|
|
7204
7225
|
// src/components/Icon/icons/TurnstileIcon.tsx
|
|
7205
|
-
import { jsx as
|
|
7206
|
-
var TurnstileIcon = (props) => /* @__PURE__ */
|
|
7226
|
+
import { jsx as jsx193 } from "react/jsx-runtime";
|
|
7227
|
+
var TurnstileIcon = (props) => /* @__PURE__ */ jsx193(
|
|
7207
7228
|
"svg",
|
|
7208
7229
|
{
|
|
7209
7230
|
...props,
|
|
7210
7231
|
viewBox: "0 0 24 24",
|
|
7211
7232
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7212
|
-
children: /* @__PURE__ */
|
|
7233
|
+
children: /* @__PURE__ */ jsx193(
|
|
7213
7234
|
"path",
|
|
7214
7235
|
{
|
|
7215
7236
|
clipRule: "evenodd",
|
|
@@ -7222,14 +7243,14 @@ var TurnstileIcon = (props) => /* @__PURE__ */ jsx192(
|
|
|
7222
7243
|
);
|
|
7223
7244
|
|
|
7224
7245
|
// src/components/Icon/icons/UndoIcon.tsx
|
|
7225
|
-
import { jsx as
|
|
7226
|
-
var UndoIcon = (props) => /* @__PURE__ */
|
|
7246
|
+
import { jsx as jsx194 } from "react/jsx-runtime";
|
|
7247
|
+
var UndoIcon = (props) => /* @__PURE__ */ jsx194(
|
|
7227
7248
|
"svg",
|
|
7228
7249
|
{
|
|
7229
7250
|
...props,
|
|
7230
7251
|
viewBox: "0 0 24 24",
|
|
7231
7252
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7232
|
-
children: /* @__PURE__ */
|
|
7253
|
+
children: /* @__PURE__ */ jsx194(
|
|
7233
7254
|
"path",
|
|
7234
7255
|
{
|
|
7235
7256
|
clipRule: "evenodd",
|
|
@@ -7242,14 +7263,14 @@ var UndoIcon = (props) => /* @__PURE__ */ jsx193(
|
|
|
7242
7263
|
);
|
|
7243
7264
|
|
|
7244
7265
|
// src/components/Icon/icons/UnlockIcon.tsx
|
|
7245
|
-
import { jsx as
|
|
7246
|
-
var UnlockIcon = (props) => /* @__PURE__ */
|
|
7266
|
+
import { jsx as jsx195 } from "react/jsx-runtime";
|
|
7267
|
+
var UnlockIcon = (props) => /* @__PURE__ */ jsx195(
|
|
7247
7268
|
"svg",
|
|
7248
7269
|
{
|
|
7249
7270
|
...props,
|
|
7250
7271
|
viewBox: "0 0 24 24",
|
|
7251
7272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7252
|
-
children: /* @__PURE__ */
|
|
7273
|
+
children: /* @__PURE__ */ jsx195(
|
|
7253
7274
|
"path",
|
|
7254
7275
|
{
|
|
7255
7276
|
clipRule: "evenodd",
|
|
@@ -7262,14 +7283,14 @@ var UnlockIcon = (props) => /* @__PURE__ */ jsx194(
|
|
|
7262
7283
|
);
|
|
7263
7284
|
|
|
7264
7285
|
// src/components/Icon/icons/UploadIcon.tsx
|
|
7265
|
-
import { jsx as
|
|
7266
|
-
var UploadIcon = (props) => /* @__PURE__ */
|
|
7286
|
+
import { jsx as jsx196 } from "react/jsx-runtime";
|
|
7287
|
+
var UploadIcon = (props) => /* @__PURE__ */ jsx196(
|
|
7267
7288
|
"svg",
|
|
7268
7289
|
{
|
|
7269
7290
|
...props,
|
|
7270
7291
|
viewBox: "0 0 24 24",
|
|
7271
7292
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7272
|
-
children: /* @__PURE__ */
|
|
7293
|
+
children: /* @__PURE__ */ jsx196(
|
|
7273
7294
|
"path",
|
|
7274
7295
|
{
|
|
7275
7296
|
clipRule: "evenodd",
|
|
@@ -7282,14 +7303,14 @@ var UploadIcon = (props) => /* @__PURE__ */ jsx195(
|
|
|
7282
7303
|
);
|
|
7283
7304
|
|
|
7284
7305
|
// src/components/Icon/icons/UsersPermissionsIcon.tsx
|
|
7285
|
-
import { jsx as
|
|
7286
|
-
var UsersPermissionsIcon = (props) => /* @__PURE__ */
|
|
7306
|
+
import { jsx as jsx197 } from "react/jsx-runtime";
|
|
7307
|
+
var UsersPermissionsIcon = (props) => /* @__PURE__ */ jsx197(
|
|
7287
7308
|
"svg",
|
|
7288
7309
|
{
|
|
7289
7310
|
...props,
|
|
7290
7311
|
viewBox: "0 0 24 24",
|
|
7291
7312
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7292
|
-
children: /* @__PURE__ */
|
|
7313
|
+
children: /* @__PURE__ */ jsx197(
|
|
7293
7314
|
"path",
|
|
7294
7315
|
{
|
|
7295
7316
|
clipRule: "evenodd",
|
|
@@ -7302,14 +7323,14 @@ var UsersPermissionsIcon = (props) => /* @__PURE__ */ jsx196(
|
|
|
7302
7323
|
);
|
|
7303
7324
|
|
|
7304
7325
|
// src/components/Icon/icons/ViewStreamIcon.tsx
|
|
7305
|
-
import { jsx as
|
|
7306
|
-
var ViewStreamIcon = (props) => /* @__PURE__ */
|
|
7326
|
+
import { jsx as jsx198 } from "react/jsx-runtime";
|
|
7327
|
+
var ViewStreamIcon = (props) => /* @__PURE__ */ jsx198(
|
|
7307
7328
|
"svg",
|
|
7308
7329
|
{
|
|
7309
7330
|
...props,
|
|
7310
7331
|
viewBox: "0 0 24 24",
|
|
7311
7332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7312
|
-
children: /* @__PURE__ */
|
|
7333
|
+
children: /* @__PURE__ */ jsx198(
|
|
7313
7334
|
"path",
|
|
7314
7335
|
{
|
|
7315
7336
|
clipRule: "evenodd",
|
|
@@ -7322,14 +7343,14 @@ var ViewStreamIcon = (props) => /* @__PURE__ */ jsx197(
|
|
|
7322
7343
|
);
|
|
7323
7344
|
|
|
7324
7345
|
// src/components/Icon/icons/VolumeIcon.tsx
|
|
7325
|
-
import { jsx as
|
|
7326
|
-
var VolumeIcon = (props) => /* @__PURE__ */
|
|
7346
|
+
import { jsx as jsx199 } from "react/jsx-runtime";
|
|
7347
|
+
var VolumeIcon = (props) => /* @__PURE__ */ jsx199(
|
|
7327
7348
|
"svg",
|
|
7328
7349
|
{
|
|
7329
7350
|
...props,
|
|
7330
7351
|
viewBox: "0 0 24 24",
|
|
7331
7352
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7332
|
-
children: /* @__PURE__ */
|
|
7353
|
+
children: /* @__PURE__ */ jsx199(
|
|
7333
7354
|
"path",
|
|
7334
7355
|
{
|
|
7335
7356
|
d: "M19.133 2.08909C18.5996 1.79709 17.9476 1.81843 17.4356 2.14776L10.3756 6.66643H5.66763C4.01297 6.66643 2.66763 8.01176 2.66763 9.66643V14.3331C2.66763 15.9878 4.01297 17.3331 5.66763 17.3331H10.3756L17.4356 21.8518C17.709 22.0264 18.021 22.1158 18.3356 22.1158C18.6103 22.1158 18.885 22.0478 19.1343 21.9118C19.669 21.6198 20.001 21.0584 20.001 20.4491V3.55176C20.001 2.94243 19.6676 2.38243 19.133 2.08909Z",
|
|
@@ -7340,14 +7361,14 @@ var VolumeIcon = (props) => /* @__PURE__ */ jsx198(
|
|
|
7340
7361
|
);
|
|
7341
7362
|
|
|
7342
7363
|
// src/components/Icon/icons/VolumeOffIcon.tsx
|
|
7343
|
-
import { jsx as
|
|
7344
|
-
var VolumeOffIcon = (props) => /* @__PURE__ */
|
|
7364
|
+
import { jsx as jsx200 } from "react/jsx-runtime";
|
|
7365
|
+
var VolumeOffIcon = (props) => /* @__PURE__ */ jsx200(
|
|
7345
7366
|
"svg",
|
|
7346
7367
|
{
|
|
7347
7368
|
...props,
|
|
7348
7369
|
viewBox: "0 0 24 24",
|
|
7349
7370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7350
|
-
children: /* @__PURE__ */
|
|
7371
|
+
children: /* @__PURE__ */ jsx200(
|
|
7351
7372
|
"path",
|
|
7352
7373
|
{
|
|
7353
7374
|
clipRule: "evenodd",
|
|
@@ -7360,14 +7381,14 @@ var VolumeOffIcon = (props) => /* @__PURE__ */ jsx199(
|
|
|
7360
7381
|
);
|
|
7361
7382
|
|
|
7362
7383
|
// src/components/Icon/icons/VolumeUpIcon.tsx
|
|
7363
|
-
import { jsx as
|
|
7364
|
-
var VolumeUpIcon = (props) => /* @__PURE__ */
|
|
7384
|
+
import { jsx as jsx201 } from "react/jsx-runtime";
|
|
7385
|
+
var VolumeUpIcon = (props) => /* @__PURE__ */ jsx201(
|
|
7365
7386
|
"svg",
|
|
7366
7387
|
{
|
|
7367
7388
|
...props,
|
|
7368
7389
|
viewBox: "0 0 24 24",
|
|
7369
7390
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7370
|
-
children: /* @__PURE__ */
|
|
7391
|
+
children: /* @__PURE__ */ jsx201(
|
|
7371
7392
|
"path",
|
|
7372
7393
|
{
|
|
7373
7394
|
clipRule: "evenodd",
|
|
@@ -7380,14 +7401,14 @@ var VolumeUpIcon = (props) => /* @__PURE__ */ jsx200(
|
|
|
7380
7401
|
);
|
|
7381
7402
|
|
|
7382
7403
|
// src/components/Icon/icons/VolumeXIcon.tsx
|
|
7383
|
-
import { jsx as
|
|
7384
|
-
var VolumeXIcon = (props) => /* @__PURE__ */
|
|
7404
|
+
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
7405
|
+
var VolumeXIcon = (props) => /* @__PURE__ */ jsx202(
|
|
7385
7406
|
"svg",
|
|
7386
7407
|
{
|
|
7387
7408
|
...props,
|
|
7388
7409
|
viewBox: "0 0 24 24",
|
|
7389
7410
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7390
|
-
children: /* @__PURE__ */
|
|
7411
|
+
children: /* @__PURE__ */ jsx202(
|
|
7391
7412
|
"path",
|
|
7392
7413
|
{
|
|
7393
7414
|
clipRule: "evenodd",
|
|
@@ -7400,14 +7421,14 @@ var VolumeXIcon = (props) => /* @__PURE__ */ jsx201(
|
|
|
7400
7421
|
);
|
|
7401
7422
|
|
|
7402
7423
|
// src/components/Icon/icons/WandIcon.tsx
|
|
7403
|
-
import { jsx as
|
|
7404
|
-
var WandIcon = (props) => /* @__PURE__ */
|
|
7424
|
+
import { jsx as jsx203 } from "react/jsx-runtime";
|
|
7425
|
+
var WandIcon = (props) => /* @__PURE__ */ jsx203(
|
|
7405
7426
|
"svg",
|
|
7406
7427
|
{
|
|
7407
7428
|
...props,
|
|
7408
7429
|
viewBox: "0 0 24 24",
|
|
7409
7430
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7410
|
-
children: /* @__PURE__ */
|
|
7431
|
+
children: /* @__PURE__ */ jsx203(
|
|
7411
7432
|
"path",
|
|
7412
7433
|
{
|
|
7413
7434
|
clipRule: "evenodd",
|
|
@@ -7420,14 +7441,14 @@ var WandIcon = (props) => /* @__PURE__ */ jsx202(
|
|
|
7420
7441
|
);
|
|
7421
7442
|
|
|
7422
7443
|
// src/components/Icon/icons/WaveformIcon.tsx
|
|
7423
|
-
import { jsx as
|
|
7424
|
-
var WaveformIcon = (props) => /* @__PURE__ */
|
|
7444
|
+
import { jsx as jsx204 } from "react/jsx-runtime";
|
|
7445
|
+
var WaveformIcon = (props) => /* @__PURE__ */ jsx204(
|
|
7425
7446
|
"svg",
|
|
7426
7447
|
{
|
|
7427
7448
|
...props,
|
|
7428
7449
|
viewBox: "0 0 24 24",
|
|
7429
7450
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7430
|
-
children: /* @__PURE__ */
|
|
7451
|
+
children: /* @__PURE__ */ jsx204(
|
|
7431
7452
|
"path",
|
|
7432
7453
|
{
|
|
7433
7454
|
clipRule: "evenodd",
|
|
@@ -7440,14 +7461,14 @@ var WaveformIcon = (props) => /* @__PURE__ */ jsx203(
|
|
|
7440
7461
|
);
|
|
7441
7462
|
|
|
7442
7463
|
// src/components/Icon/icons/WebhookIcon.tsx
|
|
7443
|
-
import { jsx as
|
|
7444
|
-
var WebhookIcon = (props) => /* @__PURE__ */
|
|
7464
|
+
import { jsx as jsx205 } from "react/jsx-runtime";
|
|
7465
|
+
var WebhookIcon = (props) => /* @__PURE__ */ jsx205(
|
|
7445
7466
|
"svg",
|
|
7446
7467
|
{
|
|
7447
7468
|
...props,
|
|
7448
7469
|
viewBox: "0 0 24 24",
|
|
7449
7470
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7450
|
-
children: /* @__PURE__ */
|
|
7471
|
+
children: /* @__PURE__ */ jsx205(
|
|
7451
7472
|
"path",
|
|
7452
7473
|
{
|
|
7453
7474
|
d: "M2.92116 13.1937C3.41849 12.955 4.01648 13.1638 4.25515 13.6624C4.49381 14.1597 4.28409 14.7577 3.78542 14.9964C3.71348 15.0297 3.64411 15.0668 3.57351 15.1068C2.14151 15.9334 1.64821 17.772 2.47487 19.2054C3.3029 20.6373 5.14289 21.1296 6.57351 20.303C7.50814 19.7631 8.0828 18.7574 8.07351 17.6761C8.07084 17.4081 8.17457 17.1516 8.36257 16.9622C8.55055 16.773 8.80692 16.6663 9.07351 16.6663H17.6663C17.7969 16.4917 17.9643 16.3409 18.1643 16.2249C18.9616 15.7652 19.9817 16.039 20.4417 16.8362L20.4426 16.8343C20.9026 17.6315 20.6293 18.6515 19.8323 19.1116C19.1016 19.5343 18.2031 19.317 17.7005 18.6663H9.97976C9.70243 20.0663 8.83482 21.3055 7.57351 22.0335C6.78817 22.4868 5.92932 22.7025 5.08132 22.7025C3.35207 22.7024 1.66781 21.8069 0.742451 20.2044C-0.636164 17.8165 0.185358 14.7524 2.57448 13.3763C2.68906 13.3097 2.80525 13.2496 2.92116 13.1937ZM12.0003 3.96124C12.9201 3.96138 13.6663 4.70832 13.6663 5.62823C13.6662 5.86137 13.6177 6.08134 13.5325 6.28253L17.3733 12.9359C18.724 12.4745 20.2321 12.6082 21.4934 13.3362C22.6507 14.0042 23.4792 15.0818 23.8245 16.3724L23.8225 16.3694C24.1678 17.6601 23.9905 19.0071 23.3225 20.1644C22.3985 21.7655 20.7129 22.6624 18.9837 22.6624C18.1358 22.6624 17.2787 22.4477 16.4934 21.9944C16.3775 21.9265 16.2651 21.8578 16.1585 21.7845C15.7038 21.4712 15.5906 20.8475 15.9026 20.3929C16.2146 19.9385 16.8387 19.8239 17.2932 20.137C17.3571 20.1823 17.4252 20.225 17.4944 20.265C18.9237 21.089 20.7644 20.5987 21.5911 19.1653C21.9923 18.4707 22.0989 17.6626 21.8909 16.888C21.6842 16.1147 21.1881 15.468 20.4934 15.0667C19.5575 14.5254 18.3977 14.5309 17.4671 15.0814C17.2377 15.216 16.964 15.2548 16.7053 15.1868C16.4481 15.1188 16.2283 14.9506 16.095 14.72L11.7825 7.25031C10.9693 7.13956 10.3334 6.47205 10.3333 5.62823C10.3333 4.70823 11.0803 3.96124 12.0003 3.96124ZM11.9983 0.630188C14.7555 0.630188 16.9981 2.87306 16.9983 5.63019C16.9983 5.76352 16.9934 5.89601 16.9827 6.02667C16.9387 6.57859 16.4548 6.98524 15.9055 6.94269C15.3549 6.89736 14.9443 6.41612 14.9895 5.86554C14.9962 5.78821 14.9983 5.70885 14.9983 5.63019C14.9981 3.97573 13.6528 2.63019 11.9983 2.63019C10.344 2.63039 8.99856 3.97585 8.99831 5.63019C8.99831 6.70874 9.58254 7.71045 10.5237 8.24249C10.7557 8.37449 10.9257 8.59356 10.9964 8.85089C11.0669 9.10813 11.031 9.38301 10.8977 9.61359L6.6028 17.0521C6.68944 17.252 6.73757 17.4734 6.73757 17.7054C6.73753 18.6254 5.99055 19.3724 5.07058 19.3724C4.15065 19.3723 3.40362 18.6253 3.40358 17.7054C3.40358 16.8627 4.04178 16.193 4.85378 16.0823L8.71315 9.39777C7.63849 8.45777 7.00026 7.08521 7.00026 5.62921C7.00032 2.87192 9.24296 0.629211 12.0003 0.629211L11.9983 0.630188Z",
|
|
@@ -7458,14 +7479,14 @@ var WebhookIcon = (props) => /* @__PURE__ */ jsx204(
|
|
|
7458
7479
|
);
|
|
7459
7480
|
|
|
7460
7481
|
// src/components/Icon/icons/ZoomInIcon.tsx
|
|
7461
|
-
import { jsx as
|
|
7462
|
-
var ZoomInIcon = (props) => /* @__PURE__ */
|
|
7482
|
+
import { jsx as jsx206 } from "react/jsx-runtime";
|
|
7483
|
+
var ZoomInIcon = (props) => /* @__PURE__ */ jsx206(
|
|
7463
7484
|
"svg",
|
|
7464
7485
|
{
|
|
7465
7486
|
...props,
|
|
7466
7487
|
viewBox: "0 0 24 24",
|
|
7467
7488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7468
|
-
children: /* @__PURE__ */
|
|
7489
|
+
children: /* @__PURE__ */ jsx206(
|
|
7469
7490
|
"path",
|
|
7470
7491
|
{
|
|
7471
7492
|
clipRule: "evenodd",
|
|
@@ -7478,14 +7499,14 @@ var ZoomInIcon = (props) => /* @__PURE__ */ jsx205(
|
|
|
7478
7499
|
);
|
|
7479
7500
|
|
|
7480
7501
|
// src/components/Icon/icons/ZoomOutIcon.tsx
|
|
7481
|
-
import { jsx as
|
|
7482
|
-
var ZoomOutIcon = (props) => /* @__PURE__ */
|
|
7502
|
+
import { jsx as jsx207 } from "react/jsx-runtime";
|
|
7503
|
+
var ZoomOutIcon = (props) => /* @__PURE__ */ jsx207(
|
|
7483
7504
|
"svg",
|
|
7484
7505
|
{
|
|
7485
7506
|
...props,
|
|
7486
7507
|
viewBox: "0 0 24 24",
|
|
7487
7508
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7488
|
-
children: /* @__PURE__ */
|
|
7509
|
+
children: /* @__PURE__ */ jsx207(
|
|
7489
7510
|
"path",
|
|
7490
7511
|
{
|
|
7491
7512
|
clipRule: "evenodd",
|
|
@@ -7648,6 +7669,7 @@ var iconMap = {
|
|
|
7648
7669
|
"record-group": RecordGroupIcon,
|
|
7649
7670
|
redo: RedoIcon,
|
|
7650
7671
|
refresh: RefreshIcon,
|
|
7672
|
+
remix: RemixIcon,
|
|
7651
7673
|
replace: ReplaceIcon,
|
|
7652
7674
|
reply: ReplyIcon,
|
|
7653
7675
|
"request-video": RequestVideoIcon,
|
|
@@ -7719,7 +7741,7 @@ var useResponsiveProp = (values) => {
|
|
|
7719
7741
|
};
|
|
7720
7742
|
|
|
7721
7743
|
// src/components/Icon/Icon.tsx
|
|
7722
|
-
import { jsx as
|
|
7744
|
+
import { jsx as jsx208 } from "react/jsx-runtime";
|
|
7723
7745
|
var iconSizeMap = {
|
|
7724
7746
|
sm: "12",
|
|
7725
7747
|
md: "16",
|
|
@@ -7773,7 +7795,7 @@ var Icon = ({
|
|
|
7773
7795
|
...style
|
|
7774
7796
|
};
|
|
7775
7797
|
const iconColor = invertColor ? "var(--wui-color-icon-on-fill)" : "var(--wui-color-icon)";
|
|
7776
|
-
return /* @__PURE__ */
|
|
7798
|
+
return /* @__PURE__ */ jsx208(
|
|
7777
7799
|
StyledIcon,
|
|
7778
7800
|
{
|
|
7779
7801
|
$colorScheme: colorScheme,
|
|
@@ -7798,7 +7820,7 @@ import { forwardRef } from "react";
|
|
|
7798
7820
|
import { styled as styled5 } from "styled-components";
|
|
7799
7821
|
import { Link as RouterLink, useInRouterContext } from "react-router";
|
|
7800
7822
|
import { isFunction as isFunction2, isNil as isNil6, isNotNil as isNotNil5, isNotUndefined as isNotUndefined3, isUndefined as isUndefined2 } from "@wistia/type-guards";
|
|
7801
|
-
import { jsx as
|
|
7823
|
+
import { jsx as jsx209, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
7802
7824
|
var generateHref = (href, type, disabled) => {
|
|
7803
7825
|
if (disabled || isNil6(href)) {
|
|
7804
7826
|
return void 0;
|
|
@@ -7892,7 +7914,7 @@ var Link = forwardRef(
|
|
|
7892
7914
|
"aria-disabled": ariaDisabled ?? (disabled ? "true" : void 0)
|
|
7893
7915
|
};
|
|
7894
7916
|
if (isButton(props)) {
|
|
7895
|
-
return /* @__PURE__ */
|
|
7917
|
+
return /* @__PURE__ */ jsx209(
|
|
7896
7918
|
StyledLink,
|
|
7897
7919
|
{
|
|
7898
7920
|
ref,
|
|
@@ -7941,7 +7963,7 @@ var Link = forwardRef(
|
|
|
7941
7963
|
Link.displayName = "Link_UI";
|
|
7942
7964
|
|
|
7943
7965
|
// src/components/Button/Button.tsx
|
|
7944
|
-
import { Fragment as Fragment2, jsx as
|
|
7966
|
+
import { Fragment as Fragment2, jsx as jsx210, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
7945
7967
|
var isLink2 = (props) => isNotUndefined4(props.href);
|
|
7946
7968
|
var StyledButton = styled6.button`
|
|
7947
7969
|
${buttonResetCss}
|
|
@@ -7979,7 +8001,7 @@ var ButtonContent = ({
|
|
|
7979
8001
|
fullWidth = false
|
|
7980
8002
|
}) => {
|
|
7981
8003
|
return /* @__PURE__ */ jsxs10(Fragment2, { children: [
|
|
7982
|
-
isLoading ? /* @__PURE__ */
|
|
8004
|
+
isLoading ? /* @__PURE__ */ jsx210(StyledButtonLoading, { children: /* @__PURE__ */ jsx210(Icon, { type: "spinner" }) }) : null,
|
|
7983
8005
|
/* @__PURE__ */ jsxs10(
|
|
7984
8006
|
StyledButtonContent,
|
|
7985
8007
|
{
|
|
@@ -7988,7 +8010,7 @@ var ButtonContent = ({
|
|
|
7988
8010
|
$isLoading: isLoading,
|
|
7989
8011
|
children: [
|
|
7990
8012
|
leftIcon ?? null,
|
|
7991
|
-
/* @__PURE__ */
|
|
8013
|
+
/* @__PURE__ */ jsx210(StyledButtonContentLabel, { $fullWidth: fullWidth, children }),
|
|
7992
8014
|
rightIcon ?? null
|
|
7993
8015
|
]
|
|
7994
8016
|
}
|
|
@@ -8028,7 +8050,7 @@ var Button = forwardRef2(
|
|
|
8028
8050
|
commonProps.className = `${className ?? ""} force-state-${forceState}`;
|
|
8029
8051
|
}
|
|
8030
8052
|
if (isLink2(props)) {
|
|
8031
|
-
return /* @__PURE__ */
|
|
8053
|
+
return /* @__PURE__ */ jsx210(
|
|
8032
8054
|
StyledButton,
|
|
8033
8055
|
{
|
|
8034
8056
|
ref,
|
|
@@ -8036,7 +8058,7 @@ var Button = forwardRef2(
|
|
|
8036
8058
|
disabled: isAriaDisabled(),
|
|
8037
8059
|
...props,
|
|
8038
8060
|
...commonProps,
|
|
8039
|
-
children: unstyled ? children : /* @__PURE__ */
|
|
8061
|
+
children: unstyled ? children : /* @__PURE__ */ jsx210(
|
|
8040
8062
|
ButtonContent,
|
|
8041
8063
|
{
|
|
8042
8064
|
fullWidth: responsiveFullWidth,
|
|
@@ -8058,7 +8080,7 @@ var Button = forwardRef2(
|
|
|
8058
8080
|
onClick(event);
|
|
8059
8081
|
}
|
|
8060
8082
|
};
|
|
8061
|
-
return /* @__PURE__ */
|
|
8083
|
+
return /* @__PURE__ */ jsx210(
|
|
8062
8084
|
StyledButton,
|
|
8063
8085
|
{
|
|
8064
8086
|
ref,
|
|
@@ -8067,7 +8089,7 @@ var Button = forwardRef2(
|
|
|
8067
8089
|
...props,
|
|
8068
8090
|
...commonProps,
|
|
8069
8091
|
"data-wui-button": true,
|
|
8070
|
-
children: unstyled ? children : /* @__PURE__ */
|
|
8092
|
+
children: unstyled ? children : /* @__PURE__ */ jsx210(
|
|
8071
8093
|
ButtonContent,
|
|
8072
8094
|
{
|
|
8073
8095
|
fullWidth: responsiveFullWidth,
|
|
@@ -8084,7 +8106,7 @@ var Button = forwardRef2(
|
|
|
8084
8106
|
Button.displayName = "Button_UI";
|
|
8085
8107
|
|
|
8086
8108
|
// src/components/ActionButton/ActionButton.tsx
|
|
8087
|
-
import { jsx as
|
|
8109
|
+
import { jsx as jsx211, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
8088
8110
|
var StyledActionButton = styled7(Button)`
|
|
8089
8111
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8090
8112
|
display: grid;
|
|
@@ -8220,15 +8242,15 @@ var ActionButton = forwardRef3(
|
|
|
8220
8242
|
forceState,
|
|
8221
8243
|
unstyled: true,
|
|
8222
8244
|
children: [
|
|
8223
|
-
/* @__PURE__ */
|
|
8224
|
-
/* @__PURE__ */
|
|
8245
|
+
/* @__PURE__ */ jsx211(StyledMainIcon, { children: icon }),
|
|
8246
|
+
/* @__PURE__ */ jsx211(StyledSecondaryIcon, { $hideUntilHover: variant === "default", children: /* @__PURE__ */ jsx211(
|
|
8225
8247
|
Icon,
|
|
8226
8248
|
{
|
|
8227
8249
|
colorScheme: variant === "gated" ? "purple" : "inherit",
|
|
8228
8250
|
type: secondaryIconMap[variant]
|
|
8229
8251
|
}
|
|
8230
8252
|
) }),
|
|
8231
|
-
/* @__PURE__ */
|
|
8253
|
+
/* @__PURE__ */ jsx211(StyledLabel, { $disabled: disabled, children })
|
|
8232
8254
|
]
|
|
8233
8255
|
}
|
|
8234
8256
|
);
|
|
@@ -8258,7 +8280,7 @@ var formatNameForDisplay = (name) => {
|
|
|
8258
8280
|
// src/components/Image/Image.tsx
|
|
8259
8281
|
import { styled as styled8 } from "styled-components";
|
|
8260
8282
|
import { isNotNil as isNotNil7 } from "@wistia/type-guards";
|
|
8261
|
-
import { jsx as
|
|
8283
|
+
import { jsx as jsx212 } from "react/jsx-runtime";
|
|
8262
8284
|
var getFillStyle = (fillContainer) => {
|
|
8263
8285
|
if (fillContainer === "horizontal") {
|
|
8264
8286
|
return "width: 100%;";
|
|
@@ -8291,7 +8313,7 @@ var Image = ({
|
|
|
8291
8313
|
onLoad,
|
|
8292
8314
|
onError,
|
|
8293
8315
|
...props
|
|
8294
|
-
}) => /* @__PURE__ */
|
|
8316
|
+
}) => /* @__PURE__ */ jsx212(
|
|
8295
8317
|
StyledImage,
|
|
8296
8318
|
{
|
|
8297
8319
|
$borderRadius: borderRadius,
|
|
@@ -8310,7 +8332,7 @@ Image.displayName = "Image_UI";
|
|
|
8310
8332
|
|
|
8311
8333
|
// src/components/ColorSchemeWrapper/ColorSchemeWrapper.tsx
|
|
8312
8334
|
import { styled as styled9 } from "styled-components";
|
|
8313
|
-
import { jsx as
|
|
8335
|
+
import { jsx as jsx213 } from "react/jsx-runtime";
|
|
8314
8336
|
var defaultColorSchemeOptions = ["standard", "inherit"];
|
|
8315
8337
|
var semanticColorSchemeOptions = ["error", "info", "success", "warning"];
|
|
8316
8338
|
var brandColorSchemeOptions = [
|
|
@@ -8341,7 +8363,7 @@ var ColorSchemeWrapper = ({
|
|
|
8341
8363
|
colorScheme = "inherit",
|
|
8342
8364
|
children,
|
|
8343
8365
|
...props
|
|
8344
|
-
}) => /* @__PURE__ */
|
|
8366
|
+
}) => /* @__PURE__ */ jsx213(
|
|
8345
8367
|
StyledColorSchemeWrapper,
|
|
8346
8368
|
{
|
|
8347
8369
|
$colorScheme: colorScheme,
|
|
@@ -8353,7 +8375,7 @@ var ColorSchemeWrapper = ({
|
|
|
8353
8375
|
ColorSchemeWrapper.displayName = "ColorSchemeWrapper_UI";
|
|
8354
8376
|
|
|
8355
8377
|
// src/components/Avatar/Avatar.tsx
|
|
8356
|
-
import { jsx as
|
|
8378
|
+
import { jsx as jsx214, jsxs as jsxs12 } from "react/jsx-runtime";
|
|
8357
8379
|
var avatarSizeMap = {
|
|
8358
8380
|
sm: 16,
|
|
8359
8381
|
md: 24,
|
|
@@ -8367,14 +8389,14 @@ var Initial = ({ initial }) => /* @__PURE__ */ jsxs12(
|
|
|
8367
8389
|
viewBox: "0 0 24 24",
|
|
8368
8390
|
xmlns: "http://www.w3.org/2000/svg",
|
|
8369
8391
|
children: [
|
|
8370
|
-
/* @__PURE__ */
|
|
8392
|
+
/* @__PURE__ */ jsx214(
|
|
8371
8393
|
"path",
|
|
8372
8394
|
{
|
|
8373
8395
|
d: "M0 13.5h24",
|
|
8374
8396
|
id: "P"
|
|
8375
8397
|
}
|
|
8376
8398
|
),
|
|
8377
|
-
/* @__PURE__ */
|
|
8399
|
+
/* @__PURE__ */ jsx214("text", { children: /* @__PURE__ */ jsx214(
|
|
8378
8400
|
"textPath",
|
|
8379
8401
|
{
|
|
8380
8402
|
dominantBaseline: "middle",
|
|
@@ -8471,8 +8493,8 @@ var Avatar = ({
|
|
|
8471
8493
|
$heightAndWidth: avatarSize,
|
|
8472
8494
|
...props,
|
|
8473
8495
|
children: [
|
|
8474
|
-
/* @__PURE__ */
|
|
8475
|
-
isNotNil8(imageUrl) && imageLoadState !== "error" && /* @__PURE__ */
|
|
8496
|
+
/* @__PURE__ */ jsx214(Initial, { initial: formatNameForDisplay(name) }),
|
|
8497
|
+
isNotNil8(imageUrl) && imageLoadState !== "error" && /* @__PURE__ */ jsx214(
|
|
8476
8498
|
Image,
|
|
8477
8499
|
{
|
|
8478
8500
|
alt: isNotNil8(name) ? name : "",
|
|
@@ -8493,7 +8515,7 @@ Avatar.displayName = "Avatar_UI";
|
|
|
8493
8515
|
import { forwardRef as forwardRef4 } from "react";
|
|
8494
8516
|
import { styled as styled11 } from "styled-components";
|
|
8495
8517
|
import { isNotNil as isNotNil9 } from "@wistia/type-guards";
|
|
8496
|
-
import { jsx as
|
|
8518
|
+
import { jsx as jsx215, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
8497
8519
|
var StyledBadge = styled11.div`
|
|
8498
8520
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
8499
8521
|
align-items: center;
|
|
@@ -8533,7 +8555,7 @@ var Badge = forwardRef4(
|
|
|
8533
8555
|
$variant: variant,
|
|
8534
8556
|
children: [
|
|
8535
8557
|
hasIcon ? icon : null,
|
|
8536
|
-
isNotNil9(label) ? /* @__PURE__ */
|
|
8558
|
+
isNotNil9(label) ? /* @__PURE__ */ jsx215("span", { children: label }) : null
|
|
8537
8559
|
]
|
|
8538
8560
|
}
|
|
8539
8561
|
);
|
|
@@ -8557,7 +8579,7 @@ var makePolymorphic = (component) => {
|
|
|
8557
8579
|
};
|
|
8558
8580
|
|
|
8559
8581
|
// src/components/Box/Box.tsx
|
|
8560
|
-
import { jsx as
|
|
8582
|
+
import { jsx as jsx216 } from "react/jsx-runtime";
|
|
8561
8583
|
var getGapStyle = (gap) => {
|
|
8562
8584
|
if (isNotNil10(gap)) {
|
|
8563
8585
|
if (isRecord3(gap)) {
|
|
@@ -8600,7 +8622,9 @@ var getFillViewportStyle = (fillViewport) => {
|
|
|
8600
8622
|
return void 0;
|
|
8601
8623
|
};
|
|
8602
8624
|
var getFlexStyle = (flexMode) => {
|
|
8603
|
-
if (!flexMode)
|
|
8625
|
+
if (!flexMode) {
|
|
8626
|
+
return null;
|
|
8627
|
+
}
|
|
8604
8628
|
switch (flexMode) {
|
|
8605
8629
|
// grows to fill space, won't shrink, starts at 0
|
|
8606
8630
|
case "grow":
|
|
@@ -8712,7 +8736,7 @@ var BoxComponent = forwardRef5(
|
|
|
8712
8736
|
);
|
|
8713
8737
|
}
|
|
8714
8738
|
}
|
|
8715
|
-
return /* @__PURE__ */
|
|
8739
|
+
return /* @__PURE__ */ jsx216(
|
|
8716
8740
|
StyledBoxComponent,
|
|
8717
8741
|
{
|
|
8718
8742
|
ref,
|
|
@@ -8779,7 +8803,7 @@ var applyMaxCharsToChildren = (children, maxChars) => {
|
|
|
8779
8803
|
};
|
|
8780
8804
|
|
|
8781
8805
|
// src/components/Heading/Heading.tsx
|
|
8782
|
-
import { jsx as
|
|
8806
|
+
import { jsx as jsx217 } from "react/jsx-runtime";
|
|
8783
8807
|
var heroStyle = css21`
|
|
8784
8808
|
--font-family: var(--wui-typography-heading-hero-family);
|
|
8785
8809
|
--font-size: var(--wui-typography-heading-hero-size);
|
|
@@ -8900,7 +8924,7 @@ var HeadingComponent = forwardRef6(
|
|
|
8900
8924
|
...props
|
|
8901
8925
|
}, ref) => {
|
|
8902
8926
|
const processedChildren = applyMaxCharsToChildren(children, maxChars);
|
|
8903
|
-
return /* @__PURE__ */
|
|
8927
|
+
return /* @__PURE__ */ jsx217(
|
|
8904
8928
|
StyledHeading,
|
|
8905
8929
|
{
|
|
8906
8930
|
ref,
|
|
@@ -8926,7 +8950,7 @@ var Heading = makePolymorphic(HeadingComponent);
|
|
|
8926
8950
|
import { forwardRef as forwardRef7 } from "react";
|
|
8927
8951
|
import { styled as styled14, css as css22 } from "styled-components";
|
|
8928
8952
|
import { isNotNil as isNotNil12 } from "@wistia/type-guards";
|
|
8929
|
-
import { jsx as
|
|
8953
|
+
import { jsx as jsx218 } from "react/jsx-runtime";
|
|
8930
8954
|
var sharedBodyStyle = css22`
|
|
8931
8955
|
> strong,
|
|
8932
8956
|
b {
|
|
@@ -9123,7 +9147,7 @@ var TextComponent = forwardRef7(
|
|
|
9123
9147
|
...props
|
|
9124
9148
|
}, ref) => {
|
|
9125
9149
|
const processedChildren = applyMaxCharsToChildren(children, maxChars);
|
|
9126
|
-
return /* @__PURE__ */
|
|
9150
|
+
return /* @__PURE__ */ jsx218(
|
|
9127
9151
|
StyledText,
|
|
9128
9152
|
{
|
|
9129
9153
|
ref,
|
|
@@ -9148,7 +9172,7 @@ var Text = makePolymorphic(TextComponent);
|
|
|
9148
9172
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
9149
9173
|
import { styled as styled15, css as css23 } from "styled-components";
|
|
9150
9174
|
import { isNil as isNil10 } from "@wistia/type-guards";
|
|
9151
|
-
import { jsx as
|
|
9175
|
+
import { jsx as jsx219 } from "react/jsx-runtime";
|
|
9152
9176
|
var getAlignment = (align) => {
|
|
9153
9177
|
if (align === "center") {
|
|
9154
9178
|
return "center";
|
|
@@ -9210,7 +9234,7 @@ var ButtonGroup = ({
|
|
|
9210
9234
|
if (isNil10(children)) {
|
|
9211
9235
|
return null;
|
|
9212
9236
|
}
|
|
9213
|
-
return /* @__PURE__ */
|
|
9237
|
+
return /* @__PURE__ */ jsx219(
|
|
9214
9238
|
ButtonGroupComponent,
|
|
9215
9239
|
{
|
|
9216
9240
|
$align: align,
|
|
@@ -9227,7 +9251,7 @@ ButtonGroup.displayName = "ButtonGroup_UI";
|
|
|
9227
9251
|
// src/components/IconButton/IconButton.tsx
|
|
9228
9252
|
import { Children, cloneElement as cloneElement2, forwardRef as forwardRef8 } from "react";
|
|
9229
9253
|
import { styled as styled16 } from "styled-components";
|
|
9230
|
-
import { jsx as
|
|
9254
|
+
import { jsx as jsx220 } from "react/jsx-runtime";
|
|
9231
9255
|
var StyledButton2 = styled16(Button)`
|
|
9232
9256
|
--icon-button-size-sm: 24px;
|
|
9233
9257
|
--icon-button-size-md: 32px;
|
|
@@ -9245,7 +9269,7 @@ var StyledButton2 = styled16(Button)`
|
|
|
9245
9269
|
var IconButton = forwardRef8(
|
|
9246
9270
|
({ children, label, size = "md", ...props }, ref) => {
|
|
9247
9271
|
const responsiveSize = useResponsiveProp(size);
|
|
9248
|
-
return /* @__PURE__ */
|
|
9272
|
+
return /* @__PURE__ */ jsx220(
|
|
9249
9273
|
StyledButton2,
|
|
9250
9274
|
{
|
|
9251
9275
|
...props,
|
|
@@ -9263,7 +9287,7 @@ var IconButton = forwardRef8(
|
|
|
9263
9287
|
IconButton.displayName = "IconButton_UI";
|
|
9264
9288
|
|
|
9265
9289
|
// src/components/Banner/Banner.tsx
|
|
9266
|
-
import { Fragment as Fragment3, jsx as
|
|
9290
|
+
import { Fragment as Fragment3, jsx as jsx221, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
9267
9291
|
var BREAKPOINT_WIDTH = 600;
|
|
9268
9292
|
var VERTICAL_BREAKPOINT_WIDTH = 284;
|
|
9269
9293
|
var MIN_IMAGE_WIDTH = 400;
|
|
@@ -9327,13 +9351,19 @@ var Banner = ({
|
|
|
9327
9351
|
const hasImage = isNotNil13(image);
|
|
9328
9352
|
const shouldShowImage = hasImage && (isVerticalLayout || width >= MIN_IMAGE_WIDTH);
|
|
9329
9353
|
const iconPosition = useMemo5(() => {
|
|
9330
|
-
if (isNil11(icon))
|
|
9331
|
-
|
|
9354
|
+
if (isNil11(icon)) {
|
|
9355
|
+
return "none";
|
|
9356
|
+
}
|
|
9357
|
+
if (isSmallContainer) {
|
|
9358
|
+
return shouldShowImage ? "inline" : "above";
|
|
9359
|
+
}
|
|
9332
9360
|
return prominence === "secondary" ? "inline" : "above";
|
|
9333
9361
|
}, [icon, isSmallContainer, shouldShowImage, prominence]);
|
|
9334
9362
|
const hasActions = isNotNil13(primaryAction) || isNotNil13(secondaryAction);
|
|
9335
9363
|
const contentDirection = useMemo5(() => {
|
|
9336
|
-
if (orientation === "horizontal" && !hasActions)
|
|
9364
|
+
if (orientation === "horizontal" && !hasActions) {
|
|
9365
|
+
return "row";
|
|
9366
|
+
}
|
|
9337
9367
|
return !shouldShowImage && prominence === "primary" && !isSmallContainer && !isVerticalLayout ? "row" : "column";
|
|
9338
9368
|
}, [orientation, shouldShowImage, prominence, isSmallContainer, isVerticalLayout, hasActions]);
|
|
9339
9369
|
const headingVariant = isSmallContainer || prominence === "primary" ? "heading5" : "heading3";
|
|
@@ -9361,7 +9391,7 @@ var Banner = ({
|
|
|
9361
9391
|
gap: "space-04",
|
|
9362
9392
|
style: { padding: "var(--wui-banner-padding)" },
|
|
9363
9393
|
children: [
|
|
9364
|
-
iconPosition === "above" && /* @__PURE__ */
|
|
9394
|
+
iconPosition === "above" && /* @__PURE__ */ jsx221(
|
|
9365
9395
|
Box,
|
|
9366
9396
|
{
|
|
9367
9397
|
alignSelf: "stretch",
|
|
@@ -9385,7 +9415,7 @@ var Banner = ({
|
|
|
9385
9415
|
] }),
|
|
9386
9416
|
headingText
|
|
9387
9417
|
] }) : null,
|
|
9388
|
-
/* @__PURE__ */
|
|
9418
|
+
/* @__PURE__ */ jsx221(Text, { variant: textVariant, children: bodyText })
|
|
9389
9419
|
]
|
|
9390
9420
|
}
|
|
9391
9421
|
),
|
|
@@ -9404,7 +9434,7 @@ var Banner = ({
|
|
|
9404
9434
|
]
|
|
9405
9435
|
}
|
|
9406
9436
|
),
|
|
9407
|
-
isNotNil13(onClose) && /* @__PURE__ */
|
|
9437
|
+
isNotNil13(onClose) && /* @__PURE__ */ jsx221(
|
|
9408
9438
|
IconButton,
|
|
9409
9439
|
{
|
|
9410
9440
|
label: "Close",
|
|
@@ -9416,7 +9446,7 @@ var Banner = ({
|
|
|
9416
9446
|
right: "var(--wui-space-01)"
|
|
9417
9447
|
},
|
|
9418
9448
|
variant: "soft",
|
|
9419
|
-
children: /* @__PURE__ */
|
|
9449
|
+
children: /* @__PURE__ */ jsx221(Icon, { type: "close" })
|
|
9420
9450
|
}
|
|
9421
9451
|
)
|
|
9422
9452
|
]
|
|
@@ -9427,7 +9457,7 @@ Banner.displayName = "Banner_UI";
|
|
|
9427
9457
|
|
|
9428
9458
|
// src/components/Banner/BannerImage.tsx
|
|
9429
9459
|
import { styled as styled18 } from "styled-components";
|
|
9430
|
-
import { jsx as
|
|
9460
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
9431
9461
|
var StyledBannerImageContainer = styled18.div`
|
|
9432
9462
|
--wui-banner-image-border-radius: var(--wui-border-radius-02);
|
|
9433
9463
|
--wui-banner-image-height: auto;
|
|
@@ -9486,12 +9516,12 @@ var StyledBannerImageContainer = styled18.div`
|
|
|
9486
9516
|
}
|
|
9487
9517
|
`;
|
|
9488
9518
|
var BannerImage = ({ alignment = "left", alt, src, ...props }) => {
|
|
9489
|
-
return /* @__PURE__ */
|
|
9519
|
+
return /* @__PURE__ */ jsx222(
|
|
9490
9520
|
StyledBannerImageContainer,
|
|
9491
9521
|
{
|
|
9492
9522
|
"data-wui-banner-image": alignment,
|
|
9493
9523
|
...props,
|
|
9494
|
-
children: /* @__PURE__ */
|
|
9524
|
+
children: /* @__PURE__ */ jsx222(
|
|
9495
9525
|
Image,
|
|
9496
9526
|
{
|
|
9497
9527
|
alt: alt ?? "",
|
|
@@ -9507,7 +9537,7 @@ var BannerImage = ({ alignment = "left", alt, src, ...props }) => {
|
|
|
9507
9537
|
// src/components/Breadcrumbs/Breadcrumbs.tsx
|
|
9508
9538
|
import { Children as Children2 } from "react";
|
|
9509
9539
|
import { styled as styled19 } from "styled-components";
|
|
9510
|
-
import { Fragment as Fragment4, jsx as
|
|
9540
|
+
import { Fragment as Fragment4, jsx as jsx223, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
9511
9541
|
var StyledBreadcrumbs = styled19.nav`
|
|
9512
9542
|
display: flex;
|
|
9513
9543
|
align-items: center;
|
|
@@ -9527,7 +9557,7 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
9527
9557
|
}
|
|
9528
9558
|
const crumbMaxWidth = Math.floor(100 / crumbs.length) - BUFFER_WIDTH;
|
|
9529
9559
|
return /* @__PURE__ */ jsxs15(Fragment4, { children: [
|
|
9530
|
-
/* @__PURE__ */
|
|
9560
|
+
/* @__PURE__ */ jsx223("style", { type: "text/css", children: `
|
|
9531
9561
|
[data-wui-breadcrumbs] {
|
|
9532
9562
|
container-type: inline-size;
|
|
9533
9563
|
container-name: breadcrumbs;
|
|
@@ -9539,7 +9569,7 @@ var Breadcrumbs = ({ children, ...props }) => {
|
|
|
9539
9569
|
}
|
|
9540
9570
|
}
|
|
9541
9571
|
` }),
|
|
9542
|
-
/* @__PURE__ */
|
|
9572
|
+
/* @__PURE__ */ jsx223(
|
|
9543
9573
|
StyledBreadcrumbs,
|
|
9544
9574
|
{
|
|
9545
9575
|
"aria-label": "Breadcrumbs",
|
|
@@ -9554,7 +9584,7 @@ Breadcrumbs.displayName = "Breadcrumbs_UI";
|
|
|
9554
9584
|
|
|
9555
9585
|
// src/components/Breadcrumbs/Breadcrumb.tsx
|
|
9556
9586
|
import { styled as styled20 } from "styled-components";
|
|
9557
|
-
import { Fragment as Fragment5, jsx as
|
|
9587
|
+
import { Fragment as Fragment5, jsx as jsx224, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
9558
9588
|
var BreadcrumbContent = styled20.span`
|
|
9559
9589
|
overflow: hidden;
|
|
9560
9590
|
white-space: nowrap;
|
|
@@ -9565,17 +9595,17 @@ var BreadcrumbContent = styled20.span`
|
|
|
9565
9595
|
`;
|
|
9566
9596
|
var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
9567
9597
|
return /* @__PURE__ */ jsxs16(Fragment5, { children: [
|
|
9568
|
-
/* @__PURE__ */
|
|
9598
|
+
/* @__PURE__ */ jsx224(
|
|
9569
9599
|
Button,
|
|
9570
9600
|
{
|
|
9571
9601
|
...props,
|
|
9572
9602
|
href,
|
|
9573
9603
|
leftIcon: icon,
|
|
9574
9604
|
variant: "ghost",
|
|
9575
|
-
children: /* @__PURE__ */
|
|
9605
|
+
children: /* @__PURE__ */ jsx224(BreadcrumbContent, { "data-wui-breadcrumb": true, children })
|
|
9576
9606
|
}
|
|
9577
9607
|
),
|
|
9578
|
-
/* @__PURE__ */
|
|
9608
|
+
/* @__PURE__ */ jsx224("div", { "data-wui-breadcrumb-divider": true, children: /* @__PURE__ */ jsx224(
|
|
9579
9609
|
Icon,
|
|
9580
9610
|
{
|
|
9581
9611
|
size: "sm",
|
|
@@ -9588,7 +9618,7 @@ var Breadcrumb = ({ icon, href, children, ...props }) => {
|
|
|
9588
9618
|
|
|
9589
9619
|
// src/components/Card/Card.tsx
|
|
9590
9620
|
import { styled as styled21 } from "styled-components";
|
|
9591
|
-
import { jsx as
|
|
9621
|
+
import { jsx as jsx225 } from "react/jsx-runtime";
|
|
9592
9622
|
var StyledCard = styled21(Box)`
|
|
9593
9623
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
9594
9624
|
box-sizing: border-box;
|
|
@@ -9627,7 +9657,7 @@ var Card = ({
|
|
|
9627
9657
|
prominence = "secondary",
|
|
9628
9658
|
width,
|
|
9629
9659
|
...props
|
|
9630
|
-
}) => /* @__PURE__ */
|
|
9660
|
+
}) => /* @__PURE__ */ jsx225(
|
|
9631
9661
|
StyledCard,
|
|
9632
9662
|
{
|
|
9633
9663
|
$backgroundColor: prominenceMap[prominence].backgroundColor,
|
|
@@ -9648,7 +9678,7 @@ Card.displayName = "Card_UI";
|
|
|
9648
9678
|
// src/components/Center/Center.tsx
|
|
9649
9679
|
import { forwardRef as forwardRef9 } from "react";
|
|
9650
9680
|
import { styled as styled22 } from "styled-components";
|
|
9651
|
-
import { jsx as
|
|
9681
|
+
import { jsx as jsx226 } from "react/jsx-runtime";
|
|
9652
9682
|
var StyledCenter = styled22.div`
|
|
9653
9683
|
box-sizing: border-box;
|
|
9654
9684
|
margin-left: auto;
|
|
@@ -9662,7 +9692,7 @@ var StyledCenter = styled22.div`
|
|
|
9662
9692
|
`}
|
|
9663
9693
|
`;
|
|
9664
9694
|
var Center = forwardRef9(
|
|
9665
|
-
({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */
|
|
9695
|
+
({ maxWidth = "100%", gutterWidth = "space-00", intrinsic = false, children, ...props }, ref) => /* @__PURE__ */ jsx226(
|
|
9666
9696
|
StyledCenter,
|
|
9667
9697
|
{
|
|
9668
9698
|
ref,
|
|
@@ -9688,7 +9718,7 @@ import { styled as styled25, css as css25 } from "styled-components";
|
|
|
9688
9718
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
9689
9719
|
import { styled as styled23 } from "styled-components";
|
|
9690
9720
|
import { isNotNil as isNotNil14 } from "@wistia/type-guards";
|
|
9691
|
-
import { jsx as
|
|
9721
|
+
import { jsx as jsx227 } from "react/jsx-runtime";
|
|
9692
9722
|
var VisuallyHidden = styled23.div({ ...visuallyHiddenStyle });
|
|
9693
9723
|
var VisuallyHiddenButFocusable = styled23.div({
|
|
9694
9724
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
@@ -9701,16 +9731,16 @@ var ScreenReaderOnly = ({
|
|
|
9701
9731
|
}) => {
|
|
9702
9732
|
const accessibleText = isNotNil14(text) ? text : children;
|
|
9703
9733
|
if (focusable) {
|
|
9704
|
-
return /* @__PURE__ */
|
|
9734
|
+
return /* @__PURE__ */ jsx227(VisuallyHiddenButFocusable, { ...props, children: accessibleText });
|
|
9705
9735
|
}
|
|
9706
|
-
return /* @__PURE__ */
|
|
9736
|
+
return /* @__PURE__ */ jsx227(VisuallyHidden, { ...props, children: accessibleText });
|
|
9707
9737
|
};
|
|
9708
9738
|
ScreenReaderOnly.displayName = "ScreenReaderOnly_UI";
|
|
9709
9739
|
|
|
9710
9740
|
// src/private/components/FormControlLabel/FormControlLabelDescription.tsx
|
|
9711
9741
|
import { styled as styled24, css as css24 } from "styled-components";
|
|
9712
9742
|
import { isNil as isNil12 } from "@wistia/type-guards";
|
|
9713
|
-
import { jsx as
|
|
9743
|
+
import { jsx as jsx228 } from "react/jsx-runtime";
|
|
9714
9744
|
var disabledStyle = css24`
|
|
9715
9745
|
color: var(--wui-color-text-disabled);
|
|
9716
9746
|
`;
|
|
@@ -9731,7 +9761,7 @@ var FormControlLabelDescription = ({
|
|
|
9731
9761
|
if (isNil12(children)) {
|
|
9732
9762
|
return null;
|
|
9733
9763
|
}
|
|
9734
|
-
return /* @__PURE__ */
|
|
9764
|
+
return /* @__PURE__ */ jsx228(
|
|
9735
9765
|
StyledFormControlLabelDescription,
|
|
9736
9766
|
{
|
|
9737
9767
|
...props,
|
|
@@ -9743,7 +9773,7 @@ var FormControlLabelDescription = ({
|
|
|
9743
9773
|
FormControlLabelDescription.displayName = "FormControlLabelDescription";
|
|
9744
9774
|
|
|
9745
9775
|
// src/private/components/FormControlLabel/FormControlLabel.tsx
|
|
9746
|
-
import { jsx as
|
|
9776
|
+
import { jsx as jsx229, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
9747
9777
|
var disabledStyle2 = css25`
|
|
9748
9778
|
cursor: not-allowed;
|
|
9749
9779
|
color: var(--wui-color-text-disabled);
|
|
@@ -9779,9 +9809,9 @@ var FormControlLabel = ({
|
|
|
9779
9809
|
if (isNil13(label)) {
|
|
9780
9810
|
return null;
|
|
9781
9811
|
}
|
|
9782
|
-
const labelContent = hideLabel ? /* @__PURE__ */
|
|
9812
|
+
const labelContent = hideLabel ? /* @__PURE__ */ jsx229(ScreenReaderOnly, { children: label }) : /* @__PURE__ */ jsxs17(StyledLabelWrapper, { children: [
|
|
9783
9813
|
label,
|
|
9784
|
-
/* @__PURE__ */
|
|
9814
|
+
/* @__PURE__ */ jsx229(FormControlLabelDescription, { children: description })
|
|
9785
9815
|
] });
|
|
9786
9816
|
const slot = isNotNil15(controlSlot) ? controlSlot : null;
|
|
9787
9817
|
return /* @__PURE__ */ jsxs17(
|
|
@@ -9812,7 +9842,7 @@ import { isNonEmptyString as isNonEmptyString2, isNotNil as isNotNil16 } from "@
|
|
|
9812
9842
|
// src/components/Stack/Stack.tsx
|
|
9813
9843
|
import { forwardRef as forwardRef10 } from "react";
|
|
9814
9844
|
import { styled as styled26 } from "styled-components";
|
|
9815
|
-
import { jsx as
|
|
9845
|
+
import { jsx as jsx230 } from "react/jsx-runtime";
|
|
9816
9846
|
var DEFAULT_ELEMENT4 = "div";
|
|
9817
9847
|
var StyledStack = styled26.div`
|
|
9818
9848
|
display: flex;
|
|
@@ -9825,7 +9855,7 @@ var StackComponent = forwardRef10(
|
|
|
9825
9855
|
const responsiveGap = useResponsiveProp(gap);
|
|
9826
9856
|
const responsiveDirection = useResponsiveProp(direction);
|
|
9827
9857
|
const responsiveAlignItems = useResponsiveProp(alignItems);
|
|
9828
|
-
return /* @__PURE__ */
|
|
9858
|
+
return /* @__PURE__ */ jsx230(
|
|
9829
9859
|
StyledStack,
|
|
9830
9860
|
{
|
|
9831
9861
|
ref,
|
|
@@ -9842,7 +9872,7 @@ StackComponent.displayName = "Stack_UI";
|
|
|
9842
9872
|
var Stack = makePolymorphic(StackComponent);
|
|
9843
9873
|
|
|
9844
9874
|
// src/components/FormGroup/FormGroup.tsx
|
|
9845
|
-
import { jsx as
|
|
9875
|
+
import { jsx as jsx231, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
9846
9876
|
var StyledFieldset = styled27.fieldset`
|
|
9847
9877
|
padding: 0;
|
|
9848
9878
|
margin: 0;
|
|
@@ -9878,7 +9908,7 @@ var FormGroup = ({
|
|
|
9878
9908
|
variant: "heading5",
|
|
9879
9909
|
children: [
|
|
9880
9910
|
hasLabel ? label : null,
|
|
9881
|
-
hasDescription ? /* @__PURE__ */
|
|
9911
|
+
hasDescription ? /* @__PURE__ */ jsx231(
|
|
9882
9912
|
Text,
|
|
9883
9913
|
{
|
|
9884
9914
|
"data-wui-form-group-description": true,
|
|
@@ -9919,7 +9949,7 @@ var serializeFormData = (formData) => {
|
|
|
9919
9949
|
};
|
|
9920
9950
|
|
|
9921
9951
|
// src/components/Form/Form.tsx
|
|
9922
|
-
import { jsx as
|
|
9952
|
+
import { jsx as jsx232 } from "react/jsx-runtime";
|
|
9923
9953
|
var StyledForm = styled28.form`
|
|
9924
9954
|
--form-default-width: 690px;
|
|
9925
9955
|
|
|
@@ -9999,7 +10029,7 @@ var Form = forwardRef11(
|
|
|
9999
10029
|
}, [labelPosition, values, errors, id, hasSubmitted]);
|
|
10000
10030
|
return (
|
|
10001
10031
|
// @ts-expect-error - generic context providers are a giant pain
|
|
10002
|
-
/* @__PURE__ */
|
|
10032
|
+
/* @__PURE__ */ jsx232(FormContext.Provider, { value: context, children: /* @__PURE__ */ jsx232(
|
|
10003
10033
|
Stack,
|
|
10004
10034
|
{
|
|
10005
10035
|
...props,
|
|
@@ -10020,7 +10050,7 @@ var Form = forwardRef11(
|
|
|
10020
10050
|
);
|
|
10021
10051
|
|
|
10022
10052
|
// src/components/FormGroup/CheckboxGroup.tsx
|
|
10023
|
-
import { jsx as
|
|
10053
|
+
import { jsx as jsx233 } from "react/jsx-runtime";
|
|
10024
10054
|
var CheckboxGroupContext = createContext4(null);
|
|
10025
10055
|
var useCheckboxGroup = () => {
|
|
10026
10056
|
return useContext3(CheckboxGroupContext);
|
|
@@ -10041,13 +10071,13 @@ var CheckboxGroup = ({
|
|
|
10041
10071
|
value: derivedValue
|
|
10042
10072
|
};
|
|
10043
10073
|
}, [name, derivedValue, onChange]);
|
|
10044
|
-
return /* @__PURE__ */
|
|
10074
|
+
return /* @__PURE__ */ jsx233(CheckboxGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx233(FormGroup, { ...props, children }) });
|
|
10045
10075
|
};
|
|
10046
10076
|
CheckboxGroup.displayName = "CheckboxGroup_UI";
|
|
10047
10077
|
|
|
10048
10078
|
// src/components/Checkbox/Checkbox.tsx
|
|
10049
|
-
import { jsx as
|
|
10050
|
-
var CheckIcon = () => /* @__PURE__ */
|
|
10079
|
+
import { jsx as jsx234, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
10080
|
+
var CheckIcon = () => /* @__PURE__ */ jsx234(
|
|
10051
10081
|
"svg",
|
|
10052
10082
|
{
|
|
10053
10083
|
fill: "inherit",
|
|
@@ -10055,7 +10085,7 @@ var CheckIcon = () => /* @__PURE__ */ jsx233(
|
|
|
10055
10085
|
viewBox: "0 0 10 8",
|
|
10056
10086
|
width: "10",
|
|
10057
10087
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10058
|
-
children: /* @__PURE__ */
|
|
10088
|
+
children: /* @__PURE__ */ jsx234(
|
|
10059
10089
|
"path",
|
|
10060
10090
|
{
|
|
10061
10091
|
d: "M3.47281 7.19303L0.377565 4.07999C0.191609 3.89297 0.191609 3.58973 0.377565 3.40268L1.05098 2.72537C1.23694 2.53833 1.53847 2.53833 1.72442 2.72537L3.80953 4.82245L8.27558 0.330729C8.46154 0.143704 8.76306 0.143704 8.94902 0.330729L9.62244 1.00804C9.8084 1.19506 9.8084 1.49831 9.62244 1.68535L4.14624 7.19305C3.96027 7.38008 3.65876 7.38008 3.47281 7.19303Z",
|
|
@@ -10077,8 +10107,12 @@ var sizeLarge = css26`
|
|
|
10077
10107
|
--wui-checkbox-icon-size: 11px;
|
|
10078
10108
|
`;
|
|
10079
10109
|
var getSizeCss = (size) => {
|
|
10080
|
-
if (size === "sm")
|
|
10081
|
-
|
|
10110
|
+
if (size === "sm") {
|
|
10111
|
+
return sizeSmall;
|
|
10112
|
+
}
|
|
10113
|
+
if (size === "lg") {
|
|
10114
|
+
return sizeLarge;
|
|
10115
|
+
}
|
|
10082
10116
|
return sizeMedium;
|
|
10083
10117
|
};
|
|
10084
10118
|
var StyledCheckboxWrapper = styled29.div`
|
|
@@ -10179,7 +10213,7 @@ var Checkbox = forwardRef12(
|
|
|
10179
10213
|
$hideLabel: hideLabel,
|
|
10180
10214
|
disabled,
|
|
10181
10215
|
children: [
|
|
10182
|
-
/* @__PURE__ */
|
|
10216
|
+
/* @__PURE__ */ jsx234(
|
|
10183
10217
|
StyledHiddenCheckboxInput,
|
|
10184
10218
|
{
|
|
10185
10219
|
...props,
|
|
@@ -10194,16 +10228,16 @@ var Checkbox = forwardRef12(
|
|
|
10194
10228
|
value
|
|
10195
10229
|
}
|
|
10196
10230
|
),
|
|
10197
|
-
/* @__PURE__ */
|
|
10231
|
+
/* @__PURE__ */ jsx234(
|
|
10198
10232
|
FormControlLabel,
|
|
10199
10233
|
{
|
|
10200
|
-
controlSlot: /* @__PURE__ */
|
|
10234
|
+
controlSlot: /* @__PURE__ */ jsx234(
|
|
10201
10235
|
StyledCheckboxInput,
|
|
10202
10236
|
{
|
|
10203
10237
|
$disabled: disabled,
|
|
10204
10238
|
$size: size,
|
|
10205
10239
|
"data-wui-faux-input": "true",
|
|
10206
|
-
children: /* @__PURE__ */
|
|
10240
|
+
children: /* @__PURE__ */ jsx234(CheckIcon, {})
|
|
10207
10241
|
}
|
|
10208
10242
|
),
|
|
10209
10243
|
description,
|
|
@@ -10223,7 +10257,9 @@ Checkbox.displayName = "Checkbox_UI";
|
|
|
10223
10257
|
// src/components/ClickRegion/ClickRegion.tsx
|
|
10224
10258
|
import { Children as Children3, cloneElement as cloneElement3, useCallback as useCallback8, useEffect as useEffect9 } from "react";
|
|
10225
10259
|
var isClickableElement = (element) => {
|
|
10226
|
-
if (!element)
|
|
10260
|
+
if (!element) {
|
|
10261
|
+
return false;
|
|
10262
|
+
}
|
|
10227
10263
|
const el = element;
|
|
10228
10264
|
return el.closest("button") !== null || el.closest("a") !== null || el.closest("input") !== null || el.closest("select") !== null || el.closest("textarea") !== null || el.closest("label") !== null || el.closest("[data-wui-faux-input]") !== null;
|
|
10229
10265
|
};
|
|
@@ -10267,7 +10303,7 @@ ClickRegion.displayName = "ClickRegion_UI";
|
|
|
10267
10303
|
import { Root as CollapsibleRoot } from "@radix-ui/react-collapsible";
|
|
10268
10304
|
import { isNotNil as isNotNil17 } from "@wistia/type-guards";
|
|
10269
10305
|
import { styled as styled30 } from "styled-components";
|
|
10270
|
-
import { jsx as
|
|
10306
|
+
import { jsx as jsx235 } from "react/jsx-runtime";
|
|
10271
10307
|
var StyledRoot = styled30(CollapsibleRoot)`
|
|
10272
10308
|
&[data-state='closed'] [data-wui-collapsible-content] {
|
|
10273
10309
|
display: -webkit-box;
|
|
@@ -10284,7 +10320,7 @@ var Collapsible = ({
|
|
|
10284
10320
|
const controlProps = {
|
|
10285
10321
|
...isNotNil17(onOpenChange) && isNotNil17(isOpen) ? { open: isOpen, onOpenChange } : {}
|
|
10286
10322
|
};
|
|
10287
|
-
return /* @__PURE__ */
|
|
10323
|
+
return /* @__PURE__ */ jsx235(StyledRoot, { ...controlProps, children });
|
|
10288
10324
|
};
|
|
10289
10325
|
Collapsible.displayName = "Collapsible_UI";
|
|
10290
10326
|
|
|
@@ -10292,7 +10328,7 @@ Collapsible.displayName = "Collapsible_UI";
|
|
|
10292
10328
|
import { Children as Children4 } from "react";
|
|
10293
10329
|
import { Trigger } from "@radix-ui/react-collapsible";
|
|
10294
10330
|
import { styled as styled31 } from "styled-components";
|
|
10295
|
-
import { jsx as
|
|
10331
|
+
import { jsx as jsx236 } from "react/jsx-runtime";
|
|
10296
10332
|
var StyledTrigger = styled31(Trigger)`
|
|
10297
10333
|
[data-wui-collapsible-icon] {
|
|
10298
10334
|
transition: transform var(--wui-motion-duration-03) ease-in-out;
|
|
@@ -10316,11 +10352,11 @@ var StyledTrigger = styled31(Trigger)`
|
|
|
10316
10352
|
`;
|
|
10317
10353
|
var CollapsibleTrigger = ({ children }) => {
|
|
10318
10354
|
Children4.only(children);
|
|
10319
|
-
return /* @__PURE__ */
|
|
10355
|
+
return /* @__PURE__ */ jsx236(StyledTrigger, { asChild: true, children });
|
|
10320
10356
|
};
|
|
10321
10357
|
|
|
10322
10358
|
// src/components/Collapsible/CollapsibleTriggerIcon.tsx
|
|
10323
|
-
import { jsx as
|
|
10359
|
+
import { jsx as jsx237 } from "react/jsx-runtime";
|
|
10324
10360
|
var iconRotationMap = {
|
|
10325
10361
|
"caret-left-strong": "-90",
|
|
10326
10362
|
"caret-left": "-90",
|
|
@@ -10329,7 +10365,7 @@ var iconRotationMap = {
|
|
|
10329
10365
|
plus: "45"
|
|
10330
10366
|
};
|
|
10331
10367
|
var CollapsibleTriggerIcon = ({ type, ...props }) => {
|
|
10332
|
-
return /* @__PURE__ */
|
|
10368
|
+
return /* @__PURE__ */ jsx237(
|
|
10333
10369
|
Icon,
|
|
10334
10370
|
{
|
|
10335
10371
|
...props,
|
|
@@ -10345,13 +10381,13 @@ CollapsibleTriggerIcon.displayName = "CollapsibleTriggerIcon_UI";
|
|
|
10345
10381
|
import { styled as styled32 } from "styled-components";
|
|
10346
10382
|
import { Content } from "@radix-ui/react-collapsible";
|
|
10347
10383
|
import { isNotUndefined as isNotUndefined8 } from "@wistia/type-guards";
|
|
10348
|
-
import { Fragment as Fragment6, jsx as
|
|
10384
|
+
import { Fragment as Fragment6, jsx as jsx238, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
10349
10385
|
var ClampedContent = styled32.div`
|
|
10350
10386
|
--wui-collapsible-content-clamp-lines: ${({ $clamp }) => $clamp};
|
|
10351
10387
|
`;
|
|
10352
10388
|
var CollapsibleContent = ({ clamp, children }) => {
|
|
10353
10389
|
if (isNotUndefined8(clamp)) {
|
|
10354
|
-
return /* @__PURE__ */
|
|
10390
|
+
return /* @__PURE__ */ jsx238(
|
|
10355
10391
|
ClampedContent,
|
|
10356
10392
|
{
|
|
10357
10393
|
$clamp: clamp,
|
|
@@ -10360,7 +10396,7 @@ var CollapsibleContent = ({ clamp, children }) => {
|
|
|
10360
10396
|
}
|
|
10361
10397
|
);
|
|
10362
10398
|
}
|
|
10363
|
-
return /* @__PURE__ */
|
|
10399
|
+
return /* @__PURE__ */ jsx238(Content, { children: /* @__PURE__ */ jsxs20(Fragment6, { children: [
|
|
10364
10400
|
children,
|
|
10365
10401
|
" "
|
|
10366
10402
|
] }) });
|
|
@@ -10761,7 +10797,7 @@ var hasAccessibleDerivatives = ({
|
|
|
10761
10797
|
};
|
|
10762
10798
|
|
|
10763
10799
|
// src/components/ColorPicker/ColorPickerContext.tsx
|
|
10764
|
-
import { jsx as
|
|
10800
|
+
import { jsx as jsx239 } from "react/jsx-runtime";
|
|
10765
10801
|
var ColorPickerContext = createContext5(null);
|
|
10766
10802
|
var ColorPickerProvider = ({
|
|
10767
10803
|
children,
|
|
@@ -10902,7 +10938,7 @@ var ColorPickerProvider = ({
|
|
|
10902
10938
|
valueAsHsv
|
|
10903
10939
|
]
|
|
10904
10940
|
);
|
|
10905
|
-
return /* @__PURE__ */
|
|
10941
|
+
return /* @__PURE__ */ jsx239(ColorPickerContext.Provider, { value: contextValue, children });
|
|
10906
10942
|
};
|
|
10907
10943
|
var useColorPickerState = () => {
|
|
10908
10944
|
const context = useContext4(ColorPickerContext);
|
|
@@ -10914,7 +10950,7 @@ var useColorPickerState = () => {
|
|
|
10914
10950
|
|
|
10915
10951
|
// src/components/Label/Label.tsx
|
|
10916
10952
|
import { styled as styled33, css as css27 } from "styled-components";
|
|
10917
|
-
import { jsx as
|
|
10953
|
+
import { jsx as jsx240 } from "react/jsx-runtime";
|
|
10918
10954
|
var requiredStyle = css27`
|
|
10919
10955
|
&::after {
|
|
10920
10956
|
color: var(--wui-color-text-error);
|
|
@@ -10958,7 +10994,7 @@ var Label = ({
|
|
|
10958
10994
|
screenReaderOnly = false,
|
|
10959
10995
|
...props
|
|
10960
10996
|
}) => {
|
|
10961
|
-
return /* @__PURE__ */
|
|
10997
|
+
return /* @__PURE__ */ jsx240(
|
|
10962
10998
|
StyledLabel2,
|
|
10963
10999
|
{
|
|
10964
11000
|
...props,
|
|
@@ -10973,7 +11009,7 @@ var Label = ({
|
|
|
10973
11009
|
Label.displayName = "Label_UI";
|
|
10974
11010
|
|
|
10975
11011
|
// src/components/ColorPicker/ColorGrid.tsx
|
|
10976
|
-
import { jsx as
|
|
11012
|
+
import { jsx as jsx241, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
10977
11013
|
var Container = styled34.div`
|
|
10978
11014
|
display: grid;
|
|
10979
11015
|
gap: var(--wui-space-01);
|
|
@@ -11000,8 +11036,8 @@ var ColorGrid = ({ children, label }) => {
|
|
|
11000
11036
|
[onChangeNonDerivedValueAsHsv]
|
|
11001
11037
|
);
|
|
11002
11038
|
return /* @__PURE__ */ jsxs21(Container, { children: [
|
|
11003
|
-
label != null && /* @__PURE__ */
|
|
11004
|
-
/* @__PURE__ */
|
|
11039
|
+
label != null && /* @__PURE__ */ jsx241(LabelContainer, { children: /* @__PURE__ */ jsx241(Label, { children: label }) }),
|
|
11040
|
+
/* @__PURE__ */ jsx241(
|
|
11005
11041
|
ItemsContainer,
|
|
11006
11042
|
{
|
|
11007
11043
|
onValueChange,
|
|
@@ -11020,7 +11056,7 @@ import { formatHex as formatHex3 } from "culori/fn";
|
|
|
11020
11056
|
|
|
11021
11057
|
// src/components/ColorPicker/ColorSwatch.tsx
|
|
11022
11058
|
import { styled as styled35 } from "styled-components";
|
|
11023
|
-
import { jsx as
|
|
11059
|
+
import { jsx as jsx242, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
11024
11060
|
var ColorSwatchDiv = styled35.div`
|
|
11025
11061
|
aspect-ratio: 1;
|
|
11026
11062
|
width: ${({ $diameterPx }) => `${$diameterPx}px`};
|
|
@@ -11068,7 +11104,7 @@ var ColorSwatch = ({
|
|
|
11068
11104
|
backgroundColor: value
|
|
11069
11105
|
},
|
|
11070
11106
|
children: [
|
|
11071
|
-
derivativeIsSelected ? /* @__PURE__ */
|
|
11107
|
+
derivativeIsSelected ? /* @__PURE__ */ jsx242(DerivativeHalfCircle, { $color: colorPickerValueAsHex }) : null,
|
|
11072
11108
|
children
|
|
11073
11109
|
]
|
|
11074
11110
|
}
|
|
@@ -11084,7 +11120,7 @@ import {
|
|
|
11084
11120
|
Arrow as TooltipArrow
|
|
11085
11121
|
} from "@radix-ui/react-tooltip";
|
|
11086
11122
|
import { styled as styled36, keyframes as keyframes2 } from "styled-components";
|
|
11087
|
-
import { jsx as
|
|
11123
|
+
import { jsx as jsx243, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
11088
11124
|
var hide = keyframes2`
|
|
11089
11125
|
from {
|
|
11090
11126
|
opacity: 1;
|
|
@@ -11202,15 +11238,15 @@ var Tooltip = ({
|
|
|
11202
11238
|
delayDuration: delay,
|
|
11203
11239
|
...rootProps,
|
|
11204
11240
|
children: [
|
|
11205
|
-
/* @__PURE__ */
|
|
11206
|
-
/* @__PURE__ */
|
|
11241
|
+
/* @__PURE__ */ jsx243(TooltipTrigger, { asChild: true, children }),
|
|
11242
|
+
/* @__PURE__ */ jsx243(TooltipPortal, { container, children: /* @__PURE__ */ jsxs23(
|
|
11207
11243
|
StyledContent,
|
|
11208
11244
|
{
|
|
11209
11245
|
side: direction,
|
|
11210
11246
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
11211
11247
|
children: [
|
|
11212
11248
|
content,
|
|
11213
|
-
!hideArrow ? /* @__PURE__ */
|
|
11249
|
+
!hideArrow ? /* @__PURE__ */ jsx243(TooltipArrow, { asChild: true, children: /* @__PURE__ */ jsx243(
|
|
11214
11250
|
"svg",
|
|
11215
11251
|
{
|
|
11216
11252
|
fill: "var(--tooltip-bg)",
|
|
@@ -11219,7 +11255,7 @@ var Tooltip = ({
|
|
|
11219
11255
|
viewBox: "0 0 12 8",
|
|
11220
11256
|
width: "12",
|
|
11221
11257
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11222
|
-
children: /* @__PURE__ */
|
|
11258
|
+
children: /* @__PURE__ */ jsx243("path", { d: "M6.8 6.93333C6.4 7.46667 5.6 7.46667 5.2 6.93333L-2.54292e-07 -1.04907e-06L12 0L6.8 6.93333Z" })
|
|
11223
11259
|
}
|
|
11224
11260
|
) }) : null
|
|
11225
11261
|
]
|
|
@@ -11232,7 +11268,7 @@ var Tooltip = ({
|
|
|
11232
11268
|
Tooltip.displayName = "Tooltip_UI";
|
|
11233
11269
|
|
|
11234
11270
|
// src/components/ColorPicker/ColorGridOption.tsx
|
|
11235
|
-
import { jsx as
|
|
11271
|
+
import { jsx as jsx244 } from "react/jsx-runtime";
|
|
11236
11272
|
var Container2 = styled37(RadioGroupItem)`
|
|
11237
11273
|
border: none;
|
|
11238
11274
|
appearance: none;
|
|
@@ -11249,11 +11285,11 @@ var ColorGridOption = ({ value: rawValue, name }) => {
|
|
|
11249
11285
|
const valueAsHex = formatHex3(valueAsHsv);
|
|
11250
11286
|
const isSelected = valueAsHex === value;
|
|
11251
11287
|
const derivativeIsSelected = !isSelected && nonDerivedValueAsHex === value;
|
|
11252
|
-
return /* @__PURE__ */
|
|
11288
|
+
return /* @__PURE__ */ jsx244(
|
|
11253
11289
|
Tooltip,
|
|
11254
11290
|
{
|
|
11255
|
-
content: name ?? /* @__PURE__ */
|
|
11256
|
-
children: /* @__PURE__ */
|
|
11291
|
+
content: name ?? /* @__PURE__ */ jsx244("span", { style: { fontFamily: "var(--wui-typography-family-mono)" }, children: value }),
|
|
11292
|
+
children: /* @__PURE__ */ jsx244(
|
|
11257
11293
|
Container2,
|
|
11258
11294
|
{
|
|
11259
11295
|
"aria-label": value,
|
|
@@ -11261,7 +11297,7 @@ var ColorGridOption = ({ value: rawValue, name }) => {
|
|
|
11261
11297
|
role: "option",
|
|
11262
11298
|
tabIndex: -1,
|
|
11263
11299
|
value,
|
|
11264
|
-
children: /* @__PURE__ */
|
|
11300
|
+
children: /* @__PURE__ */ jsx244(
|
|
11265
11301
|
ColorSwatch,
|
|
11266
11302
|
{
|
|
11267
11303
|
derivativeIsSelected,
|
|
@@ -11280,7 +11316,7 @@ ColorGridOption.displayName = "ColorGridOption_UI";
|
|
|
11280
11316
|
import { useCallback as useCallback11 } from "react";
|
|
11281
11317
|
import { styled as styled38 } from "styled-components";
|
|
11282
11318
|
import { Root as ToggleGroupRoot } from "@radix-ui/react-toggle-group";
|
|
11283
|
-
import { jsx as
|
|
11319
|
+
import { jsx as jsx245 } from "react/jsx-runtime";
|
|
11284
11320
|
var Container3 = styled38(ToggleGroupRoot)`
|
|
11285
11321
|
display: grid;
|
|
11286
11322
|
grid-template-columns: minmax(0, 1fr);
|
|
@@ -11297,7 +11333,7 @@ var ColorList = ({ children }) => {
|
|
|
11297
11333
|
},
|
|
11298
11334
|
[onChangeNonDerivedValueAsHsv]
|
|
11299
11335
|
);
|
|
11300
|
-
return /* @__PURE__ */
|
|
11336
|
+
return /* @__PURE__ */ jsx245(
|
|
11301
11337
|
Container3,
|
|
11302
11338
|
{
|
|
11303
11339
|
onValueChange,
|
|
@@ -11311,7 +11347,7 @@ ColorList.displayName = "ColorList_UI";
|
|
|
11311
11347
|
|
|
11312
11348
|
// src/components/ColorPicker/ColorListGroup.tsx
|
|
11313
11349
|
import { styled as styled39 } from "styled-components";
|
|
11314
|
-
import { jsx as
|
|
11350
|
+
import { jsx as jsx246, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
11315
11351
|
var Container4 = styled39.div`
|
|
11316
11352
|
display: grid;
|
|
11317
11353
|
gap: var(--wui-space-01);
|
|
@@ -11331,8 +11367,8 @@ var ColorListGroup = ({ label, children }) => {
|
|
|
11331
11367
|
"aria-label": label,
|
|
11332
11368
|
role: "group",
|
|
11333
11369
|
children: [
|
|
11334
|
-
/* @__PURE__ */
|
|
11335
|
-
/* @__PURE__ */
|
|
11370
|
+
/* @__PURE__ */ jsx246(LabelContainer2, { children: /* @__PURE__ */ jsx246(Label, { children: label }) }),
|
|
11371
|
+
/* @__PURE__ */ jsx246(ItemsContainer2, { children })
|
|
11336
11372
|
]
|
|
11337
11373
|
}
|
|
11338
11374
|
);
|
|
@@ -11345,7 +11381,7 @@ import { Item as ToggleGroupItem } from "@radix-ui/react-toggle-group";
|
|
|
11345
11381
|
import { formatHex as formatHex4 } from "culori/fn";
|
|
11346
11382
|
|
|
11347
11383
|
// src/components/ColorPicker/ColorNameOrHexCode.tsx
|
|
11348
|
-
import { jsx as
|
|
11384
|
+
import { jsx as jsx247, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
11349
11385
|
var ColorNameOrHexCode = ({ name, hexCode }) => {
|
|
11350
11386
|
return /* @__PURE__ */ jsxs25(
|
|
11351
11387
|
Box,
|
|
@@ -11355,7 +11391,7 @@ var ColorNameOrHexCode = ({ name, hexCode }) => {
|
|
|
11355
11391
|
grow: 1,
|
|
11356
11392
|
justifyContent: "space-between",
|
|
11357
11393
|
children: [
|
|
11358
|
-
/* @__PURE__ */
|
|
11394
|
+
/* @__PURE__ */ jsx247(
|
|
11359
11395
|
Text,
|
|
11360
11396
|
{
|
|
11361
11397
|
renderAs: "span",
|
|
@@ -11363,7 +11399,7 @@ var ColorNameOrHexCode = ({ name, hexCode }) => {
|
|
|
11363
11399
|
children: name ?? hexCode
|
|
11364
11400
|
}
|
|
11365
11401
|
),
|
|
11366
|
-
name != null && /* @__PURE__ */
|
|
11402
|
+
name != null && /* @__PURE__ */ jsx247(
|
|
11367
11403
|
Text,
|
|
11368
11404
|
{
|
|
11369
11405
|
prominence: "secondary",
|
|
@@ -11378,7 +11414,7 @@ var ColorNameOrHexCode = ({ name, hexCode }) => {
|
|
|
11378
11414
|
};
|
|
11379
11415
|
|
|
11380
11416
|
// src/components/ColorPicker/ColorListOption.tsx
|
|
11381
|
-
import { jsx as
|
|
11417
|
+
import { jsx as jsx248, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11382
11418
|
var Container5 = styled40(ToggleGroupItem)`
|
|
11383
11419
|
border: none;
|
|
11384
11420
|
appearance: none;
|
|
@@ -11416,7 +11452,7 @@ var ColorListOption = ({ value: rawValue, name }) => {
|
|
|
11416
11452
|
tabIndex: -1,
|
|
11417
11453
|
value,
|
|
11418
11454
|
children: [
|
|
11419
|
-
/* @__PURE__ */
|
|
11455
|
+
/* @__PURE__ */ jsx248(
|
|
11420
11456
|
ColorSwatch,
|
|
11421
11457
|
{
|
|
11422
11458
|
derivativeIsSelected,
|
|
@@ -11424,7 +11460,7 @@ var ColorListOption = ({ value: rawValue, name }) => {
|
|
|
11424
11460
|
value
|
|
11425
11461
|
}
|
|
11426
11462
|
),
|
|
11427
|
-
/* @__PURE__ */
|
|
11463
|
+
/* @__PURE__ */ jsx248(
|
|
11428
11464
|
ColorNameOrHexCode,
|
|
11429
11465
|
{
|
|
11430
11466
|
hexCode: value,
|
|
@@ -11439,7 +11475,7 @@ ColorListOption.displayName = "ColorListOption_UI";
|
|
|
11439
11475
|
|
|
11440
11476
|
// src/components/ColorPicker/ColorPicker.tsx
|
|
11441
11477
|
import { Root as PopoverRoot } from "@radix-ui/react-popover";
|
|
11442
|
-
import { jsx as
|
|
11478
|
+
import { jsx as jsx249 } from "react/jsx-runtime";
|
|
11443
11479
|
var ColorPicker = ({
|
|
11444
11480
|
children,
|
|
11445
11481
|
colorForComparison = DEFAULT_COLOR_FOR_COMPARISON,
|
|
@@ -11448,7 +11484,7 @@ var ColorPicker = ({
|
|
|
11448
11484
|
onValueChange,
|
|
11449
11485
|
value
|
|
11450
11486
|
}) => {
|
|
11451
|
-
return /* @__PURE__ */
|
|
11487
|
+
return /* @__PURE__ */ jsx249(PopoverRoot, { modal: false, children: /* @__PURE__ */ jsx249(
|
|
11452
11488
|
ColorPickerProvider,
|
|
11453
11489
|
{
|
|
11454
11490
|
colorForComparison,
|
|
@@ -11465,7 +11501,7 @@ ColorPicker.displayName = "ColorPicker_UI";
|
|
|
11465
11501
|
// src/components/ColorPicker/ColorPickerPopoverContent.tsx
|
|
11466
11502
|
import { Content as PopoverContent, Portal as PopoverPortal } from "@radix-ui/react-popover";
|
|
11467
11503
|
import { styled as styled41 } from "styled-components";
|
|
11468
|
-
import { jsx as
|
|
11504
|
+
import { jsx as jsx250 } from "react/jsx-runtime";
|
|
11469
11505
|
var StyledPopoverContent = styled41(PopoverContent)`
|
|
11470
11506
|
background-color: var(--wui-color-bg-surface);
|
|
11471
11507
|
border-radius: var(--wui-border-radius-02);
|
|
@@ -11481,7 +11517,7 @@ var StyledPopoverContent = styled41(PopoverContent)`
|
|
|
11481
11517
|
var ColorPickerPopoverContent = ({
|
|
11482
11518
|
children
|
|
11483
11519
|
}) => {
|
|
11484
|
-
return /* @__PURE__ */
|
|
11520
|
+
return /* @__PURE__ */ jsx250(PopoverPortal, { children: /* @__PURE__ */ jsx250(
|
|
11485
11521
|
StyledPopoverContent,
|
|
11486
11522
|
{
|
|
11487
11523
|
align: "start",
|
|
@@ -11494,12 +11530,12 @@ ColorPickerPopoverContent.displayName = "ColorPickerPopoverContent_UI";
|
|
|
11494
11530
|
|
|
11495
11531
|
// src/components/ColorPicker/ColorPickerSection.tsx
|
|
11496
11532
|
import { styled as styled42 } from "styled-components";
|
|
11497
|
-
import { jsx as
|
|
11533
|
+
import { jsx as jsx251 } from "react/jsx-runtime";
|
|
11498
11534
|
var Container6 = styled42.div`
|
|
11499
11535
|
padding: var(--wui-space-02);
|
|
11500
11536
|
`;
|
|
11501
11537
|
var ColorPickerSection = ({ children }) => {
|
|
11502
|
-
return /* @__PURE__ */
|
|
11538
|
+
return /* @__PURE__ */ jsx251(Container6, { children: /* @__PURE__ */ jsx251(Stack, { children }) });
|
|
11503
11539
|
};
|
|
11504
11540
|
ColorPickerSection.displayName = "ColorPickerSection_UI";
|
|
11505
11541
|
|
|
@@ -11509,12 +11545,12 @@ import { Trigger as PopoverTrigger } from "@radix-ui/react-popover";
|
|
|
11509
11545
|
import { styled as styled43 } from "styled-components";
|
|
11510
11546
|
|
|
11511
11547
|
// src/components/ColorPicker/ValueSwatch.tsx
|
|
11512
|
-
import { jsx as
|
|
11548
|
+
import { jsx as jsx252 } from "react/jsx-runtime";
|
|
11513
11549
|
var ValueSwatch = ({
|
|
11514
11550
|
diameterPx = DEFAULT_SWATCH_DIAMETER_PX
|
|
11515
11551
|
}) => {
|
|
11516
11552
|
const { valueAsHex } = useColorPickerState();
|
|
11517
|
-
return /* @__PURE__ */
|
|
11553
|
+
return /* @__PURE__ */ jsx252(
|
|
11518
11554
|
ColorSwatch,
|
|
11519
11555
|
{
|
|
11520
11556
|
diameterPx,
|
|
@@ -11525,15 +11561,15 @@ var ValueSwatch = ({
|
|
|
11525
11561
|
ValueSwatch.displayName = "ValueSwatch_UI";
|
|
11526
11562
|
|
|
11527
11563
|
// src/components/ColorPicker/ValueNameOrHexCode.tsx
|
|
11528
|
-
import { jsx as
|
|
11564
|
+
import { jsx as jsx253 } from "react/jsx-runtime";
|
|
11529
11565
|
var ValueNameOrHexCode = () => {
|
|
11530
11566
|
const { valueAsHex } = useColorPickerState();
|
|
11531
|
-
return /* @__PURE__ */
|
|
11567
|
+
return /* @__PURE__ */ jsx253(ColorNameOrHexCode, { hexCode: valueAsHex });
|
|
11532
11568
|
};
|
|
11533
11569
|
ValueNameOrHexCode.displayName = "ValueNameOrHexCode_UI";
|
|
11534
11570
|
|
|
11535
11571
|
// src/components/ColorPicker/ColorPickerTrigger.tsx
|
|
11536
|
-
import { jsx as
|
|
11572
|
+
import { jsx as jsx254, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
11537
11573
|
var StyledPopoverTrigger = styled43(PopoverTrigger)`
|
|
11538
11574
|
background-color: var(--wui-color-bg-surface);
|
|
11539
11575
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -11554,18 +11590,18 @@ var DefaultTriggerContentContainer = styled43.div`
|
|
|
11554
11590
|
`;
|
|
11555
11591
|
var DefaultTriggerContent = () => {
|
|
11556
11592
|
return /* @__PURE__ */ jsxs27(DefaultTriggerContentContainer, { children: [
|
|
11557
|
-
/* @__PURE__ */
|
|
11558
|
-
/* @__PURE__ */
|
|
11593
|
+
/* @__PURE__ */ jsx254(ValueSwatch, {}),
|
|
11594
|
+
/* @__PURE__ */ jsx254(ValueNameOrHexCode, {})
|
|
11559
11595
|
] });
|
|
11560
11596
|
};
|
|
11561
11597
|
var ColorPickerTrigger = forwardRef13(
|
|
11562
11598
|
({ children, ...props }, forwardedRef) => {
|
|
11563
|
-
return /* @__PURE__ */
|
|
11599
|
+
return /* @__PURE__ */ jsx254(
|
|
11564
11600
|
StyledPopoverTrigger,
|
|
11565
11601
|
{
|
|
11566
11602
|
ref: forwardedRef,
|
|
11567
11603
|
...props,
|
|
11568
|
-
children: children ?? /* @__PURE__ */
|
|
11604
|
+
children: children ?? /* @__PURE__ */ jsx254(DefaultTriggerContent, {})
|
|
11569
11605
|
}
|
|
11570
11606
|
);
|
|
11571
11607
|
}
|
|
@@ -11574,7 +11610,7 @@ ColorPickerTrigger.displayName = "ColorPickerTrigger_UI";
|
|
|
11574
11610
|
|
|
11575
11611
|
// src/components/ColorPicker/ContrastIndicator.tsx
|
|
11576
11612
|
import { styled as styled44 } from "styled-components";
|
|
11577
|
-
import { jsx as
|
|
11613
|
+
import { jsx as jsx255, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
11578
11614
|
var Container7 = styled44.div`
|
|
11579
11615
|
display: flex;
|
|
11580
11616
|
flex-direction: row;
|
|
@@ -11588,7 +11624,7 @@ var ContrastIndicator = () => {
|
|
|
11588
11624
|
const { currentContrastRatio, minimumContrastRatio } = useColorPickerState();
|
|
11589
11625
|
const isContrastSufficient = currentContrastRatio >= minimumContrastRatio;
|
|
11590
11626
|
const label = /* @__PURE__ */ jsxs28("div", { children: [
|
|
11591
|
-
/* @__PURE__ */
|
|
11627
|
+
/* @__PURE__ */ jsx255(
|
|
11592
11628
|
Text,
|
|
11593
11629
|
{
|
|
11594
11630
|
renderAs: "span",
|
|
@@ -11609,19 +11645,19 @@ var ContrastIndicator = () => {
|
|
|
11609
11645
|
}
|
|
11610
11646
|
)
|
|
11611
11647
|
] });
|
|
11612
|
-
return /* @__PURE__ */
|
|
11648
|
+
return /* @__PURE__ */ jsx255(Container7, { children: isContrastSufficient ? /* @__PURE__ */ jsx255(
|
|
11613
11649
|
Badge,
|
|
11614
11650
|
{
|
|
11615
11651
|
colorScheme: "success",
|
|
11616
|
-
icon: /* @__PURE__ */
|
|
11652
|
+
icon: /* @__PURE__ */ jsx255(Icon, { type: "checkmark" }),
|
|
11617
11653
|
label,
|
|
11618
11654
|
variant: "outline"
|
|
11619
11655
|
}
|
|
11620
|
-
) : /* @__PURE__ */
|
|
11656
|
+
) : /* @__PURE__ */ jsx255(
|
|
11621
11657
|
Badge,
|
|
11622
11658
|
{
|
|
11623
11659
|
colorScheme: "warning",
|
|
11624
|
-
icon: /* @__PURE__ */
|
|
11660
|
+
icon: /* @__PURE__ */ jsx255(Icon, { type: "error" }),
|
|
11625
11661
|
label,
|
|
11626
11662
|
variant: "outline"
|
|
11627
11663
|
}
|
|
@@ -11635,7 +11671,7 @@ import { useCallback as useCallback12 } from "react";
|
|
|
11635
11671
|
import { forwardRef as forwardRef14, useId as useId3 } from "react";
|
|
11636
11672
|
import { styled as styled45, css as css28 } from "styled-components";
|
|
11637
11673
|
import { isNonEmptyString as isNonEmptyString4 } from "@wistia/type-guards";
|
|
11638
|
-
import { jsx as
|
|
11674
|
+
import { jsx as jsx256, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
11639
11675
|
var switchHeightMap = {
|
|
11640
11676
|
sm: 16,
|
|
11641
11677
|
md: 20,
|
|
@@ -11735,7 +11771,7 @@ var Switch = forwardRef14(
|
|
|
11735
11771
|
$hideLabel: hideLabel,
|
|
11736
11772
|
$size: size,
|
|
11737
11773
|
children: [
|
|
11738
|
-
/* @__PURE__ */
|
|
11774
|
+
/* @__PURE__ */ jsx256(
|
|
11739
11775
|
StyledHiddenSwitchInput,
|
|
11740
11776
|
{
|
|
11741
11777
|
...props,
|
|
@@ -11750,16 +11786,16 @@ var Switch = forwardRef14(
|
|
|
11750
11786
|
value
|
|
11751
11787
|
}
|
|
11752
11788
|
),
|
|
11753
|
-
/* @__PURE__ */
|
|
11789
|
+
/* @__PURE__ */ jsx256(
|
|
11754
11790
|
FormControlLabel,
|
|
11755
11791
|
{
|
|
11756
11792
|
align,
|
|
11757
|
-
controlSlot: /* @__PURE__ */
|
|
11793
|
+
controlSlot: /* @__PURE__ */ jsx256(
|
|
11758
11794
|
StyledSwitchTrack,
|
|
11759
11795
|
{
|
|
11760
11796
|
"data-testid": "wui-faux-input",
|
|
11761
11797
|
"data-wui-faux-input": "true",
|
|
11762
|
-
children: /* @__PURE__ */
|
|
11798
|
+
children: /* @__PURE__ */ jsx256(StyledSwitchThumb, {})
|
|
11763
11799
|
}
|
|
11764
11800
|
),
|
|
11765
11801
|
description,
|
|
@@ -11777,7 +11813,7 @@ var Switch = forwardRef14(
|
|
|
11777
11813
|
Switch.displayName = "Switch_UI";
|
|
11778
11814
|
|
|
11779
11815
|
// src/components/ColorPicker/ContrastEnforcerSwitch.tsx
|
|
11780
|
-
import { jsx as
|
|
11816
|
+
import { jsx as jsx257 } from "react/jsx-runtime";
|
|
11781
11817
|
var ContrastEnforcerSwitch = () => {
|
|
11782
11818
|
const { setShouldEnforceMinContrast, shouldEnforceMinContrast, hasAccessibleDerivatives: hasAccessibleDerivatives2 } = useColorPickerState();
|
|
11783
11819
|
const onChangeContrastLimitedSwitch = useCallback12(
|
|
@@ -11793,7 +11829,7 @@ var ContrastEnforcerSwitch = () => {
|
|
|
11793
11829
|
if (!hasAccessibleDerivatives2) {
|
|
11794
11830
|
return null;
|
|
11795
11831
|
}
|
|
11796
|
-
return /* @__PURE__ */
|
|
11832
|
+
return /* @__PURE__ */ jsx257(
|
|
11797
11833
|
Switch,
|
|
11798
11834
|
{
|
|
11799
11835
|
align: "right",
|
|
@@ -11805,21 +11841,21 @@ var ContrastEnforcerSwitch = () => {
|
|
|
11805
11841
|
};
|
|
11806
11842
|
|
|
11807
11843
|
// src/components/ColorPicker/ContrastPreview.tsx
|
|
11808
|
-
import { jsx as
|
|
11844
|
+
import { jsx as jsx258 } from "react/jsx-runtime";
|
|
11809
11845
|
var ContrastPreview = () => {
|
|
11810
11846
|
const { valueAsHex, colorForComparison } = useColorPickerState();
|
|
11811
|
-
return /* @__PURE__ */
|
|
11847
|
+
return /* @__PURE__ */ jsx258(
|
|
11812
11848
|
ColorSwatch,
|
|
11813
11849
|
{
|
|
11814
11850
|
diameterPx: 36,
|
|
11815
11851
|
value: valueAsHex,
|
|
11816
|
-
children: /* @__PURE__ */
|
|
11852
|
+
children: /* @__PURE__ */ jsx258(Text, { style: { color: colorForComparison }, children: "Aa" })
|
|
11817
11853
|
}
|
|
11818
11854
|
);
|
|
11819
11855
|
};
|
|
11820
11856
|
|
|
11821
11857
|
// src/components/ColorPicker/ContrastControls.tsx
|
|
11822
|
-
import { jsx as
|
|
11858
|
+
import { jsx as jsx259, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
11823
11859
|
var ContrastControls = () => {
|
|
11824
11860
|
return /* @__PURE__ */ jsxs30(Stack, { children: [
|
|
11825
11861
|
/* @__PURE__ */ jsxs30(
|
|
@@ -11829,12 +11865,12 @@ var ContrastControls = () => {
|
|
|
11829
11865
|
direction: "row",
|
|
11830
11866
|
justifyContent: "space-between",
|
|
11831
11867
|
children: [
|
|
11832
|
-
/* @__PURE__ */
|
|
11833
|
-
/* @__PURE__ */
|
|
11868
|
+
/* @__PURE__ */ jsx259(ContrastPreview, {}),
|
|
11869
|
+
/* @__PURE__ */ jsx259(ContrastIndicator, {})
|
|
11834
11870
|
]
|
|
11835
11871
|
}
|
|
11836
11872
|
),
|
|
11837
|
-
/* @__PURE__ */
|
|
11873
|
+
/* @__PURE__ */ jsx259(ContrastEnforcerSwitch, {})
|
|
11838
11874
|
] });
|
|
11839
11875
|
};
|
|
11840
11876
|
ContrastControls.displayName = "ContrastControls_UI";
|
|
@@ -11876,7 +11912,7 @@ var inputCss = css29`
|
|
|
11876
11912
|
`;
|
|
11877
11913
|
|
|
11878
11914
|
// src/components/Input/Input.tsx
|
|
11879
|
-
import { jsx as
|
|
11915
|
+
import { jsx as jsx260, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
11880
11916
|
var inputStyles = css30`
|
|
11881
11917
|
${inputCss}
|
|
11882
11918
|
input,
|
|
@@ -12043,7 +12079,7 @@ var Input = forwardRef15(
|
|
|
12043
12079
|
const ref = isNotNil18(externalRef) && isRecord4(externalRef) && "current" in externalRef ? externalRef : internalRef;
|
|
12044
12080
|
let leftIconToDisplay = leftIcon;
|
|
12045
12081
|
if (isNil14(leftIcon) && type === "search") {
|
|
12046
|
-
leftIconToDisplay = /* @__PURE__ */
|
|
12082
|
+
leftIconToDisplay = /* @__PURE__ */ jsx260(Icon, { type: "search" });
|
|
12047
12083
|
}
|
|
12048
12084
|
if (isNotNil18(leftIconToDisplay) && isValidElement2(leftIconToDisplay)) {
|
|
12049
12085
|
leftIconToDisplay = cloneElement4(leftIconToDisplay, {
|
|
@@ -12078,14 +12114,14 @@ var Input = forwardRef15(
|
|
|
12078
12114
|
"data-wui-input-container": true,
|
|
12079
12115
|
children: [
|
|
12080
12116
|
leftIconToDisplay ?? null,
|
|
12081
|
-
type === "multiline" ? /* @__PURE__ */
|
|
12117
|
+
type === "multiline" ? /* @__PURE__ */ jsx260(
|
|
12082
12118
|
"textarea",
|
|
12083
12119
|
{
|
|
12084
12120
|
...props,
|
|
12085
12121
|
ref,
|
|
12086
12122
|
onFocus: handleFocus2
|
|
12087
12123
|
}
|
|
12088
|
-
) : /* @__PURE__ */
|
|
12124
|
+
) : /* @__PURE__ */ jsx260(
|
|
12089
12125
|
"input",
|
|
12090
12126
|
{
|
|
12091
12127
|
...props,
|
|
@@ -12103,7 +12139,7 @@ var Input = forwardRef15(
|
|
|
12103
12139
|
Input.displayName = "Input_UI";
|
|
12104
12140
|
|
|
12105
12141
|
// src/components/ColorPicker/HexColorInput.tsx
|
|
12106
|
-
import { jsx as
|
|
12142
|
+
import { jsx as jsx261 } from "react/jsx-runtime";
|
|
12107
12143
|
var SIX_DIGIT_HEX_CODE_LENGTH = 7;
|
|
12108
12144
|
var isValidHexChar = (char) => {
|
|
12109
12145
|
return /^[0-9a-fA-F]$/.test(char);
|
|
@@ -12243,7 +12279,7 @@ var HexColorInput = ({ autoFocus = true }) => {
|
|
|
12243
12279
|
useEffect11(() => {
|
|
12244
12280
|
setTextInputValue(valueAsHex);
|
|
12245
12281
|
}, [valueAsHex]);
|
|
12246
|
-
return /* @__PURE__ */
|
|
12282
|
+
return /* @__PURE__ */ jsx261(
|
|
12247
12283
|
Input,
|
|
12248
12284
|
{
|
|
12249
12285
|
ref: inputRef,
|
|
@@ -12279,7 +12315,7 @@ import { formatHex as formatHex6 } from "culori/fn";
|
|
|
12279
12315
|
import { useEffect as useEffect12, useRef as useRef11 } from "react";
|
|
12280
12316
|
import { styled as styled47 } from "styled-components";
|
|
12281
12317
|
import { formatHex as formatHex5 } from "culori/fn";
|
|
12282
|
-
import { jsx as
|
|
12318
|
+
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
12283
12319
|
var Canvas = styled47.canvas`
|
|
12284
12320
|
display: block;
|
|
12285
12321
|
height: 100%;
|
|
@@ -12308,7 +12344,7 @@ var HSVHueCanvas = ({ hsv }) => {
|
|
|
12308
12344
|
ctx.fillStyle = gradient;
|
|
12309
12345
|
ctx.fillRect(0, 0, width, height);
|
|
12310
12346
|
}, [hsv.s, hsv.v]);
|
|
12311
|
-
return /* @__PURE__ */
|
|
12347
|
+
return /* @__PURE__ */ jsx262(
|
|
12312
12348
|
Canvas,
|
|
12313
12349
|
{
|
|
12314
12350
|
ref: canvasRef,
|
|
@@ -12318,7 +12354,7 @@ var HSVHueCanvas = ({ hsv }) => {
|
|
|
12318
12354
|
};
|
|
12319
12355
|
|
|
12320
12356
|
// src/components/ColorPicker/HueSlider.tsx
|
|
12321
|
-
import { jsx as
|
|
12357
|
+
import { jsx as jsx263, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
12322
12358
|
var TWENTY_FOUR = 24;
|
|
12323
12359
|
var Container8 = styled48.div`
|
|
12324
12360
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -12398,12 +12434,12 @@ var HueSlider = () => {
|
|
|
12398
12434
|
step: 1,
|
|
12399
12435
|
value: [nonDerivedValueAsHsv.h ?? 0],
|
|
12400
12436
|
children: [
|
|
12401
|
-
/* @__PURE__ */
|
|
12402
|
-
/* @__PURE__ */
|
|
12437
|
+
/* @__PURE__ */ jsx263(Track, {}),
|
|
12438
|
+
/* @__PURE__ */ jsx263(Thumb, { "aria-label": "Hue slider", children: /* @__PURE__ */ jsx263(ThumbInner, { style: thumbInnerStyle }) })
|
|
12403
12439
|
]
|
|
12404
12440
|
}
|
|
12405
12441
|
),
|
|
12406
|
-
/* @__PURE__ */
|
|
12442
|
+
/* @__PURE__ */ jsx263(HSVHueCanvas, { hsv: valueAsHsv })
|
|
12407
12443
|
] });
|
|
12408
12444
|
};
|
|
12409
12445
|
HueSlider.displayName = "HueSlider_UI";
|
|
@@ -12443,7 +12479,7 @@ var drawSmoothCurve = (context, points) => {
|
|
|
12443
12479
|
};
|
|
12444
12480
|
|
|
12445
12481
|
// src/components/ColorPicker/HSVSaturationValueCanvas.tsx
|
|
12446
|
-
import { jsx as
|
|
12482
|
+
import { jsx as jsx264 } from "react/jsx-runtime";
|
|
12447
12483
|
var Canvas2 = styled49.canvas`
|
|
12448
12484
|
display: block;
|
|
12449
12485
|
width: 100%;
|
|
@@ -12551,7 +12587,7 @@ var HSVSaturationValueCanvas = ({
|
|
|
12551
12587
|
colorForComparison,
|
|
12552
12588
|
opacityForContrastCalculation
|
|
12553
12589
|
]);
|
|
12554
|
-
return /* @__PURE__ */
|
|
12590
|
+
return /* @__PURE__ */ jsx264(
|
|
12555
12591
|
Canvas2,
|
|
12556
12592
|
{
|
|
12557
12593
|
ref: canvasRef,
|
|
@@ -12562,7 +12598,7 @@ var HSVSaturationValueCanvas = ({
|
|
|
12562
12598
|
};
|
|
12563
12599
|
|
|
12564
12600
|
// src/components/ColorPicker/SaturationAndValuePicker.tsx
|
|
12565
|
-
import { jsx as
|
|
12601
|
+
import { jsx as jsx265, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
12566
12602
|
var SATURATION_NUDGE = 0.02;
|
|
12567
12603
|
var VALUE_NUDGE = 0.02;
|
|
12568
12604
|
var Container9 = styled50.div`
|
|
@@ -12739,7 +12775,7 @@ var SaturationAndValuePicker = ({
|
|
|
12739
12775
|
"data-testid": dataTestId,
|
|
12740
12776
|
onMouseDown: onContainerMouseDown,
|
|
12741
12777
|
children: [
|
|
12742
|
-
/* @__PURE__ */
|
|
12778
|
+
/* @__PURE__ */ jsx265(
|
|
12743
12779
|
Thumb2,
|
|
12744
12780
|
{
|
|
12745
12781
|
ref: thumbRef,
|
|
@@ -12751,7 +12787,7 @@ var SaturationAndValuePicker = ({
|
|
|
12751
12787
|
tabIndex: 0
|
|
12752
12788
|
}
|
|
12753
12789
|
),
|
|
12754
|
-
/* @__PURE__ */
|
|
12790
|
+
/* @__PURE__ */ jsx265(
|
|
12755
12791
|
HSVSaturationValueCanvas,
|
|
12756
12792
|
{
|
|
12757
12793
|
colorForComparison,
|
|
@@ -12761,7 +12797,7 @@ var SaturationAndValuePicker = ({
|
|
|
12761
12797
|
shouldShowContrastCurve: shouldEnforceMinContrast
|
|
12762
12798
|
}
|
|
12763
12799
|
),
|
|
12764
|
-
/* @__PURE__ */
|
|
12800
|
+
/* @__PURE__ */ jsx265(ScreenReaderOnly, { id: instructionsId, children: "Move right to increase saturation, left to decrease saturation, up to increase value, and down to decrease value." }),
|
|
12765
12801
|
/* @__PURE__ */ jsxs33(ScreenReaderOnly, { "aria-live": "polite", children: [
|
|
12766
12802
|
"Current color: ",
|
|
12767
12803
|
valueAsHex,
|
|
@@ -12800,7 +12836,7 @@ import { isArray as isArray2, isString as isString3 } from "@wistia/type-guards"
|
|
|
12800
12836
|
import { forwardRef as forwardRef16 } from "react";
|
|
12801
12837
|
import { styled as styled51 } from "styled-components";
|
|
12802
12838
|
import { isNil as isNil15, isNotNil as isNotNil19, isNonEmptyString as isNonEmptyString5 } from "@wistia/type-guards";
|
|
12803
|
-
import { Fragment as Fragment7, jsx as
|
|
12839
|
+
import { Fragment as Fragment7, jsx as jsx266, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
12804
12840
|
var TagLabel = styled51.a`
|
|
12805
12841
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
12806
12842
|
font-size: var(--wui-typography-label-4-size);
|
|
@@ -12894,7 +12930,7 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
12894
12930
|
);
|
|
12895
12931
|
}
|
|
12896
12932
|
return /* @__PURE__ */ jsxs34(Fragment7, { children: [
|
|
12897
|
-
/* @__PURE__ */
|
|
12933
|
+
/* @__PURE__ */ jsx266(TagDivider, { $colorScheme: colorScheme }),
|
|
12898
12934
|
/* @__PURE__ */ jsxs34(
|
|
12899
12935
|
StyledRemoveButton,
|
|
12900
12936
|
{
|
|
@@ -12902,14 +12938,14 @@ var RemoveButton = ({ onClickRemove, onClickRemoveLabel, colorScheme }) => {
|
|
|
12902
12938
|
onClick: onClickRemove,
|
|
12903
12939
|
type: "button",
|
|
12904
12940
|
children: [
|
|
12905
|
-
/* @__PURE__ */
|
|
12941
|
+
/* @__PURE__ */ jsx266(
|
|
12906
12942
|
Icon,
|
|
12907
12943
|
{
|
|
12908
12944
|
size: "sm",
|
|
12909
12945
|
type: "close"
|
|
12910
12946
|
}
|
|
12911
12947
|
),
|
|
12912
|
-
/* @__PURE__ */
|
|
12948
|
+
/* @__PURE__ */ jsx266(ScreenReaderOnly, { children: onClickRemoveLabel })
|
|
12913
12949
|
]
|
|
12914
12950
|
}
|
|
12915
12951
|
)
|
|
@@ -12937,7 +12973,7 @@ var Tag = forwardRef16(
|
|
|
12937
12973
|
]
|
|
12938
12974
|
}
|
|
12939
12975
|
),
|
|
12940
|
-
/* @__PURE__ */
|
|
12976
|
+
/* @__PURE__ */ jsx266(
|
|
12941
12977
|
RemoveButton,
|
|
12942
12978
|
{
|
|
12943
12979
|
colorScheme,
|
|
@@ -12970,7 +13006,7 @@ var getDefaultTypographicElement = (variant) => {
|
|
|
12970
13006
|
};
|
|
12971
13007
|
|
|
12972
13008
|
// src/components/Combobox/Combobox.tsx
|
|
12973
|
-
import { jsx as
|
|
13009
|
+
import { jsx as jsx267, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
12974
13010
|
var ComboboxWrapper = styled52.div`
|
|
12975
13011
|
${inputCss};
|
|
12976
13012
|
width: ${({ $fullWidth }) => $fullWidth ? "100%" : "auto"};
|
|
@@ -13094,7 +13130,7 @@ var NoResults = styled52.div`
|
|
|
13094
13130
|
`;
|
|
13095
13131
|
var POPOVER_WIDTH_OFFSET = 20;
|
|
13096
13132
|
var ComboboxOption = ({ value, children }) => {
|
|
13097
|
-
return /* @__PURE__ */
|
|
13133
|
+
return /* @__PURE__ */ jsx267(
|
|
13098
13134
|
ComboboxItem2,
|
|
13099
13135
|
{
|
|
13100
13136
|
className: "combobox-item",
|
|
@@ -13115,7 +13151,7 @@ var extractOptions = (children) => {
|
|
|
13115
13151
|
};
|
|
13116
13152
|
var defaultDisplayValues = (values, onRemove) => {
|
|
13117
13153
|
const valueArray = Array.isArray(values) ? values : [values];
|
|
13118
|
-
return valueArray.map((selectedValue) => /* @__PURE__ */
|
|
13154
|
+
return valueArray.map((selectedValue) => /* @__PURE__ */ jsx267(
|
|
13119
13155
|
Tag,
|
|
13120
13156
|
{
|
|
13121
13157
|
label: selectedValue,
|
|
@@ -13188,7 +13224,7 @@ var Combobox2 = ({
|
|
|
13188
13224
|
$fullWidth: fullWidth,
|
|
13189
13225
|
children: [
|
|
13190
13226
|
isMultiSelect ? displayValues(value, handleRemoveValue) : null,
|
|
13191
|
-
/* @__PURE__ */
|
|
13227
|
+
/* @__PURE__ */ jsx267(
|
|
13192
13228
|
ComboboxInput,
|
|
13193
13229
|
{
|
|
13194
13230
|
autoSelect: true,
|
|
@@ -13217,7 +13253,7 @@ var Combobox2 = ({
|
|
|
13217
13253
|
value: match,
|
|
13218
13254
|
children: [
|
|
13219
13255
|
options[match],
|
|
13220
|
-
/* @__PURE__ */
|
|
13256
|
+
/* @__PURE__ */ jsx267(
|
|
13221
13257
|
Icon,
|
|
13222
13258
|
{
|
|
13223
13259
|
size: "md",
|
|
@@ -13231,7 +13267,7 @@ var Combobox2 = ({
|
|
|
13231
13267
|
},
|
|
13232
13268
|
match
|
|
13233
13269
|
)),
|
|
13234
|
-
!matches.length && /* @__PURE__ */
|
|
13270
|
+
!matches.length && /* @__PURE__ */ jsx267(NoResults, { children: "No results found" })
|
|
13235
13271
|
]
|
|
13236
13272
|
}
|
|
13237
13273
|
)
|
|
@@ -13262,7 +13298,7 @@ var MenuContext = createContext6({ compact: false });
|
|
|
13262
13298
|
var useMenuContext = () => useContext5(MenuContext);
|
|
13263
13299
|
|
|
13264
13300
|
// src/components/Menu/Menu.tsx
|
|
13265
|
-
import { jsx as
|
|
13301
|
+
import { jsx as jsx268, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
13266
13302
|
var open = keyframes3`
|
|
13267
13303
|
from {
|
|
13268
13304
|
opacity: 0;
|
|
@@ -13375,25 +13411,25 @@ var Menu = forwardRef17(
|
|
|
13375
13411
|
onOpenChange: () => null
|
|
13376
13412
|
};
|
|
13377
13413
|
}
|
|
13378
|
-
return /* @__PURE__ */
|
|
13414
|
+
return /* @__PURE__ */ jsx268(MenuContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxs36(
|
|
13379
13415
|
DropdownMenu,
|
|
13380
13416
|
{
|
|
13381
13417
|
modal: false,
|
|
13382
13418
|
...controlProps,
|
|
13383
13419
|
children: [
|
|
13384
|
-
/* @__PURE__ */
|
|
13420
|
+
/* @__PURE__ */ jsx268(DropdownMenuTrigger, { asChild: true, children: isNotUndefined9(trigger) ? trigger : /* @__PURE__ */ jsx268(
|
|
13385
13421
|
Button,
|
|
13386
13422
|
{
|
|
13387
13423
|
ref,
|
|
13388
13424
|
"aria-expanded": isOpen,
|
|
13389
13425
|
disabled,
|
|
13390
13426
|
forceState: isOpen ? "active" : void 0,
|
|
13391
|
-
rightIcon: /* @__PURE__ */
|
|
13427
|
+
rightIcon: /* @__PURE__ */ jsx268(Icon, { type: "caret-down" }),
|
|
13392
13428
|
...triggerProps,
|
|
13393
13429
|
children: label
|
|
13394
13430
|
}
|
|
13395
13431
|
) }),
|
|
13396
|
-
/* @__PURE__ */
|
|
13432
|
+
/* @__PURE__ */ jsx268(DropdownMenuPortal, { children: /* @__PURE__ */ jsx268(
|
|
13397
13433
|
MenuContent,
|
|
13398
13434
|
{
|
|
13399
13435
|
...props,
|
|
@@ -13419,17 +13455,17 @@ Menu.displayName = "Menu_UI";
|
|
|
13419
13455
|
// src/components/Menu/MenuLabel.tsx
|
|
13420
13456
|
import { styled as styled54 } from "styled-components";
|
|
13421
13457
|
import { DropdownMenuLabel } from "@radix-ui/react-dropdown-menu";
|
|
13422
|
-
import { jsx as
|
|
13458
|
+
import { jsx as jsx269 } from "react/jsx-runtime";
|
|
13423
13459
|
var StyledMenuLabel = styled54(DropdownMenuLabel)`
|
|
13424
13460
|
padding: var(--wui-space-02);
|
|
13425
13461
|
`;
|
|
13426
13462
|
var MenuLabel = ({ children, ...props }) => {
|
|
13427
|
-
return /* @__PURE__ */
|
|
13463
|
+
return /* @__PURE__ */ jsx269(
|
|
13428
13464
|
StyledMenuLabel,
|
|
13429
13465
|
{
|
|
13430
13466
|
asChild: true,
|
|
13431
13467
|
...props,
|
|
13432
|
-
children: /* @__PURE__ */
|
|
13468
|
+
children: /* @__PURE__ */ jsx269(
|
|
13433
13469
|
Heading,
|
|
13434
13470
|
{
|
|
13435
13471
|
renderAs: "span",
|
|
@@ -13460,7 +13496,7 @@ import { isNotNil as isNotNil22 } from "@wistia/type-guards";
|
|
|
13460
13496
|
import { forwardRef as forwardRef18 } from "react";
|
|
13461
13497
|
import { styled as styled55 } from "styled-components";
|
|
13462
13498
|
import { isNotNil as isNotNil21, isNotUndefined as isNotUndefined10 } from "@wistia/type-guards";
|
|
13463
|
-
import { jsx as
|
|
13499
|
+
import { jsx as jsx270, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
13464
13500
|
var StyledButton3 = styled55(Button)`
|
|
13465
13501
|
${({ colorScheme }) => getColorScheme(colorScheme)};
|
|
13466
13502
|
|
|
@@ -13545,7 +13581,7 @@ var MenuItemButton = forwardRef18(({ children, appearance, command, icon, ...pro
|
|
|
13545
13581
|
colorScheme = "error";
|
|
13546
13582
|
}
|
|
13547
13583
|
if (appearance === "gated") {
|
|
13548
|
-
badge = /* @__PURE__ */
|
|
13584
|
+
badge = /* @__PURE__ */ jsx270(
|
|
13549
13585
|
Icon,
|
|
13550
13586
|
{
|
|
13551
13587
|
colorScheme: "purple",
|
|
@@ -13567,10 +13603,10 @@ var MenuItemButton = forwardRef18(({ children, appearance, command, icon, ...pro
|
|
|
13567
13603
|
fullWidth: true,
|
|
13568
13604
|
unstyled: true,
|
|
13569
13605
|
children: [
|
|
13570
|
-
isNotNil21(props.leftIcon) ? /* @__PURE__ */
|
|
13571
|
-
/* @__PURE__ */
|
|
13572
|
-
isNotNil21(badge) || isNotNil21(command) ? /* @__PURE__ */
|
|
13573
|
-
isNotNil21(props.rightIcon) ? /* @__PURE__ */
|
|
13606
|
+
isNotNil21(props.leftIcon) ? /* @__PURE__ */ jsx270(StyledLeftIconContainer, { children: props.leftIcon }) : null,
|
|
13607
|
+
/* @__PURE__ */ jsx270(StyledLabelAndDescriptionContainer, { children }),
|
|
13608
|
+
isNotNil21(badge) || isNotNil21(command) ? /* @__PURE__ */ jsx270(StyledBadgeContainer, { children: badge ?? command }) : null,
|
|
13609
|
+
isNotNil21(props.rightIcon) ? /* @__PURE__ */ jsx270(StyledRightIconContainer, { children: props.rightIcon }) : null
|
|
13574
13610
|
]
|
|
13575
13611
|
}
|
|
13576
13612
|
);
|
|
@@ -13579,7 +13615,7 @@ MenuItemButton.displayName = "MenuItemButton_UI";
|
|
|
13579
13615
|
|
|
13580
13616
|
// src/components/Menu/MenuItemLabelDescription.tsx
|
|
13581
13617
|
import { styled as styled56 } from "styled-components";
|
|
13582
|
-
import { jsx as
|
|
13618
|
+
import { jsx as jsx271 } from "react/jsx-runtime";
|
|
13583
13619
|
var StyledMenuItemLabel = styled56.span`
|
|
13584
13620
|
/* avoid no-empty-source rule */
|
|
13585
13621
|
`;
|
|
@@ -13587,10 +13623,10 @@ var StyledMenuItemDescription = styled56(Text)`
|
|
|
13587
13623
|
/* avoid no-empty-source rule */
|
|
13588
13624
|
`;
|
|
13589
13625
|
var MenuItemLabel = ({ children }) => {
|
|
13590
|
-
return /* @__PURE__ */
|
|
13626
|
+
return /* @__PURE__ */ jsx271(StyledMenuItemLabel, { children });
|
|
13591
13627
|
};
|
|
13592
13628
|
var MenuItemDescription = ({ children }) => {
|
|
13593
|
-
return /* @__PURE__ */
|
|
13629
|
+
return /* @__PURE__ */ jsx271(
|
|
13594
13630
|
StyledMenuItemDescription,
|
|
13595
13631
|
{
|
|
13596
13632
|
prominence: "secondary",
|
|
@@ -13601,7 +13637,7 @@ var MenuItemDescription = ({ children }) => {
|
|
|
13601
13637
|
};
|
|
13602
13638
|
|
|
13603
13639
|
// src/components/Menu/SubMenu.tsx
|
|
13604
|
-
import { jsx as
|
|
13640
|
+
import { jsx as jsx272, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
13605
13641
|
var SubMenuContent = styled57(DropdownMenuSubContent)`
|
|
13606
13642
|
${menuContentCss}
|
|
13607
13643
|
|
|
@@ -13623,12 +13659,12 @@ var StyledSubTrigger = styled57(DropdownMenuSubTrigger)`
|
|
|
13623
13659
|
var SubMenuTrigger = ({ icon, ...props }) => {
|
|
13624
13660
|
const { isSmAndUp } = useMq();
|
|
13625
13661
|
const Trigger4 = isSmAndUp ? StyledSubTrigger : DropdownMenuItem;
|
|
13626
|
-
return /* @__PURE__ */
|
|
13662
|
+
return /* @__PURE__ */ jsx272(Trigger4, { asChild: true, children: /* @__PURE__ */ jsx272(
|
|
13627
13663
|
MenuItemButton,
|
|
13628
13664
|
{
|
|
13629
13665
|
...props,
|
|
13630
13666
|
leftIcon: icon,
|
|
13631
|
-
rightIcon: /* @__PURE__ */
|
|
13667
|
+
rightIcon: /* @__PURE__ */ jsx272(Icon, { type: "caret-right" })
|
|
13632
13668
|
}
|
|
13633
13669
|
) });
|
|
13634
13670
|
};
|
|
@@ -13644,10 +13680,10 @@ var SubMenu = ({
|
|
|
13644
13680
|
const { compact } = useMenuContext();
|
|
13645
13681
|
return isSmAndUp ? /* @__PURE__ */ jsxs38(DropdownMenuSub, { onOpenChange, children: [
|
|
13646
13682
|
/* @__PURE__ */ jsxs38(SubMenuTrigger, { ...props, children: [
|
|
13647
|
-
/* @__PURE__ */
|
|
13648
|
-
isNotNil22(description) ? /* @__PURE__ */
|
|
13683
|
+
/* @__PURE__ */ jsx272(MenuItemLabel, { children: label }),
|
|
13684
|
+
isNotNil22(description) ? /* @__PURE__ */ jsx272(MenuItemDescription, { children: description }) : null
|
|
13649
13685
|
] }),
|
|
13650
|
-
/* @__PURE__ */
|
|
13686
|
+
/* @__PURE__ */ jsx272(DropdownMenuPortal2, { children: /* @__PURE__ */ jsx272(SubMenuContent, { $compact: compact, children }) })
|
|
13651
13687
|
] }) : /* @__PURE__ */ jsxs38(DropdownMenuGroup, { children: [
|
|
13652
13688
|
/* @__PURE__ */ jsxs38(
|
|
13653
13689
|
SubMenuTrigger,
|
|
@@ -13658,12 +13694,12 @@ var SubMenu = ({
|
|
|
13658
13694
|
setIsExpanded((prev) => !prev);
|
|
13659
13695
|
},
|
|
13660
13696
|
children: [
|
|
13661
|
-
/* @__PURE__ */
|
|
13662
|
-
/* @__PURE__ */
|
|
13697
|
+
/* @__PURE__ */ jsx272(MenuItemLabel, { children: label }),
|
|
13698
|
+
/* @__PURE__ */ jsx272(MenuItemDescription, { children: description })
|
|
13663
13699
|
]
|
|
13664
13700
|
}
|
|
13665
13701
|
),
|
|
13666
|
-
/* @__PURE__ */
|
|
13702
|
+
/* @__PURE__ */ jsx272(StyledMobileSubMenuItems, { children: isExpanded ? children : null })
|
|
13667
13703
|
] });
|
|
13668
13704
|
};
|
|
13669
13705
|
SubMenu.displayName = "SubMenu_UI";
|
|
@@ -13671,15 +13707,15 @@ SubMenu.displayName = "SubMenu_UI";
|
|
|
13671
13707
|
// src/components/Menu/MenuItem.tsx
|
|
13672
13708
|
import { forwardRef as forwardRef19 } from "react";
|
|
13673
13709
|
import { DropdownMenuItem as DropdownMenuItem2 } from "@radix-ui/react-dropdown-menu";
|
|
13674
|
-
import { jsx as
|
|
13710
|
+
import { jsx as jsx273 } from "react/jsx-runtime";
|
|
13675
13711
|
var MenuItem = forwardRef19(
|
|
13676
13712
|
({ onSelect = () => null, ...props }, ref) => {
|
|
13677
|
-
return /* @__PURE__ */
|
|
13713
|
+
return /* @__PURE__ */ jsx273(
|
|
13678
13714
|
DropdownMenuItem2,
|
|
13679
13715
|
{
|
|
13680
13716
|
asChild: true,
|
|
13681
13717
|
onSelect,
|
|
13682
|
-
children: /* @__PURE__ */
|
|
13718
|
+
children: /* @__PURE__ */ jsx273(
|
|
13683
13719
|
MenuItemButton,
|
|
13684
13720
|
{
|
|
13685
13721
|
...props,
|
|
@@ -13695,19 +13731,19 @@ MenuItem.displayName = "MenuItem_UI";
|
|
|
13695
13731
|
|
|
13696
13732
|
// src/components/Menu/MenuRadioGroup.tsx
|
|
13697
13733
|
import { DropdownMenuRadioGroup } from "@radix-ui/react-dropdown-menu";
|
|
13698
|
-
import { jsx as
|
|
13734
|
+
import { jsx as jsx274 } from "react/jsx-runtime";
|
|
13699
13735
|
var MenuRadioGroup = ({ children, ...props }) => {
|
|
13700
|
-
return /* @__PURE__ */
|
|
13736
|
+
return /* @__PURE__ */ jsx274(DropdownMenuRadioGroup, { ...props, children });
|
|
13701
13737
|
};
|
|
13702
13738
|
MenuRadioGroup.displayName = "MenuRadioGroup_UI";
|
|
13703
13739
|
|
|
13704
13740
|
// src/components/Menu/RadioMenuItem.tsx
|
|
13705
13741
|
import { DropdownMenuItemIndicator, DropdownMenuRadioItem } from "@radix-ui/react-dropdown-menu";
|
|
13706
|
-
import { jsx as
|
|
13742
|
+
import { jsx as jsx275 } from "react/jsx-runtime";
|
|
13707
13743
|
var RadioMenuItem = ({
|
|
13708
13744
|
onSelect,
|
|
13709
13745
|
value,
|
|
13710
|
-
indicator = /* @__PURE__ */
|
|
13746
|
+
indicator = /* @__PURE__ */ jsx275(
|
|
13711
13747
|
Icon,
|
|
13712
13748
|
{
|
|
13713
13749
|
size: "sm",
|
|
@@ -13717,17 +13753,17 @@ var RadioMenuItem = ({
|
|
|
13717
13753
|
...props
|
|
13718
13754
|
}) => {
|
|
13719
13755
|
const extraProps = onSelect ? { onSelect } : {};
|
|
13720
|
-
return /* @__PURE__ */
|
|
13756
|
+
return /* @__PURE__ */ jsx275(
|
|
13721
13757
|
DropdownMenuRadioItem,
|
|
13722
13758
|
{
|
|
13723
13759
|
...extraProps,
|
|
13724
13760
|
asChild: true,
|
|
13725
13761
|
value,
|
|
13726
|
-
children: /* @__PURE__ */
|
|
13762
|
+
children: /* @__PURE__ */ jsx275(
|
|
13727
13763
|
MenuItemButton,
|
|
13728
13764
|
{
|
|
13729
13765
|
...props,
|
|
13730
|
-
rightIcon: /* @__PURE__ */
|
|
13766
|
+
rightIcon: /* @__PURE__ */ jsx275(DropdownMenuItemIndicator, { children: indicator })
|
|
13731
13767
|
}
|
|
13732
13768
|
)
|
|
13733
13769
|
}
|
|
@@ -13738,7 +13774,7 @@ RadioMenuItem.displayName = "RadioMenuItem_UI";
|
|
|
13738
13774
|
// src/components/Menu/CheckboxMenuItem.tsx
|
|
13739
13775
|
import { DropdownMenuCheckboxItem, DropdownMenuItemIndicator as DropdownMenuItemIndicator2 } from "@radix-ui/react-dropdown-menu";
|
|
13740
13776
|
import { isNotNil as isNotNil23 } from "@wistia/type-guards";
|
|
13741
|
-
import { jsx as
|
|
13777
|
+
import { jsx as jsx276, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
13742
13778
|
var CheckboxIndicator = ({ checked, ...props }) => {
|
|
13743
13779
|
return checked ? /* @__PURE__ */ jsxs39(
|
|
13744
13780
|
"svg",
|
|
@@ -13750,14 +13786,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
|
|
|
13750
13786
|
width: "24",
|
|
13751
13787
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13752
13788
|
children: [
|
|
13753
|
-
/* @__PURE__ */
|
|
13789
|
+
/* @__PURE__ */ jsx276(
|
|
13754
13790
|
"path",
|
|
13755
13791
|
{
|
|
13756
13792
|
d: "m4 8c0-2.20914 1.79086-4 4-4h8c2.2091 0 4 1.79086 4 4v8c0 2.2091-1.7909 4-4 4h-8c-2.20914 0-4-1.7909-4-4z",
|
|
13757
13793
|
fill: "#2949e5"
|
|
13758
13794
|
}
|
|
13759
13795
|
),
|
|
13760
|
-
/* @__PURE__ */
|
|
13796
|
+
/* @__PURE__ */ jsx276(
|
|
13761
13797
|
"path",
|
|
13762
13798
|
{
|
|
13763
13799
|
d: "m10.4728 15.1931-3.09523-3.1131c-.18596-.187-.18596-.4902 0-.6773l.67341-.6773c.18596-.187.48749-.187.67344 0l2.08508 2.0971 4.4661-4.49174c.1859-.18703.4875-.18703.6734 0l.6734.67731c.186.18703.186.49027 0 .67731l-5.4762 5.50772c-.1859.187-.4874.187-.6734 0z",
|
|
@@ -13776,14 +13812,14 @@ var CheckboxIndicator = ({ checked, ...props }) => {
|
|
|
13776
13812
|
width: "24",
|
|
13777
13813
|
xmlns: "http://www.w3.org/2000/svg",
|
|
13778
13814
|
children: [
|
|
13779
|
-
/* @__PURE__ */
|
|
13815
|
+
/* @__PURE__ */ jsx276(
|
|
13780
13816
|
"path",
|
|
13781
13817
|
{
|
|
13782
13818
|
d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
|
|
13783
13819
|
fill: "#fcfcfd"
|
|
13784
13820
|
}
|
|
13785
13821
|
),
|
|
13786
|
-
/* @__PURE__ */
|
|
13822
|
+
/* @__PURE__ */ jsx276(
|
|
13787
13823
|
"path",
|
|
13788
13824
|
{
|
|
13789
13825
|
d: "m8 4.5h8c1.933 0 3.5 1.567 3.5 3.5v8c0 1.933-1.567 3.5-3.5 3.5h-8c-1.933 0-3.5-1.567-3.5-3.5v-8c0-1.933 1.567-3.5 3.5-3.5z",
|
|
@@ -13800,19 +13836,19 @@ var CheckboxMenuItem = ({
|
|
|
13800
13836
|
onCheckedChange,
|
|
13801
13837
|
...props
|
|
13802
13838
|
}) => {
|
|
13803
|
-
return /* @__PURE__ */
|
|
13839
|
+
return /* @__PURE__ */ jsx276(
|
|
13804
13840
|
DropdownMenuCheckboxItem,
|
|
13805
13841
|
{
|
|
13806
13842
|
asChild: true,
|
|
13807
13843
|
checked,
|
|
13808
13844
|
onCheckedChange,
|
|
13809
13845
|
onSelect,
|
|
13810
|
-
children: /* @__PURE__ */
|
|
13846
|
+
children: /* @__PURE__ */ jsx276(
|
|
13811
13847
|
MenuItemButton,
|
|
13812
13848
|
{
|
|
13813
13849
|
...props,
|
|
13814
|
-
leftIcon: isNotNil23(props.icon) ? props.icon : /* @__PURE__ */
|
|
13815
|
-
rightIcon: isNotNil23(props.icon) ? /* @__PURE__ */
|
|
13850
|
+
leftIcon: isNotNil23(props.icon) ? props.icon : /* @__PURE__ */ jsx276(CheckboxIndicator, { checked }),
|
|
13851
|
+
rightIcon: isNotNil23(props.icon) ? /* @__PURE__ */ jsx276(DropdownMenuItemIndicator2, { children: /* @__PURE__ */ jsx276(Icon, { type: "checkmark" }) }) : void 0
|
|
13816
13852
|
}
|
|
13817
13853
|
)
|
|
13818
13854
|
}
|
|
@@ -13823,7 +13859,7 @@ CheckboxMenuItem.displayName = "CheckboxMenuItem_UI";
|
|
|
13823
13859
|
// src/components/Menu/FilterMenu.tsx
|
|
13824
13860
|
import { Children as Children6, forwardRef as forwardRef20 } from "react";
|
|
13825
13861
|
import { DropdownMenuItem as DropdownMenuItem3 } from "@radix-ui/react-dropdown-menu";
|
|
13826
|
-
import { jsx as
|
|
13862
|
+
import { jsx as jsx277, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
13827
13863
|
var FilterMenuItem = CheckboxMenuItem;
|
|
13828
13864
|
var FilterMenu = forwardRef20(
|
|
13829
13865
|
({ value, onChange, searchValue, onSearchValueChange, children, ...props }, ref) => {
|
|
@@ -13833,7 +13869,7 @@ var FilterMenu = forwardRef20(
|
|
|
13833
13869
|
...props,
|
|
13834
13870
|
ref,
|
|
13835
13871
|
children: [
|
|
13836
|
-
/* @__PURE__ */
|
|
13872
|
+
/* @__PURE__ */ jsx277(
|
|
13837
13873
|
Card,
|
|
13838
13874
|
{
|
|
13839
13875
|
alignItems: "flex-end",
|
|
@@ -13848,7 +13884,7 @@ var FilterMenu = forwardRef20(
|
|
|
13848
13884
|
right: 0,
|
|
13849
13885
|
margin: "1px"
|
|
13850
13886
|
},
|
|
13851
|
-
children: /* @__PURE__ */
|
|
13887
|
+
children: /* @__PURE__ */ jsx277(
|
|
13852
13888
|
Input,
|
|
13853
13889
|
{
|
|
13854
13890
|
autoFocus: true,
|
|
@@ -13874,7 +13910,7 @@ var FilterMenu = forwardRef20(
|
|
|
13874
13910
|
)
|
|
13875
13911
|
}
|
|
13876
13912
|
),
|
|
13877
|
-
/* @__PURE__ */
|
|
13913
|
+
/* @__PURE__ */ jsx277(
|
|
13878
13914
|
MenuItem,
|
|
13879
13915
|
{
|
|
13880
13916
|
disabled: true,
|
|
@@ -13882,13 +13918,13 @@ var FilterMenu = forwardRef20(
|
|
|
13882
13918
|
children: " "
|
|
13883
13919
|
}
|
|
13884
13920
|
),
|
|
13885
|
-
Children6.toArray(children).length > 0 ? children : /* @__PURE__ */
|
|
13886
|
-
value.length > 0 && /* @__PURE__ */
|
|
13921
|
+
Children6.toArray(children).length > 0 ? children : /* @__PURE__ */ jsx277(MenuItem, { disabled: true, children: "No results found" }),
|
|
13922
|
+
value.length > 0 && /* @__PURE__ */ jsx277(
|
|
13887
13923
|
DropdownMenuItem3,
|
|
13888
13924
|
{
|
|
13889
13925
|
disabled: true,
|
|
13890
13926
|
style: { marginTop: "24px" },
|
|
13891
|
-
children: /* @__PURE__ */
|
|
13927
|
+
children: /* @__PURE__ */ jsx277(
|
|
13892
13928
|
Card,
|
|
13893
13929
|
{
|
|
13894
13930
|
alignItems: "flex-end",
|
|
@@ -13903,7 +13939,7 @@ var FilterMenu = forwardRef20(
|
|
|
13903
13939
|
right: 0,
|
|
13904
13940
|
margin: "1px"
|
|
13905
13941
|
},
|
|
13906
|
-
children: /* @__PURE__ */
|
|
13942
|
+
children: /* @__PURE__ */ jsx277(
|
|
13907
13943
|
Button,
|
|
13908
13944
|
{
|
|
13909
13945
|
onClick: () => onChange([]),
|
|
@@ -13923,7 +13959,7 @@ var FilterMenu = forwardRef20(
|
|
|
13923
13959
|
FilterMenu.displayName = "FilterMenu_UI";
|
|
13924
13960
|
|
|
13925
13961
|
// src/components/ContextMenu/ContextMenu.tsx
|
|
13926
|
-
import { jsx as
|
|
13962
|
+
import { jsx as jsx278 } from "react/jsx-runtime";
|
|
13927
13963
|
var ContextMenu = ({
|
|
13928
13964
|
position,
|
|
13929
13965
|
triggerRef,
|
|
@@ -13953,7 +13989,7 @@ var ContextMenu = ({
|
|
|
13953
13989
|
if (!isOpen) {
|
|
13954
13990
|
return null;
|
|
13955
13991
|
}
|
|
13956
|
-
const menu = /* @__PURE__ */
|
|
13992
|
+
const menu = /* @__PURE__ */ jsx278(
|
|
13957
13993
|
Menu,
|
|
13958
13994
|
{
|
|
13959
13995
|
compact,
|
|
@@ -13965,7 +14001,7 @@ var ContextMenu = ({
|
|
|
13965
14001
|
}
|
|
13966
14002
|
},
|
|
13967
14003
|
side,
|
|
13968
|
-
trigger: /* @__PURE__ */
|
|
14004
|
+
trigger: /* @__PURE__ */ jsx278(
|
|
13969
14005
|
"button",
|
|
13970
14006
|
{
|
|
13971
14007
|
"aria-label": "context menu",
|
|
@@ -13993,7 +14029,7 @@ var ContextMenu = ({
|
|
|
13993
14029
|
import { useRef as useRef15 } from "react";
|
|
13994
14030
|
import { styled as styled58, keyframes as keyframes4 } from "styled-components";
|
|
13995
14031
|
import { isNotNil as isNotNil25 } from "@wistia/type-guards";
|
|
13996
|
-
import { jsx as
|
|
14032
|
+
import { jsx as jsx279, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
13997
14033
|
var pulse = keyframes4`
|
|
13998
14034
|
0%,
|
|
13999
14035
|
100% {
|
|
@@ -14136,7 +14172,7 @@ var DataCardInner = ({
|
|
|
14136
14172
|
$colorScheme: colorScheme,
|
|
14137
14173
|
...props,
|
|
14138
14174
|
children: [
|
|
14139
|
-
/* @__PURE__ */
|
|
14175
|
+
/* @__PURE__ */ jsx279(
|
|
14140
14176
|
StyledLabel3,
|
|
14141
14177
|
{
|
|
14142
14178
|
"data-wui-data-card-skeleton": isLoading,
|
|
@@ -14145,7 +14181,7 @@ var DataCardInner = ({
|
|
|
14145
14181
|
children: label
|
|
14146
14182
|
}
|
|
14147
14183
|
),
|
|
14148
|
-
/* @__PURE__ */
|
|
14184
|
+
/* @__PURE__ */ jsx279(
|
|
14149
14185
|
StyledValue,
|
|
14150
14186
|
{
|
|
14151
14187
|
"data-wui-data-card-skeleton": isLoading,
|
|
@@ -14154,8 +14190,8 @@ var DataCardInner = ({
|
|
|
14154
14190
|
children: value
|
|
14155
14191
|
}
|
|
14156
14192
|
),
|
|
14157
|
-
isNotNil25(upperRightSlot) && !isLoading && /* @__PURE__ */
|
|
14158
|
-
isNotNil25(subtitle) && !isLoading && /* @__PURE__ */
|
|
14193
|
+
isNotNil25(upperRightSlot) && !isLoading && /* @__PURE__ */ jsx279(StyledSlot, { children: upperRightSlot }),
|
|
14194
|
+
isNotNil25(subtitle) && !isLoading && /* @__PURE__ */ jsx279(
|
|
14159
14195
|
StyledSubtitle,
|
|
14160
14196
|
{
|
|
14161
14197
|
"data-wui-data-card-subtitle": true,
|
|
@@ -14163,7 +14199,7 @@ var DataCardInner = ({
|
|
|
14163
14199
|
children: subtitle
|
|
14164
14200
|
}
|
|
14165
14201
|
),
|
|
14166
|
-
isNotNil25(trend) && !isLoading && /* @__PURE__ */
|
|
14202
|
+
isNotNil25(trend) && !isLoading && /* @__PURE__ */ jsx279(StyledDataCardTrendContainer, { children: trend })
|
|
14167
14203
|
]
|
|
14168
14204
|
}
|
|
14169
14205
|
);
|
|
@@ -14171,12 +14207,12 @@ var DataCard = (props) => {
|
|
|
14171
14207
|
const ref = useRef15(null);
|
|
14172
14208
|
if (isNotNil25(props.href) || isNotNil25(props.onClick)) {
|
|
14173
14209
|
const { "aria-pressed": ariaPressed, ...dataCardProps } = props;
|
|
14174
|
-
return /* @__PURE__ */
|
|
14210
|
+
return /* @__PURE__ */ jsx279(ClickRegion, { targetRef: ref, children: /* @__PURE__ */ jsx279(
|
|
14175
14211
|
DataCardInner,
|
|
14176
14212
|
{
|
|
14177
14213
|
upperRightSlot: props.upperRightSlot,
|
|
14178
14214
|
...dataCardProps,
|
|
14179
|
-
label: /* @__PURE__ */
|
|
14215
|
+
label: /* @__PURE__ */ jsx279(
|
|
14180
14216
|
Button,
|
|
14181
14217
|
{
|
|
14182
14218
|
ref,
|
|
@@ -14193,13 +14229,13 @@ var DataCard = (props) => {
|
|
|
14193
14229
|
}
|
|
14194
14230
|
) });
|
|
14195
14231
|
}
|
|
14196
|
-
return /* @__PURE__ */
|
|
14232
|
+
return /* @__PURE__ */ jsx279(DataCardInner, { ...props });
|
|
14197
14233
|
};
|
|
14198
14234
|
DataCard.displayName = "DataCard_UI";
|
|
14199
14235
|
|
|
14200
14236
|
// src/components/DataCards/DataCards.tsx
|
|
14201
14237
|
import { styled as styled59 } from "styled-components";
|
|
14202
|
-
import { jsx as
|
|
14238
|
+
import { jsx as jsx280 } from "react/jsx-runtime";
|
|
14203
14239
|
var StyledDataCards = styled59(Box)`
|
|
14204
14240
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
14205
14241
|
--wui-data-cards-column-count: ${({ $columns }) => $columns === "auto" ? void 0 : $columns};
|
|
@@ -14224,7 +14260,7 @@ var DataCards = ({
|
|
|
14224
14260
|
}) => {
|
|
14225
14261
|
const responsiveCardMaxWidth = useResponsiveProp(cardMaxWidth);
|
|
14226
14262
|
const responsiveColumns = useResponsiveProp(columns);
|
|
14227
|
-
return /* @__PURE__ */
|
|
14263
|
+
return /* @__PURE__ */ jsx280(
|
|
14228
14264
|
StyledDataCards,
|
|
14229
14265
|
{
|
|
14230
14266
|
...props,
|
|
@@ -14244,7 +14280,7 @@ DataCards.displayName = "DataCards_UI";
|
|
|
14244
14280
|
|
|
14245
14281
|
// src/components/DataCards/DataCardTrend.tsx
|
|
14246
14282
|
import { styled as styled60 } from "styled-components";
|
|
14247
|
-
import { jsx as
|
|
14283
|
+
import { jsx as jsx281, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
14248
14284
|
var StyledDataCardTrend = styled60.div`
|
|
14249
14285
|
${({ $outlook }) => getColorScheme($outlook === "positive" ? "success" : "error")};
|
|
14250
14286
|
background: var(--wui-color-bg-app);
|
|
@@ -14261,7 +14297,7 @@ var DataCardTrend = ({
|
|
|
14261
14297
|
...props
|
|
14262
14298
|
}) => {
|
|
14263
14299
|
return /* @__PURE__ */ jsxs42(StyledDataCardTrend, { $outlook: outlook, children: [
|
|
14264
|
-
/* @__PURE__ */
|
|
14300
|
+
/* @__PURE__ */ jsx281(
|
|
14265
14301
|
Icon,
|
|
14266
14302
|
{
|
|
14267
14303
|
size: "md",
|
|
@@ -14269,7 +14305,7 @@ var DataCardTrend = ({
|
|
|
14269
14305
|
...props
|
|
14270
14306
|
}
|
|
14271
14307
|
),
|
|
14272
|
-
/* @__PURE__ */
|
|
14308
|
+
/* @__PURE__ */ jsx281(
|
|
14273
14309
|
Text,
|
|
14274
14310
|
{
|
|
14275
14311
|
prominence: "secondary",
|
|
@@ -14282,14 +14318,14 @@ var DataCardTrend = ({
|
|
|
14282
14318
|
|
|
14283
14319
|
// src/components/DataCards/DataCardHoverArrow.tsx
|
|
14284
14320
|
import { styled as styled61 } from "styled-components";
|
|
14285
|
-
import { jsx as
|
|
14321
|
+
import { jsx as jsx282 } from "react/jsx-runtime";
|
|
14286
14322
|
var StyledIconContainer = styled61.div`
|
|
14287
14323
|
display: flex;
|
|
14288
14324
|
align-items: center;
|
|
14289
14325
|
align-self: center;
|
|
14290
14326
|
height: 0;
|
|
14291
14327
|
`;
|
|
14292
|
-
var DataCardHoverArrow = () => /* @__PURE__ */
|
|
14328
|
+
var DataCardHoverArrow = () => /* @__PURE__ */ jsx282(StyledIconContainer, { children: /* @__PURE__ */ jsx282(
|
|
14293
14329
|
Icon,
|
|
14294
14330
|
{
|
|
14295
14331
|
"data-wui-data-card-hover-icon": true,
|
|
@@ -14300,7 +14336,7 @@ DataCardHoverArrow.displayName = "DataCardHoverArrow_UI";
|
|
|
14300
14336
|
|
|
14301
14337
|
// src/components/DataList/DataList.tsx
|
|
14302
14338
|
import { styled as styled62 } from "styled-components";
|
|
14303
|
-
import { jsx as
|
|
14339
|
+
import { jsx as jsx283 } from "react/jsx-runtime";
|
|
14304
14340
|
var StyledDataList = styled62.dl`
|
|
14305
14341
|
display: grid;
|
|
14306
14342
|
grid-template-columns: auto 1fr;
|
|
@@ -14329,7 +14365,7 @@ var DataList = ({
|
|
|
14329
14365
|
labelProminence = "primary",
|
|
14330
14366
|
...props
|
|
14331
14367
|
}) => {
|
|
14332
|
-
return /* @__PURE__ */
|
|
14368
|
+
return /* @__PURE__ */ jsx283(
|
|
14333
14369
|
StyledDataList,
|
|
14334
14370
|
{
|
|
14335
14371
|
role: "list",
|
|
@@ -14352,9 +14388,9 @@ var DataListItem = ({ children }) => {
|
|
|
14352
14388
|
DataListItem.displayName = "DataListItem_UI";
|
|
14353
14389
|
|
|
14354
14390
|
// src/components/DataList/DataListItemLabel.tsx
|
|
14355
|
-
import { jsx as
|
|
14391
|
+
import { jsx as jsx284 } from "react/jsx-runtime";
|
|
14356
14392
|
var DataListItemLabel = (props) => {
|
|
14357
|
-
return /* @__PURE__ */
|
|
14393
|
+
return /* @__PURE__ */ jsx284(
|
|
14358
14394
|
Text,
|
|
14359
14395
|
{
|
|
14360
14396
|
variant: "label4",
|
|
@@ -14366,9 +14402,9 @@ var DataListItemLabel = (props) => {
|
|
|
14366
14402
|
DataListItemLabel.displayName = "DataListItemLabel_UI";
|
|
14367
14403
|
|
|
14368
14404
|
// src/components/DataList/DataListItemValue.tsx
|
|
14369
|
-
import { jsx as
|
|
14405
|
+
import { jsx as jsx285 } from "react/jsx-runtime";
|
|
14370
14406
|
var DataListItemValue = (props) => {
|
|
14371
|
-
return /* @__PURE__ */
|
|
14407
|
+
return /* @__PURE__ */ jsx285(
|
|
14372
14408
|
Text,
|
|
14373
14409
|
{
|
|
14374
14410
|
variant: "body3",
|
|
@@ -14381,7 +14417,7 @@ DataListItemValue.displayName = "DataListItemValue_UI";
|
|
|
14381
14417
|
|
|
14382
14418
|
// src/components/Divider/Divider.tsx
|
|
14383
14419
|
import { styled as styled63, css as css33 } from "styled-components";
|
|
14384
|
-
import { jsx as
|
|
14420
|
+
import { jsx as jsx286 } from "react/jsx-runtime";
|
|
14385
14421
|
var horizontalBorderCss = css33`
|
|
14386
14422
|
border-top-color: var(--wui-color-border);
|
|
14387
14423
|
border-top-style: solid;
|
|
@@ -14408,7 +14444,7 @@ var DividerComponent = styled63.div`
|
|
|
14408
14444
|
`;
|
|
14409
14445
|
var Divider = ({ orientation = "horizontal", ...props }) => {
|
|
14410
14446
|
const responsiveOrientation = useResponsiveProp(orientation);
|
|
14411
|
-
return /* @__PURE__ */
|
|
14447
|
+
return /* @__PURE__ */ jsx286(
|
|
14412
14448
|
DividerComponent,
|
|
14413
14449
|
{
|
|
14414
14450
|
$orientation: responsiveOrientation,
|
|
@@ -14423,7 +14459,7 @@ Divider.displayName = "Divider_UI";
|
|
|
14423
14459
|
// src/components/EditableHeading/EditableHeading.tsx
|
|
14424
14460
|
import { styled as styled64, css as css34 } from "styled-components";
|
|
14425
14461
|
import { useState as useState18, useRef as useRef16 } from "react";
|
|
14426
|
-
import { Fragment as Fragment8, jsx as
|
|
14462
|
+
import { Fragment as Fragment8, jsx as jsx287, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
14427
14463
|
var StyledInput = styled64(Input)`
|
|
14428
14464
|
&:not([rows]) {
|
|
14429
14465
|
min-height: unset;
|
|
@@ -14483,7 +14519,9 @@ var EditableHeading = ({
|
|
|
14483
14519
|
const [headingHeight, setHeadingHeight] = useState18("60");
|
|
14484
14520
|
const headingRef = useRef16(null);
|
|
14485
14521
|
const handleSetEditing = (editing) => {
|
|
14486
|
-
if (editingDisabled)
|
|
14522
|
+
if (editingDisabled) {
|
|
14523
|
+
return;
|
|
14524
|
+
}
|
|
14487
14525
|
if (editing && headingRef.current) {
|
|
14488
14526
|
setHeadingHeight(`${headingRef.current.offsetHeight}`);
|
|
14489
14527
|
}
|
|
@@ -14514,7 +14552,7 @@ var EditableHeading = ({
|
|
|
14514
14552
|
handleSetEditing(false);
|
|
14515
14553
|
}
|
|
14516
14554
|
};
|
|
14517
|
-
const HeadingComponent2 = /* @__PURE__ */
|
|
14555
|
+
const HeadingComponent2 = /* @__PURE__ */ jsx287(
|
|
14518
14556
|
StyledHeading2,
|
|
14519
14557
|
{
|
|
14520
14558
|
ref: headingRef,
|
|
@@ -14528,7 +14566,7 @@ var EditableHeading = ({
|
|
|
14528
14566
|
return HeadingComponent2;
|
|
14529
14567
|
}
|
|
14530
14568
|
if (isEditing || __forceEditing) {
|
|
14531
|
-
return /* @__PURE__ */
|
|
14569
|
+
return /* @__PURE__ */ jsx287(
|
|
14532
14570
|
StyledInput,
|
|
14533
14571
|
{
|
|
14534
14572
|
$height: headingHeight,
|
|
@@ -14548,8 +14586,8 @@ var EditableHeading = ({
|
|
|
14548
14586
|
);
|
|
14549
14587
|
}
|
|
14550
14588
|
return /* @__PURE__ */ jsxs43(Fragment8, { children: [
|
|
14551
|
-
/* @__PURE__ */
|
|
14552
|
-
/* @__PURE__ */
|
|
14589
|
+
/* @__PURE__ */ jsx287(Tooltip, { content: tooltipText, children: HeadingComponent2 }),
|
|
14590
|
+
/* @__PURE__ */ jsx287(ScreenReaderOnly, { children: /* @__PURE__ */ jsx287(
|
|
14553
14591
|
"button",
|
|
14554
14592
|
{
|
|
14555
14593
|
"aria-label": ariaLabel,
|
|
@@ -14569,7 +14607,7 @@ import { isNotNil as isNotNil26 } from "@wistia/type-guards";
|
|
|
14569
14607
|
import { createContext as createContext7, useMemo as useMemo13, useState as useState19, useCallback as useCallback16, useId as useId4 } from "react";
|
|
14570
14608
|
import { isNonEmptyString as isNonEmptyString6 } from "@wistia/type-guards";
|
|
14571
14609
|
import { styled as styled65 } from "styled-components";
|
|
14572
|
-
import { jsx as
|
|
14610
|
+
import { jsx as jsx288 } from "react/jsx-runtime";
|
|
14573
14611
|
var LARGE_PADDING = "var(--wui-space-02)";
|
|
14574
14612
|
var SMALL_PADDING = "var(--wui-space-01)";
|
|
14575
14613
|
var getPaddingForVariant = (variant) => {
|
|
@@ -14702,7 +14740,7 @@ var EditableTextRoot = ({
|
|
|
14702
14740
|
}
|
|
14703
14741
|
return "idle";
|
|
14704
14742
|
};
|
|
14705
|
-
return /* @__PURE__ */
|
|
14743
|
+
return /* @__PURE__ */ jsx288(
|
|
14706
14744
|
StyledEditableTextRoot,
|
|
14707
14745
|
{
|
|
14708
14746
|
$typographicVariant: typographicVariant,
|
|
@@ -14710,13 +14748,13 @@ var EditableTextRoot = ({
|
|
|
14710
14748
|
"data-wui-editable-text-root": true,
|
|
14711
14749
|
"data-wui-editable-text-state": getState(),
|
|
14712
14750
|
...props,
|
|
14713
|
-
children: /* @__PURE__ */
|
|
14751
|
+
children: /* @__PURE__ */ jsx288(EditableTextContext.Provider, { value: context, children })
|
|
14714
14752
|
}
|
|
14715
14753
|
);
|
|
14716
14754
|
};
|
|
14717
14755
|
|
|
14718
14756
|
// src/components/EditableText/EditableTextDisplay.tsx
|
|
14719
|
-
import { jsx as
|
|
14757
|
+
import { jsx as jsx289, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
14720
14758
|
var StyledEditableTextDisplay = styled66.div`
|
|
14721
14759
|
${({ $typographicVariant }) => getTypographicStyles($typographicVariant)}
|
|
14722
14760
|
padding: var(--wui-editable-text-padding);
|
|
@@ -14765,12 +14803,12 @@ var EditableTextDisplayComponent = forwardRef21(
|
|
|
14765
14803
|
};
|
|
14766
14804
|
const elementType = renderAs ?? getDefaultTypographicElement(typographicVariant);
|
|
14767
14805
|
const displayText = value.length > 0 ? value : placeholder;
|
|
14768
|
-
const isPlaceholderVisible = value.length === 0 &&
|
|
14806
|
+
const isPlaceholderVisible = value.length === 0 && Boolean(placeholder);
|
|
14769
14807
|
if (isEditing) {
|
|
14770
14808
|
return null;
|
|
14771
14809
|
}
|
|
14772
14810
|
if (asTrigger && !context.readOnly) {
|
|
14773
|
-
return /* @__PURE__ */
|
|
14811
|
+
return /* @__PURE__ */ jsx289(ClickRegion, { targetRef: triggerButtonRef, children: /* @__PURE__ */ jsxs44(
|
|
14774
14812
|
StyledEditableTextDisplay,
|
|
14775
14813
|
{
|
|
14776
14814
|
ref,
|
|
@@ -14782,7 +14820,7 @@ var EditableTextDisplayComponent = forwardRef21(
|
|
|
14782
14820
|
...props,
|
|
14783
14821
|
children: [
|
|
14784
14822
|
displayText,
|
|
14785
|
-
/* @__PURE__ */
|
|
14823
|
+
/* @__PURE__ */ jsx289(
|
|
14786
14824
|
"button",
|
|
14787
14825
|
{
|
|
14788
14826
|
ref: triggerButtonRef,
|
|
@@ -14796,7 +14834,7 @@ var EditableTextDisplayComponent = forwardRef21(
|
|
|
14796
14834
|
}
|
|
14797
14835
|
) });
|
|
14798
14836
|
}
|
|
14799
|
-
return /* @__PURE__ */
|
|
14837
|
+
return /* @__PURE__ */ jsx289(
|
|
14800
14838
|
StyledEditableTextDisplay,
|
|
14801
14839
|
{
|
|
14802
14840
|
ref,
|
|
@@ -14822,7 +14860,7 @@ var EditableTextDisplay = makePolymorphic(
|
|
|
14822
14860
|
import { useContext as useContext7, useEffect as useEffect17, useRef as useRef18 } from "react";
|
|
14823
14861
|
import { styled as styled67 } from "styled-components";
|
|
14824
14862
|
import { isNotNil as isNotNil27 } from "@wistia/type-guards";
|
|
14825
|
-
import { jsx as
|
|
14863
|
+
import { jsx as jsx290 } from "react/jsx-runtime";
|
|
14826
14864
|
var StyledInput2 = styled67(Input)`
|
|
14827
14865
|
&& {
|
|
14828
14866
|
${({ $minLines }) => isNotNil27($minLines) && `min-height: calc(${$minLines}lh + calc(var(--wui-editable-text-padding) * 2));`}
|
|
@@ -14910,8 +14948,10 @@ var EditableTextInput = (props) => {
|
|
|
14910
14948
|
}, 0);
|
|
14911
14949
|
}
|
|
14912
14950
|
};
|
|
14913
|
-
if (!isEditing)
|
|
14914
|
-
|
|
14951
|
+
if (!isEditing) {
|
|
14952
|
+
return null;
|
|
14953
|
+
}
|
|
14954
|
+
return /* @__PURE__ */ jsx290(
|
|
14915
14955
|
StyledInput2,
|
|
14916
14956
|
{
|
|
14917
14957
|
ref: inputRef,
|
|
@@ -14937,14 +14977,14 @@ var EditableTextInput = (props) => {
|
|
|
14937
14977
|
|
|
14938
14978
|
// src/components/EditableText/EditableTextLabel.tsx
|
|
14939
14979
|
import { useContext as useContext8 } from "react";
|
|
14940
|
-
import { jsx as
|
|
14980
|
+
import { jsx as jsx291 } from "react/jsx-runtime";
|
|
14941
14981
|
var EditableTextLabel = ({ ...props }) => {
|
|
14942
14982
|
const context = useContext8(EditableTextContext);
|
|
14943
14983
|
if (!context) {
|
|
14944
14984
|
throw new Error("EditableTextLabel must be used within an EditableTextRoot context");
|
|
14945
14985
|
}
|
|
14946
14986
|
const { id, label, isEditing } = context;
|
|
14947
|
-
return /* @__PURE__ */
|
|
14987
|
+
return /* @__PURE__ */ jsx291(
|
|
14948
14988
|
Label,
|
|
14949
14989
|
{
|
|
14950
14990
|
...isEditing && { htmlFor: id },
|
|
@@ -14955,11 +14995,11 @@ var EditableTextLabel = ({ ...props }) => {
|
|
|
14955
14995
|
};
|
|
14956
14996
|
|
|
14957
14997
|
// src/components/EditableText/EditableText.tsx
|
|
14958
|
-
import { jsx as
|
|
14998
|
+
import { jsx as jsx292, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
14959
14999
|
var EditableText = ({ hideLabel = true, ...props }) => /* @__PURE__ */ jsxs45(EditableTextRoot, { ...props, children: [
|
|
14960
|
-
/* @__PURE__ */
|
|
14961
|
-
/* @__PURE__ */
|
|
14962
|
-
/* @__PURE__ */
|
|
15000
|
+
/* @__PURE__ */ jsx292(EditableTextLabel, { screenReaderOnly: hideLabel }),
|
|
15001
|
+
/* @__PURE__ */ jsx292(EditableTextInput, {}),
|
|
15002
|
+
/* @__PURE__ */ jsx292(EditableTextDisplay, { asTrigger: true })
|
|
14963
15003
|
] });
|
|
14964
15004
|
EditableText.displayName = "EditableText_UI";
|
|
14965
15005
|
|
|
@@ -14991,7 +15031,9 @@ var EditableTextSubmitButton = ({
|
|
|
14991
15031
|
onClick: handleClick,
|
|
14992
15032
|
"data-wui-editable-text-submit": true
|
|
14993
15033
|
};
|
|
14994
|
-
if (!isEditing)
|
|
15034
|
+
if (!isEditing) {
|
|
15035
|
+
return null;
|
|
15036
|
+
}
|
|
14995
15037
|
return cloneElement5(onlyChild, triggerProps);
|
|
14996
15038
|
};
|
|
14997
15039
|
|
|
@@ -15021,7 +15063,9 @@ var EditableTextCancelButton = ({
|
|
|
15021
15063
|
onClick: handleClick,
|
|
15022
15064
|
"data-wui-editable-text-cancel": true
|
|
15023
15065
|
};
|
|
15024
|
-
if (!isEditing)
|
|
15066
|
+
if (!isEditing) {
|
|
15067
|
+
return null;
|
|
15068
|
+
}
|
|
15025
15069
|
return cloneElement6(onlyChild, triggerProps);
|
|
15026
15070
|
};
|
|
15027
15071
|
|
|
@@ -15045,7 +15089,9 @@ var EditableTextTrigger = ({
|
|
|
15045
15089
|
"data-wui-editable-text-trigger": true,
|
|
15046
15090
|
...props
|
|
15047
15091
|
};
|
|
15048
|
-
if (isEditing)
|
|
15092
|
+
if (isEditing) {
|
|
15093
|
+
return null;
|
|
15094
|
+
}
|
|
15049
15095
|
return cloneElement7(onlyChild, triggerProps);
|
|
15050
15096
|
};
|
|
15051
15097
|
|
|
@@ -15088,9 +15134,9 @@ var useFormState = (action, initialData = {}) => {
|
|
|
15088
15134
|
// src/components/Form/FormErrorSummary.tsx
|
|
15089
15135
|
import { useContext as useContext12, useRef as useRef19 } from "react";
|
|
15090
15136
|
import { isArray as isArray3, isNotUndefined as isNotUndefined11 } from "@wistia/type-guards";
|
|
15091
|
-
import { jsx as
|
|
15137
|
+
import { jsx as jsx293, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
15092
15138
|
var ErrorItem = ({ name, error, formId }) => {
|
|
15093
|
-
return /* @__PURE__ */
|
|
15139
|
+
return /* @__PURE__ */ jsx293("li", { children: /* @__PURE__ */ jsx293(Link, { href: `#${formId}-${name}`, children: error }) }, name);
|
|
15094
15140
|
};
|
|
15095
15141
|
var FormErrorSummary = ({ description }) => {
|
|
15096
15142
|
const ref = useRef19(null);
|
|
@@ -15100,9 +15146,9 @@ var FormErrorSummary = ({ description }) => {
|
|
|
15100
15146
|
return null;
|
|
15101
15147
|
}
|
|
15102
15148
|
return /* @__PURE__ */ jsxs46("div", { ref, children: [
|
|
15103
|
-
/* @__PURE__ */
|
|
15104
|
-
/* @__PURE__ */
|
|
15105
|
-
([name, error]) => isArray3(error) ? error.map((err) => /* @__PURE__ */
|
|
15149
|
+
/* @__PURE__ */ jsx293("p", { children: description }),
|
|
15150
|
+
/* @__PURE__ */ jsx293("ul", { children: Object.entries(errors).filter(([, error]) => isNotUndefined11(error)).map(
|
|
15151
|
+
([name, error]) => isArray3(error) ? error.map((err) => /* @__PURE__ */ jsx293(
|
|
15106
15152
|
ErrorItem,
|
|
15107
15153
|
{
|
|
15108
15154
|
error: err,
|
|
@@ -15110,7 +15156,7 @@ var FormErrorSummary = ({ description }) => {
|
|
|
15110
15156
|
name
|
|
15111
15157
|
},
|
|
15112
15158
|
err
|
|
15113
|
-
)) : /* @__PURE__ */
|
|
15159
|
+
)) : /* @__PURE__ */ jsx293(
|
|
15114
15160
|
ErrorItem,
|
|
15115
15161
|
{
|
|
15116
15162
|
error: error ?? "",
|
|
@@ -15127,7 +15173,7 @@ var FormErrorSummary = ({ description }) => {
|
|
|
15127
15173
|
import { Children as Children10, cloneElement as cloneElement8, useContext as useContext13 } from "react";
|
|
15128
15174
|
import { styled as styled68, css as css36 } from "styled-components";
|
|
15129
15175
|
import { isArray as isArray4, isNotNil as isNotNil28, isNotUndefined as isNotUndefined12, isUndefined as isUndefined4 } from "@wistia/type-guards";
|
|
15130
|
-
import { jsx as
|
|
15176
|
+
import { jsx as jsx294, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
15131
15177
|
var inlineErrorStyles = css36`
|
|
15132
15178
|
grid-template-rows: 1fr auto;
|
|
15133
15179
|
grid-template-areas: 'label-description input' '. error';
|
|
@@ -15190,7 +15236,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
15190
15236
|
const isErrorArray = isArray4(errors);
|
|
15191
15237
|
const isMultipleErrors = isErrorArray && errors.length > 1;
|
|
15192
15238
|
if (!isErrorArray) {
|
|
15193
|
-
return /* @__PURE__ */
|
|
15239
|
+
return /* @__PURE__ */ jsx294(
|
|
15194
15240
|
ErrorText,
|
|
15195
15241
|
{
|
|
15196
15242
|
colorScheme: "error",
|
|
@@ -15203,7 +15249,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
15203
15249
|
);
|
|
15204
15250
|
}
|
|
15205
15251
|
if (!isMultipleErrors) {
|
|
15206
|
-
return /* @__PURE__ */
|
|
15252
|
+
return /* @__PURE__ */ jsx294(
|
|
15207
15253
|
ErrorText,
|
|
15208
15254
|
{
|
|
15209
15255
|
colorScheme: "error",
|
|
@@ -15215,7 +15261,7 @@ var ErrorMessages = ({ errors, id }) => {
|
|
|
15215
15261
|
id
|
|
15216
15262
|
);
|
|
15217
15263
|
}
|
|
15218
|
-
return /* @__PURE__ */
|
|
15264
|
+
return /* @__PURE__ */ jsx294(StyledErrorList, { children: errors.map((error, index) => /* @__PURE__ */ jsx294(
|
|
15219
15265
|
Text,
|
|
15220
15266
|
{
|
|
15221
15267
|
colorScheme: "error",
|
|
@@ -15300,7 +15346,7 @@ var FormField = ({
|
|
|
15300
15346
|
gridArea: "label-description"
|
|
15301
15347
|
},
|
|
15302
15348
|
children: [
|
|
15303
|
-
!isIntegratedLabel && /* @__PURE__ */
|
|
15349
|
+
!isIntegratedLabel && /* @__PURE__ */ jsx294(
|
|
15304
15350
|
Label,
|
|
15305
15351
|
{
|
|
15306
15352
|
htmlFor: computedId,
|
|
@@ -15308,12 +15354,12 @@ var FormField = ({
|
|
|
15308
15354
|
children: label
|
|
15309
15355
|
}
|
|
15310
15356
|
),
|
|
15311
|
-
hasDescription ? /* @__PURE__ */
|
|
15357
|
+
hasDescription ? /* @__PURE__ */ jsx294(FormControlLabelDescription, { id: descriptionId, children: description }) : null
|
|
15312
15358
|
]
|
|
15313
15359
|
}
|
|
15314
15360
|
) : null,
|
|
15315
15361
|
cloneElement8(children, childProps),
|
|
15316
|
-
hasError ? /* @__PURE__ */
|
|
15362
|
+
hasError ? /* @__PURE__ */ jsx294(
|
|
15317
15363
|
ErrorMessages,
|
|
15318
15364
|
{
|
|
15319
15365
|
errors: computedError,
|
|
@@ -15328,7 +15374,7 @@ FormField.displayName = "FormField_UI";
|
|
|
15328
15374
|
|
|
15329
15375
|
// src/components/FormGroup/RadioGroup.tsx
|
|
15330
15376
|
import { createContext as createContext8, useMemo as useMemo14, useContext as useContext14 } from "react";
|
|
15331
|
-
import { jsx as
|
|
15377
|
+
import { jsx as jsx295 } from "react/jsx-runtime";
|
|
15332
15378
|
var RadioGroupContext = createContext8(null);
|
|
15333
15379
|
var useRadioGroup = () => {
|
|
15334
15380
|
return useContext14(RadioGroupContext);
|
|
@@ -15349,7 +15395,7 @@ var RadioGroup = ({
|
|
|
15349
15395
|
value: derivedValue
|
|
15350
15396
|
};
|
|
15351
15397
|
}, [name, derivedValue, onChange]);
|
|
15352
|
-
return /* @__PURE__ */
|
|
15398
|
+
return /* @__PURE__ */ jsx295(RadioGroupContext.Provider, { value: context, children: /* @__PURE__ */ jsx295(FormGroup, { ...props, children }) });
|
|
15353
15399
|
};
|
|
15354
15400
|
RadioGroup.displayName = "RadioGroup_UI";
|
|
15355
15401
|
|
|
@@ -15357,7 +15403,7 @@ RadioGroup.displayName = "RadioGroup_UI";
|
|
|
15357
15403
|
import { forwardRef as forwardRef22 } from "react";
|
|
15358
15404
|
import { styled as styled69, css as css37 } from "styled-components";
|
|
15359
15405
|
import { isRecord as isRecord5 } from "@wistia/type-guards";
|
|
15360
|
-
import { jsx as
|
|
15406
|
+
import { jsx as jsx296 } from "react/jsx-runtime";
|
|
15361
15407
|
var DEFAULT_ELEMENT5 = "div";
|
|
15362
15408
|
var getGridTemplateColumns = (maxColumns, minChildWidth, expandItems) => {
|
|
15363
15409
|
if (minChildWidth === "auto" && maxColumns === "auto") {
|
|
@@ -15409,7 +15455,7 @@ var GridComponent = forwardRef22(
|
|
|
15409
15455
|
const { column, row } = isRecord5(responsiveGap) ? responsiveGap : { column: responsiveGap, row: responsiveGap };
|
|
15410
15456
|
const responsiveColumns = useResponsiveProp(columns);
|
|
15411
15457
|
const responsiveMinChildWidth = useResponsiveProp(minChildWidth);
|
|
15412
|
-
return /* @__PURE__ */
|
|
15458
|
+
return /* @__PURE__ */ jsx296(
|
|
15413
15459
|
StyledGrid,
|
|
15414
15460
|
{
|
|
15415
15461
|
ref,
|
|
@@ -15432,7 +15478,7 @@ var Grid = makePolymorphic(GridComponent);
|
|
|
15432
15478
|
import { styled as styled70 } from "styled-components";
|
|
15433
15479
|
import { forwardRef as forwardRef23, useEffect as useEffect18, useState as useState21 } from "react";
|
|
15434
15480
|
import { isFunction as isFunction3 } from "@wistia/type-guards";
|
|
15435
|
-
import { jsx as
|
|
15481
|
+
import { jsx as jsx297 } from "react/jsx-runtime";
|
|
15436
15482
|
var StyledIconButton = styled70(IconButton)`
|
|
15437
15483
|
/* override size for icon button since prop gets changed by Input */
|
|
15438
15484
|
height: var(--icon-button-size-sm);
|
|
@@ -15472,7 +15518,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
15472
15518
|
return value;
|
|
15473
15519
|
});
|
|
15474
15520
|
};
|
|
15475
|
-
return /* @__PURE__ */
|
|
15521
|
+
return /* @__PURE__ */ jsx297(
|
|
15476
15522
|
Input,
|
|
15477
15523
|
{
|
|
15478
15524
|
"aria-label": "Click to Copy",
|
|
@@ -15480,7 +15526,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
15480
15526
|
ref,
|
|
15481
15527
|
disabled,
|
|
15482
15528
|
readOnly: true,
|
|
15483
|
-
rightIcon: /* @__PURE__ */
|
|
15529
|
+
rightIcon: /* @__PURE__ */ jsx297(
|
|
15484
15530
|
StyledIconButton,
|
|
15485
15531
|
{
|
|
15486
15532
|
colorScheme: isCopied ? "success" : "inherit",
|
|
@@ -15488,7 +15534,7 @@ var InputClickToCopy = forwardRef23(
|
|
|
15488
15534
|
label: "Copy to clipboard",
|
|
15489
15535
|
onClick: handleClick,
|
|
15490
15536
|
variant: "ghost",
|
|
15491
|
-
children: isCopied ? /* @__PURE__ */
|
|
15537
|
+
children: isCopied ? /* @__PURE__ */ jsx297(Icon, { type: "checkmark-circle" }) : /* @__PURE__ */ jsx297(Icon, { type: "save-as-copy" })
|
|
15492
15538
|
}
|
|
15493
15539
|
),
|
|
15494
15540
|
value
|
|
@@ -15502,7 +15548,7 @@ InputClickToCopy.displayName = "InputClickToCopy_UI";
|
|
|
15502
15548
|
import { styled as styled71 } from "styled-components";
|
|
15503
15549
|
import { forwardRef as forwardRef24, useState as useState22 } from "react";
|
|
15504
15550
|
import { isFunction as isFunction4 } from "@wistia/type-guards";
|
|
15505
|
-
import { jsx as
|
|
15551
|
+
import { jsx as jsx298 } from "react/jsx-runtime";
|
|
15506
15552
|
var StyledIconButton2 = styled71(IconButton)`
|
|
15507
15553
|
/* override size for icon button since prop gets changed by Input */
|
|
15508
15554
|
height: var(--icon-button-size-sm);
|
|
@@ -15521,13 +15567,13 @@ var InputPassword = forwardRef24(
|
|
|
15521
15567
|
onVisibilityToggle(newVisibility);
|
|
15522
15568
|
}
|
|
15523
15569
|
};
|
|
15524
|
-
return /* @__PURE__ */
|
|
15570
|
+
return /* @__PURE__ */ jsx298(
|
|
15525
15571
|
Input,
|
|
15526
15572
|
{
|
|
15527
15573
|
...props,
|
|
15528
15574
|
ref,
|
|
15529
15575
|
disabled,
|
|
15530
|
-
rightIcon: /* @__PURE__ */
|
|
15576
|
+
rightIcon: /* @__PURE__ */ jsx298(
|
|
15531
15577
|
StyledIconButton2,
|
|
15532
15578
|
{
|
|
15533
15579
|
disabled,
|
|
@@ -15535,7 +15581,7 @@ var InputPassword = forwardRef24(
|
|
|
15535
15581
|
onClick: handleClick,
|
|
15536
15582
|
tabIndex: disabled ? -1 : 0,
|
|
15537
15583
|
variant: "ghost",
|
|
15538
|
-
children: /* @__PURE__ */
|
|
15584
|
+
children: /* @__PURE__ */ jsx298(Icon, { type: isVisible ? "preview" : "hide" })
|
|
15539
15585
|
}
|
|
15540
15586
|
),
|
|
15541
15587
|
type: isVisible ? "text" : "password"
|
|
@@ -15548,7 +15594,7 @@ InputPassword.displayName = "InputPassword_UI";
|
|
|
15548
15594
|
// src/components/KeyboardShortcut/KeyboardShortcut.tsx
|
|
15549
15595
|
import { styled as styled72 } from "styled-components";
|
|
15550
15596
|
import { isNotNil as isNotNil29 } from "@wistia/type-guards";
|
|
15551
|
-
import { jsx as
|
|
15597
|
+
import { jsx as jsx299, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
15552
15598
|
var StyledKeyboardShortcut = styled72.div`
|
|
15553
15599
|
align-items: center;
|
|
15554
15600
|
display: flex;
|
|
@@ -15641,8 +15687,8 @@ var KeyboardShortcut = ({
|
|
|
15641
15687
|
$fullWidth: fullWidth,
|
|
15642
15688
|
...otherProps,
|
|
15643
15689
|
children: [
|
|
15644
|
-
isNotNil29(label) && /* @__PURE__ */
|
|
15645
|
-
/* @__PURE__ */
|
|
15690
|
+
isNotNil29(label) && /* @__PURE__ */ jsx299(Label2, { children: label }),
|
|
15691
|
+
/* @__PURE__ */ jsx299(KeysContainer, { children: (Array.isArray(keyboardKeys) ? keyboardKeys : [keyboardKeys]).map((keyboardKey, index) => /* @__PURE__ */ jsx299(
|
|
15646
15692
|
StyledKey,
|
|
15647
15693
|
{
|
|
15648
15694
|
children: keyToString(keyboardKey)
|
|
@@ -15661,7 +15707,7 @@ import { styled as styled74, css as css38 } from "styled-components";
|
|
|
15661
15707
|
// src/components/List/ListItem.tsx
|
|
15662
15708
|
import { styled as styled73 } from "styled-components";
|
|
15663
15709
|
import { isNil as isNil17 } from "@wistia/type-guards";
|
|
15664
|
-
import { jsx as
|
|
15710
|
+
import { jsx as jsx300 } from "react/jsx-runtime";
|
|
15665
15711
|
var ListItemComponent = styled73.li`
|
|
15666
15712
|
margin-bottom: var(--wui-space-02);
|
|
15667
15713
|
`;
|
|
@@ -15669,12 +15715,12 @@ var ListItem = ({ children }) => {
|
|
|
15669
15715
|
if (isNil17(children)) {
|
|
15670
15716
|
return null;
|
|
15671
15717
|
}
|
|
15672
|
-
return /* @__PURE__ */
|
|
15718
|
+
return /* @__PURE__ */ jsx300(ListItemComponent, { children });
|
|
15673
15719
|
};
|
|
15674
15720
|
ListItem.displayName = "ListItem_UI";
|
|
15675
15721
|
|
|
15676
15722
|
// src/components/List/List.tsx
|
|
15677
|
-
import { jsx as
|
|
15723
|
+
import { jsx as jsx301, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
15678
15724
|
var spacesStyle = css38`
|
|
15679
15725
|
overflow: hidden;
|
|
15680
15726
|
padding-left: 0;
|
|
@@ -15760,7 +15806,7 @@ var ListComponent = styled74.ul`
|
|
|
15760
15806
|
`;
|
|
15761
15807
|
var renderListComponent = (listItems, variant, { ...otherProps }) => {
|
|
15762
15808
|
const elementType = variant === "ordered" ? "ol" : "ul";
|
|
15763
|
-
return /* @__PURE__ */
|
|
15809
|
+
return /* @__PURE__ */ jsx301(
|
|
15764
15810
|
ListComponent,
|
|
15765
15811
|
{
|
|
15766
15812
|
as: elementType,
|
|
@@ -15785,7 +15831,7 @@ var renderListFromArray = (listItems, variant, otherProps) => {
|
|
|
15785
15831
|
if (Array.isArray(item)) {
|
|
15786
15832
|
return null;
|
|
15787
15833
|
}
|
|
15788
|
-
return /* @__PURE__ */
|
|
15834
|
+
return /* @__PURE__ */ jsx301(ListItem, { children: item }, key);
|
|
15789
15835
|
});
|
|
15790
15836
|
return renderListComponent(items, variant, otherProps);
|
|
15791
15837
|
};
|
|
@@ -15814,7 +15860,7 @@ List.displayName = "List_UI";
|
|
|
15814
15860
|
|
|
15815
15861
|
// src/components/Mark/Mark.tsx
|
|
15816
15862
|
import { styled as styled75 } from "styled-components";
|
|
15817
|
-
import { jsx as
|
|
15863
|
+
import { jsx as jsx302 } from "react/jsx-runtime";
|
|
15818
15864
|
var StyledMark = styled75.mark`
|
|
15819
15865
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
15820
15866
|
background-color: var(--wui-color-bg-surface-tertiary);
|
|
@@ -15823,7 +15869,7 @@ var StyledMark = styled75.mark`
|
|
|
15823
15869
|
padding-inline: 0.1em;
|
|
15824
15870
|
margin-inline: -0.1em;
|
|
15825
15871
|
`;
|
|
15826
|
-
var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */
|
|
15872
|
+
var Mark = ({ children, colorScheme = "inherit", ...props }) => /* @__PURE__ */ jsx302(
|
|
15827
15873
|
StyledMark,
|
|
15828
15874
|
{
|
|
15829
15875
|
$colorScheme: colorScheme,
|
|
@@ -15846,24 +15892,24 @@ import { Title as DialogTitle } from "@radix-ui/react-dialog";
|
|
|
15846
15892
|
// src/components/Modal/ModalCloseButton.tsx
|
|
15847
15893
|
import { styled as styled76 } from "styled-components";
|
|
15848
15894
|
import { Close as DialogClose } from "@radix-ui/react-dialog";
|
|
15849
|
-
import { jsx as
|
|
15895
|
+
import { jsx as jsx303 } from "react/jsx-runtime";
|
|
15850
15896
|
var CloseButton = styled76(DialogClose)`
|
|
15851
15897
|
align-self: start;
|
|
15852
15898
|
`;
|
|
15853
15899
|
var ModalCloseButton = () => {
|
|
15854
|
-
return /* @__PURE__ */
|
|
15900
|
+
return /* @__PURE__ */ jsx303(CloseButton, { asChild: true, children: /* @__PURE__ */ jsx303(
|
|
15855
15901
|
IconButton,
|
|
15856
15902
|
{
|
|
15857
15903
|
label: "Dismiss modal",
|
|
15858
15904
|
size: "sm",
|
|
15859
15905
|
variant: "ghost",
|
|
15860
|
-
children: /* @__PURE__ */
|
|
15906
|
+
children: /* @__PURE__ */ jsx303(Icon, { type: "close" })
|
|
15861
15907
|
}
|
|
15862
15908
|
) });
|
|
15863
15909
|
};
|
|
15864
15910
|
|
|
15865
15911
|
// src/components/Modal/ModalHeader.tsx
|
|
15866
|
-
import { jsx as
|
|
15912
|
+
import { jsx as jsx304, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
15867
15913
|
var Header = styled77.header`
|
|
15868
15914
|
display: flex;
|
|
15869
15915
|
order: 1;
|
|
@@ -15895,7 +15941,7 @@ var ModalHeader = ({
|
|
|
15895
15941
|
hideTitle,
|
|
15896
15942
|
hideCloseButton
|
|
15897
15943
|
}) => {
|
|
15898
|
-
const TitleComponent = hideTitle ? /* @__PURE__ */
|
|
15944
|
+
const TitleComponent = hideTitle ? /* @__PURE__ */ jsx304(ScreenReaderOnly, { children: /* @__PURE__ */ jsx304(Title, { children: title }) }) : /* @__PURE__ */ jsx304(Title, { children: title });
|
|
15899
15945
|
return /* @__PURE__ */ jsxs50(
|
|
15900
15946
|
Header,
|
|
15901
15947
|
{
|
|
@@ -15903,7 +15949,7 @@ var ModalHeader = ({
|
|
|
15903
15949
|
$hideTitle: hideTitle,
|
|
15904
15950
|
children: [
|
|
15905
15951
|
TitleComponent,
|
|
15906
|
-
hideCloseButton ? null : /* @__PURE__ */
|
|
15952
|
+
hideCloseButton ? null : /* @__PURE__ */ jsx304(ModalCloseButton, {})
|
|
15907
15953
|
]
|
|
15908
15954
|
}
|
|
15909
15955
|
);
|
|
@@ -15914,6 +15960,9 @@ import { forwardRef as forwardRef25 } from "react";
|
|
|
15914
15960
|
import { styled as styled78, css as css39, keyframes as keyframes5 } from "styled-components";
|
|
15915
15961
|
import { Content as DialogContent } from "@radix-ui/react-dialog";
|
|
15916
15962
|
|
|
15963
|
+
// src/components/Modal/constants.ts
|
|
15964
|
+
var DEFAULT_MODAL_WIDTH = "532px";
|
|
15965
|
+
|
|
15917
15966
|
// src/private/hooks/useFocusRestore/useFocusRestore.ts
|
|
15918
15967
|
import { useRef as useRef20, useEffect as useEffect19 } from "react";
|
|
15919
15968
|
import { isNotNil as isNotNil31 } from "@wistia/type-guards";
|
|
@@ -15934,7 +15983,7 @@ var useFocusRestore = () => {
|
|
|
15934
15983
|
};
|
|
15935
15984
|
|
|
15936
15985
|
// src/components/Modal/ModalContent.tsx
|
|
15937
|
-
import { jsx as
|
|
15986
|
+
import { jsx as jsx305 } from "react/jsx-runtime";
|
|
15938
15987
|
var modalEnter = keyframes5`
|
|
15939
15988
|
from {
|
|
15940
15989
|
opacity: 0;
|
|
@@ -16062,7 +16111,7 @@ var StyledModalContent = styled78(DialogContent)`
|
|
|
16062
16111
|
var ModalContent = forwardRef25(
|
|
16063
16112
|
({ width, positionVariant = "fixed-top", children, ...props }, ref) => {
|
|
16064
16113
|
useFocusRestore();
|
|
16065
|
-
return /* @__PURE__ */
|
|
16114
|
+
return /* @__PURE__ */ jsx305(
|
|
16066
16115
|
StyledModalContent,
|
|
16067
16116
|
{
|
|
16068
16117
|
ref,
|
|
@@ -16110,8 +16159,7 @@ var ModalOverlay = styled79(DialogOverlay)`
|
|
|
16110
16159
|
`;
|
|
16111
16160
|
|
|
16112
16161
|
// src/components/Modal/Modal.tsx
|
|
16113
|
-
import { jsx as
|
|
16114
|
-
var DEFAULT_MODAL_WIDTH = "532px";
|
|
16162
|
+
import { jsx as jsx306, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
16115
16163
|
var ModalBody = styled80.div`
|
|
16116
16164
|
flex-direction: column;
|
|
16117
16165
|
display: flex;
|
|
@@ -16141,7 +16189,7 @@ var Modal = forwardRef26(
|
|
|
16141
16189
|
width = DEFAULT_MODAL_WIDTH,
|
|
16142
16190
|
...props
|
|
16143
16191
|
}, ref) => {
|
|
16144
|
-
return /* @__PURE__ */
|
|
16192
|
+
return /* @__PURE__ */ jsx306(
|
|
16145
16193
|
DialogRoot,
|
|
16146
16194
|
{
|
|
16147
16195
|
onOpenChange: (open2) => {
|
|
@@ -16151,7 +16199,7 @@ var Modal = forwardRef26(
|
|
|
16151
16199
|
},
|
|
16152
16200
|
open: isOpen,
|
|
16153
16201
|
children: /* @__PURE__ */ jsxs51(DialogPortal, { children: [
|
|
16154
|
-
/* @__PURE__ */
|
|
16202
|
+
/* @__PURE__ */ jsx306(ModalOverlay, {}),
|
|
16155
16203
|
/* @__PURE__ */ jsxs51(
|
|
16156
16204
|
ModalContent,
|
|
16157
16205
|
{
|
|
@@ -16168,9 +16216,9 @@ var Modal = forwardRef26(
|
|
|
16168
16216
|
width,
|
|
16169
16217
|
...props,
|
|
16170
16218
|
children: [
|
|
16171
|
-
/* @__PURE__ */
|
|
16172
|
-
isNotNil32(footer) ? /* @__PURE__ */
|
|
16173
|
-
hideCloseButton && hideTitle ? null : /* @__PURE__ */
|
|
16219
|
+
/* @__PURE__ */ jsx306(ModalScrollArea, { children: /* @__PURE__ */ jsx306(ModalBody, { children }) }),
|
|
16220
|
+
isNotNil32(footer) ? /* @__PURE__ */ jsx306(ModalFooter, { children: footer }) : null,
|
|
16221
|
+
hideCloseButton && hideTitle ? null : /* @__PURE__ */ jsx306(
|
|
16174
16222
|
ModalHeader,
|
|
16175
16223
|
{
|
|
16176
16224
|
hideCloseButton,
|
|
@@ -16189,9 +16237,9 @@ var Modal = forwardRef26(
|
|
|
16189
16237
|
Modal.displayName = "Modal_UI";
|
|
16190
16238
|
|
|
16191
16239
|
// src/components/Modal/ModalCallouts.tsx
|
|
16192
|
-
import { jsx as
|
|
16240
|
+
import { jsx as jsx307, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
16193
16241
|
var ModalCallouts = ({ children }) => {
|
|
16194
|
-
return /* @__PURE__ */
|
|
16242
|
+
return /* @__PURE__ */ jsx307(
|
|
16195
16243
|
Stack,
|
|
16196
16244
|
{
|
|
16197
16245
|
direction: "horizontal",
|
|
@@ -16204,7 +16252,7 @@ ModalCallouts.displayName = "ModalCallouts_UI";
|
|
|
16204
16252
|
var ModalCallout = ({ title, image, children }) => {
|
|
16205
16253
|
return /* @__PURE__ */ jsxs52(Stack, { direction: "vertical", children: [
|
|
16206
16254
|
image,
|
|
16207
|
-
/* @__PURE__ */
|
|
16255
|
+
/* @__PURE__ */ jsx307(Heading, { variant: "heading4", children: title }),
|
|
16208
16256
|
children
|
|
16209
16257
|
] });
|
|
16210
16258
|
};
|
|
@@ -16223,7 +16271,7 @@ var getControlProps = (isOpen, onOpenChange) => {
|
|
|
16223
16271
|
// src/components/Popover/PopoverArrow.tsx
|
|
16224
16272
|
import { PopoverArrow as RadixPopoverArrow } from "@radix-ui/react-popover";
|
|
16225
16273
|
import { styled as styled81, css as css40, keyframes as keyframes7 } from "styled-components";
|
|
16226
|
-
import { jsx as
|
|
16274
|
+
import { jsx as jsx308, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
16227
16275
|
var StyledPath = styled81.path`
|
|
16228
16276
|
fill: var(--wui-color-border-secondary);
|
|
16229
16277
|
`;
|
|
@@ -16262,7 +16310,7 @@ var StyledCircle = styled81.circle`
|
|
|
16262
16310
|
}
|
|
16263
16311
|
`;
|
|
16264
16312
|
var PopoverArrow = ({ isAnimated }) => {
|
|
16265
|
-
return /* @__PURE__ */
|
|
16313
|
+
return /* @__PURE__ */ jsx308(RadixPopoverArrow, { asChild: true, children: /* @__PURE__ */ jsxs53(
|
|
16266
16314
|
"svg",
|
|
16267
16315
|
{
|
|
16268
16316
|
fill: "none",
|
|
@@ -16271,8 +16319,8 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
16271
16319
|
width: "48",
|
|
16272
16320
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16273
16321
|
children: [
|
|
16274
|
-
/* @__PURE__ */
|
|
16275
|
-
/* @__PURE__ */
|
|
16322
|
+
/* @__PURE__ */ jsx308(StyledPath, { d: "M24 26.6667C21.0545 26.6667 18.6667 29.0545 18.6667 32C18.6667 34.9455 21.0545 37.3333 24 37.3333C26.9455 37.3333 29.3333 34.9455 29.3333 32C29.3333 29.0545 26.9455 26.6667 24 26.6667ZM23 0V32H25V0H23Z" }),
|
|
16323
|
+
/* @__PURE__ */ jsx308(
|
|
16276
16324
|
StyledCircle,
|
|
16277
16325
|
{
|
|
16278
16326
|
$isAnimated: isAnimated,
|
|
@@ -16283,7 +16331,7 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
16283
16331
|
strokeWidth: "4"
|
|
16284
16332
|
}
|
|
16285
16333
|
),
|
|
16286
|
-
/* @__PURE__ */
|
|
16334
|
+
/* @__PURE__ */ jsx308(
|
|
16287
16335
|
StyledCircle,
|
|
16288
16336
|
{
|
|
16289
16337
|
$isAnimated: isAnimated,
|
|
@@ -16301,7 +16349,7 @@ var PopoverArrow = ({ isAnimated }) => {
|
|
|
16301
16349
|
PopoverArrow.displayName = "PopoverArrow_UI";
|
|
16302
16350
|
|
|
16303
16351
|
// src/components/Popover/Popover.tsx
|
|
16304
|
-
import { jsx as
|
|
16352
|
+
import { jsx as jsx309, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
16305
16353
|
var StyledContent2 = styled82(Content2)`
|
|
16306
16354
|
z-index: var(--wui-zindex-popover);
|
|
16307
16355
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
@@ -16342,8 +16390,8 @@ var Popover = ({
|
|
|
16342
16390
|
"--wui-popover-max-height": maxHeight
|
|
16343
16391
|
};
|
|
16344
16392
|
return /* @__PURE__ */ jsxs54(Root2, { ...getControlProps(isOpen, onOpenChange), children: [
|
|
16345
|
-
/* @__PURE__ */
|
|
16346
|
-
/* @__PURE__ */
|
|
16393
|
+
/* @__PURE__ */ jsx309(Trigger2, { asChild: true, children: trigger }),
|
|
16394
|
+
/* @__PURE__ */ jsx309(Portal, { children: /* @__PURE__ */ jsxs54(
|
|
16347
16395
|
StyledContent2,
|
|
16348
16396
|
{
|
|
16349
16397
|
$colorScheme: colorScheme,
|
|
@@ -16352,17 +16400,17 @@ var Popover = ({
|
|
|
16352
16400
|
$unstyled: unstyled,
|
|
16353
16401
|
style,
|
|
16354
16402
|
children: [
|
|
16355
|
-
!hideCloseButton && /* @__PURE__ */
|
|
16403
|
+
!hideCloseButton && /* @__PURE__ */ jsx309(Close, { asChild: true, children: /* @__PURE__ */ jsx309(
|
|
16356
16404
|
IconButton,
|
|
16357
16405
|
{
|
|
16358
16406
|
"data-wui-popover-close": true,
|
|
16359
16407
|
label: "Close",
|
|
16360
16408
|
variant: "ghost",
|
|
16361
|
-
children: /* @__PURE__ */
|
|
16409
|
+
children: /* @__PURE__ */ jsx309(Icon, { type: "close" })
|
|
16362
16410
|
}
|
|
16363
16411
|
) }),
|
|
16364
|
-
withArrow ? /* @__PURE__ */
|
|
16365
|
-
/* @__PURE__ */
|
|
16412
|
+
withArrow ? /* @__PURE__ */ jsx309(PopoverArrow, { isAnimated }) : null,
|
|
16413
|
+
/* @__PURE__ */ jsx309("div", { children })
|
|
16366
16414
|
]
|
|
16367
16415
|
}
|
|
16368
16416
|
) })
|
|
@@ -16374,7 +16422,7 @@ Popover.displayName = "Popover_UI";
|
|
|
16374
16422
|
import { styled as styled83 } from "styled-components";
|
|
16375
16423
|
import { Root as ProgressRoot, Indicator as ProgressIndicator } from "@radix-ui/react-progress";
|
|
16376
16424
|
import { isNotNil as isNotNil34 } from "@wistia/type-guards";
|
|
16377
|
-
import { jsx as
|
|
16425
|
+
import { jsx as jsx310, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
16378
16426
|
var ProgressBarWrapper = styled83.div`
|
|
16379
16427
|
--progress-bar-height: 8px;
|
|
16380
16428
|
|
|
@@ -16429,15 +16477,15 @@ var ProgressBar = ({
|
|
|
16429
16477
|
...props
|
|
16430
16478
|
}) => {
|
|
16431
16479
|
return /* @__PURE__ */ jsxs55(ProgressBarWrapper, { children: [
|
|
16432
|
-
isNotNil34(labelLeft) ? /* @__PURE__ */
|
|
16433
|
-
/* @__PURE__ */
|
|
16480
|
+
isNotNil34(labelLeft) ? /* @__PURE__ */ jsx310(ProgressBarLabel, { children: labelLeft }) : null,
|
|
16481
|
+
/* @__PURE__ */ jsx310(
|
|
16434
16482
|
StyledProgressBar,
|
|
16435
16483
|
{
|
|
16436
16484
|
$colorScheme: colorScheme,
|
|
16437
16485
|
max,
|
|
16438
16486
|
value: progress,
|
|
16439
16487
|
...props,
|
|
16440
|
-
children: /* @__PURE__ */
|
|
16488
|
+
children: /* @__PURE__ */ jsx310(
|
|
16441
16489
|
StyledProgressIndicator,
|
|
16442
16490
|
{
|
|
16443
16491
|
$colorScheme: colorScheme,
|
|
@@ -16447,7 +16495,7 @@ var ProgressBar = ({
|
|
|
16447
16495
|
)
|
|
16448
16496
|
}
|
|
16449
16497
|
),
|
|
16450
|
-
isNotNil34(labelRight) ? /* @__PURE__ */
|
|
16498
|
+
isNotNil34(labelRight) ? /* @__PURE__ */ jsx310(ProgressBarLabel, { children: labelRight }) : null
|
|
16451
16499
|
] });
|
|
16452
16500
|
};
|
|
16453
16501
|
ProgressBar.displayName = "ProgressBar_UI";
|
|
@@ -16456,7 +16504,7 @@ ProgressBar.displayName = "ProgressBar_UI";
|
|
|
16456
16504
|
import { isNonEmptyString as isNonEmptyString7, isNotUndefined as isNotUndefined13 } from "@wistia/type-guards";
|
|
16457
16505
|
import { forwardRef as forwardRef27, useId as useId5 } from "react";
|
|
16458
16506
|
import { styled as styled84, css as css42 } from "styled-components";
|
|
16459
|
-
import { jsx as
|
|
16507
|
+
import { jsx as jsx311, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
16460
16508
|
var sizeSmall2 = css42`
|
|
16461
16509
|
--wui-radio-size: 14px;
|
|
16462
16510
|
--wui-radio-icon-size: 7px;
|
|
@@ -16470,8 +16518,12 @@ var sizeLarge2 = css42`
|
|
|
16470
16518
|
--wui-radio-icon-size: 10px;
|
|
16471
16519
|
`;
|
|
16472
16520
|
var getSizeCss3 = (size) => {
|
|
16473
|
-
if (size === "sm")
|
|
16474
|
-
|
|
16521
|
+
if (size === "sm") {
|
|
16522
|
+
return sizeSmall2;
|
|
16523
|
+
}
|
|
16524
|
+
if (size === "lg") {
|
|
16525
|
+
return sizeLarge2;
|
|
16526
|
+
}
|
|
16475
16527
|
return sizeMedium2;
|
|
16476
16528
|
};
|
|
16477
16529
|
var StyledRadioWrapper = styled84.div`
|
|
@@ -16568,7 +16620,7 @@ var Radio = forwardRef27(
|
|
|
16568
16620
|
$hideLabel: hideLabel,
|
|
16569
16621
|
"aria-invalid": props["aria-invalid"],
|
|
16570
16622
|
children: [
|
|
16571
|
-
/* @__PURE__ */
|
|
16623
|
+
/* @__PURE__ */ jsx311(
|
|
16572
16624
|
StyledHiddenRadioInput,
|
|
16573
16625
|
{
|
|
16574
16626
|
...props,
|
|
@@ -16583,10 +16635,10 @@ var Radio = forwardRef27(
|
|
|
16583
16635
|
value
|
|
16584
16636
|
}
|
|
16585
16637
|
),
|
|
16586
|
-
/* @__PURE__ */
|
|
16638
|
+
/* @__PURE__ */ jsx311(
|
|
16587
16639
|
FormControlLabel,
|
|
16588
16640
|
{
|
|
16589
|
-
controlSlot: /* @__PURE__ */
|
|
16641
|
+
controlSlot: /* @__PURE__ */ jsx311(StyledRadioInput, { $size: size }),
|
|
16590
16642
|
description,
|
|
16591
16643
|
disabled,
|
|
16592
16644
|
hideLabel,
|
|
@@ -16608,7 +16660,7 @@ import { forwardRef as forwardRef29 } from "react";
|
|
|
16608
16660
|
import { forwardRef as forwardRef28, useId as useId6 } from "react";
|
|
16609
16661
|
import { styled as styled85, css as css43 } from "styled-components";
|
|
16610
16662
|
import { isNonEmptyString as isNonEmptyString8, isNotUndefined as isNotUndefined14 } from "@wistia/type-guards";
|
|
16611
|
-
import { jsx as
|
|
16663
|
+
import { jsx as jsx312, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
16612
16664
|
var checkedStyles = css43`
|
|
16613
16665
|
--wui-radio-card-border-color: var(--wui-color-focus-ring);
|
|
16614
16666
|
--wui-color-icon: var(--wui-color-icon-selected);
|
|
@@ -16744,7 +16796,7 @@ var RadioCardRoot = forwardRef28(
|
|
|
16744
16796
|
$padding: padding,
|
|
16745
16797
|
htmlFor: computedId,
|
|
16746
16798
|
children: [
|
|
16747
|
-
/* @__PURE__ */
|
|
16799
|
+
/* @__PURE__ */ jsx312(
|
|
16748
16800
|
StyledHiddenInput,
|
|
16749
16801
|
{
|
|
16750
16802
|
...props,
|
|
@@ -16821,7 +16873,7 @@ var RadioCardIndicator = styled86.div`
|
|
|
16821
16873
|
RadioCardIndicator.displayName = "RadioCardIndicator_UI";
|
|
16822
16874
|
|
|
16823
16875
|
// src/components/RadioCard/RadioCardDefaultLayout.tsx
|
|
16824
|
-
import { jsx as
|
|
16876
|
+
import { jsx as jsx313, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
16825
16877
|
var StyledCardContent = styled87.div`
|
|
16826
16878
|
display: grid;
|
|
16827
16879
|
grid-auto-flow: column;
|
|
@@ -16842,17 +16894,17 @@ var RadioCardDefaultLayout = ({
|
|
|
16842
16894
|
showIndicator = true
|
|
16843
16895
|
}) => {
|
|
16844
16896
|
return /* @__PURE__ */ jsxs58(StyledCardContent, { children: [
|
|
16845
|
-
showIndicator ? /* @__PURE__ */
|
|
16897
|
+
showIndicator ? /* @__PURE__ */ jsx313(StyledIndicatorContainer, { $hasIcon: isNotNil35(icon), children: /* @__PURE__ */ jsx313(RadioCardIndicator, { "data-testid": "wui-radio-card-indicator" }) }) : null,
|
|
16846
16898
|
/* @__PURE__ */ jsxs58(Stack, { gap: "space-02", children: [
|
|
16847
|
-
isNotNil35(icon) && /* @__PURE__ */
|
|
16899
|
+
isNotNil35(icon) && /* @__PURE__ */ jsx313(StyledCardIcon, { "data-wui-radio-card-icon": true, children: icon }),
|
|
16848
16900
|
/* @__PURE__ */ jsxs58(
|
|
16849
16901
|
Stack,
|
|
16850
16902
|
{
|
|
16851
16903
|
gap: "space-01",
|
|
16852
16904
|
style: isNotNil35(icon) ? { paddingLeft: 2 } : void 0,
|
|
16853
16905
|
children: [
|
|
16854
|
-
isNotNil35(label) && /* @__PURE__ */
|
|
16855
|
-
isNotNil35(description) && /* @__PURE__ */
|
|
16906
|
+
isNotNil35(label) && /* @__PURE__ */ jsx313(Text, { variant: "label3", children: /* @__PURE__ */ jsx313("strong", { children: label }) }),
|
|
16907
|
+
isNotNil35(description) && /* @__PURE__ */ jsx313(
|
|
16856
16908
|
Text,
|
|
16857
16909
|
{
|
|
16858
16910
|
prominence: "secondary",
|
|
@@ -16875,16 +16927,16 @@ var RadioCardChildrenContainer = styled88.div`
|
|
|
16875
16927
|
`;
|
|
16876
16928
|
|
|
16877
16929
|
// src/components/RadioCard/RadioCard.tsx
|
|
16878
|
-
import { jsx as
|
|
16930
|
+
import { jsx as jsx314 } from "react/jsx-runtime";
|
|
16879
16931
|
var RadioCard = forwardRef29(
|
|
16880
16932
|
({ icon, label, description, showIndicator, children, ...rootProps }, ref) => {
|
|
16881
|
-
return /* @__PURE__ */
|
|
16933
|
+
return /* @__PURE__ */ jsx314(
|
|
16882
16934
|
RadioCardRoot,
|
|
16883
16935
|
{
|
|
16884
16936
|
ref,
|
|
16885
16937
|
padding: children != null ? "space-00" : "space-04",
|
|
16886
16938
|
...rootProps,
|
|
16887
|
-
children: children != null ? /* @__PURE__ */
|
|
16939
|
+
children: children != null ? /* @__PURE__ */ jsx314(RadioCardChildrenContainer, { "data-wui-radio-card-image": "cover", children }) : /* @__PURE__ */ jsx314(
|
|
16888
16940
|
RadioCardDefaultLayout,
|
|
16889
16941
|
{
|
|
16890
16942
|
description,
|
|
@@ -16901,17 +16953,17 @@ RadioCard.displayName = "RadioCard_UI";
|
|
|
16901
16953
|
|
|
16902
16954
|
// src/components/RadioCard/RadioCardImage.tsx
|
|
16903
16955
|
import { forwardRef as forwardRef30 } from "react";
|
|
16904
|
-
import { jsx as
|
|
16956
|
+
import { jsx as jsx315 } from "react/jsx-runtime";
|
|
16905
16957
|
var RadioCardImage = forwardRef30(
|
|
16906
16958
|
({ label, imageSrc, aspectRatio, padding = "space-04", ...rootProps }, ref) => {
|
|
16907
|
-
return /* @__PURE__ */
|
|
16959
|
+
return /* @__PURE__ */ jsx315(
|
|
16908
16960
|
RadioCardRoot,
|
|
16909
16961
|
{
|
|
16910
16962
|
ref,
|
|
16911
16963
|
...rootProps,
|
|
16912
16964
|
aspectRatio,
|
|
16913
16965
|
padding,
|
|
16914
|
-
children: /* @__PURE__ */
|
|
16966
|
+
children: /* @__PURE__ */ jsx315(
|
|
16915
16967
|
Image,
|
|
16916
16968
|
{
|
|
16917
16969
|
alt: label,
|
|
@@ -16931,7 +16983,7 @@ RadioCardImage.displayName = "RadioCardImage_UI";
|
|
|
16931
16983
|
import { forwardRef as forwardRef31, useCallback as useCallback18, useEffect as useEffect20, useMemo as useMemo15, useRef as useRef21, useState as useState23 } from "react";
|
|
16932
16984
|
import { styled as styled89 } from "styled-components";
|
|
16933
16985
|
import { throttle } from "throttle-debounce";
|
|
16934
|
-
import { jsx as
|
|
16986
|
+
import { jsx as jsx316, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
16935
16987
|
var SHADOW_SIZE_PX = 8;
|
|
16936
16988
|
var Container10 = styled89.div`
|
|
16937
16989
|
overflow: hidden;
|
|
@@ -17012,11 +17064,11 @@ var ScrollArea = forwardRef31(
|
|
|
17012
17064
|
updateShadows();
|
|
17013
17065
|
}, [updateShadows]);
|
|
17014
17066
|
return /* @__PURE__ */ jsxs59(Container10, { style, children: [
|
|
17015
|
-
/* @__PURE__ */
|
|
17016
|
-
/* @__PURE__ */
|
|
17017
|
-
/* @__PURE__ */
|
|
17018
|
-
/* @__PURE__ */
|
|
17019
|
-
/* @__PURE__ */
|
|
17067
|
+
/* @__PURE__ */ jsx316(ShadowAtTop, { $isVisible: shadowState.canScrollUp }),
|
|
17068
|
+
/* @__PURE__ */ jsx316(ShadowAtBottom, { $isVisible: shadowState.canScrollDown }),
|
|
17069
|
+
/* @__PURE__ */ jsx316(ShadowAtLeft, { $isVisible: shadowState.canScrollLeft }),
|
|
17070
|
+
/* @__PURE__ */ jsx316(ShadowAtRight, { $isVisible: shadowState.canScrollRight }),
|
|
17071
|
+
/* @__PURE__ */ jsx316(
|
|
17020
17072
|
ScrollContainer,
|
|
17021
17073
|
{
|
|
17022
17074
|
ref: scrollContainerRef,
|
|
@@ -17039,7 +17091,7 @@ import { isNil as isNil18 } from "@wistia/type-guards";
|
|
|
17039
17091
|
|
|
17040
17092
|
// src/components/SegmentedControl/useSelectedItemStyle.tsx
|
|
17041
17093
|
import { createContext as createContext9, useContext as useContext15, useMemo as useMemo16, useState as useState24 } from "react";
|
|
17042
|
-
import { jsx as
|
|
17094
|
+
import { jsx as jsx317 } from "react/jsx-runtime";
|
|
17043
17095
|
var SelectedItemStyleContext = createContext9(null);
|
|
17044
17096
|
var SelectedItemStyleProvider = ({
|
|
17045
17097
|
children
|
|
@@ -17060,7 +17112,7 @@ var SelectedItemStyleProvider = ({
|
|
|
17060
17112
|
}),
|
|
17061
17113
|
[selectedItemIndicatorStyle]
|
|
17062
17114
|
);
|
|
17063
|
-
return /* @__PURE__ */
|
|
17115
|
+
return /* @__PURE__ */ jsx317(SelectedItemStyleContext.Provider, { value: contextValue, children });
|
|
17064
17116
|
};
|
|
17065
17117
|
var useSelectedItemStyle = () => {
|
|
17066
17118
|
const context = useContext15(SelectedItemStyleContext);
|
|
@@ -17087,7 +17139,7 @@ var useSegmentedControlValue = () => {
|
|
|
17087
17139
|
};
|
|
17088
17140
|
|
|
17089
17141
|
// src/components/SegmentedControl/SelectedItemIndicator.tsx
|
|
17090
|
-
import { jsx as
|
|
17142
|
+
import { jsx as jsx318 } from "react/jsx-runtime";
|
|
17091
17143
|
var selectedItemIndicatorStyles = css44`
|
|
17092
17144
|
background-color: var(--wui-color-bg-fill-white);
|
|
17093
17145
|
border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17109,7 +17161,7 @@ var SelectedItemIndicator = () => {
|
|
|
17109
17161
|
if (!selectedValue || isUndefined5(selectedItemIndicatorStyle)) {
|
|
17110
17162
|
return null;
|
|
17111
17163
|
}
|
|
17112
|
-
return /* @__PURE__ */
|
|
17164
|
+
return /* @__PURE__ */ jsx318(
|
|
17113
17165
|
SelectedItemIndicatorDiv,
|
|
17114
17166
|
{
|
|
17115
17167
|
"data-wui-selected-item-indicator": true,
|
|
@@ -17119,7 +17171,7 @@ var SelectedItemIndicator = () => {
|
|
|
17119
17171
|
};
|
|
17120
17172
|
|
|
17121
17173
|
// src/components/SegmentedControl/SegmentedControl.tsx
|
|
17122
|
-
import { jsx as
|
|
17174
|
+
import { jsx as jsx319, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
17123
17175
|
var segmentedControlStyles = css45`
|
|
17124
17176
|
display: inline-flex;
|
|
17125
17177
|
background-color: var(--wui-color-bg-surface-secondary);
|
|
@@ -17146,7 +17198,7 @@ var SegmentedControl = forwardRef32(
|
|
|
17146
17198
|
if (isNil18(children)) {
|
|
17147
17199
|
return null;
|
|
17148
17200
|
}
|
|
17149
|
-
return /* @__PURE__ */
|
|
17201
|
+
return /* @__PURE__ */ jsx319(
|
|
17150
17202
|
StyledSegmentedControl,
|
|
17151
17203
|
{
|
|
17152
17204
|
ref,
|
|
@@ -17158,9 +17210,9 @@ var SegmentedControl = forwardRef32(
|
|
|
17158
17210
|
type: "single",
|
|
17159
17211
|
value: selectedValue,
|
|
17160
17212
|
...props,
|
|
17161
|
-
children: /* @__PURE__ */
|
|
17213
|
+
children: /* @__PURE__ */ jsx319(SegmentedControlValueProvider, { value: selectedValue, children: /* @__PURE__ */ jsxs60(SelectedItemStyleProvider, { children: [
|
|
17162
17214
|
children,
|
|
17163
|
-
/* @__PURE__ */
|
|
17215
|
+
/* @__PURE__ */ jsx319(SelectedItemIndicator, {})
|
|
17164
17216
|
] }) })
|
|
17165
17217
|
}
|
|
17166
17218
|
);
|
|
@@ -17316,7 +17368,7 @@ import {
|
|
|
17316
17368
|
} from "@radix-ui/react-select";
|
|
17317
17369
|
import { forwardRef as forwardRef34 } from "react";
|
|
17318
17370
|
import { styled as styled93, css as css47 } from "styled-components";
|
|
17319
|
-
import { jsx as
|
|
17371
|
+
import { jsx as jsx320, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
17320
17372
|
var StyledTrigger2 = styled93(Trigger3)`
|
|
17321
17373
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
17322
17374
|
${inputCss};
|
|
@@ -17425,8 +17477,8 @@ var Select = forwardRef34(
|
|
|
17425
17477
|
$fullWidth: responsiveFullWidth,
|
|
17426
17478
|
...props,
|
|
17427
17479
|
children: [
|
|
17428
|
-
/* @__PURE__ */
|
|
17429
|
-
/* @__PURE__ */
|
|
17480
|
+
/* @__PURE__ */ jsx320(Value, { placeholder }),
|
|
17481
|
+
/* @__PURE__ */ jsx320(
|
|
17430
17482
|
Icon,
|
|
17431
17483
|
{
|
|
17432
17484
|
size: "md",
|
|
@@ -17436,21 +17488,21 @@ var Select = forwardRef34(
|
|
|
17436
17488
|
]
|
|
17437
17489
|
}
|
|
17438
17490
|
),
|
|
17439
|
-
/* @__PURE__ */
|
|
17491
|
+
/* @__PURE__ */ jsx320(Portal2, { children: /* @__PURE__ */ jsxs62(
|
|
17440
17492
|
StyledContent3,
|
|
17441
17493
|
{
|
|
17442
17494
|
position: "popper",
|
|
17443
17495
|
sideOffset: 8,
|
|
17444
17496
|
children: [
|
|
17445
|
-
/* @__PURE__ */
|
|
17497
|
+
/* @__PURE__ */ jsx320(StyledScrollUpButton, { children: /* @__PURE__ */ jsx320(
|
|
17446
17498
|
Icon,
|
|
17447
17499
|
{
|
|
17448
17500
|
size: "sm",
|
|
17449
17501
|
type: "caret-up"
|
|
17450
17502
|
}
|
|
17451
17503
|
) }),
|
|
17452
|
-
/* @__PURE__ */
|
|
17453
|
-
/* @__PURE__ */
|
|
17504
|
+
/* @__PURE__ */ jsx320(Viewport, { children }),
|
|
17505
|
+
/* @__PURE__ */ jsx320(StyledScrollDownButton, { children: /* @__PURE__ */ jsx320(
|
|
17454
17506
|
Icon,
|
|
17455
17507
|
{
|
|
17456
17508
|
size: "sm",
|
|
@@ -17470,7 +17522,7 @@ import { Item, ItemText, ItemIndicator } from "@radix-ui/react-select";
|
|
|
17470
17522
|
import { forwardRef as forwardRef35 } from "react";
|
|
17471
17523
|
import { styled as styled94 } from "styled-components";
|
|
17472
17524
|
import { isNotNil as isNotNil37 } from "@wistia/type-guards";
|
|
17473
|
-
import { jsx as
|
|
17525
|
+
import { jsx as jsx321, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
17474
17526
|
var StyledItem = styled94(Item)`
|
|
17475
17527
|
${getTypographicStyles("label3")}
|
|
17476
17528
|
align-items: ${({ $checkmarkVerticalAlign }) => $checkmarkVerticalAlign === "center" ? "center" : "flex-start"};
|
|
@@ -17508,9 +17560,9 @@ var SelectOption = forwardRef35(
|
|
|
17508
17560
|
children: [
|
|
17509
17561
|
isNotNil37(selectedDisplayValue) ? /* @__PURE__ */ jsxs63("div", { children: [
|
|
17510
17562
|
children,
|
|
17511
|
-
/* @__PURE__ */
|
|
17512
|
-
] }) : /* @__PURE__ */
|
|
17513
|
-
/* @__PURE__ */
|
|
17563
|
+
/* @__PURE__ */ jsx321("div", { style: { display: "none" }, children: /* @__PURE__ */ jsx321(ItemText, { children: selectedDisplayValue }) })
|
|
17564
|
+
] }) : /* @__PURE__ */ jsx321(ItemText, { children }),
|
|
17565
|
+
/* @__PURE__ */ jsx321(ItemIndicator, { children: /* @__PURE__ */ jsx321(
|
|
17514
17566
|
Icon,
|
|
17515
17567
|
{
|
|
17516
17568
|
size: "md",
|
|
@@ -17527,13 +17579,13 @@ SelectOption.displayName = "SelectOption_UI";
|
|
|
17527
17579
|
// src/components/Select/SelectOptionGroup.tsx
|
|
17528
17580
|
import { Group, Label as Label3 } from "@radix-ui/react-select";
|
|
17529
17581
|
import { styled as styled95 } from "styled-components";
|
|
17530
|
-
import { jsx as
|
|
17582
|
+
import { jsx as jsx322, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
17531
17583
|
var StyledLabel4 = styled95(Label3)`
|
|
17532
17584
|
padding: var(--wui-select-option-padding);
|
|
17533
17585
|
`;
|
|
17534
17586
|
var SelectOptionGroup = ({ children, label, ...props }) => {
|
|
17535
17587
|
return /* @__PURE__ */ jsxs64(Group, { ...props, children: [
|
|
17536
|
-
/* @__PURE__ */
|
|
17588
|
+
/* @__PURE__ */ jsx322(StyledLabel4, { children: /* @__PURE__ */ jsx322(
|
|
17537
17589
|
Heading,
|
|
17538
17590
|
{
|
|
17539
17591
|
renderAs: "span",
|
|
@@ -17554,7 +17606,7 @@ import {
|
|
|
17554
17606
|
} from "@radix-ui/react-slider";
|
|
17555
17607
|
import { styled as styled96 } from "styled-components";
|
|
17556
17608
|
import { isNonEmptyString as isNonEmptyString9 } from "@wistia/type-guards";
|
|
17557
|
-
import { jsx as
|
|
17609
|
+
import { jsx as jsx323, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
17558
17610
|
var SliderContainer = styled96.div`
|
|
17559
17611
|
--wui-slider-track-color: var(--wui-gray-6);
|
|
17560
17612
|
--wui-slider-track-border-radius: var(--wui-border-radius-rounded);
|
|
@@ -17643,7 +17695,7 @@ var Slider = ({
|
|
|
17643
17695
|
onChange(newValue);
|
|
17644
17696
|
}
|
|
17645
17697
|
};
|
|
17646
|
-
return /* @__PURE__ */
|
|
17698
|
+
return /* @__PURE__ */ jsx323(
|
|
17647
17699
|
SliderContainer,
|
|
17648
17700
|
{
|
|
17649
17701
|
...otherProps,
|
|
@@ -17661,8 +17713,8 @@ var Slider = ({
|
|
|
17661
17713
|
step,
|
|
17662
17714
|
...value ? { value } : {},
|
|
17663
17715
|
children: [
|
|
17664
|
-
/* @__PURE__ */
|
|
17665
|
-
values.map((_, index) => /* @__PURE__ */
|
|
17716
|
+
/* @__PURE__ */ jsx323(StyledSliderTrack, { "data-testid": `${dataTestId}-track`, children: /* @__PURE__ */ jsx323(StyledSliderRange, { "data-testid": `${dataTestId}-range` }) }),
|
|
17717
|
+
values.map((_, index) => /* @__PURE__ */ jsx323(
|
|
17666
17718
|
StyledSliderThumb,
|
|
17667
17719
|
{
|
|
17668
17720
|
"data-testid": `${dataTestId}-thumb-${index}`
|
|
@@ -17679,7 +17731,7 @@ Slider.displayName = "Slider_UI";
|
|
|
17679
17731
|
|
|
17680
17732
|
// src/components/Table/Table.tsx
|
|
17681
17733
|
import { styled as styled97, css as css48 } from "styled-components";
|
|
17682
|
-
import { jsx as
|
|
17734
|
+
import { jsx as jsx324 } from "react/jsx-runtime";
|
|
17683
17735
|
var StyledTable = styled97.table`
|
|
17684
17736
|
width: 100%;
|
|
17685
17737
|
border-collapse: collapse;
|
|
@@ -17709,7 +17761,7 @@ var Table = ({
|
|
|
17709
17761
|
visuallyHiddenHeader = false,
|
|
17710
17762
|
...props
|
|
17711
17763
|
}) => {
|
|
17712
|
-
return /* @__PURE__ */
|
|
17764
|
+
return /* @__PURE__ */ jsx324(
|
|
17713
17765
|
StyledTable,
|
|
17714
17766
|
{
|
|
17715
17767
|
$divided: divided,
|
|
@@ -17729,18 +17781,18 @@ import { createContext as createContext11 } from "react";
|
|
|
17729
17781
|
var TableSectionContext = createContext11(null);
|
|
17730
17782
|
|
|
17731
17783
|
// src/components/Table/TableBody.tsx
|
|
17732
|
-
import { jsx as
|
|
17784
|
+
import { jsx as jsx325 } from "react/jsx-runtime";
|
|
17733
17785
|
var StyledTableBody = styled98.tbody`
|
|
17734
17786
|
width: 100%;
|
|
17735
17787
|
`;
|
|
17736
17788
|
var TableBody = ({ children, ...props }) => {
|
|
17737
|
-
return /* @__PURE__ */
|
|
17789
|
+
return /* @__PURE__ */ jsx325(TableSectionContext.Provider, { value: "body", children: /* @__PURE__ */ jsx325(StyledTableBody, { ...props, children }) });
|
|
17738
17790
|
};
|
|
17739
17791
|
|
|
17740
17792
|
// src/components/Table/TableCell.tsx
|
|
17741
17793
|
import { useContext as useContext17 } from "react";
|
|
17742
17794
|
import { styled as styled99, css as css49 } from "styled-components";
|
|
17743
|
-
import { jsx as
|
|
17795
|
+
import { jsx as jsx326 } from "react/jsx-runtime";
|
|
17744
17796
|
var sharedStyles = css49`
|
|
17745
17797
|
color: var(--wui-color-text);
|
|
17746
17798
|
padding: var(--wui-space-02);
|
|
@@ -17761,39 +17813,39 @@ var StyledTd = styled99.td`
|
|
|
17761
17813
|
var TableCell = ({ children, ...props }) => {
|
|
17762
17814
|
const section = useContext17(TableSectionContext);
|
|
17763
17815
|
if (section === "head") {
|
|
17764
|
-
return /* @__PURE__ */
|
|
17816
|
+
return /* @__PURE__ */ jsx326(StyledTh, { ...props, children });
|
|
17765
17817
|
}
|
|
17766
|
-
return /* @__PURE__ */
|
|
17818
|
+
return /* @__PURE__ */ jsx326(StyledTd, { ...props, children });
|
|
17767
17819
|
};
|
|
17768
17820
|
|
|
17769
17821
|
// src/components/Table/TableFoot.tsx
|
|
17770
17822
|
import { styled as styled100 } from "styled-components";
|
|
17771
|
-
import { jsx as
|
|
17823
|
+
import { jsx as jsx327 } from "react/jsx-runtime";
|
|
17772
17824
|
var StyledTableFoot = styled100.tfoot`
|
|
17773
17825
|
width: 100%;
|
|
17774
17826
|
`;
|
|
17775
17827
|
var TableFoot = ({ children, ...props }) => {
|
|
17776
|
-
return /* @__PURE__ */
|
|
17828
|
+
return /* @__PURE__ */ jsx327(TableSectionContext.Provider, { value: "footer", children: /* @__PURE__ */ jsx327(StyledTableFoot, { ...props, children }) });
|
|
17777
17829
|
};
|
|
17778
17830
|
|
|
17779
17831
|
// src/components/Table/TableHead.tsx
|
|
17780
17832
|
import { styled as styled101 } from "styled-components";
|
|
17781
|
-
import { jsx as
|
|
17833
|
+
import { jsx as jsx328 } from "react/jsx-runtime";
|
|
17782
17834
|
var StyledThead = styled101.thead`
|
|
17783
17835
|
width: 100%;
|
|
17784
17836
|
`;
|
|
17785
17837
|
var TableHead = ({ children, ...props }) => {
|
|
17786
|
-
return /* @__PURE__ */
|
|
17838
|
+
return /* @__PURE__ */ jsx328(TableSectionContext.Provider, { value: "head", children: /* @__PURE__ */ jsx328(StyledThead, { ...props, children }) });
|
|
17787
17839
|
};
|
|
17788
17840
|
|
|
17789
17841
|
// src/components/Table/TableRow.tsx
|
|
17790
17842
|
import { styled as styled102 } from "styled-components";
|
|
17791
|
-
import { jsx as
|
|
17843
|
+
import { jsx as jsx329 } from "react/jsx-runtime";
|
|
17792
17844
|
var StyledTableRow = styled102.tr`
|
|
17793
17845
|
width: 100%;
|
|
17794
17846
|
`;
|
|
17795
17847
|
var TableRow = ({ children, ...props }) => {
|
|
17796
|
-
return /* @__PURE__ */
|
|
17848
|
+
return /* @__PURE__ */ jsx329(StyledTableRow, { ...props, children });
|
|
17797
17849
|
};
|
|
17798
17850
|
|
|
17799
17851
|
// src/components/Tabs/Tabs.tsx
|
|
@@ -17814,7 +17866,7 @@ var useTabsValue = () => {
|
|
|
17814
17866
|
};
|
|
17815
17867
|
|
|
17816
17868
|
// src/components/Tabs/Tabs.tsx
|
|
17817
|
-
import { jsx as
|
|
17869
|
+
import { jsx as jsx330 } from "react/jsx-runtime";
|
|
17818
17870
|
var Tabs = ({
|
|
17819
17871
|
children,
|
|
17820
17872
|
value: valueProp,
|
|
@@ -17842,15 +17894,15 @@ var Tabs = ({
|
|
|
17842
17894
|
if (isNotNil38(defaultValue)) {
|
|
17843
17895
|
rootProps.defaultValue = defaultValue;
|
|
17844
17896
|
}
|
|
17845
|
-
return /* @__PURE__ */
|
|
17897
|
+
return /* @__PURE__ */ jsx330(RadixTabsRoot, { ...rootProps, children: /* @__PURE__ */ jsx330(TabsValueProvider, { value: value ?? defaultValue, children: /* @__PURE__ */ jsx330(SelectedItemStyleProvider, { children }) }) });
|
|
17846
17898
|
};
|
|
17847
17899
|
Tabs.displayName = "Tabs_UI";
|
|
17848
17900
|
|
|
17849
17901
|
// src/components/Tabs/TabsContent.tsx
|
|
17850
17902
|
import { Content as RadixTabsContent } from "@radix-ui/react-tabs";
|
|
17851
|
-
import { jsx as
|
|
17903
|
+
import { jsx as jsx331 } from "react/jsx-runtime";
|
|
17852
17904
|
var TabsContent = ({ children, value }) => {
|
|
17853
|
-
return /* @__PURE__ */
|
|
17905
|
+
return /* @__PURE__ */ jsx331(RadixTabsContent, { value, children });
|
|
17854
17906
|
};
|
|
17855
17907
|
TabsContent.displayName = "TabsContent_UI";
|
|
17856
17908
|
|
|
@@ -17870,14 +17922,14 @@ var TabsSelectedItemIndicatorDiv = styled103(SelectedItemIndicatorDiv)`
|
|
|
17870
17922
|
`;
|
|
17871
17923
|
|
|
17872
17924
|
// src/components/Tabs/SelectedTabIndicator.tsx
|
|
17873
|
-
import { jsx as
|
|
17925
|
+
import { jsx as jsx332 } from "react/jsx-runtime";
|
|
17874
17926
|
var SelectedTabIndicator = () => {
|
|
17875
17927
|
const { selectedItemIndicatorStyle } = useSelectedItemStyle();
|
|
17876
17928
|
const selectedValue = useTabsValue();
|
|
17877
17929
|
if (selectedValue == null || isUndefined6(selectedItemIndicatorStyle)) {
|
|
17878
17930
|
return null;
|
|
17879
17931
|
}
|
|
17880
|
-
return /* @__PURE__ */
|
|
17932
|
+
return /* @__PURE__ */ jsx332(
|
|
17881
17933
|
TabsSelectedItemIndicatorDiv,
|
|
17882
17934
|
{
|
|
17883
17935
|
"data-wui-selected-item-indicator": true,
|
|
@@ -17887,7 +17939,7 @@ var SelectedTabIndicator = () => {
|
|
|
17887
17939
|
};
|
|
17888
17940
|
|
|
17889
17941
|
// src/components/Tabs/TabsList.tsx
|
|
17890
|
-
import { jsx as
|
|
17942
|
+
import { jsx as jsx333, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
17891
17943
|
var StyledRadixTabsList = styled104(RadixTabList)`
|
|
17892
17944
|
${segmentedControlStyles}
|
|
17893
17945
|
`;
|
|
@@ -17899,7 +17951,7 @@ var TabsList = ({ children, fullWidth = true, ...props }) => {
|
|
|
17899
17951
|
"aria-label": props["aria-label"],
|
|
17900
17952
|
children: [
|
|
17901
17953
|
children,
|
|
17902
|
-
/* @__PURE__ */
|
|
17954
|
+
/* @__PURE__ */ jsx333(SelectedTabIndicator, {})
|
|
17903
17955
|
]
|
|
17904
17956
|
}
|
|
17905
17957
|
);
|
|
@@ -17976,7 +18028,7 @@ TabsTrigger.displayName = "TabsTrigger_UI";
|
|
|
17976
18028
|
// src/components/Thumbnail/ThumbnailBadge.tsx
|
|
17977
18029
|
import { styled as styled106 } from "styled-components";
|
|
17978
18030
|
import { isNotNil as isNotNil40 } from "@wistia/type-guards";
|
|
17979
|
-
import { jsx as
|
|
18031
|
+
import { jsx as jsx334, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
17980
18032
|
var StyledThumbnailBadge = styled106.div`
|
|
17981
18033
|
align-items: center;
|
|
17982
18034
|
background-color: rgb(0 0 0 / 50%);
|
|
@@ -18005,7 +18057,7 @@ var StyledThumbnailBadge = styled106.div`
|
|
|
18005
18057
|
var ThumbnailBadge = ({ icon, label, ...props }) => {
|
|
18006
18058
|
return /* @__PURE__ */ jsxs68(StyledThumbnailBadge, { ...props, children: [
|
|
18007
18059
|
isNotNil40(icon) && icon,
|
|
18008
|
-
/* @__PURE__ */
|
|
18060
|
+
/* @__PURE__ */ jsx334("span", { children: label })
|
|
18009
18061
|
] });
|
|
18010
18062
|
};
|
|
18011
18063
|
ThumbnailBadge.displayName = "ThumbnailBadge_UI";
|
|
@@ -18157,7 +18209,7 @@ var getBackgroundGradient = (gradientName = void 0) => {
|
|
|
18157
18209
|
// src/components/Thumbnail/ThumbnailStoryboardViewer.tsx
|
|
18158
18210
|
import { styled as styled107 } from "styled-components";
|
|
18159
18211
|
import { isNotNil as isNotNil42 } from "@wistia/type-guards";
|
|
18160
|
-
import { jsx as
|
|
18212
|
+
import { jsx as jsx335, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
18161
18213
|
var ScrubLine = styled107.div`
|
|
18162
18214
|
position: absolute;
|
|
18163
18215
|
top: 0;
|
|
@@ -18275,8 +18327,8 @@ var ThumbnailStoryboardViewer = ({
|
|
|
18275
18327
|
...props,
|
|
18276
18328
|
style: viewerStyles,
|
|
18277
18329
|
children: [
|
|
18278
|
-
/* @__PURE__ */
|
|
18279
|
-
showScrubLine ? /* @__PURE__ */
|
|
18330
|
+
/* @__PURE__ */ jsx335("div", { style: storyboardStyles }),
|
|
18331
|
+
showScrubLine ? /* @__PURE__ */ jsx335(
|
|
18280
18332
|
ScrubLine,
|
|
18281
18333
|
{
|
|
18282
18334
|
style: {
|
|
@@ -18290,7 +18342,7 @@ var ThumbnailStoryboardViewer = ({
|
|
|
18290
18342
|
};
|
|
18291
18343
|
|
|
18292
18344
|
// src/components/Thumbnail/Thumbnail.tsx
|
|
18293
|
-
import { jsx as
|
|
18345
|
+
import { jsx as jsx336, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
18294
18346
|
var WIDE_ASPECT_RATIO = 16 / 9;
|
|
18295
18347
|
var SQUARE_ASPECT_RATIO = 1;
|
|
18296
18348
|
var getAspectRatioValue = (aspectRatio) => {
|
|
@@ -18311,7 +18363,7 @@ var SquareThumbnailImage = styled108.img`
|
|
|
18311
18363
|
`;
|
|
18312
18364
|
var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
18313
18365
|
if (thumbnailImageType === "wide") {
|
|
18314
|
-
return /* @__PURE__ */
|
|
18366
|
+
return /* @__PURE__ */ jsx336(
|
|
18315
18367
|
WideThumbnailImage,
|
|
18316
18368
|
{
|
|
18317
18369
|
alt: "",
|
|
@@ -18320,7 +18372,7 @@ var ThumbnailImage = ({ thumbnailImageType, thumbnailUrl }) => {
|
|
|
18320
18372
|
}
|
|
18321
18373
|
);
|
|
18322
18374
|
}
|
|
18323
|
-
return /* @__PURE__ */
|
|
18375
|
+
return /* @__PURE__ */ jsx336(
|
|
18324
18376
|
SquareThumbnailImage,
|
|
18325
18377
|
{
|
|
18326
18378
|
alt: "",
|
|
@@ -18372,7 +18424,7 @@ var StoryboardRenderer = ({
|
|
|
18372
18424
|
const { url, width: sbWidth, height: sbHeight, frameHeight, frameWidth, frameCount } = storyboard;
|
|
18373
18425
|
const targetWidth = isString4(width) ? parseInt(width, 10) : Number(width);
|
|
18374
18426
|
const effectiveCursorPosition = isStoryboardReady ? cursorPosition : null;
|
|
18375
|
-
return /* @__PURE__ */
|
|
18427
|
+
return /* @__PURE__ */ jsx336(
|
|
18376
18428
|
ThumbnailStoryboardViewer,
|
|
18377
18429
|
{
|
|
18378
18430
|
cursorPosition: effectiveCursorPosition,
|
|
@@ -18434,7 +18486,9 @@ var Thumbnail = forwardRef37(
|
|
|
18434
18486
|
}, [storyboard]);
|
|
18435
18487
|
const handleMouseMove = useCallback20(
|
|
18436
18488
|
(mouseEvent) => {
|
|
18437
|
-
if (!isScrubbable)
|
|
18489
|
+
if (!isScrubbable) {
|
|
18490
|
+
return;
|
|
18491
|
+
}
|
|
18438
18492
|
const elem = mouseEvent.currentTarget;
|
|
18439
18493
|
const relMousePos = getRelativeMousePosition(elem, mouseEvent);
|
|
18440
18494
|
const newPercent = relMousePos.left / elem.clientWidth;
|
|
@@ -18446,7 +18500,9 @@ var Thumbnail = forwardRef37(
|
|
|
18446
18500
|
[isScrubbable, trackStoryboardLoadStatus]
|
|
18447
18501
|
);
|
|
18448
18502
|
const handleMouseOut = useCallback20(() => {
|
|
18449
|
-
if (!isScrubbable)
|
|
18503
|
+
if (!isScrubbable) {
|
|
18504
|
+
return;
|
|
18505
|
+
}
|
|
18450
18506
|
setIsMouseOver(false);
|
|
18451
18507
|
setCursorPosition(null);
|
|
18452
18508
|
}, [isScrubbable]);
|
|
@@ -18458,7 +18514,7 @@ var Thumbnail = forwardRef37(
|
|
|
18458
18514
|
}, [isScrubbable, isMouseOver, isStoryboardReady, storyboard, height]);
|
|
18459
18515
|
let thumbnailContent = null;
|
|
18460
18516
|
if (storyboard && shouldRenderStoryboard) {
|
|
18461
|
-
thumbnailContent = /* @__PURE__ */
|
|
18517
|
+
thumbnailContent = /* @__PURE__ */ jsx336(
|
|
18462
18518
|
StoryboardRenderer,
|
|
18463
18519
|
{
|
|
18464
18520
|
aspectRatio,
|
|
@@ -18470,7 +18526,7 @@ var Thumbnail = forwardRef37(
|
|
|
18470
18526
|
}
|
|
18471
18527
|
);
|
|
18472
18528
|
} else if (hasValidThumbnailUrl(thumbnailUrl)) {
|
|
18473
|
-
thumbnailContent = /* @__PURE__ */
|
|
18529
|
+
thumbnailContent = /* @__PURE__ */ jsx336(
|
|
18474
18530
|
ThumbnailImage,
|
|
18475
18531
|
{
|
|
18476
18532
|
thumbnailImageType,
|
|
@@ -18480,7 +18536,7 @@ var Thumbnail = forwardRef37(
|
|
|
18480
18536
|
} else {
|
|
18481
18537
|
thumbnailContent = null;
|
|
18482
18538
|
}
|
|
18483
|
-
return /* @__PURE__ */
|
|
18539
|
+
return /* @__PURE__ */ jsx336(
|
|
18484
18540
|
StyledThumbnailContainer,
|
|
18485
18541
|
{
|
|
18486
18542
|
ref,
|
|
@@ -18515,7 +18571,7 @@ Thumbnail.displayName = "Thumbnail_UI";
|
|
|
18515
18571
|
import { cloneElement as cloneElement9, Children as Children11 } from "react";
|
|
18516
18572
|
import { styled as styled109 } from "styled-components";
|
|
18517
18573
|
import { isNonEmptyArray } from "@wistia/type-guards";
|
|
18518
|
-
import { jsx as
|
|
18574
|
+
import { jsx as jsx337 } from "react/jsx-runtime";
|
|
18519
18575
|
var ThumbnailCollageContainer = styled109.div`
|
|
18520
18576
|
container-type: size;
|
|
18521
18577
|
width: 100%;
|
|
@@ -18580,7 +18636,7 @@ var ThumbnailCollage = ({
|
|
|
18580
18636
|
});
|
|
18581
18637
|
}) : [
|
|
18582
18638
|
// ThumbnailCollage will fallback to a Thumbnail with a gradient background if no children are provided
|
|
18583
|
-
/* @__PURE__ */
|
|
18639
|
+
/* @__PURE__ */ jsx337(
|
|
18584
18640
|
Thumbnail,
|
|
18585
18641
|
{
|
|
18586
18642
|
gradientBackground,
|
|
@@ -18589,7 +18645,7 @@ var ThumbnailCollage = ({
|
|
|
18589
18645
|
"fallback"
|
|
18590
18646
|
)
|
|
18591
18647
|
];
|
|
18592
|
-
return /* @__PURE__ */
|
|
18648
|
+
return /* @__PURE__ */ jsx337(ThumbnailCollageContainer, { children: /* @__PURE__ */ jsx337(
|
|
18593
18649
|
StyledThumbnailCollage,
|
|
18594
18650
|
{
|
|
18595
18651
|
$gradientBackground: gradientBackground,
|
|
@@ -18603,24 +18659,24 @@ var ThumbnailCollage = ({
|
|
|
18603
18659
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
18604
18660
|
import { styled as styled110, css as css51 } from "styled-components";
|
|
18605
18661
|
import { isNotNil as isNotNil44 } from "@wistia/type-guards";
|
|
18606
|
-
import { jsx as
|
|
18662
|
+
import { jsx as jsx338, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
18607
18663
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
18608
18664
|
if (iconOnly) {
|
|
18609
|
-
return /* @__PURE__ */
|
|
18665
|
+
return /* @__PURE__ */ jsx338(
|
|
18610
18666
|
"g",
|
|
18611
18667
|
{
|
|
18612
18668
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
18613
18669
|
fill: brandmarkColor,
|
|
18614
|
-
children: /* @__PURE__ */
|
|
18670
|
+
children: /* @__PURE__ */ jsx338("path", { d: "M16.09 17.1h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 26.53c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87ZM32.14 0c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
18615
18671
|
}
|
|
18616
18672
|
);
|
|
18617
18673
|
}
|
|
18618
|
-
return /* @__PURE__ */
|
|
18674
|
+
return /* @__PURE__ */ jsx338(
|
|
18619
18675
|
"g",
|
|
18620
18676
|
{
|
|
18621
18677
|
"data-testid": "ui-wistia-logo-brandmark",
|
|
18622
18678
|
fill: brandmarkColor,
|
|
18623
|
-
children: /* @__PURE__ */
|
|
18679
|
+
children: /* @__PURE__ */ jsx338("path", { d: "M16.09 21.37h-5.2c-1.58 0-3.08.68-4.11 1.87L.21 30.8c4.78.25 9.78.25 13.3.25 18.31 0 20.89-11.27 20.89-16.55-1.59 1.93-6.06 6.87-18.32 6.87Zm16.05-17.1c-.08.92-.59 4.69-11.31 4.69-8.72 0-12.24 0-20.83-.17l6.44 7.4a6.657 6.657 0 0 0 4.96 2.3c2.13.03 5.05.06 5.53.06 11.01 0 17.19-5.05 17.19-9.89 0-2.01-.67-3.44-1.97-4.4Z" })
|
|
18624
18680
|
}
|
|
18625
18681
|
);
|
|
18626
18682
|
};
|
|
@@ -18628,12 +18684,12 @@ var renderLogotype = (logotypeColor, iconOnly) => {
|
|
|
18628
18684
|
if (iconOnly) {
|
|
18629
18685
|
return null;
|
|
18630
18686
|
}
|
|
18631
|
-
return /* @__PURE__ */
|
|
18687
|
+
return /* @__PURE__ */ jsx338(
|
|
18632
18688
|
"g",
|
|
18633
18689
|
{
|
|
18634
18690
|
"data-testid": "ui-wistia-logo-logotype",
|
|
18635
18691
|
fill: logotypeColor,
|
|
18636
|
-
children: /* @__PURE__ */
|
|
18692
|
+
children: /* @__PURE__ */ jsx338("path", { d: "M70.16 8.66v15.18c0 1.68-.35 3.09-1.05 4.23a6.612 6.612 0 0 1-2.85 2.54c-1.19.55-2.52.82-4.01.82s-2.8-.28-4.01-.85a6.655 6.655 0 0 1-3.11-2.96c-.08.15-.16.29-.24.42a6.552 6.552 0 0 1-2.87 2.54c-1.2.56-2.54.85-4.01.85s-2.8-.27-3.94-.82a6.214 6.214 0 0 1-2.71-2.52c-.67-1.14-1.01-2.56-1.02-4.25l-.22-15.18h7.34V22.3c0 .82.19 1.37.56 1.67.39.28.85.42 1.38.42s1.02-.15 1.45-.45c.43-.3.65-.85.65-1.65V8.65h7.3v13.64c0 .8.22 1.35.65 1.65.43.3.91.45 1.45.45s.99-.14 1.36-.42c.39-.3.58-.85.58-1.67V8.66h7.34Zm2.45 0v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89A3.43 3.43 0 0 0 78.28.44c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.13 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm8.86 1.96c-1.42.4-2.6 1.11-3.54 2.14-.93 1.02-1.4 2.4-1.4 4.12 0 1.11.17 2.09.51 2.94.36.85.82 1.62 1.38 2.34.22.28.55.65.98 1.11.37.4.64.72.8.96.18.24.27.47.27.69 0 .5-.4.87-1.2 1.09-.8.21-1.62.31-2.47.31-.1-.01-.22-.02-.33-.02l1.02 6.94c.42.07.92.11 1.51.11 1.9 0 3.6-.28 5.1-.85 1.5-.56 2.68-1.42 3.54-2.56.88-1.14 1.31-2.55 1.31-4.23 0-.68-.07-1.31-.22-1.87-.13-.58-.32-1.09-.56-1.54a6.64 6.64 0 0 0-.8-1.27c-.3-.37-.74-.82-1.34-1.36-.39-.33-.67-.59-.85-.8-.18-.22-.27-.45-.27-.67 0-.46.26-.79.78-.98.53-.19 1.17-.29 1.91-.29.25 0 .51.01.78.04l-.71-6.88a10.4 10.4 0 0 0-1.56-.11c-1.66 0-3.21.21-4.65.62Zm19.54 15.71c-.99 0-1.71-.23-2.14-.69-.42-.47-.62-1.18-.62-2.11v-6.57h4.21V8.66h-4.21V3.38l-7.34 1.85V24.1c0 2.45.47 4.29 1.4 5.52.95 1.22 2.45 1.83 4.49 1.83.95 0 1.86-.07 2.74-.22.88-.13 1.62-.34 2.25-.62l1.38-6.3c-.55.1-1.27.16-2.16.16Zm4.13-15.8v22.26h7.34V8.66h-7.34Zm5.67-1.87c.61-.3 1.08-.71 1.42-1.25.36-.55.53-1.19.53-1.94s-.18-1.34-.53-1.89a3.43 3.43 0 0 0-1.42-1.27c-.59-.3-1.25-.45-1.98-.45s-1.42.15-2.02.45c-.59.3-1.07.72-1.42 1.27-.36.55-.53 1.18-.53 1.89 0 1.1.38 1.97 1.14 2.63.76.65 1.71.98 2.85.98.73 0 1.39-.14 1.98-.42Zm27.51 1.87v22.26h-7.34v-2.28c-.41.43-.85.83-1.34 1.19-1.44 1.07-3.12 1.6-5.05 1.6s-3.61-.52-5.1-1.56c-1.48-1.05-2.63-2.47-3.45-4.25-.82-1.78-1.22-3.73-1.22-5.85s.41-4.07 1.22-5.83c.82-1.78 1.97-3.19 3.45-4.23 1.48-1.05 3.18-1.58 5.1-1.58s3.61.53 5.05 1.6c.48.36.93.75 1.34 1.19V8.66h7.34Zm-7.1 11.11c0-.8-.19-1.53-.56-2.18-.37-.67-.88-1.19-1.54-1.58-.64-.39-1.34-.58-2.09-.58s-1.45.19-2.09.58c-.64.39-1.15.91-1.54 1.58-.37.67-.56 1.39-.56 2.18s.19 1.51.56 2.18c.39.67.9 1.19 1.54 1.58.64.39 1.34.58 2.09.58s1.45-.19 2.09-.58c.65-.39 1.16-.91 1.54-1.56.37-.67.56-1.4.56-2.2Z" })
|
|
18637
18693
|
}
|
|
18638
18694
|
);
|
|
18639
18695
|
};
|
|
@@ -18714,14 +18770,14 @@ var WistiaLogo = ({
|
|
|
18714
18770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18715
18771
|
...props,
|
|
18716
18772
|
children: [
|
|
18717
|
-
/* @__PURE__ */
|
|
18718
|
-
isNotNil44(description) ? /* @__PURE__ */
|
|
18773
|
+
/* @__PURE__ */ jsx338("title", { children: title }),
|
|
18774
|
+
isNotNil44(description) ? /* @__PURE__ */ jsx338("desc", { children: description }) : null,
|
|
18719
18775
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
18720
18776
|
renderLogotype(logotypeColor, iconOnly)
|
|
18721
18777
|
]
|
|
18722
18778
|
}
|
|
18723
18779
|
);
|
|
18724
|
-
return href !== void 0 ? /* @__PURE__ */
|
|
18780
|
+
return href !== void 0 ? /* @__PURE__ */ jsx338("a", { href, children: Logo }) : Logo;
|
|
18725
18781
|
};
|
|
18726
18782
|
WistiaLogo.displayName = "WistiaLogo_UI";
|
|
18727
18783
|
|
|
@@ -18729,7 +18785,7 @@ WistiaLogo.displayName = "WistiaLogo_UI";
|
|
|
18729
18785
|
import { styled as styled111 } from "styled-components";
|
|
18730
18786
|
import { isNotNil as isNotNil45 } from "@wistia/type-guards";
|
|
18731
18787
|
import { cloneElement as cloneElement10 } from "react";
|
|
18732
|
-
import { jsx as
|
|
18788
|
+
import { jsx as jsx339, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
18733
18789
|
var StyledSplitButton = styled111.span`
|
|
18734
18790
|
${({ $colorScheme }) => getColorScheme($colorScheme)};
|
|
18735
18791
|
white-space: nowrap;
|
|
@@ -18751,7 +18807,7 @@ var StyledSplitButton = styled111.span`
|
|
|
18751
18807
|
var SplitButton = ({
|
|
18752
18808
|
children,
|
|
18753
18809
|
menuLabel = "Select an option",
|
|
18754
|
-
menuIcon = /* @__PURE__ */
|
|
18810
|
+
menuIcon = /* @__PURE__ */ jsx339(Icon, { type: "caret-down" }),
|
|
18755
18811
|
menuItems,
|
|
18756
18812
|
disabled = false,
|
|
18757
18813
|
colorScheme = "inherit",
|
|
@@ -18763,7 +18819,7 @@ var SplitButton = ({
|
|
|
18763
18819
|
...props
|
|
18764
18820
|
}) => {
|
|
18765
18821
|
return /* @__PURE__ */ jsxs72(StyledSplitButton, { $colorScheme: colorScheme, children: [
|
|
18766
|
-
/* @__PURE__ */
|
|
18822
|
+
/* @__PURE__ */ jsx339(
|
|
18767
18823
|
Button,
|
|
18768
18824
|
{
|
|
18769
18825
|
disabled,
|
|
@@ -18774,12 +18830,12 @@ var SplitButton = ({
|
|
|
18774
18830
|
children
|
|
18775
18831
|
}
|
|
18776
18832
|
),
|
|
18777
|
-
isNotNil45(menuItems) && /* @__PURE__ */
|
|
18833
|
+
isNotNil45(menuItems) && /* @__PURE__ */ jsx339(
|
|
18778
18834
|
Menu,
|
|
18779
18835
|
{
|
|
18780
18836
|
...menuProps,
|
|
18781
18837
|
disabled,
|
|
18782
|
-
trigger: /* @__PURE__ */
|
|
18838
|
+
trigger: /* @__PURE__ */ jsx339(
|
|
18783
18839
|
IconButton,
|
|
18784
18840
|
{
|
|
18785
18841
|
disabled,
|
|
@@ -18800,7 +18856,7 @@ SplitButton.displayName = "SplitButton_UI";
|
|
|
18800
18856
|
|
|
18801
18857
|
// src/components/CustomizableThemeWrapper/CustomizableThemeWrapper.tsx
|
|
18802
18858
|
import { styled as styled112 } from "styled-components";
|
|
18803
|
-
import { jsx as
|
|
18859
|
+
import { jsx as jsx340 } from "react/jsx-runtime";
|
|
18804
18860
|
var StyledCustomizableThemeWrapper = styled112.div(
|
|
18805
18861
|
(props) => props.$overrides
|
|
18806
18862
|
);
|
|
@@ -18808,7 +18864,7 @@ var CustomizableThemeWrapper = ({
|
|
|
18808
18864
|
children,
|
|
18809
18865
|
overrides,
|
|
18810
18866
|
...props
|
|
18811
|
-
}) => /* @__PURE__ */
|
|
18867
|
+
}) => /* @__PURE__ */ jsx340(
|
|
18812
18868
|
StyledCustomizableThemeWrapper,
|
|
18813
18869
|
{
|
|
18814
18870
|
...props,
|
|
@@ -18977,4 +19033,4 @@ export {
|
|
|
18977
19033
|
useToast,
|
|
18978
19034
|
useWindowSize
|
|
18979
19035
|
};
|
|
18980
|
-
//# sourceMappingURL=index.
|
|
19036
|
+
//# sourceMappingURL=index.js.map
|