@ubnt/store.core 9.48.0-alpha.5 → 9.48.0-alpha.6
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 +4 -0
- package/lib/assets/ai-dome.jpg +0 -0
- package/lib/assets/ai-dome2.jpg +0 -0
- package/lib/assets/ai-dslr.jpg +0 -0
- package/lib/assets/ai-dslr2.jpg +0 -0
- package/lib/assets/ai-theta.jpg +0 -0
- package/lib/assets/ai-theta2.jpg +0 -0
- package/lib/assets/attention.svg +5 -5
- package/lib/assets/attention2.svg +5 -5
- package/lib/assets/building-bridge-xg.jpg +0 -0
- package/lib/assets/building-bridge-xg2.jpg +0 -0
- package/lib/assets/close2.svg +3 -2
- package/lib/assets/close3.svg +2 -3
- package/lib/assets/g5-dome-ultra.jpg +0 -0
- package/lib/assets/g5-dome-ultra2.jpg +0 -0
- package/lib/assets/g5-dome.jpg +0 -0
- package/lib/assets/g5-dome2.jpg +0 -0
- package/lib/assets/industrial.jpg +0 -0
- package/lib/assets/industrial2.jpg +0 -0
- package/lib/assets/minus4.svg +8 -8
- package/lib/assets/minus5.svg +8 -8
- package/lib/assets/plus6.svg +9 -9
- package/lib/assets/plus7.svg +9 -9
- 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/ModelCompareV4/ProductList/ProductList.styles.js +1 -1
- package/lib/components/ModelCompareV4/ProductList/ProductList.styles.js.map +1 -1
- package/lib/components/ModelCompareV4/ProductList/ProductList.styles.mjs +1 -1
- package/lib/components/ModelCompareV4/ProductList/ProductList.styles.mjs.map +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/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/modelCompareData/assets/BuildingBridge/building-bridge-xg.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/BuildingBridge/building-bridge-xg.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Bullet/ai-dslr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/ai-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/DomeTurret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Interior/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/Switching/industrial.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/Switching/industrial.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/bullet/ai-dslr.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/ai-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome-ultra.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/dome-and-turret/g5-dome.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/cameras/interior-design/ai-theta.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/industrial.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/switches/utility/industrial.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge-xg.jpg.js +1 -1
- package/lib/constants/modelCompareData/assets/product-list-assets/wifi/building-bridge/building-bridge-xg.jpg.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiDome.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.js +2 -2
- package/lib/constants/modelCompareData/data/products/aiDslr.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridgeXG.js +2 -2
- package/lib/constants/modelCompareData/data/products/buildingBridgeXG.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5Dome.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/g5DomeUltra.js +2 -2
- package/lib/constants/modelCompareData/data/products/g5DomeUltra.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/industrial.js +2 -2
- package/lib/constants/modelCompareData/data/products/industrial.mjs +2 -2
- package/lib/constants/modelCompareData/data/products/theta.js +2 -2
- package/lib/constants/modelCompareData/data/products/theta.mjs +2 -2
- package/lib/constants/optionIcons.js +6 -6
- package/lib/constants/optionIcons.mjs +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@
|
|
|
6
6
|
|
|
7
7
|
## Releases
|
|
8
8
|
|
|
9
|
+
### 9.48.0-alpha.6
|
|
10
|
+
|
|
11
|
+
- [Feat] [MIC-472](https://ubiquiti.atlassian.net/browse/MIC-472) Give ModelCompareV4 cursor styles priority.
|
|
12
|
+
|
|
9
13
|
### 9.48.0-alpha.5
|
|
10
14
|
|
|
11
15
|
- [Feat] [MIC-472](https://ubiquiti.atlassian.net/browse/MIC-472) Fix ModelCompareV4 bug where product list cards aren't active if the default selected group is the first group of the list.
|
package/lib/assets/ai-dome.jpg
CHANGED
|
Binary file
|
package/lib/assets/ai-dome2.jpg
CHANGED
|
Binary file
|
package/lib/assets/ai-dslr.jpg
CHANGED
|
Binary file
|
package/lib/assets/ai-dslr2.jpg
CHANGED
|
Binary file
|
package/lib/assets/ai-theta.jpg
CHANGED
|
Binary file
|
package/lib/assets/ai-theta2.jpg
CHANGED
|
Binary file
|
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="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>
|
|
@@ -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>
|
|
Binary file
|
|
Binary file
|
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>
|
|
Binary file
|
|
Binary file
|
package/lib/assets/g5-dome.jpg
CHANGED
|
Binary file
|
package/lib/assets/g5-dome2.jpg
CHANGED
|
Binary file
|
|
Binary file
|
|
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/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="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/plus7.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>
|
|
@@ -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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductList.styles.js","sources":["../../../../src/components/ModelCompareV4/ProductList/ProductList.styles.tsx"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\nconst scrollBarHeight = 16;\n\nconst productCardAnimation = keyframes`\n50% {\n transform: scale(1.025);\n}\n 100% {\n box-shadow: 0 0 13px -1px rgb(33 35 39 / 0.174);\n /* we can't return to scale(1) because this creates a bug where the contents of the product card slightly shift on hover */\n transform: scale(0.999);\n }\n`;\n\nconst productGroupLineAnimation = keyframes`\n 25% {\n background: ${theme.colors.primaryBlue};\n height: 2px;\n }\n\n 100% {\n width: 100%;\n }\n`;\n\n// seconds\nconst productGroupAnimationDuration = 0.125;\n\n// seconds\nconst productCardAnimationDuration = 0.25;\n\nexport const Wrapper = styled.div`\n position: relative;\n margin-bottom: 20px;\n`;\n\nexport const Container = styled.div<{\n $isHovering: boolean;\n}>`\n overflow-x: auto;\n padding-bottom: 40px;\n\n /**\n * We cannot define padding on some of these scroll bar\n * elements. Because of this, we're defining scroll bar colors\n * with linear-gradient so users don't have to be very\n * accurate when clicking the scroll bar while keeping the\n * styles of the scroll bar slim.\n */\n\n &::-webkit-scrollbar {\n height: ${scrollBarHeight}px;\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n #eeeff1 6px,\n #eeeff1 8px,\n transparent 8px\n );\n }\n\n &::-webkit-scrollbar-thumb {\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n ${theme.colors.primaryBlue} 6px,\n ${theme.colors.primaryBlue} 8px,\n transparent 8px\n );\n\n ${({ $isHovering }) =>\n $isHovering &&\n css`\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 5px,\n ${theme.colors.primaryBlue} 5px,\n ${theme.colors.primaryBlue} 9px,\n transparent 9px\n );\n `}\n }\n`;\n\nexport const ProductGroupProductListContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n`;\n\nexport const GroupTabsContainer = styled.div`\n width: 100%;\n overflow-x: auto;\n`;\n\nexport const GroupTabs = styled.div`\n display: flex;\n background: #f4f5f6;\n border-radius: 8px;\n gap: 12px;\n width: fit-content;\n padding: 2px;\n margin: 0 auto 24px;\n`;\n\nexport const GroupTab = styled.button<{\n $isActive: boolean;\n}>`\n display: flex;\n align-items: center;\n gap: 6px;\n background: transparent;\n border: none;\n border-radius: 6px;\n color: #676f79;\n padding: 4px 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n background: ${theme.colors.white};\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const GroupTabCopy = styled.span`\n white-space: nowrap;\n`;\n\nexport const ProductGroups = styled.div<{ $columns: number }>`\n min-width: 100%;\n display: grid;\n gap: 0 10px;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n padding: 0 0 10px 10px;\n`;\n\nexport const ProductGroupLabelContainer = styled.div<{ $span: number }>`\n display: flex;\n grid-column: span ${({ $span }) => $span ?? 1};\n gap: 0 20px;\n`;\n\nexport const ProductGroupLabel = styled.span<{\n $isActive: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n color: #808893;\n font-size: 18px;\n font-weight: 700;\n scroll-margin-left: 10px;\n white-space: nowrap;\n\n ${({ $isActive, $productGroupsSelectorExists }) =>\n ($isActive || !$productGroupsSelectorExists) &&\n css`\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const ProductGroupLabelLineContainer = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n`;\n\nexport const ProductGroupLabelLine = styled.div<{\n $isActive: boolean;\n $playAnimation: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n width: 0;\n height: 1px;\n background: #eeeff1;\n\n ${({ $isActive, $playAnimation, $productGroupsSelectorExists }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productGroupLineAnimation} ease-in-out 1 forwards;\n `\n : $isActive &&\n $playAnimation &&\n css`\n animation: ${productGroupLineAnimation}\n ${productGroupAnimationDuration + productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n`;\n\nexport const ProductList = styled.div<{\n $columns: number;\n $isDragging: boolean;\n $overflowExists: boolean;\n}>`\n display: grid;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n align-items: flex-end;\n gap: 0 10px;\n padding: 0 10px;\n\n ${({ $overflowExists }) =>\n $overflowExists &&\n css`\n cursor: grab;\n `}\n\n ${({ $isDragging, $overflowExists }) =>\n $overflowExists &&\n $isDragging &&\n css`\n cursor: grabbing;\n `}\n`;\n\nexport const Product = styled.div<{\n $isActive: boolean;\n $groupIndex: number;\n $playAnimation: boolean;\n $groupLength: number;\n $hasBeenObserved: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n background: ${theme.colors.white};\n padding: 20px 10px;\n border-radius: 6px;\n height: 100%;\n min-height: 100%;\n user-drag: none;\n user-select: none;\n /* can't use scale(1) because the content slightly shifts on hover */\n transform: scale(0.999);\n\n ${({\n $isActive,\n $groupIndex,\n $playAnimation,\n $groupLength,\n $hasBeenObserved,\n $productGroupsSelectorExists,\n }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productCardAnimation} ease-in-out 1 forwards;\n `\n : $hasBeenObserved &&\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out\n ${(productGroupAnimationDuration / $groupLength) * $groupIndex}s 1\n forwards;\n `}\n`;\n\nexport const Image = styled.img`\n user-drag: none;\n user-select: none;\n`;\n\nexport const DescriptionButtonContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 12px 0;\n user-select: none;\n\n justify-content: space-between;\n flex-grow: 1;\n`;\n\nexport const Name = styled.div`\n color: #212427;\n text-align: center;\n font-size: 16px;\n font-weight: 700;\n\n display: flex;\n justify-content: center;\n`;\n\nexport const Description = styled.div`\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.2;\n color: rgb(0 0 0 / 0.65);\n display: flex;\n justify-content: center;\n`;\n\nexport const ButtonIcon = styled(StyleableSvgImage)<{ $isSelected: boolean }>`\n transition: transform 0.125s ease-in-out;\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n transform: rotate(45deg);\n `}\n`;\n\nexport const Button = styled.button<{\n $isSelected: boolean;\n $disabled: boolean;\n}>`\n border: 1px solid #808893;\n border-radius: 4px;\n color: #808893;\n background: transparent;\n display: flex;\n align-items: center;\n padding: 10px 15px;\n cursor: pointer;\n transition: 0.3s;\n /* TODO: would be nice to figure out how to 1) not have the width change when toggling between active/inactive states while 2) also making this dynamic enough to handle translations and 3) doing all of this without a lot of JavaScript */\n width: fit-content;\n margin: 0 auto;\n\n &:hover {\n background: #80889310;\n }\n\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n background: ${theme.colors.primaryBlue};\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n\n &:hover {\n background: ${theme.colors.dodgerblue};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n cursor: not-allowed;\n `}\n`;\n\nexport const ButtonCopy = styled.span`\n font-size: 14px;\n font-weight: 700;\n`;\n"],"names":["scrollBarHeight","productCardAnimation","keyframes","productGroupLineAnimation","theme","colors","primaryBlue","productGroupAnimationDuration","productCardAnimationDuration","Wrapper","styled","div","Container","$isHovering","css","ProductGroupProductListContainer","GroupTabsContainer","GroupTabs","GroupTab","button","$isActive","white","GroupTabCopy","span","ProductGroups","$columns","ProductGroupLabelContainer","$span","ProductGroupLabel","$productGroupsSelectorExists","ProductGroupLabelLineContainer","ProductGroupLabelLine","$playAnimation","ProductList","$overflowExists","$isDragging","Product","$groupIndex","$groupLength","$hasBeenObserved","Image","img","DescriptionButtonContainer","Name","Description","ButtonIcon","StyleableSvgImage","$isSelected","Button","dodgerblue","$disabled","ButtonCopy"],"mappings":";;;;;;;;;;;;;AAKA,MAAMA,eAAkB,GAAA,EAAA;AAExB,MAAMC,oBAAuB,GAAAC,MAAAA,CAAAA,SAAA;AAAA;AAAA;AAA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../../src/components/ModelCompareV4/ProductList/ProductList.styles.tsx"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\nconst scrollBarHeight = 16;\n\nconst productCardAnimation = keyframes`\n50% {\n transform: scale(1.025);\n}\n 100% {\n box-shadow: 0 0 13px -1px rgb(33 35 39 / 0.174);\n /* we can't return to scale(1) because this creates a bug where the contents of the product card slightly shift on hover */\n transform: scale(0.999);\n }\n`;\n\nconst productGroupLineAnimation = keyframes`\n 25% {\n background: ${theme.colors.primaryBlue};\n height: 2px;\n }\n\n 100% {\n width: 100%;\n }\n`;\n\n// seconds\nconst productGroupAnimationDuration = 0.125;\n\n// seconds\nconst productCardAnimationDuration = 0.25;\n\nexport const Wrapper = styled.div`\n position: relative;\n margin-bottom: 20px;\n`;\n\nexport const Container = styled.div<{\n $isHovering: boolean;\n}>`\n overflow-x: auto;\n padding-bottom: 40px;\n\n /**\n * We cannot define padding on some of these scroll bar\n * elements. Because of this, we're defining scroll bar colors\n * with linear-gradient so users don't have to be very\n * accurate when clicking the scroll bar while keeping the\n * styles of the scroll bar slim.\n */\n\n &::-webkit-scrollbar {\n height: ${scrollBarHeight}px;\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n #eeeff1 6px,\n #eeeff1 8px,\n transparent 8px\n );\n }\n\n &::-webkit-scrollbar-thumb {\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n ${theme.colors.primaryBlue} 6px,\n ${theme.colors.primaryBlue} 8px,\n transparent 8px\n );\n\n ${({ $isHovering }) =>\n $isHovering &&\n css`\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 5px,\n ${theme.colors.primaryBlue} 5px,\n ${theme.colors.primaryBlue} 9px,\n transparent 9px\n );\n `}\n }\n`;\n\nexport const ProductGroupProductListContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n`;\n\nexport const GroupTabsContainer = styled.div`\n width: 100%;\n overflow-x: auto;\n`;\n\nexport const GroupTabs = styled.div`\n display: flex;\n background: #f4f5f6;\n border-radius: 8px;\n gap: 12px;\n width: fit-content;\n padding: 2px;\n margin: 0 auto 24px;\n`;\n\nexport const GroupTab = styled.button<{\n $isActive: boolean;\n}>`\n display: flex;\n align-items: center;\n gap: 6px;\n background: transparent;\n border: none;\n border-radius: 6px;\n color: #676f79;\n padding: 4px 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n background: ${theme.colors.white};\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const GroupTabCopy = styled.span`\n white-space: nowrap;\n`;\n\nexport const ProductGroups = styled.div<{ $columns: number }>`\n min-width: 100%;\n display: grid;\n gap: 0 10px;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n padding: 0 0 10px 10px;\n`;\n\nexport const ProductGroupLabelContainer = styled.div<{ $span: number }>`\n display: flex;\n grid-column: span ${({ $span }) => $span ?? 1};\n gap: 0 20px;\n`;\n\nexport const ProductGroupLabel = styled.span<{\n $isActive: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n color: #808893;\n font-size: 18px;\n font-weight: 700;\n scroll-margin-left: 10px;\n white-space: nowrap;\n\n ${({ $isActive, $productGroupsSelectorExists }) =>\n ($isActive || !$productGroupsSelectorExists) &&\n css`\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const ProductGroupLabelLineContainer = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n`;\n\nexport const ProductGroupLabelLine = styled.div<{\n $isActive: boolean;\n $playAnimation: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n width: 0;\n height: 1px;\n background: #eeeff1;\n\n ${({ $isActive, $playAnimation, $productGroupsSelectorExists }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productGroupLineAnimation} ease-in-out 1 forwards;\n `\n : $isActive &&\n $playAnimation &&\n css`\n animation: ${productGroupLineAnimation}\n ${productGroupAnimationDuration + productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n`;\n\nexport const ProductList = styled.div<{\n $columns: number;\n $isDragging: boolean;\n $overflowExists: boolean;\n}>`\n display: grid;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n align-items: flex-end;\n gap: 0 10px;\n padding: 0 10px;\n\n ${({ $overflowExists }) =>\n $overflowExists &&\n css`\n cursor: grab;\n `}\n\n ${({ $isDragging, $overflowExists }) =>\n $overflowExists &&\n $isDragging &&\n css`\n cursor: grabbing;\n `}\n`;\n\nexport const Product = styled.div<{\n $isActive: boolean;\n $groupIndex: number;\n $playAnimation: boolean;\n $groupLength: number;\n $hasBeenObserved: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n background: ${theme.colors.white};\n padding: 20px 10px;\n border-radius: 6px;\n height: 100%;\n min-height: 100%;\n user-drag: none;\n user-select: none;\n /* can't use scale(1) because the content slightly shifts on hover */\n transform: scale(0.999);\n\n ${({\n $isActive,\n $groupIndex,\n $playAnimation,\n $groupLength,\n $hasBeenObserved,\n $productGroupsSelectorExists,\n }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productCardAnimation} ease-in-out 1 forwards;\n `\n : $hasBeenObserved &&\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out\n ${(productGroupAnimationDuration / $groupLength) * $groupIndex}s 1\n forwards;\n `}\n`;\n\nexport const Image = styled.img`\n user-drag: none;\n user-select: none;\n`;\n\nexport const DescriptionButtonContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 12px 0;\n user-select: none;\n\n justify-content: space-between;\n flex-grow: 1;\n`;\n\nexport const Name = styled.div`\n color: #212427;\n text-align: center;\n font-size: 16px;\n font-weight: 700;\n\n display: flex;\n justify-content: center;\n`;\n\nexport const Description = styled.div`\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.2;\n color: rgb(0 0 0 / 0.65);\n display: flex;\n justify-content: center;\n`;\n\nexport const ButtonIcon = styled(StyleableSvgImage)<{ $isSelected: boolean }>`\n transition: transform 0.125s ease-in-out;\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n transform: rotate(45deg);\n `}\n`;\n\nexport const Button = styled.button<{\n $isSelected: boolean;\n $disabled: boolean;\n}>`\n border: 1px solid #808893;\n border-radius: 4px;\n color: #808893;\n background: transparent;\n display: flex;\n align-items: center;\n padding: 10px 15px;\n cursor: pointer;\n transition: 0.3s;\n /* TODO: would be nice to figure out how to 1) not have the width change when toggling between active/inactive states while 2) also making this dynamic enough to handle translations and 3) doing all of this without a lot of JavaScript */\n width: fit-content;\n margin: 0 auto;\n\n &:hover {\n background: #80889310;\n }\n\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n background: ${theme.colors.primaryBlue};\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n\n &:hover {\n background: ${theme.colors.dodgerblue};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n cursor: not-allowed !important;\n `}\n`;\n\nexport const ButtonCopy = styled.span`\n font-size: 14px;\n font-weight: 700;\n`;\n"],"names":["scrollBarHeight","productCardAnimation","keyframes","productGroupLineAnimation","theme","colors","primaryBlue","productGroupAnimationDuration","productCardAnimationDuration","Wrapper","styled","div","Container","$isHovering","css","ProductGroupProductListContainer","GroupTabsContainer","GroupTabs","GroupTab","button","$isActive","white","GroupTabCopy","span","ProductGroups","$columns","ProductGroupLabelContainer","$span","ProductGroupLabel","$productGroupsSelectorExists","ProductGroupLabelLineContainer","ProductGroupLabelLine","$playAnimation","ProductList","$overflowExists","$isDragging","Product","$groupIndex","$groupLength","$hasBeenObserved","Image","img","DescriptionButtonContainer","Name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AA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMqC,aAAazC,eAAO,CAAA,SAAA,CAAA,CAAAa,IAAA;AAAA;AAAA;AAAA,CAAA;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductList.styles.mjs","sources":["../../../../src/components/ModelCompareV4/ProductList/ProductList.styles.tsx"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\nconst scrollBarHeight = 16;\n\nconst productCardAnimation = keyframes`\n50% {\n transform: scale(1.025);\n}\n 100% {\n box-shadow: 0 0 13px -1px rgb(33 35 39 / 0.174);\n /* we can't return to scale(1) because this creates a bug where the contents of the product card slightly shift on hover */\n transform: scale(0.999);\n }\n`;\n\nconst productGroupLineAnimation = keyframes`\n 25% {\n background: ${theme.colors.primaryBlue};\n height: 2px;\n }\n\n 100% {\n width: 100%;\n }\n`;\n\n// seconds\nconst productGroupAnimationDuration = 0.125;\n\n// seconds\nconst productCardAnimationDuration = 0.25;\n\nexport const Wrapper = styled.div`\n position: relative;\n margin-bottom: 20px;\n`;\n\nexport const Container = styled.div<{\n $isHovering: boolean;\n}>`\n overflow-x: auto;\n padding-bottom: 40px;\n\n /**\n * We cannot define padding on some of these scroll bar\n * elements. Because of this, we're defining scroll bar colors\n * with linear-gradient so users don't have to be very\n * accurate when clicking the scroll bar while keeping the\n * styles of the scroll bar slim.\n */\n\n &::-webkit-scrollbar {\n height: ${scrollBarHeight}px;\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n #eeeff1 6px,\n #eeeff1 8px,\n transparent 8px\n );\n }\n\n &::-webkit-scrollbar-thumb {\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n ${theme.colors.primaryBlue} 6px,\n ${theme.colors.primaryBlue} 8px,\n transparent 8px\n );\n\n ${({ $isHovering }) =>\n $isHovering &&\n css`\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 5px,\n ${theme.colors.primaryBlue} 5px,\n ${theme.colors.primaryBlue} 9px,\n transparent 9px\n );\n `}\n }\n`;\n\nexport const ProductGroupProductListContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n`;\n\nexport const GroupTabsContainer = styled.div`\n width: 100%;\n overflow-x: auto;\n`;\n\nexport const GroupTabs = styled.div`\n display: flex;\n background: #f4f5f6;\n border-radius: 8px;\n gap: 12px;\n width: fit-content;\n padding: 2px;\n margin: 0 auto 24px;\n`;\n\nexport const GroupTab = styled.button<{\n $isActive: boolean;\n}>`\n display: flex;\n align-items: center;\n gap: 6px;\n background: transparent;\n border: none;\n border-radius: 6px;\n color: #676f79;\n padding: 4px 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n background: ${theme.colors.white};\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const GroupTabCopy = styled.span`\n white-space: nowrap;\n`;\n\nexport const ProductGroups = styled.div<{ $columns: number }>`\n min-width: 100%;\n display: grid;\n gap: 0 10px;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n padding: 0 0 10px 10px;\n`;\n\nexport const ProductGroupLabelContainer = styled.div<{ $span: number }>`\n display: flex;\n grid-column: span ${({ $span }) => $span ?? 1};\n gap: 0 20px;\n`;\n\nexport const ProductGroupLabel = styled.span<{\n $isActive: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n color: #808893;\n font-size: 18px;\n font-weight: 700;\n scroll-margin-left: 10px;\n white-space: nowrap;\n\n ${({ $isActive, $productGroupsSelectorExists }) =>\n ($isActive || !$productGroupsSelectorExists) &&\n css`\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const ProductGroupLabelLineContainer = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n`;\n\nexport const ProductGroupLabelLine = styled.div<{\n $isActive: boolean;\n $playAnimation: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n width: 0;\n height: 1px;\n background: #eeeff1;\n\n ${({ $isActive, $playAnimation, $productGroupsSelectorExists }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productGroupLineAnimation} ease-in-out 1 forwards;\n `\n : $isActive &&\n $playAnimation &&\n css`\n animation: ${productGroupLineAnimation}\n ${productGroupAnimationDuration + productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n`;\n\nexport const ProductList = styled.div<{\n $columns: number;\n $isDragging: boolean;\n $overflowExists: boolean;\n}>`\n display: grid;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n align-items: flex-end;\n gap: 0 10px;\n padding: 0 10px;\n\n ${({ $overflowExists }) =>\n $overflowExists &&\n css`\n cursor: grab;\n `}\n\n ${({ $isDragging, $overflowExists }) =>\n $overflowExists &&\n $isDragging &&\n css`\n cursor: grabbing;\n `}\n`;\n\nexport const Product = styled.div<{\n $isActive: boolean;\n $groupIndex: number;\n $playAnimation: boolean;\n $groupLength: number;\n $hasBeenObserved: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n background: ${theme.colors.white};\n padding: 20px 10px;\n border-radius: 6px;\n height: 100%;\n min-height: 100%;\n user-drag: none;\n user-select: none;\n /* can't use scale(1) because the content slightly shifts on hover */\n transform: scale(0.999);\n\n ${({\n $isActive,\n $groupIndex,\n $playAnimation,\n $groupLength,\n $hasBeenObserved,\n $productGroupsSelectorExists,\n }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productCardAnimation} ease-in-out 1 forwards;\n `\n : $hasBeenObserved &&\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out\n ${(productGroupAnimationDuration / $groupLength) * $groupIndex}s 1\n forwards;\n `}\n`;\n\nexport const Image = styled.img`\n user-drag: none;\n user-select: none;\n`;\n\nexport const DescriptionButtonContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 12px 0;\n user-select: none;\n\n justify-content: space-between;\n flex-grow: 1;\n`;\n\nexport const Name = styled.div`\n color: #212427;\n text-align: center;\n font-size: 16px;\n font-weight: 700;\n\n display: flex;\n justify-content: center;\n`;\n\nexport const Description = styled.div`\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.2;\n color: rgb(0 0 0 / 0.65);\n display: flex;\n justify-content: center;\n`;\n\nexport const ButtonIcon = styled(StyleableSvgImage)<{ $isSelected: boolean }>`\n transition: transform 0.125s ease-in-out;\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n transform: rotate(45deg);\n `}\n`;\n\nexport const Button = styled.button<{\n $isSelected: boolean;\n $disabled: boolean;\n}>`\n border: 1px solid #808893;\n border-radius: 4px;\n color: #808893;\n background: transparent;\n display: flex;\n align-items: center;\n padding: 10px 15px;\n cursor: pointer;\n transition: 0.3s;\n /* TODO: would be nice to figure out how to 1) not have the width change when toggling between active/inactive states while 2) also making this dynamic enough to handle translations and 3) doing all of this without a lot of JavaScript */\n width: fit-content;\n margin: 0 auto;\n\n &:hover {\n background: #80889310;\n }\n\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n background: ${theme.colors.primaryBlue};\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n\n &:hover {\n background: ${theme.colors.dodgerblue};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n cursor: not-allowed;\n `}\n`;\n\nexport const ButtonCopy = styled.span`\n font-size: 14px;\n font-weight: 700;\n`;\n"],"names":["scrollBarHeight","productCardAnimation","keyframes","productGroupLineAnimation","theme","colors","primaryBlue","productGroupAnimationDuration","productCardAnimationDuration","Wrapper","styled","div","Container","$isHovering","css","ProductGroupProductListContainer","GroupTabsContainer","GroupTabs","GroupTab","button","$isActive","white","GroupTabCopy","span","ProductGroups","$columns","ProductGroupLabelContainer","$span","ProductGroupLabel","$productGroupsSelectorExists","ProductGroupLabelLineContainer","ProductGroupLabelLine","$playAnimation","ProductList","$overflowExists","$isDragging","Product","$groupIndex","$groupLength","$hasBeenObserved","Image","img","DescriptionButtonContainer","Name","Description","ButtonIcon","StyleableSvgImage","$isSelected","Button","dodgerblue","$disabled","ButtonCopy"],"mappings":";;;;;AAKA,MAAMA,eAAkB,GAAA,EAAA;AAExB,MAAMC,oBAAuB,GAAAC,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAW7B,MAAMC,yBAA4B,GAAAD,SAAA;AAAA;AAAA,sBAEZE,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAU9C,MAAMC,6BAAgC,GAAA,KAAA;AAGtC,MAAMC,4BAA+B,GAAA,IAAA;AAE9B,MAAMC,UAAUC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA,CAAA;AAKvB,MAAMC,YAAYF,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,cAelBX,eAAe;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,QAgBrBI,KAAA,CAAMC,OAAOC,WAAW;AAAA,QACxBF,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA;AAAA,MAI1B,CAAC;EAAEO;CAAY,KACfA,WACA,IAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,YAKMV,KAAA,CAAMC,OAAOC,WAAW;AAAA,YACxBF,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA,OAG7B;AAAA;AAAA,CAAA;AAIA,MAAMS,mCAAmCL,MAAO,CAAAC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AA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAUpB,MAAMiC,cAAclC,MAAO,CAAAC,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAUrB,MAAAkC,UAAA,GAAanC,OAAOoC,iBAAiB,CAAA;AAAA;AAAA,IAE9C,CAAC;EAAEC;CAAY,KACfA,WACA,IAAAjC,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMkC,SAAStC,MAAO,CAAAS,MAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAqBzB,CAAC;EAAE4B;CAAY,KACfA,WACA,IAAAjC,GAAA;AAAA,oBACgBV,KAAA,CAAMC,OAAOC,WAAW;AAAA,0BAClBF,KAAA,CAAMC,OAAOC,WAAW;AAAA,eACnCF,KAAA,CAAMC,OAAOgB,KAAK;AAAA;AAAA;AAAA,sBAGXjB,KAAA,CAAMC,OAAO4C,UAAU;AAAA;AAAA,KAExC;AAAA;AAAA,IAED,CAAC;EAAEC;CAAU,KACbA,SACA,IAAApC,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMqC,aAAazC,MAAO,CAAAa,IAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
1
|
+
{"version":3,"file":"ProductList.styles.mjs","sources":["../../../../src/components/ModelCompareV4/ProductList/ProductList.styles.tsx"],"sourcesContent":["import styled, { css, keyframes } from \"styled-components\";\n\nimport { theme } from \"../../../constants/theme\";\nimport { StyleableSvgImage } from \"../../StyleableSvgImage\";\n\nconst scrollBarHeight = 16;\n\nconst productCardAnimation = keyframes`\n50% {\n transform: scale(1.025);\n}\n 100% {\n box-shadow: 0 0 13px -1px rgb(33 35 39 / 0.174);\n /* we can't return to scale(1) because this creates a bug where the contents of the product card slightly shift on hover */\n transform: scale(0.999);\n }\n`;\n\nconst productGroupLineAnimation = keyframes`\n 25% {\n background: ${theme.colors.primaryBlue};\n height: 2px;\n }\n\n 100% {\n width: 100%;\n }\n`;\n\n// seconds\nconst productGroupAnimationDuration = 0.125;\n\n// seconds\nconst productCardAnimationDuration = 0.25;\n\nexport const Wrapper = styled.div`\n position: relative;\n margin-bottom: 20px;\n`;\n\nexport const Container = styled.div<{\n $isHovering: boolean;\n}>`\n overflow-x: auto;\n padding-bottom: 40px;\n\n /**\n * We cannot define padding on some of these scroll bar\n * elements. Because of this, we're defining scroll bar colors\n * with linear-gradient so users don't have to be very\n * accurate when clicking the scroll bar while keeping the\n * styles of the scroll bar slim.\n */\n\n &::-webkit-scrollbar {\n height: ${scrollBarHeight}px;\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n #eeeff1 6px,\n #eeeff1 8px,\n transparent 8px\n );\n }\n\n &::-webkit-scrollbar-thumb {\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 6px,\n ${theme.colors.primaryBlue} 6px,\n ${theme.colors.primaryBlue} 8px,\n transparent 8px\n );\n\n ${({ $isHovering }) =>\n $isHovering &&\n css`\n /* at the top of this componnent's definition is a note on why we're defining colors this way */\n background-image: linear-gradient(\n to bottom,\n transparent 5px,\n ${theme.colors.primaryBlue} 5px,\n ${theme.colors.primaryBlue} 9px,\n transparent 9px\n );\n `}\n }\n`;\n\nexport const ProductGroupProductListContainer = styled.div`\n display: grid;\n grid-template-columns: 1fr;\n`;\n\nexport const GroupTabsContainer = styled.div`\n width: 100%;\n overflow-x: auto;\n`;\n\nexport const GroupTabs = styled.div`\n display: flex;\n background: #f4f5f6;\n border-radius: 8px;\n gap: 12px;\n width: fit-content;\n padding: 2px;\n margin: 0 auto 24px;\n`;\n\nexport const GroupTab = styled.button<{\n $isActive: boolean;\n}>`\n display: flex;\n align-items: center;\n gap: 6px;\n background: transparent;\n border: none;\n border-radius: 6px;\n color: #676f79;\n padding: 4px 12px;\n cursor: pointer;\n font-size: 14px;\n font-weight: 400;\n line-height: 20px;\n\n ${({ $isActive }) =>\n $isActive &&\n css`\n background: ${theme.colors.white};\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const GroupTabCopy = styled.span`\n white-space: nowrap;\n`;\n\nexport const ProductGroups = styled.div<{ $columns: number }>`\n min-width: 100%;\n display: grid;\n gap: 0 10px;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n padding: 0 0 10px 10px;\n`;\n\nexport const ProductGroupLabelContainer = styled.div<{ $span: number }>`\n display: flex;\n grid-column: span ${({ $span }) => $span ?? 1};\n gap: 0 20px;\n`;\n\nexport const ProductGroupLabel = styled.span<{\n $isActive: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n color: #808893;\n font-size: 18px;\n font-weight: 700;\n scroll-margin-left: 10px;\n white-space: nowrap;\n\n ${({ $isActive, $productGroupsSelectorExists }) =>\n ($isActive || !$productGroupsSelectorExists) &&\n css`\n color: ${theme.colors.primaryBlue};\n `}\n`;\n\nexport const ProductGroupLabelLineContainer = styled.div`\n width: 100%;\n height: 100%;\n display: flex;\n align-items: center;\n`;\n\nexport const ProductGroupLabelLine = styled.div<{\n $isActive: boolean;\n $playAnimation: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n width: 0;\n height: 1px;\n background: #eeeff1;\n\n ${({ $isActive, $playAnimation, $productGroupsSelectorExists }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productGroupLineAnimation} ease-in-out 1 forwards;\n `\n : $isActive &&\n $playAnimation &&\n css`\n animation: ${productGroupLineAnimation}\n ${productGroupAnimationDuration + productCardAnimationDuration}s\n ease-in-out 1 forwards;\n `}\n`;\n\nexport const ProductList = styled.div<{\n $columns: number;\n $isDragging: boolean;\n $overflowExists: boolean;\n}>`\n display: grid;\n grid-template-columns: repeat(${({ $columns }) => $columns}, 205px);\n align-items: flex-end;\n gap: 0 10px;\n padding: 0 10px;\n\n ${({ $overflowExists }) =>\n $overflowExists &&\n css`\n cursor: grab;\n `}\n\n ${({ $isDragging, $overflowExists }) =>\n $overflowExists &&\n $isDragging &&\n css`\n cursor: grabbing;\n `}\n`;\n\nexport const Product = styled.div<{\n $isActive: boolean;\n $groupIndex: number;\n $playAnimation: boolean;\n $groupLength: number;\n $hasBeenObserved: boolean;\n $productGroupsSelectorExists: boolean;\n}>`\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: flex-end;\n background: ${theme.colors.white};\n padding: 20px 10px;\n border-radius: 6px;\n height: 100%;\n min-height: 100%;\n user-drag: none;\n user-select: none;\n /* can't use scale(1) because the content slightly shifts on hover */\n transform: scale(0.999);\n\n ${({\n $isActive,\n $groupIndex,\n $playAnimation,\n $groupLength,\n $hasBeenObserved,\n $productGroupsSelectorExists,\n }) =>\n !$productGroupsSelectorExists\n ? css`\n animation: ${productCardAnimation} ease-in-out 1 forwards;\n `\n : $hasBeenObserved &&\n $isActive &&\n $playAnimation &&\n css`\n animation: ${productCardAnimation} ${productCardAnimationDuration}s\n ease-in-out\n ${(productGroupAnimationDuration / $groupLength) * $groupIndex}s 1\n forwards;\n `}\n`;\n\nexport const Image = styled.img`\n user-drag: none;\n user-select: none;\n`;\n\nexport const DescriptionButtonContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 12px 0;\n user-select: none;\n\n justify-content: space-between;\n flex-grow: 1;\n`;\n\nexport const Name = styled.div`\n color: #212427;\n text-align: center;\n font-size: 16px;\n font-weight: 700;\n\n display: flex;\n justify-content: center;\n`;\n\nexport const Description = styled.div`\n text-align: center;\n font-size: 14px;\n font-weight: 400;\n line-height: 1.2;\n color: rgb(0 0 0 / 0.65);\n display: flex;\n justify-content: center;\n`;\n\nexport const ButtonIcon = styled(StyleableSvgImage)<{ $isSelected: boolean }>`\n transition: transform 0.125s ease-in-out;\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n transform: rotate(45deg);\n `}\n`;\n\nexport const Button = styled.button<{\n $isSelected: boolean;\n $disabled: boolean;\n}>`\n border: 1px solid #808893;\n border-radius: 4px;\n color: #808893;\n background: transparent;\n display: flex;\n align-items: center;\n padding: 10px 15px;\n cursor: pointer;\n transition: 0.3s;\n /* TODO: would be nice to figure out how to 1) not have the width change when toggling between active/inactive states while 2) also making this dynamic enough to handle translations and 3) doing all of this without a lot of JavaScript */\n width: fit-content;\n margin: 0 auto;\n\n &:hover {\n background: #80889310;\n }\n\n ${({ $isSelected }) =>\n $isSelected &&\n css`\n background: ${theme.colors.primaryBlue};\n border: 1px solid ${theme.colors.primaryBlue};\n color: ${theme.colors.white};\n\n &:hover {\n background: ${theme.colors.dodgerblue};\n }\n `}\n\n ${({ $disabled }) =>\n $disabled &&\n css`\n cursor: not-allowed !important;\n `}\n`;\n\nexport const ButtonCopy = styled.span`\n font-size: 14px;\n font-weight: 700;\n`;\n"],"names":["scrollBarHeight","productCardAnimation","keyframes","productGroupLineAnimation","theme","colors","primaryBlue","productGroupAnimationDuration","productCardAnimationDuration","Wrapper","styled","div","Container","$isHovering","css","ProductGroupProductListContainer","GroupTabsContainer","GroupTabs","GroupTab","button","$isActive","white","GroupTabCopy","span","ProductGroups","$columns","ProductGroupLabelContainer","$span","ProductGroupLabel","$productGroupsSelectorExists","ProductGroupLabelLineContainer","ProductGroupLabelLine","$playAnimation","ProductList","$overflowExists","$isDragging","Product","$groupIndex","$groupLength","$hasBeenObserved","Image","img","DescriptionButtonContainer","Name","Description","ButtonIcon","StyleableSvgImage","$isSelected","Button","dodgerblue","$disabled","ButtonCopy"],"mappings":";;;;;AAKA,MAAMA,eAAkB,GAAA,EAAA;AAExB,MAAMC,oBAAuB,GAAAC,SAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAW7B,MAAMC,yBAA4B,GAAAD,SAAA;AAAA;AAAA,sBAEZE,KAAA,CAAMC,OAAOC,WAAW;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAAA;AAU9C,MAAMC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MC,OAAOC,WAAW;AAAA,eACnCF,KAAA,CAAMC,OAAOgB,KAAK;AAAA;AAAA;AAAA,sBAGXjB,KAAA,CAAMC,OAAO4C,UAAU;AAAA;AAAA,KAExC;AAAA;AAAA,IAED,CAAC;EAAEC;CAAU,KACbA,SACA,IAAApC,GAAA;AAAA;AAAA,KAEC;AAAA,CAAA;AAGE,MAAMqC,aAAazC,MAAO,CAAAa,IAAA;AAAA;AAAA;AAAA,CAAA;"}
|
|
@@ -12,7 +12,7 @@ require('./assets/attention.svg.js');
|
|
|
12
12
|
var InputCard_styles = require('./InputCard.styles.js');
|
|
13
13
|
require('./InputSections/index.js');
|
|
14
14
|
var CustomImage = require('../../../../CustomImage/CustomImage.js');
|
|
15
|
-
var attentionIcon = require("../../../../../assets/
|
|
15
|
+
var attentionIcon = require("../../../../../assets/attention2.svg");
|
|
16
16
|
var OptionSelectSection = require('./InputSections/OptionSelectSection.js');
|
|
17
17
|
var SliderSection = require('./InputSections/SliderSection.js');
|
|
18
18
|
var CounterSection = require('./InputSections/CounterSection.js');
|
|
@@ -10,7 +10,7 @@ import './assets/attention.svg.mjs';
|
|
|
10
10
|
import { Card, Header, HeaderHeadingSection, HeadingIcon, HeadingTitle, HeaderActionSection, SubduedInfo, OverlayFilter, NotAvailableNoteWrap, NotAvailableNoteIcon, InputBody, InputSectionSpacing, Footer, FooterContent, FooterNote } from './InputCard.styles.mjs';
|
|
11
11
|
import './InputSections/index.mjs';
|
|
12
12
|
import { CustomImage } from '../../../../CustomImage/CustomImage.mjs';
|
|
13
|
-
import attentionIcon__default from "../../../../../assets/
|
|
13
|
+
import attentionIcon__default from "../../../../../assets/attention2.svg";
|
|
14
14
|
import { OptionSelectSection } from './InputSections/OptionSelectSection.mjs';
|
|
15
15
|
import { SliderSection } from './InputSections/SliderSection.mjs';
|
|
16
16
|
import { CounterSection } from './InputSections/CounterSection.mjs';
|
|
@@ -11,8 +11,8 @@ require('../assets/plus.svg.js');
|
|
|
11
11
|
var Layout_styles = require('./Layout.styles.js');
|
|
12
12
|
var CustomImage = require('../../../../../CustomImage/CustomImage.js');
|
|
13
13
|
var StyleableSvgImage = require('../../../../../StyleableSvgImage/StyleableSvgImage.js');
|
|
14
|
-
var MinusIcon = require("../../../../../../assets/
|
|
15
|
-
var PlusIcon = require("../../../../../../assets/
|
|
14
|
+
var MinusIcon = require("../../../../../../assets/minus5.svg");
|
|
15
|
+
var PlusIcon = require("../../../../../../assets/plus7.svg");
|
|
16
16
|
function _interopDefault(e) {
|
|
17
17
|
return e && e.__esModule ? e : {
|
|
18
18
|
default: e
|
|
@@ -9,8 +9,8 @@ import '../assets/plus.svg.mjs';
|
|
|
9
9
|
import { InputWrapper, Label, InputFlexWrapper } from './Layout.styles.mjs';
|
|
10
10
|
import { CustomImage } from '../../../../../CustomImage/CustomImage.mjs';
|
|
11
11
|
import { StyleableSvgImage } from '../../../../../StyleableSvgImage/StyleableSvgImage.mjs';
|
|
12
|
-
import MinusIcon__default from "../../../../../../assets/
|
|
13
|
-
import PlusIcon__default from "../../../../../../assets/
|
|
12
|
+
import MinusIcon__default from "../../../../../../assets/minus5.svg";
|
|
13
|
+
import PlusIcon__default from "../../../../../../assets/plus7.svg";
|
|
14
14
|
"use strict";
|
|
15
15
|
const CounterSection = ({
|
|
16
16
|
value,
|
|
@@ -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/attention2.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/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/plus7.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/plus7.svg";
|
|
2
|
+
export { default } from "../../../../../../assets/plus7.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/plus6.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/plus6.svg";
|
|
22
22
|
"use strict";
|
|
23
23
|
const NoopPlaceholder = () => /* @__PURE__ */jsx(Fragment, {});
|
|
24
24
|
const PoeConsumerSelectModal = ({
|
|
@@ -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
|