@luminati-io/uikit 6.3.20 → 6.3.21
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.
@@ -41533,25 +41533,25 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
41533
41533
|
|
41534
41534
|
|
41535
41535
|
|
41536
|
-
var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (
|
41537
|
-
var id =
|
41538
|
-
name =
|
41539
|
-
checked =
|
41540
|
-
onChange =
|
41541
|
-
onClick =
|
41542
|
-
label =
|
41543
|
-
disabled =
|
41544
|
-
tooltip =
|
41545
|
-
indeterminate =
|
41546
|
-
|
41547
|
-
verticalAlign =
|
41548
|
-
className =
|
41549
|
-
classNamePrefix =
|
41550
|
-
|
41551
|
-
tabIndex =
|
41552
|
-
readOnly =
|
41553
|
-
tooltipPlacement =
|
41554
|
-
rest = _objectWithoutProperties(
|
41536
|
+
var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
41537
|
+
var id = props.id,
|
41538
|
+
name = props.name,
|
41539
|
+
checked = props.checked,
|
41540
|
+
onChange = props.onChange,
|
41541
|
+
onClick = props.onClick,
|
41542
|
+
label = props.label,
|
41543
|
+
disabled = props.disabled,
|
41544
|
+
tooltip = props.tooltip,
|
41545
|
+
indeterminate = props.indeterminate,
|
41546
|
+
_props$verticalAlign = props.verticalAlign,
|
41547
|
+
verticalAlign = _props$verticalAlign === void 0 ? 'top' : _props$verticalAlign,
|
41548
|
+
className = props.className,
|
41549
|
+
classNamePrefix = props.classNamePrefix,
|
41550
|
+
_props$tabIndex = props.tabIndex,
|
41551
|
+
tabIndex = _props$tabIndex === void 0 ? 0 : _props$tabIndex,
|
41552
|
+
readOnly = props.readOnly,
|
41553
|
+
tooltipPlacement = props.tooltipPlacement,
|
41554
|
+
rest = _objectWithoutProperties(props, _excluded);
|
41555
41555
|
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_3__.useLabelId)(id);
|
41556
41556
|
var handleClick = function handleClick(evt) {
|
41557
41557
|
if (disabled || readOnly) return;
|
@@ -41564,7 +41564,7 @@ var Checkbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forward
|
|
41564
41564
|
tooltipPlacement: tooltipPlacement
|
41565
41565
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CheckboxWrapper, _extends({
|
41566
41566
|
ref: ref
|
41567
|
-
}, rest, {
|
41567
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_6__.pickAttrs)(rest), {
|
41568
41568
|
onClick: handleClick,
|
41569
41569
|
$verticalAlign: verticalAlign,
|
41570
41570
|
$disabled: disabled,
|
@@ -41611,26 +41611,26 @@ Checkbox.propTypes = {
|
|
41611
41611
|
var CheckboxWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
41612
41612
|
displayName: "CheckboxWrapper",
|
41613
41613
|
componentId: "sc-623yyg-0"
|
41614
|
-
})(["display:inline-flex;align-items:center;gap:", ";vertical-align:", ";", ""], function (
|
41615
|
-
var theme =
|
41614
|
+
})(["display:inline-flex;align-items:center;gap:", ";vertical-align:", ";", ""], function (_ref) {
|
41615
|
+
var theme = _ref.theme;
|
41616
41616
|
return theme.spacing['03'];
|
41617
|
-
}, function (
|
41618
|
-
var $verticalAlign =
|
41617
|
+
}, function (_ref2) {
|
41618
|
+
var $verticalAlign = _ref2.$verticalAlign;
|
41619
41619
|
return $verticalAlign;
|
41620
|
-
}, function (
|
41621
|
-
var $disabled =
|
41620
|
+
}, function (_ref3) {
|
41621
|
+
var $disabled = _ref3.$disabled;
|
41622
41622
|
return $disabled ? undefined : (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:pointer;"]);
|
41623
41623
|
});
|
41624
41624
|
var CheckboxControl = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
41625
41625
|
displayName: "CheckboxControl",
|
41626
41626
|
componentId: "sc-623yyg-1"
|
41627
|
-
})(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:16px;max-width:16px;height:16px;border:1.5px solid;border-radius:4px;", " background-repeat:no-repeat;background-position:center center;background-image:", ""], function (
|
41628
|
-
var $disabled =
|
41629
|
-
$checked =
|
41630
|
-
$indeterminate =
|
41631
|
-
|
41632
|
-
color =
|
41633
|
-
shadow =
|
41627
|
+
})(["display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:16px;max-width:16px;height:16px;border:1.5px solid;border-radius:4px;", " background-repeat:no-repeat;background-position:center center;background-image:", ";"], function (_ref4) {
|
41628
|
+
var $disabled = _ref4.$disabled,
|
41629
|
+
$checked = _ref4.$checked,
|
41630
|
+
$indeterminate = _ref4.$indeterminate,
|
41631
|
+
_ref4$theme = _ref4.theme,
|
41632
|
+
color = _ref4$theme.color,
|
41633
|
+
shadow = _ref4$theme.shadow;
|
41634
41634
|
if ($disabled) {
|
41635
41635
|
if ($indeterminate || $checked) {
|
41636
41636
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["border-color:", ";background-color:", ";"], color.bg_fill_teritary, color.bg_fill_teritary);
|
@@ -41644,15 +41644,13 @@ var CheckboxControl = styled_components__WEBPACK_IMPORTED_MODULE_2___default().d
|
|
41644
41644
|
}, function (props) {
|
41645
41645
|
return getBackgroundImage(props);
|
41646
41646
|
});
|
41647
|
-
var getBackgroundImage = function getBackgroundImage(
|
41648
|
-
var $checked =
|
41649
|
-
$indeterminate =
|
41650
|
-
$disabled =
|
41651
|
-
color =
|
41647
|
+
var getBackgroundImage = function getBackgroundImage(_ref5) {
|
41648
|
+
var $checked = _ref5.$checked,
|
41649
|
+
$indeterminate = _ref5.$indeterminate,
|
41650
|
+
$disabled = _ref5.$disabled,
|
41651
|
+
color = _ref5.theme.color;
|
41652
41652
|
var fill = encodeURIComponent($disabled ? color.icon_disabled : $checked ? color.icon_white : color.icon);
|
41653
|
-
if ($checked || $indeterminate)
|
41654
|
-
// XXX alexanderse: why only one icon
|
41655
|
-
return "url(\"data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.63803 5.42519L8.40556 0.645362C8.7608 0.289208 9.33772 0.289208 9.69296 0.645362C10.0469 1.00022 10.0469 1.57459 9.69296 1.92945L4.34605 7.29016C3.95532 7.6819 3.32075 7.6819 2.93002 7.29016L0.307079 4.66045C-0.0468663 4.30559 -0.0468661 3.73122 0.307079 3.37636C0.662317 3.02021 1.23924 3.02021 1.59448 3.37636L3.63803 5.42519Z' fill='".concat(fill, "'/%3E%3C/svg%3E%0A\")");
|
41653
|
+
if ($checked || $indeterminate) return "url(\"data:image/svg+xml,%3Csvg width='10' height='8' viewBox='0 0 10 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.63803 5.42519L8.40556 0.645362C8.7608 0.289208 9.33772 0.289208 9.69296 0.645362C10.0469 1.00022 10.0469 1.57459 9.69296 1.92945L4.34605 7.29016C3.95532 7.6819 3.32075 7.6819 2.93002 7.29016L0.307079 4.66045C-0.0468663 4.30559 -0.0468661 3.73122 0.307079 3.37636C0.662317 3.02021 1.23924 3.02021 1.59448 3.37636L3.63803 5.42519Z' fill='".concat(fill, "'/%3E%3C/svg%3E%0A\")");
|
41656
41654
|
if ($indeterminate) return "url(\"data:image/svg+xml,%3Csvg width='10' height='2' viewBox='0 0 10 2' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect width='10' height='2' rx='1' fill='".concat(fill, "'/%3E%3C/svg%3E%0A\")");
|
41657
41655
|
};
|
41658
41656
|
|
@@ -45250,21 +45248,19 @@ var TelInput = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.at
|
|
45250
45248
|
"use strict";
|
45251
45249
|
__webpack_require__.r(__webpack_exports__);
|
45252
45250
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
45253
|
-
/* harmony export */ GroupWrapper: () => (/* binding */ GroupWrapper),
|
45254
45251
|
/* harmony export */ RadioControl: () => (/* binding */ RadioControl),
|
45252
|
+
/* harmony export */ RadioGroupContainer: () => (/* binding */ RadioGroupContainer),
|
45255
45253
|
/* harmony export */ RadioWrapper: () => (/* binding */ RadioWrapper)
|
45256
45254
|
/* harmony export */ });
|
45257
45255
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! styled-components */ "styled-components");
|
45258
45256
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_0__);
|
45259
|
-
/* harmony import */ var
|
45260
|
-
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
45257
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../util */ "./src/util/index.js");
|
45261
45258
|
// LICENSE_CODE ZON
|
45262
45259
|
|
45263
45260
|
|
45264
45261
|
/*jslint react:true*/
|
45265
45262
|
|
45266
45263
|
|
45267
|
-
|
45268
45264
|
var RadioWrapper = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.withConfig({
|
45269
45265
|
displayName: "RadioWrapper",
|
45270
45266
|
componentId: "sc-7im0vh-0"
|
@@ -45283,7 +45279,7 @@ var RadioControl = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.
|
|
45283
45279
|
var size = _ref2.size,
|
45284
45280
|
color = _ref2.theme.color;
|
45285
45281
|
var p = size == 'sm' ? 16 : 20;
|
45286
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_0__.css)(["min-width:", ";max-width:", ";height:", ";background-color:", ";&:after{content:'';border-radius:50%;width:", ";height:", ";}"], (0,
|
45282
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_0__.css)(["min-width:", ";max-width:", ";height:", ";background-color:", ";&:after{content:'';border-radius:50%;width:", ";height:", ";}"], (0,_util__WEBPACK_IMPORTED_MODULE_1__.px)(p), (0,_util__WEBPACK_IMPORTED_MODULE_1__.px)(p), (0,_util__WEBPACK_IMPORTED_MODULE_1__.px)(p), color.bg, (0,_util__WEBPACK_IMPORTED_MODULE_1__.px)(p / 2), (0,_util__WEBPACK_IMPORTED_MODULE_1__.px)(p / 2));
|
45287
45283
|
}, function (_ref3) {
|
45288
45284
|
var checked = _ref3.checked,
|
45289
45285
|
disabled = _ref3.disabled,
|
@@ -45298,10 +45294,16 @@ var RadioControl = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.
|
|
45298
45294
|
}
|
45299
45295
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_0__.css)(["border-color:", ";&:after{background-color:", ";}&:hover{border-color:", ";background-color:", ";&:after{background-color:", ";}}&:active{border-color:", ";&:active:after{background-color:", ";}}"], color.border_accent, color.bg, color.border_accent, color.bg_component_hover, color.bg_component_hover, color.icon_primary, color.bg);
|
45300
45296
|
});
|
45301
|
-
var
|
45302
|
-
displayName: "
|
45297
|
+
var RadioGroupContainer = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.withConfig({
|
45298
|
+
displayName: "RadioGroupContainer",
|
45303
45299
|
componentId: "sc-7im0vh-2"
|
45304
|
-
})([""])
|
45300
|
+
})(["display:flex;flex-direction:", ";gap:", ";"], function (_ref4) {
|
45301
|
+
var $variant = _ref4.$variant;
|
45302
|
+
return $variant;
|
45303
|
+
}, function (_ref5) {
|
45304
|
+
var spacing = _ref5.theme.spacing;
|
45305
|
+
return spacing['05'];
|
45306
|
+
});
|
45305
45307
|
|
45306
45308
|
/***/ }),
|
45307
45309
|
|
@@ -45414,15 +45416,14 @@ var RadioGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwa
|
|
45414
45416
|
required: required,
|
45415
45417
|
necessityIndicator: necessityIndicator,
|
45416
45418
|
variant: "lg"
|
45417
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.
|
45419
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_common__WEBPACK_IMPORTED_MODULE_9__.RadioGroupContainer, _extends({
|
45418
45420
|
ref: ref,
|
45419
|
-
id: id
|
45421
|
+
id: id
|
45422
|
+
}, (0,_util__WEBPACK_IMPORTED_MODULE_6__.pickAttrs)(rest), {
|
45420
45423
|
className: (0,_util__WEBPACK_IMPORTED_MODULE_6__.cn)(classNamePrefix, _defineProperty({
|
45421
45424
|
radioGroup: true
|
45422
45425
|
}, "radioGroup--".concat(variant), true)),
|
45423
|
-
|
45424
|
-
flex_direction: variant
|
45425
|
-
}, rest, {
|
45426
|
+
$variant: variant,
|
45426
45427
|
role: "radiogroup",
|
45427
45428
|
"aria-labelledby": label ? labelId : undefined
|
45428
45429
|
}), options.map(function (opt) {
|
@@ -45578,7 +45579,7 @@ var RadioTabStyled = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_r
|
|
45578
45579
|
}).withConfig({
|
45579
45580
|
displayName: "RadioTabStyled",
|
45580
45581
|
componentId: "sc-1cp95by-0"
|
45581
|
-
})(["", "{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__.
|
45582
|
+
})(["", "{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__.RadioGroupContainer, function (_ref) {
|
45582
45583
|
var color = _ref.theme.color;
|
45583
45584
|
return color.border;
|
45584
45585
|
}, function (_ref2) {
|