@luminati-io/uikit 6.3.5 → 6.3.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -39260,7 +39260,9 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
39260
39260
|
_props$variant = props.variant,
|
39261
39261
|
variant = _props$variant === void 0 ? 'black' : _props$variant,
|
39262
39262
|
loading = props.loading,
|
39263
|
-
wrap = props.wrap
|
39263
|
+
wrap = props.wrap,
|
39264
|
+
_props$copyButtonPlac = props.copyButtonPlacement,
|
39265
|
+
copyButtonPlacement = _props$copyButtonPlac === void 0 ? 'top' : _props$copyButtonPlac;
|
39264
39266
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CodeBlockWrapper, _extends({
|
39265
39267
|
ref: ref,
|
39266
39268
|
"data-testid": "code_block"
|
@@ -39285,6 +39287,7 @@ var CodeBlock = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_1__.forwardRef)(f
|
|
39285
39287
|
copyButtonClassName: (0,_util__WEBPACK_IMPORTED_MODULE_3__.classNames)(classNamePrefix, {
|
39286
39288
|
copyButton: true
|
39287
39289
|
}),
|
39290
|
+
copyButtonPlacement: copyButtonPlacement,
|
39288
39291
|
onCopy: onCopy,
|
39289
39292
|
loading: loading,
|
39290
39293
|
wrap: wrap
|
@@ -39303,7 +39306,8 @@ CodeBlock.propTypes = {
|
|
39303
39306
|
copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39304
39307
|
loading: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39305
39308
|
onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
39306
|
-
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
39309
|
+
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39310
|
+
copyButtonPlacement: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['top', 'bottom'])
|
39307
39311
|
};
|
39308
39312
|
var CodeBlockWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
39309
39313
|
displayName: "CodeBlockWrapper",
|
@@ -39378,6 +39382,7 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
39378
39382
|
_ref$variant = _ref.variant,
|
39379
39383
|
variant = _ref$variant === void 0 ? 'black' : _ref$variant,
|
39380
39384
|
copyButtonClassName = _ref.copyButtonClassName,
|
39385
|
+
copyButtonPlacement = _ref.copyButtonPlacement,
|
39381
39386
|
maxHeight = _ref.maxHeight,
|
39382
39387
|
wrap = _ref.wrap;
|
39383
39388
|
var codeRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
|
@@ -39388,6 +39393,7 @@ var CodeSnippet = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
39388
39393
|
maxHeight: maxHeight
|
39389
39394
|
} : undefined
|
39390
39395
|
}, !loading && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, !!copyButton && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_copy_button__WEBPACK_IMPORTED_MODULE_5__.CopyButton, {
|
39396
|
+
placement: copyButtonPlacement,
|
39391
39397
|
className: copyButtonClassName,
|
39392
39398
|
code: code,
|
39393
39399
|
variant: variant,
|
@@ -39414,6 +39420,7 @@ CodeSnippet.propTypes = {
|
|
39414
39420
|
lineNumbers: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
39415
39421
|
copyButton: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
39416
39422
|
copyButtonClassName: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().string),
|
39423
|
+
copyButtonPlacement: prop_types__WEBPACK_IMPORTED_MODULE_2___default().oneOf(['top', 'bottom']),
|
39417
39424
|
loading: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool),
|
39418
39425
|
onCopy: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().func),
|
39419
39426
|
wrap: (prop_types__WEBPACK_IMPORTED_MODULE_2___default().bool)
|
@@ -39490,7 +39497,8 @@ var CopyButton = function CopyButton(_ref) {
|
|
39490
39497
|
code = _ref.code,
|
39491
39498
|
variant = _ref.variant,
|
39492
39499
|
codeRef = _ref.codeRef,
|
39493
|
-
onCopy = _ref.onCopy
|
39500
|
+
onCopy = _ref.onCopy,
|
39501
|
+
placement = _ref.placement;
|
39494
39502
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(STATE.READY),
|
39495
39503
|
_useState2 = _slicedToArray(_useState, 2),
|
39496
39504
|
state = _useState2[0],
|
@@ -39522,7 +39530,8 @@ var CopyButton = function CopyButton(_ref) {
|
|
39522
39530
|
className: className,
|
39523
39531
|
type: "button",
|
39524
39532
|
onClick: handleClick,
|
39525
|
-
$variant: variant
|
39533
|
+
$variant: variant,
|
39534
|
+
$placement: placement
|
39526
39535
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("svg", {
|
39527
39536
|
viewBox: icon.viewBox
|
39528
39537
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("use", {
|
@@ -39532,12 +39541,13 @@ var CopyButton = function CopyButton(_ref) {
|
|
39532
39541
|
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().button.withConfig({
|
39533
39542
|
displayName: "StyledButton",
|
39534
39543
|
componentId: "sc-kvxvoe-0"
|
39535
|
-
})(["position:absolute;inset-inline-end:", ";
|
39544
|
+
})(["position:absolute;inset-inline-end:", ";", ";z-index:1;display:flex;padding:8px;align-items:flex-start;border:0 none;border-radius:32px;background:", ";svg{width:16px;height:16px;color:", ";}&:hover,&:active{background:", ";}"], function (_ref2) {
|
39536
39545
|
var theme = _ref2.theme;
|
39537
39546
|
return theme.spacing['05'];
|
39538
39547
|
}, function (_ref3) {
|
39539
|
-
var theme = _ref3.theme
|
39540
|
-
|
39548
|
+
var theme = _ref3.theme,
|
39549
|
+
$placement = _ref3.$placement;
|
39550
|
+
return $placement == 'bottom' ? (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["bottom:", ""], theme.spacing['02']) : (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["top:", ""], theme.spacing['05']);
|
39541
39551
|
}, function (_ref4) {
|
39542
39552
|
var $variant = _ref4.$variant,
|
39543
39553
|
color = _ref4.theme.color;
|
@@ -39866,6 +39876,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
39866
39876
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
39867
39877
|
/* harmony export */ INPUT_HORIZONTAL_PADDING: () => (/* binding */ INPUT_HORIZONTAL_PADDING),
|
39868
39878
|
/* harmony export */ INPUT_VERTICAL_PADDING: () => (/* binding */ INPUT_VERTICAL_PADDING),
|
39879
|
+
/* harmony export */ PT_INPUT_SHARED: () => (/* binding */ PT_INPUT_SHARED),
|
39869
39880
|
/* harmony export */ PT_NECESSITY_INDICATOR: () => (/* binding */ PT_NECESSITY_INDICATOR),
|
39870
39881
|
/* harmony export */ PT_TOOLTIP_PLACEMENT: () => (/* binding */ PT_TOOLTIP_PLACEMENT),
|
39871
39882
|
/* harmony export */ PT_TRIGGER: () => (/* binding */ PT_TRIGGER),
|
@@ -39908,6 +39919,32 @@ var TOOLTIP_PLACEMENT = function () {
|
|
39908
39919
|
});
|
39909
39920
|
});
|
39910
39921
|
}();
|
39922
|
+
var PT_INPUT_SHARED = {
|
39923
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
39924
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
39925
|
+
value: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().any),
|
39926
|
+
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
39927
|
+
onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
39928
|
+
onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
39929
|
+
onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
39930
|
+
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
39931
|
+
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39932
|
+
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39933
|
+
after: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39934
|
+
before: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39935
|
+
leftInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39936
|
+
leftOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39937
|
+
rightInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39938
|
+
rightOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39939
|
+
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39940
|
+
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
39941
|
+
labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39942
|
+
helperText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
39943
|
+
inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
39944
|
+
required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
39945
|
+
necessityIndicator: PT_NECESSITY_INDICATOR,
|
39946
|
+
autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
39947
|
+
};
|
39911
39948
|
|
39912
39949
|
/***/ }),
|
39913
39950
|
|
@@ -45861,21 +45898,24 @@ __webpack_require__.r(__webpack_exports__);
|
|
45861
45898
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
45862
45899
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
45863
45900
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
45864
|
-
/* harmony import */ var
|
45865
|
-
/* harmony import */ var
|
45866
|
-
/* harmony import */ var
|
45867
|
-
/* harmony import */ var
|
45868
|
-
/* harmony import */ var
|
45869
|
-
/* harmony import */ var
|
45870
|
-
/* harmony import */ var
|
45871
|
-
/* harmony import */ var
|
45872
|
-
/* harmony import */ var
|
45901
|
+
/* harmony import */ var rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! rc-util/lib/pickAttrs */ "./node_modules/rc-util/lib/pickAttrs.js");
|
45902
|
+
/* harmony import */ var _hooks__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../hooks */ "./src/hooks/index.js");
|
45903
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
45904
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
45905
|
+
/* harmony import */ var _tooltip__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../tooltip */ "./src/tooltip/index.js");
|
45906
|
+
/* harmony import */ var _translation__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../translation */ "./src/translation.js");
|
45907
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
45908
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
45909
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../utils */ "./src/utils.js");
|
45910
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../constants */ "./src/constants.js");
|
45873
45911
|
// LICENSE_CODE ZON
|
45874
45912
|
|
45875
45913
|
|
45876
45914
|
/*jslint react:true*/
|
45877
45915
|
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); }
|
45878
|
-
var _excluded = ["id", "name", "value", "leftInnerContent", "
|
45916
|
+
var _excluded = ["id", "name", "value", "leftInnerContent", "rightInnerContent", "heightCalculationCallback", "Field", "fieldRef", "onChange", "onFocus", "onBlur", "onKeyDown", "placeholder", "disabled", "invalid", "autoFocus", "helperText", "label", "labelIcon", "labelTooltip", "required", "necessityIndicator", "autoresize", "verticalAlign", "innerWrapper", "classNamePrefix", "className"];
|
45917
|
+
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; }
|
45918
|
+
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; }
|
45879
45919
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
45880
45920
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
45881
45921
|
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); }
|
@@ -45900,14 +45940,13 @@ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t =
|
|
45900
45940
|
|
45901
45941
|
|
45902
45942
|
|
45943
|
+
|
45903
45944
|
var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef(function (props, ref) {
|
45904
45945
|
var id = props.id,
|
45905
45946
|
name = props.name,
|
45906
45947
|
value = props.value,
|
45907
45948
|
leftInnerContent = props.leftInnerContent,
|
45908
|
-
leftOuterContent = props.leftOuterContent,
|
45909
45949
|
rightInnerContent = props.rightInnerContent,
|
45910
|
-
rightOuterContent = props.rightOuterContent,
|
45911
45950
|
heightCalculationCallback = props.heightCalculationCallback,
|
45912
45951
|
Field = props.Field,
|
45913
45952
|
fieldRef = props.fieldRef,
|
@@ -45932,7 +45971,7 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
45932
45971
|
className = props.className,
|
45933
45972
|
rest = _objectWithoutProperties(props, _excluded);
|
45934
45973
|
var field = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)();
|
45935
|
-
var setFieldRefs = (0,
|
45974
|
+
var setFieldRefs = (0,_util__WEBPACK_IMPORTED_MODULE_10__.useSetRefsCallback)([fieldRef, field]);
|
45936
45975
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(),
|
45937
45976
|
_useState2 = _slicedToArray(_useState, 2),
|
45938
45977
|
active = _useState2[0],
|
@@ -45965,13 +46004,15 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
45965
46004
|
}, []);
|
45966
46005
|
(0,react__WEBPACK_IMPORTED_MODULE_1__.useEffect)(function () {
|
45967
46006
|
// XXX vadimv: hack to autoresize textarea
|
45968
|
-
if (autoresize) field.current.style.height = (0,
|
46007
|
+
if (autoresize) field.current.style.height = (0,_utils__WEBPACK_IMPORTED_MODULE_11__.toPixel)(field.current.scrollHeight);
|
45969
46008
|
}, [autoresize, value]);
|
45970
|
-
var labelId = (0,
|
45971
|
-
|
46009
|
+
var labelId = (0,_hooks__WEBPACK_IMPORTED_MODULE_4__.useLabelId)(id);
|
46010
|
+
var leftOuterContent = props.leftOuterContent || props.before;
|
46011
|
+
var rightOuterContent = props.rightOuterContent || props.after;
|
46012
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex, _extends({
|
45972
46013
|
ref: ref
|
45973
|
-
}, (0,
|
45974
|
-
className: (0,
|
46014
|
+
}, (0,rc_util_lib_pickAttrs__WEBPACK_IMPORTED_MODULE_3__["default"])(rest), {
|
46015
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
|
45975
46016
|
container: true
|
45976
46017
|
}, className),
|
45977
46018
|
flex_direction: "column",
|
@@ -45987,9 +46028,10 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
45987
46028
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputContentWrapper, {
|
45988
46029
|
$heightCalculationCallback: heightCalculationCallback
|
45989
46030
|
}, leftOuterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LeftOuterContentWrapper, {
|
45990
|
-
className: (0,
|
46031
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
|
45991
46032
|
leftOuterContent: true
|
45992
|
-
})
|
46033
|
+
}),
|
46034
|
+
$unstyled: !!props.leftOuterContent
|
45993
46035
|
}, leftOuterContent), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(InputWrapper, {
|
45994
46036
|
ref: innerWrapper,
|
45995
46037
|
$active: active,
|
@@ -46015,43 +46057,25 @@ var FieldWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().for
|
|
46015
46057
|
placeholder: placeholder,
|
46016
46058
|
"aria-labelledby": label ? labelId : undefined
|
46017
46059
|
})), rightInnerContent), rightOuterContent && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(RightOuterContentWrapper, {
|
46018
|
-
className: (0,
|
46060
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
|
46019
46061
|
rightOuterContent: true
|
46020
|
-
})
|
46062
|
+
}),
|
46063
|
+
$unstyled: !!props.rightOuterContent
|
46021
46064
|
}, rightOuterContent)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(HelperText, {
|
46022
46065
|
classNamePrefix: classNamePrefix,
|
46023
46066
|
invalid: invalid
|
46024
46067
|
}, helperText));
|
46025
46068
|
});
|
46026
46069
|
FieldWrapper.displayName = 'FieldWrapper';
|
46027
|
-
FieldWrapper.propTypes = {
|
46028
|
-
|
46029
|
-
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
46030
|
-
onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
46031
|
-
onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
46032
|
-
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
46033
|
-
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
46034
|
-
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
46035
|
-
leftInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
46036
|
-
leftOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
46037
|
-
rightInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
46038
|
-
rightOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
46039
|
-
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
46040
|
-
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
46041
|
-
labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
46042
|
-
helperText: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
46043
|
-
inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().object),
|
46070
|
+
FieldWrapper.propTypes = _objectSpread(_objectSpread({}, _constants__WEBPACK_IMPORTED_MODULE_12__.PT_INPUT_SHARED), {}, {
|
46071
|
+
heightCalculationCallback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
46044
46072
|
Field: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().elementType),
|
46045
46073
|
fieldRef: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_0___default().func), prop_types__WEBPACK_IMPORTED_MODULE_0___default().shape({
|
46046
46074
|
current: prop_types__WEBPACK_IMPORTED_MODULE_0___default().instanceOf(Element)
|
46047
46075
|
})]),
|
46048
|
-
required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
46049
|
-
necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_11__.PT_NECESSITY_INDICATOR,
|
46050
|
-
autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
46051
|
-
heightCalculationCallback: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().func),
|
46052
46076
|
autoresize: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
46053
46077
|
verticalAlign: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string)
|
46054
|
-
};
|
46078
|
+
});
|
46055
46079
|
var Field = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.withConfig({
|
46056
46080
|
displayName: "Field",
|
46057
46081
|
componentId: "sc-r60v1b-0"
|
@@ -46086,14 +46110,14 @@ var InputLabel = function InputLabel(_ref7) {
|
|
46086
46110
|
necessityIndicator = _ref7$necessityIndica === void 0 ? 'asterisk' : _ref7$necessityIndica,
|
46087
46111
|
_ref7$variant = _ref7.variant,
|
46088
46112
|
variant = _ref7$variant === void 0 ? 'sm' : _ref7$variant;
|
46089
|
-
var t = (0,
|
46113
|
+
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useReactTranslate)();
|
46090
46114
|
if (!label) return null;
|
46091
46115
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(LabelWrapper, {
|
46092
|
-
className: (0,
|
46116
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
|
46093
46117
|
label: true
|
46094
46118
|
}, className)
|
46095
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
46096
|
-
className: (0,
|
46119
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_9__.Label, {
|
46120
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, _defineProperty({
|
46097
46121
|
labelText: true
|
46098
46122
|
}, 'labelText--is-required', required)),
|
46099
46123
|
id: id,
|
@@ -46103,10 +46127,10 @@ var InputLabel = function InputLabel(_ref7) {
|
|
46103
46127
|
}, t(label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(NecessityIndicator, {
|
46104
46128
|
required: required,
|
46105
46129
|
indicator: necessityIndicator
|
46106
|
-
})), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
46130
|
+
})), labelIcon && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_tooltip__WEBPACK_IMPORTED_MODULE_7__.Tooltip2, {
|
46107
46131
|
tooltip: labelTooltip
|
46108
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
46109
|
-
className: (0,
|
46132
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, {
|
46133
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
|
46110
46134
|
labelIcon: true
|
46111
46135
|
}),
|
46112
46136
|
name: labelIcon,
|
@@ -46115,11 +46139,14 @@ var InputLabel = function InputLabel(_ref7) {
|
|
46115
46139
|
})));
|
46116
46140
|
};
|
46117
46141
|
InputLabel.propTypes = {
|
46142
|
+
className: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
46143
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
46144
|
+
id: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
46118
46145
|
label: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
46119
46146
|
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
46120
46147
|
labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().node),
|
46121
46148
|
required: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool),
|
46122
|
-
necessityIndicator:
|
46149
|
+
necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_12__.PT_NECESSITY_INDICATOR,
|
46123
46150
|
variant: prop_types__WEBPACK_IMPORTED_MODULE_0___default().oneOf(['sm', 'lg'])
|
46124
46151
|
};
|
46125
46152
|
var LabelWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
@@ -46129,25 +46156,27 @@ var LabelWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
46129
46156
|
var spacing = _ref8.theme.spacing;
|
46130
46157
|
return spacing['03'];
|
46131
46158
|
});
|
46132
|
-
var NecessityIndicator = function NecessityIndicator(
|
46133
|
-
var required =
|
46134
|
-
indicator =
|
46135
|
-
var t = (0,
|
46159
|
+
var NecessityIndicator = function NecessityIndicator(_ref9) {
|
46160
|
+
var required = _ref9.required,
|
46161
|
+
indicator = _ref9.indicator;
|
46162
|
+
var t = (0,_translation__WEBPACK_IMPORTED_MODULE_8__.useReactTranslate)();
|
46136
46163
|
if (indicator == 'none') return null;
|
46137
|
-
if (indicator == 'text')
|
46164
|
+
if (indicator == 'text') {
|
46165
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Indicator, null, t(required ? '(required)' : '(optional)'));
|
46166
|
+
}
|
46138
46167
|
return required ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Asterisk, null) : null;
|
46139
46168
|
};
|
46140
46169
|
var Indicator = styled_components__WEBPACK_IMPORTED_MODULE_2___default().span.withConfig({
|
46141
46170
|
displayName: "Indicator",
|
46142
46171
|
componentId: "sc-r60v1b-2"
|
46143
|
-
})(["color:", ";margin-left:", ";"], function (
|
46144
|
-
var color =
|
46172
|
+
})(["color:", ";margin-left:", ";"], function (_ref10) {
|
46173
|
+
var color = _ref10.theme.color;
|
46145
46174
|
return color.text_disabled;
|
46146
|
-
}, function (
|
46147
|
-
var spacing =
|
46175
|
+
}, function (_ref11) {
|
46176
|
+
var spacing = _ref11.theme.spacing;
|
46148
46177
|
return spacing['02'];
|
46149
46178
|
});
|
46150
|
-
var Asterisk = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
46179
|
+
var Asterisk = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_9__.Label).attrs({
|
46151
46180
|
tag: 'span',
|
46152
46181
|
variant: 'xs',
|
46153
46182
|
color: 'border_error',
|
@@ -46155,73 +46184,84 @@ var Asterisk = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typogra
|
|
46155
46184
|
}).withConfig({
|
46156
46185
|
displayName: "Asterisk",
|
46157
46186
|
componentId: "sc-r60v1b-3"
|
46158
|
-
})(["margin-left:", ";"], function (
|
46159
|
-
var spacing =
|
46187
|
+
})(["margin-left:", ";"], function (_ref12) {
|
46188
|
+
var spacing = _ref12.theme.spacing;
|
46160
46189
|
return spacing['02'];
|
46161
46190
|
});
|
46162
46191
|
var LeftOuterContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
46163
46192
|
displayName: "LeftOuterContentWrapper",
|
46164
46193
|
componentId: "sc-r60v1b-4"
|
46165
|
-
})(["display:flex;align-items:center;justify-content:center;background-color:", ";height:100%;box-sizing:border-box;border-top:
|
46166
|
-
var color = _ref12.theme.color;
|
46167
|
-
return color.bg_fill;
|
46168
|
-
}, function (_ref13) {
|
46194
|
+
})(["display:flex;align-items:center;justify-content:center;background-color:", ";height:100%;box-sizing:border-box;border-top:", ";border-bottom:", ";border-left:", ";padding:", ";border-top-left-radius:4px;border-bottom-left-radius:4px;font-family:", ";font-size:", ";font-weight:", ";line-height:normal;color:", ";"], function (_ref13) {
|
46169
46195
|
var color = _ref13.theme.color;
|
46170
|
-
return color.
|
46196
|
+
return color.bg_fill;
|
46171
46197
|
}, function (_ref14) {
|
46172
|
-
var
|
46173
|
-
|
46198
|
+
var $unstyled = _ref14.$unstyled,
|
46199
|
+
color = _ref14.theme.color;
|
46200
|
+
return $unstyled ? '0 none' : "1px solid ".concat(color.border);
|
46174
46201
|
}, function (_ref15) {
|
46175
|
-
var
|
46176
|
-
|
46202
|
+
var $unstyled = _ref15.$unstyled,
|
46203
|
+
color = _ref15.theme.color;
|
46204
|
+
return $unstyled ? '0 none' : "1px solid ".concat(color.border);
|
46177
46205
|
}, function (_ref16) {
|
46178
|
-
var
|
46179
|
-
|
46206
|
+
var $unstyled = _ref16.$unstyled,
|
46207
|
+
color = _ref16.theme.color;
|
46208
|
+
return $unstyled ? '0 none' : "1px solid ".concat(color.border);
|
46180
46209
|
}, function (_ref17) {
|
46181
|
-
var
|
46182
|
-
|
46210
|
+
var $unstyled = _ref17.$unstyled,
|
46211
|
+
spacing = _ref17.theme.spacing;
|
46212
|
+
return $unstyled ? '0' : spacing['04'];
|
46183
46213
|
}, function (_ref18) {
|
46184
|
-
var
|
46185
|
-
return
|
46214
|
+
var font_family = _ref18.theme.font_family;
|
46215
|
+
return font_family.sans;
|
46186
46216
|
}, function (_ref19) {
|
46187
|
-
var
|
46188
|
-
return
|
46217
|
+
var font_size = _ref19.theme.font_size;
|
46218
|
+
return font_size.sm;
|
46189
46219
|
}, function (_ref20) {
|
46190
|
-
var
|
46220
|
+
var font_weight = _ref20.theme.font_weight;
|
46221
|
+
return font_weight.regular;
|
46222
|
+
}, function (_ref21) {
|
46223
|
+
var color = _ref21.theme.color;
|
46191
46224
|
return color.text_quaternary;
|
46192
46225
|
});
|
46193
46226
|
var RightOuterContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
46194
46227
|
displayName: "RightOuterContentWrapper",
|
46195
46228
|
componentId: "sc-r60v1b-5"
|
46196
|
-
})(["display:flex;align-items:center;justify-content:center;background-color:", ";height:100%;box-sizing:border-box;border-top:
|
46197
|
-
var color = _ref21.theme.color;
|
46198
|
-
return color.bg_fill;
|
46199
|
-
}, function (_ref22) {
|
46229
|
+
})(["display:flex;align-items:center;justify-content:center;background-color:", ";height:100%;box-sizing:border-box;padding:0 ", ";border-top:", ";border-right:", ";border-bottom:", ";padding:", ";border-top-right-radius:4px;border-bottom-right-radius:4px;font-family:", ";font-size:", ";font-weight:", ";line-height:normal;color:", ";"], function (_ref22) {
|
46200
46230
|
var color = _ref22.theme.color;
|
46201
|
-
return color.
|
46231
|
+
return color.bg_fill;
|
46202
46232
|
}, function (_ref23) {
|
46203
|
-
var
|
46204
|
-
return
|
46233
|
+
var spacing = _ref23.theme.spacing;
|
46234
|
+
return spacing['04'];
|
46205
46235
|
}, function (_ref24) {
|
46206
|
-
var
|
46207
|
-
|
46236
|
+
var $unstyled = _ref24.$unstyled,
|
46237
|
+
color = _ref24.theme.color;
|
46238
|
+
return $unstyled ? '0 none' : "1px solid ".concat(color.border);
|
46208
46239
|
}, function (_ref25) {
|
46209
|
-
var
|
46210
|
-
|
46240
|
+
var $unstyled = _ref25.$unstyled,
|
46241
|
+
color = _ref25.theme.color;
|
46242
|
+
return $unstyled ? '0 none' : "1px solid ".concat(color.border);
|
46211
46243
|
}, function (_ref26) {
|
46212
|
-
var
|
46213
|
-
|
46244
|
+
var $unstyled = _ref26.$unstyled,
|
46245
|
+
color = _ref26.theme.color;
|
46246
|
+
return $unstyled ? '0 none' : "1px solid ".concat(color.border);
|
46214
46247
|
}, function (_ref27) {
|
46215
|
-
var
|
46216
|
-
|
46248
|
+
var $unstyled = _ref27.$unstyled,
|
46249
|
+
spacing = _ref27.theme.spacing;
|
46250
|
+
return $unstyled ? '0' : spacing['04'];
|
46217
46251
|
}, function (_ref28) {
|
46218
|
-
var
|
46219
|
-
return
|
46252
|
+
var font_family = _ref28.theme.font_family;
|
46253
|
+
return font_family.sans;
|
46220
46254
|
}, function (_ref29) {
|
46221
|
-
var
|
46255
|
+
var font_size = _ref29.theme.font_size;
|
46256
|
+
return font_size.sm;
|
46257
|
+
}, function (_ref30) {
|
46258
|
+
var font_weight = _ref30.theme.font_weight;
|
46259
|
+
return font_weight.regular;
|
46260
|
+
}, function (_ref31) {
|
46261
|
+
var color = _ref31.theme.color;
|
46222
46262
|
return color.text_quaternary;
|
46223
46263
|
});
|
46224
|
-
var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(
|
46264
|
+
var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex).withConfig({
|
46225
46265
|
displayName: "InputContentWrapper",
|
46226
46266
|
componentId: "sc-r60v1b-6"
|
46227
46267
|
})(["", " border-radius:4px;"], function (props) {
|
@@ -46230,11 +46270,11 @@ var InputContentWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default
|
|
46230
46270
|
var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
46231
46271
|
displayName: "InputWrapper",
|
46232
46272
|
componentId: "sc-r60v1b-7"
|
46233
|
-
})(["position:relative;width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";border-left-width:1px;border-right-width:1px;border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";", " ", " box-shadow:", ";"], function (
|
46234
|
-
var font_family =
|
46273
|
+
})(["position:relative;width:100%;border:1px solid;border-radius:4px;box-sizing:border-box;font-family:", ";padding:", "px ", "px;overflow:auto;display:flex;gap:8px;align-items:", ";border-left-width:1px;border-right-width:1px;border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";", " ", " box-shadow:", ";"], function (_ref32) {
|
46274
|
+
var font_family = _ref32.theme.font_family;
|
46235
46275
|
return font_family.sans;
|
46236
|
-
},
|
46237
|
-
var $verticalAlign =
|
46276
|
+
}, _constants__WEBPACK_IMPORTED_MODULE_12__.INPUT_VERTICAL_PADDING, _constants__WEBPACK_IMPORTED_MODULE_12__.INPUT_HORIZONTAL_PADDING, function (_ref33) {
|
46277
|
+
var $verticalAlign = _ref33.$verticalAlign;
|
46238
46278
|
return $verticalAlign !== null && $verticalAlign !== void 0 ? $verticalAlign : 'normal';
|
46239
46279
|
}, function (props) {
|
46240
46280
|
return props.$leftOuterContent ? '0' : '4px';
|
@@ -46247,28 +46287,28 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
46247
46287
|
}, function (props) {
|
46248
46288
|
var _props$$heightCalcula;
|
46249
46289
|
return (_props$$heightCalcula = props.$heightCalculationCallback) === null || _props$$heightCalcula === void 0 ? void 0 : _props$$heightCalcula.call(props);
|
46250
|
-
}, function (
|
46251
|
-
var $disabled =
|
46252
|
-
$invalid =
|
46253
|
-
$active =
|
46254
|
-
color =
|
46290
|
+
}, function (_ref34) {
|
46291
|
+
var $disabled = _ref34.$disabled,
|
46292
|
+
$invalid = _ref34.$invalid,
|
46293
|
+
$active = _ref34.$active,
|
46294
|
+
color = _ref34.theme.color;
|
46255
46295
|
if ($disabled) {
|
46256
46296
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:default;background-color:", ";border-color:", ";color:", ";"], color.bg_fill_teritary, color.border_disabled, color.text_disabled);
|
46257
46297
|
}
|
46258
46298
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:text;background-color:", ";color:", ";border-color:", ";&:hover{border-color:", ";}"], color.bg, color.text_tertiary, $invalid ? color.border_error : $active ? color.border_primary : color.border, color.border_accent);
|
46259
|
-
}, function (
|
46260
|
-
var $active =
|
46261
|
-
shadow =
|
46299
|
+
}, function (_ref35) {
|
46300
|
+
var $active = _ref35.$active,
|
46301
|
+
shadow = _ref35.theme.shadow;
|
46262
46302
|
return $active ? shadow.primary : null;
|
46263
46303
|
});
|
46264
|
-
var HelperText = function HelperText(
|
46265
|
-
var classNamePrefix =
|
46266
|
-
children =
|
46267
|
-
invalid =
|
46304
|
+
var HelperText = function HelperText(_ref36) {
|
46305
|
+
var classNamePrefix = _ref36.classNamePrefix,
|
46306
|
+
children = _ref36.children,
|
46307
|
+
invalid = _ref36.invalid;
|
46268
46308
|
if (!children) return null;
|
46269
46309
|
var color = invalid ? 'text_error' : 'text_quaternary';
|
46270
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
46271
|
-
className: (0,
|
46310
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_9__.Label, {
|
46311
|
+
className: (0,_util__WEBPACK_IMPORTED_MODULE_10__.classNames)(classNamePrefix, {
|
46272
46312
|
helperText: true,
|
46273
46313
|
'helperText--invalid': invalid
|
46274
46314
|
}),
|
@@ -46279,6 +46319,7 @@ var HelperText = function HelperText(_ref34) {
|
|
46279
46319
|
};
|
46280
46320
|
HelperText.displayName = 'HelperText';
|
46281
46321
|
HelperText.propTypes = {
|
46322
|
+
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().string),
|
46282
46323
|
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_0___default().bool)
|
46283
46324
|
};
|
46284
46325
|
var useHeightCalculationCallback = function useHeightCalculationCallback(size) {
|
@@ -46289,7 +46330,7 @@ var useHeightCalculationCallback = function useHeightCalculationCallback(size) {
|
|
46289
46330
|
md: 40,
|
46290
46331
|
lg: 48
|
46291
46332
|
};
|
46292
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["height:", ";"], (0,
|
46333
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["height:", ";"], (0,_utils__WEBPACK_IMPORTED_MODULE_11__.toPixel)(height[size] || height.sm));
|
46293
46334
|
}, [size]);
|
46294
46335
|
};
|
46295
46336
|
|
@@ -46507,40 +46548,16 @@ var Textbox = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forwardR
|
|
46507
46548
|
}, inputProps)
|
46508
46549
|
}));
|
46509
46550
|
});
|
46510
|
-
Textbox.propTypes = {
|
46511
|
-
className: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
46512
|
-
classNamePrefix: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
46551
|
+
Textbox.propTypes = _objectSpread(_objectSpread({}, _constants__WEBPACK_IMPORTED_MODULE_2__.PT_INPUT_SHARED), {}, {
|
46513
46552
|
value: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
46514
|
-
onChange: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
46515
|
-
onFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
46516
|
-
onBlur: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
46517
|
-
onKeyDown: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().func),
|
46518
|
-
placeholder: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
46519
|
-
disabled: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
46520
|
-
required: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
46521
|
-
necessityIndicator: _constants__WEBPACK_IMPORTED_MODULE_2__.PT_NECESSITY_INDICATOR,
|
46522
|
-
invalid: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
46523
|
-
leftInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
46524
|
-
leftOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
46525
|
-
rightInnerContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
46526
|
-
rightOuterContent: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
46527
|
-
label: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
46528
|
-
labelIcon: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
46529
|
-
labelTooltip: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
46530
|
-
helperText: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().node),
|
46531
|
-
inputProps: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().object),
|
46532
46553
|
size: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOf(['xs', 'sm', 'md', 'lg']),
|
46533
|
-
autoFocus: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
46534
|
-
fieldRef: prop_types__WEBPACK_IMPORTED_MODULE_1___default().oneOfType([(prop_types__WEBPACK_IMPORTED_MODULE_1___default().func), prop_types__WEBPACK_IMPORTED_MODULE_1___default().shape({
|
46535
|
-
current: prop_types__WEBPACK_IMPORTED_MODULE_1___default().instanceOf(Element)
|
46536
|
-
})]),
|
46537
46554
|
minLength: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
|
46538
46555
|
maxLength: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
|
46539
46556
|
type: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string),
|
46540
46557
|
tabIndex: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().number),
|
46541
46558
|
readOnly: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().bool),
|
46542
46559
|
autoComplete: (prop_types__WEBPACK_IMPORTED_MODULE_1___default().string)
|
46543
|
-
};
|
46560
|
+
});
|
46544
46561
|
Textbox.displayName = 'Textbox';
|
46545
46562
|
|
46546
46563
|
/***/ }),
|
@@ -49069,11 +49086,6 @@ var DialogFooter = function DialogFooter(_ref3) {
|
|
49069
49086
|
"data-testid": "modal_footer_ok_button"
|
49070
49087
|
})));
|
49071
49088
|
};
|
49072
|
-
|
49073
|
-
// victorf: FIX backdrop vertical alignment with
|
49074
|
-
// top: 0;
|
49075
|
-
// transform: translate(0, ${$show=>$show ? '0': 'calc(50vh - 50%)'});
|
49076
|
-
|
49077
49089
|
var FooterHorizontal = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_layout__WEBPACK_IMPORTED_MODULE_7__.Flex).attrs({
|
49078
49090
|
gap: '04',
|
49079
49091
|
align_items: 'center',
|
@@ -50468,7 +50480,7 @@ var theme = function theme(cb) {
|
|
50468
50480
|
return cb(p.$theme);
|
50469
50481
|
};
|
50470
50482
|
};
|
50471
|
-
var TabsStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalStyle)([".", "{box-sizing:border-box;margin:0;padding:0;list-style:none;display:flex;&-top,&-bottom{flex-direction:column;.", "-nav-list{flex-direction:row;}}&-left,&-right{flex-direction:row;.", "-nav-list{flex-direction:column;}}&-nav{position:relative;display:flex;flex:none;align-items:center;&-wrap{position:relative;display:flex;flex:auto;align-self:stretch;white-space:nowrap;transform:translate(0);}&-list{position:relative;display:flex;transition:opacity 0.3s;justify-content:flex-start;align-items:center;box-sizing:border-box;width:fit-content;}&-operations{display:flex;align-self:stretch;&-hidden{position:absolute;visibility:hidden;pointer-events:none;}}}&-content-holder{flex:auto;min-width:0;min-height:0;box-sizing:border-box;}&-content{position:relative;width:100%;}&-tabpane{outline:none;&-hidden{display:none;}}&-tab{&-btn{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;border:0 none;background:transparent;min-width:0;width:fit-content;cursor:pointer;white-space:nowrap;font-family:", ";line-height:", ";letter-spacing:", ";}&-disabled{.", "-tab-btn{cursor:not-allowed;}}}&-main{.", "-nav-list{gap:24px;}.", "-tab{.", "-tab-btn{height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-underline{.", "-tab{.", "-tab-btn{height:24px;padding:0 16px;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-contain{.", "-nav-list{padding:2px;gap:2px;border-radius:4px;background:", ";}.", "-tab{.", "-tab-btn{height:32px;padding:0px 8px;justify-content:center;gap:6px;border-radius:4px;color:", ";font-size:", ";font-weight:", ";&:hover{color:", ";background:", ";}}&-active{.", "-tab-btn
|
50483
|
+
var TabsStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalStyle)([".", "{box-sizing:border-box;margin:0;padding:0;list-style:none;display:flex;&-top,&-bottom{flex-direction:column;.", "-nav-list{flex-direction:row;}}&-left,&-right{flex-direction:row;.", "-nav-list{flex-direction:column;}}&-nav{position:relative;display:flex;flex:none;align-items:center;&-wrap{position:relative;display:flex;flex:auto;align-self:stretch;white-space:nowrap;transform:translate(0);}&-list{position:relative;display:flex;transition:opacity 0.3s;justify-content:flex-start;align-items:center;box-sizing:border-box;width:fit-content;}&-operations{display:flex;align-self:stretch;&-hidden{position:absolute;visibility:hidden;pointer-events:none;}}}&-content-holder{flex:auto;min-width:0;min-height:0;box-sizing:border-box;}&-content{position:relative;width:100%;}&-tabpane{outline:none;&-hidden{display:none;}}&-tab{&-btn{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;border:0 none;background:transparent;min-width:0;width:fit-content;cursor:pointer;white-space:nowrap;font-family:", ";line-height:", ";letter-spacing:", ";}&-disabled{.", "-tab-btn{cursor:not-allowed;}}}&-main{.", "-nav-list{gap:24px;}.", "-tab{.", "-tab-btn{height:36px;padding:0;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-underline{.", "-tab{.", "-tab-btn{height:24px;padding:0 16px;justify-content:center;gap:4px;color:", ";box-shadow:0px -1px 0px 0px ", " inset;font-size:", ";font-weight:", ";&:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-active{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -2px 0px 0px ", " inset;}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";box-shadow:0px -1px 0px 0px ", " inset;}}}}&-contain{.", "-nav-list{padding:2px;gap:2px;border-radius:4px;background:", ";}.", "-tab{.", "-tab-btn{height:32px;padding:0px 8px;justify-content:center;gap:6px;border-radius:4px;color:", ";font-size:", ";font-weight:", ";&:hover{color:", ";background:", ";}}&-active{.", "-tab-btn{background:", ";border:1px solid ", ";box-shadow:", ";color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";background:", ";font-weight:", ";}}}}&-vertical{.", "-tab{.", "-tab-btn{width:200px;height:40px;padding:0 12px;justify-content:flex-start;gap:4px;border-radius:0 4px 4px 0;border-left:1px solid transparent;color:", ";overflow-x:clip;text-overflow:ellipsis;&:hover{border-left-color:", ";}}&-active{.", "-tab-btn{background:", ";border-left-color:", ";}}&-disabled{.", "-tab-btn,.", "-tab-btn:hover{color:", ";border-left-color:transparent;}}}}&-ink-bar{display:none;position:absolute;pointer-events:none;}}"], prefixCls, prefixCls, prefixCls, theme(function (t) {
|
50472
50484
|
return t.font_family.sans;
|
50473
50485
|
}), theme(function (t) {
|
50474
50486
|
return t.line_height.none;
|
@@ -50526,12 +50538,14 @@ var TabsStyle = (0,styled_components__WEBPACK_IMPORTED_MODULE_4__.createGlobalSt
|
|
50526
50538
|
return t.color.text_tertiary;
|
50527
50539
|
}), theme(function (t) {
|
50528
50540
|
return t.color.bg_fill_primary_secondary;
|
50529
|
-
}), prefixCls,
|
50541
|
+
}), prefixCls, theme(function (t) {
|
50530
50542
|
return t.color.bg;
|
50531
50543
|
}), theme(function (t) {
|
50532
50544
|
return t.color.border;
|
50533
50545
|
}), theme(function (t) {
|
50534
50546
|
return t.shadow.meduim;
|
50547
|
+
}), theme(function (t) {
|
50548
|
+
return t.color.text_primary;
|
50535
50549
|
}), prefixCls, prefixCls, theme(function (t) {
|
50536
50550
|
return t.color.text_disabled;
|
50537
50551
|
}), theme(function (t) {
|