@pelcro/react-pelcro-js 4.0.0-alpha.12 → 4.0.0-alpha.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +15 -21
- package/dist/index.esm.js +15 -21
- package/dist/pelcro.css +31 -34
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -18488,7 +18488,7 @@ const NextArrow = ({
|
|
|
18488
18488
|
onClick,
|
|
18489
18489
|
className
|
|
18490
18490
|
}) => /*#__PURE__*/React__default['default'].createElement("button", {
|
|
18491
|
-
className: `plc-text-white plc-w-11 plc-h-11 plc-bg-primary
|
|
18491
|
+
className: `sm:plc-flex plc-hidden plc-text-white plc-w-11 plc-h-11 plc-bg-primary plc-items-center plc-justify-center plc-rounded-full plc-text-sm plc-absolute plc-top-1/2 plc--right-16 plc-transform plc--translate-y-1/2 plc-border plc-border-primary hover:plc-bg-white hover:plc-text-primary ${className}`,
|
|
18492
18492
|
onClick: onClick
|
|
18493
18493
|
}, /*#__PURE__*/React__default['default'].createElement(SvgArrowThinRight, {
|
|
18494
18494
|
stroke: "currentColor",
|
|
@@ -18501,7 +18501,7 @@ const PrevArrow = ({
|
|
|
18501
18501
|
onClick,
|
|
18502
18502
|
className
|
|
18503
18503
|
}) => /*#__PURE__*/React__default['default'].createElement("button", {
|
|
18504
|
-
className: `plc-text-white plc-w-11 plc-h-11 plc-bg-primary plc-
|
|
18504
|
+
className: `sm:plc-flex plc-hidden plc-text-white plc-w-11 plc-h-11 plc-bg-primary plc-items-center plc-justify-center plc-rounded-full plc-text-sm plc-absolute plc-top-1/2 plc--left-16 plc-transform plc--translate-y-1/2 plc-border plc-border-primary hover:plc-bg-white hover:plc-text-primary ${className}`,
|
|
18505
18505
|
onClick: onClick
|
|
18506
18506
|
}, /*#__PURE__*/React__default['default'].createElement(SvgArrowThinLeft, {
|
|
18507
18507
|
stroke: "currentColor",
|
|
@@ -18542,19 +18542,11 @@ function Carousel({
|
|
|
18542
18542
|
}
|
|
18543
18543
|
}]
|
|
18544
18544
|
};
|
|
18545
|
-
return (
|
|
18546
|
-
|
|
18547
|
-
|
|
18548
|
-
|
|
18549
|
-
|
|
18550
|
-
// }`}
|
|
18551
|
-
// >
|
|
18552
|
-
React__default['default'].createElement("div", {
|
|
18553
|
-
className: "carousel-wrapper plc-relative plc-px-16"
|
|
18554
|
-
}, /*#__PURE__*/React__default['default'].createElement(Slider, Object.assign({
|
|
18555
|
-
ref: ref
|
|
18556
|
-
}, settings), children))
|
|
18557
|
-
);
|
|
18545
|
+
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18546
|
+
className: "carousel-wrapper plc-relative sm:plc-px-16 plc-px-0"
|
|
18547
|
+
}, /*#__PURE__*/React__default['default'].createElement(Slider, Object.assign({
|
|
18548
|
+
ref: ref
|
|
18549
|
+
}, settings), children));
|
|
18558
18550
|
}
|
|
18559
18551
|
|
|
18560
18552
|
var _path$m;
|
|
@@ -18762,20 +18754,20 @@ class SelectModal extends React.Component {
|
|
|
18762
18754
|
description
|
|
18763
18755
|
} = this.state.product;
|
|
18764
18756
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18765
|
-
className: "productTabs
|
|
18757
|
+
className: "productTabs"
|
|
18766
18758
|
}, /*#__PURE__*/React__default['default'].createElement("ul", {
|
|
18767
|
-
className: "tabs plc-flex plc-items-center plc-text-center plc-border-b plc-border-gray-300 plc-mb-
|
|
18759
|
+
className: "tabs plc-flex plc-items-center plc-text-center plc-border-b plc-border-gray-300 plc-mb-4 plc-overflow-x-auto"
|
|
18768
18760
|
}, this.state.productList.map((product, index) => {
|
|
18769
18761
|
var _this$state$product;
|
|
18770
18762
|
|
|
18771
18763
|
return /*#__PURE__*/React__default['default'].createElement("li", {
|
|
18772
18764
|
key: product.id,
|
|
18773
18765
|
id: `${product.id === ((_this$state$product = this.state.product) === null || _this$state$product === void 0 ? void 0 : _this$state$product.id) ? "activeTab" : ""}`,
|
|
18774
|
-
className: "plc-relative"
|
|
18766
|
+
className: "plc-relative plc-mx-1"
|
|
18775
18767
|
}, /*#__PURE__*/React__default['default'].createElement("button", {
|
|
18776
18768
|
onClick: productButtonCallback,
|
|
18777
18769
|
"data-key": product.id,
|
|
18778
|
-
className: "plc-px-4 plc-py-2 plc-text-gray-600 focus:plc-outline-none plc-whitespace-nowrap"
|
|
18770
|
+
className: "plc-px-4 plc-py-2 plc-bg-white plc-border plc-border-gray-200 plc-rounded plc-text-gray-600 focus:plc-outline-none plc-whitespace-nowrap"
|
|
18779
18771
|
}, product.name));
|
|
18780
18772
|
})), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18781
18773
|
className: "selectedProduct plc-flex plc-flex-col plc-items-center plc-justify-center"
|
|
@@ -18784,7 +18776,9 @@ class SelectModal extends React.Component {
|
|
|
18784
18776
|
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
18785
18777
|
src: image,
|
|
18786
18778
|
alt: "Product Image"
|
|
18787
|
-
})), description && /*#__PURE__*/React__default['default'].createElement("p",
|
|
18779
|
+
})), description && /*#__PURE__*/React__default['default'].createElement("p", {
|
|
18780
|
+
className: "plc-text-center"
|
|
18781
|
+
}, description)));
|
|
18788
18782
|
});
|
|
18789
18783
|
|
|
18790
18784
|
_defineProperty$3(this, "renderMatchingProductsFirst", () => {
|
|
@@ -18840,7 +18834,7 @@ class SelectModal extends React.Component {
|
|
|
18840
18834
|
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18841
18835
|
className: "plc-p-4 plc-text-center plc-flex plc-flex-col plc-justify-center plc-items-center plc-w-full plc-border-b plc-border-gray-300"
|
|
18842
18836
|
}, /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
18843
|
-
className: "pelcro-select-plan-title plc-font-medium plc-text-xl"
|
|
18837
|
+
className: "pelcro-select-plan-title plc-font-medium plc-text-xl plc-break-all"
|
|
18844
18838
|
}, plan.nickname), /*#__PURE__*/React__default['default'].createElement("p", {
|
|
18845
18839
|
className: "plc-text-sm plc-mt-1 pelcro-select-plan-description"
|
|
18846
18840
|
}, plan.description)), /*#__PURE__*/React__default['default'].createElement("div", {
|
package/dist/index.esm.js
CHANGED
|
@@ -18458,7 +18458,7 @@ const NextArrow = ({
|
|
|
18458
18458
|
onClick,
|
|
18459
18459
|
className
|
|
18460
18460
|
}) => /*#__PURE__*/React__default.createElement("button", {
|
|
18461
|
-
className: `plc-text-white plc-w-11 plc-h-11 plc-bg-primary
|
|
18461
|
+
className: `sm:plc-flex plc-hidden plc-text-white plc-w-11 plc-h-11 plc-bg-primary plc-items-center plc-justify-center plc-rounded-full plc-text-sm plc-absolute plc-top-1/2 plc--right-16 plc-transform plc--translate-y-1/2 plc-border plc-border-primary hover:plc-bg-white hover:plc-text-primary ${className}`,
|
|
18462
18462
|
onClick: onClick
|
|
18463
18463
|
}, /*#__PURE__*/React__default.createElement(SvgArrowThinRight, {
|
|
18464
18464
|
stroke: "currentColor",
|
|
@@ -18471,7 +18471,7 @@ const PrevArrow = ({
|
|
|
18471
18471
|
onClick,
|
|
18472
18472
|
className
|
|
18473
18473
|
}) => /*#__PURE__*/React__default.createElement("button", {
|
|
18474
|
-
className: `plc-text-white plc-w-11 plc-h-11 plc-bg-primary plc-
|
|
18474
|
+
className: `sm:plc-flex plc-hidden plc-text-white plc-w-11 plc-h-11 plc-bg-primary plc-items-center plc-justify-center plc-rounded-full plc-text-sm plc-absolute plc-top-1/2 plc--left-16 plc-transform plc--translate-y-1/2 plc-border plc-border-primary hover:plc-bg-white hover:plc-text-primary ${className}`,
|
|
18475
18475
|
onClick: onClick
|
|
18476
18476
|
}, /*#__PURE__*/React__default.createElement(SvgArrowThinLeft, {
|
|
18477
18477
|
stroke: "currentColor",
|
|
@@ -18512,19 +18512,11 @@ function Carousel({
|
|
|
18512
18512
|
}
|
|
18513
18513
|
}]
|
|
18514
18514
|
};
|
|
18515
|
-
return (
|
|
18516
|
-
|
|
18517
|
-
|
|
18518
|
-
|
|
18519
|
-
|
|
18520
|
-
// }`}
|
|
18521
|
-
// >
|
|
18522
|
-
React__default.createElement("div", {
|
|
18523
|
-
className: "carousel-wrapper plc-relative plc-px-16"
|
|
18524
|
-
}, /*#__PURE__*/React__default.createElement(Slider, Object.assign({
|
|
18525
|
-
ref: ref
|
|
18526
|
-
}, settings), children))
|
|
18527
|
-
);
|
|
18515
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
18516
|
+
className: "carousel-wrapper plc-relative sm:plc-px-16 plc-px-0"
|
|
18517
|
+
}, /*#__PURE__*/React__default.createElement(Slider, Object.assign({
|
|
18518
|
+
ref: ref
|
|
18519
|
+
}, settings), children));
|
|
18528
18520
|
}
|
|
18529
18521
|
|
|
18530
18522
|
var _path$m;
|
|
@@ -18732,20 +18724,20 @@ class SelectModal extends Component {
|
|
|
18732
18724
|
description
|
|
18733
18725
|
} = this.state.product;
|
|
18734
18726
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18735
|
-
className: "productTabs
|
|
18727
|
+
className: "productTabs"
|
|
18736
18728
|
}, /*#__PURE__*/React__default.createElement("ul", {
|
|
18737
|
-
className: "tabs plc-flex plc-items-center plc-text-center plc-border-b plc-border-gray-300 plc-mb-
|
|
18729
|
+
className: "tabs plc-flex plc-items-center plc-text-center plc-border-b plc-border-gray-300 plc-mb-4 plc-overflow-x-auto"
|
|
18738
18730
|
}, this.state.productList.map((product, index) => {
|
|
18739
18731
|
var _this$state$product;
|
|
18740
18732
|
|
|
18741
18733
|
return /*#__PURE__*/React__default.createElement("li", {
|
|
18742
18734
|
key: product.id,
|
|
18743
18735
|
id: `${product.id === ((_this$state$product = this.state.product) === null || _this$state$product === void 0 ? void 0 : _this$state$product.id) ? "activeTab" : ""}`,
|
|
18744
|
-
className: "plc-relative"
|
|
18736
|
+
className: "plc-relative plc-mx-1"
|
|
18745
18737
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
18746
18738
|
onClick: productButtonCallback,
|
|
18747
18739
|
"data-key": product.id,
|
|
18748
|
-
className: "plc-px-4 plc-py-2 plc-text-gray-600 focus:plc-outline-none plc-whitespace-nowrap"
|
|
18740
|
+
className: "plc-px-4 plc-py-2 plc-bg-white plc-border plc-border-gray-200 plc-rounded plc-text-gray-600 focus:plc-outline-none plc-whitespace-nowrap"
|
|
18749
18741
|
}, product.name));
|
|
18750
18742
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
18751
18743
|
className: "selectedProduct plc-flex plc-flex-col plc-items-center plc-justify-center"
|
|
@@ -18754,7 +18746,9 @@ class SelectModal extends Component {
|
|
|
18754
18746
|
}, /*#__PURE__*/React__default.createElement("img", {
|
|
18755
18747
|
src: image,
|
|
18756
18748
|
alt: "Product Image"
|
|
18757
|
-
})), description && /*#__PURE__*/React__default.createElement("p",
|
|
18749
|
+
})), description && /*#__PURE__*/React__default.createElement("p", {
|
|
18750
|
+
className: "plc-text-center"
|
|
18751
|
+
}, description)));
|
|
18758
18752
|
});
|
|
18759
18753
|
|
|
18760
18754
|
_defineProperty$3(this, "renderMatchingProductsFirst", () => {
|
|
@@ -18810,7 +18804,7 @@ class SelectModal extends Component {
|
|
|
18810
18804
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
18811
18805
|
className: "plc-p-4 plc-text-center plc-flex plc-flex-col plc-justify-center plc-items-center plc-w-full plc-border-b plc-border-gray-300"
|
|
18812
18806
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
18813
|
-
className: "pelcro-select-plan-title plc-font-medium plc-text-xl"
|
|
18807
|
+
className: "pelcro-select-plan-title plc-font-medium plc-text-xl plc-break-all"
|
|
18814
18808
|
}, plan.nickname), /*#__PURE__*/React__default.createElement("p", {
|
|
18815
18809
|
className: "plc-text-sm plc-mt-1 pelcro-select-plan-description"
|
|
18816
18810
|
}, plan.description)), /*#__PURE__*/React__default.createElement("div", {
|
package/dist/pelcro.css
CHANGED
|
@@ -842,7 +842,6 @@ Add the correct display in Chrome and Safari.
|
|
|
842
842
|
--tw-bg-opacity: 1;
|
|
843
843
|
background-color: rgba(243, 244, 246, var(--tw-bg-opacity));
|
|
844
844
|
padding: 1rem;
|
|
845
|
-
padding-bottom: 2.75rem;
|
|
846
845
|
font-size: 0.875rem;
|
|
847
846
|
line-height: 1.25rem;
|
|
848
847
|
}
|
|
@@ -1670,12 +1669,12 @@ Add the correct display in Chrome and Safari.
|
|
|
1670
1669
|
|
|
1671
1670
|
.pelcro-root .productTabs .tabs::-webkit-scrollbar {
|
|
1672
1671
|
width: 15px;
|
|
1673
|
-
height:
|
|
1672
|
+
height: 3px;
|
|
1674
1673
|
}
|
|
1675
1674
|
|
|
1676
1675
|
.pelcro-root .productTabs .tabs::-webkit-scrollbar-track {
|
|
1677
1676
|
background: lightGrey;
|
|
1678
|
-
border-radius:
|
|
1677
|
+
border-radius: 3px;
|
|
1679
1678
|
}
|
|
1680
1679
|
|
|
1681
1680
|
.pelcro-root .productTabs .tabs::-webkit-scrollbar-thumb {
|
|
@@ -1692,20 +1691,17 @@ Add the correct display in Chrome and Safari.
|
|
|
1692
1691
|
}
|
|
1693
1692
|
|
|
1694
1693
|
.pelcro-root .productTabs .tabs li#activeTab button {
|
|
1695
|
-
color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) - 30%));
|
|
1696
|
-
}
|
|
1697
|
-
|
|
1698
|
-
.pelcro-root .productTabs .tabs li#activeTab:after {
|
|
1699
|
-
content: "";
|
|
1700
|
-
position: absolute;
|
|
1701
|
-
bottom: 0px;
|
|
1702
|
-
left: 0px;
|
|
1703
|
-
display: block;
|
|
1704
|
-
height: 0.25rem;
|
|
1705
|
-
width: 100%;
|
|
1694
|
+
border-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) - 30%));
|
|
1706
1695
|
background-color: hsl(var(--plc-primary-hue), var(--plc-primary-saturation), calc(var(--plc-primary-lightness) - 30%));
|
|
1696
|
+
--tw-text-opacity: 1;
|
|
1697
|
+
color: rgba(255, 255, 255, var(--tw-text-opacity));
|
|
1707
1698
|
}
|
|
1708
1699
|
|
|
1700
|
+
/* .pelcro-root .productTabs .tabs li#activeTab:after {
|
|
1701
|
+
content: "";
|
|
1702
|
+
@apply plc-h-1 plc-bg-primary-800 plc-w-full plc-absolute plc-bottom-0 plc-left-0 plc-block;
|
|
1703
|
+
} */
|
|
1704
|
+
|
|
1709
1705
|
.pelcro-root .selectedProduct img {
|
|
1710
1706
|
max-width: 150px;
|
|
1711
1707
|
height: auto;
|
|
@@ -1733,7 +1729,7 @@ Add the correct display in Chrome and Safari.
|
|
|
1733
1729
|
display: block;
|
|
1734
1730
|
overflow: hidden;
|
|
1735
1731
|
padding: 0;
|
|
1736
|
-
margin: 0 -10px;
|
|
1732
|
+
/* margin: 0 -10px; */
|
|
1737
1733
|
}
|
|
1738
1734
|
|
|
1739
1735
|
.pelcro-root .slick-list:focus {
|
|
@@ -1772,7 +1768,7 @@ Add the correct display in Chrome and Safari.
|
|
|
1772
1768
|
}
|
|
1773
1769
|
|
|
1774
1770
|
.pelcro-root .slick-slide {
|
|
1775
|
-
display: flex;
|
|
1771
|
+
display: flex !important;
|
|
1776
1772
|
align-self: stretch;
|
|
1777
1773
|
height: unset;
|
|
1778
1774
|
margin: 0 10px;
|
|
@@ -2047,6 +2043,11 @@ in order to scope selectors under pelcro-root
|
|
|
2047
2043
|
margin: auto;
|
|
2048
2044
|
}
|
|
2049
2045
|
|
|
2046
|
+
.pelcro-root .plc-mx-1 {
|
|
2047
|
+
margin-left: 0.25rem;
|
|
2048
|
+
margin-right: 0.25rem;
|
|
2049
|
+
}
|
|
2050
|
+
|
|
2050
2051
|
.pelcro-root .plc-mx-4 {
|
|
2051
2052
|
margin-left: 1rem;
|
|
2052
2053
|
margin-right: 1rem;
|
|
@@ -2145,10 +2146,6 @@ in order to scope selectors under pelcro-root
|
|
|
2145
2146
|
margin-bottom: 1.5rem;
|
|
2146
2147
|
}
|
|
2147
2148
|
|
|
2148
|
-
.pelcro-root .plc-mb-8 {
|
|
2149
|
-
margin-bottom: 2rem;
|
|
2150
|
-
}
|
|
2151
|
-
|
|
2152
2149
|
.pelcro-root .plc-mb-9 {
|
|
2153
2150
|
margin-bottom: 2.25rem;
|
|
2154
2151
|
}
|
|
@@ -2695,6 +2692,10 @@ in order to scope selectors under pelcro-root
|
|
|
2695
2692
|
overflow-wrap: break-word;
|
|
2696
2693
|
}
|
|
2697
2694
|
|
|
2695
|
+
.pelcro-root .plc-break-all {
|
|
2696
|
+
word-break: break-all;
|
|
2697
|
+
}
|
|
2698
|
+
|
|
2698
2699
|
.pelcro-root .plc-rounded-none {
|
|
2699
2700
|
border-radius: 0px;
|
|
2700
2701
|
}
|
|
@@ -3014,6 +3015,11 @@ in order to scope selectors under pelcro-root
|
|
|
3014
3015
|
padding: 1.5rem;
|
|
3015
3016
|
}
|
|
3016
3017
|
|
|
3018
|
+
.pelcro-root .plc-px-0 {
|
|
3019
|
+
padding-left: 0px;
|
|
3020
|
+
padding-right: 0px;
|
|
3021
|
+
}
|
|
3022
|
+
|
|
3017
3023
|
.pelcro-root .plc-px-1 {
|
|
3018
3024
|
padding-left: 0.25rem;
|
|
3019
3025
|
padding-right: 0.25rem;
|
|
@@ -3044,11 +3050,6 @@ in order to scope selectors under pelcro-root
|
|
|
3044
3050
|
padding-right: 1.5rem;
|
|
3045
3051
|
}
|
|
3046
3052
|
|
|
3047
|
-
.pelcro-root .plc-px-16 {
|
|
3048
|
-
padding-left: 4rem;
|
|
3049
|
-
padding-right: 4rem;
|
|
3050
|
-
}
|
|
3051
|
-
|
|
3052
3053
|
.pelcro-root .plc-py-1 {
|
|
3053
3054
|
padding-top: 0.25rem;
|
|
3054
3055
|
padding-bottom: 0.25rem;
|
|
@@ -3586,6 +3587,11 @@ in order to scope selectors under pelcro-root
|
|
|
3586
3587
|
padding-right: 2rem;
|
|
3587
3588
|
}
|
|
3588
3589
|
|
|
3590
|
+
.pelcro-root .sm\:plc-px-16 {
|
|
3591
|
+
padding-left: 4rem;
|
|
3592
|
+
padding-right: 4rem;
|
|
3593
|
+
}
|
|
3594
|
+
|
|
3589
3595
|
.pelcro-root .sm\:plc-pl-8 {
|
|
3590
3596
|
padding-left: 2rem;
|
|
3591
3597
|
}
|
|
@@ -3608,15 +3614,6 @@ in order to scope selectors under pelcro-root
|
|
|
3608
3614
|
}
|
|
3609
3615
|
|
|
3610
3616
|
@media (min-width: 1280px) {
|
|
3611
|
-
.pelcro-root .xl\:plc-px-0 {
|
|
3612
|
-
padding-left: 0px;
|
|
3613
|
-
padding-right: 0px;
|
|
3614
|
-
}
|
|
3615
|
-
|
|
3616
|
-
.pelcro-root .xl\:plc-px-16 {
|
|
3617
|
-
padding-left: 4rem;
|
|
3618
|
-
padding-right: 4rem;
|
|
3619
|
-
}
|
|
3620
3617
|
}
|
|
3621
3618
|
|
|
3622
3619
|
@media (min-width: 1536px) {
|