@sellout/ui 0.0.139 → 0.0.142
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.
|
@@ -7,4 +7,4 @@ export declare type ProductProps = {
|
|
|
7
7
|
description?: string;
|
|
8
8
|
imageUrl?: string;
|
|
9
9
|
} & CounterProps;
|
|
10
|
-
export default function Product({ title, price,
|
|
10
|
+
export default function Product({ title, price, subtitle, description, isRSVP, value, minValue, maxValue, onIncrement, onDecrement, }: ProductProps): JSX.Element;
|
|
@@ -11,14 +11,14 @@ var Row = styled.div(templateObject_1 || (templateObject_1 = __makeTemplateObjec
|
|
|
11
11
|
var Column = styled.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n"], ["\n display: flex;\n flex-direction: column;\n"])));
|
|
12
12
|
var Container = styled.div(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n background-color: ", ";\n margin: 0 24px;\n padding: 24px 0;\n border-bottom: 1px solid ", ";\n"], ["\n background-color: ", ";\n margin: 0 24px;\n padding: 24px 0;\n border-bottom: 1px solid ", ";\n"])), Colors.White, Colors.Grey6);
|
|
13
13
|
var Title = styled.div(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n font-size: 1.8rem;\n color: ", ";\n font-weight: 600;\n margin-bottom: 5px;\n"], ["\n font-size: 1.8rem;\n color: ", ";\n font-weight: 600;\n margin-bottom: 5px;\n"])), Colors.Grey1);
|
|
14
|
-
var Price = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: 1.6rem;\n font-weight: 500;\n color: ", ";\n margin-bottom:
|
|
14
|
+
var Price = styled.div(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n font-size: 1.6rem;\n font-weight: 500;\n color: ", ";\n margin-bottom:5px;\n"], ["\n font-size: 1.6rem;\n font-weight: 500;\n color: ", ";\n margin-bottom:5px;\n"])), Colors.Grey2);
|
|
15
15
|
var Subtitle = styled.div(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 160%;\n color: ", ";\n"], ["\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 160%;\n color: ", ";\n"])), Colors.Grey3);
|
|
16
16
|
var Description = styled.div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 160%;\n color: ", ";\n margin-top: 10px;\n"], ["\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 160%;\n color: ", ";\n margin-top: 10px;\n"])), Colors.Grey2);
|
|
17
17
|
var Ellipsis = styled.div(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n display: -webkit-box;\n -webkit-line-clamp: ", ";\n -webkit-box-orient: ", ";\n overflow: hidden;\n text-overflow: ellipsis;\n"])), function (props) { return props.active ? 3 : null; }, function (props) { return props.active ? 'vertical' : null; });
|
|
18
18
|
var ShowMore = styled.div(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 160%;\n color: ", ";\n transition: all 0.2s;\n"], ["\n font-size: 1.2rem;\n font-weight: 500;\n line-height: 160%;\n color: ", ";\n transition: all 0.2s;\n"])), Colors.Orange);
|
|
19
19
|
var ShowMoreInner = styled.span(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n &:hover {\n cursor: pointer;\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n"], ["\n &:hover {\n cursor: pointer;\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n"])), lighten(0.025, Colors.Orange), darken(0.025, Colors.Orange));
|
|
20
20
|
function Product(_a) {
|
|
21
|
-
var _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.price, price = _c === void 0 ? 0 : _c, _d = _a.
|
|
21
|
+
var _b = _a.title, title = _b === void 0 ? '' : _b, _c = _a.price, price = _c === void 0 ? 0 : _c, _d = _a.subtitle, subtitle = _d === void 0 ? '' : _d, _e = _a.description, description = _e === void 0 ? '' : _e, _f = _a.isRSVP, isRSVP = _f === void 0 ? false : _f,
|
|
22
22
|
// Counter Props
|
|
23
23
|
value = _a.value, minValue = _a.minValue, maxValue = _a.maxValue, onIncrement = _a.onIncrement, onDecrement = _a.onDecrement;
|
|
24
24
|
var _g = useState(false), showMore = _g[0], setShowMore = _g[1];
|
|
@@ -35,7 +35,7 @@ function Product(_a) {
|
|
|
35
35
|
React.createElement(Row, { justify: "space-between" },
|
|
36
36
|
React.createElement(Column, null,
|
|
37
37
|
React.createElement(Title, null, title),
|
|
38
|
-
React.createElement(Price, null,
|
|
38
|
+
isRSVP ? ((output(price, true) === "0.00" || 0) ? React.createElement(Price, null, "RSVP") : React.createElement(Price, null, "$" + output(price, true) + " (Ticket value)")) : React.createElement(Price, null, "$" + output(price, true))),
|
|
39
39
|
React.createElement(Counter, { value: value, minValue: minValue, maxValue: maxValue, onIncrement: onIncrement, onDecrement: onDecrement })),
|
|
40
40
|
React.createElement(Row, null, subtitle && React.createElement(Subtitle, null, subtitle)),
|
|
41
41
|
(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sellout/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.142",
|
|
4
4
|
"main": "build/index.js",
|
|
5
5
|
"module": "build/index.es.js",
|
|
6
6
|
"files": [
|
|
@@ -64,13 +64,13 @@
|
|
|
64
64
|
"csvtojson": "^2.0.10",
|
|
65
65
|
"framer-motion": "^2.9.5",
|
|
66
66
|
"polished": "^3.7.2",
|
|
67
|
-
"react-animate-height": "
|
|
67
|
+
"react-animate-height": "2.0.20",
|
|
68
68
|
"react-phone-input-2": "^2.14.0",
|
|
69
69
|
"rollup-plugin-url": "^3.0.1",
|
|
70
70
|
"shortid": "^2.2.16",
|
|
71
71
|
"use-places-autocomplete": "^1.9.4"
|
|
72
72
|
},
|
|
73
|
-
"gitHead": "
|
|
73
|
+
"gitHead": "3d2e939c63baf226767d219a867954bbc251783e",
|
|
74
74
|
"peerDependencies": {
|
|
75
75
|
"react": "^16.13.0",
|
|
76
76
|
"react-dom": "^16.13.0",
|