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 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 -ml-36 ";
4054
+ return "w-72";
4051
4055
 
4052
4056
  case "rightfalse":
4053
- return "w-16 -ml-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 ? "Left" : _d,
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 = 'mt-2 absolute cursor-pointer items-center text-center right-2 top-0';
4112
+ var clsName = "mt-2 absolute cursor-pointer items-center text-center right-2 top-0";
4109
4113
 
4110
4114
  if (disabled) {
4111
- clsName += ' hidden';
4115
+ clsName += " hidden";
4112
4116
  }
4113
4117
 
4114
- if (direction === 'right') {
4115
- clsName += ' hx_right';
4118
+ if (direction === "right") {
4119
+ clsName += " hx_right";
4116
4120
  } else {
4117
- clsName += ' hx_left';
4121
+ clsName += " hx_left";
4118
4122
  }
4119
4123
 
4120
4124
  if (!active) {
4121
- clsName += ' rotate-180 overflow-hidden';
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(Button, {
4135
- onClick: OnButtonClick,
4136
- hierarchy: "Secondary",
4137
- size: "lg",
4138
- icon: icon,
4139
- iconFile: active ? closeIcon : openIcon,
4140
- textField: label,
4141
- disabled: false
4142
- }), active && headerRightChildren]
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);
@@ -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> {
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "frontend",
10
10
  "healthplix"
11
11
  ],
12
- "version": "1.0.25",
12
+ "version": "1.0.26",
13
13
  "main": "dist/esm/index.js",
14
14
  "module": "dist/esm/index.js",
15
15
  "types": "dist/esm/index.d.ts",