@ubnt/store.core 9.6.0-alpha.6 → 9.6.0-alpha.8
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/CHANGELOG.md +9 -1
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close.svg +1 -4
- package/lib/assets/close2.svg +3 -1
- package/lib/assets/close3.svg +3 -2
- package/lib/assets/icons/wizard/plus.svg.js +1 -1
- package/lib/assets/icons/wizard/plus.svg.mjs +2 -2
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/pause.svg +3 -3
- package/lib/assets/pause2.svg +3 -3
- package/lib/assets/plus.svg +22 -4
- package/lib/assets/plus2.svg +4 -22
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/ucgMax.jpg +0 -0
- package/lib/assets/ucgMax2.jpg +0 -0
- package/lib/assets/ucgUltra.jpg +0 -0
- package/lib/assets/ucgUltra2.jpg +0 -0
- package/lib/components/CustomImage/CustomImage.js +1 -1
- package/lib/components/CustomImage/CustomImage.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.js +1 -1
- package/lib/components/FeaturesSection_deprecated/AllFeaturesButton/AllFeaturesButton.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.js +1 -1
- package/lib/components/FeaturesSection_deprecated/FeaturesSection.mjs +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/close.svg.mjs +2 -2
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.js +1 -1
- package/lib/components/FeaturesSection_deprecated/assets/plus.svg.mjs +2 -2
- package/lib/components/GridGallery/GridModal/GridModal.js +1 -1
- package/lib/components/GridGallery/GridModal/GridModal.mjs +1 -1
- package/lib/components/Header/CartModalV2/CartModal.js +1 -1
- package/lib/components/Header/CartModalV2/CartModal.mjs +1 -1
- package/lib/components/Header/Header.js +1 -1
- package/lib/components/Header/Header.mjs +1 -1
- package/lib/components/Header/ProHeader/ProHeader.js +6 -8
- package/lib/components/Header/ProHeader/ProHeader.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.mjs +7 -9
- package/lib/components/Header/ProHeader/ProHeader.mjs.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.d.ts +0 -32
- package/lib/components/Header/ProHeader/ProHeader.styles.js +0 -32
- package/lib/components/Header/ProHeader/ProHeader.styles.js.map +1 -1
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs +2 -31
- package/lib/components/Header/ProHeader/ProHeader.styles.mjs.map +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.js +1 -1
- package/lib/components/LandingPageSidebar/LandingPageSidebar.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/MicrositeVideoSlideshow.mjs +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.js +1 -1
- package/lib/components/MicrositeVideoSlideshow/assets/pause.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/ucgUltra.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +6 -6
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +4 -4
- package/lib/components/ModelCompareV3/data/products/ucgMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.js +1 -1
- package/lib/components/ModelCompareV3/data/products/ucgUltra.mjs +1 -1
- package/lib/components/ProductWizard/ProductWizard.js +1 -1
- package/lib/components/ProductWizard/ProductWizard.mjs +1 -1
- package/lib/components/QuantityInput/QuantityInput.js +1 -1
- package/lib/components/QuantityInput/QuantityInput.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputCard.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.js +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/InputSections/CounterSection.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/InputCard/assets/plus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/ProgressBarChart.mjs +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/ComputeResourceCalculator/components/ProgressBarChart/assets/attention.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/PoeConsumerSelectModal/PoeConsumerSelectModal.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/minus.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/PoeConsumerConfigurator/assets/plus.svg.mjs +2 -2
- package/lib/components/Search/Input/Input.js +1 -1
- package/lib/components/Search/Input/Input.mjs +1 -1
- package/lib/components/Tooltip/Tooltip.d.ts +2 -0
- package/lib/components/Tooltip/Tooltip.js +38 -0
- package/lib/components/Tooltip/Tooltip.js.map +1 -0
- package/lib/components/Tooltip/Tooltip.mjs +36 -0
- package/lib/components/Tooltip/Tooltip.mjs.map +1 -0
- package/lib/components/Tooltip/Tooltip.styles.d.ts +32 -0
- package/lib/components/Tooltip/Tooltip.styles.js +44 -0
- package/lib/components/Tooltip/Tooltip.styles.js.map +1 -0
- package/lib/components/Tooltip/Tooltip.styles.mjs +34 -0
- package/lib/components/Tooltip/Tooltip.styles.mjs.map +1 -0
- package/lib/components/Tooltip/index.d.ts +1 -0
- package/lib/components/Tooltip/index.js +6 -0
- package/lib/components/Tooltip/index.js.map +1 -0
- package/lib/components/Tooltip/index.mjs +3 -0
- package/lib/components/Tooltip/index.mjs.map +1 -0
- package/lib/components/VideoPlayerNew/VideoPlayer.js +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/assets/pause.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/pause.svg.mjs +2 -2
- package/lib/constants/icons/generic/close.svg.js +1 -1
- package/lib/constants/icons/generic/close.svg.mjs +2 -2
- package/lib/constants/icons/generic/index.js +1 -1
- package/lib/constants/icons/generic/index.mjs +1 -1
- package/lib/utils/money/allocators/index.d.ts +1 -0
- package/lib/utils/money/allocators/index.js +2 -0
- package/lib/utils/money/allocators/index.js.map +1 -1
- package/lib/utils/money/allocators/index.mjs +1 -0
- package/lib/utils/money/allocators/index.mjs.map +1 -1
- package/lib/utils/money/allocators/productAmount.d.ts +17 -0
- package/lib/utils/money/allocators/productAmount.js +69 -0
- package/lib/utils/money/allocators/productAmount.js.map +1 -0
- package/lib/utils/money/allocators/productAmount.mjs +67 -0
- package/lib/utils/money/allocators/productAmount.mjs.map +1 -0
- package/lib/utils/money/exchangeRate.d.ts +1 -1
- package/lib/utils/money/exchangeRate.js.map +1 -1
- package/lib/utils/money/exchangeRate.mjs.map +1 -1
- package/lib/utils/money/types.d.ts +15 -5
- package/package.json +1 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/attention2.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/attention2.svg";
|
|
3
3
|
//# sourceMappingURL=attention.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus5.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus5.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus6.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus6.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus6.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -6,7 +6,7 @@ var asset = require('../../../../../utils/asset.js');
|
|
|
6
6
|
require('./assets/attention.svg.js');
|
|
7
7
|
var Part = require('./Part.js');
|
|
8
8
|
var ProgressBarChart_styles = require('./ProgressBarChart.styles.js');
|
|
9
|
-
var attentionIcon = require("../../../../../assets/
|
|
9
|
+
var attentionIcon = require("../../../../../assets/attention.svg");
|
|
10
10
|
function _interopDefault(e) {
|
|
11
11
|
return e && e.__esModule ? e : {
|
|
12
12
|
default: e
|
|
@@ -4,7 +4,7 @@ import { imageSrc } from '../../../../../utils/asset.mjs';
|
|
|
4
4
|
import './assets/attention.svg.mjs';
|
|
5
5
|
import { PART_GAP_PX, PART_WIDTH_PX, Part } from './Part.mjs';
|
|
6
6
|
import { ProgressBarChartContainer, ProgressBarChartHeader, ProgressBarChartTitle, ProgressBarWrapper, ProgressBarPartsContainer, ProgressBarAttentionLabel, ProgressBarAttentionLabelIcon } from './ProgressBarChart.styles.mjs';
|
|
7
|
-
import attentionIcon__default from "../../../../../assets/
|
|
7
|
+
import attentionIcon__default from "../../../../../assets/attention.svg";
|
|
8
8
|
"use strict";
|
|
9
9
|
const ProgressBarChart = ({
|
|
10
10
|
title,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var attentionIcon = require("../../../../../../assets/
|
|
6
|
+
var attentionIcon = require("../../../../../../assets/attention.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/attention.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/attention.svg";
|
|
3
3
|
//# sourceMappingURL=attention.svg.mjs.map
|
|
@@ -19,8 +19,8 @@ var ComputeResourceCalculator_types = require('../../../../ComputeResourceCalcul
|
|
|
19
19
|
var CustomImage = require('../../../../../CustomImage/CustomImage.js');
|
|
20
20
|
var SearchIcon = require("../../../../../../assets/search2.svg");
|
|
21
21
|
var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
22
|
-
var MinusIcon = require("../../../../../../assets/
|
|
23
|
-
var PlusIcon = require("../../../../../../assets/
|
|
22
|
+
var MinusIcon = require("../../../../../../assets/minus4.svg");
|
|
23
|
+
var PlusIcon = require("../../../../../../assets/plus5.svg");
|
|
24
24
|
function _interopDefault(e) {
|
|
25
25
|
return e && e.__esModule ? e : {
|
|
26
26
|
default: e
|
|
@@ -17,8 +17,8 @@ import { isMessageFormatted } from '../../../../ComputeResourceCalculator/Comput
|
|
|
17
17
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
18
18
|
import SearchIcon__default from "../../../../../../assets/search2.svg";
|
|
19
19
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
20
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
21
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
20
|
+
import MinusIcon__default from "../../../../../../assets/minus4.svg";
|
|
21
|
+
import PlusIcon__default from "../../../../../../assets/plus5.svg";
|
|
22
22
|
"use strict";
|
|
23
23
|
const PoeConsumerSelectModal = ({
|
|
24
24
|
isOpen,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var MinusIcon = require("../../../../../../assets/
|
|
6
|
+
var MinusIcon = require("../../../../../../assets/minus4.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/minus4.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/minus4.svg";
|
|
3
3
|
//# sourceMappingURL=minus.svg.mjs.map
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var PlusIcon = require("../../../../../../assets/
|
|
6
|
+
var PlusIcon = require("../../../../../../assets/plus5.svg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../../assets/
|
|
1
|
+
export * from "../../../../../../assets/plus5.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus5.svg";
|
|
3
3
|
//# sourceMappingURL=plus.svg.mjs.map
|
|
@@ -10,7 +10,7 @@ var Input_styles = require('./Input.styles.js');
|
|
|
10
10
|
var StyleableSvgImage = require('../../StyleableSvgImage/StyleableSvgImage.js');
|
|
11
11
|
var _externalAssets_g50k1DIN = require("../../../assets/search.svg");
|
|
12
12
|
var Spinner = require('../../Loader/Spinner/Spinner.js');
|
|
13
|
-
var CloseIcon = require("../../../assets/
|
|
13
|
+
var CloseIcon = require("../../../assets/close.svg");
|
|
14
14
|
function _interopDefault(e) {
|
|
15
15
|
return e && e.__esModule ? e : {
|
|
16
16
|
default: e
|
|
@@ -8,7 +8,7 @@ import { SearchInputContainer, InputWrap, IconWrap, Input, IconAfterWrap, Cancel
|
|
|
8
8
|
import { StyleableSvgImage } from '../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
9
9
|
import _externalAssets_g50k1DIN__default from "../../../assets/search.svg";
|
|
10
10
|
import { Spinner } from '../../Loader/Spinner/Spinner.mjs';
|
|
11
|
-
import CloseIcon__default from "../../../assets/
|
|
11
|
+
import CloseIcon__default from "../../../assets/close.svg";
|
|
12
12
|
"use strict";
|
|
13
13
|
const MAX_CHARACTERS = 250;
|
|
14
14
|
const SearchInput = function SearchInput2({
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var react = require('react');
|
|
5
|
+
var reactUse = require('react-use');
|
|
6
|
+
var Tooltip_styles = require('./Tooltip.styles.js');
|
|
7
|
+
"use strict";
|
|
8
|
+
const Tooltip = props => {
|
|
9
|
+
const tooltipRef = react.useRef(null);
|
|
10
|
+
const {
|
|
11
|
+
y: scrollY
|
|
12
|
+
} = reactUse.useWindowScroll();
|
|
13
|
+
const {
|
|
14
|
+
children,
|
|
15
|
+
tooltipClassName
|
|
16
|
+
} = props;
|
|
17
|
+
const [isOpen, setIsOpen] = react.useState();
|
|
18
|
+
react.useEffect(() => {
|
|
19
|
+
setIsOpen(false);
|
|
20
|
+
scrollY;
|
|
21
|
+
}, [scrollY]);
|
|
22
|
+
reactUse.useClickAway(tooltipRef, () => {
|
|
23
|
+
if (isOpen) {
|
|
24
|
+
setIsOpen(false);
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
const tooltipExtraClassName = tooltipClassName ? ` ${tooltipClassName}` : "";
|
|
28
|
+
return /* @__PURE__ */jsxRuntime.jsxs(Tooltip_styles.Tooltip, {
|
|
29
|
+
tooltipClassName: `${Tooltip_styles.TOOLTIP_CLASS_NAME}${tooltipExtraClassName}`,
|
|
30
|
+
ref: tooltipRef,
|
|
31
|
+
isOpen,
|
|
32
|
+
onClick: () => setIsOpen(!isOpen),
|
|
33
|
+
...props,
|
|
34
|
+
children: [/* @__PURE__ */jsxRuntime.jsx(Tooltip_styles.TooltipStyles, {}), children]
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
exports.Tooltip = Tooltip;
|
|
38
|
+
//# sourceMappingURL=Tooltip.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.js","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import type { TooltipProps } from \"@ubnt/ui-components/Tooltip\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useClickAway, useWindowScroll } from \"react-use\";\n\nimport * as S from \"./Tooltip.styles\";\nimport { TOOLTIP_CLASS_NAME } from \"./Tooltip.styles\";\n\nexport const Tooltip = (props: TooltipProps) => {\n const tooltipRef = useRef<HTMLDivElement>(null);\n const { y: scrollY } = useWindowScroll();\n\n const { children, tooltipClassName } = props;\n\n const [isOpen, setIsOpen] = useState<boolean>();\n\n useEffect(() => {\n setIsOpen(false);\n scrollY;\n }, [scrollY]);\n\n useClickAway(tooltipRef, () => {\n if (isOpen) {\n setIsOpen(false);\n }\n });\n\n const tooltipExtraClassName = tooltipClassName ? ` ${tooltipClassName}` : \"\";\n\n return (\n <S.Tooltip\n tooltipClassName={`${TOOLTIP_CLASS_NAME}${tooltipExtraClassName}`}\n ref={tooltipRef}\n isOpen={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n {...props}\n >\n <S.TooltipStyles />\n {children}\n </S.Tooltip>\n );\n};\n"],"names":["Tooltip","props","tooltipRef","useRef","y","scrollY","useWindowScroll","children","tooltipClassName","isOpen","setIsOpen","useState","useEffect","useClickAway","tooltipExtraClassName","jsxs","S.Tooltip","TOOLTIP_CLASS_NAME","ref","onClick","jsx","S.TooltipStyles"],"mappings":";;;;;;;AAOa,MAAAA,OAAA,GAAWC,KAAwB,IAAA;EACxC,MAAAC,UAAA,GAAaC,aAAuB,IAAI,CAAA;EAC9C,MAAM;IAAEC,CAAA,EAAGC;EAAQ,CAAA,GAAIC,QAAgB,CAAAA,eAAA,CAAA,CAAA;EAEjC,MAAA;IAAEC,QAAU;IAAAC;EAAqB,CAAA,GAAAP,KAAA;EAEvC,MAAM,CAACQ,MAAA,EAAQC,SAAS,CAAA,GAAIC,KAAkB,CAAAA,QAAA,CAAA,CAAA;EAE9CC,KAAAA,CAAAA,SAAA,CAAU,MAAM;IACdF,SAAA,CAAU,KAAK,CAAA;IACfL,OAAA;EAAA,CACF,EAAG,CAACA,OAAO,CAAC,CAAA;EAEZQ,QAAA,CAAAA,YAAA,CAAaX,YAAY,MAAM;IAC7B,IAAIO,MAAQ,EAAA;MACVC,SAAA,CAAU,KAAK,CAAA;IACjB;EAAA,CACD,CAAA;EAED,MAAMI,qBAAwB,GAAAN,gBAAA,GAAuB,IAAAA,gBAAqB,EAAA,GAAA,EAAA;EAGxE,sBAAAO,UAAA,CAAAA,IAAA,CAACC,cAAE,CAAAhB,OAAA,EAAF;IACCQ,gBAAkB,EAAA,GAAGS,iCAAkB,GAAGH,qBAAqB,EAAA;IAC/DI,GAAK,EAAAhB,UAAA;IACLO,MAAA;IACAU,OAAS,EAAAA,CAAA,KAAMT,SAAU,CAAA,CAACD,MAAM,CAAA;IAC/B,GAAGR,KAAA;IAEJM,QAAA,EAAA,CAAA,eAACa,UAAA,CAAAA,GAAA,CAAAC,8BAAA,EAAgB,CAAA,EAChBd,QAAA;EAAA,CAAA,CACH;AAEJ,CAAA;"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useRef, useState, useEffect } from 'react';
|
|
3
|
+
import { useWindowScroll, useClickAway } from 'react-use';
|
|
4
|
+
import { Tooltip as Tooltip$1, TOOLTIP_CLASS_NAME, TooltipStyles } from './Tooltip.styles.mjs';
|
|
5
|
+
"use strict";
|
|
6
|
+
const Tooltip = props => {
|
|
7
|
+
const tooltipRef = useRef(null);
|
|
8
|
+
const {
|
|
9
|
+
y: scrollY
|
|
10
|
+
} = useWindowScroll();
|
|
11
|
+
const {
|
|
12
|
+
children,
|
|
13
|
+
tooltipClassName
|
|
14
|
+
} = props;
|
|
15
|
+
const [isOpen, setIsOpen] = useState();
|
|
16
|
+
useEffect(() => {
|
|
17
|
+
setIsOpen(false);
|
|
18
|
+
scrollY;
|
|
19
|
+
}, [scrollY]);
|
|
20
|
+
useClickAway(tooltipRef, () => {
|
|
21
|
+
if (isOpen) {
|
|
22
|
+
setIsOpen(false);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const tooltipExtraClassName = tooltipClassName ? ` ${tooltipClassName}` : "";
|
|
26
|
+
return /* @__PURE__ */jsxs(Tooltip$1, {
|
|
27
|
+
tooltipClassName: `${TOOLTIP_CLASS_NAME}${tooltipExtraClassName}`,
|
|
28
|
+
ref: tooltipRef,
|
|
29
|
+
isOpen,
|
|
30
|
+
onClick: () => setIsOpen(!isOpen),
|
|
31
|
+
...props,
|
|
32
|
+
children: [/* @__PURE__ */jsx(TooltipStyles, {}), children]
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
export { Tooltip };
|
|
36
|
+
//# sourceMappingURL=Tooltip.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.mjs","sources":["../../../src/components/Tooltip/Tooltip.tsx"],"sourcesContent":["import type { TooltipProps } from \"@ubnt/ui-components/Tooltip\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useClickAway, useWindowScroll } from \"react-use\";\n\nimport * as S from \"./Tooltip.styles\";\nimport { TOOLTIP_CLASS_NAME } from \"./Tooltip.styles\";\n\nexport const Tooltip = (props: TooltipProps) => {\n const tooltipRef = useRef<HTMLDivElement>(null);\n const { y: scrollY } = useWindowScroll();\n\n const { children, tooltipClassName } = props;\n\n const [isOpen, setIsOpen] = useState<boolean>();\n\n useEffect(() => {\n setIsOpen(false);\n scrollY;\n }, [scrollY]);\n\n useClickAway(tooltipRef, () => {\n if (isOpen) {\n setIsOpen(false);\n }\n });\n\n const tooltipExtraClassName = tooltipClassName ? ` ${tooltipClassName}` : \"\";\n\n return (\n <S.Tooltip\n tooltipClassName={`${TOOLTIP_CLASS_NAME}${tooltipExtraClassName}`}\n ref={tooltipRef}\n isOpen={isOpen}\n onClick={() => setIsOpen(!isOpen)}\n {...props}\n >\n <S.TooltipStyles />\n {children}\n </S.Tooltip>\n );\n};\n"],"names":["Tooltip","props","tooltipRef","useRef","y","scrollY","useWindowScroll","children","tooltipClassName","isOpen","setIsOpen","useState","useEffect","useClickAway","tooltipExtraClassName","jsxs","S.Tooltip","TOOLTIP_CLASS_NAME","ref","onClick","jsx","S.TooltipStyles"],"mappings":";;;;;AAOa,MAAAA,OAAA,GAAWC,KAAwB,IAAA;EACxC,MAAAC,UAAA,GAAaC,OAAuB,IAAI,CAAA;EAC9C,MAAM;IAAEC,CAAA,EAAGC;EAAQ,CAAA,GAAIC,eAAgB,CAAA,CAAA;EAEjC,MAAA;IAAEC,QAAU;IAAAC;EAAqB,CAAA,GAAAP,KAAA;EAEvC,MAAM,CAACQ,MAAA,EAAQC,SAAS,CAAA,GAAIC,QAAkB,CAAA,CAAA;EAE9CC,SAAA,CAAU,MAAM;IACdF,SAAA,CAAU,KAAK,CAAA;IACfL,OAAA;EAAA,CACF,EAAG,CAACA,OAAO,CAAC,CAAA;EAEZQ,YAAA,CAAaX,YAAY,MAAM;IAC7B,IAAIO,MAAQ,EAAA;MACVC,SAAA,CAAU,KAAK,CAAA;IACjB;EAAA,CACD,CAAA;EAED,MAAMI,qBAAwB,GAAAN,gBAAA,GAAuB,IAAAA,gBAAqB,EAAA,GAAA,EAAA;EAGxE,sBAAAO,IAAA,CAACC,SAAE,EAAF;IACCR,gBAAkB,EAAA,GAAGS,kBAAkB,GAAGH,qBAAqB,EAAA;IAC/DI,GAAK,EAAAhB,UAAA;IACLO,MAAA;IACAU,OAAS,EAAAA,CAAA,KAAMT,SAAU,CAAA,CAACD,MAAM,CAAA;IAC/B,GAAGR,KAAA;IAEJM,QAAA,EAAA,CAAA,eAACa,GAAA,CAAAC,eAAA,EAAgB,CAAA,EAChBd,QAAA;EAAA,CAAA,CACH;AAEJ,CAAA;"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const TOOLTIP_CLASS_NAME = "custom-tooltip";
|
|
2
|
+
export declare const Tooltip: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
3
|
+
message?: import("react").ReactNode;
|
|
4
|
+
tooltipMessageClassName?: string;
|
|
5
|
+
messageProps?: Omit<import("@ubnt/ui-components").TextProps, "forwardedRef">;
|
|
6
|
+
omitTextWrapper?: boolean;
|
|
7
|
+
leftRightInset?: number;
|
|
8
|
+
isHoverable?: boolean;
|
|
9
|
+
} & {
|
|
10
|
+
title?: import("react").ReactNode;
|
|
11
|
+
description?: import("react").ReactNode;
|
|
12
|
+
children?: import("react").ReactNode;
|
|
13
|
+
isOpen?: boolean;
|
|
14
|
+
disableHover?: boolean;
|
|
15
|
+
isInteractive?: boolean;
|
|
16
|
+
cursorType?: "default" | "pointer";
|
|
17
|
+
width?: string | number;
|
|
18
|
+
maxWidth?: string | number;
|
|
19
|
+
position?: import("@ubnt/ui-components/Tooltip").VisualTooltipPosition | import("@ubnt/ui-components/Tooltip").TooltipPosition;
|
|
20
|
+
motif?: import("@ubnt/ui-components").Motif;
|
|
21
|
+
tooltipClassName?: string;
|
|
22
|
+
offset?: number;
|
|
23
|
+
delay?: number | import("@ubnt/ui-components").DelayOptions;
|
|
24
|
+
autoPosition?: boolean | import("@ubnt/ui-components/Tooltip").TooltipPosition[];
|
|
25
|
+
animate?: boolean;
|
|
26
|
+
noWrap?: boolean;
|
|
27
|
+
className?: string;
|
|
28
|
+
style?: import("react").CSSProperties;
|
|
29
|
+
portal?: boolean;
|
|
30
|
+
onClick?: import("react").MouseEventHandler;
|
|
31
|
+
} & Omit<import("react").HTMLAttributes<HTMLElement>, "title"> & import("react").RefAttributes<HTMLElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
32
|
+
export declare const TooltipStyles: import("styled-components").GlobalStyleComponent<{}, import("styled-components").DefaultTheme>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Tooltip$1 = require('@ubnt/ui-components/Tooltip');
|
|
4
|
+
var styled = require('styled-components');
|
|
5
|
+
var theme = require('../../constants/theme.js');
|
|
6
|
+
function _interopDefault(e) {
|
|
7
|
+
return e && e.__esModule ? e : {
|
|
8
|
+
default: e
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
var styled__default = /*#__PURE__*/_interopDefault(styled);
|
|
12
|
+
"use strict";
|
|
13
|
+
const TOOLTIP_CLASS_NAME = "custom-tooltip";
|
|
14
|
+
const Tooltip = styled__default["default"](Tooltip$1.Tooltip)`
|
|
15
|
+
display: flex;
|
|
16
|
+
`;
|
|
17
|
+
const TooltipStyles = styled.createGlobalStyle`
|
|
18
|
+
.${TOOLTIP_CLASS_NAME} {
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
z-index: ${theme.theme.zIndex.header + 1}!important;
|
|
21
|
+
border-radius: 8px;
|
|
22
|
+
color: #808893;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
line-height: 20px;
|
|
25
|
+
box-shadow: 0 0 1px 0 rgb(33 35 39 / 0.08), 0 12px 48px 0 rgb(33 35 39 / 0.12);
|
|
26
|
+
background-color: #fff;
|
|
27
|
+
padding: 16px;
|
|
28
|
+
|
|
29
|
+
* {
|
|
30
|
+
color: #808893;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
line-height: 20px;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&::before {
|
|
36
|
+
background-color: #fff;
|
|
37
|
+
box-shadow: -4px -4px 4px -4px rgb(33 35 39 / .08);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
`;
|
|
41
|
+
exports.TOOLTIP_CLASS_NAME = TOOLTIP_CLASS_NAME;
|
|
42
|
+
exports.Tooltip = Tooltip;
|
|
43
|
+
exports.TooltipStyles = TooltipStyles;
|
|
44
|
+
//# sourceMappingURL=Tooltip.styles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.styles.js","sources":["../../../src/components/Tooltip/Tooltip.styles.tsx"],"sourcesContent":["import { Tooltip as BaseTooltip } from \"@ubnt/ui-components/Tooltip\";\nimport styled, { createGlobalStyle } from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\n\nexport const TOOLTIP_CLASS_NAME = \"custom-tooltip\";\n\nexport const Tooltip = styled(BaseTooltip)`\n display: flex;\n`;\n\nexport const TooltipStyles = createGlobalStyle`\n .${TOOLTIP_CLASS_NAME} {\n white-space: nowrap;\n z-index: ${theme.zIndex.header + 1}!important;\n border-radius: 8px;\n color: #808893;\n font-size: 14px;\n line-height: 20px;\n box-shadow: 0 0 1px 0 rgb(33 35 39 / 0.08), 0 12px 48px 0 rgb(33 35 39 / 0.12);\n background-color: #fff;\n padding: 16px;\n\n * {\n color: #808893;\n font-size: 14px;\n line-height: 20px;\n }\n\n &::before {\n background-color: #fff;\n box-shadow: -4px -4px 4px -4px rgb(33 35 39 / .08);\n }\n }\n`;\n"],"names":["TOOLTIP_CLASS_NAME","Tooltip","styled","BaseTooltip","TooltipStyles","createGlobalStyle","theme","zIndex","header"],"mappings":";;;;;;;;;;;;AAKO,MAAMA,kBAAqB,GAAA,gBAAA;AAErB,MAAAC,OAAA,GAAUC,eAAAA,CAAAA,SAAAA,EAAOC,SAAAA,CAAAA,OAAW,CAAA;AAAA;AAAA,CAAA;AAIlC,MAAMC,aAAgB,GAAAC,MAAAA,CAAAA,iBAAA;AAAA,KACxBL,kBAAkB;AAAA;AAAA,eAERM,WAAA,CAAMC,MAAO,CAAAC,MAAA,GAAS,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;;;"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Tooltip as Tooltip$1 } from '@ubnt/ui-components/Tooltip';
|
|
2
|
+
import styled, { createGlobalStyle } from 'styled-components';
|
|
3
|
+
import { theme } from '../../constants/theme.mjs';
|
|
4
|
+
"use strict";
|
|
5
|
+
const TOOLTIP_CLASS_NAME = "custom-tooltip";
|
|
6
|
+
const Tooltip = styled(Tooltip$1)`
|
|
7
|
+
display: flex;
|
|
8
|
+
`;
|
|
9
|
+
const TooltipStyles = createGlobalStyle`
|
|
10
|
+
.${TOOLTIP_CLASS_NAME} {
|
|
11
|
+
white-space: nowrap;
|
|
12
|
+
z-index: ${theme.zIndex.header + 1}!important;
|
|
13
|
+
border-radius: 8px;
|
|
14
|
+
color: #808893;
|
|
15
|
+
font-size: 14px;
|
|
16
|
+
line-height: 20px;
|
|
17
|
+
box-shadow: 0 0 1px 0 rgb(33 35 39 / 0.08), 0 12px 48px 0 rgb(33 35 39 / 0.12);
|
|
18
|
+
background-color: #fff;
|
|
19
|
+
padding: 16px;
|
|
20
|
+
|
|
21
|
+
* {
|
|
22
|
+
color: #808893;
|
|
23
|
+
font-size: 14px;
|
|
24
|
+
line-height: 20px;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
&::before {
|
|
28
|
+
background-color: #fff;
|
|
29
|
+
box-shadow: -4px -4px 4px -4px rgb(33 35 39 / .08);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
`;
|
|
33
|
+
export { TOOLTIP_CLASS_NAME, Tooltip, TooltipStyles };
|
|
34
|
+
//# sourceMappingURL=Tooltip.styles.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tooltip.styles.mjs","sources":["../../../src/components/Tooltip/Tooltip.styles.tsx"],"sourcesContent":["import { Tooltip as BaseTooltip } from \"@ubnt/ui-components/Tooltip\";\nimport styled, { createGlobalStyle } from \"styled-components\";\n\nimport { theme } from \"../../constants/theme\";\n\nexport const TOOLTIP_CLASS_NAME = \"custom-tooltip\";\n\nexport const Tooltip = styled(BaseTooltip)`\n display: flex;\n`;\n\nexport const TooltipStyles = createGlobalStyle`\n .${TOOLTIP_CLASS_NAME} {\n white-space: nowrap;\n z-index: ${theme.zIndex.header + 1}!important;\n border-radius: 8px;\n color: #808893;\n font-size: 14px;\n line-height: 20px;\n box-shadow: 0 0 1px 0 rgb(33 35 39 / 0.08), 0 12px 48px 0 rgb(33 35 39 / 0.12);\n background-color: #fff;\n padding: 16px;\n\n * {\n color: #808893;\n font-size: 14px;\n line-height: 20px;\n }\n\n &::before {\n background-color: #fff;\n box-shadow: -4px -4px 4px -4px rgb(33 35 39 / .08);\n }\n }\n`;\n"],"names":["TOOLTIP_CLASS_NAME","Tooltip","styled","BaseTooltip","TooltipStyles","createGlobalStyle","theme","zIndex","header"],"mappings":";;;;AAKO,MAAMA,kBAAqB,GAAA,gBAAA;AAErB,MAAAC,OAAA,GAAUC,OAAOC,SAAW,CAAA;AAAA;AAAA,CAAA;AAIlC,MAAMC,aAAgB,GAAAC,iBAAA;AAAA,KACxBL,kBAAkB;AAAA;AAAA,eAERM,KAAA,CAAMC,MAAO,CAAAC,MAAA,GAAS,CAAC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Tooltip } from "./Tooltip";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -12,9 +12,9 @@ require('./assets/play.svg.js');
|
|
|
12
12
|
require('./assets/volume-off.svg.js');
|
|
13
13
|
require('./assets/volume-on.svg.js');
|
|
14
14
|
var VideoPlayer_styles = require('./VideoPlayer.styles.js');
|
|
15
|
-
var CloseIcon = require("../../assets/
|
|
15
|
+
var CloseIcon = require("../../assets/close2.svg");
|
|
16
16
|
var BackIcon = require("../../assets/back.svg");
|
|
17
|
-
var PauseIcon = require("../../assets/
|
|
17
|
+
var PauseIcon = require("../../assets/pause.svg");
|
|
18
18
|
var PlayIcon = require("../../assets/play.svg");
|
|
19
19
|
var VolumeOffIcon = require("../../assets/volume-off.svg");
|
|
20
20
|
var VolumeOnIcon = require("../../assets/volume-on.svg");
|
|
@@ -10,9 +10,9 @@ import './assets/play.svg.mjs';
|
|
|
10
10
|
import './assets/volume-off.svg.mjs';
|
|
11
11
|
import './assets/volume-on.svg.mjs';
|
|
12
12
|
import { Wrap, IconWrap, Icon, Video, ControlWrap, TimelineWrap, Timeline, Controls, LeftSide, IconButton, VolumeWrap, VolumeSliderWrap, VolumeSlider, Time, Center, RightSide } from './VideoPlayer.styles.mjs';
|
|
13
|
-
import CloseIcon__default from "../../assets/
|
|
13
|
+
import CloseIcon__default from "../../assets/close2.svg";
|
|
14
14
|
import BackIcon__default from "../../assets/back.svg";
|
|
15
|
-
import PauseIcon__default from "../../assets/
|
|
15
|
+
import PauseIcon__default from "../../assets/pause.svg";
|
|
16
16
|
import PlayIcon__default from "../../assets/play.svg";
|
|
17
17
|
import VolumeOffIcon__default from "../../assets/volume-off.svg";
|
|
18
18
|
import VolumeOnIcon__default from "../../assets/volume-on.svg";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/close2.svg";
|
|
2
|
+
export { default } from "../../../assets/close2.svg";
|
|
3
3
|
//# sourceMappingURL=close.svg.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/pause.svg";
|
|
2
|
+
export { default } from "../../../assets/pause.svg";
|
|
3
3
|
//# sourceMappingURL=pause.svg.mjs.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../assets/
|
|
2
|
-
export { default } from "../../../assets/
|
|
1
|
+
export * from "../../../assets/close.svg";
|
|
2
|
+
export { default } from "../../../assets/close.svg";
|
|
3
3
|
//# sourceMappingURL=close.svg.mjs.map
|
|
@@ -14,7 +14,7 @@ require('./playback.svg.js');
|
|
|
14
14
|
require('./filter.svg.js');
|
|
15
15
|
var _externalAssets_BkygAzVy = require("../../../assets/arrowBack.svg");
|
|
16
16
|
var _externalAssets_B1gmoLrG = require("../../../assets/carouselArrowRight.svg");
|
|
17
|
-
var CloseIcon = require("../../../assets/
|
|
17
|
+
var CloseIcon = require("../../../assets/close.svg");
|
|
18
18
|
var _externalAssets_DtGmfNK5 = require("../../../assets/closeLarge.svg");
|
|
19
19
|
var _externalAssets_BAXELvSy = require("../../../assets/collapseArrow.svg");
|
|
20
20
|
var _externalAssets_CzDCu21b = require("../../../assets/hamburger.svg");
|
|
@@ -12,7 +12,7 @@ import './playback.svg.mjs';
|
|
|
12
12
|
import './filter.svg.mjs';
|
|
13
13
|
export { default as arrowBack } from "../../../assets/arrowBack.svg";
|
|
14
14
|
export { default as carouselArrowRight } from "../../../assets/carouselArrowRight.svg";
|
|
15
|
-
export { default as close } from "../../../assets/
|
|
15
|
+
export { default as close } from "../../../assets/close.svg";
|
|
16
16
|
export { default as closeLarge } from "../../../assets/closeLarge.svg";
|
|
17
17
|
export { default as collapseArrow } from "../../../assets/collapseArrow.svg";
|
|
18
18
|
export { default as hamburger } from "../../../assets/hamburger.svg";
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var fixedAmount = require('./fixedAmount.js');
|
|
4
|
+
var productAmount = require('./productAmount.js');
|
|
4
5
|
"use strict";
|
|
5
6
|
exports.FixedAmountAllocator = fixedAmount.FixedAmountAllocator;
|
|
7
|
+
exports.ProductAmountAllocator = productAmount.ProductAmountAllocator;
|
|
6
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Currency } from "../../../types";
|
|
2
|
+
import type { Cents, FullLineItemSummary } from "../types";
|
|
3
|
+
import { FixedAmountAllocator } from "./fixedAmount";
|
|
4
|
+
/**
|
|
5
|
+
* Helper class to distribute a total amount for a product
|
|
6
|
+
*/
|
|
7
|
+
export declare class ProductAmountAllocator {
|
|
8
|
+
itemPrice: Cents;
|
|
9
|
+
currency: Currency;
|
|
10
|
+
quantity: number;
|
|
11
|
+
discountAmount: FixedAmountAllocator;
|
|
12
|
+
taxableAmount: FixedAmountAllocator;
|
|
13
|
+
tax: FixedAmountAllocator;
|
|
14
|
+
total: FixedAmountAllocator;
|
|
15
|
+
constructor(productSummary: FullLineItemSummary);
|
|
16
|
+
allocateQty(quantity: number): FullLineItemSummary;
|
|
17
|
+
}
|