hplx-react-elements-dev 1.0.25 → 1.0.26
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/esm/index.js +32 -18
- package/dist/esm/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1973,6 +1973,10 @@ var getHierarchyClassName = function getHierarchyClassName(hierarchy, disabled)
|
|
|
1973
1973
|
return disabled ? "bg-White text-Gray-300 border-solid border border-Gray-200" //Disabled Secondary-Grey Button
|
|
1974
1974
|
: "bg-white border-solid border border-Gray-300 active:bg-white hover:bg-Gray-25 focus shadow-xs text-Gray-700";
|
|
1975
1975
|
|
|
1976
|
+
case "Secondary-Grey-Dashed":
|
|
1977
|
+
return disabled ? "bg-White text-Gray-300 border-solid border border-Gray-200" //Disabled Secondary-Grey Button
|
|
1978
|
+
: "bg-Gray-25 border-dashed border border-Gray-200 focus shadow-xs text-Gray-700";
|
|
1979
|
+
|
|
1976
1980
|
case "Tertiary":
|
|
1977
1981
|
return disabled ? "text-Gray-300" //Disabled Tertiary Button
|
|
1978
1982
|
: "active:bg-white hover:bg-Primary-50 focus text-Primary-700";
|
|
@@ -4047,10 +4051,10 @@ var getPostionClassName = function getPostionClassName(directionClass) {
|
|
|
4047
4051
|
return "w-16 -mr-16";
|
|
4048
4052
|
|
|
4049
4053
|
case "righttrue":
|
|
4050
|
-
return "w-72
|
|
4054
|
+
return "w-72";
|
|
4051
4055
|
|
|
4052
4056
|
case "rightfalse":
|
|
4053
|
-
return "w-16
|
|
4057
|
+
return "w-16";
|
|
4054
4058
|
|
|
4055
4059
|
default:
|
|
4056
4060
|
return "w-72 -ml-72 left-full";
|
|
@@ -4067,7 +4071,7 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4067
4071
|
children = _a.children,
|
|
4068
4072
|
footer = _a.footer,
|
|
4069
4073
|
_d = _a.icon,
|
|
4070
|
-
icon = _d === void 0 ? "
|
|
4074
|
+
icon = _d === void 0 ? "Right" : _d,
|
|
4071
4075
|
_e = _a.openIcon,
|
|
4072
4076
|
openIcon = _e === void 0 ? "hx_add" : _e,
|
|
4073
4077
|
_f = _a.closeIcon,
|
|
@@ -4105,20 +4109,20 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4105
4109
|
};
|
|
4106
4110
|
|
|
4107
4111
|
var getIconClass = function getIconClass() {
|
|
4108
|
-
var clsName =
|
|
4112
|
+
var clsName = "mt-2 absolute cursor-pointer items-center text-center right-2 top-0";
|
|
4109
4113
|
|
|
4110
4114
|
if (disabled) {
|
|
4111
|
-
clsName +=
|
|
4115
|
+
clsName += " hidden";
|
|
4112
4116
|
}
|
|
4113
4117
|
|
|
4114
|
-
if (direction ===
|
|
4115
|
-
clsName +=
|
|
4118
|
+
if (direction === "right") {
|
|
4119
|
+
clsName += " hx_right";
|
|
4116
4120
|
} else {
|
|
4117
|
-
clsName +=
|
|
4121
|
+
clsName += " hx_left";
|
|
4118
4122
|
}
|
|
4119
4123
|
|
|
4120
4124
|
if (!active) {
|
|
4121
|
-
clsName +=
|
|
4125
|
+
clsName += " rotate-180 overflow-hidden";
|
|
4122
4126
|
}
|
|
4123
4127
|
|
|
4124
4128
|
return clsName;
|
|
@@ -4131,15 +4135,21 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4131
4135
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
4132
4136
|
className: "flex flex-1 flex-row items-center"
|
|
4133
4137
|
}, {
|
|
4134
|
-
children: [jsxRuntime.exports.jsx(
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4138
|
+
children: [jsxRuntime.exports.jsx(Tooltip, __assign({
|
|
4139
|
+
variant: "Top",
|
|
4140
|
+
text: active ? "Click here to collapse" : "Click here to expand",
|
|
4141
|
+
theme: "light"
|
|
4142
|
+
}, {
|
|
4143
|
+
children: jsxRuntime.exports.jsx(Button, {
|
|
4144
|
+
onClick: OnButtonClick,
|
|
4145
|
+
hierarchy: "Secondary-Grey-Dashed",
|
|
4146
|
+
size: "lg",
|
|
4147
|
+
icon: icon,
|
|
4148
|
+
iconFile: active ? closeIcon : openIcon,
|
|
4149
|
+
textField: label,
|
|
4150
|
+
disabled: false
|
|
4151
|
+
})
|
|
4152
|
+
})), active && headerRightChildren]
|
|
4143
4153
|
})), jsxRuntime.exports.jsxs("div", __assign({
|
|
4144
4154
|
"data-testid": "animationDiv",
|
|
4145
4155
|
onAnimationEnd: function onAnimationEnd() {
|
|
@@ -16742,6 +16752,10 @@ var DatePicker = function DatePicker(_a) {
|
|
|
16742
16752
|
selected = _d[0],
|
|
16743
16753
|
setSelected = _d[1];
|
|
16744
16754
|
|
|
16755
|
+
useEffect(function () {
|
|
16756
|
+
if (selectDate) setDate(selectDate);
|
|
16757
|
+
}, [selectDate]);
|
|
16758
|
+
|
|
16745
16759
|
var handleSelect = function handleSelect(date) {
|
|
16746
16760
|
setDate(date);
|
|
16747
16761
|
setSelected(!selected);
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -85,7 +85,7 @@ export interface ProgressCircleProps extends React.DetailedHTMLProps<React.HTMLA
|
|
|
85
85
|
spinnerMode?: boolean;
|
|
86
86
|
progress: number;
|
|
87
87
|
}
|
|
88
|
-
type hierarchyType = "Primary" | "Secondary" | "Secondary-Grey" | "Tertiary" | "Tertiary-Grey" | "Link-Colour" | "Link-Grey";
|
|
88
|
+
type hierarchyType = "Primary" | "Secondary" | "Secondary-Grey" | "Secondary-Grey-Dashed" | "Tertiary" | "Tertiary-Grey" | "Link-Colour" | "Link-Grey";
|
|
89
89
|
type buttonSizeType = "sm" | "md" | "lg" | "xl" | "2xl";
|
|
90
90
|
type iconType = "No" | "Left" | "Right" | "Only";
|
|
91
91
|
export interface ButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|