@galaxy-ds/core 2.0.17 → 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/Tabs/Tabs.d.ts +1 -4
- package/dist/Tabs/Tabs.styled.d.ts +1 -4
- package/dist/index.esm.js +12 -63
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -63
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AutocompleteProps as MuiAutocompleteProps } from '@mui/material';
|
|
2
|
-
export interface AutocompleteProps extends MuiAutocompleteProps<any, boolean, boolean, boolean> {
|
|
2
|
+
export interface AutocompleteProps extends Omit<MuiAutocompleteProps<any, boolean, boolean, boolean>, 'renderInput'> {
|
|
3
3
|
/**
|
|
4
4
|
* Custom action label to prepend at the bottom of the option list.
|
|
5
5
|
*/
|
|
@@ -21,4 +21,8 @@ export interface AutocompleteProps extends MuiAutocompleteProps<any, boolean, bo
|
|
|
21
21
|
* Deprecated. Now styles automatically change based on theme.
|
|
22
22
|
*/
|
|
23
23
|
platform?: 'desktop' | 'web';
|
|
24
|
+
/**
|
|
25
|
+
* Optional, as Galaxy has a default renderInput prop.
|
|
26
|
+
* */
|
|
27
|
+
renderInput?: MuiAutocompleteProps<any, boolean, boolean, boolean>['renderInput'];
|
|
24
28
|
}
|
package/dist/Tabs/Tabs.d.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { Theme } from '@mui/material';
|
|
2
1
|
import { TabsProps } from './Tabs.types';
|
|
3
|
-
export declare const Tabs: (props: TabsProps
|
|
4
|
-
theme: Theme;
|
|
5
|
-
}) => import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare const Tabs: (props: TabsProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
3
|
export default Tabs;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { Theme } from '@mui/material';
|
|
3
|
-
import { TabsProps } from './Tabs.types';
|
|
4
3
|
export declare const StyledTabs: import("@emotion/styled").StyledComponent<import("@mui/material").TabsOwnProps & import("@mui/material/OverridableComponent").CommonProps & Omit<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
5
4
|
ref?: import("react").Ref<HTMLDivElement>;
|
|
6
|
-
}, "children" | "style" | "classes" | "className" | "slots" | "slotProps" | "sx" | "aria-label" | "aria-labelledby" | "onChange" | "action" | "variant" | "value" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import("@mui/system").MUIStyledCommonProps<Theme
|
|
7
|
-
theme: Theme;
|
|
8
|
-
}, {}, {}>;
|
|
5
|
+
}, "children" | "style" | "classes" | "className" | "slots" | "slotProps" | "sx" | "aria-label" | "aria-labelledby" | "onChange" | "action" | "variant" | "value" | "orientation" | "allowScrollButtonsMobile" | "centered" | "indicatorColor" | "ScrollButtonComponent" | "scrollButtons" | "selectionFollowsFocus" | "TabIndicatorProps" | "TabScrollButtonProps" | "textColor" | "visibleScrollbar"> & import("@mui/system").MUIStyledCommonProps<Theme>, {}, {}>;
|
package/dist/index.esm.js
CHANGED
|
@@ -1110,7 +1110,6 @@ var dropdownOverrides$1 = {
|
|
|
1110
1110
|
height: 30,
|
|
1111
1111
|
lineHeight: '30px',
|
|
1112
1112
|
}, '& .customSelectInputBackground': {
|
|
1113
|
-
backgroundColor: 'red',
|
|
1114
1113
|
borderColor: theme.palette.grey[500],
|
|
1115
1114
|
cursor: 'default',
|
|
1116
1115
|
'&:hover': {
|
|
@@ -1768,7 +1767,7 @@ var tableCellOverrides$1 = {
|
|
|
1768
1767
|
borderTop: "1px solid #d4d4d4",
|
|
1769
1768
|
borderLeft: "1px solid #d4d4d4",
|
|
1770
1769
|
padding: '8px 16px',
|
|
1771
|
-
'&:first-
|
|
1770
|
+
'&:first-of-type': {
|
|
1772
1771
|
borderLeft: 'none',
|
|
1773
1772
|
},
|
|
1774
1773
|
},
|
|
@@ -2449,12 +2448,9 @@ var checkboxOverrides = {
|
|
|
2449
2448
|
content: '""',
|
|
2450
2449
|
display: 'none',
|
|
2451
2450
|
position: 'absolute',
|
|
2452
|
-
top: -1,
|
|
2453
|
-
left: -1,
|
|
2454
2451
|
width: 14,
|
|
2455
2452
|
height: 14,
|
|
2456
2453
|
backgroundColor: '#fef7f0',
|
|
2457
|
-
border: "1px solid #d4d4d4",
|
|
2458
2454
|
},
|
|
2459
2455
|
'& input:focus': {
|
|
2460
2456
|
borderColor: theme.palette.primary.main,
|
|
@@ -2658,7 +2654,7 @@ var dropdownOverrides = {
|
|
|
2658
2654
|
select: function (_a) {
|
|
2659
2655
|
var theme = _a.theme;
|
|
2660
2656
|
return ({
|
|
2661
|
-
padding: '
|
|
2657
|
+
padding: '12px 12px 12px 16px',
|
|
2662
2658
|
lineHeight: 1,
|
|
2663
2659
|
textTransform: 'uppercase',
|
|
2664
2660
|
fontSize: 12,
|
|
@@ -2692,9 +2688,6 @@ var dropdownOverrides = {
|
|
|
2692
2688
|
verticalAlign: 'top',
|
|
2693
2689
|
marginLeft: '0.5rem',
|
|
2694
2690
|
},
|
|
2695
|
-
'&.MuiSelect-select': {
|
|
2696
|
-
paddingRight: 12,
|
|
2697
|
-
},
|
|
2698
2691
|
});
|
|
2699
2692
|
},
|
|
2700
2693
|
},
|
|
@@ -2841,14 +2834,6 @@ var inputBaseOverrides = {
|
|
|
2841
2834
|
'&.customSelectInputBackground .MuiInputBase-inputAdornedStart': {
|
|
2842
2835
|
paddingLeft: 36,
|
|
2843
2836
|
},
|
|
2844
|
-
'&.customdropdown': {
|
|
2845
|
-
backgroundColor: '#d6d6d6',
|
|
2846
|
-
borderColor: theme.palette.grey[500],
|
|
2847
|
-
cursor: 'default',
|
|
2848
|
-
'&:hover': {
|
|
2849
|
-
cursor: 'default',
|
|
2850
|
-
},
|
|
2851
|
-
},
|
|
2852
2837
|
});
|
|
2853
2838
|
},
|
|
2854
2839
|
input: {
|
|
@@ -3361,7 +3346,7 @@ var tableCellOverrides = {
|
|
|
3361
3346
|
letterSpacing: '0.07px',
|
|
3362
3347
|
borderLeft: "1px solid #d4d4d4",
|
|
3363
3348
|
background: theme.palette.background.paper,
|
|
3364
|
-
'&:first-
|
|
3349
|
+
'&:first-of-type': {
|
|
3365
3350
|
borderLeft: 'none',
|
|
3366
3351
|
},
|
|
3367
3352
|
});
|
|
@@ -4896,7 +4881,7 @@ styled(MuiTypography$1)(function (_a) {
|
|
|
4896
4881
|
});
|
|
4897
4882
|
|
|
4898
4883
|
var Autocomplete = function (_a) {
|
|
4899
|
-
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"]);
|
|
4884
|
+
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"]);
|
|
4900
4885
|
var _c = useState(placeholder), inputPlaceholder = _c[0], setInputPlaceholder = _c[1];
|
|
4901
4886
|
var root = useRef(null);
|
|
4902
4887
|
var onKeyDownHandler = function (event) {
|
|
@@ -4915,7 +4900,7 @@ var Autocomplete = function (_a) {
|
|
|
4915
4900
|
var CustomPaper = function (props) {
|
|
4916
4901
|
return (jsx(StyledPaper, __assign({ bottomButtonHeight: bottomButtonHeight }, props, { placement: "bottom", children: jsxs(Fragment, { children: [props.children, actionLabel && (jsxs(Fragment, { children: [jsx(MuiDivider, {}), jsx(ListItemButton, { dense: true, onMouseDown: actionClick, children: jsx(StyledListContent, { children: jsx(Typography, { variant: platform === 'desktop' ? 'body1' : 'body2', align: "center", children: actionLabel }) }) })] }))] }) })));
|
|
4917
4902
|
};
|
|
4918
|
-
return (jsxs(Fragment, { children: [label && jsx(InputLabel, { children: label }), jsx(MuiAutocomplete, __assign({ disableClearable: true, renderInput: function (params) { return (jsx(TextField$1, __assign({}, params, { inputProps: __assign(__assign({}, params.inputProps), { autoComplete: 'off' }), placeholder: inputPlaceholder, className: "customLargeSize" }))); }, PaperComponent: CustomPaper, onChange: function (event, value, reason) {
|
|
4903
|
+
return (jsxs(Fragment, { children: [label && jsx(InputLabel, { children: label }), jsx(MuiAutocomplete, __assign({ disableClearable: true, renderInput: renderInput ? renderInput : function (params) { return (jsx(TextField$1, __assign({}, params, { inputProps: __assign(__assign({}, params.inputProps), { autoComplete: 'off' }), placeholder: inputPlaceholder, className: "customLargeSize" }))); }, PaperComponent: CustomPaper, onChange: function (event, value, reason) {
|
|
4919
4904
|
value && value.length > 0
|
|
4920
4905
|
? setInputPlaceholder('')
|
|
4921
4906
|
: setInputPlaceholder(placeholder);
|
|
@@ -16403,43 +16388,7 @@ var DrawerMenu = React.forwardRef(function DrawMenu(props, ref) {
|
|
|
16403
16388
|
return (jsxs(DrawerMenuContainer, __assign({ ref: ref, className: "gds-drawer-menu-item ".concat(variantProp, " ").concat(submenu ? 'gds-drawer-menu-item-sub' : '') }, rest, { children: [startAdornment && !submenu ? (jsx(ListItemIcon, { children: startAdornment })) : null, jsxs("span", { className: 'gds-drawer-menu-item-text', children: [children, " ", value] })] })));
|
|
16404
16389
|
});
|
|
16405
16390
|
|
|
16406
|
-
function
|
|
16407
|
-
var k, y, str='';
|
|
16408
|
-
if (mix) {
|
|
16409
|
-
if (typeof mix === 'object') {
|
|
16410
|
-
if (Array.isArray(mix)) {
|
|
16411
|
-
for (k=0; k < mix.length; k++) {
|
|
16412
|
-
if (mix[k] && (y = toVal(mix[k]))) {
|
|
16413
|
-
str && (str += ' ');
|
|
16414
|
-
str += y;
|
|
16415
|
-
}
|
|
16416
|
-
}
|
|
16417
|
-
} else {
|
|
16418
|
-
for (k in mix) {
|
|
16419
|
-
if (mix[k] && (y = toVal(k))) {
|
|
16420
|
-
str && (str += ' ');
|
|
16421
|
-
str += y;
|
|
16422
|
-
}
|
|
16423
|
-
}
|
|
16424
|
-
}
|
|
16425
|
-
} else if (typeof mix !== 'boolean' && !mix.call) {
|
|
16426
|
-
str && (str += ' ');
|
|
16427
|
-
str += mix;
|
|
16428
|
-
}
|
|
16429
|
-
}
|
|
16430
|
-
return str;
|
|
16431
|
-
}
|
|
16432
|
-
|
|
16433
|
-
function clsx () {
|
|
16434
|
-
var i=0, x, str='';
|
|
16435
|
-
while (i < arguments.length) {
|
|
16436
|
-
if (x = toVal(arguments[i++])) {
|
|
16437
|
-
str && (str += ' ');
|
|
16438
|
-
str += x;
|
|
16439
|
-
}
|
|
16440
|
-
}
|
|
16441
|
-
return str;
|
|
16442
|
-
}
|
|
16391
|
+
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}
|
|
16443
16392
|
|
|
16444
16393
|
var StyledInputBase = styled(InputBase, {
|
|
16445
16394
|
shouldForwardProp: function (prop) { return prop !== 'textAlignRight'; },
|
|
@@ -17464,18 +17413,18 @@ var TableRow = React.forwardRef(function TableRow(props, ref) {
|
|
|
17464
17413
|
return jsx(TableRow$1, __assign({ ref: ref }, props));
|
|
17465
17414
|
});
|
|
17466
17415
|
|
|
17467
|
-
var StyledTabs = styled$1(Tabs$1)(function (
|
|
17468
|
-
var theme =
|
|
17416
|
+
var StyledTabs = styled$1(Tabs$1)(function (_a) {
|
|
17417
|
+
var theme = _a.theme, orientation = _a.orientation;
|
|
17469
17418
|
return {
|
|
17470
17419
|
'&.MuiTabs-root': {
|
|
17471
17420
|
flexGrow: 1,
|
|
17472
17421
|
backgroundColor: theme.palette.grey[200],
|
|
17473
|
-
boxShadow:
|
|
17474
|
-
height:
|
|
17475
|
-
minHeight:
|
|
17422
|
+
boxShadow: orientation === 'vertical' ? 'none' : 'inset 0 -1px 0 0 #D4D4D4',
|
|
17423
|
+
height: orientation === 'vertical' ? 'inherit' : 36,
|
|
17424
|
+
minHeight: orientation === 'vertical' ? 'inherit' : 36,
|
|
17476
17425
|
},
|
|
17477
17426
|
'& .MuiTabs-scroller': {
|
|
17478
|
-
height:
|
|
17427
|
+
height: orientation === 'vertical' ? 'inherit' : 36,
|
|
17479
17428
|
},
|
|
17480
17429
|
'& .MuiTabs-indicator': {
|
|
17481
17430
|
display: 'none',
|