@luminati-io/uikit 5.2.9 → 5.2.11-beta.0
Sign up to get free protection for your applications and to get access to all the features.
@@ -33488,25 +33488,32 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
33488
33488
|
var useStyles = function useStyles(_ref) {
|
33489
33489
|
var styles = _ref.styles,
|
33490
33490
|
size = _ref.size;
|
33491
|
-
var
|
33492
|
-
|
33493
|
-
|
33494
|
-
|
33495
|
-
|
33496
|
-
|
33497
|
-
var
|
33491
|
+
var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.useTheme)();
|
33492
|
+
var color = theme.color,
|
33493
|
+
shadow = theme.shadow,
|
33494
|
+
font_family = theme.font_family,
|
33495
|
+
font_weight = theme.font_weight,
|
33496
|
+
font_size = theme.font_size;
|
33497
|
+
var headerXl = {
|
33498
33498
|
fontFamily: font_family.sans,
|
33499
33499
|
fontStyle: 'normal',
|
33500
33500
|
fontWeight: font_weight.medium,
|
33501
33501
|
fontSize: font_size.lg,
|
33502
|
-
lineHeight: line_height.none
|
33502
|
+
lineHeight: 'normal' // line_height.none,
|
33503
33503
|
};
|
33504
|
-
var
|
33504
|
+
var labelSm = {
|
33505
33505
|
fontFamily: font_family.sans,
|
33506
33506
|
fontStyle: 'normal',
|
33507
33507
|
fontWeight: font_weight.regular,
|
33508
33508
|
fontSize: font_size.sm,
|
33509
|
-
lineHeight: line_height.none
|
33509
|
+
lineHeight: 'normal' // line_height.none,
|
33510
|
+
};
|
33511
|
+
var labelBase = {
|
33512
|
+
fontFamily: font_family.sans,
|
33513
|
+
fontStyle: 'normal',
|
33514
|
+
fontWeight: font_weight.regular,
|
33515
|
+
fontSize: font_size.md,
|
33516
|
+
lineHeight: 'normal' // line_height.none,
|
33510
33517
|
};
|
33511
33518
|
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
33512
33519
|
return (0,_util_with_user_styles__WEBPACK_IMPORTED_MODULE_4__.withUserStyles)(styles, {
|
@@ -33519,21 +33526,24 @@ var useStyles = function useStyles(_ref) {
|
|
33519
33526
|
md: 40,
|
33520
33527
|
lg: 48
|
33521
33528
|
};
|
33522
|
-
var borderColor = color.
|
33529
|
+
var borderColor = color.border;
|
33523
33530
|
var boxShadow = 'none';
|
33524
|
-
var foreColor = color.
|
33525
|
-
var backgroundColor = color.
|
33531
|
+
var foreColor = color.text_teritary;
|
33532
|
+
var backgroundColor = color.bg;
|
33526
33533
|
var cursor = 'text';
|
33527
33534
|
if (isDisabled) {
|
33528
|
-
foreColor = color.
|
33529
|
-
borderColor = color.
|
33530
|
-
backgroundColor = color.
|
33535
|
+
foreColor = color.text_disabled;
|
33536
|
+
borderColor = color.border_disabled;
|
33537
|
+
backgroundColor = color.bg_fill_teritary;
|
33531
33538
|
cursor = 'default';
|
33532
|
-
} else if (selectProps['aria-invalid']) borderColor = color.
|
33533
|
-
borderColor = color.
|
33534
|
-
boxShadow =
|
33539
|
+
} else if (selectProps['aria-invalid']) borderColor = color.border_error;else if (isFocused) {
|
33540
|
+
borderColor = color.border_primary;
|
33541
|
+
boxShadow = shadow.primary;
|
33535
33542
|
}
|
33536
|
-
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles),
|
33543
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), labelSm), {}, {
|
33544
|
+
'&:hover': _objectSpread(_objectSpread({}, baseStyles['&:hover']), {}, {
|
33545
|
+
borderColor: color.border_accent
|
33546
|
+
}),
|
33537
33547
|
minHeight: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(height[size] || height.sm),
|
33538
33548
|
padding: "".concat(_shared__WEBPACK_IMPORTED_MODULE_3__.inputVerticalPadding, "px ").concat(_shared__WEBPACK_IMPORTED_MODULE_3__.inputHorizontalPadding, "px"),
|
33539
33549
|
color: foreColor,
|
@@ -33550,7 +33560,7 @@ var useStyles = function useStyles(_ref) {
|
|
33550
33560
|
},
|
33551
33561
|
placeholder: function placeholder(baseStyles) {
|
33552
33562
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
33553
|
-
color: color.
|
33563
|
+
color: color.text_quaternary
|
33554
33564
|
});
|
33555
33565
|
},
|
33556
33566
|
menu: function menu(baseStyles) {
|
@@ -33581,64 +33591,63 @@ var useStyles = function useStyles(_ref) {
|
|
33581
33591
|
});
|
33582
33592
|
},
|
33583
33593
|
groupHeading: function groupHeading(baseStyles) {
|
33584
|
-
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
33585
|
-
|
33586
|
-
fontFamily: font_family.sans,
|
33587
|
-
fontStyle: 'normal',
|
33588
|
-
fontWeight: font_weight.regular,
|
33589
|
-
fontSize: font_size.md,
|
33590
|
-
lineHeight: line_height.none,
|
33591
|
-
color: color.gray_11,
|
33594
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), labelBase), {}, {
|
33595
|
+
color: color.text_quaternary,
|
33592
33596
|
textTransform: undefined
|
33593
33597
|
});
|
33594
33598
|
},
|
33595
33599
|
option: function option(baseStyles, _ref3) {
|
33596
33600
|
var isFocused = _ref3.isFocused,
|
33597
33601
|
isDisabled = _ref3.isDisabled;
|
33598
|
-
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles),
|
33602
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), labelSm), {}, {
|
33599
33603
|
display: 'flex',
|
33600
33604
|
alignItems: 'center',
|
33601
33605
|
gap: '8px',
|
33602
33606
|
height: '40px',
|
33603
|
-
backgroundColor: isFocused ? color.
|
33604
|
-
color: isDisabled ? color.
|
33607
|
+
backgroundColor: isFocused ? color.bg_fill_secondary : undefined,
|
33608
|
+
color: isDisabled ? color.text_disabled : color.text_teritary,
|
33605
33609
|
'&:hover': {
|
33606
|
-
backgroundColor: color.
|
33610
|
+
backgroundColor: color.bg_fill_secondary
|
33607
33611
|
}
|
33608
33612
|
});
|
33609
33613
|
},
|
33610
33614
|
multiValue: function multiValue(baseStyles) {
|
33611
33615
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
33612
|
-
backgroundColor:
|
33613
|
-
border: "1px solid ".concat(color.
|
33616
|
+
backgroundColor: color.bg,
|
33617
|
+
border: "1px solid ".concat(color.border),
|
33614
33618
|
borderRadius: '4px'
|
33615
33619
|
});
|
33616
33620
|
},
|
33617
33621
|
multiValueLabel: function multiValueLabel(baseStyles) {
|
33618
|
-
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles),
|
33622
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), labelSm), {}, {
|
33619
33623
|
borderRadius: '4px',
|
33620
33624
|
padding: '4px 4px 4px 8px',
|
33621
|
-
color: color.
|
33625
|
+
color: color.text
|
33622
33626
|
});
|
33623
33627
|
},
|
33624
33628
|
multiValueRemove: function multiValueRemove(baseStyles) {
|
33625
33629
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
33626
|
-
borderRadius: '
|
33627
|
-
color: color.gray_11,
|
33630
|
+
borderRadius: '16px',
|
33628
33631
|
cursor: 'pointer',
|
33632
|
+
backgroundColor: color.icon_button_bg,
|
33633
|
+
color: color.icon_button_icon_default,
|
33634
|
+
':active': {
|
33635
|
+
color: color.icon_button_icon_active,
|
33636
|
+
backgroundColor: color.icon_button_bg_active
|
33637
|
+
},
|
33629
33638
|
':hover': {
|
33630
|
-
|
33631
|
-
|
33639
|
+
color: color.icon_button_icon_hover,
|
33640
|
+
backgroundColor: color.icon_button_bg_hover
|
33632
33641
|
}
|
33633
33642
|
});
|
33634
33643
|
},
|
33635
33644
|
noOptionsMessage: function noOptionsMessage(baseStyles) {
|
33636
|
-
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles),
|
33637
|
-
color: color.
|
33645
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), headerXl), {}, {
|
33646
|
+
color: color.text_quaternary
|
33638
33647
|
});
|
33639
33648
|
}
|
33640
33649
|
});
|
33641
|
-
}, [styles, size,
|
33650
|
+
}, [styles, size, theme]);
|
33642
33651
|
};
|
33643
33652
|
|
33644
33653
|
/***/ }),
|
@@ -33804,9 +33813,11 @@ var CompareToCalendar = function CompareToCalendar(props) {
|
|
33804
33813
|
gap: "04"
|
33805
33814
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton, {
|
33806
33815
|
icon: "ChevronLeft",
|
33807
|
-
|
33816
|
+
size: "xs",
|
33808
33817
|
onClick: onBack
|
33809
|
-
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.
|
33818
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
|
33819
|
+
variant: "lg",
|
33820
|
+
color: "text",
|
33810
33821
|
no_wrap: true
|
33811
33822
|
}, "Compare to date")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_date_picker__WEBPACK_IMPORTED_MODULE_8__.StyledDayPicker, {
|
33812
33823
|
fixedWeeks: true,
|
@@ -34037,12 +34048,15 @@ var borderRadius = '4px';
|
|
34037
34048
|
var DayPickerWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
34038
34049
|
displayName: "DayPickerWrapper",
|
34039
34050
|
componentId: "sc-1gurvxq-0"
|
34040
|
-
})(["margin:0;padding:", " 0;box-sizing:border-box;background:
|
34051
|
+
})(["margin:0;padding:", " 0;box-sizing:border-box;background:", ";border-radius:4px;box-shadow:", ";"], function (_ref3) {
|
34041
34052
|
var spacing = _ref3.theme.spacing;
|
34042
34053
|
return spacing['02'];
|
34043
34054
|
}, function (_ref4) {
|
34044
|
-
var
|
34045
|
-
return
|
34055
|
+
var color = _ref4.theme.color;
|
34056
|
+
return color.bg_elevated;
|
34057
|
+
}, function (_ref5) {
|
34058
|
+
var shadow = _ref5.theme.shadow;
|
34059
|
+
return shadow.medium;
|
34046
34060
|
});
|
34047
34061
|
var StyledDayPicker = function StyledDayPicker(props) {
|
34048
34062
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(DayPickerStyles, _extends({}, props, {
|
@@ -34055,69 +34069,72 @@ var StyledDayPicker = function StyledDayPicker(props) {
|
|
34055
34069
|
var DayPickerStyles = styled_components__WEBPACK_IMPORTED_MODULE_3___default()(react_day_picker__WEBPACK_IMPORTED_MODULE_2__.DayPicker).withConfig({
|
34056
34070
|
displayName: "DayPickerStyles",
|
34057
34071
|
componentId: "sc-1gurvxq-1"
|
34058
|
-
})([".rdp-months{display:flex;}.rdp-month{padding:", " ", ";}.rdp-caption{display:flex;flex-direction:row;align-items:center;padding:", " ", ";gap:10px;}.rdp-caption_start:not(.rdp-caption_end){border-right:1px solid ", ";.rdp-caption{flex-direction:row-reverse;}}.rdp-caption_label{width:100%;text-align:center;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";}.rdp-nav{display:flex;flex-direction:row;gap:10px;}.rdp-nav_button{display:flex;align-items:center;justify-content:center;border:0 none;border-radius:4px;cursor:pointer;width:20px;height:20px;background-color:", ";.rdp-nav_icon{color:", ";}&:hover:not(:disabled){background-color:", ";}&:active:not(:disabled){background-color:", ";.rdp-nav_icon{color:", ";}}&:disabled{.rdp-nav_icon{color:", ";}cursor:not-allowed;}}.rdp-table{border-collapse:collapse;}.rdp-head_cell{box-sizing:border-box;min-width:32px;max-width:32px;height:32px;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";}.rdp-cell{padding:0;}"], function (
|
34059
|
-
var spacing = _ref5.theme.spacing;
|
34060
|
-
return spacing['03'];
|
34061
|
-
}, function (_ref6) {
|
34072
|
+
})([".rdp-months{display:flex;}.rdp-month{padding:", " ", ";}.rdp-caption{display:flex;flex-direction:row;align-items:center;padding:", " ", ";gap:10px;}.rdp-caption_start:not(.rdp-caption_end){border-right:1px solid ", ";.rdp-caption{flex-direction:row-reverse;}}.rdp-caption_label{width:100%;text-align:center;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";}.rdp-nav{display:flex;flex-direction:row;gap:10px;}.rdp-nav_button{display:flex;align-items:center;justify-content:center;border:0 none;border-radius:4px;cursor:pointer;width:20px;height:20px;background-color:", ";.rdp-nav_icon{color:", ";}&:hover:not(:disabled){background-color:", ";.rdp-nav_icon{color:", ";}}&:active:not(:disabled){background-color:", ";.rdp-nav_icon{color:", ";}}&:disabled{.rdp-nav_icon{color:", ";}cursor:not-allowed;}}.rdp-table{border-collapse:collapse;}.rdp-head_cell{box-sizing:border-box;min-width:32px;max-width:32px;height:32px;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";}.rdp-cell{padding:0;}"], function (_ref6) {
|
34062
34073
|
var spacing = _ref6.theme.spacing;
|
34063
|
-
return spacing['
|
34074
|
+
return spacing['03'];
|
34064
34075
|
}, function (_ref7) {
|
34065
34076
|
var spacing = _ref7.theme.spacing;
|
34066
|
-
return spacing['
|
34077
|
+
return spacing['04'];
|
34067
34078
|
}, function (_ref8) {
|
34068
34079
|
var spacing = _ref8.theme.spacing;
|
34069
|
-
return spacing['
|
34080
|
+
return spacing['03'];
|
34070
34081
|
}, function (_ref9) {
|
34071
|
-
var
|
34072
|
-
return
|
34082
|
+
var spacing = _ref9.theme.spacing;
|
34083
|
+
return spacing['04'];
|
34073
34084
|
}, function (_ref10) {
|
34074
|
-
var
|
34075
|
-
return
|
34085
|
+
var color = _ref10.theme.color;
|
34086
|
+
return color.border_secondary;
|
34076
34087
|
}, function (_ref11) {
|
34077
|
-
var
|
34078
|
-
return
|
34088
|
+
var font_family = _ref11.theme.font_family;
|
34089
|
+
return font_family.sans;
|
34079
34090
|
}, function (_ref12) {
|
34080
|
-
var
|
34081
|
-
return
|
34091
|
+
var font_weight = _ref12.theme.font_weight;
|
34092
|
+
return font_weight.regular;
|
34082
34093
|
}, function (_ref13) {
|
34083
|
-
var
|
34084
|
-
return
|
34094
|
+
var font_size = _ref13.theme.font_size;
|
34095
|
+
return font_size.sm;
|
34085
34096
|
}, function (_ref14) {
|
34086
|
-
var
|
34087
|
-
return
|
34097
|
+
var line_height = _ref14.theme.line_height;
|
34098
|
+
return line_height.none;
|
34088
34099
|
}, function (_ref15) {
|
34089
34100
|
var color = _ref15.theme.color;
|
34090
|
-
return color.
|
34101
|
+
return color.text_secondary;
|
34091
34102
|
}, function (_ref16) {
|
34092
34103
|
var color = _ref16.theme.color;
|
34093
|
-
return color.
|
34104
|
+
return color.icon_button_bg;
|
34094
34105
|
}, function (_ref17) {
|
34095
34106
|
var color = _ref17.theme.color;
|
34096
|
-
return color.
|
34107
|
+
return color.icon_button_icon_default;
|
34097
34108
|
}, function (_ref18) {
|
34098
34109
|
var color = _ref18.theme.color;
|
34099
|
-
return color.
|
34110
|
+
return color.icon_button_bg_hover;
|
34100
34111
|
}, function (_ref19) {
|
34101
34112
|
var color = _ref19.theme.color;
|
34102
|
-
return color.
|
34113
|
+
return color.icon_button_icon_hover;
|
34103
34114
|
}, function (_ref20) {
|
34104
34115
|
var color = _ref20.theme.color;
|
34105
|
-
return color.
|
34116
|
+
return color.icon_button_bg_active;
|
34106
34117
|
}, function (_ref21) {
|
34107
|
-
var
|
34108
|
-
return
|
34118
|
+
var color = _ref21.theme.color;
|
34119
|
+
return color.icon_button_icon_active;
|
34109
34120
|
}, function (_ref22) {
|
34110
|
-
var
|
34111
|
-
return
|
34121
|
+
var color = _ref22.theme.color;
|
34122
|
+
return color.icon_button_icon_disabled;
|
34112
34123
|
}, function (_ref23) {
|
34113
|
-
var
|
34114
|
-
return
|
34124
|
+
var font_family = _ref23.theme.font_family;
|
34125
|
+
return font_family.sans;
|
34115
34126
|
}, function (_ref24) {
|
34116
|
-
var
|
34117
|
-
return
|
34127
|
+
var font_weight = _ref24.theme.font_weight;
|
34128
|
+
return font_weight.regular;
|
34118
34129
|
}, function (_ref25) {
|
34119
|
-
var
|
34120
|
-
return
|
34130
|
+
var font_size = _ref25.theme.font_size;
|
34131
|
+
return font_size.xs;
|
34132
|
+
}, function (_ref26) {
|
34133
|
+
var line_height = _ref26.theme.line_height;
|
34134
|
+
return line_height.none;
|
34135
|
+
}, function (_ref27) {
|
34136
|
+
var color = _ref27.theme.color;
|
34137
|
+
return color.text_quaternary;
|
34121
34138
|
});
|
34122
34139
|
var Day = function Day(props) {
|
34123
34140
|
var buttonRef = (0,react__WEBPACK_IMPORTED_MODULE_1__.useRef)(null);
|
@@ -34137,76 +34154,76 @@ Day.displayName = 'Day';
|
|
34137
34154
|
var DayWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.withConfig({
|
34138
34155
|
displayName: "DayWrapper",
|
34139
34156
|
componentId: "sc-1gurvxq-2"
|
34140
|
-
})(["padding:0;background-color:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";.rdp-day{display:flex;flex-direction:column;justify-content:center;align-items:center;width:32px;height:32px;box-sizing:border-box;border-radius:", ";border:1px solid ", ";background-color:", ";cursor:pointer;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";&:hover:not(:disabled){border:1px solid ", ";}&:disabled{color:", ";cursor:not-allowed;}}.rdp-day_today{color:", ";font-weight:", ";}.rdp-day_selected{background-color:", ";border:1px solid ", ";color:", ";}.rdp-day_range_middle{background-color:", ";border:1px solid ", ";color:", ";&.rdp-day_today{color:", ";}}"], function (
|
34141
|
-
var $mod =
|
34142
|
-
color =
|
34143
|
-
return $mod.selected ? color.
|
34144
|
-
}, function (_ref27) {
|
34145
|
-
var $mod = _ref27.$mod;
|
34146
|
-
return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
|
34147
|
-
}, function (_ref28) {
|
34148
|
-
var $mod = _ref28.$mod;
|
34149
|
-
return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
|
34157
|
+
})(["padding:0;background-color:", ";border-top-left-radius:", ";border-bottom-left-radius:", ";border-top-right-radius:", ";border-bottom-right-radius:", ";.rdp-day{display:flex;flex-direction:column;justify-content:center;align-items:center;width:32px;height:32px;box-sizing:border-box;border-radius:", ";border:1px solid ", ";background-color:", ";cursor:pointer;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";color:", ";&:hover:not(:disabled){border:1px solid ", ";}&:disabled{color:", ";cursor:not-allowed;}}.rdp-day_today{color:", ";font-weight:", ";}.rdp-day_selected{background-color:", ";border:1px solid ", ";color:", ";}.rdp-day_range_middle{background-color:", ";border:1px solid ", ";color:", ";&.rdp-day_today{color:", ";}}"], function (_ref28) {
|
34158
|
+
var $mod = _ref28.$mod,
|
34159
|
+
color = _ref28.theme.color;
|
34160
|
+
return $mod.selected ? color.bg_fill_primary_hover : color.bg_elevated;
|
34150
34161
|
}, function (_ref29) {
|
34151
34162
|
var $mod = _ref29.$mod;
|
34152
|
-
return $mod.range_middle || $mod.
|
34163
|
+
return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
|
34153
34164
|
}, function (_ref30) {
|
34154
34165
|
var $mod = _ref30.$mod;
|
34166
|
+
return $mod.range_middle || $mod.range_end && !$mod.range_start ? '0' : borderRadius;
|
34167
|
+
}, function (_ref31) {
|
34168
|
+
var $mod = _ref31.$mod;
|
34155
34169
|
return $mod.range_middle || $mod.range_start && !$mod.range_end ? '0' : borderRadius;
|
34156
|
-
}, borderRadius, function (_ref31) {
|
34157
|
-
var color = _ref31.theme.color;
|
34158
|
-
return color.white;
|
34159
34170
|
}, function (_ref32) {
|
34160
|
-
var
|
34161
|
-
return
|
34162
|
-
}, function (_ref33) {
|
34163
|
-
var
|
34164
|
-
return
|
34171
|
+
var $mod = _ref32.$mod;
|
34172
|
+
return $mod.range_middle || $mod.range_start && !$mod.range_end ? '0' : borderRadius;
|
34173
|
+
}, borderRadius, function (_ref33) {
|
34174
|
+
var color = _ref33.theme.color;
|
34175
|
+
return color.bg_elevated;
|
34165
34176
|
}, function (_ref34) {
|
34166
|
-
var
|
34167
|
-
return
|
34177
|
+
var color = _ref34.theme.color;
|
34178
|
+
return color.bg_elevated;
|
34168
34179
|
}, function (_ref35) {
|
34169
|
-
var
|
34170
|
-
return
|
34180
|
+
var font_family = _ref35.theme.font_family;
|
34181
|
+
return font_family.sans;
|
34171
34182
|
}, function (_ref36) {
|
34172
|
-
var
|
34173
|
-
return
|
34183
|
+
var font_weight = _ref36.theme.font_weight;
|
34184
|
+
return font_weight.regular;
|
34174
34185
|
}, function (_ref37) {
|
34175
|
-
var
|
34176
|
-
return
|
34186
|
+
var font_size = _ref37.theme.font_size;
|
34187
|
+
return font_size.xs;
|
34177
34188
|
}, function (_ref38) {
|
34178
|
-
var
|
34179
|
-
return
|
34189
|
+
var line_height = _ref38.theme.line_height;
|
34190
|
+
return line_height.none;
|
34180
34191
|
}, function (_ref39) {
|
34181
34192
|
var color = _ref39.theme.color;
|
34182
|
-
return color.
|
34193
|
+
return color.text_secondary;
|
34183
34194
|
}, function (_ref40) {
|
34184
34195
|
var color = _ref40.theme.color;
|
34185
|
-
return color.
|
34196
|
+
return color.border_primary_hover;
|
34186
34197
|
}, function (_ref41) {
|
34187
|
-
var
|
34188
|
-
return
|
34198
|
+
var color = _ref41.theme.color;
|
34199
|
+
return color.text_disabled;
|
34189
34200
|
}, function (_ref42) {
|
34190
34201
|
var color = _ref42.theme.color;
|
34191
|
-
return color.
|
34202
|
+
return color.text_primary;
|
34192
34203
|
}, function (_ref43) {
|
34193
|
-
var
|
34194
|
-
return
|
34204
|
+
var font_weight = _ref43.theme.font_weight;
|
34205
|
+
return font_weight.semibold;
|
34195
34206
|
}, function (_ref44) {
|
34196
34207
|
var color = _ref44.theme.color;
|
34197
|
-
return color.
|
34208
|
+
return color.bg_fill_primary_hover;
|
34198
34209
|
}, function (_ref45) {
|
34199
34210
|
var color = _ref45.theme.color;
|
34200
|
-
return color.
|
34211
|
+
return color.bg_fill_primary_hover;
|
34201
34212
|
}, function (_ref46) {
|
34202
34213
|
var color = _ref46.theme.color;
|
34203
|
-
return color.
|
34214
|
+
return color.text_white;
|
34204
34215
|
}, function (_ref47) {
|
34205
34216
|
var color = _ref47.theme.color;
|
34206
|
-
return color.
|
34217
|
+
return color.bg_fill_primary_hover;
|
34207
34218
|
}, function (_ref48) {
|
34208
34219
|
var color = _ref48.theme.color;
|
34209
|
-
return color.
|
34220
|
+
return color.bg_fill_primary_hover;
|
34221
|
+
}, function (_ref49) {
|
34222
|
+
var color = _ref49.theme.color;
|
34223
|
+
return color.text_secondary;
|
34224
|
+
}, function (_ref50) {
|
34225
|
+
var color = _ref50.theme.color;
|
34226
|
+
return color.text_primary;
|
34210
34227
|
});
|
34211
34228
|
var getDateText = function getDateText(props) {
|
34212
34229
|
var value = props.value,
|
@@ -34695,7 +34712,7 @@ var ClearIndicator = function ClearIndicator(_ref) {
|
|
34695
34712
|
height: "18px",
|
34696
34713
|
viewBox: ic.viewBox,
|
34697
34714
|
style: {
|
34698
|
-
color: color.
|
34715
|
+
color: color.icon,
|
34699
34716
|
cursor: 'pointer'
|
34700
34717
|
}
|
34701
34718
|
}, innerProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("use", {
|
@@ -34945,7 +34962,7 @@ var DropdownIndicator = function DropdownIndicator(_ref) {
|
|
34945
34962
|
height: "18px",
|
34946
34963
|
viewBox: ic.viewBox,
|
34947
34964
|
style: {
|
34948
|
-
color: color.
|
34965
|
+
color: isDisabled ? color.icon_disabled : color.icon,
|
34949
34966
|
cursor: isDisabled ? 'default' : 'pointer'
|
34950
34967
|
}
|
34951
34968
|
}, innerProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("use", {
|
@@ -35128,8 +35145,8 @@ var StyledItem = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_menu_
|
|
35128
35145
|
var selected = _ref.selected,
|
35129
35146
|
$focused = _ref.$focused,
|
35130
35147
|
color = _ref.theme.color;
|
35131
|
-
if (selected) return color.
|
35132
|
-
if ($focused) return color.
|
35148
|
+
if (selected) return color.bg_fill_primary_secondary;
|
35149
|
+
if ($focused) return color.bg_fill_secondary;
|
35133
35150
|
});
|
35134
35151
|
|
35135
35152
|
/***/ }),
|
@@ -35173,14 +35190,20 @@ var useStyles = function useStyles(_ref) {
|
|
35173
35190
|
var styles = _ref.styles,
|
35174
35191
|
size = _ref.size,
|
35175
35192
|
menuPortalTarget = _ref.menuPortalTarget;
|
35176
|
-
var
|
35177
|
-
|
35178
|
-
spacing =
|
35179
|
-
|
35180
|
-
|
35181
|
-
|
35182
|
-
|
35183
|
-
|
35193
|
+
var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.useTheme)();
|
35194
|
+
var color = theme.color,
|
35195
|
+
spacing = theme.spacing,
|
35196
|
+
font_size = theme.font_size,
|
35197
|
+
font_weight = theme.font_weight,
|
35198
|
+
font_family = theme.font_family,
|
35199
|
+
shadow = theme.shadow;
|
35200
|
+
var labelSm = {
|
35201
|
+
fontFamily: font_family.sans,
|
35202
|
+
fontStyle: 'normal',
|
35203
|
+
fontWeight: font_weight.regular,
|
35204
|
+
fontSize: font_size.sm,
|
35205
|
+
lineHeight: 'normal' // line_height.none,
|
35206
|
+
};
|
35184
35207
|
return (0,react__WEBPACK_IMPORTED_MODULE_0__.useMemo)(function () {
|
35185
35208
|
return (0,_util_with_user_styles__WEBPACK_IMPORTED_MODULE_5__.withUserStyles)(styles, {
|
35186
35209
|
control: function control(baseStyles, _ref2) {
|
@@ -35192,29 +35215,26 @@ var useStyles = function useStyles(_ref) {
|
|
35192
35215
|
md: 40,
|
35193
35216
|
lg: 48
|
35194
35217
|
};
|
35195
|
-
var borderColor = color.
|
35218
|
+
var borderColor = color.border;
|
35196
35219
|
var boxShadow = 'none';
|
35197
|
-
var foreColor = color.
|
35198
|
-
var backgroundColor = color.
|
35220
|
+
var foreColor = color.text_teritary;
|
35221
|
+
var backgroundColor = color.bg;
|
35199
35222
|
var cursor = 'text';
|
35200
35223
|
if (isDisabled) {
|
35201
|
-
foreColor = color.
|
35202
|
-
borderColor = color.
|
35203
|
-
backgroundColor = color.
|
35224
|
+
foreColor = color.text_disabled;
|
35225
|
+
borderColor = color.border_disabled;
|
35226
|
+
backgroundColor = color.bg_fill_teritary;
|
35204
35227
|
cursor = 'default';
|
35205
|
-
} else if (selectProps['aria-invalid']) borderColor = color.
|
35206
|
-
borderColor = color.
|
35207
|
-
boxShadow =
|
35228
|
+
} else if (selectProps['aria-invalid']) borderColor = color.border_error;else if (isFocused) {
|
35229
|
+
borderColor = color.border_primary;
|
35230
|
+
boxShadow = shadow.primary;
|
35208
35231
|
}
|
35209
|
-
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
35232
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), labelSm), {}, {
|
35233
|
+
'&:hover': _objectSpread(_objectSpread({}, baseStyles['&:hover']), {}, {
|
35234
|
+
borderColor: color.border_accent
|
35235
|
+
}),
|
35210
35236
|
minHeight: (0,_utils__WEBPACK_IMPORTED_MODULE_2__.toPixel)(height[size] || height.sm),
|
35211
35237
|
padding: "".concat(_shared__WEBPACK_IMPORTED_MODULE_4__.inputVerticalPadding, "px ").concat(_shared__WEBPACK_IMPORTED_MODULE_4__.inputHorizontalPadding, "px"),
|
35212
|
-
/* Label/sm */
|
35213
|
-
fontFamily: font_family.sans,
|
35214
|
-
fontStyle: 'normal',
|
35215
|
-
fontWeight: font_weight.regular,
|
35216
|
-
fontSize: font_size.sm,
|
35217
|
-
lineHeight: line_height.none,
|
35218
35238
|
color: foreColor,
|
35219
35239
|
backgroundColor: backgroundColor,
|
35220
35240
|
borderColor: borderColor,
|
@@ -35229,7 +35249,7 @@ var useStyles = function useStyles(_ref) {
|
|
35229
35249
|
},
|
35230
35250
|
placeholder: function placeholder(baseStyles) {
|
35231
35251
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
35232
|
-
color: color.
|
35252
|
+
color: color.text_quaternary
|
35233
35253
|
});
|
35234
35254
|
},
|
35235
35255
|
indicatorsContainer: function indicatorsContainer(baseStyles) {
|
@@ -35245,9 +35265,9 @@ var useStyles = function useStyles(_ref) {
|
|
35245
35265
|
minWidth: 'fit-content',
|
35246
35266
|
maxWidth: '540px',
|
35247
35267
|
width: '100%',
|
35248
|
-
backgroundColor: color.
|
35268
|
+
backgroundColor: color.bg_elevated,
|
35249
35269
|
borderRadius: spacing['02'],
|
35250
|
-
boxShadow:
|
35270
|
+
boxShadow: shadow.medium,
|
35251
35271
|
zIndex: menuPortalTarget ? baseStyles.zIndex : _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.dropdown
|
35252
35272
|
});
|
35253
35273
|
},
|
@@ -35256,45 +35276,49 @@ var useStyles = function useStyles(_ref) {
|
|
35256
35276
|
zIndex: _constants__WEBPACK_IMPORTED_MODULE_3__.Z_INDEX.dropdown
|
35257
35277
|
});
|
35258
35278
|
},
|
35279
|
+
singleValue: function singleValue(baseStyles) {
|
35280
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), labelSm), {}, {
|
35281
|
+
color: color.text
|
35282
|
+
});
|
35283
|
+
},
|
35259
35284
|
multiValue: function multiValue(baseStyles) {
|
35260
35285
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
35261
|
-
backgroundColor: color.
|
35262
|
-
|
35286
|
+
backgroundColor: color.bg,
|
35287
|
+
border: "1px solid ".concat(color.border),
|
35288
|
+
borderRadius: '4px'
|
35263
35289
|
});
|
35264
35290
|
},
|
35265
35291
|
multiValueLabel: function multiValueLabel(baseStyles) {
|
35266
|
-
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
35267
|
-
|
35268
|
-
fontFamily: font_family.sans,
|
35269
|
-
fontStyle: 'normal',
|
35270
|
-
fontWeight: font_weight.regular,
|
35271
|
-
fontSize: font_size.sm,
|
35272
|
-
lineHeight: line_height.none,
|
35273
|
-
color: color.gray_11_25,
|
35292
|
+
return _objectSpread(_objectSpread(_objectSpread({}, baseStyles), labelSm), {}, {
|
35293
|
+
color: color.text,
|
35274
35294
|
paddingLeft: spacing['02'],
|
35275
35295
|
paddingRight: spacing['00']
|
35276
35296
|
});
|
35277
35297
|
},
|
35278
35298
|
multiValueRemove: function multiValueRemove(baseStyles) {
|
35279
35299
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
35280
|
-
borderRadius:
|
35281
|
-
color: color.gray_11,
|
35300
|
+
borderRadius: '16px',
|
35282
35301
|
cursor: 'pointer',
|
35302
|
+
backgroundColor: color.icon_button_bg,
|
35303
|
+
color: color.icon_button_icon_default,
|
35304
|
+
':active': {
|
35305
|
+
color: color.icon_button_icon_active,
|
35306
|
+
backgroundColor: color.icon_button_bg_active
|
35307
|
+
},
|
35283
35308
|
':hover': {
|
35284
|
-
|
35285
|
-
|
35309
|
+
color: color.icon_button_icon_hover,
|
35310
|
+
backgroundColor: color.icon_button_bg_hover
|
35286
35311
|
}
|
35287
35312
|
});
|
35288
35313
|
},
|
35289
|
-
option: function option(baseStyles,
|
35290
|
-
var
|
35291
|
-
if (state.selected) backgroundColor = color.blue_3;
|
35314
|
+
option: function option(baseStyles, _ref3) {
|
35315
|
+
var selected = _ref3.selected;
|
35292
35316
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
35293
|
-
backgroundColor: backgroundColor
|
35317
|
+
backgroundColor: selected ? color.bg_fill_primary_secondary : baseStyles.backgroundColor
|
35294
35318
|
});
|
35295
35319
|
}
|
35296
35320
|
});
|
35297
|
-
}, [styles, size, menuPortalTarget,
|
35321
|
+
}, [styles, size, menuPortalTarget, theme]);
|
35298
35322
|
};
|
35299
35323
|
|
35300
35324
|
/***/ }),
|
@@ -35449,7 +35473,6 @@ var isValueChild = function isValueChild(child) {
|
|
35449
35473
|
"use strict";
|
35450
35474
|
__webpack_require__.r(__webpack_exports__);
|
35451
35475
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
35452
|
-
/* harmony export */ ERROR_COLOR: () => (/* binding */ ERROR_COLOR),
|
35453
35476
|
/* harmony export */ FILE_STATUS: () => (/* binding */ FILE_STATUS)
|
35454
35477
|
/* harmony export */ });
|
35455
35478
|
// LICENSE_CODE ZON
|
@@ -35462,7 +35485,6 @@ var FILE_STATUS = {
|
|
35462
35485
|
SUCCESS: 'success',
|
35463
35486
|
ERROR: 'error'
|
35464
35487
|
};
|
35465
|
-
var ERROR_COLOR = 'red_10';
|
35466
35488
|
|
35467
35489
|
/***/ }),
|
35468
35490
|
|
@@ -35627,11 +35649,16 @@ var border = function border(color) {
|
|
35627
35649
|
var UploadBaseContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
35628
35650
|
displayName: "UploadBaseContainer",
|
35629
35651
|
componentId: "sc-1e3miai-0"
|
35630
|
-
})(["background-image:", ";&:hover{cursor:pointer;}border-radius:4px;"], function (_ref) {
|
35652
|
+
})(["background-image:", ";background-color:", ";&:hover{cursor:pointer;}border-radius:4px;"], function (_ref) {
|
35631
35653
|
var $isHovered = _ref.$isHovered,
|
35632
35654
|
$invalid = _ref.$invalid,
|
35633
35655
|
color = _ref.theme.color;
|
35634
|
-
return border($invalid ? color.
|
35656
|
+
return border($invalid ? color.border_error : $isHovered ? color.border_primary : color.border);
|
35657
|
+
}, function (_ref2) {
|
35658
|
+
var $isHovered = _ref2.$isHovered,
|
35659
|
+
$invalid = _ref2.$invalid,
|
35660
|
+
color = _ref2.theme.color;
|
35661
|
+
return $invalid ? color.bg : $isHovered ? color.bg_fill_primary_secondary : color.bg;
|
35635
35662
|
});
|
35636
35663
|
var UploadBase = function UploadBase(props) {
|
35637
35664
|
var label = props.label,
|
@@ -35704,14 +35731,14 @@ var UploadBase = function UploadBase(props) {
|
|
35704
35731
|
gap: "02"
|
35705
35732
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_5__.Icon, {
|
35706
35733
|
name: "Upload",
|
35707
|
-
color: "
|
35734
|
+
color: "link_primary",
|
35708
35735
|
size: "xs"
|
35709
35736
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
35710
|
-
color: "
|
35737
|
+
color: "link_primary"
|
35711
35738
|
}, "Upload file")), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
35712
|
-
color: "
|
35739
|
+
color: "text_quaternary"
|
35713
35740
|
}, "or drag and drop")), label && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
35714
|
-
color: "
|
35741
|
+
color: "text_disabled"
|
35715
35742
|
}, label)));
|
35716
35743
|
};
|
35717
35744
|
UploadBase.displayName = 'UploadBase';
|
@@ -35776,7 +35803,7 @@ var UploadItemContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default
|
|
35776
35803
|
})(["border:1px solid ", ";border-radius:4px;"], function (_ref) {
|
35777
35804
|
var $error = _ref.$error,
|
35778
35805
|
color = _ref.theme.color;
|
35779
|
-
return $error ? color
|
35806
|
+
return $error ? color.border_error : color.border_secondary;
|
35780
35807
|
});
|
35781
35808
|
var InfoContainer = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_layout__WEBPACK_IMPORTED_MODULE_3__.Flex).attrs({
|
35782
35809
|
flex_direction: 'column',
|
@@ -35812,7 +35839,7 @@ var UploadItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().memo(
|
|
35812
35839
|
status: status
|
35813
35840
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(InfoContainer, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_4__.Label, {
|
35814
35841
|
variant: "sm_medium",
|
35815
|
-
color: "
|
35842
|
+
color: "text"
|
35816
35843
|
}, fileInfoFormatter(props)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_upload_item_state__WEBPACK_IMPORTED_MODULE_7__.UploadItemState, {
|
35817
35844
|
status: status,
|
35818
35845
|
antiVirusScanText: antiVirusScanText,
|
@@ -35821,8 +35848,7 @@ var UploadItem = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().memo(
|
|
35821
35848
|
error: error
|
35822
35849
|
}))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_2___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
|
35823
35850
|
icon: "Trash",
|
35824
|
-
|
35825
|
-
size: "md",
|
35851
|
+
size: "xs",
|
35826
35852
|
onClick: onDelete
|
35827
35853
|
}));
|
35828
35854
|
});
|
@@ -35876,14 +35902,14 @@ var UploadItemIcon = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().m
|
|
35876
35902
|
if (icon) return icon;
|
35877
35903
|
var iconProps = {
|
35878
35904
|
size: 'sm',
|
35879
|
-
color: '
|
35905
|
+
color: 'icon_primary'
|
35880
35906
|
};
|
35881
35907
|
if (status == _constants__WEBPACK_IMPORTED_MODULE_3__.FILE_STATUS.UPLOADING) iconProps.name = 'Spinner2';else if (status == _constants__WEBPACK_IMPORTED_MODULE_3__.FILE_STATUS.SCANNING) iconProps.name = 'Spinner';else if (status == _constants__WEBPACK_IMPORTED_MODULE_3__.FILE_STATUS.SUCCESS) {
|
35882
35908
|
iconProps.name = 'Document';
|
35883
|
-
iconProps.color = '
|
35909
|
+
iconProps.color = 'icon';
|
35884
35910
|
} else if (status == _constants__WEBPACK_IMPORTED_MODULE_3__.FILE_STATUS.ERROR) {
|
35885
35911
|
iconProps.name = 'Warning';
|
35886
|
-
iconProps.color =
|
35912
|
+
iconProps.color = 'icon_error';
|
35887
35913
|
}
|
35888
35914
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_2__.Icon, iconProps);
|
35889
35915
|
});
|
@@ -35938,18 +35964,22 @@ var UploadItemState = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().
|
|
35938
35964
|
if (status == _constants__WEBPACK_IMPORTED_MODULE_4__.FILE_STATUS.UPLOADING) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_progress__WEBPACK_IMPORTED_MODULE_3__.ProgressBar, {
|
35939
35965
|
progress: progress
|
35940
35966
|
});
|
35941
|
-
if (status == _constants__WEBPACK_IMPORTED_MODULE_4__.FILE_STATUS.SUCCESS)
|
35942
|
-
|
35943
|
-
|
35944
|
-
|
35967
|
+
if (status == _constants__WEBPACK_IMPORTED_MODULE_4__.FILE_STATUS.SUCCESS) {
|
35968
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_2__.Label, {
|
35969
|
+
variant: "xs",
|
35970
|
+
color: "text_quaternary"
|
35971
|
+
}, formatBytes(size));
|
35972
|
+
}
|
35945
35973
|
if (status == _constants__WEBPACK_IMPORTED_MODULE_4__.FILE_STATUS.ERROR) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_2__.Paragraph, {
|
35946
35974
|
variant: "xs",
|
35947
|
-
color:
|
35975
|
+
color: "text_error"
|
35948
35976
|
}, error);
|
35949
|
-
if (status == _constants__WEBPACK_IMPORTED_MODULE_4__.FILE_STATUS.SCANNING)
|
35950
|
-
|
35951
|
-
|
35952
|
-
|
35977
|
+
if (status == _constants__WEBPACK_IMPORTED_MODULE_4__.FILE_STATUS.SCANNING) {
|
35978
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_2__.Label, {
|
35979
|
+
variant: "xs",
|
35980
|
+
color: "text_quaternary"
|
35981
|
+
}, antiVirusScanText);
|
35982
|
+
}
|
35953
35983
|
return null;
|
35954
35984
|
});
|
35955
35985
|
UploadItemState.displayName = 'UploadItemState';
|
@@ -36188,7 +36218,7 @@ var NumberField = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
36188
36218
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
36189
36219
|
name: "ChevronUp",
|
36190
36220
|
size: "xxs",
|
36191
|
-
color: "
|
36221
|
+
color: "icon"
|
36192
36222
|
})), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
36193
36223
|
className: "down",
|
36194
36224
|
onClick: stepDown,
|
@@ -36198,7 +36228,7 @@ var NumberField = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().forw
|
|
36198
36228
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
36199
36229
|
name: "ChevronDown",
|
36200
36230
|
size: "xxs",
|
36201
|
-
color: "
|
36231
|
+
color: "icon"
|
36202
36232
|
}))));
|
36203
36233
|
});
|
36204
36234
|
NumberField.displayName = 'NumberField';
|
@@ -36218,19 +36248,19 @@ var Buttons = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withC
|
|
36218
36248
|
componentId: "sc-13mfzjc-2"
|
36219
36249
|
})(["position:absolute;top:0;right:0;display:flex;flex-direction:column;border-top-right-radius:4px;border-bottom-right-radius:4px;height:100%;div[role=\"button\"]{box-sizing:border-box;min-height:0;height:50%;background:", ";border-left:1px solid ", ";padding:2px 4px;display:flex;align-items:center;cursor:pointer;&.up{border-top-right-radius:4px;}&.down{border-bottom-right-radius:4px;border-top:1px solid ", ";}&:hover{background:", ";svg{color:", ";}}}"], function (_ref2) {
|
36220
36250
|
var color = _ref2.theme.color;
|
36221
|
-
return color.
|
36251
|
+
return color.bg;
|
36222
36252
|
}, function (_ref3) {
|
36223
36253
|
var color = _ref3.theme.color;
|
36224
|
-
return color.
|
36254
|
+
return color.border;
|
36225
36255
|
}, function (_ref4) {
|
36226
36256
|
var color = _ref4.theme.color;
|
36227
|
-
return color.
|
36257
|
+
return color.border;
|
36228
36258
|
}, function (_ref5) {
|
36229
36259
|
var color = _ref5.theme.color;
|
36230
|
-
return color.
|
36260
|
+
return color.bg_fill_secondary;
|
36231
36261
|
}, function (_ref6) {
|
36232
36262
|
var color = _ref6.theme.color;
|
36233
|
-
return color.
|
36263
|
+
return color.icon_accent;
|
36234
36264
|
});
|
36235
36265
|
|
36236
36266
|
/***/ }),
|
@@ -36337,11 +36367,11 @@ var CountrySelect = function CountrySelect(_ref) {
|
|
36337
36367
|
var countryCallingCode = _getCountryCallingCode(opt);
|
36338
36368
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(Option, null, _getCountryFlag(opt), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
36339
36369
|
variant: "sm",
|
36340
|
-
color: "
|
36370
|
+
color: "text",
|
36341
36371
|
no_wrap: true
|
36342
36372
|
}, _getCountryLabel(opt)), !!countryCallingCode && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
36343
36373
|
variant: "sm",
|
36344
|
-
color: "
|
36374
|
+
color: "text_teritary"
|
36345
36375
|
}, "+", countryCallingCode));
|
36346
36376
|
}, [_getCountryLabel, _getCountryCallingCode, _getCountryFlag]);
|
36347
36377
|
var filterOption = (0,react__WEBPACK_IMPORTED_MODULE_1__.useCallback)(function (_ref3, inputValue) {
|
@@ -36442,7 +36472,7 @@ var DropdownIndicator = function DropdownIndicator(_ref6) {
|
|
36442
36472
|
height: "12px",
|
36443
36473
|
viewBox: ic.viewBox,
|
36444
36474
|
style: {
|
36445
|
-
color: color.
|
36475
|
+
color: color.icon,
|
36446
36476
|
cursor: isDisabled ? 'default' : 'pointer'
|
36447
36477
|
}
|
36448
36478
|
}, innerProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement("use", {
|
@@ -36505,13 +36535,13 @@ var SearchInput = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forw
|
|
36505
36535
|
var SearchIcon = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
36506
36536
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_6__.Icon, {
|
36507
36537
|
name: "Search",
|
36508
|
-
color: "
|
36538
|
+
color: "icon",
|
36509
36539
|
size: size == 'lg' ? 'sm' : 'xs'
|
36510
36540
|
});
|
36511
36541
|
}, [size]);
|
36512
36542
|
var ClearButton = (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
36513
36543
|
return !!val && !disabled && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_7__.IconButton, {
|
36514
|
-
|
36544
|
+
size: "xs",
|
36515
36545
|
icon: "Close",
|
36516
36546
|
onClick: reset
|
36517
36547
|
});
|
@@ -36549,7 +36579,7 @@ var useStyles = function useStyles(size) {
|
|
36549
36579
|
font_size = _useTheme2.font_size,
|
36550
36580
|
line_height = _useTheme2.line_height,
|
36551
36581
|
color = _useTheme2.color,
|
36552
|
-
|
36582
|
+
shadow = _useTheme2.shadow;
|
36553
36583
|
return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
36554
36584
|
return {
|
36555
36585
|
control: function control(baseStyles, _ref10) {
|
@@ -36564,9 +36594,9 @@ var useStyles = function useStyles(size) {
|
|
36564
36594
|
fontWeight: font_weight.regular,
|
36565
36595
|
fontSize: font_size.sm,
|
36566
36596
|
lineHeight: line_height.none,
|
36567
|
-
color: isDisabled ? color.
|
36568
|
-
backgroundColor: color.
|
36569
|
-
borderColor: isDisabled ? color.
|
36597
|
+
color: isDisabled ? color.text_disabled : color.text_teritary,
|
36598
|
+
backgroundColor: isDisabled ? color.bg_fill_teritary : color.bg,
|
36599
|
+
borderColor: isDisabled ? color.border_disabled : color.border,
|
36570
36600
|
cursor: isDisabled ? 'default' : 'text',
|
36571
36601
|
borderRight: '0 none',
|
36572
36602
|
borderTopRightRadius: '0',
|
@@ -36587,9 +36617,27 @@ var useStyles = function useStyles(size) {
|
|
36587
36617
|
minWidth: '240px',
|
36588
36618
|
width: 'fit-content',
|
36589
36619
|
maxWidth: '540px',
|
36590
|
-
backgroundColor: color.
|
36620
|
+
backgroundColor: color.bg_elevated,
|
36591
36621
|
borderRadius: '4px',
|
36592
|
-
boxShadow:
|
36622
|
+
boxShadow: shadow.medium
|
36623
|
+
});
|
36624
|
+
},
|
36625
|
+
menuList: function menuList(baseStyles) {
|
36626
|
+
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
36627
|
+
overflowX: 'hidden',
|
36628
|
+
scrollbarColor: '#FFFFFF #DFE3E6',
|
36629
|
+
scrollbarWidth: 'thin',
|
36630
|
+
'&::-webkit-scrollbar': {
|
36631
|
+
width: '4px',
|
36632
|
+
height: '4px'
|
36633
|
+
},
|
36634
|
+
'&::-webkit-scrollbar-track': {
|
36635
|
+
backgroundColor: '#FFFFFF'
|
36636
|
+
},
|
36637
|
+
'&::-webkit-scrollbar-thumb': {
|
36638
|
+
backgroundColor: '#DFE3E6',
|
36639
|
+
borderRadius: '2px'
|
36640
|
+
}
|
36593
36641
|
});
|
36594
36642
|
},
|
36595
36643
|
menuPortal: function menuPortal(baseStyles) {
|
@@ -36598,13 +36646,18 @@ var useStyles = function useStyles(size) {
|
|
36598
36646
|
});
|
36599
36647
|
},
|
36600
36648
|
option: function option(baseStyles, _ref11) {
|
36601
|
-
var
|
36649
|
+
var isFocused = _ref11.isFocused,
|
36650
|
+
isDisabled = _ref11.isDisabled;
|
36602
36651
|
return _objectSpread(_objectSpread({}, baseStyles), {}, {
|
36603
|
-
backgroundColor:
|
36652
|
+
backgroundColor: isFocused ? color.bg_fill_secondary : undefined,
|
36653
|
+
color: isDisabled ? color.text_disabled : color.text_teritary,
|
36654
|
+
'&:hover': {
|
36655
|
+
backgroundColor: color.bg_fill_secondary
|
36656
|
+
}
|
36604
36657
|
});
|
36605
36658
|
}
|
36606
36659
|
};
|
36607
|
-
}, [size, font_family, font_weight, font_size, line_height, color,
|
36660
|
+
}, [size, font_family, font_weight, font_size, line_height, color, shadow]);
|
36608
36661
|
};
|
36609
36662
|
var getHeight = function getHeight(size) {
|
36610
36663
|
var height = {
|
@@ -36902,24 +36955,26 @@ var RadioControl = styled_components__WEBPACK_IMPORTED_MODULE_0___default().div.
|
|
36902
36955
|
var backgroundColor, hoverBackgroundColor, activeBackgroundColor;
|
36903
36956
|
var beforeColor, hoverBeforeColor, activeBeforeColor;
|
36904
36957
|
if (disabled) {
|
36905
|
-
borderColor = hoverBorderColor = activeBorderColor = color.
|
36958
|
+
borderColor = hoverBorderColor = activeBorderColor = color.border_disabled;
|
36906
36959
|
backgroundColor = hoverBackgroundColor = activeBackgroundColor = color.white;
|
36907
|
-
if (checked)
|
36960
|
+
if (checked) {
|
36961
|
+
beforeColor = hoverBeforeColor = activeBeforeColor = color.border_accent;
|
36962
|
+
}
|
36908
36963
|
} else {
|
36909
36964
|
if (checked) {
|
36910
|
-
borderColor = activeBorderColor = color.
|
36965
|
+
borderColor = activeBorderColor = color.bg_fill_primary;
|
36911
36966
|
backgroundColor = hoverBackgroundColor = activeBackgroundColor = color.white;
|
36912
|
-
beforeColor = activeBeforeColor = color.
|
36913
|
-
hoverBorderColor = color.
|
36967
|
+
beforeColor = activeBeforeColor = color.bg_fill_primary;
|
36968
|
+
hoverBorderColor = color.bg_fill_primary_hover;
|
36914
36969
|
hoverBackgroundColor = color.white;
|
36915
|
-
hoverBeforeColor = color.
|
36916
|
-
activeOutlineColor = color.
|
36970
|
+
hoverBeforeColor = color.bg_fill_primary_hover;
|
36971
|
+
activeOutlineColor = color.bg_fill_primary;
|
36917
36972
|
} else {
|
36918
|
-
borderColor = color.
|
36973
|
+
borderColor = color.border_accent;
|
36919
36974
|
backgroundColor = activeBackgroundColor = color.white;
|
36920
|
-
hoverBorderColor = color.
|
36921
|
-
hoverBackgroundColor = color.
|
36922
|
-
activeBorderColor = color.
|
36975
|
+
hoverBorderColor = color.border_accent;
|
36976
|
+
hoverBackgroundColor = color.bg_fill_secondary;
|
36977
|
+
activeBorderColor = color.icon_primary;
|
36923
36978
|
}
|
36924
36979
|
}
|
36925
36980
|
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);
|
@@ -37134,7 +37189,7 @@ var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().forwardRef
|
|
37134
37189
|
}),
|
37135
37190
|
variant: "sm",
|
37136
37191
|
id: labelId,
|
37137
|
-
color: disabled ? '
|
37192
|
+
color: disabled ? 'text_disabled' : 'text'
|
37138
37193
|
}, label)));
|
37139
37194
|
});
|
37140
37195
|
Radio.displayName = 'Radio';
|
@@ -37201,16 +37256,16 @@ var RadioTabStyled = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_r
|
|
37201
37256
|
componentId: "sc-1cp95by-0"
|
37202
37257
|
})(["", "{gap:0;border:1px solid ", ";border-radius:", ";}", "{padding:12px;border-bottom:1px solid ", ";&:hover{background-color:", ";}&:last-child{border:none;}}"], _common__WEBPACK_IMPORTED_MODULE_7__.GroupWrapper, function (_ref) {
|
37203
37258
|
var color = _ref.theme.color;
|
37204
|
-
return color.
|
37259
|
+
return color.border;
|
37205
37260
|
}, function (_ref2) {
|
37206
37261
|
var $rounded = _ref2.$rounded;
|
37207
37262
|
return $rounded ? '4px' : '0';
|
37208
37263
|
}, _common__WEBPACK_IMPORTED_MODULE_7__.RadioWrapper, function (_ref3) {
|
37209
37264
|
var color = _ref3.theme.color;
|
37210
|
-
return color.
|
37265
|
+
return color.border;
|
37211
37266
|
}, function (_ref4) {
|
37212
37267
|
var color = _ref4.theme.color;
|
37213
|
-
return color.
|
37268
|
+
return color.bg_fill;
|
37214
37269
|
});
|
37215
37270
|
var Img = styled_components__WEBPACK_IMPORTED_MODULE_2___default().img.withConfig({
|
37216
37271
|
displayName: "Img",
|
@@ -37236,15 +37291,15 @@ var RadioTabLabel = function RadioTabLabel(props) {
|
|
37236
37291
|
align_items: "center"
|
37237
37292
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
37238
37293
|
variant: "lg",
|
37239
|
-
color: disabled ? '
|
37294
|
+
color: disabled ? 'text_disabled' : 'text'
|
37240
37295
|
}, label), tag && tagVariant == 'badge' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_badge__WEBPACK_IMPORTED_MODULE_5__.Badge, {
|
37241
37296
|
variant: "positive"
|
37242
37297
|
}, tag) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
37243
37298
|
variant: "sm",
|
37244
|
-
color: "
|
37299
|
+
color: "text_success"
|
37245
37300
|
}, tag)), description && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Paragraph, {
|
37246
37301
|
variant: "lg_snug",
|
37247
|
-
color: disabled ? '
|
37302
|
+
color: disabled ? 'text_disabled' : 'text_quaternary'
|
37248
37303
|
}, description)));
|
37249
37304
|
};
|
37250
37305
|
var radioTabPrefix = 'radioTab';
|
@@ -37499,10 +37554,10 @@ var Field = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input.withC
|
|
37499
37554
|
return line_height.none;
|
37500
37555
|
}, function (_ref5) {
|
37501
37556
|
var color = _ref5.theme.color;
|
37502
|
-
return color.
|
37557
|
+
return color.text;
|
37503
37558
|
}, function (_ref6) {
|
37504
37559
|
var color = _ref6.theme.color;
|
37505
|
-
return color.
|
37560
|
+
return color.text_quaternary;
|
37506
37561
|
});
|
37507
37562
|
var InputLabel = function InputLabel(_ref7) {
|
37508
37563
|
var className = _ref7.className,
|
@@ -37529,7 +37584,7 @@ var InputLabel = function InputLabel(_ref7) {
|
|
37529
37584
|
id: id,
|
37530
37585
|
"data-role": "label",
|
37531
37586
|
variant: variant,
|
37532
|
-
color: "
|
37587
|
+
color: "text_secondary"
|
37533
37588
|
}, t(label), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(NecessityIndicator, {
|
37534
37589
|
required: required,
|
37535
37590
|
indicator: necessityIndicator
|
@@ -37542,7 +37597,7 @@ var InputLabel = function InputLabel(_ref7) {
|
|
37542
37597
|
}),
|
37543
37598
|
name: labelIcon,
|
37544
37599
|
size: "xs",
|
37545
|
-
color: "
|
37600
|
+
color: "icon"
|
37546
37601
|
})));
|
37547
37602
|
};
|
37548
37603
|
InputLabel.propTypes = {
|
@@ -37572,7 +37627,7 @@ var Indicator = styled_components__WEBPACK_IMPORTED_MODULE_2___default().span.wi
|
|
37572
37627
|
componentId: "sc-r60v1b-2"
|
37573
37628
|
})(["color:", ";margin-left:", ";"], function (_ref9) {
|
37574
37629
|
var color = _ref9.theme.color;
|
37575
|
-
return color.
|
37630
|
+
return color.text_disabled;
|
37576
37631
|
}, function (_ref10) {
|
37577
37632
|
var spacing = _ref10.theme.spacing;
|
37578
37633
|
return spacing['02'];
|
@@ -37580,7 +37635,7 @@ var Indicator = styled_components__WEBPACK_IMPORTED_MODULE_2___default().span.wi
|
|
37580
37635
|
var Asterisk = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(_typography__WEBPACK_IMPORTED_MODULE_8__.Label).attrs({
|
37581
37636
|
tag: 'span',
|
37582
37637
|
variant: 'xs',
|
37583
|
-
color: '
|
37638
|
+
color: 'border_error',
|
37584
37639
|
children: '*'
|
37585
37640
|
}).withConfig({
|
37586
37641
|
displayName: "Asterisk",
|
@@ -37609,9 +37664,9 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
37609
37664
|
})(["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:", ";", " ", ""], function (_ref12) {
|
37610
37665
|
var font_family = _ref12.theme.font_family;
|
37611
37666
|
return font_family.sans;
|
37612
|
-
}, inputVerticalPadding, inputHorizontalPadding, function (
|
37613
|
-
var
|
37614
|
-
return
|
37667
|
+
}, inputVerticalPadding, inputHorizontalPadding, function (_ref13) {
|
37668
|
+
var $verticalAlign = _ref13.$verticalAlign;
|
37669
|
+
return $verticalAlign !== null && $verticalAlign !== void 0 ? $verticalAlign : 'normal';
|
37615
37670
|
}, function (props) {
|
37616
37671
|
return props.$leftOuterContent ? '0' : '4px';
|
37617
37672
|
}, function (props) {
|
@@ -37623,28 +37678,34 @@ var InputWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.
|
|
37623
37678
|
}, function (props) {
|
37624
37679
|
var _props$$heightCalcula;
|
37625
37680
|
return (_props$$heightCalcula = props.$heightCalculationCallback) === null || _props$$heightCalcula === void 0 ? void 0 : _props$$heightCalcula.call(props);
|
37626
|
-
}, function (
|
37627
|
-
var
|
37681
|
+
}, function (_ref14) {
|
37682
|
+
var $disabled = _ref14.$disabled,
|
37683
|
+
$invalid = _ref14.$invalid,
|
37684
|
+
$active = _ref14.$active,
|
37685
|
+
_ref14$theme = _ref14.theme,
|
37686
|
+
color = _ref14$theme.color,
|
37687
|
+
shadow = _ref14$theme.shadow;
|
37688
|
+
var borderColor = color.border;
|
37628
37689
|
var boxShadow = 'none';
|
37629
|
-
var
|
37630
|
-
var backgroundColor =
|
37690
|
+
var foreColor = color.text;
|
37691
|
+
var backgroundColor = color.bg;
|
37631
37692
|
var cursor = 'text';
|
37632
|
-
if (
|
37633
|
-
|
37634
|
-
borderColor =
|
37635
|
-
backgroundColor =
|
37693
|
+
if ($disabled) {
|
37694
|
+
foreColor = color.text_disabled;
|
37695
|
+
borderColor = color.border_disabled;
|
37696
|
+
backgroundColor = color.bg_fill_teritary;
|
37636
37697
|
cursor = 'default';
|
37637
|
-
} else if (
|
37638
|
-
borderColor =
|
37639
|
-
boxShadow =
|
37698
|
+
} else if ($invalid) borderColor = color.border_error;else if ($active) {
|
37699
|
+
borderColor = color.border_primary;
|
37700
|
+
boxShadow = shadow.primary;
|
37640
37701
|
}
|
37641
|
-
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:", ";background-color:", ";border-color:", ";color:", ";box-shadow:", ";"], cursor, backgroundColor, borderColor,
|
37702
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:", ";background-color:", ";border-color:", ";color:", ";box-shadow:", ";"], cursor, backgroundColor, borderColor, foreColor, boxShadow);
|
37642
37703
|
});
|
37643
37704
|
var HelperText = function HelperText(props) {
|
37644
37705
|
var children = props.children,
|
37645
37706
|
invalid = props.invalid;
|
37646
37707
|
if (!children) return null;
|
37647
|
-
var color = invalid ? '
|
37708
|
+
var color = invalid ? 'text_error' : 'text_quaternary';
|
37648
37709
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
|
37649
37710
|
"data-role": "description",
|
37650
37711
|
variant: "xs",
|
@@ -37761,7 +37822,7 @@ Textarea.displayName = 'Textarea';
|
|
37761
37822
|
var Area = styled_components__WEBPACK_IMPORTED_MODULE_2___default().textarea.withConfig({
|
37762
37823
|
displayName: "Area",
|
37763
37824
|
componentId: "sc-1qhmytd-0"
|
37764
|
-
})(["padding:0;outline:none;border:0;flex-grow:1;width:100%;color:inherit;resize:none;background:inherit;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", "
|
37825
|
+
})(["padding:0;outline:none;border:0;flex-grow:1;width:100%;color:inherit;resize:none;background:inherit;font-family:", ";font-style:normal;font-weight:", ";font-size:", ";line-height:", ";::placeholder{color:", ";}"], function (_ref2) {
|
37765
37826
|
var font_family = _ref2.theme.font_family;
|
37766
37827
|
return font_family.sans;
|
37767
37828
|
}, function (_ref3) {
|
@@ -37775,10 +37836,7 @@ var Area = styled_components__WEBPACK_IMPORTED_MODULE_2___default().textarea.wit
|
|
37775
37836
|
return line_height.none;
|
37776
37837
|
}, function (_ref6) {
|
37777
37838
|
var color = _ref6.theme.color;
|
37778
|
-
return color.
|
37779
|
-
}, function (_ref7) {
|
37780
|
-
var color = _ref7.theme.color;
|
37781
|
-
return color.gray_8;
|
37839
|
+
return color.text_quaternary;
|
37782
37840
|
});
|
37783
37841
|
|
37784
37842
|
/***/ }),
|
@@ -38078,7 +38136,7 @@ var ItemList = function ItemList(props) {
|
|
38078
38136
|
})
|
38079
38137
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
38080
38138
|
variant: "sm",
|
38081
|
-
color: "
|
38139
|
+
color: "text"
|
38082
38140
|
}, "".concat(extra, " more item").concat(extra > 1 ? 's' : '', " hidden"))));
|
38083
38141
|
};
|
38084
38142
|
var DefaultItemRenderer = function DefaultItemRenderer(props) {
|
@@ -38091,12 +38149,12 @@ var DefaultItemRenderer = function DefaultItemRenderer(props) {
|
|
38091
38149
|
role: "listitem"
|
38092
38150
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
38093
38151
|
variant: "sm",
|
38094
|
-
color: "
|
38152
|
+
color: "text"
|
38095
38153
|
}, value), showRemove && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_6__.IconButton, {
|
38096
38154
|
"data-action": "remove",
|
38097
38155
|
title: "Remove",
|
38098
38156
|
onClick: onRemove,
|
38099
|
-
|
38157
|
+
size: "xs",
|
38100
38158
|
icon: "CloseSmall"
|
38101
38159
|
}));
|
38102
38160
|
};
|
@@ -38109,7 +38167,7 @@ var ItemWithHover = styled_components__WEBPACK_IMPORTED_MODULE_2___default()(Ite
|
|
38109
38167
|
componentId: "sc-1cige3y-1"
|
38110
38168
|
})(["&:hover{background:", ";}"], function (_ref) {
|
38111
38169
|
var color = _ref.theme.color;
|
38112
|
-
return color.
|
38170
|
+
return color.bg_fill;
|
38113
38171
|
});
|
38114
38172
|
|
38115
38173
|
/***/ }),
|
@@ -38410,10 +38468,6 @@ var Toggle = function Toggle(_ref) {
|
|
38410
38468
|
var checked = evt.target.checked;
|
38411
38469
|
onChange === null || onChange === void 0 || onChange(checked, evt);
|
38412
38470
|
}, [onChange]);
|
38413
|
-
var color = getLabelColor({
|
38414
|
-
disabled: disabled,
|
38415
|
-
value: value
|
38416
|
-
});
|
38417
38471
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleLabel, _extends({}, (0,_util__WEBPACK_IMPORTED_MODULE_4__.getCommonProps)(rest), {
|
38418
38472
|
$size: size
|
38419
38473
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(ToggleInput, {
|
@@ -38425,7 +38479,7 @@ var Toggle = function Toggle(_ref) {
|
|
38425
38479
|
}), label && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
38426
38480
|
variant: "sm",
|
38427
38481
|
tag: "span",
|
38428
|
-
color:
|
38482
|
+
color: disabled ? 'text_disabled' : 'text',
|
38429
38483
|
no_wrap: true
|
38430
38484
|
}, label));
|
38431
38485
|
};
|
@@ -38445,65 +38499,49 @@ var ToggleInput = styled_components__WEBPACK_IMPORTED_MODULE_2___default().input
|
|
38445
38499
|
}).withConfig({
|
38446
38500
|
displayName: "ToggleInput",
|
38447
38501
|
componentId: "sc-14lfe6n-1"
|
38448
|
-
})(["&&{box-sizing:border-box;width:", ";height:", ";display:flex;align-items:center;margin:0;padding:0
|
38449
|
-
|
38450
|
-
|
38451
|
-
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.$size == 'xs' ? 16 : 20);
|
38452
|
-
}, function (_ref2) {
|
38453
|
-
var color = _ref2.theme.color;
|
38454
|
-
return color.gray_5;
|
38502
|
+
})(["&&{box-sizing:border-box;width:", ";height:", ";display:flex;align-items:center;margin:0;padding:0 2px;vertical-align:top;background-color:", ";border-radius:25px;outline:none;cursor:pointer;appearance:none;transition:all 0.3s cubic-bezier(0.2,0.85,0.32,1.2);&:hover:not(:disabled){background-color:", ";}&:focus{background-color:", ";outline:3px solid ", ";}&:checked{background-color:", ";&:hover{background-color:", ";}&:focus{background-color:", ";outline:3px solid ", ";}}}&::after{content:\"\";display:block;width:", ";height:", ";border-radius:50%;background-color:", ";box-shadow:0 2px 2px rgba(0,0,0,0.1);transition:all 0.3s cubic-bezier(0.2,0.85,0.32,1.2);}&:checked::after{transform:translateX(", ");}"], function (_ref2) {
|
38503
|
+
var $size = _ref2.$size;
|
38504
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)($size == 'xs' ? 32 : 44);
|
38455
38505
|
}, function (_ref3) {
|
38456
|
-
var
|
38457
|
-
return
|
38506
|
+
var $size = _ref3.$size;
|
38507
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)($size == 'xs' ? 16 : 20);
|
38458
38508
|
}, function (_ref4) {
|
38459
38509
|
var color = _ref4.theme.color;
|
38460
|
-
return color.
|
38510
|
+
return color.toggle_off_bg_default;
|
38461
38511
|
}, function (_ref5) {
|
38462
38512
|
var color = _ref5.theme.color;
|
38463
|
-
return color.
|
38513
|
+
return color.toggle_off_bg_hover;
|
38464
38514
|
}, function (_ref6) {
|
38465
38515
|
var color = _ref6.theme.color;
|
38466
|
-
return color.
|
38516
|
+
return color.toggle_off_bg_active;
|
38467
38517
|
}, function (_ref7) {
|
38468
38518
|
var color = _ref7.theme.color;
|
38469
|
-
return color.
|
38519
|
+
return color.toggle_off_border_active;
|
38470
38520
|
}, function (_ref8) {
|
38471
38521
|
var color = _ref8.theme.color;
|
38472
|
-
return color.
|
38522
|
+
return color.toggle_on_bg_default;
|
38473
38523
|
}, function (_ref9) {
|
38474
38524
|
var color = _ref9.theme.color;
|
38475
|
-
return color.
|
38525
|
+
return color.toggle_on_bg_hover;
|
38476
38526
|
}, function (_ref10) {
|
38477
38527
|
var color = _ref10.theme.color;
|
38478
|
-
return color.
|
38528
|
+
return color.toggle_on_bg_default;
|
38479
38529
|
}, function (_ref11) {
|
38480
38530
|
var color = _ref11.theme.color;
|
38481
|
-
return color.
|
38531
|
+
return color.toggle_on_border_active;
|
38482
38532
|
}, function (_ref12) {
|
38483
|
-
var
|
38484
|
-
return
|
38533
|
+
var $size = _ref12.$size;
|
38534
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)($size == 'xs' ? 12 : 16);
|
38485
38535
|
}, function (_ref13) {
|
38486
|
-
var
|
38487
|
-
return
|
38536
|
+
var $size = _ref13.$size;
|
38537
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)($size == 'xs' ? 12 : 16);
|
38488
38538
|
}, function (_ref14) {
|
38489
38539
|
var color = _ref14.theme.color;
|
38490
|
-
return color.
|
38491
|
-
}, function (props) {
|
38492
|
-
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.$size == 'xs' ? 12 : 16);
|
38493
|
-
}, function (props) {
|
38494
|
-
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.$size == 'xs' ? 12 : 16);
|
38540
|
+
return color.toggle_switch;
|
38495
38541
|
}, function (_ref15) {
|
38496
|
-
var
|
38497
|
-
return
|
38498
|
-
}, function (props) {
|
38499
|
-
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)(props.$size == 'xs' ? 15 : 23);
|
38542
|
+
var $size = _ref15.$size;
|
38543
|
+
return (0,_utils__WEBPACK_IMPORTED_MODULE_5__.toPixel)($size == 'xs' ? 16 : 24);
|
38500
38544
|
});
|
38501
|
-
var getLabelColor = function getLabelColor(props) {
|
38502
|
-
var disabled = props.disabled,
|
38503
|
-
value = props.value;
|
38504
|
-
if (disabled) return value ? 'gray-11' : 'gray-9';
|
38505
|
-
return value ? 'gray-11-50' : 'gray-11';
|
38506
|
-
};
|
38507
38545
|
|
38508
38546
|
/***/ }),
|
38509
38547
|
|
@@ -40476,15 +40514,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
40476
40514
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
40477
40515
|
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-table */ "react-table");
|
40478
40516
|
/* harmony import */ var react_table__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_table__WEBPACK_IMPORTED_MODULE_2__);
|
40479
|
-
/* harmony import */ var
|
40480
|
-
/* harmony import */ var
|
40481
|
-
/* harmony import */ var
|
40482
|
-
/* harmony import */ var
|
40483
|
-
/* harmony import */ var
|
40484
|
-
/* harmony import */ var
|
40485
|
-
/* harmony import */ var
|
40486
|
-
/* harmony import */ var
|
40487
|
-
/* harmony import */ var
|
40517
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! styled-components */ "styled-components");
|
40518
|
+
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
|
40519
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
40520
|
+
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
40521
|
+
/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../util */ "./src/util/index.js");
|
40522
|
+
/* harmony import */ var _editable_columns__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./editable_columns */ "./src/table/editable_columns.js");
|
40523
|
+
/* harmony import */ var _pinned_columns__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./pinned_columns */ "./src/table/pinned_columns.js");
|
40524
|
+
/* harmony import */ var _expandable_rows__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./expandable_rows */ "./src/table/expandable_rows.js");
|
40525
|
+
/* harmony import */ var _select_rows__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./select_rows */ "./src/table/select_rows.js");
|
40526
|
+
/* harmony import */ var _row_menu__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./row_menu */ "./src/table/row_menu.js");
|
40527
|
+
/* harmony import */ var _order_logic__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./order_logic */ "./src/table/order_logic.js");
|
40488
40528
|
// LICENSE_CODE ZON
|
40489
40529
|
|
40490
40530
|
|
@@ -40520,6 +40560,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
40520
40560
|
|
40521
40561
|
|
40522
40562
|
|
40563
|
+
|
40523
40564
|
var assign = Object.assign;
|
40524
40565
|
var defaultContextValue = {};
|
40525
40566
|
var TableContext = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createContext(defaultContextValue);
|
@@ -40534,7 +40575,7 @@ var defaultIsCellEditable = function defaultIsCellEditable(_ref) {
|
|
40534
40575
|
var defaultPageSizes = [5, 10, 20, 30];
|
40535
40576
|
var Cell = function Cell(_ref2) {
|
40536
40577
|
var value = _ref2.value;
|
40537
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
40578
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Paragraph, {
|
40538
40579
|
variant: "sm",
|
40539
40580
|
color: "gray-11-50"
|
40540
40581
|
}, String(value));
|
@@ -40560,7 +40601,7 @@ var Provider = function Provider(_ref3) {
|
|
40560
40601
|
NoDataComp = _ref3.NoDataComp,
|
40561
40602
|
LoadingComp = _ref3.LoadingComp,
|
40562
40603
|
_ref3$ExpandHandleCom = _ref3.ExpandHandleComp,
|
40563
|
-
ExpandHandleComp = _ref3$ExpandHandleCom === void 0 ?
|
40604
|
+
ExpandHandleComp = _ref3$ExpandHandleCom === void 0 ? _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.ExpandHandle : _ref3$ExpandHandleCom,
|
40564
40605
|
_ref3$noDataText = _ref3.noDataText,
|
40565
40606
|
noDataText = _ref3$noDataText === void 0 ? 'No data' : _ref3$noDataText,
|
40566
40607
|
_ref3$loadingText = _ref3.loadingText,
|
@@ -40611,6 +40652,7 @@ var Provider = function Provider(_ref3) {
|
|
40611
40652
|
_ref3$rowDensity = _ref3.rowDensity,
|
40612
40653
|
rowDensity = _ref3$rowDensity === void 0 ? 'busy_bee' : _ref3$rowDensity,
|
40613
40654
|
rest = _objectWithoutProperties(_ref3, _excluded);
|
40655
|
+
var theme = (0,styled_components__WEBPACK_IMPORTED_MODULE_3__.useTheme)();
|
40614
40656
|
var _useState = (0,react__WEBPACK_IMPORTED_MODULE_1__.useState)(0),
|
40615
40657
|
_useState2 = _slicedToArray(_useState, 2),
|
40616
40658
|
pageCount = _useState2[0],
|
@@ -40619,9 +40661,9 @@ var Provider = function Provider(_ref3) {
|
|
40619
40661
|
_useState4 = _slicedToArray(_useState3, 2),
|
40620
40662
|
isDraggingRow = _useState4[0],
|
40621
40663
|
setIsDraggingRow = _useState4[1];
|
40622
|
-
var hiddenColumns = (0,
|
40623
|
-
var pinnedColumns = (0,
|
40624
|
-
var columnOrder = (0,
|
40664
|
+
var hiddenColumns = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('hiddenColumns'), _hiddenColumns);
|
40665
|
+
var pinnedColumns = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('pinnedColumns'), _pinnedColumns);
|
40666
|
+
var columnOrder = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(stateManager === null || stateManager === void 0 ? void 0 : stateManager.get('columnOrder'), _columnOrder);
|
40625
40667
|
var initialState = assign({}, _initialState, pageSize && {
|
40626
40668
|
pageSize: pageSize
|
40627
40669
|
}, hiddenColumns && {
|
@@ -40650,10 +40692,11 @@ var Provider = function Provider(_ref3) {
|
|
40650
40692
|
getFooterProps: getFooterProps,
|
40651
40693
|
ExpandHandleComp: ExpandHandleComp,
|
40652
40694
|
fullWidth: fullWidth,
|
40653
|
-
rowDensity: rowDensity
|
40695
|
+
rowDensity: rowDensity,
|
40696
|
+
theme: theme
|
40654
40697
|
}, rest), manualPagination && {
|
40655
40698
|
pageCount: pageCount
|
40656
|
-
}), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useExpanded,
|
40699
|
+
}), useCanHideColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useExpanded, _expandable_rows__WEBPACK_IMPORTED_MODULE_9__.useExpandHandle, react_table__WEBPACK_IMPORTED_MODULE_2__.usePagination, fullWidth ? react_table__WEBPACK_IMPORTED_MODULE_2__.useFlexLayout : react_table__WEBPACK_IMPORTED_MODULE_2__.useBlockLayout, react_table__WEBPACK_IMPORTED_MODULE_2__.useResizeColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useColumnOrder, _pinned_columns__WEBPACK_IMPORTED_MODULE_8__.usePinnedColumns, _editable_columns__WEBPACK_IMPORTED_MODULE_7__.useEditableColumns, react_table__WEBPACK_IMPORTED_MODULE_2__.useRowSelect, _select_rows__WEBPACK_IMPORTED_MODULE_10__.useSelectRows].concat(_toConsumableArray(rowActions !== null && rowActions !== void 0 && rowActions.length ? [_row_menu__WEBPACK_IMPORTED_MODULE_11__.useRowMenu] : []), _toConsumableArray(hooks)));
|
40657
40700
|
var _table$state = table.state,
|
40658
40701
|
pageIndex = _table$state.pageIndex,
|
40659
40702
|
_pageSize = _table$state.pageSize;
|
@@ -40670,8 +40713,8 @@ var Provider = function Provider(_ref3) {
|
|
40670
40713
|
}, [manualPagination, totalCount, pageIndex, _pageSize]);
|
40671
40714
|
var _LoadingComp = useComp(loadingText, LoadingComp);
|
40672
40715
|
var _NoDataComp = useComp(noDataText, NoDataComp);
|
40673
|
-
var orderLogic = (0,
|
40674
|
-
var expandColumnId = (0,
|
40716
|
+
var orderLogic = (0,_order_logic__WEBPACK_IMPORTED_MODULE_12__.useOrderLogic)(table);
|
40717
|
+
var expandColumnId = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(_expandColumnId, (_columns$ = columns[0]) === null || _columns$ === void 0 ? void 0 : _columns$.id);
|
40675
40718
|
var value = _objectSpread(_objectSpread({
|
40676
40719
|
columnSort: columnSort,
|
40677
40720
|
onColumnSortChanged: onColumnSortChanged,
|
@@ -40777,7 +40820,7 @@ var useCanHideColumns = function useCanHideColumns(hooks) {
|
|
40777
40820
|
var disableHiding = instance.disableHiding,
|
40778
40821
|
flatHeaders = instance.flatHeaders;
|
40779
40822
|
flatHeaders.forEach(function (header) {
|
40780
|
-
header.canHide = (0,
|
40823
|
+
header.canHide = (0,_util__WEBPACK_IMPORTED_MODULE_6__.firstDefined)(header.disableHiding === true ? false : undefined, disableHiding === true ? false : undefined, true);
|
40781
40824
|
});
|
40782
40825
|
});
|
40783
40826
|
};
|
@@ -40791,15 +40834,15 @@ var useComp = function useComp(text, Comp) {
|
|
40791
40834
|
};
|
40792
40835
|
var EmptyBody = function EmptyBody(_ref4) {
|
40793
40836
|
var children = _ref4.children;
|
40794
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
40837
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_4__.Flex, {
|
40795
40838
|
align_items: "center",
|
40796
40839
|
width: "100%",
|
40797
40840
|
padding_top: "04",
|
40798
40841
|
padding_right: "05",
|
40799
40842
|
padding_bottom: "04",
|
40800
40843
|
padding_left: "05"
|
40801
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
40802
|
-
color: "
|
40844
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
40845
|
+
color: "text_secondary"
|
40803
40846
|
}, children));
|
40804
40847
|
};
|
40805
40848
|
|
@@ -40906,7 +40949,7 @@ var Search = function Search(_ref2) {
|
|
40906
40949
|
var _useTheme = (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.useTheme)(),
|
40907
40950
|
spacing = _useTheme.spacing;
|
40908
40951
|
var clearButton = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_5__.IconButton, {
|
40909
|
-
|
40952
|
+
size: "xs",
|
40910
40953
|
icon: "Close",
|
40911
40954
|
style: {
|
40912
40955
|
visibility: search ? 'visible' : 'hidden'
|
@@ -40923,7 +40966,7 @@ var Search = function Search(_ref2) {
|
|
40923
40966
|
leftInnerContent: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
40924
40967
|
size: "xs",
|
40925
40968
|
name: "Search",
|
40926
|
-
color: "
|
40969
|
+
color: "icon"
|
40927
40970
|
}),
|
40928
40971
|
rightInnerContent: clearButton,
|
40929
40972
|
value: search,
|
@@ -41065,7 +41108,7 @@ var CustomizeButtonItem = function CustomizeButtonItem(_ref9) {
|
|
41065
41108
|
}, [isVisible, toggleHidden]);
|
41066
41109
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemWrapper, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_8__.Label, {
|
41067
41110
|
variant: "sm",
|
41068
|
-
color: isVisible ? '
|
41111
|
+
color: isVisible ? 'text_secondary' : 'text_disabled',
|
41069
41112
|
"data-label": true,
|
41070
41113
|
className: className
|
41071
41114
|
}, name || id), canPin && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(CustomizeButtonItemAction, {
|
@@ -41083,7 +41126,7 @@ var CustomizeButtonItemWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___
|
|
41083
41126
|
componentId: "sc-1uptv2h-2"
|
41084
41127
|
})(["margin:0;padding:8px 16px;display:flex;align-items:center;gap:4px;min-width:230px;div[data-label]{margin-right:auto;}&:hover{background-color:", ";}"], function (_ref10) {
|
41085
41128
|
var color = _ref10.theme.color;
|
41086
|
-
return color.
|
41129
|
+
return color.bg_fill;
|
41087
41130
|
});
|
41088
41131
|
var CustomizeButtonItemAction = function CustomizeButtonItemAction(_ref11) {
|
41089
41132
|
var onClick = _ref11.onClick,
|
@@ -41097,7 +41140,7 @@ var CustomizeButtonItemAction = function CustomizeButtonItemAction(_ref11) {
|
|
41097
41140
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_4__.Icon, {
|
41098
41141
|
name: icon,
|
41099
41142
|
size: "xs",
|
41100
|
-
color: "
|
41143
|
+
color: "icon"
|
41101
41144
|
})));
|
41102
41145
|
};
|
41103
41146
|
var CustomizeButtonItemActionWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
@@ -41457,7 +41500,7 @@ var TableFooterRow = styled_components__WEBPACK_IMPORTED_MODULE_1___default().di
|
|
41457
41500
|
componentId: "sc-12b7s5j-0"
|
41458
41501
|
})(["border-top:1px solid ", ";"], function (_ref) {
|
41459
41502
|
var color = _ref.theme.color;
|
41460
|
-
return color.
|
41503
|
+
return color.border_teritary;
|
41461
41504
|
});
|
41462
41505
|
var FooterCell = function FooterCell(props) {
|
41463
41506
|
var className = props.className,
|
@@ -41499,7 +41542,7 @@ var FooterCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default()
|
|
41499
41542
|
}, function (_ref3) {
|
41500
41543
|
var $isLastPinned = _ref3.$isLastPinned,
|
41501
41544
|
color = _ref3.theme.color;
|
41502
|
-
return $isLastPinned ? "2px solid ".concat(color.
|
41545
|
+
return $isLastPinned ? "2px solid ".concat(color.border_teritary) : 'none';
|
41503
41546
|
});
|
41504
41547
|
|
41505
41548
|
/***/ }),
|
@@ -41663,7 +41706,7 @@ var HeaderCell = function HeaderCell(props) {
|
|
41663
41706
|
compact: compact
|
41664
41707
|
}), compact && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
41665
41708
|
variant: "sm",
|
41666
|
-
color: "
|
41709
|
+
color: "text",
|
41667
41710
|
no_wrap: true
|
41668
41711
|
}, name || id), canSort && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_sort_icon__WEBPACK_IMPORTED_MODULE_9__.SortIcon, {
|
41669
41712
|
visible: !!iconVisible,
|
@@ -41687,7 +41730,7 @@ var TableHeaderRow = styled_components__WEBPACK_IMPORTED_MODULE_2___default().di
|
|
41687
41730
|
})(["border-bottom:", ";"], function (_ref) {
|
41688
41731
|
var $isLast = _ref.$isLast,
|
41689
41732
|
color = _ref.theme.color;
|
41690
|
-
return $isLast ? 'none' : "1px solid ".concat(color.
|
41733
|
+
return $isLast ? 'none' : "1px solid ".concat(color.border_teritary);
|
41691
41734
|
});
|
41692
41735
|
var HeaderCellContent = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
41693
41736
|
displayName: "HeaderCellContent",
|
@@ -41697,11 +41740,11 @@ var HeaderCellContent = styled_components__WEBPACK_IMPORTED_MODULE_2___default()
|
|
41697
41740
|
return color.bg_primary;
|
41698
41741
|
}, function (_ref3) {
|
41699
41742
|
var color = _ref3.theme.color;
|
41700
|
-
return color.
|
41743
|
+
return color.table_cell_hover;
|
41701
41744
|
}, function (_ref4) {
|
41702
41745
|
var $isLastPinned = _ref4.$isLastPinned,
|
41703
41746
|
color = _ref4.theme.color;
|
41704
|
-
return $isLastPinned ? "2px solid ".concat(color.
|
41747
|
+
return $isLastPinned ? "2px solid ".concat(color.border_teritary) : 'none';
|
41705
41748
|
});
|
41706
41749
|
var HeaderCellWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
41707
41750
|
displayName: "HeaderCellWrapper",
|
@@ -41718,7 +41761,7 @@ var HeaderCellResizer = styled_components__WEBPACK_IMPORTED_MODULE_2___default()
|
|
41718
41761
|
if (props.$isResizing) {
|
41719
41762
|
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["&:after{content:\" \";display:block;width:2px;height:100%;background:", ";position:absolute;bottom:0;left:4px;}"], function (_ref5) {
|
41720
41763
|
var color = _ref5.theme.color;
|
41721
|
-
return color.
|
41764
|
+
return color.border_primary;
|
41722
41765
|
});
|
41723
41766
|
}
|
41724
41767
|
});
|
@@ -41726,7 +41769,7 @@ var renderCellContent = function renderCellContent(column, type, props) {
|
|
41726
41769
|
var content = column[type];
|
41727
41770
|
if (lodash_isString__WEBPACK_IMPORTED_MODULE_0___default()(content)) return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_3__.Label, {
|
41728
41771
|
variant: "sm",
|
41729
|
-
color: "
|
41772
|
+
color: "text",
|
41730
41773
|
no_wrap: true
|
41731
41774
|
}, content);
|
41732
41775
|
return column.render(type, props);
|
@@ -41867,7 +41910,7 @@ var MenuButton = function MenuButton(props) {
|
|
41867
41910
|
var popover = props.popover,
|
41868
41911
|
visible = props.visible;
|
41869
41912
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(StyledButton, {
|
41870
|
-
|
41913
|
+
size: "xs",
|
41871
41914
|
icon: "DotsHorizontal",
|
41872
41915
|
tooltip: "Functions",
|
41873
41916
|
tooltipPlacement: "top",
|
@@ -41880,18 +41923,12 @@ var MenuButton = function MenuButton(props) {
|
|
41880
41923
|
var StyledButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton).withConfig({
|
41881
41924
|
displayName: "StyledButton",
|
41882
41925
|
componentId: "sc-1oo76mu-0"
|
41883
|
-
})(["cursor:pointer;display:flex;position:absolute;top:50%;right:8px;transform:translateY(-50%);z-index:", ";width:16px;height:16px;
|
41884
|
-
var color = _ref.theme.color;
|
41885
|
-
return color.gray_6;
|
41886
|
-
}, function (_ref2) {
|
41887
|
-
var color = _ref2.theme.color;
|
41888
|
-
return color.gray_6;
|
41889
|
-
});
|
41926
|
+
})(["cursor:pointer;display:flex;position:absolute;top:50%;right:8px;transform:translateY(-50%);z-index:", ";width:16px;height:16px;border-radius:4px;width:16px;height:16px;"], _constants__WEBPACK_IMPORTED_MODULE_6__.Z_INDEX.headerButton);
|
41890
41927
|
var MenuWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
41891
41928
|
displayName: "MenuWrapper",
|
41892
41929
|
componentId: "sc-1oo76mu-1"
|
41893
|
-
})(["background:white;border-radius:4px;box-shadow:", ";"], function (
|
41894
|
-
var box_shadow =
|
41930
|
+
})(["background:white;border-radius:4px;box-shadow:", ";"], function (_ref) {
|
41931
|
+
var box_shadow = _ref.theme.box_shadow;
|
41895
41932
|
return box_shadow.md;
|
41896
41933
|
});
|
41897
41934
|
var MenuPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_2__.withPopover)(MenuButton, function (p) {
|
@@ -41908,16 +41945,16 @@ var Menu = styled_components__WEBPACK_IMPORTED_MODULE_1___default().ul.withConfi
|
|
41908
41945
|
var MenuItem = styled_components__WEBPACK_IMPORTED_MODULE_1___default().li.withConfig({
|
41909
41946
|
displayName: "MenuItem",
|
41910
41947
|
componentId: "sc-1oo76mu-3"
|
41911
|
-
})(["list-style:none;&:hover{background-color:", ";}", ""], function (
|
41912
|
-
var color =
|
41913
|
-
return color.
|
41948
|
+
})(["list-style:none;&:hover{background-color:", ";}", ""], function (_ref2) {
|
41949
|
+
var color = _ref2.theme.color;
|
41950
|
+
return color.bg_fill_secondary;
|
41914
41951
|
}, function (props) {
|
41915
|
-
return props.$separator && (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding:0;height:1px;background-color:", ";&:hover{background-color:", ";}"], function (
|
41916
|
-
var color =
|
41917
|
-
return color.
|
41918
|
-
}, function (
|
41919
|
-
var color =
|
41920
|
-
return color.
|
41952
|
+
return props.$separator && (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["padding:0;height:1px;background-color:", ";&:hover{background-color:", ";}"], function (_ref3) {
|
41953
|
+
var color = _ref3.theme.color;
|
41954
|
+
return color.border;
|
41955
|
+
}, function (_ref4) {
|
41956
|
+
var color = _ref4.theme.color;
|
41957
|
+
return color.border;
|
41921
41958
|
});
|
41922
41959
|
});
|
41923
41960
|
var OrderColumn = function OrderColumn(props) {
|
@@ -41932,11 +41969,11 @@ var OrderColumn = function OrderColumn(props) {
|
|
41932
41969
|
onClick: handleClick
|
41933
41970
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
41934
41971
|
name: dir == 'back' ? 'ArrowLeft' : 'ArrowRight',
|
41935
|
-
color: "
|
41972
|
+
color: "icon",
|
41936
41973
|
size: "xs"
|
41937
41974
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
41938
41975
|
variant: "sm",
|
41939
|
-
color: "
|
41976
|
+
color: "text"
|
41940
41977
|
}, text));
|
41941
41978
|
};
|
41942
41979
|
var SortColumn = function SortColumn(props) {
|
@@ -41950,11 +41987,11 @@ var SortColumn = function SortColumn(props) {
|
|
41950
41987
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(FunctionWrapper, {
|
41951
41988
|
onClick: handleClick
|
41952
41989
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_sort_icon__WEBPACK_IMPORTED_MODULE_7__.SortIcon, {
|
41953
|
-
color: "
|
41990
|
+
color: "icon",
|
41954
41991
|
reverse: sort != 'asc'
|
41955
41992
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
41956
41993
|
variant: "sm",
|
41957
|
-
color: "
|
41994
|
+
color: "text"
|
41958
41995
|
}, text));
|
41959
41996
|
};
|
41960
41997
|
var PinColumn = function PinColumn(props) {
|
@@ -41970,11 +42007,11 @@ var PinColumn = function PinColumn(props) {
|
|
41970
42007
|
onClick: handleClick
|
41971
42008
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
41972
42009
|
name: isPinned ? 'Unpin' : 'Pin',
|
41973
|
-
color: "
|
42010
|
+
color: "icon",
|
41974
42011
|
size: "xs"
|
41975
42012
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
41976
42013
|
variant: "sm",
|
41977
|
-
color: "
|
42014
|
+
color: "text"
|
41978
42015
|
}, text));
|
41979
42016
|
};
|
41980
42017
|
var HideColumn = function HideColumn(props) {
|
@@ -41987,11 +42024,11 @@ var HideColumn = function HideColumn(props) {
|
|
41987
42024
|
type: "checkbox"
|
41988
42025
|
}, props)), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
41989
42026
|
name: "EyeOff",
|
41990
|
-
color: "
|
42027
|
+
color: "icon",
|
41991
42028
|
size: "xs"
|
41992
42029
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_5__.Label, {
|
41993
42030
|
variant: "sm",
|
41994
|
-
color: "
|
42031
|
+
color: "text"
|
41995
42032
|
}, "Hide column"));
|
41996
42033
|
};
|
41997
42034
|
var FunctionWrapper = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
@@ -42206,10 +42243,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
42206
42243
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
42207
42244
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! styled-components */ "styled-components");
|
42208
42245
|
/* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_2__);
|
42209
|
-
/* harmony import */ var
|
42210
|
-
/* harmony import */ var
|
42211
|
-
/* harmony import */ var
|
42212
|
-
/* harmony import */ var
|
42246
|
+
/* harmony import */ var _icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../icon */ "./src/icon.js");
|
42247
|
+
/* harmony import */ var _icon_button__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../icon_button */ "./src/icon_button.js");
|
42248
|
+
/* harmony import */ var _input__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../input */ "./src/input/index.js");
|
42249
|
+
/* harmony import */ var _layout__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../layout */ "./src/layout/index.js");
|
42213
42250
|
/* harmony import */ var _typography__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../typography */ "./src/typography/index.js");
|
42214
42251
|
/* harmony import */ var _context__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./context */ "./src/table/context.js");
|
42215
42252
|
// LICENSE_CODE ZON
|
@@ -42262,11 +42299,11 @@ var Pagination = function Pagination(_ref) {
|
|
42262
42299
|
});
|
42263
42300
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationWrapper, {
|
42264
42301
|
className: className
|
42265
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationItems, childProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationControlsWrapper, null, !!onDownload && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
42302
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationItems, childProps), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationControlsWrapper, null, !!onDownload && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_4__.IconButton, {
|
42266
42303
|
icon: "Download",
|
42267
42304
|
onClick: onDownload,
|
42268
42305
|
tooltip: downloadTooltip,
|
42269
|
-
|
42306
|
+
size: "xs"
|
42270
42307
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationControls, childProps)));
|
42271
42308
|
};
|
42272
42309
|
Pagination.propTypes = {
|
@@ -42276,7 +42313,7 @@ Pagination.propTypes = {
|
|
42276
42313
|
var PaginationWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
42277
42314
|
displayName: "PaginationWrapper",
|
42278
42315
|
componentId: "sc-1rdn0jh-0"
|
42279
|
-
})(["display:flex;flex-direction:row;align-items:center;padding:
|
42316
|
+
})(["display:flex;flex-direction:row;align-items:center;padding:14px 0;justify-content:space-between;"]);
|
42280
42317
|
var PaginationControlsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
42281
42318
|
displayName: "PaginationControlsWrapper",
|
42282
42319
|
componentId: "sc-1rdn0jh-1"
|
@@ -42303,25 +42340,20 @@ var PaginationControls = function PaginationControls(_ref2) {
|
|
42303
42340
|
});
|
42304
42341
|
var from = pageIndex * pageSize + 1;
|
42305
42342
|
var to = Math.min((pageIndex + 1) * pageSize, total);
|
42306
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
42343
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_layout__WEBPACK_IMPORTED_MODULE_6__.Flex, {
|
42344
|
+
align_items: "center",
|
42345
|
+
gap: "03"
|
42346
|
+
}, opts.length > 1 && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_input__WEBPACK_IMPORTED_MODULE_5__.Dropdown, {
|
42307
42347
|
classNamePrefix: "uikit-table-pagination",
|
42308
42348
|
value: sel,
|
42309
42349
|
options: opts,
|
42310
42350
|
onChange: handleChange,
|
42311
|
-
menuPortalTarget: document.body
|
42312
|
-
|
42313
|
-
|
42314
|
-
column_gap: "0.2em"
|
42315
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
|
42316
|
-
variant: "sm",
|
42317
|
-
color: "gray_11_50"
|
42318
|
-
}, from, "-", to), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
|
42319
|
-
variant: "sm",
|
42320
|
-
color: "gray_11_50"
|
42321
|
-
}, "of"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
|
42351
|
+
menuPortalTarget: document.body,
|
42352
|
+
size: "sm"
|
42353
|
+
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_typography__WEBPACK_IMPORTED_MODULE_7__.Label, {
|
42322
42354
|
variant: "sm",
|
42323
|
-
color: "
|
42324
|
-
}, total))
|
42355
|
+
color: "text"
|
42356
|
+
}, from, "-", to, " of ", total));
|
42325
42357
|
};
|
42326
42358
|
var PaginationItems = function PaginationItems(_ref3) {
|
42327
42359
|
var pageIndex = _ref3.pageIndex,
|
@@ -42340,40 +42372,50 @@ var PaginationItems = function PaginationItems(_ref3) {
|
|
42340
42372
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PaginationItemsWrapper, null, canPreviousPage && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PageLink, {
|
42341
42373
|
onClick: function onClick() {
|
42342
42374
|
return previousPage();
|
42343
|
-
}
|
42344
|
-
|
42345
|
-
|
42375
|
+
}
|
42376
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
42377
|
+
name: "ChevronLeft",
|
42378
|
+
size: "xs",
|
42379
|
+
color: "icon"
|
42380
|
+
})), pages, canNextPage && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PageLink, {
|
42346
42381
|
onClick: function onClick() {
|
42347
42382
|
return nextPage();
|
42348
|
-
}
|
42349
|
-
|
42350
|
-
|
42383
|
+
}
|
42384
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_3__.Icon, {
|
42385
|
+
name: "ChevronRight",
|
42386
|
+
size: "xs",
|
42387
|
+
color: "icon"
|
42388
|
+
})));
|
42351
42389
|
};
|
42352
42390
|
var PaginationItemsWrapper = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
42353
42391
|
displayName: "PaginationItemsWrapper",
|
42354
42392
|
componentId: "sc-1rdn0jh-2"
|
42355
|
-
})(["display:flex;flex-direction:row;align-items:center;gap:
|
42356
|
-
var PageLink =
|
42357
|
-
|
42358
|
-
|
42359
|
-
|
42360
|
-
|
42361
|
-
|
42362
|
-
|
42363
|
-
|
42364
|
-
|
42365
|
-
|
42366
|
-
|
42367
|
-
|
42368
|
-
|
42369
|
-
|
42370
|
-
|
42371
|
-
|
42372
|
-
|
42373
|
-
|
42374
|
-
color
|
42375
|
-
|
42376
|
-
|
42393
|
+
})(["display:flex;flex-direction:row;align-items:center;gap:2px;"]);
|
42394
|
+
var PageLink = styled_components__WEBPACK_IMPORTED_MODULE_2___default().div.withConfig({
|
42395
|
+
displayName: "PageLink",
|
42396
|
+
componentId: "sc-1rdn0jh-3"
|
42397
|
+
})(["box-sizing:border-box;display:flex;width:28px;height:28px;padding:8px;flex-direction:column;justify-content:center;align-items:center;border-radius:4px;font-family:", ";font-size:", ";font-style:normal;font-weight:", ";line-height:", ";", ""], function (_ref4) {
|
42398
|
+
var font_family = _ref4.theme.font_family;
|
42399
|
+
return font_family.sans;
|
42400
|
+
}, function (_ref5) {
|
42401
|
+
var font_size = _ref5.theme.font_size;
|
42402
|
+
return font_size.sm;
|
42403
|
+
}, function (_ref6) {
|
42404
|
+
var font_weight = _ref6.theme.font_weight;
|
42405
|
+
return font_weight.regular;
|
42406
|
+
}, function (_ref7) {
|
42407
|
+
var line_height = _ref7.theme.line_height;
|
42408
|
+
return line_height.none;
|
42409
|
+
}, function (_ref8) {
|
42410
|
+
var $ellipsis = _ref8.$ellipsis,
|
42411
|
+
onClick = _ref8.onClick,
|
42412
|
+
color = _ref8.theme.color;
|
42413
|
+
if ($ellipsis) return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["color:", ";"], color.text);
|
42414
|
+
if (onClick) {
|
42415
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:pointer;color:", ";&:hover{background:", ";}"], color.text, color.bg_fill_secondary);
|
42416
|
+
}
|
42417
|
+
return (0,styled_components__WEBPACK_IMPORTED_MODULE_2__.css)(["cursor:pointer;color:", ";background:", ";"], color.text_primary, color.bg_fill_primary_secondary);
|
42418
|
+
});
|
42377
42419
|
var usePages = function usePages(opt) {
|
42378
42420
|
return (0,react__WEBPACK_IMPORTED_MODULE_1__.useMemo)(function () {
|
42379
42421
|
var pageIndex = opt.pageIndex,
|
@@ -42383,23 +42425,19 @@ var usePages = function usePages(opt) {
|
|
42383
42425
|
pageCount = opt.pageCount;
|
42384
42426
|
var currentPage = pageIndex + 1;
|
42385
42427
|
var ellipsis = function ellipsis(key) {
|
42386
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(
|
42428
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PageLink, {
|
42387
42429
|
key: key,
|
42388
|
-
|
42389
|
-
});
|
42430
|
+
$ellipsis: true
|
42431
|
+
}, "...");
|
42390
42432
|
};
|
42391
42433
|
var pageItem = function pageItem(page) {
|
42392
|
-
|
42393
|
-
|
42394
|
-
|
42395
|
-
});
|
42434
|
+
var onClick = page == currentPage ? undefined : function () {
|
42435
|
+
return gotoPage(page - 1);
|
42436
|
+
};
|
42396
42437
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().createElement(PageLink, {
|
42397
42438
|
key: page,
|
42398
|
-
onClick:
|
42399
|
-
|
42400
|
-
},
|
42401
|
-
text: page
|
42402
|
-
});
|
42439
|
+
onClick: onClick
|
42440
|
+
}, page);
|
42403
42441
|
};
|
42404
42442
|
if (pageCount <= 1) return null;
|
42405
42443
|
var pages;
|
@@ -42780,7 +42818,7 @@ var TableRow = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.with
|
|
42780
42818
|
}, function (_ref2) {
|
42781
42819
|
var $isLast = _ref2.$isLast,
|
42782
42820
|
color = _ref2.theme.color;
|
42783
|
-
return $isLast ? 'none' : "1px solid ".concat(color.
|
42821
|
+
return $isLast ? 'none' : "1px solid ".concat(color.border_teritary);
|
42784
42822
|
}, _table_cell__WEBPACK_IMPORTED_MODULE_3__.CellContent, function (_ref3) {
|
42785
42823
|
var $rowDensity = _ref3.$rowDensity;
|
42786
42824
|
return {
|
@@ -42789,7 +42827,7 @@ var TableRow = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.with
|
|
42789
42827
|
}[$rowDensity] || '32';
|
42790
42828
|
}, _table_cell__WEBPACK_IMPORTED_MODULE_3__.TableCellContent, function (_ref4) {
|
42791
42829
|
var color = _ref4.theme.color;
|
42792
|
-
return color.
|
42830
|
+
return color.table_cell_hover;
|
42793
42831
|
});
|
42794
42832
|
var RowWrapper = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().memo(function (props) {
|
42795
42833
|
var _provided$draggablePr;
|
@@ -42882,11 +42920,11 @@ var RowHoverActions = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forward
|
|
42882
42920
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", {
|
42883
42921
|
key: p.icon
|
42884
42922
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_2__.IconButton, _extends({}, p, {
|
42885
|
-
|
42923
|
+
size: "xs"
|
42886
42924
|
})));
|
42887
42925
|
}), draggableRows && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("li", null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon_button__WEBPACK_IMPORTED_MODULE_2__.IconButton, _extends({
|
42888
42926
|
disabled: !(draggable !== null && draggable !== void 0 ? draggable : true),
|
42889
|
-
|
42927
|
+
size: "xs",
|
42890
42928
|
icon: "DragAndDrop"
|
42891
42929
|
}, dragHandleProps))));
|
42892
42930
|
});
|
@@ -43055,7 +43093,7 @@ var RowMenuCellPopover = (0,_hoc__WEBPACK_IMPORTED_MODULE_2__.withPopover)(funct
|
|
43055
43093
|
"data-testid": "row-actions-toggle",
|
43056
43094
|
onClick: p.popover.toggle,
|
43057
43095
|
icon: "DotsHorizontal",
|
43058
|
-
|
43096
|
+
size: "xs",
|
43059
43097
|
className: _render_row__WEBPACK_IMPORTED_MODULE_6__.preventOnClickClass
|
43060
43098
|
});
|
43061
43099
|
}, function (p) {
|
@@ -43097,19 +43135,22 @@ var RowMenuButton = styled_components__WEBPACK_IMPORTED_MODULE_1___default().but
|
|
43097
43135
|
componentId: "sc-q7kjip-0"
|
43098
43136
|
})(["box-sizing:border-box;min-width:180px;display:flex;align-items:center;padding:7px 12px;gap:10px;border:0 none;background-color:unset;white-space:nowrap;"]);
|
43099
43137
|
RowMenuButton.displayName = 'RowMenuButton';
|
43100
|
-
var rowMenuStyle = {
|
43101
|
-
backgroundColor: '#fff',
|
43102
|
-
display: 'flex',
|
43103
|
-
alignItems: 'center',
|
43104
|
-
position: 'sticky',
|
43105
|
-
right: 0,
|
43106
|
-
overflow: 'visible'
|
43107
|
-
};
|
43108
43138
|
var getRowMenuCellProps = function getRowMenuCellProps(props, _ref3) {
|
43109
|
-
var cell = _ref3.cell
|
43110
|
-
|
43111
|
-
|
43112
|
-
|
43139
|
+
var cell = _ref3.cell,
|
43140
|
+
instance = _ref3.instance;
|
43141
|
+
if (cell.column.id == 'row_menu') {
|
43142
|
+
var _instance$theme;
|
43143
|
+
return [props, {
|
43144
|
+
style: {
|
43145
|
+
backgroundColor: (_instance$theme = instance.theme) === null || _instance$theme === void 0 ? void 0 : _instance$theme.color.bg,
|
43146
|
+
display: 'flex',
|
43147
|
+
alignItems: 'center',
|
43148
|
+
position: 'sticky',
|
43149
|
+
right: 0,
|
43150
|
+
overflow: 'visible'
|
43151
|
+
}
|
43152
|
+
}];
|
43153
|
+
}
|
43113
43154
|
return props;
|
43114
43155
|
};
|
43115
43156
|
var rowMenuColumn = {
|
@@ -43120,10 +43161,11 @@ var rowMenuColumn = {
|
|
43120
43161
|
disableResizing: true,
|
43121
43162
|
disablePinning: true,
|
43122
43163
|
canEdit: false,
|
43123
|
-
width:
|
43124
|
-
minWidth:
|
43125
|
-
maxWidth:
|
43126
|
-
internalActions: {}
|
43164
|
+
width: 32,
|
43165
|
+
minWidth: 32,
|
43166
|
+
maxWidth: 32,
|
43167
|
+
internalActions: {},
|
43168
|
+
type: 'row_action'
|
43127
43169
|
};
|
43128
43170
|
var useRowMenu = function useRowMenu(hooks) {
|
43129
43171
|
hooks.visibleColumns.push(function (columns) {
|
@@ -43308,7 +43350,7 @@ var SortIcon = function SortIcon(_ref) {
|
|
43308
43350
|
var _ref$visible = _ref.visible,
|
43309
43351
|
visible = _ref$visible === void 0 ? true : _ref$visible,
|
43310
43352
|
_ref$color = _ref.color,
|
43311
|
-
color = _ref$color === void 0 ? '
|
43353
|
+
color = _ref$color === void 0 ? 'icon_primary' : _ref$color,
|
43312
43354
|
reverse = _ref.reverse;
|
43313
43355
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_icon__WEBPACK_IMPORTED_MODULE_1__.Icon, {
|
43314
43356
|
size: "xs",
|
@@ -43738,7 +43780,7 @@ var TableWrapper = styled_components__WEBPACK_IMPORTED_MODULE_3___default().div.
|
|
43738
43780
|
componentId: "sc-ebeoik-0"
|
43739
43781
|
})(["width:100%;border:1px solid ", ";border-radius:4px;overflow-x:", ";", ""], function (_ref) {
|
43740
43782
|
var color = _ref.theme.color;
|
43741
|
-
return color.
|
43783
|
+
return color.border_teritary;
|
43742
43784
|
}, function (_ref2) {
|
43743
43785
|
var $virtualized = _ref2.$virtualized;
|
43744
43786
|
return $virtualized ? 'unset' : 'auto';
|
@@ -43946,7 +43988,7 @@ var TableCell = function TableCell(props) {
|
|
43946
43988
|
'tableCell--is-expanded': canExpand && isExpanded
|
43947
43989
|
}), cellProps.className);
|
43948
43990
|
var Wrapper = expandColumnId == columnId && (canExpand && isExpanded || depth > 0) ? ExpandedTableCellContent : TableCellContent;
|
43949
|
-
var Content = isEditable ? EditableCellContent : CellContent;
|
43991
|
+
var Content = type == 'row_action' ? RowActionCellContent : isEditable ? EditableCellContent : CellContent;
|
43950
43992
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Wrapper, _extends({}, cellProps, {
|
43951
43993
|
$isLastPinned: isLastPinned
|
43952
43994
|
}), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(Content, {
|
@@ -43965,41 +44007,46 @@ var TableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().
|
|
43965
44007
|
componentId: "sc-1gdt4qg-0"
|
43966
44008
|
})(["background-color:", ";border-right:", ";"], function (_ref) {
|
43967
44009
|
var color = _ref.theme.color;
|
43968
|
-
return color.
|
44010
|
+
return color.bg;
|
43969
44011
|
}, function (_ref2) {
|
43970
44012
|
var $isLastPinned = _ref2.$isLastPinned,
|
43971
44013
|
color = _ref2.theme.color;
|
43972
|
-
return $isLastPinned ? "2px solid ".concat(color.
|
44014
|
+
return $isLastPinned ? "2px solid ".concat(color.border_teritary) : 'none';
|
43973
44015
|
});
|
43974
44016
|
var ExpandedTableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(TableCellContent).withConfig({
|
43975
44017
|
displayName: "ExpandedTableCellContent",
|
43976
44018
|
componentId: "sc-1gdt4qg-1"
|
43977
44019
|
})(["position:relative;&::before{content:'';position:absolute;left:0;top:0;height:calc(100% + 1px);border-left:4px solid ", ";}"], function (_ref3) {
|
43978
44020
|
var color = _ref3.theme.color;
|
43979
|
-
return color.
|
44021
|
+
return color.table_nesting;
|
43980
44022
|
});
|
44023
|
+
var RowActionCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
44024
|
+
displayName: "RowActionCellContent",
|
44025
|
+
componentId: "sc-1gdt4qg-2"
|
44026
|
+
})(["box-sizing:border-box;display:flex;align-items:center;padding:4px;"]);
|
43981
44027
|
var CellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default().div.withConfig({
|
43982
44028
|
displayName: "CellContent",
|
43983
|
-
componentId: "sc-1gdt4qg-
|
43984
|
-
})(["box-sizing:border-box;display:flex;align-items:center;padding:4px 16px;overflow:clip;", ""], function (
|
43985
|
-
|
44029
|
+
componentId: "sc-1gdt4qg-3"
|
44030
|
+
})(["box-sizing:border-box;display:flex;align-items:center;padding:4px 16px;overflow:clip;", ""], function (_ref4) {
|
44031
|
+
var $type = _ref4.$type;
|
44032
|
+
return $type == 'number' ? 'text-align: right;' : null;
|
43986
44033
|
});
|
43987
44034
|
var EditableCellContent = styled_components__WEBPACK_IMPORTED_MODULE_1___default()(CellContent).withConfig({
|
43988
44035
|
displayName: "EditableCellContent",
|
43989
|
-
componentId: "sc-1gdt4qg-
|
43990
|
-
})(["padding:3px 15px;border:1px solid transparent;&:hover{background-color:", ";border-color:", ";}", ""], function (
|
43991
|
-
var color = _ref4.theme.color;
|
43992
|
-
return color.white;
|
43993
|
-
}, function (_ref5) {
|
44036
|
+
componentId: "sc-1gdt4qg-4"
|
44037
|
+
})(["padding:3px 15px;border:1px solid transparent;&:hover{background-color:", ";border-color:", ";}", ""], function (_ref5) {
|
43994
44038
|
var color = _ref5.theme.color;
|
43995
|
-
return color.
|
44039
|
+
return color.white;
|
44040
|
+
}, function (_ref6) {
|
44041
|
+
var color = _ref6.theme.color;
|
44042
|
+
return color.border_accent;
|
43996
44043
|
}, function (props) {
|
43997
|
-
return props.$isEditing ? (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["background-color:", ";border:1px solid ", " !important;box-shadow:inset 0px 0px 0px 3px rgba(0,106,220,0.4);"], function (
|
43998
|
-
var color = _ref6.theme.color;
|
43999
|
-
return color.white;
|
44000
|
-
}, function (_ref7) {
|
44044
|
+
return props.$isEditing ? (0,styled_components__WEBPACK_IMPORTED_MODULE_1__.css)(["background-color:", ";border:1px solid ", " !important;box-shadow:inset 0px 0px 0px 3px rgba(0,106,220,0.4);"], function (_ref7) {
|
44001
44045
|
var color = _ref7.theme.color;
|
44002
|
-
return color.
|
44046
|
+
return color.white;
|
44047
|
+
}, function (_ref8) {
|
44048
|
+
var color = _ref8.theme.color;
|
44049
|
+
return color.table_nesting;
|
44003
44050
|
}) : undefined;
|
44004
44051
|
});
|
44005
44052
|
|
@@ -44750,8 +44797,6 @@ var color = {
|
|
44750
44797
|
gray_11_75: '#202425',
|
44751
44798
|
gray_12: '#151718',
|
44752
44799
|
black: '#000000',
|
44753
|
-
black_1: '#303B45',
|
44754
|
-
// XXX alexanderse: not exists
|
44755
44800
|
aqua_9: '#3A3F42',
|
44756
44801
|
aqua_10: '#15C1E6',
|
44757
44802
|
purple_9: '#D4D0FF',
|
@@ -44760,8 +44805,6 @@ var color = {
|
|
44760
44805
|
mint_10: '#4DD1B5'
|
44761
44806
|
};
|
44762
44807
|
var semanticLight = {
|
44763
|
-
bg_primary: color.white,
|
44764
|
-
// XXX alexanderse: remove
|
44765
44808
|
bg: color.white,
|
44766
44809
|
bg_elevated: color.white,
|
44767
44810
|
bg_fill_primary: color.blue_11,
|
@@ -44886,8 +44929,6 @@ var lightTheme = _objectSpread(_objectSpread({}, baseTheme), {}, {
|
|
44886
44929
|
color: _objectSpread(_objectSpread(_objectSpread({}, color), semanticLight), componentLight)
|
44887
44930
|
});
|
44888
44931
|
var semanticDark = _objectSpread(_objectSpread({}, semanticLight), {}, {
|
44889
|
-
bg_primary: '#151718',
|
44890
|
-
// XXX alexanderse: remove
|
44891
44932
|
bg: color.gray_12,
|
44892
44933
|
bg_elevated: color.gray_11_75,
|
44893
44934
|
bg_fill_primary: color.blue_9,
|
@@ -47404,7 +47445,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
47404
47445
|
|
47405
47446
|
|
47406
47447
|
|
47407
|
-
var colorNames = Object.keys(_themes__WEBPACK_IMPORTED_MODULE_2__.color);
|
47448
|
+
var colorNames = Object.keys(_themes__WEBPACK_IMPORTED_MODULE_2__.lightTheme.color);
|
47408
47449
|
var iconNames = Object.keys(_icons__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
47409
47450
|
var toPixel = function toPixel(value) {
|
47410
47451
|
return "".concat(value, "px");
|
@@ -47419,13 +47460,15 @@ function fromTheme(propName, defaultValue) {
|
|
47419
47460
|
props = _objectWithoutProperties(_ref, _excluded);
|
47420
47461
|
var value = (_ref2 = (_props$propName = props[propName]) !== null && _props$propName !== void 0 ? _props$propName : props["$".concat(propName)]) !== null && _ref2 !== void 0 ? _ref2 : defaultValue;
|
47421
47462
|
if (value != null) {
|
47463
|
+
var _theme$shadow$value;
|
47422
47464
|
if (propName.indexOf('padding') == 0 || propName.indexOf('margin') == 0 || ['gap', 'rowGap', 'columnGap'].includes(propName)) {
|
47423
47465
|
var _theme$spacing$value;
|
47424
47466
|
return (_theme$spacing$value = theme.spacing[value]) !== null && _theme$spacing$value !== void 0 ? _theme$spacing$value : value;
|
47425
47467
|
}
|
47426
|
-
if (['font_family', 'font_weight', 'font_size', 'line_height', 'letter_spacing', 'color'
|
47468
|
+
if (['font_family', 'font_weight', 'font_size', 'line_height', 'letter_spacing', 'color'].includes(propName)) {
|
47427
47469
|
return theme[propName][value];
|
47428
47470
|
}
|
47471
|
+
if (propName == 'box_shadow') return (_theme$shadow$value = theme.shadow[value]) !== null && _theme$shadow$value !== void 0 ? _theme$shadow$value : theme.box_shadow[value];
|
47429
47472
|
}
|
47430
47473
|
return value;
|
47431
47474
|
};
|