@wistia/ui 0.0.12 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +114 -94
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +110 -90
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
/*
|
|
3
|
-
* @license @wistia/ui v0.0.
|
|
3
|
+
* @license @wistia/ui v0.0.14
|
|
4
4
|
*
|
|
5
5
|
* Copyright (c) 2024-2024, Wistia, Inc. and its affiliates.
|
|
6
6
|
*
|
|
@@ -1534,6 +1534,7 @@ var defaultScheme = import_styled_components10.css`
|
|
|
1534
1534
|
--color-bg-fill-hover: var(--blue-10);
|
|
1535
1535
|
--color-bg-fill-active: var(--blue-12);
|
|
1536
1536
|
--color-text: var(--gray-12);
|
|
1537
|
+
--color-text-high-contrast: var(--gray-12);
|
|
1537
1538
|
--color-text-link: var(--blue-9);
|
|
1538
1539
|
--color-text-secondary: var(--gray-11);
|
|
1539
1540
|
--color-text-on-fill: var(--gray-contrast);
|
|
@@ -4784,15 +4785,33 @@ var ThumbsUpIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime143.jsx)(
|
|
|
4784
4785
|
}
|
|
4785
4786
|
);
|
|
4786
4787
|
|
|
4787
|
-
// src/components/Icon/icons/
|
|
4788
|
+
// src/components/Icon/icons/TranscriptIcon.tsx
|
|
4788
4789
|
var import_jsx_runtime144 = require("react/jsx-runtime");
|
|
4789
|
-
var
|
|
4790
|
+
var TranscriptIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
4790
4791
|
"svg",
|
|
4791
4792
|
{
|
|
4792
4793
|
...props,
|
|
4793
4794
|
viewBox: "0 0 24 24",
|
|
4794
4795
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4795
4796
|
children: /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
4797
|
+
"path",
|
|
4798
|
+
{
|
|
4799
|
+
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",
|
|
4800
|
+
fill: "currentColor"
|
|
4801
|
+
}
|
|
4802
|
+
)
|
|
4803
|
+
}
|
|
4804
|
+
);
|
|
4805
|
+
|
|
4806
|
+
// src/components/Icon/icons/TransitionsIcon.tsx
|
|
4807
|
+
var import_jsx_runtime145 = require("react/jsx-runtime");
|
|
4808
|
+
var TransitionsIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
|
|
4809
|
+
"svg",
|
|
4810
|
+
{
|
|
4811
|
+
...props,
|
|
4812
|
+
viewBox: "0 0 24 24",
|
|
4813
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
4814
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
|
|
4796
4815
|
"path",
|
|
4797
4816
|
{
|
|
4798
4817
|
clipRule: "evenodd",
|
|
@@ -4805,14 +4824,14 @@ var TransitionsIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime144.jsx)(
|
|
|
4805
4824
|
);
|
|
4806
4825
|
|
|
4807
4826
|
// src/components/Icon/icons/TrimIcon.tsx
|
|
4808
|
-
var
|
|
4809
|
-
var TrimIcon = (props) => /* @__PURE__ */ (0,
|
|
4827
|
+
var import_jsx_runtime146 = require("react/jsx-runtime");
|
|
4828
|
+
var TrimIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
4810
4829
|
"svg",
|
|
4811
4830
|
{
|
|
4812
4831
|
...props,
|
|
4813
4832
|
viewBox: "0 0 24 24",
|
|
4814
4833
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4815
|
-
children: /* @__PURE__ */ (0,
|
|
4834
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
4816
4835
|
"path",
|
|
4817
4836
|
{
|
|
4818
4837
|
clipRule: "evenodd",
|
|
@@ -4825,14 +4844,14 @@ var TrimIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)(
|
|
|
4825
4844
|
);
|
|
4826
4845
|
|
|
4827
4846
|
// src/components/Icon/icons/TurnstileIcon.tsx
|
|
4828
|
-
var
|
|
4829
|
-
var TurnstileIcon = (props) => /* @__PURE__ */ (0,
|
|
4847
|
+
var import_jsx_runtime147 = require("react/jsx-runtime");
|
|
4848
|
+
var TurnstileIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
4830
4849
|
"svg",
|
|
4831
4850
|
{
|
|
4832
4851
|
...props,
|
|
4833
4852
|
viewBox: "0 0 24 24",
|
|
4834
4853
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4835
|
-
children: /* @__PURE__ */ (0,
|
|
4854
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
4836
4855
|
"path",
|
|
4837
4856
|
{
|
|
4838
4857
|
clipRule: "evenodd",
|
|
@@ -4845,14 +4864,14 @@ var TurnstileIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
|
|
|
4845
4864
|
);
|
|
4846
4865
|
|
|
4847
4866
|
// src/components/Icon/icons/UndoIcon.tsx
|
|
4848
|
-
var
|
|
4849
|
-
var UndoIcon = (props) => /* @__PURE__ */ (0,
|
|
4867
|
+
var import_jsx_runtime148 = require("react/jsx-runtime");
|
|
4868
|
+
var UndoIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
4850
4869
|
"svg",
|
|
4851
4870
|
{
|
|
4852
4871
|
...props,
|
|
4853
4872
|
viewBox: "0 0 24 24",
|
|
4854
4873
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4855
|
-
children: /* @__PURE__ */ (0,
|
|
4874
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
4856
4875
|
"path",
|
|
4857
4876
|
{
|
|
4858
4877
|
clipRule: "evenodd",
|
|
@@ -4865,14 +4884,14 @@ var UndoIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime147.jsx)(
|
|
|
4865
4884
|
);
|
|
4866
4885
|
|
|
4867
4886
|
// src/components/Icon/icons/UnlockIcon.tsx
|
|
4868
|
-
var
|
|
4869
|
-
var UnlockIcon = (props) => /* @__PURE__ */ (0,
|
|
4887
|
+
var import_jsx_runtime149 = require("react/jsx-runtime");
|
|
4888
|
+
var UnlockIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
4870
4889
|
"svg",
|
|
4871
4890
|
{
|
|
4872
4891
|
...props,
|
|
4873
4892
|
viewBox: "0 0 24 24",
|
|
4874
4893
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4875
|
-
children: /* @__PURE__ */ (0,
|
|
4894
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
4876
4895
|
"path",
|
|
4877
4896
|
{
|
|
4878
4897
|
clipRule: "evenodd",
|
|
@@ -4885,14 +4904,14 @@ var UnlockIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime148.jsx)(
|
|
|
4885
4904
|
);
|
|
4886
4905
|
|
|
4887
4906
|
// src/components/Icon/icons/UploadIcon.tsx
|
|
4888
|
-
var
|
|
4889
|
-
var UploadIcon = (props) => /* @__PURE__ */ (0,
|
|
4907
|
+
var import_jsx_runtime150 = require("react/jsx-runtime");
|
|
4908
|
+
var UploadIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
|
|
4890
4909
|
"svg",
|
|
4891
4910
|
{
|
|
4892
4911
|
...props,
|
|
4893
4912
|
viewBox: "0 0 24 24",
|
|
4894
4913
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4895
|
-
children: /* @__PURE__ */ (0,
|
|
4914
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime150.jsx)(
|
|
4896
4915
|
"path",
|
|
4897
4916
|
{
|
|
4898
4917
|
clipRule: "evenodd",
|
|
@@ -4905,14 +4924,14 @@ var UploadIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime149.jsx)(
|
|
|
4905
4924
|
);
|
|
4906
4925
|
|
|
4907
4926
|
// src/components/Icon/icons/UsersPermissionsIcon.tsx
|
|
4908
|
-
var
|
|
4909
|
-
var UsersPermissionsIcon = (props) => /* @__PURE__ */ (0,
|
|
4927
|
+
var import_jsx_runtime151 = require("react/jsx-runtime");
|
|
4928
|
+
var UsersPermissionsIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
4910
4929
|
"svg",
|
|
4911
4930
|
{
|
|
4912
4931
|
...props,
|
|
4913
4932
|
viewBox: "0 0 24 24",
|
|
4914
4933
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4915
|
-
children: /* @__PURE__ */ (0,
|
|
4934
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
4916
4935
|
"path",
|
|
4917
4936
|
{
|
|
4918
4937
|
clipRule: "evenodd",
|
|
@@ -4925,14 +4944,14 @@ var UsersPermissionsIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime150.
|
|
|
4925
4944
|
);
|
|
4926
4945
|
|
|
4927
4946
|
// src/components/Icon/icons/ViewStreamIcon.tsx
|
|
4928
|
-
var
|
|
4929
|
-
var ViewStreamIcon = (props) => /* @__PURE__ */ (0,
|
|
4947
|
+
var import_jsx_runtime152 = require("react/jsx-runtime");
|
|
4948
|
+
var ViewStreamIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
|
|
4930
4949
|
"svg",
|
|
4931
4950
|
{
|
|
4932
4951
|
...props,
|
|
4933
4952
|
viewBox: "0 0 24 24",
|
|
4934
4953
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4935
|
-
children: /* @__PURE__ */ (0,
|
|
4954
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
|
|
4936
4955
|
"path",
|
|
4937
4956
|
{
|
|
4938
4957
|
clipRule: "evenodd",
|
|
@@ -4945,14 +4964,14 @@ var ViewStreamIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime151.jsx)(
|
|
|
4945
4964
|
);
|
|
4946
4965
|
|
|
4947
4966
|
// src/components/Icon/icons/VolumeIcon.tsx
|
|
4948
|
-
var
|
|
4949
|
-
var VolumeIcon = (props) => /* @__PURE__ */ (0,
|
|
4967
|
+
var import_jsx_runtime153 = require("react/jsx-runtime");
|
|
4968
|
+
var VolumeIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
|
|
4950
4969
|
"svg",
|
|
4951
4970
|
{
|
|
4952
4971
|
...props,
|
|
4953
4972
|
viewBox: "0 0 24 24",
|
|
4954
4973
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4955
|
-
children: /* @__PURE__ */ (0,
|
|
4974
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
|
|
4956
4975
|
"path",
|
|
4957
4976
|
{
|
|
4958
4977
|
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",
|
|
@@ -4963,14 +4982,14 @@ var VolumeIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime152.jsx)(
|
|
|
4963
4982
|
);
|
|
4964
4983
|
|
|
4965
4984
|
// src/components/Icon/icons/VolumeOffIcon.tsx
|
|
4966
|
-
var
|
|
4967
|
-
var VolumeOffIcon = (props) => /* @__PURE__ */ (0,
|
|
4985
|
+
var import_jsx_runtime154 = require("react/jsx-runtime");
|
|
4986
|
+
var VolumeOffIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
|
|
4968
4987
|
"svg",
|
|
4969
4988
|
{
|
|
4970
4989
|
...props,
|
|
4971
4990
|
viewBox: "0 0 24 24",
|
|
4972
4991
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4973
|
-
children: /* @__PURE__ */ (0,
|
|
4992
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
|
|
4974
4993
|
"path",
|
|
4975
4994
|
{
|
|
4976
4995
|
clipRule: "evenodd",
|
|
@@ -4983,14 +5002,14 @@ var VolumeOffIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime153.jsx)(
|
|
|
4983
5002
|
);
|
|
4984
5003
|
|
|
4985
5004
|
// src/components/Icon/icons/VolumeUpIcon.tsx
|
|
4986
|
-
var
|
|
4987
|
-
var VolumeUpIcon = (props) => /* @__PURE__ */ (0,
|
|
5005
|
+
var import_jsx_runtime155 = require("react/jsx-runtime");
|
|
5006
|
+
var VolumeUpIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
|
|
4988
5007
|
"svg",
|
|
4989
5008
|
{
|
|
4990
5009
|
...props,
|
|
4991
5010
|
viewBox: "0 0 24 24",
|
|
4992
5011
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4993
|
-
children: /* @__PURE__ */ (0,
|
|
5012
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
|
|
4994
5013
|
"path",
|
|
4995
5014
|
{
|
|
4996
5015
|
clipRule: "evenodd",
|
|
@@ -5003,14 +5022,14 @@ var VolumeUpIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime154.jsx)(
|
|
|
5003
5022
|
);
|
|
5004
5023
|
|
|
5005
5024
|
// src/components/Icon/icons/VolumeXIcon.tsx
|
|
5006
|
-
var
|
|
5007
|
-
var VolumeXIcon = (props) => /* @__PURE__ */ (0,
|
|
5025
|
+
var import_jsx_runtime156 = require("react/jsx-runtime");
|
|
5026
|
+
var VolumeXIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
|
|
5008
5027
|
"svg",
|
|
5009
5028
|
{
|
|
5010
5029
|
...props,
|
|
5011
5030
|
viewBox: "0 0 24 24",
|
|
5012
5031
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5013
|
-
children: /* @__PURE__ */ (0,
|
|
5032
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
|
|
5014
5033
|
"path",
|
|
5015
5034
|
{
|
|
5016
5035
|
clipRule: "evenodd",
|
|
@@ -5023,14 +5042,14 @@ var VolumeXIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime155.jsx)(
|
|
|
5023
5042
|
);
|
|
5024
5043
|
|
|
5025
5044
|
// src/components/Icon/icons/WandIcon.tsx
|
|
5026
|
-
var
|
|
5027
|
-
var WandIcon = (props) => /* @__PURE__ */ (0,
|
|
5045
|
+
var import_jsx_runtime157 = require("react/jsx-runtime");
|
|
5046
|
+
var WandIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
|
|
5028
5047
|
"svg",
|
|
5029
5048
|
{
|
|
5030
5049
|
...props,
|
|
5031
5050
|
viewBox: "0 0 24 24",
|
|
5032
5051
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5033
|
-
children: /* @__PURE__ */ (0,
|
|
5052
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
|
|
5034
5053
|
"path",
|
|
5035
5054
|
{
|
|
5036
5055
|
clipRule: "evenodd",
|
|
@@ -5043,14 +5062,14 @@ var WandIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime156.jsx)(
|
|
|
5043
5062
|
);
|
|
5044
5063
|
|
|
5045
5064
|
// src/components/Icon/icons/ZoomInIcon.tsx
|
|
5046
|
-
var
|
|
5047
|
-
var ZoomInIcon = (props) => /* @__PURE__ */ (0,
|
|
5065
|
+
var import_jsx_runtime158 = require("react/jsx-runtime");
|
|
5066
|
+
var ZoomInIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
|
|
5048
5067
|
"svg",
|
|
5049
5068
|
{
|
|
5050
5069
|
...props,
|
|
5051
5070
|
viewBox: "0 0 24 24",
|
|
5052
5071
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5053
|
-
children: /* @__PURE__ */ (0,
|
|
5072
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime158.jsx)(
|
|
5054
5073
|
"path",
|
|
5055
5074
|
{
|
|
5056
5075
|
clipRule: "evenodd",
|
|
@@ -5063,14 +5082,14 @@ var ZoomInIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime157.jsx)(
|
|
|
5063
5082
|
);
|
|
5064
5083
|
|
|
5065
5084
|
// src/components/Icon/icons/ZoomOutIcon.tsx
|
|
5066
|
-
var
|
|
5067
|
-
var ZoomOutIcon = (props) => /* @__PURE__ */ (0,
|
|
5085
|
+
var import_jsx_runtime159 = require("react/jsx-runtime");
|
|
5086
|
+
var ZoomOutIcon = (props) => /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
|
|
5068
5087
|
"svg",
|
|
5069
5088
|
{
|
|
5070
5089
|
...props,
|
|
5071
5090
|
viewBox: "0 0 24 24",
|
|
5072
5091
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5073
|
-
children: /* @__PURE__ */ (0,
|
|
5092
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime159.jsx)(
|
|
5074
5093
|
"path",
|
|
5075
5094
|
{
|
|
5076
5095
|
clipRule: "evenodd",
|
|
@@ -5222,6 +5241,7 @@ var iconMap = {
|
|
|
5222
5241
|
"thumbs-down": ThumbsDownIcon,
|
|
5223
5242
|
"thumbs-up": ThumbsUpIcon,
|
|
5224
5243
|
transitions: TransitionsIcon,
|
|
5244
|
+
transcript: TranscriptIcon,
|
|
5225
5245
|
trim: TrimIcon,
|
|
5226
5246
|
turnstile: TurnstileIcon,
|
|
5227
5247
|
undo: UndoIcon,
|
|
@@ -5256,7 +5276,7 @@ var useResponsiveProp = (values) => {
|
|
|
5256
5276
|
};
|
|
5257
5277
|
|
|
5258
5278
|
// src/components/Icon/Icon.tsx
|
|
5259
|
-
var
|
|
5279
|
+
var import_jsx_runtime160 = require("react/jsx-runtime");
|
|
5260
5280
|
var iconSizeMap = {
|
|
5261
5281
|
sm: "12",
|
|
5262
5282
|
md: "16",
|
|
@@ -5293,7 +5313,7 @@ var Icon = ({
|
|
|
5293
5313
|
...style
|
|
5294
5314
|
};
|
|
5295
5315
|
const iconColor = invertColor ? "var(--color-icon-on-fill)" : "var(--color-icon)";
|
|
5296
|
-
return /* @__PURE__ */ (0,
|
|
5316
|
+
return /* @__PURE__ */ (0, import_jsx_runtime160.jsx)(
|
|
5297
5317
|
StyledIcon,
|
|
5298
5318
|
{
|
|
5299
5319
|
$colorScheme: colorScheme,
|
|
@@ -5317,7 +5337,7 @@ var import_react9 = require("react");
|
|
|
5317
5337
|
var import_type_guards11 = require("@wistia/type-guards");
|
|
5318
5338
|
var import_styled_components18 = __toESM(require("styled-components"));
|
|
5319
5339
|
var import_react_router_dom = require("react-router-dom");
|
|
5320
|
-
var
|
|
5340
|
+
var import_jsx_runtime161 = require("react/jsx-runtime");
|
|
5321
5341
|
var generateHref = (href, type, disabled) => {
|
|
5322
5342
|
if (disabled || (0, import_type_guards11.isNil)(href)) {
|
|
5323
5343
|
return void 0;
|
|
@@ -5379,7 +5399,7 @@ var Link = (0, import_react9.forwardRef)(
|
|
|
5379
5399
|
onClick: handleClick
|
|
5380
5400
|
};
|
|
5381
5401
|
if (isButton(props)) {
|
|
5382
|
-
return /* @__PURE__ */ (0,
|
|
5402
|
+
return /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
|
|
5383
5403
|
StyledLink,
|
|
5384
5404
|
{
|
|
5385
5405
|
ref,
|
|
@@ -5399,7 +5419,7 @@ var Link = (0, import_react9.forwardRef)(
|
|
|
5399
5419
|
...commonProps,
|
|
5400
5420
|
...externalLinkProps
|
|
5401
5421
|
};
|
|
5402
|
-
return inRouterContext && type !== "external" ? /* @__PURE__ */ (0,
|
|
5422
|
+
return inRouterContext && type !== "external" ? /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
|
|
5403
5423
|
StyledLink,
|
|
5404
5424
|
{
|
|
5405
5425
|
as: import_react_router_dom.Link,
|
|
@@ -5407,7 +5427,7 @@ var Link = (0, import_react9.forwardRef)(
|
|
|
5407
5427
|
to: to ?? "",
|
|
5408
5428
|
children
|
|
5409
5429
|
}
|
|
5410
|
-
) : /* @__PURE__ */ (0,
|
|
5430
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime161.jsx)(
|
|
5411
5431
|
StyledLink,
|
|
5412
5432
|
{
|
|
5413
5433
|
as: "a",
|
|
@@ -5423,7 +5443,7 @@ var Link = (0, import_react9.forwardRef)(
|
|
|
5423
5443
|
Link.displayName = "Link";
|
|
5424
5444
|
|
|
5425
5445
|
// src/components/Button/Button.tsx
|
|
5426
|
-
var
|
|
5446
|
+
var import_jsx_runtime162 = require("react/jsx-runtime");
|
|
5427
5447
|
var isLink2 = (props) => (0, import_type_guards12.isNotUndefined)(props.href);
|
|
5428
5448
|
var StyledButton = import_styled_components19.default.button`
|
|
5429
5449
|
${buttonResetCss}
|
|
@@ -5460,9 +5480,9 @@ var ButtonContent = ({
|
|
|
5460
5480
|
rightIcon,
|
|
5461
5481
|
children
|
|
5462
5482
|
}) => {
|
|
5463
|
-
return /* @__PURE__ */ (0,
|
|
5464
|
-
isLoading ? /* @__PURE__ */ (0,
|
|
5465
|
-
/* @__PURE__ */ (0,
|
|
5483
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(import_jsx_runtime162.Fragment, { children: [
|
|
5484
|
+
isLoading ? /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(StyledButtonLoading, { children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(Icon, { type: "spinner" }) }) : null,
|
|
5485
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsxs)(
|
|
5466
5486
|
StyledButtonContent,
|
|
5467
5487
|
{
|
|
5468
5488
|
$hasLeftIcon: (0, import_type_guards12.isNotNil)(leftIcon),
|
|
@@ -5470,7 +5490,7 @@ var ButtonContent = ({
|
|
|
5470
5490
|
$isLoading: isLoading,
|
|
5471
5491
|
children: [
|
|
5472
5492
|
leftIcon ?? null,
|
|
5473
|
-
/* @__PURE__ */ (0,
|
|
5493
|
+
/* @__PURE__ */ (0, import_jsx_runtime162.jsx)(StyledButtonContentLabel, { children }),
|
|
5474
5494
|
rightIcon ?? null
|
|
5475
5495
|
]
|
|
5476
5496
|
}
|
|
@@ -5512,14 +5532,14 @@ var Button = (0, import_react10.forwardRef)(
|
|
|
5512
5532
|
commonProps.className = `${className ?? ""} force-state-${forceState}`;
|
|
5513
5533
|
}
|
|
5514
5534
|
if (isLink2(props)) {
|
|
5515
|
-
return /* @__PURE__ */ (0,
|
|
5535
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
|
|
5516
5536
|
StyledButton,
|
|
5517
5537
|
{
|
|
5518
5538
|
ref,
|
|
5519
5539
|
as: Link,
|
|
5520
5540
|
...props,
|
|
5521
5541
|
...commonProps,
|
|
5522
|
-
children: /* @__PURE__ */ (0,
|
|
5542
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
|
|
5523
5543
|
ButtonContent,
|
|
5524
5544
|
{
|
|
5525
5545
|
isLoading,
|
|
@@ -5540,7 +5560,7 @@ var Button = (0, import_react10.forwardRef)(
|
|
|
5540
5560
|
onClick(event);
|
|
5541
5561
|
}
|
|
5542
5562
|
};
|
|
5543
|
-
return /* @__PURE__ */ (0,
|
|
5563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
|
|
5544
5564
|
StyledButton,
|
|
5545
5565
|
{
|
|
5546
5566
|
ref,
|
|
@@ -5548,7 +5568,7 @@ var Button = (0, import_react10.forwardRef)(
|
|
|
5548
5568
|
type: "button",
|
|
5549
5569
|
...props,
|
|
5550
5570
|
...commonProps,
|
|
5551
|
-
children: /* @__PURE__ */ (0,
|
|
5571
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime162.jsx)(
|
|
5552
5572
|
ButtonContent,
|
|
5553
5573
|
{
|
|
5554
5574
|
isLoading,
|
|
@@ -5566,7 +5586,7 @@ Button.displayName = "Button";
|
|
|
5566
5586
|
// src/components/ButtonGroup/ButtonGroup.tsx
|
|
5567
5587
|
var import_styled_components20 = __toESM(require("styled-components"));
|
|
5568
5588
|
var import_type_guards13 = require("@wistia/type-guards");
|
|
5569
|
-
var
|
|
5589
|
+
var import_jsx_runtime163 = require("react/jsx-runtime");
|
|
5570
5590
|
var getAlignment = (align) => {
|
|
5571
5591
|
if (align === "center") {
|
|
5572
5592
|
return "center";
|
|
@@ -5608,7 +5628,7 @@ var ButtonGroup = ({
|
|
|
5608
5628
|
if ((0, import_type_guards13.isNil)(children)) {
|
|
5609
5629
|
return null;
|
|
5610
5630
|
}
|
|
5611
|
-
return /* @__PURE__ */ (0,
|
|
5631
|
+
return /* @__PURE__ */ (0, import_jsx_runtime163.jsx)(
|
|
5612
5632
|
ButtonGroupComponent,
|
|
5613
5633
|
{
|
|
5614
5634
|
$align: align,
|
|
@@ -5622,7 +5642,7 @@ ButtonGroup.displayName = "ButtonGroup";
|
|
|
5622
5642
|
|
|
5623
5643
|
// src/components/Divider/Divider.tsx
|
|
5624
5644
|
var import_styled_components21 = __toESM(require("styled-components"));
|
|
5625
|
-
var
|
|
5645
|
+
var import_jsx_runtime164 = require("react/jsx-runtime");
|
|
5626
5646
|
var sizeToPixelMap = {
|
|
5627
5647
|
lg: 4,
|
|
5628
5648
|
sm: 1
|
|
@@ -5642,7 +5662,7 @@ var DividerComponent = import_styled_components21.default.hr`
|
|
|
5642
5662
|
`;
|
|
5643
5663
|
var Divider = ({ size = "sm", ...otherProps }) => {
|
|
5644
5664
|
const responsiveSize = useResponsiveProp(size);
|
|
5645
|
-
return /* @__PURE__ */ (0,
|
|
5665
|
+
return /* @__PURE__ */ (0, import_jsx_runtime164.jsx)(
|
|
5646
5666
|
DividerComponent,
|
|
5647
5667
|
{
|
|
5648
5668
|
$borderHeight: sizeToPixelMap[responsiveSize],
|
|
@@ -5655,7 +5675,7 @@ Divider.displayName = "Divider";
|
|
|
5655
5675
|
// src/components/Ellipsis/Ellipsis.tsx
|
|
5656
5676
|
var import_type_guards14 = require("@wistia/type-guards");
|
|
5657
5677
|
var import_styled_components22 = __toESM(require("styled-components"));
|
|
5658
|
-
var
|
|
5678
|
+
var import_jsx_runtime165 = require("react/jsx-runtime");
|
|
5659
5679
|
var ellipsisStyle = import_styled_components22.css`
|
|
5660
5680
|
overflow: hidden;
|
|
5661
5681
|
text-overflow: ellipsis;
|
|
@@ -5696,7 +5716,7 @@ var EllipsisComponent = import_styled_components22.default.div`
|
|
|
5696
5716
|
return void 0;
|
|
5697
5717
|
}}
|
|
5698
5718
|
`;
|
|
5699
|
-
var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0,
|
|
5719
|
+
var Ellipsis = ({ children, lines, ...otherProps }) => /* @__PURE__ */ (0, import_jsx_runtime165.jsx)(
|
|
5700
5720
|
EllipsisComponent,
|
|
5701
5721
|
{
|
|
5702
5722
|
$lines: lines,
|
|
@@ -5716,7 +5736,7 @@ var makePolymorphic = (component) => {
|
|
|
5716
5736
|
};
|
|
5717
5737
|
|
|
5718
5738
|
// src/components/Heading/Heading.tsx
|
|
5719
|
-
var
|
|
5739
|
+
var import_jsx_runtime166 = require("react/jsx-runtime");
|
|
5720
5740
|
var heroStyle = import_styled_components23.css`
|
|
5721
5741
|
--font-family: var(--typography-heading-hero-family);
|
|
5722
5742
|
--font-size: var(--typography-heading-hero-size);
|
|
@@ -5812,7 +5832,7 @@ var HeadingComponent = (0, import_react11.forwardRef)(
|
|
|
5812
5832
|
variant = "heading1",
|
|
5813
5833
|
renderAs,
|
|
5814
5834
|
...otherProps
|
|
5815
|
-
}, ref) => /* @__PURE__ */ (0,
|
|
5835
|
+
}, ref) => /* @__PURE__ */ (0, import_jsx_runtime166.jsx)(
|
|
5816
5836
|
StyledHeading,
|
|
5817
5837
|
{
|
|
5818
5838
|
ref,
|
|
@@ -5838,7 +5858,7 @@ var import_styled_components25 = __toESM(require("styled-components"));
|
|
|
5838
5858
|
// src/components/Tooltip/Tooltip.tsx
|
|
5839
5859
|
var import_react_tooltip2 = require("@radix-ui/react-tooltip");
|
|
5840
5860
|
var import_styled_components24 = __toESM(require("styled-components"));
|
|
5841
|
-
var
|
|
5861
|
+
var import_jsx_runtime167 = require("react/jsx-runtime");
|
|
5842
5862
|
var CompactTooltipStyles = import_styled_components24.css`
|
|
5843
5863
|
--tooltip-font-size: var(--typography-label-4-size);
|
|
5844
5864
|
--tooltip-line-height: var(--typography-label-4-line-height);
|
|
@@ -5904,14 +5924,14 @@ var Tooltip = ({
|
|
|
5904
5924
|
if (forceOpen === true) {
|
|
5905
5925
|
rootProps.open = true;
|
|
5906
5926
|
}
|
|
5907
|
-
return /* @__PURE__ */ (0,
|
|
5927
|
+
return /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(
|
|
5908
5928
|
import_react_tooltip2.Root,
|
|
5909
5929
|
{
|
|
5910
5930
|
delayDuration: delay,
|
|
5911
5931
|
...rootProps,
|
|
5912
5932
|
children: [
|
|
5913
|
-
/* @__PURE__ */ (0,
|
|
5914
|
-
/* @__PURE__ */ (0,
|
|
5933
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_tooltip2.Trigger, { asChild: true, children }),
|
|
5934
|
+
/* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_tooltip2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime167.jsxs)(
|
|
5915
5935
|
StyledContent,
|
|
5916
5936
|
{
|
|
5917
5937
|
$compact: compact,
|
|
@@ -5919,7 +5939,7 @@ var Tooltip = ({
|
|
|
5919
5939
|
sideOffset: hideArrow ? VISUAL_OFFSET : VISUAL_OFFSET - 2,
|
|
5920
5940
|
children: [
|
|
5921
5941
|
content,
|
|
5922
|
-
!hideArrow ? /* @__PURE__ */ (0,
|
|
5942
|
+
!hideArrow ? /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(import_react_tooltip2.Arrow, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)(
|
|
5923
5943
|
"svg",
|
|
5924
5944
|
{
|
|
5925
5945
|
fill: "var(--tooltip-bg)",
|
|
@@ -5928,7 +5948,7 @@ var Tooltip = ({
|
|
|
5928
5948
|
viewBox: "0 0 12 8",
|
|
5929
5949
|
width: "12",
|
|
5930
5950
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5931
|
-
children: /* @__PURE__ */ (0,
|
|
5951
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime167.jsx)("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" })
|
|
5932
5952
|
}
|
|
5933
5953
|
) }) : null
|
|
5934
5954
|
]
|
|
@@ -5941,7 +5961,7 @@ var Tooltip = ({
|
|
|
5941
5961
|
Tooltip.displayName = "Tooltip";
|
|
5942
5962
|
|
|
5943
5963
|
// src/components/IconButton/IconButton.tsx
|
|
5944
|
-
var
|
|
5964
|
+
var import_jsx_runtime168 = require("react/jsx-runtime");
|
|
5945
5965
|
var StyledButton2 = (0, import_styled_components25.default)(Button)`
|
|
5946
5966
|
--icon-button-size-sm: 24px;
|
|
5947
5967
|
--icon-button-size-md: 32px;
|
|
@@ -5959,7 +5979,7 @@ var StyledButton2 = (0, import_styled_components25.default)(Button)`
|
|
|
5959
5979
|
var IconButton = (0, import_react12.forwardRef)(
|
|
5960
5980
|
({ children, label, disableTooltip = false, size = "md", ...props }, ref) => {
|
|
5961
5981
|
const responsiveSize = useResponsiveProp(size);
|
|
5962
|
-
const button = /* @__PURE__ */ (0,
|
|
5982
|
+
const button = /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(
|
|
5963
5983
|
StyledButton2,
|
|
5964
5984
|
{
|
|
5965
5985
|
...props,
|
|
@@ -5975,14 +5995,14 @@ var IconButton = (0, import_react12.forwardRef)(
|
|
|
5975
5995
|
if (disableTooltip) {
|
|
5976
5996
|
return button;
|
|
5977
5997
|
}
|
|
5978
|
-
return /* @__PURE__ */ (0,
|
|
5998
|
+
return /* @__PURE__ */ (0, import_jsx_runtime168.jsx)(Tooltip, { content: label, children: button });
|
|
5979
5999
|
}
|
|
5980
6000
|
);
|
|
5981
6001
|
IconButton.displayName = "IconButton";
|
|
5982
6002
|
|
|
5983
6003
|
// src/components/Label/Label.tsx
|
|
5984
6004
|
var import_styled_components26 = __toESM(require("styled-components"));
|
|
5985
|
-
var
|
|
6005
|
+
var import_jsx_runtime169 = require("react/jsx-runtime");
|
|
5986
6006
|
var requiredStyle = import_styled_components26.css`
|
|
5987
6007
|
&::after {
|
|
5988
6008
|
color: red; /* TODO need a color for this */
|
|
@@ -6026,7 +6046,7 @@ var Label = ({
|
|
|
6026
6046
|
required = false,
|
|
6027
6047
|
screenReaderOnly = false,
|
|
6028
6048
|
...otherProps
|
|
6029
|
-
}) => /* @__PURE__ */ (0,
|
|
6049
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime169.jsx)(
|
|
6030
6050
|
StyledLabel,
|
|
6031
6051
|
{
|
|
6032
6052
|
disabled,
|
|
@@ -6041,7 +6061,7 @@ Label.displayName = "Label";
|
|
|
6041
6061
|
// src/components/ScreenReaderOnly/ScreenReaderOnly.tsx
|
|
6042
6062
|
var import_styled_components27 = __toESM(require("styled-components"));
|
|
6043
6063
|
var import_type_guards15 = require("@wistia/type-guards");
|
|
6044
|
-
var
|
|
6064
|
+
var import_jsx_runtime170 = require("react/jsx-runtime");
|
|
6045
6065
|
var VisuallyHidden = import_styled_components27.default.div({ ...visuallyHiddenStyle });
|
|
6046
6066
|
var VisuallyHiddenButFocusable = import_styled_components27.default.div({
|
|
6047
6067
|
"&:not(:focus-within)": visuallyHiddenStyle
|
|
@@ -6054,16 +6074,16 @@ var ScreenReaderOnly = ({
|
|
|
6054
6074
|
}) => {
|
|
6055
6075
|
const accessibleText = (0, import_type_guards15.isNotNil)(text) ? text : children;
|
|
6056
6076
|
if (focusable) {
|
|
6057
|
-
return /* @__PURE__ */ (0,
|
|
6077
|
+
return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(VisuallyHiddenButFocusable, { ...otherProps, children: accessibleText });
|
|
6058
6078
|
}
|
|
6059
|
-
return /* @__PURE__ */ (0,
|
|
6079
|
+
return /* @__PURE__ */ (0, import_jsx_runtime170.jsx)(VisuallyHidden, { ...otherProps, children: accessibleText });
|
|
6060
6080
|
};
|
|
6061
6081
|
ScreenReaderOnly.displayName = "ScreenReaderOnly";
|
|
6062
6082
|
|
|
6063
6083
|
// src/components/Stack/Stack.tsx
|
|
6064
6084
|
var import_react13 = require("react");
|
|
6065
6085
|
var import_styled_components28 = __toESM(require("styled-components"));
|
|
6066
|
-
var
|
|
6086
|
+
var import_jsx_runtime171 = require("react/jsx-runtime");
|
|
6067
6087
|
var DEFAULT_ELEMENT2 = "div";
|
|
6068
6088
|
var StyledStack = import_styled_components28.default.div`
|
|
6069
6089
|
display: flex;
|
|
@@ -6078,7 +6098,7 @@ var StackComponent = (0, import_react13.forwardRef)(
|
|
|
6078
6098
|
({ renderAs, direction = "vertical", gap = "space-02", ...props }, ref) => {
|
|
6079
6099
|
const responsiveGap = useResponsiveProp(gap);
|
|
6080
6100
|
const responsiveDirection = useResponsiveProp(direction);
|
|
6081
|
-
return /* @__PURE__ */ (0,
|
|
6101
|
+
return /* @__PURE__ */ (0, import_jsx_runtime171.jsx)(
|
|
6082
6102
|
StyledStack,
|
|
6083
6103
|
{
|
|
6084
6104
|
ref,
|
|
@@ -6096,7 +6116,7 @@ var Stack = makePolymorphic(StackComponent);
|
|
|
6096
6116
|
// src/components/Text/Text.tsx
|
|
6097
6117
|
var import_react14 = require("react");
|
|
6098
6118
|
var import_styled_components29 = __toESM(require("styled-components"));
|
|
6099
|
-
var
|
|
6119
|
+
var import_jsx_runtime172 = require("react/jsx-runtime");
|
|
6100
6120
|
var bodyBoldStyles = import_styled_components29.css`
|
|
6101
6121
|
> strong,
|
|
6102
6122
|
b {
|
|
@@ -6251,7 +6271,7 @@ var TextComponent = (0, import_react14.forwardRef)(
|
|
|
6251
6271
|
renderAs,
|
|
6252
6272
|
...otherProps
|
|
6253
6273
|
}, ref) => {
|
|
6254
|
-
return /* @__PURE__ */ (0,
|
|
6274
|
+
return /* @__PURE__ */ (0, import_jsx_runtime172.jsx)(
|
|
6255
6275
|
StyledText,
|
|
6256
6276
|
{
|
|
6257
6277
|
ref,
|
|
@@ -6275,18 +6295,18 @@ var Text = makePolymorphic(TextComponent);
|
|
|
6275
6295
|
// src/components/WistiaLogo/WistiaLogo.tsx
|
|
6276
6296
|
var import_styled_components30 = __toESM(require("styled-components"));
|
|
6277
6297
|
var import_type_guards16 = require("@wistia/type-guards");
|
|
6278
|
-
var
|
|
6298
|
+
var import_jsx_runtime173 = require("react/jsx-runtime");
|
|
6279
6299
|
var renderBrandmark = (brandmarkColor, iconOnly) => {
|
|
6280
6300
|
if (iconOnly) {
|
|
6281
|
-
return /* @__PURE__ */ (0,
|
|
6301
|
+
return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("g", { fill: brandmarkColor, children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("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" }) });
|
|
6282
6302
|
}
|
|
6283
|
-
return /* @__PURE__ */ (0,
|
|
6303
|
+
return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("g", { fill: brandmarkColor, children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("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" }) });
|
|
6284
6304
|
};
|
|
6285
6305
|
var renderLogotype = (logotypeColor, iconOnly) => {
|
|
6286
6306
|
if (iconOnly) {
|
|
6287
6307
|
return null;
|
|
6288
6308
|
}
|
|
6289
|
-
return /* @__PURE__ */ (0,
|
|
6309
|
+
return /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("g", { fill: logotypeColor, children: /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("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" }) });
|
|
6290
6310
|
};
|
|
6291
6311
|
var computedViewBox = (iconOnly) => {
|
|
6292
6312
|
if (iconOnly) {
|
|
@@ -6336,7 +6356,7 @@ var WistiaLogo = ({
|
|
|
6336
6356
|
};
|
|
6337
6357
|
const brandmarkColor = VARIANT_COLORS[variant].brandmark;
|
|
6338
6358
|
const logotypeColor = VARIANT_COLORS[variant].logotype;
|
|
6339
|
-
const Logo = /* @__PURE__ */ (0,
|
|
6359
|
+
const Logo = /* @__PURE__ */ (0, import_jsx_runtime173.jsxs)(
|
|
6340
6360
|
WistiaLogoComponent,
|
|
6341
6361
|
{
|
|
6342
6362
|
$hoverColor: hoverColor,
|
|
@@ -6346,14 +6366,14 @@ var WistiaLogo = ({
|
|
|
6346
6366
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6347
6367
|
...otherProps,
|
|
6348
6368
|
children: [
|
|
6349
|
-
/* @__PURE__ */ (0,
|
|
6350
|
-
(0, import_type_guards16.isNotNil)(description) ? /* @__PURE__ */ (0,
|
|
6369
|
+
/* @__PURE__ */ (0, import_jsx_runtime173.jsx)("title", { children: title }),
|
|
6370
|
+
(0, import_type_guards16.isNotNil)(description) ? /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("desc", { children: description }) : null,
|
|
6351
6371
|
renderBrandmark(brandmarkColor, iconOnly),
|
|
6352
6372
|
renderLogotype(logotypeColor, iconOnly)
|
|
6353
6373
|
]
|
|
6354
6374
|
}
|
|
6355
6375
|
);
|
|
6356
|
-
return href !== void 0 ? /* @__PURE__ */ (0,
|
|
6376
|
+
return href !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime173.jsx)("a", { href, children: Logo }) : Logo;
|
|
6357
6377
|
};
|
|
6358
6378
|
WistiaLogo.displayName = "WistiaLogo";
|
|
6359
6379
|
// Annotate the CommonJS export names for ESM import in node:
|