suada-components 1.2.1 → 1.3.0
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/components/Button/Button.js +1 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/{DailyMotion-C87ZJeRt.js → DailyMotion-BRR94A6R.js} +1 -1
- package/dist/components/{DailyMotion-DbDeP0dq.esm.js → DailyMotion-fTfJbAKR.esm.js} +1 -1
- package/dist/components/{Facebook-DigX8u_u.js → Facebook-BYAo-2rH.js} +1 -1
- package/dist/components/{Facebook-B1XpGyBt.esm.js → Facebook-g8siL1GN.esm.js} +1 -1
- package/dist/components/{FilePlayer-BSL_U8r8.esm.js → FilePlayer--e_TvukB.esm.js} +1 -1
- package/dist/components/{FilePlayer-BTuFK59w.js → FilePlayer-CBlW9Z-Z.js} +1 -1
- package/dist/components/{Kaltura-DAkp5nY0.esm.js → Kaltura-CgG6fwG2.esm.js} +1 -1
- package/dist/components/{Kaltura-CKV92aVd.js → Kaltura-Cw4p4d7w.js} +1 -1
- package/dist/components/{Mixcloud-CtWhrXiZ.esm.js → Mixcloud-1pcndu_p.esm.js} +1 -1
- package/dist/components/{Mixcloud-CAgtZPq5.js → Mixcloud-FU7dfnB-.js} +1 -1
- package/dist/components/{Mux-BRYGMFV_.js → Mux-CFgk1TgE.js} +1 -1
- package/dist/components/{Mux-C0xOzOps.esm.js → Mux-bOE4IGCQ.esm.js} +1 -1
- package/dist/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/Pagination/Pagination.js +2 -2
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/Pagination/Pagination.stories.js +2 -0
- package/dist/components/Pagination/Pagination.stories.js.map +1 -1
- package/dist/components/Pagination/pagination.interface.d.ts +1 -0
- package/dist/components/Pagination/styled-components.d.ts +3 -1
- package/dist/components/Pagination/styled-components.js +7 -1
- package/dist/components/Pagination/styled-components.js.map +1 -1
- package/dist/components/{Preview-DSBoVsm9.js → Preview-CFFnVBFk.js} +1 -1
- package/dist/components/{Preview-Crcz-S0c.esm.js → Preview-ZZ8yCxMr.esm.js} +1 -1
- package/dist/components/{SoundCloud-BC8iiobM.esm.js → SoundCloud-1OvUzexh.esm.js} +1 -1
- package/dist/components/{SoundCloud-1V8ahw7A.js → SoundCloud-BsdovEa4.js} +1 -1
- package/dist/components/{Streamable-BhhnBO_c.js → Streamable-C18bUmk1.js} +1 -1
- package/dist/components/{Streamable-CGxErYVF.esm.js → Streamable-DkZbzMhq.esm.js} +1 -1
- package/dist/components/{Twitch-E9YQS4X8.js → Twitch-BwMnK2K5.js} +1 -1
- package/dist/components/{Twitch-8quL43Fw.esm.js → Twitch-CAR5VDqo.esm.js} +1 -1
- package/dist/components/VideoPlayer/Controls/Controls.interface.d.ts +4 -0
- package/dist/components/VideoPlayer/Controls/Controls.js +87 -4
- package/dist/components/VideoPlayer/Controls/Controls.js.map +1 -1
- package/dist/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
- package/dist/components/VideoPlayer/Controls/Controls.styles.js +6 -5
- package/dist/components/VideoPlayer/Controls/Controls.styles.js.map +1 -1
- package/dist/components/VideoPlayer/Player.d.ts +1 -1
- package/dist/components/VideoPlayer/Player.interface.d.ts +4 -0
- package/dist/components/VideoPlayer/Player.js +3 -3
- package/dist/components/VideoPlayer/Player.js.map +1 -1
- package/dist/components/VideoPlayer/VideoPlayer.stories.d.ts +3 -0
- package/dist/components/VideoPlayer/VideoPlayer.stories.js +35 -0
- package/dist/components/VideoPlayer/VideoPlayer.stories.js.map +1 -1
- package/dist/components/{Vidyard-DsG0WHnh.esm.js → Vidyard-Dj__VHEu.esm.js} +1 -1
- package/dist/components/{Vidyard-B3v7M2i3.js → Vidyard-DjdEjiba.js} +1 -1
- package/dist/components/{Vimeo-ddQ8CMRR.js → Vimeo-B2sdU2eb.js} +1 -1
- package/dist/components/{Vimeo-CXKbdxkV.esm.js → Vimeo-B6eklZts.esm.js} +1 -1
- package/dist/components/{Wistia-B93lpDSs.js → Wistia-D8WmgJRA.js} +1 -1
- package/dist/components/{Wistia-CJDzE0TP.esm.js → Wistia-T3lTN9f9.esm.js} +1 -1
- package/dist/components/{YouTube-631v_AIH.js → YouTube-DpQU6ZH9.js} +1 -1
- package/dist/components/{YouTube-CdjuPIIO.esm.js → YouTube-DvS99YSi.esm.js} +1 -1
- package/dist/components/components/Pagination/Pagination.d.ts +1 -1
- package/dist/components/components/Pagination/pagination.interface.d.ts +1 -0
- package/dist/components/components/Pagination/styled-components.d.ts +3 -1
- package/dist/components/components/VideoPlayer/Controls/Controls.interface.d.ts +4 -0
- package/dist/components/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
- package/dist/components/components/VideoPlayer/Player.d.ts +1 -1
- package/dist/components/components/VideoPlayer/Player.interface.d.ts +4 -0
- package/dist/components/{index-CyUx723z.esm.js → index-C_u0zRwP.esm.js} +107 -31
- package/dist/components/{index-Ciqeqnts.js → index-D4JJ3W7g.js} +107 -31
- package/dist/components/index.esm.js +1 -1
- package/dist/icons/DownloadIcon.js +2 -2
- package/dist/icons/DownloadIcon.js.map +1 -1
- package/dist/icons/components/Pagination/Pagination.d.ts +1 -1
- package/dist/icons/components/Pagination/pagination.interface.d.ts +1 -0
- package/dist/icons/components/Pagination/styled-components.d.ts +3 -1
- package/dist/icons/components/VideoPlayer/Controls/Controls.interface.d.ts +4 -0
- package/dist/icons/components/VideoPlayer/Controls/Controls.styles.d.ts +1 -0
- package/dist/icons/components/VideoPlayer/Player.d.ts +1 -1
- package/dist/icons/components/VideoPlayer/Player.interface.d.ts +4 -0
- package/dist/icons/index.esm.js +5 -3
- package/dist/main.js.map +1 -1
- package/package.json +1 -1
|
@@ -2445,7 +2445,7 @@ var Button$1 = function Button(_a) {
|
|
|
2445
2445
|
style: customStyles,
|
|
2446
2446
|
onClick: onClick,
|
|
2447
2447
|
type: htmlType,
|
|
2448
|
-
className: className,
|
|
2448
|
+
className: "".concat(className, " button-theme-color"),
|
|
2449
2449
|
children: [iconLeft, label, iconRight]
|
|
2450
2450
|
});
|
|
2451
2451
|
};
|
|
@@ -32391,7 +32391,7 @@ var StylesCardWrapper = dt.div(templateObject_10$2 || (templateObject_10$2 = __m
|
|
|
32391
32391
|
});
|
|
32392
32392
|
var StyledChecked = dt.div(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n background-color: rgb(0 0 0 / 23%);\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 2;\n background-color: rgb(0 0 0 / 23%);\n"])));
|
|
32393
32393
|
dt.div(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n position: relative;\n cursor: pointer;\n .icon_button {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n"], ["\n position: relative;\n cursor: pointer;\n .icon_button {\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n }\n"])));
|
|
32394
|
-
var CourseStatusContainer = dt.div(templateObject_13$
|
|
32394
|
+
var CourseStatusContainer = dt.div(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject(["\n color: #fff;\n height: 32px;\n padding: 4px 12px;\n text-transform: capitalize;\n border-radius: 4px;\n background: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n color: #fff;\n height: 32px;\n padding: 4px 12px;\n text-transform: capitalize;\n border-radius: 4px;\n background: ", ";\n display: flex;\n align-items: center;\n justify-content: center;\n"])), function (_a) {
|
|
32395
32395
|
var $status = _a.$status;
|
|
32396
32396
|
return !$status ? '#EA382A' : '#00905E';
|
|
32397
32397
|
});
|
|
@@ -32446,7 +32446,7 @@ var GridItem = dt.div(templateObject_32 || (templateObject_32 = __makeTemplateOb
|
|
|
32446
32446
|
var $isFromUser = _a.$isFromUser;
|
|
32447
32447
|
return $isFromUser && "\n figure {\n position: relative;\n &:after {\n content: 'View Analytics';\n position: absolute;\n top: 0;\n opacity: 0;\n color: #06c68f;\n left: 0;\n font-size: 24px;\n font-weight: 700;\n display: flex;\n align-items: center;\n justify-content: center;\n background: rgba(255, 255, 255, 0.9);\n width: 100%;\n height: 100%;\n transition: opacity 0.3s ease;\n z-index: 10;\n }\n }\n\n &:hover {\n figure {\n &:after {\n opacity: 1;\n }\n }\n }\n " || '';
|
|
32448
32448
|
});
|
|
32449
|
-
var templateObject_1$o, templateObject_2$j, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$
|
|
32449
|
+
var templateObject_1$o, templateObject_2$j, templateObject_3$f, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$4, templateObject_9$3, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21$1, templateObject_22$1, templateObject_23$1, templateObject_24$1, templateObject_25, templateObject_26, templateObject_27, templateObject_28, templateObject_29, templateObject_30, templateObject_31, templateObject_32;
|
|
32450
32450
|
|
|
32451
32451
|
var TooltipHeight$1 = function TooltipHeight(_a) {
|
|
32452
32452
|
var text = _a.text,
|
|
@@ -34760,7 +34760,9 @@ DocumentAttachment.displayName = 'DocumentAttachment';
|
|
|
34760
34760
|
var DownloadIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
34761
34761
|
var className = _a.className,
|
|
34762
34762
|
onClick = _a.onClick,
|
|
34763
|
-
|
|
34763
|
+
_b = _a.fill,
|
|
34764
|
+
fill = _b === void 0 ? '#FFFFFF' : _b,
|
|
34765
|
+
props = __rest(_a, ["className", "onClick", "fill"]);
|
|
34764
34766
|
return jsxRuntimeExports.jsxs("svg", __assign({
|
|
34765
34767
|
ref: ref,
|
|
34766
34768
|
width: '24',
|
|
@@ -34773,10 +34775,10 @@ var DownloadIcon = /*#__PURE__*/React.forwardRef(function (_a, ref) {
|
|
|
34773
34775
|
}, props, {
|
|
34774
34776
|
children: [jsxRuntimeExports.jsx("path", {
|
|
34775
34777
|
d: 'M19.5 18V21H4.5V18H3V21C3 21.3978 3.15804 21.7794 3.43934 22.0607C3.72064 22.342 4.10218 22.5 4.5 22.5H19.5C19.8978 22.5 20.2794 22.342 20.5607 22.0607C20.842 21.7794 21 21.3978 21 21V18H19.5Z',
|
|
34776
|
-
fill:
|
|
34778
|
+
fill: fill
|
|
34777
34779
|
}), jsxRuntimeExports.jsx("path", {
|
|
34778
34780
|
d: 'M19.5 10.5L18.4425 9.4425L12.75 15.1275V1.5H11.25V15.1275L5.5575 9.4425L4.5 10.5L12 18L19.5 10.5Z',
|
|
34779
|
-
fill:
|
|
34781
|
+
fill: fill
|
|
34780
34782
|
})]
|
|
34781
34783
|
}));
|
|
34782
34784
|
});
|
|
@@ -42830,7 +42832,7 @@ var ItemContainer = dt.div(templateObject_11$1 || (templateObject_11$1 = __makeT
|
|
|
42830
42832
|
return width || '100%';
|
|
42831
42833
|
});
|
|
42832
42834
|
dt.div(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n width: 390px;\n"], ["\n width: 390px;\n"])));
|
|
42833
|
-
var CancelButton = dt.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"], ["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"])), function (_a) {
|
|
42835
|
+
var CancelButton = dt.div(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"], ["\n position: absolute;\n right: ", ";\n top: ", ";\n cursor: pointer;\n"])), function (_a) {
|
|
42834
42836
|
var right = _a.right;
|
|
42835
42837
|
return right || '-13px';
|
|
42836
42838
|
}, function (_a) {
|
|
@@ -42861,7 +42863,7 @@ var Title = dt.h2(templateObject_24 || (templateObject_24 = __makeTemplateObject
|
|
|
42861
42863
|
var $required = _a.$required;
|
|
42862
42864
|
return $required ? "\n &::after {\n content: '*';\n color: red;\n margin-left: 3px;\n }\n " : '';
|
|
42863
42865
|
});
|
|
42864
|
-
var templateObject_1$j, templateObject_2$e, templateObject_3$a, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$3, templateObject_8$2, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24;
|
|
42866
|
+
var templateObject_1$j, templateObject_2$e, templateObject_3$a, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$3, templateObject_8$2, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13$1, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23, templateObject_24;
|
|
42865
42867
|
|
|
42866
42868
|
var InsertDriveFile = {};
|
|
42867
42869
|
|
|
@@ -61157,7 +61159,13 @@ var Checkbox = function Checkbox(_a) {
|
|
|
61157
61159
|
});
|
|
61158
61160
|
};
|
|
61159
61161
|
|
|
61160
|
-
var PaginationWrapper = dt.div(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 20px;\n font-family: 'Open Sans', sans-serif;\n font-weight: 600;\n\n .MuiPagination-ul {\n flex-wrap: nowrap;\n }\n .MuiPaginationItem-root {\n background: #ffffff;\n border: 1px solid #e7e9ed !important;\n border-radius: 4px !important;\n width: 32px !important;\n height: 32px !important;\n padding: 6px 6px !important;\n\n &:hover {\n border: 1px solid #cdccd0;\n background-color: #ffffff;\n }\n\n &.Mui-selected {\n background:
|
|
61162
|
+
var PaginationWrapper = dt.div(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 20px;\n font-family: 'Open Sans', sans-serif;\n font-weight: 600;\n\n .MuiPagination-ul {\n flex-wrap: nowrap;\n }\n .MuiPaginationItem-root {\n background: #ffffff;\n border: 1px solid #e7e9ed !important;\n border-radius: 4px !important;\n width: 32px !important;\n height: 32px !important;\n padding: 6px 6px !important;\n\n &:hover {\n border: 1px solid #cdccd0;\n background-color: #ffffff;\n }\n\n &.Mui-selected {\n background: ", ";\n color: white;\n\n &:hover {\n background: ", ";\n border: none;\n }\n }\n }\n"], ["\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 20px;\n font-family: 'Open Sans', sans-serif;\n font-weight: 600;\n\n .MuiPagination-ul {\n flex-wrap: nowrap;\n }\n .MuiPaginationItem-root {\n background: #ffffff;\n border: 1px solid #e7e9ed !important;\n border-radius: 4px !important;\n width: 32px !important;\n height: 32px !important;\n padding: 6px 6px !important;\n\n &:hover {\n border: 1px solid #cdccd0;\n background-color: #ffffff;\n }\n\n &.Mui-selected {\n background: ", ";\n color: white;\n\n &:hover {\n background: ", ";\n border: none;\n }\n }\n }\n"])), function (_a) {
|
|
61163
|
+
var $themeColor = _a.$themeColor;
|
|
61164
|
+
return $themeColor || '#08c694';
|
|
61165
|
+
}, function (_a) {
|
|
61166
|
+
var $themeColor = _a.$themeColor;
|
|
61167
|
+
return $themeColor || '#08c694';
|
|
61168
|
+
});
|
|
61161
61169
|
var templateObject_1$e;
|
|
61162
61170
|
|
|
61163
61171
|
var Pagination = function Pagination(_a) {
|
|
@@ -61165,8 +61173,10 @@ var Pagination = function Pagination(_a) {
|
|
|
61165
61173
|
totalPages = _a.totalPages,
|
|
61166
61174
|
handleChange = _a.handleChange,
|
|
61167
61175
|
perPage = _a.perPage,
|
|
61176
|
+
themeColor = _a.themeColor,
|
|
61168
61177
|
handlePerPageChange = _a.handlePerPageChange;
|
|
61169
61178
|
return jsxRuntimeExports.jsxs(PaginationWrapper, {
|
|
61179
|
+
"$themeColor": themeColor,
|
|
61170
61180
|
children: [perPage && jsxRuntimeExports.jsxs(Select$1, {
|
|
61171
61181
|
variant: 'standard',
|
|
61172
61182
|
"native": true,
|
|
@@ -81409,7 +81419,7 @@ function requirePlayers () {
|
|
|
81409
81419
|
canPlay: import_patterns.canPlay.youtube,
|
|
81410
81420
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81411
81421
|
/* webpackChunkName: 'reactPlayerYouTube' */
|
|
81412
|
-
'./YouTube-
|
|
81422
|
+
'./YouTube-DpQU6ZH9.js'
|
|
81413
81423
|
); }).then(function (n) { return n.YouTube; }))
|
|
81414
81424
|
},
|
|
81415
81425
|
{
|
|
@@ -81418,7 +81428,7 @@ function requirePlayers () {
|
|
|
81418
81428
|
canPlay: import_patterns.canPlay.soundcloud,
|
|
81419
81429
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81420
81430
|
/* webpackChunkName: 'reactPlayerSoundCloud' */
|
|
81421
|
-
'./SoundCloud-
|
|
81431
|
+
'./SoundCloud-BsdovEa4.js'
|
|
81422
81432
|
); }).then(function (n) { return n.SoundCloud; }))
|
|
81423
81433
|
},
|
|
81424
81434
|
{
|
|
@@ -81427,7 +81437,7 @@ function requirePlayers () {
|
|
|
81427
81437
|
canPlay: import_patterns.canPlay.vimeo,
|
|
81428
81438
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81429
81439
|
/* webpackChunkName: 'reactPlayerVimeo' */
|
|
81430
|
-
'./Vimeo-
|
|
81440
|
+
'./Vimeo-B2sdU2eb.js'
|
|
81431
81441
|
); }).then(function (n) { return n.Vimeo; }))
|
|
81432
81442
|
},
|
|
81433
81443
|
{
|
|
@@ -81436,7 +81446,7 @@ function requirePlayers () {
|
|
|
81436
81446
|
canPlay: import_patterns.canPlay.mux,
|
|
81437
81447
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81438
81448
|
/* webpackChunkName: 'reactPlayerMux' */
|
|
81439
|
-
'./Mux-
|
|
81449
|
+
'./Mux-CFgk1TgE.js'
|
|
81440
81450
|
); }).then(function (n) { return n.Mux; }))
|
|
81441
81451
|
},
|
|
81442
81452
|
{
|
|
@@ -81445,7 +81455,7 @@ function requirePlayers () {
|
|
|
81445
81455
|
canPlay: import_patterns.canPlay.facebook,
|
|
81446
81456
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81447
81457
|
/* webpackChunkName: 'reactPlayerFacebook' */
|
|
81448
|
-
'./Facebook-
|
|
81458
|
+
'./Facebook-BYAo-2rH.js'
|
|
81449
81459
|
); }).then(function (n) { return n.Facebook; }))
|
|
81450
81460
|
},
|
|
81451
81461
|
{
|
|
@@ -81454,7 +81464,7 @@ function requirePlayers () {
|
|
|
81454
81464
|
canPlay: import_patterns.canPlay.streamable,
|
|
81455
81465
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81456
81466
|
/* webpackChunkName: 'reactPlayerStreamable' */
|
|
81457
|
-
'./Streamable-
|
|
81467
|
+
'./Streamable-C18bUmk1.js'
|
|
81458
81468
|
); }).then(function (n) { return n.Streamable; }))
|
|
81459
81469
|
},
|
|
81460
81470
|
{
|
|
@@ -81463,7 +81473,7 @@ function requirePlayers () {
|
|
|
81463
81473
|
canPlay: import_patterns.canPlay.wistia,
|
|
81464
81474
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81465
81475
|
/* webpackChunkName: 'reactPlayerWistia' */
|
|
81466
|
-
'./Wistia-
|
|
81476
|
+
'./Wistia-D8WmgJRA.js'
|
|
81467
81477
|
); }).then(function (n) { return n.Wistia; }))
|
|
81468
81478
|
},
|
|
81469
81479
|
{
|
|
@@ -81472,7 +81482,7 @@ function requirePlayers () {
|
|
|
81472
81482
|
canPlay: import_patterns.canPlay.twitch,
|
|
81473
81483
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81474
81484
|
/* webpackChunkName: 'reactPlayerTwitch' */
|
|
81475
|
-
'./Twitch-
|
|
81485
|
+
'./Twitch-BwMnK2K5.js'
|
|
81476
81486
|
); }).then(function (n) { return n.Twitch; }))
|
|
81477
81487
|
},
|
|
81478
81488
|
{
|
|
@@ -81481,7 +81491,7 @@ function requirePlayers () {
|
|
|
81481
81491
|
canPlay: import_patterns.canPlay.dailymotion,
|
|
81482
81492
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81483
81493
|
/* webpackChunkName: 'reactPlayerDailyMotion' */
|
|
81484
|
-
'./DailyMotion-
|
|
81494
|
+
'./DailyMotion-BRR94A6R.js'
|
|
81485
81495
|
); }).then(function (n) { return n.DailyMotion; }))
|
|
81486
81496
|
},
|
|
81487
81497
|
{
|
|
@@ -81490,7 +81500,7 @@ function requirePlayers () {
|
|
|
81490
81500
|
canPlay: import_patterns.canPlay.mixcloud,
|
|
81491
81501
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81492
81502
|
/* webpackChunkName: 'reactPlayerMixcloud' */
|
|
81493
|
-
'./Mixcloud-
|
|
81503
|
+
'./Mixcloud-FU7dfnB-.js'
|
|
81494
81504
|
); }).then(function (n) { return n.Mixcloud; }))
|
|
81495
81505
|
},
|
|
81496
81506
|
{
|
|
@@ -81499,7 +81509,7 @@ function requirePlayers () {
|
|
|
81499
81509
|
canPlay: import_patterns.canPlay.vidyard,
|
|
81500
81510
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81501
81511
|
/* webpackChunkName: 'reactPlayerVidyard' */
|
|
81502
|
-
'./Vidyard-
|
|
81512
|
+
'./Vidyard-DjdEjiba.js'
|
|
81503
81513
|
); }).then(function (n) { return n.Vidyard; }))
|
|
81504
81514
|
},
|
|
81505
81515
|
{
|
|
@@ -81508,7 +81518,7 @@ function requirePlayers () {
|
|
|
81508
81518
|
canPlay: import_patterns.canPlay.kaltura,
|
|
81509
81519
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81510
81520
|
/* webpackChunkName: 'reactPlayerKaltura' */
|
|
81511
|
-
'./Kaltura-
|
|
81521
|
+
'./Kaltura-Cw4p4d7w.js'
|
|
81512
81522
|
); }).then(function (n) { return n.Kaltura; }))
|
|
81513
81523
|
},
|
|
81514
81524
|
{
|
|
@@ -81520,7 +81530,7 @@ function requirePlayers () {
|
|
|
81520
81530
|
},
|
|
81521
81531
|
lazyPlayer: (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
81522
81532
|
/* webpackChunkName: 'reactPlayerFilePlayer' */
|
|
81523
|
-
'./FilePlayer-
|
|
81533
|
+
'./FilePlayer-CBlW9Z-Z.js'
|
|
81524
81534
|
); }).then(function (n) { return n.FilePlayer; }))
|
|
81525
81535
|
}
|
|
81526
81536
|
];
|
|
@@ -82341,7 +82351,7 @@ function requireReactPlayer () {
|
|
|
82341
82351
|
var import_Player = __toESM(/*@__PURE__*/ requirePlayer());
|
|
82342
82352
|
const Preview = (0, import_utils.lazy)(() => Promise.resolve().then(function () { return require(
|
|
82343
82353
|
/* webpackChunkName: 'reactPlayerPreview' */
|
|
82344
|
-
'./Preview-
|
|
82354
|
+
'./Preview-CFFnVBFk.js'
|
|
82345
82355
|
); }).then(function (n) { return n.Preview; }));
|
|
82346
82356
|
const IS_BROWSER = typeof window !== "undefined" && window.document && typeof document !== "undefined";
|
|
82347
82357
|
const IS_GLOBAL = typeof commonjsGlobal !== "undefined" && commonjsGlobal.window && commonjsGlobal.window.document;
|
|
@@ -82601,11 +82611,12 @@ var StyledTimeTrack = dt.div(templateObject_7 || (templateObject_7 = __makeTempl
|
|
|
82601
82611
|
fontStyle: 'descriptor'
|
|
82602
82612
|
});
|
|
82603
82613
|
var StyledHeartIconContainer = dt.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n\n & > svg > path {\n fill: var(--neutral-colors-light);\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n\n & > svg > path {\n fill: var(--neutral-colors-light);\n }\n"])));
|
|
82604
|
-
var
|
|
82605
|
-
var
|
|
82606
|
-
var
|
|
82607
|
-
var
|
|
82608
|
-
var
|
|
82614
|
+
var StyledDownloadIconContainer = dt.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg {\n width: 24px !important;\n height: 24px !important;\n \n @media screen and (max-width: 1500px) {\n width: 20px !important;\n height: 20px !important;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px !important;\n height: 16px !important;\n }\n }\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n\n & > svg {\n width: 24px !important;\n height: 24px !important;\n \n @media screen and (max-width: 1500px) {\n width: 20px !important;\n height: 20px !important;\n }\n\n @media screen and (max-width: 1000px) {\n width: 16px !important;\n height: 16px !important;\n }\n }\n\n & > svg > path {\n fill: #FFFFFF !important;\n transition: fill 0.2s ease;\n }\n\n &:hover > svg > path {\n fill: #08C694 !important;\n }\n"])));
|
|
82615
|
+
var StyledSubtitlesIconContainer = dt.div(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n"])));
|
|
82616
|
+
var StyledFullscreenIconContainer = dt.div(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"])));
|
|
82617
|
+
var StyledVolumeIconContainer = dt.div(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"])));
|
|
82618
|
+
var StyledPlayPauseIconContainer = dt.div(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"], ["\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n"])));
|
|
82619
|
+
var templateObject_1$8, templateObject_2$6, templateObject_3$3, templateObject_4$1, templateObject_5$1, templateObject_6$1, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13;
|
|
82609
82620
|
|
|
82610
82621
|
var PLAYBACK_SPEED_LIST = [{
|
|
82611
82622
|
label: 'playback_speed.2x',
|
|
@@ -82819,7 +82830,60 @@ var Controls = function Controls(_a) {
|
|
|
82819
82830
|
handleSkipForward = _a.handleSkipForward,
|
|
82820
82831
|
isNextVideo = _a.isNextVideo,
|
|
82821
82832
|
isPreviousVideo = _a.isPreviousVideo,
|
|
82822
|
-
showFavorite = _a.showFavorite
|
|
82833
|
+
showFavorite = _a.showFavorite,
|
|
82834
|
+
showDownload = _a.showDownload,
|
|
82835
|
+
downloadUrl = _a.downloadUrl,
|
|
82836
|
+
downloadFileName = _a.downloadFileName,
|
|
82837
|
+
onDownload = _a.onDownload;
|
|
82838
|
+
var handleDownloadClick = function handleDownloadClick() {
|
|
82839
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
82840
|
+
var response, blob, blobUrl, link, error_1, link;
|
|
82841
|
+
return __generator(this, function (_a) {
|
|
82842
|
+
switch (_a.label) {
|
|
82843
|
+
case 0:
|
|
82844
|
+
if (!onDownload) return [3 /*break*/, 1];
|
|
82845
|
+
onDownload();
|
|
82846
|
+
return [3 /*break*/, 6];
|
|
82847
|
+
case 1:
|
|
82848
|
+
if (!downloadUrl) return [3 /*break*/, 6];
|
|
82849
|
+
_a.label = 2;
|
|
82850
|
+
case 2:
|
|
82851
|
+
_a.trys.push([2, 5,, 6]);
|
|
82852
|
+
return [4 /*yield*/, fetch(downloadUrl)];
|
|
82853
|
+
case 3:
|
|
82854
|
+
response = _a.sent();
|
|
82855
|
+
if (!response.ok) throw new Error('Download failed');
|
|
82856
|
+
return [4 /*yield*/, response.blob()];
|
|
82857
|
+
case 4:
|
|
82858
|
+
blob = _a.sent();
|
|
82859
|
+
blobUrl = window.URL.createObjectURL(blob);
|
|
82860
|
+
link = document.createElement('a');
|
|
82861
|
+
link.href = blobUrl;
|
|
82862
|
+
link.download = downloadFileName || 'video-download';
|
|
82863
|
+
link.style.display = 'none';
|
|
82864
|
+
document.body.appendChild(link);
|
|
82865
|
+
link.click();
|
|
82866
|
+
document.body.removeChild(link);
|
|
82867
|
+
// Clean up blob URL
|
|
82868
|
+
window.URL.revokeObjectURL(blobUrl);
|
|
82869
|
+
return [3 /*break*/, 6];
|
|
82870
|
+
case 5:
|
|
82871
|
+
error_1 = _a.sent();
|
|
82872
|
+
console.error('Download failed:', error_1);
|
|
82873
|
+
link = document.createElement('a');
|
|
82874
|
+
link.href = downloadUrl;
|
|
82875
|
+
link.download = downloadFileName || 'video-download';
|
|
82876
|
+
link.style.display = 'none';
|
|
82877
|
+
document.body.appendChild(link);
|
|
82878
|
+
link.click();
|
|
82879
|
+
document.body.removeChild(link);
|
|
82880
|
+
return [3 /*break*/, 6];
|
|
82881
|
+
case 6:
|
|
82882
|
+
return [2 /*return*/];
|
|
82883
|
+
}
|
|
82884
|
+
});
|
|
82885
|
+
});
|
|
82886
|
+
};
|
|
82823
82887
|
return jsxRuntimeExports.jsxs(StyledControls, {
|
|
82824
82888
|
children: [jsxRuntimeExports.jsx(StyledSlider, {
|
|
82825
82889
|
type: 'range',
|
|
@@ -82869,6 +82933,10 @@ var Controls = function Controls(_a) {
|
|
|
82869
82933
|
active: isFavorite,
|
|
82870
82934
|
onClick: toggleIsFavorite
|
|
82871
82935
|
})
|
|
82936
|
+
}), showDownload && downloadUrl && jsxRuntimeExports.jsx(StyledDownloadIconContainer, {
|
|
82937
|
+
children: jsxRuntimeExports.jsx(DownloadIcon, {
|
|
82938
|
+
onClick: handleDownloadClick
|
|
82939
|
+
})
|
|
82872
82940
|
}), jsxRuntimeExports.jsx(PlaybackSpeedMenu, {
|
|
82873
82941
|
playbackSpeed: playbackRate,
|
|
82874
82942
|
onPlaybackSpeedChange: function onPlaybackSpeedChange(speed) {
|
|
@@ -89137,7 +89205,11 @@ var VideoPlayer = function VideoPlayer(_a) {
|
|
|
89137
89205
|
return [2 /*return*/];
|
|
89138
89206
|
});
|
|
89139
89207
|
});
|
|
89140
|
-
} : _h
|
|
89208
|
+
} : _h,
|
|
89209
|
+
showDownload = _a.showDownload,
|
|
89210
|
+
downloadUrl = _a.downloadUrl,
|
|
89211
|
+
downloadFileName = _a.downloadFileName,
|
|
89212
|
+
onDownload = _a.onDownload;
|
|
89141
89213
|
var videoRef = React.useRef(null);
|
|
89142
89214
|
var _j = usePlayerControls({
|
|
89143
89215
|
startTime: startTime,
|
|
@@ -89289,7 +89361,11 @@ var VideoPlayer = function VideoPlayer(_a) {
|
|
|
89289
89361
|
handleSkipForward: handleNextVideo,
|
|
89290
89362
|
isNextVideo: isNextVideo,
|
|
89291
89363
|
isPreviousVideo: isPreviousVideo,
|
|
89292
|
-
showFavorite: showFavorite
|
|
89364
|
+
showFavorite: showFavorite,
|
|
89365
|
+
showDownload: showDownload,
|
|
89366
|
+
downloadUrl: downloadUrl,
|
|
89367
|
+
downloadFileName: downloadFileName,
|
|
89368
|
+
onDownload: onDownload
|
|
89293
89369
|
})
|
|
89294
89370
|
})]
|
|
89295
89371
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { A as AudioPlayer, k as Badge, h as Breadcrumb, B as Button, e as Checkbox, j as ColorPicker, o as ColumnNavigation, C as CourseCard, c as CustomSwitcher, m as CustomTooltip, d as DatePicker, u as DrawerTips, D as DropDown, G as GridActionMenu, L as Loader, N as NavigationBar, f as Pagination, P as PhoneCountryCode, R as RadioButton, v as RangeSlider, S as SearchInput, n as SplashScreen, p as StatusIndicator, s as TabNavigation, q as TabPanel, b as ThemeProvider, i as Tile, l as TooltipHeight, T as TranslationProvider, U as Uploader, V as VideoPlayer, t as activeTabClassName } from './index-
|
|
1
|
+
export { A as AudioPlayer, k as Badge, h as Breadcrumb, B as Button, e as Checkbox, j as ColorPicker, o as ColumnNavigation, C as CourseCard, c as CustomSwitcher, m as CustomTooltip, d as DatePicker, u as DrawerTips, D as DropDown, G as GridActionMenu, L as Loader, N as NavigationBar, f as Pagination, P as PhoneCountryCode, R as RadioButton, v as RangeSlider, S as SearchInput, n as SplashScreen, p as StatusIndicator, s as TabNavigation, q as TabPanel, b as ThemeProvider, i as Tile, l as TooltipHeight, T as TranslationProvider, U as Uploader, V as VideoPlayer, t as activeTabClassName } from './index-C_u0zRwP.esm.js';
|
|
2
2
|
import 'react';
|
|
3
3
|
import 'react-dom';
|
|
@@ -23,8 +23,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import { forwardRef } from 'react';
|
|
25
25
|
export var DownloadIcon = forwardRef(function (_a, ref) {
|
|
26
|
-
var className = _a.className, onClick = _a.onClick, props = __rest(_a, ["className", "onClick"]);
|
|
27
|
-
return (_jsxs("svg", __assign({ ref: ref, width: '24', height: '24', viewBox: '0 0 24 24', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', className: className, onClick: onClick }, props, { children: [_jsx("path", { d: 'M19.5 18V21H4.5V18H3V21C3 21.3978 3.15804 21.7794 3.43934 22.0607C3.72064 22.342 4.10218 22.5 4.5 22.5H19.5C19.8978 22.5 20.2794 22.342 20.5607 22.0607C20.842 21.7794 21 21.3978 21 21V18H19.5Z', fill:
|
|
26
|
+
var className = _a.className, onClick = _a.onClick, _b = _a.fill, fill = _b === void 0 ? '#FFFFFF' : _b, props = __rest(_a, ["className", "onClick", "fill"]);
|
|
27
|
+
return (_jsxs("svg", __assign({ ref: ref, width: '24', height: '24', viewBox: '0 0 24 24', fill: 'none', xmlns: 'http://www.w3.org/2000/svg', className: className, onClick: onClick }, props, { children: [_jsx("path", { d: 'M19.5 18V21H4.5V18H3V21C3 21.3978 3.15804 21.7794 3.43934 22.0607C3.72064 22.342 4.10218 22.5 4.5 22.5H19.5C19.8978 22.5 20.2794 22.342 20.5607 22.0607C20.842 21.7794 21 21.3978 21 21V18H19.5Z', fill: fill }), _jsx("path", { d: 'M19.5 10.5L18.4425 9.4425L12.75 15.1275V1.5H11.25V15.1275L5.5575 9.4425L4.5 10.5L12 18L19.5 10.5Z', fill: fill })] })));
|
|
28
28
|
});
|
|
29
29
|
DownloadIcon.displayName = 'DownloadIcon';
|
|
30
30
|
//# sourceMappingURL=DownloadIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadIcon.js","sourceRoot":"","sources":["../../src/icons/DownloadIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,MAAM,CAAC,IAAM,YAAY,GAAG,UAAU,CACpC,UAAC,
|
|
1
|
+
{"version":3,"file":"DownloadIcon.js","sourceRoot":"","sources":["../../src/icons/DownloadIcon.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAGzC,MAAM,CAAC,IAAM,YAAY,GAAG,UAAU,CACpC,UAAC,EAAkD,EAAE,GAAG;IAArD,IAAA,SAAS,eAAA,EAAE,OAAO,aAAA,EAAE,YAAgB,EAAhB,IAAI,mBAAG,SAAS,KAAA,EAAK,KAAK,cAAhD,gCAAkD,CAAF;IAC/C,OAAO,CACL,wBACE,GAAG,EAAE,GAAG,EACR,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B,EAClC,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,OAAO,IACZ,KAAK,eAET,eACE,CAAC,EAAC,kMAAkM,EACpM,IAAI,EAAE,IAAI,GACV,EACF,eACE,CAAC,EAAC,mGAAmG,EACrG,IAAI,EAAE,IAAI,GACV,KACE,CACP,CAAA;AACH,CAAC,CACF,CAAA;AAED,YAAY,CAAC,WAAW,GAAG,cAAc,CAAA"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { IPaginationV2Props } from './pagination.interface';
|
|
3
|
-
export declare const Pagination: ({ currentPage, totalPages, handleChange, perPage, handlePerPageChange, }: IPaginationV2Props) => ReactElement;
|
|
3
|
+
export declare const Pagination: ({ currentPage, totalPages, handleChange, perPage, themeColor, handlePerPageChange, }: IPaginationV2Props) => ReactElement;
|
|
@@ -4,6 +4,7 @@ export interface IPaginationV2Props {
|
|
|
4
4
|
currentPage: number;
|
|
5
5
|
totalPages: number;
|
|
6
6
|
perPage?: number;
|
|
7
|
+
themeColor?: string;
|
|
7
8
|
handleChange: (event: ChangeEvent<unknown>, value: number) => void;
|
|
8
9
|
handlePerPageChange?: (event: SelectChangeEvent<number>, child: ReactNode) => void;
|
|
9
10
|
}
|
|
@@ -1 +1,3 @@
|
|
|
1
|
-
export declare const PaginationWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").
|
|
1
|
+
export declare const PaginationWrapper: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
2
|
+
$themeColor?: string;
|
|
3
|
+
}>> & string;
|
|
@@ -9,6 +9,7 @@ export declare const StyledControllerLeft: import("styled-components/dist/types"
|
|
|
9
9
|
export declare const StyledControllerRight: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
10
10
|
export declare const StyledTimeTrack: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
11
11
|
export declare const StyledHeartIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
|
+
export declare const StyledDownloadIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
12
13
|
export declare const StyledSubtitlesIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
13
14
|
export declare const StyledFullscreenIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
14
15
|
export declare const StyledVolumeIconContainer: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components").FastOmit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { PlayerProps } from './Player.interface';
|
|
3
|
-
export declare const VideoPlayer: ({ customStyles, startTime, loading, setLoading, handleTrackProgress, url, subtitle: subtitleUrl, handleNextVideo, handlePreviousVideo, isNextVideo, isPreviousVideo, isPlaying, setIsPlaying, shouldPlayerBeFocusedOnSpaceClick, showFavorite, isFavorite, toggleFavorite, }: PlayerProps) => ReactElement;
|
|
3
|
+
export declare const VideoPlayer: ({ customStyles, startTime, loading, setLoading, handleTrackProgress, url, subtitle: subtitleUrl, handleNextVideo, handlePreviousVideo, isNextVideo, isPreviousVideo, isPlaying, setIsPlaying, shouldPlayerBeFocusedOnSpaceClick, showFavorite, isFavorite, toggleFavorite, showDownload, downloadUrl, downloadFileName, onDownload, }: PlayerProps) => ReactElement;
|
|
4
4
|
export default VideoPlayer;
|
|
@@ -30,6 +30,10 @@ export interface PlayerProps {
|
|
|
30
30
|
showFavorite?: boolean;
|
|
31
31
|
isFavorite?: boolean;
|
|
32
32
|
toggleFavorite?: () => Promise<void>;
|
|
33
|
+
showDownload?: boolean;
|
|
34
|
+
downloadUrl?: string;
|
|
35
|
+
downloadFileName?: string;
|
|
36
|
+
onDownload?: () => void;
|
|
33
37
|
}
|
|
34
38
|
export interface UsePlayerControlsProps {
|
|
35
39
|
startTime?: number;
|
package/dist/icons/index.esm.js
CHANGED
|
@@ -2703,7 +2703,9 @@ DocumentAttachment.displayName = 'DocumentAttachment';
|
|
|
2703
2703
|
var DownloadIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
2704
2704
|
var className = _a.className,
|
|
2705
2705
|
onClick = _a.onClick,
|
|
2706
|
-
|
|
2706
|
+
_b = _a.fill,
|
|
2707
|
+
fill = _b === void 0 ? '#FFFFFF' : _b,
|
|
2708
|
+
props = __rest(_a, ["className", "onClick", "fill"]);
|
|
2707
2709
|
return jsxRuntimeExports.jsxs("svg", __assign({
|
|
2708
2710
|
ref: ref,
|
|
2709
2711
|
width: '24',
|
|
@@ -2716,10 +2718,10 @@ var DownloadIcon = /*#__PURE__*/forwardRef(function (_a, ref) {
|
|
|
2716
2718
|
}, props, {
|
|
2717
2719
|
children: [jsxRuntimeExports.jsx("path", {
|
|
2718
2720
|
d: 'M19.5 18V21H4.5V18H3V21C3 21.3978 3.15804 21.7794 3.43934 22.0607C3.72064 22.342 4.10218 22.5 4.5 22.5H19.5C19.8978 22.5 20.2794 22.342 20.5607 22.0607C20.842 21.7794 21 21.3978 21 21V18H19.5Z',
|
|
2719
|
-
fill:
|
|
2721
|
+
fill: fill
|
|
2720
2722
|
}), jsxRuntimeExports.jsx("path", {
|
|
2721
2723
|
d: 'M19.5 10.5L18.4425 9.4425L12.75 15.1275V1.5H11.25V15.1275L5.5575 9.4425L4.5 10.5L12 18L19.5 10.5Z',
|
|
2722
|
-
fill:
|
|
2724
|
+
fill: fill
|
|
2723
2725
|
})]
|
|
2724
2726
|
}));
|
|
2725
2727
|
});
|
package/dist/main.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,aAAa,CAAA;AACpB,OAAO,GAAG,MAAM,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,aAAa,CAAA;AACpB,OAAO,GAAG,MAAM,UAAU,CAAA;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAEtC,UAAU,CAAC,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAE,CAAC,CAAC,MAAM,CACjD,KAAC,UAAU,cACT,KAAC,aAAa,IAAC,KAAK,EAAE,MAAM,CAAC,IAAI,YAC/B,KAAC,GAAG,KAAG,GACO,GACL,CACd,CAAA"}
|