@galaxy-ds/core 1.1.74 → 1.1.76
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 +4 -0
- package/dist/FormHeader/FormHeader.d.ts +2 -2
- package/dist/index.esm.js +79 -70
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +79 -70
- package/dist/index.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/Icons/Reciept.d.ts +0 -3
|
@@ -27,6 +27,10 @@ export interface AutocompleteProps {
|
|
|
27
27
|
* If true, the Autocomplete is free solo, meaning that the user input is not bound to provided options.
|
|
28
28
|
*/
|
|
29
29
|
freeSolo?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If true, sets the Autocomplete text field to readonly.
|
|
32
|
+
*/
|
|
33
|
+
textFieldReadOnly?: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* Used to determine the string value for a given option. It's used to fill the input (and the list box options if renderOption is not provided).
|
|
32
36
|
*/
|
package/dist/index.esm.js
CHANGED
|
@@ -33339,9 +33339,10 @@ var useStyles$y = makeStyles(function (theme) {
|
|
|
33339
33339
|
});
|
|
33340
33340
|
});
|
|
33341
33341
|
var Autocomplete = function (_a) {
|
|
33342
|
-
var
|
|
33342
|
+
var _b;
|
|
33343
|
+
var label = _a.label, placeholder = _a.placeholder, _c = _a.platform, platform = _c === void 0 ? 'desktop' : _c, actionLabel = _a.actionLabel, actionClick = _a.actionClick, onChange = _a.onChange, bottomButtonHeight = _a.bottomButtonHeight, textFieldReadOnly = _a.textFieldReadOnly, rest = __rest(_a, ["label", "placeholder", "platform", "actionLabel", "actionClick", "onChange", "bottomButtonHeight", "textFieldReadOnly"]);
|
|
33343
33344
|
var classes = useStyles$y({ platform: platform, bottomButtonHeight: bottomButtonHeight });
|
|
33344
|
-
var
|
|
33345
|
+
var _d = useState(!((_b = rest.defaultValue) === null || _b === void 0 ? void 0 : _b.length) ? placeholder : null), inputPlaceholder = _d[0], setInputPlaceholder = _d[1];
|
|
33345
33346
|
var root = useRef(null);
|
|
33346
33347
|
var onKeyDownHandler = function (event) {
|
|
33347
33348
|
var inputRootEl = root.current.getElementsByClassName('MuiAutocomplete-inputRoot')[0];
|
|
@@ -33365,7 +33366,7 @@ var Autocomplete = function (_a) {
|
|
|
33365
33366
|
};
|
|
33366
33367
|
return (React__default.createElement(React__default.Fragment, null,
|
|
33367
33368
|
label && React__default.createElement(InputLabel, null, label),
|
|
33368
|
-
React__default.createElement(MuiAutocomplete, __assign$1({ classes: classes, disableClearable: true, renderInput: function (params) { return (React__default.createElement(TextField$1, __assign$1({}, params, { inputProps: __assign$1(__assign$1({}, params.inputProps), { autoComplete:
|
|
33369
|
+
React__default.createElement(MuiAutocomplete, __assign$1({ classes: classes, disableClearable: true, renderInput: function (params) { return (React__default.createElement(TextField$1, __assign$1({}, params, { inputProps: __assign$1(__assign$1({}, params.inputProps), { autoComplete: "new-password", readOnly: textFieldReadOnly }), placeholder: inputPlaceholder, className: "customLargeSize" }))); }, PaperComponent: CustomPaper, onChange: function (event, value, reason) {
|
|
33369
33370
|
value && value.length > 0
|
|
33370
33371
|
? setInputPlaceholder(null)
|
|
33371
33372
|
: setInputPlaceholder(placeholder);
|
|
@@ -34234,82 +34235,90 @@ function LawconnectIcon(props) {
|
|
|
34234
34235
|
React__default.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M21.163 119.104a69.739 69.739 0 0049.313 20.426h.133a69.68 69.68 0 0064.35-43.067 69.663 69.663 0 005.281-26.673h-33.528v.042a36.23 36.23 0 01-22.382 33.464 36.236 36.236 0 11-13.853-69.718V.05a69.74 69.74 0 00-49.314 119.054zm119.049-95.585c0 12.962-10.507 23.47-23.469 23.47-12.962 0-23.47-10.508-23.47-23.47S103.782.049 116.744.049s23.469 10.508 23.469 23.47z", fill: "#ecedef" })));
|
|
34235
34236
|
}
|
|
34236
34237
|
|
|
34237
|
-
var useStyles$m = makeStyles({
|
|
34238
|
-
|
|
34239
|
-
|
|
34240
|
-
|
|
34241
|
-
|
|
34242
|
-
|
|
34243
|
-
|
|
34244
|
-
|
|
34245
|
-
|
|
34246
|
-
|
|
34247
|
-
|
|
34248
|
-
|
|
34249
|
-
|
|
34250
|
-
|
|
34251
|
-
|
|
34252
|
-
|
|
34253
|
-
|
|
34254
|
-
|
|
34255
|
-
|
|
34256
|
-
|
|
34257
|
-
|
|
34258
|
-
|
|
34259
|
-
|
|
34260
|
-
|
|
34261
|
-
|
|
34262
|
-
|
|
34263
|
-
|
|
34264
|
-
|
|
34265
|
-
|
|
34266
|
-
maxHeight: 77,
|
|
34267
|
-
overflowY: "auto",
|
|
34268
|
-
zIndex: 9,
|
|
34269
|
-
marginTop: 10,
|
|
34270
|
-
},
|
|
34271
|
-
'& .gds-header_divider': {
|
|
34272
|
-
height: 16,
|
|
34273
|
-
},
|
|
34274
|
-
"& .gds-header_info": {
|
|
34275
|
-
paddingTop: 0,
|
|
34276
|
-
paddingBottom: 0,
|
|
34277
|
-
flexWrap: 'nowrap',
|
|
34278
|
-
"& p": {
|
|
34279
|
-
fontWeight: 500,
|
|
34280
|
-
color: "#6d7278",
|
|
34281
|
-
whiteSpace: 'nowrap'
|
|
34238
|
+
var useStyles$m = makeStyles(function (theme) {
|
|
34239
|
+
var _a;
|
|
34240
|
+
return ({
|
|
34241
|
+
root: {
|
|
34242
|
+
'&.gds-header': {
|
|
34243
|
+
overflow: 'hidden',
|
|
34244
|
+
backgroundColor: '#F9F9F9',
|
|
34245
|
+
position: 'relative',
|
|
34246
|
+
padding: 16,
|
|
34247
|
+
minHeight: 81,
|
|
34248
|
+
display: 'flex',
|
|
34249
|
+
flexDirection: 'column',
|
|
34250
|
+
},
|
|
34251
|
+
'& .gds-header_detail': {
|
|
34252
|
+
display: 'flex',
|
|
34253
|
+
alignItems: 'center',
|
|
34254
|
+
zIndex: 9,
|
|
34255
|
+
position: 'relative',
|
|
34256
|
+
minHeight: 21,
|
|
34257
|
+
'& button': {
|
|
34258
|
+
fontSize: 12,
|
|
34259
|
+
},
|
|
34260
|
+
},
|
|
34261
|
+
'& .gds-header_accent': {
|
|
34262
|
+
position: 'absolute',
|
|
34263
|
+
top: -78,
|
|
34264
|
+
right: 32,
|
|
34265
|
+
zIndex: 1,
|
|
34266
|
+
opacity: '0.7',
|
|
34282
34267
|
},
|
|
34283
|
-
|
|
34268
|
+
'& .gds-header_content': {
|
|
34269
|
+
maxHeight: 77,
|
|
34270
|
+
overflowY: 'auto',
|
|
34271
|
+
zIndex: 9,
|
|
34272
|
+
marginTop: 10,
|
|
34273
|
+
},
|
|
34274
|
+
'& .gds-header_divider': {
|
|
34275
|
+
height: 16,
|
|
34276
|
+
},
|
|
34277
|
+
'& .gds-header_info': (_a = {
|
|
34278
|
+
paddingTop: 0,
|
|
34279
|
+
paddingBottom: 0
|
|
34280
|
+
},
|
|
34281
|
+
_a[theme.breakpoints.down('sm')] = {
|
|
34282
|
+
justifyContent: 'flex-start',
|
|
34283
|
+
},
|
|
34284
|
+
_a[theme.breakpoints.up('sm')] = {
|
|
34285
|
+
justifyContent: 'flex-end',
|
|
34286
|
+
},
|
|
34287
|
+
_a['& p'] = {
|
|
34288
|
+
fontWeight: 500,
|
|
34289
|
+
color: '#6d7278',
|
|
34290
|
+
whiteSpace: 'nowrap',
|
|
34291
|
+
},
|
|
34292
|
+
_a['& .MuiButton-label'] = {
|
|
34293
|
+
top: 0,
|
|
34294
|
+
},
|
|
34295
|
+
_a['& .MuiButtonBase-root'] = {
|
|
34296
|
+
paddingTop: 0,
|
|
34297
|
+
paddingBottom: 0,
|
|
34298
|
+
height: 21,
|
|
34299
|
+
},
|
|
34300
|
+
_a),
|
|
34301
|
+
'&.gds-header-fixed': {
|
|
34302
|
+
position: 'absolute',
|
|
34284
34303
|
top: 0,
|
|
34304
|
+
left: 0,
|
|
34305
|
+
right: 0,
|
|
34306
|
+
width: '100%',
|
|
34285
34307
|
},
|
|
34286
|
-
"& .MuiButtonBase-root": {
|
|
34287
|
-
paddingTop: 0,
|
|
34288
|
-
paddingBottom: 0,
|
|
34289
|
-
height: 21
|
|
34290
|
-
}
|
|
34291
|
-
},
|
|
34292
|
-
"&.gds-header-fixed": {
|
|
34293
|
-
position: 'absolute',
|
|
34294
|
-
top: 0,
|
|
34295
|
-
left: 0,
|
|
34296
|
-
right: 0,
|
|
34297
|
-
width: '100%'
|
|
34298
34308
|
},
|
|
34299
|
-
}
|
|
34309
|
+
});
|
|
34300
34310
|
});
|
|
34301
34311
|
var FormHeader = React__default.forwardRef(function (props, ref) {
|
|
34302
34312
|
var classes = useStyles$m();
|
|
34303
34313
|
return (React__default.createElement(Box$2, { className: clsx(classes.root, 'gds-header', props.fixed ? 'gds-header-fixed' : '') },
|
|
34304
|
-
props.hideBranding ? "" :
|
|
34305
|
-
React__default.createElement(
|
|
34306
|
-
|
|
34307
|
-
|
|
34308
|
-
React__default.createElement(Grid$2, { item: true, xs:
|
|
34309
|
-
|
|
34310
|
-
React__default.createElement(Grid$2, { container: true, alignItems: "center", justifyContent: "flex-end", className: clsx(classes.root, 'gds-header_info') },
|
|
34314
|
+
props.hideBranding ? ('') : (React__default.createElement("div", { className: clsx(classes.root, 'gds-header_accent') },
|
|
34315
|
+
React__default.createElement(LawconnectIcon, { size: "260" }))),
|
|
34316
|
+
React__default.createElement(Grid$2, { container: true, className: clsx(classes.root, 'gds-header_detail') },
|
|
34317
|
+
React__default.createElement(Grid$2, { item: true, xs: 12, sm: 5, className: clsx('gds-toolbar-title') }, props.platformWeb ? (React__default.createElement(Typography, { color: "default", variant: "body2", upperCase: true }, props.title)) : (React__default.createElement(Typography, { variant: "h4", upperCase: true }, props.title))),
|
|
34318
|
+
React__default.createElement(Grid$2, { item: true, xs: 12, sm: 7 },
|
|
34319
|
+
React__default.createElement(Grid$2, { container: true, className: clsx(classes.root, 'gds-header_info') },
|
|
34311
34320
|
props.from ? (React__default.createElement(Typography, { align: "right", variant: "body2" }, props.from)) : null,
|
|
34312
|
-
props.from && props.onClick ? React__default.createElement(Divider, { orientation: "vertical" }) : null,
|
|
34321
|
+
props.from && props.onClick ? (React__default.createElement(Divider, { orientation: "vertical" })) : null,
|
|
34313
34322
|
props.onClick ? (React__default.createElement(Button, { color: "primary", variant: "text", onClick: props.onClick }, "Change")) : null))),
|
|
34314
34323
|
React__default.createElement("div", { className: clsx(classes.root, 'gds-header_content') }, props.children)));
|
|
34315
34324
|
});
|