hplx-react-elements-dev 1.0.40 → 1.0.41
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { AddSuggestionProps } from "../types";
|
|
3
|
-
declare const AddSuggestion: ({ isInputField, label, labelColor, labelSize, start_icon, end_icon, prefix, suffixButton, suffix, suffixDropdown, isSuffixEditable, suffixInputProps, suffixPlaceholder, handleSuggestionValChange, handleSuffixValChange, handleSuffixClick, char_count, onSuggestionClick, height, hint_text_icon, hint_text, errorMsg, inputProps, inputFieldInputProps, options, suggestionValue, isborderRequired, }: AddSuggestionProps) => JSX.Element;
|
|
3
|
+
declare const AddSuggestion: ({ isInputField, label, labelColor, labelSize, start_icon, end_icon, prefix, suffixButton, suffix, suffixDropdown, isSuffixEditable, suffixInputProps, suffixPlaceholder, handleSuggestionValChange, handleSuffixValChange, handleSuffixClick, char_count, onSuggestionClick, height, hint_text_icon, hint_text, errorMsg, inputProps, inputFieldInputProps, options, fieldColor, suggestionValue, isborderRequired, }: AddSuggestionProps) => JSX.Element;
|
|
4
4
|
export default AddSuggestion;
|
package/dist/esm/index.js
CHANGED
|
@@ -2083,7 +2083,7 @@ var DropdownItems = function DropdownItems(_a) {
|
|
|
2083
2083
|
onClick: function onClick() {
|
|
2084
2084
|
!disabled && onSelect && onSelect(value);
|
|
2085
2085
|
},
|
|
2086
|
-
className: "hplxt-h-10 hplxt-flex hplxt-items-center hplxt-px-2 ".concat(disabled ? "hplxt-cursor-not-allowed" : "hover:hplxt-bg-
|
|
2086
|
+
className: "hplxt-h-10 hplxt-flex hplxt-items-center hplxt-px-2 ".concat(disabled ? "hplxt-cursor-not-allowed" : "hover:hplxt-bg-Blue_gray-100 hplxt-cursor-pointer"),
|
|
2087
2087
|
onMouseEnter: onMouseEnterHandler,
|
|
2088
2088
|
onMouseLeave: onMouseLeaveHandler
|
|
2089
2089
|
}, {
|
|
@@ -2094,12 +2094,12 @@ var DropdownItems = function DropdownItems(_a) {
|
|
|
2094
2094
|
className: start_icon
|
|
2095
2095
|
})
|
|
2096
2096
|
})), jsxRuntime.exports.jsx(Typography, __assign({
|
|
2097
|
-
variant: hover && !disabled ?
|
|
2097
|
+
variant: hover && !disabled ? "Medium" : "Regular",
|
|
2098
2098
|
type: "Text md",
|
|
2099
2099
|
className: "hplxt-truncate"
|
|
2100
2100
|
}, {
|
|
2101
2101
|
children: jsxRuntime.exports.jsx("div", __assign({
|
|
2102
|
-
className: "hplxt-flex-1 ".concat(disabled ?
|
|
2102
|
+
className: "hplxt-flex-1 ".concat(disabled ? "hplxt-text-Gray-200" : "hplxt-text-Gray-700", " ").concat(className),
|
|
2103
2103
|
title: checkOverFlow() ? label : undefined,
|
|
2104
2104
|
ref: ref
|
|
2105
2105
|
}, {
|
|
@@ -3320,22 +3320,22 @@ var getSizeClassName$5 = function getSizeClassName(size) {
|
|
|
3320
3320
|
var getPaddingClassName$3 = function getPaddingClassName(size, icon, iconFile) {
|
|
3321
3321
|
switch (size) {
|
|
3322
3322
|
case "sm":
|
|
3323
|
-
return icon && iconFile && icon === "Only" ? "hplxt-h-8 hplxt-w-[34px] hplxt-px-[5.8px]" : "hplxt-h-8 hplxt-px-
|
|
3323
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-8 hplxt-w-[34px] hplxt-px-[5.8px]" : "hplxt-h-8 hplxt-px-1";
|
|
3324
3324
|
|
|
3325
3325
|
case "md":
|
|
3326
|
-
return icon && iconFile && icon === "Only" ? "hplxt-h-9 hplxt-w-[42px] hplxt-px-[9.8px]" : "hplxt-h-9 hplxt-px-
|
|
3326
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-9 hplxt-w-[42px] hplxt-px-[9.8px]" : "hplxt-h-9 hplxt-px-[6px]";
|
|
3327
3327
|
|
|
3328
3328
|
case "lg":
|
|
3329
|
-
return icon && iconFile && icon === "Only" ? "hplxt-h-10 hplxt-w-[42px] hplxt-px-[9.8px]" : "hplxt-h-10 hplxt-px-
|
|
3329
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-10 hplxt-w-[42px] hplxt-px-[9.8px]" : "hplxt-h-10 hplxt-px-2";
|
|
3330
3330
|
|
|
3331
3331
|
case "xl":
|
|
3332
|
-
return icon && iconFile && icon === "Only" ? "hplxt-h-11 hplxt-w-[46px] hplxt-px-[11.8px]" : "hplxt-h-11 hplxt-px-
|
|
3332
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-11 hplxt-w-[46px] hplxt-px-[11.8px]" : "hplxt-h-11 hplxt-px-[10px]";
|
|
3333
3333
|
|
|
3334
3334
|
case "2xl":
|
|
3335
|
-
return icon && iconFile && icon === "Only" ? "hplxt-h-12 hplxt-w-[50px] hplxt-px-[13.8px]" : "hplxt-h-12 hplxt-px-
|
|
3335
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-12 hplxt-w-[50px] hplxt-px-[13.8px]" : "hplxt-h-12 hplxt-px-3";
|
|
3336
3336
|
|
|
3337
3337
|
default:
|
|
3338
|
-
return icon && iconFile && icon === "Only" ? "hplxt-h-8 hplxt-w-[34px] hplxt-px-[5.8px]" : "hplxt-h-8 hplxt-px-
|
|
3338
|
+
return icon && iconFile && icon === "Only" ? "hplxt-h-8 hplxt-w-[34px] hplxt-px-[5.8px]" : "hplxt-h-8 hplxt-px-1";
|
|
3339
3339
|
}
|
|
3340
3340
|
};
|
|
3341
3341
|
|
|
@@ -4271,6 +4271,7 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4271
4271
|
header = _a.header,
|
|
4272
4272
|
children = _a.children,
|
|
4273
4273
|
footer = _a.footer,
|
|
4274
|
+
title = _a.title,
|
|
4274
4275
|
_d = _a.icon,
|
|
4275
4276
|
icon = _d === void 0 ? "Right" : _d,
|
|
4276
4277
|
_e = _a.openIcon,
|
|
@@ -4331,20 +4332,30 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4331
4332
|
|
|
4332
4333
|
if (direction === "up" || direction === "down") {
|
|
4333
4334
|
return jsxRuntime.exports.jsxs("div", __assign({
|
|
4334
|
-
className: "hplxt-flex hplxt-
|
|
4335
|
+
className: "hplxt-flex hplxt-flex-col ".concat(direction === "down" ? "hplxt-flex-col" : "hplxt-flex-col-reverse")
|
|
4335
4336
|
}, {
|
|
4336
4337
|
children: [jsxRuntime.exports.jsxs("div", __assign({
|
|
4337
4338
|
className: "hplxt-flex hplxt-flex-1 hplxt-flex-row hplxt-items-center"
|
|
4338
4339
|
}, {
|
|
4339
|
-
children: [jsxRuntime.exports.jsx(
|
|
4340
|
+
children: [title && jsxRuntime.exports.jsx("div", __assign({
|
|
4341
|
+
className: "hplxt-flex hplxt-mr-6 hplxt-items-center "
|
|
4342
|
+
}, {
|
|
4343
|
+
children: jsxRuntime.exports.jsx(Typography, __assign({
|
|
4344
|
+
variant: "Medium",
|
|
4345
|
+
type: "Text md",
|
|
4346
|
+
className: "hplxt-text-Gray-800"
|
|
4347
|
+
}, {
|
|
4348
|
+
children: title
|
|
4349
|
+
}))
|
|
4350
|
+
})), jsxRuntime.exports.jsx(Tooltip, __assign({
|
|
4340
4351
|
variant: "Top",
|
|
4341
4352
|
text: active ? "Click here to collapse" : "Click here to expand",
|
|
4342
4353
|
theme: "light"
|
|
4343
4354
|
}, {
|
|
4344
4355
|
children: jsxRuntime.exports.jsx(Button, {
|
|
4345
4356
|
onClick: OnButtonClick,
|
|
4346
|
-
hierarchy: "Secondary-Grey
|
|
4347
|
-
size: "
|
|
4357
|
+
hierarchy: "Secondary-Grey",
|
|
4358
|
+
size: "sm",
|
|
4348
4359
|
icon: icon,
|
|
4349
4360
|
iconFile: active ? closeIcon : openIcon,
|
|
4350
4361
|
textField: label,
|
|
@@ -4356,7 +4367,7 @@ var CollapsibleCard = function CollapsibleCard(props) {
|
|
|
4356
4367
|
onAnimationEnd: function onAnimationEnd() {
|
|
4357
4368
|
console.log("onAnimationEnd called");
|
|
4358
4369
|
},
|
|
4359
|
-
className: "".concat(active ? "hplxt-max-h-[1000px] hplxt-overflow-visible" : "hplxt-max-h-0 hplxt-overflow-hidden", " ").concat(active ? "hplxt-p-5" : "hplxt-p-0", " hplxt-transition-all hplxt-duration-500 hplxt-ease-in-out hplxt-mt-5 ").concat(getWidth(width), " ").concat(getHeight(height), " hplxt-text-ellipsis")
|
|
4370
|
+
className: "".concat(active ? "hplxt-max-h-[1000px] hplxt-overflow-visible" : "hplxt-max-h-0 hplxt-overflow-hidden", " ").concat(active ? "hplxt-p-5" : "hplxt-p-0", " hplxt-transition-all hplxt-duration-500 hplxt-ease-in-out hplxt-mt-5 ").concat(getWidth(width), " ").concat(getHeight(height), " hplxt-text-ellipsis\n ")
|
|
4360
4371
|
}, {
|
|
4361
4372
|
children: [header && jsxRuntime.exports.jsx("div", __assign({
|
|
4362
4373
|
className: "hplxt-flex hplxt-flex-1 hplxt-m-1 hplxt-p-4"
|
|
@@ -5218,6 +5229,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5218
5229
|
inputProps = _a.inputProps,
|
|
5219
5230
|
inputFieldInputProps = _a.inputFieldInputProps,
|
|
5220
5231
|
options = _a.options,
|
|
5232
|
+
fieldColor = _a.fieldColor,
|
|
5221
5233
|
_q = _a.suggestionValue,
|
|
5222
5234
|
suggestionValue = _q === void 0 ? "" : _q,
|
|
5223
5235
|
_r = _a.isborderRequired,
|
|
@@ -5308,6 +5320,7 @@ var AddSuggestion = function AddSuggestion(_a) {
|
|
|
5308
5320
|
hint_text: hint_text,
|
|
5309
5321
|
hint_text_icon: hint_text_icon,
|
|
5310
5322
|
errorMsg: errorMsg,
|
|
5323
|
+
fieldColor: fieldColor,
|
|
5311
5324
|
suffixPlaceholder: suffixPlaceholder,
|
|
5312
5325
|
isborderRequired: isborderRequired,
|
|
5313
5326
|
isSuffixEditable: isSuffixEditable,
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -185,6 +185,7 @@ export interface CardType {
|
|
|
185
185
|
}
|
|
186
186
|
type CollapseDirection = "up" | "down" | "left" | "right";
|
|
187
187
|
export interface CollapsibleCardProps {
|
|
188
|
+
title?: ReactNode;
|
|
188
189
|
direction?: CollapseDirection;
|
|
189
190
|
label?: string;
|
|
190
191
|
children?: ReactNode;
|
|
@@ -312,6 +313,7 @@ export interface AddSuggestionProps {
|
|
|
312
313
|
suffix?: ReactNode;
|
|
313
314
|
start_icon?: string;
|
|
314
315
|
end_icon?: string;
|
|
316
|
+
fieldColor?: string;
|
|
315
317
|
hint_text?: string;
|
|
316
318
|
hint_text_icon?: string;
|
|
317
319
|
char_count?: string;
|