@luscii-healthtech/web-ui 2.47.4 → 2.47.6
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/components/Button/Button.types.d.ts +2 -2
- package/dist/components/EmptyListMessage/EmptyListMessage.d.ts +3 -3
- package/dist/components/Page/Page.d.ts +1 -3
- package/dist/components/Steps/Steps.d.ts +1 -1
- package/dist/web-ui.cjs.development.js +32 -17
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.js +32 -17
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +6 -5
|
@@ -13,7 +13,7 @@ export declare const BUTTON_ROLES: {
|
|
|
13
13
|
readonly ICON: "icon";
|
|
14
14
|
};
|
|
15
15
|
declare type BUTTON_KEYS = keyof typeof BUTTON_ROLES;
|
|
16
|
-
export declare type BUTTON_TYPE = typeof BUTTON_ROLES[BUTTON_KEYS];
|
|
16
|
+
export declare type BUTTON_TYPE = (typeof BUTTON_ROLES)[BUTTON_KEYS];
|
|
17
17
|
export declare type ButtonType = "button" | "submit";
|
|
18
18
|
export interface ButtonProps extends RestPropped {
|
|
19
19
|
text?: string;
|
|
@@ -23,7 +23,7 @@ export interface ButtonProps extends RestPropped {
|
|
|
23
23
|
link?: string;
|
|
24
24
|
isPending?: boolean;
|
|
25
25
|
isDisabled?: boolean;
|
|
26
|
-
onClick?: (arg:
|
|
26
|
+
onClick?: (arg: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
27
27
|
className?: string;
|
|
28
28
|
iconName?: string;
|
|
29
29
|
hasIcon?: boolean;
|
|
@@ -19,9 +19,8 @@ export type Breadcrumb = {
|
|
|
19
19
|
* @typedef {{ name?: string, icon?: string|Object, link?: string}} Breadcrumb
|
|
20
20
|
*
|
|
21
21
|
*/
|
|
22
|
-
declare function Page({ dataTestId,
|
|
22
|
+
declare function Page({ dataTestId, title, accessories, accessoryPosition, className, children, content, isLoading, isPolling, spinnerColor, navLayoutProps, feedbackBlock, navMenu, id, }: {
|
|
23
23
|
dataTestId?: string | undefined;
|
|
24
|
-
breadcrumbs: any;
|
|
25
24
|
title: any;
|
|
26
25
|
accessories: any;
|
|
27
26
|
accessoryPosition?: string | undefined;
|
|
@@ -32,7 +31,6 @@ declare function Page({ dataTestId, breadcrumbs, title, accessories, accessoryPo
|
|
|
32
31
|
isPolling?: boolean | undefined;
|
|
33
32
|
spinnerColor?: string | undefined;
|
|
34
33
|
navLayoutProps?: {} | undefined;
|
|
35
|
-
showFeedbackBlock?: boolean | undefined;
|
|
36
34
|
feedbackBlock?: JSX.Element | undefined;
|
|
37
35
|
navMenu: any;
|
|
38
36
|
id: any;
|
|
@@ -6,5 +6,5 @@ interface StepsProps {
|
|
|
6
6
|
step: string;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
export declare const Steps: ({ orderedStepTitles, currentStep, className, localization }: StepsProps) => JSX.Element;
|
|
9
|
+
export declare const Steps: ({ orderedStepTitles, currentStep, className, localization, }: StepsProps) => JSX.Element;
|
|
10
10
|
export {};
|
|
@@ -2373,10 +2373,14 @@ var Carousel = function Carousel(_ref) {
|
|
|
2373
2373
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2374
2374
|
className: "glider-track h-full"
|
|
2375
2375
|
}, slides == null ? void 0 : slides.map(function (slide, index) {
|
|
2376
|
-
return
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2376
|
+
return (
|
|
2377
|
+
/*#__PURE__*/
|
|
2378
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
2379
|
+
React__default.createElement("div", {
|
|
2380
|
+
key: index,
|
|
2381
|
+
className: "overflow-hidden"
|
|
2382
|
+
}, slide)
|
|
2383
|
+
);
|
|
2380
2384
|
}))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null);
|
|
2381
2385
|
};
|
|
2382
2386
|
|
|
@@ -3245,12 +3249,14 @@ var Dropdown = /*#__PURE__*/function (_PureComponent) {
|
|
|
3245
3249
|
_proto.render = function render() {
|
|
3246
3250
|
var _this2 = this;
|
|
3247
3251
|
|
|
3248
|
-
|
|
3252
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
3249
3253
|
var _this$props = this.props,
|
|
3250
3254
|
_this$props$placehold = _this$props.placeholder,
|
|
3251
3255
|
placeholder = _this$props$placehold === void 0 ? "" : _this$props$placehold,
|
|
3252
3256
|
className = _this$props.className,
|
|
3253
3257
|
otherProps = _objectWithoutPropertiesLoose(_this$props, _excluded$b);
|
|
3258
|
+
/* eslint-enable @typescript-eslint/no-unused-vars */
|
|
3259
|
+
|
|
3254
3260
|
|
|
3255
3261
|
var _this$state2 = this.state,
|
|
3256
3262
|
selectedItem = _this$state2.selectedItem,
|
|
@@ -3388,18 +3394,22 @@ function InfoBlock(_ref) {
|
|
|
3388
3394
|
}
|
|
3389
3395
|
|
|
3390
3396
|
var InfoField = function InfoField(props) {
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
+
React.useEffect(function () {
|
|
3398
|
+
var clipboard = new ClipboardJS("button");
|
|
3399
|
+
clipboard.on("success", function (e) {
|
|
3400
|
+
props.onCopyToClipboard && props.onCopyToClipboard();
|
|
3401
|
+
e.clearSelection();
|
|
3402
|
+
});
|
|
3403
|
+
return function () {
|
|
3404
|
+
return clipboard.destroy();
|
|
3405
|
+
};
|
|
3406
|
+
}, [props.onCopyToClipboard]);
|
|
3397
3407
|
var containerProps;
|
|
3398
3408
|
|
|
3399
3409
|
switch (props.linkType) {
|
|
3400
3410
|
case "link":
|
|
3401
|
-
ContainerElement = "a";
|
|
3402
3411
|
containerProps = {
|
|
3412
|
+
element: "a",
|
|
3403
3413
|
href: props.value,
|
|
3404
3414
|
target: "_blank",
|
|
3405
3415
|
rel: "noopener noreferrer"
|
|
@@ -3407,15 +3417,15 @@ var InfoField = function InfoField(props) {
|
|
|
3407
3417
|
break;
|
|
3408
3418
|
|
|
3409
3419
|
case "tel":
|
|
3410
|
-
ContainerElement = "a";
|
|
3411
3420
|
containerProps = {
|
|
3421
|
+
element: "a",
|
|
3412
3422
|
href: "tel:" + props.value
|
|
3413
3423
|
};
|
|
3414
3424
|
break;
|
|
3415
3425
|
|
|
3416
3426
|
case "clipboard":
|
|
3417
|
-
ContainerElement = "button";
|
|
3418
3427
|
containerProps = {
|
|
3428
|
+
element: "button",
|
|
3419
3429
|
type: "button",
|
|
3420
3430
|
"data-clipboard-text": props.value
|
|
3421
3431
|
};
|
|
@@ -3423,10 +3433,13 @@ var InfoField = function InfoField(props) {
|
|
|
3423
3433
|
|
|
3424
3434
|
case "none":
|
|
3425
3435
|
default:
|
|
3426
|
-
|
|
3436
|
+
containerProps = {
|
|
3437
|
+
element: "div"
|
|
3438
|
+
};
|
|
3427
3439
|
break;
|
|
3428
3440
|
}
|
|
3429
3441
|
|
|
3442
|
+
var ContainerElement = containerProps.element;
|
|
3430
3443
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
3431
3444
|
className: classNames("flex flex-row align-center items-center", props.className)
|
|
3432
3445
|
}, props.icon, /*#__PURE__*/React__default.createElement(ContainerElement, _extends({
|
|
@@ -5045,7 +5058,9 @@ var Steps = function Steps(_ref) {
|
|
|
5045
5058
|
className = _ref.className,
|
|
5046
5059
|
localization = _ref.localization;
|
|
5047
5060
|
var renderedSteps = orderedStepTitles.map(function (stepTitle, index) {
|
|
5048
|
-
return /*#__PURE__*/React__default.createElement(Step
|
|
5061
|
+
return /*#__PURE__*/React__default.createElement(Step // eslint-disable-next-line react/no-array-index-key
|
|
5062
|
+
, {
|
|
5063
|
+
// eslint-disable-next-line react/no-array-index-key
|
|
5049
5064
|
key: "step-" + index + "-" + stepTitle.split(" ")[0],
|
|
5050
5065
|
title: stepTitle,
|
|
5051
5066
|
stepNumber: index + 1,
|
|
@@ -6213,7 +6228,7 @@ var TabLinksSelect = function TabLinksSelect(_ref) {
|
|
|
6213
6228
|
value: url,
|
|
6214
6229
|
label: text
|
|
6215
6230
|
};
|
|
6216
|
-
});
|
|
6231
|
+
}); // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
6217
6232
|
|
|
6218
6233
|
var handleChange = function handleChange(value) {
|
|
6219
6234
|
navigate(value == null ? void 0 : value.href);
|