@designcrowd/fe-shared-lib 1.2.17-ml-currency-3 → 1.2.18-ast-upsell-4
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/Dockerfile +1 -1
- package/index.js +4 -0
- package/package.json +1 -1
- package/public/css/tailwind-brandCrowd.css +30 -0
- package/public/css/tailwind-brandPage.css +30 -0
- package/public/css/tailwind-crazyDomains.css +30 -0
- package/public/css/tailwind-designCom.css +30 -0
- package/public/css/tailwind-designCrowd.css +30 -0
- package/src/atoms/components/Modal/Modal.vue +6 -1
- package/src/atoms/components/Price/Price.fixtures.js +2 -62
- package/src/atoms/components/Price/Price.stories.js +5 -58
- package/src/atoms/components/Price/Price.vue +3 -24
- package/src/atoms/components/Upsell/DigitalBusinessCard.vue +63 -0
- package/src/atoms/components/Upsell/LinkInBio.vue +62 -0
- package/src/atoms/components/Upsell/UpgradeWebsite.vue +60 -0
- package/src/atoms/components/Upsell/WebDesignSupport.vue +63 -0
- package/src/atoms/components/Upsell/i18n/upsell-modal-components.de-DE.json +17 -0
- package/src/atoms/components/Upsell/i18n/upsell-modal-components.es-ES.json +17 -0
- package/src/atoms/components/Upsell/i18n/upsell-modal-components.fr-FR.json +17 -0
- package/src/atoms/components/Upsell/i18n/upsell-modal-components.json +17 -0
- package/src/atoms/components/Upsell/i18n/upsell-modal-components.pt-PT.json +17 -0
- package/src/bundles/bundled-translations.de-DE.json +15 -0
- package/src/bundles/bundled-translations.es-ES.json +15 -0
- package/src/bundles/bundled-translations.fr-FR.json +15 -0
- package/src/bundles/bundled-translations.json +15 -0
- package/src/bundles/bundled-translations.pt-PT.json +15 -0
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.stories.js +41 -0
- package/src/experiences/components/PublishBrandPageModal/PublishBrandPageModal.vue +47 -25
- package/src/experiences/components/SellDomainNameSearchWithResults/SellDomainNameSearchWithResults.vue +24 -0
- package/src/useSharedLibTranslate.js +3 -44
- package/dist/css/tailwind-brandCrowd.css +0 -2459
- package/dist/css/tailwind-brandPage.css +0 -2147
- package/dist/css/tailwind-crazyDomains.css +0 -2459
- package/dist/css/tailwind-designCom.css +0 -2459
- package/dist/css/tailwind-designCrowd.css +0 -2459
package/Dockerfile
CHANGED
|
@@ -29,7 +29,7 @@ COPY .npmignore ./
|
|
|
29
29
|
RUN npm run bundle-translation
|
|
30
30
|
|
|
31
31
|
RUN mkdir artifacts
|
|
32
|
-
RUN npm publish
|
|
32
|
+
RUN npm publish || (touch artifacts/npm_publish_failed && exit 1)
|
|
33
33
|
RUN cp package.json artifacts/
|
|
34
34
|
|
|
35
35
|
ENTRYPOINT ["/bin/echo", "Nothing to do."]
|
package/index.js
CHANGED
|
@@ -54,3 +54,7 @@ export { default as HashRouteModal } from './src/atoms/components/Modal/HashRout
|
|
|
54
54
|
export { default as Select } from './src/atoms/components/Select/Select.vue';
|
|
55
55
|
export { default as NumberStepper } from './src/atoms/components/NumberStepper/NumberStepper.vue';
|
|
56
56
|
export { default as CopyToClipboardText } from './src/atoms/components/CopyToClipboardText/CopyToClipboardText.vue';
|
|
57
|
+
export { default as WebDesignSupportUpsell } from './src/atoms/components/Upsell/WebDesignSupport.vue';
|
|
58
|
+
export { default as DigitalBusinessCardUpsell } from './src/atoms/components/Upsell/DigitalBusinessCard.vue';
|
|
59
|
+
export { default as LinkInBioUpsell } from './src/atoms/components/Upsell/LinkInBio.vue';
|
|
60
|
+
export { default as UpgradeWebsiteUpsell } from './src/atoms/components/Upsell/UpgradeWebsite.vue';
|
package/package.json
CHANGED
|
@@ -699,6 +699,9 @@ video {
|
|
|
699
699
|
.theme-brandCrowd .tw-mb-4 {
|
|
700
700
|
margin-bottom: 1rem;
|
|
701
701
|
}
|
|
702
|
+
.theme-brandCrowd .tw-mb-5 {
|
|
703
|
+
margin-bottom: 1.25rem;
|
|
704
|
+
}
|
|
702
705
|
.theme-brandCrowd .tw-mb-6 {
|
|
703
706
|
margin-bottom: 1.5rem;
|
|
704
707
|
}
|
|
@@ -756,6 +759,9 @@ video {
|
|
|
756
759
|
.theme-brandCrowd .tw-mt-4 {
|
|
757
760
|
margin-top: 1rem;
|
|
758
761
|
}
|
|
762
|
+
.theme-brandCrowd .tw-mt-5 {
|
|
763
|
+
margin-top: 1.25rem;
|
|
764
|
+
}
|
|
759
765
|
.theme-brandCrowd .tw-mt-8 {
|
|
760
766
|
margin-top: 2rem;
|
|
761
767
|
}
|
|
@@ -923,6 +929,9 @@ video {
|
|
|
923
929
|
.theme-brandCrowd .tw-max-w-xl {
|
|
924
930
|
max-width: 36rem;
|
|
925
931
|
}
|
|
932
|
+
.theme-brandCrowd .tw-flex-1 {
|
|
933
|
+
flex: 1 1 0%;
|
|
934
|
+
}
|
|
926
935
|
.theme-brandCrowd .tw-flex-auto {
|
|
927
936
|
flex: 1 1 auto;
|
|
928
937
|
}
|
|
@@ -1606,6 +1615,9 @@ video {
|
|
|
1606
1615
|
.theme-brandCrowd .tw-p-4 {
|
|
1607
1616
|
padding: 1rem;
|
|
1608
1617
|
}
|
|
1618
|
+
.theme-brandCrowd .tw-p-5 {
|
|
1619
|
+
padding: 1.25rem;
|
|
1620
|
+
}
|
|
1609
1621
|
.theme-brandCrowd .tw-p-6 {
|
|
1610
1622
|
padding: 1.5rem;
|
|
1611
1623
|
}
|
|
@@ -1741,6 +1753,9 @@ video {
|
|
|
1741
1753
|
.theme-brandCrowd .tw-pt-2 {
|
|
1742
1754
|
padding-top: 0.5rem;
|
|
1743
1755
|
}
|
|
1756
|
+
.theme-brandCrowd .tw-pt-4 {
|
|
1757
|
+
padding-top: 1rem;
|
|
1758
|
+
}
|
|
1744
1759
|
.theme-brandCrowd .tw-pt-6 {
|
|
1745
1760
|
padding-top: 1.5rem;
|
|
1746
1761
|
}
|
|
@@ -1966,6 +1981,11 @@ video {
|
|
|
1966
1981
|
--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
|
|
1967
1982
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1968
1983
|
}
|
|
1984
|
+
.theme-brandCrowd .tw-transition-all {
|
|
1985
|
+
transition-property: all;
|
|
1986
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1987
|
+
transition-duration: 150ms;
|
|
1988
|
+
}
|
|
1969
1989
|
.theme-brandCrowd .tw-transition-colors {
|
|
1970
1990
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
1971
1991
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -2141,10 +2161,20 @@ video {
|
|
|
2141
2161
|
outline: 2px solid transparent;
|
|
2142
2162
|
outline-offset: 2px;
|
|
2143
2163
|
}
|
|
2164
|
+
.theme-brandCrowd .tw-group:hover .group-hover\:tw-scale-105 {
|
|
2165
|
+
--tw-scale-x: 1.05;
|
|
2166
|
+
--tw-scale-y: 1.05;
|
|
2167
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2168
|
+
}
|
|
2144
2169
|
.theme-brandCrowd .tw-group:hover .group-hover\:tw-text-info-500 {
|
|
2145
2170
|
--tw-text-opacity: 1;
|
|
2146
2171
|
color: rgb(0 151 215 / var(--tw-text-opacity));
|
|
2147
2172
|
}
|
|
2173
|
+
.theme-brandCrowd .tw-group:hover .group-hover\:tw-shadow {
|
|
2174
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
2175
|
+
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
2176
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2177
|
+
}
|
|
2148
2178
|
@media (min-width: 640px) {
|
|
2149
2179
|
.theme-brandCrowd .sm\:tw-absolute {
|
|
2150
2180
|
position: absolute;
|
|
@@ -699,6 +699,9 @@ video {
|
|
|
699
699
|
.theme-brandPage .tw-mb-4 {
|
|
700
700
|
margin-bottom: 1rem;
|
|
701
701
|
}
|
|
702
|
+
.theme-brandPage .tw-mb-5 {
|
|
703
|
+
margin-bottom: 1.25rem;
|
|
704
|
+
}
|
|
702
705
|
.theme-brandPage .tw-mb-6 {
|
|
703
706
|
margin-bottom: 1.5rem;
|
|
704
707
|
}
|
|
@@ -756,6 +759,9 @@ video {
|
|
|
756
759
|
.theme-brandPage .tw-mt-4 {
|
|
757
760
|
margin-top: 1rem;
|
|
758
761
|
}
|
|
762
|
+
.theme-brandPage .tw-mt-5 {
|
|
763
|
+
margin-top: 1.25rem;
|
|
764
|
+
}
|
|
759
765
|
.theme-brandPage .tw-mt-8 {
|
|
760
766
|
margin-top: 2rem;
|
|
761
767
|
}
|
|
@@ -923,6 +929,9 @@ video {
|
|
|
923
929
|
.theme-brandPage .tw-max-w-xl {
|
|
924
930
|
max-width: 36rem;
|
|
925
931
|
}
|
|
932
|
+
.theme-brandPage .tw-flex-1 {
|
|
933
|
+
flex: 1 1 0%;
|
|
934
|
+
}
|
|
926
935
|
.theme-brandPage .tw-flex-auto {
|
|
927
936
|
flex: 1 1 auto;
|
|
928
937
|
}
|
|
@@ -1454,6 +1463,9 @@ video {
|
|
|
1454
1463
|
.theme-brandPage .tw-p-4 {
|
|
1455
1464
|
padding: 1rem;
|
|
1456
1465
|
}
|
|
1466
|
+
.theme-brandPage .tw-p-5 {
|
|
1467
|
+
padding: 1.25rem;
|
|
1468
|
+
}
|
|
1457
1469
|
.theme-brandPage .tw-p-6 {
|
|
1458
1470
|
padding: 1.5rem;
|
|
1459
1471
|
}
|
|
@@ -1589,6 +1601,9 @@ video {
|
|
|
1589
1601
|
.theme-brandPage .tw-pt-2 {
|
|
1590
1602
|
padding-top: 0.5rem;
|
|
1591
1603
|
}
|
|
1604
|
+
.theme-brandPage .tw-pt-4 {
|
|
1605
|
+
padding-top: 1rem;
|
|
1606
|
+
}
|
|
1592
1607
|
.theme-brandPage .tw-pt-6 {
|
|
1593
1608
|
padding-top: 1.5rem;
|
|
1594
1609
|
}
|
|
@@ -1754,6 +1769,11 @@ video {
|
|
|
1754
1769
|
--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
|
|
1755
1770
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1756
1771
|
}
|
|
1772
|
+
.theme-brandPage .tw-transition-all {
|
|
1773
|
+
transition-property: all;
|
|
1774
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1775
|
+
transition-duration: 150ms;
|
|
1776
|
+
}
|
|
1757
1777
|
.theme-brandPage .tw-transition-colors {
|
|
1758
1778
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
1759
1779
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -1829,6 +1849,16 @@ video {
|
|
|
1829
1849
|
outline: 2px solid transparent;
|
|
1830
1850
|
outline-offset: 2px;
|
|
1831
1851
|
}
|
|
1852
|
+
.theme-brandPage .tw-group:hover .group-hover\:tw-scale-105 {
|
|
1853
|
+
--tw-scale-x: 1.05;
|
|
1854
|
+
--tw-scale-y: 1.05;
|
|
1855
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1856
|
+
}
|
|
1857
|
+
.theme-brandPage .tw-group:hover .group-hover\:tw-shadow {
|
|
1858
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
1859
|
+
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
1860
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
1861
|
+
}
|
|
1832
1862
|
@media (min-width: 640px) {
|
|
1833
1863
|
.theme-brandPage .sm\:tw-absolute {
|
|
1834
1864
|
position: absolute;
|
|
@@ -699,6 +699,9 @@ video {
|
|
|
699
699
|
.theme-crazyDomains .tw-mb-4 {
|
|
700
700
|
margin-bottom: 1rem;
|
|
701
701
|
}
|
|
702
|
+
.theme-crazyDomains .tw-mb-5 {
|
|
703
|
+
margin-bottom: 1.25rem;
|
|
704
|
+
}
|
|
702
705
|
.theme-crazyDomains .tw-mb-6 {
|
|
703
706
|
margin-bottom: 1.5rem;
|
|
704
707
|
}
|
|
@@ -756,6 +759,9 @@ video {
|
|
|
756
759
|
.theme-crazyDomains .tw-mt-4 {
|
|
757
760
|
margin-top: 1rem;
|
|
758
761
|
}
|
|
762
|
+
.theme-crazyDomains .tw-mt-5 {
|
|
763
|
+
margin-top: 1.25rem;
|
|
764
|
+
}
|
|
759
765
|
.theme-crazyDomains .tw-mt-8 {
|
|
760
766
|
margin-top: 2rem;
|
|
761
767
|
}
|
|
@@ -923,6 +929,9 @@ video {
|
|
|
923
929
|
.theme-crazyDomains .tw-max-w-xl {
|
|
924
930
|
max-width: 36rem;
|
|
925
931
|
}
|
|
932
|
+
.theme-crazyDomains .tw-flex-1 {
|
|
933
|
+
flex: 1 1 0%;
|
|
934
|
+
}
|
|
926
935
|
.theme-crazyDomains .tw-flex-auto {
|
|
927
936
|
flex: 1 1 auto;
|
|
928
937
|
}
|
|
@@ -1606,6 +1615,9 @@ video {
|
|
|
1606
1615
|
.theme-crazyDomains .tw-p-4 {
|
|
1607
1616
|
padding: 1rem;
|
|
1608
1617
|
}
|
|
1618
|
+
.theme-crazyDomains .tw-p-5 {
|
|
1619
|
+
padding: 1.25rem;
|
|
1620
|
+
}
|
|
1609
1621
|
.theme-crazyDomains .tw-p-6 {
|
|
1610
1622
|
padding: 1.5rem;
|
|
1611
1623
|
}
|
|
@@ -1741,6 +1753,9 @@ video {
|
|
|
1741
1753
|
.theme-crazyDomains .tw-pt-2 {
|
|
1742
1754
|
padding-top: 0.5rem;
|
|
1743
1755
|
}
|
|
1756
|
+
.theme-crazyDomains .tw-pt-4 {
|
|
1757
|
+
padding-top: 1rem;
|
|
1758
|
+
}
|
|
1744
1759
|
.theme-crazyDomains .tw-pt-6 {
|
|
1745
1760
|
padding-top: 1.5rem;
|
|
1746
1761
|
}
|
|
@@ -1966,6 +1981,11 @@ video {
|
|
|
1966
1981
|
--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
|
|
1967
1982
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1968
1983
|
}
|
|
1984
|
+
.theme-crazyDomains .tw-transition-all {
|
|
1985
|
+
transition-property: all;
|
|
1986
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1987
|
+
transition-duration: 150ms;
|
|
1988
|
+
}
|
|
1969
1989
|
.theme-crazyDomains .tw-transition-colors {
|
|
1970
1990
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
1971
1991
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -2141,10 +2161,20 @@ video {
|
|
|
2141
2161
|
outline: 2px solid transparent;
|
|
2142
2162
|
outline-offset: 2px;
|
|
2143
2163
|
}
|
|
2164
|
+
.theme-crazyDomains .tw-group:hover .group-hover\:tw-scale-105 {
|
|
2165
|
+
--tw-scale-x: 1.05;
|
|
2166
|
+
--tw-scale-y: 1.05;
|
|
2167
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2168
|
+
}
|
|
2144
2169
|
.theme-crazyDomains .tw-group:hover .group-hover\:tw-text-info-500 {
|
|
2145
2170
|
--tw-text-opacity: 1;
|
|
2146
2171
|
color: rgb(0 161 239 / var(--tw-text-opacity));
|
|
2147
2172
|
}
|
|
2173
|
+
.theme-crazyDomains .tw-group:hover .group-hover\:tw-shadow {
|
|
2174
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
2175
|
+
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
2176
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2177
|
+
}
|
|
2148
2178
|
@media (min-width: 640px) {
|
|
2149
2179
|
.theme-crazyDomains .sm\:tw-absolute {
|
|
2150
2180
|
position: absolute;
|
|
@@ -699,6 +699,9 @@ video {
|
|
|
699
699
|
.theme-designCom .tw-mb-4 {
|
|
700
700
|
margin-bottom: 1rem;
|
|
701
701
|
}
|
|
702
|
+
.theme-designCom .tw-mb-5 {
|
|
703
|
+
margin-bottom: 1.25rem;
|
|
704
|
+
}
|
|
702
705
|
.theme-designCom .tw-mb-6 {
|
|
703
706
|
margin-bottom: 1.5rem;
|
|
704
707
|
}
|
|
@@ -756,6 +759,9 @@ video {
|
|
|
756
759
|
.theme-designCom .tw-mt-4 {
|
|
757
760
|
margin-top: 1rem;
|
|
758
761
|
}
|
|
762
|
+
.theme-designCom .tw-mt-5 {
|
|
763
|
+
margin-top: 1.25rem;
|
|
764
|
+
}
|
|
759
765
|
.theme-designCom .tw-mt-8 {
|
|
760
766
|
margin-top: 2rem;
|
|
761
767
|
}
|
|
@@ -923,6 +929,9 @@ video {
|
|
|
923
929
|
.theme-designCom .tw-max-w-xl {
|
|
924
930
|
max-width: 36rem;
|
|
925
931
|
}
|
|
932
|
+
.theme-designCom .tw-flex-1 {
|
|
933
|
+
flex: 1 1 0%;
|
|
934
|
+
}
|
|
926
935
|
.theme-designCom .tw-flex-auto {
|
|
927
936
|
flex: 1 1 auto;
|
|
928
937
|
}
|
|
@@ -1606,6 +1615,9 @@ video {
|
|
|
1606
1615
|
.theme-designCom .tw-p-4 {
|
|
1607
1616
|
padding: 1rem;
|
|
1608
1617
|
}
|
|
1618
|
+
.theme-designCom .tw-p-5 {
|
|
1619
|
+
padding: 1.25rem;
|
|
1620
|
+
}
|
|
1609
1621
|
.theme-designCom .tw-p-6 {
|
|
1610
1622
|
padding: 1.5rem;
|
|
1611
1623
|
}
|
|
@@ -1741,6 +1753,9 @@ video {
|
|
|
1741
1753
|
.theme-designCom .tw-pt-2 {
|
|
1742
1754
|
padding-top: 0.5rem;
|
|
1743
1755
|
}
|
|
1756
|
+
.theme-designCom .tw-pt-4 {
|
|
1757
|
+
padding-top: 1rem;
|
|
1758
|
+
}
|
|
1744
1759
|
.theme-designCom .tw-pt-6 {
|
|
1745
1760
|
padding-top: 1.5rem;
|
|
1746
1761
|
}
|
|
@@ -1966,6 +1981,11 @@ video {
|
|
|
1966
1981
|
--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
|
|
1967
1982
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1968
1983
|
}
|
|
1984
|
+
.theme-designCom .tw-transition-all {
|
|
1985
|
+
transition-property: all;
|
|
1986
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1987
|
+
transition-duration: 150ms;
|
|
1988
|
+
}
|
|
1969
1989
|
.theme-designCom .tw-transition-colors {
|
|
1970
1990
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
1971
1991
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -2141,10 +2161,20 @@ video {
|
|
|
2141
2161
|
outline: 2px solid transparent;
|
|
2142
2162
|
outline-offset: 2px;
|
|
2143
2163
|
}
|
|
2164
|
+
.theme-designCom .tw-group:hover .group-hover\:tw-scale-105 {
|
|
2165
|
+
--tw-scale-x: 1.05;
|
|
2166
|
+
--tw-scale-y: 1.05;
|
|
2167
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2168
|
+
}
|
|
2144
2169
|
.theme-designCom .tw-group:hover .group-hover\:tw-text-info-500 {
|
|
2145
2170
|
--tw-text-opacity: 1;
|
|
2146
2171
|
color: rgb(63 89 246 / var(--tw-text-opacity));
|
|
2147
2172
|
}
|
|
2173
|
+
.theme-designCom .tw-group:hover .group-hover\:tw-shadow {
|
|
2174
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
2175
|
+
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
2176
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2177
|
+
}
|
|
2148
2178
|
@media (min-width: 640px) {
|
|
2149
2179
|
.theme-designCom .sm\:tw-absolute {
|
|
2150
2180
|
position: absolute;
|
|
@@ -699,6 +699,9 @@ video {
|
|
|
699
699
|
.theme-designCrowd .tw-mb-4 {
|
|
700
700
|
margin-bottom: 1rem;
|
|
701
701
|
}
|
|
702
|
+
.theme-designCrowd .tw-mb-5 {
|
|
703
|
+
margin-bottom: 1.25rem;
|
|
704
|
+
}
|
|
702
705
|
.theme-designCrowd .tw-mb-6 {
|
|
703
706
|
margin-bottom: 1.5rem;
|
|
704
707
|
}
|
|
@@ -756,6 +759,9 @@ video {
|
|
|
756
759
|
.theme-designCrowd .tw-mt-4 {
|
|
757
760
|
margin-top: 1rem;
|
|
758
761
|
}
|
|
762
|
+
.theme-designCrowd .tw-mt-5 {
|
|
763
|
+
margin-top: 1.25rem;
|
|
764
|
+
}
|
|
759
765
|
.theme-designCrowd .tw-mt-8 {
|
|
760
766
|
margin-top: 2rem;
|
|
761
767
|
}
|
|
@@ -923,6 +929,9 @@ video {
|
|
|
923
929
|
.theme-designCrowd .tw-max-w-xl {
|
|
924
930
|
max-width: 36rem;
|
|
925
931
|
}
|
|
932
|
+
.theme-designCrowd .tw-flex-1 {
|
|
933
|
+
flex: 1 1 0%;
|
|
934
|
+
}
|
|
926
935
|
.theme-designCrowd .tw-flex-auto {
|
|
927
936
|
flex: 1 1 auto;
|
|
928
937
|
}
|
|
@@ -1606,6 +1615,9 @@ video {
|
|
|
1606
1615
|
.theme-designCrowd .tw-p-4 {
|
|
1607
1616
|
padding: 1rem;
|
|
1608
1617
|
}
|
|
1618
|
+
.theme-designCrowd .tw-p-5 {
|
|
1619
|
+
padding: 1.25rem;
|
|
1620
|
+
}
|
|
1609
1621
|
.theme-designCrowd .tw-p-6 {
|
|
1610
1622
|
padding: 1.5rem;
|
|
1611
1623
|
}
|
|
@@ -1741,6 +1753,9 @@ video {
|
|
|
1741
1753
|
.theme-designCrowd .tw-pt-2 {
|
|
1742
1754
|
padding-top: 0.5rem;
|
|
1743
1755
|
}
|
|
1756
|
+
.theme-designCrowd .tw-pt-4 {
|
|
1757
|
+
padding-top: 1rem;
|
|
1758
|
+
}
|
|
1744
1759
|
.theme-designCrowd .tw-pt-6 {
|
|
1745
1760
|
padding-top: 1.5rem;
|
|
1746
1761
|
}
|
|
@@ -1966,6 +1981,11 @@ video {
|
|
|
1966
1981
|
--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / 0.05));
|
|
1967
1982
|
filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
|
|
1968
1983
|
}
|
|
1984
|
+
.theme-designCrowd .tw-transition-all {
|
|
1985
|
+
transition-property: all;
|
|
1986
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
1987
|
+
transition-duration: 150ms;
|
|
1988
|
+
}
|
|
1969
1989
|
.theme-designCrowd .tw-transition-colors {
|
|
1970
1990
|
transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
|
|
1971
1991
|
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
@@ -2141,10 +2161,20 @@ video {
|
|
|
2141
2161
|
outline: 2px solid transparent;
|
|
2142
2162
|
outline-offset: 2px;
|
|
2143
2163
|
}
|
|
2164
|
+
.theme-designCrowd .tw-group:hover .group-hover\:tw-scale-105 {
|
|
2165
|
+
--tw-scale-x: 1.05;
|
|
2166
|
+
--tw-scale-y: 1.05;
|
|
2167
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
2168
|
+
}
|
|
2144
2169
|
.theme-designCrowd .tw-group:hover .group-hover\:tw-text-info-500 {
|
|
2145
2170
|
--tw-text-opacity: 1;
|
|
2146
2171
|
color: rgb(17 151 235 / var(--tw-text-opacity));
|
|
2147
2172
|
}
|
|
2173
|
+
.theme-designCrowd .tw-group:hover .group-hover\:tw-shadow {
|
|
2174
|
+
--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
|
2175
|
+
--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
|
|
2176
|
+
box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
|
|
2177
|
+
}
|
|
2148
2178
|
@media (min-width: 640px) {
|
|
2149
2179
|
.theme-designCrowd .sm\:tw-absolute {
|
|
2150
2180
|
position: absolute;
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
:class="[
|
|
16
16
|
{
|
|
17
17
|
'tw-w-full': !isImageMode,
|
|
18
|
-
'tw-p-4': !simple,
|
|
18
|
+
'tw-p-4': !removeHorizontalPadding && !simple,
|
|
19
19
|
'tw-max-w-md': size === 'md',
|
|
20
20
|
'tw-max-w-xl': size === 'xl',
|
|
21
21
|
'tw-max-w-2xl': !size && !isImageMode,
|
|
@@ -91,6 +91,11 @@ export default {
|
|
|
91
91
|
required: false,
|
|
92
92
|
default: false,
|
|
93
93
|
},
|
|
94
|
+
removeHorizontalPadding: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
required: false,
|
|
97
|
+
default: false,
|
|
98
|
+
},
|
|
94
99
|
visible: {
|
|
95
100
|
type: Boolean,
|
|
96
101
|
required: false,
|
|
@@ -14,72 +14,12 @@ export const audCurrency = {
|
|
|
14
14
|
abbreviation: 'AU',
|
|
15
15
|
};
|
|
16
16
|
|
|
17
|
-
export const gbpCurrency = {
|
|
18
|
-
id: 3,
|
|
19
|
-
name: 'British Pound',
|
|
20
|
-
iso4127Code: 'GBP',
|
|
21
|
-
symbol: '£',
|
|
22
|
-
abbreviation: 'UK',
|
|
23
|
-
};
|
|
24
|
-
|
|
25
17
|
export const euroCurrency = {
|
|
26
|
-
id:
|
|
18
|
+
id: 999,
|
|
27
19
|
name: 'Euro',
|
|
28
20
|
iso4127Code: 'EUR',
|
|
29
21
|
symbol: '€',
|
|
30
22
|
abbreviation: 'EU',
|
|
31
23
|
};
|
|
32
24
|
|
|
33
|
-
export const
|
|
34
|
-
id: 5,
|
|
35
|
-
name: 'Indian Rupee',
|
|
36
|
-
iso4127Code: 'INR',
|
|
37
|
-
symbol: '₹',
|
|
38
|
-
abbreviation: 'IN',
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export const phpCurrency = {
|
|
42
|
-
id: 6,
|
|
43
|
-
name: 'Philippine Peso',
|
|
44
|
-
iso4127Code: 'PHP',
|
|
45
|
-
symbol: '₱',
|
|
46
|
-
abbreviation: 'PH',
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
export const brlCurrency = {
|
|
50
|
-
id: 7,
|
|
51
|
-
name: 'Brazilian Real',
|
|
52
|
-
iso4127Code: 'BRL',
|
|
53
|
-
symbol: 'R$',
|
|
54
|
-
abbreviation: 'R',
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
export const mxnCurrency = {
|
|
58
|
-
id: 8,
|
|
59
|
-
name: 'Mexican Peso',
|
|
60
|
-
iso4127Code: 'MXN',
|
|
61
|
-
symbol: 'MX$',
|
|
62
|
-
abbreviation: 'MX',
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
export const zarCurrency = {
|
|
66
|
-
id: 9,
|
|
67
|
-
name: 'South African Rand',
|
|
68
|
-
iso4127Code: 'ZAR',
|
|
69
|
-
symbol: 'R',
|
|
70
|
-
abbreviation: 'R',
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
export const currencies = [
|
|
74
|
-
usdCurrency,
|
|
75
|
-
audCurrency,
|
|
76
|
-
gbpCurrency,
|
|
77
|
-
euroCurrency,
|
|
78
|
-
inrCurrency,
|
|
79
|
-
phpCurrency,
|
|
80
|
-
brlCurrency,
|
|
81
|
-
mxnCurrency,
|
|
82
|
-
zarCurrency,
|
|
83
|
-
];
|
|
84
|
-
|
|
85
|
-
export const locales = [ 'en-US', 'fr-FR', 'es-ES', 'pt-PT', 'de-DE']
|
|
25
|
+
export const currencies = [usdCurrency, audCurrency, euroCurrency];
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import Price from './Price.vue';
|
|
2
|
-
import { currencies
|
|
3
|
-
import {setSharedLibLocaleAsync} from "../../../useSharedLibTranslate";
|
|
4
|
-
|
|
5
|
-
await setSharedLibLocaleAsync();
|
|
2
|
+
import { currencies } from './Price.fixtures';
|
|
6
3
|
|
|
7
4
|
// noinspection JSUnusedGlobalSymbols
|
|
8
5
|
export default {
|
|
@@ -10,7 +7,6 @@ export default {
|
|
|
10
7
|
component: Price,
|
|
11
8
|
args: {
|
|
12
9
|
currencyName: currencies[0].name,
|
|
13
|
-
locale: locales[0]
|
|
14
10
|
},
|
|
15
11
|
argTypes: {
|
|
16
12
|
amount: {
|
|
@@ -20,10 +16,6 @@ export default {
|
|
|
20
16
|
control: { type: 'select' },
|
|
21
17
|
options: currencies.map((x) => x.name),
|
|
22
18
|
},
|
|
23
|
-
locale: {
|
|
24
|
-
control: { type: 'select' },
|
|
25
|
-
options: locales,
|
|
26
|
-
},
|
|
27
19
|
},
|
|
28
20
|
};
|
|
29
21
|
|
|
@@ -39,16 +31,12 @@ export const Sample = {
|
|
|
39
31
|
selectedCurrency() {
|
|
40
32
|
return currencies.find((x) => x.name === this.args.currencyName);
|
|
41
33
|
},
|
|
42
|
-
selectedLocale() {
|
|
43
|
-
return locales.find((x) => x === this.args.locale);
|
|
44
|
-
},
|
|
45
34
|
},
|
|
46
35
|
template: `
|
|
47
36
|
<span>
|
|
48
37
|
<price
|
|
49
38
|
v-bind="args"
|
|
50
39
|
:currency="selectedCurrency"
|
|
51
|
-
:locale="selectedLocale"
|
|
52
40
|
/>
|
|
53
41
|
</span>
|
|
54
42
|
`,
|
|
@@ -71,9 +59,6 @@ export const WithFraction = {
|
|
|
71
59
|
selectedCurrency() {
|
|
72
60
|
return currencies.find((x) => x.name === this.args.currencyName);
|
|
73
61
|
},
|
|
74
|
-
selectedLocale() {
|
|
75
|
-
return locales.find((x) => x === this.args.locale);
|
|
76
|
-
},
|
|
77
62
|
},
|
|
78
63
|
template: `
|
|
79
64
|
<span>
|
|
@@ -81,7 +66,7 @@ export const WithFraction = {
|
|
|
81
66
|
v-bind="args"
|
|
82
67
|
:currency="selectedCurrency"
|
|
83
68
|
fraction="2"
|
|
84
|
-
:
|
|
69
|
+
:show-abbreviation="true"
|
|
85
70
|
/>
|
|
86
71
|
</span>
|
|
87
72
|
`,
|
|
@@ -104,9 +89,6 @@ export const AlwaysShowFractionOn = {
|
|
|
104
89
|
selectedCurrency() {
|
|
105
90
|
return currencies.find((x) => x.name === this.args.currencyName);
|
|
106
91
|
},
|
|
107
|
-
selectedLocale() {
|
|
108
|
-
return locales.find((x) => x === this.args.locale);
|
|
109
|
-
},
|
|
110
92
|
},
|
|
111
93
|
template: `
|
|
112
94
|
<span>
|
|
@@ -115,7 +97,7 @@ export const AlwaysShowFractionOn = {
|
|
|
115
97
|
:always-show-fraction="true"
|
|
116
98
|
:currency="selectedCurrency"
|
|
117
99
|
fraction="2"
|
|
118
|
-
:
|
|
100
|
+
:show-abbreviation="true"
|
|
119
101
|
/>
|
|
120
102
|
</span>
|
|
121
103
|
`,
|
|
@@ -146,7 +128,7 @@ export const AlwaysShowFractionOff = {
|
|
|
146
128
|
:always-show-fraction="false"
|
|
147
129
|
:currency="selectedCurrency"
|
|
148
130
|
fraction="2"
|
|
149
|
-
:
|
|
131
|
+
:show-abbreviation="true"
|
|
150
132
|
/>
|
|
151
133
|
</span>
|
|
152
134
|
`,
|
|
@@ -169,9 +151,6 @@ export const WithSuffix = {
|
|
|
169
151
|
selectedCurrency() {
|
|
170
152
|
return currencies.find((x) => x.name === this.args.currencyName);
|
|
171
153
|
},
|
|
172
|
-
selectedLocale() {
|
|
173
|
-
return locales.find((x) => x === this.args.locale);
|
|
174
|
-
},
|
|
175
154
|
},
|
|
176
155
|
template: `
|
|
177
156
|
<span>
|
|
@@ -180,8 +159,8 @@ export const WithSuffix = {
|
|
|
180
159
|
:always-show-fraction="true"
|
|
181
160
|
:currency="selectedCurrency"
|
|
182
161
|
fraction="2"
|
|
162
|
+
:show-abbreviation="true"
|
|
183
163
|
:suffix="suffix"
|
|
184
|
-
:locale="selectedLocale"
|
|
185
164
|
/>
|
|
186
165
|
</span>
|
|
187
166
|
`,
|
|
@@ -192,35 +171,3 @@ export const WithSuffix = {
|
|
|
192
171
|
suffix: '/yr',
|
|
193
172
|
},
|
|
194
173
|
};
|
|
195
|
-
|
|
196
|
-
export const WithLocale = {
|
|
197
|
-
render: (args, { argTypes }) => {
|
|
198
|
-
return {
|
|
199
|
-
components: { Price },
|
|
200
|
-
props: Object.keys(argTypes),
|
|
201
|
-
setup() {
|
|
202
|
-
return { args };
|
|
203
|
-
},
|
|
204
|
-
computed: {
|
|
205
|
-
selectedCurrency() {
|
|
206
|
-
return currencies.find((x) => x.name === this.args.currencyName);
|
|
207
|
-
},
|
|
208
|
-
selectedLocale() {
|
|
209
|
-
return locales.find((x) => x === this.args.locale);
|
|
210
|
-
},
|
|
211
|
-
},
|
|
212
|
-
template: `
|
|
213
|
-
<span>
|
|
214
|
-
<price
|
|
215
|
-
v-bind="args"
|
|
216
|
-
:currency="selectedCurrency"
|
|
217
|
-
:locale="selectedLocale"
|
|
218
|
-
/>
|
|
219
|
-
</span>
|
|
220
|
-
`,
|
|
221
|
-
};
|
|
222
|
-
},
|
|
223
|
-
args: {
|
|
224
|
-
amount: 22.0,
|
|
225
|
-
},
|
|
226
|
-
};
|