@ubnt/store.core 9.64.0-new-design → 9.64.1-new-design
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 -0
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/express.jpg +0 -0
- package/lib/assets/express2.jpg +0 -0
- package/lib/assets/express7.jpg +0 -0
- package/lib/assets/express72.jpg +0 -0
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus5.svg +9 -9
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/poe2.svg +3 -2
- package/lib/assets/poe3.svg +2 -3
- package/lib/assets/port.svg +4 -2
- package/lib/assets/port2.svg +2 -4
- package/lib/assets/udmPro.jpg +0 -0
- package/lib/assets/udmPro2.jpg +0 -0
- package/lib/assets/udmProMax.jpg +0 -0
- package/lib/assets/udmProMax2.jpg +0 -0
- package/lib/assets/udmProSpecial.jpg +0 -0
- package/lib/assets/udmProSpecial2.jpg +0 -0
- package/lib/components/CardSection/Card/Card.d.ts +1 -1
- package/lib/components/CardSection/Card/Card.js +3 -1
- package/lib/components/CardSection/Card/Card.js.map +1 -1
- package/lib/components/CardSection/Card/Card.mjs +3 -1
- package/lib/components/CardSection/Card/Card.mjs.map +1 -1
- package/lib/components/CardSection/Card/Card.types.d.ts +1 -0
- package/lib/components/CardSection/Card/Card.types.js.map +1 -1
- package/lib/components/CardSection/Card/Card.types.mjs.map +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/ModelCompareV3/assets/Consoles/bigCompare/express.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express7.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/express7.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.js +5 -5
- package/lib/components/ModelCompareV3/assets/Consoles/bigCompare/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/express.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/express.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/express7.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/express7.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmPro.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProMax.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.js +1 -1
- package/lib/components/ModelCompareV3/assets/Consoles/udmProSpecial.jpg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/poe.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/poe.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/assets/port.svg.js +1 -1
- package/lib/components/ModelCompareV3/assets/port.svg.mjs +2 -2
- package/lib/components/ModelCompareV3/data/CloudGateways.js +12 -12
- package/lib/components/ModelCompareV3/data/CloudGateways.mjs +8 -8
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.js.map +1 -1
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs +3 -2
- package/lib/components/ModelCompareV3/data/EnterpriseSwitching.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/express.js +1 -1
- package/lib/components/ModelCompareV3/data/products/express.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.js +1 -1
- package/lib/components/ModelCompareV3/data/products/express7.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js +2 -2
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/gatewayEnterprise.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js +2 -2
- package/lib/components/ModelCompareV3/data/products/gatewayLite.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/gatewayLite.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js +2 -2
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.js.map +1 -1
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs +2 -2
- package/lib/components/ModelCompareV3/data/products/gatewayProfessional.mjs.map +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmPro.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProMax.mjs +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.js +1 -1
- package/lib/components/ModelCompareV3/data/products/udmProSpecial.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/powerMethodPoe.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/readerPowerMethod.mjs +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.js +1 -1
- package/lib/components/ModelCompareV3/data/properties/redundantRj45Port.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/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.js +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/RecommendedPoeSwitches.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/poe.svg.mjs +2 -2
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.js +1 -1
- package/lib/components/ResourceCalculatorV1/PoeCalculator/components/RecommendedPoeSwitches/assets/port.svg.mjs +2 -2
- package/lib/components/VideoPlayerNew/VideoPlayer.js +1 -1
- package/lib/components/VideoPlayerNew/VideoPlayer.mjs +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.js +1 -1
- package/lib/components/VideoPlayerNew/assets/close.svg.mjs +2 -2
- package/lib/constants/icons/options/colors/black.svg.js +5 -5
- package/lib/constants/icons/options/colors/index.js +3 -3
- package/lib/constants/icons/options/styles/black.svg.js +5 -5
- package/lib/constants/icons/options/styles/index.js +3 -3
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/package.json +1 -1
- package/lib/assets/aggregation.jpg +0 -0
- package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.js +0 -27
- package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.js.map +0 -1
- package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.mjs +0 -3
- package/lib/components/ModelCompareV3/assets/Switching/aggregation.jpg.mjs.map +0 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.js +0 -117
- package/lib/components/ModelCompareV3/data/products/aggregation.js.map +0 -1
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs +0 -109
- package/lib/components/ModelCompareV3/data/products/aggregation.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,15 @@
|
|
|
6
6
|
|
|
7
7
|
## Releases
|
|
8
8
|
|
|
9
|
+
### 9.64.1-new-design
|
|
10
|
+
|
|
11
|
+
- Upstream with master
|
|
12
|
+
|
|
13
|
+
### 9.64.1
|
|
14
|
+
|
|
15
|
+
- [hotfix] Update product URLs, hide Aggregation in Model Compare
|
|
16
|
+
- [Feat] [NEP-4255](https://ubiquiti.atlassian.net/browse/NEP-4255) Add `className` prop for Card component
|
|
17
|
+
|
|
9
18
|
### 9.64.0-new-design
|
|
10
19
|
|
|
11
20
|
- [Feat] [NEP-4245](https://ubiquiti.atlassian.net/browse/NEP-4245) Add "Enhanced AI" filter for Camera Security
|
package/lib/assets/attention.svg
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<circle cx="
|
|
3
|
-
<path d="
|
|
4
|
-
<path d="
|
|
5
|
-
<circle cx="
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="8" cy="8" r="8" fill="#A4A7B5"/>
|
|
3
|
+
<path d="M12.1136 10.125L8.64952 4.125C8.36084 3.625 7.63916 3.625 7.35048 4.125L3.88638 10.125C3.5977 10.625 3.95855 11.25 4.5359 11.25H11.4641C12.0415 11.25 12.4023 10.625 12.1136 10.125Z" stroke="white" stroke-width="0.5"/>
|
|
4
|
+
<path d="M8.19799 8.11407L8.42929 6.49497C8.46661 6.23373 8.2639 6 8 6C7.7361 6 7.53339 6.23373 7.57071 6.49497L7.80201 8.11407C7.83472 8.34302 8.16528 8.34303 8.19799 8.11407Z" fill="white"/>
|
|
5
|
+
<circle cx="8" cy="9.5" r="0.5" fill="white"/>
|
|
6
6
|
</svg>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<circle cx="
|
|
3
|
-
<path d="
|
|
4
|
-
<path d="
|
|
5
|
-
<circle cx="
|
|
1
|
+
<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<circle cx="9" cy="9" r="9" fill="#F7D55E"/>
|
|
3
|
+
<path d="M9.73071 4.64062C9.40595 4.07813 8.59405 4.07812 8.26929 4.64062L4.37218 11.3906C4.04742 11.9531 4.45336 12.6562 5.10288 12.6562H12.8971C13.5466 12.6562 13.9526 11.9531 13.6278 11.3906L9.73071 4.64062Z" stroke="white" stroke-width="0.5625"/>
|
|
4
|
+
<path d="M9.22274 9.12833L9.48295 7.30685C9.52494 7.01295 9.29688 6.75 9 6.75C8.70312 6.75 8.47506 7.01295 8.51705 7.30685L8.77726 9.12833C8.81406 9.3859 9.18594 9.3859 9.22274 9.12833Z" fill="white"/>
|
|
5
|
+
<circle cx="9" cy="10.6875" r="0.5625" fill="#F7D55E"/>
|
|
6
6
|
</svg>
|
package/lib/assets/close2.svg
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
1
|
+
<svg width="24" height="24" viewBox="0 0 24 24" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
3
4
|
</svg>
|
package/lib/assets/close3.svg
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.2175 18.6475C4.9275 18.9375 4.9275 19.4175 5.2175 19.7075C5.5075 19.9975 5.9875 19.9975 6.2775 19.7075L12.4675 13.5175L18.6575 19.7075C18.9475 19.9975 19.4275 19.9975 19.7175 19.7075C20.0075 19.4175 20.0075 18.9375 19.7175 18.6475L13.5275 12.4675L19.7175 6.2775C20.0075 5.9875 20.0075 5.5075 19.7175 5.2175C19.4275 4.9275 18.9475 4.9275 18.6575 5.2175L12.4675 11.4075L6.2775 5.2175C5.9875 4.9275 5.5075 4.9275 5.2175 5.2175C4.9275 5.5075 4.9275 5.9875 5.2175 6.2775L11.4075 12.4675L5.2175 18.6475Z" fill="currentColor"/>
|
|
1
|
+
<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.7175 18.6475C5.4275 18.9375 5.4275 19.4175 5.7175 19.7075C6.0075 19.9975 6.4875 19.9975 6.7775 19.7075L12.9675 13.5175L19.1575 19.7075C19.4475 19.9975 19.9275 19.9975 20.2175 19.7075C20.5075 19.4175 20.5075 18.9375 20.2175 18.6475L14.0275 12.4675L20.2175 6.2775C20.5075 5.9875 20.5075 5.5075 20.2175 5.2175C19.9275 4.9275 19.4475 4.9275 19.1575 5.2175L12.9675 11.4075L6.7775 5.2175C6.4875 4.9275 6.0075 4.9275 5.7175 5.2175C5.4275 5.5075 5.4275 5.9875 5.7175 6.2775L11.9075 12.4675L5.7175 18.6475Z" fill="#36373C"/>
|
|
4
3
|
</svg>
|
package/lib/assets/express.jpg
CHANGED
|
Binary file
|
package/lib/assets/express2.jpg
CHANGED
|
Binary file
|
package/lib/assets/express7.jpg
CHANGED
|
Binary file
|
package/lib/assets/express72.jpg
CHANGED
|
Binary file
|
package/lib/assets/minus4.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15898" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15898)">
|
|
4
|
+
<path d="M5.16287 2.9397H0.697754V3.38621H5.16287V2.9397Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_426_15898)">
|
|
8
|
+
<rect x="0.697754" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_426_15898">
|
|
12
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.697754 0.930176)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/minus5.svg
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
1
|
+
<svg width="11" height="10" viewBox="0 0 11 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_406" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="11" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_406)">
|
|
4
|
+
<path d="M10.2546 4.35H0.587891V5.31667H10.2546V4.35Z" fill="#838691"/>
|
|
5
5
|
</g>
|
|
6
6
|
</mask>
|
|
7
|
-
<g mask="url(#
|
|
8
|
-
<rect x="0.
|
|
7
|
+
<g mask="url(#mask0_658_406)">
|
|
8
|
+
<rect x="0.587891" width="9.66667" height="9.66667" fill="#838691"/>
|
|
9
9
|
</g>
|
|
10
10
|
<defs>
|
|
11
|
-
<clipPath id="
|
|
12
|
-
<rect width="
|
|
11
|
+
<clipPath id="clip0_658_406">
|
|
12
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.587891)"/>
|
|
13
13
|
</clipPath>
|
|
14
14
|
</defs>
|
|
15
15
|
</svg>
|
package/lib/assets/plus5.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="6" height="6" viewBox="0 0 6 6" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_426_15903" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="6" height="6">
|
|
3
|
+
<g clip-path="url(#clip0_426_15903)">
|
|
4
|
+
<path d="M5.30227 2.9397H0.837158V3.38621H5.30227V2.9397Z" fill="#838691"/>
|
|
5
|
+
<path d="M2.84668 0.930147L2.84668 5.39526H3.29319L3.29319 0.930147H2.84668Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_426_15903)">
|
|
9
|
+
<rect x="0.837158" y="0.930176" width="4.46512" height="4.46512" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_426_15903">
|
|
13
|
+
<rect width="4.46512" height="4.46512" fill="white" transform="translate(0.837158 0.930176)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/plus6.svg
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<mask id="
|
|
3
|
-
<g clip-path="url(#
|
|
4
|
-
<path d="
|
|
5
|
-
<path d="
|
|
1
|
+
<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<mask id="mask0_658_411" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="10" height="10">
|
|
3
|
+
<g clip-path="url(#clip0_658_411)">
|
|
4
|
+
<path d="M9.86637 4.35H0.199707V5.31667H9.86637V4.35Z" fill="#838691"/>
|
|
5
|
+
<path d="M4.5498 -2.86102e-06L4.5498 9.66666H5.51647L5.51647 -2.86102e-06H4.5498Z" fill="#838691"/>
|
|
6
6
|
</g>
|
|
7
7
|
</mask>
|
|
8
|
-
<g mask="url(#
|
|
9
|
-
<rect x="0.
|
|
8
|
+
<g mask="url(#mask0_658_411)">
|
|
9
|
+
<rect x="0.199707" width="9.66667" height="9.66667" fill="#838691"/>
|
|
10
10
|
</g>
|
|
11
11
|
<defs>
|
|
12
|
-
<clipPath id="
|
|
13
|
-
<rect width="
|
|
12
|
+
<clipPath id="clip0_658_411">
|
|
13
|
+
<rect width="9.66667" height="9.66667" fill="white" transform="translate(0.199707)"/>
|
|
14
14
|
</clipPath>
|
|
15
15
|
</defs>
|
|
16
16
|
</svg>
|
package/lib/assets/poe2.svg
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
1
|
+
<svg width="31" height="31" viewBox="0 0 31 31" fill="none"
|
|
2
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
3
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.9898 8.15227L15.8356 14.8869L21.6848 14.8805L14.2162 23.5358L15.3235 16.7717L9.54576 16.7797L16.9898 8.15227ZM16.4087 6.52963C17.2346 5.57348 18.8289 6.28923 18.6125 7.56393L17.6149 13.3849L22.2048 13.3799C23.2715 13.3799 23.8799 14.6351 23.1631 15.4633L14.8046 25.1499C13.9838 26.101 12.3903 25.3977 12.5999 24.1241L13.5575 18.2741L9.0274 18.2804C7.96036 18.2804 7.353 17.0256 8.06674 16.1977L16.4087 6.52963Z" fill="currentColor"/>
|
|
3
4
|
</svg>
|
package/lib/assets/poe3.svg
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
|
|
3
|
-
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.9898 8.15227L15.8356 14.8869L21.6848 14.8805L14.2162 23.5358L15.3235 16.7717L9.54576 16.7797L16.9898 8.15227ZM16.4087 6.52963C17.2346 5.57348 18.8289 6.28923 18.6125 7.56393L17.6149 13.3849L22.2048 13.3799C23.2715 13.3799 23.8799 14.6351 23.1631 15.4633L14.8046 25.1499C13.9838 26.101 12.3903 25.3977 12.5999 24.1241L13.5575 18.2741L9.0274 18.2804C7.96036 18.2804 7.353 17.0256 8.06674 16.1977L16.4087 6.52963Z" fill="currentColor"/>
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M16.375 7.625V6.375H17.625C17.835 6.375 18 6.21 18 6C18 5.79 17.835 5.625 17.625 5.625H16.375V4.375C16.375 4.165 16.21 4 16 4C15.79 4 15.625 4.165 15.625 4.375V5.625H14.375C14.165 5.625 14 5.79 14 6C14 6.21 14.165 6.375 14.375 6.375H15.625V7.625C15.625 7.835 15.79 8 16 8C16.21 8 16.375 7.835 16.375 7.625ZM9.21611 11.1221L8.48244 15.6041C8.42665 15.9431 8.85506 16.1411 9.08032 15.8801L14.6529 9.42211C14.8445 9.20111 14.6855 8.86011 14.3929 8.86011L10.7392 8.86411L11.5045 4.39911C11.5624 4.05811 11.1329 3.85811 10.9066 4.12011L5.34564 10.5651C5.15511 10.7861 5.31406 11.1271 5.60669 11.1271L9.21611 11.1221Z" fill="#838691"/>
|
|
4
3
|
</svg>
|
package/lib/assets/port.svg
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<
|
|
1
|
+
<svg width="30" height="30" viewBox="0 0 30 30" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<g id="Port">
|
|
3
|
+
<path id="Union" fill-rule="evenodd" clip-rule="evenodd" d="M22.5 7V9H24.5C25.0523 9 25.5 9.44772 25.5 10V24.5C25.5 25.0523 25.0523 25.5 24.5 25.5H5.5C4.94772 25.5 4.5 25.0523 4.5 24.5V10C4.5 9.44772 4.94772 9 5.5 9H7.5V7C7.5 6.44772 7.94772 6 8.5 6H10.5V5.5C10.5 4.94772 10.9477 4.5 11.5 4.5H18.5C19.0523 4.5 19.5 4.94772 19.5 5.5V6H21.5C22.0523 6 22.5 6.44772 22.5 7ZM6 24H24V10.5H21V7.5H18V6H12V7.5H9V10.5H6V24ZM20 12C20.5523 12 21 12.4477 21 13V15.75C21 16.1642 20.6642 16.5 20.25 16.5C19.8358 16.5 19.5 16.1642 19.5 15.75V13.5H10.5V15.75C10.5 16.1642 10.1642 16.5 9.75 16.5C9.33579 16.5 9 16.1642 9 15.75V13C9 12.4477 9.44771 12 10 12H20ZM21 18.75C21 18.3358 20.6642 18 20.25 18C19.8358 18 19.5 18.3358 19.5 18.75V20.25C19.5 20.6642 19.8358 21 20.25 21C20.6642 21 21 20.6642 21 20.25V18.75ZM16.7505 18C17.1647 18 17.5005 18.3358 17.5005 18.75V20.25C17.5005 20.6642 17.1647 21 16.7505 21C16.3363 21 16.0005 20.6642 16.0005 20.25V18.75C16.0005 18.3358 16.3363 18 16.7505 18ZM13.9995 18.75C13.9995 18.3358 13.6637 18 13.2495 18C12.8353 18 12.4995 18.3358 12.4995 18.75V20.25C12.4995 20.6642 12.8353 21 13.2495 21C13.6637 21 13.9995 20.6642 13.9995 20.25V18.75ZM9.75 18C10.1642 18 10.5 18.3358 10.5 18.75V20.25C10.5 20.6642 10.1642 21 9.75 21C9.33579 21 9 20.6642 9 20.25V18.75C9 18.3358 9.33579 18 9.75 18Z" fill="#212124"/>
|
|
4
|
+
</g>
|
|
3
5
|
</svg>
|
package/lib/assets/port2.svg
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
<svg width="
|
|
2
|
-
<
|
|
3
|
-
<path id="Union" fill-rule="evenodd" clip-rule="evenodd" d="M22.5 7V9H24.5C25.0523 9 25.5 9.44772 25.5 10V24.5C25.5 25.0523 25.0523 25.5 24.5 25.5H5.5C4.94772 25.5 4.5 25.0523 4.5 24.5V10C4.5 9.44772 4.94772 9 5.5 9H7.5V7C7.5 6.44772 7.94772 6 8.5 6H10.5V5.5C10.5 4.94772 10.9477 4.5 11.5 4.5H18.5C19.0523 4.5 19.5 4.94772 19.5 5.5V6H21.5C22.0523 6 22.5 6.44772 22.5 7ZM6 24H24V10.5H21V7.5H18V6H12V7.5H9V10.5H6V24ZM20 12C20.5523 12 21 12.4477 21 13V15.75C21 16.1642 20.6642 16.5 20.25 16.5C19.8358 16.5 19.5 16.1642 19.5 15.75V13.5H10.5V15.75C10.5 16.1642 10.1642 16.5 9.75 16.5C9.33579 16.5 9 16.1642 9 15.75V13C9 12.4477 9.44771 12 10 12H20ZM21 18.75C21 18.3358 20.6642 18 20.25 18C19.8358 18 19.5 18.3358 19.5 18.75V20.25C19.5 20.6642 19.8358 21 20.25 21C20.6642 21 21 20.6642 21 20.25V18.75ZM16.7505 18C17.1647 18 17.5005 18.3358 17.5005 18.75V20.25C17.5005 20.6642 17.1647 21 16.7505 21C16.3363 21 16.0005 20.6642 16.0005 20.25V18.75C16.0005 18.3358 16.3363 18 16.7505 18ZM13.9995 18.75C13.9995 18.3358 13.6637 18 13.2495 18C12.8353 18 12.4995 18.3358 12.4995 18.75V20.25C12.4995 20.6642 12.8353 21 13.2495 21C13.6637 21 13.9995 20.6642 13.9995 20.25V18.75ZM9.75 18C10.1642 18 10.5 18.3358 10.5 18.75V20.25C10.5 20.6642 10.1642 21 9.75 21C9.33579 21 9 20.6642 9 20.25V18.75C9 18.3358 9.33579 18 9.75 18Z" fill="#212124"/>
|
|
4
|
-
</g>
|
|
1
|
+
<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path fill-rule="evenodd" clip-rule="evenodd" d="M16 16V4H4V16H16ZM4 3H16C16.552 3 17 3.448 17 4V16C17 16.552 16.552 17 16 17H4C3.448 17 3 16.552 3 16V4C3 3.448 3.448 3 4 3ZM9.25 6H10.75C11.302 6 11.75 6.448 11.75 7H12.75C13.302 7 13.75 7.448 13.75 8V8.5C14.302 8.5 14.75 8.948 14.75 9.5V13.1C14.75 13.652 14.302 14.1 13.75 14.1H6.25C5.698 14.1 5.25 13.652 5.25 13.1V9.5C5.25 8.948 5.698 8.5 6.25 8.5V8C6.25 7.448 6.698 7 7.25 7H8.25C8.25 6.448 8.698 6 9.25 6ZM7.25 8H8.25H8.75H9.25V7H10.75V8H11.25H11.75H12.75V8.5V9.5H13.75V13.1H6.25V9.5H7.25V8.5V8Z" fill="#838691"/>
|
|
5
3
|
</svg>
|
package/lib/assets/udmPro.jpg
CHANGED
|
Binary file
|
package/lib/assets/udmPro2.jpg
CHANGED
|
Binary file
|
package/lib/assets/udmProMax.jpg
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { type CardProps } from "./Card.types";
|
|
2
|
-
export declare const Card: ({ motif, title, subtitle, titleLarge, learnMoreHref, videoSrc, videoPoster, backgroundImageUrl, backgroundColor, border, labels, onLinkClick, beforeFollowLink, link, }: CardProps) => JSX.Element;
|
|
2
|
+
export declare const Card: ({ motif, title, subtitle, titleLarge, learnMoreHref, videoSrc, videoPoster, backgroundImageUrl, backgroundColor, border, labels, onLinkClick, beforeFollowLink, link, className, }: CardProps) => JSX.Element;
|
|
@@ -31,7 +31,8 @@ const Card = ({
|
|
|
31
31
|
labels,
|
|
32
32
|
onLinkClick,
|
|
33
33
|
beforeFollowLink,
|
|
34
|
-
link
|
|
34
|
+
link,
|
|
35
|
+
className
|
|
35
36
|
}) => {
|
|
36
37
|
const {
|
|
37
38
|
languageDirection
|
|
@@ -119,6 +120,7 @@ const Card = ({
|
|
|
119
120
|
border,
|
|
120
121
|
dir: languageDirection,
|
|
121
122
|
draggable: false,
|
|
123
|
+
className,
|
|
122
124
|
children: [/* @__PURE__ */jsxRuntime.jsxs(Card_styles.ContentWrap, {
|
|
123
125
|
children: [/* @__PURE__ */jsxRuntime.jsx(Card_styles.LabelWrap, {
|
|
124
126
|
children: labelEls
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.js","sources":["../../../../src/components/CardSection/Card/Card.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\n\nimport { useMenu } from \"../../../contexts/MenuContext\";\nimport { Language } from \"../../../contexts/MenuContext/mapping\";\nimport { useTranslation } from \"../../../hooks\";\nimport { LearnMoreLink } from \"../../LearnMoreLink\";\nimport { ReverseLoopingVideo } from \"../../ReverseLoopingVideo\";\nimport {\n CardWrapper,\n ContentWrap,\n Label,\n LabelWrap,\n Subtitle,\n Title,\n TitleLarge,\n} from \"./Card.styles\";\nimport { type CardProps, presetLabelMap } from \"./Card.types\";\nimport { en as EN_TRANSLATION } from \"./translations\";\n\nexport const Card = ({\n motif,\n title,\n subtitle,\n titleLarge,\n learnMoreHref,\n videoSrc,\n videoPoster,\n backgroundImageUrl,\n backgroundColor,\n border,\n labels,\n onLinkClick,\n beforeFollowLink,\n link,\n}: CardProps) => {\n const { languageDirection } = useMenu();\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ja]: () =>\n import(\"./translations/ja.json\").then((res) => res.default),\n [Language.Ar]: () =>\n import(\"./translations/ar.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"./translations/de.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"./translations/es.json\").then((res) => res.default),\n [Language.El]: () =>\n import(\"./translations/el.json\").then((res) => res.default),\n [Language.It]: () =>\n import(\"./translations/it.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"./translations/pt-BR.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"./translations/zh-Hans.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"./translations/fr.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"./translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Labels\n // #############################################################################\n\n const labelEls = useMemo(() => {\n if (!labels) {\n return null;\n }\n\n return labels.map((label, i) => {\n if (typeof label === \"string\") {\n const presetLabel = presetLabelMap[label];\n\n if (presetLabel) {\n return (\n <Label\n key={i}\n color={presetLabel.color}\n fontWeight={presetLabel?.[\"fontWeight\"]}\n >\n {formatMessage(presetLabel.text)}\n </Label>\n );\n }\n\n return null;\n } else {\n return (\n <Label key={i} color={label.color} fontWeight={label.fontWeight}>\n {label.text}\n </Label>\n );\n }\n });\n }, [labels, formatMessage]);\n\n // #############################################################################\n // Video\n // #############################################################################\n const [playing, setPlaying] = useState(false);\n\n const onMouseEnter = useCallback(() => {\n setPlaying(true);\n }, []);\n\n const onMouseLeave = useCallback(() => {\n setPlaying(false);\n }, []);\n\n // #############################################################################\n // Event\n // #############################################################################\n const handleCardClick = useCallback(\n (e) => {\n beforeFollowLink?.(learnMoreHref);\n onLinkClick?.(e, learnMoreHref);\n },\n [beforeFollowLink, learnMoreHref, onLinkClick],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <CardWrapper\n as=\"a\"\n onClick={handleCardClick}\n href={learnMoreHref}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n backgroundColor={backgroundColor}\n backgroundImageUrl={backgroundImageUrl}\n border={border}\n dir={languageDirection}\n /**\n * Disable \"draggable\" to prevent image dragging on Firefox\n * @see https://ui.slack.com/archives/C017MM5HW1F/p1739876555750939\n * @see https://stackoverflow.com/questions/38907225/disable-drag-for-any-object-in-firefox-addon-popup\n */\n draggable={false}\n >\n <ContentWrap>\n <LabelWrap>{labelEls}</LabelWrap>\n\n <Title motif={motif}>{title}</Title>\n {subtitle && <Subtitle motif={motif}>{subtitle}</Subtitle>}\n {titleLarge && <TitleLarge motif={motif}>{titleLarge}</TitleLarge>}\n <LearnMoreLink {...link} />\n </ContentWrap>\n\n {videoSrc && (\n <ReverseLoopingVideo\n src={videoSrc}\n poster={videoPoster}\n playing={playing}\n />\n )}\n </CardWrapper>\n );\n};\n"],"names":["Card","motif","title","subtitle","titleLarge","learnMoreHref","videoSrc","videoPoster","backgroundImageUrl","backgroundColor","border","labels","onLinkClick","beforeFollowLink","link","languageDirection","useMenu","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","Promise","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","Tw","labelEls","useMemo","map","label","i","presetLabel","presetLabelMap","jsx","Label","color","fontWeight","children","text","playing","setPlaying","useState","onMouseEnter","useCallback","onMouseLeave","handleCardClick","e","jsxs","CardWrapper","as","onClick","href","dir","draggable","ContentWrap","LabelWrap","Title","Subtitle","TitleLarge","LearnMoreLink","ReverseLoopingVideo","src","poster"],"mappings":";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AE,GAAG,MACbR;uBAAO,2BAAwB,CAAA;MAAA,CAAA,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC5D,CAACL,SAAA,CAAAA,QAAA,CAASW,EAAE,GAAG,MACbT;uBAAO,8BAA2B,CAAA;MAAA,CAAA,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC/D,CAACL,SAAA,CAAAA,QAAA,CAASY,EAAE,GAAG,MACbV;uBAAO,gCAA6B,CAAA;MAAA,CAAA,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MACjE,CAACL,SAAA,CAAAA,QAAA,CAASa,EAAE,GAAG,MACbX;uBAAO,2BAAwB,CAAA;MAAA,CAAA,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC5D,CAACL,SAAA,CAAAA,QAAA,CAASc,EAAE,GAAG,MACbZ;uBAAO,mCAAgC,CAAA;MAAA,CAAA,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO;IACtE;EAAA,CACD,CAAA;EAMK,MAAAU,QAAA,GAAWC,KAAAA,CAAAA,QAAQ,MAAM;IAC7B,IAAI,
|
|
1
|
+
{"version":3,"file":"Card.js","sources":["../../../../src/components/CardSection/Card/Card.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\n\nimport { useMenu } from \"../../../contexts/MenuContext\";\nimport { Language } from \"../../../contexts/MenuContext/mapping\";\nimport { useTranslation } from \"../../../hooks\";\nimport { LearnMoreLink } from \"../../LearnMoreLink\";\nimport { ReverseLoopingVideo } from \"../../ReverseLoopingVideo\";\nimport {\n CardWrapper,\n ContentWrap,\n Label,\n LabelWrap,\n Subtitle,\n Title,\n TitleLarge,\n} from \"./Card.styles\";\nimport { type CardProps, presetLabelMap } from \"./Card.types\";\nimport { en as EN_TRANSLATION } from \"./translations\";\n\nexport const Card = ({\n motif,\n title,\n subtitle,\n titleLarge,\n learnMoreHref,\n videoSrc,\n videoPoster,\n backgroundImageUrl,\n backgroundColor,\n border,\n labels,\n onLinkClick,\n beforeFollowLink,\n link,\n className,\n}: CardProps) => {\n const { languageDirection } = useMenu();\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ja]: () =>\n import(\"./translations/ja.json\").then((res) => res.default),\n [Language.Ar]: () =>\n import(\"./translations/ar.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"./translations/de.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"./translations/es.json\").then((res) => res.default),\n [Language.El]: () =>\n import(\"./translations/el.json\").then((res) => res.default),\n [Language.It]: () =>\n import(\"./translations/it.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"./translations/pt-BR.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"./translations/zh-Hans.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"./translations/fr.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"./translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Labels\n // #############################################################################\n\n const labelEls = useMemo(() => {\n if (!labels) {\n return null;\n }\n\n return labels.map((label, i) => {\n if (typeof label === \"string\") {\n const presetLabel = presetLabelMap[label];\n\n if (presetLabel) {\n return (\n <Label\n key={i}\n color={presetLabel.color}\n fontWeight={presetLabel?.[\"fontWeight\"]}\n >\n {formatMessage(presetLabel.text)}\n </Label>\n );\n }\n\n return null;\n } else {\n return (\n <Label key={i} color={label.color} fontWeight={label.fontWeight}>\n {label.text}\n </Label>\n );\n }\n });\n }, [labels, formatMessage]);\n\n // #############################################################################\n // Video\n // #############################################################################\n const [playing, setPlaying] = useState(false);\n\n const onMouseEnter = useCallback(() => {\n setPlaying(true);\n }, []);\n\n const onMouseLeave = useCallback(() => {\n setPlaying(false);\n }, []);\n\n // #############################################################################\n // Event\n // #############################################################################\n const handleCardClick = useCallback(\n (e) => {\n beforeFollowLink?.(learnMoreHref);\n onLinkClick?.(e, learnMoreHref);\n },\n [beforeFollowLink, learnMoreHref, onLinkClick],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <CardWrapper\n as=\"a\"\n onClick={handleCardClick}\n href={learnMoreHref}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n backgroundColor={backgroundColor}\n backgroundImageUrl={backgroundImageUrl}\n border={border}\n dir={languageDirection}\n /**\n * Disable \"draggable\" to prevent image dragging on Firefox\n * @see https://ui.slack.com/archives/C017MM5HW1F/p1739876555750939\n * @see https://stackoverflow.com/questions/38907225/disable-drag-for-any-object-in-firefox-addon-popup\n */\n draggable={false}\n className={className}\n >\n <ContentWrap>\n <LabelWrap>{labelEls}</LabelWrap>\n\n <Title motif={motif}>{title}</Title>\n {subtitle && <Subtitle motif={motif}>{subtitle}</Subtitle>}\n {titleLarge && <TitleLarge motif={motif}>{titleLarge}</TitleLarge>}\n <LearnMoreLink {...link} />\n </ContentWrap>\n\n {videoSrc && (\n <ReverseLoopingVideo\n src={videoSrc}\n poster={videoPoster}\n playing={playing}\n />\n )}\n </CardWrapper>\n );\n};\n"],"names":["Card","motif","title","subtitle","titleLarge","learnMoreHref","videoSrc","videoPoster","backgroundImageUrl","backgroundColor","border","labels","onLinkClick","beforeFollowLink","link","className","languageDirection","useMenu","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","Promise","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","Tw","labelEls","useMemo","map","label","i","presetLabel","presetLabelMap","jsx","Label","color","fontWeight","children","text","playing","setPlaying","useState","onMouseEnter","useCallback","onMouseLeave","handleCardClick","e","jsxs","CardWrapper","as","onClick","href","dir","draggable","ContentWrap","LabelWrap","Title","Subtitle","TitleLarge","LearnMoreLink","ReverseLoopingVideo","src","poster"],"mappings":";;;;;;;;;;;;;;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A,EAAA,CAAAJ,eAAAA,UAAAA,CAAAA,GAAA,CAACsB;QAAWlB,QAAS,EAAAX;MAAA,CAAA,CAAA,EAErBO,eAAAA,UAAAA,CAAAA,GAAA,CAACuB,WAAAA,CAAAA,KAAM,EAAA;QAAAnE,KAAA;QAAegD,QAAM,EAAA/C;MAAA,CAAA,CAAA,EAC3BC,QAAY,IAAA,eAAA0C,UAAA,CAAAA,GAAA,CAACwB,WAAS,CAAAA,QAAA,EAAA;QAAApE,KAAA;QAAegD,QAAS,EAAA9C;OAAA,CAAA,EAC9CC,UAAc,IAAA,eAAAyC,UAAA,CAAAA,GAAA,CAACyB,WAAW,CAAAA,UAAA,EAAA;QAAArE,KAAA;QAAegD,QAAW,EAAA7C;OAAA,CAAA,EACrDyC,eAAAA,UAAAA,CAAAA,GAAA,CAAC0B,aAAe,CAAAA,aAAA,EAAA;QAAA,GAAGzD;OAAM,CAAA;KAC3B,CAAA,EAECR,QACC,mBAAAuC,UAAA,CAAAA,GAAA,CAAC2B,mBAAA,CAAAA,mBAAA,EAAA;MACCC,GAAK,EAAAnE,QAAA;MACLoE,MAAQ,EAAAnE,WAAA;MACR4C;IAAA,CACF,CAAA;EAAA,CAAA,CAEJ;AAEJ,CAAA;"}
|
|
@@ -29,7 +29,8 @@ const Card = ({
|
|
|
29
29
|
labels,
|
|
30
30
|
onLinkClick,
|
|
31
31
|
beforeFollowLink,
|
|
32
|
-
link
|
|
32
|
+
link,
|
|
33
|
+
className
|
|
33
34
|
}) => {
|
|
34
35
|
const {
|
|
35
36
|
languageDirection
|
|
@@ -97,6 +98,7 @@ const Card = ({
|
|
|
97
98
|
border,
|
|
98
99
|
dir: languageDirection,
|
|
99
100
|
draggable: false,
|
|
101
|
+
className,
|
|
100
102
|
children: [/* @__PURE__ */jsxs(ContentWrap, {
|
|
101
103
|
children: [/* @__PURE__ */jsx(LabelWrap, {
|
|
102
104
|
children: labelEls
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.mjs","sources":["../../../../src/components/CardSection/Card/Card.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\n\nimport { useMenu } from \"../../../contexts/MenuContext\";\nimport { Language } from \"../../../contexts/MenuContext/mapping\";\nimport { useTranslation } from \"../../../hooks\";\nimport { LearnMoreLink } from \"../../LearnMoreLink\";\nimport { ReverseLoopingVideo } from \"../../ReverseLoopingVideo\";\nimport {\n CardWrapper,\n ContentWrap,\n Label,\n LabelWrap,\n Subtitle,\n Title,\n TitleLarge,\n} from \"./Card.styles\";\nimport { type CardProps, presetLabelMap } from \"./Card.types\";\nimport { en as EN_TRANSLATION } from \"./translations\";\n\nexport const Card = ({\n motif,\n title,\n subtitle,\n titleLarge,\n learnMoreHref,\n videoSrc,\n videoPoster,\n backgroundImageUrl,\n backgroundColor,\n border,\n labels,\n onLinkClick,\n beforeFollowLink,\n link,\n}: CardProps) => {\n const { languageDirection } = useMenu();\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ja]: () =>\n import(\"./translations/ja.json\").then((res) => res.default),\n [Language.Ar]: () =>\n import(\"./translations/ar.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"./translations/de.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"./translations/es.json\").then((res) => res.default),\n [Language.El]: () =>\n import(\"./translations/el.json\").then((res) => res.default),\n [Language.It]: () =>\n import(\"./translations/it.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"./translations/pt-BR.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"./translations/zh-Hans.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"./translations/fr.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"./translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Labels\n // #############################################################################\n\n const labelEls = useMemo(() => {\n if (!labels) {\n return null;\n }\n\n return labels.map((label, i) => {\n if (typeof label === \"string\") {\n const presetLabel = presetLabelMap[label];\n\n if (presetLabel) {\n return (\n <Label\n key={i}\n color={presetLabel.color}\n fontWeight={presetLabel?.[\"fontWeight\"]}\n >\n {formatMessage(presetLabel.text)}\n </Label>\n );\n }\n\n return null;\n } else {\n return (\n <Label key={i} color={label.color} fontWeight={label.fontWeight}>\n {label.text}\n </Label>\n );\n }\n });\n }, [labels, formatMessage]);\n\n // #############################################################################\n // Video\n // #############################################################################\n const [playing, setPlaying] = useState(false);\n\n const onMouseEnter = useCallback(() => {\n setPlaying(true);\n }, []);\n\n const onMouseLeave = useCallback(() => {\n setPlaying(false);\n }, []);\n\n // #############################################################################\n // Event\n // #############################################################################\n const handleCardClick = useCallback(\n (e) => {\n beforeFollowLink?.(learnMoreHref);\n onLinkClick?.(e, learnMoreHref);\n },\n [beforeFollowLink, learnMoreHref, onLinkClick],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <CardWrapper\n as=\"a\"\n onClick={handleCardClick}\n href={learnMoreHref}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n backgroundColor={backgroundColor}\n backgroundImageUrl={backgroundImageUrl}\n border={border}\n dir={languageDirection}\n /**\n * Disable \"draggable\" to prevent image dragging on Firefox\n * @see https://ui.slack.com/archives/C017MM5HW1F/p1739876555750939\n * @see https://stackoverflow.com/questions/38907225/disable-drag-for-any-object-in-firefox-addon-popup\n */\n draggable={false}\n >\n <ContentWrap>\n <LabelWrap>{labelEls}</LabelWrap>\n\n <Title motif={motif}>{title}</Title>\n {subtitle && <Subtitle motif={motif}>{subtitle}</Subtitle>}\n {titleLarge && <TitleLarge motif={motif}>{titleLarge}</TitleLarge>}\n <LearnMoreLink {...link} />\n </ContentWrap>\n\n {videoSrc && (\n <ReverseLoopingVideo\n src={videoSrc}\n poster={videoPoster}\n playing={playing}\n />\n )}\n </CardWrapper>\n );\n};\n"],"names":["Card","motif","title","subtitle","titleLarge","learnMoreHref","videoSrc","videoPoster","backgroundImageUrl","backgroundColor","border","labels","onLinkClick","beforeFollowLink","link","languageDirection","useMenu","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","Tw","labelEls","useMemo","map","label","i","presetLabel","presetLabelMap","jsx","Label","color","fontWeight","children","text","playing","setPlaying","useState","onMouseEnter","useCallback","onMouseLeave","handleCardClick","e","jsxs","CardWrapper","as","onClick","href","dir","draggable","ContentWrap","LabelWrap","Title","Subtitle","TitleLarge","LearnMoreLink","ReverseLoopingVideo","src","poster"],"mappings":";;;;;;;;;;;;;;;;;AAmBO,MAAMA,OAAOA,CAAC;EACnBC,KAAA;EACAC,KAAA;EACAC,QAAA;EACAC,UAAA;EACAC,aAAA;EACAC,QAAA;EACAC,WAAA;EACAC,kBAAA;EACAC,eAAA;EACAC,MAAA;EACAC,MAAA;EACAC,WAAA;EACAC,gBAAA;EACAC;AACF,CAAiB,KAAA;EACT,MAAA;IAAEC;GAAkB,GAAIC,OAAQ,EAAA;EAChC,MAAA;IAAEC;EAAc,CAAA,GAAIC,cAAe,CAAA;IACvCC,kBAAoB,EAAAC,cAAA;IACpBC,sBAAwB,EAAA;MACtB,CAACC,QAAA,CAASC,EAAE,GAAG,MACb,OAAO,4BAAwB,CAAA,CAAEC,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC5D,CAACJ,QAAA,CAASK,EAAE,GAAG,MACb,OAAO,4BAAwB,CAAA,CAAEH,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC5D,CAACJ,QAAA,CAASM,EAAE,GAAG,MACb,OAAO,4BAAwB,CAAA,CAAEJ,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC5D,CAACJ,QAAA,CAASO,EAAE,GAAG,MACb,OAAO,4BAAwB,CAAA,CAAEL,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC5D,CAACJ,QAAA,CAASQ,EAAE,GAAG,MACb,OAAO,4BAAwB,CAAA,CAAEN,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC5D,CAACJ,QAAA,CAASS,EAAE,GAAG,MACb,OAAO,4BAAwB,CAAA,CAAEP,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC5D,CAACJ,QAAA,CAASU,EAAE,GAAG,MACb,OAAO,+BAA2B,CAAA,CAAER,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC/D,CAACJ,QAAA,CAASW,EAAE,GAAG,MACb,OAAO,iCAA6B,CAAA,CAAET,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MACjE,CAACJ,QAAA,CAASY,EAAE,GAAG,MACb,OAAO,4BAAwB,CAAA,CAAEV,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO,CAAA;MAC5D,CAACJ,QAAA,CAASa,EAAE,GAAG,MACb,OAAO,oCAAgC,CAAA,CAAEX,IAAK,CAACC,GAAQ,IAAAA,GAAA,CAAIC,OAAO;IACtE;EAAA,CACD,CAAA;EAMK,MAAAU,QAAA,GAAWC,QAAQ,MAAM;IAC7B,IAAI,
|
|
1
|
+
{"version":3,"file":"Card.mjs","sources":["../../../../src/components/CardSection/Card/Card.tsx"],"sourcesContent":["import { useCallback, useMemo, useState } from \"react\";\n\nimport { useMenu } from \"../../../contexts/MenuContext\";\nimport { Language } from \"../../../contexts/MenuContext/mapping\";\nimport { useTranslation } from \"../../../hooks\";\nimport { LearnMoreLink } from \"../../LearnMoreLink\";\nimport { ReverseLoopingVideo } from \"../../ReverseLoopingVideo\";\nimport {\n CardWrapper,\n ContentWrap,\n Label,\n LabelWrap,\n Subtitle,\n Title,\n TitleLarge,\n} from \"./Card.styles\";\nimport { type CardProps, presetLabelMap } from \"./Card.types\";\nimport { en as EN_TRANSLATION } from \"./translations\";\n\nexport const Card = ({\n motif,\n title,\n subtitle,\n titleLarge,\n learnMoreHref,\n videoSrc,\n videoPoster,\n backgroundImageUrl,\n backgroundColor,\n border,\n labels,\n onLinkClick,\n beforeFollowLink,\n link,\n className,\n}: CardProps) => {\n const { languageDirection } = useMenu();\n const { formatMessage } = useTranslation({\n defaultTranslation: EN_TRANSLATION,\n additionalTranslations: {\n [Language.Ja]: () =>\n import(\"./translations/ja.json\").then((res) => res.default),\n [Language.Ar]: () =>\n import(\"./translations/ar.json\").then((res) => res.default),\n [Language.De]: () =>\n import(\"./translations/de.json\").then((res) => res.default),\n [Language.Es]: () =>\n import(\"./translations/es.json\").then((res) => res.default),\n [Language.El]: () =>\n import(\"./translations/el.json\").then((res) => res.default),\n [Language.It]: () =>\n import(\"./translations/it.json\").then((res) => res.default),\n [Language.Pt]: () =>\n import(\"./translations/pt-BR.json\").then((res) => res.default),\n [Language.Zh]: () =>\n import(\"./translations/zh-Hans.json\").then((res) => res.default),\n [Language.Fr]: () =>\n import(\"./translations/fr.json\").then((res) => res.default),\n [Language.Tw]: () =>\n import(\"./translations/zh-Hant-TW.json\").then((res) => res.default),\n },\n });\n\n // #############################################################################\n // Labels\n // #############################################################################\n\n const labelEls = useMemo(() => {\n if (!labels) {\n return null;\n }\n\n return labels.map((label, i) => {\n if (typeof label === \"string\") {\n const presetLabel = presetLabelMap[label];\n\n if (presetLabel) {\n return (\n <Label\n key={i}\n color={presetLabel.color}\n fontWeight={presetLabel?.[\"fontWeight\"]}\n >\n {formatMessage(presetLabel.text)}\n </Label>\n );\n }\n\n return null;\n } else {\n return (\n <Label key={i} color={label.color} fontWeight={label.fontWeight}>\n {label.text}\n </Label>\n );\n }\n });\n }, [labels, formatMessage]);\n\n // #############################################################################\n // Video\n // #############################################################################\n const [playing, setPlaying] = useState(false);\n\n const onMouseEnter = useCallback(() => {\n setPlaying(true);\n }, []);\n\n const onMouseLeave = useCallback(() => {\n setPlaying(false);\n }, []);\n\n // #############################################################################\n // Event\n // #############################################################################\n const handleCardClick = useCallback(\n (e) => {\n beforeFollowLink?.(learnMoreHref);\n onLinkClick?.(e, learnMoreHref);\n },\n [beforeFollowLink, learnMoreHref, onLinkClick],\n );\n\n // #############################################################################\n // Render\n // #############################################################################\n return (\n <CardWrapper\n as=\"a\"\n onClick={handleCardClick}\n href={learnMoreHref}\n onMouseEnter={onMouseEnter}\n onMouseLeave={onMouseLeave}\n backgroundColor={backgroundColor}\n backgroundImageUrl={backgroundImageUrl}\n border={border}\n dir={languageDirection}\n /**\n * Disable \"draggable\" to prevent image dragging on Firefox\n * @see https://ui.slack.com/archives/C017MM5HW1F/p1739876555750939\n * @see https://stackoverflow.com/questions/38907225/disable-drag-for-any-object-in-firefox-addon-popup\n */\n draggable={false}\n className={className}\n >\n <ContentWrap>\n <LabelWrap>{labelEls}</LabelWrap>\n\n <Title motif={motif}>{title}</Title>\n {subtitle && <Subtitle motif={motif}>{subtitle}</Subtitle>}\n {titleLarge && <TitleLarge motif={motif}>{titleLarge}</TitleLarge>}\n <LearnMoreLink {...link} />\n </ContentWrap>\n\n {videoSrc && (\n <ReverseLoopingVideo\n src={videoSrc}\n poster={videoPoster}\n playing={playing}\n />\n )}\n </CardWrapper>\n );\n};\n"],"names":["Card","motif","title","subtitle","titleLarge","learnMoreHref","videoSrc","videoPoster","backgroundImageUrl","backgroundColor","border","labels","onLinkClick","beforeFollowLink","link","className","languageDirection","useMenu","formatMessage","useTranslation","defaultTranslation","EN_TRANSLATION","additionalTranslations","Language","Ja","then","res","default","Ar","De","Es","El","It","Pt","Zh","Fr","Tw","labelEls","useMemo","map","label","i","presetLabel","presetLabelMap","jsx","Label","color","fontWeight","children","text","playing","setPlaying","useState","onMouseEnter","useCallback","onMouseLeave","handleCardClick","e","jsxs","CardWrapper","as","onClick","href","dir","draggable","ContentWrap","LabelWrap","Title","Subtitle","TitleLarge","LearnMoreLink","ReverseLoopingVideo","src","poster"],"mappings":";;;;;;;;;;;;;;;;;AAmBO,MAAMA,OAAOA,CAAC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AAlE,WAAA;MACR2C;IAAA,CACF,CAAA;EAAA,CAAA,CAEJ;AAEJ,CAAA;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.types.js","sources":["../../../../src/components/CardSection/Card/Card.types.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport { theme } from \"../../../constants/theme\";\nimport type { LearnMoreLinkProps } from \"../../LearnMoreLink\";\nimport type EN_TRANSLATION from \"./translations/en.json\";\n\ntype Label = {\n color: string;\n text: string;\n fontWeight?: string;\n};\n\ntype PresetLabel = Label & {\n text: keyof typeof EN_TRANSLATION;\n};\n\nexport const presetLabelMap: {\n new: PresetLabel;\n bestseller: PresetLabel;\n unifi6: PresetLabel;\n theOriginal: PresetLabel;\n indoorOutdoor: PresetLabel;\n compact: PresetLabel;\n} = {\n new: {\n text: \"New\",\n color: theme.colors.buttercup,\n },\n bestseller: {\n text: \"Bestseller\",\n color: theme.colors.buttercup,\n },\n unifi6: {\n text: \"UniFi 6\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n theOriginal: {\n text: \"The Original\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n indoorOutdoor: {\n text: \"Indoor / Outdoor\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n compact: {\n text: \"Compact\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n};\n\nexport enum CardMotif {\n light = \"light\",\n dark = \"dark\",\n}\n\nexport type CardProps = {\n motif: CardMotif;\n title: string | ReactNode;\n subtitle?: string;\n titleLarge?: string;\n learnMoreHref: string;\n videoSrc?: string;\n videoPoster?: string;\n backgroundImageUrl?: string;\n backgroundColor?: string;\n border?: boolean;\n labels?: Array<keyof typeof presetLabelMap | Label>;\n onLinkClick?: (e: React.MouseEvent<HTMLElement>, href: string) => void;\n beforeFollowLink?: (url: string) => void;\n link?: LearnMoreLinkProps;\n};\n"],"names":["presetLabelMap","new","text","color","theme","colors","buttercup","bestseller","unifi6","vulcan","fontWeight","bold","theOriginal","indoorOutdoor","compact","CardMotif"],"mappings":";;;;AAgBO,MAAMA,cAOT,GAAA;EACFC,GAAK,EAAA;IACHC,IAAM,EAAA,KAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAC;EACtB,CAAA;EACAC,UAAY,EAAA;IACVL,IAAM,EAAA,YAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAC;EACtB,CAAA;EACAE,MAAQ,EAAA;IACNN,IAAM,EAAA,SAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,KAAAA,CAAAA,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAC,WAAa,EAAA;IACXV,IAAM,EAAA,cAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,KAAAA,CAAAA,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAE,aAAe,EAAA;IACbX,IAAM,EAAA,kBAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,KAAAA,CAAAA,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAG,OAAS,EAAA;IACPZ,IAAM,EAAA,SAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,KAAAA,CAAAA,MAAMM,UAAW,CAAAC;EAC/B;AACF,CAAA;AAEY,IAAAI,SAAA,GAAA,gBAAAA,UAAL,IAAA;EACLA,WAAA,OAAQ,CAAA,GAAA,OAAA;EACRA,WAAA,MAAO,CAAA,GAAA,MAAA;EAFGA,OAAAA,UAAAA;AAAA,CAAA,EAAAA,SAAA,IAAA,CAAA,CAAA,CAAA;;"}
|
|
1
|
+
{"version":3,"file":"Card.types.js","sources":["../../../../src/components/CardSection/Card/Card.types.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport { theme } from \"../../../constants/theme\";\nimport type { LearnMoreLinkProps } from \"../../LearnMoreLink\";\nimport type EN_TRANSLATION from \"./translations/en.json\";\n\ntype Label = {\n color: string;\n text: string;\n fontWeight?: string;\n};\n\ntype PresetLabel = Label & {\n text: keyof typeof EN_TRANSLATION;\n};\n\nexport const presetLabelMap: {\n new: PresetLabel;\n bestseller: PresetLabel;\n unifi6: PresetLabel;\n theOriginal: PresetLabel;\n indoorOutdoor: PresetLabel;\n compact: PresetLabel;\n} = {\n new: {\n text: \"New\",\n color: theme.colors.buttercup,\n },\n bestseller: {\n text: \"Bestseller\",\n color: theme.colors.buttercup,\n },\n unifi6: {\n text: \"UniFi 6\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n theOriginal: {\n text: \"The Original\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n indoorOutdoor: {\n text: \"Indoor / Outdoor\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n compact: {\n text: \"Compact\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n};\n\nexport enum CardMotif {\n light = \"light\",\n dark = \"dark\",\n}\n\nexport type CardProps = {\n motif: CardMotif;\n title: string | ReactNode;\n subtitle?: string;\n titleLarge?: string;\n learnMoreHref: string;\n videoSrc?: string;\n videoPoster?: string;\n backgroundImageUrl?: string;\n backgroundColor?: string;\n border?: boolean;\n labels?: Array<keyof typeof presetLabelMap | Label>;\n onLinkClick?: (e: React.MouseEvent<HTMLElement>, href: string) => void;\n beforeFollowLink?: (url: string) => void;\n link?: LearnMoreLinkProps;\n className?: string;\n};\n"],"names":["presetLabelMap","new","text","color","theme","colors","buttercup","bestseller","unifi6","vulcan","fontWeight","bold","theOriginal","indoorOutdoor","compact","CardMotif"],"mappings":";;;;AAgBO,MAAMA,cAOT,GAAA;EACFC,GAAK,EAAA;IACHC,IAAM,EAAA,KAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAC;EACtB,CAAA;EACAC,UAAY,EAAA;IACVL,IAAM,EAAA,YAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAC;EACtB,CAAA;EACAE,MAAQ,EAAA;IACNN,IAAM,EAAA,SAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,KAAAA,CAAAA,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAC,WAAa,EAAA;IACXV,IAAM,EAAA,cAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,KAAAA,CAAAA,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAE,aAAe,EAAA;IACbX,IAAM,EAAA,kBAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,KAAAA,CAAAA,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAG,OAAS,EAAA;IACPZ,IAAM,EAAA,SAAA;IACNC,KAAA,EAAOC,KAAAA,CAAAA,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,KAAAA,CAAAA,MAAMM,UAAW,CAAAC;EAC/B;AACF,CAAA;AAEY,IAAAI,SAAA,GAAA,gBAAAA,UAAL,IAAA;EACLA,WAAA,OAAQ,CAAA,GAAA,OAAA;EACRA,WAAA,MAAO,CAAA,GAAA,MAAA;EAFGA,OAAAA,UAAAA;AAAA,CAAA,EAAAA,SAAA,IAAA,CAAA,CAAA,CAAA;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Card.types.mjs","sources":["../../../../src/components/CardSection/Card/Card.types.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport { theme } from \"../../../constants/theme\";\nimport type { LearnMoreLinkProps } from \"../../LearnMoreLink\";\nimport type EN_TRANSLATION from \"./translations/en.json\";\n\ntype Label = {\n color: string;\n text: string;\n fontWeight?: string;\n};\n\ntype PresetLabel = Label & {\n text: keyof typeof EN_TRANSLATION;\n};\n\nexport const presetLabelMap: {\n new: PresetLabel;\n bestseller: PresetLabel;\n unifi6: PresetLabel;\n theOriginal: PresetLabel;\n indoorOutdoor: PresetLabel;\n compact: PresetLabel;\n} = {\n new: {\n text: \"New\",\n color: theme.colors.buttercup,\n },\n bestseller: {\n text: \"Bestseller\",\n color: theme.colors.buttercup,\n },\n unifi6: {\n text: \"UniFi 6\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n theOriginal: {\n text: \"The Original\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n indoorOutdoor: {\n text: \"Indoor / Outdoor\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n compact: {\n text: \"Compact\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n};\n\nexport enum CardMotif {\n light = \"light\",\n dark = \"dark\",\n}\n\nexport type CardProps = {\n motif: CardMotif;\n title: string | ReactNode;\n subtitle?: string;\n titleLarge?: string;\n learnMoreHref: string;\n videoSrc?: string;\n videoPoster?: string;\n backgroundImageUrl?: string;\n backgroundColor?: string;\n border?: boolean;\n labels?: Array<keyof typeof presetLabelMap | Label>;\n onLinkClick?: (e: React.MouseEvent<HTMLElement>, href: string) => void;\n beforeFollowLink?: (url: string) => void;\n link?: LearnMoreLinkProps;\n};\n"],"names":["presetLabelMap","new","text","color","theme","colors","buttercup","bestseller","unifi6","vulcan","fontWeight","bold","theOriginal","indoorOutdoor","compact","CardMotif"],"mappings":";;AAgBO,MAAMA,cAOT,GAAA;EACFC,GAAK,EAAA;IACHC,IAAM,EAAA,KAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAC;EACtB,CAAA;EACAC,UAAY,EAAA;IACVL,IAAM,EAAA,YAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAC;EACtB,CAAA;EACAE,MAAQ,EAAA;IACNN,IAAM,EAAA,SAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAC,WAAa,EAAA;IACXV,IAAM,EAAA,cAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAE,aAAe,EAAA;IACbX,IAAM,EAAA,kBAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAG,OAAS,EAAA;IACPZ,IAAM,EAAA,SAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,MAAMM,UAAW,CAAAC;EAC/B;AACF,CAAA;AAEY,IAAAI,SAAA,GAAA,gBAAAA,UAAL,IAAA;EACLA,WAAA,OAAQ,CAAA,GAAA,OAAA;EACRA,WAAA,MAAO,CAAA,GAAA,MAAA;EAFGA,OAAAA,UAAAA;AAAA,CAAA,EAAAA,SAAA,IAAA,CAAA,CAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"Card.types.mjs","sources":["../../../../src/components/CardSection/Card/Card.types.ts"],"sourcesContent":["import type { ReactNode } from \"react\";\n\nimport { theme } from \"../../../constants/theme\";\nimport type { LearnMoreLinkProps } from \"../../LearnMoreLink\";\nimport type EN_TRANSLATION from \"./translations/en.json\";\n\ntype Label = {\n color: string;\n text: string;\n fontWeight?: string;\n};\n\ntype PresetLabel = Label & {\n text: keyof typeof EN_TRANSLATION;\n};\n\nexport const presetLabelMap: {\n new: PresetLabel;\n bestseller: PresetLabel;\n unifi6: PresetLabel;\n theOriginal: PresetLabel;\n indoorOutdoor: PresetLabel;\n compact: PresetLabel;\n} = {\n new: {\n text: \"New\",\n color: theme.colors.buttercup,\n },\n bestseller: {\n text: \"Bestseller\",\n color: theme.colors.buttercup,\n },\n unifi6: {\n text: \"UniFi 6\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n theOriginal: {\n text: \"The Original\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n indoorOutdoor: {\n text: \"Indoor / Outdoor\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n compact: {\n text: \"Compact\",\n color: theme.colors.vulcan,\n fontWeight: theme.fontWeight.bold,\n },\n};\n\nexport enum CardMotif {\n light = \"light\",\n dark = \"dark\",\n}\n\nexport type CardProps = {\n motif: CardMotif;\n title: string | ReactNode;\n subtitle?: string;\n titleLarge?: string;\n learnMoreHref: string;\n videoSrc?: string;\n videoPoster?: string;\n backgroundImageUrl?: string;\n backgroundColor?: string;\n border?: boolean;\n labels?: Array<keyof typeof presetLabelMap | Label>;\n onLinkClick?: (e: React.MouseEvent<HTMLElement>, href: string) => void;\n beforeFollowLink?: (url: string) => void;\n link?: LearnMoreLinkProps;\n className?: string;\n};\n"],"names":["presetLabelMap","new","text","color","theme","colors","buttercup","bestseller","unifi6","vulcan","fontWeight","bold","theOriginal","indoorOutdoor","compact","CardMotif"],"mappings":";;AAgBO,MAAMA,cAOT,GAAA;EACFC,GAAK,EAAA;IACHC,IAAM,EAAA,KAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAC;EACtB,CAAA;EACAC,UAAY,EAAA;IACVL,IAAM,EAAA,YAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAC;EACtB,CAAA;EACAE,MAAQ,EAAA;IACNN,IAAM,EAAA,SAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAC,WAAa,EAAA;IACXV,IAAM,EAAA,cAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAE,aAAe,EAAA;IACbX,IAAM,EAAA,kBAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,MAAMM,UAAW,CAAAC;EAC/B,CAAA;EACAG,OAAS,EAAA;IACPZ,IAAM,EAAA,SAAA;IACNC,KAAA,EAAOC,MAAMC,MAAO,CAAAI,MAAA;IACpBC,UAAA,EAAYN,MAAMM,UAAW,CAAAC;EAC/B;AACF,CAAA;AAEY,IAAAI,SAAA,GAAA,gBAAAA,UAAL,IAAA;EACLA,WAAA,OAAQ,CAAA,GAAA,OAAA;EACRA,WAAA,MAAO,CAAA,GAAA,MAAA;EAFGA,OAAAA,UAAAA;AAAA,CAAA,EAAAA,SAAA,IAAA,CAAA,CAAA,CAAA;"}
|
|
@@ -14,7 +14,7 @@ var FeaturesSection_styles = require('./FeaturesSection.styles.js');
|
|
|
14
14
|
var useLockBodyScrollCustom = require('../../hooks/useLockBodyScrollCustom.js');
|
|
15
15
|
var Container = require('../Container/Container.js');
|
|
16
16
|
var StyleableSvgImage = require('../StyleableSvgImage/StyleableSvgImage.js');
|
|
17
|
-
var CloseSvg = require("../../assets/
|
|
17
|
+
var CloseSvg = require("../../assets/close2.svg");
|
|
18
18
|
function _interopDefault(e) {
|
|
19
19
|
return e && e.__esModule ? e : {
|
|
20
20
|
default: e
|
|
@@ -12,7 +12,7 @@ import { WrapOuter, OverlayWrap, OverlayClose, Wrap, MetaWrap, SubHeading, Headi
|
|
|
12
12
|
import { useLockBodyScrollCustom } from '../../hooks/useLockBodyScrollCustom.mjs';
|
|
13
13
|
import { Container } from '../Container/Container.mjs';
|
|
14
14
|
import { StyleableSvgImage } from '../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
15
|
-
import CloseSvg__default from "../../assets/
|
|
15
|
+
import CloseSvg__default from "../../assets/close2.svg";
|
|
16
16
|
"use strict";
|
|
17
17
|
const FEATURES_DEFAULT_PLAYBACK = 500;
|
|
18
18
|
const parseTime = time => parseFloat(time.toFixed(3));
|
|
@@ -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
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
6
|
+
var _externalAssets_CQeh_Inm = require("../../../../../assets/express.jpg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var _externalAssets_CQeh_Inm__default = /*#__PURE__*/_interopDefault(_externalAssets_CQeh_Inm);
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return _externalAssets_CQeh_Inm__default["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(_externalAssets_CQeh_Inm).forEach(function (k) {
|
|
20
20
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function () {
|
|
23
|
-
return
|
|
23
|
+
return _externalAssets_CQeh_Inm[k];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../assets/
|
|
1
|
+
export * from "../../../../../assets/express.jpg";
|
|
2
|
+
export { default } from "../../../../../assets/express.jpg";
|
|
3
3
|
//# sourceMappingURL=express.jpg.mjs.map
|
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
var
|
|
6
|
+
var _externalAssets_Dl5VbUtl = require("../../../../../assets/express7.jpg");
|
|
7
7
|
function _interopDefault(e) {
|
|
8
8
|
return e && e.__esModule ? e : {
|
|
9
9
|
default: e
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var _externalAssets_Dl5VbUtl__default = /*#__PURE__*/_interopDefault(_externalAssets_Dl5VbUtl);
|
|
13
13
|
Object.defineProperty(exports, "default", {
|
|
14
14
|
enumerable: true,
|
|
15
15
|
get: function () {
|
|
16
|
-
return
|
|
16
|
+
return _externalAssets_Dl5VbUtl__default["default"];
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
-
Object.keys(
|
|
19
|
+
Object.keys(_externalAssets_Dl5VbUtl).forEach(function (k) {
|
|
20
20
|
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
|
|
21
21
|
enumerable: true,
|
|
22
22
|
get: function () {
|
|
23
|
-
return
|
|
23
|
+
return _externalAssets_Dl5VbUtl[k];
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from "../../../../../assets/
|
|
2
|
-
export { default } from "../../../../../assets/
|
|
1
|
+
export * from "../../../../../assets/express7.jpg";
|
|
2
|
+
export { default } from "../../../../../assets/express7.jpg";
|
|
3
3
|
//# sourceMappingURL=express7.jpg.mjs.map
|