@luminati-io/uikit 3.7.10 → 3.8.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -35675,7 +35675,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
35675
35675
|
/* harmony export */ FileUploader: () => (/* reexport safe */ _file_uploader__WEBPACK_IMPORTED_MODULE_3__.FileUploader),
|
35676
35676
|
/* harmony export */ Number: () => (/* reexport safe */ _number__WEBPACK_IMPORTED_MODULE_9__.Number),
|
35677
35677
|
/* harmony export */ Phone: () => (/* reexport safe */ _phone__WEBPACK_IMPORTED_MODULE_4__.Phone),
|
35678
|
-
/* harmony export */ RadioGroup: () => (/* reexport safe */
|
35678
|
+
/* harmony export */ RadioGroup: () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_10__.RadioGroup),
|
35679
|
+
/* harmony export */ RadioTab: () => (/* reexport safe */ _radio__WEBPACK_IMPORTED_MODULE_10__.RadioTab),
|
35679
35680
|
/* harmony export */ StyledDayPicker: () => (/* reexport safe */ _date_picker__WEBPACK_IMPORTED_MODULE_8__.StyledDayPicker),
|
35680
35681
|
/* harmony export */ Textarea: () => (/* reexport safe */ _textarea__WEBPACK_IMPORTED_MODULE_11__.Textarea),
|
35681
35682
|
/* harmony export */ Textbox: () => (/* reexport safe */ _textbox__WEBPACK_IMPORTED_MODULE_12__.Textbox),
|
@@ -35692,7 +35693,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
35692
35693
|
/* harmony import */ var _compare_to__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./compare_to */ "./src/input/compare_to.js");
|
35693
35694
|
/* harmony import */ var _date_picker__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./date_picker */ "./src/input/date_picker.js");
|
35694
35695
|
/* harmony import */ var _number__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./number */ "./src/input/number.js");
|
35695
|
-
/* harmony import */ var
|
35696
|
+
/* harmony import */ var _radio__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./radio */ "./src/input/radio/index.js");
|
35696
35697
|
/* harmony import */ var _textarea__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./textarea */ "./src/input/textarea.js");
|
35697
35698
|
/* harmony import */ var _textbox__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./textbox */ "./src/input/textbox.js");
|
35698
35699
|
/* harmony import */ var _toggle__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./toggle */ "./src/input/toggle.js");
|
@@ -36527,12 +36528,114 @@ var TelInput = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.at
|
|
36527
36528
|
|
36528
36529
|
/***/ }),
|
36529
36530
|
|
36530
|
-
/***/ "./src/input/
|
36531
|
+
/***/ "./src/input/radio/common.js":
|
36532
|
+
/*!***********************************!*\
|
36533
|
+
!*** ./src/input/radio/common.js ***!
|
36534
|
+
\***********************************/
|
36535
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
36536
|
+
|
36537
|
+
"use strict";
|
36538
|
+
__webpack_require__.r(__webpack_exports__);
|
36539
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
36540
|
+
/* harmony export */ GroupWrapper: () => (/* binding */ GroupWrapper),
|
36541
|
+
/* harmony export */ RadioControl: () => (/* binding */ RadioControl),
|
36542
|
+
/* harmony export */ RadioWrapper: () => (/* binding */ RadioWrapper)
|
36543
|
+
/* harmony export */ });
|
36544
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "styled-components");
|
36545
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_0__);
|
36546
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
36547
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../theme */ "./src/theme.js");
|
36548
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils */ "./src/utils.js");
|
36549
|
+
// LICENSE_CODE ZON
|
36550
|
+
|
36551
|
+
|
36552
|
+
/*jslint react:true*/
|
36553
|
+
|
36554
|
+
|
36555
|
+
|
36556
|
+
|
36557
|
+
var RadioWrapper = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.withConfig({
|
36558
|
+
displayName: "RadioWrapper",
|
36559
|
+
componentId: "sc-7im0vh-0"
|
36560
|
+
})(["display:inline-flex;align-items:center;gap:", ";vertical-align:", ";", ""], _theme__WEBPACK_IMPORTED_MODULE_2__["default"].spacing['03'], function (props) {
|
36561
|
+
return props.$verticalAlign;
|
36562
|
+
}, function (props) {
|
36563
|
+
return props.$disabled ? undefined : (0,styled_components__WEBPACK_IMPORTED_MODULE_0__.css)(["cursor:pointer;"]);
|
36564
|
+
});
|
36565
|
+
var RadioControl = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.withConfig({
|
36566
|
+
displayName: "RadioControl",
|
36567
|
+
componentId: "sc-7im0vh-1"
|
36568
|
+
})(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;border:1.5px solid;border-radius:50%;", " &:after{content:'';border-radius:50%;}", ""], function (props) {
|
36569
|
+
var s = props.size == 'sm' ? 16 : 20;
|
36570
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_0__.css)(["min-width:", ";max-width:", ";height:", ";&:after{width:", ";height:", ";}"], (0,_utils__WEBPACK_IMPORTED_MODULE_3__.toPixel)(s), (0,_utils__WEBPACK_IMPORTED_MODULE_3__.toPixel)(s), (0,_utils__WEBPACK_IMPORTED_MODULE_3__.toPixel)(s), (0,_utils__WEBPACK_IMPORTED_MODULE_3__.toPixel)(s / 2), (0,_utils__WEBPACK_IMPORTED_MODULE_3__.toPixel)(s / 2));
|
36571
|
+
}, function (props) {
|
36572
|
+
var checked = props.checked,
|
36573
|
+
disabled = props.disabled;
|
36574
|
+
var borderColor, hoverBorderColor, activeBorderColor;
|
36575
|
+
var activeOutlineColor;
|
36576
|
+
var backgroundColor, hoverBackgroundColor, activeBackgroundColor;
|
36577
|
+
var beforeColor, hoverBeforeColor, activeBeforeColor;
|
36578
|
+
if (disabled) {
|
36579
|
+
borderColor = hoverBorderColor = activeBorderColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_8;
|
36580
|
+
backgroundColor = hoverBackgroundColor = activeBackgroundColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white;
|
36581
|
+
if (checked) {
|
36582
|
+
beforeColor = hoverBeforeColor = activeBeforeColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_6;
|
36583
|
+
}
|
36584
|
+
} else {
|
36585
|
+
if (checked) {
|
36586
|
+
borderColor = activeBorderColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11;
|
36587
|
+
backgroundColor = hoverBackgroundColor = activeBackgroundColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white;
|
36588
|
+
beforeColor = activeBeforeColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11;
|
36589
|
+
hoverBorderColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_10;
|
36590
|
+
hoverBackgroundColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white;
|
36591
|
+
hoverBeforeColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_10;
|
36592
|
+
activeOutlineColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_5;
|
36593
|
+
} else {
|
36594
|
+
borderColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_9;
|
36595
|
+
backgroundColor = activeBackgroundColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.white;
|
36596
|
+
hoverBorderColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_10;
|
36597
|
+
hoverBackgroundColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.gray_3;
|
36598
|
+
activeBorderColor = _theme__WEBPACK_IMPORTED_MODULE_2__["default"].color.blue_11;
|
36599
|
+
}
|
36600
|
+
}
|
36601
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_0__.css)(["border-color:", ";background-color:", ";&:after{background-color:", ";}&:hover{border-color:", ";background-color:", ";}&:hover:after{background-color:", ";}&:active{border-color:", ";background-color:", ";", "}&:active:after{background-color:", ";}"], borderColor, backgroundColor, beforeColor, hoverBorderColor, hoverBackgroundColor, hoverBeforeColor, activeBorderColor, activeBackgroundColor, activeOutlineColor && "box-shadow: 0 0 0 3px ".concat(activeOutlineColor, ";"), activeBeforeColor);
|
36602
|
+
});
|
36603
|
+
var GroupWrapper = styled_components__WEBPACK_IMPORTED_MODULE_0___default()(_layout__WEBPACK_IMPORTED_MODULE_1__.Flex).withConfig({
|
36604
|
+
displayName: "GroupWrapper",
|
36605
|
+
componentId: "sc-7im0vh-2"
|
36606
|
+
})([""]);
|
36607
|
+
|
36608
|
+
/***/ }),
|
36609
|
+
|
36610
|
+
/***/ "./src/input/radio/index.js":
|
36531
36611
|
/*!**********************************!*\
|
36532
|
-
!*** ./src/input/
|
36612
|
+
!*** ./src/input/radio/index.js ***!
|
36533
36613
|
\**********************************/
|
36534
36614
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
36535
36615
|
|
36616
|
+
"use strict";
|
36617
|
+
__webpack_require__.r(__webpack_exports__);
|
36618
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
36619
|
+
/* harmony export */ RadioGroup: () => (/* reexport safe */ _radio_group__WEBPACK_IMPORTED_MODULE_0__.RadioGroup),
|
36620
|
+
/* harmony export */ RadioTab: () => (/* reexport safe */ _radio_tab__WEBPACK_IMPORTED_MODULE_1__.RadioTab)
|
36621
|
+
/* harmony export */ });
|
36622
|
+
/* harmony import */ var _radio_group__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./radio_group */ "./src/input/radio/radio_group.js");
|
36623
|
+
/* harmony import */ var _radio_tab__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./radio_tab */ "./src/input/radio/radio_tab.js");
|
36624
|
+
// LICENSE_CODE ZON
|
36625
|
+
|
36626
|
+
|
36627
|
+
/*jslint react:true*/
|
36628
|
+
|
36629
|
+
|
36630
|
+
|
36631
|
+
/***/ }),
|
36632
|
+
|
36633
|
+
/***/ "./src/input/radio/radio_group.js":
|
36634
|
+
/*!****************************************!*\
|
36635
|
+
!*** ./src/input/radio/radio_group.js ***!
|
36636
|
+
\****************************************/
|
36637
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
36638
|
+
|
36536
36639
|
"use strict";
|
36537
36640
|
__webpack_require__.r(__webpack_exports__);
|
36538
36641
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
@@ -36542,16 +36645,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
36542
36645
|
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
36543
36646
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
36544
36647
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
36545
|
-
/* harmony import */ var
|
36546
|
-
/* harmony import */ var
|
36547
|
-
/* harmony import */ var
|
36548
|
-
/* harmony import */ var
|
36549
|
-
/* harmony import */ var
|
36550
|
-
/* harmony import */ var
|
36551
|
-
/* harmony import */ var
|
36552
|
-
/* harmony import */ var
|
36553
|
-
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
36554
|
-
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./shared */ "./src/input/shared.js");
|
36648
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../hooks */ "./src/hooks/index.js");
|
36649
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
36650
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../theme */ "./src/theme.js");
|
36651
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../tooltip */ "./src/tooltip.js");
|
36652
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../typography */ "./src/typography/index.js");
|
36653
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
36654
|
+
/* harmony import */ var _shared__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../shared */ "./src/input/shared.js");
|
36655
|
+
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./common */ "./src/input/radio/common.js");
|
36555
36656
|
// LICENSE_CODE ZON
|
36556
36657
|
|
36557
36658
|
|
@@ -36575,7 +36676,6 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
36575
36676
|
|
36576
36677
|
|
36577
36678
|
|
36578
|
-
|
36579
36679
|
var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
36580
36680
|
var className = props.className,
|
36581
36681
|
classNamePrefix = props.classNamePrefix,
|
@@ -36593,18 +36693,18 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
36593
36693
|
required = props.required,
|
36594
36694
|
necessityIndicator = props.necessityIndicator,
|
36595
36695
|
rest = _objectWithoutProperties(props, _excluded);
|
36596
|
-
var labelId = (0,
|
36696
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(props.id);
|
36597
36697
|
var handleChange = function handleChange(val, opt, evt) {
|
36598
36698
|
if (!disabled) onChange === null || onChange === void 0 || onChange(val, opt, evt);
|
36599
36699
|
};
|
36600
36700
|
if (!(options !== null && options !== void 0 && options.length)) return null;
|
36601
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
36602
|
-
className: (0,
|
36701
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex, {
|
36702
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, {
|
36603
36703
|
container: true
|
36604
36704
|
}, className),
|
36605
36705
|
flex_direction: "column",
|
36606
|
-
gap:
|
36607
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
36706
|
+
gap: _theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['03']
|
36707
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_8__.InputLabel, {
|
36608
36708
|
classNamePrefix: classNamePrefix,
|
36609
36709
|
id: labelId,
|
36610
36710
|
label: label,
|
@@ -36613,12 +36713,12 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
36613
36713
|
required: required,
|
36614
36714
|
necessityIndicator: necessityIndicator,
|
36615
36715
|
variant: "lg"
|
36616
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
36716
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.GroupWrapper, _extends({
|
36617
36717
|
ref: ref,
|
36618
|
-
className: (0,
|
36718
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, _defineProperty({
|
36619
36719
|
radioGroup: true
|
36620
36720
|
}, "radioGroup--".concat(variant), true)),
|
36621
|
-
gap:
|
36721
|
+
gap: _theme__WEBPACK_IMPORTED_MODULE_4__["default"].spacing['05'],
|
36622
36722
|
flex_direction: variant
|
36623
36723
|
}, rest, {
|
36624
36724
|
role: "radiogroup",
|
@@ -36635,7 +36735,7 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
36635
36735
|
disabled: disabled || opt.disabled,
|
36636
36736
|
size: size
|
36637
36737
|
}));
|
36638
|
-
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
36738
|
+
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_shared__WEBPACK_IMPORTED_MODULE_8__.HelperText, {
|
36639
36739
|
invalid: invalid
|
36640
36740
|
}, helperText));
|
36641
36741
|
});
|
@@ -36676,24 +36776,24 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
36676
36776
|
interactive_tooltip = props.interactive_tooltip,
|
36677
36777
|
verticalAlign = props.verticalAlign,
|
36678
36778
|
rest = _objectWithoutProperties(props, _excluded2);
|
36679
|
-
var labelId = (0,
|
36779
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_2__.useLabelId)(props.id);
|
36680
36780
|
var handleClick = function handleClick(evt) {
|
36681
36781
|
if (!disabled) onClick === null || onClick === void 0 || onClick(value, evt);
|
36682
36782
|
};
|
36683
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
36783
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_5__.Tooltip, {
|
36684
36784
|
tooltip: tooltip,
|
36685
36785
|
interactive: interactive_tooltip
|
36686
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioWrapper, _extends({
|
36786
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.RadioWrapper, _extends({
|
36687
36787
|
ref: ref,
|
36688
|
-
className: (0,
|
36788
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, _defineProperty(_defineProperty({
|
36689
36789
|
radio: true
|
36690
36790
|
}, 'radio--is-selected', checked), 'radio--is-disabled', disabled))
|
36691
36791
|
}, rest, {
|
36692
36792
|
onClick: handleClick,
|
36693
36793
|
$verticalAlign: verticalAlign,
|
36694
36794
|
$disabled: disabled
|
36695
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioControl, {
|
36696
|
-
className: (0,
|
36795
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.RadioControl, {
|
36796
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, {
|
36697
36797
|
radioControl: true
|
36698
36798
|
}),
|
36699
36799
|
role: "radio",
|
@@ -36703,8 +36803,8 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
36703
36803
|
size: size,
|
36704
36804
|
checked: checked,
|
36705
36805
|
disabled: disabled
|
36706
|
-
}), !!label && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
36707
|
-
className: (0,
|
36806
|
+
}), !!label && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_6__.Label, {
|
36807
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_7__.classNames)(classNamePrefix, {
|
36708
36808
|
radioLabel: true
|
36709
36809
|
}),
|
36710
36810
|
variant: "sm",
|
@@ -36726,52 +36826,146 @@ Radio.defaultProps = {
|
|
36726
36826
|
verticalAlign: 'top',
|
36727
36827
|
size: 'md'
|
36728
36828
|
};
|
36729
|
-
|
36730
|
-
|
36731
|
-
|
36732
|
-
|
36733
|
-
|
36734
|
-
|
36735
|
-
|
36736
|
-
|
36737
|
-
|
36738
|
-
|
36739
|
-
|
36740
|
-
|
36741
|
-
|
36742
|
-
|
36743
|
-
|
36744
|
-
|
36745
|
-
|
36746
|
-
|
36747
|
-
|
36748
|
-
|
36749
|
-
|
36750
|
-
|
36751
|
-
|
36752
|
-
|
36753
|
-
|
36754
|
-
|
36755
|
-
|
36756
|
-
|
36757
|
-
|
36758
|
-
|
36759
|
-
|
36760
|
-
|
36761
|
-
|
36762
|
-
|
36763
|
-
|
36764
|
-
|
36765
|
-
|
36766
|
-
|
36767
|
-
|
36768
|
-
|
36769
|
-
|
36770
|
-
|
36771
|
-
|
36772
|
-
|
36773
|
-
|
36774
|
-
|
36829
|
+
|
36830
|
+
/***/ }),
|
36831
|
+
|
36832
|
+
/***/ "./src/input/radio/radio_tab.js":
|
36833
|
+
/*!**************************************!*\
|
36834
|
+
!*** ./src/input/radio/radio_tab.js ***!
|
36835
|
+
\**************************************/
|
36836
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
36837
|
+
|
36838
|
+
"use strict";
|
36839
|
+
__webpack_require__.r(__webpack_exports__);
|
36840
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
36841
|
+
/* harmony export */ RadioTab: () => (/* binding */ RadioTab)
|
36842
|
+
/* harmony export */ });
|
36843
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! prop-types */ "prop-types");
|
36844
|
+
/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_0__);
|
36845
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
36846
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
36847
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
36848
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
36849
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../typography */ "./src/typography/index.js");
|
36850
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../layout */ "./src/layout/index.js");
|
36851
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../theme */ "./src/theme.js");
|
36852
|
+
/* harmony import */ var _badge__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../badge */ "./src/badge.js");
|
36853
|
+
/* harmony import */ var _radio_group__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./radio_group */ "./src/input/radio/radio_group.js");
|
36854
|
+
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./common */ "./src/input/radio/common.js");
|
36855
|
+
// LICENSE_CODE ZON
|
36856
|
+
|
36857
|
+
|
36858
|
+
/*jslint react:true*/
|
36859
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
36860
|
+
var _excluded = ["options", "classNamePrefix", "rounded"];
|
36861
|
+
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
36862
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
36863
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
36864
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
36865
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
36866
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
36867
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
36868
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
36869
|
+
|
36870
|
+
|
36871
|
+
|
36872
|
+
|
36873
|
+
|
36874
|
+
|
36875
|
+
|
36876
|
+
|
36877
|
+
|
36878
|
+
var RadioTabStyled = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_radio_group__WEBPACK_IMPORTED_MODULE_7__.RadioGroup).attrs({
|
36879
|
+
variant: 'column'
|
36880
|
+
}).withConfig({
|
36881
|
+
displayName: "RadioTabStyled",
|
36882
|
+
componentId: "sc-1cp95by-0"
|
36883
|
+
})(["", "{gap:0;border:1px solid ", ";border-radius:", ";}", "{padding:12px;border-bottom:1px solid ", ";&:hover{background-color:", ";}&:last-child{border:none;}}"], _common__WEBPACK_IMPORTED_MODULE_8__.GroupWrapper, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6, function (_ref) {
|
36884
|
+
var $rounded = _ref.$rounded;
|
36885
|
+
return $rounded ? '4px' : '0';
|
36886
|
+
}, _common__WEBPACK_IMPORTED_MODULE_8__.RadioWrapper, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_6, _theme__WEBPACK_IMPORTED_MODULE_5__["default"].color.gray_2);
|
36887
|
+
var Img = styled_components__WEBPACK_IMPORTED_MODULE_2___default().img.withConfig({
|
36888
|
+
displayName: "Img",
|
36889
|
+
componentId: "sc-1cp95by-1"
|
36890
|
+
})(["max-width:60px;"]);
|
36891
|
+
var RadioTabLabel = function RadioTabLabel(props) {
|
36892
|
+
var label = props.label,
|
36893
|
+
tag = props.tag,
|
36894
|
+
tagVariant = props.tagVariant,
|
36895
|
+
description = props.description,
|
36896
|
+
disabled = props.disabled,
|
36897
|
+
img = props.img;
|
36898
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, {
|
36899
|
+
gap: "04",
|
36900
|
+
align_items: "center"
|
36901
|
+
}, img && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Img, {
|
36902
|
+
src: img
|
36903
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, {
|
36904
|
+
flex_direction: "column",
|
36905
|
+
gap: "03"
|
36906
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, {
|
36907
|
+
gap: "03",
|
36908
|
+
align_items: "center"
|
36909
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
36910
|
+
variant: "lg",
|
36911
|
+
color: disabled ? 'gray_10' : 'gray_11_50'
|
36912
|
+
}, label), tag && tagVariant == 'badge' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_badge__WEBPACK_IMPORTED_MODULE_6__.Badge, {
|
36913
|
+
variant: "positive"
|
36914
|
+
}, tag) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
36915
|
+
variant: "sm",
|
36916
|
+
color: "green_11"
|
36917
|
+
}, tag)), description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Paragraph, {
|
36918
|
+
variant: "lg_snug",
|
36919
|
+
color: disabled ? 'gray_9' : 'gray_11'
|
36920
|
+
}, description)));
|
36921
|
+
};
|
36922
|
+
var radioTabPrefix = 'radioTab';
|
36923
|
+
var RadioTab = function RadioTab(props) {
|
36924
|
+
var options = props.options,
|
36925
|
+
classNamePrefix = props.classNamePrefix,
|
36926
|
+
rounded = props.rounded,
|
36927
|
+
rest = _objectWithoutProperties(props, _excluded);
|
36928
|
+
var cnPrefix = classNamePrefix ? "".concat(classNamePrefix, "_").concat(radioTabPrefix) : radioTabPrefix;
|
36929
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioTabStyled, _extends({}, rest, {
|
36930
|
+
$rounded: rounded,
|
36931
|
+
classNamePrefix: cnPrefix,
|
36932
|
+
options: options.map(function (o) {
|
36933
|
+
return _objectSpread(_objectSpread({}, o), {}, {
|
36934
|
+
label: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RadioTabLabel, _extends({}, o, {
|
36935
|
+
disabled: props.disabled || o.disabled
|
36936
|
+
}))
|
36937
|
+
});
|
36938
|
+
})
|
36939
|
+
}));
|
36940
|
+
};
|
36941
|
+
RadioTab.displayName = 'RadioTab';
|
36942
|
+
RadioTab.propTypes = {
|
36943
|
+
value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
36944
|
+
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
36945
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
36946
|
+
required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
36947
|
+
necessityIndicator: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['asterisk', 'text']),
|
36948
|
+
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
36949
|
+
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
36950
|
+
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
36951
|
+
labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
36952
|
+
helperText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
36953
|
+
size: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'md']),
|
36954
|
+
rounded: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
36955
|
+
options: prop_types__WEBPACK_IMPORTED_MODULE_0___default().arrayOf(prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
36956
|
+
value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
36957
|
+
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
36958
|
+
description: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
36959
|
+
tag: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
36960
|
+
tagVariant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['text', 'badge']),
|
36961
|
+
img: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
36962
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
36963
|
+
})),
|
36964
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
36965
|
+
};
|
36966
|
+
RadioTab.defaultProps = {
|
36967
|
+
size: 'sm'
|
36968
|
+
};
|
36775
36969
|
|
36776
36970
|
/***/ }),
|
36777
36971
|
|
@@ -38549,11 +38743,12 @@ var MenuItemPopoverTrigger = function MenuItemPopoverTrigger(props) {
|
|
38549
38743
|
var popover = props.popover,
|
38550
38744
|
onClick = props.onClick,
|
38551
38745
|
rest = _objectWithoutProperties(props, _excluded4);
|
38746
|
+
var buttonProps = lodash_omit__WEBPACK_IMPORTED_MODULE_0___default()(rest, 'isOpen');
|
38552
38747
|
var _onClick = (0,react__WEBPACK_IMPORTED_MODULE_2__.useCallback)(function (evt) {
|
38553
38748
|
onClick === null || onClick === void 0 || onClick(evt);
|
38554
38749
|
popover.toggle();
|
38555
38750
|
}, [onClick, popover.toggle]);
|
38556
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemButton, _extends({},
|
38751
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(MenuItemButton, _extends({}, buttonProps, {
|
38557
38752
|
onClick: _onClick
|
38558
38753
|
}));
|
38559
38754
|
};
|
@@ -44592,7 +44787,8 @@ var Tooltip = function Tooltip(props) {
|
|
44592
44787
|
placement = props.placement,
|
44593
44788
|
noWrap = props.noWrap,
|
44594
44789
|
interactive = props.interactive,
|
44595
|
-
trigger = props.trigger
|
44790
|
+
trigger = props.trigger,
|
44791
|
+
className = props.className;
|
44596
44792
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(null),
|
44597
44793
|
_useState2 = _slicedToArray(_useState, 2),
|
44598
44794
|
referenceElement = _useState2[0],
|
@@ -44673,7 +44869,8 @@ var Tooltip = function Tooltip(props) {
|
|
44673
44869
|
}, triggerProps)), tooltipNode);
|
44674
44870
|
}
|
44675
44871
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement((react__WEBPACK_IMPORTED_MODULE_1___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(StyledTooltipReference, _extends({
|
44676
|
-
ref: setReferenceElement
|
44872
|
+
ref: setReferenceElement,
|
44873
|
+
className: className
|
44677
44874
|
}, triggerProps), children), tooltipNode);
|
44678
44875
|
};
|
44679
44876
|
Tooltip.defaultProps = {
|