@veeqo/ui 14.12.0 → 14.13.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/DataGrid/components/Body/BodyCell/BodyCell.cjs +0 -1
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.cjs.map +1 -1
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.js +0 -1
- package/dist/components/DataGrid/components/Body/BodyCell/BodyCell.js.map +1 -1
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.cjs +0 -1
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.cjs.map +1 -1
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.js +0 -1
- package/dist/components/DataGrid/components/Header/HeaderCell/HeaderCell.js.map +1 -1
- package/dist/components/DataTable/DataTable.cjs +0 -1
- package/dist/components/DataTable/DataTable.cjs.map +1 -1
- package/dist/components/DataTable/DataTable.js +0 -1
- package/dist/components/DataTable/DataTable.js.map +1 -1
- package/dist/components/DataTable/renderers/renderHeader.cjs +0 -1
- package/dist/components/DataTable/renderers/renderHeader.cjs.map +1 -1
- package/dist/components/DataTable/renderers/renderHeader.js +0 -1
- package/dist/components/DataTable/renderers/renderHeader.js.map +1 -1
- package/dist/components/LegacyDataTable/StickyHeader.cjs +22 -4
- package/dist/components/LegacyDataTable/StickyHeader.cjs.map +1 -1
- package/dist/components/LegacyDataTable/StickyHeader.js +23 -5
- package/dist/components/LegacyDataTable/StickyHeader.js.map +1 -1
- package/dist/components/Modal/Modal.cjs +2 -20
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.js +1 -19
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Popup/Popup.cjs +28 -0
- package/dist/components/Popup/Popup.cjs.map +1 -0
- package/dist/components/Popup/Popup.d.ts +3 -0
- package/dist/components/Popup/Popup.js +22 -0
- package/dist/components/Popup/Popup.js.map +1 -0
- package/dist/components/Popup/Popup.module.scss.cjs +9 -0
- package/dist/components/Popup/Popup.module.scss.cjs.map +1 -0
- package/dist/components/Popup/Popup.module.scss.js +7 -0
- package/dist/components/Popup/Popup.module.scss.js.map +1 -0
- package/dist/components/Popup/index.d.ts +2 -0
- package/dist/components/{VideoModal/components/Popup.d.ts → Popup/types.d.ts} +1 -2
- package/dist/components/ScrollLock/ScrollLock.cjs +26 -0
- package/dist/components/ScrollLock/ScrollLock.cjs.map +1 -0
- package/dist/components/ScrollLock/ScrollLock.d.ts +1 -0
- package/dist/components/ScrollLock/ScrollLock.js +24 -0
- package/dist/components/ScrollLock/ScrollLock.js.map +1 -0
- package/dist/components/ScrollLock/index.d.ts +1 -0
- package/dist/components/ViewsContainer/hooks/useSetScrollPosition.cjs +8 -2
- package/dist/components/ViewsContainer/hooks/useSetScrollPosition.cjs.map +1 -1
- package/dist/components/ViewsContainer/hooks/useSetScrollPosition.js +8 -2
- package/dist/components/ViewsContainer/hooks/useSetScrollPosition.js.map +1 -1
- package/dist/components/index.d.ts +1 -1
- package/dist/index.cjs +2 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -3
- package/dist/index.js.map +1 -1
- package/dist/theme/index.cjs +0 -1
- package/dist/theme/index.cjs.map +1 -1
- package/dist/theme/index.d.ts +0 -1
- package/dist/theme/index.js +0 -1
- package/dist/theme/index.js.map +1 -1
- package/package.json +2 -14
- package/dist/components/VideoModal/VideoModal.cjs +0 -26
- package/dist/components/VideoModal/VideoModal.cjs.map +0 -1
- package/dist/components/VideoModal/VideoModal.d.ts +0 -3
- package/dist/components/VideoModal/VideoModal.js +0 -20
- package/dist/components/VideoModal/VideoModal.js.map +0 -1
- package/dist/components/VideoModal/VideoModalDemo.d.ts +0 -2
- package/dist/components/VideoModal/components/Popup.cjs +0 -24
- package/dist/components/VideoModal/components/Popup.cjs.map +0 -1
- package/dist/components/VideoModal/components/Popup.js +0 -17
- package/dist/components/VideoModal/components/Popup.js.map +0 -1
- package/dist/components/VideoModal/components/styled.cjs +0 -26
- package/dist/components/VideoModal/components/styled.cjs.map +0 -1
- package/dist/components/VideoModal/components/styled.d.ts +0 -8
- package/dist/components/VideoModal/components/styled.js +0 -18
- package/dist/components/VideoModal/components/styled.js.map +0 -1
- package/dist/components/VideoModal/index.d.ts +0 -2
- package/dist/components/VideoModal/styled.cjs +0 -17
- package/dist/components/VideoModal/styled.cjs.map +0 -1
- package/dist/components/VideoModal/styled.d.ts +0 -11
- package/dist/components/VideoModal/styled.js +0 -9
- package/dist/components/VideoModal/styled.js.map +0 -1
- package/dist/components/VideoModal/types.d.ts +0 -9
- package/dist/theme/utils.cjs +0 -8
- package/dist/theme/utils.cjs.map +0 -1
- package/dist/theme/utils.d.ts +0 -2
- package/dist/theme/utils.js +0 -6
- package/dist/theme/utils.js.map +0 -1
- package/dist/utils/forms/inputStyles.d.ts +0 -22
- package/dist/utils/forms/variables.d.ts +0 -8
package/dist/index.cjs
CHANGED
|
@@ -51,6 +51,7 @@ var LoginWithAmazonButton = require('./components/LoginWithAmazonButton/LoginWit
|
|
|
51
51
|
var Modal = require('./components/Modal/Modal.cjs');
|
|
52
52
|
var Pagination = require('./components/Pagination/Pagination.cjs');
|
|
53
53
|
var Popover = require('./components/Popover/Popover.cjs');
|
|
54
|
+
var Popup = require('./components/Popup/Popup.cjs');
|
|
54
55
|
var Portal = require('./components/Portal/Portal.cjs');
|
|
55
56
|
var PriceInput = require('./components/PriceInput/PriceInput.cjs');
|
|
56
57
|
var Radio = require('./components/Radio/Radio.cjs');
|
|
@@ -77,8 +78,6 @@ var UploadFile = require('./components/UploadFile/UploadFile.cjs');
|
|
|
77
78
|
var constants = require('./components/UploadFile/constants.cjs');
|
|
78
79
|
var UploadedFile = require('./components/UploadedFile/UploadedFile.cjs');
|
|
79
80
|
var VeeqoLogo = require('./components/VeeqoLogo/VeeqoLogo.cjs');
|
|
80
|
-
var VideoModal = require('./components/VideoModal/VideoModal.cjs');
|
|
81
|
-
var Popup = require('./components/VideoModal/components/Popup.cjs');
|
|
82
81
|
var View = require('./components/View/View.cjs');
|
|
83
82
|
var ViewTab = require('./components/ViewTab/ViewTab.cjs');
|
|
84
83
|
var ViewsContainer = require('./components/ViewsContainer/ViewsContainer.cjs');
|
|
@@ -345,7 +344,6 @@ var VeeqoLogoFull = require('./logos/components/VeeqoLogoFull.cjs');
|
|
|
345
344
|
var VendLogoFull = require('./logos/components/VendLogoFull.cjs');
|
|
346
345
|
var WalmartLogoFull = require('./logos/components/WalmartLogoFull.cjs');
|
|
347
346
|
var WooCommerceLogoFull = require('./logos/components/WooCommerceLogoFull.cjs');
|
|
348
|
-
var utils = require('./theme/utils.cjs');
|
|
349
347
|
|
|
350
348
|
|
|
351
349
|
|
|
@@ -411,6 +409,7 @@ exports.LoginWithAmazonButton = LoginWithAmazonButton.LoginWithAmazonButton;
|
|
|
411
409
|
exports.Modal = Modal.Modal;
|
|
412
410
|
exports.Pagination = Pagination.Pagination;
|
|
413
411
|
exports.Popover = Popover.Popover;
|
|
412
|
+
exports.Popup = Popup.Popup;
|
|
414
413
|
exports.Portal = Portal.Portal;
|
|
415
414
|
exports.PriceInput = PriceInput.PriceInput;
|
|
416
415
|
exports.Radio = Radio.Radio;
|
|
@@ -444,8 +443,6 @@ Object.defineProperty(exports, "FileSizeUnit", {
|
|
|
444
443
|
});
|
|
445
444
|
exports.UploadedFile = UploadedFile.UploadedFile;
|
|
446
445
|
exports.VeeqoLogo = VeeqoLogo.VeeqoLogo;
|
|
447
|
-
exports.VideoModal = VideoModal.VideoModal;
|
|
448
|
-
exports.Popup = Popup.Popup;
|
|
449
446
|
exports.View = View.View;
|
|
450
447
|
exports.ViewTab = ViewTab.ViewTab;
|
|
451
448
|
exports.ViewsContainer = ViewsContainer.ViewsContainer;
|
|
@@ -714,5 +711,4 @@ exports.VeeqoLogoFull = VeeqoLogoFull.ReactComponent;
|
|
|
714
711
|
exports.VendLogoFull = VendLogoFull.ReactComponent;
|
|
715
712
|
exports.WalmartLogoFull = WalmartLogoFull.ReactComponent;
|
|
716
713
|
exports.WooCommerceLogoFull = WooCommerceLogoFull.ReactComponent;
|
|
717
|
-
exports.getTextStyles = utils.getTextStyles;
|
|
718
714
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index.js
CHANGED
|
@@ -49,6 +49,7 @@ export { LoginWithAmazonButton } from './components/LoginWithAmazonButton/LoginW
|
|
|
49
49
|
export { Modal } from './components/Modal/Modal.js';
|
|
50
50
|
export { Pagination } from './components/Pagination/Pagination.js';
|
|
51
51
|
export { Popover } from './components/Popover/Popover.js';
|
|
52
|
+
export { Popup } from './components/Popup/Popup.js';
|
|
52
53
|
export { Portal } from './components/Portal/Portal.js';
|
|
53
54
|
export { PriceInput } from './components/PriceInput/PriceInput.js';
|
|
54
55
|
export { Radio } from './components/Radio/Radio.js';
|
|
@@ -75,8 +76,6 @@ export { UploadFile } from './components/UploadFile/UploadFile.js';
|
|
|
75
76
|
export { AcceptedFileTypes, FileSizeUnit } from './components/UploadFile/constants.js';
|
|
76
77
|
export { UploadedFile } from './components/UploadedFile/UploadedFile.js';
|
|
77
78
|
export { VeeqoLogo } from './components/VeeqoLogo/VeeqoLogo.js';
|
|
78
|
-
export { VideoModal } from './components/VideoModal/VideoModal.js';
|
|
79
|
-
export { Popup } from './components/VideoModal/components/Popup.js';
|
|
80
79
|
export { View } from './components/View/View.js';
|
|
81
80
|
export { ViewTab } from './components/ViewTab/ViewTab.js';
|
|
82
81
|
export { ViewsContainer } from './components/ViewsContainer/ViewsContainer.js';
|
|
@@ -343,5 +342,4 @@ export { ReactComponent as VeeqoLogoFull } from './logos/components/VeeqoLogoFul
|
|
|
343
342
|
export { ReactComponent as VendLogoFull } from './logos/components/VendLogoFull.js';
|
|
344
343
|
export { ReactComponent as WalmartLogoFull } from './logos/components/WalmartLogoFull.js';
|
|
345
344
|
export { ReactComponent as WooCommerceLogoFull } from './logos/components/WooCommerceLogoFull.js';
|
|
346
|
-
export { getTextStyles } from './theme/utils.js';
|
|
347
345
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/theme/index.cjs
CHANGED
package/dist/theme/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../src/theme/index.ts"],"sourcesContent":["import { colors } from './modules/colors';\nimport { breakpoints } from './modules/breakpoints';\nimport { layers } from './modules/layers';\nimport { radius } from './modules/radius';\nimport { Shadows } from './modules/shadows';\nimport { sizes } from './modules/sizes';\nimport { text, common } from './modules/text';\n\nexport
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../src/theme/index.ts"],"sourcesContent":["import { colors } from './modules/colors';\nimport { breakpoints } from './modules/breakpoints';\nimport { layers } from './modules/layers';\nimport { radius } from './modules/radius';\nimport { Shadows } from './modules/shadows';\nimport { sizes } from './modules/sizes';\nimport { text, common } from './modules/text';\n\nexport const theme = {\n ...common,\n breakpoints,\n colors,\n layers,\n radius,\n shadows: Shadows,\n sizes,\n text,\n};\n"],"names":["common","breakpoints","colors","layers","radius","Shadows","sizes","text"],"mappings":";;;;;;;;;;AAQO,MAAM,KAAK,GAAG;AACnB,IAAA,GAAGA,WAAM;iBACTC,uBAAW;YACXC,aAAM;YACNC,aAAM;YACNC,aAAM;AACN,IAAA,OAAO,EAAEC,eAAO;WAChBC,WAAK;UACLC,SAAI;;;;;"}
|
package/dist/theme/index.d.ts
CHANGED
package/dist/theme/index.js
CHANGED
package/dist/theme/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/theme/index.ts"],"sourcesContent":["import { colors } from './modules/colors';\nimport { breakpoints } from './modules/breakpoints';\nimport { layers } from './modules/layers';\nimport { radius } from './modules/radius';\nimport { Shadows } from './modules/shadows';\nimport { sizes } from './modules/sizes';\nimport { text, common } from './modules/text';\n\nexport
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/theme/index.ts"],"sourcesContent":["import { colors } from './modules/colors';\nimport { breakpoints } from './modules/breakpoints';\nimport { layers } from './modules/layers';\nimport { radius } from './modules/radius';\nimport { Shadows } from './modules/shadows';\nimport { sizes } from './modules/sizes';\nimport { text, common } from './modules/text';\n\nexport const theme = {\n ...common,\n breakpoints,\n colors,\n layers,\n radius,\n shadows: Shadows,\n sizes,\n text,\n};\n"],"names":[],"mappings":";;;;;;;;AAQO,MAAM,KAAK,GAAG;AACnB,IAAA,GAAG,MAAM;IACT,WAAW;IACX,MAAM;IACN,MAAM;IACN,MAAM;AACN,IAAA,OAAO,EAAE,OAAO;IAChB,KAAK;IACL,IAAI;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veeqo/ui",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.13.0",
|
|
4
4
|
"description": "New optimised component library for Veeqo.",
|
|
5
5
|
"author": "Robert Wealthall",
|
|
6
6
|
"license": "ISC",
|
|
@@ -83,7 +83,6 @@
|
|
|
83
83
|
"@types/react": "^17.0.5",
|
|
84
84
|
"@types/react-dom": "^16.9.12",
|
|
85
85
|
"@types/react-transition-group": "^4.4.6",
|
|
86
|
-
"@types/styled-components": "^5.1.27",
|
|
87
86
|
"@typescript-eslint/eslint-plugin": "^6.7.3",
|
|
88
87
|
"@typescript-eslint/parser": "^6.7.3",
|
|
89
88
|
"auto-changelog": "^2.4.0",
|
|
@@ -106,7 +105,6 @@
|
|
|
106
105
|
"jest-axe": "~6.0.0",
|
|
107
106
|
"jest-cli": "~29.0.3",
|
|
108
107
|
"jest-environment-jsdom": "~29.0.3",
|
|
109
|
-
"jest-styled-components": "~7.1.1",
|
|
110
108
|
"lodash.throttle": "^4.1.1",
|
|
111
109
|
"playroom": "^0.39.1",
|
|
112
110
|
"postcss": "^8.5.3",
|
|
@@ -115,9 +113,7 @@
|
|
|
115
113
|
"react": "^17.0.2",
|
|
116
114
|
"react-dom": "^17.0.2",
|
|
117
115
|
"react-popper": "^2.2.5",
|
|
118
|
-
"react-scrolllock-configurable": "4.0.5",
|
|
119
116
|
"react-transition-group": "^4.3.0",
|
|
120
|
-
"react-use": "^15.3.8",
|
|
121
117
|
"remark-gfm": "^4.0.1",
|
|
122
118
|
"resize-observer-polyfill": "^1.5.1",
|
|
123
119
|
"rimraf": "^5.0.5",
|
|
@@ -127,13 +123,11 @@
|
|
|
127
123
|
"sass-loader": "^16.0.5",
|
|
128
124
|
"storybook": "10.3.3",
|
|
129
125
|
"style-loader": "^2.0.0",
|
|
130
|
-
"styled-components": "^5.1.1",
|
|
131
126
|
"stylelint": "^16.25.0",
|
|
132
127
|
"stylelint-config-standard-scss": "^13.0.0",
|
|
133
128
|
"ts-jest": "^29.1.1",
|
|
134
129
|
"tsc-alias": "^1.8.8",
|
|
135
|
-
"typescript": "^5.2.2"
|
|
136
|
-
"typescript-plugin-styled-components": "^3.0.0"
|
|
130
|
+
"typescript": "^5.2.2"
|
|
137
131
|
},
|
|
138
132
|
"peerDependencies": {
|
|
139
133
|
"@internationalized/date": "^3.5.4",
|
|
@@ -145,17 +139,11 @@
|
|
|
145
139
|
"react-aria-components": "^1.2.1",
|
|
146
140
|
"react-dom": "^17.0.2",
|
|
147
141
|
"react-popper": "^2.2.5",
|
|
148
|
-
"react-scrolllock-configurable": "4.0.5",
|
|
149
142
|
"react-transition-group": "^4.3.0",
|
|
150
|
-
"react-use": "^15.3.8",
|
|
151
143
|
"resize-observer-polyfill": "^1.5.1",
|
|
152
|
-
"styled-components": "^5.1.1",
|
|
153
144
|
"uid": "^2.0.2"
|
|
154
145
|
},
|
|
155
146
|
"overrides": {
|
|
156
|
-
"react-scrolllock-configurable": {
|
|
157
|
-
"react": "$react"
|
|
158
|
-
},
|
|
159
147
|
"auto-changelog": {
|
|
160
148
|
"handlebars": "4.7.9"
|
|
161
149
|
},
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var Popup = require('./components/Popup.cjs');
|
|
5
|
-
var styled = require('./styled.cjs');
|
|
6
|
-
var useClickOutside = require('../../hooks/useClickOutside.cjs');
|
|
7
|
-
require('../../hooks/useFocusVisible.cjs');
|
|
8
|
-
require('uid/secure');
|
|
9
|
-
require('lodash.throttle');
|
|
10
|
-
var CrossIcon = require('../../icons/design-system/components/CrossIcon.cjs');
|
|
11
|
-
|
|
12
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
13
|
-
|
|
14
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
15
|
-
|
|
16
|
-
const VideoModal = ({ id, youtubeVideoId, showVideoModal, handleCloseClick, }) => {
|
|
17
|
-
const ref = useClickOutside.useClickOutside(showVideoModal, handleCloseClick);
|
|
18
|
-
return (React__default.default.createElement(Popup.Popup, { shouldShow: showVideoModal, className: `${id}-video` },
|
|
19
|
-
React__default.default.createElement(styled.PopupContent, { "data-testid": "video-modal_popup-content", className: `video-modal--${showVideoModal ? 'visible' : 'hidden'}` },
|
|
20
|
-
React__default.default.createElement(styled.VideoWrapper, { ref: ref },
|
|
21
|
-
React__default.default.createElement("iframe", { title: `${id}-video`, src: `https://www.youtube.com/embed/${youtubeVideoId}`, frameBorder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true }),
|
|
22
|
-
React__default.default.createElement(styled.ButtonSC, { variant: "flat", onClick: handleCloseClick, "data-testid": "video-modal--close", iconSlot: React__default.default.createElement(CrossIcon.ReactComponent, { color: "white" }) })))));
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
exports.VideoModal = VideoModal;
|
|
26
|
-
//# sourceMappingURL=VideoModal.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VideoModal.cjs","sources":["../../../src/components/VideoModal/VideoModal.tsx"],"sourcesContent":["import React from 'react';\nimport { Popup } from './components/Popup';\nimport { VideoModalProps } from './types';\nimport { PopupContent, VideoWrapper, ButtonSC } from './styled';\nimport { useClickOutside } from '../../hooks';\nimport { CrossIcon } from '../../icons';\n\nexport const VideoModal = ({\n id,\n youtubeVideoId,\n showVideoModal,\n handleCloseClick,\n}: VideoModalProps) => {\n const ref = useClickOutside(showVideoModal, handleCloseClick);\n\n return (\n <Popup shouldShow={showVideoModal} className={`${id}-video`}>\n <PopupContent\n data-testid=\"video-modal_popup-content\"\n className={`video-modal--${showVideoModal ? 'visible' : 'hidden'}`}\n >\n <VideoWrapper ref={ref}>\n <iframe\n title={`${id}-video`}\n src={`https://www.youtube.com/embed/${youtubeVideoId}`}\n frameBorder=\"0\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n />\n <ButtonSC\n variant=\"flat\"\n onClick={handleCloseClick}\n data-testid=\"video-modal--close\"\n iconSlot={<CrossIcon color=\"white\" />}\n />\n </VideoWrapper>\n </PopupContent>\n </Popup>\n );\n};\n"],"names":["useClickOutside","React","Popup","PopupContent","VideoWrapper","ButtonSC","CrossIcon"],"mappings":";;;;;;;;;;;;;;;AAOO,MAAM,UAAU,GAAG,CAAC,EACzB,EAAE,EACF,cAAc,EACd,cAAc,EACd,gBAAgB,GACA,KAAI;IACpB,MAAM,GAAG,GAAGA,+BAAe,CAAC,cAAc,EAAE,gBAAgB,CAAC;AAE7D,IAAA,QACEC,sBAAA,CAAA,aAAA,CAACC,WAAK,EAAA,EAAC,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,CAAA,EAAG,EAAE,CAAA,MAAA,CAAQ,EAAA;AACzD,QAAAD,sBAAA,CAAA,aAAA,CAACE,mBAAY,EAAA,EAAA,aAAA,EACC,2BAA2B,EACvC,SAAS,EAAE,CAAA,aAAA,EAAgB,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAA,CAAE,EAAA;AAElE,YAAAF,sBAAA,CAAA,aAAA,CAACG,mBAAY,EAAA,EAAC,GAAG,EAAE,GAAG,EAAA;gBACpBH,sBAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EACE,KAAK,EAAE,CAAA,EAAG,EAAE,QAAQ,EACpB,GAAG,EAAE,CAAA,8BAAA,EAAiC,cAAc,EAAE,EACtD,WAAW,EAAC,GAAG,EACf,KAAK,EAAC,0FAA0F,EAChG,eAAe,EAAA,IAAA,EAAA,CACf;gBACFA,sBAAA,CAAA,aAAA,CAACI,eAAQ,EAAA,EACP,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,gBAAgB,EAAA,aAAA,EACb,oBAAoB,EAChC,QAAQ,EAAEJ,sBAAA,CAAA,aAAA,CAACK,wBAAS,EAAA,EAAC,KAAK,EAAC,OAAO,EAAA,CAAG,EAAA,CACrC,CACW,CACF,CACT;AAEZ;;;;"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { Popup } from './components/Popup.js';
|
|
3
|
-
import { PopupContent, VideoWrapper, ButtonSC } from './styled.js';
|
|
4
|
-
import { useClickOutside } from '../../hooks/useClickOutside.js';
|
|
5
|
-
import '../../hooks/useFocusVisible.js';
|
|
6
|
-
import 'uid/secure';
|
|
7
|
-
import 'lodash.throttle';
|
|
8
|
-
import { ReactComponent as CrossIcon } from '../../icons/design-system/components/CrossIcon.js';
|
|
9
|
-
|
|
10
|
-
const VideoModal = ({ id, youtubeVideoId, showVideoModal, handleCloseClick, }) => {
|
|
11
|
-
const ref = useClickOutside(showVideoModal, handleCloseClick);
|
|
12
|
-
return (React__default.createElement(Popup, { shouldShow: showVideoModal, className: `${id}-video` },
|
|
13
|
-
React__default.createElement(PopupContent, { "data-testid": "video-modal_popup-content", className: `video-modal--${showVideoModal ? 'visible' : 'hidden'}` },
|
|
14
|
-
React__default.createElement(VideoWrapper, { ref: ref },
|
|
15
|
-
React__default.createElement("iframe", { title: `${id}-video`, src: `https://www.youtube.com/embed/${youtubeVideoId}`, frameBorder: "0", allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture", allowFullScreen: true }),
|
|
16
|
-
React__default.createElement(ButtonSC, { variant: "flat", onClick: handleCloseClick, "data-testid": "video-modal--close", iconSlot: React__default.createElement(CrossIcon, { color: "white" }) })))));
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { VideoModal };
|
|
20
|
-
//# sourceMappingURL=VideoModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"VideoModal.js","sources":["../../../src/components/VideoModal/VideoModal.tsx"],"sourcesContent":["import React from 'react';\nimport { Popup } from './components/Popup';\nimport { VideoModalProps } from './types';\nimport { PopupContent, VideoWrapper, ButtonSC } from './styled';\nimport { useClickOutside } from '../../hooks';\nimport { CrossIcon } from '../../icons';\n\nexport const VideoModal = ({\n id,\n youtubeVideoId,\n showVideoModal,\n handleCloseClick,\n}: VideoModalProps) => {\n const ref = useClickOutside(showVideoModal, handleCloseClick);\n\n return (\n <Popup shouldShow={showVideoModal} className={`${id}-video`}>\n <PopupContent\n data-testid=\"video-modal_popup-content\"\n className={`video-modal--${showVideoModal ? 'visible' : 'hidden'}`}\n >\n <VideoWrapper ref={ref}>\n <iframe\n title={`${id}-video`}\n src={`https://www.youtube.com/embed/${youtubeVideoId}`}\n frameBorder=\"0\"\n allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture\"\n allowFullScreen\n />\n <ButtonSC\n variant=\"flat\"\n onClick={handleCloseClick}\n data-testid=\"video-modal--close\"\n iconSlot={<CrossIcon color=\"white\" />}\n />\n </VideoWrapper>\n </PopupContent>\n </Popup>\n );\n};\n"],"names":["React"],"mappings":";;;;;;;;;AAOO,MAAM,UAAU,GAAG,CAAC,EACzB,EAAE,EACF,cAAc,EACd,cAAc,EACd,gBAAgB,GACA,KAAI;IACpB,MAAM,GAAG,GAAG,eAAe,CAAC,cAAc,EAAE,gBAAgB,CAAC;AAE7D,IAAA,QACEA,cAAA,CAAA,aAAA,CAAC,KAAK,EAAA,EAAC,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,CAAA,EAAG,EAAE,CAAA,MAAA,CAAQ,EAAA;AACzD,QAAAA,cAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAA,aAAA,EACC,2BAA2B,EACvC,SAAS,EAAE,CAAA,aAAA,EAAgB,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAA,CAAE,EAAA;AAElE,YAAAA,cAAA,CAAA,aAAA,CAAC,YAAY,EAAA,EAAC,GAAG,EAAE,GAAG,EAAA;gBACpBA,cAAA,CAAA,aAAA,CAAA,QAAA,EAAA,EACE,KAAK,EAAE,CAAA,EAAG,EAAE,QAAQ,EACpB,GAAG,EAAE,CAAA,8BAAA,EAAiC,cAAc,EAAE,EACtD,WAAW,EAAC,GAAG,EACf,KAAK,EAAC,0FAA0F,EAChG,eAAe,EAAA,IAAA,EAAA,CACf;gBACFA,cAAA,CAAA,aAAA,CAAC,QAAQ,EAAA,EACP,OAAO,EAAC,MAAM,EACd,OAAO,EAAE,gBAAgB,EAAA,aAAA,EACb,oBAAoB,EAChC,QAAQ,EAAEA,cAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EAAC,KAAK,EAAC,OAAO,EAAA,CAAG,EAAA,CACrC,CACW,CACF,CACT;AAEZ;;;;"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var ScrollLock = require('react-scrolllock-configurable');
|
|
5
|
-
var Portal = require('../../Portal/Portal.cjs');
|
|
6
|
-
var styled = require('./styled.cjs');
|
|
7
|
-
var buildClassnames = require('../../../utils/buildClassnames.cjs');
|
|
8
|
-
|
|
9
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
-
|
|
11
|
-
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
12
|
-
var ScrollLock__default = /*#__PURE__*/_interopDefaultCompat(ScrollLock);
|
|
13
|
-
|
|
14
|
-
const WithPortal = ({ usePortal, children }) => (
|
|
15
|
-
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
16
|
-
React__default.default.createElement(React__default.default.Fragment, null, usePortal ? React__default.default.createElement(Portal.Portal, null, children) : children));
|
|
17
|
-
const Popup = ({ className, children = null, shouldShow = false, usePortal = true, }) => (React__default.default.createElement(WithPortal, { usePortal: usePortal },
|
|
18
|
-
React__default.default.createElement(styled.Container, { className: buildClassnames.buildClassnames([`${className}-container`, className]), shouldShow: shouldShow },
|
|
19
|
-
React__default.default.createElement(styled.Shadow, null),
|
|
20
|
-
React__default.default.createElement(ScrollLock__default.default, { isActive: shouldShow },
|
|
21
|
-
React__default.default.createElement(styled.Wrap, { className: buildClassnames.buildClassnames([`${className}-wrap`, className]) }, children)))));
|
|
22
|
-
|
|
23
|
-
exports.Popup = Popup;
|
|
24
|
-
//# sourceMappingURL=Popup.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Popup.cjs","sources":["../../../../src/components/VideoModal/components/Popup.tsx"],"sourcesContent":["import React, { ReactNode, FC } from 'react';\n\n// @ts-ignore\nimport ScrollLock from 'react-scrolllock-configurable';\nimport { Portal } from '../../Portal';\n\nimport { Container, Shadow, Wrap } from './styled';\nimport { buildClassnames } from '../../../utils/buildClassnames';\n\ninterface WithPortalProps {\n usePortal?: boolean;\n children: ReactNode;\n}\n\nconst WithPortal = ({ usePortal, children }: WithPortalProps) => (\n // eslint-disable-next-line react/jsx-no-useless-fragment\n <>{usePortal ? <Portal>{children}</Portal> : children}</>\n);\n\nexport interface PopupProps {\n children: ReactNode;\n shouldShow: boolean;\n usePortal?: boolean;\n className?: string;\n}\n\nexport const Popup: FC<PopupProps> = ({\n className,\n children = null,\n shouldShow = false,\n usePortal = true,\n}: PopupProps) => (\n <WithPortal usePortal={usePortal}>\n <Container\n className={buildClassnames([`${className}-container`, className])}\n shouldShow={shouldShow}\n >\n <Shadow />\n <ScrollLock isActive={shouldShow}>\n <Wrap className={buildClassnames([`${className}-wrap`, className])}>{children}</Wrap>\n </ScrollLock>\n </Container>\n </WithPortal>\n);\n"],"names":["React","Portal","Container","buildClassnames","Shadow","ScrollLock","Wrap"],"mappings":";;;;;;;;;;;;;AAcA,MAAM,UAAU,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAmB;AAC1D;AACAA,sBAAA,CAAA,aAAA,CAAAA,sBAAA,CAAA,QAAA,EAAA,IAAA,EAAG,SAAS,GAAGA,qCAACC,aAAM,EAAA,IAAA,EAAE,QAAQ,CAAU,GAAG,QAAQ,CAAI,CAC1D;AASM,MAAM,KAAK,GAAmB,CAAC,EACpC,SAAS,EACT,QAAQ,GAAG,IAAI,EACf,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,IAAI,GACL,MACXD,sBAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,SAAS,EAAE,SAAS,EAAA;AAC9B,IAAAA,sBAAA,CAAA,aAAA,CAACE,gBAAS,EAAA,EACR,SAAS,EAAEC,+BAAe,CAAC,CAAC,CAAA,EAAG,SAAS,CAAA,UAAA,CAAY,EAAE,SAAS,CAAC,CAAC,EACjE,UAAU,EAAE,UAAU,EAAA;AAEtB,QAAAH,sBAAA,CAAA,aAAA,CAACI,aAAM,EAAA,IAAA,CAAG;AACV,QAAAJ,sBAAA,CAAA,aAAA,CAACK,2BAAU,EAAA,EAAC,QAAQ,EAAE,UAAU,EAAA;YAC9BL,sBAAA,CAAA,aAAA,CAACM,WAAI,IAAC,SAAS,EAAEH,+BAAe,CAAC,CAAC,GAAG,SAAS,CAAA,KAAA,CAAO,EAAE,SAAS,CAAC,CAAC,EAAA,EAAG,QAAQ,CAAQ,CAC1E,CACH,CACD;;;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import ScrollLock from 'react-scrolllock-configurable';
|
|
3
|
-
import { Portal } from '../../Portal/Portal.js';
|
|
4
|
-
import { Container, Shadow, Wrap } from './styled.js';
|
|
5
|
-
import { buildClassnames } from '../../../utils/buildClassnames.js';
|
|
6
|
-
|
|
7
|
-
const WithPortal = ({ usePortal, children }) => (
|
|
8
|
-
// eslint-disable-next-line react/jsx-no-useless-fragment
|
|
9
|
-
React__default.createElement(React__default.Fragment, null, usePortal ? React__default.createElement(Portal, null, children) : children));
|
|
10
|
-
const Popup = ({ className, children = null, shouldShow = false, usePortal = true, }) => (React__default.createElement(WithPortal, { usePortal: usePortal },
|
|
11
|
-
React__default.createElement(Container, { className: buildClassnames([`${className}-container`, className]), shouldShow: shouldShow },
|
|
12
|
-
React__default.createElement(Shadow, null),
|
|
13
|
-
React__default.createElement(ScrollLock, { isActive: shouldShow },
|
|
14
|
-
React__default.createElement(Wrap, { className: buildClassnames([`${className}-wrap`, className]) }, children)))));
|
|
15
|
-
|
|
16
|
-
export { Popup };
|
|
17
|
-
//# sourceMappingURL=Popup.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Popup.js","sources":["../../../../src/components/VideoModal/components/Popup.tsx"],"sourcesContent":["import React, { ReactNode, FC } from 'react';\n\n// @ts-ignore\nimport ScrollLock from 'react-scrolllock-configurable';\nimport { Portal } from '../../Portal';\n\nimport { Container, Shadow, Wrap } from './styled';\nimport { buildClassnames } from '../../../utils/buildClassnames';\n\ninterface WithPortalProps {\n usePortal?: boolean;\n children: ReactNode;\n}\n\nconst WithPortal = ({ usePortal, children }: WithPortalProps) => (\n // eslint-disable-next-line react/jsx-no-useless-fragment\n <>{usePortal ? <Portal>{children}</Portal> : children}</>\n);\n\nexport interface PopupProps {\n children: ReactNode;\n shouldShow: boolean;\n usePortal?: boolean;\n className?: string;\n}\n\nexport const Popup: FC<PopupProps> = ({\n className,\n children = null,\n shouldShow = false,\n usePortal = true,\n}: PopupProps) => (\n <WithPortal usePortal={usePortal}>\n <Container\n className={buildClassnames([`${className}-container`, className])}\n shouldShow={shouldShow}\n >\n <Shadow />\n <ScrollLock isActive={shouldShow}>\n <Wrap className={buildClassnames([`${className}-wrap`, className])}>{children}</Wrap>\n </ScrollLock>\n </Container>\n </WithPortal>\n);\n"],"names":["React"],"mappings":";;;;;;AAcA,MAAM,UAAU,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAmB;AAC1D;AACAA,cAAA,CAAA,aAAA,CAAAA,cAAA,CAAA,QAAA,EAAA,IAAA,EAAG,SAAS,GAAGA,6BAAC,MAAM,EAAA,IAAA,EAAE,QAAQ,CAAU,GAAG,QAAQ,CAAI,CAC1D;AASM,MAAM,KAAK,GAAmB,CAAC,EACpC,SAAS,EACT,QAAQ,GAAG,IAAI,EACf,UAAU,GAAG,KAAK,EAClB,SAAS,GAAG,IAAI,GACL,MACXA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,SAAS,EAAE,SAAS,EAAA;AAC9B,IAAAA,cAAA,CAAA,aAAA,CAAC,SAAS,EAAA,EACR,SAAS,EAAE,eAAe,CAAC,CAAC,CAAA,EAAG,SAAS,CAAA,UAAA,CAAY,EAAE,SAAS,CAAC,CAAC,EACjE,UAAU,EAAE,UAAU,EAAA;AAEtB,QAAAA,cAAA,CAAA,aAAA,CAAC,MAAM,EAAA,IAAA,CAAG;AACV,QAAAA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAC,QAAQ,EAAE,UAAU,EAAA;YAC9BA,cAAA,CAAA,aAAA,CAAC,IAAI,IAAC,SAAS,EAAE,eAAe,CAAC,CAAC,GAAG,SAAS,CAAA,KAAA,CAAO,EAAE,SAAS,CAAC,CAAC,EAAA,EAAG,QAAQ,CAAQ,CAC1E,CACH,CACD;;;;"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styled = require('styled-components');
|
|
4
|
-
var index = require('../../../theme/index.cjs');
|
|
5
|
-
var BaseContainer = require('../../BaseContainer/BaseContainer.cjs');
|
|
6
|
-
|
|
7
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
|
-
|
|
9
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
10
|
-
|
|
11
|
-
const commonStyles = `
|
|
12
|
-
position: fixed;
|
|
13
|
-
height: 100%;
|
|
14
|
-
top: 0;
|
|
15
|
-
right: 0;
|
|
16
|
-
bottom: 0;
|
|
17
|
-
left: 0;
|
|
18
|
-
`;
|
|
19
|
-
const Container = styled__default.default(BaseContainer.BaseContainer).withConfig({ displayName: "vui--Container", componentId: "vui--1xg3v52" }) `${commonStyles} display:${(props) => (props.shouldShow ? 'initial' : 'none')};z-index:${index.theme.layers.modal};`;
|
|
20
|
-
const Shadow = styled__default.default(BaseContainer.BaseContainer).withConfig({ displayName: "vui--Shadow", componentId: "vui--nz3cc" }) `${commonStyles} background-color:rgba(55,66,77,0.5);`;
|
|
21
|
-
const Wrap = styled__default.default(BaseContainer.BaseContainer).withConfig({ displayName: "vui--Wrap", componentId: "vui--1pbqe6" }) `position:relative;height:100%;width:100%;z-index:1;`;
|
|
22
|
-
|
|
23
|
-
exports.Container = Container;
|
|
24
|
-
exports.Shadow = Shadow;
|
|
25
|
-
exports.Wrap = Wrap;
|
|
26
|
-
//# sourceMappingURL=styled.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled.cjs","sources":["../../../../src/components/VideoModal/components/styled.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { theme } from '../../../theme';\nimport { BaseContainer } from '../../BaseContainer';\n\ninterface IContainer {\n shouldShow: boolean;\n}\n\nconst commonStyles = `\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n`;\n\nexport const Container = styled(BaseContainer)`\n ${commonStyles}\n display: ${(props: IContainer) => (props.shouldShow ? 'initial' : 'none')};\n z-index: ${theme.layers.modal};\n`;\n\nexport const Shadow = styled(BaseContainer)`\n ${commonStyles}\n background-color: rgba(55,66,77,0.5);\n`;\n\nexport const Wrap = styled(BaseContainer)`\n position: relative;\n height: 100%;\n width: 100%;\n z-index: 1;\n`;\n"],"names":["styled","BaseContainer","theme"],"mappings":";;;;;;;;;;AAQA,MAAM,YAAY,GAAG;;;;;;;CAOpB;AAEM,MAAM,SAAS,GAAGA,uBAAM,CAACC,2BAAa,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,cAAA,EAAA,CAAA,CAAA,CAAA,EAC1C,YAAY,YACH,CAAC,KAAiB,MAAM,KAAK,CAAC,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC,CAAA,SAAA,EAC9DC,WAAK,CAAC,MAAM,CAAC,KAAK;AAGxB,MAAM,MAAM,GAAGF,uBAAM,CAACC,2BAAa,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,aAAA,EAAA,WAAA,EAAA,YAAA,EAAA,CAAA,CAAA,CAAA,EACvC,YAAY,CAAA,qCAAA;MAIH,IAAI,GAAGD,uBAAM,CAACC,2BAAa,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,WAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,mDAAA;;;;;;"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
interface IContainer {
|
|
3
|
-
shouldShow: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const Container: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../BaseContainer").BaseContainerProps & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, IContainer, never>;
|
|
6
|
-
export declare const Shadow: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../BaseContainer").BaseContainerProps & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
7
|
-
export declare const Wrap: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../../BaseContainer").BaseContainerProps & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
8
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { theme } from '../../../theme/index.js';
|
|
3
|
-
import { BaseContainer } from '../../BaseContainer/BaseContainer.js';
|
|
4
|
-
|
|
5
|
-
const commonStyles = `
|
|
6
|
-
position: fixed;
|
|
7
|
-
height: 100%;
|
|
8
|
-
top: 0;
|
|
9
|
-
right: 0;
|
|
10
|
-
bottom: 0;
|
|
11
|
-
left: 0;
|
|
12
|
-
`;
|
|
13
|
-
const Container = styled(BaseContainer).withConfig({ displayName: "vui--Container", componentId: "vui--1xg3v52" }) `${commonStyles} display:${(props) => (props.shouldShow ? 'initial' : 'none')};z-index:${theme.layers.modal};`;
|
|
14
|
-
const Shadow = styled(BaseContainer).withConfig({ displayName: "vui--Shadow", componentId: "vui--nz3cc" }) `${commonStyles} background-color:rgba(55,66,77,0.5);`;
|
|
15
|
-
const Wrap = styled(BaseContainer).withConfig({ displayName: "vui--Wrap", componentId: "vui--1pbqe6" }) `position:relative;height:100%;width:100%;z-index:1;`;
|
|
16
|
-
|
|
17
|
-
export { Container, Shadow, Wrap };
|
|
18
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","sources":["../../../../src/components/VideoModal/components/styled.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { theme } from '../../../theme';\nimport { BaseContainer } from '../../BaseContainer';\n\ninterface IContainer {\n shouldShow: boolean;\n}\n\nconst commonStyles = `\n position: fixed;\n height: 100%;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n`;\n\nexport const Container = styled(BaseContainer)`\n ${commonStyles}\n display: ${(props: IContainer) => (props.shouldShow ? 'initial' : 'none')};\n z-index: ${theme.layers.modal};\n`;\n\nexport const Shadow = styled(BaseContainer)`\n ${commonStyles}\n background-color: rgba(55,66,77,0.5);\n`;\n\nexport const Wrap = styled(BaseContainer)`\n position: relative;\n height: 100%;\n width: 100%;\n z-index: 1;\n`;\n"],"names":[],"mappings":";;;;AAQA,MAAM,YAAY,GAAG;;;;;;;CAOpB;AAEM,MAAM,SAAS,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,cAAA,EAAA,CAAA,CAAA,CAAA,EAC1C,YAAY,YACH,CAAC,KAAiB,MAAM,KAAK,CAAC,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC,CAAA,SAAA,EAC9D,KAAK,CAAC,MAAM,CAAC,KAAK;AAGxB,MAAM,MAAM,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,aAAA,EAAA,WAAA,EAAA,YAAA,EAAA,CAAA,CAAA,CAAA,EACvC,YAAY,CAAA,qCAAA;MAIH,IAAI,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,WAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,mDAAA;;;;"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styled = require('styled-components');
|
|
4
|
-
var Button = require('../Button/Button.cjs');
|
|
5
|
-
|
|
6
|
-
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
7
|
-
|
|
8
|
-
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
9
|
-
|
|
10
|
-
const PopupContent = styled__default.default.div.withConfig({ displayName: "vui--PopupContent", componentId: "vui--17gmyeh" }) `display:flex;justify-content:center;align-items:center;height:100%;`;
|
|
11
|
-
const VideoWrapper = styled__default.default.div.withConfig({ displayName: "vui--VideoWrapper", componentId: "vui--rcrl58" }) `position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`;
|
|
12
|
-
const ButtonSC = styled__default.default(Button.Button).withConfig({ displayName: "vui--ButtonSC", componentId: "vui--srigr3" }) `position:absolute;top:0px;right:-45px;`;
|
|
13
|
-
|
|
14
|
-
exports.ButtonSC = ButtonSC;
|
|
15
|
-
exports.PopupContent = PopupContent;
|
|
16
|
-
exports.VideoWrapper = VideoWrapper;
|
|
17
|
-
//# sourceMappingURL=styled.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled.cjs","sources":["../../../src/components/VideoModal/styled.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { Button } from '../Button';\n\nexport const PopupContent = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n`;\n\nexport const VideoWrapper = styled.div`\n position: relative;\n iframe {\n width: 57vw;\n height: calc(57vw * 0.5625); // keep 16:9 ratio\n border-radius: 8px;\n }\n`;\n\nexport const ButtonSC = styled(Button)`\n position: absolute;\n top: 0px;\n right: -45px;\n`;\n"],"names":["styled","Button"],"mappings":";;;;;;;;;MAGa,YAAY,GAAGA,uBAAM,CAAC,GAAG;MAOzB,YAAY,GAAGA,uBAAM,CAAC,GAAG;MASzB,QAAQ,GAAGA,uBAAM,CAACC,aAAM,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,eAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,sCAAA;;;;;;"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const PopupContent: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
|
-
export declare const VideoWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
4
|
-
export declare const ButtonSC: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("../../hoc/withTokens").WithTokensProps & {
|
|
5
|
-
children?: import("react").ReactNode;
|
|
6
|
-
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
7
|
-
size?: import("../Button/types").ButtonSize | undefined;
|
|
8
|
-
iconSlot?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
9
|
-
dropdown?: boolean | undefined;
|
|
10
|
-
loading?: boolean | undefined;
|
|
11
|
-
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("../../hoc/withTokens").WithTokensProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import styled from 'styled-components';
|
|
2
|
-
import { Button } from '../Button/Button.js';
|
|
3
|
-
|
|
4
|
-
const PopupContent = styled.div.withConfig({ displayName: "vui--PopupContent", componentId: "vui--17gmyeh" }) `display:flex;justify-content:center;align-items:center;height:100%;`;
|
|
5
|
-
const VideoWrapper = styled.div.withConfig({ displayName: "vui--VideoWrapper", componentId: "vui--rcrl58" }) `position:relative;iframe{width:57vw;height:calc(57vw * 0.5625);border-radius:8px;}`;
|
|
6
|
-
const ButtonSC = styled(Button).withConfig({ displayName: "vui--ButtonSC", componentId: "vui--srigr3" }) `position:absolute;top:0px;right:-45px;`;
|
|
7
|
-
|
|
8
|
-
export { ButtonSC, PopupContent, VideoWrapper };
|
|
9
|
-
//# sourceMappingURL=styled.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styled.js","sources":["../../../src/components/VideoModal/styled.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { Button } from '../Button';\n\nexport const PopupContent = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n height: 100%;\n`;\n\nexport const VideoWrapper = styled.div`\n position: relative;\n iframe {\n width: 57vw;\n height: calc(57vw * 0.5625); // keep 16:9 ratio\n border-radius: 8px;\n }\n`;\n\nexport const ButtonSC = styled(Button)`\n position: absolute;\n top: 0px;\n right: -45px;\n`;\n"],"names":[],"mappings":";;;MAGa,YAAY,GAAG,MAAM,CAAC,GAAG;MAOzB,YAAY,GAAG,MAAM,CAAC,GAAG;MASzB,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,eAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,sCAAA;;;;"}
|
package/dist/theme/utils.cjs
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
var styled = require('styled-components');
|
|
4
|
-
|
|
5
|
-
const getTextStyles = (textTheme) => styled.css `font-family:${textTheme.fontFamily};font-style:${textTheme.fontStyle};font-weight:${textTheme.fontWeight};font-size:${textTheme.fontSize};line-height:${textTheme.lineHeight};color:${textTheme.color};text-decoration:${textTheme.textDecoration};letter-spacing:${textTheme.letterSpacing};`;
|
|
6
|
-
|
|
7
|
-
exports.getTextStyles = getTextStyles;
|
|
8
|
-
//# sourceMappingURL=utils.cjs.map
|
package/dist/theme/utils.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.cjs","sources":["../../src/theme/utils.ts"],"sourcesContent":["import { css } from 'styled-components';\nimport { TextStyles } from './modules/text';\n\nexport const getTextStyles = (textTheme: TextStyles) => css`\n font-family: ${textTheme.fontFamily};\n font-style: ${textTheme.fontStyle};\n font-weight: ${textTheme.fontWeight};\n font-size: ${textTheme.fontSize};\n line-height: ${textTheme.lineHeight};\n color: ${textTheme.color};\n text-decoration: ${textTheme.textDecoration};\n letter-spacing: ${textTheme.letterSpacing};\n`;\n"],"names":["css"],"mappings":";;;;AAGO,MAAM,aAAa,GAAG,CAAC,SAAqB,KAAKA,UAAG,CAAA,CAAA,YAAA,EAC1C,SAAS,CAAC,UAAU,CAAA,YAAA,EACrB,SAAS,CAAC,SAAS,gBAClB,SAAS,CAAC,UAAU,CAAA,WAAA,EACtB,SAAS,CAAC,QAAQ,CAAA,aAAA,EAChB,SAAS,CAAC,UAAU,UAC1B,SAAS,CAAC,KAAK,CAAA,iBAAA,EACL,SAAS,CAAC,cAAc,CAAA,gBAAA,EACzB,SAAS,CAAC,aAAa;;;;"}
|
package/dist/theme/utils.d.ts
DELETED
package/dist/theme/utils.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { css } from 'styled-components';
|
|
2
|
-
|
|
3
|
-
const getTextStyles = (textTheme) => css `font-family:${textTheme.fontFamily};font-style:${textTheme.fontStyle};font-weight:${textTheme.fontWeight};font-size:${textTheme.fontSize};line-height:${textTheme.lineHeight};color:${textTheme.color};text-decoration:${textTheme.textDecoration};letter-spacing:${textTheme.letterSpacing};`;
|
|
4
|
-
|
|
5
|
-
export { getTextStyles };
|
|
6
|
-
//# sourceMappingURL=utils.js.map
|
package/dist/theme/utils.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../src/theme/utils.ts"],"sourcesContent":["import { css } from 'styled-components';\nimport { TextStyles } from './modules/text';\n\nexport const getTextStyles = (textTheme: TextStyles) => css`\n font-family: ${textTheme.fontFamily};\n font-style: ${textTheme.fontStyle};\n font-weight: ${textTheme.fontWeight};\n font-size: ${textTheme.fontSize};\n line-height: ${textTheme.lineHeight};\n color: ${textTheme.color};\n text-decoration: ${textTheme.textDecoration};\n letter-spacing: ${textTheme.letterSpacing};\n`;\n"],"names":[],"mappings":";;AAGO,MAAM,aAAa,GAAG,CAAC,SAAqB,KAAK,GAAG,CAAA,CAAA,YAAA,EAC1C,SAAS,CAAC,UAAU,CAAA,YAAA,EACrB,SAAS,CAAC,SAAS,gBAClB,SAAS,CAAC,UAAU,CAAA,WAAA,EACtB,SAAS,CAAC,QAAQ,CAAA,aAAA,EAChB,SAAS,CAAC,UAAU,UAC1B,SAAS,CAAC,KAAK,CAAA,iBAAA,EACL,SAAS,CAAC,cAAc,CAAA,gBAAA,EACzB,SAAS,CAAC,aAAa;;;;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { FormComponentProps } from '../../components/types';
|
|
2
|
-
/**
|
|
3
|
-
* @deprecated
|
|
4
|
-
* Styles in this file have been converted to CSS modules in src/utils/forms/form.module.scss
|
|
5
|
-
*/
|
|
6
|
-
export declare const inputFocusStyles: ({ hasError }: FormComponentProps) => import("styled-components").FlattenSimpleInterpolation;
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated
|
|
9
|
-
* use css modules instead
|
|
10
|
-
*/
|
|
11
|
-
export declare const inputDisabledStyles: import("styled-components").FlattenSimpleInterpolation;
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @deprecated
|
|
15
|
-
* use css modules instead
|
|
16
|
-
*/
|
|
17
|
-
export declare const inputBaseStyles: ({ compact }: FormComponentProps) => import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<FormComponentProps, any>>;
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated
|
|
20
|
-
* use css modules instead from src/utils/forms/form.module.scss
|
|
21
|
-
*/
|
|
22
|
-
export declare const inputFullStyles: import("styled-components").FlattenInterpolation<import("styled-components").ThemedStyledProps<FormComponentProps, any>>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FormComponentProps } from '../../components/types';
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
* @deprecated
|
|
5
|
-
* use css modules instead from src/utils/forms/form.module.scss
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
export declare const inputVariableStyles: ({ hasError, compact }: FormComponentProps) => import("styled-components").FlattenSimpleInterpolation;
|