@luscii-healthtech/web-ui 2.41.0 → 2.41.2
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/Modal/ModalFooter.d.ts +2 -2
- package/dist/web-ui.cjs.development.js +6 -4
- 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 +6 -4
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonWithPendingStateProps, NonPrimaryButtonProps, PrimaryButtonProps } from "../ButtonV2/ButtonProps.type";
|
|
3
3
|
export interface ModalFooterTrailingComponents {
|
|
4
4
|
primaryButtonProps: PrimaryButtonProps;
|
|
5
5
|
secondaryButtonProps?: NonPrimaryButtonProps;
|
|
6
6
|
}
|
|
7
|
-
export declare type ModalFooterLeadingComponent = string |
|
|
7
|
+
export declare type ModalFooterLeadingComponent = string | ButtonWithPendingStateProps;
|
|
8
8
|
export declare type ModalFooterProps = {
|
|
9
9
|
footerLeadingComponent?: ModalFooterLeadingComponent;
|
|
10
10
|
footerTrailingComponents: ModalFooterTrailingComponents;
|
|
@@ -2649,7 +2649,7 @@ NotificationBanner.defaultProps = {
|
|
|
2649
2649
|
var css_248z$a = ".radio-form-field-label input[type=\"radio\"]:checked + .radio-circle {\n --bg-opacity: 1;\n background-color: #0074DD;\n background-color: rgba(0, 116, 221, var(--bg-opacity));\n}\n\n.radio-form-field-label[data-has-error=\"true\"] .radio-circle {\n --border-opacity: 1;\n border-color: #c53030;\n border-color: rgba(197, 48, 48, var(--border-opacity));\n outline: 4px solid rgba(255, 98, 102, 0.3);\n outline-offset: 0;\n}\n\n.radio-form-field-label\n input[type=\"radio\"]:checked\n + .radio-circle\n .radio-inner-circle {\n --bg-opacity: 1;\n background-color: #fff;\n background-color: rgba(255, 255, 255, var(--bg-opacity));\n}\n";
|
|
2650
2650
|
styleInject(css_248z$a);
|
|
2651
2651
|
|
|
2652
|
-
var _excluded$8 = ["text", "info", "isError", "innerRef", "className"];
|
|
2652
|
+
var _excluded$8 = ["text", "info", "isError", "innerRef", "className", "name"];
|
|
2653
2653
|
|
|
2654
2654
|
function RadioInner(_ref) {
|
|
2655
2655
|
var text = _ref.text,
|
|
@@ -2657,19 +2657,21 @@ function RadioInner(_ref) {
|
|
|
2657
2657
|
isError = _ref.isError,
|
|
2658
2658
|
innerRef = _ref.innerRef,
|
|
2659
2659
|
className = _ref.className,
|
|
2660
|
+
name = _ref.name,
|
|
2660
2661
|
otherProps = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
2661
2662
|
|
|
2662
2663
|
var value = otherProps.value,
|
|
2663
2664
|
disabled = otherProps.disabled;
|
|
2664
|
-
var nameHtmlFor = "field-" + value;
|
|
2665
|
+
var nameHtmlFor = name + "-field-" + value;
|
|
2665
2666
|
return /*#__PURE__*/React__default.createElement("label", {
|
|
2666
|
-
className: "radio-form-field-label
|
|
2667
|
+
className: "flex flex-row leading-tight radio-form-field-label",
|
|
2667
2668
|
htmlFor: nameHtmlFor,
|
|
2668
2669
|
"data-has-error": isError,
|
|
2669
2670
|
"data-test-id": nameHtmlFor
|
|
2670
2671
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
2671
2672
|
className: "flex flex-row items-center self-start"
|
|
2672
2673
|
}, /*#__PURE__*/React__default.createElement("input", _extends({}, otherProps, {
|
|
2674
|
+
name: name,
|
|
2673
2675
|
className: classNames("appearance-none", className),
|
|
2674
2676
|
ref: innerRef,
|
|
2675
2677
|
type: "radio",
|
|
@@ -2682,7 +2684,7 @@ function RadioInner(_ref) {
|
|
|
2682
2684
|
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
2683
2685
|
className: "space-y-2"
|
|
2684
2686
|
}, text && /*#__PURE__*/React__default.createElement("div", {
|
|
2685
|
-
className: "
|
|
2687
|
+
className: "flex items-center ml-2"
|
|
2686
2688
|
}, /*#__PURE__*/React__default.createElement(Text, {
|
|
2687
2689
|
inline: true,
|
|
2688
2690
|
text: text,
|