@galaxy-ds/core 2.0.16 → 2.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Autocomplete/Autocomplete.types.d.ts +5 -1
- package/dist/Icons/leap/{Carat.d.ts → Caret.d.ts} +1 -1
- package/dist/Icons/leap/index.d.ts +1 -1
- package/dist/RibbonButton/RibbonButton.styled.d.ts +1 -1
- package/dist/RibbonButtonGroup/RibbonButtonGroup.styled.d.ts +1 -1
- package/dist/Tabs/Tabs.d.ts +1 -4
- package/dist/Tabs/Tabs.styled.d.ts +1 -4
- package/dist/index.esm.js +25 -76
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +25 -76
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1112,7 +1112,6 @@ var dropdownOverrides$1 = {
|
|
|
1112
1112
|
height: 30,
|
|
1113
1113
|
lineHeight: '30px',
|
|
1114
1114
|
}, '& .customSelectInputBackground': {
|
|
1115
|
-
backgroundColor: 'red',
|
|
1116
1115
|
borderColor: theme.palette.grey[500],
|
|
1117
1116
|
cursor: 'default',
|
|
1118
1117
|
'&:hover': {
|
|
@@ -1770,7 +1769,7 @@ var tableCellOverrides$1 = {
|
|
|
1770
1769
|
borderTop: "1px solid #d4d4d4",
|
|
1771
1770
|
borderLeft: "1px solid #d4d4d4",
|
|
1772
1771
|
padding: '8px 16px',
|
|
1773
|
-
'&:first-
|
|
1772
|
+
'&:first-of-type': {
|
|
1774
1773
|
borderLeft: 'none',
|
|
1775
1774
|
},
|
|
1776
1775
|
},
|
|
@@ -2451,12 +2450,9 @@ var checkboxOverrides = {
|
|
|
2451
2450
|
content: '""',
|
|
2452
2451
|
display: 'none',
|
|
2453
2452
|
position: 'absolute',
|
|
2454
|
-
top: -1,
|
|
2455
|
-
left: -1,
|
|
2456
2453
|
width: 14,
|
|
2457
2454
|
height: 14,
|
|
2458
2455
|
backgroundColor: '#fef7f0',
|
|
2459
|
-
border: "1px solid #d4d4d4",
|
|
2460
2456
|
},
|
|
2461
2457
|
'& input:focus': {
|
|
2462
2458
|
borderColor: theme.palette.primary.main,
|
|
@@ -2660,7 +2656,7 @@ var dropdownOverrides = {
|
|
|
2660
2656
|
select: function (_a) {
|
|
2661
2657
|
var theme = _a.theme;
|
|
2662
2658
|
return ({
|
|
2663
|
-
padding: '
|
|
2659
|
+
padding: '12px 12px 12px 16px',
|
|
2664
2660
|
lineHeight: 1,
|
|
2665
2661
|
textTransform: 'uppercase',
|
|
2666
2662
|
fontSize: 12,
|
|
@@ -2694,9 +2690,6 @@ var dropdownOverrides = {
|
|
|
2694
2690
|
verticalAlign: 'top',
|
|
2695
2691
|
marginLeft: '0.5rem',
|
|
2696
2692
|
},
|
|
2697
|
-
'&.MuiSelect-select': {
|
|
2698
|
-
paddingRight: 12,
|
|
2699
|
-
},
|
|
2700
2693
|
});
|
|
2701
2694
|
},
|
|
2702
2695
|
},
|
|
@@ -2843,14 +2836,6 @@ var inputBaseOverrides = {
|
|
|
2843
2836
|
'&.customSelectInputBackground .MuiInputBase-inputAdornedStart': {
|
|
2844
2837
|
paddingLeft: 36,
|
|
2845
2838
|
},
|
|
2846
|
-
'&.customdropdown': {
|
|
2847
|
-
backgroundColor: '#d6d6d6',
|
|
2848
|
-
borderColor: theme.palette.grey[500],
|
|
2849
|
-
cursor: 'default',
|
|
2850
|
-
'&:hover': {
|
|
2851
|
-
cursor: 'default',
|
|
2852
|
-
},
|
|
2853
|
-
},
|
|
2854
2839
|
});
|
|
2855
2840
|
},
|
|
2856
2841
|
input: {
|
|
@@ -3363,7 +3348,7 @@ var tableCellOverrides = {
|
|
|
3363
3348
|
letterSpacing: '0.07px',
|
|
3364
3349
|
borderLeft: "1px solid #d4d4d4",
|
|
3365
3350
|
background: theme.palette.background.paper,
|
|
3366
|
-
'&:first-
|
|
3351
|
+
'&:first-of-type': {
|
|
3367
3352
|
borderLeft: 'none',
|
|
3368
3353
|
},
|
|
3369
3354
|
});
|
|
@@ -3700,7 +3685,7 @@ function SelectFilterFilledIcon(props) {
|
|
|
3700
3685
|
return (jsxRuntime.jsxs(SvgIcon, __assign({}, props, { viewBox: "0 0 16 16", children: [jsxRuntime.jsx("path", { opacity: ".5", fillRule: "evenodd", clipRule: "evenodd", d: "M9.429 7.41v7.09L6.57 12.727V7.41L4.387 5l8.21-1.048-3.168 3.457z", fill: "currentColor" }), jsxRuntime.jsx("path", { d: "M14 2.386l.37.337a.5.5 0 00.13-.337H14zM9.429 7.41l-.37-.336a.5.5 0 00-.13.336h.5zM14 1.5h.5A.5.5 0 0014 1v.5zm-12 0V1a.5.5 0 00-.5.5H2zm0 .886h-.5a.5.5 0 00.13.337L2 2.386zM6.571 7.41h.5a.5.5 0 00-.13-.336l-.37.336zm0 5.318h-.5a.5.5 0 00.237.425l.263-.425zM9.43 14.5l-.264.425a.5.5 0 00.764-.425h-.5zM13.63 2.05L9.06 7.073l.74.673 4.57-5.023-.739-.673zm-.13-.55v.886h1V1.5h-1zM2 2h12V1H2v1zm.5.386V1.5h-1v.886h1zm4.441 4.687L2.37 2.05l-.74.673 4.572 5.023.74-.673zm.13 5.654V7.41h-1v5.318h1zm2.621 1.348l-2.857-1.773-.527.85 2.857 1.773.527-.85zM8.93 7.41V14.5h1V7.41h-1z", fill: "currentColor" })] })));
|
|
3701
3686
|
}
|
|
3702
3687
|
|
|
3703
|
-
function
|
|
3688
|
+
function CaretIcon(props) {
|
|
3704
3689
|
return (jsxRuntime.jsx(SvgIcon, __assign({}, props, { viewBox: "0 0 6 4", width: "6", height: "4", children: jsxRuntime.jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0 0H6L3 4L0 0Z", fill: "#2F2F2F" }) })));
|
|
3705
3690
|
}
|
|
3706
3691
|
|
|
@@ -4898,7 +4883,7 @@ styles$1.styled(MuiTypography$1)(function (_a) {
|
|
|
4898
4883
|
});
|
|
4899
4884
|
|
|
4900
4885
|
var Autocomplete = function (_a) {
|
|
4901
|
-
var label = _a.label, placeholder = _a.placeholder, _b = _a.platform, platform = _b === void 0 ? 'desktop' : _b, actionLabel = _a.actionLabel, actionClick = _a.actionClick, onChange = _a.onChange, bottomButtonHeight = _a.bottomButtonHeight, rest = __rest(_a, ["label", "placeholder", "platform", "actionLabel", "actionClick", "onChange", "bottomButtonHeight"]);
|
|
4886
|
+
var label = _a.label, placeholder = _a.placeholder, _b = _a.platform, platform = _b === void 0 ? 'desktop' : _b, actionLabel = _a.actionLabel, actionClick = _a.actionClick, onChange = _a.onChange, bottomButtonHeight = _a.bottomButtonHeight, renderInput = _a.renderInput, rest = __rest(_a, ["label", "placeholder", "platform", "actionLabel", "actionClick", "onChange", "bottomButtonHeight", "renderInput"]);
|
|
4902
4887
|
var _c = React.useState(placeholder), inputPlaceholder = _c[0], setInputPlaceholder = _c[1];
|
|
4903
4888
|
var root = React.useRef(null);
|
|
4904
4889
|
var onKeyDownHandler = function (event) {
|
|
@@ -4917,7 +4902,7 @@ var Autocomplete = function (_a) {
|
|
|
4917
4902
|
var CustomPaper = function (props) {
|
|
4918
4903
|
return (jsxRuntime.jsx(StyledPaper, __assign({ bottomButtonHeight: bottomButtonHeight }, props, { placement: "bottom", children: jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [props.children, actionLabel && (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(MuiDivider, {}), jsxRuntime.jsx(material.ListItemButton, { dense: true, onMouseDown: actionClick, children: jsxRuntime.jsx(StyledListContent, { children: jsxRuntime.jsx(Typography, { variant: platform === 'desktop' ? 'body1' : 'body2', align: "center", children: actionLabel }) }) })] }))] }) })));
|
|
4919
4904
|
};
|
|
4920
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [label && jsxRuntime.jsx(InputLabel, { children: label }), jsxRuntime.jsx(MuiAutocomplete, __assign({ disableClearable: true, renderInput: function (params) { return (jsxRuntime.jsx(TextField$1, __assign({}, params, { inputProps: __assign(__assign({}, params.inputProps), { autoComplete: 'off' }), placeholder: inputPlaceholder, className: "customLargeSize" }))); }, PaperComponent: CustomPaper, onChange: function (event, value, reason) {
|
|
4905
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [label && jsxRuntime.jsx(InputLabel, { children: label }), jsxRuntime.jsx(MuiAutocomplete, __assign({ disableClearable: true, renderInput: renderInput ? renderInput : function (params) { return (jsxRuntime.jsx(TextField$1, __assign({}, params, { inputProps: __assign(__assign({}, params.inputProps), { autoComplete: 'off' }), placeholder: inputPlaceholder, className: "customLargeSize" }))); }, PaperComponent: CustomPaper, onChange: function (event, value, reason) {
|
|
4921
4906
|
value && value.length > 0
|
|
4922
4907
|
? setInputPlaceholder('')
|
|
4923
4908
|
: setInputPlaceholder(placeholder);
|
|
@@ -16405,43 +16390,7 @@ var DrawerMenu = React.forwardRef(function DrawMenu(props, ref) {
|
|
|
16405
16390
|
return (jsxRuntime.jsxs(DrawerMenuContainer, __assign({ ref: ref, className: "gds-drawer-menu-item ".concat(variantProp, " ").concat(submenu ? 'gds-drawer-menu-item-sub' : '') }, rest, { children: [startAdornment && !submenu ? (jsxRuntime.jsx(ListItemIcon, { children: startAdornment })) : null, jsxRuntime.jsxs("span", { className: 'gds-drawer-menu-item-text', children: [children, " ", value] })] })));
|
|
16406
16391
|
});
|
|
16407
16392
|
|
|
16408
|
-
function
|
|
16409
|
-
var k, y, str='';
|
|
16410
|
-
if (mix) {
|
|
16411
|
-
if (typeof mix === 'object') {
|
|
16412
|
-
if (Array.isArray(mix)) {
|
|
16413
|
-
for (k=0; k < mix.length; k++) {
|
|
16414
|
-
if (mix[k] && (y = toVal(mix[k]))) {
|
|
16415
|
-
str && (str += ' ');
|
|
16416
|
-
str += y;
|
|
16417
|
-
}
|
|
16418
|
-
}
|
|
16419
|
-
} else {
|
|
16420
|
-
for (k in mix) {
|
|
16421
|
-
if (mix[k] && (y = toVal(k))) {
|
|
16422
|
-
str && (str += ' ');
|
|
16423
|
-
str += y;
|
|
16424
|
-
}
|
|
16425
|
-
}
|
|
16426
|
-
}
|
|
16427
|
-
} else if (typeof mix !== 'boolean' && !mix.call) {
|
|
16428
|
-
str && (str += ' ');
|
|
16429
|
-
str += mix;
|
|
16430
|
-
}
|
|
16431
|
-
}
|
|
16432
|
-
return str;
|
|
16433
|
-
}
|
|
16434
|
-
|
|
16435
|
-
function clsx () {
|
|
16436
|
-
var i=0, x, str='';
|
|
16437
|
-
while (i < arguments.length) {
|
|
16438
|
-
if (x = toVal(arguments[i++])) {
|
|
16439
|
-
str && (str += ' ');
|
|
16440
|
-
str += x;
|
|
16441
|
-
}
|
|
16442
|
-
}
|
|
16443
|
-
return str;
|
|
16444
|
-
}
|
|
16393
|
+
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
16445
16394
|
|
|
16446
16395
|
var StyledInputBase = styles$1.styled(InputBase, {
|
|
16447
16396
|
shouldForwardProp: function (prop) { return prop !== 'textAlignRight'; },
|
|
@@ -17035,20 +16984,20 @@ var RibbonButtonStyled$1 = styles$1.styled(Button$1)({
|
|
|
17035
16984
|
textTransform: 'capitalize',
|
|
17036
16985
|
border: '1px solid transparent',
|
|
17037
16986
|
display: 'flex',
|
|
17038
|
-
'&.
|
|
16987
|
+
'&.caret': {
|
|
17039
16988
|
borderLeft: '1px solid transparent',
|
|
17040
16989
|
},
|
|
17041
16990
|
'&:hover': {
|
|
17042
16991
|
backgroundColor: '#DDE7F3',
|
|
17043
16992
|
borderColor: '#CADEF3',
|
|
17044
|
-
'& .
|
|
16993
|
+
'& .caret': {
|
|
17045
16994
|
borderColor: '#CADEF3',
|
|
17046
16995
|
},
|
|
17047
16996
|
},
|
|
17048
16997
|
'&:active': {
|
|
17049
16998
|
backgroundColor: '#C7DEF3',
|
|
17050
16999
|
borderColor: '#9DC9F4',
|
|
17051
|
-
'& .
|
|
17000
|
+
'& .caret': {
|
|
17052
17001
|
borderColor: '#9DC9F4',
|
|
17053
17002
|
},
|
|
17054
17003
|
},
|
|
@@ -17078,19 +17027,19 @@ var RibbonButtonGroupStyled = styles$1.styled(ButtonGroup)({
|
|
|
17078
17027
|
border: '1px solid transparent',
|
|
17079
17028
|
padding: '0',
|
|
17080
17029
|
display: 'flex',
|
|
17081
|
-
'&.
|
|
17030
|
+
'&.caret': {
|
|
17082
17031
|
border: '1px solid transparent',
|
|
17083
17032
|
},
|
|
17084
17033
|
'&:hover': {
|
|
17085
17034
|
backgroundColor: '#DDE7F3',
|
|
17086
17035
|
borderColor: '#CADEF3',
|
|
17087
|
-
'& .
|
|
17036
|
+
'& .caret': {
|
|
17088
17037
|
borderLeftColor: '#CADEF3',
|
|
17089
17038
|
},
|
|
17090
17039
|
},
|
|
17091
17040
|
'&:active': {
|
|
17092
17041
|
borderColor: '#9DC9F4',
|
|
17093
|
-
'& .
|
|
17042
|
+
'& .caret': {
|
|
17094
17043
|
backgroundColor: '#C7DEF3',
|
|
17095
17044
|
borderLeftColor: '#9DC9F4',
|
|
17096
17045
|
},
|
|
@@ -17103,7 +17052,7 @@ var RibbonButtonGroupStyled = styles$1.styled(ButtonGroup)({
|
|
|
17103
17052
|
borderRightColor: '#CADEF3',
|
|
17104
17053
|
},
|
|
17105
17054
|
});
|
|
17106
|
-
var
|
|
17055
|
+
var RibbonCaretWrapperStyled = styles$1.styled(Button$1)({
|
|
17107
17056
|
'& .MuiButtonGroup-grouped': {
|
|
17108
17057
|
minWidth: 'unset',
|
|
17109
17058
|
},
|
|
@@ -17117,7 +17066,7 @@ var RibbonCaratWrapperStyled = styles$1.styled(Button$1)({
|
|
|
17117
17066
|
border: '1px solid transparent',
|
|
17118
17067
|
padding: '0',
|
|
17119
17068
|
display: 'flex',
|
|
17120
|
-
'&.
|
|
17069
|
+
'&.caret': {
|
|
17121
17070
|
borderLeft: '1px solid transparent',
|
|
17122
17071
|
},
|
|
17123
17072
|
'&:hover': {
|
|
@@ -17125,7 +17074,7 @@ var RibbonCaratWrapperStyled = styles$1.styled(Button$1)({
|
|
|
17125
17074
|
},
|
|
17126
17075
|
'&:active': {
|
|
17127
17076
|
backgroundColor: '#C7DEF3',
|
|
17128
|
-
'& .
|
|
17077
|
+
'& .caret': {
|
|
17129
17078
|
borderLeftColor: '#9DC9F4',
|
|
17130
17079
|
backgroundColor: '#C7DEF3',
|
|
17131
17080
|
},
|
|
@@ -17143,10 +17092,10 @@ var RibbonButtonGroup = React.forwardRef(function RibbonButtonGroup(props, ref)
|
|
|
17143
17092
|
return (jsxRuntime.jsxs(RibbonButtonGroupStyled, __assign({ variant: "outlined", disableRipple: true, ref: ref }, rest, { children: [jsxRuntime.jsx(RibbonButtonStyled, { variant: "outlined", icon: icon, label: label, isWrapped: isWrapped, onClick: function (event) {
|
|
17144
17093
|
event.stopPropagation();
|
|
17145
17094
|
onClick && onClick();
|
|
17146
|
-
} }), jsxRuntime.jsx(
|
|
17095
|
+
} }), jsxRuntime.jsx(RibbonCaretWrapperStyled, { className: "caret", onClick: function (event) {
|
|
17147
17096
|
event.stopPropagation();
|
|
17148
17097
|
onToggle && onToggle();
|
|
17149
|
-
}, children: jsxRuntime.jsx(
|
|
17098
|
+
}, children: jsxRuntime.jsx(CaretIcon, {}) })] })));
|
|
17150
17099
|
});
|
|
17151
17100
|
|
|
17152
17101
|
var RadioGroup = function (props) {
|
|
@@ -17466,18 +17415,18 @@ var TableRow = React.forwardRef(function TableRow(props, ref) {
|
|
|
17466
17415
|
return jsxRuntime.jsx(material.TableRow, __assign({ ref: ref }, props));
|
|
17467
17416
|
});
|
|
17468
17417
|
|
|
17469
|
-
var StyledTabs = material.styled(material.Tabs)(function (
|
|
17470
|
-
var theme =
|
|
17418
|
+
var StyledTabs = material.styled(material.Tabs)(function (_a) {
|
|
17419
|
+
var theme = _a.theme, orientation = _a.orientation;
|
|
17471
17420
|
return {
|
|
17472
17421
|
'&.MuiTabs-root': {
|
|
17473
17422
|
flexGrow: 1,
|
|
17474
17423
|
backgroundColor: theme.palette.grey[200],
|
|
17475
|
-
boxShadow:
|
|
17476
|
-
height:
|
|
17477
|
-
minHeight:
|
|
17424
|
+
boxShadow: orientation === 'vertical' ? 'none' : 'inset 0 -1px 0 0 #D4D4D4',
|
|
17425
|
+
height: orientation === 'vertical' ? 'inherit' : 36,
|
|
17426
|
+
minHeight: orientation === 'vertical' ? 'inherit' : 36,
|
|
17478
17427
|
},
|
|
17479
17428
|
'& .MuiTabs-scroller': {
|
|
17480
|
-
height:
|
|
17429
|
+
height: orientation === 'vertical' ? 'inherit' : 36,
|
|
17481
17430
|
},
|
|
17482
17431
|
'& .MuiTabs-indicator': {
|
|
17483
17432
|
display: 'none',
|
|
@@ -17617,9 +17566,9 @@ exports.ButtonFilterIcon = ButtonFilterIcon;
|
|
|
17617
17566
|
exports.BylawyersIcon = Bylawyers16Icon;
|
|
17618
17567
|
exports.CalendarIcon = CalendarIcon;
|
|
17619
17568
|
exports.CalendarRibbonIcon = CalendarRibbonIcon;
|
|
17620
|
-
exports.CaratIcon = CaratIcon;
|
|
17621
17569
|
exports.Card = Card;
|
|
17622
17570
|
exports.CaretDown12Icon = CaretDown12Icon;
|
|
17571
|
+
exports.CaretIcon = CaretIcon;
|
|
17623
17572
|
exports.CaretUp12Icon = CaretUp12Icon;
|
|
17624
17573
|
exports.Checkbox = Checkbox;
|
|
17625
17574
|
exports.ChevronDownIcon = ChevronDownIcon;
|