@bonlineza/luxity-lib 2.30.2 → 2.31.0
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 +12 -2
- package/CommunicationPreferenceOptionsRenderer.js +40 -28
- package/CommunicationPreferenceSection.js +44 -32
- package/CommunicationPreferences.js +48 -37
- package/CreateRarestepInterest.js +85 -0
- package/GALink.js +60 -0
- package/GraphQLDropdownSelector.js +4 -7
- package/LuxityDesktopHeader.js +373 -0
- package/LuxityFooter.js +2026 -0
- package/LuxityGraphQLDropdownSelector.js +10 -8
- package/LuxityHeader.js +369 -0
- package/LuxityMobileHeader.js +567 -0
- package/LuxitySideNav.js +424 -0
- package/MaterialSelector.js +10 -8
- package/ModelSelector.js +10 -8
- package/Tracking.js +27 -0
- package/build/assets/.DS_Store +0 -0
- package/build/bundle.css +1 -0
- package/build/bundle.js +1018 -33
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
## Changelog
|
|
2
2
|
|
|
3
|
+
### 2.31.0
|
|
4
|
+
- Add Luxity Desktop Header Component
|
|
5
|
+
- Add Luxity Mobile Header Component
|
|
6
|
+
- Add Luxity Footer Component
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### 2.30.3
|
|
10
|
+
- update the communication preferences radio buttons to match the existing style of radio buttons.
|
|
11
|
+
- update the is_disabled prop tp follow camel case.
|
|
12
|
+
|
|
3
13
|
### 2.30.2
|
|
4
|
-
- rename
|
|
5
|
-
-
|
|
14
|
+
- rename dropdown components to make them more generic.
|
|
15
|
+
- add shoe size range selector
|
|
6
16
|
|
|
7
17
|
### 2.30.1
|
|
8
18
|
- adding a class name prop for the buttons on the communications preference components.
|
|
@@ -522,20 +522,39 @@
|
|
|
522
522
|
};
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
+
var _templateObject;
|
|
526
|
+
var RadioButtonLabel = styled.label(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin-bottom: ", ";\n margin-right: ", ";\n"])), function (props) {
|
|
527
|
+
return props.theme.marginPaddings[0];
|
|
528
|
+
}, function (props) {
|
|
529
|
+
return props.theme.marginPaddings[0];
|
|
530
|
+
});
|
|
531
|
+
|
|
532
|
+
var _templateObject$1;
|
|
533
|
+
var RadioButtonText = styled.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
|
|
534
|
+
|
|
535
|
+
var _templateObject$2;
|
|
536
|
+
var RadioButtonCircle = styled.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n height: 20px;\n width: 20px;\n border-radius: 50%;\n margin-right: 5px;\n border: 1px solid ", ";\n display: flex;\n"])), function (props) {
|
|
537
|
+
return props.theme.colors.base;
|
|
538
|
+
});
|
|
539
|
+
|
|
540
|
+
var _templateObject$3;
|
|
541
|
+
var RadioButtonCircleInner = styled.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n height: 8px;\n width: 8px;\n border-radius: 50%;\n margin: auto;\n"])));
|
|
542
|
+
|
|
543
|
+
var _templateObject$4;
|
|
544
|
+
var RadioButtonInput = styled.input(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n display: none;\n :checked ~ ", " {\n ", " {\n background-color: ", ";\n }\n }\n"])), RadioButtonCircle, RadioButtonCircleInner, function (props) {
|
|
545
|
+
return props.theme.colors.base;
|
|
546
|
+
});
|
|
547
|
+
|
|
525
548
|
var _excluded = ["ref"];
|
|
526
549
|
|
|
527
|
-
var _templateObject, _templateObject2
|
|
528
|
-
var OptionsRow = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n"])));
|
|
529
|
-
var
|
|
530
|
-
var Options = styled.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
|
|
531
|
-
var OptionRadioInputContainer = styled.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex-basis: 50%;\n"])));
|
|
532
|
-
var OptionRadioInput = styled.input(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: 5px;\n"])));
|
|
550
|
+
var _templateObject$5, _templateObject2;
|
|
551
|
+
var OptionsRow = styled.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n"])));
|
|
552
|
+
var Options = styled.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
|
|
533
553
|
|
|
534
554
|
var CommunicationPreferenceOptionsRenderer = function CommunicationPreferenceOptionsRenderer(_ref) {
|
|
535
|
-
var
|
|
536
|
-
control = _ref.control,
|
|
555
|
+
var control = _ref.control,
|
|
537
556
|
name = _ref.name,
|
|
538
|
-
|
|
557
|
+
isDisabled = _ref.isDisabled,
|
|
539
558
|
options = _ref.options,
|
|
540
559
|
defaultValue = _ref.defaultValue,
|
|
541
560
|
setValue = _ref.setValue;
|
|
@@ -557,27 +576,20 @@
|
|
|
557
576
|
setValue(name, defaultValue);
|
|
558
577
|
}
|
|
559
578
|
}, [defaultValue, name, setValue]);
|
|
560
|
-
return /*#__PURE__*/React__default.createElement(OptionsRow, null, /*#__PURE__*/React__default.createElement(
|
|
561
|
-
return /*#__PURE__*/React__default.createElement(
|
|
562
|
-
key: option.value
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
value: option.value,
|
|
568
|
-
checked: inputProps.value === option.value.toString(),
|
|
569
|
-
disabled: true
|
|
570
|
-
})), option.label);
|
|
571
|
-
})) : /*#__PURE__*/React__default.createElement(Options, null, options.map(function (option) {
|
|
572
|
-
return /*#__PURE__*/React__default.createElement(OptionRadioInputContainer, {
|
|
573
|
-
key: option.value
|
|
574
|
-
}, /*#__PURE__*/React__default.createElement(OptionRadioInput, _extends({
|
|
579
|
+
return /*#__PURE__*/React__default.createElement(OptionsRow, null, /*#__PURE__*/React__default.createElement(Options, null, options.map(function (option) {
|
|
580
|
+
return /*#__PURE__*/React__default.createElement(RadioButtonLabel, {
|
|
581
|
+
key: option.value,
|
|
582
|
+
htmlFor: option.value
|
|
583
|
+
}, /*#__PURE__*/React__default.createElement(RadioButtonInput, _extends({
|
|
584
|
+
id: option.value,
|
|
585
|
+
ref: ref,
|
|
575
586
|
type: "radio",
|
|
576
|
-
|
|
587
|
+
name: name,
|
|
588
|
+
defaultChecked: inputProps.value === option.value.toString()
|
|
577
589
|
}, inputProps, {
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
})), option.label);
|
|
590
|
+
disabled: isDisabled,
|
|
591
|
+
value: option.value
|
|
592
|
+
})), /*#__PURE__*/React__default.createElement(RadioButtonCircle, null, /*#__PURE__*/React__default.createElement(RadioButtonCircleInner, null)), /*#__PURE__*/React__default.createElement(RadioButtonText, null, option.label));
|
|
581
593
|
})), invalid && /*#__PURE__*/React__default.createElement("span", {
|
|
582
594
|
className: "form__error"
|
|
583
595
|
}, error === null || error === void 0 ? void 0 : error.message));
|
|
@@ -586,20 +586,39 @@
|
|
|
586
586
|
};
|
|
587
587
|
}
|
|
588
588
|
|
|
589
|
+
var _templateObject;
|
|
590
|
+
var RadioButtonLabel = styled__default.label(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin-bottom: ", ";\n margin-right: ", ";\n"])), function (props) {
|
|
591
|
+
return props.theme.marginPaddings[0];
|
|
592
|
+
}, function (props) {
|
|
593
|
+
return props.theme.marginPaddings[0];
|
|
594
|
+
});
|
|
595
|
+
|
|
596
|
+
var _templateObject$1;
|
|
597
|
+
var RadioButtonText = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
|
|
598
|
+
|
|
599
|
+
var _templateObject$2;
|
|
600
|
+
var RadioButtonCircle = styled__default.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n height: 20px;\n width: 20px;\n border-radius: 50%;\n margin-right: 5px;\n border: 1px solid ", ";\n display: flex;\n"])), function (props) {
|
|
601
|
+
return props.theme.colors.base;
|
|
602
|
+
});
|
|
603
|
+
|
|
604
|
+
var _templateObject$3;
|
|
605
|
+
var RadioButtonCircleInner = styled__default.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n height: 8px;\n width: 8px;\n border-radius: 50%;\n margin: auto;\n"])));
|
|
606
|
+
|
|
607
|
+
var _templateObject$4;
|
|
608
|
+
var RadioButtonInput = styled__default.input(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n display: none;\n :checked ~ ", " {\n ", " {\n background-color: ", ";\n }\n }\n"])), RadioButtonCircle, RadioButtonCircleInner, function (props) {
|
|
609
|
+
return props.theme.colors.base;
|
|
610
|
+
});
|
|
611
|
+
|
|
589
612
|
var _excluded = ["ref"];
|
|
590
613
|
|
|
591
|
-
var _templateObject, _templateObject2
|
|
592
|
-
var OptionsRow = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n"])));
|
|
593
|
-
var
|
|
594
|
-
var Options = styled__default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
|
|
595
|
-
var OptionRadioInputContainer = styled__default.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex-basis: 50%;\n"])));
|
|
596
|
-
var OptionRadioInput = styled__default.input(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: 5px;\n"])));
|
|
614
|
+
var _templateObject$5, _templateObject2;
|
|
615
|
+
var OptionsRow = styled__default.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n"])));
|
|
616
|
+
var Options = styled__default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
|
|
597
617
|
|
|
598
618
|
var CommunicationPreferenceOptionsRenderer = function CommunicationPreferenceOptionsRenderer(_ref) {
|
|
599
|
-
var
|
|
600
|
-
control = _ref.control,
|
|
619
|
+
var control = _ref.control,
|
|
601
620
|
name = _ref.name,
|
|
602
|
-
|
|
621
|
+
isDisabled = _ref.isDisabled,
|
|
603
622
|
options = _ref.options,
|
|
604
623
|
defaultValue = _ref.defaultValue,
|
|
605
624
|
setValue = _ref.setValue;
|
|
@@ -621,34 +640,27 @@
|
|
|
621
640
|
setValue(name, defaultValue);
|
|
622
641
|
}
|
|
623
642
|
}, [defaultValue, name, setValue]);
|
|
624
|
-
return /*#__PURE__*/React__default.createElement(OptionsRow, null, /*#__PURE__*/React__default.createElement(
|
|
625
|
-
return /*#__PURE__*/React__default.createElement(
|
|
626
|
-
key: option.value
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
value: option.value,
|
|
632
|
-
checked: inputProps.value === option.value.toString(),
|
|
633
|
-
disabled: true
|
|
634
|
-
})), option.label);
|
|
635
|
-
})) : /*#__PURE__*/React__default.createElement(Options, null, options.map(function (option) {
|
|
636
|
-
return /*#__PURE__*/React__default.createElement(OptionRadioInputContainer, {
|
|
637
|
-
key: option.value
|
|
638
|
-
}, /*#__PURE__*/React__default.createElement(OptionRadioInput, _extends({
|
|
643
|
+
return /*#__PURE__*/React__default.createElement(OptionsRow, null, /*#__PURE__*/React__default.createElement(Options, null, options.map(function (option) {
|
|
644
|
+
return /*#__PURE__*/React__default.createElement(RadioButtonLabel, {
|
|
645
|
+
key: option.value,
|
|
646
|
+
htmlFor: option.value
|
|
647
|
+
}, /*#__PURE__*/React__default.createElement(RadioButtonInput, _extends({
|
|
648
|
+
id: option.value,
|
|
649
|
+
ref: ref,
|
|
639
650
|
type: "radio",
|
|
640
|
-
|
|
651
|
+
name: name,
|
|
652
|
+
defaultChecked: inputProps.value === option.value.toString()
|
|
641
653
|
}, inputProps, {
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
})), option.label);
|
|
654
|
+
disabled: isDisabled,
|
|
655
|
+
value: option.value
|
|
656
|
+
})), /*#__PURE__*/React__default.createElement(RadioButtonCircle, null, /*#__PURE__*/React__default.createElement(RadioButtonCircleInner, null)), /*#__PURE__*/React__default.createElement(RadioButtonText, null, option.label));
|
|
645
657
|
})), invalid && /*#__PURE__*/React__default.createElement("span", {
|
|
646
658
|
className: "form__error"
|
|
647
659
|
}, error === null || error === void 0 ? void 0 : error.message));
|
|
648
660
|
};
|
|
649
661
|
|
|
650
|
-
var _templateObject$
|
|
651
|
-
var SectionContainer = styled__default.div(_templateObject$
|
|
662
|
+
var _templateObject$6, _templateObject2$1;
|
|
663
|
+
var SectionContainer = styled__default.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteral(["\n border-top: flex 1px solid ", ";\n border-top-width: calc(100% - 50px);\n padding: 5px 10px;\n"])), function (props) {
|
|
652
664
|
return props.theme.colors.primary;
|
|
653
665
|
});
|
|
654
666
|
var SectionHeading = styled__default.div(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n padding: 5px 10px;\n"])));
|
|
@@ -658,7 +670,7 @@
|
|
|
658
670
|
description = _ref.description,
|
|
659
671
|
control = _ref.control,
|
|
660
672
|
name = _ref.name,
|
|
661
|
-
|
|
673
|
+
isDisabled = _ref.isDisabled,
|
|
662
674
|
options = _ref.options,
|
|
663
675
|
defaultValue = _ref.defaultValue,
|
|
664
676
|
setValue = _ref.setValue;
|
|
@@ -666,7 +678,7 @@
|
|
|
666
678
|
description: description,
|
|
667
679
|
control: control,
|
|
668
680
|
name: name,
|
|
669
|
-
|
|
681
|
+
isDisabled: isDisabled,
|
|
670
682
|
options: options,
|
|
671
683
|
defaultValue: defaultValue,
|
|
672
684
|
setValue: setValue
|
|
@@ -2238,20 +2238,39 @@
|
|
|
2238
2238
|
});
|
|
2239
2239
|
});
|
|
2240
2240
|
|
|
2241
|
+
var _templateObject;
|
|
2242
|
+
var RadioButtonLabel = styled__default.label(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n margin-bottom: ", ";\n margin-right: ", ";\n"])), function (props) {
|
|
2243
|
+
return props.theme.marginPaddings[0];
|
|
2244
|
+
}, function (props) {
|
|
2245
|
+
return props.theme.marginPaddings[0];
|
|
2246
|
+
});
|
|
2247
|
+
|
|
2248
|
+
var _templateObject$1;
|
|
2249
|
+
var RadioButtonText = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n"])));
|
|
2250
|
+
|
|
2251
|
+
var _templateObject$2;
|
|
2252
|
+
var RadioButtonCircle = styled__default.div(_templateObject$2 || (_templateObject$2 = _taggedTemplateLiteral(["\n height: 20px;\n width: 20px;\n border-radius: 50%;\n margin-right: 5px;\n border: 1px solid ", ";\n display: flex;\n"])), function (props) {
|
|
2253
|
+
return props.theme.colors.base;
|
|
2254
|
+
});
|
|
2255
|
+
|
|
2256
|
+
var _templateObject$3;
|
|
2257
|
+
var RadioButtonCircleInner = styled__default.div(_templateObject$3 || (_templateObject$3 = _taggedTemplateLiteral(["\n height: 8px;\n width: 8px;\n border-radius: 50%;\n margin: auto;\n"])));
|
|
2258
|
+
|
|
2259
|
+
var _templateObject$4;
|
|
2260
|
+
var RadioButtonInput = styled__default.input(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteral(["\n display: none;\n :checked ~ ", " {\n ", " {\n background-color: ", ";\n }\n }\n"])), RadioButtonCircle, RadioButtonCircleInner, function (props) {
|
|
2261
|
+
return props.theme.colors.base;
|
|
2262
|
+
});
|
|
2263
|
+
|
|
2241
2264
|
var _excluded = ["ref"];
|
|
2242
2265
|
|
|
2243
|
-
var _templateObject, _templateObject2
|
|
2244
|
-
var OptionsRow = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n"])));
|
|
2245
|
-
var
|
|
2246
|
-
var Options = styled__default.div(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
|
|
2247
|
-
var OptionRadioInputContainer = styled__default.span(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n flex-basis: 50%;\n"])));
|
|
2248
|
-
var OptionRadioInput = styled__default.input(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n margin-right: 5px;\n"])));
|
|
2266
|
+
var _templateObject$5, _templateObject2;
|
|
2267
|
+
var OptionsRow = styled__default.div(_templateObject$5 || (_templateObject$5 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n"])));
|
|
2268
|
+
var Options = styled__default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
|
|
2249
2269
|
|
|
2250
2270
|
var CommunicationPreferenceOptionsRenderer = function CommunicationPreferenceOptionsRenderer(_ref) {
|
|
2251
|
-
var
|
|
2252
|
-
control = _ref.control,
|
|
2271
|
+
var control = _ref.control,
|
|
2253
2272
|
name = _ref.name,
|
|
2254
|
-
|
|
2273
|
+
isDisabled = _ref.isDisabled,
|
|
2255
2274
|
options = _ref.options,
|
|
2256
2275
|
defaultValue = _ref.defaultValue,
|
|
2257
2276
|
setValue = _ref.setValue;
|
|
@@ -2273,34 +2292,27 @@
|
|
|
2273
2292
|
setValue(name, defaultValue);
|
|
2274
2293
|
}
|
|
2275
2294
|
}, [defaultValue, name, setValue]);
|
|
2276
|
-
return /*#__PURE__*/React__default.createElement(OptionsRow, null, /*#__PURE__*/React__default.createElement(
|
|
2277
|
-
return /*#__PURE__*/React__default.createElement(
|
|
2278
|
-
key: option.value
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
value: option.value,
|
|
2284
|
-
checked: inputProps.value === option.value.toString(),
|
|
2285
|
-
disabled: true
|
|
2286
|
-
})), option.label);
|
|
2287
|
-
})) : /*#__PURE__*/React__default.createElement(Options, null, options.map(function (option) {
|
|
2288
|
-
return /*#__PURE__*/React__default.createElement(OptionRadioInputContainer, {
|
|
2289
|
-
key: option.value
|
|
2290
|
-
}, /*#__PURE__*/React__default.createElement(OptionRadioInput, _extends({
|
|
2295
|
+
return /*#__PURE__*/React__default.createElement(OptionsRow, null, /*#__PURE__*/React__default.createElement(Options, null, options.map(function (option) {
|
|
2296
|
+
return /*#__PURE__*/React__default.createElement(RadioButtonLabel, {
|
|
2297
|
+
key: option.value,
|
|
2298
|
+
htmlFor: option.value
|
|
2299
|
+
}, /*#__PURE__*/React__default.createElement(RadioButtonInput, _extends({
|
|
2300
|
+
id: option.value,
|
|
2301
|
+
ref: ref,
|
|
2291
2302
|
type: "radio",
|
|
2292
|
-
|
|
2303
|
+
name: name,
|
|
2304
|
+
defaultChecked: inputProps.value === option.value.toString()
|
|
2293
2305
|
}, inputProps, {
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
})), option.label);
|
|
2306
|
+
disabled: isDisabled,
|
|
2307
|
+
value: option.value
|
|
2308
|
+
})), /*#__PURE__*/React__default.createElement(RadioButtonCircle, null, /*#__PURE__*/React__default.createElement(RadioButtonCircleInner, null)), /*#__PURE__*/React__default.createElement(RadioButtonText, null, option.label));
|
|
2297
2309
|
})), invalid && /*#__PURE__*/React__default.createElement("span", {
|
|
2298
2310
|
className: "form__error"
|
|
2299
2311
|
}, error === null || error === void 0 ? void 0 : error.message));
|
|
2300
2312
|
};
|
|
2301
2313
|
|
|
2302
|
-
var _templateObject$
|
|
2303
|
-
var SectionContainer = styled__default.div(_templateObject$
|
|
2314
|
+
var _templateObject$6, _templateObject2$1;
|
|
2315
|
+
var SectionContainer = styled__default.div(_templateObject$6 || (_templateObject$6 = _taggedTemplateLiteral(["\n border-top: flex 1px solid ", ";\n border-top-width: calc(100% - 50px);\n padding: 5px 10px;\n"])), function (props) {
|
|
2304
2316
|
return props.theme.colors.primary;
|
|
2305
2317
|
});
|
|
2306
2318
|
var SectionHeading = styled__default.div(_templateObject2$1 || (_templateObject2$1 = _taggedTemplateLiteral(["\n padding: 5px 10px;\n"])));
|
|
@@ -2310,7 +2322,7 @@
|
|
|
2310
2322
|
description = _ref.description,
|
|
2311
2323
|
control = _ref.control,
|
|
2312
2324
|
name = _ref.name,
|
|
2313
|
-
|
|
2325
|
+
isDisabled = _ref.isDisabled,
|
|
2314
2326
|
options = _ref.options,
|
|
2315
2327
|
defaultValue = _ref.defaultValue,
|
|
2316
2328
|
setValue = _ref.setValue;
|
|
@@ -2318,7 +2330,7 @@
|
|
|
2318
2330
|
description: description,
|
|
2319
2331
|
control: control,
|
|
2320
2332
|
name: name,
|
|
2321
|
-
|
|
2333
|
+
isDisabled: isDisabled,
|
|
2322
2334
|
options: options,
|
|
2323
2335
|
defaultValue: defaultValue,
|
|
2324
2336
|
setValue: setValue
|
|
@@ -2361,10 +2373,10 @@
|
|
|
2361
2373
|
GET: 'GET'
|
|
2362
2374
|
};
|
|
2363
2375
|
|
|
2364
|
-
var _templateObject$
|
|
2365
|
-
var CommunicationPreferenceContainer = styled__default.div(_templateObject$
|
|
2376
|
+
var _templateObject$7, _templateObject2$2, _templateObject3;
|
|
2377
|
+
var CommunicationPreferenceContainer = styled__default.div(_templateObject$7 || (_templateObject$7 = _taggedTemplateLiteral(["\n border: solid 1px #d1d5dbff;\n margin-bottom: 40px;\n"])));
|
|
2366
2378
|
var EditButtonRow = styled__default.div(_templateObject2$2 || (_templateObject2$2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: end;\n padding: 10px 5px;\n margin-right: 16px;\n"])));
|
|
2367
|
-
var SubmitButton = styled__default.input(_templateObject3
|
|
2379
|
+
var SubmitButton = styled__default.input(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n flex-basis: 15%;\n margin-right: 5px;\n"])));
|
|
2368
2380
|
var BaseRequest = {
|
|
2369
2381
|
loading: false,
|
|
2370
2382
|
success: false,
|
|
@@ -2438,11 +2450,10 @@
|
|
|
2438
2450
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, requestState.loading && /*#__PURE__*/React__default.createElement(EllipsisLoader, null), header, /*#__PURE__*/React__default.createElement(CommunicationPreferenceContainer, null, /*#__PURE__*/React__default.createElement("form", {
|
|
2439
2451
|
onSubmit: handleSubmit(onSubmit)
|
|
2440
2452
|
}, /*#__PURE__*/React__default.createElement(CommunicationPreferenceSection$1, {
|
|
2441
|
-
description: "How would you prefer to receive communication: ",
|
|
2442
2453
|
control: control,
|
|
2443
2454
|
name: "default_communication",
|
|
2444
2455
|
options: communicationOptions,
|
|
2445
|
-
|
|
2456
|
+
isDisabled: !isEditing,
|
|
2446
2457
|
defaultValue: preferenceData.default_communication,
|
|
2447
2458
|
setValue: setValue
|
|
2448
2459
|
}), isEditing ? /*#__PURE__*/React__default.createElement(EditButtonRow, null, /*#__PURE__*/React__default.createElement(SubmitButton, {
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['react'], factory) :
|
|
4
|
+
(global = global || self, global.CreateRarestepInterest = factory(global.React));
|
|
5
|
+
}(this, (function (React) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var React__default = 'default' in React ? React['default'] : React;
|
|
8
|
+
|
|
9
|
+
function _slicedToArray(arr, i) {
|
|
10
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function _arrayWithHoles(arr) {
|
|
14
|
+
if (Array.isArray(arr)) return arr;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
function _iterableToArrayLimit(arr, i) {
|
|
18
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
|
19
|
+
|
|
20
|
+
if (_i == null) return;
|
|
21
|
+
var _arr = [];
|
|
22
|
+
var _n = true;
|
|
23
|
+
var _d = false;
|
|
24
|
+
|
|
25
|
+
var _s, _e;
|
|
26
|
+
|
|
27
|
+
try {
|
|
28
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
29
|
+
_arr.push(_s.value);
|
|
30
|
+
|
|
31
|
+
if (i && _arr.length === i) break;
|
|
32
|
+
}
|
|
33
|
+
} catch (err) {
|
|
34
|
+
_d = true;
|
|
35
|
+
_e = err;
|
|
36
|
+
} finally {
|
|
37
|
+
try {
|
|
38
|
+
if (!_n && _i["return"] != null) _i["return"]();
|
|
39
|
+
} finally {
|
|
40
|
+
if (_d) throw _e;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return _arr;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
48
|
+
if (!o) return;
|
|
49
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
50
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
51
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
52
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
53
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
function _arrayLikeToArray(arr, len) {
|
|
57
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
58
|
+
|
|
59
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
60
|
+
|
|
61
|
+
return arr2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
function _nonIterableRest() {
|
|
65
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
var CreateRarestepInterest = function CreateRarestepInterest() {
|
|
69
|
+
var _useState = React.useState(null),
|
|
70
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
71
|
+
state = _useState2[0],
|
|
72
|
+
setState = _useState2[1];
|
|
73
|
+
|
|
74
|
+
React.useEffect(function () {
|
|
75
|
+
setState(1);
|
|
76
|
+
}, []);
|
|
77
|
+
console.log(state);
|
|
78
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
79
|
+
className: "test"
|
|
80
|
+
}, /*#__PURE__*/React__default.createElement("h1", null, "Hie")));
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
return CreateRarestepInterest;
|
|
84
|
+
|
|
85
|
+
})));
|
package/GALink.js
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['react'], factory) :
|
|
4
|
+
(global = global || self, global.GALink = factory(global.React));
|
|
5
|
+
}(this, (function (React) { 'use strict';
|
|
6
|
+
|
|
7
|
+
React = React && Object.prototype.hasOwnProperty.call(React, 'default') ? React['default'] : React;
|
|
8
|
+
|
|
9
|
+
function _extends() {
|
|
10
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
11
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
12
|
+
var source = arguments[i];
|
|
13
|
+
|
|
14
|
+
for (var key in source) {
|
|
15
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
16
|
+
target[key] = source[key];
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return target;
|
|
22
|
+
};
|
|
23
|
+
return _extends.apply(this, arguments);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
var Event = function Event(instance, track) {
|
|
27
|
+
var category = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
28
|
+
var action = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : '';
|
|
29
|
+
var label = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : '';
|
|
30
|
+
var value = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : '';
|
|
31
|
+
|
|
32
|
+
if (track) {
|
|
33
|
+
instance.event({
|
|
34
|
+
category: category,
|
|
35
|
+
action: action,
|
|
36
|
+
label: label,
|
|
37
|
+
value: value
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
var GALink = function GALink(props) {
|
|
43
|
+
var gaOnClick = function gaOnClick(event) {
|
|
44
|
+
Event(props.instance, props.track, 'Link', "Click on ".concat(props.href), props.label);
|
|
45
|
+
|
|
46
|
+
if (typeof props.onClick === 'function') {
|
|
47
|
+
props.onClick(event);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
return /*#__PURE__*/React.createElement("a", _extends({
|
|
52
|
+
href: "/"
|
|
53
|
+
}, props, {
|
|
54
|
+
onClick: gaOnClick
|
|
55
|
+
}), props.children);
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
return GALink;
|
|
59
|
+
|
|
60
|
+
})));
|
|
@@ -10966,12 +10966,9 @@
|
|
|
10966
10966
|
var FooterPaymentImage = styled__default.img(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteral(["\n {\n width: 100px;\n height: 30px;\n }\n"])));
|
|
10967
10967
|
var FooterConnectContainer = styled__default.div(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteral(["\n {\n display: flex;\n flex-direction: column;\n }\n"])));
|
|
10968
10968
|
|
|
10969
|
-
var _templateObject$R, _templateObject2$d
|
|
10969
|
+
var _templateObject$R, _templateObject2$d;
|
|
10970
10970
|
var OptionsRow = styled__default.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n"])));
|
|
10971
|
-
var
|
|
10972
|
-
var Options = styled__default.div(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
|
|
10973
|
-
var OptionRadioInputContainer = styled__default.span(_templateObject4$7 || (_templateObject4$7 = _taggedTemplateLiteral(["\n flex-basis: 50%;\n"])));
|
|
10974
|
-
var OptionRadioInput = styled__default.input(_templateObject5$5 || (_templateObject5$5 = _taggedTemplateLiteral(["\n margin-right: 5px;\n"])));
|
|
10971
|
+
var Options = styled__default.div(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
|
|
10975
10972
|
|
|
10976
10973
|
var _templateObject$S, _templateObject2$e;
|
|
10977
10974
|
var SectionContainer = styled__default.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteral(["\n border-top: flex 1px solid ", ";\n border-top-width: calc(100% - 50px);\n padding: 5px 10px;\n"])), function (props) {
|
|
@@ -10979,10 +10976,10 @@
|
|
|
10979
10976
|
});
|
|
10980
10977
|
var SectionHeading = styled__default.div(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteral(["\n padding: 5px 10px;\n"])));
|
|
10981
10978
|
|
|
10982
|
-
var _templateObject$T, _templateObject2$f, _templateObject3$
|
|
10979
|
+
var _templateObject$T, _templateObject2$f, _templateObject3$8;
|
|
10983
10980
|
var CommunicationPreferenceContainer = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteral(["\n border: solid 1px #d1d5dbff;\n margin-bottom: 40px;\n"])));
|
|
10984
10981
|
var EditButtonRow = styled__default.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral(["\n display: flex;\n justify-content: end;\n padding: 10px 5px;\n margin-right: 16px;\n"])));
|
|
10985
|
-
var SubmitButton = styled__default.input(_templateObject3$
|
|
10982
|
+
var SubmitButton = styled__default.input(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral(["\n flex-basis: 15%;\n margin-right: 5px;\n"])));
|
|
10986
10983
|
|
|
10987
10984
|
var _templateObject$U;
|
|
10988
10985
|
var ALL_ITEM$1 = {
|